1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for showfont 1.0.7.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/showfont/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 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
20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else case e in #(
29  e) case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac ;;
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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144then :
145  emulate sh
146  NULLCMD=:
147  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148  # is contrary to our usage.  Disable this feature.
149  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150  setopt NO_GLOB_SUBST
151else case e in #(
152  e) case \`(set -o) 2>/dev/null\` in #(
153  *posix*) :
154    set -o posix ;; #(
155  *) :
156     ;;
157esac ;;
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 case e in #(
176  e) exitcode=1; echo positional parameters were not saved. ;;
177esac
178fi
179test x\$exitcode = x0 || exit 1
180blah=\$(echo \$(echo blah))
181test x\"\$blah\" = xblah || exit 1
182test -x / || exit 1"
183  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187test \$(( 1 + 1 )) = 2 || exit 1"
188  if (eval "$as_required") 2>/dev/null
189then :
190  as_have_required=yes
191else case e in #(
192  e) as_have_required=no ;;
193esac
194fi
195  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196then :
197
198else case e in #(
199  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200as_found=false
201for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202do
203  IFS=$as_save_IFS
204  case $as_dir in #(((
205    '') as_dir=./ ;;
206    */) ;;
207    *) as_dir=$as_dir/ ;;
208  esac
209  as_found=:
210  case $as_dir in #(
211	 /*)
212	   for as_base in sh bash ksh sh5; do
213	     # Try only shells that exist, to save several forks.
214	     as_shell=$as_dir$as_base
215	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217then :
218  CONFIG_SHELL=$as_shell as_have_required=yes
219		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220then :
221  break 2
222fi
223fi
224	   done;;
225       esac
226  as_found=false
227done
228IFS=$as_save_IFS
229if $as_found
230then :
231
232else case e in #(
233  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235then :
236  CONFIG_SHELL=$SHELL as_have_required=yes
237fi ;;
238esac
239fi
240
241
242      if test "x$CONFIG_SHELL" != x
243then :
244  export CONFIG_SHELL
245             # We cannot yet assume a decent shell, so we have to provide a
246# neutralization value for shells without unset; and this also
247# works around shells that cannot unset nonexistent variables.
248# Preserve -v and -x to the replacement shell.
249BASH_ENV=/dev/null
250ENV=/dev/null
251(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252case $- in # ((((
253  *v*x* | *x*v* ) as_opts=-vx ;;
254  *v* ) as_opts=-v ;;
255  *x* ) as_opts=-x ;;
256  * ) as_opts= ;;
257esac
258exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259# Admittedly, this is quite paranoid, since all the known shells bail
260# out after a failed 'exec'.
261printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262exit 255
263fi
264
265    if test x$as_have_required = xno
266then :
267  printf "%s\n" "$0: This script requires a shell more modern than all"
268  printf "%s\n" "$0: the shells that I found on your system."
269  if test ${ZSH_VERSION+y} ; then
270    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272  else
273    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
274$0: https://gitlab.freedesktop.org/xorg/app/showfont/-/issues
275$0: about your system, including any error possibly output
276$0: before this message. Then install a modern shell, or
277$0: manually run the script under such a shell if you do
278$0: have one."
279  fi
280  exit 1
281fi ;;
282esac
283fi
284fi
285SHELL=${CONFIG_SHELL-/bin/sh}
286export SHELL
287# Unset more variables known to interfere with behavior of common tools.
288CLICOLOR_FORCE= GREP_OPTIONS=
289unset CLICOLOR_FORCE GREP_OPTIONS
290
291## --------------------- ##
292## M4sh Shell Functions. ##
293## --------------------- ##
294# as_fn_unset VAR
295# ---------------
296# Portably unset VAR.
297as_fn_unset ()
298{
299  { eval $1=; unset $1;}
300}
301as_unset=as_fn_unset
302
303
304# as_fn_set_status STATUS
305# -----------------------
306# Set $? to STATUS, without forking.
307as_fn_set_status ()
308{
309  return $1
310} # as_fn_set_status
311
312# as_fn_exit STATUS
313# -----------------
314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315as_fn_exit ()
316{
317  set +e
318  as_fn_set_status $1
319  exit $1
320} # as_fn_exit
321
322# as_fn_mkdir_p
323# -------------
324# Create "$as_dir" as a directory, including parents if necessary.
325as_fn_mkdir_p ()
326{
327
328  case $as_dir in #(
329  -*) as_dir=./$as_dir;;
330  esac
331  test -d "$as_dir" || eval $as_mkdir_p || {
332    as_dirs=
333    while :; do
334      case $as_dir in #(
335      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336      *) as_qdir=$as_dir;;
337      esac
338      as_dirs="'$as_qdir' $as_dirs"
339      as_dir=`$as_dirname -- "$as_dir" ||
340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341	 X"$as_dir" : 'X\(//\)[^/]' \| \
342	 X"$as_dir" : 'X\(//\)$' \| \
343	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344printf "%s\n" X"$as_dir" |
345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346	    s//\1/
347	    q
348	  }
349	  /^X\(\/\/\)[^/].*/{
350	    s//\1/
351	    q
352	  }
353	  /^X\(\/\/\)$/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\).*/{
358	    s//\1/
359	    q
360	  }
361	  s/.*/./; q'`
362      test -d "$as_dir" && break
363    done
364    test -z "$as_dirs" || eval "mkdir $as_dirs"
365  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368} # as_fn_mkdir_p
369
370# as_fn_executable_p FILE
371# -----------------------
372# Test if FILE is an executable regular file.
373as_fn_executable_p ()
374{
375  test -f "$1" && test -x "$1"
376} # as_fn_executable_p
377# as_fn_append VAR VALUE
378# ----------------------
379# Append the text in VALUE to the end of the definition contained in VAR. Take
380# advantage of any shell optimizations that allow amortized linear growth over
381# repeated appends, instead of the typical quadratic growth present in naive
382# implementations.
383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else case e in #(
390  e) as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  } ;;
394esac
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403then :
404  eval 'as_fn_arith ()
405  {
406    as_val=$(( $* ))
407  }'
408else case e in #(
409  e) as_fn_arith ()
410  {
411    as_val=`expr "$@" || test $? -eq 1`
412  } ;;
413esac
414fi # as_fn_arith
415
416
417# as_fn_error STATUS ERROR [LINENO LOG_FD]
418# ----------------------------------------
419# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421# script with STATUS, using 1 if that was 0.
422as_fn_error ()
423{
424  as_status=$1; test $as_status -eq 0 && as_status=1
425  if test "$4"; then
426    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428  fi
429  printf "%s\n" "$as_me: error: $2" >&2
430  as_fn_exit $as_status
431} # as_fn_error
432
433if expr a : '\(a\)' >/dev/null 2>&1 &&
434   test "X`expr 00001 : '.*\(...\)'`" = X001; then
435  as_expr=expr
436else
437  as_expr=false
438fi
439
440if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
441  as_basename=basename
442else
443  as_basename=false
444fi
445
446if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447  as_dirname=dirname
448else
449  as_dirname=false
450fi
451
452as_me=`$as_basename -- "$0" ||
453$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
454	 X"$0" : 'X\(//\)$' \| \
455	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456printf "%s\n" X/"$0" |
457    sed '/^.*\/\([^/][^/]*\)\/*$/{
458	    s//\1/
459	    q
460	  }
461	  /^X\/\(\/\/\)$/{
462	    s//\1/
463	    q
464	  }
465	  /^X\/\(\/\).*/{
466	    s//\1/
467	    q
468	  }
469	  s/.*/./; q'`
470
471# Avoid depending upon Character Ranges.
472as_cr_letters='abcdefghijklmnopqrstuvwxyz'
473as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
474as_cr_Letters=$as_cr_letters$as_cr_LETTERS
475as_cr_digits='0123456789'
476as_cr_alnum=$as_cr_Letters$as_cr_digits
477
478
479  as_lineno_1=$LINENO as_lineno_1a=$LINENO
480  as_lineno_2=$LINENO as_lineno_2a=$LINENO
481  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
484  sed -n '
485    p
486    /[$]LINENO/=
487  ' <$as_myself |
488    sed '
489      t clear
490      :clear
491      s/[$]LINENO.*/&-/
492      t lineno
493      b
494      :lineno
495      N
496      :loop
497      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498      t loop
499      s/-\n.*//
500    ' >$as_me.lineno &&
501  chmod +x "$as_me.lineno" ||
502    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
503
504  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
505  # already done that, so ensure we don't try to do so again and fall
506  # in an infinite loop.  This has already happened in practice.
507  _as_can_reexec=no; export _as_can_reexec
508  # Don't try to exec as it changes $[0], causing all sort of problems
509  # (the dirname of $[0] is not the place where we might find the
510  # original and so on.  Autoconf is especially sensitive to this).
511  . "./$as_me.lineno"
512  # Exit status is that of the last command.
513  exit
514}
515
516
517# Determine whether it's possible to make 'echo' print without a newline.
518# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519# for compatibility with existing Makefiles.
520ECHO_C= ECHO_N= ECHO_T=
521case `echo -n x` in #(((((
522-n*)
523  case `echo 'xy\c'` in
524  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
525  xy)  ECHO_C='\c';;
526  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
527       ECHO_T='	';;
528  esac;;
529*)
530  ECHO_N='-n';;
531esac
532
533# For backward compatibility with old third-party macros, we provide
534# the shell variables $as_echo and $as_echo_n.  New code should use
535# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536as_echo='printf %s\n'
537as_echo_n='printf %s'
538
539rm -f conf$$ conf$$.exe conf$$.file
540if test -d conf$$.dir; then
541  rm -f conf$$.dir/conf$$.file
542else
543  rm -f conf$$.dir
544  mkdir conf$$.dir 2>/dev/null
545fi
546if (echo >conf$$.file) 2>/dev/null; then
547  if ln -s conf$$.file conf$$ 2>/dev/null; then
548    as_ln_s='ln -s'
549    # ... but there are two gotchas:
550    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
551    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
552    # In both cases, we have to default to 'cp -pR'.
553    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
554      as_ln_s='cp -pR'
555  elif ln conf$$.file conf$$ 2>/dev/null; then
556    as_ln_s=ln
557  else
558    as_ln_s='cp -pR'
559  fi
560else
561  as_ln_s='cp -pR'
562fi
563rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
564rmdir conf$$.dir 2>/dev/null
565
566if mkdir -p . 2>/dev/null; then
567  as_mkdir_p='mkdir -p "$as_dir"'
568else
569  test -d ./-p && rmdir ./-p
570  as_mkdir_p=false
571fi
572
573as_test_x='test -x'
574as_executable_p=as_fn_executable_p
575
576# Sed expression to map a string onto a valid CPP name.
577as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
578as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
579
580# Sed expression to map a string onto a valid variable name.
581as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
582as_tr_sh="eval sed '$as_sed_sh'" # deprecated
583
584
585test -n "$DJDIR" || exec 7<&0 </dev/null
586exec 6>&1
587
588# Name of the host.
589# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
590# so uname gets run too.
591ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
592
593#
594# Initializations.
595#
596ac_default_prefix=/usr/local
597ac_clean_files=
598ac_config_libobj_dir=.
599LIBOBJS=
600cross_compiling=no
601subdirs=
602MFLAGS=
603MAKEFLAGS=
604
605# Identity of this package.
606PACKAGE_NAME='showfont'
607PACKAGE_TARNAME='showfont'
608PACKAGE_VERSION='1.0.7'
609PACKAGE_STRING='showfont 1.0.7'
610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/showfont/-/issues'
611PACKAGE_URL=''
612
613ac_unique_file="Makefile.am"
614# Factoring default headers for most tests.
615ac_includes_default="\
616#include <stddef.h>
617#ifdef HAVE_STDIO_H
618# include <stdio.h>
619#endif
620#ifdef HAVE_STDLIB_H
621# include <stdlib.h>
622#endif
623#ifdef HAVE_STRING_H
624# include <string.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_STRINGS_H
633# include <strings.h>
634#endif
635#ifdef HAVE_SYS_TYPES_H
636# include <sys/types.h>
637#endif
638#ifdef HAVE_SYS_STAT_H
639# include <sys/stat.h>
640#endif
641#ifdef HAVE_UNISTD_H
642# include <unistd.h>
643#endif"
644
645ac_header_c_list=
646ac_subst_vars='am__EXEEXT_FALSE
647am__EXEEXT_TRUE
648LTLIBOBJS
649LIBOBJS
650SHOWFONT_LIBS
651SHOWFONT_CFLAGS
652MAN_SUBSTS
653XORG_MAN_PAGE
654ADMIN_MAN_DIR
655DRIVER_MAN_DIR
656MISC_MAN_DIR
657FILE_MAN_DIR
658LIB_MAN_DIR
659APP_MAN_DIR
660ADMIN_MAN_SUFFIX
661DRIVER_MAN_SUFFIX
662MISC_MAN_SUFFIX
663FILE_MAN_SUFFIX
664LIB_MAN_SUFFIX
665APP_MAN_SUFFIX
666SED
667host_os
668host_vendor
669host_cpu
670host
671build_os
672build_vendor
673build_cpu
674build
675INSTALL_CMD
676PKG_CONFIG_LIBDIR
677PKG_CONFIG_PATH
678PKG_CONFIG
679CHANGELOG_CMD
680STRICT_CFLAGS
681CWARNFLAGS
682BASE_CFLAGS
683am__fastdepCC_FALSE
684am__fastdepCC_TRUE
685CCDEPMODE
686am__nodep
687AMDEPBACKSLASH
688AMDEP_FALSE
689AMDEP_TRUE
690am__include
691DEPDIR
692OBJEXT
693EXEEXT
694ac_ct_CC
695CPPFLAGS
696LDFLAGS
697CFLAGS
698CC
699am__xargs_n
700am__rm_f_notfound
701AM_BACKSLASH
702AM_DEFAULT_VERBOSITY
703AM_DEFAULT_V
704AM_V
705CSCOPE
706ETAGS
707CTAGS
708am__untar
709am__tar
710AMTAR
711am__leading_dot
712SET_MAKE
713AWK
714mkdir_p
715MKDIR_P
716INSTALL_STRIP_PROGRAM
717STRIP
718install_sh
719MAKEINFO
720AUTOHEADER
721AUTOMAKE
722AUTOCONF
723ACLOCAL
724VERSION
725PACKAGE
726CYGPATH_W
727am__isrc
728INSTALL_DATA
729INSTALL_SCRIPT
730INSTALL_PROGRAM
731target_alias
732host_alias
733build_alias
734LIBS
735ECHO_T
736ECHO_N
737ECHO_C
738DEFS
739mandir
740localedir
741libdir
742psdir
743pdfdir
744dvidir
745htmldir
746infodir
747docdir
748oldincludedir
749includedir
750runstatedir
751localstatedir
752sharedstatedir
753sysconfdir
754datadir
755datarootdir
756libexecdir
757sbindir
758bindir
759program_transform_name
760prefix
761exec_prefix
762PACKAGE_URL
763PACKAGE_BUGREPORT
764PACKAGE_STRING
765PACKAGE_VERSION
766PACKAGE_TARNAME
767PACKAGE_NAME
768PATH_SEPARATOR
769SHELL
770am__quote'
771ac_subst_files=''
772ac_user_opts='
773enable_option_checking
774enable_silent_rules
775enable_dependency_tracking
776enable_selective_werror
777enable_strict_compilation
778'
779      ac_precious_vars='build_alias
780host_alias
781target_alias
782CC
783CFLAGS
784LDFLAGS
785LIBS
786CPPFLAGS
787PKG_CONFIG
788PKG_CONFIG_PATH
789PKG_CONFIG_LIBDIR
790SHOWFONT_CFLAGS
791SHOWFONT_LIBS'
792
793
794# Initialize some variables set by options.
795ac_init_help=
796ac_init_version=false
797ac_unrecognized_opts=
798ac_unrecognized_sep=
799# The variables have the same names as the options, with
800# dashes changed to underlines.
801cache_file=/dev/null
802exec_prefix=NONE
803no_create=
804no_recursion=
805prefix=NONE
806program_prefix=NONE
807program_suffix=NONE
808program_transform_name=s,x,x,
809silent=
810site=
811srcdir=
812verbose=
813x_includes=NONE
814x_libraries=NONE
815
816# Installation directory options.
817# These are left unexpanded so users can "make install exec_prefix=/foo"
818# and all the variables that are supposed to be based on exec_prefix
819# by default will actually change.
820# Use braces instead of parens because sh, perl, etc. also accept them.
821# (The list follows the same order as the GNU Coding Standards.)
822bindir='${exec_prefix}/bin'
823sbindir='${exec_prefix}/sbin'
824libexecdir='${exec_prefix}/libexec'
825datarootdir='${prefix}/share'
826datadir='${datarootdir}'
827sysconfdir='${prefix}/etc'
828sharedstatedir='${prefix}/com'
829localstatedir='${prefix}/var'
830runstatedir='${localstatedir}/run'
831includedir='${prefix}/include'
832oldincludedir='/usr/include'
833docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834infodir='${datarootdir}/info'
835htmldir='${docdir}'
836dvidir='${docdir}'
837pdfdir='${docdir}'
838psdir='${docdir}'
839libdir='${exec_prefix}/lib'
840localedir='${datarootdir}/locale'
841mandir='${datarootdir}/man'
842
843ac_prev=
844ac_dashdash=
845for ac_option
846do
847  # If the previous option needs an argument, assign it.
848  if test -n "$ac_prev"; then
849    eval $ac_prev=\$ac_option
850    ac_prev=
851    continue
852  fi
853
854  case $ac_option in
855  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856  *=)   ac_optarg= ;;
857  *)    ac_optarg=yes ;;
858  esac
859
860  case $ac_dashdash$ac_option in
861  --)
862    ac_dashdash=yes ;;
863
864  -bindir | --bindir | --bindi | --bind | --bin | --bi)
865    ac_prev=bindir ;;
866  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867    bindir=$ac_optarg ;;
868
869  -build | --build | --buil | --bui | --bu)
870    ac_prev=build_alias ;;
871  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872    build_alias=$ac_optarg ;;
873
874  -cache-file | --cache-file | --cache-fil | --cache-fi \
875  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876    ac_prev=cache_file ;;
877  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879    cache_file=$ac_optarg ;;
880
881  --config-cache | -C)
882    cache_file=config.cache ;;
883
884  -datadir | --datadir | --datadi | --datad)
885    ac_prev=datadir ;;
886  -datadir=* | --datadir=* | --datadi=* | --datad=*)
887    datadir=$ac_optarg ;;
888
889  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890  | --dataroo | --dataro | --datar)
891    ac_prev=datarootdir ;;
892  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894    datarootdir=$ac_optarg ;;
895
896  -disable-* | --disable-*)
897    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898    # Reject names that are not valid shell variable names.
899    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900      as_fn_error $? "invalid feature name: '$ac_useropt'"
901    ac_useropt_orig=$ac_useropt
902    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
903    case $ac_user_opts in
904      *"
905"enable_$ac_useropt"
906"*) ;;
907      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908	 ac_unrecognized_sep=', ';;
909    esac
910    eval enable_$ac_useropt=no ;;
911
912  -docdir | --docdir | --docdi | --doc | --do)
913    ac_prev=docdir ;;
914  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915    docdir=$ac_optarg ;;
916
917  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918    ac_prev=dvidir ;;
919  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920    dvidir=$ac_optarg ;;
921
922  -enable-* | --enable-*)
923    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924    # Reject names that are not valid shell variable names.
925    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926      as_fn_error $? "invalid feature name: '$ac_useropt'"
927    ac_useropt_orig=$ac_useropt
928    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
929    case $ac_user_opts in
930      *"
931"enable_$ac_useropt"
932"*) ;;
933      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934	 ac_unrecognized_sep=', ';;
935    esac
936    eval enable_$ac_useropt=\$ac_optarg ;;
937
938  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940  | --exec | --exe | --ex)
941    ac_prev=exec_prefix ;;
942  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944  | --exec=* | --exe=* | --ex=*)
945    exec_prefix=$ac_optarg ;;
946
947  -gas | --gas | --ga | --g)
948    # Obsolete; use --with-gas.
949    with_gas=yes ;;
950
951  -help | --help | --hel | --he | -h)
952    ac_init_help=long ;;
953  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954    ac_init_help=recursive ;;
955  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956    ac_init_help=short ;;
957
958  -host | --host | --hos | --ho)
959    ac_prev=host_alias ;;
960  -host=* | --host=* | --hos=* | --ho=*)
961    host_alias=$ac_optarg ;;
962
963  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964    ac_prev=htmldir ;;
965  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966  | --ht=*)
967    htmldir=$ac_optarg ;;
968
969  -includedir | --includedir | --includedi | --included | --include \
970  | --includ | --inclu | --incl | --inc)
971    ac_prev=includedir ;;
972  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973  | --includ=* | --inclu=* | --incl=* | --inc=*)
974    includedir=$ac_optarg ;;
975
976  -infodir | --infodir | --infodi | --infod | --info | --inf)
977    ac_prev=infodir ;;
978  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979    infodir=$ac_optarg ;;
980
981  -libdir | --libdir | --libdi | --libd)
982    ac_prev=libdir ;;
983  -libdir=* | --libdir=* | --libdi=* | --libd=*)
984    libdir=$ac_optarg ;;
985
986  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987  | --libexe | --libex | --libe)
988    ac_prev=libexecdir ;;
989  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990  | --libexe=* | --libex=* | --libe=*)
991    libexecdir=$ac_optarg ;;
992
993  -localedir | --localedir | --localedi | --localed | --locale)
994    ac_prev=localedir ;;
995  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996    localedir=$ac_optarg ;;
997
998  -localstatedir | --localstatedir | --localstatedi | --localstated \
999  | --localstate | --localstat | --localsta | --localst | --locals)
1000    ac_prev=localstatedir ;;
1001  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003    localstatedir=$ac_optarg ;;
1004
1005  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006    ac_prev=mandir ;;
1007  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008    mandir=$ac_optarg ;;
1009
1010  -nfp | --nfp | --nf)
1011    # Obsolete; use --without-fp.
1012    with_fp=no ;;
1013
1014  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015  | --no-cr | --no-c | -n)
1016    no_create=yes ;;
1017
1018  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020    no_recursion=yes ;;
1021
1022  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024  | --oldin | --oldi | --old | --ol | --o)
1025    ac_prev=oldincludedir ;;
1026  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029    oldincludedir=$ac_optarg ;;
1030
1031  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032    ac_prev=prefix ;;
1033  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034    prefix=$ac_optarg ;;
1035
1036  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037  | --program-pre | --program-pr | --program-p)
1038    ac_prev=program_prefix ;;
1039  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041    program_prefix=$ac_optarg ;;
1042
1043  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044  | --program-suf | --program-su | --program-s)
1045    ac_prev=program_suffix ;;
1046  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048    program_suffix=$ac_optarg ;;
1049
1050  -program-transform-name | --program-transform-name \
1051  | --program-transform-nam | --program-transform-na \
1052  | --program-transform-n | --program-transform- \
1053  | --program-transform | --program-transfor \
1054  | --program-transfo | --program-transf \
1055  | --program-trans | --program-tran \
1056  | --progr-tra | --program-tr | --program-t)
1057    ac_prev=program_transform_name ;;
1058  -program-transform-name=* | --program-transform-name=* \
1059  | --program-transform-nam=* | --program-transform-na=* \
1060  | --program-transform-n=* | --program-transform-=* \
1061  | --program-transform=* | --program-transfor=* \
1062  | --program-transfo=* | --program-transf=* \
1063  | --program-trans=* | --program-tran=* \
1064  | --progr-tra=* | --program-tr=* | --program-t=*)
1065    program_transform_name=$ac_optarg ;;
1066
1067  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068    ac_prev=pdfdir ;;
1069  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070    pdfdir=$ac_optarg ;;
1071
1072  -psdir | --psdir | --psdi | --psd | --ps)
1073    ac_prev=psdir ;;
1074  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075    psdir=$ac_optarg ;;
1076
1077  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078  | -silent | --silent | --silen | --sile | --sil)
1079    silent=yes ;;
1080
1081  -runstatedir | --runstatedir | --runstatedi | --runstated \
1082  | --runstate | --runstat | --runsta | --runst | --runs \
1083  | --run | --ru | --r)
1084    ac_prev=runstatedir ;;
1085  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1086  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1087  | --run=* | --ru=* | --r=*)
1088    runstatedir=$ac_optarg ;;
1089
1090  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091    ac_prev=sbindir ;;
1092  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093  | --sbi=* | --sb=*)
1094    sbindir=$ac_optarg ;;
1095
1096  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098  | --sharedst | --shareds | --shared | --share | --shar \
1099  | --sha | --sh)
1100    ac_prev=sharedstatedir ;;
1101  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104  | --sha=* | --sh=*)
1105    sharedstatedir=$ac_optarg ;;
1106
1107  -site | --site | --sit)
1108    ac_prev=site ;;
1109  -site=* | --site=* | --sit=*)
1110    site=$ac_optarg ;;
1111
1112  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113    ac_prev=srcdir ;;
1114  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115    srcdir=$ac_optarg ;;
1116
1117  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118  | --syscon | --sysco | --sysc | --sys | --sy)
1119    ac_prev=sysconfdir ;;
1120  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122    sysconfdir=$ac_optarg ;;
1123
1124  -target | --target | --targe | --targ | --tar | --ta | --t)
1125    ac_prev=target_alias ;;
1126  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127    target_alias=$ac_optarg ;;
1128
1129  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130    verbose=yes ;;
1131
1132  -version | --version | --versio | --versi | --vers | -V)
1133    ac_init_version=: ;;
1134
1135  -with-* | --with-*)
1136    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137    # Reject names that are not valid shell variable names.
1138    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139      as_fn_error $? "invalid package name: '$ac_useropt'"
1140    ac_useropt_orig=$ac_useropt
1141    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1142    case $ac_user_opts in
1143      *"
1144"with_$ac_useropt"
1145"*) ;;
1146      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147	 ac_unrecognized_sep=', ';;
1148    esac
1149    eval with_$ac_useropt=\$ac_optarg ;;
1150
1151  -without-* | --without-*)
1152    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153    # Reject names that are not valid shell variable names.
1154    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155      as_fn_error $? "invalid package name: '$ac_useropt'"
1156    ac_useropt_orig=$ac_useropt
1157    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1158    case $ac_user_opts in
1159      *"
1160"with_$ac_useropt"
1161"*) ;;
1162      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163	 ac_unrecognized_sep=', ';;
1164    esac
1165    eval with_$ac_useropt=no ;;
1166
1167  --x)
1168    # Obsolete; use --with-x.
1169    with_x=yes ;;
1170
1171  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172  | --x-incl | --x-inc | --x-in | --x-i)
1173    ac_prev=x_includes ;;
1174  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176    x_includes=$ac_optarg ;;
1177
1178  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180    ac_prev=x_libraries ;;
1181  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183    x_libraries=$ac_optarg ;;
1184
1185  -*) as_fn_error $? "unrecognized option: '$ac_option'
1186Try '$0 --help' for more information"
1187    ;;
1188
1189  *=*)
1190    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191    # Reject names that are not valid shell variable names.
1192    case $ac_envvar in #(
1193      '' | [0-9]* | *[!_$as_cr_alnum]* )
1194      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1195    esac
1196    eval $ac_envvar=\$ac_optarg
1197    export $ac_envvar ;;
1198
1199  *)
1200    # FIXME: should be removed in autoconf 3.0.
1201    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1202    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1204    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1205    ;;
1206
1207  esac
1208done
1209
1210if test -n "$ac_prev"; then
1211  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212  as_fn_error $? "missing argument to $ac_option"
1213fi
1214
1215if test -n "$ac_unrecognized_opts"; then
1216  case $enable_option_checking in
1217    no) ;;
1218    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220  esac
1221fi
1222
1223# Check all directory arguments for consistency.
1224for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225		datadir sysconfdir sharedstatedir localstatedir includedir \
1226		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227		libdir localedir mandir runstatedir
1228do
1229  eval ac_val=\$$ac_var
1230  # Remove trailing slashes.
1231  case $ac_val in
1232    */ )
1233      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234      eval $ac_var=\$ac_val;;
1235  esac
1236  # Be sure to have absolute directory names.
1237  case $ac_val in
1238    [\\/$]* | ?:[\\/]* )  continue;;
1239    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240  esac
1241  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242done
1243
1244# There might be people who depend on the old broken behavior: '$host'
1245# used to hold the argument of --host etc.
1246# FIXME: To remove some day.
1247build=$build_alias
1248host=$host_alias
1249target=$target_alias
1250
1251# FIXME: To remove some day.
1252if test "x$host_alias" != x; then
1253  if test "x$build_alias" = x; then
1254    cross_compiling=maybe
1255  elif test "x$build_alias" != "x$host_alias"; then
1256    cross_compiling=yes
1257  fi
1258fi
1259
1260ac_tool_prefix=
1261test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263test "$silent" = yes && exec 6>/dev/null
1264
1265
1266ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267ac_ls_di=`ls -di .` &&
1268ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269  as_fn_error $? "working directory cannot be determined"
1270test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271  as_fn_error $? "pwd does not report name of working directory"
1272
1273
1274# Find the source files, if location was not specified.
1275if test -z "$srcdir"; then
1276  ac_srcdir_defaulted=yes
1277  # Try the directory containing this script, then the parent directory.
1278  ac_confdir=`$as_dirname -- "$as_myself" ||
1279$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280	 X"$as_myself" : 'X\(//\)[^/]' \| \
1281	 X"$as_myself" : 'X\(//\)$' \| \
1282	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283printf "%s\n" X"$as_myself" |
1284    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285	    s//\1/
1286	    q
1287	  }
1288	  /^X\(\/\/\)[^/].*/{
1289	    s//\1/
1290	    q
1291	  }
1292	  /^X\(\/\/\)$/{
1293	    s//\1/
1294	    q
1295	  }
1296	  /^X\(\/\).*/{
1297	    s//\1/
1298	    q
1299	  }
1300	  s/.*/./; q'`
1301  srcdir=$ac_confdir
1302  if test ! -r "$srcdir/$ac_unique_file"; then
1303    srcdir=..
1304  fi
1305else
1306  ac_srcdir_defaulted=no
1307fi
1308if test ! -r "$srcdir/$ac_unique_file"; then
1309  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311fi
1312ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1313ac_abs_confdir=`(
1314	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315	pwd)`
1316# When building in place, set srcdir=.
1317if test "$ac_abs_confdir" = "$ac_pwd"; then
1318  srcdir=.
1319fi
1320# Remove unnecessary trailing slashes from srcdir.
1321# Double slashes in file names in object file debugging info
1322# mess up M-x gdb in Emacs.
1323case $srcdir in
1324*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325esac
1326for ac_var in $ac_precious_vars; do
1327  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328  eval ac_env_${ac_var}_value=\$${ac_var}
1329  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331done
1332
1333#
1334# Report the --help message.
1335#
1336if test "$ac_init_help" = "long"; then
1337  # Omit some internal or obsolete options to make the list less imposing.
1338  # This message is too long to be a string in the A/UX 3.1 sh.
1339  cat <<_ACEOF
1340'configure' configures showfont 1.0.7 to adapt to many kinds of systems.
1341
1342Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345VAR=VALUE.  See below for descriptions of some of the useful variables.
1346
1347Defaults for the options are specified in brackets.
1348
1349Configuration:
1350  -h, --help              display this help and exit
1351      --help=short        display options specific to this package
1352      --help=recursive    display the short help of all the included packages
1353  -V, --version           display version information and exit
1354  -q, --quiet, --silent   do not print 'checking ...' messages
1355      --cache-file=FILE   cache test results in FILE [disabled]
1356  -C, --config-cache      alias for '--cache-file=config.cache'
1357  -n, --no-create         do not create output files
1358      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1359
1360Installation directories:
1361  --prefix=PREFIX         install architecture-independent files in PREFIX
1362                          [$ac_default_prefix]
1363  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1364                          [PREFIX]
1365
1366By default, 'make install' will install all the files in
1367'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1368an installation prefix other than '$ac_default_prefix' using '--prefix',
1369for instance '--prefix=\$HOME'.
1370
1371For better control, use the options below.
1372
1373Fine tuning of the installation directories:
1374  --bindir=DIR            user executables [EPREFIX/bin]
1375  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1376  --libexecdir=DIR        program executables [EPREFIX/libexec]
1377  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1378  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1379  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1380  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1381  --libdir=DIR            object code libraries [EPREFIX/lib]
1382  --includedir=DIR        C header files [PREFIX/include]
1383  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1384  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1385  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1386  --infodir=DIR           info documentation [DATAROOTDIR/info]
1387  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1388  --mandir=DIR            man documentation [DATAROOTDIR/man]
1389  --docdir=DIR            documentation root [DATAROOTDIR/doc/showfont]
1390  --htmldir=DIR           html documentation [DOCDIR]
1391  --dvidir=DIR            dvi documentation [DOCDIR]
1392  --pdfdir=DIR            pdf documentation [DOCDIR]
1393  --psdir=DIR             ps documentation [DOCDIR]
1394_ACEOF
1395
1396  cat <<\_ACEOF
1397
1398Program names:
1399  --program-prefix=PREFIX            prepend PREFIX to installed program names
1400  --program-suffix=SUFFIX            append SUFFIX to installed program names
1401  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1402
1403System types:
1404  --build=BUILD     configure for building on BUILD [guessed]
1405  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1406_ACEOF
1407fi
1408
1409if test -n "$ac_init_help"; then
1410  case $ac_init_help in
1411     short | recursive ) echo "Configuration of showfont 1.0.7:";;
1412   esac
1413  cat <<\_ACEOF
1414
1415Optional Features:
1416  --disable-option-checking  ignore unrecognized --enable/--with options
1417  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1418  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1419  --enable-silent-rules   less verbose build output (undo: "make V=1")
1420  --disable-silent-rules  verbose build output (undo: "make V=0")
1421  --enable-dependency-tracking
1422                          do not reject slow dependency extractors
1423  --disable-dependency-tracking
1424                          speeds up one-time build
1425  --disable-selective-werror
1426                          Turn off selective compiler errors. (default:
1427                          enabled)
1428  --enable-strict-compilation
1429                          Enable all warnings from compiler and make them
1430                          errors (default: disabled)
1431
1432Some influential environment variables:
1433  CC          C compiler command
1434  CFLAGS      C compiler flags
1435  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1436              nonstandard directory <lib dir>
1437  LIBS        libraries to pass to the linker, e.g. -l<library>
1438  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439              you have headers in a nonstandard directory <include dir>
1440  PKG_CONFIG  path to pkg-config utility
1441  PKG_CONFIG_PATH
1442              directories to add to pkg-config's search path
1443  PKG_CONFIG_LIBDIR
1444              path overriding pkg-config's built-in search path
1445  SHOWFONT_CFLAGS
1446              C compiler flags for SHOWFONT, overriding pkg-config
1447  SHOWFONT_LIBS
1448              linker flags for SHOWFONT, overriding pkg-config
1449
1450Use these variables to override the choices made by 'configure' or to help
1451it to find libraries and programs with nonstandard names/locations.
1452
1453Report bugs to <https://gitlab.freedesktop.org/xorg/app/showfont/-/issues>.
1454_ACEOF
1455ac_status=$?
1456fi
1457
1458if test "$ac_init_help" = "recursive"; then
1459  # If there are subdirs, report their specific --help.
1460  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461    test -d "$ac_dir" ||
1462      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463      continue
1464    ac_builddir=.
1465
1466case "$ac_dir" in
1467.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468*)
1469  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1470  # A ".." for each directory in $ac_dir_suffix.
1471  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472  case $ac_top_builddir_sub in
1473  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475  esac ;;
1476esac
1477ac_abs_top_builddir=$ac_pwd
1478ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479# for backward compatibility:
1480ac_top_builddir=$ac_top_build_prefix
1481
1482case $srcdir in
1483  .)  # We are building in place.
1484    ac_srcdir=.
1485    ac_top_srcdir=$ac_top_builddir_sub
1486    ac_abs_top_srcdir=$ac_pwd ;;
1487  [\\/]* | ?:[\\/]* )  # Absolute name.
1488    ac_srcdir=$srcdir$ac_dir_suffix;
1489    ac_top_srcdir=$srcdir
1490    ac_abs_top_srcdir=$srcdir ;;
1491  *) # Relative name.
1492    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493    ac_top_srcdir=$ac_top_build_prefix$srcdir
1494    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495esac
1496ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497
1498    cd "$ac_dir" || { ac_status=$?; continue; }
1499    # Check for configure.gnu first; this name is used for a wrapper for
1500    # Metaconfig's "Configure" on case-insensitive file systems.
1501    if test -f "$ac_srcdir/configure.gnu"; then
1502      echo &&
1503      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504    elif test -f "$ac_srcdir/configure"; then
1505      echo &&
1506      $SHELL "$ac_srcdir/configure" --help=recursive
1507    else
1508      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509    fi || ac_status=$?
1510    cd "$ac_pwd" || { ac_status=$?; break; }
1511  done
1512fi
1513
1514test -n "$ac_init_help" && exit $ac_status
1515if $ac_init_version; then
1516  cat <<\_ACEOF
1517showfont configure 1.0.7
1518generated by GNU Autoconf 2.72
1519
1520Copyright (C) 2023 Free Software Foundation, Inc.
1521This configure script is free software; the Free Software Foundation
1522gives unlimited permission to copy, distribute and modify it.
1523_ACEOF
1524  exit
1525fi
1526
1527## ------------------------ ##
1528## Autoconf initialization. ##
1529## ------------------------ ##
1530
1531# ac_fn_c_try_compile LINENO
1532# --------------------------
1533# Try to compile conftest.$ac_ext, and return whether this succeeded.
1534ac_fn_c_try_compile ()
1535{
1536  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537  rm -f conftest.$ac_objext conftest.beam
1538  if { { ac_try="$ac_compile"
1539case "(($ac_try" in
1540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541  *) ac_try_echo=$ac_try;;
1542esac
1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544printf "%s\n" "$ac_try_echo"; } >&5
1545  (eval "$ac_compile") 2>conftest.err
1546  ac_status=$?
1547  if test -s conftest.err; then
1548    grep -v '^ *+' conftest.err >conftest.er1
1549    cat conftest.er1 >&5
1550    mv -f conftest.er1 conftest.err
1551  fi
1552  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553  test $ac_status = 0; } && {
1554	 test -z "$ac_c_werror_flag" ||
1555	 test ! -s conftest.err
1556       } && test -s conftest.$ac_objext
1557then :
1558  ac_retval=0
1559else case e in #(
1560  e) printf "%s\n" "$as_me: failed program was:" >&5
1561sed 's/^/| /' conftest.$ac_ext >&5
1562
1563	ac_retval=1 ;;
1564esac
1565fi
1566  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567  as_fn_set_status $ac_retval
1568
1569} # ac_fn_c_try_compile
1570
1571# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1572# ------------------------------------------------------------------
1573# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1574# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1575ac_fn_check_decl ()
1576{
1577  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578  as_decl_name=`echo $2|sed 's/ *(.*//'`
1579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1580printf %s "checking whether $as_decl_name is declared... " >&6; }
1581if eval test \${$3+y}
1582then :
1583  printf %s "(cached) " >&6
1584else case e in #(
1585  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1586  eval ac_save_FLAGS=\$$6
1587  as_fn_append $6 " $5"
1588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589/* end confdefs.h.  */
1590$4
1591int
1592main (void)
1593{
1594#ifndef $as_decl_name
1595#ifdef __cplusplus
1596  (void) $as_decl_use;
1597#else
1598  (void) $as_decl_name;
1599#endif
1600#endif
1601
1602  ;
1603  return 0;
1604}
1605_ACEOF
1606if ac_fn_c_try_compile "$LINENO"
1607then :
1608  eval "$3=yes"
1609else case e in #(
1610  e) eval "$3=no" ;;
1611esac
1612fi
1613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1614  eval $6=\$ac_save_FLAGS
1615 ;;
1616esac
1617fi
1618eval ac_res=\$$3
1619	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620printf "%s\n" "$ac_res" >&6; }
1621  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622
1623} # ac_fn_check_decl
1624
1625# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1626# -------------------------------------------------------
1627# Tests whether HEADER exists and can be compiled using the include files in
1628# INCLUDES, setting the cache variable VAR accordingly.
1629ac_fn_c_check_header_compile ()
1630{
1631  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633printf %s "checking for $2... " >&6; }
1634if eval test \${$3+y}
1635then :
1636  printf %s "(cached) " >&6
1637else case e in #(
1638  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639/* end confdefs.h.  */
1640$4
1641#include <$2>
1642_ACEOF
1643if ac_fn_c_try_compile "$LINENO"
1644then :
1645  eval "$3=yes"
1646else case e in #(
1647  e) eval "$3=no" ;;
1648esac
1649fi
1650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1651esac
1652fi
1653eval ac_res=\$$3
1654	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655printf "%s\n" "$ac_res" >&6; }
1656  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657
1658} # ac_fn_c_check_header_compile
1659
1660# ac_fn_c_try_link LINENO
1661# -----------------------
1662# Try to link conftest.$ac_ext, and return whether this succeeded.
1663ac_fn_c_try_link ()
1664{
1665  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1667  if { { ac_try="$ac_link"
1668case "(($ac_try" in
1669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670  *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673printf "%s\n" "$ac_try_echo"; } >&5
1674  (eval "$ac_link") 2>conftest.err
1675  ac_status=$?
1676  if test -s conftest.err; then
1677    grep -v '^ *+' conftest.err >conftest.er1
1678    cat conftest.er1 >&5
1679    mv -f conftest.er1 conftest.err
1680  fi
1681  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682  test $ac_status = 0; } && {
1683	 test -z "$ac_c_werror_flag" ||
1684	 test ! -s conftest.err
1685       } && test -s conftest$ac_exeext && {
1686	 test "$cross_compiling" = yes ||
1687	 test -x conftest$ac_exeext
1688       }
1689then :
1690  ac_retval=0
1691else case e in #(
1692  e) printf "%s\n" "$as_me: failed program was:" >&5
1693sed 's/^/| /' conftest.$ac_ext >&5
1694
1695	ac_retval=1 ;;
1696esac
1697fi
1698  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1699  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1700  # interfere with the next link command; also delete a directory that is
1701  # left behind by Apple's compiler.  We do this before executing the actions.
1702  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704  as_fn_set_status $ac_retval
1705
1706} # ac_fn_c_try_link
1707ac_configure_args_raw=
1708for ac_arg
1709do
1710  case $ac_arg in
1711  *\'*)
1712    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1713  esac
1714  as_fn_append ac_configure_args_raw " '$ac_arg'"
1715done
1716
1717case $ac_configure_args_raw in
1718  *$as_nl*)
1719    ac_safe_unquote= ;;
1720  *)
1721    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1722    ac_unsafe_a="$ac_unsafe_z#~"
1723    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1724    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1725esac
1726
1727cat >config.log <<_ACEOF
1728This file contains any messages produced by compilers while
1729running configure, to aid debugging if configure makes a mistake.
1730
1731It was created by showfont $as_me 1.0.7, which was
1732generated by GNU Autoconf 2.72.  Invocation command line was
1733
1734  $ $0$ac_configure_args_raw
1735
1736_ACEOF
1737exec 5>>config.log
1738{
1739cat <<_ASUNAME
1740## --------- ##
1741## Platform. ##
1742## --------- ##
1743
1744hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1745uname -m = `(uname -m) 2>/dev/null || echo unknown`
1746uname -r = `(uname -r) 2>/dev/null || echo unknown`
1747uname -s = `(uname -s) 2>/dev/null || echo unknown`
1748uname -v = `(uname -v) 2>/dev/null || echo unknown`
1749
1750/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1751/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1752
1753/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1754/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1755/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1756/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1757/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1758/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1759/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1760
1761_ASUNAME
1762
1763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764for as_dir in $PATH
1765do
1766  IFS=$as_save_IFS
1767  case $as_dir in #(((
1768    '') as_dir=./ ;;
1769    */) ;;
1770    *) as_dir=$as_dir/ ;;
1771  esac
1772    printf "%s\n" "PATH: $as_dir"
1773  done
1774IFS=$as_save_IFS
1775
1776} >&5
1777
1778cat >&5 <<_ACEOF
1779
1780
1781## ----------- ##
1782## Core tests. ##
1783## ----------- ##
1784
1785_ACEOF
1786
1787
1788# Keep a trace of the command line.
1789# Strip out --no-create and --no-recursion so they do not pile up.
1790# Strip out --silent because we don't want to record it for future runs.
1791# Also quote any args containing shell meta-characters.
1792# Make two passes to allow for proper duplicate-argument suppression.
1793ac_configure_args=
1794ac_configure_args0=
1795ac_configure_args1=
1796ac_must_keep_next=false
1797for ac_pass in 1 2
1798do
1799  for ac_arg
1800  do
1801    case $ac_arg in
1802    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1803    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1804    | -silent | --silent | --silen | --sile | --sil)
1805      continue ;;
1806    *\'*)
1807      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1808    esac
1809    case $ac_pass in
1810    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1811    2)
1812      as_fn_append ac_configure_args1 " '$ac_arg'"
1813      if test $ac_must_keep_next = true; then
1814	ac_must_keep_next=false # Got value, back to normal.
1815      else
1816	case $ac_arg in
1817	  *=* | --config-cache | -C | -disable-* | --disable-* \
1818	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1819	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1820	  | -with-* | --with-* | -without-* | --without-* | --x)
1821	    case "$ac_configure_args0 " in
1822	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1823	    esac
1824	    ;;
1825	  -* ) ac_must_keep_next=true ;;
1826	esac
1827      fi
1828      as_fn_append ac_configure_args " '$ac_arg'"
1829      ;;
1830    esac
1831  done
1832done
1833{ ac_configure_args0=; unset ac_configure_args0;}
1834{ ac_configure_args1=; unset ac_configure_args1;}
1835
1836# When interrupted or exit'd, cleanup temporary files, and complete
1837# config.log.  We remove comments because anyway the quotes in there
1838# would cause problems or look ugly.
1839# WARNING: Use '\'' to represent an apostrophe within the trap.
1840# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1841trap 'exit_status=$?
1842  # Sanitize IFS.
1843  IFS=" ""	$as_nl"
1844  # Save into config.log some information that might help in debugging.
1845  {
1846    echo
1847
1848    printf "%s\n" "## ---------------- ##
1849## Cache variables. ##
1850## ---------------- ##"
1851    echo
1852    # The following way of writing the cache mishandles newlines in values,
1853(
1854  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1855    eval ac_val=\$$ac_var
1856    case $ac_val in #(
1857    *${as_nl}*)
1858      case $ac_var in #(
1859      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1860printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1861      esac
1862      case $ac_var in #(
1863      _ | IFS | as_nl) ;; #(
1864      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1865      *) { eval $ac_var=; unset $ac_var;} ;;
1866      esac ;;
1867    esac
1868  done
1869  (set) 2>&1 |
1870    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1871    *${as_nl}ac_space=\ *)
1872      sed -n \
1873	"s/'\''/'\''\\\\'\'''\''/g;
1874	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1875      ;; #(
1876    *)
1877      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1878      ;;
1879    esac |
1880    sort
1881)
1882    echo
1883
1884    printf "%s\n" "## ----------------- ##
1885## Output variables. ##
1886## ----------------- ##"
1887    echo
1888    for ac_var in $ac_subst_vars
1889    do
1890      eval ac_val=\$$ac_var
1891      case $ac_val in
1892      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1893      esac
1894      printf "%s\n" "$ac_var='\''$ac_val'\''"
1895    done | sort
1896    echo
1897
1898    if test -n "$ac_subst_files"; then
1899      printf "%s\n" "## ------------------- ##
1900## File substitutions. ##
1901## ------------------- ##"
1902      echo
1903      for ac_var in $ac_subst_files
1904      do
1905	eval ac_val=\$$ac_var
1906	case $ac_val in
1907	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1908	esac
1909	printf "%s\n" "$ac_var='\''$ac_val'\''"
1910      done | sort
1911      echo
1912    fi
1913
1914    if test -s confdefs.h; then
1915      printf "%s\n" "## ----------- ##
1916## confdefs.h. ##
1917## ----------- ##"
1918      echo
1919      cat confdefs.h
1920      echo
1921    fi
1922    test "$ac_signal" != 0 &&
1923      printf "%s\n" "$as_me: caught signal $ac_signal"
1924    printf "%s\n" "$as_me: exit $exit_status"
1925  } >&5
1926  rm -f core *.core core.conftest.* &&
1927    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1928    exit $exit_status
1929' 0
1930for ac_signal in 1 2 13 15; do
1931  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1932done
1933ac_signal=0
1934
1935# confdefs.h avoids OS command line length limits that DEFS can exceed.
1936rm -f -r conftest* confdefs.h
1937
1938printf "%s\n" "/* confdefs.h */" > confdefs.h
1939
1940# Predefined preprocessor variables.
1941
1942printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1943
1944printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1945
1946printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1947
1948printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1949
1950printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1951
1952printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1953
1954
1955# Let the site file select an alternate cache file if it wants to.
1956# Prefer an explicitly selected file to automatically selected ones.
1957if test -n "$CONFIG_SITE"; then
1958  ac_site_files="$CONFIG_SITE"
1959elif test "x$prefix" != xNONE; then
1960  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1961else
1962  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1963fi
1964
1965for ac_site_file in $ac_site_files
1966do
1967  case $ac_site_file in #(
1968  */*) :
1969     ;; #(
1970  *) :
1971    ac_site_file=./$ac_site_file ;;
1972esac
1973  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1974    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1975printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1976    sed 's/^/| /' "$ac_site_file" >&5
1977    . "$ac_site_file" \
1978      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1979printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1980as_fn_error $? "failed to load site script $ac_site_file
1981See 'config.log' for more details" "$LINENO" 5; }
1982  fi
1983done
1984
1985if test -r "$cache_file"; then
1986  # Some versions of bash will fail to source /dev/null (special files
1987  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1988  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1989    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1990printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1991    case $cache_file in
1992      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1993      *)                      . "./$cache_file";;
1994    esac
1995  fi
1996else
1997  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1998printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1999  >$cache_file
2000fi
2001
2002# Test code for whether the C compiler supports C89 (global declarations)
2003ac_c_conftest_c89_globals='
2004/* Does the compiler advertise C89 conformance?
2005   Do not test the value of __STDC__, because some compilers set it to 0
2006   while being otherwise adequately conformant. */
2007#if !defined __STDC__
2008# error "Compiler does not advertise C89 conformance"
2009#endif
2010
2011#include <stddef.h>
2012#include <stdarg.h>
2013struct stat;
2014/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2015struct buf { int x; };
2016struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2017static char *e (char **p, int i)
2018{
2019  return p[i];
2020}
2021static char *f (char * (*g) (char **, int), char **p, ...)
2022{
2023  char *s;
2024  va_list v;
2025  va_start (v,p);
2026  s = g (p, va_arg (v,int));
2027  va_end (v);
2028  return s;
2029}
2030
2031/* C89 style stringification. */
2032#define noexpand_stringify(a) #a
2033const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2034
2035/* C89 style token pasting.  Exercises some of the corner cases that
2036   e.g. old MSVC gets wrong, but not very hard. */
2037#define noexpand_concat(a,b) a##b
2038#define expand_concat(a,b) noexpand_concat(a,b)
2039extern int vA;
2040extern int vbee;
2041#define aye A
2042#define bee B
2043int *pvA = &expand_concat(v,aye);
2044int *pvbee = &noexpand_concat(v,bee);
2045
2046/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2047   function prototypes and stuff, but not \xHH hex character constants.
2048   These do not provoke an error unfortunately, instead are silently treated
2049   as an "x".  The following induces an error, until -std is added to get
2050   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2051   array size at least.  It is necessary to write \x00 == 0 to get something
2052   that is true only with -std.  */
2053int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2054
2055/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2056   inside strings and character constants.  */
2057#define FOO(x) '\''x'\''
2058int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2059
2060int test (int i, double x);
2061struct s1 {int (*f) (int a);};
2062struct s2 {int (*f) (double a);};
2063int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2064               int, int);'
2065
2066# Test code for whether the C compiler supports C89 (body of main).
2067ac_c_conftest_c89_main='
2068ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2069'
2070
2071# Test code for whether the C compiler supports C99 (global declarations)
2072ac_c_conftest_c99_globals='
2073/* Does the compiler advertise C99 conformance? */
2074#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2075# error "Compiler does not advertise C99 conformance"
2076#endif
2077
2078// See if C++-style comments work.
2079
2080#include <stdbool.h>
2081extern int puts (const char *);
2082extern int printf (const char *, ...);
2083extern int dprintf (int, const char *, ...);
2084extern void *malloc (size_t);
2085extern void free (void *);
2086
2087// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2088// dprintf is used instead of fprintf to avoid needing to declare
2089// FILE and stderr.
2090#define debug(...) dprintf (2, __VA_ARGS__)
2091#define showlist(...) puts (#__VA_ARGS__)
2092#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2093static void
2094test_varargs_macros (void)
2095{
2096  int x = 1234;
2097  int y = 5678;
2098  debug ("Flag");
2099  debug ("X = %d\n", x);
2100  showlist (The first, second, and third items.);
2101  report (x>y, "x is %d but y is %d", x, y);
2102}
2103
2104// Check long long types.
2105#define BIG64 18446744073709551615ull
2106#define BIG32 4294967295ul
2107#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2108#if !BIG_OK
2109  #error "your preprocessor is broken"
2110#endif
2111#if BIG_OK
2112#else
2113  #error "your preprocessor is broken"
2114#endif
2115static long long int bignum = -9223372036854775807LL;
2116static unsigned long long int ubignum = BIG64;
2117
2118struct incomplete_array
2119{
2120  int datasize;
2121  double data[];
2122};
2123
2124struct named_init {
2125  int number;
2126  const wchar_t *name;
2127  double average;
2128};
2129
2130typedef const char *ccp;
2131
2132static inline int
2133test_restrict (ccp restrict text)
2134{
2135  // Iterate through items via the restricted pointer.
2136  // Also check for declarations in for loops.
2137  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2138    continue;
2139  return 0;
2140}
2141
2142// Check varargs and va_copy.
2143static bool
2144test_varargs (const char *format, ...)
2145{
2146  va_list args;
2147  va_start (args, format);
2148  va_list args_copy;
2149  va_copy (args_copy, args);
2150
2151  const char *str = "";
2152  int number = 0;
2153  float fnumber = 0;
2154
2155  while (*format)
2156    {
2157      switch (*format++)
2158	{
2159	case '\''s'\'': // string
2160	  str = va_arg (args_copy, const char *);
2161	  break;
2162	case '\''d'\'': // int
2163	  number = va_arg (args_copy, int);
2164	  break;
2165	case '\''f'\'': // float
2166	  fnumber = va_arg (args_copy, double);
2167	  break;
2168	default:
2169	  break;
2170	}
2171    }
2172  va_end (args_copy);
2173  va_end (args);
2174
2175  return *str && number && fnumber;
2176}
2177'
2178
2179# Test code for whether the C compiler supports C99 (body of main).
2180ac_c_conftest_c99_main='
2181  // Check bool.
2182  _Bool success = false;
2183  success |= (argc != 0);
2184
2185  // Check restrict.
2186  if (test_restrict ("String literal") == 0)
2187    success = true;
2188  char *restrict newvar = "Another string";
2189
2190  // Check varargs.
2191  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2192  test_varargs_macros ();
2193
2194  // Check flexible array members.
2195  struct incomplete_array *ia =
2196    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2197  ia->datasize = 10;
2198  for (int i = 0; i < ia->datasize; ++i)
2199    ia->data[i] = i * 1.234;
2200  // Work around memory leak warnings.
2201  free (ia);
2202
2203  // Check named initializers.
2204  struct named_init ni = {
2205    .number = 34,
2206    .name = L"Test wide string",
2207    .average = 543.34343,
2208  };
2209
2210  ni.number = 58;
2211
2212  int dynamic_array[ni.number];
2213  dynamic_array[0] = argv[0][0];
2214  dynamic_array[ni.number - 1] = 543;
2215
2216  // work around unused variable warnings
2217  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2218	 || dynamic_array[ni.number - 1] != 543);
2219'
2220
2221# Test code for whether the C compiler supports C11 (global declarations)
2222ac_c_conftest_c11_globals='
2223/* Does the compiler advertise C11 conformance? */
2224#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2225# error "Compiler does not advertise C11 conformance"
2226#endif
2227
2228// Check _Alignas.
2229char _Alignas (double) aligned_as_double;
2230char _Alignas (0) no_special_alignment;
2231extern char aligned_as_int;
2232char _Alignas (0) _Alignas (int) aligned_as_int;
2233
2234// Check _Alignof.
2235enum
2236{
2237  int_alignment = _Alignof (int),
2238  int_array_alignment = _Alignof (int[100]),
2239  char_alignment = _Alignof (char)
2240};
2241_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2242
2243// Check _Noreturn.
2244int _Noreturn does_not_return (void) { for (;;) continue; }
2245
2246// Check _Static_assert.
2247struct test_static_assert
2248{
2249  int x;
2250  _Static_assert (sizeof (int) <= sizeof (long int),
2251                  "_Static_assert does not work in struct");
2252  long int y;
2253};
2254
2255// Check UTF-8 literals.
2256#define u8 syntax error!
2257char const utf8_literal[] = u8"happens to be ASCII" "another string";
2258
2259// Check duplicate typedefs.
2260typedef long *long_ptr;
2261typedef long int *long_ptr;
2262typedef long_ptr long_ptr;
2263
2264// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2265struct anonymous
2266{
2267  union {
2268    struct { int i; int j; };
2269    struct { int k; long int l; } w;
2270  };
2271  int m;
2272} v1;
2273'
2274
2275# Test code for whether the C compiler supports C11 (body of main).
2276ac_c_conftest_c11_main='
2277  _Static_assert ((offsetof (struct anonymous, i)
2278		   == offsetof (struct anonymous, w.k)),
2279		  "Anonymous union alignment botch");
2280  v1.i = 2;
2281  v1.w.k = 5;
2282  ok |= v1.i != 5;
2283'
2284
2285# Test code for whether the C compiler supports C11 (complete).
2286ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2287${ac_c_conftest_c99_globals}
2288${ac_c_conftest_c11_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  ${ac_c_conftest_c11_main}
2297  return ok;
2298}
2299"
2300
2301# Test code for whether the C compiler supports C99 (complete).
2302ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2303${ac_c_conftest_c99_globals}
2304
2305int
2306main (int argc, char **argv)
2307{
2308  int ok = 0;
2309  ${ac_c_conftest_c89_main}
2310  ${ac_c_conftest_c99_main}
2311  return ok;
2312}
2313"
2314
2315# Test code for whether the C compiler supports C89 (complete).
2316ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2317
2318int
2319main (int argc, char **argv)
2320{
2321  int ok = 0;
2322  ${ac_c_conftest_c89_main}
2323  return ok;
2324}
2325"
2326
2327as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2328as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2329as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2330as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2331as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2332as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2333as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2334as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2335as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2336
2337# Auxiliary files required by this configure script.
2338ac_aux_files="config.guess config.sub compile missing install-sh"
2339
2340# Locations in which to look for auxiliary files.
2341ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2342
2343# Search for a directory containing all of the required auxiliary files,
2344# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2345# If we don't find one directory that contains all the files we need,
2346# we report the set of missing files from the *first* directory in
2347# $ac_aux_dir_candidates and give up.
2348ac_missing_aux_files=""
2349ac_first_candidate=:
2350printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352as_found=false
2353for as_dir in $ac_aux_dir_candidates
2354do
2355  IFS=$as_save_IFS
2356  case $as_dir in #(((
2357    '') as_dir=./ ;;
2358    */) ;;
2359    *) as_dir=$as_dir/ ;;
2360  esac
2361  as_found=:
2362
2363  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2364  ac_aux_dir_found=yes
2365  ac_install_sh=
2366  for ac_aux in $ac_aux_files
2367  do
2368    # As a special case, if "install-sh" is required, that requirement
2369    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2370    # and $ac_install_sh is set appropriately for whichever one is found.
2371    if test x"$ac_aux" = x"install-sh"
2372    then
2373      if test -f "${as_dir}install-sh"; then
2374        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2375        ac_install_sh="${as_dir}install-sh -c"
2376      elif test -f "${as_dir}install.sh"; then
2377        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2378        ac_install_sh="${as_dir}install.sh -c"
2379      elif test -f "${as_dir}shtool"; then
2380        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2381        ac_install_sh="${as_dir}shtool install -c"
2382      else
2383        ac_aux_dir_found=no
2384        if $ac_first_candidate; then
2385          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2386        else
2387          break
2388        fi
2389      fi
2390    else
2391      if test -f "${as_dir}${ac_aux}"; then
2392        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2393      else
2394        ac_aux_dir_found=no
2395        if $ac_first_candidate; then
2396          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2397        else
2398          break
2399        fi
2400      fi
2401    fi
2402  done
2403  if test "$ac_aux_dir_found" = yes; then
2404    ac_aux_dir="$as_dir"
2405    break
2406  fi
2407  ac_first_candidate=false
2408
2409  as_found=false
2410done
2411IFS=$as_save_IFS
2412if $as_found
2413then :
2414
2415else case e in #(
2416  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2417esac
2418fi
2419
2420
2421# These three variables are undocumented and unsupported,
2422# and are intended to be withdrawn in a future Autoconf release.
2423# They can cause serious problems if a builder's source tree is in a directory
2424# whose full name contains unusual characters.
2425if test -f "${ac_aux_dir}config.guess"; then
2426  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2427fi
2428if test -f "${ac_aux_dir}config.sub"; then
2429  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2430fi
2431if test -f "$ac_aux_dir/configure"; then
2432  ac_configure="$SHELL ${ac_aux_dir}configure"
2433fi
2434
2435# Check that the precious variables saved in the cache have kept the same
2436# value.
2437ac_cache_corrupted=false
2438for ac_var in $ac_precious_vars; do
2439  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2440  eval ac_new_set=\$ac_env_${ac_var}_set
2441  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2442  eval ac_new_val=\$ac_env_${ac_var}_value
2443  case $ac_old_set,$ac_new_set in
2444    set,)
2445      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2446printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2447      ac_cache_corrupted=: ;;
2448    ,set)
2449      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2450printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2451      ac_cache_corrupted=: ;;
2452    ,);;
2453    *)
2454      if test "x$ac_old_val" != "x$ac_new_val"; then
2455	# differences in whitespace do not lead to failure.
2456	ac_old_val_w=`echo x $ac_old_val`
2457	ac_new_val_w=`echo x $ac_new_val`
2458	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2459	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2460printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2461	  ac_cache_corrupted=:
2462	else
2463	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2464printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2465	  eval $ac_var=\$ac_old_val
2466	fi
2467	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2468printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2469	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2470printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2471      fi;;
2472  esac
2473  # Pass precious variables to config.status.
2474  if test "$ac_new_set" = set; then
2475    case $ac_new_val in
2476    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2477    *) ac_arg=$ac_var=$ac_new_val ;;
2478    esac
2479    case " $ac_configure_args " in
2480      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2481      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2482    esac
2483  fi
2484done
2485if $ac_cache_corrupted; then
2486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2487printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2488  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2489printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2490  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2491	    and start over" "$LINENO" 5
2492fi
2493## -------------------- ##
2494## Main body of script. ##
2495## -------------------- ##
2496
2497ac_ext=c
2498ac_cpp='$CPP $CPPFLAGS'
2499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501ac_compiler_gnu=$ac_cv_c_compiler_gnu
2502
2503
2504
2505ac_config_headers="$ac_config_headers config.h"
2506
2507
2508# Initialize Automake
2509am__api_version='1.17'
2510
2511
2512
2513  # Find a good install program.  We prefer a C program (faster),
2514# so one script is as good as another.  But avoid the broken or
2515# incompatible versions:
2516# SysV /etc/install, /usr/sbin/install
2517# SunOS /usr/etc/install
2518# IRIX /sbin/install
2519# AIX /bin/install
2520# AmigaOS /C/install, which installs bootblocks on floppy discs
2521# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2522# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2523# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2524# OS/2's system install, which has a completely different semantic
2525# ./install, which can be erroneously created by make from ./install.sh.
2526# Reject install programs that cannot install multiple files.
2527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2528printf %s "checking for a BSD-compatible install... " >&6; }
2529if test -z "$INSTALL"; then
2530if test ${ac_cv_path_install+y}
2531then :
2532  printf %s "(cached) " >&6
2533else case e in #(
2534  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535for as_dir in $PATH
2536do
2537  IFS=$as_save_IFS
2538  case $as_dir in #(((
2539    '') as_dir=./ ;;
2540    */) ;;
2541    *) as_dir=$as_dir/ ;;
2542  esac
2543    # Account for fact that we put trailing slashes in our PATH walk.
2544case $as_dir in #((
2545  ./ | /[cC]/* | \
2546  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2547  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2548  /usr/ucb/* ) ;;
2549  *)
2550    # OSF1 and SCO ODT 3.0 have their own names for install.
2551    # Don't use installbsd from OSF since it installs stuff as root
2552    # by default.
2553    for ac_prog in ginstall scoinst install; do
2554      for ac_exec_ext in '' $ac_executable_extensions; do
2555	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2556	  if test $ac_prog = install &&
2557	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2558	    # AIX install.  It has an incompatible calling convention.
2559	    :
2560	  elif test $ac_prog = install &&
2561	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2562	    # program-specific install script used by HP pwplus--don't use.
2563	    :
2564	  else
2565	    rm -rf conftest.one conftest.two conftest.dir
2566	    echo one > conftest.one
2567	    echo two > conftest.two
2568	    mkdir conftest.dir
2569	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2570	      test -s conftest.one && test -s conftest.two &&
2571	      test -s conftest.dir/conftest.one &&
2572	      test -s conftest.dir/conftest.two
2573	    then
2574	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2575	      break 3
2576	    fi
2577	  fi
2578	fi
2579      done
2580    done
2581    ;;
2582esac
2583
2584  done
2585IFS=$as_save_IFS
2586
2587rm -rf conftest.one conftest.two conftest.dir
2588 ;;
2589esac
2590fi
2591  if test ${ac_cv_path_install+y}; then
2592    INSTALL=$ac_cv_path_install
2593  else
2594    # As a last resort, use the slow shell script.  Don't cache a
2595    # value for INSTALL within a source directory, because that will
2596    # break other packages using the cache if that directory is
2597    # removed, or if the value is a relative name.
2598    INSTALL=$ac_install_sh
2599  fi
2600fi
2601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2602printf "%s\n" "$INSTALL" >&6; }
2603
2604# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2605# It thinks the first close brace ends the variable substitution.
2606test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2607
2608test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2609
2610test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2611
2612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2613printf %s "checking whether sleep supports fractional seconds... " >&6; }
2614if test ${am_cv_sleep_fractional_seconds+y}
2615then :
2616  printf %s "(cached) " >&6
2617else case e in #(
2618  e) if sleep 0.001 2>/dev/null
2619then :
2620  am_cv_sleep_fractional_seconds=yes
2621else case e in #(
2622  e) am_cv_sleep_fractional_seconds=no ;;
2623esac
2624fi
2625 ;;
2626esac
2627fi
2628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2629printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2630
2631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2632printf %s "checking filesystem timestamp resolution... " >&6; }
2633if test ${am_cv_filesystem_timestamp_resolution+y}
2634then :
2635  printf %s "(cached) " >&6
2636else case e in #(
2637  e) # Default to the worst case.
2638am_cv_filesystem_timestamp_resolution=2
2639
2640# Only try to go finer than 1 sec if sleep can do it.
2641# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2642# - 1 sec is not much of a win compared to 2 sec, and
2643# - it takes 2 seconds to perform the test whether 1 sec works.
2644#
2645# Instead, just use the default 2s on platforms that have 1s resolution,
2646# accept the extra 1s delay when using $sleep in the Automake tests, in
2647# exchange for not incurring the 2s delay for running the test for all
2648# packages.
2649#
2650am_try_resolutions=
2651if test "$am_cv_sleep_fractional_seconds" = yes; then
2652  # Even a millisecond often causes a bunch of false positives,
2653  # so just try a hundredth of a second. The time saved between .001 and
2654  # .01 is not terribly consequential.
2655  am_try_resolutions="0.01 0.1 $am_try_resolutions"
2656fi
2657
2658# In order to catch current-generation FAT out, we must *modify* files
2659# that already exist; the *creation* timestamp is finer.  Use names
2660# that make ls -t sort them differently when they have equal
2661# timestamps than when they have distinct timestamps, keeping
2662# in mind that ls -t prints the *newest* file first.
2663rm -f conftest.ts?
2664: > conftest.ts1
2665: > conftest.ts2
2666: > conftest.ts3
2667
2668# Make sure ls -t actually works.  Do 'set' in a subshell so we don't
2669# clobber the current shell's arguments. (Outer-level square brackets
2670# are removed by m4; they're present so that m4 does not expand
2671# <dollar><star>; be careful, easy to get confused.)
2672if (
2673     set X `ls -t conftest.ts[12]` &&
2674     {
2675       test "$*" != "X conftest.ts1 conftest.ts2" ||
2676       test "$*" != "X conftest.ts2 conftest.ts1";
2677     }
2678); then :; else
2679  # If neither matched, then we have a broken ls.  This can happen
2680  # if, for instance, CONFIG_SHELL is bash and it inherits a
2681  # broken ls alias from the environment.  This has actually
2682  # happened.  Such a system could not be considered "sane".
2683  printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2684  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2685printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2686as_fn_error $? "ls -t produces unexpected output.
2687Make sure there is not a broken ls alias in your environment.
2688See 'config.log' for more details" "$LINENO" 5; }
2689fi
2690
2691for am_try_res in $am_try_resolutions; do
2692  # Any one fine-grained sleep might happen to cross the boundary
2693  # between two values of a coarser actual resolution, but if we do
2694  # two fine-grained sleeps in a row, at least one of them will fall
2695  # entirely within a coarse interval.
2696  echo alpha > conftest.ts1
2697  sleep $am_try_res
2698  echo beta > conftest.ts2
2699  sleep $am_try_res
2700  echo gamma > conftest.ts3
2701
2702  # We assume that 'ls -t' will make use of high-resolution
2703  # timestamps if the operating system supports them at all.
2704  if (set X `ls -t conftest.ts?` &&
2705      test "$2" = conftest.ts3 &&
2706      test "$3" = conftest.ts2 &&
2707      test "$4" = conftest.ts1); then
2708    #
2709    # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2710    # because we don't need to test make.
2711    make_ok=true
2712    if test $am_try_res != 1; then
2713      # But if we've succeeded so far with a subsecond resolution, we
2714      # have one more thing to check: make. It can happen that
2715      # everything else supports the subsecond mtimes, but make doesn't;
2716      # notably on macOS, which ships make 3.81 from 2006 (the last one
2717      # released under GPLv2). https://bugs.gnu.org/68808
2718      #
2719      # We test $MAKE if it is defined in the environment, else "make".
2720      # It might get overridden later, but our hope is that in practice
2721      # it does not matter: it is the system "make" which is (by far)
2722      # the most likely to be broken, whereas if the user overrides it,
2723      # probably they did so with a better, or at least not worse, make.
2724      # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2725      #
2726      # Create a Makefile (real tab character here):
2727      rm -f conftest.mk
2728      echo 'conftest.ts1: conftest.ts2' >conftest.mk
2729      echo '	touch conftest.ts2' >>conftest.mk
2730      #
2731      # Now, running
2732      #   touch conftest.ts1; touch conftest.ts2; make
2733      # should touch ts1 because ts2 is newer. This could happen by luck,
2734      # but most often, it will fail if make's support is insufficient. So
2735      # test for several consecutive successes.
2736      #
2737      # (We reuse conftest.ts[12] because we still want to modify existing
2738      # files, not create new ones, per above.)
2739      n=0
2740      make=${MAKE-make}
2741      until test $n -eq 3; do
2742        echo one > conftest.ts1
2743        sleep $am_try_res
2744        echo two > conftest.ts2 # ts2 should now be newer than ts1
2745        if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2746          make_ok=false
2747          break # out of $n loop
2748        fi
2749        n=`expr $n + 1`
2750      done
2751    fi
2752    #
2753    if $make_ok; then
2754      # Everything we know to check worked out, so call this resolution good.
2755      am_cv_filesystem_timestamp_resolution=$am_try_res
2756      break # out of $am_try_res loop
2757    fi
2758    # Otherwise, we'll go on to check the next resolution.
2759  fi
2760done
2761rm -f conftest.ts?
2762# (end _am_filesystem_timestamp_resolution)
2763 ;;
2764esac
2765fi
2766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2767printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2768
2769# This check should not be cached, as it may vary across builds of
2770# different projects.
2771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2772printf %s "checking whether build environment is sane... " >&6; }
2773# Reject unsafe characters in $srcdir or the absolute working directory
2774# name.  Accept space and tab only in the latter.
2775am_lf='
2776'
2777case `pwd` in
2778  *[\\\"\#\$\&\'\`$am_lf]*)
2779    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2780esac
2781case $srcdir in
2782  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2783    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2784esac
2785
2786# Do 'set' in a subshell so we don't clobber the current shell's
2787# arguments.  Must try -L first in case configure is actually a
2788# symlink; some systems play weird games with the mod time of symlinks
2789# (eg FreeBSD returns the mod time of the symlink's containing
2790# directory).
2791am_build_env_is_sane=no
2792am_has_slept=no
2793rm -f conftest.file
2794for am_try in 1 2; do
2795  echo "timestamp, slept: $am_has_slept" > conftest.file
2796  if (
2797    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2798    if test "$*" = "X"; then
2799      # -L didn't work.
2800      set X `ls -t "$srcdir/configure" conftest.file`
2801    fi
2802    test "$2" = conftest.file
2803  ); then
2804    am_build_env_is_sane=yes
2805    break
2806  fi
2807  # Just in case.
2808  sleep "$am_cv_filesystem_timestamp_resolution"
2809  am_has_slept=yes
2810done
2811
2812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2813printf "%s\n" "$am_build_env_is_sane" >&6; }
2814if test "$am_build_env_is_sane" = no; then
2815  as_fn_error $? "newly created file is older than distributed files!
2816Check your system clock" "$LINENO" 5
2817fi
2818
2819# If we didn't sleep, we still need to ensure time stamps of config.status and
2820# generated files are strictly newer.
2821am_sleep_pid=
2822if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2823then :
2824
2825else case e in #(
2826  e)   ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
2827  am_sleep_pid=$!
2828 ;;
2829esac
2830fi
2831
2832rm -f conftest.file
2833
2834test "$program_prefix" != NONE &&
2835  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2836# Use a double $ so make ignores it.
2837test "$program_suffix" != NONE &&
2838  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2839# Double any \ or $.
2840# By default was 's,x,x', remove it if useless.
2841ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2842program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2843
2844
2845# Expand $ac_aux_dir to an absolute path.
2846am_aux_dir=`cd "$ac_aux_dir" && pwd`
2847
2848
2849  if test x"${MISSING+set}" != xset; then
2850  MISSING="\${SHELL} '$am_aux_dir/missing'"
2851fi
2852# Use eval to expand $SHELL
2853if eval "$MISSING --is-lightweight"; then
2854  am_missing_run="$MISSING "
2855else
2856  am_missing_run=
2857  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2858printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2859fi
2860
2861if test x"${install_sh+set}" != xset; then
2862  case $am_aux_dir in
2863  *\ * | *\	*)
2864    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2865  *)
2866    install_sh="\${SHELL} $am_aux_dir/install-sh"
2867  esac
2868fi
2869
2870# Installed binaries are usually stripped using 'strip' when the user
2871# run "make install-strip".  However 'strip' might not be the right
2872# tool to use in cross-compilation environments, therefore Automake
2873# will honor the 'STRIP' environment variable to overrule this program.
2874if test "$cross_compiling" != no; then
2875  if test -n "$ac_tool_prefix"; then
2876  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2877set dummy ${ac_tool_prefix}strip; ac_word=$2
2878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879printf %s "checking for $ac_word... " >&6; }
2880if test ${ac_cv_prog_STRIP+y}
2881then :
2882  printf %s "(cached) " >&6
2883else case e in #(
2884  e) if test -n "$STRIP"; then
2885  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2886else
2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888for as_dir in $PATH
2889do
2890  IFS=$as_save_IFS
2891  case $as_dir in #(((
2892    '') as_dir=./ ;;
2893    */) ;;
2894    *) as_dir=$as_dir/ ;;
2895  esac
2896    for ac_exec_ext in '' $ac_executable_extensions; do
2897  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2898    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2899    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2900    break 2
2901  fi
2902done
2903  done
2904IFS=$as_save_IFS
2905
2906fi ;;
2907esac
2908fi
2909STRIP=$ac_cv_prog_STRIP
2910if test -n "$STRIP"; then
2911  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2912printf "%s\n" "$STRIP" >&6; }
2913else
2914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915printf "%s\n" "no" >&6; }
2916fi
2917
2918
2919fi
2920if test -z "$ac_cv_prog_STRIP"; then
2921  ac_ct_STRIP=$STRIP
2922  # Extract the first word of "strip", so it can be a program name with args.
2923set dummy strip; ac_word=$2
2924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925printf %s "checking for $ac_word... " >&6; }
2926if test ${ac_cv_prog_ac_ct_STRIP+y}
2927then :
2928  printf %s "(cached) " >&6
2929else case e in #(
2930  e) if test -n "$ac_ct_STRIP"; then
2931  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2932else
2933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934for as_dir in $PATH
2935do
2936  IFS=$as_save_IFS
2937  case $as_dir in #(((
2938    '') as_dir=./ ;;
2939    */) ;;
2940    *) as_dir=$as_dir/ ;;
2941  esac
2942    for ac_exec_ext in '' $ac_executable_extensions; do
2943  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2944    ac_cv_prog_ac_ct_STRIP="strip"
2945    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2946    break 2
2947  fi
2948done
2949  done
2950IFS=$as_save_IFS
2951
2952fi ;;
2953esac
2954fi
2955ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2956if test -n "$ac_ct_STRIP"; then
2957  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2958printf "%s\n" "$ac_ct_STRIP" >&6; }
2959else
2960  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961printf "%s\n" "no" >&6; }
2962fi
2963
2964  if test "x$ac_ct_STRIP" = x; then
2965    STRIP=":"
2966  else
2967    case $cross_compiling:$ac_tool_warned in
2968yes:)
2969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2970printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2971ac_tool_warned=yes ;;
2972esac
2973    STRIP=$ac_ct_STRIP
2974  fi
2975else
2976  STRIP="$ac_cv_prog_STRIP"
2977fi
2978
2979fi
2980INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2981
2982
2983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2984printf %s "checking for a race-free mkdir -p... " >&6; }
2985if test -z "$MKDIR_P"; then
2986  if test ${ac_cv_path_mkdir+y}
2987then :
2988  printf %s "(cached) " >&6
2989else case e in #(
2990  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2992do
2993  IFS=$as_save_IFS
2994  case $as_dir in #(((
2995    '') as_dir=./ ;;
2996    */) ;;
2997    *) as_dir=$as_dir/ ;;
2998  esac
2999    for ac_prog in mkdir gmkdir; do
3000	 for ac_exec_ext in '' $ac_executable_extensions; do
3001	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3002	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3003	     'mkdir ('*'coreutils) '* | \
3004	     *'BusyBox '* | \
3005	     'mkdir (fileutils) '4.1*)
3006	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3007	       break 3;;
3008	   esac
3009	 done
3010       done
3011  done
3012IFS=$as_save_IFS
3013 ;;
3014esac
3015fi
3016
3017  test -d ./--version && rmdir ./--version
3018  if test ${ac_cv_path_mkdir+y}; then
3019    MKDIR_P="$ac_cv_path_mkdir -p"
3020  else
3021    # As a last resort, use plain mkdir -p,
3022    # in the hope it doesn't have the bugs of ancient mkdir.
3023    MKDIR_P='mkdir -p'
3024  fi
3025fi
3026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3027printf "%s\n" "$MKDIR_P" >&6; }
3028
3029for ac_prog in gawk mawk nawk awk
3030do
3031  # Extract the first word of "$ac_prog", so it can be a program name with args.
3032set dummy $ac_prog; ac_word=$2
3033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034printf %s "checking for $ac_word... " >&6; }
3035if test ${ac_cv_prog_AWK+y}
3036then :
3037  printf %s "(cached) " >&6
3038else case e in #(
3039  e) if test -n "$AWK"; then
3040  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3041else
3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045  IFS=$as_save_IFS
3046  case $as_dir in #(((
3047    '') as_dir=./ ;;
3048    */) ;;
3049    *) as_dir=$as_dir/ ;;
3050  esac
3051    for ac_exec_ext in '' $ac_executable_extensions; do
3052  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3053    ac_cv_prog_AWK="$ac_prog"
3054    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3055    break 2
3056  fi
3057done
3058  done
3059IFS=$as_save_IFS
3060
3061fi ;;
3062esac
3063fi
3064AWK=$ac_cv_prog_AWK
3065if test -n "$AWK"; then
3066  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3067printf "%s\n" "$AWK" >&6; }
3068else
3069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070printf "%s\n" "no" >&6; }
3071fi
3072
3073
3074  test -n "$AWK" && break
3075done
3076
3077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3078printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3079set x ${MAKE-make}
3080ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3081if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3082then :
3083  printf %s "(cached) " >&6
3084else case e in #(
3085  e) cat >conftest.make <<\_ACEOF
3086SHELL = /bin/sh
3087all:
3088	@echo '@@@%%%=$(MAKE)=@@@%%%'
3089_ACEOF
3090# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3091case `${MAKE-make} -f conftest.make 2>/dev/null` in
3092  *@@@%%%=?*=@@@%%%*)
3093    eval ac_cv_prog_make_${ac_make}_set=yes;;
3094  *)
3095    eval ac_cv_prog_make_${ac_make}_set=no;;
3096esac
3097rm -f conftest.make ;;
3098esac
3099fi
3100if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3102printf "%s\n" "yes" >&6; }
3103  SET_MAKE=
3104else
3105  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106printf "%s\n" "no" >&6; }
3107  SET_MAKE="MAKE=${MAKE-make}"
3108fi
3109
3110rm -rf .tst 2>/dev/null
3111mkdir .tst 2>/dev/null
3112if test -d .tst; then
3113  am__leading_dot=.
3114else
3115  am__leading_dot=_
3116fi
3117rmdir .tst 2>/dev/null
3118
3119AM_DEFAULT_VERBOSITY=1
3120# Check whether --enable-silent-rules was given.
3121if test ${enable_silent_rules+y}
3122then :
3123  enableval=$enable_silent_rules;
3124fi
3125
3126am_make=${MAKE-make}
3127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3128printf %s "checking whether $am_make supports nested variables... " >&6; }
3129if test ${am_cv_make_support_nested_variables+y}
3130then :
3131  printf %s "(cached) " >&6
3132else case e in #(
3133  e) if printf "%s\n" 'TRUE=$(BAR$(V))
3134BAR0=false
3135BAR1=true
3136V=1
3137am__doit:
3138	@$(TRUE)
3139.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3140  am_cv_make_support_nested_variables=yes
3141else
3142  am_cv_make_support_nested_variables=no
3143fi ;;
3144esac
3145fi
3146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3147printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3148AM_BACKSLASH='\'
3149
3150am__rm_f_notfound=
3151if (rm -f && rm -fr && rm -rf) 2>/dev/null
3152then :
3153
3154else case e in #(
3155  e) am__rm_f_notfound='""' ;;
3156esac
3157fi
3158
3159
3160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3161printf %s "checking xargs -n works... " >&6; }
3162if test ${am_cv_xargs_n_works+y}
3163then :
3164  printf %s "(cached) " >&6
3165else case e in #(
3166  e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
31673"
3168then :
3169  am_cv_xargs_n_works=yes
3170else case e in #(
3171  e) am_cv_xargs_n_works=no ;;
3172esac
3173fi ;;
3174esac
3175fi
3176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3177printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3178if test "$am_cv_xargs_n_works" = yes
3179then :
3180  am__xargs_n='xargs -n'
3181else case e in #(
3182  e)   am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3183 ;;
3184esac
3185fi
3186
3187if test "`cd $srcdir && pwd`" != "`pwd`"; then
3188  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3189  # is not polluted with repeated "-I."
3190  am__isrc=' -I$(srcdir)'
3191  # test to see if srcdir already configured
3192  if test -f $srcdir/config.status; then
3193    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3194  fi
3195fi
3196
3197# test whether we have cygpath
3198if test -z "$CYGPATH_W"; then
3199  if (cygpath --version) >/dev/null 2>/dev/null; then
3200    CYGPATH_W='cygpath -w'
3201  else
3202    CYGPATH_W=echo
3203  fi
3204fi
3205
3206
3207# Define the identity of the package.
3208 PACKAGE='showfont'
3209 VERSION='1.0.7'
3210
3211
3212printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3213
3214
3215printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3216
3217# Some tools Automake needs.
3218
3219ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3220
3221
3222AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3223
3224
3225AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3226
3227
3228AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3229
3230
3231MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3232
3233# For better backward compatibility.  To be removed once Automake 1.9.x
3234# dies out for good.  For more background, see:
3235# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3236# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3237mkdir_p='$(MKDIR_P)'
3238
3239# We need awk for the "check" target (and possibly the TAP driver).  The
3240# system "awk" is bad on some platforms.
3241# Always define AMTAR for backward compatibility.  Yes, it's still used
3242# in the wild :-(  We should find a proper way to deprecate it ...
3243AMTAR='$${TAR-tar}'
3244
3245
3246# We'll loop over all known methods to create a tar archive until one works.
3247_am_tools='gnutar  pax cpio none'
3248
3249am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3250
3251
3252
3253
3254
3255# Variables for tags utilities; see am/tags.am
3256if test -z "$CTAGS"; then
3257  CTAGS=ctags
3258fi
3259
3260if test -z "$ETAGS"; then
3261  ETAGS=etags
3262fi
3263
3264if test -z "$CSCOPE"; then
3265  CSCOPE=cscope
3266fi
3267
3268
3269
3270
3271
3272
3273
3274
3275# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296DEPDIR="${am__leading_dot}deps"
3297
3298ac_config_commands="$ac_config_commands depfiles"
3299
3300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3301printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3302cat > confinc.mk << 'END'
3303am__doit:
3304	@echo this is the am__doit target >confinc.out
3305.PHONY: am__doit
3306END
3307am__include="#"
3308am__quote=
3309# BSD make does it like this.
3310echo '.include "confinc.mk" # ignored' > confmf.BSD
3311# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3312echo 'include confinc.mk # ignored' > confmf.GNU
3313_am_result=no
3314for s in GNU BSD; do
3315  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3316   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3317   ac_status=$?
3318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319   (exit $ac_status); }
3320  case $?:`cat confinc.out 2>/dev/null` in #(
3321  '0:this is the am__doit target') :
3322    case $s in #(
3323  BSD) :
3324    am__include='.include' am__quote='"' ;; #(
3325  *) :
3326    am__include='include' am__quote='' ;;
3327esac ;; #(
3328  *) :
3329     ;;
3330esac
3331  if test "$am__include" != "#"; then
3332    _am_result="yes ($s style)"
3333    break
3334  fi
3335done
3336rm -f confinc.* confmf.*
3337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3338printf "%s\n" "${_am_result}" >&6; }
3339
3340# Check whether --enable-dependency-tracking was given.
3341if test ${enable_dependency_tracking+y}
3342then :
3343  enableval=$enable_dependency_tracking;
3344fi
3345
3346if test "x$enable_dependency_tracking" != xno; then
3347  am_depcomp="$ac_aux_dir/depcomp"
3348  AMDEPBACKSLASH='\'
3349  am__nodep='_no'
3350fi
3351 if test "x$enable_dependency_tracking" != xno; then
3352  AMDEP_TRUE=
3353  AMDEP_FALSE='#'
3354else
3355  AMDEP_TRUE='#'
3356  AMDEP_FALSE=
3357fi
3358
3359
3360ac_ext=c
3361ac_cpp='$CPP $CPPFLAGS'
3362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365if test -n "$ac_tool_prefix"; then
3366  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3367set dummy ${ac_tool_prefix}gcc; ac_word=$2
3368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369printf %s "checking for $ac_word... " >&6; }
3370if test ${ac_cv_prog_CC+y}
3371then :
3372  printf %s "(cached) " >&6
3373else case e in #(
3374  e) if test -n "$CC"; then
3375  ac_cv_prog_CC="$CC" # Let the user override the test.
3376else
3377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378for as_dir in $PATH
3379do
3380  IFS=$as_save_IFS
3381  case $as_dir in #(((
3382    '') as_dir=./ ;;
3383    */) ;;
3384    *) as_dir=$as_dir/ ;;
3385  esac
3386    for ac_exec_ext in '' $ac_executable_extensions; do
3387  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3388    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3389    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3390    break 2
3391  fi
3392done
3393  done
3394IFS=$as_save_IFS
3395
3396fi ;;
3397esac
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 "$ac_cv_prog_CC"; then
3411  ac_ct_CC=$CC
3412  # Extract the first word of "gcc", so it can be a program name with args.
3413set dummy gcc; ac_word=$2
3414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415printf %s "checking for $ac_word... " >&6; }
3416if test ${ac_cv_prog_ac_ct_CC+y}
3417then :
3418  printf %s "(cached) " >&6
3419else case e in #(
3420  e) if test -n "$ac_ct_CC"; then
3421  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3422else
3423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424for as_dir in $PATH
3425do
3426  IFS=$as_save_IFS
3427  case $as_dir in #(((
3428    '') as_dir=./ ;;
3429    */) ;;
3430    *) as_dir=$as_dir/ ;;
3431  esac
3432    for ac_exec_ext in '' $ac_executable_extensions; do
3433  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3434    ac_cv_prog_ac_ct_CC="gcc"
3435    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3436    break 2
3437  fi
3438done
3439  done
3440IFS=$as_save_IFS
3441
3442fi ;;
3443esac
3444fi
3445ac_ct_CC=$ac_cv_prog_ac_ct_CC
3446if test -n "$ac_ct_CC"; then
3447  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3448printf "%s\n" "$ac_ct_CC" >&6; }
3449else
3450  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451printf "%s\n" "no" >&6; }
3452fi
3453
3454  if test "x$ac_ct_CC" = x; then
3455    CC=""
3456  else
3457    case $cross_compiling:$ac_tool_warned in
3458yes:)
3459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3460printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3461ac_tool_warned=yes ;;
3462esac
3463    CC=$ac_ct_CC
3464  fi
3465else
3466  CC="$ac_cv_prog_CC"
3467fi
3468
3469if test -z "$CC"; then
3470          if test -n "$ac_tool_prefix"; then
3471    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3472set dummy ${ac_tool_prefix}cc; ac_word=$2
3473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474printf %s "checking for $ac_word... " >&6; }
3475if test ${ac_cv_prog_CC+y}
3476then :
3477  printf %s "(cached) " >&6
3478else case e in #(
3479  e) if test -n "$CC"; then
3480  ac_cv_prog_CC="$CC" # Let the user override the test.
3481else
3482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483for as_dir in $PATH
3484do
3485  IFS=$as_save_IFS
3486  case $as_dir in #(((
3487    '') as_dir=./ ;;
3488    */) ;;
3489    *) as_dir=$as_dir/ ;;
3490  esac
3491    for ac_exec_ext in '' $ac_executable_extensions; do
3492  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3493    ac_cv_prog_CC="${ac_tool_prefix}cc"
3494    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3495    break 2
3496  fi
3497done
3498  done
3499IFS=$as_save_IFS
3500
3501fi ;;
3502esac
3503fi
3504CC=$ac_cv_prog_CC
3505if test -n "$CC"; then
3506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507printf "%s\n" "$CC" >&6; }
3508else
3509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510printf "%s\n" "no" >&6; }
3511fi
3512
3513
3514  fi
3515fi
3516if test -z "$CC"; then
3517  # Extract the first word of "cc", so it can be a program name with args.
3518set dummy cc; ac_word=$2
3519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520printf %s "checking for $ac_word... " >&6; }
3521if test ${ac_cv_prog_CC+y}
3522then :
3523  printf %s "(cached) " >&6
3524else case e in #(
3525  e) if test -n "$CC"; then
3526  ac_cv_prog_CC="$CC" # Let the user override the test.
3527else
3528  ac_prog_rejected=no
3529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530for as_dir in $PATH
3531do
3532  IFS=$as_save_IFS
3533  case $as_dir in #(((
3534    '') as_dir=./ ;;
3535    */) ;;
3536    *) as_dir=$as_dir/ ;;
3537  esac
3538    for ac_exec_ext in '' $ac_executable_extensions; do
3539  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3540    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3541       ac_prog_rejected=yes
3542       continue
3543     fi
3544    ac_cv_prog_CC="cc"
3545    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3546    break 2
3547  fi
3548done
3549  done
3550IFS=$as_save_IFS
3551
3552if test $ac_prog_rejected = yes; then
3553  # We found a bogon in the path, so make sure we never use it.
3554  set dummy $ac_cv_prog_CC
3555  shift
3556  if test $# != 0; then
3557    # We chose a different compiler from the bogus one.
3558    # However, it has the same basename, so the bogon will be chosen
3559    # first if we set CC to just the basename; use the full file name.
3560    shift
3561    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3562  fi
3563fi
3564fi ;;
3565esac
3566fi
3567CC=$ac_cv_prog_CC
3568if test -n "$CC"; then
3569  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570printf "%s\n" "$CC" >&6; }
3571else
3572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573printf "%s\n" "no" >&6; }
3574fi
3575
3576
3577fi
3578if test -z "$CC"; then
3579  if test -n "$ac_tool_prefix"; then
3580  for ac_prog in cl.exe
3581  do
3582    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3583set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585printf %s "checking for $ac_word... " >&6; }
3586if test ${ac_cv_prog_CC+y}
3587then :
3588  printf %s "(cached) " >&6
3589else case e in #(
3590  e) if test -n "$CC"; then
3591  ac_cv_prog_CC="$CC" # Let the user override the test.
3592else
3593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594for as_dir in $PATH
3595do
3596  IFS=$as_save_IFS
3597  case $as_dir in #(((
3598    '') as_dir=./ ;;
3599    */) ;;
3600    *) as_dir=$as_dir/ ;;
3601  esac
3602    for ac_exec_ext in '' $ac_executable_extensions; do
3603  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3604    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3605    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3606    break 2
3607  fi
3608done
3609  done
3610IFS=$as_save_IFS
3611
3612fi ;;
3613esac
3614fi
3615CC=$ac_cv_prog_CC
3616if test -n "$CC"; then
3617  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618printf "%s\n" "$CC" >&6; }
3619else
3620  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621printf "%s\n" "no" >&6; }
3622fi
3623
3624
3625    test -n "$CC" && break
3626  done
3627fi
3628if test -z "$CC"; then
3629  ac_ct_CC=$CC
3630  for ac_prog in cl.exe
3631do
3632  # Extract the first word of "$ac_prog", so it can be a program name with args.
3633set dummy $ac_prog; ac_word=$2
3634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635printf %s "checking for $ac_word... " >&6; }
3636if test ${ac_cv_prog_ac_ct_CC+y}
3637then :
3638  printf %s "(cached) " >&6
3639else case e in #(
3640  e) if test -n "$ac_ct_CC"; then
3641  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3642else
3643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644for as_dir in $PATH
3645do
3646  IFS=$as_save_IFS
3647  case $as_dir in #(((
3648    '') as_dir=./ ;;
3649    */) ;;
3650    *) as_dir=$as_dir/ ;;
3651  esac
3652    for ac_exec_ext in '' $ac_executable_extensions; do
3653  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3654    ac_cv_prog_ac_ct_CC="$ac_prog"
3655    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3656    break 2
3657  fi
3658done
3659  done
3660IFS=$as_save_IFS
3661
3662fi ;;
3663esac
3664fi
3665ac_ct_CC=$ac_cv_prog_ac_ct_CC
3666if test -n "$ac_ct_CC"; then
3667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3668printf "%s\n" "$ac_ct_CC" >&6; }
3669else
3670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671printf "%s\n" "no" >&6; }
3672fi
3673
3674
3675  test -n "$ac_ct_CC" && break
3676done
3677
3678  if test "x$ac_ct_CC" = x; then
3679    CC=""
3680  else
3681    case $cross_compiling:$ac_tool_warned in
3682yes:)
3683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3684printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3685ac_tool_warned=yes ;;
3686esac
3687    CC=$ac_ct_CC
3688  fi
3689fi
3690
3691fi
3692if test -z "$CC"; then
3693  if test -n "$ac_tool_prefix"; then
3694  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3695set dummy ${ac_tool_prefix}clang; ac_word=$2
3696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697printf %s "checking for $ac_word... " >&6; }
3698if test ${ac_cv_prog_CC+y}
3699then :
3700  printf %s "(cached) " >&6
3701else case e in #(
3702  e) if test -n "$CC"; then
3703  ac_cv_prog_CC="$CC" # Let the user override the test.
3704else
3705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706for as_dir in $PATH
3707do
3708  IFS=$as_save_IFS
3709  case $as_dir in #(((
3710    '') as_dir=./ ;;
3711    */) ;;
3712    *) as_dir=$as_dir/ ;;
3713  esac
3714    for ac_exec_ext in '' $ac_executable_extensions; do
3715  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3716    ac_cv_prog_CC="${ac_tool_prefix}clang"
3717    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3718    break 2
3719  fi
3720done
3721  done
3722IFS=$as_save_IFS
3723
3724fi ;;
3725esac
3726fi
3727CC=$ac_cv_prog_CC
3728if test -n "$CC"; then
3729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3730printf "%s\n" "$CC" >&6; }
3731else
3732  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733printf "%s\n" "no" >&6; }
3734fi
3735
3736
3737fi
3738if test -z "$ac_cv_prog_CC"; then
3739  ac_ct_CC=$CC
3740  # Extract the first word of "clang", so it can be a program name with args.
3741set dummy clang; ac_word=$2
3742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743printf %s "checking for $ac_word... " >&6; }
3744if test ${ac_cv_prog_ac_ct_CC+y}
3745then :
3746  printf %s "(cached) " >&6
3747else case e in #(
3748  e) if test -n "$ac_ct_CC"; then
3749  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3750else
3751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752for as_dir in $PATH
3753do
3754  IFS=$as_save_IFS
3755  case $as_dir in #(((
3756    '') as_dir=./ ;;
3757    */) ;;
3758    *) as_dir=$as_dir/ ;;
3759  esac
3760    for ac_exec_ext in '' $ac_executable_extensions; do
3761  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3762    ac_cv_prog_ac_ct_CC="clang"
3763    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3764    break 2
3765  fi
3766done
3767  done
3768IFS=$as_save_IFS
3769
3770fi ;;
3771esac
3772fi
3773ac_ct_CC=$ac_cv_prog_ac_ct_CC
3774if test -n "$ac_ct_CC"; then
3775  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3776printf "%s\n" "$ac_ct_CC" >&6; }
3777else
3778  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779printf "%s\n" "no" >&6; }
3780fi
3781
3782  if test "x$ac_ct_CC" = x; then
3783    CC=""
3784  else
3785    case $cross_compiling:$ac_tool_warned in
3786yes:)
3787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3788printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3789ac_tool_warned=yes ;;
3790esac
3791    CC=$ac_ct_CC
3792  fi
3793else
3794  CC="$ac_cv_prog_CC"
3795fi
3796
3797fi
3798
3799
3800test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3801printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3802as_fn_error $? "no acceptable C compiler found in \$PATH
3803See 'config.log' for more details" "$LINENO" 5; }
3804
3805# Provide some information about the compiler.
3806printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3807set X $ac_compile
3808ac_compiler=$2
3809for ac_option in --version -v -V -qversion -version; do
3810  { { ac_try="$ac_compiler $ac_option >&5"
3811case "(($ac_try" in
3812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813  *) ac_try_echo=$ac_try;;
3814esac
3815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816printf "%s\n" "$ac_try_echo"; } >&5
3817  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3818  ac_status=$?
3819  if test -s conftest.err; then
3820    sed '10a\
3821... rest of stderr output deleted ...
3822         10q' conftest.err >conftest.er1
3823    cat conftest.er1 >&5
3824  fi
3825  rm -f conftest.er1 conftest.err
3826  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827  test $ac_status = 0; }
3828done
3829
3830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831/* end confdefs.h.  */
3832
3833int
3834main (void)
3835{
3836
3837  ;
3838  return 0;
3839}
3840_ACEOF
3841ac_clean_files_save=$ac_clean_files
3842ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3843# Try to create an executable without -o first, disregard a.out.
3844# It will help us diagnose broken compilers, and finding out an intuition
3845# of exeext.
3846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3847printf %s "checking whether the C compiler works... " >&6; }
3848ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3849
3850# The possible output files:
3851ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3852
3853ac_rmfiles=
3854for ac_file in $ac_files
3855do
3856  case $ac_file in
3857    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3858    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3859  esac
3860done
3861rm -f $ac_rmfiles
3862
3863if { { ac_try="$ac_link_default"
3864case "(($ac_try" in
3865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866  *) ac_try_echo=$ac_try;;
3867esac
3868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869printf "%s\n" "$ac_try_echo"; } >&5
3870  (eval "$ac_link_default") 2>&5
3871  ac_status=$?
3872  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873  test $ac_status = 0; }
3874then :
3875  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3876# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3877# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3878# so that the user can short-circuit this test for compilers unknown to
3879# Autoconf.
3880for ac_file in $ac_files ''
3881do
3882  test -f "$ac_file" || continue
3883  case $ac_file in
3884    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3885	;;
3886    [ab].out )
3887	# We found the default executable, but exeext='' is most
3888	# certainly right.
3889	break;;
3890    *.* )
3891	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3892	then :; else
3893	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3894	fi
3895	# We set ac_cv_exeext here because the later test for it is not
3896	# safe: cross compilers may not add the suffix if given an '-o'
3897	# argument, so we may need to know it at that point already.
3898	# Even if this section looks crufty: it has the advantage of
3899	# actually working.
3900	break;;
3901    * )
3902	break;;
3903  esac
3904done
3905test "$ac_cv_exeext" = no && ac_cv_exeext=
3906
3907else case e in #(
3908  e) ac_file='' ;;
3909esac
3910fi
3911if test -z "$ac_file"
3912then :
3913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914printf "%s\n" "no" >&6; }
3915printf "%s\n" "$as_me: failed program was:" >&5
3916sed 's/^/| /' conftest.$ac_ext >&5
3917
3918{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3919printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3920as_fn_error 77 "C compiler cannot create executables
3921See 'config.log' for more details" "$LINENO" 5; }
3922else case e in #(
3923  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3924printf "%s\n" "yes" >&6; } ;;
3925esac
3926fi
3927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3928printf %s "checking for C compiler default output file name... " >&6; }
3929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3930printf "%s\n" "$ac_file" >&6; }
3931ac_exeext=$ac_cv_exeext
3932
3933rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3934ac_clean_files=$ac_clean_files_save
3935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3936printf %s "checking for suffix of executables... " >&6; }
3937if { { ac_try="$ac_link"
3938case "(($ac_try" in
3939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940  *) ac_try_echo=$ac_try;;
3941esac
3942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943printf "%s\n" "$ac_try_echo"; } >&5
3944  (eval "$ac_link") 2>&5
3945  ac_status=$?
3946  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947  test $ac_status = 0; }
3948then :
3949  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3950# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3951# work properly (i.e., refer to 'conftest.exe'), while it won't with
3952# 'rm'.
3953for ac_file in conftest.exe conftest conftest.*; do
3954  test -f "$ac_file" || continue
3955  case $ac_file in
3956    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3957    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3958	  break;;
3959    * ) break;;
3960  esac
3961done
3962else case e in #(
3963  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3964printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3965as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3966See 'config.log' for more details" "$LINENO" 5; } ;;
3967esac
3968fi
3969rm -f conftest conftest$ac_cv_exeext
3970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3971printf "%s\n" "$ac_cv_exeext" >&6; }
3972
3973rm -f conftest.$ac_ext
3974EXEEXT=$ac_cv_exeext
3975ac_exeext=$EXEEXT
3976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977/* end confdefs.h.  */
3978#include <stdio.h>
3979int
3980main (void)
3981{
3982FILE *f = fopen ("conftest.out", "w");
3983 if (!f)
3984  return 1;
3985 return ferror (f) || fclose (f) != 0;
3986
3987  ;
3988  return 0;
3989}
3990_ACEOF
3991ac_clean_files="$ac_clean_files conftest.out"
3992# Check that the compiler produces executables we can run.  If not, either
3993# the compiler is broken, or we cross compile.
3994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3995printf %s "checking whether we are cross compiling... " >&6; }
3996if test "$cross_compiling" != yes; then
3997  { { ac_try="$ac_link"
3998case "(($ac_try" in
3999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000  *) ac_try_echo=$ac_try;;
4001esac
4002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003printf "%s\n" "$ac_try_echo"; } >&5
4004  (eval "$ac_link") 2>&5
4005  ac_status=$?
4006  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007  test $ac_status = 0; }
4008  if { ac_try='./conftest$ac_cv_exeext'
4009  { { case "(($ac_try" in
4010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011  *) ac_try_echo=$ac_try;;
4012esac
4013eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014printf "%s\n" "$ac_try_echo"; } >&5
4015  (eval "$ac_try") 2>&5
4016  ac_status=$?
4017  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018  test $ac_status = 0; }; }; then
4019    cross_compiling=no
4020  else
4021    if test "$cross_compiling" = maybe; then
4022	cross_compiling=yes
4023    else
4024	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4025printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4026as_fn_error 77 "cannot run C compiled programs.
4027If you meant to cross compile, use '--host'.
4028See 'config.log' for more details" "$LINENO" 5; }
4029    fi
4030  fi
4031fi
4032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4033printf "%s\n" "$cross_compiling" >&6; }
4034
4035rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4036  conftest.o conftest.obj conftest.out
4037ac_clean_files=$ac_clean_files_save
4038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4039printf %s "checking for suffix of object files... " >&6; }
4040if test ${ac_cv_objext+y}
4041then :
4042  printf %s "(cached) " >&6
4043else case e in #(
4044  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045/* end confdefs.h.  */
4046
4047int
4048main (void)
4049{
4050
4051  ;
4052  return 0;
4053}
4054_ACEOF
4055rm -f conftest.o conftest.obj
4056if { { ac_try="$ac_compile"
4057case "(($ac_try" in
4058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059  *) ac_try_echo=$ac_try;;
4060esac
4061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062printf "%s\n" "$ac_try_echo"; } >&5
4063  (eval "$ac_compile") 2>&5
4064  ac_status=$?
4065  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066  test $ac_status = 0; }
4067then :
4068  for ac_file in conftest.o conftest.obj conftest.*; do
4069  test -f "$ac_file" || continue;
4070  case $ac_file in
4071    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4072    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4073       break;;
4074  esac
4075done
4076else case e in #(
4077  e) printf "%s\n" "$as_me: failed program was:" >&5
4078sed 's/^/| /' conftest.$ac_ext >&5
4079
4080{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4081printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4082as_fn_error $? "cannot compute suffix of object files: cannot compile
4083See 'config.log' for more details" "$LINENO" 5; } ;;
4084esac
4085fi
4086rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4087esac
4088fi
4089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4090printf "%s\n" "$ac_cv_objext" >&6; }
4091OBJEXT=$ac_cv_objext
4092ac_objext=$OBJEXT
4093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4094printf %s "checking whether the compiler supports GNU C... " >&6; }
4095if test ${ac_cv_c_compiler_gnu+y}
4096then :
4097  printf %s "(cached) " >&6
4098else case e in #(
4099  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100/* end confdefs.h.  */
4101
4102int
4103main (void)
4104{
4105#ifndef __GNUC__
4106       choke me
4107#endif
4108
4109  ;
4110  return 0;
4111}
4112_ACEOF
4113if ac_fn_c_try_compile "$LINENO"
4114then :
4115  ac_compiler_gnu=yes
4116else case e in #(
4117  e) ac_compiler_gnu=no ;;
4118esac
4119fi
4120rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4121ac_cv_c_compiler_gnu=$ac_compiler_gnu
4122 ;;
4123esac
4124fi
4125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4126printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4127ac_compiler_gnu=$ac_cv_c_compiler_gnu
4128
4129if test $ac_compiler_gnu = yes; then
4130  GCC=yes
4131else
4132  GCC=
4133fi
4134ac_test_CFLAGS=${CFLAGS+y}
4135ac_save_CFLAGS=$CFLAGS
4136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4137printf %s "checking whether $CC accepts -g... " >&6; }
4138if test ${ac_cv_prog_cc_g+y}
4139then :
4140  printf %s "(cached) " >&6
4141else case e in #(
4142  e) ac_save_c_werror_flag=$ac_c_werror_flag
4143   ac_c_werror_flag=yes
4144   ac_cv_prog_cc_g=no
4145   CFLAGS="-g"
4146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147/* end confdefs.h.  */
4148
4149int
4150main (void)
4151{
4152
4153  ;
4154  return 0;
4155}
4156_ACEOF
4157if ac_fn_c_try_compile "$LINENO"
4158then :
4159  ac_cv_prog_cc_g=yes
4160else case e in #(
4161  e) CFLAGS=""
4162      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163/* end confdefs.h.  */
4164
4165int
4166main (void)
4167{
4168
4169  ;
4170  return 0;
4171}
4172_ACEOF
4173if ac_fn_c_try_compile "$LINENO"
4174then :
4175
4176else case e in #(
4177  e) ac_c_werror_flag=$ac_save_c_werror_flag
4178	 CFLAGS="-g"
4179	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180/* end confdefs.h.  */
4181
4182int
4183main (void)
4184{
4185
4186  ;
4187  return 0;
4188}
4189_ACEOF
4190if ac_fn_c_try_compile "$LINENO"
4191then :
4192  ac_cv_prog_cc_g=yes
4193fi
4194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4195esac
4196fi
4197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4198esac
4199fi
4200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4201   ac_c_werror_flag=$ac_save_c_werror_flag ;;
4202esac
4203fi
4204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4205printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4206if test $ac_test_CFLAGS; then
4207  CFLAGS=$ac_save_CFLAGS
4208elif test $ac_cv_prog_cc_g = yes; then
4209  if test "$GCC" = yes; then
4210    CFLAGS="-g -O2"
4211  else
4212    CFLAGS="-g"
4213  fi
4214else
4215  if test "$GCC" = yes; then
4216    CFLAGS="-O2"
4217  else
4218    CFLAGS=
4219  fi
4220fi
4221ac_prog_cc_stdc=no
4222if test x$ac_prog_cc_stdc = xno
4223then :
4224  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4225printf %s "checking for $CC option to enable C11 features... " >&6; }
4226if test ${ac_cv_prog_cc_c11+y}
4227then :
4228  printf %s "(cached) " >&6
4229else case e in #(
4230  e) ac_cv_prog_cc_c11=no
4231ac_save_CC=$CC
4232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233/* end confdefs.h.  */
4234$ac_c_conftest_c11_program
4235_ACEOF
4236for ac_arg in '' -std=gnu11
4237do
4238  CC="$ac_save_CC $ac_arg"
4239  if ac_fn_c_try_compile "$LINENO"
4240then :
4241  ac_cv_prog_cc_c11=$ac_arg
4242fi
4243rm -f core conftest.err conftest.$ac_objext conftest.beam
4244  test "x$ac_cv_prog_cc_c11" != "xno" && break
4245done
4246rm -f conftest.$ac_ext
4247CC=$ac_save_CC ;;
4248esac
4249fi
4250
4251if test "x$ac_cv_prog_cc_c11" = xno
4252then :
4253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4254printf "%s\n" "unsupported" >&6; }
4255else case e in #(
4256  e) if test "x$ac_cv_prog_cc_c11" = x
4257then :
4258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4259printf "%s\n" "none needed" >&6; }
4260else case e in #(
4261  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4262printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4263     CC="$CC $ac_cv_prog_cc_c11" ;;
4264esac
4265fi
4266  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4267  ac_prog_cc_stdc=c11 ;;
4268esac
4269fi
4270fi
4271if test x$ac_prog_cc_stdc = xno
4272then :
4273  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4274printf %s "checking for $CC option to enable C99 features... " >&6; }
4275if test ${ac_cv_prog_cc_c99+y}
4276then :
4277  printf %s "(cached) " >&6
4278else case e in #(
4279  e) ac_cv_prog_cc_c99=no
4280ac_save_CC=$CC
4281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282/* end confdefs.h.  */
4283$ac_c_conftest_c99_program
4284_ACEOF
4285for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4286do
4287  CC="$ac_save_CC $ac_arg"
4288  if ac_fn_c_try_compile "$LINENO"
4289then :
4290  ac_cv_prog_cc_c99=$ac_arg
4291fi
4292rm -f core conftest.err conftest.$ac_objext conftest.beam
4293  test "x$ac_cv_prog_cc_c99" != "xno" && break
4294done
4295rm -f conftest.$ac_ext
4296CC=$ac_save_CC ;;
4297esac
4298fi
4299
4300if test "x$ac_cv_prog_cc_c99" = xno
4301then :
4302  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4303printf "%s\n" "unsupported" >&6; }
4304else case e in #(
4305  e) if test "x$ac_cv_prog_cc_c99" = x
4306then :
4307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4308printf "%s\n" "none needed" >&6; }
4309else case e in #(
4310  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4311printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4312     CC="$CC $ac_cv_prog_cc_c99" ;;
4313esac
4314fi
4315  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4316  ac_prog_cc_stdc=c99 ;;
4317esac
4318fi
4319fi
4320if test x$ac_prog_cc_stdc = xno
4321then :
4322  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4323printf %s "checking for $CC option to enable C89 features... " >&6; }
4324if test ${ac_cv_prog_cc_c89+y}
4325then :
4326  printf %s "(cached) " >&6
4327else case e in #(
4328  e) ac_cv_prog_cc_c89=no
4329ac_save_CC=$CC
4330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331/* end confdefs.h.  */
4332$ac_c_conftest_c89_program
4333_ACEOF
4334for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4335do
4336  CC="$ac_save_CC $ac_arg"
4337  if ac_fn_c_try_compile "$LINENO"
4338then :
4339  ac_cv_prog_cc_c89=$ac_arg
4340fi
4341rm -f core conftest.err conftest.$ac_objext conftest.beam
4342  test "x$ac_cv_prog_cc_c89" != "xno" && break
4343done
4344rm -f conftest.$ac_ext
4345CC=$ac_save_CC ;;
4346esac
4347fi
4348
4349if test "x$ac_cv_prog_cc_c89" = xno
4350then :
4351  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4352printf "%s\n" "unsupported" >&6; }
4353else case e in #(
4354  e) if test "x$ac_cv_prog_cc_c89" = x
4355then :
4356  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4357printf "%s\n" "none needed" >&6; }
4358else case e in #(
4359  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4360printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4361     CC="$CC $ac_cv_prog_cc_c89" ;;
4362esac
4363fi
4364  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4365  ac_prog_cc_stdc=c89 ;;
4366esac
4367fi
4368fi
4369
4370ac_ext=c
4371ac_cpp='$CPP $CPPFLAGS'
4372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4374ac_compiler_gnu=$ac_cv_c_compiler_gnu
4375
4376
4377  ac_ext=c
4378ac_cpp='$CPP $CPPFLAGS'
4379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381ac_compiler_gnu=$ac_cv_c_compiler_gnu
4382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4383printf %s "checking whether $CC understands -c and -o together... " >&6; }
4384if test ${am_cv_prog_cc_c_o+y}
4385then :
4386  printf %s "(cached) " >&6
4387else case e in #(
4388  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389/* end confdefs.h.  */
4390
4391int
4392main (void)
4393{
4394
4395  ;
4396  return 0;
4397}
4398_ACEOF
4399  # Make sure it works both with $CC and with simple cc.
4400  # Following AC_PROG_CC_C_O, we do the test twice because some
4401  # compilers refuse to overwrite an existing .o file with -o,
4402  # though they will create one.
4403  am_cv_prog_cc_c_o=yes
4404  for am_i in 1 2; do
4405    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4406   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4407   ac_status=$?
4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409   (exit $ac_status); } \
4410         && test -f conftest2.$ac_objext; then
4411      : OK
4412    else
4413      am_cv_prog_cc_c_o=no
4414      break
4415    fi
4416  done
4417  rm -f core conftest*
4418  unset am_i ;;
4419esac
4420fi
4421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4422printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4423if test "$am_cv_prog_cc_c_o" != yes; then
4424   # Losing compiler, so override with the script.
4425   # FIXME: It is wrong to rewrite CC.
4426   # But if we don't then we get into trouble of one sort or another.
4427   # A longer-term fix would be to have automake use am__CC in this case,
4428   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4429   CC="$am_aux_dir/compile $CC"
4430fi
4431ac_ext=c
4432ac_cpp='$CPP $CPPFLAGS'
4433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4435ac_compiler_gnu=$ac_cv_c_compiler_gnu
4436
4437
4438depcc="$CC"   am_compiler_list=
4439
4440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4441printf %s "checking dependency style of $depcc... " >&6; }
4442if test ${am_cv_CC_dependencies_compiler_type+y}
4443then :
4444  printf %s "(cached) " >&6
4445else case e in #(
4446  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4447  # We make a subdir and do the tests there.  Otherwise we can end up
4448  # making bogus files that we don't know about and never remove.  For
4449  # instance it was reported that on HP-UX the gcc test will end up
4450  # making a dummy file named 'D' -- because '-MD' means "put the output
4451  # in D".
4452  rm -rf conftest.dir
4453  mkdir conftest.dir
4454  # Copy depcomp to subdir because otherwise we won't find it if we're
4455  # using a relative directory.
4456  cp "$am_depcomp" conftest.dir
4457  cd conftest.dir
4458  # We will build objects and dependencies in a subdirectory because
4459  # it helps to detect inapplicable dependency modes.  For instance
4460  # both Tru64's cc and ICC support -MD to output dependencies as a
4461  # side effect of compilation, but ICC will put the dependencies in
4462  # the current directory while Tru64 will put them in the object
4463  # directory.
4464  mkdir sub
4465
4466  am_cv_CC_dependencies_compiler_type=none
4467  if test "$am_compiler_list" = ""; then
4468     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4469  fi
4470  am__universal=false
4471  case " $depcc " in #(
4472     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4473     esac
4474
4475  for depmode in $am_compiler_list; do
4476    # Setup a source with many dependencies, because some compilers
4477    # like to wrap large dependency lists on column 80 (with \), and
4478    # we should not choose a depcomp mode which is confused by this.
4479    #
4480    # We need to recreate these files for each test, as the compiler may
4481    # overwrite some of them when testing with obscure command lines.
4482    # This happens at least with the AIX C compiler.
4483    : > sub/conftest.c
4484    for i in 1 2 3 4 5 6; do
4485      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4486      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4487      # Solaris 10 /bin/sh.
4488      echo '/* dummy */' > sub/conftst$i.h
4489    done
4490    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4491
4492    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4493    # mode.  It turns out that the SunPro C++ compiler does not properly
4494    # handle '-M -o', and we need to detect this.  Also, some Intel
4495    # versions had trouble with output in subdirs.
4496    am__obj=sub/conftest.${OBJEXT-o}
4497    am__minus_obj="-o $am__obj"
4498    case $depmode in
4499    gcc)
4500      # This depmode causes a compiler race in universal mode.
4501      test "$am__universal" = false || continue
4502      ;;
4503    nosideeffect)
4504      # After this tag, mechanisms are not by side-effect, so they'll
4505      # only be used when explicitly requested.
4506      if test "x$enable_dependency_tracking" = xyes; then
4507	continue
4508      else
4509	break
4510      fi
4511      ;;
4512    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4513      # This compiler won't grok '-c -o', but also, the minuso test has
4514      # not run yet.  These depmodes are late enough in the game, and
4515      # so weak that their functioning should not be impacted.
4516      am__obj=conftest.${OBJEXT-o}
4517      am__minus_obj=
4518      ;;
4519    none) break ;;
4520    esac
4521    if depmode=$depmode \
4522       source=sub/conftest.c object=$am__obj \
4523       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4524       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4525         >/dev/null 2>conftest.err &&
4526       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4527       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4528       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4529       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4530      # icc doesn't choke on unknown options, it will just issue warnings
4531      # or remarks (even with -Werror).  So we grep stderr for any message
4532      # that says an option was ignored or not supported.
4533      # When given -MP, icc 7.0 and 7.1 complain thus:
4534      #   icc: Command line warning: ignoring option '-M'; no argument required
4535      # The diagnosis changed in icc 8.0:
4536      #   icc: Command line remark: option '-MP' not supported
4537      if (grep 'ignoring option' conftest.err ||
4538          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4539        am_cv_CC_dependencies_compiler_type=$depmode
4540        break
4541      fi
4542    fi
4543  done
4544
4545  cd ..
4546  rm -rf conftest.dir
4547else
4548  am_cv_CC_dependencies_compiler_type=none
4549fi
4550 ;;
4551esac
4552fi
4553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4554printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4555CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4556
4557 if
4558  test "x$enable_dependency_tracking" != xno \
4559  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4560  am__fastdepCC_TRUE=
4561  am__fastdepCC_FALSE='#'
4562else
4563  am__fastdepCC_TRUE='#'
4564  am__fastdepCC_FALSE=
4565fi
4566
4567
4568
4569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4570printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4571if test ${ac_cv_c_undeclared_builtin_options+y}
4572then :
4573  printf %s "(cached) " >&6
4574else case e in #(
4575  e) ac_save_CFLAGS=$CFLAGS
4576   ac_cv_c_undeclared_builtin_options='cannot detect'
4577   for ac_arg in '' -fno-builtin; do
4578     CFLAGS="$ac_save_CFLAGS $ac_arg"
4579     # This test program should *not* compile successfully.
4580     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581/* end confdefs.h.  */
4582
4583int
4584main (void)
4585{
4586(void) strchr;
4587  ;
4588  return 0;
4589}
4590_ACEOF
4591if ac_fn_c_try_compile "$LINENO"
4592then :
4593
4594else case e in #(
4595  e) # This test program should compile successfully.
4596        # No library function is consistently available on
4597        # freestanding implementations, so test against a dummy
4598        # declaration.  Include always-available headers on the
4599        # off chance that they somehow elicit warnings.
4600        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601/* end confdefs.h.  */
4602#include <float.h>
4603#include <limits.h>
4604#include <stdarg.h>
4605#include <stddef.h>
4606extern void ac_decl (int, char *);
4607
4608int
4609main (void)
4610{
4611(void) ac_decl (0, (char *) 0);
4612  (void) ac_decl;
4613
4614  ;
4615  return 0;
4616}
4617_ACEOF
4618if ac_fn_c_try_compile "$LINENO"
4619then :
4620  if test x"$ac_arg" = x
4621then :
4622  ac_cv_c_undeclared_builtin_options='none needed'
4623else case e in #(
4624  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4625esac
4626fi
4627          break
4628fi
4629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4630esac
4631fi
4632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4633    done
4634    CFLAGS=$ac_save_CFLAGS
4635   ;;
4636esac
4637fi
4638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4639printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4640  case $ac_cv_c_undeclared_builtin_options in #(
4641  'cannot detect') :
4642    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4643printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4644as_fn_error $? "cannot make $CC report undeclared builtins
4645See 'config.log' for more details" "$LINENO" 5; } ;; #(
4646  'none needed') :
4647    ac_c_undeclared_builtin_options='' ;; #(
4648  *) :
4649    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4650esac
4651
4652ac_header= ac_cache=
4653for ac_item in $ac_header_c_list
4654do
4655  if test $ac_cache; then
4656    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4657    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4658      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4659    fi
4660    ac_header= ac_cache=
4661  elif test $ac_header; then
4662    ac_cache=$ac_item
4663  else
4664    ac_header=$ac_item
4665  fi
4666done
4667
4668
4669
4670
4671
4672
4673
4674
4675if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4676then :
4677
4678printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4679
4680fi
4681
4682
4683
4684
4685ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4686if test "x$ac_cv_have_decl___clang__" = xyes
4687then :
4688  CLANGCC="yes"
4689else case e in #(
4690  e) CLANGCC="no" ;;
4691esac
4692fi
4693ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4694if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4695then :
4696  INTELCC="yes"
4697else case e in #(
4698  e) INTELCC="no" ;;
4699esac
4700fi
4701ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4702if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4703then :
4704  SUNCC="yes"
4705else case e in #(
4706  e) SUNCC="no" ;;
4707esac
4708fi
4709
4710
4711
4712
4713
4714
4715
4716
4717if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4718	if test -n "$ac_tool_prefix"; then
4719  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4720set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722printf %s "checking for $ac_word... " >&6; }
4723if test ${ac_cv_path_PKG_CONFIG+y}
4724then :
4725  printf %s "(cached) " >&6
4726else case e in #(
4727  e) case $PKG_CONFIG in
4728  [\\/]* | ?:[\\/]*)
4729  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4730  ;;
4731  *)
4732  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733for as_dir in $PATH
4734do
4735  IFS=$as_save_IFS
4736  case $as_dir in #(((
4737    '') as_dir=./ ;;
4738    */) ;;
4739    *) as_dir=$as_dir/ ;;
4740  esac
4741    for ac_exec_ext in '' $ac_executable_extensions; do
4742  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4743    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4744    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4745    break 2
4746  fi
4747done
4748  done
4749IFS=$as_save_IFS
4750
4751  ;;
4752esac ;;
4753esac
4754fi
4755PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4756if test -n "$PKG_CONFIG"; then
4757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4758printf "%s\n" "$PKG_CONFIG" >&6; }
4759else
4760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761printf "%s\n" "no" >&6; }
4762fi
4763
4764
4765fi
4766if test -z "$ac_cv_path_PKG_CONFIG"; then
4767  ac_pt_PKG_CONFIG=$PKG_CONFIG
4768  # Extract the first word of "pkg-config", so it can be a program name with args.
4769set dummy pkg-config; ac_word=$2
4770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771printf %s "checking for $ac_word... " >&6; }
4772if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4773then :
4774  printf %s "(cached) " >&6
4775else case e in #(
4776  e) case $ac_pt_PKG_CONFIG in
4777  [\\/]* | ?:[\\/]*)
4778  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4779  ;;
4780  *)
4781  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782for as_dir in $PATH
4783do
4784  IFS=$as_save_IFS
4785  case $as_dir in #(((
4786    '') as_dir=./ ;;
4787    */) ;;
4788    *) as_dir=$as_dir/ ;;
4789  esac
4790    for ac_exec_ext in '' $ac_executable_extensions; do
4791  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4792    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4793    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4794    break 2
4795  fi
4796done
4797  done
4798IFS=$as_save_IFS
4799
4800  ;;
4801esac ;;
4802esac
4803fi
4804ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4805if test -n "$ac_pt_PKG_CONFIG"; then
4806  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4807printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4808else
4809  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810printf "%s\n" "no" >&6; }
4811fi
4812
4813  if test "x$ac_pt_PKG_CONFIG" = x; then
4814    PKG_CONFIG=""
4815  else
4816    case $cross_compiling:$ac_tool_warned in
4817yes:)
4818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4819printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4820ac_tool_warned=yes ;;
4821esac
4822    PKG_CONFIG=$ac_pt_PKG_CONFIG
4823  fi
4824else
4825  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4826fi
4827
4828fi
4829if test -n "$PKG_CONFIG"; then
4830	_pkg_min_version=0.9.0
4831	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4832printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4833	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4834		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4835printf "%s\n" "yes" >&6; }
4836	else
4837		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838printf "%s\n" "no" >&6; }
4839		PKG_CONFIG=""
4840	fi
4841fi
4842
4843
4844  # Make sure we can run config.sub.
4845$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4846  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4847
4848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4849printf %s "checking build system type... " >&6; }
4850if test ${ac_cv_build+y}
4851then :
4852  printf %s "(cached) " >&6
4853else case e in #(
4854  e) ac_build_alias=$build_alias
4855test "x$ac_build_alias" = x &&
4856  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4857test "x$ac_build_alias" = x &&
4858  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4859ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4860  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4861 ;;
4862esac
4863fi
4864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4865printf "%s\n" "$ac_cv_build" >&6; }
4866case $ac_cv_build in
4867*-*-*) ;;
4868*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4869esac
4870build=$ac_cv_build
4871ac_save_IFS=$IFS; IFS='-'
4872set x $ac_cv_build
4873shift
4874build_cpu=$1
4875build_vendor=$2
4876shift; shift
4877# Remember, the first character of IFS is used to create $*,
4878# except with old shells:
4879build_os=$*
4880IFS=$ac_save_IFS
4881case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4882
4883
4884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4885printf %s "checking host system type... " >&6; }
4886if test ${ac_cv_host+y}
4887then :
4888  printf %s "(cached) " >&6
4889else case e in #(
4890  e) if test "x$host_alias" = x; then
4891  ac_cv_host=$ac_cv_build
4892else
4893  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4894    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4895fi
4896 ;;
4897esac
4898fi
4899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4900printf "%s\n" "$ac_cv_host" >&6; }
4901case $ac_cv_host in
4902*-*-*) ;;
4903*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4904esac
4905host=$ac_cv_host
4906ac_save_IFS=$IFS; IFS='-'
4907set x $ac_cv_host
4908shift
4909host_cpu=$1
4910host_vendor=$2
4911shift; shift
4912# Remember, the first character of IFS is used to create $*,
4913# except with old shells:
4914host_os=$*
4915IFS=$ac_save_IFS
4916case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4917
4918
4919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4920printf %s "checking for a sed that does not truncate output... " >&6; }
4921if test ${ac_cv_path_SED+y}
4922then :
4923  printf %s "(cached) " >&6
4924else case e in #(
4925  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4926     for ac_i in 1 2 3 4 5 6 7; do
4927       ac_script="$ac_script$as_nl$ac_script"
4928     done
4929     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4930     { ac_script=; unset ac_script;}
4931     if test -z "$SED"; then
4932  ac_path_SED_found=false
4933  # Loop through the user's path and test for each of PROGNAME-LIST
4934  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935for as_dir in $PATH
4936do
4937  IFS=$as_save_IFS
4938  case $as_dir in #(((
4939    '') as_dir=./ ;;
4940    */) ;;
4941    *) as_dir=$as_dir/ ;;
4942  esac
4943    for ac_prog in sed gsed
4944   do
4945    for ac_exec_ext in '' $ac_executable_extensions; do
4946      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4947      as_fn_executable_p "$ac_path_SED" || continue
4948# Check for GNU ac_path_SED and select it if it is found.
4949  # Check for GNU $ac_path_SED
4950case `"$ac_path_SED" --version 2>&1` in #(
4951*GNU*)
4952  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4953#(
4954*)
4955  ac_count=0
4956  printf %s 0123456789 >"conftest.in"
4957  while :
4958  do
4959    cat "conftest.in" "conftest.in" >"conftest.tmp"
4960    mv "conftest.tmp" "conftest.in"
4961    cp "conftest.in" "conftest.nl"
4962    printf "%s\n" '' >> "conftest.nl"
4963    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4964    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4965    as_fn_arith $ac_count + 1 && ac_count=$as_val
4966    if test $ac_count -gt ${ac_path_SED_max-0}; then
4967      # Best one so far, save it but keep looking for a better one
4968      ac_cv_path_SED="$ac_path_SED"
4969      ac_path_SED_max=$ac_count
4970    fi
4971    # 10*(2^10) chars as input seems more than enough
4972    test $ac_count -gt 10 && break
4973  done
4974  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4975esac
4976
4977      $ac_path_SED_found && break 3
4978    done
4979  done
4980  done
4981IFS=$as_save_IFS
4982  if test -z "$ac_cv_path_SED"; then
4983    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4984  fi
4985else
4986  ac_cv_path_SED=$SED
4987fi
4988 ;;
4989esac
4990fi
4991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4992printf "%s\n" "$ac_cv_path_SED" >&6; }
4993 SED="$ac_cv_path_SED"
4994  rm -f conftest.sed
4995
4996
4997
4998
4999
5000
5001# Check whether --enable-selective-werror was given.
5002if test ${enable_selective_werror+y}
5003then :
5004  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5005else case e in #(
5006  e) SELECTIVE_WERROR=yes ;;
5007esac
5008fi
5009
5010
5011
5012
5013
5014# -v is too short to test reliably with XORG_TESTSET_CFLAG
5015if test "x$SUNCC" = "xyes"; then
5016    BASE_CFLAGS="-v"
5017else
5018    BASE_CFLAGS=""
5019fi
5020
5021# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035xorg_testset_save_CFLAGS="$CFLAGS"
5036
5037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5038	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5039	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5040printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5041if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5042then :
5043  printf %s "(cached) " >&6
5044else case e in #(
5045  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046/* end confdefs.h.  */
5047int i;
5048_ACEOF
5049if ac_fn_c_try_compile "$LINENO"
5050then :
5051  xorg_cv_cc_flag_unknown_warning_option=yes
5052else case e in #(
5053  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5054esac
5055fi
5056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5057esac
5058fi
5059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5060printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5061	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5062	CFLAGS="$xorg_testset_save_CFLAGS"
5063fi
5064
5065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5066	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5067		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5068	fi
5069	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5070	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5071printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5072if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5073then :
5074  printf %s "(cached) " >&6
5075else case e in #(
5076  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077/* end confdefs.h.  */
5078int i;
5079_ACEOF
5080if ac_fn_c_try_compile "$LINENO"
5081then :
5082  xorg_cv_cc_flag_unused_command_line_argument=yes
5083else case e in #(
5084  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5085esac
5086fi
5087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5088esac
5089fi
5090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5091printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5092	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5093	CFLAGS="$xorg_testset_save_CFLAGS"
5094fi
5095
5096found="no"
5097
5098	if test $found = "no" ; then
5099		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5100			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5101		fi
5102
5103		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5104			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5105		fi
5106
5107		CFLAGS="$CFLAGS -Wall"
5108
5109		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5110printf %s "checking if $CC supports -Wall... " >&6; }
5111		cacheid=xorg_cv_cc_flag__Wall
5112		if eval test \${$cacheid+y}
5113then :
5114  printf %s "(cached) " >&6
5115else case e in #(
5116  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117/* end confdefs.h.  */
5118int i;
5119int
5120main (void)
5121{
5122
5123  ;
5124  return 0;
5125}
5126_ACEOF
5127if ac_fn_c_try_link "$LINENO"
5128then :
5129  eval $cacheid=yes
5130else case e in #(
5131  e) eval $cacheid=no ;;
5132esac
5133fi
5134rm -f core conftest.err conftest.$ac_objext conftest.beam \
5135    conftest$ac_exeext conftest.$ac_ext ;;
5136esac
5137fi
5138
5139
5140		CFLAGS="$xorg_testset_save_CFLAGS"
5141
5142		eval supported=\$$cacheid
5143		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5144printf "%s\n" "$supported" >&6; }
5145		if test "$supported" = "yes" ; then
5146			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5147			found="yes"
5148		fi
5149	fi
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165xorg_testset_save_CFLAGS="$CFLAGS"
5166
5167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5168	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5169	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5170printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5171if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5172then :
5173  printf %s "(cached) " >&6
5174else case e in #(
5175  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176/* end confdefs.h.  */
5177int i;
5178_ACEOF
5179if ac_fn_c_try_compile "$LINENO"
5180then :
5181  xorg_cv_cc_flag_unknown_warning_option=yes
5182else case e in #(
5183  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5184esac
5185fi
5186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5187esac
5188fi
5189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5190printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5191	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5192	CFLAGS="$xorg_testset_save_CFLAGS"
5193fi
5194
5195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5196	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5197		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5198	fi
5199	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5200	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5201printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5202if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5203then :
5204  printf %s "(cached) " >&6
5205else case e in #(
5206  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207/* end confdefs.h.  */
5208int i;
5209_ACEOF
5210if ac_fn_c_try_compile "$LINENO"
5211then :
5212  xorg_cv_cc_flag_unused_command_line_argument=yes
5213else case e in #(
5214  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5215esac
5216fi
5217rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5218esac
5219fi
5220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5221printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5222	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5223	CFLAGS="$xorg_testset_save_CFLAGS"
5224fi
5225
5226found="no"
5227
5228	if test $found = "no" ; then
5229		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5230			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5231		fi
5232
5233		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5234			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5235		fi
5236
5237		CFLAGS="$CFLAGS -Wpointer-arith"
5238
5239		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5240printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5241		cacheid=xorg_cv_cc_flag__Wpointer_arith
5242		if eval test \${$cacheid+y}
5243then :
5244  printf %s "(cached) " >&6
5245else case e in #(
5246  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247/* end confdefs.h.  */
5248int i;
5249int
5250main (void)
5251{
5252
5253  ;
5254  return 0;
5255}
5256_ACEOF
5257if ac_fn_c_try_link "$LINENO"
5258then :
5259  eval $cacheid=yes
5260else case e in #(
5261  e) eval $cacheid=no ;;
5262esac
5263fi
5264rm -f core conftest.err conftest.$ac_objext conftest.beam \
5265    conftest$ac_exeext conftest.$ac_ext ;;
5266esac
5267fi
5268
5269
5270		CFLAGS="$xorg_testset_save_CFLAGS"
5271
5272		eval supported=\$$cacheid
5273		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5274printf "%s\n" "$supported" >&6; }
5275		if test "$supported" = "yes" ; then
5276			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5277			found="yes"
5278		fi
5279	fi
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295xorg_testset_save_CFLAGS="$CFLAGS"
5296
5297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5298	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5299	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5300printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5301if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5302then :
5303  printf %s "(cached) " >&6
5304else case e in #(
5305  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306/* end confdefs.h.  */
5307int i;
5308_ACEOF
5309if ac_fn_c_try_compile "$LINENO"
5310then :
5311  xorg_cv_cc_flag_unknown_warning_option=yes
5312else case e in #(
5313  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5314esac
5315fi
5316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5317esac
5318fi
5319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5320printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5321	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5322	CFLAGS="$xorg_testset_save_CFLAGS"
5323fi
5324
5325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5326	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5327		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5328	fi
5329	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5330	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5331printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5332if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5333then :
5334  printf %s "(cached) " >&6
5335else case e in #(
5336  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337/* end confdefs.h.  */
5338int i;
5339_ACEOF
5340if ac_fn_c_try_compile "$LINENO"
5341then :
5342  xorg_cv_cc_flag_unused_command_line_argument=yes
5343else case e in #(
5344  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5345esac
5346fi
5347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5348esac
5349fi
5350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5351printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5352	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5353	CFLAGS="$xorg_testset_save_CFLAGS"
5354fi
5355
5356found="no"
5357
5358	if test $found = "no" ; then
5359		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5360			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5361		fi
5362
5363		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5364			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5365		fi
5366
5367		CFLAGS="$CFLAGS -Wmissing-declarations"
5368
5369		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5370printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5371		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5372		if eval test \${$cacheid+y}
5373then :
5374  printf %s "(cached) " >&6
5375else case e in #(
5376  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377/* end confdefs.h.  */
5378int i;
5379int
5380main (void)
5381{
5382
5383  ;
5384  return 0;
5385}
5386_ACEOF
5387if ac_fn_c_try_link "$LINENO"
5388then :
5389  eval $cacheid=yes
5390else case e in #(
5391  e) eval $cacheid=no ;;
5392esac
5393fi
5394rm -f core conftest.err conftest.$ac_objext conftest.beam \
5395    conftest$ac_exeext conftest.$ac_ext ;;
5396esac
5397fi
5398
5399
5400		CFLAGS="$xorg_testset_save_CFLAGS"
5401
5402		eval supported=\$$cacheid
5403		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5404printf "%s\n" "$supported" >&6; }
5405		if test "$supported" = "yes" ; then
5406			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5407			found="yes"
5408		fi
5409	fi
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425xorg_testset_save_CFLAGS="$CFLAGS"
5426
5427if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5428	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5429	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5430printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5431if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5432then :
5433  printf %s "(cached) " >&6
5434else case e in #(
5435  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436/* end confdefs.h.  */
5437int i;
5438_ACEOF
5439if ac_fn_c_try_compile "$LINENO"
5440then :
5441  xorg_cv_cc_flag_unknown_warning_option=yes
5442else case e in #(
5443  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5444esac
5445fi
5446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5447esac
5448fi
5449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5450printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5451	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5452	CFLAGS="$xorg_testset_save_CFLAGS"
5453fi
5454
5455if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5456	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5457		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5458	fi
5459	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5460	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5461printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5462if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5463then :
5464  printf %s "(cached) " >&6
5465else case e in #(
5466  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467/* end confdefs.h.  */
5468int i;
5469_ACEOF
5470if ac_fn_c_try_compile "$LINENO"
5471then :
5472  xorg_cv_cc_flag_unused_command_line_argument=yes
5473else case e in #(
5474  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5475esac
5476fi
5477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5478esac
5479fi
5480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5481printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5482	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5483	CFLAGS="$xorg_testset_save_CFLAGS"
5484fi
5485
5486found="no"
5487
5488	if test $found = "no" ; then
5489		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5490			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5491		fi
5492
5493		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5494			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5495		fi
5496
5497		CFLAGS="$CFLAGS -Wformat=2"
5498
5499		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5500printf %s "checking if $CC supports -Wformat=2... " >&6; }
5501		cacheid=xorg_cv_cc_flag__Wformat_2
5502		if eval test \${$cacheid+y}
5503then :
5504  printf %s "(cached) " >&6
5505else case e in #(
5506  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507/* end confdefs.h.  */
5508int i;
5509int
5510main (void)
5511{
5512
5513  ;
5514  return 0;
5515}
5516_ACEOF
5517if ac_fn_c_try_link "$LINENO"
5518then :
5519  eval $cacheid=yes
5520else case e in #(
5521  e) eval $cacheid=no ;;
5522esac
5523fi
5524rm -f core conftest.err conftest.$ac_objext conftest.beam \
5525    conftest$ac_exeext conftest.$ac_ext ;;
5526esac
5527fi
5528
5529
5530		CFLAGS="$xorg_testset_save_CFLAGS"
5531
5532		eval supported=\$$cacheid
5533		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5534printf "%s\n" "$supported" >&6; }
5535		if test "$supported" = "yes" ; then
5536			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5537			found="yes"
5538		fi
5539	fi
5540
5541	if test $found = "no" ; then
5542		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5543			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5544		fi
5545
5546		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5547			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5548		fi
5549
5550		CFLAGS="$CFLAGS -Wformat"
5551
5552		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5553printf %s "checking if $CC supports -Wformat... " >&6; }
5554		cacheid=xorg_cv_cc_flag__Wformat
5555		if eval test \${$cacheid+y}
5556then :
5557  printf %s "(cached) " >&6
5558else case e in #(
5559  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560/* end confdefs.h.  */
5561int i;
5562int
5563main (void)
5564{
5565
5566  ;
5567  return 0;
5568}
5569_ACEOF
5570if ac_fn_c_try_link "$LINENO"
5571then :
5572  eval $cacheid=yes
5573else case e in #(
5574  e) eval $cacheid=no ;;
5575esac
5576fi
5577rm -f core conftest.err conftest.$ac_objext conftest.beam \
5578    conftest$ac_exeext conftest.$ac_ext ;;
5579esac
5580fi
5581
5582
5583		CFLAGS="$xorg_testset_save_CFLAGS"
5584
5585		eval supported=\$$cacheid
5586		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5587printf "%s\n" "$supported" >&6; }
5588		if test "$supported" = "yes" ; then
5589			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5590			found="yes"
5591		fi
5592	fi
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610xorg_testset_save_CFLAGS="$CFLAGS"
5611
5612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5613	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5614	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5615printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5616if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5617then :
5618  printf %s "(cached) " >&6
5619else case e in #(
5620  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621/* end confdefs.h.  */
5622int i;
5623_ACEOF
5624if ac_fn_c_try_compile "$LINENO"
5625then :
5626  xorg_cv_cc_flag_unknown_warning_option=yes
5627else case e in #(
5628  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5629esac
5630fi
5631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5632esac
5633fi
5634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5635printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5636	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5637	CFLAGS="$xorg_testset_save_CFLAGS"
5638fi
5639
5640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5641	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5642		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5643	fi
5644	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5645	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5646printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5647if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5648then :
5649  printf %s "(cached) " >&6
5650else case e in #(
5651  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652/* end confdefs.h.  */
5653int i;
5654_ACEOF
5655if ac_fn_c_try_compile "$LINENO"
5656then :
5657  xorg_cv_cc_flag_unused_command_line_argument=yes
5658else case e in #(
5659  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5660esac
5661fi
5662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5663esac
5664fi
5665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5666printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5667	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5668	CFLAGS="$xorg_testset_save_CFLAGS"
5669fi
5670
5671found="no"
5672
5673	if test $found = "no" ; then
5674		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5675			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5676		fi
5677
5678		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5679			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5680		fi
5681
5682		CFLAGS="$CFLAGS -Wstrict-prototypes"
5683
5684		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5685printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5686		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5687		if eval test \${$cacheid+y}
5688then :
5689  printf %s "(cached) " >&6
5690else case e in #(
5691  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692/* end confdefs.h.  */
5693int i;
5694int
5695main (void)
5696{
5697
5698  ;
5699  return 0;
5700}
5701_ACEOF
5702if ac_fn_c_try_link "$LINENO"
5703then :
5704  eval $cacheid=yes
5705else case e in #(
5706  e) eval $cacheid=no ;;
5707esac
5708fi
5709rm -f core conftest.err conftest.$ac_objext conftest.beam \
5710    conftest$ac_exeext conftest.$ac_ext ;;
5711esac
5712fi
5713
5714
5715		CFLAGS="$xorg_testset_save_CFLAGS"
5716
5717		eval supported=\$$cacheid
5718		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5719printf "%s\n" "$supported" >&6; }
5720		if test "$supported" = "yes" ; then
5721			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5722			found="yes"
5723		fi
5724	fi
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740xorg_testset_save_CFLAGS="$CFLAGS"
5741
5742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5743	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5744	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5745printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5746if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5747then :
5748  printf %s "(cached) " >&6
5749else case e in #(
5750  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751/* end confdefs.h.  */
5752int i;
5753_ACEOF
5754if ac_fn_c_try_compile "$LINENO"
5755then :
5756  xorg_cv_cc_flag_unknown_warning_option=yes
5757else case e in #(
5758  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5759esac
5760fi
5761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5762esac
5763fi
5764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5765printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5766	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5767	CFLAGS="$xorg_testset_save_CFLAGS"
5768fi
5769
5770if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5771	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5772		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5773	fi
5774	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5775	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5776printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5777if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5778then :
5779  printf %s "(cached) " >&6
5780else case e in #(
5781  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5782/* end confdefs.h.  */
5783int i;
5784_ACEOF
5785if ac_fn_c_try_compile "$LINENO"
5786then :
5787  xorg_cv_cc_flag_unused_command_line_argument=yes
5788else case e in #(
5789  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5790esac
5791fi
5792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5793esac
5794fi
5795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5796printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5797	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5798	CFLAGS="$xorg_testset_save_CFLAGS"
5799fi
5800
5801found="no"
5802
5803	if test $found = "no" ; then
5804		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5805			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5806		fi
5807
5808		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5809			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5810		fi
5811
5812		CFLAGS="$CFLAGS -Wmissing-prototypes"
5813
5814		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5815printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5816		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5817		if eval test \${$cacheid+y}
5818then :
5819  printf %s "(cached) " >&6
5820else case e in #(
5821  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822/* end confdefs.h.  */
5823int i;
5824int
5825main (void)
5826{
5827
5828  ;
5829  return 0;
5830}
5831_ACEOF
5832if ac_fn_c_try_link "$LINENO"
5833then :
5834  eval $cacheid=yes
5835else case e in #(
5836  e) eval $cacheid=no ;;
5837esac
5838fi
5839rm -f core conftest.err conftest.$ac_objext conftest.beam \
5840    conftest$ac_exeext conftest.$ac_ext ;;
5841esac
5842fi
5843
5844
5845		CFLAGS="$xorg_testset_save_CFLAGS"
5846
5847		eval supported=\$$cacheid
5848		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5849printf "%s\n" "$supported" >&6; }
5850		if test "$supported" = "yes" ; then
5851			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5852			found="yes"
5853		fi
5854	fi
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870xorg_testset_save_CFLAGS="$CFLAGS"
5871
5872if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5873	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5874	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5875printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5876if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5877then :
5878  printf %s "(cached) " >&6
5879else case e in #(
5880  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881/* end confdefs.h.  */
5882int i;
5883_ACEOF
5884if ac_fn_c_try_compile "$LINENO"
5885then :
5886  xorg_cv_cc_flag_unknown_warning_option=yes
5887else case e in #(
5888  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5889esac
5890fi
5891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5892esac
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 case e in #(
5911  e) 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 case e in #(
5919  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5920esac
5921fi
5922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5923esac
5924fi
5925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5926printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5927	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5928	CFLAGS="$xorg_testset_save_CFLAGS"
5929fi
5930
5931found="no"
5932
5933	if test $found = "no" ; then
5934		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5935			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5936		fi
5937
5938		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5939			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5940		fi
5941
5942		CFLAGS="$CFLAGS -Wnested-externs"
5943
5944		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5945printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5946		cacheid=xorg_cv_cc_flag__Wnested_externs
5947		if eval test \${$cacheid+y}
5948then :
5949  printf %s "(cached) " >&6
5950else case e in #(
5951  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952/* end confdefs.h.  */
5953int i;
5954int
5955main (void)
5956{
5957
5958  ;
5959  return 0;
5960}
5961_ACEOF
5962if ac_fn_c_try_link "$LINENO"
5963then :
5964  eval $cacheid=yes
5965else case e in #(
5966  e) eval $cacheid=no ;;
5967esac
5968fi
5969rm -f core conftest.err conftest.$ac_objext conftest.beam \
5970    conftest$ac_exeext conftest.$ac_ext ;;
5971esac
5972fi
5973
5974
5975		CFLAGS="$xorg_testset_save_CFLAGS"
5976
5977		eval supported=\$$cacheid
5978		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5979printf "%s\n" "$supported" >&6; }
5980		if test "$supported" = "yes" ; then
5981			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5982			found="yes"
5983		fi
5984	fi
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000xorg_testset_save_CFLAGS="$CFLAGS"
6001
6002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6003	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6004	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6005printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6006if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6007then :
6008  printf %s "(cached) " >&6
6009else case e in #(
6010  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011/* end confdefs.h.  */
6012int i;
6013_ACEOF
6014if ac_fn_c_try_compile "$LINENO"
6015then :
6016  xorg_cv_cc_flag_unknown_warning_option=yes
6017else case e in #(
6018  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6019esac
6020fi
6021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6022esac
6023fi
6024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6025printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6026	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6027	CFLAGS="$xorg_testset_save_CFLAGS"
6028fi
6029
6030if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6031	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6032		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6033	fi
6034	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6035	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6036printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6037if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6038then :
6039  printf %s "(cached) " >&6
6040else case e in #(
6041  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042/* end confdefs.h.  */
6043int i;
6044_ACEOF
6045if ac_fn_c_try_compile "$LINENO"
6046then :
6047  xorg_cv_cc_flag_unused_command_line_argument=yes
6048else case e in #(
6049  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6050esac
6051fi
6052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6053esac
6054fi
6055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6056printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6057	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6058	CFLAGS="$xorg_testset_save_CFLAGS"
6059fi
6060
6061found="no"
6062
6063	if test $found = "no" ; then
6064		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6065			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6066		fi
6067
6068		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6069			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6070		fi
6071
6072		CFLAGS="$CFLAGS -Wbad-function-cast"
6073
6074		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6075printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6076		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6077		if eval test \${$cacheid+y}
6078then :
6079  printf %s "(cached) " >&6
6080else case e in #(
6081  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082/* end confdefs.h.  */
6083int i;
6084int
6085main (void)
6086{
6087
6088  ;
6089  return 0;
6090}
6091_ACEOF
6092if ac_fn_c_try_link "$LINENO"
6093then :
6094  eval $cacheid=yes
6095else case e in #(
6096  e) eval $cacheid=no ;;
6097esac
6098fi
6099rm -f core conftest.err conftest.$ac_objext conftest.beam \
6100    conftest$ac_exeext conftest.$ac_ext ;;
6101esac
6102fi
6103
6104
6105		CFLAGS="$xorg_testset_save_CFLAGS"
6106
6107		eval supported=\$$cacheid
6108		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6109printf "%s\n" "$supported" >&6; }
6110		if test "$supported" = "yes" ; then
6111			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6112			found="yes"
6113		fi
6114	fi
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130xorg_testset_save_CFLAGS="$CFLAGS"
6131
6132if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6133	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6134	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6135printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6136if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6137then :
6138  printf %s "(cached) " >&6
6139else case e in #(
6140  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141/* end confdefs.h.  */
6142int i;
6143_ACEOF
6144if ac_fn_c_try_compile "$LINENO"
6145then :
6146  xorg_cv_cc_flag_unknown_warning_option=yes
6147else case e in #(
6148  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6149esac
6150fi
6151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6152esac
6153fi
6154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6155printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6156	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6157	CFLAGS="$xorg_testset_save_CFLAGS"
6158fi
6159
6160if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6161	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6162		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6163	fi
6164	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6165	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6166printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6167if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6168then :
6169  printf %s "(cached) " >&6
6170else case e in #(
6171  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172/* end confdefs.h.  */
6173int i;
6174_ACEOF
6175if ac_fn_c_try_compile "$LINENO"
6176then :
6177  xorg_cv_cc_flag_unused_command_line_argument=yes
6178else case e in #(
6179  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6180esac
6181fi
6182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6183esac
6184fi
6185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6186printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6187	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6188	CFLAGS="$xorg_testset_save_CFLAGS"
6189fi
6190
6191found="no"
6192
6193	if test $found = "no" ; then
6194		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6195			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6196		fi
6197
6198		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6199			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6200		fi
6201
6202		CFLAGS="$CFLAGS -Wold-style-definition"
6203
6204		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6205printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6206		cacheid=xorg_cv_cc_flag__Wold_style_definition
6207		if eval test \${$cacheid+y}
6208then :
6209  printf %s "(cached) " >&6
6210else case e in #(
6211  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212/* end confdefs.h.  */
6213int i;
6214int
6215main (void)
6216{
6217
6218  ;
6219  return 0;
6220}
6221_ACEOF
6222if ac_fn_c_try_link "$LINENO"
6223then :
6224  eval $cacheid=yes
6225else case e in #(
6226  e) eval $cacheid=no ;;
6227esac
6228fi
6229rm -f core conftest.err conftest.$ac_objext conftest.beam \
6230    conftest$ac_exeext conftest.$ac_ext ;;
6231esac
6232fi
6233
6234
6235		CFLAGS="$xorg_testset_save_CFLAGS"
6236
6237		eval supported=\$$cacheid
6238		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6239printf "%s\n" "$supported" >&6; }
6240		if test "$supported" = "yes" ; then
6241			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6242			found="yes"
6243		fi
6244	fi
6245
6246	if test $found = "no" ; then
6247		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6248			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6249		fi
6250
6251		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6252			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6253		fi
6254
6255		CFLAGS="$CFLAGS -fd"
6256
6257		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6258printf %s "checking if $CC supports -fd... " >&6; }
6259		cacheid=xorg_cv_cc_flag__fd
6260		if eval test \${$cacheid+y}
6261then :
6262  printf %s "(cached) " >&6
6263else case e in #(
6264  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265/* end confdefs.h.  */
6266int i;
6267int
6268main (void)
6269{
6270
6271  ;
6272  return 0;
6273}
6274_ACEOF
6275if ac_fn_c_try_link "$LINENO"
6276then :
6277  eval $cacheid=yes
6278else case e in #(
6279  e) eval $cacheid=no ;;
6280esac
6281fi
6282rm -f core conftest.err conftest.$ac_objext conftest.beam \
6283    conftest$ac_exeext conftest.$ac_ext ;;
6284esac
6285fi
6286
6287
6288		CFLAGS="$xorg_testset_save_CFLAGS"
6289
6290		eval supported=\$$cacheid
6291		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6292printf "%s\n" "$supported" >&6; }
6293		if test "$supported" = "yes" ; then
6294			BASE_CFLAGS="$BASE_CFLAGS -fd"
6295			found="yes"
6296		fi
6297	fi
6298
6299
6300
6301
6302
6303# This chunk adds additional warnings that could catch undesired effects.
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317xorg_testset_save_CFLAGS="$CFLAGS"
6318
6319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6320	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6321	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6322printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6323if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6324then :
6325  printf %s "(cached) " >&6
6326else case e in #(
6327  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328/* end confdefs.h.  */
6329int i;
6330_ACEOF
6331if ac_fn_c_try_compile "$LINENO"
6332then :
6333  xorg_cv_cc_flag_unknown_warning_option=yes
6334else case e in #(
6335  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6336esac
6337fi
6338rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6339esac
6340fi
6341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6342printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6343	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6344	CFLAGS="$xorg_testset_save_CFLAGS"
6345fi
6346
6347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6348	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6349		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6350	fi
6351	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6352	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6353printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6354if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6355then :
6356  printf %s "(cached) " >&6
6357else case e in #(
6358  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359/* end confdefs.h.  */
6360int i;
6361_ACEOF
6362if ac_fn_c_try_compile "$LINENO"
6363then :
6364  xorg_cv_cc_flag_unused_command_line_argument=yes
6365else case e in #(
6366  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6367esac
6368fi
6369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6370esac
6371fi
6372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6373printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6374	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6375	CFLAGS="$xorg_testset_save_CFLAGS"
6376fi
6377
6378found="no"
6379
6380	if test $found = "no" ; then
6381		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6382			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6383		fi
6384
6385		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6386			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6387		fi
6388
6389		CFLAGS="$CFLAGS -Wunused"
6390
6391		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6392printf %s "checking if $CC supports -Wunused... " >&6; }
6393		cacheid=xorg_cv_cc_flag__Wunused
6394		if eval test \${$cacheid+y}
6395then :
6396  printf %s "(cached) " >&6
6397else case e in #(
6398  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399/* end confdefs.h.  */
6400int i;
6401int
6402main (void)
6403{
6404
6405  ;
6406  return 0;
6407}
6408_ACEOF
6409if ac_fn_c_try_link "$LINENO"
6410then :
6411  eval $cacheid=yes
6412else case e in #(
6413  e) eval $cacheid=no ;;
6414esac
6415fi
6416rm -f core conftest.err conftest.$ac_objext conftest.beam \
6417    conftest$ac_exeext conftest.$ac_ext ;;
6418esac
6419fi
6420
6421
6422		CFLAGS="$xorg_testset_save_CFLAGS"
6423
6424		eval supported=\$$cacheid
6425		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6426printf "%s\n" "$supported" >&6; }
6427		if test "$supported" = "yes" ; then
6428			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6429			found="yes"
6430		fi
6431	fi
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447xorg_testset_save_CFLAGS="$CFLAGS"
6448
6449if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6450	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6451	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6452printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6453if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6454then :
6455  printf %s "(cached) " >&6
6456else case e in #(
6457  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458/* end confdefs.h.  */
6459int i;
6460_ACEOF
6461if ac_fn_c_try_compile "$LINENO"
6462then :
6463  xorg_cv_cc_flag_unknown_warning_option=yes
6464else case e in #(
6465  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6466esac
6467fi
6468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6469esac
6470fi
6471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6472printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6473	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6474	CFLAGS="$xorg_testset_save_CFLAGS"
6475fi
6476
6477if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6478	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6479		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6480	fi
6481	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6482	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6483printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6484if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6485then :
6486  printf %s "(cached) " >&6
6487else case e in #(
6488  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489/* end confdefs.h.  */
6490int i;
6491_ACEOF
6492if ac_fn_c_try_compile "$LINENO"
6493then :
6494  xorg_cv_cc_flag_unused_command_line_argument=yes
6495else case e in #(
6496  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6497esac
6498fi
6499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6500esac
6501fi
6502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6503printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6504	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6505	CFLAGS="$xorg_testset_save_CFLAGS"
6506fi
6507
6508found="no"
6509
6510	if test $found = "no" ; then
6511		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6512			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6513		fi
6514
6515		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6516			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6517		fi
6518
6519		CFLAGS="$CFLAGS -Wuninitialized"
6520
6521		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6522printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6523		cacheid=xorg_cv_cc_flag__Wuninitialized
6524		if eval test \${$cacheid+y}
6525then :
6526  printf %s "(cached) " >&6
6527else case e in #(
6528  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529/* end confdefs.h.  */
6530int i;
6531int
6532main (void)
6533{
6534
6535  ;
6536  return 0;
6537}
6538_ACEOF
6539if ac_fn_c_try_link "$LINENO"
6540then :
6541  eval $cacheid=yes
6542else case e in #(
6543  e) eval $cacheid=no ;;
6544esac
6545fi
6546rm -f core conftest.err conftest.$ac_objext conftest.beam \
6547    conftest$ac_exeext conftest.$ac_ext ;;
6548esac
6549fi
6550
6551
6552		CFLAGS="$xorg_testset_save_CFLAGS"
6553
6554		eval supported=\$$cacheid
6555		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6556printf "%s\n" "$supported" >&6; }
6557		if test "$supported" = "yes" ; then
6558			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6559			found="yes"
6560		fi
6561	fi
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577xorg_testset_save_CFLAGS="$CFLAGS"
6578
6579if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6580	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6581	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6582printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6583if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6584then :
6585  printf %s "(cached) " >&6
6586else case e in #(
6587  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588/* end confdefs.h.  */
6589int i;
6590_ACEOF
6591if ac_fn_c_try_compile "$LINENO"
6592then :
6593  xorg_cv_cc_flag_unknown_warning_option=yes
6594else case e in #(
6595  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6596esac
6597fi
6598rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6599esac
6600fi
6601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6602printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6603	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6604	CFLAGS="$xorg_testset_save_CFLAGS"
6605fi
6606
6607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6608	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6609		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6610	fi
6611	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6612	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6613printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6614if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6615then :
6616  printf %s "(cached) " >&6
6617else case e in #(
6618  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619/* end confdefs.h.  */
6620int i;
6621_ACEOF
6622if ac_fn_c_try_compile "$LINENO"
6623then :
6624  xorg_cv_cc_flag_unused_command_line_argument=yes
6625else case e in #(
6626  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6627esac
6628fi
6629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6630esac
6631fi
6632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6633printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6634	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6635	CFLAGS="$xorg_testset_save_CFLAGS"
6636fi
6637
6638found="no"
6639
6640	if test $found = "no" ; then
6641		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6642			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6643		fi
6644
6645		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6646			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6647		fi
6648
6649		CFLAGS="$CFLAGS -Wshadow"
6650
6651		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6652printf %s "checking if $CC supports -Wshadow... " >&6; }
6653		cacheid=xorg_cv_cc_flag__Wshadow
6654		if eval test \${$cacheid+y}
6655then :
6656  printf %s "(cached) " >&6
6657else case e in #(
6658  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659/* end confdefs.h.  */
6660int i;
6661int
6662main (void)
6663{
6664
6665  ;
6666  return 0;
6667}
6668_ACEOF
6669if ac_fn_c_try_link "$LINENO"
6670then :
6671  eval $cacheid=yes
6672else case e in #(
6673  e) eval $cacheid=no ;;
6674esac
6675fi
6676rm -f core conftest.err conftest.$ac_objext conftest.beam \
6677    conftest$ac_exeext conftest.$ac_ext ;;
6678esac
6679fi
6680
6681
6682		CFLAGS="$xorg_testset_save_CFLAGS"
6683
6684		eval supported=\$$cacheid
6685		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6686printf "%s\n" "$supported" >&6; }
6687		if test "$supported" = "yes" ; then
6688			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6689			found="yes"
6690		fi
6691	fi
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707xorg_testset_save_CFLAGS="$CFLAGS"
6708
6709if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6710	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6711	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6712printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6713if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6714then :
6715  printf %s "(cached) " >&6
6716else case e in #(
6717  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718/* end confdefs.h.  */
6719int i;
6720_ACEOF
6721if ac_fn_c_try_compile "$LINENO"
6722then :
6723  xorg_cv_cc_flag_unknown_warning_option=yes
6724else case e in #(
6725  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6726esac
6727fi
6728rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6729esac
6730fi
6731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6732printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6733	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6734	CFLAGS="$xorg_testset_save_CFLAGS"
6735fi
6736
6737if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6738	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6739		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6740	fi
6741	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6742	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6743printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6744if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6745then :
6746  printf %s "(cached) " >&6
6747else case e in #(
6748  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749/* end confdefs.h.  */
6750int i;
6751_ACEOF
6752if ac_fn_c_try_compile "$LINENO"
6753then :
6754  xorg_cv_cc_flag_unused_command_line_argument=yes
6755else case e in #(
6756  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6757esac
6758fi
6759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6760esac
6761fi
6762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6763printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6764	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6765	CFLAGS="$xorg_testset_save_CFLAGS"
6766fi
6767
6768found="no"
6769
6770	if test $found = "no" ; then
6771		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6772			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6773		fi
6774
6775		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6776			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6777		fi
6778
6779		CFLAGS="$CFLAGS -Wmissing-noreturn"
6780
6781		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6782printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6783		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6784		if eval test \${$cacheid+y}
6785then :
6786  printf %s "(cached) " >&6
6787else case e in #(
6788  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789/* end confdefs.h.  */
6790int i;
6791int
6792main (void)
6793{
6794
6795  ;
6796  return 0;
6797}
6798_ACEOF
6799if ac_fn_c_try_link "$LINENO"
6800then :
6801  eval $cacheid=yes
6802else case e in #(
6803  e) eval $cacheid=no ;;
6804esac
6805fi
6806rm -f core conftest.err conftest.$ac_objext conftest.beam \
6807    conftest$ac_exeext conftest.$ac_ext ;;
6808esac
6809fi
6810
6811
6812		CFLAGS="$xorg_testset_save_CFLAGS"
6813
6814		eval supported=\$$cacheid
6815		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6816printf "%s\n" "$supported" >&6; }
6817		if test "$supported" = "yes" ; then
6818			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6819			found="yes"
6820		fi
6821	fi
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837xorg_testset_save_CFLAGS="$CFLAGS"
6838
6839if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6840	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6841	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6842printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6843if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6844then :
6845  printf %s "(cached) " >&6
6846else case e in #(
6847  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848/* end confdefs.h.  */
6849int i;
6850_ACEOF
6851if ac_fn_c_try_compile "$LINENO"
6852then :
6853  xorg_cv_cc_flag_unknown_warning_option=yes
6854else case e in #(
6855  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6856esac
6857fi
6858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6859esac
6860fi
6861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6862printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6863	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6864	CFLAGS="$xorg_testset_save_CFLAGS"
6865fi
6866
6867if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6868	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6869		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6870	fi
6871	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6872	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6873printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6874if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6875then :
6876  printf %s "(cached) " >&6
6877else case e in #(
6878  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879/* end confdefs.h.  */
6880int i;
6881_ACEOF
6882if ac_fn_c_try_compile "$LINENO"
6883then :
6884  xorg_cv_cc_flag_unused_command_line_argument=yes
6885else case e in #(
6886  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6887esac
6888fi
6889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6890esac
6891fi
6892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6893printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6894	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6895	CFLAGS="$xorg_testset_save_CFLAGS"
6896fi
6897
6898found="no"
6899
6900	if test $found = "no" ; then
6901		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6902			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6903		fi
6904
6905		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6906			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6907		fi
6908
6909		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6910
6911		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6912printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6913		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6914		if eval test \${$cacheid+y}
6915then :
6916  printf %s "(cached) " >&6
6917else case e in #(
6918  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919/* end confdefs.h.  */
6920int i;
6921int
6922main (void)
6923{
6924
6925  ;
6926  return 0;
6927}
6928_ACEOF
6929if ac_fn_c_try_link "$LINENO"
6930then :
6931  eval $cacheid=yes
6932else case e in #(
6933  e) eval $cacheid=no ;;
6934esac
6935fi
6936rm -f core conftest.err conftest.$ac_objext conftest.beam \
6937    conftest$ac_exeext conftest.$ac_ext ;;
6938esac
6939fi
6940
6941
6942		CFLAGS="$xorg_testset_save_CFLAGS"
6943
6944		eval supported=\$$cacheid
6945		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6946printf "%s\n" "$supported" >&6; }
6947		if test "$supported" = "yes" ; then
6948			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6949			found="yes"
6950		fi
6951	fi
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967xorg_testset_save_CFLAGS="$CFLAGS"
6968
6969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6970	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6971	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6972printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6973if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6974then :
6975  printf %s "(cached) " >&6
6976else case e in #(
6977  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978/* end confdefs.h.  */
6979int i;
6980_ACEOF
6981if ac_fn_c_try_compile "$LINENO"
6982then :
6983  xorg_cv_cc_flag_unknown_warning_option=yes
6984else case e in #(
6985  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6986esac
6987fi
6988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6989esac
6990fi
6991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6992printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6993	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6994	CFLAGS="$xorg_testset_save_CFLAGS"
6995fi
6996
6997if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6998	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6999		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7000	fi
7001	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7002	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7003printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7004if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7005then :
7006  printf %s "(cached) " >&6
7007else case e in #(
7008  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009/* end confdefs.h.  */
7010int i;
7011_ACEOF
7012if ac_fn_c_try_compile "$LINENO"
7013then :
7014  xorg_cv_cc_flag_unused_command_line_argument=yes
7015else case e in #(
7016  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7017esac
7018fi
7019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7020esac
7021fi
7022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7023printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7024	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7025	CFLAGS="$xorg_testset_save_CFLAGS"
7026fi
7027
7028found="no"
7029
7030	if test $found = "no" ; then
7031		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7032			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7033		fi
7034
7035		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7036			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7037		fi
7038
7039		CFLAGS="$CFLAGS -Wredundant-decls"
7040
7041		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7042printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7043		cacheid=xorg_cv_cc_flag__Wredundant_decls
7044		if eval test \${$cacheid+y}
7045then :
7046  printf %s "(cached) " >&6
7047else case e in #(
7048  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049/* end confdefs.h.  */
7050int i;
7051int
7052main (void)
7053{
7054
7055  ;
7056  return 0;
7057}
7058_ACEOF
7059if ac_fn_c_try_link "$LINENO"
7060then :
7061  eval $cacheid=yes
7062else case e in #(
7063  e) eval $cacheid=no ;;
7064esac
7065fi
7066rm -f core conftest.err conftest.$ac_objext conftest.beam \
7067    conftest$ac_exeext conftest.$ac_ext ;;
7068esac
7069fi
7070
7071
7072		CFLAGS="$xorg_testset_save_CFLAGS"
7073
7074		eval supported=\$$cacheid
7075		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7076printf "%s\n" "$supported" >&6; }
7077		if test "$supported" = "yes" ; then
7078			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7079			found="yes"
7080		fi
7081	fi
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097xorg_testset_save_CFLAGS="$CFLAGS"
7098
7099if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7100	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7101	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7102printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7103if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7104then :
7105  printf %s "(cached) " >&6
7106else case e in #(
7107  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108/* end confdefs.h.  */
7109int i;
7110_ACEOF
7111if ac_fn_c_try_compile "$LINENO"
7112then :
7113  xorg_cv_cc_flag_unknown_warning_option=yes
7114else case e in #(
7115  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7116esac
7117fi
7118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7119esac
7120fi
7121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7122printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7123	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7124	CFLAGS="$xorg_testset_save_CFLAGS"
7125fi
7126
7127if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7128	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7129		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7130	fi
7131	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7132	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7133printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7134if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7135then :
7136  printf %s "(cached) " >&6
7137else case e in #(
7138  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139/* end confdefs.h.  */
7140int i;
7141_ACEOF
7142if ac_fn_c_try_compile "$LINENO"
7143then :
7144  xorg_cv_cc_flag_unused_command_line_argument=yes
7145else case e in #(
7146  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7147esac
7148fi
7149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7150esac
7151fi
7152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7153printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7154	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7155	CFLAGS="$xorg_testset_save_CFLAGS"
7156fi
7157
7158found="no"
7159
7160	if test $found = "no" ; then
7161		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7162			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7163		fi
7164
7165		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7166			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7167		fi
7168
7169		CFLAGS="$CFLAGS -Wlogical-op"
7170
7171		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7172printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7173		cacheid=xorg_cv_cc_flag__Wlogical_op
7174		if eval test \${$cacheid+y}
7175then :
7176  printf %s "(cached) " >&6
7177else case e in #(
7178  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179/* end confdefs.h.  */
7180int i;
7181int
7182main (void)
7183{
7184
7185  ;
7186  return 0;
7187}
7188_ACEOF
7189if ac_fn_c_try_link "$LINENO"
7190then :
7191  eval $cacheid=yes
7192else case e in #(
7193  e) eval $cacheid=no ;;
7194esac
7195fi
7196rm -f core conftest.err conftest.$ac_objext conftest.beam \
7197    conftest$ac_exeext conftest.$ac_ext ;;
7198esac
7199fi
7200
7201
7202		CFLAGS="$xorg_testset_save_CFLAGS"
7203
7204		eval supported=\$$cacheid
7205		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7206printf "%s\n" "$supported" >&6; }
7207		if test "$supported" = "yes" ; then
7208			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7209			found="yes"
7210		fi
7211	fi
7212
7213
7214
7215# These are currently disabled because they are noisy.  They will be enabled
7216# in the future once the codebase is sufficiently modernized to silence
7217# them.  For now, I don't want them to drown out the other warnings.
7218# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7219# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7220# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7221
7222# Turn some warnings into errors, so we don't accidentally get successful builds
7223# when there are problems that should be fixed.
7224
7225if test "x$SELECTIVE_WERROR" = "xyes" ; then
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239xorg_testset_save_CFLAGS="$CFLAGS"
7240
7241if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7242	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7243	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7244printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7245if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7246then :
7247  printf %s "(cached) " >&6
7248else case e in #(
7249  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250/* end confdefs.h.  */
7251int i;
7252_ACEOF
7253if ac_fn_c_try_compile "$LINENO"
7254then :
7255  xorg_cv_cc_flag_unknown_warning_option=yes
7256else case e in #(
7257  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7258esac
7259fi
7260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7261esac
7262fi
7263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7264printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7265	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7266	CFLAGS="$xorg_testset_save_CFLAGS"
7267fi
7268
7269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7270	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7271		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7272	fi
7273	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7274	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7275printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7276if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7277then :
7278  printf %s "(cached) " >&6
7279else case e in #(
7280  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281/* end confdefs.h.  */
7282int i;
7283_ACEOF
7284if ac_fn_c_try_compile "$LINENO"
7285then :
7286  xorg_cv_cc_flag_unused_command_line_argument=yes
7287else case e in #(
7288  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7289esac
7290fi
7291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7292esac
7293fi
7294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7295printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7296	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7297	CFLAGS="$xorg_testset_save_CFLAGS"
7298fi
7299
7300found="no"
7301
7302	if test $found = "no" ; then
7303		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7304			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7305		fi
7306
7307		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7308			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7309		fi
7310
7311		CFLAGS="$CFLAGS -Werror=implicit"
7312
7313		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7314printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7315		cacheid=xorg_cv_cc_flag__Werror_implicit
7316		if eval test \${$cacheid+y}
7317then :
7318  printf %s "(cached) " >&6
7319else case e in #(
7320  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321/* end confdefs.h.  */
7322int i;
7323int
7324main (void)
7325{
7326
7327  ;
7328  return 0;
7329}
7330_ACEOF
7331if ac_fn_c_try_link "$LINENO"
7332then :
7333  eval $cacheid=yes
7334else case e in #(
7335  e) eval $cacheid=no ;;
7336esac
7337fi
7338rm -f core conftest.err conftest.$ac_objext conftest.beam \
7339    conftest$ac_exeext conftest.$ac_ext ;;
7340esac
7341fi
7342
7343
7344		CFLAGS="$xorg_testset_save_CFLAGS"
7345
7346		eval supported=\$$cacheid
7347		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7348printf "%s\n" "$supported" >&6; }
7349		if test "$supported" = "yes" ; then
7350			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7351			found="yes"
7352		fi
7353	fi
7354
7355	if test $found = "no" ; then
7356		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7357			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7358		fi
7359
7360		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7361			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7362		fi
7363
7364		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7365
7366		{ 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
7367printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7368		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7369		if eval test \${$cacheid+y}
7370then :
7371  printf %s "(cached) " >&6
7372else case e in #(
7373  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374/* end confdefs.h.  */
7375int i;
7376int
7377main (void)
7378{
7379
7380  ;
7381  return 0;
7382}
7383_ACEOF
7384if ac_fn_c_try_link "$LINENO"
7385then :
7386  eval $cacheid=yes
7387else case e in #(
7388  e) eval $cacheid=no ;;
7389esac
7390fi
7391rm -f core conftest.err conftest.$ac_objext conftest.beam \
7392    conftest$ac_exeext conftest.$ac_ext ;;
7393esac
7394fi
7395
7396
7397		CFLAGS="$xorg_testset_save_CFLAGS"
7398
7399		eval supported=\$$cacheid
7400		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7401printf "%s\n" "$supported" >&6; }
7402		if test "$supported" = "yes" ; then
7403			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7404			found="yes"
7405		fi
7406	fi
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422xorg_testset_save_CFLAGS="$CFLAGS"
7423
7424if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7425	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7426	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7427printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7428if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7429then :
7430  printf %s "(cached) " >&6
7431else case e in #(
7432  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433/* end confdefs.h.  */
7434int i;
7435_ACEOF
7436if ac_fn_c_try_compile "$LINENO"
7437then :
7438  xorg_cv_cc_flag_unknown_warning_option=yes
7439else case e in #(
7440  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7441esac
7442fi
7443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7444esac
7445fi
7446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7447printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7448	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7449	CFLAGS="$xorg_testset_save_CFLAGS"
7450fi
7451
7452if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7453	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7454		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7455	fi
7456	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7457	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7458printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7459if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7460then :
7461  printf %s "(cached) " >&6
7462else case e in #(
7463  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464/* end confdefs.h.  */
7465int i;
7466_ACEOF
7467if ac_fn_c_try_compile "$LINENO"
7468then :
7469  xorg_cv_cc_flag_unused_command_line_argument=yes
7470else case e in #(
7471  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7472esac
7473fi
7474rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7475esac
7476fi
7477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7478printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7479	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7480	CFLAGS="$xorg_testset_save_CFLAGS"
7481fi
7482
7483found="no"
7484
7485	if test $found = "no" ; then
7486		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7487			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7488		fi
7489
7490		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7491			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7492		fi
7493
7494		CFLAGS="$CFLAGS -Werror=nonnull"
7495
7496		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7497printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7498		cacheid=xorg_cv_cc_flag__Werror_nonnull
7499		if eval test \${$cacheid+y}
7500then :
7501  printf %s "(cached) " >&6
7502else case e in #(
7503  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504/* end confdefs.h.  */
7505int i;
7506int
7507main (void)
7508{
7509
7510  ;
7511  return 0;
7512}
7513_ACEOF
7514if ac_fn_c_try_link "$LINENO"
7515then :
7516  eval $cacheid=yes
7517else case e in #(
7518  e) eval $cacheid=no ;;
7519esac
7520fi
7521rm -f core conftest.err conftest.$ac_objext conftest.beam \
7522    conftest$ac_exeext conftest.$ac_ext ;;
7523esac
7524fi
7525
7526
7527		CFLAGS="$xorg_testset_save_CFLAGS"
7528
7529		eval supported=\$$cacheid
7530		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7531printf "%s\n" "$supported" >&6; }
7532		if test "$supported" = "yes" ; then
7533			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7534			found="yes"
7535		fi
7536	fi
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552xorg_testset_save_CFLAGS="$CFLAGS"
7553
7554if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7555	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7556	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7557printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7558if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7559then :
7560  printf %s "(cached) " >&6
7561else case e in #(
7562  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563/* end confdefs.h.  */
7564int i;
7565_ACEOF
7566if ac_fn_c_try_compile "$LINENO"
7567then :
7568  xorg_cv_cc_flag_unknown_warning_option=yes
7569else case e in #(
7570  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7571esac
7572fi
7573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7574esac
7575fi
7576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7577printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7578	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7579	CFLAGS="$xorg_testset_save_CFLAGS"
7580fi
7581
7582if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7583	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7584		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7585	fi
7586	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7587	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7588printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7589if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7590then :
7591  printf %s "(cached) " >&6
7592else case e in #(
7593  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594/* end confdefs.h.  */
7595int i;
7596_ACEOF
7597if ac_fn_c_try_compile "$LINENO"
7598then :
7599  xorg_cv_cc_flag_unused_command_line_argument=yes
7600else case e in #(
7601  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7602esac
7603fi
7604rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7605esac
7606fi
7607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7608printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7609	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7610	CFLAGS="$xorg_testset_save_CFLAGS"
7611fi
7612
7613found="no"
7614
7615	if test $found = "no" ; then
7616		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7617			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7618		fi
7619
7620		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7621			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7622		fi
7623
7624		CFLAGS="$CFLAGS -Werror=init-self"
7625
7626		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7627printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7628		cacheid=xorg_cv_cc_flag__Werror_init_self
7629		if eval test \${$cacheid+y}
7630then :
7631  printf %s "(cached) " >&6
7632else case e in #(
7633  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634/* end confdefs.h.  */
7635int i;
7636int
7637main (void)
7638{
7639
7640  ;
7641  return 0;
7642}
7643_ACEOF
7644if ac_fn_c_try_link "$LINENO"
7645then :
7646  eval $cacheid=yes
7647else case e in #(
7648  e) eval $cacheid=no ;;
7649esac
7650fi
7651rm -f core conftest.err conftest.$ac_objext conftest.beam \
7652    conftest$ac_exeext conftest.$ac_ext ;;
7653esac
7654fi
7655
7656
7657		CFLAGS="$xorg_testset_save_CFLAGS"
7658
7659		eval supported=\$$cacheid
7660		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7661printf "%s\n" "$supported" >&6; }
7662		if test "$supported" = "yes" ; then
7663			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7664			found="yes"
7665		fi
7666	fi
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682xorg_testset_save_CFLAGS="$CFLAGS"
7683
7684if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7685	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7686	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7687printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7688if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7689then :
7690  printf %s "(cached) " >&6
7691else case e in #(
7692  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693/* end confdefs.h.  */
7694int i;
7695_ACEOF
7696if ac_fn_c_try_compile "$LINENO"
7697then :
7698  xorg_cv_cc_flag_unknown_warning_option=yes
7699else case e in #(
7700  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7701esac
7702fi
7703rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7704esac
7705fi
7706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7707printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7708	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7709	CFLAGS="$xorg_testset_save_CFLAGS"
7710fi
7711
7712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7713	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7714		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7715	fi
7716	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7717	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7718printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7719if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7720then :
7721  printf %s "(cached) " >&6
7722else case e in #(
7723  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724/* end confdefs.h.  */
7725int i;
7726_ACEOF
7727if ac_fn_c_try_compile "$LINENO"
7728then :
7729  xorg_cv_cc_flag_unused_command_line_argument=yes
7730else case e in #(
7731  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7732esac
7733fi
7734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7735esac
7736fi
7737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7738printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7739	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7740	CFLAGS="$xorg_testset_save_CFLAGS"
7741fi
7742
7743found="no"
7744
7745	if test $found = "no" ; then
7746		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7747			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7748		fi
7749
7750		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7751			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7752		fi
7753
7754		CFLAGS="$CFLAGS -Werror=main"
7755
7756		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7757printf %s "checking if $CC supports -Werror=main... " >&6; }
7758		cacheid=xorg_cv_cc_flag__Werror_main
7759		if eval test \${$cacheid+y}
7760then :
7761  printf %s "(cached) " >&6
7762else case e in #(
7763  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764/* end confdefs.h.  */
7765int i;
7766int
7767main (void)
7768{
7769
7770  ;
7771  return 0;
7772}
7773_ACEOF
7774if ac_fn_c_try_link "$LINENO"
7775then :
7776  eval $cacheid=yes
7777else case e in #(
7778  e) eval $cacheid=no ;;
7779esac
7780fi
7781rm -f core conftest.err conftest.$ac_objext conftest.beam \
7782    conftest$ac_exeext conftest.$ac_ext ;;
7783esac
7784fi
7785
7786
7787		CFLAGS="$xorg_testset_save_CFLAGS"
7788
7789		eval supported=\$$cacheid
7790		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7791printf "%s\n" "$supported" >&6; }
7792		if test "$supported" = "yes" ; then
7793			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7794			found="yes"
7795		fi
7796	fi
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812xorg_testset_save_CFLAGS="$CFLAGS"
7813
7814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7815	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7816	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7817printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7818if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7819then :
7820  printf %s "(cached) " >&6
7821else case e in #(
7822  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823/* end confdefs.h.  */
7824int i;
7825_ACEOF
7826if ac_fn_c_try_compile "$LINENO"
7827then :
7828  xorg_cv_cc_flag_unknown_warning_option=yes
7829else case e in #(
7830  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7831esac
7832fi
7833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7834esac
7835fi
7836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7837printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7838	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7839	CFLAGS="$xorg_testset_save_CFLAGS"
7840fi
7841
7842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7843	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7844		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7845	fi
7846	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7847	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7848printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7849if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7850then :
7851  printf %s "(cached) " >&6
7852else case e in #(
7853  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854/* end confdefs.h.  */
7855int i;
7856_ACEOF
7857if ac_fn_c_try_compile "$LINENO"
7858then :
7859  xorg_cv_cc_flag_unused_command_line_argument=yes
7860else case e in #(
7861  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7862esac
7863fi
7864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7865esac
7866fi
7867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7868printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7869	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7870	CFLAGS="$xorg_testset_save_CFLAGS"
7871fi
7872
7873found="no"
7874
7875	if test $found = "no" ; then
7876		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7877			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7878		fi
7879
7880		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7881			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7882		fi
7883
7884		CFLAGS="$CFLAGS -Werror=missing-braces"
7885
7886		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7887printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7888		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7889		if eval test \${$cacheid+y}
7890then :
7891  printf %s "(cached) " >&6
7892else case e in #(
7893  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894/* end confdefs.h.  */
7895int i;
7896int
7897main (void)
7898{
7899
7900  ;
7901  return 0;
7902}
7903_ACEOF
7904if ac_fn_c_try_link "$LINENO"
7905then :
7906  eval $cacheid=yes
7907else case e in #(
7908  e) eval $cacheid=no ;;
7909esac
7910fi
7911rm -f core conftest.err conftest.$ac_objext conftest.beam \
7912    conftest$ac_exeext conftest.$ac_ext ;;
7913esac
7914fi
7915
7916
7917		CFLAGS="$xorg_testset_save_CFLAGS"
7918
7919		eval supported=\$$cacheid
7920		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7921printf "%s\n" "$supported" >&6; }
7922		if test "$supported" = "yes" ; then
7923			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7924			found="yes"
7925		fi
7926	fi
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942xorg_testset_save_CFLAGS="$CFLAGS"
7943
7944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7945	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7946	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7947printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7948if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7949then :
7950  printf %s "(cached) " >&6
7951else case e in #(
7952  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953/* end confdefs.h.  */
7954int i;
7955_ACEOF
7956if ac_fn_c_try_compile "$LINENO"
7957then :
7958  xorg_cv_cc_flag_unknown_warning_option=yes
7959else case e in #(
7960  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7961esac
7962fi
7963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7964esac
7965fi
7966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7967printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7968	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7969	CFLAGS="$xorg_testset_save_CFLAGS"
7970fi
7971
7972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7973	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7974		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7975	fi
7976	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7977	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7978printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7979if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7980then :
7981  printf %s "(cached) " >&6
7982else case e in #(
7983  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984/* end confdefs.h.  */
7985int i;
7986_ACEOF
7987if ac_fn_c_try_compile "$LINENO"
7988then :
7989  xorg_cv_cc_flag_unused_command_line_argument=yes
7990else case e in #(
7991  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7992esac
7993fi
7994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7995esac
7996fi
7997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7998printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7999	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8000	CFLAGS="$xorg_testset_save_CFLAGS"
8001fi
8002
8003found="no"
8004
8005	if test $found = "no" ; then
8006		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8007			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8008		fi
8009
8010		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8011			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8012		fi
8013
8014		CFLAGS="$CFLAGS -Werror=sequence-point"
8015
8016		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8017printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8018		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8019		if eval test \${$cacheid+y}
8020then :
8021  printf %s "(cached) " >&6
8022else case e in #(
8023  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8024/* end confdefs.h.  */
8025int i;
8026int
8027main (void)
8028{
8029
8030  ;
8031  return 0;
8032}
8033_ACEOF
8034if ac_fn_c_try_link "$LINENO"
8035then :
8036  eval $cacheid=yes
8037else case e in #(
8038  e) eval $cacheid=no ;;
8039esac
8040fi
8041rm -f core conftest.err conftest.$ac_objext conftest.beam \
8042    conftest$ac_exeext conftest.$ac_ext ;;
8043esac
8044fi
8045
8046
8047		CFLAGS="$xorg_testset_save_CFLAGS"
8048
8049		eval supported=\$$cacheid
8050		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8051printf "%s\n" "$supported" >&6; }
8052		if test "$supported" = "yes" ; then
8053			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8054			found="yes"
8055		fi
8056	fi
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072xorg_testset_save_CFLAGS="$CFLAGS"
8073
8074if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8075	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8076	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8077printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8078if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8079then :
8080  printf %s "(cached) " >&6
8081else case e in #(
8082  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083/* end confdefs.h.  */
8084int i;
8085_ACEOF
8086if ac_fn_c_try_compile "$LINENO"
8087then :
8088  xorg_cv_cc_flag_unknown_warning_option=yes
8089else case e in #(
8090  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8091esac
8092fi
8093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8094esac
8095fi
8096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8097printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8098	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8099	CFLAGS="$xorg_testset_save_CFLAGS"
8100fi
8101
8102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8103	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8104		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8105	fi
8106	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8107	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8108printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8109if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8110then :
8111  printf %s "(cached) " >&6
8112else case e in #(
8113  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114/* end confdefs.h.  */
8115int i;
8116_ACEOF
8117if ac_fn_c_try_compile "$LINENO"
8118then :
8119  xorg_cv_cc_flag_unused_command_line_argument=yes
8120else case e in #(
8121  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8122esac
8123fi
8124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8125esac
8126fi
8127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8128printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8129	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8130	CFLAGS="$xorg_testset_save_CFLAGS"
8131fi
8132
8133found="no"
8134
8135	if test $found = "no" ; then
8136		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8137			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8138		fi
8139
8140		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8141			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8142		fi
8143
8144		CFLAGS="$CFLAGS -Werror=return-type"
8145
8146		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8147printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8148		cacheid=xorg_cv_cc_flag__Werror_return_type
8149		if eval test \${$cacheid+y}
8150then :
8151  printf %s "(cached) " >&6
8152else case e in #(
8153  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8154/* end confdefs.h.  */
8155int i;
8156int
8157main (void)
8158{
8159
8160  ;
8161  return 0;
8162}
8163_ACEOF
8164if ac_fn_c_try_link "$LINENO"
8165then :
8166  eval $cacheid=yes
8167else case e in #(
8168  e) eval $cacheid=no ;;
8169esac
8170fi
8171rm -f core conftest.err conftest.$ac_objext conftest.beam \
8172    conftest$ac_exeext conftest.$ac_ext ;;
8173esac
8174fi
8175
8176
8177		CFLAGS="$xorg_testset_save_CFLAGS"
8178
8179		eval supported=\$$cacheid
8180		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8181printf "%s\n" "$supported" >&6; }
8182		if test "$supported" = "yes" ; then
8183			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8184			found="yes"
8185		fi
8186	fi
8187
8188	if test $found = "no" ; then
8189		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8190			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8191		fi
8192
8193		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8194			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8195		fi
8196
8197		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8198
8199		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8200printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8201		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8202		if eval test \${$cacheid+y}
8203then :
8204  printf %s "(cached) " >&6
8205else case e in #(
8206  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207/* end confdefs.h.  */
8208int i;
8209int
8210main (void)
8211{
8212
8213  ;
8214  return 0;
8215}
8216_ACEOF
8217if ac_fn_c_try_link "$LINENO"
8218then :
8219  eval $cacheid=yes
8220else case e in #(
8221  e) eval $cacheid=no ;;
8222esac
8223fi
8224rm -f core conftest.err conftest.$ac_objext conftest.beam \
8225    conftest$ac_exeext conftest.$ac_ext ;;
8226esac
8227fi
8228
8229
8230		CFLAGS="$xorg_testset_save_CFLAGS"
8231
8232		eval supported=\$$cacheid
8233		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8234printf "%s\n" "$supported" >&6; }
8235		if test "$supported" = "yes" ; then
8236			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8237			found="yes"
8238		fi
8239	fi
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255xorg_testset_save_CFLAGS="$CFLAGS"
8256
8257if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8258	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8259	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8260printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8261if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8262then :
8263  printf %s "(cached) " >&6
8264else case e in #(
8265  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266/* end confdefs.h.  */
8267int i;
8268_ACEOF
8269if ac_fn_c_try_compile "$LINENO"
8270then :
8271  xorg_cv_cc_flag_unknown_warning_option=yes
8272else case e in #(
8273  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8274esac
8275fi
8276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8277esac
8278fi
8279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8280printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8281	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8282	CFLAGS="$xorg_testset_save_CFLAGS"
8283fi
8284
8285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8286	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8287		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8288	fi
8289	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8290	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8291printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8292if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8293then :
8294  printf %s "(cached) " >&6
8295else case e in #(
8296  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8297/* end confdefs.h.  */
8298int i;
8299_ACEOF
8300if ac_fn_c_try_compile "$LINENO"
8301then :
8302  xorg_cv_cc_flag_unused_command_line_argument=yes
8303else case e in #(
8304  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8305esac
8306fi
8307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8308esac
8309fi
8310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8311printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8312	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8313	CFLAGS="$xorg_testset_save_CFLAGS"
8314fi
8315
8316found="no"
8317
8318	if test $found = "no" ; then
8319		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8320			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8321		fi
8322
8323		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8324			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8325		fi
8326
8327		CFLAGS="$CFLAGS -Werror=trigraphs"
8328
8329		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8330printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8331		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8332		if eval test \${$cacheid+y}
8333then :
8334  printf %s "(cached) " >&6
8335else case e in #(
8336  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337/* end confdefs.h.  */
8338int i;
8339int
8340main (void)
8341{
8342
8343  ;
8344  return 0;
8345}
8346_ACEOF
8347if ac_fn_c_try_link "$LINENO"
8348then :
8349  eval $cacheid=yes
8350else case e in #(
8351  e) eval $cacheid=no ;;
8352esac
8353fi
8354rm -f core conftest.err conftest.$ac_objext conftest.beam \
8355    conftest$ac_exeext conftest.$ac_ext ;;
8356esac
8357fi
8358
8359
8360		CFLAGS="$xorg_testset_save_CFLAGS"
8361
8362		eval supported=\$$cacheid
8363		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8364printf "%s\n" "$supported" >&6; }
8365		if test "$supported" = "yes" ; then
8366			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8367			found="yes"
8368		fi
8369	fi
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385xorg_testset_save_CFLAGS="$CFLAGS"
8386
8387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8388	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8389	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8390printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8391if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8392then :
8393  printf %s "(cached) " >&6
8394else case e in #(
8395  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396/* end confdefs.h.  */
8397int i;
8398_ACEOF
8399if ac_fn_c_try_compile "$LINENO"
8400then :
8401  xorg_cv_cc_flag_unknown_warning_option=yes
8402else case e in #(
8403  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8404esac
8405fi
8406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8407esac
8408fi
8409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8410printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8411	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8412	CFLAGS="$xorg_testset_save_CFLAGS"
8413fi
8414
8415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8416	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8417		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8418	fi
8419	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8420	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8421printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8422if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8423then :
8424  printf %s "(cached) " >&6
8425else case e in #(
8426  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427/* end confdefs.h.  */
8428int i;
8429_ACEOF
8430if ac_fn_c_try_compile "$LINENO"
8431then :
8432  xorg_cv_cc_flag_unused_command_line_argument=yes
8433else case e in #(
8434  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8435esac
8436fi
8437rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8438esac
8439fi
8440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8441printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8442	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8443	CFLAGS="$xorg_testset_save_CFLAGS"
8444fi
8445
8446found="no"
8447
8448	if test $found = "no" ; then
8449		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8450			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8451		fi
8452
8453		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8454			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8455		fi
8456
8457		CFLAGS="$CFLAGS -Werror=array-bounds"
8458
8459		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8460printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8461		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8462		if eval test \${$cacheid+y}
8463then :
8464  printf %s "(cached) " >&6
8465else case e in #(
8466  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467/* end confdefs.h.  */
8468int i;
8469int
8470main (void)
8471{
8472
8473  ;
8474  return 0;
8475}
8476_ACEOF
8477if ac_fn_c_try_link "$LINENO"
8478then :
8479  eval $cacheid=yes
8480else case e in #(
8481  e) eval $cacheid=no ;;
8482esac
8483fi
8484rm -f core conftest.err conftest.$ac_objext conftest.beam \
8485    conftest$ac_exeext conftest.$ac_ext ;;
8486esac
8487fi
8488
8489
8490		CFLAGS="$xorg_testset_save_CFLAGS"
8491
8492		eval supported=\$$cacheid
8493		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8494printf "%s\n" "$supported" >&6; }
8495		if test "$supported" = "yes" ; then
8496			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8497			found="yes"
8498		fi
8499	fi
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515xorg_testset_save_CFLAGS="$CFLAGS"
8516
8517if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8518	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8519	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8520printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8521if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8522then :
8523  printf %s "(cached) " >&6
8524else case e in #(
8525  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526/* end confdefs.h.  */
8527int i;
8528_ACEOF
8529if ac_fn_c_try_compile "$LINENO"
8530then :
8531  xorg_cv_cc_flag_unknown_warning_option=yes
8532else case e in #(
8533  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8534esac
8535fi
8536rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8537esac
8538fi
8539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8540printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8541	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8542	CFLAGS="$xorg_testset_save_CFLAGS"
8543fi
8544
8545if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8546	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8547		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8548	fi
8549	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8550	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8551printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8552if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8553then :
8554  printf %s "(cached) " >&6
8555else case e in #(
8556  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8557/* end confdefs.h.  */
8558int i;
8559_ACEOF
8560if ac_fn_c_try_compile "$LINENO"
8561then :
8562  xorg_cv_cc_flag_unused_command_line_argument=yes
8563else case e in #(
8564  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8565esac
8566fi
8567rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8568esac
8569fi
8570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8571printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8572	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8573	CFLAGS="$xorg_testset_save_CFLAGS"
8574fi
8575
8576found="no"
8577
8578	if test $found = "no" ; then
8579		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8580			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8581		fi
8582
8583		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8584			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8585		fi
8586
8587		CFLAGS="$CFLAGS -Werror=write-strings"
8588
8589		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8590printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8591		cacheid=xorg_cv_cc_flag__Werror_write_strings
8592		if eval test \${$cacheid+y}
8593then :
8594  printf %s "(cached) " >&6
8595else case e in #(
8596  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597/* end confdefs.h.  */
8598int i;
8599int
8600main (void)
8601{
8602
8603  ;
8604  return 0;
8605}
8606_ACEOF
8607if ac_fn_c_try_link "$LINENO"
8608then :
8609  eval $cacheid=yes
8610else case e in #(
8611  e) eval $cacheid=no ;;
8612esac
8613fi
8614rm -f core conftest.err conftest.$ac_objext conftest.beam \
8615    conftest$ac_exeext conftest.$ac_ext ;;
8616esac
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=write-strings"
8627			found="yes"
8628		fi
8629	fi
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645xorg_testset_save_CFLAGS="$CFLAGS"
8646
8647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8648	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8649	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8650printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8651if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8652then :
8653  printf %s "(cached) " >&6
8654else case e in #(
8655  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656/* end confdefs.h.  */
8657int i;
8658_ACEOF
8659if ac_fn_c_try_compile "$LINENO"
8660then :
8661  xorg_cv_cc_flag_unknown_warning_option=yes
8662else case e in #(
8663  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8664esac
8665fi
8666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8667esac
8668fi
8669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8670printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8671	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8672	CFLAGS="$xorg_testset_save_CFLAGS"
8673fi
8674
8675if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8676	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8677		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8678	fi
8679	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8680	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8681printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8682if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8683then :
8684  printf %s "(cached) " >&6
8685else case e in #(
8686  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687/* end confdefs.h.  */
8688int i;
8689_ACEOF
8690if ac_fn_c_try_compile "$LINENO"
8691then :
8692  xorg_cv_cc_flag_unused_command_line_argument=yes
8693else case e in #(
8694  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8695esac
8696fi
8697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8698esac
8699fi
8700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8701printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8702	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8703	CFLAGS="$xorg_testset_save_CFLAGS"
8704fi
8705
8706found="no"
8707
8708	if test $found = "no" ; then
8709		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8710			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8711		fi
8712
8713		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8714			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8715		fi
8716
8717		CFLAGS="$CFLAGS -Werror=address"
8718
8719		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8720printf %s "checking if $CC supports -Werror=address... " >&6; }
8721		cacheid=xorg_cv_cc_flag__Werror_address
8722		if eval test \${$cacheid+y}
8723then :
8724  printf %s "(cached) " >&6
8725else case e in #(
8726  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727/* end confdefs.h.  */
8728int i;
8729int
8730main (void)
8731{
8732
8733  ;
8734  return 0;
8735}
8736_ACEOF
8737if ac_fn_c_try_link "$LINENO"
8738then :
8739  eval $cacheid=yes
8740else case e in #(
8741  e) eval $cacheid=no ;;
8742esac
8743fi
8744rm -f core conftest.err conftest.$ac_objext conftest.beam \
8745    conftest$ac_exeext conftest.$ac_ext ;;
8746esac
8747fi
8748
8749
8750		CFLAGS="$xorg_testset_save_CFLAGS"
8751
8752		eval supported=\$$cacheid
8753		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8754printf "%s\n" "$supported" >&6; }
8755		if test "$supported" = "yes" ; then
8756			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8757			found="yes"
8758		fi
8759	fi
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775xorg_testset_save_CFLAGS="$CFLAGS"
8776
8777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8778	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8779	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8780printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8781if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8782then :
8783  printf %s "(cached) " >&6
8784else case e in #(
8785  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786/* end confdefs.h.  */
8787int i;
8788_ACEOF
8789if ac_fn_c_try_compile "$LINENO"
8790then :
8791  xorg_cv_cc_flag_unknown_warning_option=yes
8792else case e in #(
8793  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8794esac
8795fi
8796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8797esac
8798fi
8799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8800printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8801	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8802	CFLAGS="$xorg_testset_save_CFLAGS"
8803fi
8804
8805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8806	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8807		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8808	fi
8809	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8810	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8811printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8812if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8813then :
8814  printf %s "(cached) " >&6
8815else case e in #(
8816  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817/* end confdefs.h.  */
8818int i;
8819_ACEOF
8820if ac_fn_c_try_compile "$LINENO"
8821then :
8822  xorg_cv_cc_flag_unused_command_line_argument=yes
8823else case e in #(
8824  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8825esac
8826fi
8827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8828esac
8829fi
8830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8831printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8832	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8833	CFLAGS="$xorg_testset_save_CFLAGS"
8834fi
8835
8836found="no"
8837
8838	if test $found = "no" ; then
8839		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8840			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8841		fi
8842
8843		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8844			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8845		fi
8846
8847		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8848
8849		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8850printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8851		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8852		if eval test \${$cacheid+y}
8853then :
8854  printf %s "(cached) " >&6
8855else case e in #(
8856  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857/* end confdefs.h.  */
8858int i;
8859int
8860main (void)
8861{
8862
8863  ;
8864  return 0;
8865}
8866_ACEOF
8867if ac_fn_c_try_link "$LINENO"
8868then :
8869  eval $cacheid=yes
8870else case e in #(
8871  e) eval $cacheid=no ;;
8872esac
8873fi
8874rm -f core conftest.err conftest.$ac_objext conftest.beam \
8875    conftest$ac_exeext conftest.$ac_ext ;;
8876esac
8877fi
8878
8879
8880		CFLAGS="$xorg_testset_save_CFLAGS"
8881
8882		eval supported=\$$cacheid
8883		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8884printf "%s\n" "$supported" >&6; }
8885		if test "$supported" = "yes" ; then
8886			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8887			found="yes"
8888		fi
8889	fi
8890
8891	if test $found = "no" ; then
8892		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8893			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8894		fi
8895
8896		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8897			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8898		fi
8899
8900		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8901
8902		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8903printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8904		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8905		if eval test \${$cacheid+y}
8906then :
8907  printf %s "(cached) " >&6
8908else case e in #(
8909  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910/* end confdefs.h.  */
8911int i;
8912int
8913main (void)
8914{
8915
8916  ;
8917  return 0;
8918}
8919_ACEOF
8920if ac_fn_c_try_link "$LINENO"
8921then :
8922  eval $cacheid=yes
8923else case e in #(
8924  e) eval $cacheid=no ;;
8925esac
8926fi
8927rm -f core conftest.err conftest.$ac_objext conftest.beam \
8928    conftest$ac_exeext conftest.$ac_ext ;;
8929esac
8930fi
8931
8932
8933		CFLAGS="$xorg_testset_save_CFLAGS"
8934
8935		eval supported=\$$cacheid
8936		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8937printf "%s\n" "$supported" >&6; }
8938		if test "$supported" = "yes" ; then
8939			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8940			found="yes"
8941		fi
8942	fi
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958xorg_testset_save_CFLAGS="$CFLAGS"
8959
8960if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8961	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8962	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8963printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8964if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8965then :
8966  printf %s "(cached) " >&6
8967else case e in #(
8968  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969/* end confdefs.h.  */
8970int i;
8971_ACEOF
8972if ac_fn_c_try_compile "$LINENO"
8973then :
8974  xorg_cv_cc_flag_unknown_warning_option=yes
8975else case e in #(
8976  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8977esac
8978fi
8979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8980esac
8981fi
8982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8983printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8984	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8985	CFLAGS="$xorg_testset_save_CFLAGS"
8986fi
8987
8988if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8989	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8990		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8991	fi
8992	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8993	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8994printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8995if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8996then :
8997  printf %s "(cached) " >&6
8998else case e in #(
8999  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000/* end confdefs.h.  */
9001int i;
9002_ACEOF
9003if ac_fn_c_try_compile "$LINENO"
9004then :
9005  xorg_cv_cc_flag_unused_command_line_argument=yes
9006else case e in #(
9007  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9008esac
9009fi
9010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9011esac
9012fi
9013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9014printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9015	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9016	CFLAGS="$xorg_testset_save_CFLAGS"
9017fi
9018
9019found="no"
9020
9021	if test $found = "no" ; then
9022		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9023			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9024		fi
9025
9026		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9027			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9028		fi
9029
9030		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9031
9032		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9033printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9034		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9035		if eval test \${$cacheid+y}
9036then :
9037  printf %s "(cached) " >&6
9038else case e in #(
9039  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040/* end confdefs.h.  */
9041int i;
9042int
9043main (void)
9044{
9045
9046  ;
9047  return 0;
9048}
9049_ACEOF
9050if ac_fn_c_try_link "$LINENO"
9051then :
9052  eval $cacheid=yes
9053else case e in #(
9054  e) eval $cacheid=no ;;
9055esac
9056fi
9057rm -f core conftest.err conftest.$ac_objext conftest.beam \
9058    conftest$ac_exeext conftest.$ac_ext ;;
9059esac
9060fi
9061
9062
9063		CFLAGS="$xorg_testset_save_CFLAGS"
9064
9065		eval supported=\$$cacheid
9066		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9067printf "%s\n" "$supported" >&6; }
9068		if test "$supported" = "yes" ; then
9069			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9070			found="yes"
9071		fi
9072	fi
9073
9074 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9075else
9076{ 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
9077printf "%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;}
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091xorg_testset_save_CFLAGS="$CFLAGS"
9092
9093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9094	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9095	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9096printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9097if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9098then :
9099  printf %s "(cached) " >&6
9100else case e in #(
9101  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102/* end confdefs.h.  */
9103int i;
9104_ACEOF
9105if ac_fn_c_try_compile "$LINENO"
9106then :
9107  xorg_cv_cc_flag_unknown_warning_option=yes
9108else case e in #(
9109  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9110esac
9111fi
9112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9113esac
9114fi
9115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9116printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9117	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9118	CFLAGS="$xorg_testset_save_CFLAGS"
9119fi
9120
9121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9122	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9123		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9124	fi
9125	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9126	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9127printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9128if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9129then :
9130  printf %s "(cached) " >&6
9131else case e in #(
9132  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9133/* end confdefs.h.  */
9134int i;
9135_ACEOF
9136if ac_fn_c_try_compile "$LINENO"
9137then :
9138  xorg_cv_cc_flag_unused_command_line_argument=yes
9139else case e in #(
9140  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9141esac
9142fi
9143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9144esac
9145fi
9146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9147printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9148	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9149	CFLAGS="$xorg_testset_save_CFLAGS"
9150fi
9151
9152found="no"
9153
9154	if test $found = "no" ; then
9155		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9156			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9157		fi
9158
9159		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9160			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9161		fi
9162
9163		CFLAGS="$CFLAGS -Wimplicit"
9164
9165		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9166printf %s "checking if $CC supports -Wimplicit... " >&6; }
9167		cacheid=xorg_cv_cc_flag__Wimplicit
9168		if eval test \${$cacheid+y}
9169then :
9170  printf %s "(cached) " >&6
9171else case e in #(
9172  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173/* end confdefs.h.  */
9174int i;
9175int
9176main (void)
9177{
9178
9179  ;
9180  return 0;
9181}
9182_ACEOF
9183if ac_fn_c_try_link "$LINENO"
9184then :
9185  eval $cacheid=yes
9186else case e in #(
9187  e) eval $cacheid=no ;;
9188esac
9189fi
9190rm -f core conftest.err conftest.$ac_objext conftest.beam \
9191    conftest$ac_exeext conftest.$ac_ext ;;
9192esac
9193fi
9194
9195
9196		CFLAGS="$xorg_testset_save_CFLAGS"
9197
9198		eval supported=\$$cacheid
9199		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9200printf "%s\n" "$supported" >&6; }
9201		if test "$supported" = "yes" ; then
9202			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9203			found="yes"
9204		fi
9205	fi
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221xorg_testset_save_CFLAGS="$CFLAGS"
9222
9223if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9224	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9225	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9226printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9227if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9228then :
9229  printf %s "(cached) " >&6
9230else case e in #(
9231  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232/* end confdefs.h.  */
9233int i;
9234_ACEOF
9235if ac_fn_c_try_compile "$LINENO"
9236then :
9237  xorg_cv_cc_flag_unknown_warning_option=yes
9238else case e in #(
9239  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9240esac
9241fi
9242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9243esac
9244fi
9245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9246printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9247	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9248	CFLAGS="$xorg_testset_save_CFLAGS"
9249fi
9250
9251if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9252	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9253		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9254	fi
9255	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9256	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9257printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9258if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9259then :
9260  printf %s "(cached) " >&6
9261else case e in #(
9262  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263/* end confdefs.h.  */
9264int i;
9265_ACEOF
9266if ac_fn_c_try_compile "$LINENO"
9267then :
9268  xorg_cv_cc_flag_unused_command_line_argument=yes
9269else case e in #(
9270  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9271esac
9272fi
9273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9274esac
9275fi
9276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9277printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9278	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9279	CFLAGS="$xorg_testset_save_CFLAGS"
9280fi
9281
9282found="no"
9283
9284	if test $found = "no" ; then
9285		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9286			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9287		fi
9288
9289		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9290			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9291		fi
9292
9293		CFLAGS="$CFLAGS -Wnonnull"
9294
9295		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9296printf %s "checking if $CC supports -Wnonnull... " >&6; }
9297		cacheid=xorg_cv_cc_flag__Wnonnull
9298		if eval test \${$cacheid+y}
9299then :
9300  printf %s "(cached) " >&6
9301else case e in #(
9302  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303/* end confdefs.h.  */
9304int i;
9305int
9306main (void)
9307{
9308
9309  ;
9310  return 0;
9311}
9312_ACEOF
9313if ac_fn_c_try_link "$LINENO"
9314then :
9315  eval $cacheid=yes
9316else case e in #(
9317  e) eval $cacheid=no ;;
9318esac
9319fi
9320rm -f core conftest.err conftest.$ac_objext conftest.beam \
9321    conftest$ac_exeext conftest.$ac_ext ;;
9322esac
9323fi
9324
9325
9326		CFLAGS="$xorg_testset_save_CFLAGS"
9327
9328		eval supported=\$$cacheid
9329		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9330printf "%s\n" "$supported" >&6; }
9331		if test "$supported" = "yes" ; then
9332			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9333			found="yes"
9334		fi
9335	fi
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351xorg_testset_save_CFLAGS="$CFLAGS"
9352
9353if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9354	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9355	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9356printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9357if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9358then :
9359  printf %s "(cached) " >&6
9360else case e in #(
9361  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362/* end confdefs.h.  */
9363int i;
9364_ACEOF
9365if ac_fn_c_try_compile "$LINENO"
9366then :
9367  xorg_cv_cc_flag_unknown_warning_option=yes
9368else case e in #(
9369  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9370esac
9371fi
9372rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9373esac
9374fi
9375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9376printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9377	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9378	CFLAGS="$xorg_testset_save_CFLAGS"
9379fi
9380
9381if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9382	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9383		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9384	fi
9385	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9386	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9387printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9388if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9389then :
9390  printf %s "(cached) " >&6
9391else case e in #(
9392  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393/* end confdefs.h.  */
9394int i;
9395_ACEOF
9396if ac_fn_c_try_compile "$LINENO"
9397then :
9398  xorg_cv_cc_flag_unused_command_line_argument=yes
9399else case e in #(
9400  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9401esac
9402fi
9403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9404esac
9405fi
9406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9407printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9408	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9409	CFLAGS="$xorg_testset_save_CFLAGS"
9410fi
9411
9412found="no"
9413
9414	if test $found = "no" ; then
9415		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9416			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9417		fi
9418
9419		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9420			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9421		fi
9422
9423		CFLAGS="$CFLAGS -Winit-self"
9424
9425		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9426printf %s "checking if $CC supports -Winit-self... " >&6; }
9427		cacheid=xorg_cv_cc_flag__Winit_self
9428		if eval test \${$cacheid+y}
9429then :
9430  printf %s "(cached) " >&6
9431else case e in #(
9432  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433/* end confdefs.h.  */
9434int i;
9435int
9436main (void)
9437{
9438
9439  ;
9440  return 0;
9441}
9442_ACEOF
9443if ac_fn_c_try_link "$LINENO"
9444then :
9445  eval $cacheid=yes
9446else case e in #(
9447  e) eval $cacheid=no ;;
9448esac
9449fi
9450rm -f core conftest.err conftest.$ac_objext conftest.beam \
9451    conftest$ac_exeext conftest.$ac_ext ;;
9452esac
9453fi
9454
9455
9456		CFLAGS="$xorg_testset_save_CFLAGS"
9457
9458		eval supported=\$$cacheid
9459		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9460printf "%s\n" "$supported" >&6; }
9461		if test "$supported" = "yes" ; then
9462			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9463			found="yes"
9464		fi
9465	fi
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481xorg_testset_save_CFLAGS="$CFLAGS"
9482
9483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9484	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9485	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9486printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9487if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9488then :
9489  printf %s "(cached) " >&6
9490else case e in #(
9491  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9492/* end confdefs.h.  */
9493int i;
9494_ACEOF
9495if ac_fn_c_try_compile "$LINENO"
9496then :
9497  xorg_cv_cc_flag_unknown_warning_option=yes
9498else case e in #(
9499  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9500esac
9501fi
9502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9503esac
9504fi
9505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9506printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9507	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9508	CFLAGS="$xorg_testset_save_CFLAGS"
9509fi
9510
9511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9512	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9513		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9514	fi
9515	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9516	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9517printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9518if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9519then :
9520  printf %s "(cached) " >&6
9521else case e in #(
9522  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9523/* end confdefs.h.  */
9524int i;
9525_ACEOF
9526if ac_fn_c_try_compile "$LINENO"
9527then :
9528  xorg_cv_cc_flag_unused_command_line_argument=yes
9529else case e in #(
9530  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9531esac
9532fi
9533rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9534esac
9535fi
9536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9537printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9538	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9539	CFLAGS="$xorg_testset_save_CFLAGS"
9540fi
9541
9542found="no"
9543
9544	if test $found = "no" ; then
9545		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9546			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9547		fi
9548
9549		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9550			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9551		fi
9552
9553		CFLAGS="$CFLAGS -Wmain"
9554
9555		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9556printf %s "checking if $CC supports -Wmain... " >&6; }
9557		cacheid=xorg_cv_cc_flag__Wmain
9558		if eval test \${$cacheid+y}
9559then :
9560  printf %s "(cached) " >&6
9561else case e in #(
9562  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563/* end confdefs.h.  */
9564int i;
9565int
9566main (void)
9567{
9568
9569  ;
9570  return 0;
9571}
9572_ACEOF
9573if ac_fn_c_try_link "$LINENO"
9574then :
9575  eval $cacheid=yes
9576else case e in #(
9577  e) eval $cacheid=no ;;
9578esac
9579fi
9580rm -f core conftest.err conftest.$ac_objext conftest.beam \
9581    conftest$ac_exeext conftest.$ac_ext ;;
9582esac
9583fi
9584
9585
9586		CFLAGS="$xorg_testset_save_CFLAGS"
9587
9588		eval supported=\$$cacheid
9589		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9590printf "%s\n" "$supported" >&6; }
9591		if test "$supported" = "yes" ; then
9592			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9593			found="yes"
9594		fi
9595	fi
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611xorg_testset_save_CFLAGS="$CFLAGS"
9612
9613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9614	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9615	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9616printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9617if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9618then :
9619  printf %s "(cached) " >&6
9620else case e in #(
9621  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622/* end confdefs.h.  */
9623int i;
9624_ACEOF
9625if ac_fn_c_try_compile "$LINENO"
9626then :
9627  xorg_cv_cc_flag_unknown_warning_option=yes
9628else case e in #(
9629  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9630esac
9631fi
9632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9633esac
9634fi
9635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9636printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9637	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9638	CFLAGS="$xorg_testset_save_CFLAGS"
9639fi
9640
9641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9642	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9643		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9644	fi
9645	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9646	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9647printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9648if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9649then :
9650  printf %s "(cached) " >&6
9651else case e in #(
9652  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653/* end confdefs.h.  */
9654int i;
9655_ACEOF
9656if ac_fn_c_try_compile "$LINENO"
9657then :
9658  xorg_cv_cc_flag_unused_command_line_argument=yes
9659else case e in #(
9660  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9661esac
9662fi
9663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9664esac
9665fi
9666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9667printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9668	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9669	CFLAGS="$xorg_testset_save_CFLAGS"
9670fi
9671
9672found="no"
9673
9674	if test $found = "no" ; then
9675		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9676			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9677		fi
9678
9679		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9680			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9681		fi
9682
9683		CFLAGS="$CFLAGS -Wmissing-braces"
9684
9685		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9686printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9687		cacheid=xorg_cv_cc_flag__Wmissing_braces
9688		if eval test \${$cacheid+y}
9689then :
9690  printf %s "(cached) " >&6
9691else case e in #(
9692  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693/* end confdefs.h.  */
9694int i;
9695int
9696main (void)
9697{
9698
9699  ;
9700  return 0;
9701}
9702_ACEOF
9703if ac_fn_c_try_link "$LINENO"
9704then :
9705  eval $cacheid=yes
9706else case e in #(
9707  e) eval $cacheid=no ;;
9708esac
9709fi
9710rm -f core conftest.err conftest.$ac_objext conftest.beam \
9711    conftest$ac_exeext conftest.$ac_ext ;;
9712esac
9713fi
9714
9715
9716		CFLAGS="$xorg_testset_save_CFLAGS"
9717
9718		eval supported=\$$cacheid
9719		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9720printf "%s\n" "$supported" >&6; }
9721		if test "$supported" = "yes" ; then
9722			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9723			found="yes"
9724		fi
9725	fi
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741xorg_testset_save_CFLAGS="$CFLAGS"
9742
9743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9744	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9745	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9746printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9747if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9748then :
9749  printf %s "(cached) " >&6
9750else case e in #(
9751  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752/* end confdefs.h.  */
9753int i;
9754_ACEOF
9755if ac_fn_c_try_compile "$LINENO"
9756then :
9757  xorg_cv_cc_flag_unknown_warning_option=yes
9758else case e in #(
9759  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9760esac
9761fi
9762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9763esac
9764fi
9765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9766printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9767	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9768	CFLAGS="$xorg_testset_save_CFLAGS"
9769fi
9770
9771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9772	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9773		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9774	fi
9775	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9776	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9777printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9778if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9779then :
9780  printf %s "(cached) " >&6
9781else case e in #(
9782  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783/* end confdefs.h.  */
9784int i;
9785_ACEOF
9786if ac_fn_c_try_compile "$LINENO"
9787then :
9788  xorg_cv_cc_flag_unused_command_line_argument=yes
9789else case e in #(
9790  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9791esac
9792fi
9793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9794esac
9795fi
9796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9797printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9798	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9799	CFLAGS="$xorg_testset_save_CFLAGS"
9800fi
9801
9802found="no"
9803
9804	if test $found = "no" ; then
9805		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9806			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9807		fi
9808
9809		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9810			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9811		fi
9812
9813		CFLAGS="$CFLAGS -Wsequence-point"
9814
9815		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9816printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9817		cacheid=xorg_cv_cc_flag__Wsequence_point
9818		if eval test \${$cacheid+y}
9819then :
9820  printf %s "(cached) " >&6
9821else case e in #(
9822  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823/* end confdefs.h.  */
9824int i;
9825int
9826main (void)
9827{
9828
9829  ;
9830  return 0;
9831}
9832_ACEOF
9833if ac_fn_c_try_link "$LINENO"
9834then :
9835  eval $cacheid=yes
9836else case e in #(
9837  e) eval $cacheid=no ;;
9838esac
9839fi
9840rm -f core conftest.err conftest.$ac_objext conftest.beam \
9841    conftest$ac_exeext conftest.$ac_ext ;;
9842esac
9843fi
9844
9845
9846		CFLAGS="$xorg_testset_save_CFLAGS"
9847
9848		eval supported=\$$cacheid
9849		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9850printf "%s\n" "$supported" >&6; }
9851		if test "$supported" = "yes" ; then
9852			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9853			found="yes"
9854		fi
9855	fi
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871xorg_testset_save_CFLAGS="$CFLAGS"
9872
9873if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9874	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9875	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9876printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9877if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9878then :
9879  printf %s "(cached) " >&6
9880else case e in #(
9881  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882/* end confdefs.h.  */
9883int i;
9884_ACEOF
9885if ac_fn_c_try_compile "$LINENO"
9886then :
9887  xorg_cv_cc_flag_unknown_warning_option=yes
9888else case e in #(
9889  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9890esac
9891fi
9892rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9893esac
9894fi
9895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9896printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9897	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9898	CFLAGS="$xorg_testset_save_CFLAGS"
9899fi
9900
9901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9902	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9903		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9904	fi
9905	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9906	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9907printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9908if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9909then :
9910  printf %s "(cached) " >&6
9911else case e in #(
9912  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913/* end confdefs.h.  */
9914int i;
9915_ACEOF
9916if ac_fn_c_try_compile "$LINENO"
9917then :
9918  xorg_cv_cc_flag_unused_command_line_argument=yes
9919else case e in #(
9920  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9921esac
9922fi
9923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9924esac
9925fi
9926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9927printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9928	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9929	CFLAGS="$xorg_testset_save_CFLAGS"
9930fi
9931
9932found="no"
9933
9934	if test $found = "no" ; then
9935		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9936			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9937		fi
9938
9939		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9940			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9941		fi
9942
9943		CFLAGS="$CFLAGS -Wreturn-type"
9944
9945		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9946printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9947		cacheid=xorg_cv_cc_flag__Wreturn_type
9948		if eval test \${$cacheid+y}
9949then :
9950  printf %s "(cached) " >&6
9951else case e in #(
9952  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953/* end confdefs.h.  */
9954int i;
9955int
9956main (void)
9957{
9958
9959  ;
9960  return 0;
9961}
9962_ACEOF
9963if ac_fn_c_try_link "$LINENO"
9964then :
9965  eval $cacheid=yes
9966else case e in #(
9967  e) eval $cacheid=no ;;
9968esac
9969fi
9970rm -f core conftest.err conftest.$ac_objext conftest.beam \
9971    conftest$ac_exeext conftest.$ac_ext ;;
9972esac
9973fi
9974
9975
9976		CFLAGS="$xorg_testset_save_CFLAGS"
9977
9978		eval supported=\$$cacheid
9979		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9980printf "%s\n" "$supported" >&6; }
9981		if test "$supported" = "yes" ; then
9982			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9983			found="yes"
9984		fi
9985	fi
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001xorg_testset_save_CFLAGS="$CFLAGS"
10002
10003if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10004	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10005	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10006printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10007if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10008then :
10009  printf %s "(cached) " >&6
10010else case e in #(
10011  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012/* end confdefs.h.  */
10013int i;
10014_ACEOF
10015if ac_fn_c_try_compile "$LINENO"
10016then :
10017  xorg_cv_cc_flag_unknown_warning_option=yes
10018else case e in #(
10019  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10020esac
10021fi
10022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10023esac
10024fi
10025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10026printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10027	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10028	CFLAGS="$xorg_testset_save_CFLAGS"
10029fi
10030
10031if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10032	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10033		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10034	fi
10035	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10036	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10037printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10038if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10039then :
10040  printf %s "(cached) " >&6
10041else case e in #(
10042  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10043/* end confdefs.h.  */
10044int i;
10045_ACEOF
10046if ac_fn_c_try_compile "$LINENO"
10047then :
10048  xorg_cv_cc_flag_unused_command_line_argument=yes
10049else case e in #(
10050  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10051esac
10052fi
10053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10054esac
10055fi
10056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10057printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10058	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10059	CFLAGS="$xorg_testset_save_CFLAGS"
10060fi
10061
10062found="no"
10063
10064	if test $found = "no" ; then
10065		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10066			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10067		fi
10068
10069		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10070			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10071		fi
10072
10073		CFLAGS="$CFLAGS -Wtrigraphs"
10074
10075		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10076printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10077		cacheid=xorg_cv_cc_flag__Wtrigraphs
10078		if eval test \${$cacheid+y}
10079then :
10080  printf %s "(cached) " >&6
10081else case e in #(
10082  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10083/* end confdefs.h.  */
10084int i;
10085int
10086main (void)
10087{
10088
10089  ;
10090  return 0;
10091}
10092_ACEOF
10093if ac_fn_c_try_link "$LINENO"
10094then :
10095  eval $cacheid=yes
10096else case e in #(
10097  e) eval $cacheid=no ;;
10098esac
10099fi
10100rm -f core conftest.err conftest.$ac_objext conftest.beam \
10101    conftest$ac_exeext conftest.$ac_ext ;;
10102esac
10103fi
10104
10105
10106		CFLAGS="$xorg_testset_save_CFLAGS"
10107
10108		eval supported=\$$cacheid
10109		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10110printf "%s\n" "$supported" >&6; }
10111		if test "$supported" = "yes" ; then
10112			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10113			found="yes"
10114		fi
10115	fi
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131xorg_testset_save_CFLAGS="$CFLAGS"
10132
10133if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10134	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10135	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10136printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10137if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10138then :
10139  printf %s "(cached) " >&6
10140else case e in #(
10141  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142/* end confdefs.h.  */
10143int i;
10144_ACEOF
10145if ac_fn_c_try_compile "$LINENO"
10146then :
10147  xorg_cv_cc_flag_unknown_warning_option=yes
10148else case e in #(
10149  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10150esac
10151fi
10152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10153esac
10154fi
10155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10156printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10157	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10158	CFLAGS="$xorg_testset_save_CFLAGS"
10159fi
10160
10161if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10162	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10163		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10164	fi
10165	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10166	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10167printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10168if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10169then :
10170  printf %s "(cached) " >&6
10171else case e in #(
10172  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10173/* end confdefs.h.  */
10174int i;
10175_ACEOF
10176if ac_fn_c_try_compile "$LINENO"
10177then :
10178  xorg_cv_cc_flag_unused_command_line_argument=yes
10179else case e in #(
10180  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10181esac
10182fi
10183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10184esac
10185fi
10186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10187printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10188	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10189	CFLAGS="$xorg_testset_save_CFLAGS"
10190fi
10191
10192found="no"
10193
10194	if test $found = "no" ; then
10195		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10196			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10197		fi
10198
10199		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10200			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10201		fi
10202
10203		CFLAGS="$CFLAGS -Warray-bounds"
10204
10205		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10206printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10207		cacheid=xorg_cv_cc_flag__Warray_bounds
10208		if eval test \${$cacheid+y}
10209then :
10210  printf %s "(cached) " >&6
10211else case e in #(
10212  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213/* end confdefs.h.  */
10214int i;
10215int
10216main (void)
10217{
10218
10219  ;
10220  return 0;
10221}
10222_ACEOF
10223if ac_fn_c_try_link "$LINENO"
10224then :
10225  eval $cacheid=yes
10226else case e in #(
10227  e) eval $cacheid=no ;;
10228esac
10229fi
10230rm -f core conftest.err conftest.$ac_objext conftest.beam \
10231    conftest$ac_exeext conftest.$ac_ext ;;
10232esac
10233fi
10234
10235
10236		CFLAGS="$xorg_testset_save_CFLAGS"
10237
10238		eval supported=\$$cacheid
10239		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10240printf "%s\n" "$supported" >&6; }
10241		if test "$supported" = "yes" ; then
10242			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10243			found="yes"
10244		fi
10245	fi
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261xorg_testset_save_CFLAGS="$CFLAGS"
10262
10263if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10264	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10265	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10266printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10267if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10268then :
10269  printf %s "(cached) " >&6
10270else case e in #(
10271  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272/* end confdefs.h.  */
10273int i;
10274_ACEOF
10275if ac_fn_c_try_compile "$LINENO"
10276then :
10277  xorg_cv_cc_flag_unknown_warning_option=yes
10278else case e in #(
10279  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10280esac
10281fi
10282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10283esac
10284fi
10285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10286printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10287	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10288	CFLAGS="$xorg_testset_save_CFLAGS"
10289fi
10290
10291if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10292	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10293		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10294	fi
10295	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10296	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10297printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10298if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10299then :
10300  printf %s "(cached) " >&6
10301else case e in #(
10302  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303/* end confdefs.h.  */
10304int i;
10305_ACEOF
10306if ac_fn_c_try_compile "$LINENO"
10307then :
10308  xorg_cv_cc_flag_unused_command_line_argument=yes
10309else case e in #(
10310  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10311esac
10312fi
10313rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10314esac
10315fi
10316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10317printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10318	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10319	CFLAGS="$xorg_testset_save_CFLAGS"
10320fi
10321
10322found="no"
10323
10324	if test $found = "no" ; then
10325		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10326			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10327		fi
10328
10329		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10330			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10331		fi
10332
10333		CFLAGS="$CFLAGS -Wwrite-strings"
10334
10335		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10336printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10337		cacheid=xorg_cv_cc_flag__Wwrite_strings
10338		if eval test \${$cacheid+y}
10339then :
10340  printf %s "(cached) " >&6
10341else case e in #(
10342  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343/* end confdefs.h.  */
10344int i;
10345int
10346main (void)
10347{
10348
10349  ;
10350  return 0;
10351}
10352_ACEOF
10353if ac_fn_c_try_link "$LINENO"
10354then :
10355  eval $cacheid=yes
10356else case e in #(
10357  e) eval $cacheid=no ;;
10358esac
10359fi
10360rm -f core conftest.err conftest.$ac_objext conftest.beam \
10361    conftest$ac_exeext conftest.$ac_ext ;;
10362esac
10363fi
10364
10365
10366		CFLAGS="$xorg_testset_save_CFLAGS"
10367
10368		eval supported=\$$cacheid
10369		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10370printf "%s\n" "$supported" >&6; }
10371		if test "$supported" = "yes" ; then
10372			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10373			found="yes"
10374		fi
10375	fi
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391xorg_testset_save_CFLAGS="$CFLAGS"
10392
10393if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10394	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10395	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10396printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10397if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10398then :
10399  printf %s "(cached) " >&6
10400else case e in #(
10401  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402/* end confdefs.h.  */
10403int i;
10404_ACEOF
10405if ac_fn_c_try_compile "$LINENO"
10406then :
10407  xorg_cv_cc_flag_unknown_warning_option=yes
10408else case e in #(
10409  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10410esac
10411fi
10412rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10413esac
10414fi
10415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10416printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10417	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10418	CFLAGS="$xorg_testset_save_CFLAGS"
10419fi
10420
10421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10422	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10423		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10424	fi
10425	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10426	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10427printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10428if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10429then :
10430  printf %s "(cached) " >&6
10431else case e in #(
10432  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433/* end confdefs.h.  */
10434int i;
10435_ACEOF
10436if ac_fn_c_try_compile "$LINENO"
10437then :
10438  xorg_cv_cc_flag_unused_command_line_argument=yes
10439else case e in #(
10440  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10441esac
10442fi
10443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10444esac
10445fi
10446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10447printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10448	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10449	CFLAGS="$xorg_testset_save_CFLAGS"
10450fi
10451
10452found="no"
10453
10454	if test $found = "no" ; then
10455		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10456			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10457		fi
10458
10459		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10460			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10461		fi
10462
10463		CFLAGS="$CFLAGS -Waddress"
10464
10465		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10466printf %s "checking if $CC supports -Waddress... " >&6; }
10467		cacheid=xorg_cv_cc_flag__Waddress
10468		if eval test \${$cacheid+y}
10469then :
10470  printf %s "(cached) " >&6
10471else case e in #(
10472  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10473/* end confdefs.h.  */
10474int i;
10475int
10476main (void)
10477{
10478
10479  ;
10480  return 0;
10481}
10482_ACEOF
10483if ac_fn_c_try_link "$LINENO"
10484then :
10485  eval $cacheid=yes
10486else case e in #(
10487  e) eval $cacheid=no ;;
10488esac
10489fi
10490rm -f core conftest.err conftest.$ac_objext conftest.beam \
10491    conftest$ac_exeext conftest.$ac_ext ;;
10492esac
10493fi
10494
10495
10496		CFLAGS="$xorg_testset_save_CFLAGS"
10497
10498		eval supported=\$$cacheid
10499		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10500printf "%s\n" "$supported" >&6; }
10501		if test "$supported" = "yes" ; then
10502			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10503			found="yes"
10504		fi
10505	fi
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521xorg_testset_save_CFLAGS="$CFLAGS"
10522
10523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10524	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10525	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10526printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10527if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10528then :
10529  printf %s "(cached) " >&6
10530else case e in #(
10531  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532/* end confdefs.h.  */
10533int i;
10534_ACEOF
10535if ac_fn_c_try_compile "$LINENO"
10536then :
10537  xorg_cv_cc_flag_unknown_warning_option=yes
10538else case e in #(
10539  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10540esac
10541fi
10542rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10543esac
10544fi
10545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10546printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10547	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10548	CFLAGS="$xorg_testset_save_CFLAGS"
10549fi
10550
10551if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10552	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10553		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10554	fi
10555	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10556	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10557printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10558if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10559then :
10560  printf %s "(cached) " >&6
10561else case e in #(
10562  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563/* end confdefs.h.  */
10564int i;
10565_ACEOF
10566if ac_fn_c_try_compile "$LINENO"
10567then :
10568  xorg_cv_cc_flag_unused_command_line_argument=yes
10569else case e in #(
10570  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10571esac
10572fi
10573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10574esac
10575fi
10576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10577printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10578	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10579	CFLAGS="$xorg_testset_save_CFLAGS"
10580fi
10581
10582found="no"
10583
10584	if test $found = "no" ; then
10585		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10586			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10587		fi
10588
10589		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10590			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10591		fi
10592
10593		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10594
10595		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10596printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10597		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10598		if eval test \${$cacheid+y}
10599then :
10600  printf %s "(cached) " >&6
10601else case e in #(
10602  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10603/* end confdefs.h.  */
10604int i;
10605int
10606main (void)
10607{
10608
10609  ;
10610  return 0;
10611}
10612_ACEOF
10613if ac_fn_c_try_link "$LINENO"
10614then :
10615  eval $cacheid=yes
10616else case e in #(
10617  e) eval $cacheid=no ;;
10618esac
10619fi
10620rm -f core conftest.err conftest.$ac_objext conftest.beam \
10621    conftest$ac_exeext conftest.$ac_ext ;;
10622esac
10623fi
10624
10625
10626		CFLAGS="$xorg_testset_save_CFLAGS"
10627
10628		eval supported=\$$cacheid
10629		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10630printf "%s\n" "$supported" >&6; }
10631		if test "$supported" = "yes" ; then
10632			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10633			found="yes"
10634		fi
10635	fi
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651xorg_testset_save_CFLAGS="$CFLAGS"
10652
10653if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10654	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10655	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10656printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10657if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10658then :
10659  printf %s "(cached) " >&6
10660else case e in #(
10661  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662/* end confdefs.h.  */
10663int i;
10664_ACEOF
10665if ac_fn_c_try_compile "$LINENO"
10666then :
10667  xorg_cv_cc_flag_unknown_warning_option=yes
10668else case e in #(
10669  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10670esac
10671fi
10672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10673esac
10674fi
10675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10676printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10677	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10678	CFLAGS="$xorg_testset_save_CFLAGS"
10679fi
10680
10681if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10682	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10683		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10684	fi
10685	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10686	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10687printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10688if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10689then :
10690  printf %s "(cached) " >&6
10691else case e in #(
10692  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10693/* end confdefs.h.  */
10694int i;
10695_ACEOF
10696if ac_fn_c_try_compile "$LINENO"
10697then :
10698  xorg_cv_cc_flag_unused_command_line_argument=yes
10699else case e in #(
10700  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10701esac
10702fi
10703rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10704esac
10705fi
10706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10707printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10708	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10709	CFLAGS="$xorg_testset_save_CFLAGS"
10710fi
10711
10712found="no"
10713
10714	if test $found = "no" ; then
10715		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10716			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10717		fi
10718
10719		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10720			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10721		fi
10722
10723		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10724
10725		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10726printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10727		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10728		if eval test \${$cacheid+y}
10729then :
10730  printf %s "(cached) " >&6
10731else case e in #(
10732  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733/* end confdefs.h.  */
10734int i;
10735int
10736main (void)
10737{
10738
10739  ;
10740  return 0;
10741}
10742_ACEOF
10743if ac_fn_c_try_link "$LINENO"
10744then :
10745  eval $cacheid=yes
10746else case e in #(
10747  e) eval $cacheid=no ;;
10748esac
10749fi
10750rm -f core conftest.err conftest.$ac_objext conftest.beam \
10751    conftest$ac_exeext conftest.$ac_ext ;;
10752esac
10753fi
10754
10755
10756		CFLAGS="$xorg_testset_save_CFLAGS"
10757
10758		eval supported=\$$cacheid
10759		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10760printf "%s\n" "$supported" >&6; }
10761		if test "$supported" = "yes" ; then
10762			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10763			found="yes"
10764		fi
10765	fi
10766
10767
10768fi
10769
10770
10771
10772
10773
10774
10775
10776		CWARNFLAGS="$BASE_CFLAGS"
10777		if  test "x$GCC" = xyes ; then
10778		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10779		fi
10780
10781
10782
10783
10784
10785
10786
10787
10788# Check whether --enable-strict-compilation was given.
10789if test ${enable_strict_compilation+y}
10790then :
10791  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10792else case e in #(
10793  e) STRICT_COMPILE=no ;;
10794esac
10795fi
10796
10797
10798
10799
10800
10801
10802STRICT_CFLAGS=""
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816xorg_testset_save_CFLAGS="$CFLAGS"
10817
10818if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10819	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10820	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10821printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10822if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10823then :
10824  printf %s "(cached) " >&6
10825else case e in #(
10826  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827/* end confdefs.h.  */
10828int i;
10829_ACEOF
10830if ac_fn_c_try_compile "$LINENO"
10831then :
10832  xorg_cv_cc_flag_unknown_warning_option=yes
10833else case e in #(
10834  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10835esac
10836fi
10837rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10838esac
10839fi
10840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10841printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10842	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10843	CFLAGS="$xorg_testset_save_CFLAGS"
10844fi
10845
10846if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10847	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10848		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10849	fi
10850	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10851	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10852printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10853if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10854then :
10855  printf %s "(cached) " >&6
10856else case e in #(
10857  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858/* end confdefs.h.  */
10859int i;
10860_ACEOF
10861if ac_fn_c_try_compile "$LINENO"
10862then :
10863  xorg_cv_cc_flag_unused_command_line_argument=yes
10864else case e in #(
10865  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10866esac
10867fi
10868rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10869esac
10870fi
10871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10872printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10873	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10874	CFLAGS="$xorg_testset_save_CFLAGS"
10875fi
10876
10877found="no"
10878
10879	if test $found = "no" ; then
10880		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10881			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10882		fi
10883
10884		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10885			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10886		fi
10887
10888		CFLAGS="$CFLAGS -pedantic"
10889
10890		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10891printf %s "checking if $CC supports -pedantic... " >&6; }
10892		cacheid=xorg_cv_cc_flag__pedantic
10893		if eval test \${$cacheid+y}
10894then :
10895  printf %s "(cached) " >&6
10896else case e in #(
10897  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10898/* end confdefs.h.  */
10899int i;
10900int
10901main (void)
10902{
10903
10904  ;
10905  return 0;
10906}
10907_ACEOF
10908if ac_fn_c_try_link "$LINENO"
10909then :
10910  eval $cacheid=yes
10911else case e in #(
10912  e) eval $cacheid=no ;;
10913esac
10914fi
10915rm -f core conftest.err conftest.$ac_objext conftest.beam \
10916    conftest$ac_exeext conftest.$ac_ext ;;
10917esac
10918fi
10919
10920
10921		CFLAGS="$xorg_testset_save_CFLAGS"
10922
10923		eval supported=\$$cacheid
10924		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10925printf "%s\n" "$supported" >&6; }
10926		if test "$supported" = "yes" ; then
10927			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10928			found="yes"
10929		fi
10930	fi
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946xorg_testset_save_CFLAGS="$CFLAGS"
10947
10948if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10949	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10950	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10951printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10952if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10953then :
10954  printf %s "(cached) " >&6
10955else case e in #(
10956  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957/* end confdefs.h.  */
10958int i;
10959_ACEOF
10960if ac_fn_c_try_compile "$LINENO"
10961then :
10962  xorg_cv_cc_flag_unknown_warning_option=yes
10963else case e in #(
10964  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10965esac
10966fi
10967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10968esac
10969fi
10970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10971printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10972	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10973	CFLAGS="$xorg_testset_save_CFLAGS"
10974fi
10975
10976if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10977	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10978		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10979	fi
10980	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10981	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10982printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10983if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10984then :
10985  printf %s "(cached) " >&6
10986else case e in #(
10987  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988/* end confdefs.h.  */
10989int i;
10990_ACEOF
10991if ac_fn_c_try_compile "$LINENO"
10992then :
10993  xorg_cv_cc_flag_unused_command_line_argument=yes
10994else case e in #(
10995  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10996esac
10997fi
10998rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10999esac
11000fi
11001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11002printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11003	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11004	CFLAGS="$xorg_testset_save_CFLAGS"
11005fi
11006
11007found="no"
11008
11009	if test $found = "no" ; then
11010		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11011			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11012		fi
11013
11014		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11015			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11016		fi
11017
11018		CFLAGS="$CFLAGS -Werror"
11019
11020		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11021printf %s "checking if $CC supports -Werror... " >&6; }
11022		cacheid=xorg_cv_cc_flag__Werror
11023		if eval test \${$cacheid+y}
11024then :
11025  printf %s "(cached) " >&6
11026else case e in #(
11027  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11028/* end confdefs.h.  */
11029int i;
11030int
11031main (void)
11032{
11033
11034  ;
11035  return 0;
11036}
11037_ACEOF
11038if ac_fn_c_try_link "$LINENO"
11039then :
11040  eval $cacheid=yes
11041else case e in #(
11042  e) eval $cacheid=no ;;
11043esac
11044fi
11045rm -f core conftest.err conftest.$ac_objext conftest.beam \
11046    conftest$ac_exeext conftest.$ac_ext ;;
11047esac
11048fi
11049
11050
11051		CFLAGS="$xorg_testset_save_CFLAGS"
11052
11053		eval supported=\$$cacheid
11054		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11055printf "%s\n" "$supported" >&6; }
11056		if test "$supported" = "yes" ; then
11057			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11058			found="yes"
11059		fi
11060	fi
11061
11062	if test $found = "no" ; then
11063		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11064			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11065		fi
11066
11067		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11068			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11069		fi
11070
11071		CFLAGS="$CFLAGS -errwarn"
11072
11073		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11074printf %s "checking if $CC supports -errwarn... " >&6; }
11075		cacheid=xorg_cv_cc_flag__errwarn
11076		if eval test \${$cacheid+y}
11077then :
11078  printf %s "(cached) " >&6
11079else case e in #(
11080  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11081/* end confdefs.h.  */
11082int i;
11083int
11084main (void)
11085{
11086
11087  ;
11088  return 0;
11089}
11090_ACEOF
11091if ac_fn_c_try_link "$LINENO"
11092then :
11093  eval $cacheid=yes
11094else case e in #(
11095  e) eval $cacheid=no ;;
11096esac
11097fi
11098rm -f core conftest.err conftest.$ac_objext conftest.beam \
11099    conftest$ac_exeext conftest.$ac_ext ;;
11100esac
11101fi
11102
11103
11104		CFLAGS="$xorg_testset_save_CFLAGS"
11105
11106		eval supported=\$$cacheid
11107		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11108printf "%s\n" "$supported" >&6; }
11109		if test "$supported" = "yes" ; then
11110			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11111			found="yes"
11112		fi
11113	fi
11114
11115
11116
11117# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11118# activate it with -Werror, so we add it here explicitly.
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132xorg_testset_save_CFLAGS="$CFLAGS"
11133
11134if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11135	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11136	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11137printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11138if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11139then :
11140  printf %s "(cached) " >&6
11141else case e in #(
11142  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11143/* end confdefs.h.  */
11144int i;
11145_ACEOF
11146if ac_fn_c_try_compile "$LINENO"
11147then :
11148  xorg_cv_cc_flag_unknown_warning_option=yes
11149else case e in #(
11150  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11151esac
11152fi
11153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11154esac
11155fi
11156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11157printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11158	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11159	CFLAGS="$xorg_testset_save_CFLAGS"
11160fi
11161
11162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11163	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11164		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11165	fi
11166	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11167	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11168printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11169if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11170then :
11171  printf %s "(cached) " >&6
11172else case e in #(
11173  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174/* end confdefs.h.  */
11175int i;
11176_ACEOF
11177if ac_fn_c_try_compile "$LINENO"
11178then :
11179  xorg_cv_cc_flag_unused_command_line_argument=yes
11180else case e in #(
11181  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11182esac
11183fi
11184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11185esac
11186fi
11187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11188printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11189	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11190	CFLAGS="$xorg_testset_save_CFLAGS"
11191fi
11192
11193found="no"
11194
11195	if test $found = "no" ; then
11196		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11197			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11198		fi
11199
11200		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11201			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11202		fi
11203
11204		CFLAGS="$CFLAGS -Werror=attributes"
11205
11206		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11207printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11208		cacheid=xorg_cv_cc_flag__Werror_attributes
11209		if eval test \${$cacheid+y}
11210then :
11211  printf %s "(cached) " >&6
11212else case e in #(
11213  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11214/* end confdefs.h.  */
11215int i;
11216int
11217main (void)
11218{
11219
11220  ;
11221  return 0;
11222}
11223_ACEOF
11224if ac_fn_c_try_link "$LINENO"
11225then :
11226  eval $cacheid=yes
11227else case e in #(
11228  e) eval $cacheid=no ;;
11229esac
11230fi
11231rm -f core conftest.err conftest.$ac_objext conftest.beam \
11232    conftest$ac_exeext conftest.$ac_ext ;;
11233esac
11234fi
11235
11236
11237		CFLAGS="$xorg_testset_save_CFLAGS"
11238
11239		eval supported=\$$cacheid
11240		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11241printf "%s\n" "$supported" >&6; }
11242		if test "$supported" = "yes" ; then
11243			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11244			found="yes"
11245		fi
11246	fi
11247
11248
11249
11250if test "x$STRICT_COMPILE" = "xyes"; then
11251    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11252    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11253fi
11254
11255
11256
11257
11258
11259
11260
11261
11262cat >>confdefs.h <<_ACEOF
11263#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11264_ACEOF
11265
11266	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11267	if test "x$PVM" = "x"; then
11268		PVM="0"
11269	fi
11270
11271printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11272
11273	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11274	if test "x$PVP" = "x"; then
11275		PVP="0"
11276	fi
11277
11278printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11279
11280
11281
11282CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11283mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11284|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11285touch \$(top_srcdir)/ChangeLog; \
11286echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11287
11288
11289
11290
11291macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11292INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11293mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11294|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11295touch \$(top_srcdir)/INSTALL; \
11296echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11297
11298
11299
11300
11301
11302
11303case $host_os in
11304    solaris*)
11305        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11306        # check for a man page file found in later versions that use
11307        # traditional section numbers instead
11308        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11309printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11310if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11311then :
11312  printf %s "(cached) " >&6
11313else case e in #(
11314  e) test "$cross_compiling" = yes &&
11315  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11316if test -r "/usr/share/man/man7/attributes.7"; then
11317  ac_cv_file__usr_share_man_man7_attributes_7=yes
11318else
11319  ac_cv_file__usr_share_man_man7_attributes_7=no
11320fi ;;
11321esac
11322fi
11323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11324printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11325if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11326then :
11327  SYSV_MAN_SECTIONS=false
11328else case e in #(
11329  e) SYSV_MAN_SECTIONS=true ;;
11330esac
11331fi
11332
11333        ;;
11334    *) SYSV_MAN_SECTIONS=false ;;
11335esac
11336
11337if test x$APP_MAN_SUFFIX = x    ; then
11338    APP_MAN_SUFFIX=1
11339fi
11340if test x$APP_MAN_DIR = x    ; then
11341    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11342fi
11343
11344if test x$LIB_MAN_SUFFIX = x    ; then
11345    LIB_MAN_SUFFIX=3
11346fi
11347if test x$LIB_MAN_DIR = x    ; then
11348    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11349fi
11350
11351if test x$FILE_MAN_SUFFIX = x    ; then
11352    case $SYSV_MAN_SECTIONS in
11353	true)				FILE_MAN_SUFFIX=4  ;;
11354	*)				FILE_MAN_SUFFIX=5  ;;
11355    esac
11356fi
11357if test x$FILE_MAN_DIR = x    ; then
11358    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11359fi
11360
11361if test x$MISC_MAN_SUFFIX = x    ; then
11362    case $SYSV_MAN_SECTIONS in
11363	true)				MISC_MAN_SUFFIX=5  ;;
11364	*)				MISC_MAN_SUFFIX=7  ;;
11365    esac
11366fi
11367if test x$MISC_MAN_DIR = x    ; then
11368    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11369fi
11370
11371if test x$DRIVER_MAN_SUFFIX = x    ; then
11372    case $SYSV_MAN_SECTIONS in
11373	true)				DRIVER_MAN_SUFFIX=7  ;;
11374	*)				DRIVER_MAN_SUFFIX=4  ;;
11375    esac
11376fi
11377if test x$DRIVER_MAN_DIR = x    ; then
11378    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11379fi
11380
11381if test x$ADMIN_MAN_SUFFIX = x    ; then
11382    case $SYSV_MAN_SECTIONS in
11383	true)				ADMIN_MAN_SUFFIX=1m ;;
11384	*)				ADMIN_MAN_SUFFIX=8  ;;
11385    esac
11386fi
11387if test x$ADMIN_MAN_DIR = x    ; then
11388    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11389fi
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405XORG_MAN_PAGE="X Version 11"
11406
11407MAN_SUBSTS="\
11408	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11409	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11410	-e 's|__xservername__|Xorg|g' \
11411	-e 's|__xconfigfile__|xorg.conf|g' \
11412	-e 's|__projectroot__|\$(prefix)|g' \
11413	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11414	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11415	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11416	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11417	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11418	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11419	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11420
11421
11422
11423
11424AM_DEFAULT_VERBOSITY=0
11425
11426
11427
11428# Checks for pkg-config packages
11429
11430pkg_failed=no
11431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHOWFONT" >&5
11432printf %s "checking for SHOWFONT... " >&6; }
11433
11434if test -n "$SHOWFONT_CFLAGS"; then
11435    pkg_cv_SHOWFONT_CFLAGS="$SHOWFONT_CFLAGS"
11436 elif test -n "$PKG_CONFIG"; then
11437    if test -n "$PKG_CONFIG" && \
11438    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfs xproto >= 7.0.17\""; } >&5
11439  ($PKG_CONFIG --exists --print-errors "libfs xproto >= 7.0.17") 2>&5
11440  ac_status=$?
11441  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11442  test $ac_status = 0; }; then
11443  pkg_cv_SHOWFONT_CFLAGS=`$PKG_CONFIG --cflags "libfs xproto >= 7.0.17" 2>/dev/null`
11444		      test "x$?" != "x0" && pkg_failed=yes
11445else
11446  pkg_failed=yes
11447fi
11448 else
11449    pkg_failed=untried
11450fi
11451if test -n "$SHOWFONT_LIBS"; then
11452    pkg_cv_SHOWFONT_LIBS="$SHOWFONT_LIBS"
11453 elif test -n "$PKG_CONFIG"; then
11454    if test -n "$PKG_CONFIG" && \
11455    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfs xproto >= 7.0.17\""; } >&5
11456  ($PKG_CONFIG --exists --print-errors "libfs xproto >= 7.0.17") 2>&5
11457  ac_status=$?
11458  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11459  test $ac_status = 0; }; then
11460  pkg_cv_SHOWFONT_LIBS=`$PKG_CONFIG --libs "libfs xproto >= 7.0.17" 2>/dev/null`
11461		      test "x$?" != "x0" && pkg_failed=yes
11462else
11463  pkg_failed=yes
11464fi
11465 else
11466    pkg_failed=untried
11467fi
11468
11469
11470
11471if test $pkg_failed = yes; then
11472   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473printf "%s\n" "no" >&6; }
11474
11475if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11476        _pkg_short_errors_supported=yes
11477else
11478        _pkg_short_errors_supported=no
11479fi
11480        if test $_pkg_short_errors_supported = yes; then
11481	        SHOWFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfs xproto >= 7.0.17" 2>&1`
11482        else
11483	        SHOWFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfs xproto >= 7.0.17" 2>&1`
11484        fi
11485	# Put the nasty error message in config.log where it belongs
11486	echo "$SHOWFONT_PKG_ERRORS" >&5
11487
11488	as_fn_error $? "Package requirements (libfs xproto >= 7.0.17) were not met:
11489
11490$SHOWFONT_PKG_ERRORS
11491
11492Consider adjusting the PKG_CONFIG_PATH environment variable if you
11493installed software in a non-standard prefix.
11494
11495Alternatively, you may set the environment variables SHOWFONT_CFLAGS
11496and SHOWFONT_LIBS to avoid the need to call pkg-config.
11497See the pkg-config man page for more details." "$LINENO" 5
11498elif test $pkg_failed = untried; then
11499     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11500printf "%s\n" "no" >&6; }
11501	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11502printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11503as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11504is in your PATH or set the PKG_CONFIG environment variable to the full
11505path to pkg-config.
11506
11507Alternatively, you may set the environment variables SHOWFONT_CFLAGS
11508and SHOWFONT_LIBS to avoid the need to call pkg-config.
11509See the pkg-config man page for more details.
11510
11511To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11512See 'config.log' for more details" "$LINENO" 5; }
11513else
11514	SHOWFONT_CFLAGS=$pkg_cv_SHOWFONT_CFLAGS
11515	SHOWFONT_LIBS=$pkg_cv_SHOWFONT_LIBS
11516        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11517printf "%s\n" "yes" >&6; }
11518
11519fi
11520
11521ac_config_files="$ac_config_files Makefile man/Makefile"
11522
11523cat >confcache <<\_ACEOF
11524# This file is a shell script that caches the results of configure
11525# tests run on this system so they can be shared between configure
11526# scripts and configure runs, see configure's option --config-cache.
11527# It is not useful on other systems.  If it contains results you don't
11528# want to keep, you may remove or edit it.
11529#
11530# config.status only pays attention to the cache file if you give it
11531# the --recheck option to rerun configure.
11532#
11533# 'ac_cv_env_foo' variables (set or unset) will be overridden when
11534# loading this file, other *unset* 'ac_cv_foo' will be assigned the
11535# following values.
11536
11537_ACEOF
11538
11539# The following way of writing the cache mishandles newlines in values,
11540# but we know of no workaround that is simple, portable, and efficient.
11541# So, we kill variables containing newlines.
11542# Ultrix sh set writes to stderr and can't be redirected directly,
11543# and sets the high bit in the cache file unless we assign to the vars.
11544(
11545  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11546    eval ac_val=\$$ac_var
11547    case $ac_val in #(
11548    *${as_nl}*)
11549      case $ac_var in #(
11550      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11551printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11552      esac
11553      case $ac_var in #(
11554      _ | IFS | as_nl) ;; #(
11555      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11556      *) { eval $ac_var=; unset $ac_var;} ;;
11557      esac ;;
11558    esac
11559  done
11560
11561  (set) 2>&1 |
11562    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11563    *${as_nl}ac_space=\ *)
11564      # 'set' does not quote correctly, so add quotes: double-quote
11565      # substitution turns \\\\ into \\, and sed turns \\ into \.
11566      sed -n \
11567	"s/'/'\\\\''/g;
11568	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11569      ;; #(
11570    *)
11571      # 'set' quotes correctly as required by POSIX, so do not add quotes.
11572      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11573      ;;
11574    esac |
11575    sort
11576) |
11577  sed '
11578     /^ac_cv_env_/b end
11579     t clear
11580     :clear
11581     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11582     t end
11583     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11584     :end' >>confcache
11585if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11586  if test -w "$cache_file"; then
11587    if test "x$cache_file" != "x/dev/null"; then
11588      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11589printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11590      if test ! -f "$cache_file" || test -h "$cache_file"; then
11591	cat confcache >"$cache_file"
11592      else
11593        case $cache_file in #(
11594        */* | ?:*)
11595	  mv -f confcache "$cache_file"$$ &&
11596	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11597        *)
11598	  mv -f confcache "$cache_file" ;;
11599	esac
11600      fi
11601    fi
11602  else
11603    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11604printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11605  fi
11606fi
11607rm -f confcache
11608
11609test "x$prefix" = xNONE && prefix=$ac_default_prefix
11610# Let make expand exec_prefix.
11611test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11612
11613DEFS=-DHAVE_CONFIG_H
11614
11615ac_libobjs=
11616ac_ltlibobjs=
11617U=
11618for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11619  # 1. Remove the extension, and $U if already installed.
11620  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11621  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11622  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11623  #    will be set to the directory where LIBOBJS objects are built.
11624  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11625  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11626done
11627LIBOBJS=$ac_libobjs
11628
11629LTLIBOBJS=$ac_ltlibobjs
11630
11631
11632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11633printf %s "checking that generated files are newer than configure... " >&6; }
11634   if test -n "$am_sleep_pid"; then
11635     # Hide warnings about reused PIDs.
11636     wait $am_sleep_pid 2>/dev/null
11637   fi
11638   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11639printf "%s\n" "done" >&6; }
11640case $enable_silent_rules in # (((
11641  yes) AM_DEFAULT_VERBOSITY=0;;
11642   no) AM_DEFAULT_VERBOSITY=1;;
11643esac
11644if test $am_cv_make_support_nested_variables = yes; then
11645    AM_V='$(V)'
11646  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11647else
11648  AM_V=$AM_DEFAULT_VERBOSITY
11649  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11650fi
11651
11652 if test -n "$EXEEXT"; then
11653  am__EXEEXT_TRUE=
11654  am__EXEEXT_FALSE='#'
11655else
11656  am__EXEEXT_TRUE='#'
11657  am__EXEEXT_FALSE=
11658fi
11659
11660if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11661  as_fn_error $? "conditional \"AMDEP\" was never defined.
11662Usually this means the macro was only invoked conditionally." "$LINENO" 5
11663fi
11664if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11665  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11666Usually this means the macro was only invoked conditionally." "$LINENO" 5
11667fi
11668
11669: "${CONFIG_STATUS=./config.status}"
11670ac_write_fail=0
11671ac_clean_files_save=$ac_clean_files
11672ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11674printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11675as_write_fail=0
11676cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11677#! $SHELL
11678# Generated by $as_me.
11679# Run this file to recreate the current configuration.
11680# Compiler output produced by configure, useful for debugging
11681# configure, is in config.log if it exists.
11682
11683debug=false
11684ac_cs_recheck=false
11685ac_cs_silent=false
11686
11687SHELL=\${CONFIG_SHELL-$SHELL}
11688export SHELL
11689_ASEOF
11690cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11691## -------------------- ##
11692## M4sh Initialization. ##
11693## -------------------- ##
11694
11695# Be more Bourne compatible
11696DUALCASE=1; export DUALCASE # for MKS sh
11697if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11698then :
11699  emulate sh
11700  NULLCMD=:
11701  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11702  # is contrary to our usage.  Disable this feature.
11703  alias -g '${1+"$@"}'='"$@"'
11704  setopt NO_GLOB_SUBST
11705else case e in #(
11706  e) case `(set -o) 2>/dev/null` in #(
11707  *posix*) :
11708    set -o posix ;; #(
11709  *) :
11710     ;;
11711esac ;;
11712esac
11713fi
11714
11715
11716
11717# Reset variables that may have inherited troublesome values from
11718# the environment.
11719
11720# IFS needs to be set, to space, tab, and newline, in precisely that order.
11721# (If _AS_PATH_WALK were called with IFS unset, it would have the
11722# side effect of setting IFS to empty, thus disabling word splitting.)
11723# Quoting is to prevent editors from complaining about space-tab.
11724as_nl='
11725'
11726export as_nl
11727IFS=" ""	$as_nl"
11728
11729PS1='$ '
11730PS2='> '
11731PS4='+ '
11732
11733# Ensure predictable behavior from utilities with locale-dependent output.
11734LC_ALL=C
11735export LC_ALL
11736LANGUAGE=C
11737export LANGUAGE
11738
11739# We cannot yet rely on "unset" to work, but we need these variables
11740# to be unset--not just set to an empty or harmless value--now, to
11741# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11742# also avoids known problems related to "unset" and subshell syntax
11743# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11744for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11745do eval test \${$as_var+y} \
11746  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11747done
11748
11749# Ensure that fds 0, 1, and 2 are open.
11750if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11751if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11752if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11753
11754# The user is always right.
11755if ${PATH_SEPARATOR+false} :; then
11756  PATH_SEPARATOR=:
11757  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11758    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11759      PATH_SEPARATOR=';'
11760  }
11761fi
11762
11763
11764# Find who we are.  Look in the path if we contain no directory separator.
11765as_myself=
11766case $0 in #((
11767  *[\\/]* ) as_myself=$0 ;;
11768  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11769for as_dir in $PATH
11770do
11771  IFS=$as_save_IFS
11772  case $as_dir in #(((
11773    '') as_dir=./ ;;
11774    */) ;;
11775    *) as_dir=$as_dir/ ;;
11776  esac
11777    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11778  done
11779IFS=$as_save_IFS
11780
11781     ;;
11782esac
11783# We did not find ourselves, most probably we were run as 'sh COMMAND'
11784# in which case we are not to be found in the path.
11785if test "x$as_myself" = x; then
11786  as_myself=$0
11787fi
11788if test ! -f "$as_myself"; then
11789  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11790  exit 1
11791fi
11792
11793
11794
11795# as_fn_error STATUS ERROR [LINENO LOG_FD]
11796# ----------------------------------------
11797# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11798# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11799# script with STATUS, using 1 if that was 0.
11800as_fn_error ()
11801{
11802  as_status=$1; test $as_status -eq 0 && as_status=1
11803  if test "$4"; then
11804    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11805    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11806  fi
11807  printf "%s\n" "$as_me: error: $2" >&2
11808  as_fn_exit $as_status
11809} # as_fn_error
11810
11811
11812# as_fn_set_status STATUS
11813# -----------------------
11814# Set $? to STATUS, without forking.
11815as_fn_set_status ()
11816{
11817  return $1
11818} # as_fn_set_status
11819
11820# as_fn_exit STATUS
11821# -----------------
11822# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11823as_fn_exit ()
11824{
11825  set +e
11826  as_fn_set_status $1
11827  exit $1
11828} # as_fn_exit
11829
11830# as_fn_unset VAR
11831# ---------------
11832# Portably unset VAR.
11833as_fn_unset ()
11834{
11835  { eval $1=; unset $1;}
11836}
11837as_unset=as_fn_unset
11838
11839# as_fn_append VAR VALUE
11840# ----------------------
11841# Append the text in VALUE to the end of the definition contained in VAR. Take
11842# advantage of any shell optimizations that allow amortized linear growth over
11843# repeated appends, instead of the typical quadratic growth present in naive
11844# implementations.
11845if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11846then :
11847  eval 'as_fn_append ()
11848  {
11849    eval $1+=\$2
11850  }'
11851else case e in #(
11852  e) as_fn_append ()
11853  {
11854    eval $1=\$$1\$2
11855  } ;;
11856esac
11857fi # as_fn_append
11858
11859# as_fn_arith ARG...
11860# ------------------
11861# Perform arithmetic evaluation on the ARGs, and store the result in the
11862# global $as_val. Take advantage of shells that can avoid forks. The arguments
11863# must be portable across $(()) and expr.
11864if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11865then :
11866  eval 'as_fn_arith ()
11867  {
11868    as_val=$(( $* ))
11869  }'
11870else case e in #(
11871  e) as_fn_arith ()
11872  {
11873    as_val=`expr "$@" || test $? -eq 1`
11874  } ;;
11875esac
11876fi # as_fn_arith
11877
11878
11879if expr a : '\(a\)' >/dev/null 2>&1 &&
11880   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11881  as_expr=expr
11882else
11883  as_expr=false
11884fi
11885
11886if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11887  as_basename=basename
11888else
11889  as_basename=false
11890fi
11891
11892if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11893  as_dirname=dirname
11894else
11895  as_dirname=false
11896fi
11897
11898as_me=`$as_basename -- "$0" ||
11899$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11900	 X"$0" : 'X\(//\)$' \| \
11901	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11902printf "%s\n" X/"$0" |
11903    sed '/^.*\/\([^/][^/]*\)\/*$/{
11904	    s//\1/
11905	    q
11906	  }
11907	  /^X\/\(\/\/\)$/{
11908	    s//\1/
11909	    q
11910	  }
11911	  /^X\/\(\/\).*/{
11912	    s//\1/
11913	    q
11914	  }
11915	  s/.*/./; q'`
11916
11917# Avoid depending upon Character Ranges.
11918as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11919as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11920as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11921as_cr_digits='0123456789'
11922as_cr_alnum=$as_cr_Letters$as_cr_digits
11923
11924
11925# Determine whether it's possible to make 'echo' print without a newline.
11926# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11927# for compatibility with existing Makefiles.
11928ECHO_C= ECHO_N= ECHO_T=
11929case `echo -n x` in #(((((
11930-n*)
11931  case `echo 'xy\c'` in
11932  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11933  xy)  ECHO_C='\c';;
11934  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11935       ECHO_T='	';;
11936  esac;;
11937*)
11938  ECHO_N='-n';;
11939esac
11940
11941# For backward compatibility with old third-party macros, we provide
11942# the shell variables $as_echo and $as_echo_n.  New code should use
11943# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11944as_echo='printf %s\n'
11945as_echo_n='printf %s'
11946
11947rm -f conf$$ conf$$.exe conf$$.file
11948if test -d conf$$.dir; then
11949  rm -f conf$$.dir/conf$$.file
11950else
11951  rm -f conf$$.dir
11952  mkdir conf$$.dir 2>/dev/null
11953fi
11954if (echo >conf$$.file) 2>/dev/null; then
11955  if ln -s conf$$.file conf$$ 2>/dev/null; then
11956    as_ln_s='ln -s'
11957    # ... but there are two gotchas:
11958    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
11959    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
11960    # In both cases, we have to default to 'cp -pR'.
11961    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11962      as_ln_s='cp -pR'
11963  elif ln conf$$.file conf$$ 2>/dev/null; then
11964    as_ln_s=ln
11965  else
11966    as_ln_s='cp -pR'
11967  fi
11968else
11969  as_ln_s='cp -pR'
11970fi
11971rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11972rmdir conf$$.dir 2>/dev/null
11973
11974
11975# as_fn_mkdir_p
11976# -------------
11977# Create "$as_dir" as a directory, including parents if necessary.
11978as_fn_mkdir_p ()
11979{
11980
11981  case $as_dir in #(
11982  -*) as_dir=./$as_dir;;
11983  esac
11984  test -d "$as_dir" || eval $as_mkdir_p || {
11985    as_dirs=
11986    while :; do
11987      case $as_dir in #(
11988      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11989      *) as_qdir=$as_dir;;
11990      esac
11991      as_dirs="'$as_qdir' $as_dirs"
11992      as_dir=`$as_dirname -- "$as_dir" ||
11993$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11994	 X"$as_dir" : 'X\(//\)[^/]' \| \
11995	 X"$as_dir" : 'X\(//\)$' \| \
11996	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11997printf "%s\n" X"$as_dir" |
11998    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11999	    s//\1/
12000	    q
12001	  }
12002	  /^X\(\/\/\)[^/].*/{
12003	    s//\1/
12004	    q
12005	  }
12006	  /^X\(\/\/\)$/{
12007	    s//\1/
12008	    q
12009	  }
12010	  /^X\(\/\).*/{
12011	    s//\1/
12012	    q
12013	  }
12014	  s/.*/./; q'`
12015      test -d "$as_dir" && break
12016    done
12017    test -z "$as_dirs" || eval "mkdir $as_dirs"
12018  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12019
12020
12021} # as_fn_mkdir_p
12022if mkdir -p . 2>/dev/null; then
12023  as_mkdir_p='mkdir -p "$as_dir"'
12024else
12025  test -d ./-p && rmdir ./-p
12026  as_mkdir_p=false
12027fi
12028
12029
12030# as_fn_executable_p FILE
12031# -----------------------
12032# Test if FILE is an executable regular file.
12033as_fn_executable_p ()
12034{
12035  test -f "$1" && test -x "$1"
12036} # as_fn_executable_p
12037as_test_x='test -x'
12038as_executable_p=as_fn_executable_p
12039
12040# Sed expression to map a string onto a valid CPP name.
12041as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12042as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12043
12044# Sed expression to map a string onto a valid variable name.
12045as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12046as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12047
12048
12049exec 6>&1
12050## ----------------------------------- ##
12051## Main body of $CONFIG_STATUS script. ##
12052## ----------------------------------- ##
12053_ASEOF
12054test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12055
12056cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12057# Save the log message, to keep $0 and so on meaningful, and to
12058# report actual input values of CONFIG_FILES etc. instead of their
12059# values after options handling.
12060ac_log="
12061This file was extended by showfont $as_me 1.0.7, which was
12062generated by GNU Autoconf 2.72.  Invocation command line was
12063
12064  CONFIG_FILES    = $CONFIG_FILES
12065  CONFIG_HEADERS  = $CONFIG_HEADERS
12066  CONFIG_LINKS    = $CONFIG_LINKS
12067  CONFIG_COMMANDS = $CONFIG_COMMANDS
12068  $ $0 $@
12069
12070on `(hostname || uname -n) 2>/dev/null | sed 1q`
12071"
12072
12073_ACEOF
12074
12075case $ac_config_files in *"
12076"*) set x $ac_config_files; shift; ac_config_files=$*;;
12077esac
12078
12079case $ac_config_headers in *"
12080"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12081esac
12082
12083
12084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12085# Files that config.status was made for.
12086config_files="$ac_config_files"
12087config_headers="$ac_config_headers"
12088config_commands="$ac_config_commands"
12089
12090_ACEOF
12091
12092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12093ac_cs_usage="\
12094'$as_me' instantiates files and other configuration actions
12095from templates according to the current configuration.  Unless the files
12096and actions are specified as TAGs, all are instantiated by default.
12097
12098Usage: $0 [OPTION]... [TAG]...
12099
12100  -h, --help       print this help, then exit
12101  -V, --version    print version number and configuration settings, then exit
12102      --config     print configuration, then exit
12103  -q, --quiet, --silent
12104                   do not print progress messages
12105  -d, --debug      don't remove temporary files
12106      --recheck    update $as_me by reconfiguring in the same conditions
12107      --file=FILE[:TEMPLATE]
12108                   instantiate the configuration file FILE
12109      --header=FILE[:TEMPLATE]
12110                   instantiate the configuration header FILE
12111
12112Configuration files:
12113$config_files
12114
12115Configuration headers:
12116$config_headers
12117
12118Configuration commands:
12119$config_commands
12120
12121Report bugs to <https://gitlab.freedesktop.org/xorg/app/showfont/-/issues>."
12122
12123_ACEOF
12124ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12125ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12127ac_cs_config='$ac_cs_config_escaped'
12128ac_cs_version="\\
12129showfont config.status 1.0.7
12130configured by $0, generated by GNU Autoconf 2.72,
12131  with options \\"\$ac_cs_config\\"
12132
12133Copyright (C) 2023 Free Software Foundation, Inc.
12134This config.status script is free software; the Free Software Foundation
12135gives unlimited permission to copy, distribute and modify it."
12136
12137ac_pwd='$ac_pwd'
12138srcdir='$srcdir'
12139INSTALL='$INSTALL'
12140MKDIR_P='$MKDIR_P'
12141AWK='$AWK'
12142test -n "\$AWK" || AWK=awk
12143_ACEOF
12144
12145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12146# The default lists apply if the user does not specify any file.
12147ac_need_defaults=:
12148while test $# != 0
12149do
12150  case $1 in
12151  --*=?*)
12152    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12153    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12154    ac_shift=:
12155    ;;
12156  --*=)
12157    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12158    ac_optarg=
12159    ac_shift=:
12160    ;;
12161  *)
12162    ac_option=$1
12163    ac_optarg=$2
12164    ac_shift=shift
12165    ;;
12166  esac
12167
12168  case $ac_option in
12169  # Handling of the options.
12170  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12171    ac_cs_recheck=: ;;
12172  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12173    printf "%s\n" "$ac_cs_version"; exit ;;
12174  --config | --confi | --conf | --con | --co | --c )
12175    printf "%s\n" "$ac_cs_config"; exit ;;
12176  --debug | --debu | --deb | --de | --d | -d )
12177    debug=: ;;
12178  --file | --fil | --fi | --f )
12179    $ac_shift
12180    case $ac_optarg in
12181    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12182    '') as_fn_error $? "missing file argument" ;;
12183    esac
12184    as_fn_append CONFIG_FILES " '$ac_optarg'"
12185    ac_need_defaults=false;;
12186  --header | --heade | --head | --hea )
12187    $ac_shift
12188    case $ac_optarg in
12189    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12190    esac
12191    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12192    ac_need_defaults=false;;
12193  --he | --h)
12194    # Conflict between --help and --header
12195    as_fn_error $? "ambiguous option: '$1'
12196Try '$0 --help' for more information.";;
12197  --help | --hel | -h )
12198    printf "%s\n" "$ac_cs_usage"; exit ;;
12199  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12200  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12201    ac_cs_silent=: ;;
12202
12203  # This is an error.
12204  -*) as_fn_error $? "unrecognized option: '$1'
12205Try '$0 --help' for more information." ;;
12206
12207  *) as_fn_append ac_config_targets " $1"
12208     ac_need_defaults=false ;;
12209
12210  esac
12211  shift
12212done
12213
12214ac_configure_extra_args=
12215
12216if $ac_cs_silent; then
12217  exec 6>/dev/null
12218  ac_configure_extra_args="$ac_configure_extra_args --silent"
12219fi
12220
12221_ACEOF
12222cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12223if \$ac_cs_recheck; then
12224  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12225  shift
12226  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12227  CONFIG_SHELL='$SHELL'
12228  export CONFIG_SHELL
12229  exec "\$@"
12230fi
12231
12232_ACEOF
12233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12234exec 5>>config.log
12235{
12236  echo
12237  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12238## Running $as_me. ##
12239_ASBOX
12240  printf "%s\n" "$ac_log"
12241} >&5
12242
12243_ACEOF
12244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12245#
12246# INIT-COMMANDS
12247#
12248AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12249
12250_ACEOF
12251
12252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12253
12254# Handling of arguments.
12255for ac_config_target in $ac_config_targets
12256do
12257  case $ac_config_target in
12258    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12259    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12260    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12261    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12262
12263  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12264  esac
12265done
12266
12267
12268# If the user did not use the arguments to specify the items to instantiate,
12269# then the envvar interface is used.  Set only those that are not.
12270# We use the long form for the default assignment because of an extremely
12271# bizarre bug on SunOS 4.1.3.
12272if $ac_need_defaults; then
12273  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12274  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12275  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12276fi
12277
12278# Have a temporary directory for convenience.  Make it in the build tree
12279# simply because there is no reason against having it here, and in addition,
12280# creating and moving files from /tmp can sometimes cause problems.
12281# Hook for its removal unless debugging.
12282# Note that there is a small window in which the directory will not be cleaned:
12283# after its creation but before its name has been assigned to '$tmp'.
12284$debug ||
12285{
12286  tmp= ac_tmp=
12287  trap 'exit_status=$?
12288  : "${ac_tmp:=$tmp}"
12289  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12290' 0
12291  trap 'as_fn_exit 1' 1 2 13 15
12292}
12293# Create a (secure) tmp directory for tmp files.
12294
12295{
12296  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12297  test -d "$tmp"
12298}  ||
12299{
12300  tmp=./conf$$-$RANDOM
12301  (umask 077 && mkdir "$tmp")
12302} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12303ac_tmp=$tmp
12304
12305# Set up the scripts for CONFIG_FILES section.
12306# No need to generate them if there are no CONFIG_FILES.
12307# This happens for instance with './config.status config.h'.
12308if test -n "$CONFIG_FILES"; then
12309
12310
12311ac_cr=`echo X | tr X '\015'`
12312# On cygwin, bash can eat \r inside `` if the user requested igncr.
12313# But we know of no other shell where ac_cr would be empty at this
12314# point, so we can use a bashism as a fallback.
12315if test "x$ac_cr" = x; then
12316  eval ac_cr=\$\'\\r\'
12317fi
12318ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12319if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12320  ac_cs_awk_cr='\\r'
12321else
12322  ac_cs_awk_cr=$ac_cr
12323fi
12324
12325echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12326_ACEOF
12327
12328
12329{
12330  echo "cat >conf$$subs.awk <<_ACEOF" &&
12331  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12332  echo "_ACEOF"
12333} >conf$$subs.sh ||
12334  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12335ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12336ac_delim='%!_!# '
12337for ac_last_try in false false false false false :; do
12338  . ./conf$$subs.sh ||
12339    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12340
12341  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12342  if test $ac_delim_n = $ac_delim_num; then
12343    break
12344  elif $ac_last_try; then
12345    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12346  else
12347    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12348  fi
12349done
12350rm -f conf$$subs.sh
12351
12352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12353cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12354_ACEOF
12355sed -n '
12356h
12357s/^/S["/; s/!.*/"]=/
12358p
12359g
12360s/^[^!]*!//
12361:repl
12362t repl
12363s/'"$ac_delim"'$//
12364t delim
12365:nl
12366h
12367s/\(.\{148\}\)..*/\1/
12368t more1
12369s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12370p
12371n
12372b repl
12373:more1
12374s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12375p
12376g
12377s/.\{148\}//
12378t nl
12379:delim
12380h
12381s/\(.\{148\}\)..*/\1/
12382t more2
12383s/["\\]/\\&/g; s/^/"/; s/$/"/
12384p
12385b
12386:more2
12387s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12388p
12389g
12390s/.\{148\}//
12391t delim
12392' <conf$$subs.awk | sed '
12393/^[^""]/{
12394  N
12395  s/\n//
12396}
12397' >>$CONFIG_STATUS || ac_write_fail=1
12398rm -f conf$$subs.awk
12399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12400_ACAWK
12401cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12402  for (key in S) S_is_set[key] = 1
12403  FS = ""
12404
12405}
12406{
12407  line = $ 0
12408  nfields = split(line, field, "@")
12409  substed = 0
12410  len = length(field[1])
12411  for (i = 2; i < nfields; i++) {
12412    key = field[i]
12413    keylen = length(key)
12414    if (S_is_set[key]) {
12415      value = S[key]
12416      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12417      len += length(value) + length(field[++i])
12418      substed = 1
12419    } else
12420      len += 1 + keylen
12421  }
12422
12423  print line
12424}
12425
12426_ACAWK
12427_ACEOF
12428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12429if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12430  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12431else
12432  cat
12433fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12434  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12435_ACEOF
12436
12437# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12438# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12439# trailing colons and then remove the whole line if VPATH becomes empty
12440# (actually we leave an empty line to preserve line numbers).
12441if test "x$srcdir" = x.; then
12442  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12443h
12444s///
12445s/^/:/
12446s/[	 ]*$/:/
12447s/:\$(srcdir):/:/g
12448s/:\${srcdir}:/:/g
12449s/:@srcdir@:/:/g
12450s/^:*//
12451s/:*$//
12452x
12453s/\(=[	 ]*\).*/\1/
12454G
12455s/\n//
12456s/^[^=]*=[	 ]*$//
12457}'
12458fi
12459
12460cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12461fi # test -n "$CONFIG_FILES"
12462
12463# Set up the scripts for CONFIG_HEADERS section.
12464# No need to generate them if there are no CONFIG_HEADERS.
12465# This happens for instance with './config.status Makefile'.
12466if test -n "$CONFIG_HEADERS"; then
12467cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12468BEGIN {
12469_ACEOF
12470
12471# Transform confdefs.h into an awk script 'defines.awk', embedded as
12472# here-document in config.status, that substitutes the proper values into
12473# config.h.in to produce config.h.
12474
12475# Create a delimiter string that does not exist in confdefs.h, to ease
12476# handling of long lines.
12477ac_delim='%!_!# '
12478for ac_last_try in false false :; do
12479  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12480  if test -z "$ac_tt"; then
12481    break
12482  elif $ac_last_try; then
12483    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12484  else
12485    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12486  fi
12487done
12488
12489# For the awk script, D is an array of macro values keyed by name,
12490# likewise P contains macro parameters if any.  Preserve backslash
12491# newline sequences.
12492
12493ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12494sed -n '
12495s/.\{148\}/&'"$ac_delim"'/g
12496t rset
12497:rset
12498s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12499t def
12500d
12501:def
12502s/\\$//
12503t bsnl
12504s/["\\]/\\&/g
12505s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12506D["\1"]=" \3"/p
12507s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12508d
12509:bsnl
12510s/["\\]/\\&/g
12511s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12512D["\1"]=" \3\\\\\\n"\\/p
12513t cont
12514s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12515t cont
12516d
12517:cont
12518n
12519s/.\{148\}/&'"$ac_delim"'/g
12520t clear
12521:clear
12522s/\\$//
12523t bsnlc
12524s/["\\]/\\&/g; s/^/"/; s/$/"/p
12525d
12526:bsnlc
12527s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12528b cont
12529' <confdefs.h | sed '
12530s/'"$ac_delim"'/"\\\
12531"/g' >>$CONFIG_STATUS || ac_write_fail=1
12532
12533cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12534  for (key in D) D_is_set[key] = 1
12535  FS = ""
12536}
12537/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12538  line = \$ 0
12539  split(line, arg, " ")
12540  if (arg[1] == "#") {
12541    defundef = arg[2]
12542    mac1 = arg[3]
12543  } else {
12544    defundef = substr(arg[1], 2)
12545    mac1 = arg[2]
12546  }
12547  split(mac1, mac2, "(") #)
12548  macro = mac2[1]
12549  prefix = substr(line, 1, index(line, defundef) - 1)
12550  if (D_is_set[macro]) {
12551    # Preserve the white space surrounding the "#".
12552    print prefix "define", macro P[macro] D[macro]
12553    next
12554  } else {
12555    # Replace #undef with comments.  This is necessary, for example,
12556    # in the case of _POSIX_SOURCE, which is predefined and required
12557    # on some systems where configure will not decide to define it.
12558    if (defundef == "undef") {
12559      print "/*", prefix defundef, macro, "*/"
12560      next
12561    }
12562  }
12563}
12564{ print }
12565_ACAWK
12566_ACEOF
12567cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12568  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12569fi # test -n "$CONFIG_HEADERS"
12570
12571
12572eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12573shift
12574for ac_tag
12575do
12576  case $ac_tag in
12577  :[FHLC]) ac_mode=$ac_tag; continue;;
12578  esac
12579  case $ac_mode$ac_tag in
12580  :[FHL]*:*);;
12581  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12582  :[FH]-) ac_tag=-:-;;
12583  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12584  esac
12585  ac_save_IFS=$IFS
12586  IFS=:
12587  set x $ac_tag
12588  IFS=$ac_save_IFS
12589  shift
12590  ac_file=$1
12591  shift
12592
12593  case $ac_mode in
12594  :L) ac_source=$1;;
12595  :[FH])
12596    ac_file_inputs=
12597    for ac_f
12598    do
12599      case $ac_f in
12600      -) ac_f="$ac_tmp/stdin";;
12601      *) # Look for the file first in the build tree, then in the source tree
12602	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12603	 # because $ac_f cannot contain ':'.
12604	 test -f "$ac_f" ||
12605	   case $ac_f in
12606	   [\\/$]*) false;;
12607	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12608	   esac ||
12609	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12610      esac
12611      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12612      as_fn_append ac_file_inputs " '$ac_f'"
12613    done
12614
12615    # Let's still pretend it is 'configure' which instantiates (i.e., don't
12616    # use $as_me), people would be surprised to read:
12617    #    /* config.h.  Generated by config.status.  */
12618    configure_input='Generated from '`
12619	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12620	`' by configure.'
12621    if test x"$ac_file" != x-; then
12622      configure_input="$ac_file.  $configure_input"
12623      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12624printf "%s\n" "$as_me: creating $ac_file" >&6;}
12625    fi
12626    # Neutralize special characters interpreted by sed in replacement strings.
12627    case $configure_input in #(
12628    *\&* | *\|* | *\\* )
12629       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12630       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12631    *) ac_sed_conf_input=$configure_input;;
12632    esac
12633
12634    case $ac_tag in
12635    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12636      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12637    esac
12638    ;;
12639  esac
12640
12641  ac_dir=`$as_dirname -- "$ac_file" ||
12642$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12643	 X"$ac_file" : 'X\(//\)[^/]' \| \
12644	 X"$ac_file" : 'X\(//\)$' \| \
12645	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12646printf "%s\n" X"$ac_file" |
12647    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12648	    s//\1/
12649	    q
12650	  }
12651	  /^X\(\/\/\)[^/].*/{
12652	    s//\1/
12653	    q
12654	  }
12655	  /^X\(\/\/\)$/{
12656	    s//\1/
12657	    q
12658	  }
12659	  /^X\(\/\).*/{
12660	    s//\1/
12661	    q
12662	  }
12663	  s/.*/./; q'`
12664  as_dir="$ac_dir"; as_fn_mkdir_p
12665  ac_builddir=.
12666
12667case "$ac_dir" in
12668.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12669*)
12670  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12671  # A ".." for each directory in $ac_dir_suffix.
12672  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12673  case $ac_top_builddir_sub in
12674  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12675  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12676  esac ;;
12677esac
12678ac_abs_top_builddir=$ac_pwd
12679ac_abs_builddir=$ac_pwd$ac_dir_suffix
12680# for backward compatibility:
12681ac_top_builddir=$ac_top_build_prefix
12682
12683case $srcdir in
12684  .)  # We are building in place.
12685    ac_srcdir=.
12686    ac_top_srcdir=$ac_top_builddir_sub
12687    ac_abs_top_srcdir=$ac_pwd ;;
12688  [\\/]* | ?:[\\/]* )  # Absolute name.
12689    ac_srcdir=$srcdir$ac_dir_suffix;
12690    ac_top_srcdir=$srcdir
12691    ac_abs_top_srcdir=$srcdir ;;
12692  *) # Relative name.
12693    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12694    ac_top_srcdir=$ac_top_build_prefix$srcdir
12695    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12696esac
12697ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12698
12699
12700  case $ac_mode in
12701  :F)
12702  #
12703  # CONFIG_FILE
12704  #
12705
12706  case $INSTALL in
12707  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12708  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12709  esac
12710  ac_MKDIR_P=$MKDIR_P
12711  case $MKDIR_P in
12712  [\\/$]* | ?:[\\/]* ) ;;
12713  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12714  esac
12715_ACEOF
12716
12717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12718# If the template does not know about datarootdir, expand it.
12719# FIXME: This hack should be removed a few years after 2.60.
12720ac_datarootdir_hack=; ac_datarootdir_seen=
12721ac_sed_dataroot='
12722/datarootdir/ {
12723  p
12724  q
12725}
12726/@datadir@/p
12727/@docdir@/p
12728/@infodir@/p
12729/@localedir@/p
12730/@mandir@/p'
12731case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12732*datarootdir*) ac_datarootdir_seen=yes;;
12733*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12735printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12736_ACEOF
12737cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12738  ac_datarootdir_hack='
12739  s&@datadir@&$datadir&g
12740  s&@docdir@&$docdir&g
12741  s&@infodir@&$infodir&g
12742  s&@localedir@&$localedir&g
12743  s&@mandir@&$mandir&g
12744  s&\\\${datarootdir}&$datarootdir&g' ;;
12745esac
12746_ACEOF
12747
12748# Neutralize VPATH when '$srcdir' = '.'.
12749# Shell code in configure.ac might set extrasub.
12750# FIXME: do we really want to maintain this feature?
12751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12752ac_sed_extra="$ac_vpsub
12753$extrasub
12754_ACEOF
12755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12756:t
12757/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12758s|@configure_input@|$ac_sed_conf_input|;t t
12759s&@top_builddir@&$ac_top_builddir_sub&;t t
12760s&@top_build_prefix@&$ac_top_build_prefix&;t t
12761s&@srcdir@&$ac_srcdir&;t t
12762s&@abs_srcdir@&$ac_abs_srcdir&;t t
12763s&@top_srcdir@&$ac_top_srcdir&;t t
12764s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12765s&@builddir@&$ac_builddir&;t t
12766s&@abs_builddir@&$ac_abs_builddir&;t t
12767s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12768s&@INSTALL@&$ac_INSTALL&;t t
12769s&@MKDIR_P@&$ac_MKDIR_P&;t t
12770$ac_datarootdir_hack
12771"
12772eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12773  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12774
12775test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12776  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12777  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12778      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12780which seems to be undefined.  Please make sure it is defined" >&5
12781printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12782which seems to be undefined.  Please make sure it is defined" >&2;}
12783
12784  rm -f "$ac_tmp/stdin"
12785  case $ac_file in
12786  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12787  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12788  esac \
12789  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12790 ;;
12791  :H)
12792  #
12793  # CONFIG_HEADER
12794  #
12795  if test x"$ac_file" != x-; then
12796    {
12797      printf "%s\n" "/* $configure_input  */" >&1 \
12798      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12799    } >"$ac_tmp/config.h" \
12800      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12801    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12802      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12803printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12804    else
12805      rm -f "$ac_file"
12806      mv "$ac_tmp/config.h" "$ac_file" \
12807	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12808    fi
12809  else
12810    printf "%s\n" "/* $configure_input  */" >&1 \
12811      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12812      || as_fn_error $? "could not create -" "$LINENO" 5
12813  fi
12814# Compute "$ac_file"'s index in $config_headers.
12815_am_arg="$ac_file"
12816_am_stamp_count=1
12817for _am_header in $config_headers :; do
12818  case $_am_header in
12819    $_am_arg | $_am_arg:* )
12820      break ;;
12821    * )
12822      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12823  esac
12824done
12825echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12826$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12827	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12828	 X"$_am_arg" : 'X\(//\)$' \| \
12829	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12830printf "%s\n" X"$_am_arg" |
12831    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12832	    s//\1/
12833	    q
12834	  }
12835	  /^X\(\/\/\)[^/].*/{
12836	    s//\1/
12837	    q
12838	  }
12839	  /^X\(\/\/\)$/{
12840	    s//\1/
12841	    q
12842	  }
12843	  /^X\(\/\).*/{
12844	    s//\1/
12845	    q
12846	  }
12847	  s/.*/./; q'`/stamp-h$_am_stamp_count
12848 ;;
12849
12850  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12851printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12852 ;;
12853  esac
12854
12855
12856  case $ac_file$ac_mode in
12857    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12858  # Older Autoconf quotes --file arguments for eval, but not when files
12859  # are listed without --file.  Let's play safe and only enable the eval
12860  # if we detect the quoting.
12861  # TODO: see whether this extra hack can be removed once we start
12862  # requiring Autoconf 2.70 or later.
12863  case $CONFIG_FILES in #(
12864  *\'*) :
12865    eval set x "$CONFIG_FILES" ;; #(
12866  *) :
12867    set x $CONFIG_FILES ;; #(
12868  *) :
12869     ;;
12870esac
12871  shift
12872  # Used to flag and report bootstrapping failures.
12873  am_rc=0
12874  for am_mf
12875  do
12876    # Strip MF so we end up with the name of the file.
12877    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12878    # Check whether this is an Automake generated Makefile which includes
12879    # dependency-tracking related rules and includes.
12880    # Grep'ing the whole file directly is not great: AIX grep has a line
12881    # limit of 2048, but all sed's we know have understand at least 4000.
12882    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12883      || continue
12884    am_dirpart=`$as_dirname -- "$am_mf" ||
12885$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12886	 X"$am_mf" : 'X\(//\)[^/]' \| \
12887	 X"$am_mf" : 'X\(//\)$' \| \
12888	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12889printf "%s\n" X"$am_mf" |
12890    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12891	    s//\1/
12892	    q
12893	  }
12894	  /^X\(\/\/\)[^/].*/{
12895	    s//\1/
12896	    q
12897	  }
12898	  /^X\(\/\/\)$/{
12899	    s//\1/
12900	    q
12901	  }
12902	  /^X\(\/\).*/{
12903	    s//\1/
12904	    q
12905	  }
12906	  s/.*/./; q'`
12907    am_filepart=`$as_basename -- "$am_mf" ||
12908$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12909	 X"$am_mf" : 'X\(//\)$' \| \
12910	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12911printf "%s\n" X/"$am_mf" |
12912    sed '/^.*\/\([^/][^/]*\)\/*$/{
12913	    s//\1/
12914	    q
12915	  }
12916	  /^X\/\(\/\/\)$/{
12917	    s//\1/
12918	    q
12919	  }
12920	  /^X\/\(\/\).*/{
12921	    s//\1/
12922	    q
12923	  }
12924	  s/.*/./; q'`
12925    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12926      && sed -e '/# am--include-marker/d' "$am_filepart" \
12927        | $MAKE -f - am--depfiles" >&5
12928   (cd "$am_dirpart" \
12929      && sed -e '/# am--include-marker/d' "$am_filepart" \
12930        | $MAKE -f - am--depfiles) >&5 2>&5
12931   ac_status=$?
12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); } || am_rc=$?
12934  done
12935  if test $am_rc -ne 0; then
12936    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12937printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12938as_fn_error $? "Something went wrong bootstrapping makefile fragments
12939    for automatic dependency tracking.  If GNU make was not used, consider
12940    re-running the configure script with MAKE=\"gmake\" (or whatever is
12941    necessary).  You can also try re-running configure with the
12942    '--disable-dependency-tracking' option to at least be able to build
12943    the package (albeit without support for automatic dependency tracking).
12944See 'config.log' for more details" "$LINENO" 5; }
12945  fi
12946  { am_dirpart=; unset am_dirpart;}
12947  { am_filepart=; unset am_filepart;}
12948  { am_mf=; unset am_mf;}
12949  { am_rc=; unset am_rc;}
12950  rm -f conftest-deps.mk
12951}
12952 ;;
12953
12954  esac
12955done # for ac_tag
12956
12957
12958as_fn_exit 0
12959_ACEOF
12960ac_clean_files=$ac_clean_files_save
12961
12962test $ac_write_fail = 0 ||
12963  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12964
12965
12966# configure is writing to config.log, and then calls config.status.
12967# config.status does its own redirection, appending to config.log.
12968# Unfortunately, on DOS this fails, as config.log is still kept open
12969# by configure, so config.status won't be able to write to it; its
12970# output is simply discarded.  So we exec the FD to /dev/null,
12971# effectively closing config.log, so it can be properly (re)opened and
12972# appended to by config.status.  When coming back to configure, we
12973# need to make the FD available again.
12974if test "$no_create" != yes; then
12975  ac_cs_success=:
12976  ac_config_status_args=
12977  test "$silent" = yes &&
12978    ac_config_status_args="$ac_config_status_args --quiet"
12979  exec 5>/dev/null
12980  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12981  exec 5>>config.log
12982  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12983  # would make configure fail if this is the last instruction.
12984  $ac_cs_success || as_fn_exit 1
12985fi
12986if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12987  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12988printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12989fi
12990
12991
12992