1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for font-util 1.4.1.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/font/util/-/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/util/-/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='font-util'
614PACKAGE_TARNAME='font-util'
615PACKAGE_VERSION='1.4.1'
616PACKAGE_STRING='font-util 1.4.1'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/font/util/-/issues'
618PACKAGE_URL=''
619
620ac_unique_file="Makefile.am"
621# Factoring default headers for most tests.
622ac_includes_default="\
623#include <stddef.h>
624#ifdef HAVE_STDIO_H
625# include <stdio.h>
626#endif
627#ifdef HAVE_STDLIB_H
628# include <stdlib.h>
629#endif
630#ifdef HAVE_STRING_H
631# include <string.h>
632#endif
633#ifdef HAVE_INTTYPES_H
634# include <inttypes.h>
635#endif
636#ifdef HAVE_STDINT_H
637# include <stdint.h>
638#endif
639#ifdef HAVE_STRINGS_H
640# include <strings.h>
641#endif
642#ifdef HAVE_SYS_TYPES_H
643# include <sys/types.h>
644#endif
645#ifdef HAVE_SYS_STAT_H
646# include <sys/stat.h>
647#endif
648#ifdef HAVE_UNISTD_H
649# include <unistd.h>
650#endif"
651
652ac_header_c_list=
653ac_subst_vars='am__EXEEXT_FALSE
654am__EXEEXT_TRUE
655LTLIBOBJS
656LIBOBJS
657MAPDIR
658fontrootdir
659MAN_SUBSTS
660XORG_MAN_PAGE
661ADMIN_MAN_DIR
662DRIVER_MAN_DIR
663MISC_MAN_DIR
664FILE_MAN_DIR
665LIB_MAN_DIR
666APP_MAN_DIR
667ADMIN_MAN_SUFFIX
668DRIVER_MAN_SUFFIX
669MISC_MAN_SUFFIX
670FILE_MAN_SUFFIX
671LIB_MAN_SUFFIX
672APP_MAN_SUFFIX
673SED
674host_os
675host_vendor
676host_cpu
677host
678build_os
679build_vendor
680build_cpu
681build
682INSTALL_CMD
683PKG_CONFIG_LIBDIR
684PKG_CONFIG_PATH
685PKG_CONFIG
686CHANGELOG_CMD
687STRICT_CFLAGS
688CWARNFLAGS
689BASE_CFLAGS
690am__fastdepCC_FALSE
691am__fastdepCC_TRUE
692CCDEPMODE
693am__nodep
694AMDEPBACKSLASH
695AMDEP_FALSE
696AMDEP_TRUE
697am__include
698DEPDIR
699OBJEXT
700EXEEXT
701ac_ct_CC
702CPPFLAGS
703LDFLAGS
704CFLAGS
705CC
706AM_BACKSLASH
707AM_DEFAULT_VERBOSITY
708AM_DEFAULT_V
709AM_V
710CSCOPE
711ETAGS
712CTAGS
713am__untar
714am__tar
715AMTAR
716am__leading_dot
717SET_MAKE
718AWK
719mkdir_p
720MKDIR_P
721INSTALL_STRIP_PROGRAM
722STRIP
723install_sh
724MAKEINFO
725AUTOHEADER
726AUTOMAKE
727AUTOCONF
728ACLOCAL
729VERSION
730PACKAGE
731CYGPATH_W
732am__isrc
733INSTALL_DATA
734INSTALL_SCRIPT
735INSTALL_PROGRAM
736target_alias
737host_alias
738build_alias
739LIBS
740ECHO_T
741ECHO_N
742ECHO_C
743DEFS
744mandir
745localedir
746libdir
747psdir
748pdfdir
749dvidir
750htmldir
751infodir
752docdir
753oldincludedir
754includedir
755runstatedir
756localstatedir
757sharedstatedir
758sysconfdir
759datadir
760datarootdir
761libexecdir
762sbindir
763bindir
764program_transform_name
765prefix
766exec_prefix
767PACKAGE_URL
768PACKAGE_BUGREPORT
769PACKAGE_STRING
770PACKAGE_VERSION
771PACKAGE_TARNAME
772PACKAGE_NAME
773PATH_SEPARATOR
774SHELL
775am__quote'
776ac_subst_files=''
777ac_user_opts='
778enable_option_checking
779enable_silent_rules
780enable_dependency_tracking
781enable_selective_werror
782enable_strict_compilation
783with_fontrootdir
784with_mapdir
785'
786      ac_precious_vars='build_alias
787host_alias
788target_alias
789CC
790CFLAGS
791LDFLAGS
792LIBS
793CPPFLAGS
794PKG_CONFIG
795PKG_CONFIG_PATH
796PKG_CONFIG_LIBDIR'
797
798
799# Initialize some variables set by options.
800ac_init_help=
801ac_init_version=false
802ac_unrecognized_opts=
803ac_unrecognized_sep=
804# The variables have the same names as the options, with
805# dashes changed to underlines.
806cache_file=/dev/null
807exec_prefix=NONE
808no_create=
809no_recursion=
810prefix=NONE
811program_prefix=NONE
812program_suffix=NONE
813program_transform_name=s,x,x,
814silent=
815site=
816srcdir=
817verbose=
818x_includes=NONE
819x_libraries=NONE
820
821# Installation directory options.
822# These are left unexpanded so users can "make install exec_prefix=/foo"
823# and all the variables that are supposed to be based on exec_prefix
824# by default will actually change.
825# Use braces instead of parens because sh, perl, etc. also accept them.
826# (The list follows the same order as the GNU Coding Standards.)
827bindir='${exec_prefix}/bin'
828sbindir='${exec_prefix}/sbin'
829libexecdir='${exec_prefix}/libexec'
830datarootdir='${prefix}/share'
831datadir='${datarootdir}'
832sysconfdir='${prefix}/etc'
833sharedstatedir='${prefix}/com'
834localstatedir='${prefix}/var'
835runstatedir='${localstatedir}/run'
836includedir='${prefix}/include'
837oldincludedir='/usr/include'
838docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839infodir='${datarootdir}/info'
840htmldir='${docdir}'
841dvidir='${docdir}'
842pdfdir='${docdir}'
843psdir='${docdir}'
844libdir='${exec_prefix}/lib'
845localedir='${datarootdir}/locale'
846mandir='${datarootdir}/man'
847
848ac_prev=
849ac_dashdash=
850for ac_option
851do
852  # If the previous option needs an argument, assign it.
853  if test -n "$ac_prev"; then
854    eval $ac_prev=\$ac_option
855    ac_prev=
856    continue
857  fi
858
859  case $ac_option in
860  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861  *=)   ac_optarg= ;;
862  *)    ac_optarg=yes ;;
863  esac
864
865  case $ac_dashdash$ac_option in
866  --)
867    ac_dashdash=yes ;;
868
869  -bindir | --bindir | --bindi | --bind | --bin | --bi)
870    ac_prev=bindir ;;
871  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872    bindir=$ac_optarg ;;
873
874  -build | --build | --buil | --bui | --bu)
875    ac_prev=build_alias ;;
876  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877    build_alias=$ac_optarg ;;
878
879  -cache-file | --cache-file | --cache-fil | --cache-fi \
880  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881    ac_prev=cache_file ;;
882  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884    cache_file=$ac_optarg ;;
885
886  --config-cache | -C)
887    cache_file=config.cache ;;
888
889  -datadir | --datadir | --datadi | --datad)
890    ac_prev=datadir ;;
891  -datadir=* | --datadir=* | --datadi=* | --datad=*)
892    datadir=$ac_optarg ;;
893
894  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895  | --dataroo | --dataro | --datar)
896    ac_prev=datarootdir ;;
897  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899    datarootdir=$ac_optarg ;;
900
901  -disable-* | --disable-*)
902    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903    # Reject names that are not valid shell variable names.
904    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905      as_fn_error $? "invalid feature name: \`$ac_useropt'"
906    ac_useropt_orig=$ac_useropt
907    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
908    case $ac_user_opts in
909      *"
910"enable_$ac_useropt"
911"*) ;;
912      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913	 ac_unrecognized_sep=', ';;
914    esac
915    eval enable_$ac_useropt=no ;;
916
917  -docdir | --docdir | --docdi | --doc | --do)
918    ac_prev=docdir ;;
919  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920    docdir=$ac_optarg ;;
921
922  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923    ac_prev=dvidir ;;
924  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925    dvidir=$ac_optarg ;;
926
927  -enable-* | --enable-*)
928    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929    # Reject names that are not valid shell variable names.
930    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931      as_fn_error $? "invalid feature name: \`$ac_useropt'"
932    ac_useropt_orig=$ac_useropt
933    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
934    case $ac_user_opts in
935      *"
936"enable_$ac_useropt"
937"*) ;;
938      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939	 ac_unrecognized_sep=', ';;
940    esac
941    eval enable_$ac_useropt=\$ac_optarg ;;
942
943  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945  | --exec | --exe | --ex)
946    ac_prev=exec_prefix ;;
947  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949  | --exec=* | --exe=* | --ex=*)
950    exec_prefix=$ac_optarg ;;
951
952  -gas | --gas | --ga | --g)
953    # Obsolete; use --with-gas.
954    with_gas=yes ;;
955
956  -help | --help | --hel | --he | -h)
957    ac_init_help=long ;;
958  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959    ac_init_help=recursive ;;
960  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961    ac_init_help=short ;;
962
963  -host | --host | --hos | --ho)
964    ac_prev=host_alias ;;
965  -host=* | --host=* | --hos=* | --ho=*)
966    host_alias=$ac_optarg ;;
967
968  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969    ac_prev=htmldir ;;
970  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971  | --ht=*)
972    htmldir=$ac_optarg ;;
973
974  -includedir | --includedir | --includedi | --included | --include \
975  | --includ | --inclu | --incl | --inc)
976    ac_prev=includedir ;;
977  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978  | --includ=* | --inclu=* | --incl=* | --inc=*)
979    includedir=$ac_optarg ;;
980
981  -infodir | --infodir | --infodi | --infod | --info | --inf)
982    ac_prev=infodir ;;
983  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984    infodir=$ac_optarg ;;
985
986  -libdir | --libdir | --libdi | --libd)
987    ac_prev=libdir ;;
988  -libdir=* | --libdir=* | --libdi=* | --libd=*)
989    libdir=$ac_optarg ;;
990
991  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992  | --libexe | --libex | --libe)
993    ac_prev=libexecdir ;;
994  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995  | --libexe=* | --libex=* | --libe=*)
996    libexecdir=$ac_optarg ;;
997
998  -localedir | --localedir | --localedi | --localed | --locale)
999    ac_prev=localedir ;;
1000  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001    localedir=$ac_optarg ;;
1002
1003  -localstatedir | --localstatedir | --localstatedi | --localstated \
1004  | --localstate | --localstat | --localsta | --localst | --locals)
1005    ac_prev=localstatedir ;;
1006  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008    localstatedir=$ac_optarg ;;
1009
1010  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011    ac_prev=mandir ;;
1012  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013    mandir=$ac_optarg ;;
1014
1015  -nfp | --nfp | --nf)
1016    # Obsolete; use --without-fp.
1017    with_fp=no ;;
1018
1019  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020  | --no-cr | --no-c | -n)
1021    no_create=yes ;;
1022
1023  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025    no_recursion=yes ;;
1026
1027  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029  | --oldin | --oldi | --old | --ol | --o)
1030    ac_prev=oldincludedir ;;
1031  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034    oldincludedir=$ac_optarg ;;
1035
1036  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037    ac_prev=prefix ;;
1038  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039    prefix=$ac_optarg ;;
1040
1041  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042  | --program-pre | --program-pr | --program-p)
1043    ac_prev=program_prefix ;;
1044  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046    program_prefix=$ac_optarg ;;
1047
1048  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049  | --program-suf | --program-su | --program-s)
1050    ac_prev=program_suffix ;;
1051  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053    program_suffix=$ac_optarg ;;
1054
1055  -program-transform-name | --program-transform-name \
1056  | --program-transform-nam | --program-transform-na \
1057  | --program-transform-n | --program-transform- \
1058  | --program-transform | --program-transfor \
1059  | --program-transfo | --program-transf \
1060  | --program-trans | --program-tran \
1061  | --progr-tra | --program-tr | --program-t)
1062    ac_prev=program_transform_name ;;
1063  -program-transform-name=* | --program-transform-name=* \
1064  | --program-transform-nam=* | --program-transform-na=* \
1065  | --program-transform-n=* | --program-transform-=* \
1066  | --program-transform=* | --program-transfor=* \
1067  | --program-transfo=* | --program-transf=* \
1068  | --program-trans=* | --program-tran=* \
1069  | --progr-tra=* | --program-tr=* | --program-t=*)
1070    program_transform_name=$ac_optarg ;;
1071
1072  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073    ac_prev=pdfdir ;;
1074  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075    pdfdir=$ac_optarg ;;
1076
1077  -psdir | --psdir | --psdi | --psd | --ps)
1078    ac_prev=psdir ;;
1079  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080    psdir=$ac_optarg ;;
1081
1082  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083  | -silent | --silent | --silen | --sile | --sil)
1084    silent=yes ;;
1085
1086  -runstatedir | --runstatedir | --runstatedi | --runstated \
1087  | --runstate | --runstat | --runsta | --runst | --runs \
1088  | --run | --ru | --r)
1089    ac_prev=runstatedir ;;
1090  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1091  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1092  | --run=* | --ru=* | --r=*)
1093    runstatedir=$ac_optarg ;;
1094
1095  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096    ac_prev=sbindir ;;
1097  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098  | --sbi=* | --sb=*)
1099    sbindir=$ac_optarg ;;
1100
1101  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103  | --sharedst | --shareds | --shared | --share | --shar \
1104  | --sha | --sh)
1105    ac_prev=sharedstatedir ;;
1106  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109  | --sha=* | --sh=*)
1110    sharedstatedir=$ac_optarg ;;
1111
1112  -site | --site | --sit)
1113    ac_prev=site ;;
1114  -site=* | --site=* | --sit=*)
1115    site=$ac_optarg ;;
1116
1117  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118    ac_prev=srcdir ;;
1119  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120    srcdir=$ac_optarg ;;
1121
1122  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123  | --syscon | --sysco | --sysc | --sys | --sy)
1124    ac_prev=sysconfdir ;;
1125  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127    sysconfdir=$ac_optarg ;;
1128
1129  -target | --target | --targe | --targ | --tar | --ta | --t)
1130    ac_prev=target_alias ;;
1131  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132    target_alias=$ac_optarg ;;
1133
1134  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135    verbose=yes ;;
1136
1137  -version | --version | --versio | --versi | --vers | -V)
1138    ac_init_version=: ;;
1139
1140  -with-* | --with-*)
1141    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142    # Reject names that are not valid shell variable names.
1143    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144      as_fn_error $? "invalid package name: \`$ac_useropt'"
1145    ac_useropt_orig=$ac_useropt
1146    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1147    case $ac_user_opts in
1148      *"
1149"with_$ac_useropt"
1150"*) ;;
1151      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152	 ac_unrecognized_sep=', ';;
1153    esac
1154    eval with_$ac_useropt=\$ac_optarg ;;
1155
1156  -without-* | --without-*)
1157    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158    # Reject names that are not valid shell variable names.
1159    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160      as_fn_error $? "invalid package name: \`$ac_useropt'"
1161    ac_useropt_orig=$ac_useropt
1162    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1163    case $ac_user_opts in
1164      *"
1165"with_$ac_useropt"
1166"*) ;;
1167      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168	 ac_unrecognized_sep=', ';;
1169    esac
1170    eval with_$ac_useropt=no ;;
1171
1172  --x)
1173    # Obsolete; use --with-x.
1174    with_x=yes ;;
1175
1176  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177  | --x-incl | --x-inc | --x-in | --x-i)
1178    ac_prev=x_includes ;;
1179  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181    x_includes=$ac_optarg ;;
1182
1183  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185    ac_prev=x_libraries ;;
1186  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188    x_libraries=$ac_optarg ;;
1189
1190  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191Try \`$0 --help' for more information"
1192    ;;
1193
1194  *=*)
1195    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196    # Reject names that are not valid shell variable names.
1197    case $ac_envvar in #(
1198      '' | [0-9]* | *[!_$as_cr_alnum]* )
1199      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200    esac
1201    eval $ac_envvar=\$ac_optarg
1202    export $ac_envvar ;;
1203
1204  *)
1205    # FIXME: should be removed in autoconf 3.0.
1206    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1207    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1209    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210    ;;
1211
1212  esac
1213done
1214
1215if test -n "$ac_prev"; then
1216  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217  as_fn_error $? "missing argument to $ac_option"
1218fi
1219
1220if test -n "$ac_unrecognized_opts"; then
1221  case $enable_option_checking in
1222    no) ;;
1223    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225  esac
1226fi
1227
1228# Check all directory arguments for consistency.
1229for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230		datadir sysconfdir sharedstatedir localstatedir includedir \
1231		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232		libdir localedir mandir runstatedir
1233do
1234  eval ac_val=\$$ac_var
1235  # Remove trailing slashes.
1236  case $ac_val in
1237    */ )
1238      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239      eval $ac_var=\$ac_val;;
1240  esac
1241  # Be sure to have absolute directory names.
1242  case $ac_val in
1243    [\\/$]* | ?:[\\/]* )  continue;;
1244    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245  esac
1246  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247done
1248
1249# There might be people who depend on the old broken behavior: `$host'
1250# used to hold the argument of --host etc.
1251# FIXME: To remove some day.
1252build=$build_alias
1253host=$host_alias
1254target=$target_alias
1255
1256# FIXME: To remove some day.
1257if test "x$host_alias" != x; then
1258  if test "x$build_alias" = x; then
1259    cross_compiling=maybe
1260  elif test "x$build_alias" != "x$host_alias"; then
1261    cross_compiling=yes
1262  fi
1263fi
1264
1265ac_tool_prefix=
1266test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268test "$silent" = yes && exec 6>/dev/null
1269
1270
1271ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272ac_ls_di=`ls -di .` &&
1273ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274  as_fn_error $? "working directory cannot be determined"
1275test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276  as_fn_error $? "pwd does not report name of working directory"
1277
1278
1279# Find the source files, if location was not specified.
1280if test -z "$srcdir"; then
1281  ac_srcdir_defaulted=yes
1282  # Try the directory containing this script, then the parent directory.
1283  ac_confdir=`$as_dirname -- "$as_myself" ||
1284$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285	 X"$as_myself" : 'X\(//\)[^/]' \| \
1286	 X"$as_myself" : 'X\(//\)$' \| \
1287	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288printf "%s\n" X"$as_myself" |
1289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290	    s//\1/
1291	    q
1292	  }
1293	  /^X\(\/\/\)[^/].*/{
1294	    s//\1/
1295	    q
1296	  }
1297	  /^X\(\/\/\)$/{
1298	    s//\1/
1299	    q
1300	  }
1301	  /^X\(\/\).*/{
1302	    s//\1/
1303	    q
1304	  }
1305	  s/.*/./; q'`
1306  srcdir=$ac_confdir
1307  if test ! -r "$srcdir/$ac_unique_file"; then
1308    srcdir=..
1309  fi
1310else
1311  ac_srcdir_defaulted=no
1312fi
1313if test ! -r "$srcdir/$ac_unique_file"; then
1314  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316fi
1317ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318ac_abs_confdir=`(
1319	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320	pwd)`
1321# When building in place, set srcdir=.
1322if test "$ac_abs_confdir" = "$ac_pwd"; then
1323  srcdir=.
1324fi
1325# Remove unnecessary trailing slashes from srcdir.
1326# Double slashes in file names in object file debugging info
1327# mess up M-x gdb in Emacs.
1328case $srcdir in
1329*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330esac
1331for ac_var in $ac_precious_vars; do
1332  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333  eval ac_env_${ac_var}_value=\$${ac_var}
1334  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336done
1337
1338#
1339# Report the --help message.
1340#
1341if test "$ac_init_help" = "long"; then
1342  # Omit some internal or obsolete options to make the list less imposing.
1343  # This message is too long to be a string in the A/UX 3.1 sh.
1344  cat <<_ACEOF
1345\`configure' configures font-util 1.4.1 to adapt to many kinds of systems.
1346
1347Usage: $0 [OPTION]... [VAR=VALUE]...
1348
1349To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350VAR=VALUE.  See below for descriptions of some of the useful variables.
1351
1352Defaults for the options are specified in brackets.
1353
1354Configuration:
1355  -h, --help              display this help and exit
1356      --help=short        display options specific to this package
1357      --help=recursive    display the short help of all the included packages
1358  -V, --version           display version information and exit
1359  -q, --quiet, --silent   do not print \`checking ...' messages
1360      --cache-file=FILE   cache test results in FILE [disabled]
1361  -C, --config-cache      alias for \`--cache-file=config.cache'
1362  -n, --no-create         do not create output files
1363      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1364
1365Installation directories:
1366  --prefix=PREFIX         install architecture-independent files in PREFIX
1367                          [$ac_default_prefix]
1368  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1369                          [PREFIX]
1370
1371By default, \`make install' will install all the files in
1372\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1373an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374for instance \`--prefix=\$HOME'.
1375
1376For better control, use the options below.
1377
1378Fine tuning of the installation directories:
1379  --bindir=DIR            user executables [EPREFIX/bin]
1380  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1381  --libexecdir=DIR        program executables [EPREFIX/libexec]
1382  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1383  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1384  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1385  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1386  --libdir=DIR            object code libraries [EPREFIX/lib]
1387  --includedir=DIR        C header files [PREFIX/include]
1388  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1389  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1390  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1391  --infodir=DIR           info documentation [DATAROOTDIR/info]
1392  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1393  --mandir=DIR            man documentation [DATAROOTDIR/man]
1394  --docdir=DIR            documentation root [DATAROOTDIR/doc/font-util]
1395  --htmldir=DIR           html documentation [DOCDIR]
1396  --dvidir=DIR            dvi documentation [DOCDIR]
1397  --pdfdir=DIR            pdf documentation [DOCDIR]
1398  --psdir=DIR             ps documentation [DOCDIR]
1399_ACEOF
1400
1401  cat <<\_ACEOF
1402
1403Program names:
1404  --program-prefix=PREFIX            prepend PREFIX to installed program names
1405  --program-suffix=SUFFIX            append SUFFIX to installed program names
1406  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1407
1408System types:
1409  --build=BUILD     configure for building on BUILD [guessed]
1410  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1411_ACEOF
1412fi
1413
1414if test -n "$ac_init_help"; then
1415  case $ac_init_help in
1416     short | recursive ) echo "Configuration of font-util 1.4.1:";;
1417   esac
1418  cat <<\_ACEOF
1419
1420Optional Features:
1421  --disable-option-checking  ignore unrecognized --enable/--with options
1422  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1423  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1424  --enable-silent-rules   less verbose build output (undo: "make V=1")
1425  --disable-silent-rules  verbose build output (undo: "make V=0")
1426  --enable-dependency-tracking
1427                          do not reject slow dependency extractors
1428  --disable-dependency-tracking
1429                          speeds up one-time build
1430  --disable-selective-werror
1431                          Turn off selective compiler errors. (default:
1432                          enabled)
1433  --enable-strict-compilation
1434                          Enable all warnings from compiler and make them
1435                          errors (default: disabled)
1436
1437Optional Packages:
1438  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1439  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1440  --with-fontrootdir=DIR  Path to parent of font subdirectories
1441                          [DATADIR/fonts/X11]
1442  --with-mapdir=DIR       Path to install font maps [FONTROOTDIR/util]
1443
1444Some influential environment variables:
1445  CC          C compiler command
1446  CFLAGS      C compiler flags
1447  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1448              nonstandard directory <lib dir>
1449  LIBS        libraries to pass to the linker, e.g. -l<library>
1450  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1451              you have headers in a nonstandard directory <include dir>
1452  PKG_CONFIG  path to pkg-config utility
1453  PKG_CONFIG_PATH
1454              directories to add to pkg-config's search path
1455  PKG_CONFIG_LIBDIR
1456              path overriding pkg-config's built-in search path
1457
1458Use these variables to override the choices made by `configure' or to help
1459it to find libraries and programs with nonstandard names/locations.
1460
1461Report bugs to <https://gitlab.freedesktop.org/xorg/font/util/-/issues>.
1462_ACEOF
1463ac_status=$?
1464fi
1465
1466if test "$ac_init_help" = "recursive"; then
1467  # If there are subdirs, report their specific --help.
1468  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1469    test -d "$ac_dir" ||
1470      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1471      continue
1472    ac_builddir=.
1473
1474case "$ac_dir" in
1475.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476*)
1477  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1478  # A ".." for each directory in $ac_dir_suffix.
1479  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1480  case $ac_top_builddir_sub in
1481  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483  esac ;;
1484esac
1485ac_abs_top_builddir=$ac_pwd
1486ac_abs_builddir=$ac_pwd$ac_dir_suffix
1487# for backward compatibility:
1488ac_top_builddir=$ac_top_build_prefix
1489
1490case $srcdir in
1491  .)  # We are building in place.
1492    ac_srcdir=.
1493    ac_top_srcdir=$ac_top_builddir_sub
1494    ac_abs_top_srcdir=$ac_pwd ;;
1495  [\\/]* | ?:[\\/]* )  # Absolute name.
1496    ac_srcdir=$srcdir$ac_dir_suffix;
1497    ac_top_srcdir=$srcdir
1498    ac_abs_top_srcdir=$srcdir ;;
1499  *) # Relative name.
1500    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1501    ac_top_srcdir=$ac_top_build_prefix$srcdir
1502    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503esac
1504ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505
1506    cd "$ac_dir" || { ac_status=$?; continue; }
1507    # Check for configure.gnu first; this name is used for a wrapper for
1508    # Metaconfig's "Configure" on case-insensitive file systems.
1509    if test -f "$ac_srcdir/configure.gnu"; then
1510      echo &&
1511      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1512    elif test -f "$ac_srcdir/configure"; then
1513      echo &&
1514      $SHELL "$ac_srcdir/configure" --help=recursive
1515    else
1516      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1517    fi || ac_status=$?
1518    cd "$ac_pwd" || { ac_status=$?; break; }
1519  done
1520fi
1521
1522test -n "$ac_init_help" && exit $ac_status
1523if $ac_init_version; then
1524  cat <<\_ACEOF
1525font-util configure 1.4.1
1526generated by GNU Autoconf 2.71
1527
1528Copyright (C) 2021 Free Software Foundation, Inc.
1529This configure script is free software; the Free Software Foundation
1530gives unlimited permission to copy, distribute and modify it.
1531_ACEOF
1532  exit
1533fi
1534
1535## ------------------------ ##
1536## Autoconf initialization. ##
1537## ------------------------ ##
1538
1539# ac_fn_c_try_compile LINENO
1540# --------------------------
1541# Try to compile conftest.$ac_ext, and return whether this succeeded.
1542ac_fn_c_try_compile ()
1543{
1544  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545  rm -f conftest.$ac_objext conftest.beam
1546  if { { ac_try="$ac_compile"
1547case "(($ac_try" in
1548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549  *) ac_try_echo=$ac_try;;
1550esac
1551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552printf "%s\n" "$ac_try_echo"; } >&5
1553  (eval "$ac_compile") 2>conftest.err
1554  ac_status=$?
1555  if test -s conftest.err; then
1556    grep -v '^ *+' conftest.err >conftest.er1
1557    cat conftest.er1 >&5
1558    mv -f conftest.er1 conftest.err
1559  fi
1560  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561  test $ac_status = 0; } && {
1562	 test -z "$ac_c_werror_flag" ||
1563	 test ! -s conftest.err
1564       } && test -s conftest.$ac_objext
1565then :
1566  ac_retval=0
1567else $as_nop
1568  printf "%s\n" "$as_me: failed program was:" >&5
1569sed 's/^/| /' conftest.$ac_ext >&5
1570
1571	ac_retval=1
1572fi
1573  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574  as_fn_set_status $ac_retval
1575
1576} # ac_fn_c_try_compile
1577
1578# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1579# ------------------------------------------------------------------
1580# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1581# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1582ac_fn_check_decl ()
1583{
1584  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585  as_decl_name=`echo $2|sed 's/ *(.*//'`
1586  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1587printf %s "checking whether $as_decl_name is declared... " >&6; }
1588if eval test \${$3+y}
1589then :
1590  printf %s "(cached) " >&6
1591else $as_nop
1592  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1593  eval ac_save_FLAGS=\$$6
1594  as_fn_append $6 " $5"
1595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1596/* end confdefs.h.  */
1597$4
1598int
1599main (void)
1600{
1601#ifndef $as_decl_name
1602#ifdef __cplusplus
1603  (void) $as_decl_use;
1604#else
1605  (void) $as_decl_name;
1606#endif
1607#endif
1608
1609  ;
1610  return 0;
1611}
1612_ACEOF
1613if ac_fn_c_try_compile "$LINENO"
1614then :
1615  eval "$3=yes"
1616else $as_nop
1617  eval "$3=no"
1618fi
1619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1620  eval $6=\$ac_save_FLAGS
1621
1622fi
1623eval ac_res=\$$3
1624	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1625printf "%s\n" "$ac_res" >&6; }
1626  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627
1628} # ac_fn_check_decl
1629
1630# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1631# -------------------------------------------------------
1632# Tests whether HEADER exists and can be compiled using the include files in
1633# INCLUDES, setting the cache variable VAR accordingly.
1634ac_fn_c_check_header_compile ()
1635{
1636  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638printf %s "checking for $2... " >&6; }
1639if eval test \${$3+y}
1640then :
1641  printf %s "(cached) " >&6
1642else $as_nop
1643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644/* end confdefs.h.  */
1645$4
1646#include <$2>
1647_ACEOF
1648if ac_fn_c_try_compile "$LINENO"
1649then :
1650  eval "$3=yes"
1651else $as_nop
1652  eval "$3=no"
1653fi
1654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1655fi
1656eval ac_res=\$$3
1657	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658printf "%s\n" "$ac_res" >&6; }
1659  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660
1661} # ac_fn_c_check_header_compile
1662
1663# ac_fn_c_try_link LINENO
1664# -----------------------
1665# Try to link conftest.$ac_ext, and return whether this succeeded.
1666ac_fn_c_try_link ()
1667{
1668  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1670  if { { ac_try="$ac_link"
1671case "(($ac_try" in
1672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673  *) ac_try_echo=$ac_try;;
1674esac
1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676printf "%s\n" "$ac_try_echo"; } >&5
1677  (eval "$ac_link") 2>conftest.err
1678  ac_status=$?
1679  if test -s conftest.err; then
1680    grep -v '^ *+' conftest.err >conftest.er1
1681    cat conftest.er1 >&5
1682    mv -f conftest.er1 conftest.err
1683  fi
1684  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685  test $ac_status = 0; } && {
1686	 test -z "$ac_c_werror_flag" ||
1687	 test ! -s conftest.err
1688       } && test -s conftest$ac_exeext && {
1689	 test "$cross_compiling" = yes ||
1690	 test -x conftest$ac_exeext
1691       }
1692then :
1693  ac_retval=0
1694else $as_nop
1695  printf "%s\n" "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
1698	ac_retval=1
1699fi
1700  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1701  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1702  # interfere with the next link command; also delete a directory that is
1703  # left behind by Apple's compiler.  We do this before executing the actions.
1704  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706  as_fn_set_status $ac_retval
1707
1708} # ac_fn_c_try_link
1709ac_configure_args_raw=
1710for ac_arg
1711do
1712  case $ac_arg in
1713  *\'*)
1714    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1715  esac
1716  as_fn_append ac_configure_args_raw " '$ac_arg'"
1717done
1718
1719case $ac_configure_args_raw in
1720  *$as_nl*)
1721    ac_safe_unquote= ;;
1722  *)
1723    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1724    ac_unsafe_a="$ac_unsafe_z#~"
1725    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1726    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1727esac
1728
1729cat >config.log <<_ACEOF
1730This file contains any messages produced by compilers while
1731running configure, to aid debugging if configure makes a mistake.
1732
1733It was created by font-util $as_me 1.4.1, which was
1734generated by GNU Autoconf 2.71.  Invocation command line was
1735
1736  $ $0$ac_configure_args_raw
1737
1738_ACEOF
1739exec 5>>config.log
1740{
1741cat <<_ASUNAME
1742## --------- ##
1743## Platform. ##
1744## --------- ##
1745
1746hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1747uname -m = `(uname -m) 2>/dev/null || echo unknown`
1748uname -r = `(uname -r) 2>/dev/null || echo unknown`
1749uname -s = `(uname -s) 2>/dev/null || echo unknown`
1750uname -v = `(uname -v) 2>/dev/null || echo unknown`
1751
1752/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1753/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1754
1755/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1756/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1757/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1758/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1759/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1760/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1761/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1762
1763_ASUNAME
1764
1765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1766for as_dir in $PATH
1767do
1768  IFS=$as_save_IFS
1769  case $as_dir in #(((
1770    '') as_dir=./ ;;
1771    */) ;;
1772    *) as_dir=$as_dir/ ;;
1773  esac
1774    printf "%s\n" "PATH: $as_dir"
1775  done
1776IFS=$as_save_IFS
1777
1778} >&5
1779
1780cat >&5 <<_ACEOF
1781
1782
1783## ----------- ##
1784## Core tests. ##
1785## ----------- ##
1786
1787_ACEOF
1788
1789
1790# Keep a trace of the command line.
1791# Strip out --no-create and --no-recursion so they do not pile up.
1792# Strip out --silent because we don't want to record it for future runs.
1793# Also quote any args containing shell meta-characters.
1794# Make two passes to allow for proper duplicate-argument suppression.
1795ac_configure_args=
1796ac_configure_args0=
1797ac_configure_args1=
1798ac_must_keep_next=false
1799for ac_pass in 1 2
1800do
1801  for ac_arg
1802  do
1803    case $ac_arg in
1804    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1805    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1806    | -silent | --silent | --silen | --sile | --sil)
1807      continue ;;
1808    *\'*)
1809      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1810    esac
1811    case $ac_pass in
1812    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1813    2)
1814      as_fn_append ac_configure_args1 " '$ac_arg'"
1815      if test $ac_must_keep_next = true; then
1816	ac_must_keep_next=false # Got value, back to normal.
1817      else
1818	case $ac_arg in
1819	  *=* | --config-cache | -C | -disable-* | --disable-* \
1820	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1821	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1822	  | -with-* | --with-* | -without-* | --without-* | --x)
1823	    case "$ac_configure_args0 " in
1824	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1825	    esac
1826	    ;;
1827	  -* ) ac_must_keep_next=true ;;
1828	esac
1829      fi
1830      as_fn_append ac_configure_args " '$ac_arg'"
1831      ;;
1832    esac
1833  done
1834done
1835{ ac_configure_args0=; unset ac_configure_args0;}
1836{ ac_configure_args1=; unset ac_configure_args1;}
1837
1838# When interrupted or exit'd, cleanup temporary files, and complete
1839# config.log.  We remove comments because anyway the quotes in there
1840# would cause problems or look ugly.
1841# WARNING: Use '\'' to represent an apostrophe within the trap.
1842# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1843trap 'exit_status=$?
1844  # Sanitize IFS.
1845  IFS=" ""	$as_nl"
1846  # Save into config.log some information that might help in debugging.
1847  {
1848    echo
1849
1850    printf "%s\n" "## ---------------- ##
1851## Cache variables. ##
1852## ---------------- ##"
1853    echo
1854    # The following way of writing the cache mishandles newlines in values,
1855(
1856  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1857    eval ac_val=\$$ac_var
1858    case $ac_val in #(
1859    *${as_nl}*)
1860      case $ac_var in #(
1861      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1862printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1863      esac
1864      case $ac_var in #(
1865      _ | IFS | as_nl) ;; #(
1866      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1867      *) { eval $ac_var=; unset $ac_var;} ;;
1868      esac ;;
1869    esac
1870  done
1871  (set) 2>&1 |
1872    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1873    *${as_nl}ac_space=\ *)
1874      sed -n \
1875	"s/'\''/'\''\\\\'\'''\''/g;
1876	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1877      ;; #(
1878    *)
1879      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1880      ;;
1881    esac |
1882    sort
1883)
1884    echo
1885
1886    printf "%s\n" "## ----------------- ##
1887## Output variables. ##
1888## ----------------- ##"
1889    echo
1890    for ac_var in $ac_subst_vars
1891    do
1892      eval ac_val=\$$ac_var
1893      case $ac_val in
1894      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1895      esac
1896      printf "%s\n" "$ac_var='\''$ac_val'\''"
1897    done | sort
1898    echo
1899
1900    if test -n "$ac_subst_files"; then
1901      printf "%s\n" "## ------------------- ##
1902## File substitutions. ##
1903## ------------------- ##"
1904      echo
1905      for ac_var in $ac_subst_files
1906      do
1907	eval ac_val=\$$ac_var
1908	case $ac_val in
1909	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1910	esac
1911	printf "%s\n" "$ac_var='\''$ac_val'\''"
1912      done | sort
1913      echo
1914    fi
1915
1916    if test -s confdefs.h; then
1917      printf "%s\n" "## ----------- ##
1918## confdefs.h. ##
1919## ----------- ##"
1920      echo
1921      cat confdefs.h
1922      echo
1923    fi
1924    test "$ac_signal" != 0 &&
1925      printf "%s\n" "$as_me: caught signal $ac_signal"
1926    printf "%s\n" "$as_me: exit $exit_status"
1927  } >&5
1928  rm -f core *.core core.conftest.* &&
1929    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1930    exit $exit_status
1931' 0
1932for ac_signal in 1 2 13 15; do
1933  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1934done
1935ac_signal=0
1936
1937# confdefs.h avoids OS command line length limits that DEFS can exceed.
1938rm -f -r conftest* confdefs.h
1939
1940printf "%s\n" "/* confdefs.h */" > confdefs.h
1941
1942# Predefined preprocessor variables.
1943
1944printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1945
1946printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1947
1948printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1949
1950printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1951
1952printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1953
1954printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1955
1956
1957# Let the site file select an alternate cache file if it wants to.
1958# Prefer an explicitly selected file to automatically selected ones.
1959if test -n "$CONFIG_SITE"; then
1960  ac_site_files="$CONFIG_SITE"
1961elif test "x$prefix" != xNONE; then
1962  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1963else
1964  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1965fi
1966
1967for ac_site_file in $ac_site_files
1968do
1969  case $ac_site_file in #(
1970  */*) :
1971     ;; #(
1972  *) :
1973    ac_site_file=./$ac_site_file ;;
1974esac
1975  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1976    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1977printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1978    sed 's/^/| /' "$ac_site_file" >&5
1979    . "$ac_site_file" \
1980      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1981printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1982as_fn_error $? "failed to load site script $ac_site_file
1983See \`config.log' for more details" "$LINENO" 5; }
1984  fi
1985done
1986
1987if test -r "$cache_file"; then
1988  # Some versions of bash will fail to source /dev/null (special files
1989  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1990  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1991    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1992printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1993    case $cache_file in
1994      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1995      *)                      . "./$cache_file";;
1996    esac
1997  fi
1998else
1999  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2000printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2001  >$cache_file
2002fi
2003
2004# Test code for whether the C compiler supports C89 (global declarations)
2005ac_c_conftest_c89_globals='
2006/* Does the compiler advertise C89 conformance?
2007   Do not test the value of __STDC__, because some compilers set it to 0
2008   while being otherwise adequately conformant. */
2009#if !defined __STDC__
2010# error "Compiler does not advertise C89 conformance"
2011#endif
2012
2013#include <stddef.h>
2014#include <stdarg.h>
2015struct stat;
2016/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2017struct buf { int x; };
2018struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2019static char *e (p, i)
2020     char **p;
2021     int i;
2022{
2023  return p[i];
2024}
2025static char *f (char * (*g) (char **, int), char **p, ...)
2026{
2027  char *s;
2028  va_list v;
2029  va_start (v,p);
2030  s = g (p, va_arg (v,int));
2031  va_end (v);
2032  return s;
2033}
2034
2035/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2036   function prototypes and stuff, but not \xHH hex character constants.
2037   These do not provoke an error unfortunately, instead are silently treated
2038   as an "x".  The following induces an error, until -std is added to get
2039   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2040   array size at least.  It is necessary to write \x00 == 0 to get something
2041   that is true only with -std.  */
2042int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2043
2044/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2045   inside strings and character constants.  */
2046#define FOO(x) '\''x'\''
2047int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2048
2049int test (int i, double x);
2050struct s1 {int (*f) (int a);};
2051struct s2 {int (*f) (double a);};
2052int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2053               int, int);'
2054
2055# Test code for whether the C compiler supports C89 (body of main).
2056ac_c_conftest_c89_main='
2057ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2058'
2059
2060# Test code for whether the C compiler supports C99 (global declarations)
2061ac_c_conftest_c99_globals='
2062// Does the compiler advertise C99 conformance?
2063#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2064# error "Compiler does not advertise C99 conformance"
2065#endif
2066
2067#include <stdbool.h>
2068extern int puts (const char *);
2069extern int printf (const char *, ...);
2070extern int dprintf (int, const char *, ...);
2071extern void *malloc (size_t);
2072
2073// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2074// dprintf is used instead of fprintf to avoid needing to declare
2075// FILE and stderr.
2076#define debug(...) dprintf (2, __VA_ARGS__)
2077#define showlist(...) puts (#__VA_ARGS__)
2078#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2079static void
2080test_varargs_macros (void)
2081{
2082  int x = 1234;
2083  int y = 5678;
2084  debug ("Flag");
2085  debug ("X = %d\n", x);
2086  showlist (The first, second, and third items.);
2087  report (x>y, "x is %d but y is %d", x, y);
2088}
2089
2090// Check long long types.
2091#define BIG64 18446744073709551615ull
2092#define BIG32 4294967295ul
2093#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2094#if !BIG_OK
2095  #error "your preprocessor is broken"
2096#endif
2097#if BIG_OK
2098#else
2099  #error "your preprocessor is broken"
2100#endif
2101static long long int bignum = -9223372036854775807LL;
2102static unsigned long long int ubignum = BIG64;
2103
2104struct incomplete_array
2105{
2106  int datasize;
2107  double data[];
2108};
2109
2110struct named_init {
2111  int number;
2112  const wchar_t *name;
2113  double average;
2114};
2115
2116typedef const char *ccp;
2117
2118static inline int
2119test_restrict (ccp restrict text)
2120{
2121  // See if C++-style comments work.
2122  // Iterate through items via the restricted pointer.
2123  // Also check for declarations in for loops.
2124  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2125    continue;
2126  return 0;
2127}
2128
2129// Check varargs and va_copy.
2130static bool
2131test_varargs (const char *format, ...)
2132{
2133  va_list args;
2134  va_start (args, format);
2135  va_list args_copy;
2136  va_copy (args_copy, args);
2137
2138  const char *str = "";
2139  int number = 0;
2140  float fnumber = 0;
2141
2142  while (*format)
2143    {
2144      switch (*format++)
2145	{
2146	case '\''s'\'': // string
2147	  str = va_arg (args_copy, const char *);
2148	  break;
2149	case '\''d'\'': // int
2150	  number = va_arg (args_copy, int);
2151	  break;
2152	case '\''f'\'': // float
2153	  fnumber = va_arg (args_copy, double);
2154	  break;
2155	default:
2156	  break;
2157	}
2158    }
2159  va_end (args_copy);
2160  va_end (args);
2161
2162  return *str && number && fnumber;
2163}
2164'
2165
2166# Test code for whether the C compiler supports C99 (body of main).
2167ac_c_conftest_c99_main='
2168  // Check bool.
2169  _Bool success = false;
2170  success |= (argc != 0);
2171
2172  // Check restrict.
2173  if (test_restrict ("String literal") == 0)
2174    success = true;
2175  char *restrict newvar = "Another string";
2176
2177  // Check varargs.
2178  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2179  test_varargs_macros ();
2180
2181  // Check flexible array members.
2182  struct incomplete_array *ia =
2183    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2184  ia->datasize = 10;
2185  for (int i = 0; i < ia->datasize; ++i)
2186    ia->data[i] = i * 1.234;
2187
2188  // Check named initializers.
2189  struct named_init ni = {
2190    .number = 34,
2191    .name = L"Test wide string",
2192    .average = 543.34343,
2193  };
2194
2195  ni.number = 58;
2196
2197  int dynamic_array[ni.number];
2198  dynamic_array[0] = argv[0][0];
2199  dynamic_array[ni.number - 1] = 543;
2200
2201  // work around unused variable warnings
2202  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2203	 || dynamic_array[ni.number - 1] != 543);
2204'
2205
2206# Test code for whether the C compiler supports C11 (global declarations)
2207ac_c_conftest_c11_globals='
2208// Does the compiler advertise C11 conformance?
2209#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2210# error "Compiler does not advertise C11 conformance"
2211#endif
2212
2213// Check _Alignas.
2214char _Alignas (double) aligned_as_double;
2215char _Alignas (0) no_special_alignment;
2216extern char aligned_as_int;
2217char _Alignas (0) _Alignas (int) aligned_as_int;
2218
2219// Check _Alignof.
2220enum
2221{
2222  int_alignment = _Alignof (int),
2223  int_array_alignment = _Alignof (int[100]),
2224  char_alignment = _Alignof (char)
2225};
2226_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2227
2228// Check _Noreturn.
2229int _Noreturn does_not_return (void) { for (;;) continue; }
2230
2231// Check _Static_assert.
2232struct test_static_assert
2233{
2234  int x;
2235  _Static_assert (sizeof (int) <= sizeof (long int),
2236                  "_Static_assert does not work in struct");
2237  long int y;
2238};
2239
2240// Check UTF-8 literals.
2241#define u8 syntax error!
2242char const utf8_literal[] = u8"happens to be ASCII" "another string";
2243
2244// Check duplicate typedefs.
2245typedef long *long_ptr;
2246typedef long int *long_ptr;
2247typedef long_ptr long_ptr;
2248
2249// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2250struct anonymous
2251{
2252  union {
2253    struct { int i; int j; };
2254    struct { int k; long int l; } w;
2255  };
2256  int m;
2257} v1;
2258'
2259
2260# Test code for whether the C compiler supports C11 (body of main).
2261ac_c_conftest_c11_main='
2262  _Static_assert ((offsetof (struct anonymous, i)
2263		   == offsetof (struct anonymous, w.k)),
2264		  "Anonymous union alignment botch");
2265  v1.i = 2;
2266  v1.w.k = 5;
2267  ok |= v1.i != 5;
2268'
2269
2270# Test code for whether the C compiler supports C11 (complete).
2271ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2272${ac_c_conftest_c99_globals}
2273${ac_c_conftest_c11_globals}
2274
2275int
2276main (int argc, char **argv)
2277{
2278  int ok = 0;
2279  ${ac_c_conftest_c89_main}
2280  ${ac_c_conftest_c99_main}
2281  ${ac_c_conftest_c11_main}
2282  return ok;
2283}
2284"
2285
2286# Test code for whether the C compiler supports C99 (complete).
2287ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2288${ac_c_conftest_c99_globals}
2289
2290int
2291main (int argc, char **argv)
2292{
2293  int ok = 0;
2294  ${ac_c_conftest_c89_main}
2295  ${ac_c_conftest_c99_main}
2296  return ok;
2297}
2298"
2299
2300# Test code for whether the C compiler supports C89 (complete).
2301ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2302
2303int
2304main (int argc, char **argv)
2305{
2306  int ok = 0;
2307  ${ac_c_conftest_c89_main}
2308  return ok;
2309}
2310"
2311
2312as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2313as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2314as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2315as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2316as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2317as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2318as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2319as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2320as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2321
2322# Auxiliary files required by this configure script.
2323ac_aux_files="config.guess config.sub compile missing install-sh"
2324
2325# Locations in which to look for auxiliary files.
2326ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2327
2328# Search for a directory containing all of the required auxiliary files,
2329# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2330# If we don't find one directory that contains all the files we need,
2331# we report the set of missing files from the *first* directory in
2332# $ac_aux_dir_candidates and give up.
2333ac_missing_aux_files=""
2334ac_first_candidate=:
2335printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337as_found=false
2338for as_dir in $ac_aux_dir_candidates
2339do
2340  IFS=$as_save_IFS
2341  case $as_dir in #(((
2342    '') as_dir=./ ;;
2343    */) ;;
2344    *) as_dir=$as_dir/ ;;
2345  esac
2346  as_found=:
2347
2348  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2349  ac_aux_dir_found=yes
2350  ac_install_sh=
2351  for ac_aux in $ac_aux_files
2352  do
2353    # As a special case, if "install-sh" is required, that requirement
2354    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2355    # and $ac_install_sh is set appropriately for whichever one is found.
2356    if test x"$ac_aux" = x"install-sh"
2357    then
2358      if test -f "${as_dir}install-sh"; then
2359        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2360        ac_install_sh="${as_dir}install-sh -c"
2361      elif test -f "${as_dir}install.sh"; then
2362        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2363        ac_install_sh="${as_dir}install.sh -c"
2364      elif test -f "${as_dir}shtool"; then
2365        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2366        ac_install_sh="${as_dir}shtool install -c"
2367      else
2368        ac_aux_dir_found=no
2369        if $ac_first_candidate; then
2370          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2371        else
2372          break
2373        fi
2374      fi
2375    else
2376      if test -f "${as_dir}${ac_aux}"; then
2377        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2378      else
2379        ac_aux_dir_found=no
2380        if $ac_first_candidate; then
2381          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2382        else
2383          break
2384        fi
2385      fi
2386    fi
2387  done
2388  if test "$ac_aux_dir_found" = yes; then
2389    ac_aux_dir="$as_dir"
2390    break
2391  fi
2392  ac_first_candidate=false
2393
2394  as_found=false
2395done
2396IFS=$as_save_IFS
2397if $as_found
2398then :
2399
2400else $as_nop
2401  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2402fi
2403
2404
2405# These three variables are undocumented and unsupported,
2406# and are intended to be withdrawn in a future Autoconf release.
2407# They can cause serious problems if a builder's source tree is in a directory
2408# whose full name contains unusual characters.
2409if test -f "${ac_aux_dir}config.guess"; then
2410  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2411fi
2412if test -f "${ac_aux_dir}config.sub"; then
2413  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2414fi
2415if test -f "$ac_aux_dir/configure"; then
2416  ac_configure="$SHELL ${ac_aux_dir}configure"
2417fi
2418
2419# Check that the precious variables saved in the cache have kept the same
2420# value.
2421ac_cache_corrupted=false
2422for ac_var in $ac_precious_vars; do
2423  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2424  eval ac_new_set=\$ac_env_${ac_var}_set
2425  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2426  eval ac_new_val=\$ac_env_${ac_var}_value
2427  case $ac_old_set,$ac_new_set in
2428    set,)
2429      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2430printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2431      ac_cache_corrupted=: ;;
2432    ,set)
2433      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2434printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2435      ac_cache_corrupted=: ;;
2436    ,);;
2437    *)
2438      if test "x$ac_old_val" != "x$ac_new_val"; then
2439	# differences in whitespace do not lead to failure.
2440	ac_old_val_w=`echo x $ac_old_val`
2441	ac_new_val_w=`echo x $ac_new_val`
2442	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2443	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2444printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2445	  ac_cache_corrupted=:
2446	else
2447	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2448printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2449	  eval $ac_var=\$ac_old_val
2450	fi
2451	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2452printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2453	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2454printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2455      fi;;
2456  esac
2457  # Pass precious variables to config.status.
2458  if test "$ac_new_set" = set; then
2459    case $ac_new_val in
2460    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2461    *) ac_arg=$ac_var=$ac_new_val ;;
2462    esac
2463    case " $ac_configure_args " in
2464      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2465      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2466    esac
2467  fi
2468done
2469if $ac_cache_corrupted; then
2470  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2471printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2473printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2474  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2475	    and start over" "$LINENO" 5
2476fi
2477## -------------------- ##
2478## Main body of script. ##
2479## -------------------- ##
2480
2481ac_ext=c
2482ac_cpp='$CPP $CPPFLAGS'
2483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2485ac_compiler_gnu=$ac_cv_c_compiler_gnu
2486
2487
2488
2489ac_config_headers="$ac_config_headers config.h"
2490
2491
2492# Initialize Automake
2493am__api_version='1.16'
2494
2495
2496
2497  # Find a good install program.  We prefer a C program (faster),
2498# so one script is as good as another.  But avoid the broken or
2499# incompatible versions:
2500# SysV /etc/install, /usr/sbin/install
2501# SunOS /usr/etc/install
2502# IRIX /sbin/install
2503# AIX /bin/install
2504# AmigaOS /C/install, which installs bootblocks on floppy discs
2505# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2506# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2507# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2508# OS/2's system install, which has a completely different semantic
2509# ./install, which can be erroneously created by make from ./install.sh.
2510# Reject install programs that cannot install multiple files.
2511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2512printf %s "checking for a BSD-compatible install... " >&6; }
2513if test -z "$INSTALL"; then
2514if test ${ac_cv_path_install+y}
2515then :
2516  printf %s "(cached) " >&6
2517else $as_nop
2518  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519for as_dir in $PATH
2520do
2521  IFS=$as_save_IFS
2522  case $as_dir in #(((
2523    '') as_dir=./ ;;
2524    */) ;;
2525    *) as_dir=$as_dir/ ;;
2526  esac
2527    # Account for fact that we put trailing slashes in our PATH walk.
2528case $as_dir in #((
2529  ./ | /[cC]/* | \
2530  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2531  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2532  /usr/ucb/* ) ;;
2533  *)
2534    # OSF1 and SCO ODT 3.0 have their own names for install.
2535    # Don't use installbsd from OSF since it installs stuff as root
2536    # by default.
2537    for ac_prog in ginstall scoinst install; do
2538      for ac_exec_ext in '' $ac_executable_extensions; do
2539	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2540	  if test $ac_prog = install &&
2541	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2542	    # AIX install.  It has an incompatible calling convention.
2543	    :
2544	  elif test $ac_prog = install &&
2545	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2546	    # program-specific install script used by HP pwplus--don't use.
2547	    :
2548	  else
2549	    rm -rf conftest.one conftest.two conftest.dir
2550	    echo one > conftest.one
2551	    echo two > conftest.two
2552	    mkdir conftest.dir
2553	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2554	      test -s conftest.one && test -s conftest.two &&
2555	      test -s conftest.dir/conftest.one &&
2556	      test -s conftest.dir/conftest.two
2557	    then
2558	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2559	      break 3
2560	    fi
2561	  fi
2562	fi
2563      done
2564    done
2565    ;;
2566esac
2567
2568  done
2569IFS=$as_save_IFS
2570
2571rm -rf conftest.one conftest.two conftest.dir
2572
2573fi
2574  if test ${ac_cv_path_install+y}; then
2575    INSTALL=$ac_cv_path_install
2576  else
2577    # As a last resort, use the slow shell script.  Don't cache a
2578    # value for INSTALL within a source directory, because that will
2579    # break other packages using the cache if that directory is
2580    # removed, or if the value is a relative name.
2581    INSTALL=$ac_install_sh
2582  fi
2583fi
2584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2585printf "%s\n" "$INSTALL" >&6; }
2586
2587# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2588# It thinks the first close brace ends the variable substitution.
2589test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2590
2591test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2592
2593test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2594
2595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2596printf %s "checking whether build environment is sane... " >&6; }
2597# Reject unsafe characters in $srcdir or the absolute working directory
2598# name.  Accept space and tab only in the latter.
2599am_lf='
2600'
2601case `pwd` in
2602  *[\\\"\#\$\&\'\`$am_lf]*)
2603    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2604esac
2605case $srcdir in
2606  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2607    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2608esac
2609
2610# Do 'set' in a subshell so we don't clobber the current shell's
2611# arguments.  Must try -L first in case configure is actually a
2612# symlink; some systems play weird games with the mod time of symlinks
2613# (eg FreeBSD returns the mod time of the symlink's containing
2614# directory).
2615if (
2616   am_has_slept=no
2617   for am_try in 1 2; do
2618     echo "timestamp, slept: $am_has_slept" > conftest.file
2619     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2620     if test "$*" = "X"; then
2621	# -L didn't work.
2622	set X `ls -t "$srcdir/configure" conftest.file`
2623     fi
2624     if test "$*" != "X $srcdir/configure conftest.file" \
2625	&& test "$*" != "X conftest.file $srcdir/configure"; then
2626
2627	# If neither matched, then we have a broken ls.  This can happen
2628	# if, for instance, CONFIG_SHELL is bash and it inherits a
2629	# broken ls alias from the environment.  This has actually
2630	# happened.  Such a system could not be considered "sane".
2631	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2632  alias in your environment" "$LINENO" 5
2633     fi
2634     if test "$2" = conftest.file || test $am_try -eq 2; then
2635       break
2636     fi
2637     # Just in case.
2638     sleep 1
2639     am_has_slept=yes
2640   done
2641   test "$2" = conftest.file
2642   )
2643then
2644   # Ok.
2645   :
2646else
2647   as_fn_error $? "newly created file is older than distributed files!
2648Check your system clock" "$LINENO" 5
2649fi
2650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2651printf "%s\n" "yes" >&6; }
2652# If we didn't sleep, we still need to ensure time stamps of config.status and
2653# generated files are strictly newer.
2654am_sleep_pid=
2655if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2656  ( sleep 1 ) &
2657  am_sleep_pid=$!
2658fi
2659
2660rm -f conftest.file
2661
2662test "$program_prefix" != NONE &&
2663  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2664# Use a double $ so make ignores it.
2665test "$program_suffix" != NONE &&
2666  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2667# Double any \ or $.
2668# By default was `s,x,x', remove it if useless.
2669ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2670program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2671
2672
2673# Expand $ac_aux_dir to an absolute path.
2674am_aux_dir=`cd "$ac_aux_dir" && pwd`
2675
2676
2677  if test x"${MISSING+set}" != xset; then
2678  MISSING="\${SHELL} '$am_aux_dir/missing'"
2679fi
2680# Use eval to expand $SHELL
2681if eval "$MISSING --is-lightweight"; then
2682  am_missing_run="$MISSING "
2683else
2684  am_missing_run=
2685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2686printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2687fi
2688
2689if test x"${install_sh+set}" != xset; then
2690  case $am_aux_dir in
2691  *\ * | *\	*)
2692    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2693  *)
2694    install_sh="\${SHELL} $am_aux_dir/install-sh"
2695  esac
2696fi
2697
2698# Installed binaries are usually stripped using 'strip' when the user
2699# run "make install-strip".  However 'strip' might not be the right
2700# tool to use in cross-compilation environments, therefore Automake
2701# will honor the 'STRIP' environment variable to overrule this program.
2702if test "$cross_compiling" != no; then
2703  if test -n "$ac_tool_prefix"; then
2704  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2705set dummy ${ac_tool_prefix}strip; ac_word=$2
2706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707printf %s "checking for $ac_word... " >&6; }
2708if test ${ac_cv_prog_STRIP+y}
2709then :
2710  printf %s "(cached) " >&6
2711else $as_nop
2712  if test -n "$STRIP"; then
2713  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2714else
2715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716for as_dir in $PATH
2717do
2718  IFS=$as_save_IFS
2719  case $as_dir in #(((
2720    '') as_dir=./ ;;
2721    */) ;;
2722    *) as_dir=$as_dir/ ;;
2723  esac
2724    for ac_exec_ext in '' $ac_executable_extensions; do
2725  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2726    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2727    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2728    break 2
2729  fi
2730done
2731  done
2732IFS=$as_save_IFS
2733
2734fi
2735fi
2736STRIP=$ac_cv_prog_STRIP
2737if test -n "$STRIP"; then
2738  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2739printf "%s\n" "$STRIP" >&6; }
2740else
2741  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742printf "%s\n" "no" >&6; }
2743fi
2744
2745
2746fi
2747if test -z "$ac_cv_prog_STRIP"; then
2748  ac_ct_STRIP=$STRIP
2749  # Extract the first word of "strip", so it can be a program name with args.
2750set dummy strip; ac_word=$2
2751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752printf %s "checking for $ac_word... " >&6; }
2753if test ${ac_cv_prog_ac_ct_STRIP+y}
2754then :
2755  printf %s "(cached) " >&6
2756else $as_nop
2757  if test -n "$ac_ct_STRIP"; then
2758  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2759else
2760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761for as_dir in $PATH
2762do
2763  IFS=$as_save_IFS
2764  case $as_dir in #(((
2765    '') as_dir=./ ;;
2766    */) ;;
2767    *) as_dir=$as_dir/ ;;
2768  esac
2769    for ac_exec_ext in '' $ac_executable_extensions; do
2770  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2771    ac_cv_prog_ac_ct_STRIP="strip"
2772    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2773    break 2
2774  fi
2775done
2776  done
2777IFS=$as_save_IFS
2778
2779fi
2780fi
2781ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2782if test -n "$ac_ct_STRIP"; then
2783  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2784printf "%s\n" "$ac_ct_STRIP" >&6; }
2785else
2786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787printf "%s\n" "no" >&6; }
2788fi
2789
2790  if test "x$ac_ct_STRIP" = x; then
2791    STRIP=":"
2792  else
2793    case $cross_compiling:$ac_tool_warned in
2794yes:)
2795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2796printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2797ac_tool_warned=yes ;;
2798esac
2799    STRIP=$ac_ct_STRIP
2800  fi
2801else
2802  STRIP="$ac_cv_prog_STRIP"
2803fi
2804
2805fi
2806INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2807
2808
2809  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2810printf %s "checking for a race-free mkdir -p... " >&6; }
2811if test -z "$MKDIR_P"; then
2812  if test ${ac_cv_path_mkdir+y}
2813then :
2814  printf %s "(cached) " >&6
2815else $as_nop
2816  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2818do
2819  IFS=$as_save_IFS
2820  case $as_dir in #(((
2821    '') as_dir=./ ;;
2822    */) ;;
2823    *) as_dir=$as_dir/ ;;
2824  esac
2825    for ac_prog in mkdir gmkdir; do
2826	 for ac_exec_ext in '' $ac_executable_extensions; do
2827	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2828	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2829	     'mkdir ('*'coreutils) '* | \
2830	     'BusyBox '* | \
2831	     'mkdir (fileutils) '4.1*)
2832	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2833	       break 3;;
2834	   esac
2835	 done
2836       done
2837  done
2838IFS=$as_save_IFS
2839
2840fi
2841
2842  test -d ./--version && rmdir ./--version
2843  if test ${ac_cv_path_mkdir+y}; then
2844    MKDIR_P="$ac_cv_path_mkdir -p"
2845  else
2846    # As a last resort, use the slow shell script.  Don't cache a
2847    # value for MKDIR_P within a source directory, because that will
2848    # break other packages using the cache if that directory is
2849    # removed, or if the value is a relative name.
2850    MKDIR_P="$ac_install_sh -d"
2851  fi
2852fi
2853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2854printf "%s\n" "$MKDIR_P" >&6; }
2855
2856for ac_prog in gawk mawk nawk awk
2857do
2858  # Extract the first word of "$ac_prog", so it can be a program name with args.
2859set dummy $ac_prog; ac_word=$2
2860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861printf %s "checking for $ac_word... " >&6; }
2862if test ${ac_cv_prog_AWK+y}
2863then :
2864  printf %s "(cached) " >&6
2865else $as_nop
2866  if test -n "$AWK"; then
2867  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2868else
2869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870for as_dir in $PATH
2871do
2872  IFS=$as_save_IFS
2873  case $as_dir in #(((
2874    '') as_dir=./ ;;
2875    */) ;;
2876    *) as_dir=$as_dir/ ;;
2877  esac
2878    for ac_exec_ext in '' $ac_executable_extensions; do
2879  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2880    ac_cv_prog_AWK="$ac_prog"
2881    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2882    break 2
2883  fi
2884done
2885  done
2886IFS=$as_save_IFS
2887
2888fi
2889fi
2890AWK=$ac_cv_prog_AWK
2891if test -n "$AWK"; then
2892  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2893printf "%s\n" "$AWK" >&6; }
2894else
2895  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896printf "%s\n" "no" >&6; }
2897fi
2898
2899
2900  test -n "$AWK" && break
2901done
2902
2903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2904printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2905set x ${MAKE-make}
2906ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2907if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2908then :
2909  printf %s "(cached) " >&6
2910else $as_nop
2911  cat >conftest.make <<\_ACEOF
2912SHELL = /bin/sh
2913all:
2914	@echo '@@@%%%=$(MAKE)=@@@%%%'
2915_ACEOF
2916# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2917case `${MAKE-make} -f conftest.make 2>/dev/null` in
2918  *@@@%%%=?*=@@@%%%*)
2919    eval ac_cv_prog_make_${ac_make}_set=yes;;
2920  *)
2921    eval ac_cv_prog_make_${ac_make}_set=no;;
2922esac
2923rm -f conftest.make
2924fi
2925if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2927printf "%s\n" "yes" >&6; }
2928  SET_MAKE=
2929else
2930  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931printf "%s\n" "no" >&6; }
2932  SET_MAKE="MAKE=${MAKE-make}"
2933fi
2934
2935rm -rf .tst 2>/dev/null
2936mkdir .tst 2>/dev/null
2937if test -d .tst; then
2938  am__leading_dot=.
2939else
2940  am__leading_dot=_
2941fi
2942rmdir .tst 2>/dev/null
2943
2944# Check whether --enable-silent-rules was given.
2945if test ${enable_silent_rules+y}
2946then :
2947  enableval=$enable_silent_rules;
2948fi
2949
2950case $enable_silent_rules in # (((
2951  yes) AM_DEFAULT_VERBOSITY=0;;
2952   no) AM_DEFAULT_VERBOSITY=1;;
2953    *) AM_DEFAULT_VERBOSITY=1;;
2954esac
2955am_make=${MAKE-make}
2956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2957printf %s "checking whether $am_make supports nested variables... " >&6; }
2958if test ${am_cv_make_support_nested_variables+y}
2959then :
2960  printf %s "(cached) " >&6
2961else $as_nop
2962  if printf "%s\n" 'TRUE=$(BAR$(V))
2963BAR0=false
2964BAR1=true
2965V=1
2966am__doit:
2967	@$(TRUE)
2968.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2969  am_cv_make_support_nested_variables=yes
2970else
2971  am_cv_make_support_nested_variables=no
2972fi
2973fi
2974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2975printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2976if test $am_cv_make_support_nested_variables = yes; then
2977    AM_V='$(V)'
2978  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2979else
2980  AM_V=$AM_DEFAULT_VERBOSITY
2981  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2982fi
2983AM_BACKSLASH='\'
2984
2985if test "`cd $srcdir && pwd`" != "`pwd`"; then
2986  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2987  # is not polluted with repeated "-I."
2988  am__isrc=' -I$(srcdir)'
2989  # test to see if srcdir already configured
2990  if test -f $srcdir/config.status; then
2991    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2992  fi
2993fi
2994
2995# test whether we have cygpath
2996if test -z "$CYGPATH_W"; then
2997  if (cygpath --version) >/dev/null 2>/dev/null; then
2998    CYGPATH_W='cygpath -w'
2999  else
3000    CYGPATH_W=echo
3001  fi
3002fi
3003
3004
3005# Define the identity of the package.
3006 PACKAGE='font-util'
3007 VERSION='1.4.1'
3008
3009
3010printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3011
3012
3013printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3014
3015# Some tools Automake needs.
3016
3017ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3018
3019
3020AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3021
3022
3023AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3024
3025
3026AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3027
3028
3029MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3030
3031# For better backward compatibility.  To be removed once Automake 1.9.x
3032# dies out for good.  For more background, see:
3033# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3034# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3035mkdir_p='$(MKDIR_P)'
3036
3037# We need awk for the "check" target (and possibly the TAP driver).  The
3038# system "awk" is bad on some platforms.
3039# Always define AMTAR for backward compatibility.  Yes, it's still used
3040# in the wild :-(  We should find a proper way to deprecate it ...
3041AMTAR='$${TAR-tar}'
3042
3043
3044# We'll loop over all known methods to create a tar archive until one works.
3045_am_tools='gnutar  pax cpio none'
3046
3047am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3048
3049
3050
3051
3052
3053# Variables for tags utilities; see am/tags.am
3054if test -z "$CTAGS"; then
3055  CTAGS=ctags
3056fi
3057
3058if test -z "$ETAGS"; then
3059  ETAGS=etags
3060fi
3061
3062if test -z "$CSCOPE"; then
3063  CSCOPE=cscope
3064fi
3065
3066
3067
3068# POSIX will say in a future version that running "rm -f" with no argument
3069# is OK; and we want to be able to make that assumption in our Makefile
3070# recipes.  So use an aggressive probe to check that the usage we want is
3071# actually supported "in the wild" to an acceptable degree.
3072# See automake bug#10828.
3073# To make any issue more visible, cause the running configure to be aborted
3074# by default if the 'rm' program in use doesn't match our expectations; the
3075# user can still override this though.
3076if rm -f && rm -fr && rm -rf; then : OK; else
3077  cat >&2 <<'END'
3078Oops!
3079
3080Your 'rm' program seems unable to run without file operands specified
3081on the command line, even when the '-f' option is present.  This is contrary
3082to the behaviour of most rm programs out there, and not conforming with
3083the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3084
3085Please tell bug-automake@gnu.org about your system, including the value
3086of your $PATH and any error possibly output before this message.  This
3087can help us improve future automake versions.
3088
3089END
3090  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3091    echo 'Configuration will proceed anyway, since you have set the' >&2
3092    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3093    echo >&2
3094  else
3095    cat >&2 <<'END'
3096Aborting the configuration process, to ensure you take notice of the issue.
3097
3098You can download and install GNU coreutils to get an 'rm' implementation
3099that behaves properly: <https://www.gnu.org/software/coreutils/>.
3100
3101If you want to complete the configuration process using your problematic
3102'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3103to "yes", and re-run configure.
3104
3105END
3106    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3107  fi
3108fi
3109
3110
3111# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132DEPDIR="${am__leading_dot}deps"
3133
3134ac_config_commands="$ac_config_commands depfiles"
3135
3136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3137printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3138cat > confinc.mk << 'END'
3139am__doit:
3140	@echo this is the am__doit target >confinc.out
3141.PHONY: am__doit
3142END
3143am__include="#"
3144am__quote=
3145# BSD make does it like this.
3146echo '.include "confinc.mk" # ignored' > confmf.BSD
3147# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3148echo 'include confinc.mk # ignored' > confmf.GNU
3149_am_result=no
3150for s in GNU BSD; do
3151  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3152   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3153   ac_status=$?
3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155   (exit $ac_status); }
3156  case $?:`cat confinc.out 2>/dev/null` in #(
3157  '0:this is the am__doit target') :
3158    case $s in #(
3159  BSD) :
3160    am__include='.include' am__quote='"' ;; #(
3161  *) :
3162    am__include='include' am__quote='' ;;
3163esac ;; #(
3164  *) :
3165     ;;
3166esac
3167  if test "$am__include" != "#"; then
3168    _am_result="yes ($s style)"
3169    break
3170  fi
3171done
3172rm -f confinc.* confmf.*
3173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3174printf "%s\n" "${_am_result}" >&6; }
3175
3176# Check whether --enable-dependency-tracking was given.
3177if test ${enable_dependency_tracking+y}
3178then :
3179  enableval=$enable_dependency_tracking;
3180fi
3181
3182if test "x$enable_dependency_tracking" != xno; then
3183  am_depcomp="$ac_aux_dir/depcomp"
3184  AMDEPBACKSLASH='\'
3185  am__nodep='_no'
3186fi
3187 if test "x$enable_dependency_tracking" != xno; then
3188  AMDEP_TRUE=
3189  AMDEP_FALSE='#'
3190else
3191  AMDEP_TRUE='#'
3192  AMDEP_FALSE=
3193fi
3194
3195
3196ac_ext=c
3197ac_cpp='$CPP $CPPFLAGS'
3198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201if test -n "$ac_tool_prefix"; then
3202  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3203set dummy ${ac_tool_prefix}gcc; ac_word=$2
3204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205printf %s "checking for $ac_word... " >&6; }
3206if test ${ac_cv_prog_CC+y}
3207then :
3208  printf %s "(cached) " >&6
3209else $as_nop
3210  if test -n "$CC"; then
3211  ac_cv_prog_CC="$CC" # Let the user override the test.
3212else
3213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214for as_dir in $PATH
3215do
3216  IFS=$as_save_IFS
3217  case $as_dir in #(((
3218    '') as_dir=./ ;;
3219    */) ;;
3220    *) as_dir=$as_dir/ ;;
3221  esac
3222    for ac_exec_ext in '' $ac_executable_extensions; do
3223  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3224    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3225    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3226    break 2
3227  fi
3228done
3229  done
3230IFS=$as_save_IFS
3231
3232fi
3233fi
3234CC=$ac_cv_prog_CC
3235if test -n "$CC"; then
3236  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3237printf "%s\n" "$CC" >&6; }
3238else
3239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240printf "%s\n" "no" >&6; }
3241fi
3242
3243
3244fi
3245if test -z "$ac_cv_prog_CC"; then
3246  ac_ct_CC=$CC
3247  # Extract the first word of "gcc", so it can be a program name with args.
3248set dummy gcc; ac_word=$2
3249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250printf %s "checking for $ac_word... " >&6; }
3251if test ${ac_cv_prog_ac_ct_CC+y}
3252then :
3253  printf %s "(cached) " >&6
3254else $as_nop
3255  if test -n "$ac_ct_CC"; then
3256  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3257else
3258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259for as_dir in $PATH
3260do
3261  IFS=$as_save_IFS
3262  case $as_dir in #(((
3263    '') as_dir=./ ;;
3264    */) ;;
3265    *) as_dir=$as_dir/ ;;
3266  esac
3267    for ac_exec_ext in '' $ac_executable_extensions; do
3268  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3269    ac_cv_prog_ac_ct_CC="gcc"
3270    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3271    break 2
3272  fi
3273done
3274  done
3275IFS=$as_save_IFS
3276
3277fi
3278fi
3279ac_ct_CC=$ac_cv_prog_ac_ct_CC
3280if test -n "$ac_ct_CC"; then
3281  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3282printf "%s\n" "$ac_ct_CC" >&6; }
3283else
3284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285printf "%s\n" "no" >&6; }
3286fi
3287
3288  if test "x$ac_ct_CC" = x; then
3289    CC=""
3290  else
3291    case $cross_compiling:$ac_tool_warned in
3292yes:)
3293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3294printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3295ac_tool_warned=yes ;;
3296esac
3297    CC=$ac_ct_CC
3298  fi
3299else
3300  CC="$ac_cv_prog_CC"
3301fi
3302
3303if test -z "$CC"; then
3304          if test -n "$ac_tool_prefix"; then
3305    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3306set dummy ${ac_tool_prefix}cc; ac_word=$2
3307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308printf %s "checking for $ac_word... " >&6; }
3309if test ${ac_cv_prog_CC+y}
3310then :
3311  printf %s "(cached) " >&6
3312else $as_nop
3313  if test -n "$CC"; then
3314  ac_cv_prog_CC="$CC" # Let the user override the test.
3315else
3316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317for as_dir in $PATH
3318do
3319  IFS=$as_save_IFS
3320  case $as_dir in #(((
3321    '') as_dir=./ ;;
3322    */) ;;
3323    *) as_dir=$as_dir/ ;;
3324  esac
3325    for ac_exec_ext in '' $ac_executable_extensions; do
3326  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3327    ac_cv_prog_CC="${ac_tool_prefix}cc"
3328    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3329    break 2
3330  fi
3331done
3332  done
3333IFS=$as_save_IFS
3334
3335fi
3336fi
3337CC=$ac_cv_prog_CC
3338if test -n "$CC"; then
3339  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3340printf "%s\n" "$CC" >&6; }
3341else
3342  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343printf "%s\n" "no" >&6; }
3344fi
3345
3346
3347  fi
3348fi
3349if test -z "$CC"; then
3350  # Extract the first word of "cc", so it can be a program name with args.
3351set dummy cc; ac_word=$2
3352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353printf %s "checking for $ac_word... " >&6; }
3354if test ${ac_cv_prog_CC+y}
3355then :
3356  printf %s "(cached) " >&6
3357else $as_nop
3358  if test -n "$CC"; then
3359  ac_cv_prog_CC="$CC" # Let the user override the test.
3360else
3361  ac_prog_rejected=no
3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH
3364do
3365  IFS=$as_save_IFS
3366  case $as_dir in #(((
3367    '') as_dir=./ ;;
3368    */) ;;
3369    *) as_dir=$as_dir/ ;;
3370  esac
3371    for ac_exec_ext in '' $ac_executable_extensions; do
3372  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3373    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3374       ac_prog_rejected=yes
3375       continue
3376     fi
3377    ac_cv_prog_CC="cc"
3378    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3379    break 2
3380  fi
3381done
3382  done
3383IFS=$as_save_IFS
3384
3385if test $ac_prog_rejected = yes; then
3386  # We found a bogon in the path, so make sure we never use it.
3387  set dummy $ac_cv_prog_CC
3388  shift
3389  if test $# != 0; then
3390    # We chose a different compiler from the bogus one.
3391    # However, it has the same basename, so the bogon will be chosen
3392    # first if we set CC to just the basename; use the full file name.
3393    shift
3394    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3395  fi
3396fi
3397fi
3398fi
3399CC=$ac_cv_prog_CC
3400if test -n "$CC"; then
3401  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3402printf "%s\n" "$CC" >&6; }
3403else
3404  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405printf "%s\n" "no" >&6; }
3406fi
3407
3408
3409fi
3410if test -z "$CC"; then
3411  if test -n "$ac_tool_prefix"; then
3412  for ac_prog in cl.exe
3413  do
3414    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3415set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417printf %s "checking for $ac_word... " >&6; }
3418if test ${ac_cv_prog_CC+y}
3419then :
3420  printf %s "(cached) " >&6
3421else $as_nop
3422  if test -n "$CC"; then
3423  ac_cv_prog_CC="$CC" # Let the user override the test.
3424else
3425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426for as_dir in $PATH
3427do
3428  IFS=$as_save_IFS
3429  case $as_dir in #(((
3430    '') as_dir=./ ;;
3431    */) ;;
3432    *) as_dir=$as_dir/ ;;
3433  esac
3434    for ac_exec_ext in '' $ac_executable_extensions; do
3435  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3436    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3438    break 2
3439  fi
3440done
3441  done
3442IFS=$as_save_IFS
3443
3444fi
3445fi
3446CC=$ac_cv_prog_CC
3447if test -n "$CC"; then
3448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449printf "%s\n" "$CC" >&6; }
3450else
3451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452printf "%s\n" "no" >&6; }
3453fi
3454
3455
3456    test -n "$CC" && break
3457  done
3458fi
3459if test -z "$CC"; then
3460  ac_ct_CC=$CC
3461  for ac_prog in cl.exe
3462do
3463  # Extract the first word of "$ac_prog", so it can be a program name with args.
3464set dummy $ac_prog; ac_word=$2
3465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466printf %s "checking for $ac_word... " >&6; }
3467if test ${ac_cv_prog_ac_ct_CC+y}
3468then :
3469  printf %s "(cached) " >&6
3470else $as_nop
3471  if test -n "$ac_ct_CC"; then
3472  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3473else
3474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475for as_dir in $PATH
3476do
3477  IFS=$as_save_IFS
3478  case $as_dir in #(((
3479    '') as_dir=./ ;;
3480    */) ;;
3481    *) as_dir=$as_dir/ ;;
3482  esac
3483    for ac_exec_ext in '' $ac_executable_extensions; do
3484  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3485    ac_cv_prog_ac_ct_CC="$ac_prog"
3486    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3487    break 2
3488  fi
3489done
3490  done
3491IFS=$as_save_IFS
3492
3493fi
3494fi
3495ac_ct_CC=$ac_cv_prog_ac_ct_CC
3496if test -n "$ac_ct_CC"; then
3497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3498printf "%s\n" "$ac_ct_CC" >&6; }
3499else
3500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501printf "%s\n" "no" >&6; }
3502fi
3503
3504
3505  test -n "$ac_ct_CC" && break
3506done
3507
3508  if test "x$ac_ct_CC" = x; then
3509    CC=""
3510  else
3511    case $cross_compiling:$ac_tool_warned in
3512yes:)
3513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3514printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3515ac_tool_warned=yes ;;
3516esac
3517    CC=$ac_ct_CC
3518  fi
3519fi
3520
3521fi
3522if test -z "$CC"; then
3523  if test -n "$ac_tool_prefix"; then
3524  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3525set dummy ${ac_tool_prefix}clang; ac_word=$2
3526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527printf %s "checking for $ac_word... " >&6; }
3528if test ${ac_cv_prog_CC+y}
3529then :
3530  printf %s "(cached) " >&6
3531else $as_nop
3532  if test -n "$CC"; then
3533  ac_cv_prog_CC="$CC" # Let the user override the test.
3534else
3535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536for as_dir in $PATH
3537do
3538  IFS=$as_save_IFS
3539  case $as_dir in #(((
3540    '') as_dir=./ ;;
3541    */) ;;
3542    *) as_dir=$as_dir/ ;;
3543  esac
3544    for ac_exec_ext in '' $ac_executable_extensions; do
3545  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3546    ac_cv_prog_CC="${ac_tool_prefix}clang"
3547    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3548    break 2
3549  fi
3550done
3551  done
3552IFS=$as_save_IFS
3553
3554fi
3555fi
3556CC=$ac_cv_prog_CC
3557if test -n "$CC"; then
3558  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3559printf "%s\n" "$CC" >&6; }
3560else
3561  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562printf "%s\n" "no" >&6; }
3563fi
3564
3565
3566fi
3567if test -z "$ac_cv_prog_CC"; then
3568  ac_ct_CC=$CC
3569  # Extract the first word of "clang", so it can be a program name with args.
3570set dummy clang; ac_word=$2
3571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3572printf %s "checking for $ac_word... " >&6; }
3573if test ${ac_cv_prog_ac_ct_CC+y}
3574then :
3575  printf %s "(cached) " >&6
3576else $as_nop
3577  if test -n "$ac_ct_CC"; then
3578  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3579else
3580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581for as_dir in $PATH
3582do
3583  IFS=$as_save_IFS
3584  case $as_dir in #(((
3585    '') as_dir=./ ;;
3586    */) ;;
3587    *) as_dir=$as_dir/ ;;
3588  esac
3589    for ac_exec_ext in '' $ac_executable_extensions; do
3590  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3591    ac_cv_prog_ac_ct_CC="clang"
3592    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3593    break 2
3594  fi
3595done
3596  done
3597IFS=$as_save_IFS
3598
3599fi
3600fi
3601ac_ct_CC=$ac_cv_prog_ac_ct_CC
3602if test -n "$ac_ct_CC"; then
3603  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3604printf "%s\n" "$ac_ct_CC" >&6; }
3605else
3606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607printf "%s\n" "no" >&6; }
3608fi
3609
3610  if test "x$ac_ct_CC" = x; then
3611    CC=""
3612  else
3613    case $cross_compiling:$ac_tool_warned in
3614yes:)
3615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3616printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3617ac_tool_warned=yes ;;
3618esac
3619    CC=$ac_ct_CC
3620  fi
3621else
3622  CC="$ac_cv_prog_CC"
3623fi
3624
3625fi
3626
3627
3628test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3629printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3630as_fn_error $? "no acceptable C compiler found in \$PATH
3631See \`config.log' for more details" "$LINENO" 5; }
3632
3633# Provide some information about the compiler.
3634printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3635set X $ac_compile
3636ac_compiler=$2
3637for ac_option in --version -v -V -qversion -version; do
3638  { { ac_try="$ac_compiler $ac_option >&5"
3639case "(($ac_try" in
3640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641  *) ac_try_echo=$ac_try;;
3642esac
3643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644printf "%s\n" "$ac_try_echo"; } >&5
3645  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3646  ac_status=$?
3647  if test -s conftest.err; then
3648    sed '10a\
3649... rest of stderr output deleted ...
3650         10q' conftest.err >conftest.er1
3651    cat conftest.er1 >&5
3652  fi
3653  rm -f conftest.er1 conftest.err
3654  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655  test $ac_status = 0; }
3656done
3657
3658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659/* end confdefs.h.  */
3660
3661int
3662main (void)
3663{
3664
3665  ;
3666  return 0;
3667}
3668_ACEOF
3669ac_clean_files_save=$ac_clean_files
3670ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3671# Try to create an executable without -o first, disregard a.out.
3672# It will help us diagnose broken compilers, and finding out an intuition
3673# of exeext.
3674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3675printf %s "checking whether the C compiler works... " >&6; }
3676ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3677
3678# The possible output files:
3679ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3680
3681ac_rmfiles=
3682for ac_file in $ac_files
3683do
3684  case $ac_file in
3685    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3686    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3687  esac
3688done
3689rm -f $ac_rmfiles
3690
3691if { { ac_try="$ac_link_default"
3692case "(($ac_try" in
3693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694  *) ac_try_echo=$ac_try;;
3695esac
3696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3697printf "%s\n" "$ac_try_echo"; } >&5
3698  (eval "$ac_link_default") 2>&5
3699  ac_status=$?
3700  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701  test $ac_status = 0; }
3702then :
3703  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3704# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3705# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3706# so that the user can short-circuit this test for compilers unknown to
3707# Autoconf.
3708for ac_file in $ac_files ''
3709do
3710  test -f "$ac_file" || continue
3711  case $ac_file in
3712    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3713	;;
3714    [ab].out )
3715	# We found the default executable, but exeext='' is most
3716	# certainly right.
3717	break;;
3718    *.* )
3719	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3720	then :; else
3721	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3722	fi
3723	# We set ac_cv_exeext here because the later test for it is not
3724	# safe: cross compilers may not add the suffix if given an `-o'
3725	# argument, so we may need to know it at that point already.
3726	# Even if this section looks crufty: it has the advantage of
3727	# actually working.
3728	break;;
3729    * )
3730	break;;
3731  esac
3732done
3733test "$ac_cv_exeext" = no && ac_cv_exeext=
3734
3735else $as_nop
3736  ac_file=''
3737fi
3738if test -z "$ac_file"
3739then :
3740  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741printf "%s\n" "no" >&6; }
3742printf "%s\n" "$as_me: failed program was:" >&5
3743sed 's/^/| /' conftest.$ac_ext >&5
3744
3745{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3747as_fn_error 77 "C compiler cannot create executables
3748See \`config.log' for more details" "$LINENO" 5; }
3749else $as_nop
3750  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3751printf "%s\n" "yes" >&6; }
3752fi
3753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3754printf %s "checking for C compiler default output file name... " >&6; }
3755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3756printf "%s\n" "$ac_file" >&6; }
3757ac_exeext=$ac_cv_exeext
3758
3759rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3760ac_clean_files=$ac_clean_files_save
3761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3762printf %s "checking for suffix of executables... " >&6; }
3763if { { ac_try="$ac_link"
3764case "(($ac_try" in
3765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766  *) ac_try_echo=$ac_try;;
3767esac
3768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769printf "%s\n" "$ac_try_echo"; } >&5
3770  (eval "$ac_link") 2>&5
3771  ac_status=$?
3772  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773  test $ac_status = 0; }
3774then :
3775  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3776# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3777# work properly (i.e., refer to `conftest.exe'), while it won't with
3778# `rm'.
3779for ac_file in conftest.exe conftest conftest.*; do
3780  test -f "$ac_file" || continue
3781  case $ac_file in
3782    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3783    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3784	  break;;
3785    * ) break;;
3786  esac
3787done
3788else $as_nop
3789  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3790printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3791as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3792See \`config.log' for more details" "$LINENO" 5; }
3793fi
3794rm -f conftest conftest$ac_cv_exeext
3795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3796printf "%s\n" "$ac_cv_exeext" >&6; }
3797
3798rm -f conftest.$ac_ext
3799EXEEXT=$ac_cv_exeext
3800ac_exeext=$EXEEXT
3801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802/* end confdefs.h.  */
3803#include <stdio.h>
3804int
3805main (void)
3806{
3807FILE *f = fopen ("conftest.out", "w");
3808 return ferror (f) || fclose (f) != 0;
3809
3810  ;
3811  return 0;
3812}
3813_ACEOF
3814ac_clean_files="$ac_clean_files conftest.out"
3815# Check that the compiler produces executables we can run.  If not, either
3816# the compiler is broken, or we cross compile.
3817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3818printf %s "checking whether we are cross compiling... " >&6; }
3819if test "$cross_compiling" != yes; then
3820  { { ac_try="$ac_link"
3821case "(($ac_try" in
3822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823  *) ac_try_echo=$ac_try;;
3824esac
3825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826printf "%s\n" "$ac_try_echo"; } >&5
3827  (eval "$ac_link") 2>&5
3828  ac_status=$?
3829  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3830  test $ac_status = 0; }
3831  if { ac_try='./conftest$ac_cv_exeext'
3832  { { case "(($ac_try" in
3833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834  *) ac_try_echo=$ac_try;;
3835esac
3836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3837printf "%s\n" "$ac_try_echo"; } >&5
3838  (eval "$ac_try") 2>&5
3839  ac_status=$?
3840  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3841  test $ac_status = 0; }; }; then
3842    cross_compiling=no
3843  else
3844    if test "$cross_compiling" = maybe; then
3845	cross_compiling=yes
3846    else
3847	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3848printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3849as_fn_error 77 "cannot run C compiled programs.
3850If you meant to cross compile, use \`--host'.
3851See \`config.log' for more details" "$LINENO" 5; }
3852    fi
3853  fi
3854fi
3855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3856printf "%s\n" "$cross_compiling" >&6; }
3857
3858rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3859ac_clean_files=$ac_clean_files_save
3860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3861printf %s "checking for suffix of object files... " >&6; }
3862if test ${ac_cv_objext+y}
3863then :
3864  printf %s "(cached) " >&6
3865else $as_nop
3866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867/* end confdefs.h.  */
3868
3869int
3870main (void)
3871{
3872
3873  ;
3874  return 0;
3875}
3876_ACEOF
3877rm -f conftest.o conftest.obj
3878if { { ac_try="$ac_compile"
3879case "(($ac_try" in
3880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881  *) ac_try_echo=$ac_try;;
3882esac
3883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3884printf "%s\n" "$ac_try_echo"; } >&5
3885  (eval "$ac_compile") 2>&5
3886  ac_status=$?
3887  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3888  test $ac_status = 0; }
3889then :
3890  for ac_file in conftest.o conftest.obj conftest.*; do
3891  test -f "$ac_file" || continue;
3892  case $ac_file in
3893    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3894    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3895       break;;
3896  esac
3897done
3898else $as_nop
3899  printf "%s\n" "$as_me: failed program was:" >&5
3900sed 's/^/| /' conftest.$ac_ext >&5
3901
3902{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3904as_fn_error $? "cannot compute suffix of object files: cannot compile
3905See \`config.log' for more details" "$LINENO" 5; }
3906fi
3907rm -f conftest.$ac_cv_objext conftest.$ac_ext
3908fi
3909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3910printf "%s\n" "$ac_cv_objext" >&6; }
3911OBJEXT=$ac_cv_objext
3912ac_objext=$OBJEXT
3913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3914printf %s "checking whether the compiler supports GNU C... " >&6; }
3915if test ${ac_cv_c_compiler_gnu+y}
3916then :
3917  printf %s "(cached) " >&6
3918else $as_nop
3919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920/* end confdefs.h.  */
3921
3922int
3923main (void)
3924{
3925#ifndef __GNUC__
3926       choke me
3927#endif
3928
3929  ;
3930  return 0;
3931}
3932_ACEOF
3933if ac_fn_c_try_compile "$LINENO"
3934then :
3935  ac_compiler_gnu=yes
3936else $as_nop
3937  ac_compiler_gnu=no
3938fi
3939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3940ac_cv_c_compiler_gnu=$ac_compiler_gnu
3941
3942fi
3943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3944printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3945ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946
3947if test $ac_compiler_gnu = yes; then
3948  GCC=yes
3949else
3950  GCC=
3951fi
3952ac_test_CFLAGS=${CFLAGS+y}
3953ac_save_CFLAGS=$CFLAGS
3954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3955printf %s "checking whether $CC accepts -g... " >&6; }
3956if test ${ac_cv_prog_cc_g+y}
3957then :
3958  printf %s "(cached) " >&6
3959else $as_nop
3960  ac_save_c_werror_flag=$ac_c_werror_flag
3961   ac_c_werror_flag=yes
3962   ac_cv_prog_cc_g=no
3963   CFLAGS="-g"
3964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965/* end confdefs.h.  */
3966
3967int
3968main (void)
3969{
3970
3971  ;
3972  return 0;
3973}
3974_ACEOF
3975if ac_fn_c_try_compile "$LINENO"
3976then :
3977  ac_cv_prog_cc_g=yes
3978else $as_nop
3979  CFLAGS=""
3980      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981/* end confdefs.h.  */
3982
3983int
3984main (void)
3985{
3986
3987  ;
3988  return 0;
3989}
3990_ACEOF
3991if ac_fn_c_try_compile "$LINENO"
3992then :
3993
3994else $as_nop
3995  ac_c_werror_flag=$ac_save_c_werror_flag
3996	 CFLAGS="-g"
3997	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998/* end confdefs.h.  */
3999
4000int
4001main (void)
4002{
4003
4004  ;
4005  return 0;
4006}
4007_ACEOF
4008if ac_fn_c_try_compile "$LINENO"
4009then :
4010  ac_cv_prog_cc_g=yes
4011fi
4012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4013fi
4014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4015fi
4016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4017   ac_c_werror_flag=$ac_save_c_werror_flag
4018fi
4019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4020printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4021if test $ac_test_CFLAGS; then
4022  CFLAGS=$ac_save_CFLAGS
4023elif test $ac_cv_prog_cc_g = yes; then
4024  if test "$GCC" = yes; then
4025    CFLAGS="-g -O2"
4026  else
4027    CFLAGS="-g"
4028  fi
4029else
4030  if test "$GCC" = yes; then
4031    CFLAGS="-O2"
4032  else
4033    CFLAGS=
4034  fi
4035fi
4036ac_prog_cc_stdc=no
4037if test x$ac_prog_cc_stdc = xno
4038then :
4039  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4040printf %s "checking for $CC option to enable C11 features... " >&6; }
4041if test ${ac_cv_prog_cc_c11+y}
4042then :
4043  printf %s "(cached) " >&6
4044else $as_nop
4045  ac_cv_prog_cc_c11=no
4046ac_save_CC=$CC
4047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048/* end confdefs.h.  */
4049$ac_c_conftest_c11_program
4050_ACEOF
4051for ac_arg in '' -std=gnu11
4052do
4053  CC="$ac_save_CC $ac_arg"
4054  if ac_fn_c_try_compile "$LINENO"
4055then :
4056  ac_cv_prog_cc_c11=$ac_arg
4057fi
4058rm -f core conftest.err conftest.$ac_objext conftest.beam
4059  test "x$ac_cv_prog_cc_c11" != "xno" && break
4060done
4061rm -f conftest.$ac_ext
4062CC=$ac_save_CC
4063fi
4064
4065if test "x$ac_cv_prog_cc_c11" = xno
4066then :
4067  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4068printf "%s\n" "unsupported" >&6; }
4069else $as_nop
4070  if test "x$ac_cv_prog_cc_c11" = x
4071then :
4072  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4073printf "%s\n" "none needed" >&6; }
4074else $as_nop
4075  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4076printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4077     CC="$CC $ac_cv_prog_cc_c11"
4078fi
4079  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4080  ac_prog_cc_stdc=c11
4081fi
4082fi
4083if test x$ac_prog_cc_stdc = xno
4084then :
4085  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4086printf %s "checking for $CC option to enable C99 features... " >&6; }
4087if test ${ac_cv_prog_cc_c99+y}
4088then :
4089  printf %s "(cached) " >&6
4090else $as_nop
4091  ac_cv_prog_cc_c99=no
4092ac_save_CC=$CC
4093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094/* end confdefs.h.  */
4095$ac_c_conftest_c99_program
4096_ACEOF
4097for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4098do
4099  CC="$ac_save_CC $ac_arg"
4100  if ac_fn_c_try_compile "$LINENO"
4101then :
4102  ac_cv_prog_cc_c99=$ac_arg
4103fi
4104rm -f core conftest.err conftest.$ac_objext conftest.beam
4105  test "x$ac_cv_prog_cc_c99" != "xno" && break
4106done
4107rm -f conftest.$ac_ext
4108CC=$ac_save_CC
4109fi
4110
4111if test "x$ac_cv_prog_cc_c99" = xno
4112then :
4113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4114printf "%s\n" "unsupported" >&6; }
4115else $as_nop
4116  if test "x$ac_cv_prog_cc_c99" = x
4117then :
4118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4119printf "%s\n" "none needed" >&6; }
4120else $as_nop
4121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4122printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4123     CC="$CC $ac_cv_prog_cc_c99"
4124fi
4125  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4126  ac_prog_cc_stdc=c99
4127fi
4128fi
4129if test x$ac_prog_cc_stdc = xno
4130then :
4131  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4132printf %s "checking for $CC option to enable C89 features... " >&6; }
4133if test ${ac_cv_prog_cc_c89+y}
4134then :
4135  printf %s "(cached) " >&6
4136else $as_nop
4137  ac_cv_prog_cc_c89=no
4138ac_save_CC=$CC
4139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140/* end confdefs.h.  */
4141$ac_c_conftest_c89_program
4142_ACEOF
4143for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4144do
4145  CC="$ac_save_CC $ac_arg"
4146  if ac_fn_c_try_compile "$LINENO"
4147then :
4148  ac_cv_prog_cc_c89=$ac_arg
4149fi
4150rm -f core conftest.err conftest.$ac_objext conftest.beam
4151  test "x$ac_cv_prog_cc_c89" != "xno" && break
4152done
4153rm -f conftest.$ac_ext
4154CC=$ac_save_CC
4155fi
4156
4157if test "x$ac_cv_prog_cc_c89" = xno
4158then :
4159  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4160printf "%s\n" "unsupported" >&6; }
4161else $as_nop
4162  if test "x$ac_cv_prog_cc_c89" = x
4163then :
4164  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4165printf "%s\n" "none needed" >&6; }
4166else $as_nop
4167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4168printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4169     CC="$CC $ac_cv_prog_cc_c89"
4170fi
4171  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4172  ac_prog_cc_stdc=c89
4173fi
4174fi
4175
4176ac_ext=c
4177ac_cpp='$CPP $CPPFLAGS'
4178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181
4182
4183  ac_ext=c
4184ac_cpp='$CPP $CPPFLAGS'
4185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4189printf %s "checking whether $CC understands -c and -o together... " >&6; }
4190if test ${am_cv_prog_cc_c_o+y}
4191then :
4192  printf %s "(cached) " >&6
4193else $as_nop
4194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195/* end confdefs.h.  */
4196
4197int
4198main (void)
4199{
4200
4201  ;
4202  return 0;
4203}
4204_ACEOF
4205  # Make sure it works both with $CC and with simple cc.
4206  # Following AC_PROG_CC_C_O, we do the test twice because some
4207  # compilers refuse to overwrite an existing .o file with -o,
4208  # though they will create one.
4209  am_cv_prog_cc_c_o=yes
4210  for am_i in 1 2; do
4211    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4212   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4213   ac_status=$?
4214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215   (exit $ac_status); } \
4216         && test -f conftest2.$ac_objext; then
4217      : OK
4218    else
4219      am_cv_prog_cc_c_o=no
4220      break
4221    fi
4222  done
4223  rm -f core conftest*
4224  unset am_i
4225fi
4226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4227printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4228if test "$am_cv_prog_cc_c_o" != yes; then
4229   # Losing compiler, so override with the script.
4230   # FIXME: It is wrong to rewrite CC.
4231   # But if we don't then we get into trouble of one sort or another.
4232   # A longer-term fix would be to have automake use am__CC in this case,
4233   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4234   CC="$am_aux_dir/compile $CC"
4235fi
4236ac_ext=c
4237ac_cpp='$CPP $CPPFLAGS'
4238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241
4242
4243depcc="$CC"   am_compiler_list=
4244
4245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4246printf %s "checking dependency style of $depcc... " >&6; }
4247if test ${am_cv_CC_dependencies_compiler_type+y}
4248then :
4249  printf %s "(cached) " >&6
4250else $as_nop
4251  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4252  # We make a subdir and do the tests there.  Otherwise we can end up
4253  # making bogus files that we don't know about and never remove.  For
4254  # instance it was reported that on HP-UX the gcc test will end up
4255  # making a dummy file named 'D' -- because '-MD' means "put the output
4256  # in D".
4257  rm -rf conftest.dir
4258  mkdir conftest.dir
4259  # Copy depcomp to subdir because otherwise we won't find it if we're
4260  # using a relative directory.
4261  cp "$am_depcomp" conftest.dir
4262  cd conftest.dir
4263  # We will build objects and dependencies in a subdirectory because
4264  # it helps to detect inapplicable dependency modes.  For instance
4265  # both Tru64's cc and ICC support -MD to output dependencies as a
4266  # side effect of compilation, but ICC will put the dependencies in
4267  # the current directory while Tru64 will put them in the object
4268  # directory.
4269  mkdir sub
4270
4271  am_cv_CC_dependencies_compiler_type=none
4272  if test "$am_compiler_list" = ""; then
4273     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4274  fi
4275  am__universal=false
4276  case " $depcc " in #(
4277     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4278     esac
4279
4280  for depmode in $am_compiler_list; do
4281    # Setup a source with many dependencies, because some compilers
4282    # like to wrap large dependency lists on column 80 (with \), and
4283    # we should not choose a depcomp mode which is confused by this.
4284    #
4285    # We need to recreate these files for each test, as the compiler may
4286    # overwrite some of them when testing with obscure command lines.
4287    # This happens at least with the AIX C compiler.
4288    : > sub/conftest.c
4289    for i in 1 2 3 4 5 6; do
4290      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4291      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4292      # Solaris 10 /bin/sh.
4293      echo '/* dummy */' > sub/conftst$i.h
4294    done
4295    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4296
4297    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4298    # mode.  It turns out that the SunPro C++ compiler does not properly
4299    # handle '-M -o', and we need to detect this.  Also, some Intel
4300    # versions had trouble with output in subdirs.
4301    am__obj=sub/conftest.${OBJEXT-o}
4302    am__minus_obj="-o $am__obj"
4303    case $depmode in
4304    gcc)
4305      # This depmode causes a compiler race in universal mode.
4306      test "$am__universal" = false || continue
4307      ;;
4308    nosideeffect)
4309      # After this tag, mechanisms are not by side-effect, so they'll
4310      # only be used when explicitly requested.
4311      if test "x$enable_dependency_tracking" = xyes; then
4312	continue
4313      else
4314	break
4315      fi
4316      ;;
4317    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4318      # This compiler won't grok '-c -o', but also, the minuso test has
4319      # not run yet.  These depmodes are late enough in the game, and
4320      # so weak that their functioning should not be impacted.
4321      am__obj=conftest.${OBJEXT-o}
4322      am__minus_obj=
4323      ;;
4324    none) break ;;
4325    esac
4326    if depmode=$depmode \
4327       source=sub/conftest.c object=$am__obj \
4328       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4329       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4330         >/dev/null 2>conftest.err &&
4331       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4332       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4333       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4334       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4335      # icc doesn't choke on unknown options, it will just issue warnings
4336      # or remarks (even with -Werror).  So we grep stderr for any message
4337      # that says an option was ignored or not supported.
4338      # When given -MP, icc 7.0 and 7.1 complain thusly:
4339      #   icc: Command line warning: ignoring option '-M'; no argument required
4340      # The diagnosis changed in icc 8.0:
4341      #   icc: Command line remark: option '-MP' not supported
4342      if (grep 'ignoring option' conftest.err ||
4343          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4344        am_cv_CC_dependencies_compiler_type=$depmode
4345        break
4346      fi
4347    fi
4348  done
4349
4350  cd ..
4351  rm -rf conftest.dir
4352else
4353  am_cv_CC_dependencies_compiler_type=none
4354fi
4355
4356fi
4357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4358printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4359CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4360
4361 if
4362  test "x$enable_dependency_tracking" != xno \
4363  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4364  am__fastdepCC_TRUE=
4365  am__fastdepCC_FALSE='#'
4366else
4367  am__fastdepCC_TRUE='#'
4368  am__fastdepCC_FALSE=
4369fi
4370
4371
4372
4373
4374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4375printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4376if test ${ac_cv_c_undeclared_builtin_options+y}
4377then :
4378  printf %s "(cached) " >&6
4379else $as_nop
4380  ac_save_CFLAGS=$CFLAGS
4381   ac_cv_c_undeclared_builtin_options='cannot detect'
4382   for ac_arg in '' -fno-builtin; do
4383     CFLAGS="$ac_save_CFLAGS $ac_arg"
4384     # This test program should *not* compile successfully.
4385     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386/* end confdefs.h.  */
4387
4388int
4389main (void)
4390{
4391(void) strchr;
4392  ;
4393  return 0;
4394}
4395_ACEOF
4396if ac_fn_c_try_compile "$LINENO"
4397then :
4398
4399else $as_nop
4400  # This test program should compile successfully.
4401        # No library function is consistently available on
4402        # freestanding implementations, so test against a dummy
4403        # declaration.  Include always-available headers on the
4404        # off chance that they somehow elicit warnings.
4405        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406/* end confdefs.h.  */
4407#include <float.h>
4408#include <limits.h>
4409#include <stdarg.h>
4410#include <stddef.h>
4411extern void ac_decl (int, char *);
4412
4413int
4414main (void)
4415{
4416(void) ac_decl (0, (char *) 0);
4417  (void) ac_decl;
4418
4419  ;
4420  return 0;
4421}
4422_ACEOF
4423if ac_fn_c_try_compile "$LINENO"
4424then :
4425  if test x"$ac_arg" = x
4426then :
4427  ac_cv_c_undeclared_builtin_options='none needed'
4428else $as_nop
4429  ac_cv_c_undeclared_builtin_options=$ac_arg
4430fi
4431          break
4432fi
4433rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4434fi
4435rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4436    done
4437    CFLAGS=$ac_save_CFLAGS
4438
4439fi
4440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4441printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4442  case $ac_cv_c_undeclared_builtin_options in #(
4443  'cannot detect') :
4444    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4445printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4446as_fn_error $? "cannot make $CC report undeclared builtins
4447See \`config.log' for more details" "$LINENO" 5; } ;; #(
4448  'none needed') :
4449    ac_c_undeclared_builtin_options='' ;; #(
4450  *) :
4451    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4452esac
4453
4454ac_header= ac_cache=
4455for ac_item in $ac_header_c_list
4456do
4457  if test $ac_cache; then
4458    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4459    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4460      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4461    fi
4462    ac_header= ac_cache=
4463  elif test $ac_header; then
4464    ac_cache=$ac_item
4465  else
4466    ac_header=$ac_item
4467  fi
4468done
4469
4470
4471
4472
4473
4474
4475
4476
4477if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4478then :
4479
4480printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4481
4482fi
4483
4484
4485
4486
4487ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4488if test "x$ac_cv_have_decl___clang__" = xyes
4489then :
4490  CLANGCC="yes"
4491else $as_nop
4492  CLANGCC="no"
4493fi
4494ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4495if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4496then :
4497  INTELCC="yes"
4498else $as_nop
4499  INTELCC="no"
4500fi
4501ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4502if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4503then :
4504  SUNCC="yes"
4505else $as_nop
4506  SUNCC="no"
4507fi
4508
4509
4510
4511
4512
4513
4514
4515
4516if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4517	if test -n "$ac_tool_prefix"; then
4518  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4519set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521printf %s "checking for $ac_word... " >&6; }
4522if test ${ac_cv_path_PKG_CONFIG+y}
4523then :
4524  printf %s "(cached) " >&6
4525else $as_nop
4526  case $PKG_CONFIG in
4527  [\\/]* | ?:[\\/]*)
4528  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4529  ;;
4530  *)
4531  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532for as_dir in $PATH
4533do
4534  IFS=$as_save_IFS
4535  case $as_dir in #(((
4536    '') as_dir=./ ;;
4537    */) ;;
4538    *) as_dir=$as_dir/ ;;
4539  esac
4540    for ac_exec_ext in '' $ac_executable_extensions; do
4541  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4542    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4543    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4544    break 2
4545  fi
4546done
4547  done
4548IFS=$as_save_IFS
4549
4550  ;;
4551esac
4552fi
4553PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4554if test -n "$PKG_CONFIG"; then
4555  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4556printf "%s\n" "$PKG_CONFIG" >&6; }
4557else
4558  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559printf "%s\n" "no" >&6; }
4560fi
4561
4562
4563fi
4564if test -z "$ac_cv_path_PKG_CONFIG"; then
4565  ac_pt_PKG_CONFIG=$PKG_CONFIG
4566  # Extract the first word of "pkg-config", so it can be a program name with args.
4567set dummy pkg-config; ac_word=$2
4568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569printf %s "checking for $ac_word... " >&6; }
4570if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4571then :
4572  printf %s "(cached) " >&6
4573else $as_nop
4574  case $ac_pt_PKG_CONFIG in
4575  [\\/]* | ?:[\\/]*)
4576  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4577  ;;
4578  *)
4579  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580for as_dir in $PATH
4581do
4582  IFS=$as_save_IFS
4583  case $as_dir in #(((
4584    '') as_dir=./ ;;
4585    */) ;;
4586    *) as_dir=$as_dir/ ;;
4587  esac
4588    for ac_exec_ext in '' $ac_executable_extensions; do
4589  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4590    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4591    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4592    break 2
4593  fi
4594done
4595  done
4596IFS=$as_save_IFS
4597
4598  ;;
4599esac
4600fi
4601ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4602if test -n "$ac_pt_PKG_CONFIG"; then
4603  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4604printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4605else
4606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607printf "%s\n" "no" >&6; }
4608fi
4609
4610  if test "x$ac_pt_PKG_CONFIG" = x; then
4611    PKG_CONFIG=""
4612  else
4613    case $cross_compiling:$ac_tool_warned in
4614yes:)
4615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4616printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4617ac_tool_warned=yes ;;
4618esac
4619    PKG_CONFIG=$ac_pt_PKG_CONFIG
4620  fi
4621else
4622  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4623fi
4624
4625fi
4626if test -n "$PKG_CONFIG"; then
4627	_pkg_min_version=0.9.0
4628	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4629printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4630	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4631		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4632printf "%s\n" "yes" >&6; }
4633	else
4634		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635printf "%s\n" "no" >&6; }
4636		PKG_CONFIG=""
4637	fi
4638fi
4639
4640
4641  # Make sure we can run config.sub.
4642$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4643  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4644
4645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4646printf %s "checking build system type... " >&6; }
4647if test ${ac_cv_build+y}
4648then :
4649  printf %s "(cached) " >&6
4650else $as_nop
4651  ac_build_alias=$build_alias
4652test "x$ac_build_alias" = x &&
4653  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4654test "x$ac_build_alias" = x &&
4655  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4656ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4657  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4658
4659fi
4660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4661printf "%s\n" "$ac_cv_build" >&6; }
4662case $ac_cv_build in
4663*-*-*) ;;
4664*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4665esac
4666build=$ac_cv_build
4667ac_save_IFS=$IFS; IFS='-'
4668set x $ac_cv_build
4669shift
4670build_cpu=$1
4671build_vendor=$2
4672shift; shift
4673# Remember, the first character of IFS is used to create $*,
4674# except with old shells:
4675build_os=$*
4676IFS=$ac_save_IFS
4677case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4678
4679
4680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4681printf %s "checking host system type... " >&6; }
4682if test ${ac_cv_host+y}
4683then :
4684  printf %s "(cached) " >&6
4685else $as_nop
4686  if test "x$host_alias" = x; then
4687  ac_cv_host=$ac_cv_build
4688else
4689  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4690    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4691fi
4692
4693fi
4694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4695printf "%s\n" "$ac_cv_host" >&6; }
4696case $ac_cv_host in
4697*-*-*) ;;
4698*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4699esac
4700host=$ac_cv_host
4701ac_save_IFS=$IFS; IFS='-'
4702set x $ac_cv_host
4703shift
4704host_cpu=$1
4705host_vendor=$2
4706shift; shift
4707# Remember, the first character of IFS is used to create $*,
4708# except with old shells:
4709host_os=$*
4710IFS=$ac_save_IFS
4711case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4712
4713
4714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4715printf %s "checking for a sed that does not truncate output... " >&6; }
4716if test ${ac_cv_path_SED+y}
4717then :
4718  printf %s "(cached) " >&6
4719else $as_nop
4720            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4721     for ac_i in 1 2 3 4 5 6 7; do
4722       ac_script="$ac_script$as_nl$ac_script"
4723     done
4724     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4725     { ac_script=; unset ac_script;}
4726     if test -z "$SED"; then
4727  ac_path_SED_found=false
4728  # Loop through the user's path and test for each of PROGNAME-LIST
4729  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730for as_dir in $PATH
4731do
4732  IFS=$as_save_IFS
4733  case $as_dir in #(((
4734    '') as_dir=./ ;;
4735    */) ;;
4736    *) as_dir=$as_dir/ ;;
4737  esac
4738    for ac_prog in sed gsed
4739   do
4740    for ac_exec_ext in '' $ac_executable_extensions; do
4741      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4742      as_fn_executable_p "$ac_path_SED" || continue
4743# Check for GNU ac_path_SED and select it if it is found.
4744  # Check for GNU $ac_path_SED
4745case `"$ac_path_SED" --version 2>&1` in
4746*GNU*)
4747  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4748*)
4749  ac_count=0
4750  printf %s 0123456789 >"conftest.in"
4751  while :
4752  do
4753    cat "conftest.in" "conftest.in" >"conftest.tmp"
4754    mv "conftest.tmp" "conftest.in"
4755    cp "conftest.in" "conftest.nl"
4756    printf "%s\n" '' >> "conftest.nl"
4757    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4758    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4759    as_fn_arith $ac_count + 1 && ac_count=$as_val
4760    if test $ac_count -gt ${ac_path_SED_max-0}; then
4761      # Best one so far, save it but keep looking for a better one
4762      ac_cv_path_SED="$ac_path_SED"
4763      ac_path_SED_max=$ac_count
4764    fi
4765    # 10*(2^10) chars as input seems more than enough
4766    test $ac_count -gt 10 && break
4767  done
4768  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4769esac
4770
4771      $ac_path_SED_found && break 3
4772    done
4773  done
4774  done
4775IFS=$as_save_IFS
4776  if test -z "$ac_cv_path_SED"; then
4777    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4778  fi
4779else
4780  ac_cv_path_SED=$SED
4781fi
4782
4783fi
4784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4785printf "%s\n" "$ac_cv_path_SED" >&6; }
4786 SED="$ac_cv_path_SED"
4787  rm -f conftest.sed
4788
4789
4790
4791
4792
4793
4794# Check whether --enable-selective-werror was given.
4795if test ${enable_selective_werror+y}
4796then :
4797  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4798else $as_nop
4799  SELECTIVE_WERROR=yes
4800fi
4801
4802
4803
4804
4805
4806# -v is too short to test reliably with XORG_TESTSET_CFLAG
4807if test "x$SUNCC" = "xyes"; then
4808    BASE_CFLAGS="-v"
4809else
4810    BASE_CFLAGS=""
4811fi
4812
4813# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827xorg_testset_save_CFLAGS="$CFLAGS"
4828
4829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4830	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4831	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4832printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4833if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4834then :
4835  printf %s "(cached) " >&6
4836else $as_nop
4837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838/* end confdefs.h.  */
4839int i;
4840_ACEOF
4841if ac_fn_c_try_compile "$LINENO"
4842then :
4843  xorg_cv_cc_flag_unknown_warning_option=yes
4844else $as_nop
4845  xorg_cv_cc_flag_unknown_warning_option=no
4846fi
4847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4848fi
4849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4850printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4851	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4852	CFLAGS="$xorg_testset_save_CFLAGS"
4853fi
4854
4855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4856	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4857		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4858	fi
4859	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4860	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4861printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4862if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4863then :
4864  printf %s "(cached) " >&6
4865else $as_nop
4866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867/* end confdefs.h.  */
4868int i;
4869_ACEOF
4870if ac_fn_c_try_compile "$LINENO"
4871then :
4872  xorg_cv_cc_flag_unused_command_line_argument=yes
4873else $as_nop
4874  xorg_cv_cc_flag_unused_command_line_argument=no
4875fi
4876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4877fi
4878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4879printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4880	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4881	CFLAGS="$xorg_testset_save_CFLAGS"
4882fi
4883
4884found="no"
4885
4886	if test $found = "no" ; then
4887		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4888			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4889		fi
4890
4891		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4892			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4893		fi
4894
4895		CFLAGS="$CFLAGS -Wall"
4896
4897		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4898printf %s "checking if $CC supports -Wall... " >&6; }
4899		cacheid=xorg_cv_cc_flag__Wall
4900		if eval test \${$cacheid+y}
4901then :
4902  printf %s "(cached) " >&6
4903else $as_nop
4904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905/* end confdefs.h.  */
4906int i;
4907int
4908main (void)
4909{
4910
4911  ;
4912  return 0;
4913}
4914_ACEOF
4915if ac_fn_c_try_link "$LINENO"
4916then :
4917  eval $cacheid=yes
4918else $as_nop
4919  eval $cacheid=no
4920fi
4921rm -f core conftest.err conftest.$ac_objext conftest.beam \
4922    conftest$ac_exeext conftest.$ac_ext
4923fi
4924
4925
4926		CFLAGS="$xorg_testset_save_CFLAGS"
4927
4928		eval supported=\$$cacheid
4929		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4930printf "%s\n" "$supported" >&6; }
4931		if test "$supported" = "yes" ; then
4932			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4933			found="yes"
4934		fi
4935	fi
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951xorg_testset_save_CFLAGS="$CFLAGS"
4952
4953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4954	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4955	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4956printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4957if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4958then :
4959  printf %s "(cached) " >&6
4960else $as_nop
4961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962/* end confdefs.h.  */
4963int i;
4964_ACEOF
4965if ac_fn_c_try_compile "$LINENO"
4966then :
4967  xorg_cv_cc_flag_unknown_warning_option=yes
4968else $as_nop
4969  xorg_cv_cc_flag_unknown_warning_option=no
4970fi
4971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4972fi
4973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4974printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4975	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4976	CFLAGS="$xorg_testset_save_CFLAGS"
4977fi
4978
4979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4980	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4981		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4982	fi
4983	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4984	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4985printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4986if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4987then :
4988  printf %s "(cached) " >&6
4989else $as_nop
4990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991/* end confdefs.h.  */
4992int i;
4993_ACEOF
4994if ac_fn_c_try_compile "$LINENO"
4995then :
4996  xorg_cv_cc_flag_unused_command_line_argument=yes
4997else $as_nop
4998  xorg_cv_cc_flag_unused_command_line_argument=no
4999fi
5000rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5001fi
5002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5003printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5004	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5005	CFLAGS="$xorg_testset_save_CFLAGS"
5006fi
5007
5008found="no"
5009
5010	if test $found = "no" ; then
5011		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5012			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5013		fi
5014
5015		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5016			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5017		fi
5018
5019		CFLAGS="$CFLAGS -Wpointer-arith"
5020
5021		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5022printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5023		cacheid=xorg_cv_cc_flag__Wpointer_arith
5024		if eval test \${$cacheid+y}
5025then :
5026  printf %s "(cached) " >&6
5027else $as_nop
5028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029/* end confdefs.h.  */
5030int i;
5031int
5032main (void)
5033{
5034
5035  ;
5036  return 0;
5037}
5038_ACEOF
5039if ac_fn_c_try_link "$LINENO"
5040then :
5041  eval $cacheid=yes
5042else $as_nop
5043  eval $cacheid=no
5044fi
5045rm -f core conftest.err conftest.$ac_objext conftest.beam \
5046    conftest$ac_exeext conftest.$ac_ext
5047fi
5048
5049
5050		CFLAGS="$xorg_testset_save_CFLAGS"
5051
5052		eval supported=\$$cacheid
5053		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5054printf "%s\n" "$supported" >&6; }
5055		if test "$supported" = "yes" ; then
5056			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5057			found="yes"
5058		fi
5059	fi
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075xorg_testset_save_CFLAGS="$CFLAGS"
5076
5077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5078	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5079	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5080printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5081if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5082then :
5083  printf %s "(cached) " >&6
5084else $as_nop
5085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086/* end confdefs.h.  */
5087int i;
5088_ACEOF
5089if ac_fn_c_try_compile "$LINENO"
5090then :
5091  xorg_cv_cc_flag_unknown_warning_option=yes
5092else $as_nop
5093  xorg_cv_cc_flag_unknown_warning_option=no
5094fi
5095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5096fi
5097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5098printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5099	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5100	CFLAGS="$xorg_testset_save_CFLAGS"
5101fi
5102
5103if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5104	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5105		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5106	fi
5107	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5108	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5109printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5110if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5111then :
5112  printf %s "(cached) " >&6
5113else $as_nop
5114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115/* end confdefs.h.  */
5116int i;
5117_ACEOF
5118if ac_fn_c_try_compile "$LINENO"
5119then :
5120  xorg_cv_cc_flag_unused_command_line_argument=yes
5121else $as_nop
5122  xorg_cv_cc_flag_unused_command_line_argument=no
5123fi
5124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5125fi
5126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5127printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5128	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5129	CFLAGS="$xorg_testset_save_CFLAGS"
5130fi
5131
5132found="no"
5133
5134	if test $found = "no" ; then
5135		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5136			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5137		fi
5138
5139		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5140			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5141		fi
5142
5143		CFLAGS="$CFLAGS -Wmissing-declarations"
5144
5145		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5146printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5147		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5148		if eval test \${$cacheid+y}
5149then :
5150  printf %s "(cached) " >&6
5151else $as_nop
5152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153/* end confdefs.h.  */
5154int i;
5155int
5156main (void)
5157{
5158
5159  ;
5160  return 0;
5161}
5162_ACEOF
5163if ac_fn_c_try_link "$LINENO"
5164then :
5165  eval $cacheid=yes
5166else $as_nop
5167  eval $cacheid=no
5168fi
5169rm -f core conftest.err conftest.$ac_objext conftest.beam \
5170    conftest$ac_exeext conftest.$ac_ext
5171fi
5172
5173
5174		CFLAGS="$xorg_testset_save_CFLAGS"
5175
5176		eval supported=\$$cacheid
5177		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5178printf "%s\n" "$supported" >&6; }
5179		if test "$supported" = "yes" ; then
5180			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5181			found="yes"
5182		fi
5183	fi
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199xorg_testset_save_CFLAGS="$CFLAGS"
5200
5201if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5202	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5203	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5204printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5205if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5206then :
5207  printf %s "(cached) " >&6
5208else $as_nop
5209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210/* end confdefs.h.  */
5211int i;
5212_ACEOF
5213if ac_fn_c_try_compile "$LINENO"
5214then :
5215  xorg_cv_cc_flag_unknown_warning_option=yes
5216else $as_nop
5217  xorg_cv_cc_flag_unknown_warning_option=no
5218fi
5219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5220fi
5221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5222printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5223	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5224	CFLAGS="$xorg_testset_save_CFLAGS"
5225fi
5226
5227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5228	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5229		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5230	fi
5231	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5232	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5233printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5234if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5235then :
5236  printf %s "(cached) " >&6
5237else $as_nop
5238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239/* end confdefs.h.  */
5240int i;
5241_ACEOF
5242if ac_fn_c_try_compile "$LINENO"
5243then :
5244  xorg_cv_cc_flag_unused_command_line_argument=yes
5245else $as_nop
5246  xorg_cv_cc_flag_unused_command_line_argument=no
5247fi
5248rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5249fi
5250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5251printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5252	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5253	CFLAGS="$xorg_testset_save_CFLAGS"
5254fi
5255
5256found="no"
5257
5258	if test $found = "no" ; then
5259		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5260			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5261		fi
5262
5263		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5264			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5265		fi
5266
5267		CFLAGS="$CFLAGS -Wformat=2"
5268
5269		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5270printf %s "checking if $CC supports -Wformat=2... " >&6; }
5271		cacheid=xorg_cv_cc_flag__Wformat_2
5272		if eval test \${$cacheid+y}
5273then :
5274  printf %s "(cached) " >&6
5275else $as_nop
5276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277/* end confdefs.h.  */
5278int i;
5279int
5280main (void)
5281{
5282
5283  ;
5284  return 0;
5285}
5286_ACEOF
5287if ac_fn_c_try_link "$LINENO"
5288then :
5289  eval $cacheid=yes
5290else $as_nop
5291  eval $cacheid=no
5292fi
5293rm -f core conftest.err conftest.$ac_objext conftest.beam \
5294    conftest$ac_exeext conftest.$ac_ext
5295fi
5296
5297
5298		CFLAGS="$xorg_testset_save_CFLAGS"
5299
5300		eval supported=\$$cacheid
5301		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5302printf "%s\n" "$supported" >&6; }
5303		if test "$supported" = "yes" ; then
5304			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5305			found="yes"
5306		fi
5307	fi
5308
5309	if test $found = "no" ; then
5310		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5311			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5312		fi
5313
5314		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5315			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5316		fi
5317
5318		CFLAGS="$CFLAGS -Wformat"
5319
5320		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5321printf %s "checking if $CC supports -Wformat... " >&6; }
5322		cacheid=xorg_cv_cc_flag__Wformat
5323		if eval test \${$cacheid+y}
5324then :
5325  printf %s "(cached) " >&6
5326else $as_nop
5327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328/* end confdefs.h.  */
5329int i;
5330int
5331main (void)
5332{
5333
5334  ;
5335  return 0;
5336}
5337_ACEOF
5338if ac_fn_c_try_link "$LINENO"
5339then :
5340  eval $cacheid=yes
5341else $as_nop
5342  eval $cacheid=no
5343fi
5344rm -f core conftest.err conftest.$ac_objext conftest.beam \
5345    conftest$ac_exeext conftest.$ac_ext
5346fi
5347
5348
5349		CFLAGS="$xorg_testset_save_CFLAGS"
5350
5351		eval supported=\$$cacheid
5352		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5353printf "%s\n" "$supported" >&6; }
5354		if test "$supported" = "yes" ; then
5355			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5356			found="yes"
5357		fi
5358	fi
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376xorg_testset_save_CFLAGS="$CFLAGS"
5377
5378if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5379	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5380	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5381printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5382if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5383then :
5384  printf %s "(cached) " >&6
5385else $as_nop
5386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387/* end confdefs.h.  */
5388int i;
5389_ACEOF
5390if ac_fn_c_try_compile "$LINENO"
5391then :
5392  xorg_cv_cc_flag_unknown_warning_option=yes
5393else $as_nop
5394  xorg_cv_cc_flag_unknown_warning_option=no
5395fi
5396rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5397fi
5398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5399printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5400	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5401	CFLAGS="$xorg_testset_save_CFLAGS"
5402fi
5403
5404if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5405	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5406		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5407	fi
5408	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5409	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5410printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5411if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5412then :
5413  printf %s "(cached) " >&6
5414else $as_nop
5415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416/* end confdefs.h.  */
5417int i;
5418_ACEOF
5419if ac_fn_c_try_compile "$LINENO"
5420then :
5421  xorg_cv_cc_flag_unused_command_line_argument=yes
5422else $as_nop
5423  xorg_cv_cc_flag_unused_command_line_argument=no
5424fi
5425rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5426fi
5427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5428printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5429	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5430	CFLAGS="$xorg_testset_save_CFLAGS"
5431fi
5432
5433found="no"
5434
5435	if test $found = "no" ; then
5436		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5437			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5438		fi
5439
5440		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5441			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5442		fi
5443
5444		CFLAGS="$CFLAGS -Wstrict-prototypes"
5445
5446		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5447printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5448		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5449		if eval test \${$cacheid+y}
5450then :
5451  printf %s "(cached) " >&6
5452else $as_nop
5453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454/* end confdefs.h.  */
5455int i;
5456int
5457main (void)
5458{
5459
5460  ;
5461  return 0;
5462}
5463_ACEOF
5464if ac_fn_c_try_link "$LINENO"
5465then :
5466  eval $cacheid=yes
5467else $as_nop
5468  eval $cacheid=no
5469fi
5470rm -f core conftest.err conftest.$ac_objext conftest.beam \
5471    conftest$ac_exeext conftest.$ac_ext
5472fi
5473
5474
5475		CFLAGS="$xorg_testset_save_CFLAGS"
5476
5477		eval supported=\$$cacheid
5478		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5479printf "%s\n" "$supported" >&6; }
5480		if test "$supported" = "yes" ; then
5481			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5482			found="yes"
5483		fi
5484	fi
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500xorg_testset_save_CFLAGS="$CFLAGS"
5501
5502if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5503	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5504	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5505printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5506if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5507then :
5508  printf %s "(cached) " >&6
5509else $as_nop
5510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511/* end confdefs.h.  */
5512int i;
5513_ACEOF
5514if ac_fn_c_try_compile "$LINENO"
5515then :
5516  xorg_cv_cc_flag_unknown_warning_option=yes
5517else $as_nop
5518  xorg_cv_cc_flag_unknown_warning_option=no
5519fi
5520rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5521fi
5522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5523printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5524	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5525	CFLAGS="$xorg_testset_save_CFLAGS"
5526fi
5527
5528if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5529	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5530		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5531	fi
5532	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5533	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5534printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5535if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5536then :
5537  printf %s "(cached) " >&6
5538else $as_nop
5539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540/* end confdefs.h.  */
5541int i;
5542_ACEOF
5543if ac_fn_c_try_compile "$LINENO"
5544then :
5545  xorg_cv_cc_flag_unused_command_line_argument=yes
5546else $as_nop
5547  xorg_cv_cc_flag_unused_command_line_argument=no
5548fi
5549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5550fi
5551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5552printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5553	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5554	CFLAGS="$xorg_testset_save_CFLAGS"
5555fi
5556
5557found="no"
5558
5559	if test $found = "no" ; then
5560		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5561			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5562		fi
5563
5564		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5565			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5566		fi
5567
5568		CFLAGS="$CFLAGS -Wmissing-prototypes"
5569
5570		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5571printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5572		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5573		if eval test \${$cacheid+y}
5574then :
5575  printf %s "(cached) " >&6
5576else $as_nop
5577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578/* end confdefs.h.  */
5579int i;
5580int
5581main (void)
5582{
5583
5584  ;
5585  return 0;
5586}
5587_ACEOF
5588if ac_fn_c_try_link "$LINENO"
5589then :
5590  eval $cacheid=yes
5591else $as_nop
5592  eval $cacheid=no
5593fi
5594rm -f core conftest.err conftest.$ac_objext conftest.beam \
5595    conftest$ac_exeext conftest.$ac_ext
5596fi
5597
5598
5599		CFLAGS="$xorg_testset_save_CFLAGS"
5600
5601		eval supported=\$$cacheid
5602		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5603printf "%s\n" "$supported" >&6; }
5604		if test "$supported" = "yes" ; then
5605			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5606			found="yes"
5607		fi
5608	fi
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624xorg_testset_save_CFLAGS="$CFLAGS"
5625
5626if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5627	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5628	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5629printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5630if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5631then :
5632  printf %s "(cached) " >&6
5633else $as_nop
5634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635/* end confdefs.h.  */
5636int i;
5637_ACEOF
5638if ac_fn_c_try_compile "$LINENO"
5639then :
5640  xorg_cv_cc_flag_unknown_warning_option=yes
5641else $as_nop
5642  xorg_cv_cc_flag_unknown_warning_option=no
5643fi
5644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5645fi
5646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5647printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5648	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5649	CFLAGS="$xorg_testset_save_CFLAGS"
5650fi
5651
5652if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5653	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5654		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5655	fi
5656	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5657	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5658printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5659if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5660then :
5661  printf %s "(cached) " >&6
5662else $as_nop
5663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664/* end confdefs.h.  */
5665int i;
5666_ACEOF
5667if ac_fn_c_try_compile "$LINENO"
5668then :
5669  xorg_cv_cc_flag_unused_command_line_argument=yes
5670else $as_nop
5671  xorg_cv_cc_flag_unused_command_line_argument=no
5672fi
5673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5674fi
5675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5676printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5677	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5678	CFLAGS="$xorg_testset_save_CFLAGS"
5679fi
5680
5681found="no"
5682
5683	if test $found = "no" ; then
5684		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5685			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5686		fi
5687
5688		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5689			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5690		fi
5691
5692		CFLAGS="$CFLAGS -Wnested-externs"
5693
5694		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5695printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5696		cacheid=xorg_cv_cc_flag__Wnested_externs
5697		if eval test \${$cacheid+y}
5698then :
5699  printf %s "(cached) " >&6
5700else $as_nop
5701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702/* end confdefs.h.  */
5703int i;
5704int
5705main (void)
5706{
5707
5708  ;
5709  return 0;
5710}
5711_ACEOF
5712if ac_fn_c_try_link "$LINENO"
5713then :
5714  eval $cacheid=yes
5715else $as_nop
5716  eval $cacheid=no
5717fi
5718rm -f core conftest.err conftest.$ac_objext conftest.beam \
5719    conftest$ac_exeext conftest.$ac_ext
5720fi
5721
5722
5723		CFLAGS="$xorg_testset_save_CFLAGS"
5724
5725		eval supported=\$$cacheid
5726		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5727printf "%s\n" "$supported" >&6; }
5728		if test "$supported" = "yes" ; then
5729			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5730			found="yes"
5731		fi
5732	fi
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748xorg_testset_save_CFLAGS="$CFLAGS"
5749
5750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5751	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5752	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5753printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5754if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5755then :
5756  printf %s "(cached) " >&6
5757else $as_nop
5758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759/* end confdefs.h.  */
5760int i;
5761_ACEOF
5762if ac_fn_c_try_compile "$LINENO"
5763then :
5764  xorg_cv_cc_flag_unknown_warning_option=yes
5765else $as_nop
5766  xorg_cv_cc_flag_unknown_warning_option=no
5767fi
5768rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5769fi
5770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5771printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5772	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5773	CFLAGS="$xorg_testset_save_CFLAGS"
5774fi
5775
5776if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5777	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5778		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5779	fi
5780	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5781	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5782printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5783if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5784then :
5785  printf %s "(cached) " >&6
5786else $as_nop
5787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788/* end confdefs.h.  */
5789int i;
5790_ACEOF
5791if ac_fn_c_try_compile "$LINENO"
5792then :
5793  xorg_cv_cc_flag_unused_command_line_argument=yes
5794else $as_nop
5795  xorg_cv_cc_flag_unused_command_line_argument=no
5796fi
5797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5798fi
5799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5800printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5801	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5802	CFLAGS="$xorg_testset_save_CFLAGS"
5803fi
5804
5805found="no"
5806
5807	if test $found = "no" ; then
5808		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5809			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5810		fi
5811
5812		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5813			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5814		fi
5815
5816		CFLAGS="$CFLAGS -Wbad-function-cast"
5817
5818		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5819printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5820		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5821		if eval test \${$cacheid+y}
5822then :
5823  printf %s "(cached) " >&6
5824else $as_nop
5825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826/* end confdefs.h.  */
5827int i;
5828int
5829main (void)
5830{
5831
5832  ;
5833  return 0;
5834}
5835_ACEOF
5836if ac_fn_c_try_link "$LINENO"
5837then :
5838  eval $cacheid=yes
5839else $as_nop
5840  eval $cacheid=no
5841fi
5842rm -f core conftest.err conftest.$ac_objext conftest.beam \
5843    conftest$ac_exeext conftest.$ac_ext
5844fi
5845
5846
5847		CFLAGS="$xorg_testset_save_CFLAGS"
5848
5849		eval supported=\$$cacheid
5850		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5851printf "%s\n" "$supported" >&6; }
5852		if test "$supported" = "yes" ; then
5853			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5854			found="yes"
5855		fi
5856	fi
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872xorg_testset_save_CFLAGS="$CFLAGS"
5873
5874if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5875	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5876	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5877printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5878if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5879then :
5880  printf %s "(cached) " >&6
5881else $as_nop
5882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883/* end confdefs.h.  */
5884int i;
5885_ACEOF
5886if ac_fn_c_try_compile "$LINENO"
5887then :
5888  xorg_cv_cc_flag_unknown_warning_option=yes
5889else $as_nop
5890  xorg_cv_cc_flag_unknown_warning_option=no
5891fi
5892rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5893fi
5894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5895printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5896	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5897	CFLAGS="$xorg_testset_save_CFLAGS"
5898fi
5899
5900if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5901	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5902		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5903	fi
5904	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5905	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5906printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5907if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5908then :
5909  printf %s "(cached) " >&6
5910else $as_nop
5911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912/* end confdefs.h.  */
5913int i;
5914_ACEOF
5915if ac_fn_c_try_compile "$LINENO"
5916then :
5917  xorg_cv_cc_flag_unused_command_line_argument=yes
5918else $as_nop
5919  xorg_cv_cc_flag_unused_command_line_argument=no
5920fi
5921rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5922fi
5923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5924printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5925	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5926	CFLAGS="$xorg_testset_save_CFLAGS"
5927fi
5928
5929found="no"
5930
5931	if test $found = "no" ; then
5932		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5933			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5934		fi
5935
5936		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5937			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5938		fi
5939
5940		CFLAGS="$CFLAGS -Wold-style-definition"
5941
5942		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5943printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5944		cacheid=xorg_cv_cc_flag__Wold_style_definition
5945		if eval test \${$cacheid+y}
5946then :
5947  printf %s "(cached) " >&6
5948else $as_nop
5949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950/* end confdefs.h.  */
5951int i;
5952int
5953main (void)
5954{
5955
5956  ;
5957  return 0;
5958}
5959_ACEOF
5960if ac_fn_c_try_link "$LINENO"
5961then :
5962  eval $cacheid=yes
5963else $as_nop
5964  eval $cacheid=no
5965fi
5966rm -f core conftest.err conftest.$ac_objext conftest.beam \
5967    conftest$ac_exeext conftest.$ac_ext
5968fi
5969
5970
5971		CFLAGS="$xorg_testset_save_CFLAGS"
5972
5973		eval supported=\$$cacheid
5974		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5975printf "%s\n" "$supported" >&6; }
5976		if test "$supported" = "yes" ; then
5977			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5978			found="yes"
5979		fi
5980	fi
5981
5982	if test $found = "no" ; then
5983		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5984			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5985		fi
5986
5987		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5988			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5989		fi
5990
5991		CFLAGS="$CFLAGS -fd"
5992
5993		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5994printf %s "checking if $CC supports -fd... " >&6; }
5995		cacheid=xorg_cv_cc_flag__fd
5996		if eval test \${$cacheid+y}
5997then :
5998  printf %s "(cached) " >&6
5999else $as_nop
6000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001/* end confdefs.h.  */
6002int i;
6003int
6004main (void)
6005{
6006
6007  ;
6008  return 0;
6009}
6010_ACEOF
6011if ac_fn_c_try_link "$LINENO"
6012then :
6013  eval $cacheid=yes
6014else $as_nop
6015  eval $cacheid=no
6016fi
6017rm -f core conftest.err conftest.$ac_objext conftest.beam \
6018    conftest$ac_exeext conftest.$ac_ext
6019fi
6020
6021
6022		CFLAGS="$xorg_testset_save_CFLAGS"
6023
6024		eval supported=\$$cacheid
6025		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6026printf "%s\n" "$supported" >&6; }
6027		if test "$supported" = "yes" ; then
6028			BASE_CFLAGS="$BASE_CFLAGS -fd"
6029			found="yes"
6030		fi
6031	fi
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047xorg_testset_save_CFLAGS="$CFLAGS"
6048
6049if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6050	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6051	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6052printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6053if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6054then :
6055  printf %s "(cached) " >&6
6056else $as_nop
6057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058/* end confdefs.h.  */
6059int i;
6060_ACEOF
6061if ac_fn_c_try_compile "$LINENO"
6062then :
6063  xorg_cv_cc_flag_unknown_warning_option=yes
6064else $as_nop
6065  xorg_cv_cc_flag_unknown_warning_option=no
6066fi
6067rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6068fi
6069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6070printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6071	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6072	CFLAGS="$xorg_testset_save_CFLAGS"
6073fi
6074
6075if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6076	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6077		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6078	fi
6079	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6080	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6081printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6082if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6083then :
6084  printf %s "(cached) " >&6
6085else $as_nop
6086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087/* end confdefs.h.  */
6088int i;
6089_ACEOF
6090if ac_fn_c_try_compile "$LINENO"
6091then :
6092  xorg_cv_cc_flag_unused_command_line_argument=yes
6093else $as_nop
6094  xorg_cv_cc_flag_unused_command_line_argument=no
6095fi
6096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6097fi
6098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6099printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6100	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6101	CFLAGS="$xorg_testset_save_CFLAGS"
6102fi
6103
6104found="no"
6105
6106	if test $found = "no" ; then
6107		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6108			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6109		fi
6110
6111		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6112			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6113		fi
6114
6115		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6116
6117		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6118printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6119		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6120		if eval test \${$cacheid+y}
6121then :
6122  printf %s "(cached) " >&6
6123else $as_nop
6124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125/* end confdefs.h.  */
6126int i;
6127int
6128main (void)
6129{
6130
6131  ;
6132  return 0;
6133}
6134_ACEOF
6135if ac_fn_c_try_link "$LINENO"
6136then :
6137  eval $cacheid=yes
6138else $as_nop
6139  eval $cacheid=no
6140fi
6141rm -f core conftest.err conftest.$ac_objext conftest.beam \
6142    conftest$ac_exeext conftest.$ac_ext
6143fi
6144
6145
6146		CFLAGS="$xorg_testset_save_CFLAGS"
6147
6148		eval supported=\$$cacheid
6149		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6150printf "%s\n" "$supported" >&6; }
6151		if test "$supported" = "yes" ; then
6152			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6153			found="yes"
6154		fi
6155	fi
6156
6157
6158
6159
6160
6161# This chunk adds additional warnings that could catch undesired effects.
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175xorg_testset_save_CFLAGS="$CFLAGS"
6176
6177if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6178	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6179	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6180printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6181if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6182then :
6183  printf %s "(cached) " >&6
6184else $as_nop
6185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186/* end confdefs.h.  */
6187int i;
6188_ACEOF
6189if ac_fn_c_try_compile "$LINENO"
6190then :
6191  xorg_cv_cc_flag_unknown_warning_option=yes
6192else $as_nop
6193  xorg_cv_cc_flag_unknown_warning_option=no
6194fi
6195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6196fi
6197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6198printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6199	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6200	CFLAGS="$xorg_testset_save_CFLAGS"
6201fi
6202
6203if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6204	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6205		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6206	fi
6207	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6208	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6209printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6210if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6211then :
6212  printf %s "(cached) " >&6
6213else $as_nop
6214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215/* end confdefs.h.  */
6216int i;
6217_ACEOF
6218if ac_fn_c_try_compile "$LINENO"
6219then :
6220  xorg_cv_cc_flag_unused_command_line_argument=yes
6221else $as_nop
6222  xorg_cv_cc_flag_unused_command_line_argument=no
6223fi
6224rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6225fi
6226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6227printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6228	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6229	CFLAGS="$xorg_testset_save_CFLAGS"
6230fi
6231
6232found="no"
6233
6234	if test $found = "no" ; then
6235		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6236			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6237		fi
6238
6239		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6240			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6241		fi
6242
6243		CFLAGS="$CFLAGS -Wunused"
6244
6245		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6246printf %s "checking if $CC supports -Wunused... " >&6; }
6247		cacheid=xorg_cv_cc_flag__Wunused
6248		if eval test \${$cacheid+y}
6249then :
6250  printf %s "(cached) " >&6
6251else $as_nop
6252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253/* end confdefs.h.  */
6254int i;
6255int
6256main (void)
6257{
6258
6259  ;
6260  return 0;
6261}
6262_ACEOF
6263if ac_fn_c_try_link "$LINENO"
6264then :
6265  eval $cacheid=yes
6266else $as_nop
6267  eval $cacheid=no
6268fi
6269rm -f core conftest.err conftest.$ac_objext conftest.beam \
6270    conftest$ac_exeext conftest.$ac_ext
6271fi
6272
6273
6274		CFLAGS="$xorg_testset_save_CFLAGS"
6275
6276		eval supported=\$$cacheid
6277		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6278printf "%s\n" "$supported" >&6; }
6279		if test "$supported" = "yes" ; then
6280			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6281			found="yes"
6282		fi
6283	fi
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299xorg_testset_save_CFLAGS="$CFLAGS"
6300
6301if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6302	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6303	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6304printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6305if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6306then :
6307  printf %s "(cached) " >&6
6308else $as_nop
6309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310/* end confdefs.h.  */
6311int i;
6312_ACEOF
6313if ac_fn_c_try_compile "$LINENO"
6314then :
6315  xorg_cv_cc_flag_unknown_warning_option=yes
6316else $as_nop
6317  xorg_cv_cc_flag_unknown_warning_option=no
6318fi
6319rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6320fi
6321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6322printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6323	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6324	CFLAGS="$xorg_testset_save_CFLAGS"
6325fi
6326
6327if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6328	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6329		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6330	fi
6331	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6332	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6333printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6334if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6335then :
6336  printf %s "(cached) " >&6
6337else $as_nop
6338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339/* end confdefs.h.  */
6340int i;
6341_ACEOF
6342if ac_fn_c_try_compile "$LINENO"
6343then :
6344  xorg_cv_cc_flag_unused_command_line_argument=yes
6345else $as_nop
6346  xorg_cv_cc_flag_unused_command_line_argument=no
6347fi
6348rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6349fi
6350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6351printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6352	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6353	CFLAGS="$xorg_testset_save_CFLAGS"
6354fi
6355
6356found="no"
6357
6358	if test $found = "no" ; then
6359		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6360			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6361		fi
6362
6363		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6364			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6365		fi
6366
6367		CFLAGS="$CFLAGS -Wuninitialized"
6368
6369		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6370printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6371		cacheid=xorg_cv_cc_flag__Wuninitialized
6372		if eval test \${$cacheid+y}
6373then :
6374  printf %s "(cached) " >&6
6375else $as_nop
6376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377/* end confdefs.h.  */
6378int i;
6379int
6380main (void)
6381{
6382
6383  ;
6384  return 0;
6385}
6386_ACEOF
6387if ac_fn_c_try_link "$LINENO"
6388then :
6389  eval $cacheid=yes
6390else $as_nop
6391  eval $cacheid=no
6392fi
6393rm -f core conftest.err conftest.$ac_objext conftest.beam \
6394    conftest$ac_exeext conftest.$ac_ext
6395fi
6396
6397
6398		CFLAGS="$xorg_testset_save_CFLAGS"
6399
6400		eval supported=\$$cacheid
6401		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6402printf "%s\n" "$supported" >&6; }
6403		if test "$supported" = "yes" ; then
6404			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6405			found="yes"
6406		fi
6407	fi
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423xorg_testset_save_CFLAGS="$CFLAGS"
6424
6425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6426	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6427	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6428printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6429if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6430then :
6431  printf %s "(cached) " >&6
6432else $as_nop
6433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434/* end confdefs.h.  */
6435int i;
6436_ACEOF
6437if ac_fn_c_try_compile "$LINENO"
6438then :
6439  xorg_cv_cc_flag_unknown_warning_option=yes
6440else $as_nop
6441  xorg_cv_cc_flag_unknown_warning_option=no
6442fi
6443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6444fi
6445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6446printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6447	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6448	CFLAGS="$xorg_testset_save_CFLAGS"
6449fi
6450
6451if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6452	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6453		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6454	fi
6455	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6456	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6457printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6458if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6459then :
6460  printf %s "(cached) " >&6
6461else $as_nop
6462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463/* end confdefs.h.  */
6464int i;
6465_ACEOF
6466if ac_fn_c_try_compile "$LINENO"
6467then :
6468  xorg_cv_cc_flag_unused_command_line_argument=yes
6469else $as_nop
6470  xorg_cv_cc_flag_unused_command_line_argument=no
6471fi
6472rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6473fi
6474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6475printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6476	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6477	CFLAGS="$xorg_testset_save_CFLAGS"
6478fi
6479
6480found="no"
6481
6482	if test $found = "no" ; then
6483		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6484			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6485		fi
6486
6487		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6488			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6489		fi
6490
6491		CFLAGS="$CFLAGS -Wshadow"
6492
6493		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6494printf %s "checking if $CC supports -Wshadow... " >&6; }
6495		cacheid=xorg_cv_cc_flag__Wshadow
6496		if eval test \${$cacheid+y}
6497then :
6498  printf %s "(cached) " >&6
6499else $as_nop
6500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501/* end confdefs.h.  */
6502int i;
6503int
6504main (void)
6505{
6506
6507  ;
6508  return 0;
6509}
6510_ACEOF
6511if ac_fn_c_try_link "$LINENO"
6512then :
6513  eval $cacheid=yes
6514else $as_nop
6515  eval $cacheid=no
6516fi
6517rm -f core conftest.err conftest.$ac_objext conftest.beam \
6518    conftest$ac_exeext conftest.$ac_ext
6519fi
6520
6521
6522		CFLAGS="$xorg_testset_save_CFLAGS"
6523
6524		eval supported=\$$cacheid
6525		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6526printf "%s\n" "$supported" >&6; }
6527		if test "$supported" = "yes" ; then
6528			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6529			found="yes"
6530		fi
6531	fi
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547xorg_testset_save_CFLAGS="$CFLAGS"
6548
6549if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6550	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6551	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6552printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6553if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6554then :
6555  printf %s "(cached) " >&6
6556else $as_nop
6557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558/* end confdefs.h.  */
6559int i;
6560_ACEOF
6561if ac_fn_c_try_compile "$LINENO"
6562then :
6563  xorg_cv_cc_flag_unknown_warning_option=yes
6564else $as_nop
6565  xorg_cv_cc_flag_unknown_warning_option=no
6566fi
6567rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6568fi
6569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6570printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6571	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6572	CFLAGS="$xorg_testset_save_CFLAGS"
6573fi
6574
6575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6576	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6577		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6578	fi
6579	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6580	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6581printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6582if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6583then :
6584  printf %s "(cached) " >&6
6585else $as_nop
6586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587/* end confdefs.h.  */
6588int i;
6589_ACEOF
6590if ac_fn_c_try_compile "$LINENO"
6591then :
6592  xorg_cv_cc_flag_unused_command_line_argument=yes
6593else $as_nop
6594  xorg_cv_cc_flag_unused_command_line_argument=no
6595fi
6596rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6597fi
6598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6599printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6600	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6601	CFLAGS="$xorg_testset_save_CFLAGS"
6602fi
6603
6604found="no"
6605
6606	if test $found = "no" ; then
6607		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6608			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6609		fi
6610
6611		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6612			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6613		fi
6614
6615		CFLAGS="$CFLAGS -Wmissing-noreturn"
6616
6617		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6618printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6619		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6620		if eval test \${$cacheid+y}
6621then :
6622  printf %s "(cached) " >&6
6623else $as_nop
6624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625/* end confdefs.h.  */
6626int i;
6627int
6628main (void)
6629{
6630
6631  ;
6632  return 0;
6633}
6634_ACEOF
6635if ac_fn_c_try_link "$LINENO"
6636then :
6637  eval $cacheid=yes
6638else $as_nop
6639  eval $cacheid=no
6640fi
6641rm -f core conftest.err conftest.$ac_objext conftest.beam \
6642    conftest$ac_exeext conftest.$ac_ext
6643fi
6644
6645
6646		CFLAGS="$xorg_testset_save_CFLAGS"
6647
6648		eval supported=\$$cacheid
6649		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6650printf "%s\n" "$supported" >&6; }
6651		if test "$supported" = "yes" ; then
6652			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6653			found="yes"
6654		fi
6655	fi
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671xorg_testset_save_CFLAGS="$CFLAGS"
6672
6673if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6674	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6675	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6676printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6677if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6678then :
6679  printf %s "(cached) " >&6
6680else $as_nop
6681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682/* end confdefs.h.  */
6683int i;
6684_ACEOF
6685if ac_fn_c_try_compile "$LINENO"
6686then :
6687  xorg_cv_cc_flag_unknown_warning_option=yes
6688else $as_nop
6689  xorg_cv_cc_flag_unknown_warning_option=no
6690fi
6691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6692fi
6693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6694printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6695	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6696	CFLAGS="$xorg_testset_save_CFLAGS"
6697fi
6698
6699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6700	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6701		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6702	fi
6703	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6704	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6705printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6706if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6707then :
6708  printf %s "(cached) " >&6
6709else $as_nop
6710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711/* end confdefs.h.  */
6712int i;
6713_ACEOF
6714if ac_fn_c_try_compile "$LINENO"
6715then :
6716  xorg_cv_cc_flag_unused_command_line_argument=yes
6717else $as_nop
6718  xorg_cv_cc_flag_unused_command_line_argument=no
6719fi
6720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6721fi
6722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6723printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6724	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6725	CFLAGS="$xorg_testset_save_CFLAGS"
6726fi
6727
6728found="no"
6729
6730	if test $found = "no" ; then
6731		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6732			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6733		fi
6734
6735		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6736			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6737		fi
6738
6739		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6740
6741		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6742printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6743		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6744		if eval test \${$cacheid+y}
6745then :
6746  printf %s "(cached) " >&6
6747else $as_nop
6748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749/* end confdefs.h.  */
6750int i;
6751int
6752main (void)
6753{
6754
6755  ;
6756  return 0;
6757}
6758_ACEOF
6759if ac_fn_c_try_link "$LINENO"
6760then :
6761  eval $cacheid=yes
6762else $as_nop
6763  eval $cacheid=no
6764fi
6765rm -f core conftest.err conftest.$ac_objext conftest.beam \
6766    conftest$ac_exeext conftest.$ac_ext
6767fi
6768
6769
6770		CFLAGS="$xorg_testset_save_CFLAGS"
6771
6772		eval supported=\$$cacheid
6773		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6774printf "%s\n" "$supported" >&6; }
6775		if test "$supported" = "yes" ; then
6776			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6777			found="yes"
6778		fi
6779	fi
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795xorg_testset_save_CFLAGS="$CFLAGS"
6796
6797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6798	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6799	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6800printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6801if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6802then :
6803  printf %s "(cached) " >&6
6804else $as_nop
6805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806/* end confdefs.h.  */
6807int i;
6808_ACEOF
6809if ac_fn_c_try_compile "$LINENO"
6810then :
6811  xorg_cv_cc_flag_unknown_warning_option=yes
6812else $as_nop
6813  xorg_cv_cc_flag_unknown_warning_option=no
6814fi
6815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6816fi
6817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6818printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6819	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6820	CFLAGS="$xorg_testset_save_CFLAGS"
6821fi
6822
6823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6824	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6825		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6826	fi
6827	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6828	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6829printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6830if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6831then :
6832  printf %s "(cached) " >&6
6833else $as_nop
6834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835/* end confdefs.h.  */
6836int i;
6837_ACEOF
6838if ac_fn_c_try_compile "$LINENO"
6839then :
6840  xorg_cv_cc_flag_unused_command_line_argument=yes
6841else $as_nop
6842  xorg_cv_cc_flag_unused_command_line_argument=no
6843fi
6844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6845fi
6846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6847printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6848	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6849	CFLAGS="$xorg_testset_save_CFLAGS"
6850fi
6851
6852found="no"
6853
6854	if test $found = "no" ; then
6855		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6856			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6857		fi
6858
6859		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6860			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6861		fi
6862
6863		CFLAGS="$CFLAGS -Wredundant-decls"
6864
6865		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6866printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6867		cacheid=xorg_cv_cc_flag__Wredundant_decls
6868		if eval test \${$cacheid+y}
6869then :
6870  printf %s "(cached) " >&6
6871else $as_nop
6872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873/* end confdefs.h.  */
6874int i;
6875int
6876main (void)
6877{
6878
6879  ;
6880  return 0;
6881}
6882_ACEOF
6883if ac_fn_c_try_link "$LINENO"
6884then :
6885  eval $cacheid=yes
6886else $as_nop
6887  eval $cacheid=no
6888fi
6889rm -f core conftest.err conftest.$ac_objext conftest.beam \
6890    conftest$ac_exeext conftest.$ac_ext
6891fi
6892
6893
6894		CFLAGS="$xorg_testset_save_CFLAGS"
6895
6896		eval supported=\$$cacheid
6897		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6898printf "%s\n" "$supported" >&6; }
6899		if test "$supported" = "yes" ; then
6900			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6901			found="yes"
6902		fi
6903	fi
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919xorg_testset_save_CFLAGS="$CFLAGS"
6920
6921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6922	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6923	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6924printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6925if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6926then :
6927  printf %s "(cached) " >&6
6928else $as_nop
6929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930/* end confdefs.h.  */
6931int i;
6932_ACEOF
6933if ac_fn_c_try_compile "$LINENO"
6934then :
6935  xorg_cv_cc_flag_unknown_warning_option=yes
6936else $as_nop
6937  xorg_cv_cc_flag_unknown_warning_option=no
6938fi
6939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6940fi
6941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6942printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6943	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6944	CFLAGS="$xorg_testset_save_CFLAGS"
6945fi
6946
6947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6948	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6949		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6950	fi
6951	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6952	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6953printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6954if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6955then :
6956  printf %s "(cached) " >&6
6957else $as_nop
6958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959/* end confdefs.h.  */
6960int i;
6961_ACEOF
6962if ac_fn_c_try_compile "$LINENO"
6963then :
6964  xorg_cv_cc_flag_unused_command_line_argument=yes
6965else $as_nop
6966  xorg_cv_cc_flag_unused_command_line_argument=no
6967fi
6968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6969fi
6970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6971printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6972	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6973	CFLAGS="$xorg_testset_save_CFLAGS"
6974fi
6975
6976found="no"
6977
6978	if test $found = "no" ; then
6979		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6980			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6981		fi
6982
6983		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6984			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6985		fi
6986
6987		CFLAGS="$CFLAGS -Wlogical-op"
6988
6989		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6990printf %s "checking if $CC supports -Wlogical-op... " >&6; }
6991		cacheid=xorg_cv_cc_flag__Wlogical_op
6992		if eval test \${$cacheid+y}
6993then :
6994  printf %s "(cached) " >&6
6995else $as_nop
6996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997/* end confdefs.h.  */
6998int i;
6999int
7000main (void)
7001{
7002
7003  ;
7004  return 0;
7005}
7006_ACEOF
7007if ac_fn_c_try_link "$LINENO"
7008then :
7009  eval $cacheid=yes
7010else $as_nop
7011  eval $cacheid=no
7012fi
7013rm -f core conftest.err conftest.$ac_objext conftest.beam \
7014    conftest$ac_exeext conftest.$ac_ext
7015fi
7016
7017
7018		CFLAGS="$xorg_testset_save_CFLAGS"
7019
7020		eval supported=\$$cacheid
7021		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7022printf "%s\n" "$supported" >&6; }
7023		if test "$supported" = "yes" ; then
7024			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7025			found="yes"
7026		fi
7027	fi
7028
7029
7030
7031# These are currently disabled because they are noisy.  They will be enabled
7032# in the future once the codebase is sufficiently modernized to silence
7033# them.  For now, I don't want them to drown out the other warnings.
7034# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7035# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7036# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7037
7038# Turn some warnings into errors, so we don't accidently get successful builds
7039# when there are problems that should be fixed.
7040
7041if test "x$SELECTIVE_WERROR" = "xyes" ; then
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055xorg_testset_save_CFLAGS="$CFLAGS"
7056
7057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7058	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7059	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7060printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7061if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7062then :
7063  printf %s "(cached) " >&6
7064else $as_nop
7065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066/* end confdefs.h.  */
7067int i;
7068_ACEOF
7069if ac_fn_c_try_compile "$LINENO"
7070then :
7071  xorg_cv_cc_flag_unknown_warning_option=yes
7072else $as_nop
7073  xorg_cv_cc_flag_unknown_warning_option=no
7074fi
7075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7076fi
7077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7078printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7079	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7080	CFLAGS="$xorg_testset_save_CFLAGS"
7081fi
7082
7083if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7084	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7085		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7086	fi
7087	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7088	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7089printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7090if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7091then :
7092  printf %s "(cached) " >&6
7093else $as_nop
7094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095/* end confdefs.h.  */
7096int i;
7097_ACEOF
7098if ac_fn_c_try_compile "$LINENO"
7099then :
7100  xorg_cv_cc_flag_unused_command_line_argument=yes
7101else $as_nop
7102  xorg_cv_cc_flag_unused_command_line_argument=no
7103fi
7104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7105fi
7106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7107printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7108	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7109	CFLAGS="$xorg_testset_save_CFLAGS"
7110fi
7111
7112found="no"
7113
7114	if test $found = "no" ; then
7115		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7116			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7117		fi
7118
7119		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7120			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7121		fi
7122
7123		CFLAGS="$CFLAGS -Werror=implicit"
7124
7125		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7126printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7127		cacheid=xorg_cv_cc_flag__Werror_implicit
7128		if eval test \${$cacheid+y}
7129then :
7130  printf %s "(cached) " >&6
7131else $as_nop
7132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133/* end confdefs.h.  */
7134int i;
7135int
7136main (void)
7137{
7138
7139  ;
7140  return 0;
7141}
7142_ACEOF
7143if ac_fn_c_try_link "$LINENO"
7144then :
7145  eval $cacheid=yes
7146else $as_nop
7147  eval $cacheid=no
7148fi
7149rm -f core conftest.err conftest.$ac_objext conftest.beam \
7150    conftest$ac_exeext conftest.$ac_ext
7151fi
7152
7153
7154		CFLAGS="$xorg_testset_save_CFLAGS"
7155
7156		eval supported=\$$cacheid
7157		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7158printf "%s\n" "$supported" >&6; }
7159		if test "$supported" = "yes" ; then
7160			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7161			found="yes"
7162		fi
7163	fi
7164
7165	if test $found = "no" ; then
7166		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7167			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7168		fi
7169
7170		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7171			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7172		fi
7173
7174		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7175
7176		{ 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
7177printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7178		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7179		if eval test \${$cacheid+y}
7180then :
7181  printf %s "(cached) " >&6
7182else $as_nop
7183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184/* end confdefs.h.  */
7185int i;
7186int
7187main (void)
7188{
7189
7190  ;
7191  return 0;
7192}
7193_ACEOF
7194if ac_fn_c_try_link "$LINENO"
7195then :
7196  eval $cacheid=yes
7197else $as_nop
7198  eval $cacheid=no
7199fi
7200rm -f core conftest.err conftest.$ac_objext conftest.beam \
7201    conftest$ac_exeext conftest.$ac_ext
7202fi
7203
7204
7205		CFLAGS="$xorg_testset_save_CFLAGS"
7206
7207		eval supported=\$$cacheid
7208		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7209printf "%s\n" "$supported" >&6; }
7210		if test "$supported" = "yes" ; then
7211			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7212			found="yes"
7213		fi
7214	fi
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230xorg_testset_save_CFLAGS="$CFLAGS"
7231
7232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7233	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7234	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7235printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7236if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7237then :
7238  printf %s "(cached) " >&6
7239else $as_nop
7240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241/* end confdefs.h.  */
7242int i;
7243_ACEOF
7244if ac_fn_c_try_compile "$LINENO"
7245then :
7246  xorg_cv_cc_flag_unknown_warning_option=yes
7247else $as_nop
7248  xorg_cv_cc_flag_unknown_warning_option=no
7249fi
7250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7251fi
7252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7253printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7254	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7255	CFLAGS="$xorg_testset_save_CFLAGS"
7256fi
7257
7258if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7259	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7260		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7261	fi
7262	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7263	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7264printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7265if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7266then :
7267  printf %s "(cached) " >&6
7268else $as_nop
7269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270/* end confdefs.h.  */
7271int i;
7272_ACEOF
7273if ac_fn_c_try_compile "$LINENO"
7274then :
7275  xorg_cv_cc_flag_unused_command_line_argument=yes
7276else $as_nop
7277  xorg_cv_cc_flag_unused_command_line_argument=no
7278fi
7279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7280fi
7281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7282printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7283	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7284	CFLAGS="$xorg_testset_save_CFLAGS"
7285fi
7286
7287found="no"
7288
7289	if test $found = "no" ; then
7290		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7291			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7292		fi
7293
7294		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7295			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7296		fi
7297
7298		CFLAGS="$CFLAGS -Werror=nonnull"
7299
7300		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7301printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7302		cacheid=xorg_cv_cc_flag__Werror_nonnull
7303		if eval test \${$cacheid+y}
7304then :
7305  printf %s "(cached) " >&6
7306else $as_nop
7307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308/* end confdefs.h.  */
7309int i;
7310int
7311main (void)
7312{
7313
7314  ;
7315  return 0;
7316}
7317_ACEOF
7318if ac_fn_c_try_link "$LINENO"
7319then :
7320  eval $cacheid=yes
7321else $as_nop
7322  eval $cacheid=no
7323fi
7324rm -f core conftest.err conftest.$ac_objext conftest.beam \
7325    conftest$ac_exeext conftest.$ac_ext
7326fi
7327
7328
7329		CFLAGS="$xorg_testset_save_CFLAGS"
7330
7331		eval supported=\$$cacheid
7332		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7333printf "%s\n" "$supported" >&6; }
7334		if test "$supported" = "yes" ; then
7335			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7336			found="yes"
7337		fi
7338	fi
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354xorg_testset_save_CFLAGS="$CFLAGS"
7355
7356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7357	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7358	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7359printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7360if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7361then :
7362  printf %s "(cached) " >&6
7363else $as_nop
7364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365/* end confdefs.h.  */
7366int i;
7367_ACEOF
7368if ac_fn_c_try_compile "$LINENO"
7369then :
7370  xorg_cv_cc_flag_unknown_warning_option=yes
7371else $as_nop
7372  xorg_cv_cc_flag_unknown_warning_option=no
7373fi
7374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7375fi
7376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7377printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7378	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7379	CFLAGS="$xorg_testset_save_CFLAGS"
7380fi
7381
7382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7383	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7384		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7385	fi
7386	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7387	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7388printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7389if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7390then :
7391  printf %s "(cached) " >&6
7392else $as_nop
7393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394/* end confdefs.h.  */
7395int i;
7396_ACEOF
7397if ac_fn_c_try_compile "$LINENO"
7398then :
7399  xorg_cv_cc_flag_unused_command_line_argument=yes
7400else $as_nop
7401  xorg_cv_cc_flag_unused_command_line_argument=no
7402fi
7403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7404fi
7405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7406printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7407	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7408	CFLAGS="$xorg_testset_save_CFLAGS"
7409fi
7410
7411found="no"
7412
7413	if test $found = "no" ; then
7414		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7415			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7416		fi
7417
7418		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7419			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7420		fi
7421
7422		CFLAGS="$CFLAGS -Werror=init-self"
7423
7424		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7425printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7426		cacheid=xorg_cv_cc_flag__Werror_init_self
7427		if eval test \${$cacheid+y}
7428then :
7429  printf %s "(cached) " >&6
7430else $as_nop
7431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432/* end confdefs.h.  */
7433int i;
7434int
7435main (void)
7436{
7437
7438  ;
7439  return 0;
7440}
7441_ACEOF
7442if ac_fn_c_try_link "$LINENO"
7443then :
7444  eval $cacheid=yes
7445else $as_nop
7446  eval $cacheid=no
7447fi
7448rm -f core conftest.err conftest.$ac_objext conftest.beam \
7449    conftest$ac_exeext conftest.$ac_ext
7450fi
7451
7452
7453		CFLAGS="$xorg_testset_save_CFLAGS"
7454
7455		eval supported=\$$cacheid
7456		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7457printf "%s\n" "$supported" >&6; }
7458		if test "$supported" = "yes" ; then
7459			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7460			found="yes"
7461		fi
7462	fi
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478xorg_testset_save_CFLAGS="$CFLAGS"
7479
7480if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7481	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7482	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7483printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7484if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7485then :
7486  printf %s "(cached) " >&6
7487else $as_nop
7488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489/* end confdefs.h.  */
7490int i;
7491_ACEOF
7492if ac_fn_c_try_compile "$LINENO"
7493then :
7494  xorg_cv_cc_flag_unknown_warning_option=yes
7495else $as_nop
7496  xorg_cv_cc_flag_unknown_warning_option=no
7497fi
7498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7499fi
7500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7501printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7502	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7503	CFLAGS="$xorg_testset_save_CFLAGS"
7504fi
7505
7506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7507	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7508		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7509	fi
7510	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7511	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7512printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7513if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7514then :
7515  printf %s "(cached) " >&6
7516else $as_nop
7517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518/* end confdefs.h.  */
7519int i;
7520_ACEOF
7521if ac_fn_c_try_compile "$LINENO"
7522then :
7523  xorg_cv_cc_flag_unused_command_line_argument=yes
7524else $as_nop
7525  xorg_cv_cc_flag_unused_command_line_argument=no
7526fi
7527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7528fi
7529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7530printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7531	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7532	CFLAGS="$xorg_testset_save_CFLAGS"
7533fi
7534
7535found="no"
7536
7537	if test $found = "no" ; then
7538		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7539			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7540		fi
7541
7542		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7543			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7544		fi
7545
7546		CFLAGS="$CFLAGS -Werror=main"
7547
7548		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7549printf %s "checking if $CC supports -Werror=main... " >&6; }
7550		cacheid=xorg_cv_cc_flag__Werror_main
7551		if eval test \${$cacheid+y}
7552then :
7553  printf %s "(cached) " >&6
7554else $as_nop
7555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556/* end confdefs.h.  */
7557int i;
7558int
7559main (void)
7560{
7561
7562  ;
7563  return 0;
7564}
7565_ACEOF
7566if ac_fn_c_try_link "$LINENO"
7567then :
7568  eval $cacheid=yes
7569else $as_nop
7570  eval $cacheid=no
7571fi
7572rm -f core conftest.err conftest.$ac_objext conftest.beam \
7573    conftest$ac_exeext conftest.$ac_ext
7574fi
7575
7576
7577		CFLAGS="$xorg_testset_save_CFLAGS"
7578
7579		eval supported=\$$cacheid
7580		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7581printf "%s\n" "$supported" >&6; }
7582		if test "$supported" = "yes" ; then
7583			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7584			found="yes"
7585		fi
7586	fi
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602xorg_testset_save_CFLAGS="$CFLAGS"
7603
7604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7605	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7606	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7607printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7608if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7609then :
7610  printf %s "(cached) " >&6
7611else $as_nop
7612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613/* end confdefs.h.  */
7614int i;
7615_ACEOF
7616if ac_fn_c_try_compile "$LINENO"
7617then :
7618  xorg_cv_cc_flag_unknown_warning_option=yes
7619else $as_nop
7620  xorg_cv_cc_flag_unknown_warning_option=no
7621fi
7622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7623fi
7624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7625printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7626	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7627	CFLAGS="$xorg_testset_save_CFLAGS"
7628fi
7629
7630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7631	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7632		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7633	fi
7634	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7635	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7636printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7637if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7638then :
7639  printf %s "(cached) " >&6
7640else $as_nop
7641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642/* end confdefs.h.  */
7643int i;
7644_ACEOF
7645if ac_fn_c_try_compile "$LINENO"
7646then :
7647  xorg_cv_cc_flag_unused_command_line_argument=yes
7648else $as_nop
7649  xorg_cv_cc_flag_unused_command_line_argument=no
7650fi
7651rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7652fi
7653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7654printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7655	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7656	CFLAGS="$xorg_testset_save_CFLAGS"
7657fi
7658
7659found="no"
7660
7661	if test $found = "no" ; then
7662		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7663			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7664		fi
7665
7666		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7667			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7668		fi
7669
7670		CFLAGS="$CFLAGS -Werror=missing-braces"
7671
7672		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7673printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7674		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7675		if eval test \${$cacheid+y}
7676then :
7677  printf %s "(cached) " >&6
7678else $as_nop
7679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680/* end confdefs.h.  */
7681int i;
7682int
7683main (void)
7684{
7685
7686  ;
7687  return 0;
7688}
7689_ACEOF
7690if ac_fn_c_try_link "$LINENO"
7691then :
7692  eval $cacheid=yes
7693else $as_nop
7694  eval $cacheid=no
7695fi
7696rm -f core conftest.err conftest.$ac_objext conftest.beam \
7697    conftest$ac_exeext conftest.$ac_ext
7698fi
7699
7700
7701		CFLAGS="$xorg_testset_save_CFLAGS"
7702
7703		eval supported=\$$cacheid
7704		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7705printf "%s\n" "$supported" >&6; }
7706		if test "$supported" = "yes" ; then
7707			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7708			found="yes"
7709		fi
7710	fi
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726xorg_testset_save_CFLAGS="$CFLAGS"
7727
7728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7729	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7730	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7731printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7732if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7733then :
7734  printf %s "(cached) " >&6
7735else $as_nop
7736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737/* end confdefs.h.  */
7738int i;
7739_ACEOF
7740if ac_fn_c_try_compile "$LINENO"
7741then :
7742  xorg_cv_cc_flag_unknown_warning_option=yes
7743else $as_nop
7744  xorg_cv_cc_flag_unknown_warning_option=no
7745fi
7746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7747fi
7748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7749printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7750	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7751	CFLAGS="$xorg_testset_save_CFLAGS"
7752fi
7753
7754if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7755	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7756		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7757	fi
7758	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7759	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7760printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7761if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7762then :
7763  printf %s "(cached) " >&6
7764else $as_nop
7765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766/* end confdefs.h.  */
7767int i;
7768_ACEOF
7769if ac_fn_c_try_compile "$LINENO"
7770then :
7771  xorg_cv_cc_flag_unused_command_line_argument=yes
7772else $as_nop
7773  xorg_cv_cc_flag_unused_command_line_argument=no
7774fi
7775rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7776fi
7777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7778printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7779	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7780	CFLAGS="$xorg_testset_save_CFLAGS"
7781fi
7782
7783found="no"
7784
7785	if test $found = "no" ; then
7786		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7787			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7788		fi
7789
7790		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7791			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7792		fi
7793
7794		CFLAGS="$CFLAGS -Werror=sequence-point"
7795
7796		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7797printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7798		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7799		if eval test \${$cacheid+y}
7800then :
7801  printf %s "(cached) " >&6
7802else $as_nop
7803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804/* end confdefs.h.  */
7805int i;
7806int
7807main (void)
7808{
7809
7810  ;
7811  return 0;
7812}
7813_ACEOF
7814if ac_fn_c_try_link "$LINENO"
7815then :
7816  eval $cacheid=yes
7817else $as_nop
7818  eval $cacheid=no
7819fi
7820rm -f core conftest.err conftest.$ac_objext conftest.beam \
7821    conftest$ac_exeext conftest.$ac_ext
7822fi
7823
7824
7825		CFLAGS="$xorg_testset_save_CFLAGS"
7826
7827		eval supported=\$$cacheid
7828		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7829printf "%s\n" "$supported" >&6; }
7830		if test "$supported" = "yes" ; then
7831			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7832			found="yes"
7833		fi
7834	fi
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850xorg_testset_save_CFLAGS="$CFLAGS"
7851
7852if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7853	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7854	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7855printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7856if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7857then :
7858  printf %s "(cached) " >&6
7859else $as_nop
7860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861/* end confdefs.h.  */
7862int i;
7863_ACEOF
7864if ac_fn_c_try_compile "$LINENO"
7865then :
7866  xorg_cv_cc_flag_unknown_warning_option=yes
7867else $as_nop
7868  xorg_cv_cc_flag_unknown_warning_option=no
7869fi
7870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7871fi
7872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7873printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7874	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7875	CFLAGS="$xorg_testset_save_CFLAGS"
7876fi
7877
7878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7879	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7880		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7881	fi
7882	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7883	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7884printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7885if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7886then :
7887  printf %s "(cached) " >&6
7888else $as_nop
7889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890/* end confdefs.h.  */
7891int i;
7892_ACEOF
7893if ac_fn_c_try_compile "$LINENO"
7894then :
7895  xorg_cv_cc_flag_unused_command_line_argument=yes
7896else $as_nop
7897  xorg_cv_cc_flag_unused_command_line_argument=no
7898fi
7899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7900fi
7901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7902printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7903	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7904	CFLAGS="$xorg_testset_save_CFLAGS"
7905fi
7906
7907found="no"
7908
7909	if test $found = "no" ; then
7910		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7911			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7912		fi
7913
7914		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7915			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7916		fi
7917
7918		CFLAGS="$CFLAGS -Werror=return-type"
7919
7920		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7921printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7922		cacheid=xorg_cv_cc_flag__Werror_return_type
7923		if eval test \${$cacheid+y}
7924then :
7925  printf %s "(cached) " >&6
7926else $as_nop
7927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928/* end confdefs.h.  */
7929int i;
7930int
7931main (void)
7932{
7933
7934  ;
7935  return 0;
7936}
7937_ACEOF
7938if ac_fn_c_try_link "$LINENO"
7939then :
7940  eval $cacheid=yes
7941else $as_nop
7942  eval $cacheid=no
7943fi
7944rm -f core conftest.err conftest.$ac_objext conftest.beam \
7945    conftest$ac_exeext conftest.$ac_ext
7946fi
7947
7948
7949		CFLAGS="$xorg_testset_save_CFLAGS"
7950
7951		eval supported=\$$cacheid
7952		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7953printf "%s\n" "$supported" >&6; }
7954		if test "$supported" = "yes" ; then
7955			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7956			found="yes"
7957		fi
7958	fi
7959
7960	if test $found = "no" ; then
7961		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7962			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7963		fi
7964
7965		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7966			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7967		fi
7968
7969		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7970
7971		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7972printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7973		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7974		if eval test \${$cacheid+y}
7975then :
7976  printf %s "(cached) " >&6
7977else $as_nop
7978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979/* end confdefs.h.  */
7980int i;
7981int
7982main (void)
7983{
7984
7985  ;
7986  return 0;
7987}
7988_ACEOF
7989if ac_fn_c_try_link "$LINENO"
7990then :
7991  eval $cacheid=yes
7992else $as_nop
7993  eval $cacheid=no
7994fi
7995rm -f core conftest.err conftest.$ac_objext conftest.beam \
7996    conftest$ac_exeext conftest.$ac_ext
7997fi
7998
7999
8000		CFLAGS="$xorg_testset_save_CFLAGS"
8001
8002		eval supported=\$$cacheid
8003		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8004printf "%s\n" "$supported" >&6; }
8005		if test "$supported" = "yes" ; then
8006			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8007			found="yes"
8008		fi
8009	fi
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025xorg_testset_save_CFLAGS="$CFLAGS"
8026
8027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8028	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8029	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8030printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8031if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8032then :
8033  printf %s "(cached) " >&6
8034else $as_nop
8035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036/* end confdefs.h.  */
8037int i;
8038_ACEOF
8039if ac_fn_c_try_compile "$LINENO"
8040then :
8041  xorg_cv_cc_flag_unknown_warning_option=yes
8042else $as_nop
8043  xorg_cv_cc_flag_unknown_warning_option=no
8044fi
8045rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8046fi
8047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8048printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8049	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8050	CFLAGS="$xorg_testset_save_CFLAGS"
8051fi
8052
8053if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8054	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8055		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8056	fi
8057	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8058	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8059printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8060if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8061then :
8062  printf %s "(cached) " >&6
8063else $as_nop
8064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065/* end confdefs.h.  */
8066int i;
8067_ACEOF
8068if ac_fn_c_try_compile "$LINENO"
8069then :
8070  xorg_cv_cc_flag_unused_command_line_argument=yes
8071else $as_nop
8072  xorg_cv_cc_flag_unused_command_line_argument=no
8073fi
8074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8075fi
8076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8077printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8078	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8079	CFLAGS="$xorg_testset_save_CFLAGS"
8080fi
8081
8082found="no"
8083
8084	if test $found = "no" ; then
8085		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8086			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8087		fi
8088
8089		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8090			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8091		fi
8092
8093		CFLAGS="$CFLAGS -Werror=trigraphs"
8094
8095		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8096printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8097		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8098		if eval test \${$cacheid+y}
8099then :
8100  printf %s "(cached) " >&6
8101else $as_nop
8102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103/* end confdefs.h.  */
8104int i;
8105int
8106main (void)
8107{
8108
8109  ;
8110  return 0;
8111}
8112_ACEOF
8113if ac_fn_c_try_link "$LINENO"
8114then :
8115  eval $cacheid=yes
8116else $as_nop
8117  eval $cacheid=no
8118fi
8119rm -f core conftest.err conftest.$ac_objext conftest.beam \
8120    conftest$ac_exeext conftest.$ac_ext
8121fi
8122
8123
8124		CFLAGS="$xorg_testset_save_CFLAGS"
8125
8126		eval supported=\$$cacheid
8127		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8128printf "%s\n" "$supported" >&6; }
8129		if test "$supported" = "yes" ; then
8130			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8131			found="yes"
8132		fi
8133	fi
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149xorg_testset_save_CFLAGS="$CFLAGS"
8150
8151if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8152	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8153	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8154printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8155if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8156then :
8157  printf %s "(cached) " >&6
8158else $as_nop
8159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160/* end confdefs.h.  */
8161int i;
8162_ACEOF
8163if ac_fn_c_try_compile "$LINENO"
8164then :
8165  xorg_cv_cc_flag_unknown_warning_option=yes
8166else $as_nop
8167  xorg_cv_cc_flag_unknown_warning_option=no
8168fi
8169rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8170fi
8171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8172printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8173	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8174	CFLAGS="$xorg_testset_save_CFLAGS"
8175fi
8176
8177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8178	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8179		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8180	fi
8181	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8182	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8183printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8184if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8185then :
8186  printf %s "(cached) " >&6
8187else $as_nop
8188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189/* end confdefs.h.  */
8190int i;
8191_ACEOF
8192if ac_fn_c_try_compile "$LINENO"
8193then :
8194  xorg_cv_cc_flag_unused_command_line_argument=yes
8195else $as_nop
8196  xorg_cv_cc_flag_unused_command_line_argument=no
8197fi
8198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8199fi
8200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8201printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8202	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8203	CFLAGS="$xorg_testset_save_CFLAGS"
8204fi
8205
8206found="no"
8207
8208	if test $found = "no" ; then
8209		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8210			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8211		fi
8212
8213		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8214			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8215		fi
8216
8217		CFLAGS="$CFLAGS -Werror=array-bounds"
8218
8219		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8220printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8221		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8222		if eval test \${$cacheid+y}
8223then :
8224  printf %s "(cached) " >&6
8225else $as_nop
8226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227/* end confdefs.h.  */
8228int i;
8229int
8230main (void)
8231{
8232
8233  ;
8234  return 0;
8235}
8236_ACEOF
8237if ac_fn_c_try_link "$LINENO"
8238then :
8239  eval $cacheid=yes
8240else $as_nop
8241  eval $cacheid=no
8242fi
8243rm -f core conftest.err conftest.$ac_objext conftest.beam \
8244    conftest$ac_exeext conftest.$ac_ext
8245fi
8246
8247
8248		CFLAGS="$xorg_testset_save_CFLAGS"
8249
8250		eval supported=\$$cacheid
8251		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8252printf "%s\n" "$supported" >&6; }
8253		if test "$supported" = "yes" ; then
8254			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8255			found="yes"
8256		fi
8257	fi
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273xorg_testset_save_CFLAGS="$CFLAGS"
8274
8275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8276	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8277	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8278printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8279if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8280then :
8281  printf %s "(cached) " >&6
8282else $as_nop
8283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284/* end confdefs.h.  */
8285int i;
8286_ACEOF
8287if ac_fn_c_try_compile "$LINENO"
8288then :
8289  xorg_cv_cc_flag_unknown_warning_option=yes
8290else $as_nop
8291  xorg_cv_cc_flag_unknown_warning_option=no
8292fi
8293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8294fi
8295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8296printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8297	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8298	CFLAGS="$xorg_testset_save_CFLAGS"
8299fi
8300
8301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8302	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8303		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8304	fi
8305	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8306	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8307printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8308if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8309then :
8310  printf %s "(cached) " >&6
8311else $as_nop
8312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313/* end confdefs.h.  */
8314int i;
8315_ACEOF
8316if ac_fn_c_try_compile "$LINENO"
8317then :
8318  xorg_cv_cc_flag_unused_command_line_argument=yes
8319else $as_nop
8320  xorg_cv_cc_flag_unused_command_line_argument=no
8321fi
8322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8323fi
8324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8325printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8326	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8327	CFLAGS="$xorg_testset_save_CFLAGS"
8328fi
8329
8330found="no"
8331
8332	if test $found = "no" ; then
8333		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8334			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8335		fi
8336
8337		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8338			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8339		fi
8340
8341		CFLAGS="$CFLAGS -Werror=write-strings"
8342
8343		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8344printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8345		cacheid=xorg_cv_cc_flag__Werror_write_strings
8346		if eval test \${$cacheid+y}
8347then :
8348  printf %s "(cached) " >&6
8349else $as_nop
8350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351/* end confdefs.h.  */
8352int i;
8353int
8354main (void)
8355{
8356
8357  ;
8358  return 0;
8359}
8360_ACEOF
8361if ac_fn_c_try_link "$LINENO"
8362then :
8363  eval $cacheid=yes
8364else $as_nop
8365  eval $cacheid=no
8366fi
8367rm -f core conftest.err conftest.$ac_objext conftest.beam \
8368    conftest$ac_exeext conftest.$ac_ext
8369fi
8370
8371
8372		CFLAGS="$xorg_testset_save_CFLAGS"
8373
8374		eval supported=\$$cacheid
8375		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8376printf "%s\n" "$supported" >&6; }
8377		if test "$supported" = "yes" ; then
8378			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8379			found="yes"
8380		fi
8381	fi
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397xorg_testset_save_CFLAGS="$CFLAGS"
8398
8399if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8400	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8401	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8402printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8403if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8404then :
8405  printf %s "(cached) " >&6
8406else $as_nop
8407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408/* end confdefs.h.  */
8409int i;
8410_ACEOF
8411if ac_fn_c_try_compile "$LINENO"
8412then :
8413  xorg_cv_cc_flag_unknown_warning_option=yes
8414else $as_nop
8415  xorg_cv_cc_flag_unknown_warning_option=no
8416fi
8417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8418fi
8419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8420printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8421	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8422	CFLAGS="$xorg_testset_save_CFLAGS"
8423fi
8424
8425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8426	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8427		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8428	fi
8429	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8430	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8431printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8432if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8433then :
8434  printf %s "(cached) " >&6
8435else $as_nop
8436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8437/* end confdefs.h.  */
8438int i;
8439_ACEOF
8440if ac_fn_c_try_compile "$LINENO"
8441then :
8442  xorg_cv_cc_flag_unused_command_line_argument=yes
8443else $as_nop
8444  xorg_cv_cc_flag_unused_command_line_argument=no
8445fi
8446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8447fi
8448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8449printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8450	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8451	CFLAGS="$xorg_testset_save_CFLAGS"
8452fi
8453
8454found="no"
8455
8456	if test $found = "no" ; then
8457		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8458			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8459		fi
8460
8461		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8462			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8463		fi
8464
8465		CFLAGS="$CFLAGS -Werror=address"
8466
8467		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8468printf %s "checking if $CC supports -Werror=address... " >&6; }
8469		cacheid=xorg_cv_cc_flag__Werror_address
8470		if eval test \${$cacheid+y}
8471then :
8472  printf %s "(cached) " >&6
8473else $as_nop
8474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475/* end confdefs.h.  */
8476int i;
8477int
8478main (void)
8479{
8480
8481  ;
8482  return 0;
8483}
8484_ACEOF
8485if ac_fn_c_try_link "$LINENO"
8486then :
8487  eval $cacheid=yes
8488else $as_nop
8489  eval $cacheid=no
8490fi
8491rm -f core conftest.err conftest.$ac_objext conftest.beam \
8492    conftest$ac_exeext conftest.$ac_ext
8493fi
8494
8495
8496		CFLAGS="$xorg_testset_save_CFLAGS"
8497
8498		eval supported=\$$cacheid
8499		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8500printf "%s\n" "$supported" >&6; }
8501		if test "$supported" = "yes" ; then
8502			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8503			found="yes"
8504		fi
8505	fi
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521xorg_testset_save_CFLAGS="$CFLAGS"
8522
8523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8524	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8525	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8526printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8527if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8528then :
8529  printf %s "(cached) " >&6
8530else $as_nop
8531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532/* end confdefs.h.  */
8533int i;
8534_ACEOF
8535if ac_fn_c_try_compile "$LINENO"
8536then :
8537  xorg_cv_cc_flag_unknown_warning_option=yes
8538else $as_nop
8539  xorg_cv_cc_flag_unknown_warning_option=no
8540fi
8541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8542fi
8543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8544printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8545	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8546	CFLAGS="$xorg_testset_save_CFLAGS"
8547fi
8548
8549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8550	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8551		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8552	fi
8553	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8554	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8555printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8556if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8557then :
8558  printf %s "(cached) " >&6
8559else $as_nop
8560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8561/* end confdefs.h.  */
8562int i;
8563_ACEOF
8564if ac_fn_c_try_compile "$LINENO"
8565then :
8566  xorg_cv_cc_flag_unused_command_line_argument=yes
8567else $as_nop
8568  xorg_cv_cc_flag_unused_command_line_argument=no
8569fi
8570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8571fi
8572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8573printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8574	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8575	CFLAGS="$xorg_testset_save_CFLAGS"
8576fi
8577
8578found="no"
8579
8580	if test $found = "no" ; then
8581		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8582			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8583		fi
8584
8585		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8586			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8587		fi
8588
8589		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8590
8591		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8592printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8593		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8594		if eval test \${$cacheid+y}
8595then :
8596  printf %s "(cached) " >&6
8597else $as_nop
8598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599/* end confdefs.h.  */
8600int i;
8601int
8602main (void)
8603{
8604
8605  ;
8606  return 0;
8607}
8608_ACEOF
8609if ac_fn_c_try_link "$LINENO"
8610then :
8611  eval $cacheid=yes
8612else $as_nop
8613  eval $cacheid=no
8614fi
8615rm -f core conftest.err conftest.$ac_objext conftest.beam \
8616    conftest$ac_exeext conftest.$ac_ext
8617fi
8618
8619
8620		CFLAGS="$xorg_testset_save_CFLAGS"
8621
8622		eval supported=\$$cacheid
8623		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8624printf "%s\n" "$supported" >&6; }
8625		if test "$supported" = "yes" ; then
8626			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8627			found="yes"
8628		fi
8629	fi
8630
8631	if test $found = "no" ; then
8632		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8633			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8634		fi
8635
8636		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8637			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8638		fi
8639
8640		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8641
8642		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8643printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8644		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8645		if eval test \${$cacheid+y}
8646then :
8647  printf %s "(cached) " >&6
8648else $as_nop
8649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650/* end confdefs.h.  */
8651int i;
8652int
8653main (void)
8654{
8655
8656  ;
8657  return 0;
8658}
8659_ACEOF
8660if ac_fn_c_try_link "$LINENO"
8661then :
8662  eval $cacheid=yes
8663else $as_nop
8664  eval $cacheid=no
8665fi
8666rm -f core conftest.err conftest.$ac_objext conftest.beam \
8667    conftest$ac_exeext conftest.$ac_ext
8668fi
8669
8670
8671		CFLAGS="$xorg_testset_save_CFLAGS"
8672
8673		eval supported=\$$cacheid
8674		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8675printf "%s\n" "$supported" >&6; }
8676		if test "$supported" = "yes" ; then
8677			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8678			found="yes"
8679		fi
8680	fi
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696xorg_testset_save_CFLAGS="$CFLAGS"
8697
8698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8699	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8700	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8701printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8702if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8703then :
8704  printf %s "(cached) " >&6
8705else $as_nop
8706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707/* end confdefs.h.  */
8708int i;
8709_ACEOF
8710if ac_fn_c_try_compile "$LINENO"
8711then :
8712  xorg_cv_cc_flag_unknown_warning_option=yes
8713else $as_nop
8714  xorg_cv_cc_flag_unknown_warning_option=no
8715fi
8716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8717fi
8718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8719printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8720	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8721	CFLAGS="$xorg_testset_save_CFLAGS"
8722fi
8723
8724if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8725	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8726		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8727	fi
8728	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8729	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8730printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8731if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8732then :
8733  printf %s "(cached) " >&6
8734else $as_nop
8735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736/* end confdefs.h.  */
8737int i;
8738_ACEOF
8739if ac_fn_c_try_compile "$LINENO"
8740then :
8741  xorg_cv_cc_flag_unused_command_line_argument=yes
8742else $as_nop
8743  xorg_cv_cc_flag_unused_command_line_argument=no
8744fi
8745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8746fi
8747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8748printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8749	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8750	CFLAGS="$xorg_testset_save_CFLAGS"
8751fi
8752
8753found="no"
8754
8755	if test $found = "no" ; then
8756		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8757			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8758		fi
8759
8760		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8761			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8762		fi
8763
8764		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8765
8766		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8767printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8768		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8769		if eval test \${$cacheid+y}
8770then :
8771  printf %s "(cached) " >&6
8772else $as_nop
8773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774/* end confdefs.h.  */
8775int i;
8776int
8777main (void)
8778{
8779
8780  ;
8781  return 0;
8782}
8783_ACEOF
8784if ac_fn_c_try_link "$LINENO"
8785then :
8786  eval $cacheid=yes
8787else $as_nop
8788  eval $cacheid=no
8789fi
8790rm -f core conftest.err conftest.$ac_objext conftest.beam \
8791    conftest$ac_exeext conftest.$ac_ext
8792fi
8793
8794
8795		CFLAGS="$xorg_testset_save_CFLAGS"
8796
8797		eval supported=\$$cacheid
8798		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8799printf "%s\n" "$supported" >&6; }
8800		if test "$supported" = "yes" ; then
8801			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8802			found="yes"
8803		fi
8804	fi
8805
8806 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8807else
8808{ 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
8809printf "%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;}
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823xorg_testset_save_CFLAGS="$CFLAGS"
8824
8825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8826	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8827	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8828printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8829if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8830then :
8831  printf %s "(cached) " >&6
8832else $as_nop
8833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8834/* end confdefs.h.  */
8835int i;
8836_ACEOF
8837if ac_fn_c_try_compile "$LINENO"
8838then :
8839  xorg_cv_cc_flag_unknown_warning_option=yes
8840else $as_nop
8841  xorg_cv_cc_flag_unknown_warning_option=no
8842fi
8843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8844fi
8845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8846printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8847	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8848	CFLAGS="$xorg_testset_save_CFLAGS"
8849fi
8850
8851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8852	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8853		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8854	fi
8855	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8856	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8857printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8858if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8859then :
8860  printf %s "(cached) " >&6
8861else $as_nop
8862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863/* end confdefs.h.  */
8864int i;
8865_ACEOF
8866if ac_fn_c_try_compile "$LINENO"
8867then :
8868  xorg_cv_cc_flag_unused_command_line_argument=yes
8869else $as_nop
8870  xorg_cv_cc_flag_unused_command_line_argument=no
8871fi
8872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8873fi
8874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8875printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8876	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8877	CFLAGS="$xorg_testset_save_CFLAGS"
8878fi
8879
8880found="no"
8881
8882	if test $found = "no" ; then
8883		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8884			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8885		fi
8886
8887		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8888			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8889		fi
8890
8891		CFLAGS="$CFLAGS -Wimplicit"
8892
8893		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8894printf %s "checking if $CC supports -Wimplicit... " >&6; }
8895		cacheid=xorg_cv_cc_flag__Wimplicit
8896		if eval test \${$cacheid+y}
8897then :
8898  printf %s "(cached) " >&6
8899else $as_nop
8900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901/* end confdefs.h.  */
8902int i;
8903int
8904main (void)
8905{
8906
8907  ;
8908  return 0;
8909}
8910_ACEOF
8911if ac_fn_c_try_link "$LINENO"
8912then :
8913  eval $cacheid=yes
8914else $as_nop
8915  eval $cacheid=no
8916fi
8917rm -f core conftest.err conftest.$ac_objext conftest.beam \
8918    conftest$ac_exeext conftest.$ac_ext
8919fi
8920
8921
8922		CFLAGS="$xorg_testset_save_CFLAGS"
8923
8924		eval supported=\$$cacheid
8925		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8926printf "%s\n" "$supported" >&6; }
8927		if test "$supported" = "yes" ; then
8928			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8929			found="yes"
8930		fi
8931	fi
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947xorg_testset_save_CFLAGS="$CFLAGS"
8948
8949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8950	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8951	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8952printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8953if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8954then :
8955  printf %s "(cached) " >&6
8956else $as_nop
8957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958/* end confdefs.h.  */
8959int i;
8960_ACEOF
8961if ac_fn_c_try_compile "$LINENO"
8962then :
8963  xorg_cv_cc_flag_unknown_warning_option=yes
8964else $as_nop
8965  xorg_cv_cc_flag_unknown_warning_option=no
8966fi
8967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8968fi
8969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8970printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8971	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8972	CFLAGS="$xorg_testset_save_CFLAGS"
8973fi
8974
8975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8976	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8977		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8978	fi
8979	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8980	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8981printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8982if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8983then :
8984  printf %s "(cached) " >&6
8985else $as_nop
8986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987/* end confdefs.h.  */
8988int i;
8989_ACEOF
8990if ac_fn_c_try_compile "$LINENO"
8991then :
8992  xorg_cv_cc_flag_unused_command_line_argument=yes
8993else $as_nop
8994  xorg_cv_cc_flag_unused_command_line_argument=no
8995fi
8996rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8997fi
8998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8999printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9000	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9001	CFLAGS="$xorg_testset_save_CFLAGS"
9002fi
9003
9004found="no"
9005
9006	if test $found = "no" ; then
9007		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9008			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9009		fi
9010
9011		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9012			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9013		fi
9014
9015		CFLAGS="$CFLAGS -Wnonnull"
9016
9017		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9018printf %s "checking if $CC supports -Wnonnull... " >&6; }
9019		cacheid=xorg_cv_cc_flag__Wnonnull
9020		if eval test \${$cacheid+y}
9021then :
9022  printf %s "(cached) " >&6
9023else $as_nop
9024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025/* end confdefs.h.  */
9026int i;
9027int
9028main (void)
9029{
9030
9031  ;
9032  return 0;
9033}
9034_ACEOF
9035if ac_fn_c_try_link "$LINENO"
9036then :
9037  eval $cacheid=yes
9038else $as_nop
9039  eval $cacheid=no
9040fi
9041rm -f core conftest.err conftest.$ac_objext conftest.beam \
9042    conftest$ac_exeext conftest.$ac_ext
9043fi
9044
9045
9046		CFLAGS="$xorg_testset_save_CFLAGS"
9047
9048		eval supported=\$$cacheid
9049		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9050printf "%s\n" "$supported" >&6; }
9051		if test "$supported" = "yes" ; then
9052			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9053			found="yes"
9054		fi
9055	fi
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071xorg_testset_save_CFLAGS="$CFLAGS"
9072
9073if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9074	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9075	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9076printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9077if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9078then :
9079  printf %s "(cached) " >&6
9080else $as_nop
9081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082/* end confdefs.h.  */
9083int i;
9084_ACEOF
9085if ac_fn_c_try_compile "$LINENO"
9086then :
9087  xorg_cv_cc_flag_unknown_warning_option=yes
9088else $as_nop
9089  xorg_cv_cc_flag_unknown_warning_option=no
9090fi
9091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9092fi
9093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9094printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9095	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9096	CFLAGS="$xorg_testset_save_CFLAGS"
9097fi
9098
9099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9100	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9101		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9102	fi
9103	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9104	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9105printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9106if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9107then :
9108  printf %s "(cached) " >&6
9109else $as_nop
9110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111/* end confdefs.h.  */
9112int i;
9113_ACEOF
9114if ac_fn_c_try_compile "$LINENO"
9115then :
9116  xorg_cv_cc_flag_unused_command_line_argument=yes
9117else $as_nop
9118  xorg_cv_cc_flag_unused_command_line_argument=no
9119fi
9120rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9121fi
9122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9123printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9124	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9125	CFLAGS="$xorg_testset_save_CFLAGS"
9126fi
9127
9128found="no"
9129
9130	if test $found = "no" ; then
9131		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9132			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9133		fi
9134
9135		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9136			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9137		fi
9138
9139		CFLAGS="$CFLAGS -Winit-self"
9140
9141		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9142printf %s "checking if $CC supports -Winit-self... " >&6; }
9143		cacheid=xorg_cv_cc_flag__Winit_self
9144		if eval test \${$cacheid+y}
9145then :
9146  printf %s "(cached) " >&6
9147else $as_nop
9148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149/* end confdefs.h.  */
9150int i;
9151int
9152main (void)
9153{
9154
9155  ;
9156  return 0;
9157}
9158_ACEOF
9159if ac_fn_c_try_link "$LINENO"
9160then :
9161  eval $cacheid=yes
9162else $as_nop
9163  eval $cacheid=no
9164fi
9165rm -f core conftest.err conftest.$ac_objext conftest.beam \
9166    conftest$ac_exeext conftest.$ac_ext
9167fi
9168
9169
9170		CFLAGS="$xorg_testset_save_CFLAGS"
9171
9172		eval supported=\$$cacheid
9173		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9174printf "%s\n" "$supported" >&6; }
9175		if test "$supported" = "yes" ; then
9176			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9177			found="yes"
9178		fi
9179	fi
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195xorg_testset_save_CFLAGS="$CFLAGS"
9196
9197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9198	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9199	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9200printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9201if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9202then :
9203  printf %s "(cached) " >&6
9204else $as_nop
9205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206/* end confdefs.h.  */
9207int i;
9208_ACEOF
9209if ac_fn_c_try_compile "$LINENO"
9210then :
9211  xorg_cv_cc_flag_unknown_warning_option=yes
9212else $as_nop
9213  xorg_cv_cc_flag_unknown_warning_option=no
9214fi
9215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9216fi
9217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9218printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9219	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9220	CFLAGS="$xorg_testset_save_CFLAGS"
9221fi
9222
9223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9224	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9225		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9226	fi
9227	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9228	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9229printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9230if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9231then :
9232  printf %s "(cached) " >&6
9233else $as_nop
9234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235/* end confdefs.h.  */
9236int i;
9237_ACEOF
9238if ac_fn_c_try_compile "$LINENO"
9239then :
9240  xorg_cv_cc_flag_unused_command_line_argument=yes
9241else $as_nop
9242  xorg_cv_cc_flag_unused_command_line_argument=no
9243fi
9244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9245fi
9246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9247printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9248	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9249	CFLAGS="$xorg_testset_save_CFLAGS"
9250fi
9251
9252found="no"
9253
9254	if test $found = "no" ; then
9255		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9256			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9257		fi
9258
9259		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9260			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9261		fi
9262
9263		CFLAGS="$CFLAGS -Wmain"
9264
9265		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9266printf %s "checking if $CC supports -Wmain... " >&6; }
9267		cacheid=xorg_cv_cc_flag__Wmain
9268		if eval test \${$cacheid+y}
9269then :
9270  printf %s "(cached) " >&6
9271else $as_nop
9272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273/* end confdefs.h.  */
9274int i;
9275int
9276main (void)
9277{
9278
9279  ;
9280  return 0;
9281}
9282_ACEOF
9283if ac_fn_c_try_link "$LINENO"
9284then :
9285  eval $cacheid=yes
9286else $as_nop
9287  eval $cacheid=no
9288fi
9289rm -f core conftest.err conftest.$ac_objext conftest.beam \
9290    conftest$ac_exeext conftest.$ac_ext
9291fi
9292
9293
9294		CFLAGS="$xorg_testset_save_CFLAGS"
9295
9296		eval supported=\$$cacheid
9297		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9298printf "%s\n" "$supported" >&6; }
9299		if test "$supported" = "yes" ; then
9300			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9301			found="yes"
9302		fi
9303	fi
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319xorg_testset_save_CFLAGS="$CFLAGS"
9320
9321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9322	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9323	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9324printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9325if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9326then :
9327  printf %s "(cached) " >&6
9328else $as_nop
9329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330/* end confdefs.h.  */
9331int i;
9332_ACEOF
9333if ac_fn_c_try_compile "$LINENO"
9334then :
9335  xorg_cv_cc_flag_unknown_warning_option=yes
9336else $as_nop
9337  xorg_cv_cc_flag_unknown_warning_option=no
9338fi
9339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9340fi
9341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9342printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9343	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9344	CFLAGS="$xorg_testset_save_CFLAGS"
9345fi
9346
9347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9348	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9349		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9350	fi
9351	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9352	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9353printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9354if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9355then :
9356  printf %s "(cached) " >&6
9357else $as_nop
9358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359/* end confdefs.h.  */
9360int i;
9361_ACEOF
9362if ac_fn_c_try_compile "$LINENO"
9363then :
9364  xorg_cv_cc_flag_unused_command_line_argument=yes
9365else $as_nop
9366  xorg_cv_cc_flag_unused_command_line_argument=no
9367fi
9368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9369fi
9370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9371printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9372	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9373	CFLAGS="$xorg_testset_save_CFLAGS"
9374fi
9375
9376found="no"
9377
9378	if test $found = "no" ; then
9379		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9380			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9381		fi
9382
9383		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9384			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9385		fi
9386
9387		CFLAGS="$CFLAGS -Wmissing-braces"
9388
9389		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9390printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9391		cacheid=xorg_cv_cc_flag__Wmissing_braces
9392		if eval test \${$cacheid+y}
9393then :
9394  printf %s "(cached) " >&6
9395else $as_nop
9396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397/* end confdefs.h.  */
9398int i;
9399int
9400main (void)
9401{
9402
9403  ;
9404  return 0;
9405}
9406_ACEOF
9407if ac_fn_c_try_link "$LINENO"
9408then :
9409  eval $cacheid=yes
9410else $as_nop
9411  eval $cacheid=no
9412fi
9413rm -f core conftest.err conftest.$ac_objext conftest.beam \
9414    conftest$ac_exeext conftest.$ac_ext
9415fi
9416
9417
9418		CFLAGS="$xorg_testset_save_CFLAGS"
9419
9420		eval supported=\$$cacheid
9421		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9422printf "%s\n" "$supported" >&6; }
9423		if test "$supported" = "yes" ; then
9424			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9425			found="yes"
9426		fi
9427	fi
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443xorg_testset_save_CFLAGS="$CFLAGS"
9444
9445if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9446	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9447	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9448printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9449if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9450then :
9451  printf %s "(cached) " >&6
9452else $as_nop
9453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454/* end confdefs.h.  */
9455int i;
9456_ACEOF
9457if ac_fn_c_try_compile "$LINENO"
9458then :
9459  xorg_cv_cc_flag_unknown_warning_option=yes
9460else $as_nop
9461  xorg_cv_cc_flag_unknown_warning_option=no
9462fi
9463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9464fi
9465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9466printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9467	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9468	CFLAGS="$xorg_testset_save_CFLAGS"
9469fi
9470
9471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9472	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9473		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9474	fi
9475	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9476	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9477printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9478if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9479then :
9480  printf %s "(cached) " >&6
9481else $as_nop
9482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483/* end confdefs.h.  */
9484int i;
9485_ACEOF
9486if ac_fn_c_try_compile "$LINENO"
9487then :
9488  xorg_cv_cc_flag_unused_command_line_argument=yes
9489else $as_nop
9490  xorg_cv_cc_flag_unused_command_line_argument=no
9491fi
9492rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9493fi
9494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9495printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9496	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9497	CFLAGS="$xorg_testset_save_CFLAGS"
9498fi
9499
9500found="no"
9501
9502	if test $found = "no" ; then
9503		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9504			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9505		fi
9506
9507		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9508			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9509		fi
9510
9511		CFLAGS="$CFLAGS -Wsequence-point"
9512
9513		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9514printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9515		cacheid=xorg_cv_cc_flag__Wsequence_point
9516		if eval test \${$cacheid+y}
9517then :
9518  printf %s "(cached) " >&6
9519else $as_nop
9520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521/* end confdefs.h.  */
9522int i;
9523int
9524main (void)
9525{
9526
9527  ;
9528  return 0;
9529}
9530_ACEOF
9531if ac_fn_c_try_link "$LINENO"
9532then :
9533  eval $cacheid=yes
9534else $as_nop
9535  eval $cacheid=no
9536fi
9537rm -f core conftest.err conftest.$ac_objext conftest.beam \
9538    conftest$ac_exeext conftest.$ac_ext
9539fi
9540
9541
9542		CFLAGS="$xorg_testset_save_CFLAGS"
9543
9544		eval supported=\$$cacheid
9545		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9546printf "%s\n" "$supported" >&6; }
9547		if test "$supported" = "yes" ; then
9548			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9549			found="yes"
9550		fi
9551	fi
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567xorg_testset_save_CFLAGS="$CFLAGS"
9568
9569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9570	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9571	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9572printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9573if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9574then :
9575  printf %s "(cached) " >&6
9576else $as_nop
9577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578/* end confdefs.h.  */
9579int i;
9580_ACEOF
9581if ac_fn_c_try_compile "$LINENO"
9582then :
9583  xorg_cv_cc_flag_unknown_warning_option=yes
9584else $as_nop
9585  xorg_cv_cc_flag_unknown_warning_option=no
9586fi
9587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9588fi
9589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9590printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9591	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9592	CFLAGS="$xorg_testset_save_CFLAGS"
9593fi
9594
9595if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9596	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9597		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9598	fi
9599	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9600	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9601printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9602if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9603then :
9604  printf %s "(cached) " >&6
9605else $as_nop
9606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607/* end confdefs.h.  */
9608int i;
9609_ACEOF
9610if ac_fn_c_try_compile "$LINENO"
9611then :
9612  xorg_cv_cc_flag_unused_command_line_argument=yes
9613else $as_nop
9614  xorg_cv_cc_flag_unused_command_line_argument=no
9615fi
9616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9617fi
9618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9619printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9620	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9621	CFLAGS="$xorg_testset_save_CFLAGS"
9622fi
9623
9624found="no"
9625
9626	if test $found = "no" ; then
9627		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9628			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9629		fi
9630
9631		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9632			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9633		fi
9634
9635		CFLAGS="$CFLAGS -Wreturn-type"
9636
9637		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9638printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9639		cacheid=xorg_cv_cc_flag__Wreturn_type
9640		if eval test \${$cacheid+y}
9641then :
9642  printf %s "(cached) " >&6
9643else $as_nop
9644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645/* end confdefs.h.  */
9646int i;
9647int
9648main (void)
9649{
9650
9651  ;
9652  return 0;
9653}
9654_ACEOF
9655if ac_fn_c_try_link "$LINENO"
9656then :
9657  eval $cacheid=yes
9658else $as_nop
9659  eval $cacheid=no
9660fi
9661rm -f core conftest.err conftest.$ac_objext conftest.beam \
9662    conftest$ac_exeext conftest.$ac_ext
9663fi
9664
9665
9666		CFLAGS="$xorg_testset_save_CFLAGS"
9667
9668		eval supported=\$$cacheid
9669		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9670printf "%s\n" "$supported" >&6; }
9671		if test "$supported" = "yes" ; then
9672			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9673			found="yes"
9674		fi
9675	fi
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691xorg_testset_save_CFLAGS="$CFLAGS"
9692
9693if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9694	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9695	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9696printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9697if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9698then :
9699  printf %s "(cached) " >&6
9700else $as_nop
9701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702/* end confdefs.h.  */
9703int i;
9704_ACEOF
9705if ac_fn_c_try_compile "$LINENO"
9706then :
9707  xorg_cv_cc_flag_unknown_warning_option=yes
9708else $as_nop
9709  xorg_cv_cc_flag_unknown_warning_option=no
9710fi
9711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9712fi
9713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9714printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9715	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9716	CFLAGS="$xorg_testset_save_CFLAGS"
9717fi
9718
9719if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9720	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9721		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9722	fi
9723	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9724	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9725printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9726if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9727then :
9728  printf %s "(cached) " >&6
9729else $as_nop
9730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731/* end confdefs.h.  */
9732int i;
9733_ACEOF
9734if ac_fn_c_try_compile "$LINENO"
9735then :
9736  xorg_cv_cc_flag_unused_command_line_argument=yes
9737else $as_nop
9738  xorg_cv_cc_flag_unused_command_line_argument=no
9739fi
9740rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9741fi
9742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9743printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9744	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9745	CFLAGS="$xorg_testset_save_CFLAGS"
9746fi
9747
9748found="no"
9749
9750	if test $found = "no" ; then
9751		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9752			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9753		fi
9754
9755		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9756			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9757		fi
9758
9759		CFLAGS="$CFLAGS -Wtrigraphs"
9760
9761		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9762printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9763		cacheid=xorg_cv_cc_flag__Wtrigraphs
9764		if eval test \${$cacheid+y}
9765then :
9766  printf %s "(cached) " >&6
9767else $as_nop
9768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769/* end confdefs.h.  */
9770int i;
9771int
9772main (void)
9773{
9774
9775  ;
9776  return 0;
9777}
9778_ACEOF
9779if ac_fn_c_try_link "$LINENO"
9780then :
9781  eval $cacheid=yes
9782else $as_nop
9783  eval $cacheid=no
9784fi
9785rm -f core conftest.err conftest.$ac_objext conftest.beam \
9786    conftest$ac_exeext conftest.$ac_ext
9787fi
9788
9789
9790		CFLAGS="$xorg_testset_save_CFLAGS"
9791
9792		eval supported=\$$cacheid
9793		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9794printf "%s\n" "$supported" >&6; }
9795		if test "$supported" = "yes" ; then
9796			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9797			found="yes"
9798		fi
9799	fi
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815xorg_testset_save_CFLAGS="$CFLAGS"
9816
9817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9818	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9819	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9820printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9821if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9822then :
9823  printf %s "(cached) " >&6
9824else $as_nop
9825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826/* end confdefs.h.  */
9827int i;
9828_ACEOF
9829if ac_fn_c_try_compile "$LINENO"
9830then :
9831  xorg_cv_cc_flag_unknown_warning_option=yes
9832else $as_nop
9833  xorg_cv_cc_flag_unknown_warning_option=no
9834fi
9835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9836fi
9837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9838printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9839	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9840	CFLAGS="$xorg_testset_save_CFLAGS"
9841fi
9842
9843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9844	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9845		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9846	fi
9847	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9848	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9849printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9850if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9851then :
9852  printf %s "(cached) " >&6
9853else $as_nop
9854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855/* end confdefs.h.  */
9856int i;
9857_ACEOF
9858if ac_fn_c_try_compile "$LINENO"
9859then :
9860  xorg_cv_cc_flag_unused_command_line_argument=yes
9861else $as_nop
9862  xorg_cv_cc_flag_unused_command_line_argument=no
9863fi
9864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9865fi
9866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9867printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9868	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9869	CFLAGS="$xorg_testset_save_CFLAGS"
9870fi
9871
9872found="no"
9873
9874	if test $found = "no" ; then
9875		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9876			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9877		fi
9878
9879		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9880			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9881		fi
9882
9883		CFLAGS="$CFLAGS -Warray-bounds"
9884
9885		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9886printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9887		cacheid=xorg_cv_cc_flag__Warray_bounds
9888		if eval test \${$cacheid+y}
9889then :
9890  printf %s "(cached) " >&6
9891else $as_nop
9892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893/* end confdefs.h.  */
9894int i;
9895int
9896main (void)
9897{
9898
9899  ;
9900  return 0;
9901}
9902_ACEOF
9903if ac_fn_c_try_link "$LINENO"
9904then :
9905  eval $cacheid=yes
9906else $as_nop
9907  eval $cacheid=no
9908fi
9909rm -f core conftest.err conftest.$ac_objext conftest.beam \
9910    conftest$ac_exeext conftest.$ac_ext
9911fi
9912
9913
9914		CFLAGS="$xorg_testset_save_CFLAGS"
9915
9916		eval supported=\$$cacheid
9917		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9918printf "%s\n" "$supported" >&6; }
9919		if test "$supported" = "yes" ; then
9920			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9921			found="yes"
9922		fi
9923	fi
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939xorg_testset_save_CFLAGS="$CFLAGS"
9940
9941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9942	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9943	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9944printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9945if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9946then :
9947  printf %s "(cached) " >&6
9948else $as_nop
9949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950/* end confdefs.h.  */
9951int i;
9952_ACEOF
9953if ac_fn_c_try_compile "$LINENO"
9954then :
9955  xorg_cv_cc_flag_unknown_warning_option=yes
9956else $as_nop
9957  xorg_cv_cc_flag_unknown_warning_option=no
9958fi
9959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9960fi
9961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9962printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9963	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9964	CFLAGS="$xorg_testset_save_CFLAGS"
9965fi
9966
9967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9968	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9969		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9970	fi
9971	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9972	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9973printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9974if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9975then :
9976  printf %s "(cached) " >&6
9977else $as_nop
9978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9979/* end confdefs.h.  */
9980int i;
9981_ACEOF
9982if ac_fn_c_try_compile "$LINENO"
9983then :
9984  xorg_cv_cc_flag_unused_command_line_argument=yes
9985else $as_nop
9986  xorg_cv_cc_flag_unused_command_line_argument=no
9987fi
9988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9989fi
9990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9991printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9992	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9993	CFLAGS="$xorg_testset_save_CFLAGS"
9994fi
9995
9996found="no"
9997
9998	if test $found = "no" ; then
9999		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10000			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10001		fi
10002
10003		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10004			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10005		fi
10006
10007		CFLAGS="$CFLAGS -Wwrite-strings"
10008
10009		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10010printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10011		cacheid=xorg_cv_cc_flag__Wwrite_strings
10012		if eval test \${$cacheid+y}
10013then :
10014  printf %s "(cached) " >&6
10015else $as_nop
10016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017/* end confdefs.h.  */
10018int i;
10019int
10020main (void)
10021{
10022
10023  ;
10024  return 0;
10025}
10026_ACEOF
10027if ac_fn_c_try_link "$LINENO"
10028then :
10029  eval $cacheid=yes
10030else $as_nop
10031  eval $cacheid=no
10032fi
10033rm -f core conftest.err conftest.$ac_objext conftest.beam \
10034    conftest$ac_exeext conftest.$ac_ext
10035fi
10036
10037
10038		CFLAGS="$xorg_testset_save_CFLAGS"
10039
10040		eval supported=\$$cacheid
10041		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10042printf "%s\n" "$supported" >&6; }
10043		if test "$supported" = "yes" ; then
10044			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10045			found="yes"
10046		fi
10047	fi
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063xorg_testset_save_CFLAGS="$CFLAGS"
10064
10065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10066	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10067	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10068printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10069if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10070then :
10071  printf %s "(cached) " >&6
10072else $as_nop
10073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074/* end confdefs.h.  */
10075int i;
10076_ACEOF
10077if ac_fn_c_try_compile "$LINENO"
10078then :
10079  xorg_cv_cc_flag_unknown_warning_option=yes
10080else $as_nop
10081  xorg_cv_cc_flag_unknown_warning_option=no
10082fi
10083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10084fi
10085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10086printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10087	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10088	CFLAGS="$xorg_testset_save_CFLAGS"
10089fi
10090
10091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10092	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10093		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10094	fi
10095	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10096	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10097printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10098if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10099then :
10100  printf %s "(cached) " >&6
10101else $as_nop
10102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103/* end confdefs.h.  */
10104int i;
10105_ACEOF
10106if ac_fn_c_try_compile "$LINENO"
10107then :
10108  xorg_cv_cc_flag_unused_command_line_argument=yes
10109else $as_nop
10110  xorg_cv_cc_flag_unused_command_line_argument=no
10111fi
10112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10113fi
10114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10115printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10116	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10117	CFLAGS="$xorg_testset_save_CFLAGS"
10118fi
10119
10120found="no"
10121
10122	if test $found = "no" ; then
10123		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10124			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10125		fi
10126
10127		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10128			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10129		fi
10130
10131		CFLAGS="$CFLAGS -Waddress"
10132
10133		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10134printf %s "checking if $CC supports -Waddress... " >&6; }
10135		cacheid=xorg_cv_cc_flag__Waddress
10136		if eval test \${$cacheid+y}
10137then :
10138  printf %s "(cached) " >&6
10139else $as_nop
10140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141/* end confdefs.h.  */
10142int i;
10143int
10144main (void)
10145{
10146
10147  ;
10148  return 0;
10149}
10150_ACEOF
10151if ac_fn_c_try_link "$LINENO"
10152then :
10153  eval $cacheid=yes
10154else $as_nop
10155  eval $cacheid=no
10156fi
10157rm -f core conftest.err conftest.$ac_objext conftest.beam \
10158    conftest$ac_exeext conftest.$ac_ext
10159fi
10160
10161
10162		CFLAGS="$xorg_testset_save_CFLAGS"
10163
10164		eval supported=\$$cacheid
10165		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10166printf "%s\n" "$supported" >&6; }
10167		if test "$supported" = "yes" ; then
10168			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10169			found="yes"
10170		fi
10171	fi
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187xorg_testset_save_CFLAGS="$CFLAGS"
10188
10189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10190	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10191	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10192printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10193if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10194then :
10195  printf %s "(cached) " >&6
10196else $as_nop
10197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198/* end confdefs.h.  */
10199int i;
10200_ACEOF
10201if ac_fn_c_try_compile "$LINENO"
10202then :
10203  xorg_cv_cc_flag_unknown_warning_option=yes
10204else $as_nop
10205  xorg_cv_cc_flag_unknown_warning_option=no
10206fi
10207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10208fi
10209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10210printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10211	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10212	CFLAGS="$xorg_testset_save_CFLAGS"
10213fi
10214
10215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10216	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10217		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10218	fi
10219	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10220	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10221printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10222if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10223then :
10224  printf %s "(cached) " >&6
10225else $as_nop
10226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227/* end confdefs.h.  */
10228int i;
10229_ACEOF
10230if ac_fn_c_try_compile "$LINENO"
10231then :
10232  xorg_cv_cc_flag_unused_command_line_argument=yes
10233else $as_nop
10234  xorg_cv_cc_flag_unused_command_line_argument=no
10235fi
10236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10237fi
10238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10239printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10240	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10241	CFLAGS="$xorg_testset_save_CFLAGS"
10242fi
10243
10244found="no"
10245
10246	if test $found = "no" ; then
10247		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10248			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10249		fi
10250
10251		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10252			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10253		fi
10254
10255		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10256
10257		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10258printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10259		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10260		if eval test \${$cacheid+y}
10261then :
10262  printf %s "(cached) " >&6
10263else $as_nop
10264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10265/* end confdefs.h.  */
10266int i;
10267int
10268main (void)
10269{
10270
10271  ;
10272  return 0;
10273}
10274_ACEOF
10275if ac_fn_c_try_link "$LINENO"
10276then :
10277  eval $cacheid=yes
10278else $as_nop
10279  eval $cacheid=no
10280fi
10281rm -f core conftest.err conftest.$ac_objext conftest.beam \
10282    conftest$ac_exeext conftest.$ac_ext
10283fi
10284
10285
10286		CFLAGS="$xorg_testset_save_CFLAGS"
10287
10288		eval supported=\$$cacheid
10289		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10290printf "%s\n" "$supported" >&6; }
10291		if test "$supported" = "yes" ; then
10292			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10293			found="yes"
10294		fi
10295	fi
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311xorg_testset_save_CFLAGS="$CFLAGS"
10312
10313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10314	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10315	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10316printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10317if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10318then :
10319  printf %s "(cached) " >&6
10320else $as_nop
10321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322/* end confdefs.h.  */
10323int i;
10324_ACEOF
10325if ac_fn_c_try_compile "$LINENO"
10326then :
10327  xorg_cv_cc_flag_unknown_warning_option=yes
10328else $as_nop
10329  xorg_cv_cc_flag_unknown_warning_option=no
10330fi
10331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10332fi
10333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10334printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10335	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10336	CFLAGS="$xorg_testset_save_CFLAGS"
10337fi
10338
10339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10340	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10341		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10342	fi
10343	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10344	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10345printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10346if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10347then :
10348  printf %s "(cached) " >&6
10349else $as_nop
10350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351/* end confdefs.h.  */
10352int i;
10353_ACEOF
10354if ac_fn_c_try_compile "$LINENO"
10355then :
10356  xorg_cv_cc_flag_unused_command_line_argument=yes
10357else $as_nop
10358  xorg_cv_cc_flag_unused_command_line_argument=no
10359fi
10360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10361fi
10362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10363printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10364	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10365	CFLAGS="$xorg_testset_save_CFLAGS"
10366fi
10367
10368found="no"
10369
10370	if test $found = "no" ; then
10371		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10372			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10373		fi
10374
10375		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10376			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10377		fi
10378
10379		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10380
10381		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10382printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10383		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10384		if eval test \${$cacheid+y}
10385then :
10386  printf %s "(cached) " >&6
10387else $as_nop
10388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389/* end confdefs.h.  */
10390int i;
10391int
10392main (void)
10393{
10394
10395  ;
10396  return 0;
10397}
10398_ACEOF
10399if ac_fn_c_try_link "$LINENO"
10400then :
10401  eval $cacheid=yes
10402else $as_nop
10403  eval $cacheid=no
10404fi
10405rm -f core conftest.err conftest.$ac_objext conftest.beam \
10406    conftest$ac_exeext conftest.$ac_ext
10407fi
10408
10409
10410		CFLAGS="$xorg_testset_save_CFLAGS"
10411
10412		eval supported=\$$cacheid
10413		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10414printf "%s\n" "$supported" >&6; }
10415		if test "$supported" = "yes" ; then
10416			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10417			found="yes"
10418		fi
10419	fi
10420
10421
10422fi
10423
10424
10425
10426
10427
10428
10429
10430		CWARNFLAGS="$BASE_CFLAGS"
10431		if  test "x$GCC" = xyes ; then
10432		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10433		fi
10434
10435
10436
10437
10438
10439
10440
10441
10442# Check whether --enable-strict-compilation was given.
10443if test ${enable_strict_compilation+y}
10444then :
10445  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10446else $as_nop
10447  STRICT_COMPILE=no
10448fi
10449
10450
10451
10452
10453
10454
10455STRICT_CFLAGS=""
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469xorg_testset_save_CFLAGS="$CFLAGS"
10470
10471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10472	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10473	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10474printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10475if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10476then :
10477  printf %s "(cached) " >&6
10478else $as_nop
10479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480/* end confdefs.h.  */
10481int i;
10482_ACEOF
10483if ac_fn_c_try_compile "$LINENO"
10484then :
10485  xorg_cv_cc_flag_unknown_warning_option=yes
10486else $as_nop
10487  xorg_cv_cc_flag_unknown_warning_option=no
10488fi
10489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10490fi
10491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10492printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10493	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10494	CFLAGS="$xorg_testset_save_CFLAGS"
10495fi
10496
10497if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10498	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10499		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10500	fi
10501	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10502	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10503printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10504if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10505then :
10506  printf %s "(cached) " >&6
10507else $as_nop
10508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10509/* end confdefs.h.  */
10510int i;
10511_ACEOF
10512if ac_fn_c_try_compile "$LINENO"
10513then :
10514  xorg_cv_cc_flag_unused_command_line_argument=yes
10515else $as_nop
10516  xorg_cv_cc_flag_unused_command_line_argument=no
10517fi
10518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10519fi
10520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10521printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10522	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10523	CFLAGS="$xorg_testset_save_CFLAGS"
10524fi
10525
10526found="no"
10527
10528	if test $found = "no" ; then
10529		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10530			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10531		fi
10532
10533		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10534			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10535		fi
10536
10537		CFLAGS="$CFLAGS -pedantic"
10538
10539		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10540printf %s "checking if $CC supports -pedantic... " >&6; }
10541		cacheid=xorg_cv_cc_flag__pedantic
10542		if eval test \${$cacheid+y}
10543then :
10544  printf %s "(cached) " >&6
10545else $as_nop
10546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10547/* end confdefs.h.  */
10548int i;
10549int
10550main (void)
10551{
10552
10553  ;
10554  return 0;
10555}
10556_ACEOF
10557if ac_fn_c_try_link "$LINENO"
10558then :
10559  eval $cacheid=yes
10560else $as_nop
10561  eval $cacheid=no
10562fi
10563rm -f core conftest.err conftest.$ac_objext conftest.beam \
10564    conftest$ac_exeext conftest.$ac_ext
10565fi
10566
10567
10568		CFLAGS="$xorg_testset_save_CFLAGS"
10569
10570		eval supported=\$$cacheid
10571		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10572printf "%s\n" "$supported" >&6; }
10573		if test "$supported" = "yes" ; then
10574			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10575			found="yes"
10576		fi
10577	fi
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593xorg_testset_save_CFLAGS="$CFLAGS"
10594
10595if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10596	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10597	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10598printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10599if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10600then :
10601  printf %s "(cached) " >&6
10602else $as_nop
10603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10604/* end confdefs.h.  */
10605int i;
10606_ACEOF
10607if ac_fn_c_try_compile "$LINENO"
10608then :
10609  xorg_cv_cc_flag_unknown_warning_option=yes
10610else $as_nop
10611  xorg_cv_cc_flag_unknown_warning_option=no
10612fi
10613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10614fi
10615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10616printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10617	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10618	CFLAGS="$xorg_testset_save_CFLAGS"
10619fi
10620
10621if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10622	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10623		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10624	fi
10625	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10626	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10627printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10628if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10629then :
10630  printf %s "(cached) " >&6
10631else $as_nop
10632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633/* end confdefs.h.  */
10634int i;
10635_ACEOF
10636if ac_fn_c_try_compile "$LINENO"
10637then :
10638  xorg_cv_cc_flag_unused_command_line_argument=yes
10639else $as_nop
10640  xorg_cv_cc_flag_unused_command_line_argument=no
10641fi
10642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10643fi
10644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10645printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10646	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10647	CFLAGS="$xorg_testset_save_CFLAGS"
10648fi
10649
10650found="no"
10651
10652	if test $found = "no" ; then
10653		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10654			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10655		fi
10656
10657		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10658			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10659		fi
10660
10661		CFLAGS="$CFLAGS -Werror"
10662
10663		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10664printf %s "checking if $CC supports -Werror... " >&6; }
10665		cacheid=xorg_cv_cc_flag__Werror
10666		if eval test \${$cacheid+y}
10667then :
10668  printf %s "(cached) " >&6
10669else $as_nop
10670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671/* end confdefs.h.  */
10672int i;
10673int
10674main (void)
10675{
10676
10677  ;
10678  return 0;
10679}
10680_ACEOF
10681if ac_fn_c_try_link "$LINENO"
10682then :
10683  eval $cacheid=yes
10684else $as_nop
10685  eval $cacheid=no
10686fi
10687rm -f core conftest.err conftest.$ac_objext conftest.beam \
10688    conftest$ac_exeext conftest.$ac_ext
10689fi
10690
10691
10692		CFLAGS="$xorg_testset_save_CFLAGS"
10693
10694		eval supported=\$$cacheid
10695		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10696printf "%s\n" "$supported" >&6; }
10697		if test "$supported" = "yes" ; then
10698			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10699			found="yes"
10700		fi
10701	fi
10702
10703	if test $found = "no" ; then
10704		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10705			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10706		fi
10707
10708		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10709			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10710		fi
10711
10712		CFLAGS="$CFLAGS -errwarn"
10713
10714		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10715printf %s "checking if $CC supports -errwarn... " >&6; }
10716		cacheid=xorg_cv_cc_flag__errwarn
10717		if eval test \${$cacheid+y}
10718then :
10719  printf %s "(cached) " >&6
10720else $as_nop
10721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722/* end confdefs.h.  */
10723int i;
10724int
10725main (void)
10726{
10727
10728  ;
10729  return 0;
10730}
10731_ACEOF
10732if ac_fn_c_try_link "$LINENO"
10733then :
10734  eval $cacheid=yes
10735else $as_nop
10736  eval $cacheid=no
10737fi
10738rm -f core conftest.err conftest.$ac_objext conftest.beam \
10739    conftest$ac_exeext conftest.$ac_ext
10740fi
10741
10742
10743		CFLAGS="$xorg_testset_save_CFLAGS"
10744
10745		eval supported=\$$cacheid
10746		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10747printf "%s\n" "$supported" >&6; }
10748		if test "$supported" = "yes" ; then
10749			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10750			found="yes"
10751		fi
10752	fi
10753
10754
10755
10756# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10757# activate it with -Werror, so we add it here explicitly.
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771xorg_testset_save_CFLAGS="$CFLAGS"
10772
10773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10774	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10775	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10776printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10777if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10778then :
10779  printf %s "(cached) " >&6
10780else $as_nop
10781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782/* end confdefs.h.  */
10783int i;
10784_ACEOF
10785if ac_fn_c_try_compile "$LINENO"
10786then :
10787  xorg_cv_cc_flag_unknown_warning_option=yes
10788else $as_nop
10789  xorg_cv_cc_flag_unknown_warning_option=no
10790fi
10791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10792fi
10793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10794printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10795	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10796	CFLAGS="$xorg_testset_save_CFLAGS"
10797fi
10798
10799if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10800	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10801		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10802	fi
10803	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10804	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10805printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10806if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10807then :
10808  printf %s "(cached) " >&6
10809else $as_nop
10810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811/* end confdefs.h.  */
10812int i;
10813_ACEOF
10814if ac_fn_c_try_compile "$LINENO"
10815then :
10816  xorg_cv_cc_flag_unused_command_line_argument=yes
10817else $as_nop
10818  xorg_cv_cc_flag_unused_command_line_argument=no
10819fi
10820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10821fi
10822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10823printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10824	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10825	CFLAGS="$xorg_testset_save_CFLAGS"
10826fi
10827
10828found="no"
10829
10830	if test $found = "no" ; then
10831		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10832			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10833		fi
10834
10835		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10836			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10837		fi
10838
10839		CFLAGS="$CFLAGS -Werror=attributes"
10840
10841		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10842printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10843		cacheid=xorg_cv_cc_flag__Werror_attributes
10844		if eval test \${$cacheid+y}
10845then :
10846  printf %s "(cached) " >&6
10847else $as_nop
10848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849/* end confdefs.h.  */
10850int i;
10851int
10852main (void)
10853{
10854
10855  ;
10856  return 0;
10857}
10858_ACEOF
10859if ac_fn_c_try_link "$LINENO"
10860then :
10861  eval $cacheid=yes
10862else $as_nop
10863  eval $cacheid=no
10864fi
10865rm -f core conftest.err conftest.$ac_objext conftest.beam \
10866    conftest$ac_exeext conftest.$ac_ext
10867fi
10868
10869
10870		CFLAGS="$xorg_testset_save_CFLAGS"
10871
10872		eval supported=\$$cacheid
10873		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10874printf "%s\n" "$supported" >&6; }
10875		if test "$supported" = "yes" ; then
10876			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10877			found="yes"
10878		fi
10879	fi
10880
10881
10882
10883if test "x$STRICT_COMPILE" = "xyes"; then
10884    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10885    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10886fi
10887
10888
10889
10890
10891
10892
10893cat >>confdefs.h <<_ACEOF
10894#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10895_ACEOF
10896
10897	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10898	if test "x$PVM" = "x"; then
10899		PVM="0"
10900	fi
10901
10902printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10903
10904	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10905	if test "x$PVP" = "x"; then
10906		PVP="0"
10907	fi
10908
10909printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10910
10911
10912
10913CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10914mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10915|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10916touch \$(top_srcdir)/ChangeLog; \
10917echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10918
10919
10920
10921
10922macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10923INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10924mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10925|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10926touch \$(top_srcdir)/INSTALL; \
10927echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10928
10929
10930
10931
10932
10933
10934case $host_os in
10935    solaris*)
10936        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10937        # check for a man page file found in later versions that use
10938        # traditional section numbers instead
10939        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10940printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10941if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10942then :
10943  printf %s "(cached) " >&6
10944else $as_nop
10945  test "$cross_compiling" = yes &&
10946  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10947if test -r "/usr/share/man/man7/attributes.7"; then
10948  ac_cv_file__usr_share_man_man7_attributes_7=yes
10949else
10950  ac_cv_file__usr_share_man_man7_attributes_7=no
10951fi
10952fi
10953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10954printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10955if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10956then :
10957  SYSV_MAN_SECTIONS=false
10958else $as_nop
10959  SYSV_MAN_SECTIONS=true
10960fi
10961
10962        ;;
10963    *) SYSV_MAN_SECTIONS=false ;;
10964esac
10965
10966if test x$APP_MAN_SUFFIX = x    ; then
10967    APP_MAN_SUFFIX=1
10968fi
10969if test x$APP_MAN_DIR = x    ; then
10970    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10971fi
10972
10973if test x$LIB_MAN_SUFFIX = x    ; then
10974    LIB_MAN_SUFFIX=3
10975fi
10976if test x$LIB_MAN_DIR = x    ; then
10977    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10978fi
10979
10980if test x$FILE_MAN_SUFFIX = x    ; then
10981    case $SYSV_MAN_SECTIONS in
10982	true)				FILE_MAN_SUFFIX=4  ;;
10983	*)				FILE_MAN_SUFFIX=5  ;;
10984    esac
10985fi
10986if test x$FILE_MAN_DIR = x    ; then
10987    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10988fi
10989
10990if test x$MISC_MAN_SUFFIX = x    ; then
10991    case $SYSV_MAN_SECTIONS in
10992	true)				MISC_MAN_SUFFIX=5  ;;
10993	*)				MISC_MAN_SUFFIX=7  ;;
10994    esac
10995fi
10996if test x$MISC_MAN_DIR = x    ; then
10997    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10998fi
10999
11000if test x$DRIVER_MAN_SUFFIX = x    ; then
11001    case $SYSV_MAN_SECTIONS in
11002	true)				DRIVER_MAN_SUFFIX=7  ;;
11003	*)				DRIVER_MAN_SUFFIX=4  ;;
11004    esac
11005fi
11006if test x$DRIVER_MAN_DIR = x    ; then
11007    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11008fi
11009
11010if test x$ADMIN_MAN_SUFFIX = x    ; then
11011    case $SYSV_MAN_SECTIONS in
11012	true)				ADMIN_MAN_SUFFIX=1m ;;
11013	*)				ADMIN_MAN_SUFFIX=8  ;;
11014    esac
11015fi
11016if test x$ADMIN_MAN_DIR = x    ; then
11017    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11018fi
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034XORG_MAN_PAGE="X Version 11"
11035
11036MAN_SUBSTS="\
11037	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11038	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11039	-e 's|__xservername__|Xorg|g' \
11040	-e 's|__xconfigfile__|xorg.conf|g' \
11041	-e 's|__projectroot__|\$(prefix)|g' \
11042	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11043	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11044	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11045	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11046	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11047	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11048	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11049
11050
11051
11052# Check whether --enable-silent-rules was given.
11053if test ${enable_silent_rules+y}
11054then :
11055  enableval=$enable_silent_rules;
11056fi
11057
11058case $enable_silent_rules in # (((
11059  yes) AM_DEFAULT_VERBOSITY=0;;
11060   no) AM_DEFAULT_VERBOSITY=1;;
11061    *) AM_DEFAULT_VERBOSITY=0;;
11062esac
11063am_make=${MAKE-make}
11064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11065printf %s "checking whether $am_make supports nested variables... " >&6; }
11066if test ${am_cv_make_support_nested_variables+y}
11067then :
11068  printf %s "(cached) " >&6
11069else $as_nop
11070  if printf "%s\n" 'TRUE=$(BAR$(V))
11071BAR0=false
11072BAR1=true
11073V=1
11074am__doit:
11075	@$(TRUE)
11076.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11077  am_cv_make_support_nested_variables=yes
11078else
11079  am_cv_make_support_nested_variables=no
11080fi
11081fi
11082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11083printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11084if test $am_cv_make_support_nested_variables = yes; then
11085    AM_V='$(V)'
11086  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11087else
11088  AM_V=$AM_DEFAULT_VERBOSITY
11089  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11090fi
11091AM_BACKSLASH='\'
11092
11093
11094
11095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
11096printf %s "checking for root directory for font files... " >&6; }
11097fontrootdir='${datadir}/fonts/X11'
11098
11099# Check whether --with-fontrootdir was given.
11100if test ${with_fontrootdir+y}
11101then :
11102  withval=$with_fontrootdir; fontrootdir="${withval}"
11103fi
11104
11105
11106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${fontrootdir}" >&5
11107printf "%s\n" "${fontrootdir}" >&6; }
11108
11109mapdir='${fontrootdir}/util'
11110
11111# Check whether --with-mapdir was given.
11112if test ${with_mapdir+y}
11113then :
11114  withval=$with_mapdir; mapdir="${withval}"
11115fi
11116
11117MAPDIR="$mapdir"
11118
11119
11120ac_config_files="$ac_config_files Makefile man/Makefile fontutil.m4 fontutil.pc"
11121
11122
11123cat >confcache <<\_ACEOF
11124# This file is a shell script that caches the results of configure
11125# tests run on this system so they can be shared between configure
11126# scripts and configure runs, see configure's option --config-cache.
11127# It is not useful on other systems.  If it contains results you don't
11128# want to keep, you may remove or edit it.
11129#
11130# config.status only pays attention to the cache file if you give it
11131# the --recheck option to rerun configure.
11132#
11133# `ac_cv_env_foo' variables (set or unset) will be overridden when
11134# loading this file, other *unset* `ac_cv_foo' will be assigned the
11135# following values.
11136
11137_ACEOF
11138
11139# The following way of writing the cache mishandles newlines in values,
11140# but we know of no workaround that is simple, portable, and efficient.
11141# So, we kill variables containing newlines.
11142# Ultrix sh set writes to stderr and can't be redirected directly,
11143# and sets the high bit in the cache file unless we assign to the vars.
11144(
11145  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11146    eval ac_val=\$$ac_var
11147    case $ac_val in #(
11148    *${as_nl}*)
11149      case $ac_var in #(
11150      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11151printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11152      esac
11153      case $ac_var in #(
11154      _ | IFS | as_nl) ;; #(
11155      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11156      *) { eval $ac_var=; unset $ac_var;} ;;
11157      esac ;;
11158    esac
11159  done
11160
11161  (set) 2>&1 |
11162    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11163    *${as_nl}ac_space=\ *)
11164      # `set' does not quote correctly, so add quotes: double-quote
11165      # substitution turns \\\\ into \\, and sed turns \\ into \.
11166      sed -n \
11167	"s/'/'\\\\''/g;
11168	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11169      ;; #(
11170    *)
11171      # `set' quotes correctly as required by POSIX, so do not add quotes.
11172      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11173      ;;
11174    esac |
11175    sort
11176) |
11177  sed '
11178     /^ac_cv_env_/b end
11179     t clear
11180     :clear
11181     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11182     t end
11183     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11184     :end' >>confcache
11185if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11186  if test -w "$cache_file"; then
11187    if test "x$cache_file" != "x/dev/null"; then
11188      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11189printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11190      if test ! -f "$cache_file" || test -h "$cache_file"; then
11191	cat confcache >"$cache_file"
11192      else
11193        case $cache_file in #(
11194        */* | ?:*)
11195	  mv -f confcache "$cache_file"$$ &&
11196	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11197        *)
11198	  mv -f confcache "$cache_file" ;;
11199	esac
11200      fi
11201    fi
11202  else
11203    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11204printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11205  fi
11206fi
11207rm -f confcache
11208
11209test "x$prefix" = xNONE && prefix=$ac_default_prefix
11210# Let make expand exec_prefix.
11211test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11212
11213DEFS=-DHAVE_CONFIG_H
11214
11215ac_libobjs=
11216ac_ltlibobjs=
11217U=
11218for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11219  # 1. Remove the extension, and $U if already installed.
11220  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11221  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11222  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11223  #    will be set to the directory where LIBOBJS objects are built.
11224  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11225  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11226done
11227LIBOBJS=$ac_libobjs
11228
11229LTLIBOBJS=$ac_ltlibobjs
11230
11231
11232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11233printf %s "checking that generated files are newer than configure... " >&6; }
11234   if test -n "$am_sleep_pid"; then
11235     # Hide warnings about reused PIDs.
11236     wait $am_sleep_pid 2>/dev/null
11237   fi
11238   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11239printf "%s\n" "done" >&6; }
11240 if test -n "$EXEEXT"; then
11241  am__EXEEXT_TRUE=
11242  am__EXEEXT_FALSE='#'
11243else
11244  am__EXEEXT_TRUE='#'
11245  am__EXEEXT_FALSE=
11246fi
11247
11248if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11249  as_fn_error $? "conditional \"AMDEP\" was never defined.
11250Usually this means the macro was only invoked conditionally." "$LINENO" 5
11251fi
11252if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11253  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11254Usually this means the macro was only invoked conditionally." "$LINENO" 5
11255fi
11256
11257: "${CONFIG_STATUS=./config.status}"
11258ac_write_fail=0
11259ac_clean_files_save=$ac_clean_files
11260ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11262printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11263as_write_fail=0
11264cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11265#! $SHELL
11266# Generated by $as_me.
11267# Run this file to recreate the current configuration.
11268# Compiler output produced by configure, useful for debugging
11269# configure, is in config.log if it exists.
11270
11271debug=false
11272ac_cs_recheck=false
11273ac_cs_silent=false
11274
11275SHELL=\${CONFIG_SHELL-$SHELL}
11276export SHELL
11277_ASEOF
11278cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11279## -------------------- ##
11280## M4sh Initialization. ##
11281## -------------------- ##
11282
11283# Be more Bourne compatible
11284DUALCASE=1; export DUALCASE # for MKS sh
11285as_nop=:
11286if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11287then :
11288  emulate sh
11289  NULLCMD=:
11290  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11291  # is contrary to our usage.  Disable this feature.
11292  alias -g '${1+"$@"}'='"$@"'
11293  setopt NO_GLOB_SUBST
11294else $as_nop
11295  case `(set -o) 2>/dev/null` in #(
11296  *posix*) :
11297    set -o posix ;; #(
11298  *) :
11299     ;;
11300esac
11301fi
11302
11303
11304
11305# Reset variables that may have inherited troublesome values from
11306# the environment.
11307
11308# IFS needs to be set, to space, tab, and newline, in precisely that order.
11309# (If _AS_PATH_WALK were called with IFS unset, it would have the
11310# side effect of setting IFS to empty, thus disabling word splitting.)
11311# Quoting is to prevent editors from complaining about space-tab.
11312as_nl='
11313'
11314export as_nl
11315IFS=" ""	$as_nl"
11316
11317PS1='$ '
11318PS2='> '
11319PS4='+ '
11320
11321# Ensure predictable behavior from utilities with locale-dependent output.
11322LC_ALL=C
11323export LC_ALL
11324LANGUAGE=C
11325export LANGUAGE
11326
11327# We cannot yet rely on "unset" to work, but we need these variables
11328# to be unset--not just set to an empty or harmless value--now, to
11329# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11330# also avoids known problems related to "unset" and subshell syntax
11331# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11332for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11333do eval test \${$as_var+y} \
11334  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11335done
11336
11337# Ensure that fds 0, 1, and 2 are open.
11338if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11339if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11340if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11341
11342# The user is always right.
11343if ${PATH_SEPARATOR+false} :; then
11344  PATH_SEPARATOR=:
11345  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11346    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11347      PATH_SEPARATOR=';'
11348  }
11349fi
11350
11351
11352# Find who we are.  Look in the path if we contain no directory separator.
11353as_myself=
11354case $0 in #((
11355  *[\\/]* ) as_myself=$0 ;;
11356  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357for as_dir in $PATH
11358do
11359  IFS=$as_save_IFS
11360  case $as_dir in #(((
11361    '') as_dir=./ ;;
11362    */) ;;
11363    *) as_dir=$as_dir/ ;;
11364  esac
11365    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11366  done
11367IFS=$as_save_IFS
11368
11369     ;;
11370esac
11371# We did not find ourselves, most probably we were run as `sh COMMAND'
11372# in which case we are not to be found in the path.
11373if test "x$as_myself" = x; then
11374  as_myself=$0
11375fi
11376if test ! -f "$as_myself"; then
11377  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11378  exit 1
11379fi
11380
11381
11382
11383# as_fn_error STATUS ERROR [LINENO LOG_FD]
11384# ----------------------------------------
11385# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11386# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11387# script with STATUS, using 1 if that was 0.
11388as_fn_error ()
11389{
11390  as_status=$1; test $as_status -eq 0 && as_status=1
11391  if test "$4"; then
11392    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11393    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11394  fi
11395  printf "%s\n" "$as_me: error: $2" >&2
11396  as_fn_exit $as_status
11397} # as_fn_error
11398
11399
11400
11401# as_fn_set_status STATUS
11402# -----------------------
11403# Set $? to STATUS, without forking.
11404as_fn_set_status ()
11405{
11406  return $1
11407} # as_fn_set_status
11408
11409# as_fn_exit STATUS
11410# -----------------
11411# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11412as_fn_exit ()
11413{
11414  set +e
11415  as_fn_set_status $1
11416  exit $1
11417} # as_fn_exit
11418
11419# as_fn_unset VAR
11420# ---------------
11421# Portably unset VAR.
11422as_fn_unset ()
11423{
11424  { eval $1=; unset $1;}
11425}
11426as_unset=as_fn_unset
11427
11428# as_fn_append VAR VALUE
11429# ----------------------
11430# Append the text in VALUE to the end of the definition contained in VAR. Take
11431# advantage of any shell optimizations that allow amortized linear growth over
11432# repeated appends, instead of the typical quadratic growth present in naive
11433# implementations.
11434if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11435then :
11436  eval 'as_fn_append ()
11437  {
11438    eval $1+=\$2
11439  }'
11440else $as_nop
11441  as_fn_append ()
11442  {
11443    eval $1=\$$1\$2
11444  }
11445fi # as_fn_append
11446
11447# as_fn_arith ARG...
11448# ------------------
11449# Perform arithmetic evaluation on the ARGs, and store the result in the
11450# global $as_val. Take advantage of shells that can avoid forks. The arguments
11451# must be portable across $(()) and expr.
11452if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11453then :
11454  eval 'as_fn_arith ()
11455  {
11456    as_val=$(( $* ))
11457  }'
11458else $as_nop
11459  as_fn_arith ()
11460  {
11461    as_val=`expr "$@" || test $? -eq 1`
11462  }
11463fi # as_fn_arith
11464
11465
11466if expr a : '\(a\)' >/dev/null 2>&1 &&
11467   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11468  as_expr=expr
11469else
11470  as_expr=false
11471fi
11472
11473if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11474  as_basename=basename
11475else
11476  as_basename=false
11477fi
11478
11479if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11480  as_dirname=dirname
11481else
11482  as_dirname=false
11483fi
11484
11485as_me=`$as_basename -- "$0" ||
11486$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11487	 X"$0" : 'X\(//\)$' \| \
11488	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11489printf "%s\n" X/"$0" |
11490    sed '/^.*\/\([^/][^/]*\)\/*$/{
11491	    s//\1/
11492	    q
11493	  }
11494	  /^X\/\(\/\/\)$/{
11495	    s//\1/
11496	    q
11497	  }
11498	  /^X\/\(\/\).*/{
11499	    s//\1/
11500	    q
11501	  }
11502	  s/.*/./; q'`
11503
11504# Avoid depending upon Character Ranges.
11505as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11506as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11507as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11508as_cr_digits='0123456789'
11509as_cr_alnum=$as_cr_Letters$as_cr_digits
11510
11511
11512# Determine whether it's possible to make 'echo' print without a newline.
11513# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11514# for compatibility with existing Makefiles.
11515ECHO_C= ECHO_N= ECHO_T=
11516case `echo -n x` in #(((((
11517-n*)
11518  case `echo 'xy\c'` in
11519  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11520  xy)  ECHO_C='\c';;
11521  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11522       ECHO_T='	';;
11523  esac;;
11524*)
11525  ECHO_N='-n';;
11526esac
11527
11528# For backward compatibility with old third-party macros, we provide
11529# the shell variables $as_echo and $as_echo_n.  New code should use
11530# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11531as_echo='printf %s\n'
11532as_echo_n='printf %s'
11533
11534rm -f conf$$ conf$$.exe conf$$.file
11535if test -d conf$$.dir; then
11536  rm -f conf$$.dir/conf$$.file
11537else
11538  rm -f conf$$.dir
11539  mkdir conf$$.dir 2>/dev/null
11540fi
11541if (echo >conf$$.file) 2>/dev/null; then
11542  if ln -s conf$$.file conf$$ 2>/dev/null; then
11543    as_ln_s='ln -s'
11544    # ... but there are two gotchas:
11545    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11546    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11547    # In both cases, we have to default to `cp -pR'.
11548    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11549      as_ln_s='cp -pR'
11550  elif ln conf$$.file conf$$ 2>/dev/null; then
11551    as_ln_s=ln
11552  else
11553    as_ln_s='cp -pR'
11554  fi
11555else
11556  as_ln_s='cp -pR'
11557fi
11558rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11559rmdir conf$$.dir 2>/dev/null
11560
11561
11562# as_fn_mkdir_p
11563# -------------
11564# Create "$as_dir" as a directory, including parents if necessary.
11565as_fn_mkdir_p ()
11566{
11567
11568  case $as_dir in #(
11569  -*) as_dir=./$as_dir;;
11570  esac
11571  test -d "$as_dir" || eval $as_mkdir_p || {
11572    as_dirs=
11573    while :; do
11574      case $as_dir in #(
11575      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11576      *) as_qdir=$as_dir;;
11577      esac
11578      as_dirs="'$as_qdir' $as_dirs"
11579      as_dir=`$as_dirname -- "$as_dir" ||
11580$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11581	 X"$as_dir" : 'X\(//\)[^/]' \| \
11582	 X"$as_dir" : 'X\(//\)$' \| \
11583	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11584printf "%s\n" X"$as_dir" |
11585    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11586	    s//\1/
11587	    q
11588	  }
11589	  /^X\(\/\/\)[^/].*/{
11590	    s//\1/
11591	    q
11592	  }
11593	  /^X\(\/\/\)$/{
11594	    s//\1/
11595	    q
11596	  }
11597	  /^X\(\/\).*/{
11598	    s//\1/
11599	    q
11600	  }
11601	  s/.*/./; q'`
11602      test -d "$as_dir" && break
11603    done
11604    test -z "$as_dirs" || eval "mkdir $as_dirs"
11605  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11606
11607
11608} # as_fn_mkdir_p
11609if mkdir -p . 2>/dev/null; then
11610  as_mkdir_p='mkdir -p "$as_dir"'
11611else
11612  test -d ./-p && rmdir ./-p
11613  as_mkdir_p=false
11614fi
11615
11616
11617# as_fn_executable_p FILE
11618# -----------------------
11619# Test if FILE is an executable regular file.
11620as_fn_executable_p ()
11621{
11622  test -f "$1" && test -x "$1"
11623} # as_fn_executable_p
11624as_test_x='test -x'
11625as_executable_p=as_fn_executable_p
11626
11627# Sed expression to map a string onto a valid CPP name.
11628as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11629
11630# Sed expression to map a string onto a valid variable name.
11631as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11632
11633
11634exec 6>&1
11635## ----------------------------------- ##
11636## Main body of $CONFIG_STATUS script. ##
11637## ----------------------------------- ##
11638_ASEOF
11639test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11640
11641cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11642# Save the log message, to keep $0 and so on meaningful, and to
11643# report actual input values of CONFIG_FILES etc. instead of their
11644# values after options handling.
11645ac_log="
11646This file was extended by font-util $as_me 1.4.1, which was
11647generated by GNU Autoconf 2.71.  Invocation command line was
11648
11649  CONFIG_FILES    = $CONFIG_FILES
11650  CONFIG_HEADERS  = $CONFIG_HEADERS
11651  CONFIG_LINKS    = $CONFIG_LINKS
11652  CONFIG_COMMANDS = $CONFIG_COMMANDS
11653  $ $0 $@
11654
11655on `(hostname || uname -n) 2>/dev/null | sed 1q`
11656"
11657
11658_ACEOF
11659
11660case $ac_config_files in *"
11661"*) set x $ac_config_files; shift; ac_config_files=$*;;
11662esac
11663
11664case $ac_config_headers in *"
11665"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11666esac
11667
11668
11669cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11670# Files that config.status was made for.
11671config_files="$ac_config_files"
11672config_headers="$ac_config_headers"
11673config_commands="$ac_config_commands"
11674
11675_ACEOF
11676
11677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11678ac_cs_usage="\
11679\`$as_me' instantiates files and other configuration actions
11680from templates according to the current configuration.  Unless the files
11681and actions are specified as TAGs, all are instantiated by default.
11682
11683Usage: $0 [OPTION]... [TAG]...
11684
11685  -h, --help       print this help, then exit
11686  -V, --version    print version number and configuration settings, then exit
11687      --config     print configuration, then exit
11688  -q, --quiet, --silent
11689                   do not print progress messages
11690  -d, --debug      don't remove temporary files
11691      --recheck    update $as_me by reconfiguring in the same conditions
11692      --file=FILE[:TEMPLATE]
11693                   instantiate the configuration file FILE
11694      --header=FILE[:TEMPLATE]
11695                   instantiate the configuration header FILE
11696
11697Configuration files:
11698$config_files
11699
11700Configuration headers:
11701$config_headers
11702
11703Configuration commands:
11704$config_commands
11705
11706Report bugs to <https://gitlab.freedesktop.org/xorg/font/util/-/issues>."
11707
11708_ACEOF
11709ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11710ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11712ac_cs_config='$ac_cs_config_escaped'
11713ac_cs_version="\\
11714font-util config.status 1.4.1
11715configured by $0, generated by GNU Autoconf 2.71,
11716  with options \\"\$ac_cs_config\\"
11717
11718Copyright (C) 2021 Free Software Foundation, Inc.
11719This config.status script is free software; the Free Software Foundation
11720gives unlimited permission to copy, distribute and modify it."
11721
11722ac_pwd='$ac_pwd'
11723srcdir='$srcdir'
11724INSTALL='$INSTALL'
11725MKDIR_P='$MKDIR_P'
11726AWK='$AWK'
11727test -n "\$AWK" || AWK=awk
11728_ACEOF
11729
11730cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11731# The default lists apply if the user does not specify any file.
11732ac_need_defaults=:
11733while test $# != 0
11734do
11735  case $1 in
11736  --*=?*)
11737    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11738    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11739    ac_shift=:
11740    ;;
11741  --*=)
11742    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11743    ac_optarg=
11744    ac_shift=:
11745    ;;
11746  *)
11747    ac_option=$1
11748    ac_optarg=$2
11749    ac_shift=shift
11750    ;;
11751  esac
11752
11753  case $ac_option in
11754  # Handling of the options.
11755  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11756    ac_cs_recheck=: ;;
11757  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11758    printf "%s\n" "$ac_cs_version"; exit ;;
11759  --config | --confi | --conf | --con | --co | --c )
11760    printf "%s\n" "$ac_cs_config"; exit ;;
11761  --debug | --debu | --deb | --de | --d | -d )
11762    debug=: ;;
11763  --file | --fil | --fi | --f )
11764    $ac_shift
11765    case $ac_optarg in
11766    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11767    '') as_fn_error $? "missing file argument" ;;
11768    esac
11769    as_fn_append CONFIG_FILES " '$ac_optarg'"
11770    ac_need_defaults=false;;
11771  --header | --heade | --head | --hea )
11772    $ac_shift
11773    case $ac_optarg in
11774    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11775    esac
11776    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11777    ac_need_defaults=false;;
11778  --he | --h)
11779    # Conflict between --help and --header
11780    as_fn_error $? "ambiguous option: \`$1'
11781Try \`$0 --help' for more information.";;
11782  --help | --hel | -h )
11783    printf "%s\n" "$ac_cs_usage"; exit ;;
11784  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11785  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11786    ac_cs_silent=: ;;
11787
11788  # This is an error.
11789  -*) as_fn_error $? "unrecognized option: \`$1'
11790Try \`$0 --help' for more information." ;;
11791
11792  *) as_fn_append ac_config_targets " $1"
11793     ac_need_defaults=false ;;
11794
11795  esac
11796  shift
11797done
11798
11799ac_configure_extra_args=
11800
11801if $ac_cs_silent; then
11802  exec 6>/dev/null
11803  ac_configure_extra_args="$ac_configure_extra_args --silent"
11804fi
11805
11806_ACEOF
11807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11808if \$ac_cs_recheck; then
11809  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11810  shift
11811  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
11812  CONFIG_SHELL='$SHELL'
11813  export CONFIG_SHELL
11814  exec "\$@"
11815fi
11816
11817_ACEOF
11818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11819exec 5>>config.log
11820{
11821  echo
11822  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11823## Running $as_me. ##
11824_ASBOX
11825  printf "%s\n" "$ac_log"
11826} >&5
11827
11828_ACEOF
11829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11830#
11831# INIT-COMMANDS
11832#
11833AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
11834
11835_ACEOF
11836
11837cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11838
11839# Handling of arguments.
11840for ac_config_target in $ac_config_targets
11841do
11842  case $ac_config_target in
11843    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11844    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11845    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11846    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11847    "fontutil.m4") CONFIG_FILES="$CONFIG_FILES fontutil.m4" ;;
11848    "fontutil.pc") CONFIG_FILES="$CONFIG_FILES fontutil.pc" ;;
11849
11850  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11851  esac
11852done
11853
11854
11855# If the user did not use the arguments to specify the items to instantiate,
11856# then the envvar interface is used.  Set only those that are not.
11857# We use the long form for the default assignment because of an extremely
11858# bizarre bug on SunOS 4.1.3.
11859if $ac_need_defaults; then
11860  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
11861  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
11862  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
11863fi
11864
11865# Have a temporary directory for convenience.  Make it in the build tree
11866# simply because there is no reason against having it here, and in addition,
11867# creating and moving files from /tmp can sometimes cause problems.
11868# Hook for its removal unless debugging.
11869# Note that there is a small window in which the directory will not be cleaned:
11870# after its creation but before its name has been assigned to `$tmp'.
11871$debug ||
11872{
11873  tmp= ac_tmp=
11874  trap 'exit_status=$?
11875  : "${ac_tmp:=$tmp}"
11876  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11877' 0
11878  trap 'as_fn_exit 1' 1 2 13 15
11879}
11880# Create a (secure) tmp directory for tmp files.
11881
11882{
11883  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11884  test -d "$tmp"
11885}  ||
11886{
11887  tmp=./conf$$-$RANDOM
11888  (umask 077 && mkdir "$tmp")
11889} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11890ac_tmp=$tmp
11891
11892# Set up the scripts for CONFIG_FILES section.
11893# No need to generate them if there are no CONFIG_FILES.
11894# This happens for instance with `./config.status config.h'.
11895if test -n "$CONFIG_FILES"; then
11896
11897
11898ac_cr=`echo X | tr X '\015'`
11899# On cygwin, bash can eat \r inside `` if the user requested igncr.
11900# But we know of no other shell where ac_cr would be empty at this
11901# point, so we can use a bashism as a fallback.
11902if test "x$ac_cr" = x; then
11903  eval ac_cr=\$\'\\r\'
11904fi
11905ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11906if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11907  ac_cs_awk_cr='\\r'
11908else
11909  ac_cs_awk_cr=$ac_cr
11910fi
11911
11912echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11913_ACEOF
11914
11915
11916{
11917  echo "cat >conf$$subs.awk <<_ACEOF" &&
11918  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11919  echo "_ACEOF"
11920} >conf$$subs.sh ||
11921  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11922ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11923ac_delim='%!_!# '
11924for ac_last_try in false false false false false :; do
11925  . ./conf$$subs.sh ||
11926    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11927
11928  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11929  if test $ac_delim_n = $ac_delim_num; then
11930    break
11931  elif $ac_last_try; then
11932    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11933  else
11934    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11935  fi
11936done
11937rm -f conf$$subs.sh
11938
11939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11940cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11941_ACEOF
11942sed -n '
11943h
11944s/^/S["/; s/!.*/"]=/
11945p
11946g
11947s/^[^!]*!//
11948:repl
11949t repl
11950s/'"$ac_delim"'$//
11951t delim
11952:nl
11953h
11954s/\(.\{148\}\)..*/\1/
11955t more1
11956s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11957p
11958n
11959b repl
11960:more1
11961s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11962p
11963g
11964s/.\{148\}//
11965t nl
11966:delim
11967h
11968s/\(.\{148\}\)..*/\1/
11969t more2
11970s/["\\]/\\&/g; s/^/"/; s/$/"/
11971p
11972b
11973:more2
11974s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11975p
11976g
11977s/.\{148\}//
11978t delim
11979' <conf$$subs.awk | sed '
11980/^[^""]/{
11981  N
11982  s/\n//
11983}
11984' >>$CONFIG_STATUS || ac_write_fail=1
11985rm -f conf$$subs.awk
11986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11987_ACAWK
11988cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11989  for (key in S) S_is_set[key] = 1
11990  FS = ""
11991
11992}
11993{
11994  line = $ 0
11995  nfields = split(line, field, "@")
11996  substed = 0
11997  len = length(field[1])
11998  for (i = 2; i < nfields; i++) {
11999    key = field[i]
12000    keylen = length(key)
12001    if (S_is_set[key]) {
12002      value = S[key]
12003      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12004      len += length(value) + length(field[++i])
12005      substed = 1
12006    } else
12007      len += 1 + keylen
12008  }
12009
12010  print line
12011}
12012
12013_ACAWK
12014_ACEOF
12015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12016if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12017  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12018else
12019  cat
12020fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12021  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12022_ACEOF
12023
12024# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12025# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12026# trailing colons and then remove the whole line if VPATH becomes empty
12027# (actually we leave an empty line to preserve line numbers).
12028if test "x$srcdir" = x.; then
12029  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12030h
12031s///
12032s/^/:/
12033s/[	 ]*$/:/
12034s/:\$(srcdir):/:/g
12035s/:\${srcdir}:/:/g
12036s/:@srcdir@:/:/g
12037s/^:*//
12038s/:*$//
12039x
12040s/\(=[	 ]*\).*/\1/
12041G
12042s/\n//
12043s/^[^=]*=[	 ]*$//
12044}'
12045fi
12046
12047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12048fi # test -n "$CONFIG_FILES"
12049
12050# Set up the scripts for CONFIG_HEADERS section.
12051# No need to generate them if there are no CONFIG_HEADERS.
12052# This happens for instance with `./config.status Makefile'.
12053if test -n "$CONFIG_HEADERS"; then
12054cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12055BEGIN {
12056_ACEOF
12057
12058# Transform confdefs.h into an awk script `defines.awk', embedded as
12059# here-document in config.status, that substitutes the proper values into
12060# config.h.in to produce config.h.
12061
12062# Create a delimiter string that does not exist in confdefs.h, to ease
12063# handling of long lines.
12064ac_delim='%!_!# '
12065for ac_last_try in false false :; do
12066  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12067  if test -z "$ac_tt"; then
12068    break
12069  elif $ac_last_try; then
12070    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12071  else
12072    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12073  fi
12074done
12075
12076# For the awk script, D is an array of macro values keyed by name,
12077# likewise P contains macro parameters if any.  Preserve backslash
12078# newline sequences.
12079
12080ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12081sed -n '
12082s/.\{148\}/&'"$ac_delim"'/g
12083t rset
12084:rset
12085s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12086t def
12087d
12088:def
12089s/\\$//
12090t bsnl
12091s/["\\]/\\&/g
12092s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12093D["\1"]=" \3"/p
12094s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12095d
12096:bsnl
12097s/["\\]/\\&/g
12098s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12099D["\1"]=" \3\\\\\\n"\\/p
12100t cont
12101s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12102t cont
12103d
12104:cont
12105n
12106s/.\{148\}/&'"$ac_delim"'/g
12107t clear
12108:clear
12109s/\\$//
12110t bsnlc
12111s/["\\]/\\&/g; s/^/"/; s/$/"/p
12112d
12113:bsnlc
12114s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12115b cont
12116' <confdefs.h | sed '
12117s/'"$ac_delim"'/"\\\
12118"/g' >>$CONFIG_STATUS || ac_write_fail=1
12119
12120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12121  for (key in D) D_is_set[key] = 1
12122  FS = ""
12123}
12124/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12125  line = \$ 0
12126  split(line, arg, " ")
12127  if (arg[1] == "#") {
12128    defundef = arg[2]
12129    mac1 = arg[3]
12130  } else {
12131    defundef = substr(arg[1], 2)
12132    mac1 = arg[2]
12133  }
12134  split(mac1, mac2, "(") #)
12135  macro = mac2[1]
12136  prefix = substr(line, 1, index(line, defundef) - 1)
12137  if (D_is_set[macro]) {
12138    # Preserve the white space surrounding the "#".
12139    print prefix "define", macro P[macro] D[macro]
12140    next
12141  } else {
12142    # Replace #undef with comments.  This is necessary, for example,
12143    # in the case of _POSIX_SOURCE, which is predefined and required
12144    # on some systems where configure will not decide to define it.
12145    if (defundef == "undef") {
12146      print "/*", prefix defundef, macro, "*/"
12147      next
12148    }
12149  }
12150}
12151{ print }
12152_ACAWK
12153_ACEOF
12154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12155  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12156fi # test -n "$CONFIG_HEADERS"
12157
12158
12159eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12160shift
12161for ac_tag
12162do
12163  case $ac_tag in
12164  :[FHLC]) ac_mode=$ac_tag; continue;;
12165  esac
12166  case $ac_mode$ac_tag in
12167  :[FHL]*:*);;
12168  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12169  :[FH]-) ac_tag=-:-;;
12170  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12171  esac
12172  ac_save_IFS=$IFS
12173  IFS=:
12174  set x $ac_tag
12175  IFS=$ac_save_IFS
12176  shift
12177  ac_file=$1
12178  shift
12179
12180  case $ac_mode in
12181  :L) ac_source=$1;;
12182  :[FH])
12183    ac_file_inputs=
12184    for ac_f
12185    do
12186      case $ac_f in
12187      -) ac_f="$ac_tmp/stdin";;
12188      *) # Look for the file first in the build tree, then in the source tree
12189	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12190	 # because $ac_f cannot contain `:'.
12191	 test -f "$ac_f" ||
12192	   case $ac_f in
12193	   [\\/$]*) false;;
12194	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12195	   esac ||
12196	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12197      esac
12198      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12199      as_fn_append ac_file_inputs " '$ac_f'"
12200    done
12201
12202    # Let's still pretend it is `configure' which instantiates (i.e., don't
12203    # use $as_me), people would be surprised to read:
12204    #    /* config.h.  Generated by config.status.  */
12205    configure_input='Generated from '`
12206	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12207	`' by configure.'
12208    if test x"$ac_file" != x-; then
12209      configure_input="$ac_file.  $configure_input"
12210      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12211printf "%s\n" "$as_me: creating $ac_file" >&6;}
12212    fi
12213    # Neutralize special characters interpreted by sed in replacement strings.
12214    case $configure_input in #(
12215    *\&* | *\|* | *\\* )
12216       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12217       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12218    *) ac_sed_conf_input=$configure_input;;
12219    esac
12220
12221    case $ac_tag in
12222    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12223      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12224    esac
12225    ;;
12226  esac
12227
12228  ac_dir=`$as_dirname -- "$ac_file" ||
12229$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12230	 X"$ac_file" : 'X\(//\)[^/]' \| \
12231	 X"$ac_file" : 'X\(//\)$' \| \
12232	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12233printf "%s\n" X"$ac_file" |
12234    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12235	    s//\1/
12236	    q
12237	  }
12238	  /^X\(\/\/\)[^/].*/{
12239	    s//\1/
12240	    q
12241	  }
12242	  /^X\(\/\/\)$/{
12243	    s//\1/
12244	    q
12245	  }
12246	  /^X\(\/\).*/{
12247	    s//\1/
12248	    q
12249	  }
12250	  s/.*/./; q'`
12251  as_dir="$ac_dir"; as_fn_mkdir_p
12252  ac_builddir=.
12253
12254case "$ac_dir" in
12255.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12256*)
12257  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12258  # A ".." for each directory in $ac_dir_suffix.
12259  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12260  case $ac_top_builddir_sub in
12261  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12262  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12263  esac ;;
12264esac
12265ac_abs_top_builddir=$ac_pwd
12266ac_abs_builddir=$ac_pwd$ac_dir_suffix
12267# for backward compatibility:
12268ac_top_builddir=$ac_top_build_prefix
12269
12270case $srcdir in
12271  .)  # We are building in place.
12272    ac_srcdir=.
12273    ac_top_srcdir=$ac_top_builddir_sub
12274    ac_abs_top_srcdir=$ac_pwd ;;
12275  [\\/]* | ?:[\\/]* )  # Absolute name.
12276    ac_srcdir=$srcdir$ac_dir_suffix;
12277    ac_top_srcdir=$srcdir
12278    ac_abs_top_srcdir=$srcdir ;;
12279  *) # Relative name.
12280    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12281    ac_top_srcdir=$ac_top_build_prefix$srcdir
12282    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12283esac
12284ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12285
12286
12287  case $ac_mode in
12288  :F)
12289  #
12290  # CONFIG_FILE
12291  #
12292
12293  case $INSTALL in
12294  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12295  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12296  esac
12297  ac_MKDIR_P=$MKDIR_P
12298  case $MKDIR_P in
12299  [\\/$]* | ?:[\\/]* ) ;;
12300  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12301  esac
12302_ACEOF
12303
12304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12305# If the template does not know about datarootdir, expand it.
12306# FIXME: This hack should be removed a few years after 2.60.
12307ac_datarootdir_hack=; ac_datarootdir_seen=
12308ac_sed_dataroot='
12309/datarootdir/ {
12310  p
12311  q
12312}
12313/@datadir@/p
12314/@docdir@/p
12315/@infodir@/p
12316/@localedir@/p
12317/@mandir@/p'
12318case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12319*datarootdir*) ac_datarootdir_seen=yes;;
12320*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12321  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12322printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12323_ACEOF
12324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12325  ac_datarootdir_hack='
12326  s&@datadir@&$datadir&g
12327  s&@docdir@&$docdir&g
12328  s&@infodir@&$infodir&g
12329  s&@localedir@&$localedir&g
12330  s&@mandir@&$mandir&g
12331  s&\\\${datarootdir}&$datarootdir&g' ;;
12332esac
12333_ACEOF
12334
12335# Neutralize VPATH when `$srcdir' = `.'.
12336# Shell code in configure.ac might set extrasub.
12337# FIXME: do we really want to maintain this feature?
12338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12339ac_sed_extra="$ac_vpsub
12340$extrasub
12341_ACEOF
12342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12343:t
12344/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12345s|@configure_input@|$ac_sed_conf_input|;t t
12346s&@top_builddir@&$ac_top_builddir_sub&;t t
12347s&@top_build_prefix@&$ac_top_build_prefix&;t t
12348s&@srcdir@&$ac_srcdir&;t t
12349s&@abs_srcdir@&$ac_abs_srcdir&;t t
12350s&@top_srcdir@&$ac_top_srcdir&;t t
12351s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12352s&@builddir@&$ac_builddir&;t t
12353s&@abs_builddir@&$ac_abs_builddir&;t t
12354s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12355s&@INSTALL@&$ac_INSTALL&;t t
12356s&@MKDIR_P@&$ac_MKDIR_P&;t t
12357$ac_datarootdir_hack
12358"
12359eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12360  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12361
12362test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12363  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12364  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12365      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12367which seems to be undefined.  Please make sure it is defined" >&5
12368printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12369which seems to be undefined.  Please make sure it is defined" >&2;}
12370
12371  rm -f "$ac_tmp/stdin"
12372  case $ac_file in
12373  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12374  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12375  esac \
12376  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12377 ;;
12378  :H)
12379  #
12380  # CONFIG_HEADER
12381  #
12382  if test x"$ac_file" != x-; then
12383    {
12384      printf "%s\n" "/* $configure_input  */" >&1 \
12385      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12386    } >"$ac_tmp/config.h" \
12387      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12388    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12389      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12390printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12391    else
12392      rm -f "$ac_file"
12393      mv "$ac_tmp/config.h" "$ac_file" \
12394	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12395    fi
12396  else
12397    printf "%s\n" "/* $configure_input  */" >&1 \
12398      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12399      || as_fn_error $? "could not create -" "$LINENO" 5
12400  fi
12401# Compute "$ac_file"'s index in $config_headers.
12402_am_arg="$ac_file"
12403_am_stamp_count=1
12404for _am_header in $config_headers :; do
12405  case $_am_header in
12406    $_am_arg | $_am_arg:* )
12407      break ;;
12408    * )
12409      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12410  esac
12411done
12412echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12413$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12414	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12415	 X"$_am_arg" : 'X\(//\)$' \| \
12416	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12417printf "%s\n" X"$_am_arg" |
12418    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12419	    s//\1/
12420	    q
12421	  }
12422	  /^X\(\/\/\)[^/].*/{
12423	    s//\1/
12424	    q
12425	  }
12426	  /^X\(\/\/\)$/{
12427	    s//\1/
12428	    q
12429	  }
12430	  /^X\(\/\).*/{
12431	    s//\1/
12432	    q
12433	  }
12434	  s/.*/./; q'`/stamp-h$_am_stamp_count
12435 ;;
12436
12437  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12438printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12439 ;;
12440  esac
12441
12442
12443  case $ac_file$ac_mode in
12444    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12445  # Older Autoconf quotes --file arguments for eval, but not when files
12446  # are listed without --file.  Let's play safe and only enable the eval
12447  # if we detect the quoting.
12448  # TODO: see whether this extra hack can be removed once we start
12449  # requiring Autoconf 2.70 or later.
12450  case $CONFIG_FILES in #(
12451  *\'*) :
12452    eval set x "$CONFIG_FILES" ;; #(
12453  *) :
12454    set x $CONFIG_FILES ;; #(
12455  *) :
12456     ;;
12457esac
12458  shift
12459  # Used to flag and report bootstrapping failures.
12460  am_rc=0
12461  for am_mf
12462  do
12463    # Strip MF so we end up with the name of the file.
12464    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12465    # Check whether this is an Automake generated Makefile which includes
12466    # dependency-tracking related rules and includes.
12467    # Grep'ing the whole file directly is not great: AIX grep has a line
12468    # limit of 2048, but all sed's we know have understand at least 4000.
12469    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12470      || continue
12471    am_dirpart=`$as_dirname -- "$am_mf" ||
12472$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12473	 X"$am_mf" : 'X\(//\)[^/]' \| \
12474	 X"$am_mf" : 'X\(//\)$' \| \
12475	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12476printf "%s\n" X"$am_mf" |
12477    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12478	    s//\1/
12479	    q
12480	  }
12481	  /^X\(\/\/\)[^/].*/{
12482	    s//\1/
12483	    q
12484	  }
12485	  /^X\(\/\/\)$/{
12486	    s//\1/
12487	    q
12488	  }
12489	  /^X\(\/\).*/{
12490	    s//\1/
12491	    q
12492	  }
12493	  s/.*/./; q'`
12494    am_filepart=`$as_basename -- "$am_mf" ||
12495$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12496	 X"$am_mf" : 'X\(//\)$' \| \
12497	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12498printf "%s\n" X/"$am_mf" |
12499    sed '/^.*\/\([^/][^/]*\)\/*$/{
12500	    s//\1/
12501	    q
12502	  }
12503	  /^X\/\(\/\/\)$/{
12504	    s//\1/
12505	    q
12506	  }
12507	  /^X\/\(\/\).*/{
12508	    s//\1/
12509	    q
12510	  }
12511	  s/.*/./; q'`
12512    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12513      && sed -e '/# am--include-marker/d' "$am_filepart" \
12514        | $MAKE -f - am--depfiles" >&5
12515   (cd "$am_dirpart" \
12516      && sed -e '/# am--include-marker/d' "$am_filepart" \
12517        | $MAKE -f - am--depfiles) >&5 2>&5
12518   ac_status=$?
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); } || am_rc=$?
12521  done
12522  if test $am_rc -ne 0; then
12523    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12524printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12525as_fn_error $? "Something went wrong bootstrapping makefile fragments
12526    for automatic dependency tracking.  If GNU make was not used, consider
12527    re-running the configure script with MAKE=\"gmake\" (or whatever is
12528    necessary).  You can also try re-running configure with the
12529    '--disable-dependency-tracking' option to at least be able to build
12530    the package (albeit without support for automatic dependency tracking).
12531See \`config.log' for more details" "$LINENO" 5; }
12532  fi
12533  { am_dirpart=; unset am_dirpart;}
12534  { am_filepart=; unset am_filepart;}
12535  { am_mf=; unset am_mf;}
12536  { am_rc=; unset am_rc;}
12537  rm -f conftest-deps.mk
12538}
12539 ;;
12540
12541  esac
12542done # for ac_tag
12543
12544
12545as_fn_exit 0
12546_ACEOF
12547ac_clean_files=$ac_clean_files_save
12548
12549test $ac_write_fail = 0 ||
12550  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12551
12552
12553# configure is writing to config.log, and then calls config.status.
12554# config.status does its own redirection, appending to config.log.
12555# Unfortunately, on DOS this fails, as config.log is still kept open
12556# by configure, so config.status won't be able to write to it; its
12557# output is simply discarded.  So we exec the FD to /dev/null,
12558# effectively closing config.log, so it can be properly (re)opened and
12559# appended to by config.status.  When coming back to configure, we
12560# need to make the FD available again.
12561if test "$no_create" != yes; then
12562  ac_cs_success=:
12563  ac_config_status_args=
12564  test "$silent" = yes &&
12565    ac_config_status_args="$ac_config_status_args --quiet"
12566  exec 5>/dev/null
12567  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12568  exec 5>>config.log
12569  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12570  # would make configure fail if this is the last instruction.
12571  $ac_cs_success || as_fn_exit 1
12572fi
12573if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12574  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12575printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12576fi
12577
12578
12579