1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for xlogo 1.0.7.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/-/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/xlogo/-/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='xlogo'
607PACKAGE_TARNAME='xlogo'
608PACKAGE_VERSION='1.0.7'
609PACKAGE_STRING='xlogo 1.0.7'
610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xlogo/-/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
650appdefaultdir
651APPDEFS_LIBS
652APPDEFS_CFLAGS
653XLOGO_LIBS
654XLOGO_CFLAGS
655USE_RENDER_FALSE
656USE_RENDER_TRUE
657MAN_SUBSTS
658XORG_MAN_PAGE
659ADMIN_MAN_DIR
660DRIVER_MAN_DIR
661MISC_MAN_DIR
662FILE_MAN_DIR
663LIB_MAN_DIR
664APP_MAN_DIR
665ADMIN_MAN_SUFFIX
666DRIVER_MAN_SUFFIX
667MISC_MAN_SUFFIX
668FILE_MAN_SUFFIX
669LIB_MAN_SUFFIX
670APP_MAN_SUFFIX
671SED
672host_os
673host_vendor
674host_cpu
675host
676build_os
677build_vendor
678build_cpu
679build
680INSTALL_CMD
681PKG_CONFIG_LIBDIR
682PKG_CONFIG_PATH
683PKG_CONFIG
684CHANGELOG_CMD
685STRICT_CFLAGS
686CWARNFLAGS
687BASE_CFLAGS
688am__fastdepCC_FALSE
689am__fastdepCC_TRUE
690CCDEPMODE
691am__nodep
692AMDEPBACKSLASH
693AMDEP_FALSE
694AMDEP_TRUE
695am__include
696DEPDIR
697OBJEXT
698EXEEXT
699ac_ct_CC
700CPPFLAGS
701LDFLAGS
702CFLAGS
703CC
704am__xargs_n
705am__rm_f_notfound
706AM_BACKSLASH
707AM_DEFAULT_VERBOSITY
708AM_DEFAULT_V
709AM_V
710CSCOPE
711ETAGS
712CTAGS
713am__untar
714am__tar
715AMTAR
716am__leading_dot
717SET_MAKE
718AWK
719mkdir_p
720MKDIR_P
721INSTALL_STRIP_PROGRAM
722STRIP
723install_sh
724MAKEINFO
725AUTOHEADER
726AUTOMAKE
727AUTOCONF
728ACLOCAL
729VERSION
730PACKAGE
731CYGPATH_W
732am__isrc
733INSTALL_DATA
734INSTALL_SCRIPT
735INSTALL_PROGRAM
736target_alias
737host_alias
738build_alias
739LIBS
740ECHO_T
741ECHO_N
742ECHO_C
743DEFS
744mandir
745localedir
746libdir
747psdir
748pdfdir
749dvidir
750htmldir
751infodir
752docdir
753oldincludedir
754includedir
755runstatedir
756localstatedir
757sharedstatedir
758sysconfdir
759datadir
760datarootdir
761libexecdir
762sbindir
763bindir
764program_transform_name
765prefix
766exec_prefix
767PACKAGE_URL
768PACKAGE_BUGREPORT
769PACKAGE_STRING
770PACKAGE_VERSION
771PACKAGE_TARNAME
772PACKAGE_NAME
773PATH_SEPARATOR
774SHELL
775am__quote'
776ac_subst_files=''
777ac_user_opts='
778enable_option_checking
779enable_silent_rules
780enable_dependency_tracking
781enable_selective_werror
782enable_strict_compilation
783with_render
784with_xkb
785with_appdefaultdir
786'
787      ac_precious_vars='build_alias
788host_alias
789target_alias
790CC
791CFLAGS
792LDFLAGS
793LIBS
794CPPFLAGS
795PKG_CONFIG
796PKG_CONFIG_PATH
797PKG_CONFIG_LIBDIR
798XLOGO_CFLAGS
799XLOGO_LIBS
800APPDEFS_CFLAGS
801APPDEFS_LIBS'
802
803
804# Initialize some variables set by options.
805ac_init_help=
806ac_init_version=false
807ac_unrecognized_opts=
808ac_unrecognized_sep=
809# The variables have the same names as the options, with
810# dashes changed to underlines.
811cache_file=/dev/null
812exec_prefix=NONE
813no_create=
814no_recursion=
815prefix=NONE
816program_prefix=NONE
817program_suffix=NONE
818program_transform_name=s,x,x,
819silent=
820site=
821srcdir=
822verbose=
823x_includes=NONE
824x_libraries=NONE
825
826# Installation directory options.
827# These are left unexpanded so users can "make install exec_prefix=/foo"
828# and all the variables that are supposed to be based on exec_prefix
829# by default will actually change.
830# Use braces instead of parens because sh, perl, etc. also accept them.
831# (The list follows the same order as the GNU Coding Standards.)
832bindir='${exec_prefix}/bin'
833sbindir='${exec_prefix}/sbin'
834libexecdir='${exec_prefix}/libexec'
835datarootdir='${prefix}/share'
836datadir='${datarootdir}'
837sysconfdir='${prefix}/etc'
838sharedstatedir='${prefix}/com'
839localstatedir='${prefix}/var'
840runstatedir='${localstatedir}/run'
841includedir='${prefix}/include'
842oldincludedir='/usr/include'
843docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844infodir='${datarootdir}/info'
845htmldir='${docdir}'
846dvidir='${docdir}'
847pdfdir='${docdir}'
848psdir='${docdir}'
849libdir='${exec_prefix}/lib'
850localedir='${datarootdir}/locale'
851mandir='${datarootdir}/man'
852
853ac_prev=
854ac_dashdash=
855for ac_option
856do
857  # If the previous option needs an argument, assign it.
858  if test -n "$ac_prev"; then
859    eval $ac_prev=\$ac_option
860    ac_prev=
861    continue
862  fi
863
864  case $ac_option in
865  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866  *=)   ac_optarg= ;;
867  *)    ac_optarg=yes ;;
868  esac
869
870  case $ac_dashdash$ac_option in
871  --)
872    ac_dashdash=yes ;;
873
874  -bindir | --bindir | --bindi | --bind | --bin | --bi)
875    ac_prev=bindir ;;
876  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877    bindir=$ac_optarg ;;
878
879  -build | --build | --buil | --bui | --bu)
880    ac_prev=build_alias ;;
881  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882    build_alias=$ac_optarg ;;
883
884  -cache-file | --cache-file | --cache-fil | --cache-fi \
885  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886    ac_prev=cache_file ;;
887  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889    cache_file=$ac_optarg ;;
890
891  --config-cache | -C)
892    cache_file=config.cache ;;
893
894  -datadir | --datadir | --datadi | --datad)
895    ac_prev=datadir ;;
896  -datadir=* | --datadir=* | --datadi=* | --datad=*)
897    datadir=$ac_optarg ;;
898
899  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900  | --dataroo | --dataro | --datar)
901    ac_prev=datarootdir ;;
902  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904    datarootdir=$ac_optarg ;;
905
906  -disable-* | --disable-*)
907    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908    # Reject names that are not valid shell variable names.
909    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910      as_fn_error $? "invalid feature name: '$ac_useropt'"
911    ac_useropt_orig=$ac_useropt
912    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
913    case $ac_user_opts in
914      *"
915"enable_$ac_useropt"
916"*) ;;
917      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918	 ac_unrecognized_sep=', ';;
919    esac
920    eval enable_$ac_useropt=no ;;
921
922  -docdir | --docdir | --docdi | --doc | --do)
923    ac_prev=docdir ;;
924  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925    docdir=$ac_optarg ;;
926
927  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928    ac_prev=dvidir ;;
929  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930    dvidir=$ac_optarg ;;
931
932  -enable-* | --enable-*)
933    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934    # Reject names that are not valid shell variable names.
935    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936      as_fn_error $? "invalid feature name: '$ac_useropt'"
937    ac_useropt_orig=$ac_useropt
938    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
939    case $ac_user_opts in
940      *"
941"enable_$ac_useropt"
942"*) ;;
943      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944	 ac_unrecognized_sep=', ';;
945    esac
946    eval enable_$ac_useropt=\$ac_optarg ;;
947
948  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950  | --exec | --exe | --ex)
951    ac_prev=exec_prefix ;;
952  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954  | --exec=* | --exe=* | --ex=*)
955    exec_prefix=$ac_optarg ;;
956
957  -gas | --gas | --ga | --g)
958    # Obsolete; use --with-gas.
959    with_gas=yes ;;
960
961  -help | --help | --hel | --he | -h)
962    ac_init_help=long ;;
963  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964    ac_init_help=recursive ;;
965  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966    ac_init_help=short ;;
967
968  -host | --host | --hos | --ho)
969    ac_prev=host_alias ;;
970  -host=* | --host=* | --hos=* | --ho=*)
971    host_alias=$ac_optarg ;;
972
973  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974    ac_prev=htmldir ;;
975  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976  | --ht=*)
977    htmldir=$ac_optarg ;;
978
979  -includedir | --includedir | --includedi | --included | --include \
980  | --includ | --inclu | --incl | --inc)
981    ac_prev=includedir ;;
982  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983  | --includ=* | --inclu=* | --incl=* | --inc=*)
984    includedir=$ac_optarg ;;
985
986  -infodir | --infodir | --infodi | --infod | --info | --inf)
987    ac_prev=infodir ;;
988  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989    infodir=$ac_optarg ;;
990
991  -libdir | --libdir | --libdi | --libd)
992    ac_prev=libdir ;;
993  -libdir=* | --libdir=* | --libdi=* | --libd=*)
994    libdir=$ac_optarg ;;
995
996  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997  | --libexe | --libex | --libe)
998    ac_prev=libexecdir ;;
999  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000  | --libexe=* | --libex=* | --libe=*)
1001    libexecdir=$ac_optarg ;;
1002
1003  -localedir | --localedir | --localedi | --localed | --locale)
1004    ac_prev=localedir ;;
1005  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006    localedir=$ac_optarg ;;
1007
1008  -localstatedir | --localstatedir | --localstatedi | --localstated \
1009  | --localstate | --localstat | --localsta | --localst | --locals)
1010    ac_prev=localstatedir ;;
1011  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013    localstatedir=$ac_optarg ;;
1014
1015  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016    ac_prev=mandir ;;
1017  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018    mandir=$ac_optarg ;;
1019
1020  -nfp | --nfp | --nf)
1021    # Obsolete; use --without-fp.
1022    with_fp=no ;;
1023
1024  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025  | --no-cr | --no-c | -n)
1026    no_create=yes ;;
1027
1028  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030    no_recursion=yes ;;
1031
1032  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034  | --oldin | --oldi | --old | --ol | --o)
1035    ac_prev=oldincludedir ;;
1036  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039    oldincludedir=$ac_optarg ;;
1040
1041  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042    ac_prev=prefix ;;
1043  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044    prefix=$ac_optarg ;;
1045
1046  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047  | --program-pre | --program-pr | --program-p)
1048    ac_prev=program_prefix ;;
1049  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051    program_prefix=$ac_optarg ;;
1052
1053  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054  | --program-suf | --program-su | --program-s)
1055    ac_prev=program_suffix ;;
1056  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058    program_suffix=$ac_optarg ;;
1059
1060  -program-transform-name | --program-transform-name \
1061  | --program-transform-nam | --program-transform-na \
1062  | --program-transform-n | --program-transform- \
1063  | --program-transform | --program-transfor \
1064  | --program-transfo | --program-transf \
1065  | --program-trans | --program-tran \
1066  | --progr-tra | --program-tr | --program-t)
1067    ac_prev=program_transform_name ;;
1068  -program-transform-name=* | --program-transform-name=* \
1069  | --program-transform-nam=* | --program-transform-na=* \
1070  | --program-transform-n=* | --program-transform-=* \
1071  | --program-transform=* | --program-transfor=* \
1072  | --program-transfo=* | --program-transf=* \
1073  | --program-trans=* | --program-tran=* \
1074  | --progr-tra=* | --program-tr=* | --program-t=*)
1075    program_transform_name=$ac_optarg ;;
1076
1077  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078    ac_prev=pdfdir ;;
1079  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080    pdfdir=$ac_optarg ;;
1081
1082  -psdir | --psdir | --psdi | --psd | --ps)
1083    ac_prev=psdir ;;
1084  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085    psdir=$ac_optarg ;;
1086
1087  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088  | -silent | --silent | --silen | --sile | --sil)
1089    silent=yes ;;
1090
1091  -runstatedir | --runstatedir | --runstatedi | --runstated \
1092  | --runstate | --runstat | --runsta | --runst | --runs \
1093  | --run | --ru | --r)
1094    ac_prev=runstatedir ;;
1095  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1096  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1097  | --run=* | --ru=* | --r=*)
1098    runstatedir=$ac_optarg ;;
1099
1100  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101    ac_prev=sbindir ;;
1102  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103  | --sbi=* | --sb=*)
1104    sbindir=$ac_optarg ;;
1105
1106  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108  | --sharedst | --shareds | --shared | --share | --shar \
1109  | --sha | --sh)
1110    ac_prev=sharedstatedir ;;
1111  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114  | --sha=* | --sh=*)
1115    sharedstatedir=$ac_optarg ;;
1116
1117  -site | --site | --sit)
1118    ac_prev=site ;;
1119  -site=* | --site=* | --sit=*)
1120    site=$ac_optarg ;;
1121
1122  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123    ac_prev=srcdir ;;
1124  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125    srcdir=$ac_optarg ;;
1126
1127  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128  | --syscon | --sysco | --sysc | --sys | --sy)
1129    ac_prev=sysconfdir ;;
1130  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132    sysconfdir=$ac_optarg ;;
1133
1134  -target | --target | --targe | --targ | --tar | --ta | --t)
1135    ac_prev=target_alias ;;
1136  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137    target_alias=$ac_optarg ;;
1138
1139  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140    verbose=yes ;;
1141
1142  -version | --version | --versio | --versi | --vers | -V)
1143    ac_init_version=: ;;
1144
1145  -with-* | --with-*)
1146    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147    # Reject names that are not valid shell variable names.
1148    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149      as_fn_error $? "invalid package name: '$ac_useropt'"
1150    ac_useropt_orig=$ac_useropt
1151    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1152    case $ac_user_opts in
1153      *"
1154"with_$ac_useropt"
1155"*) ;;
1156      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157	 ac_unrecognized_sep=', ';;
1158    esac
1159    eval with_$ac_useropt=\$ac_optarg ;;
1160
1161  -without-* | --without-*)
1162    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163    # Reject names that are not valid shell variable names.
1164    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165      as_fn_error $? "invalid package name: '$ac_useropt'"
1166    ac_useropt_orig=$ac_useropt
1167    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1168    case $ac_user_opts in
1169      *"
1170"with_$ac_useropt"
1171"*) ;;
1172      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173	 ac_unrecognized_sep=', ';;
1174    esac
1175    eval with_$ac_useropt=no ;;
1176
1177  --x)
1178    # Obsolete; use --with-x.
1179    with_x=yes ;;
1180
1181  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1182  | --x-incl | --x-inc | --x-in | --x-i)
1183    ac_prev=x_includes ;;
1184  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1185  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1186    x_includes=$ac_optarg ;;
1187
1188  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1189  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1190    ac_prev=x_libraries ;;
1191  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1192  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1193    x_libraries=$ac_optarg ;;
1194
1195  -*) as_fn_error $? "unrecognized option: '$ac_option'
1196Try '$0 --help' for more information"
1197    ;;
1198
1199  *=*)
1200    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201    # Reject names that are not valid shell variable names.
1202    case $ac_envvar in #(
1203      '' | [0-9]* | *[!_$as_cr_alnum]* )
1204      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1205    esac
1206    eval $ac_envvar=\$ac_optarg
1207    export $ac_envvar ;;
1208
1209  *)
1210    # FIXME: should be removed in autoconf 3.0.
1211    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1212    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1214    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1215    ;;
1216
1217  esac
1218done
1219
1220if test -n "$ac_prev"; then
1221  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1222  as_fn_error $? "missing argument to $ac_option"
1223fi
1224
1225if test -n "$ac_unrecognized_opts"; then
1226  case $enable_option_checking in
1227    no) ;;
1228    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1229    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230  esac
1231fi
1232
1233# Check all directory arguments for consistency.
1234for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235		datadir sysconfdir sharedstatedir localstatedir includedir \
1236		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237		libdir localedir mandir runstatedir
1238do
1239  eval ac_val=\$$ac_var
1240  # Remove trailing slashes.
1241  case $ac_val in
1242    */ )
1243      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244      eval $ac_var=\$ac_val;;
1245  esac
1246  # Be sure to have absolute directory names.
1247  case $ac_val in
1248    [\\/$]* | ?:[\\/]* )  continue;;
1249    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1250  esac
1251  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1252done
1253
1254# There might be people who depend on the old broken behavior: '$host'
1255# used to hold the argument of --host etc.
1256# FIXME: To remove some day.
1257build=$build_alias
1258host=$host_alias
1259target=$target_alias
1260
1261# FIXME: To remove some day.
1262if test "x$host_alias" != x; then
1263  if test "x$build_alias" = x; then
1264    cross_compiling=maybe
1265  elif test "x$build_alias" != "x$host_alias"; then
1266    cross_compiling=yes
1267  fi
1268fi
1269
1270ac_tool_prefix=
1271test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272
1273test "$silent" = yes && exec 6>/dev/null
1274
1275
1276ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277ac_ls_di=`ls -di .` &&
1278ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279  as_fn_error $? "working directory cannot be determined"
1280test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281  as_fn_error $? "pwd does not report name of working directory"
1282
1283
1284# Find the source files, if location was not specified.
1285if test -z "$srcdir"; then
1286  ac_srcdir_defaulted=yes
1287  # Try the directory containing this script, then the parent directory.
1288  ac_confdir=`$as_dirname -- "$as_myself" ||
1289$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290	 X"$as_myself" : 'X\(//\)[^/]' \| \
1291	 X"$as_myself" : 'X\(//\)$' \| \
1292	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293printf "%s\n" X"$as_myself" |
1294    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295	    s//\1/
1296	    q
1297	  }
1298	  /^X\(\/\/\)[^/].*/{
1299	    s//\1/
1300	    q
1301	  }
1302	  /^X\(\/\/\)$/{
1303	    s//\1/
1304	    q
1305	  }
1306	  /^X\(\/\).*/{
1307	    s//\1/
1308	    q
1309	  }
1310	  s/.*/./; q'`
1311  srcdir=$ac_confdir
1312  if test ! -r "$srcdir/$ac_unique_file"; then
1313    srcdir=..
1314  fi
1315else
1316  ac_srcdir_defaulted=no
1317fi
1318if test ! -r "$srcdir/$ac_unique_file"; then
1319  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1321fi
1322ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1323ac_abs_confdir=`(
1324	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1325	pwd)`
1326# When building in place, set srcdir=.
1327if test "$ac_abs_confdir" = "$ac_pwd"; then
1328  srcdir=.
1329fi
1330# Remove unnecessary trailing slashes from srcdir.
1331# Double slashes in file names in object file debugging info
1332# mess up M-x gdb in Emacs.
1333case $srcdir in
1334*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335esac
1336for ac_var in $ac_precious_vars; do
1337  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338  eval ac_env_${ac_var}_value=\$${ac_var}
1339  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341done
1342
1343#
1344# Report the --help message.
1345#
1346if test "$ac_init_help" = "long"; then
1347  # Omit some internal or obsolete options to make the list less imposing.
1348  # This message is too long to be a string in the A/UX 3.1 sh.
1349  cat <<_ACEOF
1350'configure' configures xlogo 1.0.7 to adapt to many kinds of systems.
1351
1352Usage: $0 [OPTION]... [VAR=VALUE]...
1353
1354To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355VAR=VALUE.  See below for descriptions of some of the useful variables.
1356
1357Defaults for the options are specified in brackets.
1358
1359Configuration:
1360  -h, --help              display this help and exit
1361      --help=short        display options specific to this package
1362      --help=recursive    display the short help of all the included packages
1363  -V, --version           display version information and exit
1364  -q, --quiet, --silent   do not print 'checking ...' messages
1365      --cache-file=FILE   cache test results in FILE [disabled]
1366  -C, --config-cache      alias for '--cache-file=config.cache'
1367  -n, --no-create         do not create output files
1368      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1369
1370Installation directories:
1371  --prefix=PREFIX         install architecture-independent files in PREFIX
1372                          [$ac_default_prefix]
1373  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1374                          [PREFIX]
1375
1376By default, 'make install' will install all the files in
1377'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1378an installation prefix other than '$ac_default_prefix' using '--prefix',
1379for instance '--prefix=\$HOME'.
1380
1381For better control, use the options below.
1382
1383Fine tuning of the installation directories:
1384  --bindir=DIR            user executables [EPREFIX/bin]
1385  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1386  --libexecdir=DIR        program executables [EPREFIX/libexec]
1387  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1388  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1389  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1390  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1391  --libdir=DIR            object code libraries [EPREFIX/lib]
1392  --includedir=DIR        C header files [PREFIX/include]
1393  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1394  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1395  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1396  --infodir=DIR           info documentation [DATAROOTDIR/info]
1397  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1398  --mandir=DIR            man documentation [DATAROOTDIR/man]
1399  --docdir=DIR            documentation root [DATAROOTDIR/doc/xlogo]
1400  --htmldir=DIR           html documentation [DOCDIR]
1401  --dvidir=DIR            dvi documentation [DOCDIR]
1402  --pdfdir=DIR            pdf documentation [DOCDIR]
1403  --psdir=DIR             ps documentation [DOCDIR]
1404_ACEOF
1405
1406  cat <<\_ACEOF
1407
1408Program names:
1409  --program-prefix=PREFIX            prepend PREFIX to installed program names
1410  --program-suffix=SUFFIX            append SUFFIX to installed program names
1411  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1412
1413System types:
1414  --build=BUILD     configure for building on BUILD [guessed]
1415  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1416_ACEOF
1417fi
1418
1419if test -n "$ac_init_help"; then
1420  case $ac_init_help in
1421     short | recursive ) echo "Configuration of xlogo 1.0.7:";;
1422   esac
1423  cat <<\_ACEOF
1424
1425Optional Features:
1426  --disable-option-checking  ignore unrecognized --enable/--with options
1427  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1428  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1429  --enable-silent-rules   less verbose build output (undo: "make V=1")
1430  --disable-silent-rules  verbose build output (undo: "make V=0")
1431  --enable-dependency-tracking
1432                          do not reject slow dependency extractors
1433  --disable-dependency-tracking
1434                          speeds up one-time build
1435  --disable-selective-werror
1436                          Turn off selective compiler errors. (default:
1437                          enabled)
1438  --enable-strict-compilation
1439                          Enable all warnings from compiler and make them
1440                          errors (default: disabled)
1441
1442Optional Packages:
1443  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1444  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1445  --with-render           Use Xrender & Xft2 to draw logo
1446  --with-xkb              Use XKB to sound bells
1447  --with-appdefaultdir=<pathname>
1448                          specify directory for app-defaults files (default is
1449                          autodetected)
1450
1451Some influential environment variables:
1452  CC          C compiler command
1453  CFLAGS      C compiler flags
1454  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1455              nonstandard directory <lib dir>
1456  LIBS        libraries to pass to the linker, e.g. -l<library>
1457  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458              you have headers in a nonstandard directory <include dir>
1459  PKG_CONFIG  path to pkg-config utility
1460  PKG_CONFIG_PATH
1461              directories to add to pkg-config's search path
1462  PKG_CONFIG_LIBDIR
1463              path overriding pkg-config's built-in search path
1464  XLOGO_CFLAGS
1465              C compiler flags for XLOGO, overriding pkg-config
1466  XLOGO_LIBS  linker flags for XLOGO, overriding pkg-config
1467  APPDEFS_CFLAGS
1468              C compiler flags for APPDEFS, overriding pkg-config
1469  APPDEFS_LIBS
1470              linker flags for APPDEFS, overriding pkg-config
1471
1472Use these variables to override the choices made by 'configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
1475Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/-/issues>.
1476_ACEOF
1477ac_status=$?
1478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481  # If there are subdirs, report their specific --help.
1482  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483    test -d "$ac_dir" ||
1484      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485      continue
1486    ac_builddir=.
1487
1488case "$ac_dir" in
1489.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490*)
1491  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1492  # A ".." for each directory in $ac_dir_suffix.
1493  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494  case $ac_top_builddir_sub in
1495  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497  esac ;;
1498esac
1499ac_abs_top_builddir=$ac_pwd
1500ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501# for backward compatibility:
1502ac_top_builddir=$ac_top_build_prefix
1503
1504case $srcdir in
1505  .)  # We are building in place.
1506    ac_srcdir=.
1507    ac_top_srcdir=$ac_top_builddir_sub
1508    ac_abs_top_srcdir=$ac_pwd ;;
1509  [\\/]* | ?:[\\/]* )  # Absolute name.
1510    ac_srcdir=$srcdir$ac_dir_suffix;
1511    ac_top_srcdir=$srcdir
1512    ac_abs_top_srcdir=$srcdir ;;
1513  *) # Relative name.
1514    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515    ac_top_srcdir=$ac_top_build_prefix$srcdir
1516    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517esac
1518ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520    cd "$ac_dir" || { ac_status=$?; continue; }
1521    # Check for configure.gnu first; this name is used for a wrapper for
1522    # Metaconfig's "Configure" on case-insensitive file systems.
1523    if test -f "$ac_srcdir/configure.gnu"; then
1524      echo &&
1525      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1526    elif test -f "$ac_srcdir/configure"; then
1527      echo &&
1528      $SHELL "$ac_srcdir/configure" --help=recursive
1529    else
1530      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531    fi || ac_status=$?
1532    cd "$ac_pwd" || { ac_status=$?; break; }
1533  done
1534fi
1535
1536test -n "$ac_init_help" && exit $ac_status
1537if $ac_init_version; then
1538  cat <<\_ACEOF
1539xlogo configure 1.0.7
1540generated by GNU Autoconf 2.72
1541
1542Copyright (C) 2023 Free Software Foundation, Inc.
1543This configure script is free software; the Free Software Foundation
1544gives unlimited permission to copy, distribute and modify it.
1545_ACEOF
1546  exit
1547fi
1548
1549## ------------------------ ##
1550## Autoconf initialization. ##
1551## ------------------------ ##
1552
1553# ac_fn_c_try_compile LINENO
1554# --------------------------
1555# Try to compile conftest.$ac_ext, and return whether this succeeded.
1556ac_fn_c_try_compile ()
1557{
1558  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559  rm -f conftest.$ac_objext conftest.beam
1560  if { { ac_try="$ac_compile"
1561case "(($ac_try" in
1562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563  *) ac_try_echo=$ac_try;;
1564esac
1565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566printf "%s\n" "$ac_try_echo"; } >&5
1567  (eval "$ac_compile") 2>conftest.err
1568  ac_status=$?
1569  if test -s conftest.err; then
1570    grep -v '^ *+' conftest.err >conftest.er1
1571    cat conftest.er1 >&5
1572    mv -f conftest.er1 conftest.err
1573  fi
1574  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575  test $ac_status = 0; } && {
1576	 test -z "$ac_c_werror_flag" ||
1577	 test ! -s conftest.err
1578       } && test -s conftest.$ac_objext
1579then :
1580  ac_retval=0
1581else case e in #(
1582  e) printf "%s\n" "$as_me: failed program was:" >&5
1583sed 's/^/| /' conftest.$ac_ext >&5
1584
1585	ac_retval=1 ;;
1586esac
1587fi
1588  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589  as_fn_set_status $ac_retval
1590
1591} # ac_fn_c_try_compile
1592
1593# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1594# ------------------------------------------------------------------
1595# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1596# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1597ac_fn_check_decl ()
1598{
1599  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600  as_decl_name=`echo $2|sed 's/ *(.*//'`
1601  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1602printf %s "checking whether $as_decl_name is declared... " >&6; }
1603if eval test \${$3+y}
1604then :
1605  printf %s "(cached) " >&6
1606else case e in #(
1607  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1608  eval ac_save_FLAGS=\$$6
1609  as_fn_append $6 " $5"
1610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611/* end confdefs.h.  */
1612$4
1613int
1614main (void)
1615{
1616#ifndef $as_decl_name
1617#ifdef __cplusplus
1618  (void) $as_decl_use;
1619#else
1620  (void) $as_decl_name;
1621#endif
1622#endif
1623
1624  ;
1625  return 0;
1626}
1627_ACEOF
1628if ac_fn_c_try_compile "$LINENO"
1629then :
1630  eval "$3=yes"
1631else case e in #(
1632  e) eval "$3=no" ;;
1633esac
1634fi
1635rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1636  eval $6=\$ac_save_FLAGS
1637 ;;
1638esac
1639fi
1640eval ac_res=\$$3
1641	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642printf "%s\n" "$ac_res" >&6; }
1643  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644
1645} # ac_fn_check_decl
1646
1647# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1648# -------------------------------------------------------
1649# Tests whether HEADER exists and can be compiled using the include files in
1650# INCLUDES, setting the cache variable VAR accordingly.
1651ac_fn_c_check_header_compile ()
1652{
1653  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655printf %s "checking for $2... " >&6; }
1656if eval test \${$3+y}
1657then :
1658  printf %s "(cached) " >&6
1659else case e in #(
1660  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661/* end confdefs.h.  */
1662$4
1663#include <$2>
1664_ACEOF
1665if ac_fn_c_try_compile "$LINENO"
1666then :
1667  eval "$3=yes"
1668else case e in #(
1669  e) eval "$3=no" ;;
1670esac
1671fi
1672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1673esac
1674fi
1675eval ac_res=\$$3
1676	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677printf "%s\n" "$ac_res" >&6; }
1678  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679
1680} # ac_fn_c_check_header_compile
1681
1682# ac_fn_c_try_link LINENO
1683# -----------------------
1684# Try to link conftest.$ac_ext, and return whether this succeeded.
1685ac_fn_c_try_link ()
1686{
1687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1689  if { { ac_try="$ac_link"
1690case "(($ac_try" in
1691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692  *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695printf "%s\n" "$ac_try_echo"; } >&5
1696  (eval "$ac_link") 2>conftest.err
1697  ac_status=$?
1698  if test -s conftest.err; then
1699    grep -v '^ *+' conftest.err >conftest.er1
1700    cat conftest.er1 >&5
1701    mv -f conftest.er1 conftest.err
1702  fi
1703  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704  test $ac_status = 0; } && {
1705	 test -z "$ac_c_werror_flag" ||
1706	 test ! -s conftest.err
1707       } && test -s conftest$ac_exeext && {
1708	 test "$cross_compiling" = yes ||
1709	 test -x conftest$ac_exeext
1710       }
1711then :
1712  ac_retval=0
1713else case e in #(
1714  e) printf "%s\n" "$as_me: failed program was:" >&5
1715sed 's/^/| /' conftest.$ac_ext >&5
1716
1717	ac_retval=1 ;;
1718esac
1719fi
1720  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1721  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1722  # interfere with the next link command; also delete a directory that is
1723  # left behind by Apple's compiler.  We do this before executing the actions.
1724  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726  as_fn_set_status $ac_retval
1727
1728} # ac_fn_c_try_link
1729
1730# ac_fn_c_check_func LINENO FUNC VAR
1731# ----------------------------------
1732# Tests whether FUNC exists, setting the cache variable VAR accordingly
1733ac_fn_c_check_func ()
1734{
1735  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737printf %s "checking for $2... " >&6; }
1738if eval test \${$3+y}
1739then :
1740  printf %s "(cached) " >&6
1741else case e in #(
1742  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743/* end confdefs.h.  */
1744/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1745   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1746#define $2 innocuous_$2
1747
1748/* System header to define __stub macros and hopefully few prototypes,
1749   which can conflict with char $2 (void); below.  */
1750
1751#include <limits.h>
1752#undef $2
1753
1754/* Override any GCC internal prototype to avoid an error.
1755   Use char because int might match the return type of a GCC
1756   builtin and then its argument prototype would still apply.  */
1757#ifdef __cplusplus
1758extern "C"
1759#endif
1760char $2 (void);
1761/* The GNU C library defines this for functions which it implements
1762    to always fail with ENOSYS.  Some functions are actually named
1763    something starting with __ and the normal name is an alias.  */
1764#if defined __stub_$2 || defined __stub___$2
1765choke me
1766#endif
1767
1768int
1769main (void)
1770{
1771return $2 ();
1772  ;
1773  return 0;
1774}
1775_ACEOF
1776if ac_fn_c_try_link "$LINENO"
1777then :
1778  eval "$3=yes"
1779else case e in #(
1780  e) eval "$3=no" ;;
1781esac
1782fi
1783rm -f core conftest.err conftest.$ac_objext conftest.beam \
1784    conftest$ac_exeext conftest.$ac_ext ;;
1785esac
1786fi
1787eval ac_res=\$$3
1788	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789printf "%s\n" "$ac_res" >&6; }
1790  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792} # ac_fn_c_check_func
1793ac_configure_args_raw=
1794for ac_arg
1795do
1796  case $ac_arg in
1797  *\'*)
1798    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1799  esac
1800  as_fn_append ac_configure_args_raw " '$ac_arg'"
1801done
1802
1803case $ac_configure_args_raw in
1804  *$as_nl*)
1805    ac_safe_unquote= ;;
1806  *)
1807    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1808    ac_unsafe_a="$ac_unsafe_z#~"
1809    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1810    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1811esac
1812
1813cat >config.log <<_ACEOF
1814This file contains any messages produced by compilers while
1815running configure, to aid debugging if configure makes a mistake.
1816
1817It was created by xlogo $as_me 1.0.7, which was
1818generated by GNU Autoconf 2.72.  Invocation command line was
1819
1820  $ $0$ac_configure_args_raw
1821
1822_ACEOF
1823exec 5>>config.log
1824{
1825cat <<_ASUNAME
1826## --------- ##
1827## Platform. ##
1828## --------- ##
1829
1830hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1831uname -m = `(uname -m) 2>/dev/null || echo unknown`
1832uname -r = `(uname -r) 2>/dev/null || echo unknown`
1833uname -s = `(uname -s) 2>/dev/null || echo unknown`
1834uname -v = `(uname -v) 2>/dev/null || echo unknown`
1835
1836/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1837/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1838
1839/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1840/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1841/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1842/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1843/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1844/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1845/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1846
1847_ASUNAME
1848
1849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850for as_dir in $PATH
1851do
1852  IFS=$as_save_IFS
1853  case $as_dir in #(((
1854    '') as_dir=./ ;;
1855    */) ;;
1856    *) as_dir=$as_dir/ ;;
1857  esac
1858    printf "%s\n" "PATH: $as_dir"
1859  done
1860IFS=$as_save_IFS
1861
1862} >&5
1863
1864cat >&5 <<_ACEOF
1865
1866
1867## ----------- ##
1868## Core tests. ##
1869## ----------- ##
1870
1871_ACEOF
1872
1873
1874# Keep a trace of the command line.
1875# Strip out --no-create and --no-recursion so they do not pile up.
1876# Strip out --silent because we don't want to record it for future runs.
1877# Also quote any args containing shell meta-characters.
1878# Make two passes to allow for proper duplicate-argument suppression.
1879ac_configure_args=
1880ac_configure_args0=
1881ac_configure_args1=
1882ac_must_keep_next=false
1883for ac_pass in 1 2
1884do
1885  for ac_arg
1886  do
1887    case $ac_arg in
1888    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1889    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1890    | -silent | --silent | --silen | --sile | --sil)
1891      continue ;;
1892    *\'*)
1893      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1894    esac
1895    case $ac_pass in
1896    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1897    2)
1898      as_fn_append ac_configure_args1 " '$ac_arg'"
1899      if test $ac_must_keep_next = true; then
1900	ac_must_keep_next=false # Got value, back to normal.
1901      else
1902	case $ac_arg in
1903	  *=* | --config-cache | -C | -disable-* | --disable-* \
1904	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1905	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1906	  | -with-* | --with-* | -without-* | --without-* | --x)
1907	    case "$ac_configure_args0 " in
1908	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1909	    esac
1910	    ;;
1911	  -* ) ac_must_keep_next=true ;;
1912	esac
1913      fi
1914      as_fn_append ac_configure_args " '$ac_arg'"
1915      ;;
1916    esac
1917  done
1918done
1919{ ac_configure_args0=; unset ac_configure_args0;}
1920{ ac_configure_args1=; unset ac_configure_args1;}
1921
1922# When interrupted or exit'd, cleanup temporary files, and complete
1923# config.log.  We remove comments because anyway the quotes in there
1924# would cause problems or look ugly.
1925# WARNING: Use '\'' to represent an apostrophe within the trap.
1926# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1927trap 'exit_status=$?
1928  # Sanitize IFS.
1929  IFS=" ""	$as_nl"
1930  # Save into config.log some information that might help in debugging.
1931  {
1932    echo
1933
1934    printf "%s\n" "## ---------------- ##
1935## Cache variables. ##
1936## ---------------- ##"
1937    echo
1938    # The following way of writing the cache mishandles newlines in values,
1939(
1940  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1941    eval ac_val=\$$ac_var
1942    case $ac_val in #(
1943    *${as_nl}*)
1944      case $ac_var in #(
1945      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1946printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1947      esac
1948      case $ac_var in #(
1949      _ | IFS | as_nl) ;; #(
1950      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1951      *) { eval $ac_var=; unset $ac_var;} ;;
1952      esac ;;
1953    esac
1954  done
1955  (set) 2>&1 |
1956    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1957    *${as_nl}ac_space=\ *)
1958      sed -n \
1959	"s/'\''/'\''\\\\'\'''\''/g;
1960	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1961      ;; #(
1962    *)
1963      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1964      ;;
1965    esac |
1966    sort
1967)
1968    echo
1969
1970    printf "%s\n" "## ----------------- ##
1971## Output variables. ##
1972## ----------------- ##"
1973    echo
1974    for ac_var in $ac_subst_vars
1975    do
1976      eval ac_val=\$$ac_var
1977      case $ac_val in
1978      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1979      esac
1980      printf "%s\n" "$ac_var='\''$ac_val'\''"
1981    done | sort
1982    echo
1983
1984    if test -n "$ac_subst_files"; then
1985      printf "%s\n" "## ------------------- ##
1986## File substitutions. ##
1987## ------------------- ##"
1988      echo
1989      for ac_var in $ac_subst_files
1990      do
1991	eval ac_val=\$$ac_var
1992	case $ac_val in
1993	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1994	esac
1995	printf "%s\n" "$ac_var='\''$ac_val'\''"
1996      done | sort
1997      echo
1998    fi
1999
2000    if test -s confdefs.h; then
2001      printf "%s\n" "## ----------- ##
2002## confdefs.h. ##
2003## ----------- ##"
2004      echo
2005      cat confdefs.h
2006      echo
2007    fi
2008    test "$ac_signal" != 0 &&
2009      printf "%s\n" "$as_me: caught signal $ac_signal"
2010    printf "%s\n" "$as_me: exit $exit_status"
2011  } >&5
2012  rm -f core *.core core.conftest.* &&
2013    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2014    exit $exit_status
2015' 0
2016for ac_signal in 1 2 13 15; do
2017  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2018done
2019ac_signal=0
2020
2021# confdefs.h avoids OS command line length limits that DEFS can exceed.
2022rm -f -r conftest* confdefs.h
2023
2024printf "%s\n" "/* confdefs.h */" > confdefs.h
2025
2026# Predefined preprocessor variables.
2027
2028printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2029
2030printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2031
2032printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2033
2034printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2035
2036printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2037
2038printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2039
2040
2041# Let the site file select an alternate cache file if it wants to.
2042# Prefer an explicitly selected file to automatically selected ones.
2043if test -n "$CONFIG_SITE"; then
2044  ac_site_files="$CONFIG_SITE"
2045elif test "x$prefix" != xNONE; then
2046  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2047else
2048  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2049fi
2050
2051for ac_site_file in $ac_site_files
2052do
2053  case $ac_site_file in #(
2054  */*) :
2055     ;; #(
2056  *) :
2057    ac_site_file=./$ac_site_file ;;
2058esac
2059  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2060    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2061printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2062    sed 's/^/| /' "$ac_site_file" >&5
2063    . "$ac_site_file" \
2064      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2065printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2066as_fn_error $? "failed to load site script $ac_site_file
2067See 'config.log' for more details" "$LINENO" 5; }
2068  fi
2069done
2070
2071if test -r "$cache_file"; then
2072  # Some versions of bash will fail to source /dev/null (special files
2073  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2074  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2075    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2076printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2077    case $cache_file in
2078      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2079      *)                      . "./$cache_file";;
2080    esac
2081  fi
2082else
2083  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2084printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2085  >$cache_file
2086fi
2087
2088# Test code for whether the C compiler supports C89 (global declarations)
2089ac_c_conftest_c89_globals='
2090/* Does the compiler advertise C89 conformance?
2091   Do not test the value of __STDC__, because some compilers set it to 0
2092   while being otherwise adequately conformant. */
2093#if !defined __STDC__
2094# error "Compiler does not advertise C89 conformance"
2095#endif
2096
2097#include <stddef.h>
2098#include <stdarg.h>
2099struct stat;
2100/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2101struct buf { int x; };
2102struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2103static char *e (char **p, int i)
2104{
2105  return p[i];
2106}
2107static char *f (char * (*g) (char **, int), char **p, ...)
2108{
2109  char *s;
2110  va_list v;
2111  va_start (v,p);
2112  s = g (p, va_arg (v,int));
2113  va_end (v);
2114  return s;
2115}
2116
2117/* C89 style stringification. */
2118#define noexpand_stringify(a) #a
2119const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2120
2121/* C89 style token pasting.  Exercises some of the corner cases that
2122   e.g. old MSVC gets wrong, but not very hard. */
2123#define noexpand_concat(a,b) a##b
2124#define expand_concat(a,b) noexpand_concat(a,b)
2125extern int vA;
2126extern int vbee;
2127#define aye A
2128#define bee B
2129int *pvA = &expand_concat(v,aye);
2130int *pvbee = &noexpand_concat(v,bee);
2131
2132/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2133   function prototypes and stuff, but not \xHH hex character constants.
2134   These do not provoke an error unfortunately, instead are silently treated
2135   as an "x".  The following induces an error, until -std is added to get
2136   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2137   array size at least.  It is necessary to write \x00 == 0 to get something
2138   that is true only with -std.  */
2139int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2140
2141/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2142   inside strings and character constants.  */
2143#define FOO(x) '\''x'\''
2144int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2145
2146int test (int i, double x);
2147struct s1 {int (*f) (int a);};
2148struct s2 {int (*f) (double a);};
2149int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2150               int, int);'
2151
2152# Test code for whether the C compiler supports C89 (body of main).
2153ac_c_conftest_c89_main='
2154ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2155'
2156
2157# Test code for whether the C compiler supports C99 (global declarations)
2158ac_c_conftest_c99_globals='
2159/* Does the compiler advertise C99 conformance? */
2160#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2161# error "Compiler does not advertise C99 conformance"
2162#endif
2163
2164// See if C++-style comments work.
2165
2166#include <stdbool.h>
2167extern int puts (const char *);
2168extern int printf (const char *, ...);
2169extern int dprintf (int, const char *, ...);
2170extern void *malloc (size_t);
2171extern void free (void *);
2172
2173// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2174// dprintf is used instead of fprintf to avoid needing to declare
2175// FILE and stderr.
2176#define debug(...) dprintf (2, __VA_ARGS__)
2177#define showlist(...) puts (#__VA_ARGS__)
2178#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2179static void
2180test_varargs_macros (void)
2181{
2182  int x = 1234;
2183  int y = 5678;
2184  debug ("Flag");
2185  debug ("X = %d\n", x);
2186  showlist (The first, second, and third items.);
2187  report (x>y, "x is %d but y is %d", x, y);
2188}
2189
2190// Check long long types.
2191#define BIG64 18446744073709551615ull
2192#define BIG32 4294967295ul
2193#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2194#if !BIG_OK
2195  #error "your preprocessor is broken"
2196#endif
2197#if BIG_OK
2198#else
2199  #error "your preprocessor is broken"
2200#endif
2201static long long int bignum = -9223372036854775807LL;
2202static unsigned long long int ubignum = BIG64;
2203
2204struct incomplete_array
2205{
2206  int datasize;
2207  double data[];
2208};
2209
2210struct named_init {
2211  int number;
2212  const wchar_t *name;
2213  double average;
2214};
2215
2216typedef const char *ccp;
2217
2218static inline int
2219test_restrict (ccp restrict text)
2220{
2221  // Iterate through items via the restricted pointer.
2222  // Also check for declarations in for loops.
2223  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2224    continue;
2225  return 0;
2226}
2227
2228// Check varargs and va_copy.
2229static bool
2230test_varargs (const char *format, ...)
2231{
2232  va_list args;
2233  va_start (args, format);
2234  va_list args_copy;
2235  va_copy (args_copy, args);
2236
2237  const char *str = "";
2238  int number = 0;
2239  float fnumber = 0;
2240
2241  while (*format)
2242    {
2243      switch (*format++)
2244	{
2245	case '\''s'\'': // string
2246	  str = va_arg (args_copy, const char *);
2247	  break;
2248	case '\''d'\'': // int
2249	  number = va_arg (args_copy, int);
2250	  break;
2251	case '\''f'\'': // float
2252	  fnumber = va_arg (args_copy, double);
2253	  break;
2254	default:
2255	  break;
2256	}
2257    }
2258  va_end (args_copy);
2259  va_end (args);
2260
2261  return *str && number && fnumber;
2262}
2263'
2264
2265# Test code for whether the C compiler supports C99 (body of main).
2266ac_c_conftest_c99_main='
2267  // Check bool.
2268  _Bool success = false;
2269  success |= (argc != 0);
2270
2271  // Check restrict.
2272  if (test_restrict ("String literal") == 0)
2273    success = true;
2274  char *restrict newvar = "Another string";
2275
2276  // Check varargs.
2277  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2278  test_varargs_macros ();
2279
2280  // Check flexible array members.
2281  struct incomplete_array *ia =
2282    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2283  ia->datasize = 10;
2284  for (int i = 0; i < ia->datasize; ++i)
2285    ia->data[i] = i * 1.234;
2286  // Work around memory leak warnings.
2287  free (ia);
2288
2289  // Check named initializers.
2290  struct named_init ni = {
2291    .number = 34,
2292    .name = L"Test wide string",
2293    .average = 543.34343,
2294  };
2295
2296  ni.number = 58;
2297
2298  int dynamic_array[ni.number];
2299  dynamic_array[0] = argv[0][0];
2300  dynamic_array[ni.number - 1] = 543;
2301
2302  // work around unused variable warnings
2303  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2304	 || dynamic_array[ni.number - 1] != 543);
2305'
2306
2307# Test code for whether the C compiler supports C11 (global declarations)
2308ac_c_conftest_c11_globals='
2309/* Does the compiler advertise C11 conformance? */
2310#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2311# error "Compiler does not advertise C11 conformance"
2312#endif
2313
2314// Check _Alignas.
2315char _Alignas (double) aligned_as_double;
2316char _Alignas (0) no_special_alignment;
2317extern char aligned_as_int;
2318char _Alignas (0) _Alignas (int) aligned_as_int;
2319
2320// Check _Alignof.
2321enum
2322{
2323  int_alignment = _Alignof (int),
2324  int_array_alignment = _Alignof (int[100]),
2325  char_alignment = _Alignof (char)
2326};
2327_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2328
2329// Check _Noreturn.
2330int _Noreturn does_not_return (void) { for (;;) continue; }
2331
2332// Check _Static_assert.
2333struct test_static_assert
2334{
2335  int x;
2336  _Static_assert (sizeof (int) <= sizeof (long int),
2337                  "_Static_assert does not work in struct");
2338  long int y;
2339};
2340
2341// Check UTF-8 literals.
2342#define u8 syntax error!
2343char const utf8_literal[] = u8"happens to be ASCII" "another string";
2344
2345// Check duplicate typedefs.
2346typedef long *long_ptr;
2347typedef long int *long_ptr;
2348typedef long_ptr long_ptr;
2349
2350// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2351struct anonymous
2352{
2353  union {
2354    struct { int i; int j; };
2355    struct { int k; long int l; } w;
2356  };
2357  int m;
2358} v1;
2359'
2360
2361# Test code for whether the C compiler supports C11 (body of main).
2362ac_c_conftest_c11_main='
2363  _Static_assert ((offsetof (struct anonymous, i)
2364		   == offsetof (struct anonymous, w.k)),
2365		  "Anonymous union alignment botch");
2366  v1.i = 2;
2367  v1.w.k = 5;
2368  ok |= v1.i != 5;
2369'
2370
2371# Test code for whether the C compiler supports C11 (complete).
2372ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2373${ac_c_conftest_c99_globals}
2374${ac_c_conftest_c11_globals}
2375
2376int
2377main (int argc, char **argv)
2378{
2379  int ok = 0;
2380  ${ac_c_conftest_c89_main}
2381  ${ac_c_conftest_c99_main}
2382  ${ac_c_conftest_c11_main}
2383  return ok;
2384}
2385"
2386
2387# Test code for whether the C compiler supports C99 (complete).
2388ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2389${ac_c_conftest_c99_globals}
2390
2391int
2392main (int argc, char **argv)
2393{
2394  int ok = 0;
2395  ${ac_c_conftest_c89_main}
2396  ${ac_c_conftest_c99_main}
2397  return ok;
2398}
2399"
2400
2401# Test code for whether the C compiler supports C89 (complete).
2402ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2403
2404int
2405main (int argc, char **argv)
2406{
2407  int ok = 0;
2408  ${ac_c_conftest_c89_main}
2409  return ok;
2410}
2411"
2412
2413as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2414as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2415as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2416as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2417as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2418as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2419as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2420as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2421as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2422
2423# Auxiliary files required by this configure script.
2424ac_aux_files="config.guess config.sub compile missing install-sh"
2425
2426# Locations in which to look for auxiliary files.
2427ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2428
2429# Search for a directory containing all of the required auxiliary files,
2430# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2431# If we don't find one directory that contains all the files we need,
2432# we report the set of missing files from the *first* directory in
2433# $ac_aux_dir_candidates and give up.
2434ac_missing_aux_files=""
2435ac_first_candidate=:
2436printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438as_found=false
2439for as_dir in $ac_aux_dir_candidates
2440do
2441  IFS=$as_save_IFS
2442  case $as_dir in #(((
2443    '') as_dir=./ ;;
2444    */) ;;
2445    *) as_dir=$as_dir/ ;;
2446  esac
2447  as_found=:
2448
2449  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2450  ac_aux_dir_found=yes
2451  ac_install_sh=
2452  for ac_aux in $ac_aux_files
2453  do
2454    # As a special case, if "install-sh" is required, that requirement
2455    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2456    # and $ac_install_sh is set appropriately for whichever one is found.
2457    if test x"$ac_aux" = x"install-sh"
2458    then
2459      if test -f "${as_dir}install-sh"; then
2460        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2461        ac_install_sh="${as_dir}install-sh -c"
2462      elif test -f "${as_dir}install.sh"; then
2463        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2464        ac_install_sh="${as_dir}install.sh -c"
2465      elif test -f "${as_dir}shtool"; then
2466        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2467        ac_install_sh="${as_dir}shtool install -c"
2468      else
2469        ac_aux_dir_found=no
2470        if $ac_first_candidate; then
2471          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2472        else
2473          break
2474        fi
2475      fi
2476    else
2477      if test -f "${as_dir}${ac_aux}"; then
2478        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2479      else
2480        ac_aux_dir_found=no
2481        if $ac_first_candidate; then
2482          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2483        else
2484          break
2485        fi
2486      fi
2487    fi
2488  done
2489  if test "$ac_aux_dir_found" = yes; then
2490    ac_aux_dir="$as_dir"
2491    break
2492  fi
2493  ac_first_candidate=false
2494
2495  as_found=false
2496done
2497IFS=$as_save_IFS
2498if $as_found
2499then :
2500
2501else case e in #(
2502  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2503esac
2504fi
2505
2506
2507# These three variables are undocumented and unsupported,
2508# and are intended to be withdrawn in a future Autoconf release.
2509# They can cause serious problems if a builder's source tree is in a directory
2510# whose full name contains unusual characters.
2511if test -f "${ac_aux_dir}config.guess"; then
2512  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2513fi
2514if test -f "${ac_aux_dir}config.sub"; then
2515  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2516fi
2517if test -f "$ac_aux_dir/configure"; then
2518  ac_configure="$SHELL ${ac_aux_dir}configure"
2519fi
2520
2521# Check that the precious variables saved in the cache have kept the same
2522# value.
2523ac_cache_corrupted=false
2524for ac_var in $ac_precious_vars; do
2525  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2526  eval ac_new_set=\$ac_env_${ac_var}_set
2527  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2528  eval ac_new_val=\$ac_env_${ac_var}_value
2529  case $ac_old_set,$ac_new_set in
2530    set,)
2531      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2532printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2533      ac_cache_corrupted=: ;;
2534    ,set)
2535      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2536printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2537      ac_cache_corrupted=: ;;
2538    ,);;
2539    *)
2540      if test "x$ac_old_val" != "x$ac_new_val"; then
2541	# differences in whitespace do not lead to failure.
2542	ac_old_val_w=`echo x $ac_old_val`
2543	ac_new_val_w=`echo x $ac_new_val`
2544	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2545	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2546printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2547	  ac_cache_corrupted=:
2548	else
2549	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2550printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2551	  eval $ac_var=\$ac_old_val
2552	fi
2553	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2554printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2555	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2556printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2557      fi;;
2558  esac
2559  # Pass precious variables to config.status.
2560  if test "$ac_new_set" = set; then
2561    case $ac_new_val in
2562    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2563    *) ac_arg=$ac_var=$ac_new_val ;;
2564    esac
2565    case " $ac_configure_args " in
2566      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2567      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2568    esac
2569  fi
2570done
2571if $ac_cache_corrupted; then
2572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2573printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2574  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2575printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2576  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2577	    and start over" "$LINENO" 5
2578fi
2579## -------------------- ##
2580## Main body of script. ##
2581## -------------------- ##
2582
2583ac_ext=c
2584ac_cpp='$CPP $CPPFLAGS'
2585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588
2589
2590
2591ac_config_headers="$ac_config_headers config.h"
2592
2593
2594# Initialize Automake
2595am__api_version='1.17'
2596
2597
2598
2599  # Find a good install program.  We prefer a C program (faster),
2600# so one script is as good as another.  But avoid the broken or
2601# incompatible versions:
2602# SysV /etc/install, /usr/sbin/install
2603# SunOS /usr/etc/install
2604# IRIX /sbin/install
2605# AIX /bin/install
2606# AmigaOS /C/install, which installs bootblocks on floppy discs
2607# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2608# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2609# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2610# OS/2's system install, which has a completely different semantic
2611# ./install, which can be erroneously created by make from ./install.sh.
2612# Reject install programs that cannot install multiple files.
2613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2614printf %s "checking for a BSD-compatible install... " >&6; }
2615if test -z "$INSTALL"; then
2616if test ${ac_cv_path_install+y}
2617then :
2618  printf %s "(cached) " >&6
2619else case e in #(
2620  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621for as_dir in $PATH
2622do
2623  IFS=$as_save_IFS
2624  case $as_dir in #(((
2625    '') as_dir=./ ;;
2626    */) ;;
2627    *) as_dir=$as_dir/ ;;
2628  esac
2629    # Account for fact that we put trailing slashes in our PATH walk.
2630case $as_dir in #((
2631  ./ | /[cC]/* | \
2632  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2633  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2634  /usr/ucb/* ) ;;
2635  *)
2636    # OSF1 and SCO ODT 3.0 have their own names for install.
2637    # Don't use installbsd from OSF since it installs stuff as root
2638    # by default.
2639    for ac_prog in ginstall scoinst install; do
2640      for ac_exec_ext in '' $ac_executable_extensions; do
2641	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2642	  if test $ac_prog = install &&
2643	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2644	    # AIX install.  It has an incompatible calling convention.
2645	    :
2646	  elif test $ac_prog = install &&
2647	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2648	    # program-specific install script used by HP pwplus--don't use.
2649	    :
2650	  else
2651	    rm -rf conftest.one conftest.two conftest.dir
2652	    echo one > conftest.one
2653	    echo two > conftest.two
2654	    mkdir conftest.dir
2655	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2656	      test -s conftest.one && test -s conftest.two &&
2657	      test -s conftest.dir/conftest.one &&
2658	      test -s conftest.dir/conftest.two
2659	    then
2660	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2661	      break 3
2662	    fi
2663	  fi
2664	fi
2665      done
2666    done
2667    ;;
2668esac
2669
2670  done
2671IFS=$as_save_IFS
2672
2673rm -rf conftest.one conftest.two conftest.dir
2674 ;;
2675esac
2676fi
2677  if test ${ac_cv_path_install+y}; then
2678    INSTALL=$ac_cv_path_install
2679  else
2680    # As a last resort, use the slow shell script.  Don't cache a
2681    # value for INSTALL within a source directory, because that will
2682    # break other packages using the cache if that directory is
2683    # removed, or if the value is a relative name.
2684    INSTALL=$ac_install_sh
2685  fi
2686fi
2687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2688printf "%s\n" "$INSTALL" >&6; }
2689
2690# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2691# It thinks the first close brace ends the variable substitution.
2692test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2693
2694test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2695
2696test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2697
2698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2699printf %s "checking whether sleep supports fractional seconds... " >&6; }
2700if test ${am_cv_sleep_fractional_seconds+y}
2701then :
2702  printf %s "(cached) " >&6
2703else case e in #(
2704  e) if sleep 0.001 2>/dev/null
2705then :
2706  am_cv_sleep_fractional_seconds=yes
2707else case e in #(
2708  e) am_cv_sleep_fractional_seconds=no ;;
2709esac
2710fi
2711 ;;
2712esac
2713fi
2714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2715printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2716
2717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2718printf %s "checking filesystem timestamp resolution... " >&6; }
2719if test ${am_cv_filesystem_timestamp_resolution+y}
2720then :
2721  printf %s "(cached) " >&6
2722else case e in #(
2723  e) # Default to the worst case.
2724am_cv_filesystem_timestamp_resolution=2
2725
2726# Only try to go finer than 1 sec if sleep can do it.
2727# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2728# - 1 sec is not much of a win compared to 2 sec, and
2729# - it takes 2 seconds to perform the test whether 1 sec works.
2730#
2731# Instead, just use the default 2s on platforms that have 1s resolution,
2732# accept the extra 1s delay when using $sleep in the Automake tests, in
2733# exchange for not incurring the 2s delay for running the test for all
2734# packages.
2735#
2736am_try_resolutions=
2737if test "$am_cv_sleep_fractional_seconds" = yes; then
2738  # Even a millisecond often causes a bunch of false positives,
2739  # so just try a hundredth of a second. The time saved between .001 and
2740  # .01 is not terribly consequential.
2741  am_try_resolutions="0.01 0.1 $am_try_resolutions"
2742fi
2743
2744# In order to catch current-generation FAT out, we must *modify* files
2745# that already exist; the *creation* timestamp is finer.  Use names
2746# that make ls -t sort them differently when they have equal
2747# timestamps than when they have distinct timestamps, keeping
2748# in mind that ls -t prints the *newest* file first.
2749rm -f conftest.ts?
2750: > conftest.ts1
2751: > conftest.ts2
2752: > conftest.ts3
2753
2754# Make sure ls -t actually works.  Do 'set' in a subshell so we don't
2755# clobber the current shell's arguments. (Outer-level square brackets
2756# are removed by m4; they're present so that m4 does not expand
2757# <dollar><star>; be careful, easy to get confused.)
2758if (
2759     set X `ls -t conftest.ts[12]` &&
2760     {
2761       test "$*" != "X conftest.ts1 conftest.ts2" ||
2762       test "$*" != "X conftest.ts2 conftest.ts1";
2763     }
2764); then :; else
2765  # If neither matched, then we have a broken ls.  This can happen
2766  # if, for instance, CONFIG_SHELL is bash and it inherits a
2767  # broken ls alias from the environment.  This has actually
2768  # happened.  Such a system could not be considered "sane".
2769  printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2770  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2771printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2772as_fn_error $? "ls -t produces unexpected output.
2773Make sure there is not a broken ls alias in your environment.
2774See 'config.log' for more details" "$LINENO" 5; }
2775fi
2776
2777for am_try_res in $am_try_resolutions; do
2778  # Any one fine-grained sleep might happen to cross the boundary
2779  # between two values of a coarser actual resolution, but if we do
2780  # two fine-grained sleeps in a row, at least one of them will fall
2781  # entirely within a coarse interval.
2782  echo alpha > conftest.ts1
2783  sleep $am_try_res
2784  echo beta > conftest.ts2
2785  sleep $am_try_res
2786  echo gamma > conftest.ts3
2787
2788  # We assume that 'ls -t' will make use of high-resolution
2789  # timestamps if the operating system supports them at all.
2790  if (set X `ls -t conftest.ts?` &&
2791      test "$2" = conftest.ts3 &&
2792      test "$3" = conftest.ts2 &&
2793      test "$4" = conftest.ts1); then
2794    #
2795    # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2796    # because we don't need to test make.
2797    make_ok=true
2798    if test $am_try_res != 1; then
2799      # But if we've succeeded so far with a subsecond resolution, we
2800      # have one more thing to check: make. It can happen that
2801      # everything else supports the subsecond mtimes, but make doesn't;
2802      # notably on macOS, which ships make 3.81 from 2006 (the last one
2803      # released under GPLv2). https://bugs.gnu.org/68808
2804      #
2805      # We test $MAKE if it is defined in the environment, else "make".
2806      # It might get overridden later, but our hope is that in practice
2807      # it does not matter: it is the system "make" which is (by far)
2808      # the most likely to be broken, whereas if the user overrides it,
2809      # probably they did so with a better, or at least not worse, make.
2810      # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2811      #
2812      # Create a Makefile (real tab character here):
2813      rm -f conftest.mk
2814      echo 'conftest.ts1: conftest.ts2' >conftest.mk
2815      echo '	touch conftest.ts2' >>conftest.mk
2816      #
2817      # Now, running
2818      #   touch conftest.ts1; touch conftest.ts2; make
2819      # should touch ts1 because ts2 is newer. This could happen by luck,
2820      # but most often, it will fail if make's support is insufficient. So
2821      # test for several consecutive successes.
2822      #
2823      # (We reuse conftest.ts[12] because we still want to modify existing
2824      # files, not create new ones, per above.)
2825      n=0
2826      make=${MAKE-make}
2827      until test $n -eq 3; do
2828        echo one > conftest.ts1
2829        sleep $am_try_res
2830        echo two > conftest.ts2 # ts2 should now be newer than ts1
2831        if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2832          make_ok=false
2833          break # out of $n loop
2834        fi
2835        n=`expr $n + 1`
2836      done
2837    fi
2838    #
2839    if $make_ok; then
2840      # Everything we know to check worked out, so call this resolution good.
2841      am_cv_filesystem_timestamp_resolution=$am_try_res
2842      break # out of $am_try_res loop
2843    fi
2844    # Otherwise, we'll go on to check the next resolution.
2845  fi
2846done
2847rm -f conftest.ts?
2848# (end _am_filesystem_timestamp_resolution)
2849 ;;
2850esac
2851fi
2852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2853printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2854
2855# This check should not be cached, as it may vary across builds of
2856# different projects.
2857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2858printf %s "checking whether build environment is sane... " >&6; }
2859# Reject unsafe characters in $srcdir or the absolute working directory
2860# name.  Accept space and tab only in the latter.
2861am_lf='
2862'
2863case `pwd` in
2864  *[\\\"\#\$\&\'\`$am_lf]*)
2865    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2866esac
2867case $srcdir in
2868  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2869    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2870esac
2871
2872# Do 'set' in a subshell so we don't clobber the current shell's
2873# arguments.  Must try -L first in case configure is actually a
2874# symlink; some systems play weird games with the mod time of symlinks
2875# (eg FreeBSD returns the mod time of the symlink's containing
2876# directory).
2877am_build_env_is_sane=no
2878am_has_slept=no
2879rm -f conftest.file
2880for am_try in 1 2; do
2881  echo "timestamp, slept: $am_has_slept" > conftest.file
2882  if (
2883    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2884    if test "$*" = "X"; then
2885      # -L didn't work.
2886      set X `ls -t "$srcdir/configure" conftest.file`
2887    fi
2888    test "$2" = conftest.file
2889  ); then
2890    am_build_env_is_sane=yes
2891    break
2892  fi
2893  # Just in case.
2894  sleep "$am_cv_filesystem_timestamp_resolution"
2895  am_has_slept=yes
2896done
2897
2898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2899printf "%s\n" "$am_build_env_is_sane" >&6; }
2900if test "$am_build_env_is_sane" = no; then
2901  as_fn_error $? "newly created file is older than distributed files!
2902Check your system clock" "$LINENO" 5
2903fi
2904
2905# If we didn't sleep, we still need to ensure time stamps of config.status and
2906# generated files are strictly newer.
2907am_sleep_pid=
2908if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2909then :
2910
2911else case e in #(
2912  e)   ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
2913  am_sleep_pid=$!
2914 ;;
2915esac
2916fi
2917
2918rm -f conftest.file
2919
2920test "$program_prefix" != NONE &&
2921  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2922# Use a double $ so make ignores it.
2923test "$program_suffix" != NONE &&
2924  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2925# Double any \ or $.
2926# By default was 's,x,x', remove it if useless.
2927ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2928program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2929
2930
2931# Expand $ac_aux_dir to an absolute path.
2932am_aux_dir=`cd "$ac_aux_dir" && pwd`
2933
2934
2935  if test x"${MISSING+set}" != xset; then
2936  MISSING="\${SHELL} '$am_aux_dir/missing'"
2937fi
2938# Use eval to expand $SHELL
2939if eval "$MISSING --is-lightweight"; then
2940  am_missing_run="$MISSING "
2941else
2942  am_missing_run=
2943  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2944printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2945fi
2946
2947if test x"${install_sh+set}" != xset; then
2948  case $am_aux_dir in
2949  *\ * | *\	*)
2950    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2951  *)
2952    install_sh="\${SHELL} $am_aux_dir/install-sh"
2953  esac
2954fi
2955
2956# Installed binaries are usually stripped using 'strip' when the user
2957# run "make install-strip".  However 'strip' might not be the right
2958# tool to use in cross-compilation environments, therefore Automake
2959# will honor the 'STRIP' environment variable to overrule this program.
2960if test "$cross_compiling" != no; then
2961  if test -n "$ac_tool_prefix"; then
2962  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2963set dummy ${ac_tool_prefix}strip; ac_word=$2
2964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965printf %s "checking for $ac_word... " >&6; }
2966if test ${ac_cv_prog_STRIP+y}
2967then :
2968  printf %s "(cached) " >&6
2969else case e in #(
2970  e) if test -n "$STRIP"; then
2971  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2972else
2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974for as_dir in $PATH
2975do
2976  IFS=$as_save_IFS
2977  case $as_dir in #(((
2978    '') as_dir=./ ;;
2979    */) ;;
2980    *) as_dir=$as_dir/ ;;
2981  esac
2982    for ac_exec_ext in '' $ac_executable_extensions; do
2983  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2984    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2985    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2986    break 2
2987  fi
2988done
2989  done
2990IFS=$as_save_IFS
2991
2992fi ;;
2993esac
2994fi
2995STRIP=$ac_cv_prog_STRIP
2996if test -n "$STRIP"; then
2997  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2998printf "%s\n" "$STRIP" >&6; }
2999else
3000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001printf "%s\n" "no" >&6; }
3002fi
3003
3004
3005fi
3006if test -z "$ac_cv_prog_STRIP"; then
3007  ac_ct_STRIP=$STRIP
3008  # Extract the first word of "strip", so it can be a program name with args.
3009set dummy strip; ac_word=$2
3010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011printf %s "checking for $ac_word... " >&6; }
3012if test ${ac_cv_prog_ac_ct_STRIP+y}
3013then :
3014  printf %s "(cached) " >&6
3015else case e in #(
3016  e) if test -n "$ac_ct_STRIP"; then
3017  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3018else
3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020for as_dir in $PATH
3021do
3022  IFS=$as_save_IFS
3023  case $as_dir in #(((
3024    '') as_dir=./ ;;
3025    */) ;;
3026    *) as_dir=$as_dir/ ;;
3027  esac
3028    for ac_exec_ext in '' $ac_executable_extensions; do
3029  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3030    ac_cv_prog_ac_ct_STRIP="strip"
3031    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3032    break 2
3033  fi
3034done
3035  done
3036IFS=$as_save_IFS
3037
3038fi ;;
3039esac
3040fi
3041ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3042if test -n "$ac_ct_STRIP"; then
3043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3044printf "%s\n" "$ac_ct_STRIP" >&6; }
3045else
3046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047printf "%s\n" "no" >&6; }
3048fi
3049
3050  if test "x$ac_ct_STRIP" = x; then
3051    STRIP=":"
3052  else
3053    case $cross_compiling:$ac_tool_warned in
3054yes:)
3055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3056printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3057ac_tool_warned=yes ;;
3058esac
3059    STRIP=$ac_ct_STRIP
3060  fi
3061else
3062  STRIP="$ac_cv_prog_STRIP"
3063fi
3064
3065fi
3066INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3067
3068
3069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3070printf %s "checking for a race-free mkdir -p... " >&6; }
3071if test -z "$MKDIR_P"; then
3072  if test ${ac_cv_path_mkdir+y}
3073then :
3074  printf %s "(cached) " >&6
3075else case e in #(
3076  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3078do
3079  IFS=$as_save_IFS
3080  case $as_dir in #(((
3081    '') as_dir=./ ;;
3082    */) ;;
3083    *) as_dir=$as_dir/ ;;
3084  esac
3085    for ac_prog in mkdir gmkdir; do
3086	 for ac_exec_ext in '' $ac_executable_extensions; do
3087	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3088	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3089	     'mkdir ('*'coreutils) '* | \
3090	     *'BusyBox '* | \
3091	     'mkdir (fileutils) '4.1*)
3092	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3093	       break 3;;
3094	   esac
3095	 done
3096       done
3097  done
3098IFS=$as_save_IFS
3099 ;;
3100esac
3101fi
3102
3103  test -d ./--version && rmdir ./--version
3104  if test ${ac_cv_path_mkdir+y}; then
3105    MKDIR_P="$ac_cv_path_mkdir -p"
3106  else
3107    # As a last resort, use plain mkdir -p,
3108    # in the hope it doesn't have the bugs of ancient mkdir.
3109    MKDIR_P='mkdir -p'
3110  fi
3111fi
3112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3113printf "%s\n" "$MKDIR_P" >&6; }
3114
3115for ac_prog in gawk mawk nawk awk
3116do
3117  # Extract the first word of "$ac_prog", so it can be a program name with args.
3118set dummy $ac_prog; ac_word=$2
3119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120printf %s "checking for $ac_word... " >&6; }
3121if test ${ac_cv_prog_AWK+y}
3122then :
3123  printf %s "(cached) " >&6
3124else case e in #(
3125  e) if test -n "$AWK"; then
3126  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3127else
3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH
3130do
3131  IFS=$as_save_IFS
3132  case $as_dir in #(((
3133    '') as_dir=./ ;;
3134    */) ;;
3135    *) as_dir=$as_dir/ ;;
3136  esac
3137    for ac_exec_ext in '' $ac_executable_extensions; do
3138  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3139    ac_cv_prog_AWK="$ac_prog"
3140    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3141    break 2
3142  fi
3143done
3144  done
3145IFS=$as_save_IFS
3146
3147fi ;;
3148esac
3149fi
3150AWK=$ac_cv_prog_AWK
3151if test -n "$AWK"; then
3152  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3153printf "%s\n" "$AWK" >&6; }
3154else
3155  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156printf "%s\n" "no" >&6; }
3157fi
3158
3159
3160  test -n "$AWK" && break
3161done
3162
3163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3164printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3165set x ${MAKE-make}
3166ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3167if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3168then :
3169  printf %s "(cached) " >&6
3170else case e in #(
3171  e) cat >conftest.make <<\_ACEOF
3172SHELL = /bin/sh
3173all:
3174	@echo '@@@%%%=$(MAKE)=@@@%%%'
3175_ACEOF
3176# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3177case `${MAKE-make} -f conftest.make 2>/dev/null` in
3178  *@@@%%%=?*=@@@%%%*)
3179    eval ac_cv_prog_make_${ac_make}_set=yes;;
3180  *)
3181    eval ac_cv_prog_make_${ac_make}_set=no;;
3182esac
3183rm -f conftest.make ;;
3184esac
3185fi
3186if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3187  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3188printf "%s\n" "yes" >&6; }
3189  SET_MAKE=
3190else
3191  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192printf "%s\n" "no" >&6; }
3193  SET_MAKE="MAKE=${MAKE-make}"
3194fi
3195
3196rm -rf .tst 2>/dev/null
3197mkdir .tst 2>/dev/null
3198if test -d .tst; then
3199  am__leading_dot=.
3200else
3201  am__leading_dot=_
3202fi
3203rmdir .tst 2>/dev/null
3204
3205AM_DEFAULT_VERBOSITY=1
3206# Check whether --enable-silent-rules was given.
3207if test ${enable_silent_rules+y}
3208then :
3209  enableval=$enable_silent_rules;
3210fi
3211
3212am_make=${MAKE-make}
3213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3214printf %s "checking whether $am_make supports nested variables... " >&6; }
3215if test ${am_cv_make_support_nested_variables+y}
3216then :
3217  printf %s "(cached) " >&6
3218else case e in #(
3219  e) if printf "%s\n" 'TRUE=$(BAR$(V))
3220BAR0=false
3221BAR1=true
3222V=1
3223am__doit:
3224	@$(TRUE)
3225.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3226  am_cv_make_support_nested_variables=yes
3227else
3228  am_cv_make_support_nested_variables=no
3229fi ;;
3230esac
3231fi
3232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3233printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3234AM_BACKSLASH='\'
3235
3236am__rm_f_notfound=
3237if (rm -f && rm -fr && rm -rf) 2>/dev/null
3238then :
3239
3240else case e in #(
3241  e) am__rm_f_notfound='""' ;;
3242esac
3243fi
3244
3245
3246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3247printf %s "checking xargs -n works... " >&6; }
3248if test ${am_cv_xargs_n_works+y}
3249then :
3250  printf %s "(cached) " >&6
3251else case e in #(
3252  e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
32533"
3254then :
3255  am_cv_xargs_n_works=yes
3256else case e in #(
3257  e) am_cv_xargs_n_works=no ;;
3258esac
3259fi ;;
3260esac
3261fi
3262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3263printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3264if test "$am_cv_xargs_n_works" = yes
3265then :
3266  am__xargs_n='xargs -n'
3267else case e in #(
3268  e)   am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3269 ;;
3270esac
3271fi
3272
3273if test "`cd $srcdir && pwd`" != "`pwd`"; then
3274  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3275  # is not polluted with repeated "-I."
3276  am__isrc=' -I$(srcdir)'
3277  # test to see if srcdir already configured
3278  if test -f $srcdir/config.status; then
3279    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3280  fi
3281fi
3282
3283# test whether we have cygpath
3284if test -z "$CYGPATH_W"; then
3285  if (cygpath --version) >/dev/null 2>/dev/null; then
3286    CYGPATH_W='cygpath -w'
3287  else
3288    CYGPATH_W=echo
3289  fi
3290fi
3291
3292
3293# Define the identity of the package.
3294 PACKAGE='xlogo'
3295 VERSION='1.0.7'
3296
3297
3298printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3299
3300
3301printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3302
3303# Some tools Automake needs.
3304
3305ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3306
3307
3308AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3309
3310
3311AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3312
3313
3314AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3315
3316
3317MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3318
3319# For better backward compatibility.  To be removed once Automake 1.9.x
3320# dies out for good.  For more background, see:
3321# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3322# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3323mkdir_p='$(MKDIR_P)'
3324
3325# We need awk for the "check" target (and possibly the TAP driver).  The
3326# system "awk" is bad on some platforms.
3327# Always define AMTAR for backward compatibility.  Yes, it's still used
3328# in the wild :-(  We should find a proper way to deprecate it ...
3329AMTAR='$${TAR-tar}'
3330
3331
3332# We'll loop over all known methods to create a tar archive until one works.
3333_am_tools='gnutar  pax cpio none'
3334
3335am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3336
3337
3338
3339
3340
3341# Variables for tags utilities; see am/tags.am
3342if test -z "$CTAGS"; then
3343  CTAGS=ctags
3344fi
3345
3346if test -z "$ETAGS"; then
3347  ETAGS=etags
3348fi
3349
3350if test -z "$CSCOPE"; then
3351  CSCOPE=cscope
3352fi
3353
3354
3355
3356
3357
3358
3359
3360
3361# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382DEPDIR="${am__leading_dot}deps"
3383
3384ac_config_commands="$ac_config_commands depfiles"
3385
3386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3387printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3388cat > confinc.mk << 'END'
3389am__doit:
3390	@echo this is the am__doit target >confinc.out
3391.PHONY: am__doit
3392END
3393am__include="#"
3394am__quote=
3395# BSD make does it like this.
3396echo '.include "confinc.mk" # ignored' > confmf.BSD
3397# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3398echo 'include confinc.mk # ignored' > confmf.GNU
3399_am_result=no
3400for s in GNU BSD; do
3401  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3402   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3403   ac_status=$?
3404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405   (exit $ac_status); }
3406  case $?:`cat confinc.out 2>/dev/null` in #(
3407  '0:this is the am__doit target') :
3408    case $s in #(
3409  BSD) :
3410    am__include='.include' am__quote='"' ;; #(
3411  *) :
3412    am__include='include' am__quote='' ;;
3413esac ;; #(
3414  *) :
3415     ;;
3416esac
3417  if test "$am__include" != "#"; then
3418    _am_result="yes ($s style)"
3419    break
3420  fi
3421done
3422rm -f confinc.* confmf.*
3423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3424printf "%s\n" "${_am_result}" >&6; }
3425
3426# Check whether --enable-dependency-tracking was given.
3427if test ${enable_dependency_tracking+y}
3428then :
3429  enableval=$enable_dependency_tracking;
3430fi
3431
3432if test "x$enable_dependency_tracking" != xno; then
3433  am_depcomp="$ac_aux_dir/depcomp"
3434  AMDEPBACKSLASH='\'
3435  am__nodep='_no'
3436fi
3437 if test "x$enable_dependency_tracking" != xno; then
3438  AMDEP_TRUE=
3439  AMDEP_FALSE='#'
3440else
3441  AMDEP_TRUE='#'
3442  AMDEP_FALSE=
3443fi
3444
3445
3446ac_ext=c
3447ac_cpp='$CPP $CPPFLAGS'
3448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451if test -n "$ac_tool_prefix"; then
3452  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3453set dummy ${ac_tool_prefix}gcc; ac_word=$2
3454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455printf %s "checking for $ac_word... " >&6; }
3456if test ${ac_cv_prog_CC+y}
3457then :
3458  printf %s "(cached) " >&6
3459else case e in #(
3460  e) if test -n "$CC"; then
3461  ac_cv_prog_CC="$CC" # Let the user override the test.
3462else
3463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464for as_dir in $PATH
3465do
3466  IFS=$as_save_IFS
3467  case $as_dir in #(((
3468    '') as_dir=./ ;;
3469    */) ;;
3470    *) as_dir=$as_dir/ ;;
3471  esac
3472    for ac_exec_ext in '' $ac_executable_extensions; do
3473  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3474    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3475    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3476    break 2
3477  fi
3478done
3479  done
3480IFS=$as_save_IFS
3481
3482fi ;;
3483esac
3484fi
3485CC=$ac_cv_prog_CC
3486if test -n "$CC"; then
3487  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3488printf "%s\n" "$CC" >&6; }
3489else
3490  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491printf "%s\n" "no" >&6; }
3492fi
3493
3494
3495fi
3496if test -z "$ac_cv_prog_CC"; then
3497  ac_ct_CC=$CC
3498  # Extract the first word of "gcc", so it can be a program name with args.
3499set dummy gcc; ac_word=$2
3500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501printf %s "checking for $ac_word... " >&6; }
3502if test ${ac_cv_prog_ac_ct_CC+y}
3503then :
3504  printf %s "(cached) " >&6
3505else case e in #(
3506  e) if test -n "$ac_ct_CC"; then
3507  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3508else
3509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510for as_dir in $PATH
3511do
3512  IFS=$as_save_IFS
3513  case $as_dir in #(((
3514    '') as_dir=./ ;;
3515    */) ;;
3516    *) as_dir=$as_dir/ ;;
3517  esac
3518    for ac_exec_ext in '' $ac_executable_extensions; do
3519  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3520    ac_cv_prog_ac_ct_CC="gcc"
3521    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3522    break 2
3523  fi
3524done
3525  done
3526IFS=$as_save_IFS
3527
3528fi ;;
3529esac
3530fi
3531ac_ct_CC=$ac_cv_prog_ac_ct_CC
3532if test -n "$ac_ct_CC"; then
3533  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3534printf "%s\n" "$ac_ct_CC" >&6; }
3535else
3536  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537printf "%s\n" "no" >&6; }
3538fi
3539
3540  if test "x$ac_ct_CC" = x; then
3541    CC=""
3542  else
3543    case $cross_compiling:$ac_tool_warned in
3544yes:)
3545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3546printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3547ac_tool_warned=yes ;;
3548esac
3549    CC=$ac_ct_CC
3550  fi
3551else
3552  CC="$ac_cv_prog_CC"
3553fi
3554
3555if test -z "$CC"; then
3556          if test -n "$ac_tool_prefix"; then
3557    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3558set dummy ${ac_tool_prefix}cc; ac_word=$2
3559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3560printf %s "checking for $ac_word... " >&6; }
3561if test ${ac_cv_prog_CC+y}
3562then :
3563  printf %s "(cached) " >&6
3564else case e in #(
3565  e) if test -n "$CC"; then
3566  ac_cv_prog_CC="$CC" # Let the user override the test.
3567else
3568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569for as_dir in $PATH
3570do
3571  IFS=$as_save_IFS
3572  case $as_dir in #(((
3573    '') as_dir=./ ;;
3574    */) ;;
3575    *) as_dir=$as_dir/ ;;
3576  esac
3577    for ac_exec_ext in '' $ac_executable_extensions; do
3578  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3579    ac_cv_prog_CC="${ac_tool_prefix}cc"
3580    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3581    break 2
3582  fi
3583done
3584  done
3585IFS=$as_save_IFS
3586
3587fi ;;
3588esac
3589fi
3590CC=$ac_cv_prog_CC
3591if test -n "$CC"; then
3592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3593printf "%s\n" "$CC" >&6; }
3594else
3595  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596printf "%s\n" "no" >&6; }
3597fi
3598
3599
3600  fi
3601fi
3602if test -z "$CC"; then
3603  # Extract the first word of "cc", so it can be a program name with args.
3604set dummy cc; ac_word=$2
3605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606printf %s "checking for $ac_word... " >&6; }
3607if test ${ac_cv_prog_CC+y}
3608then :
3609  printf %s "(cached) " >&6
3610else case e in #(
3611  e) if test -n "$CC"; then
3612  ac_cv_prog_CC="$CC" # Let the user override the test.
3613else
3614  ac_prog_rejected=no
3615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616for as_dir in $PATH
3617do
3618  IFS=$as_save_IFS
3619  case $as_dir in #(((
3620    '') as_dir=./ ;;
3621    */) ;;
3622    *) as_dir=$as_dir/ ;;
3623  esac
3624    for ac_exec_ext in '' $ac_executable_extensions; do
3625  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3626    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3627       ac_prog_rejected=yes
3628       continue
3629     fi
3630    ac_cv_prog_CC="cc"
3631    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3632    break 2
3633  fi
3634done
3635  done
3636IFS=$as_save_IFS
3637
3638if test $ac_prog_rejected = yes; then
3639  # We found a bogon in the path, so make sure we never use it.
3640  set dummy $ac_cv_prog_CC
3641  shift
3642  if test $# != 0; then
3643    # We chose a different compiler from the bogus one.
3644    # However, it has the same basename, so the bogon will be chosen
3645    # first if we set CC to just the basename; use the full file name.
3646    shift
3647    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3648  fi
3649fi
3650fi ;;
3651esac
3652fi
3653CC=$ac_cv_prog_CC
3654if test -n "$CC"; then
3655  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3656printf "%s\n" "$CC" >&6; }
3657else
3658  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659printf "%s\n" "no" >&6; }
3660fi
3661
3662
3663fi
3664if test -z "$CC"; then
3665  if test -n "$ac_tool_prefix"; then
3666  for ac_prog in cl.exe
3667  do
3668    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3669set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671printf %s "checking for $ac_word... " >&6; }
3672if test ${ac_cv_prog_CC+y}
3673then :
3674  printf %s "(cached) " >&6
3675else case e in #(
3676  e) if test -n "$CC"; then
3677  ac_cv_prog_CC="$CC" # Let the user override the test.
3678else
3679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680for as_dir in $PATH
3681do
3682  IFS=$as_save_IFS
3683  case $as_dir in #(((
3684    '') as_dir=./ ;;
3685    */) ;;
3686    *) as_dir=$as_dir/ ;;
3687  esac
3688    for ac_exec_ext in '' $ac_executable_extensions; do
3689  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3690    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3691    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3692    break 2
3693  fi
3694done
3695  done
3696IFS=$as_save_IFS
3697
3698fi ;;
3699esac
3700fi
3701CC=$ac_cv_prog_CC
3702if test -n "$CC"; then
3703  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3704printf "%s\n" "$CC" >&6; }
3705else
3706  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707printf "%s\n" "no" >&6; }
3708fi
3709
3710
3711    test -n "$CC" && break
3712  done
3713fi
3714if test -z "$CC"; then
3715  ac_ct_CC=$CC
3716  for ac_prog in cl.exe
3717do
3718  # Extract the first word of "$ac_prog", so it can be a program name with args.
3719set dummy $ac_prog; ac_word=$2
3720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3721printf %s "checking for $ac_word... " >&6; }
3722if test ${ac_cv_prog_ac_ct_CC+y}
3723then :
3724  printf %s "(cached) " >&6
3725else case e in #(
3726  e) if test -n "$ac_ct_CC"; then
3727  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3728else
3729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730for as_dir in $PATH
3731do
3732  IFS=$as_save_IFS
3733  case $as_dir in #(((
3734    '') as_dir=./ ;;
3735    */) ;;
3736    *) as_dir=$as_dir/ ;;
3737  esac
3738    for ac_exec_ext in '' $ac_executable_extensions; do
3739  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3740    ac_cv_prog_ac_ct_CC="$ac_prog"
3741    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3742    break 2
3743  fi
3744done
3745  done
3746IFS=$as_save_IFS
3747
3748fi ;;
3749esac
3750fi
3751ac_ct_CC=$ac_cv_prog_ac_ct_CC
3752if test -n "$ac_ct_CC"; then
3753  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3754printf "%s\n" "$ac_ct_CC" >&6; }
3755else
3756  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757printf "%s\n" "no" >&6; }
3758fi
3759
3760
3761  test -n "$ac_ct_CC" && break
3762done
3763
3764  if test "x$ac_ct_CC" = x; then
3765    CC=""
3766  else
3767    case $cross_compiling:$ac_tool_warned in
3768yes:)
3769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3770printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3771ac_tool_warned=yes ;;
3772esac
3773    CC=$ac_ct_CC
3774  fi
3775fi
3776
3777fi
3778if test -z "$CC"; then
3779  if test -n "$ac_tool_prefix"; then
3780  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3781set dummy ${ac_tool_prefix}clang; ac_word=$2
3782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3783printf %s "checking for $ac_word... " >&6; }
3784if test ${ac_cv_prog_CC+y}
3785then :
3786  printf %s "(cached) " >&6
3787else case e in #(
3788  e) if test -n "$CC"; then
3789  ac_cv_prog_CC="$CC" # Let the user override the test.
3790else
3791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792for as_dir in $PATH
3793do
3794  IFS=$as_save_IFS
3795  case $as_dir in #(((
3796    '') as_dir=./ ;;
3797    */) ;;
3798    *) as_dir=$as_dir/ ;;
3799  esac
3800    for ac_exec_ext in '' $ac_executable_extensions; do
3801  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3802    ac_cv_prog_CC="${ac_tool_prefix}clang"
3803    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3804    break 2
3805  fi
3806done
3807  done
3808IFS=$as_save_IFS
3809
3810fi ;;
3811esac
3812fi
3813CC=$ac_cv_prog_CC
3814if test -n "$CC"; then
3815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3816printf "%s\n" "$CC" >&6; }
3817else
3818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819printf "%s\n" "no" >&6; }
3820fi
3821
3822
3823fi
3824if test -z "$ac_cv_prog_CC"; then
3825  ac_ct_CC=$CC
3826  # Extract the first word of "clang", so it can be a program name with args.
3827set dummy clang; ac_word=$2
3828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3829printf %s "checking for $ac_word... " >&6; }
3830if test ${ac_cv_prog_ac_ct_CC+y}
3831then :
3832  printf %s "(cached) " >&6
3833else case e in #(
3834  e) if test -n "$ac_ct_CC"; then
3835  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3836else
3837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838for as_dir in $PATH
3839do
3840  IFS=$as_save_IFS
3841  case $as_dir in #(((
3842    '') as_dir=./ ;;
3843    */) ;;
3844    *) as_dir=$as_dir/ ;;
3845  esac
3846    for ac_exec_ext in '' $ac_executable_extensions; do
3847  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3848    ac_cv_prog_ac_ct_CC="clang"
3849    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3850    break 2
3851  fi
3852done
3853  done
3854IFS=$as_save_IFS
3855
3856fi ;;
3857esac
3858fi
3859ac_ct_CC=$ac_cv_prog_ac_ct_CC
3860if test -n "$ac_ct_CC"; then
3861  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3862printf "%s\n" "$ac_ct_CC" >&6; }
3863else
3864  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865printf "%s\n" "no" >&6; }
3866fi
3867
3868  if test "x$ac_ct_CC" = x; then
3869    CC=""
3870  else
3871    case $cross_compiling:$ac_tool_warned in
3872yes:)
3873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3874printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3875ac_tool_warned=yes ;;
3876esac
3877    CC=$ac_ct_CC
3878  fi
3879else
3880  CC="$ac_cv_prog_CC"
3881fi
3882
3883fi
3884
3885
3886test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3887printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3888as_fn_error $? "no acceptable C compiler found in \$PATH
3889See 'config.log' for more details" "$LINENO" 5; }
3890
3891# Provide some information about the compiler.
3892printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3893set X $ac_compile
3894ac_compiler=$2
3895for ac_option in --version -v -V -qversion -version; do
3896  { { ac_try="$ac_compiler $ac_option >&5"
3897case "(($ac_try" in
3898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899  *) ac_try_echo=$ac_try;;
3900esac
3901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3902printf "%s\n" "$ac_try_echo"; } >&5
3903  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3904  ac_status=$?
3905  if test -s conftest.err; then
3906    sed '10a\
3907... rest of stderr output deleted ...
3908         10q' conftest.err >conftest.er1
3909    cat conftest.er1 >&5
3910  fi
3911  rm -f conftest.er1 conftest.err
3912  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913  test $ac_status = 0; }
3914done
3915
3916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917/* end confdefs.h.  */
3918
3919int
3920main (void)
3921{
3922
3923  ;
3924  return 0;
3925}
3926_ACEOF
3927ac_clean_files_save=$ac_clean_files
3928ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3929# Try to create an executable without -o first, disregard a.out.
3930# It will help us diagnose broken compilers, and finding out an intuition
3931# of exeext.
3932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3933printf %s "checking whether the C compiler works... " >&6; }
3934ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3935
3936# The possible output files:
3937ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3938
3939ac_rmfiles=
3940for ac_file in $ac_files
3941do
3942  case $ac_file in
3943    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3944    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3945  esac
3946done
3947rm -f $ac_rmfiles
3948
3949if { { ac_try="$ac_link_default"
3950case "(($ac_try" in
3951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952  *) ac_try_echo=$ac_try;;
3953esac
3954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3955printf "%s\n" "$ac_try_echo"; } >&5
3956  (eval "$ac_link_default") 2>&5
3957  ac_status=$?
3958  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3959  test $ac_status = 0; }
3960then :
3961  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3962# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3963# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3964# so that the user can short-circuit this test for compilers unknown to
3965# Autoconf.
3966for ac_file in $ac_files ''
3967do
3968  test -f "$ac_file" || continue
3969  case $ac_file in
3970    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3971	;;
3972    [ab].out )
3973	# We found the default executable, but exeext='' is most
3974	# certainly right.
3975	break;;
3976    *.* )
3977	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3978	then :; else
3979	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3980	fi
3981	# We set ac_cv_exeext here because the later test for it is not
3982	# safe: cross compilers may not add the suffix if given an '-o'
3983	# argument, so we may need to know it at that point already.
3984	# Even if this section looks crufty: it has the advantage of
3985	# actually working.
3986	break;;
3987    * )
3988	break;;
3989  esac
3990done
3991test "$ac_cv_exeext" = no && ac_cv_exeext=
3992
3993else case e in #(
3994  e) ac_file='' ;;
3995esac
3996fi
3997if test -z "$ac_file"
3998then :
3999  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000printf "%s\n" "no" >&6; }
4001printf "%s\n" "$as_me: failed program was:" >&5
4002sed 's/^/| /' conftest.$ac_ext >&5
4003
4004{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4005printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4006as_fn_error 77 "C compiler cannot create executables
4007See 'config.log' for more details" "$LINENO" 5; }
4008else case e in #(
4009  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4010printf "%s\n" "yes" >&6; } ;;
4011esac
4012fi
4013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4014printf %s "checking for C compiler default output file name... " >&6; }
4015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4016printf "%s\n" "$ac_file" >&6; }
4017ac_exeext=$ac_cv_exeext
4018
4019rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4020ac_clean_files=$ac_clean_files_save
4021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4022printf %s "checking for suffix of executables... " >&6; }
4023if { { ac_try="$ac_link"
4024case "(($ac_try" in
4025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026  *) ac_try_echo=$ac_try;;
4027esac
4028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4029printf "%s\n" "$ac_try_echo"; } >&5
4030  (eval "$ac_link") 2>&5
4031  ac_status=$?
4032  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4033  test $ac_status = 0; }
4034then :
4035  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4036# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
4037# work properly (i.e., refer to 'conftest.exe'), while it won't with
4038# 'rm'.
4039for ac_file in conftest.exe conftest conftest.*; do
4040  test -f "$ac_file" || continue
4041  case $ac_file in
4042    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4043    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4044	  break;;
4045    * ) break;;
4046  esac
4047done
4048else case e in #(
4049  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4050printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4051as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4052See 'config.log' for more details" "$LINENO" 5; } ;;
4053esac
4054fi
4055rm -f conftest conftest$ac_cv_exeext
4056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4057printf "%s\n" "$ac_cv_exeext" >&6; }
4058
4059rm -f conftest.$ac_ext
4060EXEEXT=$ac_cv_exeext
4061ac_exeext=$EXEEXT
4062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063/* end confdefs.h.  */
4064#include <stdio.h>
4065int
4066main (void)
4067{
4068FILE *f = fopen ("conftest.out", "w");
4069 if (!f)
4070  return 1;
4071 return ferror (f) || fclose (f) != 0;
4072
4073  ;
4074  return 0;
4075}
4076_ACEOF
4077ac_clean_files="$ac_clean_files conftest.out"
4078# Check that the compiler produces executables we can run.  If not, either
4079# the compiler is broken, or we cross compile.
4080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4081printf %s "checking whether we are cross compiling... " >&6; }
4082if test "$cross_compiling" != yes; then
4083  { { ac_try="$ac_link"
4084case "(($ac_try" in
4085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086  *) ac_try_echo=$ac_try;;
4087esac
4088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4089printf "%s\n" "$ac_try_echo"; } >&5
4090  (eval "$ac_link") 2>&5
4091  ac_status=$?
4092  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4093  test $ac_status = 0; }
4094  if { ac_try='./conftest$ac_cv_exeext'
4095  { { case "(($ac_try" in
4096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097  *) ac_try_echo=$ac_try;;
4098esac
4099eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4100printf "%s\n" "$ac_try_echo"; } >&5
4101  (eval "$ac_try") 2>&5
4102  ac_status=$?
4103  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4104  test $ac_status = 0; }; }; then
4105    cross_compiling=no
4106  else
4107    if test "$cross_compiling" = maybe; then
4108	cross_compiling=yes
4109    else
4110	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4111printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4112as_fn_error 77 "cannot run C compiled programs.
4113If you meant to cross compile, use '--host'.
4114See 'config.log' for more details" "$LINENO" 5; }
4115    fi
4116  fi
4117fi
4118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4119printf "%s\n" "$cross_compiling" >&6; }
4120
4121rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4122  conftest.o conftest.obj conftest.out
4123ac_clean_files=$ac_clean_files_save
4124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4125printf %s "checking for suffix of object files... " >&6; }
4126if test ${ac_cv_objext+y}
4127then :
4128  printf %s "(cached) " >&6
4129else case e in #(
4130  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131/* end confdefs.h.  */
4132
4133int
4134main (void)
4135{
4136
4137  ;
4138  return 0;
4139}
4140_ACEOF
4141rm -f conftest.o conftest.obj
4142if { { ac_try="$ac_compile"
4143case "(($ac_try" in
4144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145  *) ac_try_echo=$ac_try;;
4146esac
4147eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4148printf "%s\n" "$ac_try_echo"; } >&5
4149  (eval "$ac_compile") 2>&5
4150  ac_status=$?
4151  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4152  test $ac_status = 0; }
4153then :
4154  for ac_file in conftest.o conftest.obj conftest.*; do
4155  test -f "$ac_file" || continue;
4156  case $ac_file in
4157    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4158    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4159       break;;
4160  esac
4161done
4162else case e in #(
4163  e) printf "%s\n" "$as_me: failed program was:" >&5
4164sed 's/^/| /' conftest.$ac_ext >&5
4165
4166{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4167printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4168as_fn_error $? "cannot compute suffix of object files: cannot compile
4169See 'config.log' for more details" "$LINENO" 5; } ;;
4170esac
4171fi
4172rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4173esac
4174fi
4175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4176printf "%s\n" "$ac_cv_objext" >&6; }
4177OBJEXT=$ac_cv_objext
4178ac_objext=$OBJEXT
4179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4180printf %s "checking whether the compiler supports GNU C... " >&6; }
4181if test ${ac_cv_c_compiler_gnu+y}
4182then :
4183  printf %s "(cached) " >&6
4184else case e in #(
4185  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186/* end confdefs.h.  */
4187
4188int
4189main (void)
4190{
4191#ifndef __GNUC__
4192       choke me
4193#endif
4194
4195  ;
4196  return 0;
4197}
4198_ACEOF
4199if ac_fn_c_try_compile "$LINENO"
4200then :
4201  ac_compiler_gnu=yes
4202else case e in #(
4203  e) ac_compiler_gnu=no ;;
4204esac
4205fi
4206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4207ac_cv_c_compiler_gnu=$ac_compiler_gnu
4208 ;;
4209esac
4210fi
4211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4212printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4213ac_compiler_gnu=$ac_cv_c_compiler_gnu
4214
4215if test $ac_compiler_gnu = yes; then
4216  GCC=yes
4217else
4218  GCC=
4219fi
4220ac_test_CFLAGS=${CFLAGS+y}
4221ac_save_CFLAGS=$CFLAGS
4222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4223printf %s "checking whether $CC accepts -g... " >&6; }
4224if test ${ac_cv_prog_cc_g+y}
4225then :
4226  printf %s "(cached) " >&6
4227else case e in #(
4228  e) ac_save_c_werror_flag=$ac_c_werror_flag
4229   ac_c_werror_flag=yes
4230   ac_cv_prog_cc_g=no
4231   CFLAGS="-g"
4232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233/* end confdefs.h.  */
4234
4235int
4236main (void)
4237{
4238
4239  ;
4240  return 0;
4241}
4242_ACEOF
4243if ac_fn_c_try_compile "$LINENO"
4244then :
4245  ac_cv_prog_cc_g=yes
4246else case e in #(
4247  e) CFLAGS=""
4248      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249/* end confdefs.h.  */
4250
4251int
4252main (void)
4253{
4254
4255  ;
4256  return 0;
4257}
4258_ACEOF
4259if ac_fn_c_try_compile "$LINENO"
4260then :
4261
4262else case e in #(
4263  e) ac_c_werror_flag=$ac_save_c_werror_flag
4264	 CFLAGS="-g"
4265	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266/* end confdefs.h.  */
4267
4268int
4269main (void)
4270{
4271
4272  ;
4273  return 0;
4274}
4275_ACEOF
4276if ac_fn_c_try_compile "$LINENO"
4277then :
4278  ac_cv_prog_cc_g=yes
4279fi
4280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4281esac
4282fi
4283rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4284esac
4285fi
4286rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4287   ac_c_werror_flag=$ac_save_c_werror_flag ;;
4288esac
4289fi
4290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4291printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4292if test $ac_test_CFLAGS; then
4293  CFLAGS=$ac_save_CFLAGS
4294elif test $ac_cv_prog_cc_g = yes; then
4295  if test "$GCC" = yes; then
4296    CFLAGS="-g -O2"
4297  else
4298    CFLAGS="-g"
4299  fi
4300else
4301  if test "$GCC" = yes; then
4302    CFLAGS="-O2"
4303  else
4304    CFLAGS=
4305  fi
4306fi
4307ac_prog_cc_stdc=no
4308if test x$ac_prog_cc_stdc = xno
4309then :
4310  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4311printf %s "checking for $CC option to enable C11 features... " >&6; }
4312if test ${ac_cv_prog_cc_c11+y}
4313then :
4314  printf %s "(cached) " >&6
4315else case e in #(
4316  e) ac_cv_prog_cc_c11=no
4317ac_save_CC=$CC
4318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319/* end confdefs.h.  */
4320$ac_c_conftest_c11_program
4321_ACEOF
4322for ac_arg in '' -std=gnu11
4323do
4324  CC="$ac_save_CC $ac_arg"
4325  if ac_fn_c_try_compile "$LINENO"
4326then :
4327  ac_cv_prog_cc_c11=$ac_arg
4328fi
4329rm -f core conftest.err conftest.$ac_objext conftest.beam
4330  test "x$ac_cv_prog_cc_c11" != "xno" && break
4331done
4332rm -f conftest.$ac_ext
4333CC=$ac_save_CC ;;
4334esac
4335fi
4336
4337if test "x$ac_cv_prog_cc_c11" = xno
4338then :
4339  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4340printf "%s\n" "unsupported" >&6; }
4341else case e in #(
4342  e) if test "x$ac_cv_prog_cc_c11" = x
4343then :
4344  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4345printf "%s\n" "none needed" >&6; }
4346else case e in #(
4347  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4348printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4349     CC="$CC $ac_cv_prog_cc_c11" ;;
4350esac
4351fi
4352  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4353  ac_prog_cc_stdc=c11 ;;
4354esac
4355fi
4356fi
4357if test x$ac_prog_cc_stdc = xno
4358then :
4359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4360printf %s "checking for $CC option to enable C99 features... " >&6; }
4361if test ${ac_cv_prog_cc_c99+y}
4362then :
4363  printf %s "(cached) " >&6
4364else case e in #(
4365  e) ac_cv_prog_cc_c99=no
4366ac_save_CC=$CC
4367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368/* end confdefs.h.  */
4369$ac_c_conftest_c99_program
4370_ACEOF
4371for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4372do
4373  CC="$ac_save_CC $ac_arg"
4374  if ac_fn_c_try_compile "$LINENO"
4375then :
4376  ac_cv_prog_cc_c99=$ac_arg
4377fi
4378rm -f core conftest.err conftest.$ac_objext conftest.beam
4379  test "x$ac_cv_prog_cc_c99" != "xno" && break
4380done
4381rm -f conftest.$ac_ext
4382CC=$ac_save_CC ;;
4383esac
4384fi
4385
4386if test "x$ac_cv_prog_cc_c99" = xno
4387then :
4388  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4389printf "%s\n" "unsupported" >&6; }
4390else case e in #(
4391  e) if test "x$ac_cv_prog_cc_c99" = x
4392then :
4393  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4394printf "%s\n" "none needed" >&6; }
4395else case e in #(
4396  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4397printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4398     CC="$CC $ac_cv_prog_cc_c99" ;;
4399esac
4400fi
4401  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4402  ac_prog_cc_stdc=c99 ;;
4403esac
4404fi
4405fi
4406if test x$ac_prog_cc_stdc = xno
4407then :
4408  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4409printf %s "checking for $CC option to enable C89 features... " >&6; }
4410if test ${ac_cv_prog_cc_c89+y}
4411then :
4412  printf %s "(cached) " >&6
4413else case e in #(
4414  e) ac_cv_prog_cc_c89=no
4415ac_save_CC=$CC
4416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417/* end confdefs.h.  */
4418$ac_c_conftest_c89_program
4419_ACEOF
4420for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4421do
4422  CC="$ac_save_CC $ac_arg"
4423  if ac_fn_c_try_compile "$LINENO"
4424then :
4425  ac_cv_prog_cc_c89=$ac_arg
4426fi
4427rm -f core conftest.err conftest.$ac_objext conftest.beam
4428  test "x$ac_cv_prog_cc_c89" != "xno" && break
4429done
4430rm -f conftest.$ac_ext
4431CC=$ac_save_CC ;;
4432esac
4433fi
4434
4435if test "x$ac_cv_prog_cc_c89" = xno
4436then :
4437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4438printf "%s\n" "unsupported" >&6; }
4439else case e in #(
4440  e) if test "x$ac_cv_prog_cc_c89" = x
4441then :
4442  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4443printf "%s\n" "none needed" >&6; }
4444else case e in #(
4445  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4446printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4447     CC="$CC $ac_cv_prog_cc_c89" ;;
4448esac
4449fi
4450  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4451  ac_prog_cc_stdc=c89 ;;
4452esac
4453fi
4454fi
4455
4456ac_ext=c
4457ac_cpp='$CPP $CPPFLAGS'
4458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4460ac_compiler_gnu=$ac_cv_c_compiler_gnu
4461
4462
4463  ac_ext=c
4464ac_cpp='$CPP $CPPFLAGS'
4465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467ac_compiler_gnu=$ac_cv_c_compiler_gnu
4468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4469printf %s "checking whether $CC understands -c and -o together... " >&6; }
4470if test ${am_cv_prog_cc_c_o+y}
4471then :
4472  printf %s "(cached) " >&6
4473else case e in #(
4474  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475/* end confdefs.h.  */
4476
4477int
4478main (void)
4479{
4480
4481  ;
4482  return 0;
4483}
4484_ACEOF
4485  # Make sure it works both with $CC and with simple cc.
4486  # Following AC_PROG_CC_C_O, we do the test twice because some
4487  # compilers refuse to overwrite an existing .o file with -o,
4488  # though they will create one.
4489  am_cv_prog_cc_c_o=yes
4490  for am_i in 1 2; do
4491    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4492   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4493   ac_status=$?
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); } \
4496         && test -f conftest2.$ac_objext; then
4497      : OK
4498    else
4499      am_cv_prog_cc_c_o=no
4500      break
4501    fi
4502  done
4503  rm -f core conftest*
4504  unset am_i ;;
4505esac
4506fi
4507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4508printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4509if test "$am_cv_prog_cc_c_o" != yes; then
4510   # Losing compiler, so override with the script.
4511   # FIXME: It is wrong to rewrite CC.
4512   # But if we don't then we get into trouble of one sort or another.
4513   # A longer-term fix would be to have automake use am__CC in this case,
4514   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4515   CC="$am_aux_dir/compile $CC"
4516fi
4517ac_ext=c
4518ac_cpp='$CPP $CPPFLAGS'
4519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522
4523
4524depcc="$CC"   am_compiler_list=
4525
4526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4527printf %s "checking dependency style of $depcc... " >&6; }
4528if test ${am_cv_CC_dependencies_compiler_type+y}
4529then :
4530  printf %s "(cached) " >&6
4531else case e in #(
4532  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4533  # We make a subdir and do the tests there.  Otherwise we can end up
4534  # making bogus files that we don't know about and never remove.  For
4535  # instance it was reported that on HP-UX the gcc test will end up
4536  # making a dummy file named 'D' -- because '-MD' means "put the output
4537  # in D".
4538  rm -rf conftest.dir
4539  mkdir conftest.dir
4540  # Copy depcomp to subdir because otherwise we won't find it if we're
4541  # using a relative directory.
4542  cp "$am_depcomp" conftest.dir
4543  cd conftest.dir
4544  # We will build objects and dependencies in a subdirectory because
4545  # it helps to detect inapplicable dependency modes.  For instance
4546  # both Tru64's cc and ICC support -MD to output dependencies as a
4547  # side effect of compilation, but ICC will put the dependencies in
4548  # the current directory while Tru64 will put them in the object
4549  # directory.
4550  mkdir sub
4551
4552  am_cv_CC_dependencies_compiler_type=none
4553  if test "$am_compiler_list" = ""; then
4554     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4555  fi
4556  am__universal=false
4557  case " $depcc " in #(
4558     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4559     esac
4560
4561  for depmode in $am_compiler_list; do
4562    # Setup a source with many dependencies, because some compilers
4563    # like to wrap large dependency lists on column 80 (with \), and
4564    # we should not choose a depcomp mode which is confused by this.
4565    #
4566    # We need to recreate these files for each test, as the compiler may
4567    # overwrite some of them when testing with obscure command lines.
4568    # This happens at least with the AIX C compiler.
4569    : > sub/conftest.c
4570    for i in 1 2 3 4 5 6; do
4571      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4572      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4573      # Solaris 10 /bin/sh.
4574      echo '/* dummy */' > sub/conftst$i.h
4575    done
4576    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4577
4578    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4579    # mode.  It turns out that the SunPro C++ compiler does not properly
4580    # handle '-M -o', and we need to detect this.  Also, some Intel
4581    # versions had trouble with output in subdirs.
4582    am__obj=sub/conftest.${OBJEXT-o}
4583    am__minus_obj="-o $am__obj"
4584    case $depmode in
4585    gcc)
4586      # This depmode causes a compiler race in universal mode.
4587      test "$am__universal" = false || continue
4588      ;;
4589    nosideeffect)
4590      # After this tag, mechanisms are not by side-effect, so they'll
4591      # only be used when explicitly requested.
4592      if test "x$enable_dependency_tracking" = xyes; then
4593	continue
4594      else
4595	break
4596      fi
4597      ;;
4598    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4599      # This compiler won't grok '-c -o', but also, the minuso test has
4600      # not run yet.  These depmodes are late enough in the game, and
4601      # so weak that their functioning should not be impacted.
4602      am__obj=conftest.${OBJEXT-o}
4603      am__minus_obj=
4604      ;;
4605    none) break ;;
4606    esac
4607    if depmode=$depmode \
4608       source=sub/conftest.c object=$am__obj \
4609       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4610       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4611         >/dev/null 2>conftest.err &&
4612       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4613       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4614       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4615       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4616      # icc doesn't choke on unknown options, it will just issue warnings
4617      # or remarks (even with -Werror).  So we grep stderr for any message
4618      # that says an option was ignored or not supported.
4619      # When given -MP, icc 7.0 and 7.1 complain thus:
4620      #   icc: Command line warning: ignoring option '-M'; no argument required
4621      # The diagnosis changed in icc 8.0:
4622      #   icc: Command line remark: option '-MP' not supported
4623      if (grep 'ignoring option' conftest.err ||
4624          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4625        am_cv_CC_dependencies_compiler_type=$depmode
4626        break
4627      fi
4628    fi
4629  done
4630
4631  cd ..
4632  rm -rf conftest.dir
4633else
4634  am_cv_CC_dependencies_compiler_type=none
4635fi
4636 ;;
4637esac
4638fi
4639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4640printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4641CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4642
4643 if
4644  test "x$enable_dependency_tracking" != xno \
4645  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4646  am__fastdepCC_TRUE=
4647  am__fastdepCC_FALSE='#'
4648else
4649  am__fastdepCC_TRUE='#'
4650  am__fastdepCC_FALSE=
4651fi
4652
4653
4654
4655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4656printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4657if test ${ac_cv_c_undeclared_builtin_options+y}
4658then :
4659  printf %s "(cached) " >&6
4660else case e in #(
4661  e) ac_save_CFLAGS=$CFLAGS
4662   ac_cv_c_undeclared_builtin_options='cannot detect'
4663   for ac_arg in '' -fno-builtin; do
4664     CFLAGS="$ac_save_CFLAGS $ac_arg"
4665     # This test program should *not* compile successfully.
4666     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667/* end confdefs.h.  */
4668
4669int
4670main (void)
4671{
4672(void) strchr;
4673  ;
4674  return 0;
4675}
4676_ACEOF
4677if ac_fn_c_try_compile "$LINENO"
4678then :
4679
4680else case e in #(
4681  e) # This test program should compile successfully.
4682        # No library function is consistently available on
4683        # freestanding implementations, so test against a dummy
4684        # declaration.  Include always-available headers on the
4685        # off chance that they somehow elicit warnings.
4686        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687/* end confdefs.h.  */
4688#include <float.h>
4689#include <limits.h>
4690#include <stdarg.h>
4691#include <stddef.h>
4692extern void ac_decl (int, char *);
4693
4694int
4695main (void)
4696{
4697(void) ac_decl (0, (char *) 0);
4698  (void) ac_decl;
4699
4700  ;
4701  return 0;
4702}
4703_ACEOF
4704if ac_fn_c_try_compile "$LINENO"
4705then :
4706  if test x"$ac_arg" = x
4707then :
4708  ac_cv_c_undeclared_builtin_options='none needed'
4709else case e in #(
4710  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4711esac
4712fi
4713          break
4714fi
4715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4716esac
4717fi
4718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4719    done
4720    CFLAGS=$ac_save_CFLAGS
4721   ;;
4722esac
4723fi
4724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4725printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4726  case $ac_cv_c_undeclared_builtin_options in #(
4727  'cannot detect') :
4728    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4729printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4730as_fn_error $? "cannot make $CC report undeclared builtins
4731See 'config.log' for more details" "$LINENO" 5; } ;; #(
4732  'none needed') :
4733    ac_c_undeclared_builtin_options='' ;; #(
4734  *) :
4735    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4736esac
4737
4738ac_header= ac_cache=
4739for ac_item in $ac_header_c_list
4740do
4741  if test $ac_cache; then
4742    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4743    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4744      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4745    fi
4746    ac_header= ac_cache=
4747  elif test $ac_header; then
4748    ac_cache=$ac_item
4749  else
4750    ac_header=$ac_item
4751  fi
4752done
4753
4754
4755
4756
4757
4758
4759
4760
4761if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4762then :
4763
4764printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4765
4766fi
4767
4768
4769
4770
4771ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4772if test "x$ac_cv_have_decl___clang__" = xyes
4773then :
4774  CLANGCC="yes"
4775else case e in #(
4776  e) CLANGCC="no" ;;
4777esac
4778fi
4779ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4780if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4781then :
4782  INTELCC="yes"
4783else case e in #(
4784  e) INTELCC="no" ;;
4785esac
4786fi
4787ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4788if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4789then :
4790  SUNCC="yes"
4791else case e in #(
4792  e) SUNCC="no" ;;
4793esac
4794fi
4795
4796
4797
4798
4799
4800
4801
4802
4803if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4804	if test -n "$ac_tool_prefix"; then
4805  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4806set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808printf %s "checking for $ac_word... " >&6; }
4809if test ${ac_cv_path_PKG_CONFIG+y}
4810then :
4811  printf %s "(cached) " >&6
4812else case e in #(
4813  e) case $PKG_CONFIG in
4814  [\\/]* | ?:[\\/]*)
4815  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4816  ;;
4817  *)
4818  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819for as_dir in $PATH
4820do
4821  IFS=$as_save_IFS
4822  case $as_dir in #(((
4823    '') as_dir=./ ;;
4824    */) ;;
4825    *) as_dir=$as_dir/ ;;
4826  esac
4827    for ac_exec_ext in '' $ac_executable_extensions; do
4828  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4829    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4830    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4831    break 2
4832  fi
4833done
4834  done
4835IFS=$as_save_IFS
4836
4837  ;;
4838esac ;;
4839esac
4840fi
4841PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4842if test -n "$PKG_CONFIG"; then
4843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4844printf "%s\n" "$PKG_CONFIG" >&6; }
4845else
4846  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847printf "%s\n" "no" >&6; }
4848fi
4849
4850
4851fi
4852if test -z "$ac_cv_path_PKG_CONFIG"; then
4853  ac_pt_PKG_CONFIG=$PKG_CONFIG
4854  # Extract the first word of "pkg-config", so it can be a program name with args.
4855set dummy pkg-config; ac_word=$2
4856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857printf %s "checking for $ac_word... " >&6; }
4858if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4859then :
4860  printf %s "(cached) " >&6
4861else case e in #(
4862  e) case $ac_pt_PKG_CONFIG in
4863  [\\/]* | ?:[\\/]*)
4864  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4865  ;;
4866  *)
4867  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868for as_dir in $PATH
4869do
4870  IFS=$as_save_IFS
4871  case $as_dir in #(((
4872    '') as_dir=./ ;;
4873    */) ;;
4874    *) as_dir=$as_dir/ ;;
4875  esac
4876    for ac_exec_ext in '' $ac_executable_extensions; do
4877  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4878    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4879    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4880    break 2
4881  fi
4882done
4883  done
4884IFS=$as_save_IFS
4885
4886  ;;
4887esac ;;
4888esac
4889fi
4890ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4891if test -n "$ac_pt_PKG_CONFIG"; then
4892  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4893printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4894else
4895  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896printf "%s\n" "no" >&6; }
4897fi
4898
4899  if test "x$ac_pt_PKG_CONFIG" = x; then
4900    PKG_CONFIG=""
4901  else
4902    case $cross_compiling:$ac_tool_warned in
4903yes:)
4904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4905printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906ac_tool_warned=yes ;;
4907esac
4908    PKG_CONFIG=$ac_pt_PKG_CONFIG
4909  fi
4910else
4911  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4912fi
4913
4914fi
4915if test -n "$PKG_CONFIG"; then
4916	_pkg_min_version=0.9.0
4917	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4918printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4919	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4920		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4921printf "%s\n" "yes" >&6; }
4922	else
4923		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924printf "%s\n" "no" >&6; }
4925		PKG_CONFIG=""
4926	fi
4927fi
4928
4929
4930  # Make sure we can run config.sub.
4931$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4932  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4933
4934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4935printf %s "checking build system type... " >&6; }
4936if test ${ac_cv_build+y}
4937then :
4938  printf %s "(cached) " >&6
4939else case e in #(
4940  e) ac_build_alias=$build_alias
4941test "x$ac_build_alias" = x &&
4942  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4943test "x$ac_build_alias" = x &&
4944  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4945ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4946  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4947 ;;
4948esac
4949fi
4950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4951printf "%s\n" "$ac_cv_build" >&6; }
4952case $ac_cv_build in
4953*-*-*) ;;
4954*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4955esac
4956build=$ac_cv_build
4957ac_save_IFS=$IFS; IFS='-'
4958set x $ac_cv_build
4959shift
4960build_cpu=$1
4961build_vendor=$2
4962shift; shift
4963# Remember, the first character of IFS is used to create $*,
4964# except with old shells:
4965build_os=$*
4966IFS=$ac_save_IFS
4967case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4968
4969
4970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4971printf %s "checking host system type... " >&6; }
4972if test ${ac_cv_host+y}
4973then :
4974  printf %s "(cached) " >&6
4975else case e in #(
4976  e) if test "x$host_alias" = x; then
4977  ac_cv_host=$ac_cv_build
4978else
4979  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4980    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4981fi
4982 ;;
4983esac
4984fi
4985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4986printf "%s\n" "$ac_cv_host" >&6; }
4987case $ac_cv_host in
4988*-*-*) ;;
4989*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4990esac
4991host=$ac_cv_host
4992ac_save_IFS=$IFS; IFS='-'
4993set x $ac_cv_host
4994shift
4995host_cpu=$1
4996host_vendor=$2
4997shift; shift
4998# Remember, the first character of IFS is used to create $*,
4999# except with old shells:
5000host_os=$*
5001IFS=$ac_save_IFS
5002case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5003
5004
5005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5006printf %s "checking for a sed that does not truncate output... " >&6; }
5007if test ${ac_cv_path_SED+y}
5008then :
5009  printf %s "(cached) " >&6
5010else case e in #(
5011  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5012     for ac_i in 1 2 3 4 5 6 7; do
5013       ac_script="$ac_script$as_nl$ac_script"
5014     done
5015     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5016     { ac_script=; unset ac_script;}
5017     if test -z "$SED"; then
5018  ac_path_SED_found=false
5019  # Loop through the user's path and test for each of PROGNAME-LIST
5020  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021for as_dir in $PATH
5022do
5023  IFS=$as_save_IFS
5024  case $as_dir in #(((
5025    '') as_dir=./ ;;
5026    */) ;;
5027    *) as_dir=$as_dir/ ;;
5028  esac
5029    for ac_prog in sed gsed
5030   do
5031    for ac_exec_ext in '' $ac_executable_extensions; do
5032      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5033      as_fn_executable_p "$ac_path_SED" || continue
5034# Check for GNU ac_path_SED and select it if it is found.
5035  # Check for GNU $ac_path_SED
5036case `"$ac_path_SED" --version 2>&1` in #(
5037*GNU*)
5038  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5039#(
5040*)
5041  ac_count=0
5042  printf %s 0123456789 >"conftest.in"
5043  while :
5044  do
5045    cat "conftest.in" "conftest.in" >"conftest.tmp"
5046    mv "conftest.tmp" "conftest.in"
5047    cp "conftest.in" "conftest.nl"
5048    printf "%s\n" '' >> "conftest.nl"
5049    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5050    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5051    as_fn_arith $ac_count + 1 && ac_count=$as_val
5052    if test $ac_count -gt ${ac_path_SED_max-0}; then
5053      # Best one so far, save it but keep looking for a better one
5054      ac_cv_path_SED="$ac_path_SED"
5055      ac_path_SED_max=$ac_count
5056    fi
5057    # 10*(2^10) chars as input seems more than enough
5058    test $ac_count -gt 10 && break
5059  done
5060  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5061esac
5062
5063      $ac_path_SED_found && break 3
5064    done
5065  done
5066  done
5067IFS=$as_save_IFS
5068  if test -z "$ac_cv_path_SED"; then
5069    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5070  fi
5071else
5072  ac_cv_path_SED=$SED
5073fi
5074 ;;
5075esac
5076fi
5077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5078printf "%s\n" "$ac_cv_path_SED" >&6; }
5079 SED="$ac_cv_path_SED"
5080  rm -f conftest.sed
5081
5082
5083
5084
5085
5086
5087# Check whether --enable-selective-werror was given.
5088if test ${enable_selective_werror+y}
5089then :
5090  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5091else case e in #(
5092  e) SELECTIVE_WERROR=yes ;;
5093esac
5094fi
5095
5096
5097
5098
5099
5100# -v is too short to test reliably with XORG_TESTSET_CFLAG
5101if test "x$SUNCC" = "xyes"; then
5102    BASE_CFLAGS="-v"
5103else
5104    BASE_CFLAGS=""
5105fi
5106
5107# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121xorg_testset_save_CFLAGS="$CFLAGS"
5122
5123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5124	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5125	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5126printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5127if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5128then :
5129  printf %s "(cached) " >&6
5130else case e in #(
5131  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132/* end confdefs.h.  */
5133int i;
5134_ACEOF
5135if ac_fn_c_try_compile "$LINENO"
5136then :
5137  xorg_cv_cc_flag_unknown_warning_option=yes
5138else case e in #(
5139  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5140esac
5141fi
5142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5143esac
5144fi
5145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5146printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5147	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5148	CFLAGS="$xorg_testset_save_CFLAGS"
5149fi
5150
5151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5152	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5153		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5154	fi
5155	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5156	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5157printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5158if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5159then :
5160  printf %s "(cached) " >&6
5161else case e in #(
5162  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163/* end confdefs.h.  */
5164int i;
5165_ACEOF
5166if ac_fn_c_try_compile "$LINENO"
5167then :
5168  xorg_cv_cc_flag_unused_command_line_argument=yes
5169else case e in #(
5170  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5171esac
5172fi
5173rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5174esac
5175fi
5176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5177printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5178	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5179	CFLAGS="$xorg_testset_save_CFLAGS"
5180fi
5181
5182found="no"
5183
5184	if test $found = "no" ; then
5185		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5186			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5187		fi
5188
5189		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5190			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5191		fi
5192
5193		CFLAGS="$CFLAGS -Wall"
5194
5195		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5196printf %s "checking if $CC supports -Wall... " >&6; }
5197		cacheid=xorg_cv_cc_flag__Wall
5198		if eval test \${$cacheid+y}
5199then :
5200  printf %s "(cached) " >&6
5201else case e in #(
5202  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203/* end confdefs.h.  */
5204int i;
5205int
5206main (void)
5207{
5208
5209  ;
5210  return 0;
5211}
5212_ACEOF
5213if ac_fn_c_try_link "$LINENO"
5214then :
5215  eval $cacheid=yes
5216else case e in #(
5217  e) eval $cacheid=no ;;
5218esac
5219fi
5220rm -f core conftest.err conftest.$ac_objext conftest.beam \
5221    conftest$ac_exeext conftest.$ac_ext ;;
5222esac
5223fi
5224
5225
5226		CFLAGS="$xorg_testset_save_CFLAGS"
5227
5228		eval supported=\$$cacheid
5229		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5230printf "%s\n" "$supported" >&6; }
5231		if test "$supported" = "yes" ; then
5232			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5233			found="yes"
5234		fi
5235	fi
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251xorg_testset_save_CFLAGS="$CFLAGS"
5252
5253if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5254	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5255	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5256printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5257if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5258then :
5259  printf %s "(cached) " >&6
5260else case e in #(
5261  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262/* end confdefs.h.  */
5263int i;
5264_ACEOF
5265if ac_fn_c_try_compile "$LINENO"
5266then :
5267  xorg_cv_cc_flag_unknown_warning_option=yes
5268else case e in #(
5269  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5270esac
5271fi
5272rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5273esac
5274fi
5275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5276printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5277	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5278	CFLAGS="$xorg_testset_save_CFLAGS"
5279fi
5280
5281if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5282	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5283		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5284	fi
5285	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5286	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5287printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5288if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5289then :
5290  printf %s "(cached) " >&6
5291else case e in #(
5292  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293/* end confdefs.h.  */
5294int i;
5295_ACEOF
5296if ac_fn_c_try_compile "$LINENO"
5297then :
5298  xorg_cv_cc_flag_unused_command_line_argument=yes
5299else case e in #(
5300  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5301esac
5302fi
5303rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5304esac
5305fi
5306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5307printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5308	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5309	CFLAGS="$xorg_testset_save_CFLAGS"
5310fi
5311
5312found="no"
5313
5314	if test $found = "no" ; then
5315		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5316			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5317		fi
5318
5319		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5320			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5321		fi
5322
5323		CFLAGS="$CFLAGS -Wpointer-arith"
5324
5325		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5326printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5327		cacheid=xorg_cv_cc_flag__Wpointer_arith
5328		if eval test \${$cacheid+y}
5329then :
5330  printf %s "(cached) " >&6
5331else case e in #(
5332  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333/* end confdefs.h.  */
5334int i;
5335int
5336main (void)
5337{
5338
5339  ;
5340  return 0;
5341}
5342_ACEOF
5343if ac_fn_c_try_link "$LINENO"
5344then :
5345  eval $cacheid=yes
5346else case e in #(
5347  e) eval $cacheid=no ;;
5348esac
5349fi
5350rm -f core conftest.err conftest.$ac_objext conftest.beam \
5351    conftest$ac_exeext conftest.$ac_ext ;;
5352esac
5353fi
5354
5355
5356		CFLAGS="$xorg_testset_save_CFLAGS"
5357
5358		eval supported=\$$cacheid
5359		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5360printf "%s\n" "$supported" >&6; }
5361		if test "$supported" = "yes" ; then
5362			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5363			found="yes"
5364		fi
5365	fi
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381xorg_testset_save_CFLAGS="$CFLAGS"
5382
5383if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5384	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5385	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5386printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5387if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5388then :
5389  printf %s "(cached) " >&6
5390else case e in #(
5391  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h.  */
5393int i;
5394_ACEOF
5395if ac_fn_c_try_compile "$LINENO"
5396then :
5397  xorg_cv_cc_flag_unknown_warning_option=yes
5398else case e in #(
5399  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5400esac
5401fi
5402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5403esac
5404fi
5405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5406printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5407	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5408	CFLAGS="$xorg_testset_save_CFLAGS"
5409fi
5410
5411if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5412	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5413		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5414	fi
5415	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5416	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5417printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5418if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5419then :
5420  printf %s "(cached) " >&6
5421else case e in #(
5422  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423/* end confdefs.h.  */
5424int i;
5425_ACEOF
5426if ac_fn_c_try_compile "$LINENO"
5427then :
5428  xorg_cv_cc_flag_unused_command_line_argument=yes
5429else case e in #(
5430  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5431esac
5432fi
5433rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5434esac
5435fi
5436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5437printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5438	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5439	CFLAGS="$xorg_testset_save_CFLAGS"
5440fi
5441
5442found="no"
5443
5444	if test $found = "no" ; then
5445		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5446			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5447		fi
5448
5449		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5450			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5451		fi
5452
5453		CFLAGS="$CFLAGS -Wmissing-declarations"
5454
5455		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5456printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5457		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5458		if eval test \${$cacheid+y}
5459then :
5460  printf %s "(cached) " >&6
5461else case e in #(
5462  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463/* end confdefs.h.  */
5464int i;
5465int
5466main (void)
5467{
5468
5469  ;
5470  return 0;
5471}
5472_ACEOF
5473if ac_fn_c_try_link "$LINENO"
5474then :
5475  eval $cacheid=yes
5476else case e in #(
5477  e) eval $cacheid=no ;;
5478esac
5479fi
5480rm -f core conftest.err conftest.$ac_objext conftest.beam \
5481    conftest$ac_exeext conftest.$ac_ext ;;
5482esac
5483fi
5484
5485
5486		CFLAGS="$xorg_testset_save_CFLAGS"
5487
5488		eval supported=\$$cacheid
5489		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5490printf "%s\n" "$supported" >&6; }
5491		if test "$supported" = "yes" ; then
5492			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5493			found="yes"
5494		fi
5495	fi
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511xorg_testset_save_CFLAGS="$CFLAGS"
5512
5513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5514	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5515	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5516printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5517if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5518then :
5519  printf %s "(cached) " >&6
5520else case e in #(
5521  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522/* end confdefs.h.  */
5523int i;
5524_ACEOF
5525if ac_fn_c_try_compile "$LINENO"
5526then :
5527  xorg_cv_cc_flag_unknown_warning_option=yes
5528else case e in #(
5529  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5530esac
5531fi
5532rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5533esac
5534fi
5535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5536printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5537	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5538	CFLAGS="$xorg_testset_save_CFLAGS"
5539fi
5540
5541if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5542	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5543		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5544	fi
5545	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5546	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5547printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5548if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5549then :
5550  printf %s "(cached) " >&6
5551else case e in #(
5552  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553/* end confdefs.h.  */
5554int i;
5555_ACEOF
5556if ac_fn_c_try_compile "$LINENO"
5557then :
5558  xorg_cv_cc_flag_unused_command_line_argument=yes
5559else case e in #(
5560  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5561esac
5562fi
5563rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5564esac
5565fi
5566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5567printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5568	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5569	CFLAGS="$xorg_testset_save_CFLAGS"
5570fi
5571
5572found="no"
5573
5574	if test $found = "no" ; then
5575		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5576			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5577		fi
5578
5579		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5580			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5581		fi
5582
5583		CFLAGS="$CFLAGS -Wformat=2"
5584
5585		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5586printf %s "checking if $CC supports -Wformat=2... " >&6; }
5587		cacheid=xorg_cv_cc_flag__Wformat_2
5588		if eval test \${$cacheid+y}
5589then :
5590  printf %s "(cached) " >&6
5591else case e in #(
5592  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593/* end confdefs.h.  */
5594int i;
5595int
5596main (void)
5597{
5598
5599  ;
5600  return 0;
5601}
5602_ACEOF
5603if ac_fn_c_try_link "$LINENO"
5604then :
5605  eval $cacheid=yes
5606else case e in #(
5607  e) eval $cacheid=no ;;
5608esac
5609fi
5610rm -f core conftest.err conftest.$ac_objext conftest.beam \
5611    conftest$ac_exeext conftest.$ac_ext ;;
5612esac
5613fi
5614
5615
5616		CFLAGS="$xorg_testset_save_CFLAGS"
5617
5618		eval supported=\$$cacheid
5619		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5620printf "%s\n" "$supported" >&6; }
5621		if test "$supported" = "yes" ; then
5622			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5623			found="yes"
5624		fi
5625	fi
5626
5627	if test $found = "no" ; then
5628		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5629			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5630		fi
5631
5632		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5633			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5634		fi
5635
5636		CFLAGS="$CFLAGS -Wformat"
5637
5638		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5639printf %s "checking if $CC supports -Wformat... " >&6; }
5640		cacheid=xorg_cv_cc_flag__Wformat
5641		if eval test \${$cacheid+y}
5642then :
5643  printf %s "(cached) " >&6
5644else case e in #(
5645  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646/* end confdefs.h.  */
5647int i;
5648int
5649main (void)
5650{
5651
5652  ;
5653  return 0;
5654}
5655_ACEOF
5656if ac_fn_c_try_link "$LINENO"
5657then :
5658  eval $cacheid=yes
5659else case e in #(
5660  e) eval $cacheid=no ;;
5661esac
5662fi
5663rm -f core conftest.err conftest.$ac_objext conftest.beam \
5664    conftest$ac_exeext conftest.$ac_ext ;;
5665esac
5666fi
5667
5668
5669		CFLAGS="$xorg_testset_save_CFLAGS"
5670
5671		eval supported=\$$cacheid
5672		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5673printf "%s\n" "$supported" >&6; }
5674		if test "$supported" = "yes" ; then
5675			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5676			found="yes"
5677		fi
5678	fi
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696xorg_testset_save_CFLAGS="$CFLAGS"
5697
5698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5699	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5700	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5701printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5702if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5703then :
5704  printf %s "(cached) " >&6
5705else case e in #(
5706  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707/* end confdefs.h.  */
5708int i;
5709_ACEOF
5710if ac_fn_c_try_compile "$LINENO"
5711then :
5712  xorg_cv_cc_flag_unknown_warning_option=yes
5713else case e in #(
5714  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5715esac
5716fi
5717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5718esac
5719fi
5720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5721printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5722	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5723	CFLAGS="$xorg_testset_save_CFLAGS"
5724fi
5725
5726if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5727	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5728		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5729	fi
5730	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5731	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5732printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5733if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5734then :
5735  printf %s "(cached) " >&6
5736else case e in #(
5737  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738/* end confdefs.h.  */
5739int i;
5740_ACEOF
5741if ac_fn_c_try_compile "$LINENO"
5742then :
5743  xorg_cv_cc_flag_unused_command_line_argument=yes
5744else case e in #(
5745  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5746esac
5747fi
5748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5749esac
5750fi
5751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5752printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5753	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5754	CFLAGS="$xorg_testset_save_CFLAGS"
5755fi
5756
5757found="no"
5758
5759	if test $found = "no" ; then
5760		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5761			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5762		fi
5763
5764		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5765			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5766		fi
5767
5768		CFLAGS="$CFLAGS -Wstrict-prototypes"
5769
5770		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5771printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5772		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5773		if eval test \${$cacheid+y}
5774then :
5775  printf %s "(cached) " >&6
5776else case e in #(
5777  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778/* end confdefs.h.  */
5779int i;
5780int
5781main (void)
5782{
5783
5784  ;
5785  return 0;
5786}
5787_ACEOF
5788if ac_fn_c_try_link "$LINENO"
5789then :
5790  eval $cacheid=yes
5791else case e in #(
5792  e) eval $cacheid=no ;;
5793esac
5794fi
5795rm -f core conftest.err conftest.$ac_objext conftest.beam \
5796    conftest$ac_exeext conftest.$ac_ext ;;
5797esac
5798fi
5799
5800
5801		CFLAGS="$xorg_testset_save_CFLAGS"
5802
5803		eval supported=\$$cacheid
5804		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5805printf "%s\n" "$supported" >&6; }
5806		if test "$supported" = "yes" ; then
5807			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5808			found="yes"
5809		fi
5810	fi
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826xorg_testset_save_CFLAGS="$CFLAGS"
5827
5828if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5829	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5830	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5831printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5832if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5833then :
5834  printf %s "(cached) " >&6
5835else case e in #(
5836  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837/* end confdefs.h.  */
5838int i;
5839_ACEOF
5840if ac_fn_c_try_compile "$LINENO"
5841then :
5842  xorg_cv_cc_flag_unknown_warning_option=yes
5843else case e in #(
5844  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5845esac
5846fi
5847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5848esac
5849fi
5850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5851printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5852	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5853	CFLAGS="$xorg_testset_save_CFLAGS"
5854fi
5855
5856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5857	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5858		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5859	fi
5860	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5861	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5862printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5863if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5864then :
5865  printf %s "(cached) " >&6
5866else case e in #(
5867  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868/* end confdefs.h.  */
5869int i;
5870_ACEOF
5871if ac_fn_c_try_compile "$LINENO"
5872then :
5873  xorg_cv_cc_flag_unused_command_line_argument=yes
5874else case e in #(
5875  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5876esac
5877fi
5878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5879esac
5880fi
5881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5882printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5883	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5884	CFLAGS="$xorg_testset_save_CFLAGS"
5885fi
5886
5887found="no"
5888
5889	if test $found = "no" ; then
5890		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5891			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5892		fi
5893
5894		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5895			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5896		fi
5897
5898		CFLAGS="$CFLAGS -Wmissing-prototypes"
5899
5900		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5901printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5902		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5903		if eval test \${$cacheid+y}
5904then :
5905  printf %s "(cached) " >&6
5906else case e in #(
5907  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908/* end confdefs.h.  */
5909int i;
5910int
5911main (void)
5912{
5913
5914  ;
5915  return 0;
5916}
5917_ACEOF
5918if ac_fn_c_try_link "$LINENO"
5919then :
5920  eval $cacheid=yes
5921else case e in #(
5922  e) eval $cacheid=no ;;
5923esac
5924fi
5925rm -f core conftest.err conftest.$ac_objext conftest.beam \
5926    conftest$ac_exeext conftest.$ac_ext ;;
5927esac
5928fi
5929
5930
5931		CFLAGS="$xorg_testset_save_CFLAGS"
5932
5933		eval supported=\$$cacheid
5934		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5935printf "%s\n" "$supported" >&6; }
5936		if test "$supported" = "yes" ; then
5937			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5938			found="yes"
5939		fi
5940	fi
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956xorg_testset_save_CFLAGS="$CFLAGS"
5957
5958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5959	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5960	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5961printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5962if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5963then :
5964  printf %s "(cached) " >&6
5965else case e in #(
5966  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967/* end confdefs.h.  */
5968int i;
5969_ACEOF
5970if ac_fn_c_try_compile "$LINENO"
5971then :
5972  xorg_cv_cc_flag_unknown_warning_option=yes
5973else case e in #(
5974  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5975esac
5976fi
5977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5978esac
5979fi
5980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5981printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5982	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5983	CFLAGS="$xorg_testset_save_CFLAGS"
5984fi
5985
5986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5987	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5988		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5989	fi
5990	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5991	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5992printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5993if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5994then :
5995  printf %s "(cached) " >&6
5996else case e in #(
5997  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998/* end confdefs.h.  */
5999int i;
6000_ACEOF
6001if ac_fn_c_try_compile "$LINENO"
6002then :
6003  xorg_cv_cc_flag_unused_command_line_argument=yes
6004else case e in #(
6005  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6006esac
6007fi
6008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6009esac
6010fi
6011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6012printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6013	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6014	CFLAGS="$xorg_testset_save_CFLAGS"
6015fi
6016
6017found="no"
6018
6019	if test $found = "no" ; then
6020		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6021			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6022		fi
6023
6024		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6025			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6026		fi
6027
6028		CFLAGS="$CFLAGS -Wnested-externs"
6029
6030		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6031printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6032		cacheid=xorg_cv_cc_flag__Wnested_externs
6033		if eval test \${$cacheid+y}
6034then :
6035  printf %s "(cached) " >&6
6036else case e in #(
6037  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038/* end confdefs.h.  */
6039int i;
6040int
6041main (void)
6042{
6043
6044  ;
6045  return 0;
6046}
6047_ACEOF
6048if ac_fn_c_try_link "$LINENO"
6049then :
6050  eval $cacheid=yes
6051else case e in #(
6052  e) eval $cacheid=no ;;
6053esac
6054fi
6055rm -f core conftest.err conftest.$ac_objext conftest.beam \
6056    conftest$ac_exeext conftest.$ac_ext ;;
6057esac
6058fi
6059
6060
6061		CFLAGS="$xorg_testset_save_CFLAGS"
6062
6063		eval supported=\$$cacheid
6064		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6065printf "%s\n" "$supported" >&6; }
6066		if test "$supported" = "yes" ; then
6067			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6068			found="yes"
6069		fi
6070	fi
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086xorg_testset_save_CFLAGS="$CFLAGS"
6087
6088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6089	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6090	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6091printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6092if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6093then :
6094  printf %s "(cached) " >&6
6095else case e in #(
6096  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097/* end confdefs.h.  */
6098int i;
6099_ACEOF
6100if ac_fn_c_try_compile "$LINENO"
6101then :
6102  xorg_cv_cc_flag_unknown_warning_option=yes
6103else case e in #(
6104  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6105esac
6106fi
6107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6108esac
6109fi
6110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6111printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6112	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6113	CFLAGS="$xorg_testset_save_CFLAGS"
6114fi
6115
6116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6117	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6118		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6119	fi
6120	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6121	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6122printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6123if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6124then :
6125  printf %s "(cached) " >&6
6126else case e in #(
6127  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128/* end confdefs.h.  */
6129int i;
6130_ACEOF
6131if ac_fn_c_try_compile "$LINENO"
6132then :
6133  xorg_cv_cc_flag_unused_command_line_argument=yes
6134else case e in #(
6135  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6136esac
6137fi
6138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6139esac
6140fi
6141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6142printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6143	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6144	CFLAGS="$xorg_testset_save_CFLAGS"
6145fi
6146
6147found="no"
6148
6149	if test $found = "no" ; then
6150		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6151			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6152		fi
6153
6154		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6155			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6156		fi
6157
6158		CFLAGS="$CFLAGS -Wbad-function-cast"
6159
6160		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6161printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6162		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6163		if eval test \${$cacheid+y}
6164then :
6165  printf %s "(cached) " >&6
6166else case e in #(
6167  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168/* end confdefs.h.  */
6169int i;
6170int
6171main (void)
6172{
6173
6174  ;
6175  return 0;
6176}
6177_ACEOF
6178if ac_fn_c_try_link "$LINENO"
6179then :
6180  eval $cacheid=yes
6181else case e in #(
6182  e) eval $cacheid=no ;;
6183esac
6184fi
6185rm -f core conftest.err conftest.$ac_objext conftest.beam \
6186    conftest$ac_exeext conftest.$ac_ext ;;
6187esac
6188fi
6189
6190
6191		CFLAGS="$xorg_testset_save_CFLAGS"
6192
6193		eval supported=\$$cacheid
6194		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6195printf "%s\n" "$supported" >&6; }
6196		if test "$supported" = "yes" ; then
6197			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6198			found="yes"
6199		fi
6200	fi
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216xorg_testset_save_CFLAGS="$CFLAGS"
6217
6218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6219	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6220	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6221printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6222if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6223then :
6224  printf %s "(cached) " >&6
6225else case e in #(
6226  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227/* end confdefs.h.  */
6228int i;
6229_ACEOF
6230if ac_fn_c_try_compile "$LINENO"
6231then :
6232  xorg_cv_cc_flag_unknown_warning_option=yes
6233else case e in #(
6234  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6235esac
6236fi
6237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6238esac
6239fi
6240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6241printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6242	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6243	CFLAGS="$xorg_testset_save_CFLAGS"
6244fi
6245
6246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6247	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6248		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6249	fi
6250	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6251	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6252printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6253if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6254then :
6255  printf %s "(cached) " >&6
6256else case e in #(
6257  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6258/* end confdefs.h.  */
6259int i;
6260_ACEOF
6261if ac_fn_c_try_compile "$LINENO"
6262then :
6263  xorg_cv_cc_flag_unused_command_line_argument=yes
6264else case e in #(
6265  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6266esac
6267fi
6268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6269esac
6270fi
6271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6272printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6273	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6274	CFLAGS="$xorg_testset_save_CFLAGS"
6275fi
6276
6277found="no"
6278
6279	if test $found = "no" ; then
6280		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6281			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6282		fi
6283
6284		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6285			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6286		fi
6287
6288		CFLAGS="$CFLAGS -Wold-style-definition"
6289
6290		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6291printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6292		cacheid=xorg_cv_cc_flag__Wold_style_definition
6293		if eval test \${$cacheid+y}
6294then :
6295  printf %s "(cached) " >&6
6296else case e in #(
6297  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298/* end confdefs.h.  */
6299int i;
6300int
6301main (void)
6302{
6303
6304  ;
6305  return 0;
6306}
6307_ACEOF
6308if ac_fn_c_try_link "$LINENO"
6309then :
6310  eval $cacheid=yes
6311else case e in #(
6312  e) eval $cacheid=no ;;
6313esac
6314fi
6315rm -f core conftest.err conftest.$ac_objext conftest.beam \
6316    conftest$ac_exeext conftest.$ac_ext ;;
6317esac
6318fi
6319
6320
6321		CFLAGS="$xorg_testset_save_CFLAGS"
6322
6323		eval supported=\$$cacheid
6324		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6325printf "%s\n" "$supported" >&6; }
6326		if test "$supported" = "yes" ; then
6327			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6328			found="yes"
6329		fi
6330	fi
6331
6332	if test $found = "no" ; then
6333		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6334			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6335		fi
6336
6337		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6338			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6339		fi
6340
6341		CFLAGS="$CFLAGS -fd"
6342
6343		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6344printf %s "checking if $CC supports -fd... " >&6; }
6345		cacheid=xorg_cv_cc_flag__fd
6346		if eval test \${$cacheid+y}
6347then :
6348  printf %s "(cached) " >&6
6349else case e in #(
6350  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351/* end confdefs.h.  */
6352int i;
6353int
6354main (void)
6355{
6356
6357  ;
6358  return 0;
6359}
6360_ACEOF
6361if ac_fn_c_try_link "$LINENO"
6362then :
6363  eval $cacheid=yes
6364else case e in #(
6365  e) eval $cacheid=no ;;
6366esac
6367fi
6368rm -f core conftest.err conftest.$ac_objext conftest.beam \
6369    conftest$ac_exeext conftest.$ac_ext ;;
6370esac
6371fi
6372
6373
6374		CFLAGS="$xorg_testset_save_CFLAGS"
6375
6376		eval supported=\$$cacheid
6377		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6378printf "%s\n" "$supported" >&6; }
6379		if test "$supported" = "yes" ; then
6380			BASE_CFLAGS="$BASE_CFLAGS -fd"
6381			found="yes"
6382		fi
6383	fi
6384
6385
6386
6387
6388
6389# This chunk adds additional warnings that could catch undesired effects.
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403xorg_testset_save_CFLAGS="$CFLAGS"
6404
6405if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6406	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6407	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6408printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6409if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6410then :
6411  printf %s "(cached) " >&6
6412else case e in #(
6413  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414/* end confdefs.h.  */
6415int i;
6416_ACEOF
6417if ac_fn_c_try_compile "$LINENO"
6418then :
6419  xorg_cv_cc_flag_unknown_warning_option=yes
6420else case e in #(
6421  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6422esac
6423fi
6424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6425esac
6426fi
6427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6428printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6429	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6430	CFLAGS="$xorg_testset_save_CFLAGS"
6431fi
6432
6433if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6434	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6435		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6436	fi
6437	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6438	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6439printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6440if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6441then :
6442  printf %s "(cached) " >&6
6443else case e in #(
6444  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445/* end confdefs.h.  */
6446int i;
6447_ACEOF
6448if ac_fn_c_try_compile "$LINENO"
6449then :
6450  xorg_cv_cc_flag_unused_command_line_argument=yes
6451else case e in #(
6452  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6453esac
6454fi
6455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6456esac
6457fi
6458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6459printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6460	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6461	CFLAGS="$xorg_testset_save_CFLAGS"
6462fi
6463
6464found="no"
6465
6466	if test $found = "no" ; then
6467		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6468			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6469		fi
6470
6471		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6472			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6473		fi
6474
6475		CFLAGS="$CFLAGS -Wunused"
6476
6477		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6478printf %s "checking if $CC supports -Wunused... " >&6; }
6479		cacheid=xorg_cv_cc_flag__Wunused
6480		if eval test \${$cacheid+y}
6481then :
6482  printf %s "(cached) " >&6
6483else case e in #(
6484  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485/* end confdefs.h.  */
6486int i;
6487int
6488main (void)
6489{
6490
6491  ;
6492  return 0;
6493}
6494_ACEOF
6495if ac_fn_c_try_link "$LINENO"
6496then :
6497  eval $cacheid=yes
6498else case e in #(
6499  e) eval $cacheid=no ;;
6500esac
6501fi
6502rm -f core conftest.err conftest.$ac_objext conftest.beam \
6503    conftest$ac_exeext conftest.$ac_ext ;;
6504esac
6505fi
6506
6507
6508		CFLAGS="$xorg_testset_save_CFLAGS"
6509
6510		eval supported=\$$cacheid
6511		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6512printf "%s\n" "$supported" >&6; }
6513		if test "$supported" = "yes" ; then
6514			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6515			found="yes"
6516		fi
6517	fi
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533xorg_testset_save_CFLAGS="$CFLAGS"
6534
6535if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6536	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6537	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6538printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6539if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6540then :
6541  printf %s "(cached) " >&6
6542else case e in #(
6543  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544/* end confdefs.h.  */
6545int i;
6546_ACEOF
6547if ac_fn_c_try_compile "$LINENO"
6548then :
6549  xorg_cv_cc_flag_unknown_warning_option=yes
6550else case e in #(
6551  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6552esac
6553fi
6554rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6555esac
6556fi
6557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6558printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6559	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6560	CFLAGS="$xorg_testset_save_CFLAGS"
6561fi
6562
6563if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6564	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6565		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6566	fi
6567	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6568	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6569printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6570if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6571then :
6572  printf %s "(cached) " >&6
6573else case e in #(
6574  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575/* end confdefs.h.  */
6576int i;
6577_ACEOF
6578if ac_fn_c_try_compile "$LINENO"
6579then :
6580  xorg_cv_cc_flag_unused_command_line_argument=yes
6581else case e in #(
6582  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6583esac
6584fi
6585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6586esac
6587fi
6588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6589printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6590	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6591	CFLAGS="$xorg_testset_save_CFLAGS"
6592fi
6593
6594found="no"
6595
6596	if test $found = "no" ; then
6597		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6598			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6599		fi
6600
6601		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6602			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6603		fi
6604
6605		CFLAGS="$CFLAGS -Wuninitialized"
6606
6607		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6608printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6609		cacheid=xorg_cv_cc_flag__Wuninitialized
6610		if eval test \${$cacheid+y}
6611then :
6612  printf %s "(cached) " >&6
6613else case e in #(
6614  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615/* end confdefs.h.  */
6616int i;
6617int
6618main (void)
6619{
6620
6621  ;
6622  return 0;
6623}
6624_ACEOF
6625if ac_fn_c_try_link "$LINENO"
6626then :
6627  eval $cacheid=yes
6628else case e in #(
6629  e) eval $cacheid=no ;;
6630esac
6631fi
6632rm -f core conftest.err conftest.$ac_objext conftest.beam \
6633    conftest$ac_exeext conftest.$ac_ext ;;
6634esac
6635fi
6636
6637
6638		CFLAGS="$xorg_testset_save_CFLAGS"
6639
6640		eval supported=\$$cacheid
6641		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6642printf "%s\n" "$supported" >&6; }
6643		if test "$supported" = "yes" ; then
6644			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6645			found="yes"
6646		fi
6647	fi
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663xorg_testset_save_CFLAGS="$CFLAGS"
6664
6665if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6666	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6667	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6668printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6669if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6670then :
6671  printf %s "(cached) " >&6
6672else case e in #(
6673  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674/* end confdefs.h.  */
6675int i;
6676_ACEOF
6677if ac_fn_c_try_compile "$LINENO"
6678then :
6679  xorg_cv_cc_flag_unknown_warning_option=yes
6680else case e in #(
6681  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6682esac
6683fi
6684rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6685esac
6686fi
6687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6688printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6689	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6690	CFLAGS="$xorg_testset_save_CFLAGS"
6691fi
6692
6693if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6694	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6695		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6696	fi
6697	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6698	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6699printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6700if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6701then :
6702  printf %s "(cached) " >&6
6703else case e in #(
6704  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705/* end confdefs.h.  */
6706int i;
6707_ACEOF
6708if ac_fn_c_try_compile "$LINENO"
6709then :
6710  xorg_cv_cc_flag_unused_command_line_argument=yes
6711else case e in #(
6712  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6713esac
6714fi
6715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6716esac
6717fi
6718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6719printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6720	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6721	CFLAGS="$xorg_testset_save_CFLAGS"
6722fi
6723
6724found="no"
6725
6726	if test $found = "no" ; then
6727		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6728			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6729		fi
6730
6731		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6732			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6733		fi
6734
6735		CFLAGS="$CFLAGS -Wshadow"
6736
6737		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6738printf %s "checking if $CC supports -Wshadow... " >&6; }
6739		cacheid=xorg_cv_cc_flag__Wshadow
6740		if eval test \${$cacheid+y}
6741then :
6742  printf %s "(cached) " >&6
6743else case e in #(
6744  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745/* end confdefs.h.  */
6746int i;
6747int
6748main (void)
6749{
6750
6751  ;
6752  return 0;
6753}
6754_ACEOF
6755if ac_fn_c_try_link "$LINENO"
6756then :
6757  eval $cacheid=yes
6758else case e in #(
6759  e) eval $cacheid=no ;;
6760esac
6761fi
6762rm -f core conftest.err conftest.$ac_objext conftest.beam \
6763    conftest$ac_exeext conftest.$ac_ext ;;
6764esac
6765fi
6766
6767
6768		CFLAGS="$xorg_testset_save_CFLAGS"
6769
6770		eval supported=\$$cacheid
6771		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6772printf "%s\n" "$supported" >&6; }
6773		if test "$supported" = "yes" ; then
6774			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6775			found="yes"
6776		fi
6777	fi
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793xorg_testset_save_CFLAGS="$CFLAGS"
6794
6795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6796	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6797	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6798printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6799if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6800then :
6801  printf %s "(cached) " >&6
6802else case e in #(
6803  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804/* end confdefs.h.  */
6805int i;
6806_ACEOF
6807if ac_fn_c_try_compile "$LINENO"
6808then :
6809  xorg_cv_cc_flag_unknown_warning_option=yes
6810else case e in #(
6811  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6812esac
6813fi
6814rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6815esac
6816fi
6817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6818printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6819	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6820	CFLAGS="$xorg_testset_save_CFLAGS"
6821fi
6822
6823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6824	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6825		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6826	fi
6827	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6828	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6829printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6830if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6831then :
6832  printf %s "(cached) " >&6
6833else case e in #(
6834  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835/* end confdefs.h.  */
6836int i;
6837_ACEOF
6838if ac_fn_c_try_compile "$LINENO"
6839then :
6840  xorg_cv_cc_flag_unused_command_line_argument=yes
6841else case e in #(
6842  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6843esac
6844fi
6845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6846esac
6847fi
6848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6849printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6850	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6851	CFLAGS="$xorg_testset_save_CFLAGS"
6852fi
6853
6854found="no"
6855
6856	if test $found = "no" ; then
6857		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6858			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6859		fi
6860
6861		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6862			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6863		fi
6864
6865		CFLAGS="$CFLAGS -Wmissing-noreturn"
6866
6867		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6868printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6869		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6870		if eval test \${$cacheid+y}
6871then :
6872  printf %s "(cached) " >&6
6873else case e in #(
6874  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875/* end confdefs.h.  */
6876int i;
6877int
6878main (void)
6879{
6880
6881  ;
6882  return 0;
6883}
6884_ACEOF
6885if ac_fn_c_try_link "$LINENO"
6886then :
6887  eval $cacheid=yes
6888else case e in #(
6889  e) eval $cacheid=no ;;
6890esac
6891fi
6892rm -f core conftest.err conftest.$ac_objext conftest.beam \
6893    conftest$ac_exeext conftest.$ac_ext ;;
6894esac
6895fi
6896
6897
6898		CFLAGS="$xorg_testset_save_CFLAGS"
6899
6900		eval supported=\$$cacheid
6901		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6902printf "%s\n" "$supported" >&6; }
6903		if test "$supported" = "yes" ; then
6904			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6905			found="yes"
6906		fi
6907	fi
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923xorg_testset_save_CFLAGS="$CFLAGS"
6924
6925if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6926	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6927	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6928printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6929if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6930then :
6931  printf %s "(cached) " >&6
6932else case e in #(
6933  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934/* end confdefs.h.  */
6935int i;
6936_ACEOF
6937if ac_fn_c_try_compile "$LINENO"
6938then :
6939  xorg_cv_cc_flag_unknown_warning_option=yes
6940else case e in #(
6941  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6942esac
6943fi
6944rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6945esac
6946fi
6947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6948printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6949	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6950	CFLAGS="$xorg_testset_save_CFLAGS"
6951fi
6952
6953if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6954	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6955		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6956	fi
6957	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6958	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6959printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6960if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6961then :
6962  printf %s "(cached) " >&6
6963else case e in #(
6964  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965/* end confdefs.h.  */
6966int i;
6967_ACEOF
6968if ac_fn_c_try_compile "$LINENO"
6969then :
6970  xorg_cv_cc_flag_unused_command_line_argument=yes
6971else case e in #(
6972  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6973esac
6974fi
6975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6976esac
6977fi
6978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6979printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6980	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6981	CFLAGS="$xorg_testset_save_CFLAGS"
6982fi
6983
6984found="no"
6985
6986	if test $found = "no" ; then
6987		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6988			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6989		fi
6990
6991		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6992			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6993		fi
6994
6995		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6996
6997		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6998printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6999		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7000		if eval test \${$cacheid+y}
7001then :
7002  printf %s "(cached) " >&6
7003else case e in #(
7004  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005/* end confdefs.h.  */
7006int i;
7007int
7008main (void)
7009{
7010
7011  ;
7012  return 0;
7013}
7014_ACEOF
7015if ac_fn_c_try_link "$LINENO"
7016then :
7017  eval $cacheid=yes
7018else case e in #(
7019  e) eval $cacheid=no ;;
7020esac
7021fi
7022rm -f core conftest.err conftest.$ac_objext conftest.beam \
7023    conftest$ac_exeext conftest.$ac_ext ;;
7024esac
7025fi
7026
7027
7028		CFLAGS="$xorg_testset_save_CFLAGS"
7029
7030		eval supported=\$$cacheid
7031		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7032printf "%s\n" "$supported" >&6; }
7033		if test "$supported" = "yes" ; then
7034			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7035			found="yes"
7036		fi
7037	fi
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053xorg_testset_save_CFLAGS="$CFLAGS"
7054
7055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7056	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7057	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7058printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7059if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7060then :
7061  printf %s "(cached) " >&6
7062else case e in #(
7063  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064/* end confdefs.h.  */
7065int i;
7066_ACEOF
7067if ac_fn_c_try_compile "$LINENO"
7068then :
7069  xorg_cv_cc_flag_unknown_warning_option=yes
7070else case e in #(
7071  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7072esac
7073fi
7074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7075esac
7076fi
7077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7078printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7079	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7080	CFLAGS="$xorg_testset_save_CFLAGS"
7081fi
7082
7083if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7084	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7085		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7086	fi
7087	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7088	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7089printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7090if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7091then :
7092  printf %s "(cached) " >&6
7093else case e in #(
7094  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095/* end confdefs.h.  */
7096int i;
7097_ACEOF
7098if ac_fn_c_try_compile "$LINENO"
7099then :
7100  xorg_cv_cc_flag_unused_command_line_argument=yes
7101else case e in #(
7102  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7103esac
7104fi
7105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7106esac
7107fi
7108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7109printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7110	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7111	CFLAGS="$xorg_testset_save_CFLAGS"
7112fi
7113
7114found="no"
7115
7116	if test $found = "no" ; then
7117		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7118			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7119		fi
7120
7121		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7122			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7123		fi
7124
7125		CFLAGS="$CFLAGS -Wredundant-decls"
7126
7127		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7128printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7129		cacheid=xorg_cv_cc_flag__Wredundant_decls
7130		if eval test \${$cacheid+y}
7131then :
7132  printf %s "(cached) " >&6
7133else case e in #(
7134  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135/* end confdefs.h.  */
7136int i;
7137int
7138main (void)
7139{
7140
7141  ;
7142  return 0;
7143}
7144_ACEOF
7145if ac_fn_c_try_link "$LINENO"
7146then :
7147  eval $cacheid=yes
7148else case e in #(
7149  e) eval $cacheid=no ;;
7150esac
7151fi
7152rm -f core conftest.err conftest.$ac_objext conftest.beam \
7153    conftest$ac_exeext conftest.$ac_ext ;;
7154esac
7155fi
7156
7157
7158		CFLAGS="$xorg_testset_save_CFLAGS"
7159
7160		eval supported=\$$cacheid
7161		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7162printf "%s\n" "$supported" >&6; }
7163		if test "$supported" = "yes" ; then
7164			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7165			found="yes"
7166		fi
7167	fi
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183xorg_testset_save_CFLAGS="$CFLAGS"
7184
7185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7186	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7187	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7188printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7189if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7190then :
7191  printf %s "(cached) " >&6
7192else case e in #(
7193  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194/* end confdefs.h.  */
7195int i;
7196_ACEOF
7197if ac_fn_c_try_compile "$LINENO"
7198then :
7199  xorg_cv_cc_flag_unknown_warning_option=yes
7200else case e in #(
7201  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7202esac
7203fi
7204rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7205esac
7206fi
7207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7208printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7209	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7210	CFLAGS="$xorg_testset_save_CFLAGS"
7211fi
7212
7213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7214	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7215		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7216	fi
7217	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7218	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7219printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7220if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7221then :
7222  printf %s "(cached) " >&6
7223else case e in #(
7224  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225/* end confdefs.h.  */
7226int i;
7227_ACEOF
7228if ac_fn_c_try_compile "$LINENO"
7229then :
7230  xorg_cv_cc_flag_unused_command_line_argument=yes
7231else case e in #(
7232  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7233esac
7234fi
7235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7236esac
7237fi
7238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7239printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7240	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7241	CFLAGS="$xorg_testset_save_CFLAGS"
7242fi
7243
7244found="no"
7245
7246	if test $found = "no" ; then
7247		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7248			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7249		fi
7250
7251		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7252			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7253		fi
7254
7255		CFLAGS="$CFLAGS -Wlogical-op"
7256
7257		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7258printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7259		cacheid=xorg_cv_cc_flag__Wlogical_op
7260		if eval test \${$cacheid+y}
7261then :
7262  printf %s "(cached) " >&6
7263else case e in #(
7264  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265/* end confdefs.h.  */
7266int i;
7267int
7268main (void)
7269{
7270
7271  ;
7272  return 0;
7273}
7274_ACEOF
7275if ac_fn_c_try_link "$LINENO"
7276then :
7277  eval $cacheid=yes
7278else case e in #(
7279  e) eval $cacheid=no ;;
7280esac
7281fi
7282rm -f core conftest.err conftest.$ac_objext conftest.beam \
7283    conftest$ac_exeext conftest.$ac_ext ;;
7284esac
7285fi
7286
7287
7288		CFLAGS="$xorg_testset_save_CFLAGS"
7289
7290		eval supported=\$$cacheid
7291		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7292printf "%s\n" "$supported" >&6; }
7293		if test "$supported" = "yes" ; then
7294			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7295			found="yes"
7296		fi
7297	fi
7298
7299
7300
7301# These are currently disabled because they are noisy.  They will be enabled
7302# in the future once the codebase is sufficiently modernized to silence
7303# them.  For now, I don't want them to drown out the other warnings.
7304# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7305# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7306# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7307
7308# Turn some warnings into errors, so we don't accidentally get successful builds
7309# when there are problems that should be fixed.
7310
7311if test "x$SELECTIVE_WERROR" = "xyes" ; then
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325xorg_testset_save_CFLAGS="$CFLAGS"
7326
7327if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7328	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7329	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7330printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7331if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7332then :
7333  printf %s "(cached) " >&6
7334else case e in #(
7335  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336/* end confdefs.h.  */
7337int i;
7338_ACEOF
7339if ac_fn_c_try_compile "$LINENO"
7340then :
7341  xorg_cv_cc_flag_unknown_warning_option=yes
7342else case e in #(
7343  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7344esac
7345fi
7346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7347esac
7348fi
7349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7350printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7351	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7352	CFLAGS="$xorg_testset_save_CFLAGS"
7353fi
7354
7355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7356	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7357		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7358	fi
7359	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7360	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7361printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7362if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7363then :
7364  printf %s "(cached) " >&6
7365else case e in #(
7366  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367/* end confdefs.h.  */
7368int i;
7369_ACEOF
7370if ac_fn_c_try_compile "$LINENO"
7371then :
7372  xorg_cv_cc_flag_unused_command_line_argument=yes
7373else case e in #(
7374  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7375esac
7376fi
7377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7378esac
7379fi
7380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7381printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7382	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7383	CFLAGS="$xorg_testset_save_CFLAGS"
7384fi
7385
7386found="no"
7387
7388	if test $found = "no" ; then
7389		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7390			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7391		fi
7392
7393		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7394			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7395		fi
7396
7397		CFLAGS="$CFLAGS -Werror=implicit"
7398
7399		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7400printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7401		cacheid=xorg_cv_cc_flag__Werror_implicit
7402		if eval test \${$cacheid+y}
7403then :
7404  printf %s "(cached) " >&6
7405else case e in #(
7406  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407/* end confdefs.h.  */
7408int i;
7409int
7410main (void)
7411{
7412
7413  ;
7414  return 0;
7415}
7416_ACEOF
7417if ac_fn_c_try_link "$LINENO"
7418then :
7419  eval $cacheid=yes
7420else case e in #(
7421  e) eval $cacheid=no ;;
7422esac
7423fi
7424rm -f core conftest.err conftest.$ac_objext conftest.beam \
7425    conftest$ac_exeext conftest.$ac_ext ;;
7426esac
7427fi
7428
7429
7430		CFLAGS="$xorg_testset_save_CFLAGS"
7431
7432		eval supported=\$$cacheid
7433		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7434printf "%s\n" "$supported" >&6; }
7435		if test "$supported" = "yes" ; then
7436			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7437			found="yes"
7438		fi
7439	fi
7440
7441	if test $found = "no" ; then
7442		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7443			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7444		fi
7445
7446		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7447			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7448		fi
7449
7450		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7451
7452		{ 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
7453printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7454		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7455		if eval test \${$cacheid+y}
7456then :
7457  printf %s "(cached) " >&6
7458else case e in #(
7459  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460/* end confdefs.h.  */
7461int i;
7462int
7463main (void)
7464{
7465
7466  ;
7467  return 0;
7468}
7469_ACEOF
7470if ac_fn_c_try_link "$LINENO"
7471then :
7472  eval $cacheid=yes
7473else case e in #(
7474  e) eval $cacheid=no ;;
7475esac
7476fi
7477rm -f core conftest.err conftest.$ac_objext conftest.beam \
7478    conftest$ac_exeext conftest.$ac_ext ;;
7479esac
7480fi
7481
7482
7483		CFLAGS="$xorg_testset_save_CFLAGS"
7484
7485		eval supported=\$$cacheid
7486		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7487printf "%s\n" "$supported" >&6; }
7488		if test "$supported" = "yes" ; then
7489			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7490			found="yes"
7491		fi
7492	fi
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508xorg_testset_save_CFLAGS="$CFLAGS"
7509
7510if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7511	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7512	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7513printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7514if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7515then :
7516  printf %s "(cached) " >&6
7517else case e in #(
7518  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519/* end confdefs.h.  */
7520int i;
7521_ACEOF
7522if ac_fn_c_try_compile "$LINENO"
7523then :
7524  xorg_cv_cc_flag_unknown_warning_option=yes
7525else case e in #(
7526  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7527esac
7528fi
7529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7530esac
7531fi
7532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7533printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7534	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7535	CFLAGS="$xorg_testset_save_CFLAGS"
7536fi
7537
7538if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7539	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7540		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7541	fi
7542	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7543	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7544printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7545if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7546then :
7547  printf %s "(cached) " >&6
7548else case e in #(
7549  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550/* end confdefs.h.  */
7551int i;
7552_ACEOF
7553if ac_fn_c_try_compile "$LINENO"
7554then :
7555  xorg_cv_cc_flag_unused_command_line_argument=yes
7556else case e in #(
7557  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7558esac
7559fi
7560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7561esac
7562fi
7563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7564printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7565	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7566	CFLAGS="$xorg_testset_save_CFLAGS"
7567fi
7568
7569found="no"
7570
7571	if test $found = "no" ; then
7572		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7573			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7574		fi
7575
7576		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7577			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7578		fi
7579
7580		CFLAGS="$CFLAGS -Werror=nonnull"
7581
7582		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7583printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7584		cacheid=xorg_cv_cc_flag__Werror_nonnull
7585		if eval test \${$cacheid+y}
7586then :
7587  printf %s "(cached) " >&6
7588else case e in #(
7589  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590/* end confdefs.h.  */
7591int i;
7592int
7593main (void)
7594{
7595
7596  ;
7597  return 0;
7598}
7599_ACEOF
7600if ac_fn_c_try_link "$LINENO"
7601then :
7602  eval $cacheid=yes
7603else case e in #(
7604  e) eval $cacheid=no ;;
7605esac
7606fi
7607rm -f core conftest.err conftest.$ac_objext conftest.beam \
7608    conftest$ac_exeext conftest.$ac_ext ;;
7609esac
7610fi
7611
7612
7613		CFLAGS="$xorg_testset_save_CFLAGS"
7614
7615		eval supported=\$$cacheid
7616		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7617printf "%s\n" "$supported" >&6; }
7618		if test "$supported" = "yes" ; then
7619			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7620			found="yes"
7621		fi
7622	fi
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638xorg_testset_save_CFLAGS="$CFLAGS"
7639
7640if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7641	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7642	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7643printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7644if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7645then :
7646  printf %s "(cached) " >&6
7647else case e in #(
7648  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649/* end confdefs.h.  */
7650int i;
7651_ACEOF
7652if ac_fn_c_try_compile "$LINENO"
7653then :
7654  xorg_cv_cc_flag_unknown_warning_option=yes
7655else case e in #(
7656  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7657esac
7658fi
7659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7660esac
7661fi
7662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7663printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7664	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7665	CFLAGS="$xorg_testset_save_CFLAGS"
7666fi
7667
7668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7669	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7670		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7671	fi
7672	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7673	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7674printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7675if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7676then :
7677  printf %s "(cached) " >&6
7678else case e in #(
7679  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680/* end confdefs.h.  */
7681int i;
7682_ACEOF
7683if ac_fn_c_try_compile "$LINENO"
7684then :
7685  xorg_cv_cc_flag_unused_command_line_argument=yes
7686else case e in #(
7687  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7688esac
7689fi
7690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7691esac
7692fi
7693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7694printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7695	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7696	CFLAGS="$xorg_testset_save_CFLAGS"
7697fi
7698
7699found="no"
7700
7701	if test $found = "no" ; then
7702		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7703			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7704		fi
7705
7706		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7707			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7708		fi
7709
7710		CFLAGS="$CFLAGS -Werror=init-self"
7711
7712		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7713printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7714		cacheid=xorg_cv_cc_flag__Werror_init_self
7715		if eval test \${$cacheid+y}
7716then :
7717  printf %s "(cached) " >&6
7718else case e in #(
7719  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720/* end confdefs.h.  */
7721int i;
7722int
7723main (void)
7724{
7725
7726  ;
7727  return 0;
7728}
7729_ACEOF
7730if ac_fn_c_try_link "$LINENO"
7731then :
7732  eval $cacheid=yes
7733else case e in #(
7734  e) eval $cacheid=no ;;
7735esac
7736fi
7737rm -f core conftest.err conftest.$ac_objext conftest.beam \
7738    conftest$ac_exeext conftest.$ac_ext ;;
7739esac
7740fi
7741
7742
7743		CFLAGS="$xorg_testset_save_CFLAGS"
7744
7745		eval supported=\$$cacheid
7746		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7747printf "%s\n" "$supported" >&6; }
7748		if test "$supported" = "yes" ; then
7749			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7750			found="yes"
7751		fi
7752	fi
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768xorg_testset_save_CFLAGS="$CFLAGS"
7769
7770if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7771	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7772	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7773printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7774if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7775then :
7776  printf %s "(cached) " >&6
7777else case e in #(
7778  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779/* end confdefs.h.  */
7780int i;
7781_ACEOF
7782if ac_fn_c_try_compile "$LINENO"
7783then :
7784  xorg_cv_cc_flag_unknown_warning_option=yes
7785else case e in #(
7786  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7787esac
7788fi
7789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7790esac
7791fi
7792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7793printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7794	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7795	CFLAGS="$xorg_testset_save_CFLAGS"
7796fi
7797
7798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7799	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7800		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7801	fi
7802	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7803	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7804printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7805if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7806then :
7807  printf %s "(cached) " >&6
7808else case e in #(
7809  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810/* end confdefs.h.  */
7811int i;
7812_ACEOF
7813if ac_fn_c_try_compile "$LINENO"
7814then :
7815  xorg_cv_cc_flag_unused_command_line_argument=yes
7816else case e in #(
7817  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7818esac
7819fi
7820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7821esac
7822fi
7823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7824printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7825	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7826	CFLAGS="$xorg_testset_save_CFLAGS"
7827fi
7828
7829found="no"
7830
7831	if test $found = "no" ; then
7832		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7833			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7834		fi
7835
7836		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7837			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7838		fi
7839
7840		CFLAGS="$CFLAGS -Werror=main"
7841
7842		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7843printf %s "checking if $CC supports -Werror=main... " >&6; }
7844		cacheid=xorg_cv_cc_flag__Werror_main
7845		if eval test \${$cacheid+y}
7846then :
7847  printf %s "(cached) " >&6
7848else case e in #(
7849  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850/* end confdefs.h.  */
7851int i;
7852int
7853main (void)
7854{
7855
7856  ;
7857  return 0;
7858}
7859_ACEOF
7860if ac_fn_c_try_link "$LINENO"
7861then :
7862  eval $cacheid=yes
7863else case e in #(
7864  e) eval $cacheid=no ;;
7865esac
7866fi
7867rm -f core conftest.err conftest.$ac_objext conftest.beam \
7868    conftest$ac_exeext conftest.$ac_ext ;;
7869esac
7870fi
7871
7872
7873		CFLAGS="$xorg_testset_save_CFLAGS"
7874
7875		eval supported=\$$cacheid
7876		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7877printf "%s\n" "$supported" >&6; }
7878		if test "$supported" = "yes" ; then
7879			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7880			found="yes"
7881		fi
7882	fi
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898xorg_testset_save_CFLAGS="$CFLAGS"
7899
7900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7901	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7902	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7903printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7904if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7905then :
7906  printf %s "(cached) " >&6
7907else case e in #(
7908  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909/* end confdefs.h.  */
7910int i;
7911_ACEOF
7912if ac_fn_c_try_compile "$LINENO"
7913then :
7914  xorg_cv_cc_flag_unknown_warning_option=yes
7915else case e in #(
7916  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7917esac
7918fi
7919rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7920esac
7921fi
7922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7923printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7924	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7925	CFLAGS="$xorg_testset_save_CFLAGS"
7926fi
7927
7928if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7929	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7930		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7931	fi
7932	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7933	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7934printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7935if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7936then :
7937  printf %s "(cached) " >&6
7938else case e in #(
7939  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940/* end confdefs.h.  */
7941int i;
7942_ACEOF
7943if ac_fn_c_try_compile "$LINENO"
7944then :
7945  xorg_cv_cc_flag_unused_command_line_argument=yes
7946else case e in #(
7947  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7948esac
7949fi
7950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7951esac
7952fi
7953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7954printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7955	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7956	CFLAGS="$xorg_testset_save_CFLAGS"
7957fi
7958
7959found="no"
7960
7961	if test $found = "no" ; then
7962		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7963			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7964		fi
7965
7966		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7967			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7968		fi
7969
7970		CFLAGS="$CFLAGS -Werror=missing-braces"
7971
7972		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7973printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7974		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7975		if eval test \${$cacheid+y}
7976then :
7977  printf %s "(cached) " >&6
7978else case e in #(
7979  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980/* end confdefs.h.  */
7981int i;
7982int
7983main (void)
7984{
7985
7986  ;
7987  return 0;
7988}
7989_ACEOF
7990if ac_fn_c_try_link "$LINENO"
7991then :
7992  eval $cacheid=yes
7993else case e in #(
7994  e) eval $cacheid=no ;;
7995esac
7996fi
7997rm -f core conftest.err conftest.$ac_objext conftest.beam \
7998    conftest$ac_exeext conftest.$ac_ext ;;
7999esac
8000fi
8001
8002
8003		CFLAGS="$xorg_testset_save_CFLAGS"
8004
8005		eval supported=\$$cacheid
8006		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8007printf "%s\n" "$supported" >&6; }
8008		if test "$supported" = "yes" ; then
8009			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8010			found="yes"
8011		fi
8012	fi
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028xorg_testset_save_CFLAGS="$CFLAGS"
8029
8030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8031	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8032	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8033printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8034if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8035then :
8036  printf %s "(cached) " >&6
8037else case e in #(
8038  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039/* end confdefs.h.  */
8040int i;
8041_ACEOF
8042if ac_fn_c_try_compile "$LINENO"
8043then :
8044  xorg_cv_cc_flag_unknown_warning_option=yes
8045else case e in #(
8046  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8047esac
8048fi
8049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8050esac
8051fi
8052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8053printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8054	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8055	CFLAGS="$xorg_testset_save_CFLAGS"
8056fi
8057
8058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8059	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8060		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8061	fi
8062	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8063	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8064printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8065if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8066then :
8067  printf %s "(cached) " >&6
8068else case e in #(
8069  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070/* end confdefs.h.  */
8071int i;
8072_ACEOF
8073if ac_fn_c_try_compile "$LINENO"
8074then :
8075  xorg_cv_cc_flag_unused_command_line_argument=yes
8076else case e in #(
8077  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8078esac
8079fi
8080rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8081esac
8082fi
8083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8084printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8085	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8086	CFLAGS="$xorg_testset_save_CFLAGS"
8087fi
8088
8089found="no"
8090
8091	if test $found = "no" ; then
8092		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8093			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8094		fi
8095
8096		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8097			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8098		fi
8099
8100		CFLAGS="$CFLAGS -Werror=sequence-point"
8101
8102		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8103printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8104		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8105		if eval test \${$cacheid+y}
8106then :
8107  printf %s "(cached) " >&6
8108else case e in #(
8109  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110/* end confdefs.h.  */
8111int i;
8112int
8113main (void)
8114{
8115
8116  ;
8117  return 0;
8118}
8119_ACEOF
8120if ac_fn_c_try_link "$LINENO"
8121then :
8122  eval $cacheid=yes
8123else case e in #(
8124  e) eval $cacheid=no ;;
8125esac
8126fi
8127rm -f core conftest.err conftest.$ac_objext conftest.beam \
8128    conftest$ac_exeext conftest.$ac_ext ;;
8129esac
8130fi
8131
8132
8133		CFLAGS="$xorg_testset_save_CFLAGS"
8134
8135		eval supported=\$$cacheid
8136		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8137printf "%s\n" "$supported" >&6; }
8138		if test "$supported" = "yes" ; then
8139			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8140			found="yes"
8141		fi
8142	fi
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158xorg_testset_save_CFLAGS="$CFLAGS"
8159
8160if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8161	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8162	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8163printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8164if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8165then :
8166  printf %s "(cached) " >&6
8167else case e in #(
8168  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169/* end confdefs.h.  */
8170int i;
8171_ACEOF
8172if ac_fn_c_try_compile "$LINENO"
8173then :
8174  xorg_cv_cc_flag_unknown_warning_option=yes
8175else case e in #(
8176  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8177esac
8178fi
8179rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8180esac
8181fi
8182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8183printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8184	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8185	CFLAGS="$xorg_testset_save_CFLAGS"
8186fi
8187
8188if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8189	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8190		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8191	fi
8192	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8193	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8194printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8195if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8196then :
8197  printf %s "(cached) " >&6
8198else case e in #(
8199  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200/* end confdefs.h.  */
8201int i;
8202_ACEOF
8203if ac_fn_c_try_compile "$LINENO"
8204then :
8205  xorg_cv_cc_flag_unused_command_line_argument=yes
8206else case e in #(
8207  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8208esac
8209fi
8210rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8211esac
8212fi
8213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8214printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8215	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8216	CFLAGS="$xorg_testset_save_CFLAGS"
8217fi
8218
8219found="no"
8220
8221	if test $found = "no" ; then
8222		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8223			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8224		fi
8225
8226		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8227			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8228		fi
8229
8230		CFLAGS="$CFLAGS -Werror=return-type"
8231
8232		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8233printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8234		cacheid=xorg_cv_cc_flag__Werror_return_type
8235		if eval test \${$cacheid+y}
8236then :
8237  printf %s "(cached) " >&6
8238else case e in #(
8239  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240/* end confdefs.h.  */
8241int i;
8242int
8243main (void)
8244{
8245
8246  ;
8247  return 0;
8248}
8249_ACEOF
8250if ac_fn_c_try_link "$LINENO"
8251then :
8252  eval $cacheid=yes
8253else case e in #(
8254  e) eval $cacheid=no ;;
8255esac
8256fi
8257rm -f core conftest.err conftest.$ac_objext conftest.beam \
8258    conftest$ac_exeext conftest.$ac_ext ;;
8259esac
8260fi
8261
8262
8263		CFLAGS="$xorg_testset_save_CFLAGS"
8264
8265		eval supported=\$$cacheid
8266		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8267printf "%s\n" "$supported" >&6; }
8268		if test "$supported" = "yes" ; then
8269			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8270			found="yes"
8271		fi
8272	fi
8273
8274	if test $found = "no" ; then
8275		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8276			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8277		fi
8278
8279		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8280			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8281		fi
8282
8283		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8284
8285		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8286printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8287		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8288		if eval test \${$cacheid+y}
8289then :
8290  printf %s "(cached) " >&6
8291else case e in #(
8292  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293/* end confdefs.h.  */
8294int i;
8295int
8296main (void)
8297{
8298
8299  ;
8300  return 0;
8301}
8302_ACEOF
8303if ac_fn_c_try_link "$LINENO"
8304then :
8305  eval $cacheid=yes
8306else case e in #(
8307  e) eval $cacheid=no ;;
8308esac
8309fi
8310rm -f core conftest.err conftest.$ac_objext conftest.beam \
8311    conftest$ac_exeext conftest.$ac_ext ;;
8312esac
8313fi
8314
8315
8316		CFLAGS="$xorg_testset_save_CFLAGS"
8317
8318		eval supported=\$$cacheid
8319		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8320printf "%s\n" "$supported" >&6; }
8321		if test "$supported" = "yes" ; then
8322			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8323			found="yes"
8324		fi
8325	fi
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341xorg_testset_save_CFLAGS="$CFLAGS"
8342
8343if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8344	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8345	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8346printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8347if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8348then :
8349  printf %s "(cached) " >&6
8350else case e in #(
8351  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352/* end confdefs.h.  */
8353int i;
8354_ACEOF
8355if ac_fn_c_try_compile "$LINENO"
8356then :
8357  xorg_cv_cc_flag_unknown_warning_option=yes
8358else case e in #(
8359  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8360esac
8361fi
8362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8363esac
8364fi
8365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8366printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8367	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8368	CFLAGS="$xorg_testset_save_CFLAGS"
8369fi
8370
8371if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8372	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8373		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8374	fi
8375	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8376	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8377printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8378if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8379then :
8380  printf %s "(cached) " >&6
8381else case e in #(
8382  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383/* end confdefs.h.  */
8384int i;
8385_ACEOF
8386if ac_fn_c_try_compile "$LINENO"
8387then :
8388  xorg_cv_cc_flag_unused_command_line_argument=yes
8389else case e in #(
8390  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8391esac
8392fi
8393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8394esac
8395fi
8396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8397printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8398	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8399	CFLAGS="$xorg_testset_save_CFLAGS"
8400fi
8401
8402found="no"
8403
8404	if test $found = "no" ; then
8405		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8406			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8407		fi
8408
8409		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8410			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8411		fi
8412
8413		CFLAGS="$CFLAGS -Werror=trigraphs"
8414
8415		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8416printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8417		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8418		if eval test \${$cacheid+y}
8419then :
8420  printf %s "(cached) " >&6
8421else case e in #(
8422  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423/* end confdefs.h.  */
8424int i;
8425int
8426main (void)
8427{
8428
8429  ;
8430  return 0;
8431}
8432_ACEOF
8433if ac_fn_c_try_link "$LINENO"
8434then :
8435  eval $cacheid=yes
8436else case e in #(
8437  e) eval $cacheid=no ;;
8438esac
8439fi
8440rm -f core conftest.err conftest.$ac_objext conftest.beam \
8441    conftest$ac_exeext conftest.$ac_ext ;;
8442esac
8443fi
8444
8445
8446		CFLAGS="$xorg_testset_save_CFLAGS"
8447
8448		eval supported=\$$cacheid
8449		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8450printf "%s\n" "$supported" >&6; }
8451		if test "$supported" = "yes" ; then
8452			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8453			found="yes"
8454		fi
8455	fi
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471xorg_testset_save_CFLAGS="$CFLAGS"
8472
8473if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8474	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8475	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8476printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8477if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8478then :
8479  printf %s "(cached) " >&6
8480else case e in #(
8481  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8482/* end confdefs.h.  */
8483int i;
8484_ACEOF
8485if ac_fn_c_try_compile "$LINENO"
8486then :
8487  xorg_cv_cc_flag_unknown_warning_option=yes
8488else case e in #(
8489  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8490esac
8491fi
8492rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8493esac
8494fi
8495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8496printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8497	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8498	CFLAGS="$xorg_testset_save_CFLAGS"
8499fi
8500
8501if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8502	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8503		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8504	fi
8505	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8506	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8507printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8508if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8509then :
8510  printf %s "(cached) " >&6
8511else case e in #(
8512  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513/* end confdefs.h.  */
8514int i;
8515_ACEOF
8516if ac_fn_c_try_compile "$LINENO"
8517then :
8518  xorg_cv_cc_flag_unused_command_line_argument=yes
8519else case e in #(
8520  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8521esac
8522fi
8523rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8524esac
8525fi
8526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8527printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8528	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8529	CFLAGS="$xorg_testset_save_CFLAGS"
8530fi
8531
8532found="no"
8533
8534	if test $found = "no" ; then
8535		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8536			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8537		fi
8538
8539		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8540			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8541		fi
8542
8543		CFLAGS="$CFLAGS -Werror=array-bounds"
8544
8545		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8546printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8547		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8548		if eval test \${$cacheid+y}
8549then :
8550  printf %s "(cached) " >&6
8551else case e in #(
8552  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553/* end confdefs.h.  */
8554int i;
8555int
8556main (void)
8557{
8558
8559  ;
8560  return 0;
8561}
8562_ACEOF
8563if ac_fn_c_try_link "$LINENO"
8564then :
8565  eval $cacheid=yes
8566else case e in #(
8567  e) eval $cacheid=no ;;
8568esac
8569fi
8570rm -f core conftest.err conftest.$ac_objext conftest.beam \
8571    conftest$ac_exeext conftest.$ac_ext ;;
8572esac
8573fi
8574
8575
8576		CFLAGS="$xorg_testset_save_CFLAGS"
8577
8578		eval supported=\$$cacheid
8579		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8580printf "%s\n" "$supported" >&6; }
8581		if test "$supported" = "yes" ; then
8582			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8583			found="yes"
8584		fi
8585	fi
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601xorg_testset_save_CFLAGS="$CFLAGS"
8602
8603if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8604	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8605	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8606printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8607if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8608then :
8609  printf %s "(cached) " >&6
8610else case e in #(
8611  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612/* end confdefs.h.  */
8613int i;
8614_ACEOF
8615if ac_fn_c_try_compile "$LINENO"
8616then :
8617  xorg_cv_cc_flag_unknown_warning_option=yes
8618else case e in #(
8619  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8620esac
8621fi
8622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8623esac
8624fi
8625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8626printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8627	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8628	CFLAGS="$xorg_testset_save_CFLAGS"
8629fi
8630
8631if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8632	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8633		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8634	fi
8635	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8636	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8637printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8638if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8639then :
8640  printf %s "(cached) " >&6
8641else case e in #(
8642  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643/* end confdefs.h.  */
8644int i;
8645_ACEOF
8646if ac_fn_c_try_compile "$LINENO"
8647then :
8648  xorg_cv_cc_flag_unused_command_line_argument=yes
8649else case e in #(
8650  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8651esac
8652fi
8653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8654esac
8655fi
8656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8657printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8658	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8659	CFLAGS="$xorg_testset_save_CFLAGS"
8660fi
8661
8662found="no"
8663
8664	if test $found = "no" ; then
8665		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8666			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8667		fi
8668
8669		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8670			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8671		fi
8672
8673		CFLAGS="$CFLAGS -Werror=write-strings"
8674
8675		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8676printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8677		cacheid=xorg_cv_cc_flag__Werror_write_strings
8678		if eval test \${$cacheid+y}
8679then :
8680  printf %s "(cached) " >&6
8681else case e in #(
8682  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683/* end confdefs.h.  */
8684int i;
8685int
8686main (void)
8687{
8688
8689  ;
8690  return 0;
8691}
8692_ACEOF
8693if ac_fn_c_try_link "$LINENO"
8694then :
8695  eval $cacheid=yes
8696else case e in #(
8697  e) eval $cacheid=no ;;
8698esac
8699fi
8700rm -f core conftest.err conftest.$ac_objext conftest.beam \
8701    conftest$ac_exeext conftest.$ac_ext ;;
8702esac
8703fi
8704
8705
8706		CFLAGS="$xorg_testset_save_CFLAGS"
8707
8708		eval supported=\$$cacheid
8709		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8710printf "%s\n" "$supported" >&6; }
8711		if test "$supported" = "yes" ; then
8712			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8713			found="yes"
8714		fi
8715	fi
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731xorg_testset_save_CFLAGS="$CFLAGS"
8732
8733if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8734	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8735	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8736printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8737if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8738then :
8739  printf %s "(cached) " >&6
8740else case e in #(
8741  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742/* end confdefs.h.  */
8743int i;
8744_ACEOF
8745if ac_fn_c_try_compile "$LINENO"
8746then :
8747  xorg_cv_cc_flag_unknown_warning_option=yes
8748else case e in #(
8749  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8750esac
8751fi
8752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8753esac
8754fi
8755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8756printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8757	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8758	CFLAGS="$xorg_testset_save_CFLAGS"
8759fi
8760
8761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8762	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8763		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8764	fi
8765	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8766	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8767printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8768if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8769then :
8770  printf %s "(cached) " >&6
8771else case e in #(
8772  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773/* end confdefs.h.  */
8774int i;
8775_ACEOF
8776if ac_fn_c_try_compile "$LINENO"
8777then :
8778  xorg_cv_cc_flag_unused_command_line_argument=yes
8779else case e in #(
8780  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8781esac
8782fi
8783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8784esac
8785fi
8786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8787printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8788	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8789	CFLAGS="$xorg_testset_save_CFLAGS"
8790fi
8791
8792found="no"
8793
8794	if test $found = "no" ; then
8795		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8796			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8797		fi
8798
8799		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8800			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8801		fi
8802
8803		CFLAGS="$CFLAGS -Werror=address"
8804
8805		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8806printf %s "checking if $CC supports -Werror=address... " >&6; }
8807		cacheid=xorg_cv_cc_flag__Werror_address
8808		if eval test \${$cacheid+y}
8809then :
8810  printf %s "(cached) " >&6
8811else case e in #(
8812  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8813/* end confdefs.h.  */
8814int i;
8815int
8816main (void)
8817{
8818
8819  ;
8820  return 0;
8821}
8822_ACEOF
8823if ac_fn_c_try_link "$LINENO"
8824then :
8825  eval $cacheid=yes
8826else case e in #(
8827  e) eval $cacheid=no ;;
8828esac
8829fi
8830rm -f core conftest.err conftest.$ac_objext conftest.beam \
8831    conftest$ac_exeext conftest.$ac_ext ;;
8832esac
8833fi
8834
8835
8836		CFLAGS="$xorg_testset_save_CFLAGS"
8837
8838		eval supported=\$$cacheid
8839		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8840printf "%s\n" "$supported" >&6; }
8841		if test "$supported" = "yes" ; then
8842			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8843			found="yes"
8844		fi
8845	fi
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861xorg_testset_save_CFLAGS="$CFLAGS"
8862
8863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8864	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8865	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8866printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8867if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8868then :
8869  printf %s "(cached) " >&6
8870else case e in #(
8871  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872/* end confdefs.h.  */
8873int i;
8874_ACEOF
8875if ac_fn_c_try_compile "$LINENO"
8876then :
8877  xorg_cv_cc_flag_unknown_warning_option=yes
8878else case e in #(
8879  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8880esac
8881fi
8882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8883esac
8884fi
8885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8886printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8887	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8888	CFLAGS="$xorg_testset_save_CFLAGS"
8889fi
8890
8891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8892	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8893		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8894	fi
8895	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8896	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8897printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8898if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8899then :
8900  printf %s "(cached) " >&6
8901else case e in #(
8902  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8903/* end confdefs.h.  */
8904int i;
8905_ACEOF
8906if ac_fn_c_try_compile "$LINENO"
8907then :
8908  xorg_cv_cc_flag_unused_command_line_argument=yes
8909else case e in #(
8910  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8911esac
8912fi
8913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8914esac
8915fi
8916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8917printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8918	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8919	CFLAGS="$xorg_testset_save_CFLAGS"
8920fi
8921
8922found="no"
8923
8924	if test $found = "no" ; then
8925		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8926			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8927		fi
8928
8929		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8930			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8931		fi
8932
8933		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8934
8935		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8936printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8937		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8938		if eval test \${$cacheid+y}
8939then :
8940  printf %s "(cached) " >&6
8941else case e in #(
8942  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943/* end confdefs.h.  */
8944int i;
8945int
8946main (void)
8947{
8948
8949  ;
8950  return 0;
8951}
8952_ACEOF
8953if ac_fn_c_try_link "$LINENO"
8954then :
8955  eval $cacheid=yes
8956else case e in #(
8957  e) eval $cacheid=no ;;
8958esac
8959fi
8960rm -f core conftest.err conftest.$ac_objext conftest.beam \
8961    conftest$ac_exeext conftest.$ac_ext ;;
8962esac
8963fi
8964
8965
8966		CFLAGS="$xorg_testset_save_CFLAGS"
8967
8968		eval supported=\$$cacheid
8969		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8970printf "%s\n" "$supported" >&6; }
8971		if test "$supported" = "yes" ; then
8972			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8973			found="yes"
8974		fi
8975	fi
8976
8977	if test $found = "no" ; then
8978		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8979			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8980		fi
8981
8982		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8983			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8984		fi
8985
8986		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8987
8988		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8989printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8990		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8991		if eval test \${$cacheid+y}
8992then :
8993  printf %s "(cached) " >&6
8994else case e in #(
8995  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996/* end confdefs.h.  */
8997int i;
8998int
8999main (void)
9000{
9001
9002  ;
9003  return 0;
9004}
9005_ACEOF
9006if ac_fn_c_try_link "$LINENO"
9007then :
9008  eval $cacheid=yes
9009else case e in #(
9010  e) eval $cacheid=no ;;
9011esac
9012fi
9013rm -f core conftest.err conftest.$ac_objext conftest.beam \
9014    conftest$ac_exeext conftest.$ac_ext ;;
9015esac
9016fi
9017
9018
9019		CFLAGS="$xorg_testset_save_CFLAGS"
9020
9021		eval supported=\$$cacheid
9022		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9023printf "%s\n" "$supported" >&6; }
9024		if test "$supported" = "yes" ; then
9025			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9026			found="yes"
9027		fi
9028	fi
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044xorg_testset_save_CFLAGS="$CFLAGS"
9045
9046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9047	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9048	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9049printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9050if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9051then :
9052  printf %s "(cached) " >&6
9053else case e in #(
9054  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055/* end confdefs.h.  */
9056int i;
9057_ACEOF
9058if ac_fn_c_try_compile "$LINENO"
9059then :
9060  xorg_cv_cc_flag_unknown_warning_option=yes
9061else case e in #(
9062  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9063esac
9064fi
9065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9066esac
9067fi
9068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9069printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9070	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9071	CFLAGS="$xorg_testset_save_CFLAGS"
9072fi
9073
9074if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9075	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9076		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9077	fi
9078	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9079	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9080printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9081if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9082then :
9083  printf %s "(cached) " >&6
9084else case e in #(
9085  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086/* end confdefs.h.  */
9087int i;
9088_ACEOF
9089if ac_fn_c_try_compile "$LINENO"
9090then :
9091  xorg_cv_cc_flag_unused_command_line_argument=yes
9092else case e in #(
9093  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9094esac
9095fi
9096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9097esac
9098fi
9099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9100printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9101	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9102	CFLAGS="$xorg_testset_save_CFLAGS"
9103fi
9104
9105found="no"
9106
9107	if test $found = "no" ; then
9108		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9109			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9110		fi
9111
9112		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9113			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9114		fi
9115
9116		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9117
9118		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9119printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9120		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9121		if eval test \${$cacheid+y}
9122then :
9123  printf %s "(cached) " >&6
9124else case e in #(
9125  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9126/* end confdefs.h.  */
9127int i;
9128int
9129main (void)
9130{
9131
9132  ;
9133  return 0;
9134}
9135_ACEOF
9136if ac_fn_c_try_link "$LINENO"
9137then :
9138  eval $cacheid=yes
9139else case e in #(
9140  e) eval $cacheid=no ;;
9141esac
9142fi
9143rm -f core conftest.err conftest.$ac_objext conftest.beam \
9144    conftest$ac_exeext conftest.$ac_ext ;;
9145esac
9146fi
9147
9148
9149		CFLAGS="$xorg_testset_save_CFLAGS"
9150
9151		eval supported=\$$cacheid
9152		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9153printf "%s\n" "$supported" >&6; }
9154		if test "$supported" = "yes" ; then
9155			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9156			found="yes"
9157		fi
9158	fi
9159
9160 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9161else
9162{ 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
9163printf "%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;}
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177xorg_testset_save_CFLAGS="$CFLAGS"
9178
9179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9180	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9181	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9182printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9183if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9184then :
9185  printf %s "(cached) " >&6
9186else case e in #(
9187  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188/* end confdefs.h.  */
9189int i;
9190_ACEOF
9191if ac_fn_c_try_compile "$LINENO"
9192then :
9193  xorg_cv_cc_flag_unknown_warning_option=yes
9194else case e in #(
9195  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9196esac
9197fi
9198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9199esac
9200fi
9201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9202printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9203	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9204	CFLAGS="$xorg_testset_save_CFLAGS"
9205fi
9206
9207if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9208	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9209		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9210	fi
9211	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9212	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9213printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9214if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9215then :
9216  printf %s "(cached) " >&6
9217else case e in #(
9218  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9219/* end confdefs.h.  */
9220int i;
9221_ACEOF
9222if ac_fn_c_try_compile "$LINENO"
9223then :
9224  xorg_cv_cc_flag_unused_command_line_argument=yes
9225else case e in #(
9226  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9227esac
9228fi
9229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9230esac
9231fi
9232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9233printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9234	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9235	CFLAGS="$xorg_testset_save_CFLAGS"
9236fi
9237
9238found="no"
9239
9240	if test $found = "no" ; then
9241		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9242			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9243		fi
9244
9245		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9246			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9247		fi
9248
9249		CFLAGS="$CFLAGS -Wimplicit"
9250
9251		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9252printf %s "checking if $CC supports -Wimplicit... " >&6; }
9253		cacheid=xorg_cv_cc_flag__Wimplicit
9254		if eval test \${$cacheid+y}
9255then :
9256  printf %s "(cached) " >&6
9257else case e in #(
9258  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259/* end confdefs.h.  */
9260int i;
9261int
9262main (void)
9263{
9264
9265  ;
9266  return 0;
9267}
9268_ACEOF
9269if ac_fn_c_try_link "$LINENO"
9270then :
9271  eval $cacheid=yes
9272else case e in #(
9273  e) eval $cacheid=no ;;
9274esac
9275fi
9276rm -f core conftest.err conftest.$ac_objext conftest.beam \
9277    conftest$ac_exeext conftest.$ac_ext ;;
9278esac
9279fi
9280
9281
9282		CFLAGS="$xorg_testset_save_CFLAGS"
9283
9284		eval supported=\$$cacheid
9285		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9286printf "%s\n" "$supported" >&6; }
9287		if test "$supported" = "yes" ; then
9288			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9289			found="yes"
9290		fi
9291	fi
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307xorg_testset_save_CFLAGS="$CFLAGS"
9308
9309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9310	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9311	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9312printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9313if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9314then :
9315  printf %s "(cached) " >&6
9316else case e in #(
9317  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318/* end confdefs.h.  */
9319int i;
9320_ACEOF
9321if ac_fn_c_try_compile "$LINENO"
9322then :
9323  xorg_cv_cc_flag_unknown_warning_option=yes
9324else case e in #(
9325  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9326esac
9327fi
9328rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9329esac
9330fi
9331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9332printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9333	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9334	CFLAGS="$xorg_testset_save_CFLAGS"
9335fi
9336
9337if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9338	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9339		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9340	fi
9341	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9342	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9343printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9344if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9345then :
9346  printf %s "(cached) " >&6
9347else case e in #(
9348  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349/* end confdefs.h.  */
9350int i;
9351_ACEOF
9352if ac_fn_c_try_compile "$LINENO"
9353then :
9354  xorg_cv_cc_flag_unused_command_line_argument=yes
9355else case e in #(
9356  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9357esac
9358fi
9359rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9360esac
9361fi
9362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9363printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9364	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9365	CFLAGS="$xorg_testset_save_CFLAGS"
9366fi
9367
9368found="no"
9369
9370	if test $found = "no" ; then
9371		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9372			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9373		fi
9374
9375		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9376			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9377		fi
9378
9379		CFLAGS="$CFLAGS -Wnonnull"
9380
9381		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9382printf %s "checking if $CC supports -Wnonnull... " >&6; }
9383		cacheid=xorg_cv_cc_flag__Wnonnull
9384		if eval test \${$cacheid+y}
9385then :
9386  printf %s "(cached) " >&6
9387else case e in #(
9388  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389/* end confdefs.h.  */
9390int i;
9391int
9392main (void)
9393{
9394
9395  ;
9396  return 0;
9397}
9398_ACEOF
9399if ac_fn_c_try_link "$LINENO"
9400then :
9401  eval $cacheid=yes
9402else case e in #(
9403  e) eval $cacheid=no ;;
9404esac
9405fi
9406rm -f core conftest.err conftest.$ac_objext conftest.beam \
9407    conftest$ac_exeext conftest.$ac_ext ;;
9408esac
9409fi
9410
9411
9412		CFLAGS="$xorg_testset_save_CFLAGS"
9413
9414		eval supported=\$$cacheid
9415		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9416printf "%s\n" "$supported" >&6; }
9417		if test "$supported" = "yes" ; then
9418			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9419			found="yes"
9420		fi
9421	fi
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437xorg_testset_save_CFLAGS="$CFLAGS"
9438
9439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9440	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9441	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9442printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9443if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9444then :
9445  printf %s "(cached) " >&6
9446else case e in #(
9447  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448/* end confdefs.h.  */
9449int i;
9450_ACEOF
9451if ac_fn_c_try_compile "$LINENO"
9452then :
9453  xorg_cv_cc_flag_unknown_warning_option=yes
9454else case e in #(
9455  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9456esac
9457fi
9458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9459esac
9460fi
9461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9462printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9463	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9464	CFLAGS="$xorg_testset_save_CFLAGS"
9465fi
9466
9467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9468	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9469		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470	fi
9471	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9472	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9473printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9474if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9475then :
9476  printf %s "(cached) " >&6
9477else case e in #(
9478  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479/* end confdefs.h.  */
9480int i;
9481_ACEOF
9482if ac_fn_c_try_compile "$LINENO"
9483then :
9484  xorg_cv_cc_flag_unused_command_line_argument=yes
9485else case e in #(
9486  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9487esac
9488fi
9489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9490esac
9491fi
9492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9493printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9494	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9495	CFLAGS="$xorg_testset_save_CFLAGS"
9496fi
9497
9498found="no"
9499
9500	if test $found = "no" ; then
9501		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9502			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9503		fi
9504
9505		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9506			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9507		fi
9508
9509		CFLAGS="$CFLAGS -Winit-self"
9510
9511		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9512printf %s "checking if $CC supports -Winit-self... " >&6; }
9513		cacheid=xorg_cv_cc_flag__Winit_self
9514		if eval test \${$cacheid+y}
9515then :
9516  printf %s "(cached) " >&6
9517else case e in #(
9518  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9519/* end confdefs.h.  */
9520int i;
9521int
9522main (void)
9523{
9524
9525  ;
9526  return 0;
9527}
9528_ACEOF
9529if ac_fn_c_try_link "$LINENO"
9530then :
9531  eval $cacheid=yes
9532else case e in #(
9533  e) eval $cacheid=no ;;
9534esac
9535fi
9536rm -f core conftest.err conftest.$ac_objext conftest.beam \
9537    conftest$ac_exeext conftest.$ac_ext ;;
9538esac
9539fi
9540
9541
9542		CFLAGS="$xorg_testset_save_CFLAGS"
9543
9544		eval supported=\$$cacheid
9545		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9546printf "%s\n" "$supported" >&6; }
9547		if test "$supported" = "yes" ; then
9548			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9549			found="yes"
9550		fi
9551	fi
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567xorg_testset_save_CFLAGS="$CFLAGS"
9568
9569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9570	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9571	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9572printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9573if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9574then :
9575  printf %s "(cached) " >&6
9576else case e in #(
9577  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578/* end confdefs.h.  */
9579int i;
9580_ACEOF
9581if ac_fn_c_try_compile "$LINENO"
9582then :
9583  xorg_cv_cc_flag_unknown_warning_option=yes
9584else case e in #(
9585  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9586esac
9587fi
9588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9589esac
9590fi
9591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9592printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9593	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9594	CFLAGS="$xorg_testset_save_CFLAGS"
9595fi
9596
9597if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9598	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9599		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9600	fi
9601	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9602	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9603printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9604if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9605then :
9606  printf %s "(cached) " >&6
9607else case e in #(
9608  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9609/* end confdefs.h.  */
9610int i;
9611_ACEOF
9612if ac_fn_c_try_compile "$LINENO"
9613then :
9614  xorg_cv_cc_flag_unused_command_line_argument=yes
9615else case e in #(
9616  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9617esac
9618fi
9619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9620esac
9621fi
9622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9623printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9624	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9625	CFLAGS="$xorg_testset_save_CFLAGS"
9626fi
9627
9628found="no"
9629
9630	if test $found = "no" ; then
9631		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9632			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9633		fi
9634
9635		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9636			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9637		fi
9638
9639		CFLAGS="$CFLAGS -Wmain"
9640
9641		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9642printf %s "checking if $CC supports -Wmain... " >&6; }
9643		cacheid=xorg_cv_cc_flag__Wmain
9644		if eval test \${$cacheid+y}
9645then :
9646  printf %s "(cached) " >&6
9647else case e in #(
9648  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649/* end confdefs.h.  */
9650int i;
9651int
9652main (void)
9653{
9654
9655  ;
9656  return 0;
9657}
9658_ACEOF
9659if ac_fn_c_try_link "$LINENO"
9660then :
9661  eval $cacheid=yes
9662else case e in #(
9663  e) eval $cacheid=no ;;
9664esac
9665fi
9666rm -f core conftest.err conftest.$ac_objext conftest.beam \
9667    conftest$ac_exeext conftest.$ac_ext ;;
9668esac
9669fi
9670
9671
9672		CFLAGS="$xorg_testset_save_CFLAGS"
9673
9674		eval supported=\$$cacheid
9675		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9676printf "%s\n" "$supported" >&6; }
9677		if test "$supported" = "yes" ; then
9678			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9679			found="yes"
9680		fi
9681	fi
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697xorg_testset_save_CFLAGS="$CFLAGS"
9698
9699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9700	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9701	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9702printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9703if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9704then :
9705  printf %s "(cached) " >&6
9706else case e in #(
9707  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708/* end confdefs.h.  */
9709int i;
9710_ACEOF
9711if ac_fn_c_try_compile "$LINENO"
9712then :
9713  xorg_cv_cc_flag_unknown_warning_option=yes
9714else case e in #(
9715  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9716esac
9717fi
9718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9719esac
9720fi
9721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9722printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9723	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9724	CFLAGS="$xorg_testset_save_CFLAGS"
9725fi
9726
9727if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9728	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9729		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9730	fi
9731	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9732	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9733printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9734if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9735then :
9736  printf %s "(cached) " >&6
9737else case e in #(
9738  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739/* end confdefs.h.  */
9740int i;
9741_ACEOF
9742if ac_fn_c_try_compile "$LINENO"
9743then :
9744  xorg_cv_cc_flag_unused_command_line_argument=yes
9745else case e in #(
9746  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9747esac
9748fi
9749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9750esac
9751fi
9752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9753printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9754	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9755	CFLAGS="$xorg_testset_save_CFLAGS"
9756fi
9757
9758found="no"
9759
9760	if test $found = "no" ; then
9761		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9762			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9763		fi
9764
9765		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9766			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9767		fi
9768
9769		CFLAGS="$CFLAGS -Wmissing-braces"
9770
9771		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9772printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9773		cacheid=xorg_cv_cc_flag__Wmissing_braces
9774		if eval test \${$cacheid+y}
9775then :
9776  printf %s "(cached) " >&6
9777else case e in #(
9778  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9779/* end confdefs.h.  */
9780int i;
9781int
9782main (void)
9783{
9784
9785  ;
9786  return 0;
9787}
9788_ACEOF
9789if ac_fn_c_try_link "$LINENO"
9790then :
9791  eval $cacheid=yes
9792else case e in #(
9793  e) eval $cacheid=no ;;
9794esac
9795fi
9796rm -f core conftest.err conftest.$ac_objext conftest.beam \
9797    conftest$ac_exeext conftest.$ac_ext ;;
9798esac
9799fi
9800
9801
9802		CFLAGS="$xorg_testset_save_CFLAGS"
9803
9804		eval supported=\$$cacheid
9805		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9806printf "%s\n" "$supported" >&6; }
9807		if test "$supported" = "yes" ; then
9808			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9809			found="yes"
9810		fi
9811	fi
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827xorg_testset_save_CFLAGS="$CFLAGS"
9828
9829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9830	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9831	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9832printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9833if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9834then :
9835  printf %s "(cached) " >&6
9836else case e in #(
9837  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838/* end confdefs.h.  */
9839int i;
9840_ACEOF
9841if ac_fn_c_try_compile "$LINENO"
9842then :
9843  xorg_cv_cc_flag_unknown_warning_option=yes
9844else case e in #(
9845  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9846esac
9847fi
9848rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9849esac
9850fi
9851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9852printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9853	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9854	CFLAGS="$xorg_testset_save_CFLAGS"
9855fi
9856
9857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9858	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9859		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9860	fi
9861	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9862	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9863printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9864if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9865then :
9866  printf %s "(cached) " >&6
9867else case e in #(
9868  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869/* end confdefs.h.  */
9870int i;
9871_ACEOF
9872if ac_fn_c_try_compile "$LINENO"
9873then :
9874  xorg_cv_cc_flag_unused_command_line_argument=yes
9875else case e in #(
9876  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9877esac
9878fi
9879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9880esac
9881fi
9882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9883printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9884	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9885	CFLAGS="$xorg_testset_save_CFLAGS"
9886fi
9887
9888found="no"
9889
9890	if test $found = "no" ; then
9891		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9892			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9893		fi
9894
9895		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9896			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9897		fi
9898
9899		CFLAGS="$CFLAGS -Wsequence-point"
9900
9901		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9902printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9903		cacheid=xorg_cv_cc_flag__Wsequence_point
9904		if eval test \${$cacheid+y}
9905then :
9906  printf %s "(cached) " >&6
9907else case e in #(
9908  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909/* end confdefs.h.  */
9910int i;
9911int
9912main (void)
9913{
9914
9915  ;
9916  return 0;
9917}
9918_ACEOF
9919if ac_fn_c_try_link "$LINENO"
9920then :
9921  eval $cacheid=yes
9922else case e in #(
9923  e) eval $cacheid=no ;;
9924esac
9925fi
9926rm -f core conftest.err conftest.$ac_objext conftest.beam \
9927    conftest$ac_exeext conftest.$ac_ext ;;
9928esac
9929fi
9930
9931
9932		CFLAGS="$xorg_testset_save_CFLAGS"
9933
9934		eval supported=\$$cacheid
9935		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9936printf "%s\n" "$supported" >&6; }
9937		if test "$supported" = "yes" ; then
9938			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9939			found="yes"
9940		fi
9941	fi
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957xorg_testset_save_CFLAGS="$CFLAGS"
9958
9959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9960	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9961	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9962printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9963if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9964then :
9965  printf %s "(cached) " >&6
9966else case e in #(
9967  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968/* end confdefs.h.  */
9969int i;
9970_ACEOF
9971if ac_fn_c_try_compile "$LINENO"
9972then :
9973  xorg_cv_cc_flag_unknown_warning_option=yes
9974else case e in #(
9975  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9976esac
9977fi
9978rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9979esac
9980fi
9981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9982printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9983	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9984	CFLAGS="$xorg_testset_save_CFLAGS"
9985fi
9986
9987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9988	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9989		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9990	fi
9991	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9992	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9993printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9994if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9995then :
9996  printf %s "(cached) " >&6
9997else case e in #(
9998  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9999/* end confdefs.h.  */
10000int i;
10001_ACEOF
10002if ac_fn_c_try_compile "$LINENO"
10003then :
10004  xorg_cv_cc_flag_unused_command_line_argument=yes
10005else case e in #(
10006  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10007esac
10008fi
10009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10010esac
10011fi
10012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10013printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10014	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10015	CFLAGS="$xorg_testset_save_CFLAGS"
10016fi
10017
10018found="no"
10019
10020	if test $found = "no" ; then
10021		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10022			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10023		fi
10024
10025		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10026			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10027		fi
10028
10029		CFLAGS="$CFLAGS -Wreturn-type"
10030
10031		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10032printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10033		cacheid=xorg_cv_cc_flag__Wreturn_type
10034		if eval test \${$cacheid+y}
10035then :
10036  printf %s "(cached) " >&6
10037else case e in #(
10038  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039/* end confdefs.h.  */
10040int i;
10041int
10042main (void)
10043{
10044
10045  ;
10046  return 0;
10047}
10048_ACEOF
10049if ac_fn_c_try_link "$LINENO"
10050then :
10051  eval $cacheid=yes
10052else case e in #(
10053  e) eval $cacheid=no ;;
10054esac
10055fi
10056rm -f core conftest.err conftest.$ac_objext conftest.beam \
10057    conftest$ac_exeext conftest.$ac_ext ;;
10058esac
10059fi
10060
10061
10062		CFLAGS="$xorg_testset_save_CFLAGS"
10063
10064		eval supported=\$$cacheid
10065		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10066printf "%s\n" "$supported" >&6; }
10067		if test "$supported" = "yes" ; then
10068			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10069			found="yes"
10070		fi
10071	fi
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087xorg_testset_save_CFLAGS="$CFLAGS"
10088
10089if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10090	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10091	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10092printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10093if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10094then :
10095  printf %s "(cached) " >&6
10096else case e in #(
10097  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10098/* end confdefs.h.  */
10099int i;
10100_ACEOF
10101if ac_fn_c_try_compile "$LINENO"
10102then :
10103  xorg_cv_cc_flag_unknown_warning_option=yes
10104else case e in #(
10105  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10106esac
10107fi
10108rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10109esac
10110fi
10111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10112printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10113	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10114	CFLAGS="$xorg_testset_save_CFLAGS"
10115fi
10116
10117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10118	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10119		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10120	fi
10121	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10122	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10123printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10124if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10125then :
10126  printf %s "(cached) " >&6
10127else case e in #(
10128  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129/* end confdefs.h.  */
10130int i;
10131_ACEOF
10132if ac_fn_c_try_compile "$LINENO"
10133then :
10134  xorg_cv_cc_flag_unused_command_line_argument=yes
10135else case e in #(
10136  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10137esac
10138fi
10139rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10140esac
10141fi
10142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10143printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10144	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10145	CFLAGS="$xorg_testset_save_CFLAGS"
10146fi
10147
10148found="no"
10149
10150	if test $found = "no" ; then
10151		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10152			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10153		fi
10154
10155		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10156			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10157		fi
10158
10159		CFLAGS="$CFLAGS -Wtrigraphs"
10160
10161		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10162printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10163		cacheid=xorg_cv_cc_flag__Wtrigraphs
10164		if eval test \${$cacheid+y}
10165then :
10166  printf %s "(cached) " >&6
10167else case e in #(
10168  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169/* end confdefs.h.  */
10170int i;
10171int
10172main (void)
10173{
10174
10175  ;
10176  return 0;
10177}
10178_ACEOF
10179if ac_fn_c_try_link "$LINENO"
10180then :
10181  eval $cacheid=yes
10182else case e in #(
10183  e) eval $cacheid=no ;;
10184esac
10185fi
10186rm -f core conftest.err conftest.$ac_objext conftest.beam \
10187    conftest$ac_exeext conftest.$ac_ext ;;
10188esac
10189fi
10190
10191
10192		CFLAGS="$xorg_testset_save_CFLAGS"
10193
10194		eval supported=\$$cacheid
10195		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10196printf "%s\n" "$supported" >&6; }
10197		if test "$supported" = "yes" ; then
10198			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10199			found="yes"
10200		fi
10201	fi
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217xorg_testset_save_CFLAGS="$CFLAGS"
10218
10219if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10220	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10221	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10222printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10223if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10224then :
10225  printf %s "(cached) " >&6
10226else case e in #(
10227  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10228/* end confdefs.h.  */
10229int i;
10230_ACEOF
10231if ac_fn_c_try_compile "$LINENO"
10232then :
10233  xorg_cv_cc_flag_unknown_warning_option=yes
10234else case e in #(
10235  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10236esac
10237fi
10238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10239esac
10240fi
10241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10242printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10243	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10244	CFLAGS="$xorg_testset_save_CFLAGS"
10245fi
10246
10247if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10248	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10249		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10250	fi
10251	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10252	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10253printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10254if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10255then :
10256  printf %s "(cached) " >&6
10257else case e in #(
10258  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10259/* end confdefs.h.  */
10260int i;
10261_ACEOF
10262if ac_fn_c_try_compile "$LINENO"
10263then :
10264  xorg_cv_cc_flag_unused_command_line_argument=yes
10265else case e in #(
10266  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10267esac
10268fi
10269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10270esac
10271fi
10272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10273printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10274	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10275	CFLAGS="$xorg_testset_save_CFLAGS"
10276fi
10277
10278found="no"
10279
10280	if test $found = "no" ; then
10281		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10282			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10283		fi
10284
10285		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10286			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10287		fi
10288
10289		CFLAGS="$CFLAGS -Warray-bounds"
10290
10291		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10292printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10293		cacheid=xorg_cv_cc_flag__Warray_bounds
10294		if eval test \${$cacheid+y}
10295then :
10296  printf %s "(cached) " >&6
10297else case e in #(
10298  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10299/* end confdefs.h.  */
10300int i;
10301int
10302main (void)
10303{
10304
10305  ;
10306  return 0;
10307}
10308_ACEOF
10309if ac_fn_c_try_link "$LINENO"
10310then :
10311  eval $cacheid=yes
10312else case e in #(
10313  e) eval $cacheid=no ;;
10314esac
10315fi
10316rm -f core conftest.err conftest.$ac_objext conftest.beam \
10317    conftest$ac_exeext conftest.$ac_ext ;;
10318esac
10319fi
10320
10321
10322		CFLAGS="$xorg_testset_save_CFLAGS"
10323
10324		eval supported=\$$cacheid
10325		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10326printf "%s\n" "$supported" >&6; }
10327		if test "$supported" = "yes" ; then
10328			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10329			found="yes"
10330		fi
10331	fi
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347xorg_testset_save_CFLAGS="$CFLAGS"
10348
10349if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10350	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10351	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10352printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10353if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10354then :
10355  printf %s "(cached) " >&6
10356else case e in #(
10357  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10358/* end confdefs.h.  */
10359int i;
10360_ACEOF
10361if ac_fn_c_try_compile "$LINENO"
10362then :
10363  xorg_cv_cc_flag_unknown_warning_option=yes
10364else case e in #(
10365  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10366esac
10367fi
10368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10369esac
10370fi
10371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10372printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10373	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10374	CFLAGS="$xorg_testset_save_CFLAGS"
10375fi
10376
10377if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10378	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10379		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10380	fi
10381	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10382	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10383printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10384if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10385then :
10386  printf %s "(cached) " >&6
10387else case e in #(
10388  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389/* end confdefs.h.  */
10390int i;
10391_ACEOF
10392if ac_fn_c_try_compile "$LINENO"
10393then :
10394  xorg_cv_cc_flag_unused_command_line_argument=yes
10395else case e in #(
10396  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10397esac
10398fi
10399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10400esac
10401fi
10402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10403printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10404	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10405	CFLAGS="$xorg_testset_save_CFLAGS"
10406fi
10407
10408found="no"
10409
10410	if test $found = "no" ; then
10411		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10412			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10413		fi
10414
10415		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10416			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10417		fi
10418
10419		CFLAGS="$CFLAGS -Wwrite-strings"
10420
10421		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10422printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10423		cacheid=xorg_cv_cc_flag__Wwrite_strings
10424		if eval test \${$cacheid+y}
10425then :
10426  printf %s "(cached) " >&6
10427else case e in #(
10428  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429/* end confdefs.h.  */
10430int i;
10431int
10432main (void)
10433{
10434
10435  ;
10436  return 0;
10437}
10438_ACEOF
10439if ac_fn_c_try_link "$LINENO"
10440then :
10441  eval $cacheid=yes
10442else case e in #(
10443  e) eval $cacheid=no ;;
10444esac
10445fi
10446rm -f core conftest.err conftest.$ac_objext conftest.beam \
10447    conftest$ac_exeext conftest.$ac_ext ;;
10448esac
10449fi
10450
10451
10452		CFLAGS="$xorg_testset_save_CFLAGS"
10453
10454		eval supported=\$$cacheid
10455		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10456printf "%s\n" "$supported" >&6; }
10457		if test "$supported" = "yes" ; then
10458			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10459			found="yes"
10460		fi
10461	fi
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477xorg_testset_save_CFLAGS="$CFLAGS"
10478
10479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10480	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10481	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10482printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10483if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10484then :
10485  printf %s "(cached) " >&6
10486else case e in #(
10487  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10488/* end confdefs.h.  */
10489int i;
10490_ACEOF
10491if ac_fn_c_try_compile "$LINENO"
10492then :
10493  xorg_cv_cc_flag_unknown_warning_option=yes
10494else case e in #(
10495  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10496esac
10497fi
10498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10499esac
10500fi
10501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10502printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10503	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10504	CFLAGS="$xorg_testset_save_CFLAGS"
10505fi
10506
10507if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10508	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10509		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10510	fi
10511	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10512	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10513printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10514if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10515then :
10516  printf %s "(cached) " >&6
10517else case e in #(
10518  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10519/* end confdefs.h.  */
10520int i;
10521_ACEOF
10522if ac_fn_c_try_compile "$LINENO"
10523then :
10524  xorg_cv_cc_flag_unused_command_line_argument=yes
10525else case e in #(
10526  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10527esac
10528fi
10529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10530esac
10531fi
10532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10533printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10534	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10535	CFLAGS="$xorg_testset_save_CFLAGS"
10536fi
10537
10538found="no"
10539
10540	if test $found = "no" ; then
10541		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10542			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10543		fi
10544
10545		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10546			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10547		fi
10548
10549		CFLAGS="$CFLAGS -Waddress"
10550
10551		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10552printf %s "checking if $CC supports -Waddress... " >&6; }
10553		cacheid=xorg_cv_cc_flag__Waddress
10554		if eval test \${$cacheid+y}
10555then :
10556  printf %s "(cached) " >&6
10557else case e in #(
10558  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10559/* end confdefs.h.  */
10560int i;
10561int
10562main (void)
10563{
10564
10565  ;
10566  return 0;
10567}
10568_ACEOF
10569if ac_fn_c_try_link "$LINENO"
10570then :
10571  eval $cacheid=yes
10572else case e in #(
10573  e) eval $cacheid=no ;;
10574esac
10575fi
10576rm -f core conftest.err conftest.$ac_objext conftest.beam \
10577    conftest$ac_exeext conftest.$ac_ext ;;
10578esac
10579fi
10580
10581
10582		CFLAGS="$xorg_testset_save_CFLAGS"
10583
10584		eval supported=\$$cacheid
10585		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10586printf "%s\n" "$supported" >&6; }
10587		if test "$supported" = "yes" ; then
10588			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10589			found="yes"
10590		fi
10591	fi
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607xorg_testset_save_CFLAGS="$CFLAGS"
10608
10609if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10610	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10611	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10612printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10613if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10614then :
10615  printf %s "(cached) " >&6
10616else case e in #(
10617  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10618/* end confdefs.h.  */
10619int i;
10620_ACEOF
10621if ac_fn_c_try_compile "$LINENO"
10622then :
10623  xorg_cv_cc_flag_unknown_warning_option=yes
10624else case e in #(
10625  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10626esac
10627fi
10628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10629esac
10630fi
10631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10632printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10633	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10634	CFLAGS="$xorg_testset_save_CFLAGS"
10635fi
10636
10637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10638	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10639		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10640	fi
10641	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10642	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10643printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10644if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10645then :
10646  printf %s "(cached) " >&6
10647else case e in #(
10648  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649/* end confdefs.h.  */
10650int i;
10651_ACEOF
10652if ac_fn_c_try_compile "$LINENO"
10653then :
10654  xorg_cv_cc_flag_unused_command_line_argument=yes
10655else case e in #(
10656  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10657esac
10658fi
10659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10660esac
10661fi
10662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10663printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10664	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10665	CFLAGS="$xorg_testset_save_CFLAGS"
10666fi
10667
10668found="no"
10669
10670	if test $found = "no" ; then
10671		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10672			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10673		fi
10674
10675		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10676			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10677		fi
10678
10679		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10680
10681		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10682printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10683		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10684		if eval test \${$cacheid+y}
10685then :
10686  printf %s "(cached) " >&6
10687else case e in #(
10688  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10689/* end confdefs.h.  */
10690int i;
10691int
10692main (void)
10693{
10694
10695  ;
10696  return 0;
10697}
10698_ACEOF
10699if ac_fn_c_try_link "$LINENO"
10700then :
10701  eval $cacheid=yes
10702else case e in #(
10703  e) eval $cacheid=no ;;
10704esac
10705fi
10706rm -f core conftest.err conftest.$ac_objext conftest.beam \
10707    conftest$ac_exeext conftest.$ac_ext ;;
10708esac
10709fi
10710
10711
10712		CFLAGS="$xorg_testset_save_CFLAGS"
10713
10714		eval supported=\$$cacheid
10715		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10716printf "%s\n" "$supported" >&6; }
10717		if test "$supported" = "yes" ; then
10718			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10719			found="yes"
10720		fi
10721	fi
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737xorg_testset_save_CFLAGS="$CFLAGS"
10738
10739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10740	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10741	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10742printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10743if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10744then :
10745  printf %s "(cached) " >&6
10746else case e in #(
10747  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748/* end confdefs.h.  */
10749int i;
10750_ACEOF
10751if ac_fn_c_try_compile "$LINENO"
10752then :
10753  xorg_cv_cc_flag_unknown_warning_option=yes
10754else case e in #(
10755  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10756esac
10757fi
10758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10759esac
10760fi
10761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10762printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10763	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10764	CFLAGS="$xorg_testset_save_CFLAGS"
10765fi
10766
10767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10768	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10769		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10770	fi
10771	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10772	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10773printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10774if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10775then :
10776  printf %s "(cached) " >&6
10777else case e in #(
10778  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779/* end confdefs.h.  */
10780int i;
10781_ACEOF
10782if ac_fn_c_try_compile "$LINENO"
10783then :
10784  xorg_cv_cc_flag_unused_command_line_argument=yes
10785else case e in #(
10786  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10787esac
10788fi
10789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10790esac
10791fi
10792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10793printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10794	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10795	CFLAGS="$xorg_testset_save_CFLAGS"
10796fi
10797
10798found="no"
10799
10800	if test $found = "no" ; then
10801		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10802			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10803		fi
10804
10805		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10806			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10807		fi
10808
10809		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10810
10811		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10812printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10813		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10814		if eval test \${$cacheid+y}
10815then :
10816  printf %s "(cached) " >&6
10817else case e in #(
10818  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10819/* end confdefs.h.  */
10820int i;
10821int
10822main (void)
10823{
10824
10825  ;
10826  return 0;
10827}
10828_ACEOF
10829if ac_fn_c_try_link "$LINENO"
10830then :
10831  eval $cacheid=yes
10832else case e in #(
10833  e) eval $cacheid=no ;;
10834esac
10835fi
10836rm -f core conftest.err conftest.$ac_objext conftest.beam \
10837    conftest$ac_exeext conftest.$ac_ext ;;
10838esac
10839fi
10840
10841
10842		CFLAGS="$xorg_testset_save_CFLAGS"
10843
10844		eval supported=\$$cacheid
10845		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10846printf "%s\n" "$supported" >&6; }
10847		if test "$supported" = "yes" ; then
10848			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10849			found="yes"
10850		fi
10851	fi
10852
10853
10854fi
10855
10856
10857
10858
10859
10860
10861
10862		CWARNFLAGS="$BASE_CFLAGS"
10863		if  test "x$GCC" = xyes ; then
10864		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10865		fi
10866
10867
10868
10869
10870
10871
10872
10873
10874# Check whether --enable-strict-compilation was given.
10875if test ${enable_strict_compilation+y}
10876then :
10877  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10878else case e in #(
10879  e) STRICT_COMPILE=no ;;
10880esac
10881fi
10882
10883
10884
10885
10886
10887
10888STRICT_CFLAGS=""
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902xorg_testset_save_CFLAGS="$CFLAGS"
10903
10904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10905	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10906	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10907printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10908if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10909then :
10910  printf %s "(cached) " >&6
10911else case e in #(
10912  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913/* end confdefs.h.  */
10914int i;
10915_ACEOF
10916if ac_fn_c_try_compile "$LINENO"
10917then :
10918  xorg_cv_cc_flag_unknown_warning_option=yes
10919else case e in #(
10920  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10921esac
10922fi
10923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10924esac
10925fi
10926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10927printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10928	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10929	CFLAGS="$xorg_testset_save_CFLAGS"
10930fi
10931
10932if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10933	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10934		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10935	fi
10936	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10937	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10938printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10939if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10940then :
10941  printf %s "(cached) " >&6
10942else case e in #(
10943  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944/* end confdefs.h.  */
10945int i;
10946_ACEOF
10947if ac_fn_c_try_compile "$LINENO"
10948then :
10949  xorg_cv_cc_flag_unused_command_line_argument=yes
10950else case e in #(
10951  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10952esac
10953fi
10954rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10955esac
10956fi
10957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10958printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10959	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10960	CFLAGS="$xorg_testset_save_CFLAGS"
10961fi
10962
10963found="no"
10964
10965	if test $found = "no" ; then
10966		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10967			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10968		fi
10969
10970		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10971			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10972		fi
10973
10974		CFLAGS="$CFLAGS -pedantic"
10975
10976		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10977printf %s "checking if $CC supports -pedantic... " >&6; }
10978		cacheid=xorg_cv_cc_flag__pedantic
10979		if eval test \${$cacheid+y}
10980then :
10981  printf %s "(cached) " >&6
10982else case e in #(
10983  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984/* end confdefs.h.  */
10985int i;
10986int
10987main (void)
10988{
10989
10990  ;
10991  return 0;
10992}
10993_ACEOF
10994if ac_fn_c_try_link "$LINENO"
10995then :
10996  eval $cacheid=yes
10997else case e in #(
10998  e) eval $cacheid=no ;;
10999esac
11000fi
11001rm -f core conftest.err conftest.$ac_objext conftest.beam \
11002    conftest$ac_exeext conftest.$ac_ext ;;
11003esac
11004fi
11005
11006
11007		CFLAGS="$xorg_testset_save_CFLAGS"
11008
11009		eval supported=\$$cacheid
11010		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11011printf "%s\n" "$supported" >&6; }
11012		if test "$supported" = "yes" ; then
11013			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11014			found="yes"
11015		fi
11016	fi
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032xorg_testset_save_CFLAGS="$CFLAGS"
11033
11034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11035	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11036	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11037printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11038if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11039then :
11040  printf %s "(cached) " >&6
11041else case e in #(
11042  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043/* end confdefs.h.  */
11044int i;
11045_ACEOF
11046if ac_fn_c_try_compile "$LINENO"
11047then :
11048  xorg_cv_cc_flag_unknown_warning_option=yes
11049else case e in #(
11050  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11051esac
11052fi
11053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11054esac
11055fi
11056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11057printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11058	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11059	CFLAGS="$xorg_testset_save_CFLAGS"
11060fi
11061
11062if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11063	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11064		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11065	fi
11066	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11067	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11068printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11069if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11070then :
11071  printf %s "(cached) " >&6
11072else case e in #(
11073  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11074/* end confdefs.h.  */
11075int i;
11076_ACEOF
11077if ac_fn_c_try_compile "$LINENO"
11078then :
11079  xorg_cv_cc_flag_unused_command_line_argument=yes
11080else case e in #(
11081  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11082esac
11083fi
11084rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11085esac
11086fi
11087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11088printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11089	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11090	CFLAGS="$xorg_testset_save_CFLAGS"
11091fi
11092
11093found="no"
11094
11095	if test $found = "no" ; then
11096		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11097			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11098		fi
11099
11100		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11101			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11102		fi
11103
11104		CFLAGS="$CFLAGS -Werror"
11105
11106		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11107printf %s "checking if $CC supports -Werror... " >&6; }
11108		cacheid=xorg_cv_cc_flag__Werror
11109		if eval test \${$cacheid+y}
11110then :
11111  printf %s "(cached) " >&6
11112else case e in #(
11113  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11114/* end confdefs.h.  */
11115int i;
11116int
11117main (void)
11118{
11119
11120  ;
11121  return 0;
11122}
11123_ACEOF
11124if ac_fn_c_try_link "$LINENO"
11125then :
11126  eval $cacheid=yes
11127else case e in #(
11128  e) eval $cacheid=no ;;
11129esac
11130fi
11131rm -f core conftest.err conftest.$ac_objext conftest.beam \
11132    conftest$ac_exeext conftest.$ac_ext ;;
11133esac
11134fi
11135
11136
11137		CFLAGS="$xorg_testset_save_CFLAGS"
11138
11139		eval supported=\$$cacheid
11140		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11141printf "%s\n" "$supported" >&6; }
11142		if test "$supported" = "yes" ; then
11143			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11144			found="yes"
11145		fi
11146	fi
11147
11148	if test $found = "no" ; then
11149		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11150			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11151		fi
11152
11153		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11154			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11155		fi
11156
11157		CFLAGS="$CFLAGS -errwarn"
11158
11159		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11160printf %s "checking if $CC supports -errwarn... " >&6; }
11161		cacheid=xorg_cv_cc_flag__errwarn
11162		if eval test \${$cacheid+y}
11163then :
11164  printf %s "(cached) " >&6
11165else case e in #(
11166  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11167/* end confdefs.h.  */
11168int i;
11169int
11170main (void)
11171{
11172
11173  ;
11174  return 0;
11175}
11176_ACEOF
11177if ac_fn_c_try_link "$LINENO"
11178then :
11179  eval $cacheid=yes
11180else case e in #(
11181  e) eval $cacheid=no ;;
11182esac
11183fi
11184rm -f core conftest.err conftest.$ac_objext conftest.beam \
11185    conftest$ac_exeext conftest.$ac_ext ;;
11186esac
11187fi
11188
11189
11190		CFLAGS="$xorg_testset_save_CFLAGS"
11191
11192		eval supported=\$$cacheid
11193		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11194printf "%s\n" "$supported" >&6; }
11195		if test "$supported" = "yes" ; then
11196			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11197			found="yes"
11198		fi
11199	fi
11200
11201
11202
11203# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11204# activate it with -Werror, so we add it here explicitly.
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218xorg_testset_save_CFLAGS="$CFLAGS"
11219
11220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11221	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11222	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11223printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11224if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11225then :
11226  printf %s "(cached) " >&6
11227else case e in #(
11228  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11229/* end confdefs.h.  */
11230int i;
11231_ACEOF
11232if ac_fn_c_try_compile "$LINENO"
11233then :
11234  xorg_cv_cc_flag_unknown_warning_option=yes
11235else case e in #(
11236  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11237esac
11238fi
11239rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11240esac
11241fi
11242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11243printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11244	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11245	CFLAGS="$xorg_testset_save_CFLAGS"
11246fi
11247
11248if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11249	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11250		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11251	fi
11252	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11253	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11254printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11255if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11256then :
11257  printf %s "(cached) " >&6
11258else case e in #(
11259  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260/* end confdefs.h.  */
11261int i;
11262_ACEOF
11263if ac_fn_c_try_compile "$LINENO"
11264then :
11265  xorg_cv_cc_flag_unused_command_line_argument=yes
11266else case e in #(
11267  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11268esac
11269fi
11270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11271esac
11272fi
11273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11274printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11275	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11276	CFLAGS="$xorg_testset_save_CFLAGS"
11277fi
11278
11279found="no"
11280
11281	if test $found = "no" ; then
11282		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11283			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11284		fi
11285
11286		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11287			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11288		fi
11289
11290		CFLAGS="$CFLAGS -Werror=attributes"
11291
11292		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11293printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11294		cacheid=xorg_cv_cc_flag__Werror_attributes
11295		if eval test \${$cacheid+y}
11296then :
11297  printf %s "(cached) " >&6
11298else case e in #(
11299  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300/* end confdefs.h.  */
11301int i;
11302int
11303main (void)
11304{
11305
11306  ;
11307  return 0;
11308}
11309_ACEOF
11310if ac_fn_c_try_link "$LINENO"
11311then :
11312  eval $cacheid=yes
11313else case e in #(
11314  e) eval $cacheid=no ;;
11315esac
11316fi
11317rm -f core conftest.err conftest.$ac_objext conftest.beam \
11318    conftest$ac_exeext conftest.$ac_ext ;;
11319esac
11320fi
11321
11322
11323		CFLAGS="$xorg_testset_save_CFLAGS"
11324
11325		eval supported=\$$cacheid
11326		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11327printf "%s\n" "$supported" >&6; }
11328		if test "$supported" = "yes" ; then
11329			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11330			found="yes"
11331		fi
11332	fi
11333
11334
11335
11336if test "x$STRICT_COMPILE" = "xyes"; then
11337    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11338    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11339fi
11340
11341
11342
11343
11344
11345
11346
11347
11348cat >>confdefs.h <<_ACEOF
11349#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11350_ACEOF
11351
11352	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11353	if test "x$PVM" = "x"; then
11354		PVM="0"
11355	fi
11356
11357printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11358
11359	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11360	if test "x$PVP" = "x"; then
11361		PVP="0"
11362	fi
11363
11364printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11365
11366
11367
11368CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11369mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11370|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11371touch \$(top_srcdir)/ChangeLog; \
11372echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11373
11374
11375
11376
11377macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11378INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11379mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11380|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11381touch \$(top_srcdir)/INSTALL; \
11382echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11383
11384
11385
11386
11387
11388
11389case $host_os in
11390    solaris*)
11391        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11392        # check for a man page file found in later versions that use
11393        # traditional section numbers instead
11394        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11395printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11396if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11397then :
11398  printf %s "(cached) " >&6
11399else case e in #(
11400  e) test "$cross_compiling" = yes &&
11401  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11402if test -r "/usr/share/man/man7/attributes.7"; then
11403  ac_cv_file__usr_share_man_man7_attributes_7=yes
11404else
11405  ac_cv_file__usr_share_man_man7_attributes_7=no
11406fi ;;
11407esac
11408fi
11409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11410printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11411if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11412then :
11413  SYSV_MAN_SECTIONS=false
11414else case e in #(
11415  e) SYSV_MAN_SECTIONS=true ;;
11416esac
11417fi
11418
11419        ;;
11420    *) SYSV_MAN_SECTIONS=false ;;
11421esac
11422
11423if test x$APP_MAN_SUFFIX = x    ; then
11424    APP_MAN_SUFFIX=1
11425fi
11426if test x$APP_MAN_DIR = x    ; then
11427    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11428fi
11429
11430if test x$LIB_MAN_SUFFIX = x    ; then
11431    LIB_MAN_SUFFIX=3
11432fi
11433if test x$LIB_MAN_DIR = x    ; then
11434    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11435fi
11436
11437if test x$FILE_MAN_SUFFIX = x    ; then
11438    case $SYSV_MAN_SECTIONS in
11439	true)				FILE_MAN_SUFFIX=4  ;;
11440	*)				FILE_MAN_SUFFIX=5  ;;
11441    esac
11442fi
11443if test x$FILE_MAN_DIR = x    ; then
11444    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11445fi
11446
11447if test x$MISC_MAN_SUFFIX = x    ; then
11448    case $SYSV_MAN_SECTIONS in
11449	true)				MISC_MAN_SUFFIX=5  ;;
11450	*)				MISC_MAN_SUFFIX=7  ;;
11451    esac
11452fi
11453if test x$MISC_MAN_DIR = x    ; then
11454    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11455fi
11456
11457if test x$DRIVER_MAN_SUFFIX = x    ; then
11458    case $SYSV_MAN_SECTIONS in
11459	true)				DRIVER_MAN_SUFFIX=7  ;;
11460	*)				DRIVER_MAN_SUFFIX=4  ;;
11461    esac
11462fi
11463if test x$DRIVER_MAN_DIR = x    ; then
11464    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11465fi
11466
11467if test x$ADMIN_MAN_SUFFIX = x    ; then
11468    case $SYSV_MAN_SECTIONS in
11469	true)				ADMIN_MAN_SUFFIX=1m ;;
11470	*)				ADMIN_MAN_SUFFIX=8  ;;
11471    esac
11472fi
11473if test x$ADMIN_MAN_DIR = x    ; then
11474    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11475fi
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491XORG_MAN_PAGE="X Version 11"
11492
11493MAN_SUBSTS="\
11494	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11495	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11496	-e 's|__xservername__|Xorg|g' \
11497	-e 's|__xconfigfile__|xorg.conf|g' \
11498	-e 's|__projectroot__|\$(prefix)|g' \
11499	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11500	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11501	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11502	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11503	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11504	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11505	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11506
11507
11508
11509
11510AM_DEFAULT_VERBOSITY=0
11511
11512
11513
11514# Checks for library functions.
11515ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
11516if test "x$ac_cv_func_strlcat" = xyes
11517then :
11518  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
11519
11520fi
11521ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
11522if test "x$ac_cv_func_strlcpy" = xyes
11523then :
11524  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
11525
11526fi
11527
11528
11529# Base set of required pkg-config packages
11530XLOGO_DEPS="sm xaw7 xmu xt >= 1.0 xext x11 xproto >= 7.0.22"
11531
11532# Ensure pkg-config is initialized, since first call to macros is conditional
11533
11534
11535
11536
11537
11538
11539
11540if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11541	if test -n "$ac_tool_prefix"; then
11542  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11543set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11545printf %s "checking for $ac_word... " >&6; }
11546if test ${ac_cv_path_PKG_CONFIG+y}
11547then :
11548  printf %s "(cached) " >&6
11549else case e in #(
11550  e) case $PKG_CONFIG in
11551  [\\/]* | ?:[\\/]*)
11552  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11553  ;;
11554  *)
11555  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556for as_dir in $PATH
11557do
11558  IFS=$as_save_IFS
11559  case $as_dir in #(((
11560    '') as_dir=./ ;;
11561    */) ;;
11562    *) as_dir=$as_dir/ ;;
11563  esac
11564    for ac_exec_ext in '' $ac_executable_extensions; do
11565  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11566    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
11567    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11568    break 2
11569  fi
11570done
11571  done
11572IFS=$as_save_IFS
11573
11574  ;;
11575esac ;;
11576esac
11577fi
11578PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11579if test -n "$PKG_CONFIG"; then
11580  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11581printf "%s\n" "$PKG_CONFIG" >&6; }
11582else
11583  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11584printf "%s\n" "no" >&6; }
11585fi
11586
11587
11588fi
11589if test -z "$ac_cv_path_PKG_CONFIG"; then
11590  ac_pt_PKG_CONFIG=$PKG_CONFIG
11591  # Extract the first word of "pkg-config", so it can be a program name with args.
11592set dummy pkg-config; ac_word=$2
11593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11594printf %s "checking for $ac_word... " >&6; }
11595if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
11596then :
11597  printf %s "(cached) " >&6
11598else case e in #(
11599  e) case $ac_pt_PKG_CONFIG in
11600  [\\/]* | ?:[\\/]*)
11601  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11602  ;;
11603  *)
11604  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11605for as_dir in $PATH
11606do
11607  IFS=$as_save_IFS
11608  case $as_dir in #(((
11609    '') as_dir=./ ;;
11610    */) ;;
11611    *) as_dir=$as_dir/ ;;
11612  esac
11613    for ac_exec_ext in '' $ac_executable_extensions; do
11614  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11615    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
11616    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11617    break 2
11618  fi
11619done
11620  done
11621IFS=$as_save_IFS
11622
11623  ;;
11624esac ;;
11625esac
11626fi
11627ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11628if test -n "$ac_pt_PKG_CONFIG"; then
11629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11630printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
11631else
11632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11633printf "%s\n" "no" >&6; }
11634fi
11635
11636  if test "x$ac_pt_PKG_CONFIG" = x; then
11637    PKG_CONFIG=""
11638  else
11639    case $cross_compiling:$ac_tool_warned in
11640yes:)
11641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11642printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11643ac_tool_warned=yes ;;
11644esac
11645    PKG_CONFIG=$ac_pt_PKG_CONFIG
11646  fi
11647else
11648  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11649fi
11650
11651fi
11652if test -n "$PKG_CONFIG"; then
11653	_pkg_min_version=0.9.0
11654	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11655printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11656	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11657		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11658printf "%s\n" "yes" >&6; }
11659	else
11660		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661printf "%s\n" "no" >&6; }
11662		PKG_CONFIG=""
11663	fi
11664fi
11665
11666# Use render & xft2 to draw logo?
11667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use render & xft2 to draw logo" >&5
11668printf %s "checking whether to use render & xft2 to draw logo... " >&6; }
11669
11670# Check whether --with-render was given.
11671if test ${with_render+y}
11672then :
11673  withval=$with_render; USE_RENDER="$withval"
11674else case e in #(
11675  e) USE_RENDER="try" ;;
11676esac
11677fi
11678
11679
11680if test "x$USE_RENDER" = "xtry" ; then
11681	if test -n "$PKG_CONFIG" && \
11682    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender xft\""; } >&5
11683  ($PKG_CONFIG --exists --print-errors "xrender xft") 2>&5
11684  ac_status=$?
11685  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11686  test $ac_status = 0; }; then
11687  USE_RENDER="yes"
11688else
11689  USE_RENDER="no"
11690fi
11691fi
11692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_RENDER" >&5
11693printf "%s\n" "$USE_RENDER" >&6; }
11694
11695if test "x$USE_RENDER" = "xyes" ; then
11696	XLOGO_DEPS="xft xrender $XLOGO_DEPS"
11697
11698
11699printf "%s\n" "#define XRENDER 1" >>confdefs.h
11700
11701fi
11702 if test "x$USE_RENDER" = "xyes"; then
11703  USE_RENDER_TRUE=
11704  USE_RENDER_FALSE='#'
11705else
11706  USE_RENDER_TRUE='#'
11707  USE_RENDER_FALSE=
11708fi
11709
11710
11711# Use XKB to ring the bell?
11712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use XkbStdBell" >&5
11713printf %s "checking whether to use XkbStdBell... " >&6; }
11714
11715# Check whether --with-xkb was given.
11716if test ${with_xkb+y}
11717then :
11718  withval=$with_xkb; USE_XKB="$withval"
11719else case e in #(
11720  e) USE_XKB="try" ;;
11721esac
11722fi
11723
11724
11725if test "x$USE_XKB" = "xtry" ; then
11726	if test -n "$PKG_CONFIG" && \
11727    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile\""; } >&5
11728  ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5
11729  ac_status=$?
11730  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11731  test $ac_status = 0; }; then
11732  USE_XKB="yes"
11733else
11734  USE_XKB="no"
11735fi
11736fi
11737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_XKB" >&5
11738printf "%s\n" "$USE_XKB" >&6; }
11739
11740if test "x$USE_XKB" = "xyes" ; then
11741	XLOGO_DEPS="xkbfile $XLOGO_DEPS"
11742
11743
11744printf "%s\n" "#define XKB 1" >>confdefs.h
11745
11746fi
11747
11748
11749pkg_failed=no
11750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLOGO" >&5
11751printf %s "checking for XLOGO... " >&6; }
11752
11753if test -n "$XLOGO_CFLAGS"; then
11754    pkg_cv_XLOGO_CFLAGS="$XLOGO_CFLAGS"
11755 elif test -n "$PKG_CONFIG"; then
11756    if test -n "$PKG_CONFIG" && \
11757    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XLOGO_DEPS\""; } >&5
11758  ($PKG_CONFIG --exists --print-errors "$XLOGO_DEPS") 2>&5
11759  ac_status=$?
11760  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11761  test $ac_status = 0; }; then
11762  pkg_cv_XLOGO_CFLAGS=`$PKG_CONFIG --cflags "$XLOGO_DEPS" 2>/dev/null`
11763		      test "x$?" != "x0" && pkg_failed=yes
11764else
11765  pkg_failed=yes
11766fi
11767 else
11768    pkg_failed=untried
11769fi
11770if test -n "$XLOGO_LIBS"; then
11771    pkg_cv_XLOGO_LIBS="$XLOGO_LIBS"
11772 elif test -n "$PKG_CONFIG"; then
11773    if test -n "$PKG_CONFIG" && \
11774    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XLOGO_DEPS\""; } >&5
11775  ($PKG_CONFIG --exists --print-errors "$XLOGO_DEPS") 2>&5
11776  ac_status=$?
11777  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11778  test $ac_status = 0; }; then
11779  pkg_cv_XLOGO_LIBS=`$PKG_CONFIG --libs "$XLOGO_DEPS" 2>/dev/null`
11780		      test "x$?" != "x0" && pkg_failed=yes
11781else
11782  pkg_failed=yes
11783fi
11784 else
11785    pkg_failed=untried
11786fi
11787
11788
11789
11790if test $pkg_failed = yes; then
11791   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11792printf "%s\n" "no" >&6; }
11793
11794if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11795        _pkg_short_errors_supported=yes
11796else
11797        _pkg_short_errors_supported=no
11798fi
11799        if test $_pkg_short_errors_supported = yes; then
11800	        XLOGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XLOGO_DEPS" 2>&1`
11801        else
11802	        XLOGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XLOGO_DEPS" 2>&1`
11803        fi
11804	# Put the nasty error message in config.log where it belongs
11805	echo "$XLOGO_PKG_ERRORS" >&5
11806
11807	as_fn_error $? "Package requirements ($XLOGO_DEPS) were not met:
11808
11809$XLOGO_PKG_ERRORS
11810
11811Consider adjusting the PKG_CONFIG_PATH environment variable if you
11812installed software in a non-standard prefix.
11813
11814Alternatively, you may set the environment variables XLOGO_CFLAGS
11815and XLOGO_LIBS to avoid the need to call pkg-config.
11816See the pkg-config man page for more details." "$LINENO" 5
11817elif test $pkg_failed = untried; then
11818     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819printf "%s\n" "no" >&6; }
11820	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11821printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11822as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11823is in your PATH or set the PKG_CONFIG environment variable to the full
11824path to pkg-config.
11825
11826Alternatively, you may set the environment variables XLOGO_CFLAGS
11827and XLOGO_LIBS to avoid the need to call pkg-config.
11828See the pkg-config man page for more details.
11829
11830To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11831See 'config.log' for more details" "$LINENO" 5; }
11832else
11833	XLOGO_CFLAGS=$pkg_cv_XLOGO_CFLAGS
11834	XLOGO_LIBS=$pkg_cv_XLOGO_LIBS
11835        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11836printf "%s\n" "yes" >&6; }
11837
11838fi
11839
11840
11841pkg_failed=no
11842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11843printf %s "checking for APPDEFS... " >&6; }
11844
11845if test -n "$APPDEFS_CFLAGS"; then
11846    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11847 elif test -n "$PKG_CONFIG"; then
11848    if test -n "$PKG_CONFIG" && \
11849    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11850  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11851  ac_status=$?
11852  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11853  test $ac_status = 0; }; then
11854  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11855		      test "x$?" != "x0" && pkg_failed=yes
11856else
11857  pkg_failed=yes
11858fi
11859 else
11860    pkg_failed=untried
11861fi
11862if test -n "$APPDEFS_LIBS"; then
11863    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11864 elif test -n "$PKG_CONFIG"; then
11865    if test -n "$PKG_CONFIG" && \
11866    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11867  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11868  ac_status=$?
11869  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11870  test $ac_status = 0; }; then
11871  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11872		      test "x$?" != "x0" && pkg_failed=yes
11873else
11874  pkg_failed=yes
11875fi
11876 else
11877    pkg_failed=untried
11878fi
11879
11880
11881
11882if test $pkg_failed = yes; then
11883   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884printf "%s\n" "no" >&6; }
11885
11886if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11887        _pkg_short_errors_supported=yes
11888else
11889        _pkg_short_errors_supported=no
11890fi
11891        if test $_pkg_short_errors_supported = yes; then
11892	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11893        else
11894	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11895        fi
11896	# Put the nasty error message in config.log where it belongs
11897	echo "$APPDEFS_PKG_ERRORS" >&5
11898
11899	as_fn_error $? "Package requirements (xt) were not met:
11900
11901$APPDEFS_PKG_ERRORS
11902
11903Consider adjusting the PKG_CONFIG_PATH environment variable if you
11904installed software in a non-standard prefix.
11905
11906Alternatively, you may set the environment variables APPDEFS_CFLAGS
11907and APPDEFS_LIBS to avoid the need to call pkg-config.
11908See the pkg-config man page for more details." "$LINENO" 5
11909elif test $pkg_failed = untried; then
11910     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11911printf "%s\n" "no" >&6; }
11912	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11913printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11914as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11915is in your PATH or set the PKG_CONFIG environment variable to the full
11916path to pkg-config.
11917
11918Alternatively, you may set the environment variables APPDEFS_CFLAGS
11919and APPDEFS_LIBS to avoid the need to call pkg-config.
11920See the pkg-config man page for more details.
11921
11922To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11923See 'config.log' for more details" "$LINENO" 5; }
11924else
11925	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11926	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11927        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11928printf "%s\n" "yes" >&6; }
11929
11930fi
11931xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11932
11933# Check whether --with-appdefaultdir was given.
11934if test ${with_appdefaultdir+y}
11935then :
11936  withval=$with_appdefaultdir; appdefaultdir="$withval"
11937else case e in #(
11938  e) appdefaultdir="${xt_appdefaultdir}" ;;
11939esac
11940fi
11941
11942
11943
11944ac_config_files="$ac_config_files Makefile man/Makefile"
11945
11946cat >confcache <<\_ACEOF
11947# This file is a shell script that caches the results of configure
11948# tests run on this system so they can be shared between configure
11949# scripts and configure runs, see configure's option --config-cache.
11950# It is not useful on other systems.  If it contains results you don't
11951# want to keep, you may remove or edit it.
11952#
11953# config.status only pays attention to the cache file if you give it
11954# the --recheck option to rerun configure.
11955#
11956# 'ac_cv_env_foo' variables (set or unset) will be overridden when
11957# loading this file, other *unset* 'ac_cv_foo' will be assigned the
11958# following values.
11959
11960_ACEOF
11961
11962# The following way of writing the cache mishandles newlines in values,
11963# but we know of no workaround that is simple, portable, and efficient.
11964# So, we kill variables containing newlines.
11965# Ultrix sh set writes to stderr and can't be redirected directly,
11966# and sets the high bit in the cache file unless we assign to the vars.
11967(
11968  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11969    eval ac_val=\$$ac_var
11970    case $ac_val in #(
11971    *${as_nl}*)
11972      case $ac_var in #(
11973      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11974printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11975      esac
11976      case $ac_var in #(
11977      _ | IFS | as_nl) ;; #(
11978      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11979      *) { eval $ac_var=; unset $ac_var;} ;;
11980      esac ;;
11981    esac
11982  done
11983
11984  (set) 2>&1 |
11985    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11986    *${as_nl}ac_space=\ *)
11987      # 'set' does not quote correctly, so add quotes: double-quote
11988      # substitution turns \\\\ into \\, and sed turns \\ into \.
11989      sed -n \
11990	"s/'/'\\\\''/g;
11991	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11992      ;; #(
11993    *)
11994      # 'set' quotes correctly as required by POSIX, so do not add quotes.
11995      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11996      ;;
11997    esac |
11998    sort
11999) |
12000  sed '
12001     /^ac_cv_env_/b end
12002     t clear
12003     :clear
12004     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12005     t end
12006     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12007     :end' >>confcache
12008if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12009  if test -w "$cache_file"; then
12010    if test "x$cache_file" != "x/dev/null"; then
12011      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12012printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12013      if test ! -f "$cache_file" || test -h "$cache_file"; then
12014	cat confcache >"$cache_file"
12015      else
12016        case $cache_file in #(
12017        */* | ?:*)
12018	  mv -f confcache "$cache_file"$$ &&
12019	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12020        *)
12021	  mv -f confcache "$cache_file" ;;
12022	esac
12023      fi
12024    fi
12025  else
12026    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12027printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12028  fi
12029fi
12030rm -f confcache
12031
12032test "x$prefix" = xNONE && prefix=$ac_default_prefix
12033# Let make expand exec_prefix.
12034test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12035
12036DEFS=-DHAVE_CONFIG_H
12037
12038ac_libobjs=
12039ac_ltlibobjs=
12040U=
12041for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12042  # 1. Remove the extension, and $U if already installed.
12043  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12044  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12045  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12046  #    will be set to the directory where LIBOBJS objects are built.
12047  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12048  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12049done
12050LIBOBJS=$ac_libobjs
12051
12052LTLIBOBJS=$ac_ltlibobjs
12053
12054
12055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12056printf %s "checking that generated files are newer than configure... " >&6; }
12057   if test -n "$am_sleep_pid"; then
12058     # Hide warnings about reused PIDs.
12059     wait $am_sleep_pid 2>/dev/null
12060   fi
12061   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12062printf "%s\n" "done" >&6; }
12063case $enable_silent_rules in # (((
12064  yes) AM_DEFAULT_VERBOSITY=0;;
12065   no) AM_DEFAULT_VERBOSITY=1;;
12066esac
12067if test $am_cv_make_support_nested_variables = yes; then
12068    AM_V='$(V)'
12069  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12070else
12071  AM_V=$AM_DEFAULT_VERBOSITY
12072  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12073fi
12074
12075 if test -n "$EXEEXT"; then
12076  am__EXEEXT_TRUE=
12077  am__EXEEXT_FALSE='#'
12078else
12079  am__EXEEXT_TRUE='#'
12080  am__EXEEXT_FALSE=
12081fi
12082
12083if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12084  as_fn_error $? "conditional \"AMDEP\" was never defined.
12085Usually this means the macro was only invoked conditionally." "$LINENO" 5
12086fi
12087if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12088  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12089Usually this means the macro was only invoked conditionally." "$LINENO" 5
12090fi
12091if test -z "${USE_RENDER_TRUE}" && test -z "${USE_RENDER_FALSE}"; then
12092  as_fn_error $? "conditional \"USE_RENDER\" was never defined.
12093Usually this means the macro was only invoked conditionally." "$LINENO" 5
12094fi
12095
12096: "${CONFIG_STATUS=./config.status}"
12097ac_write_fail=0
12098ac_clean_files_save=$ac_clean_files
12099ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12101printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12102as_write_fail=0
12103cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12104#! $SHELL
12105# Generated by $as_me.
12106# Run this file to recreate the current configuration.
12107# Compiler output produced by configure, useful for debugging
12108# configure, is in config.log if it exists.
12109
12110debug=false
12111ac_cs_recheck=false
12112ac_cs_silent=false
12113
12114SHELL=\${CONFIG_SHELL-$SHELL}
12115export SHELL
12116_ASEOF
12117cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12118## -------------------- ##
12119## M4sh Initialization. ##
12120## -------------------- ##
12121
12122# Be more Bourne compatible
12123DUALCASE=1; export DUALCASE # for MKS sh
12124if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12125then :
12126  emulate sh
12127  NULLCMD=:
12128  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12129  # is contrary to our usage.  Disable this feature.
12130  alias -g '${1+"$@"}'='"$@"'
12131  setopt NO_GLOB_SUBST
12132else case e in #(
12133  e) case `(set -o) 2>/dev/null` in #(
12134  *posix*) :
12135    set -o posix ;; #(
12136  *) :
12137     ;;
12138esac ;;
12139esac
12140fi
12141
12142
12143
12144# Reset variables that may have inherited troublesome values from
12145# the environment.
12146
12147# IFS needs to be set, to space, tab, and newline, in precisely that order.
12148# (If _AS_PATH_WALK were called with IFS unset, it would have the
12149# side effect of setting IFS to empty, thus disabling word splitting.)
12150# Quoting is to prevent editors from complaining about space-tab.
12151as_nl='
12152'
12153export as_nl
12154IFS=" ""	$as_nl"
12155
12156PS1='$ '
12157PS2='> '
12158PS4='+ '
12159
12160# Ensure predictable behavior from utilities with locale-dependent output.
12161LC_ALL=C
12162export LC_ALL
12163LANGUAGE=C
12164export LANGUAGE
12165
12166# We cannot yet rely on "unset" to work, but we need these variables
12167# to be unset--not just set to an empty or harmless value--now, to
12168# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12169# also avoids known problems related to "unset" and subshell syntax
12170# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12171for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12172do eval test \${$as_var+y} \
12173  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12174done
12175
12176# Ensure that fds 0, 1, and 2 are open.
12177if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12178if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12179if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12180
12181# The user is always right.
12182if ${PATH_SEPARATOR+false} :; then
12183  PATH_SEPARATOR=:
12184  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12185    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12186      PATH_SEPARATOR=';'
12187  }
12188fi
12189
12190
12191# Find who we are.  Look in the path if we contain no directory separator.
12192as_myself=
12193case $0 in #((
12194  *[\\/]* ) as_myself=$0 ;;
12195  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196for as_dir in $PATH
12197do
12198  IFS=$as_save_IFS
12199  case $as_dir in #(((
12200    '') as_dir=./ ;;
12201    */) ;;
12202    *) as_dir=$as_dir/ ;;
12203  esac
12204    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12205  done
12206IFS=$as_save_IFS
12207
12208     ;;
12209esac
12210# We did not find ourselves, most probably we were run as 'sh COMMAND'
12211# in which case we are not to be found in the path.
12212if test "x$as_myself" = x; then
12213  as_myself=$0
12214fi
12215if test ! -f "$as_myself"; then
12216  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12217  exit 1
12218fi
12219
12220
12221
12222# as_fn_error STATUS ERROR [LINENO LOG_FD]
12223# ----------------------------------------
12224# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12225# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12226# script with STATUS, using 1 if that was 0.
12227as_fn_error ()
12228{
12229  as_status=$1; test $as_status -eq 0 && as_status=1
12230  if test "$4"; then
12231    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12232    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12233  fi
12234  printf "%s\n" "$as_me: error: $2" >&2
12235  as_fn_exit $as_status
12236} # as_fn_error
12237
12238
12239# as_fn_set_status STATUS
12240# -----------------------
12241# Set $? to STATUS, without forking.
12242as_fn_set_status ()
12243{
12244  return $1
12245} # as_fn_set_status
12246
12247# as_fn_exit STATUS
12248# -----------------
12249# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12250as_fn_exit ()
12251{
12252  set +e
12253  as_fn_set_status $1
12254  exit $1
12255} # as_fn_exit
12256
12257# as_fn_unset VAR
12258# ---------------
12259# Portably unset VAR.
12260as_fn_unset ()
12261{
12262  { eval $1=; unset $1;}
12263}
12264as_unset=as_fn_unset
12265
12266# as_fn_append VAR VALUE
12267# ----------------------
12268# Append the text in VALUE to the end of the definition contained in VAR. Take
12269# advantage of any shell optimizations that allow amortized linear growth over
12270# repeated appends, instead of the typical quadratic growth present in naive
12271# implementations.
12272if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12273then :
12274  eval 'as_fn_append ()
12275  {
12276    eval $1+=\$2
12277  }'
12278else case e in #(
12279  e) as_fn_append ()
12280  {
12281    eval $1=\$$1\$2
12282  } ;;
12283esac
12284fi # as_fn_append
12285
12286# as_fn_arith ARG...
12287# ------------------
12288# Perform arithmetic evaluation on the ARGs, and store the result in the
12289# global $as_val. Take advantage of shells that can avoid forks. The arguments
12290# must be portable across $(()) and expr.
12291if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12292then :
12293  eval 'as_fn_arith ()
12294  {
12295    as_val=$(( $* ))
12296  }'
12297else case e in #(
12298  e) as_fn_arith ()
12299  {
12300    as_val=`expr "$@" || test $? -eq 1`
12301  } ;;
12302esac
12303fi # as_fn_arith
12304
12305
12306if expr a : '\(a\)' >/dev/null 2>&1 &&
12307   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12308  as_expr=expr
12309else
12310  as_expr=false
12311fi
12312
12313if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12314  as_basename=basename
12315else
12316  as_basename=false
12317fi
12318
12319if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12320  as_dirname=dirname
12321else
12322  as_dirname=false
12323fi
12324
12325as_me=`$as_basename -- "$0" ||
12326$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12327	 X"$0" : 'X\(//\)$' \| \
12328	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12329printf "%s\n" X/"$0" |
12330    sed '/^.*\/\([^/][^/]*\)\/*$/{
12331	    s//\1/
12332	    q
12333	  }
12334	  /^X\/\(\/\/\)$/{
12335	    s//\1/
12336	    q
12337	  }
12338	  /^X\/\(\/\).*/{
12339	    s//\1/
12340	    q
12341	  }
12342	  s/.*/./; q'`
12343
12344# Avoid depending upon Character Ranges.
12345as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12346as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12347as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12348as_cr_digits='0123456789'
12349as_cr_alnum=$as_cr_Letters$as_cr_digits
12350
12351
12352# Determine whether it's possible to make 'echo' print without a newline.
12353# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12354# for compatibility with existing Makefiles.
12355ECHO_C= ECHO_N= ECHO_T=
12356case `echo -n x` in #(((((
12357-n*)
12358  case `echo 'xy\c'` in
12359  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12360  xy)  ECHO_C='\c';;
12361  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12362       ECHO_T='	';;
12363  esac;;
12364*)
12365  ECHO_N='-n';;
12366esac
12367
12368# For backward compatibility with old third-party macros, we provide
12369# the shell variables $as_echo and $as_echo_n.  New code should use
12370# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12371as_echo='printf %s\n'
12372as_echo_n='printf %s'
12373
12374rm -f conf$$ conf$$.exe conf$$.file
12375if test -d conf$$.dir; then
12376  rm -f conf$$.dir/conf$$.file
12377else
12378  rm -f conf$$.dir
12379  mkdir conf$$.dir 2>/dev/null
12380fi
12381if (echo >conf$$.file) 2>/dev/null; then
12382  if ln -s conf$$.file conf$$ 2>/dev/null; then
12383    as_ln_s='ln -s'
12384    # ... but there are two gotchas:
12385    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12386    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12387    # In both cases, we have to default to 'cp -pR'.
12388    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12389      as_ln_s='cp -pR'
12390  elif ln conf$$.file conf$$ 2>/dev/null; then
12391    as_ln_s=ln
12392  else
12393    as_ln_s='cp -pR'
12394  fi
12395else
12396  as_ln_s='cp -pR'
12397fi
12398rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12399rmdir conf$$.dir 2>/dev/null
12400
12401
12402# as_fn_mkdir_p
12403# -------------
12404# Create "$as_dir" as a directory, including parents if necessary.
12405as_fn_mkdir_p ()
12406{
12407
12408  case $as_dir in #(
12409  -*) as_dir=./$as_dir;;
12410  esac
12411  test -d "$as_dir" || eval $as_mkdir_p || {
12412    as_dirs=
12413    while :; do
12414      case $as_dir in #(
12415      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12416      *) as_qdir=$as_dir;;
12417      esac
12418      as_dirs="'$as_qdir' $as_dirs"
12419      as_dir=`$as_dirname -- "$as_dir" ||
12420$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12421	 X"$as_dir" : 'X\(//\)[^/]' \| \
12422	 X"$as_dir" : 'X\(//\)$' \| \
12423	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12424printf "%s\n" X"$as_dir" |
12425    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12426	    s//\1/
12427	    q
12428	  }
12429	  /^X\(\/\/\)[^/].*/{
12430	    s//\1/
12431	    q
12432	  }
12433	  /^X\(\/\/\)$/{
12434	    s//\1/
12435	    q
12436	  }
12437	  /^X\(\/\).*/{
12438	    s//\1/
12439	    q
12440	  }
12441	  s/.*/./; q'`
12442      test -d "$as_dir" && break
12443    done
12444    test -z "$as_dirs" || eval "mkdir $as_dirs"
12445  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12446
12447
12448} # as_fn_mkdir_p
12449if mkdir -p . 2>/dev/null; then
12450  as_mkdir_p='mkdir -p "$as_dir"'
12451else
12452  test -d ./-p && rmdir ./-p
12453  as_mkdir_p=false
12454fi
12455
12456
12457# as_fn_executable_p FILE
12458# -----------------------
12459# Test if FILE is an executable regular file.
12460as_fn_executable_p ()
12461{
12462  test -f "$1" && test -x "$1"
12463} # as_fn_executable_p
12464as_test_x='test -x'
12465as_executable_p=as_fn_executable_p
12466
12467# Sed expression to map a string onto a valid CPP name.
12468as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12469as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12470
12471# Sed expression to map a string onto a valid variable name.
12472as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12473as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12474
12475
12476exec 6>&1
12477## ----------------------------------- ##
12478## Main body of $CONFIG_STATUS script. ##
12479## ----------------------------------- ##
12480_ASEOF
12481test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12482
12483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12484# Save the log message, to keep $0 and so on meaningful, and to
12485# report actual input values of CONFIG_FILES etc. instead of their
12486# values after options handling.
12487ac_log="
12488This file was extended by xlogo $as_me 1.0.7, which was
12489generated by GNU Autoconf 2.72.  Invocation command line was
12490
12491  CONFIG_FILES    = $CONFIG_FILES
12492  CONFIG_HEADERS  = $CONFIG_HEADERS
12493  CONFIG_LINKS    = $CONFIG_LINKS
12494  CONFIG_COMMANDS = $CONFIG_COMMANDS
12495  $ $0 $@
12496
12497on `(hostname || uname -n) 2>/dev/null | sed 1q`
12498"
12499
12500_ACEOF
12501
12502case $ac_config_files in *"
12503"*) set x $ac_config_files; shift; ac_config_files=$*;;
12504esac
12505
12506case $ac_config_headers in *"
12507"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12508esac
12509
12510
12511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12512# Files that config.status was made for.
12513config_files="$ac_config_files"
12514config_headers="$ac_config_headers"
12515config_commands="$ac_config_commands"
12516
12517_ACEOF
12518
12519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12520ac_cs_usage="\
12521'$as_me' instantiates files and other configuration actions
12522from templates according to the current configuration.  Unless the files
12523and actions are specified as TAGs, all are instantiated by default.
12524
12525Usage: $0 [OPTION]... [TAG]...
12526
12527  -h, --help       print this help, then exit
12528  -V, --version    print version number and configuration settings, then exit
12529      --config     print configuration, then exit
12530  -q, --quiet, --silent
12531                   do not print progress messages
12532  -d, --debug      don't remove temporary files
12533      --recheck    update $as_me by reconfiguring in the same conditions
12534      --file=FILE[:TEMPLATE]
12535                   instantiate the configuration file FILE
12536      --header=FILE[:TEMPLATE]
12537                   instantiate the configuration header FILE
12538
12539Configuration files:
12540$config_files
12541
12542Configuration headers:
12543$config_headers
12544
12545Configuration commands:
12546$config_commands
12547
12548Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/-/issues>."
12549
12550_ACEOF
12551ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12552ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12554ac_cs_config='$ac_cs_config_escaped'
12555ac_cs_version="\\
12556xlogo config.status 1.0.7
12557configured by $0, generated by GNU Autoconf 2.72,
12558  with options \\"\$ac_cs_config\\"
12559
12560Copyright (C) 2023 Free Software Foundation, Inc.
12561This config.status script is free software; the Free Software Foundation
12562gives unlimited permission to copy, distribute and modify it."
12563
12564ac_pwd='$ac_pwd'
12565srcdir='$srcdir'
12566INSTALL='$INSTALL'
12567MKDIR_P='$MKDIR_P'
12568AWK='$AWK'
12569test -n "\$AWK" || AWK=awk
12570_ACEOF
12571
12572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12573# The default lists apply if the user does not specify any file.
12574ac_need_defaults=:
12575while test $# != 0
12576do
12577  case $1 in
12578  --*=?*)
12579    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12580    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12581    ac_shift=:
12582    ;;
12583  --*=)
12584    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12585    ac_optarg=
12586    ac_shift=:
12587    ;;
12588  *)
12589    ac_option=$1
12590    ac_optarg=$2
12591    ac_shift=shift
12592    ;;
12593  esac
12594
12595  case $ac_option in
12596  # Handling of the options.
12597  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12598    ac_cs_recheck=: ;;
12599  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12600    printf "%s\n" "$ac_cs_version"; exit ;;
12601  --config | --confi | --conf | --con | --co | --c )
12602    printf "%s\n" "$ac_cs_config"; exit ;;
12603  --debug | --debu | --deb | --de | --d | -d )
12604    debug=: ;;
12605  --file | --fil | --fi | --f )
12606    $ac_shift
12607    case $ac_optarg in
12608    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12609    '') as_fn_error $? "missing file argument" ;;
12610    esac
12611    as_fn_append CONFIG_FILES " '$ac_optarg'"
12612    ac_need_defaults=false;;
12613  --header | --heade | --head | --hea )
12614    $ac_shift
12615    case $ac_optarg in
12616    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12617    esac
12618    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12619    ac_need_defaults=false;;
12620  --he | --h)
12621    # Conflict between --help and --header
12622    as_fn_error $? "ambiguous option: '$1'
12623Try '$0 --help' for more information.";;
12624  --help | --hel | -h )
12625    printf "%s\n" "$ac_cs_usage"; exit ;;
12626  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12627  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12628    ac_cs_silent=: ;;
12629
12630  # This is an error.
12631  -*) as_fn_error $? "unrecognized option: '$1'
12632Try '$0 --help' for more information." ;;
12633
12634  *) as_fn_append ac_config_targets " $1"
12635     ac_need_defaults=false ;;
12636
12637  esac
12638  shift
12639done
12640
12641ac_configure_extra_args=
12642
12643if $ac_cs_silent; then
12644  exec 6>/dev/null
12645  ac_configure_extra_args="$ac_configure_extra_args --silent"
12646fi
12647
12648_ACEOF
12649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12650if \$ac_cs_recheck; then
12651  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12652  shift
12653  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12654  CONFIG_SHELL='$SHELL'
12655  export CONFIG_SHELL
12656  exec "\$@"
12657fi
12658
12659_ACEOF
12660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12661exec 5>>config.log
12662{
12663  echo
12664  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12665## Running $as_me. ##
12666_ASBOX
12667  printf "%s\n" "$ac_log"
12668} >&5
12669
12670_ACEOF
12671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12672#
12673# INIT-COMMANDS
12674#
12675AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12676
12677_ACEOF
12678
12679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12680
12681# Handling of arguments.
12682for ac_config_target in $ac_config_targets
12683do
12684  case $ac_config_target in
12685    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12686    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12687    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12688    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12689
12690  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12691  esac
12692done
12693
12694
12695# If the user did not use the arguments to specify the items to instantiate,
12696# then the envvar interface is used.  Set only those that are not.
12697# We use the long form for the default assignment because of an extremely
12698# bizarre bug on SunOS 4.1.3.
12699if $ac_need_defaults; then
12700  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12701  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12702  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12703fi
12704
12705# Have a temporary directory for convenience.  Make it in the build tree
12706# simply because there is no reason against having it here, and in addition,
12707# creating and moving files from /tmp can sometimes cause problems.
12708# Hook for its removal unless debugging.
12709# Note that there is a small window in which the directory will not be cleaned:
12710# after its creation but before its name has been assigned to '$tmp'.
12711$debug ||
12712{
12713  tmp= ac_tmp=
12714  trap 'exit_status=$?
12715  : "${ac_tmp:=$tmp}"
12716  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12717' 0
12718  trap 'as_fn_exit 1' 1 2 13 15
12719}
12720# Create a (secure) tmp directory for tmp files.
12721
12722{
12723  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12724  test -d "$tmp"
12725}  ||
12726{
12727  tmp=./conf$$-$RANDOM
12728  (umask 077 && mkdir "$tmp")
12729} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12730ac_tmp=$tmp
12731
12732# Set up the scripts for CONFIG_FILES section.
12733# No need to generate them if there are no CONFIG_FILES.
12734# This happens for instance with './config.status config.h'.
12735if test -n "$CONFIG_FILES"; then
12736
12737
12738ac_cr=`echo X | tr X '\015'`
12739# On cygwin, bash can eat \r inside `` if the user requested igncr.
12740# But we know of no other shell where ac_cr would be empty at this
12741# point, so we can use a bashism as a fallback.
12742if test "x$ac_cr" = x; then
12743  eval ac_cr=\$\'\\r\'
12744fi
12745ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12746if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12747  ac_cs_awk_cr='\\r'
12748else
12749  ac_cs_awk_cr=$ac_cr
12750fi
12751
12752echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12753_ACEOF
12754
12755
12756{
12757  echo "cat >conf$$subs.awk <<_ACEOF" &&
12758  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12759  echo "_ACEOF"
12760} >conf$$subs.sh ||
12761  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12762ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12763ac_delim='%!_!# '
12764for ac_last_try in false false false false false :; do
12765  . ./conf$$subs.sh ||
12766    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12767
12768  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12769  if test $ac_delim_n = $ac_delim_num; then
12770    break
12771  elif $ac_last_try; then
12772    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12773  else
12774    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12775  fi
12776done
12777rm -f conf$$subs.sh
12778
12779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12780cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12781_ACEOF
12782sed -n '
12783h
12784s/^/S["/; s/!.*/"]=/
12785p
12786g
12787s/^[^!]*!//
12788:repl
12789t repl
12790s/'"$ac_delim"'$//
12791t delim
12792:nl
12793h
12794s/\(.\{148\}\)..*/\1/
12795t more1
12796s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12797p
12798n
12799b repl
12800:more1
12801s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12802p
12803g
12804s/.\{148\}//
12805t nl
12806:delim
12807h
12808s/\(.\{148\}\)..*/\1/
12809t more2
12810s/["\\]/\\&/g; s/^/"/; s/$/"/
12811p
12812b
12813:more2
12814s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12815p
12816g
12817s/.\{148\}//
12818t delim
12819' <conf$$subs.awk | sed '
12820/^[^""]/{
12821  N
12822  s/\n//
12823}
12824' >>$CONFIG_STATUS || ac_write_fail=1
12825rm -f conf$$subs.awk
12826cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12827_ACAWK
12828cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12829  for (key in S) S_is_set[key] = 1
12830  FS = ""
12831
12832}
12833{
12834  line = $ 0
12835  nfields = split(line, field, "@")
12836  substed = 0
12837  len = length(field[1])
12838  for (i = 2; i < nfields; i++) {
12839    key = field[i]
12840    keylen = length(key)
12841    if (S_is_set[key]) {
12842      value = S[key]
12843      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12844      len += length(value) + length(field[++i])
12845      substed = 1
12846    } else
12847      len += 1 + keylen
12848  }
12849
12850  print line
12851}
12852
12853_ACAWK
12854_ACEOF
12855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12856if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12857  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12858else
12859  cat
12860fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12861  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12862_ACEOF
12863
12864# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12865# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12866# trailing colons and then remove the whole line if VPATH becomes empty
12867# (actually we leave an empty line to preserve line numbers).
12868if test "x$srcdir" = x.; then
12869  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12870h
12871s///
12872s/^/:/
12873s/[	 ]*$/:/
12874s/:\$(srcdir):/:/g
12875s/:\${srcdir}:/:/g
12876s/:@srcdir@:/:/g
12877s/^:*//
12878s/:*$//
12879x
12880s/\(=[	 ]*\).*/\1/
12881G
12882s/\n//
12883s/^[^=]*=[	 ]*$//
12884}'
12885fi
12886
12887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12888fi # test -n "$CONFIG_FILES"
12889
12890# Set up the scripts for CONFIG_HEADERS section.
12891# No need to generate them if there are no CONFIG_HEADERS.
12892# This happens for instance with './config.status Makefile'.
12893if test -n "$CONFIG_HEADERS"; then
12894cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12895BEGIN {
12896_ACEOF
12897
12898# Transform confdefs.h into an awk script 'defines.awk', embedded as
12899# here-document in config.status, that substitutes the proper values into
12900# config.h.in to produce config.h.
12901
12902# Create a delimiter string that does not exist in confdefs.h, to ease
12903# handling of long lines.
12904ac_delim='%!_!# '
12905for ac_last_try in false false :; do
12906  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12907  if test -z "$ac_tt"; then
12908    break
12909  elif $ac_last_try; then
12910    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12911  else
12912    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12913  fi
12914done
12915
12916# For the awk script, D is an array of macro values keyed by name,
12917# likewise P contains macro parameters if any.  Preserve backslash
12918# newline sequences.
12919
12920ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12921sed -n '
12922s/.\{148\}/&'"$ac_delim"'/g
12923t rset
12924:rset
12925s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12926t def
12927d
12928:def
12929s/\\$//
12930t bsnl
12931s/["\\]/\\&/g
12932s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12933D["\1"]=" \3"/p
12934s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12935d
12936:bsnl
12937s/["\\]/\\&/g
12938s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12939D["\1"]=" \3\\\\\\n"\\/p
12940t cont
12941s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12942t cont
12943d
12944:cont
12945n
12946s/.\{148\}/&'"$ac_delim"'/g
12947t clear
12948:clear
12949s/\\$//
12950t bsnlc
12951s/["\\]/\\&/g; s/^/"/; s/$/"/p
12952d
12953:bsnlc
12954s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12955b cont
12956' <confdefs.h | sed '
12957s/'"$ac_delim"'/"\\\
12958"/g' >>$CONFIG_STATUS || ac_write_fail=1
12959
12960cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12961  for (key in D) D_is_set[key] = 1
12962  FS = ""
12963}
12964/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12965  line = \$ 0
12966  split(line, arg, " ")
12967  if (arg[1] == "#") {
12968    defundef = arg[2]
12969    mac1 = arg[3]
12970  } else {
12971    defundef = substr(arg[1], 2)
12972    mac1 = arg[2]
12973  }
12974  split(mac1, mac2, "(") #)
12975  macro = mac2[1]
12976  prefix = substr(line, 1, index(line, defundef) - 1)
12977  if (D_is_set[macro]) {
12978    # Preserve the white space surrounding the "#".
12979    print prefix "define", macro P[macro] D[macro]
12980    next
12981  } else {
12982    # Replace #undef with comments.  This is necessary, for example,
12983    # in the case of _POSIX_SOURCE, which is predefined and required
12984    # on some systems where configure will not decide to define it.
12985    if (defundef == "undef") {
12986      print "/*", prefix defundef, macro, "*/"
12987      next
12988    }
12989  }
12990}
12991{ print }
12992_ACAWK
12993_ACEOF
12994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12995  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12996fi # test -n "$CONFIG_HEADERS"
12997
12998
12999eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13000shift
13001for ac_tag
13002do
13003  case $ac_tag in
13004  :[FHLC]) ac_mode=$ac_tag; continue;;
13005  esac
13006  case $ac_mode$ac_tag in
13007  :[FHL]*:*);;
13008  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13009  :[FH]-) ac_tag=-:-;;
13010  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13011  esac
13012  ac_save_IFS=$IFS
13013  IFS=:
13014  set x $ac_tag
13015  IFS=$ac_save_IFS
13016  shift
13017  ac_file=$1
13018  shift
13019
13020  case $ac_mode in
13021  :L) ac_source=$1;;
13022  :[FH])
13023    ac_file_inputs=
13024    for ac_f
13025    do
13026      case $ac_f in
13027      -) ac_f="$ac_tmp/stdin";;
13028      *) # Look for the file first in the build tree, then in the source tree
13029	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13030	 # because $ac_f cannot contain ':'.
13031	 test -f "$ac_f" ||
13032	   case $ac_f in
13033	   [\\/$]*) false;;
13034	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13035	   esac ||
13036	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13037      esac
13038      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13039      as_fn_append ac_file_inputs " '$ac_f'"
13040    done
13041
13042    # Let's still pretend it is 'configure' which instantiates (i.e., don't
13043    # use $as_me), people would be surprised to read:
13044    #    /* config.h.  Generated by config.status.  */
13045    configure_input='Generated from '`
13046	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13047	`' by configure.'
13048    if test x"$ac_file" != x-; then
13049      configure_input="$ac_file.  $configure_input"
13050      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13051printf "%s\n" "$as_me: creating $ac_file" >&6;}
13052    fi
13053    # Neutralize special characters interpreted by sed in replacement strings.
13054    case $configure_input in #(
13055    *\&* | *\|* | *\\* )
13056       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13057       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13058    *) ac_sed_conf_input=$configure_input;;
13059    esac
13060
13061    case $ac_tag in
13062    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13063      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13064    esac
13065    ;;
13066  esac
13067
13068  ac_dir=`$as_dirname -- "$ac_file" ||
13069$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13070	 X"$ac_file" : 'X\(//\)[^/]' \| \
13071	 X"$ac_file" : 'X\(//\)$' \| \
13072	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13073printf "%s\n" X"$ac_file" |
13074    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13075	    s//\1/
13076	    q
13077	  }
13078	  /^X\(\/\/\)[^/].*/{
13079	    s//\1/
13080	    q
13081	  }
13082	  /^X\(\/\/\)$/{
13083	    s//\1/
13084	    q
13085	  }
13086	  /^X\(\/\).*/{
13087	    s//\1/
13088	    q
13089	  }
13090	  s/.*/./; q'`
13091  as_dir="$ac_dir"; as_fn_mkdir_p
13092  ac_builddir=.
13093
13094case "$ac_dir" in
13095.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13096*)
13097  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13098  # A ".." for each directory in $ac_dir_suffix.
13099  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13100  case $ac_top_builddir_sub in
13101  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13102  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13103  esac ;;
13104esac
13105ac_abs_top_builddir=$ac_pwd
13106ac_abs_builddir=$ac_pwd$ac_dir_suffix
13107# for backward compatibility:
13108ac_top_builddir=$ac_top_build_prefix
13109
13110case $srcdir in
13111  .)  # We are building in place.
13112    ac_srcdir=.
13113    ac_top_srcdir=$ac_top_builddir_sub
13114    ac_abs_top_srcdir=$ac_pwd ;;
13115  [\\/]* | ?:[\\/]* )  # Absolute name.
13116    ac_srcdir=$srcdir$ac_dir_suffix;
13117    ac_top_srcdir=$srcdir
13118    ac_abs_top_srcdir=$srcdir ;;
13119  *) # Relative name.
13120    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13121    ac_top_srcdir=$ac_top_build_prefix$srcdir
13122    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13123esac
13124ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13125
13126
13127  case $ac_mode in
13128  :F)
13129  #
13130  # CONFIG_FILE
13131  #
13132
13133  case $INSTALL in
13134  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13135  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13136  esac
13137  ac_MKDIR_P=$MKDIR_P
13138  case $MKDIR_P in
13139  [\\/$]* | ?:[\\/]* ) ;;
13140  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13141  esac
13142_ACEOF
13143
13144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13145# If the template does not know about datarootdir, expand it.
13146# FIXME: This hack should be removed a few years after 2.60.
13147ac_datarootdir_hack=; ac_datarootdir_seen=
13148ac_sed_dataroot='
13149/datarootdir/ {
13150  p
13151  q
13152}
13153/@datadir@/p
13154/@docdir@/p
13155/@infodir@/p
13156/@localedir@/p
13157/@mandir@/p'
13158case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13159*datarootdir*) ac_datarootdir_seen=yes;;
13160*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13161  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13162printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13163_ACEOF
13164cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13165  ac_datarootdir_hack='
13166  s&@datadir@&$datadir&g
13167  s&@docdir@&$docdir&g
13168  s&@infodir@&$infodir&g
13169  s&@localedir@&$localedir&g
13170  s&@mandir@&$mandir&g
13171  s&\\\${datarootdir}&$datarootdir&g' ;;
13172esac
13173_ACEOF
13174
13175# Neutralize VPATH when '$srcdir' = '.'.
13176# Shell code in configure.ac might set extrasub.
13177# FIXME: do we really want to maintain this feature?
13178cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13179ac_sed_extra="$ac_vpsub
13180$extrasub
13181_ACEOF
13182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13183:t
13184/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13185s|@configure_input@|$ac_sed_conf_input|;t t
13186s&@top_builddir@&$ac_top_builddir_sub&;t t
13187s&@top_build_prefix@&$ac_top_build_prefix&;t t
13188s&@srcdir@&$ac_srcdir&;t t
13189s&@abs_srcdir@&$ac_abs_srcdir&;t t
13190s&@top_srcdir@&$ac_top_srcdir&;t t
13191s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13192s&@builddir@&$ac_builddir&;t t
13193s&@abs_builddir@&$ac_abs_builddir&;t t
13194s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13195s&@INSTALL@&$ac_INSTALL&;t t
13196s&@MKDIR_P@&$ac_MKDIR_P&;t t
13197$ac_datarootdir_hack
13198"
13199eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13200  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13201
13202test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13203  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13204  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13205      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13207which seems to be undefined.  Please make sure it is defined" >&5
13208printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13209which seems to be undefined.  Please make sure it is defined" >&2;}
13210
13211  rm -f "$ac_tmp/stdin"
13212  case $ac_file in
13213  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13214  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13215  esac \
13216  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13217 ;;
13218  :H)
13219  #
13220  # CONFIG_HEADER
13221  #
13222  if test x"$ac_file" != x-; then
13223    {
13224      printf "%s\n" "/* $configure_input  */" >&1 \
13225      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13226    } >"$ac_tmp/config.h" \
13227      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13228    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13229      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13230printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13231    else
13232      rm -f "$ac_file"
13233      mv "$ac_tmp/config.h" "$ac_file" \
13234	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13235    fi
13236  else
13237    printf "%s\n" "/* $configure_input  */" >&1 \
13238      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13239      || as_fn_error $? "could not create -" "$LINENO" 5
13240  fi
13241# Compute "$ac_file"'s index in $config_headers.
13242_am_arg="$ac_file"
13243_am_stamp_count=1
13244for _am_header in $config_headers :; do
13245  case $_am_header in
13246    $_am_arg | $_am_arg:* )
13247      break ;;
13248    * )
13249      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13250  esac
13251done
13252echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13253$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13254	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13255	 X"$_am_arg" : 'X\(//\)$' \| \
13256	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13257printf "%s\n" X"$_am_arg" |
13258    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13259	    s//\1/
13260	    q
13261	  }
13262	  /^X\(\/\/\)[^/].*/{
13263	    s//\1/
13264	    q
13265	  }
13266	  /^X\(\/\/\)$/{
13267	    s//\1/
13268	    q
13269	  }
13270	  /^X\(\/\).*/{
13271	    s//\1/
13272	    q
13273	  }
13274	  s/.*/./; q'`/stamp-h$_am_stamp_count
13275 ;;
13276
13277  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13278printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13279 ;;
13280  esac
13281
13282
13283  case $ac_file$ac_mode in
13284    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13285  # Older Autoconf quotes --file arguments for eval, but not when files
13286  # are listed without --file.  Let's play safe and only enable the eval
13287  # if we detect the quoting.
13288  # TODO: see whether this extra hack can be removed once we start
13289  # requiring Autoconf 2.70 or later.
13290  case $CONFIG_FILES in #(
13291  *\'*) :
13292    eval set x "$CONFIG_FILES" ;; #(
13293  *) :
13294    set x $CONFIG_FILES ;; #(
13295  *) :
13296     ;;
13297esac
13298  shift
13299  # Used to flag and report bootstrapping failures.
13300  am_rc=0
13301  for am_mf
13302  do
13303    # Strip MF so we end up with the name of the file.
13304    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13305    # Check whether this is an Automake generated Makefile which includes
13306    # dependency-tracking related rules and includes.
13307    # Grep'ing the whole file directly is not great: AIX grep has a line
13308    # limit of 2048, but all sed's we know have understand at least 4000.
13309    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13310      || continue
13311    am_dirpart=`$as_dirname -- "$am_mf" ||
13312$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13313	 X"$am_mf" : 'X\(//\)[^/]' \| \
13314	 X"$am_mf" : 'X\(//\)$' \| \
13315	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13316printf "%s\n" X"$am_mf" |
13317    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13318	    s//\1/
13319	    q
13320	  }
13321	  /^X\(\/\/\)[^/].*/{
13322	    s//\1/
13323	    q
13324	  }
13325	  /^X\(\/\/\)$/{
13326	    s//\1/
13327	    q
13328	  }
13329	  /^X\(\/\).*/{
13330	    s//\1/
13331	    q
13332	  }
13333	  s/.*/./; q'`
13334    am_filepart=`$as_basename -- "$am_mf" ||
13335$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13336	 X"$am_mf" : 'X\(//\)$' \| \
13337	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13338printf "%s\n" X/"$am_mf" |
13339    sed '/^.*\/\([^/][^/]*\)\/*$/{
13340	    s//\1/
13341	    q
13342	  }
13343	  /^X\/\(\/\/\)$/{
13344	    s//\1/
13345	    q
13346	  }
13347	  /^X\/\(\/\).*/{
13348	    s//\1/
13349	    q
13350	  }
13351	  s/.*/./; q'`
13352    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13353      && sed -e '/# am--include-marker/d' "$am_filepart" \
13354        | $MAKE -f - am--depfiles" >&5
13355   (cd "$am_dirpart" \
13356      && sed -e '/# am--include-marker/d' "$am_filepart" \
13357        | $MAKE -f - am--depfiles) >&5 2>&5
13358   ac_status=$?
13359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360   (exit $ac_status); } || am_rc=$?
13361  done
13362  if test $am_rc -ne 0; then
13363    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13364printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13365as_fn_error $? "Something went wrong bootstrapping makefile fragments
13366    for automatic dependency tracking.  If GNU make was not used, consider
13367    re-running the configure script with MAKE=\"gmake\" (or whatever is
13368    necessary).  You can also try re-running configure with the
13369    '--disable-dependency-tracking' option to at least be able to build
13370    the package (albeit without support for automatic dependency tracking).
13371See 'config.log' for more details" "$LINENO" 5; }
13372  fi
13373  { am_dirpart=; unset am_dirpart;}
13374  { am_filepart=; unset am_filepart;}
13375  { am_mf=; unset am_mf;}
13376  { am_rc=; unset am_rc;}
13377  rm -f conftest-deps.mk
13378}
13379 ;;
13380
13381  esac
13382done # for ac_tag
13383
13384
13385as_fn_exit 0
13386_ACEOF
13387ac_clean_files=$ac_clean_files_save
13388
13389test $ac_write_fail = 0 ||
13390  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13391
13392
13393# configure is writing to config.log, and then calls config.status.
13394# config.status does its own redirection, appending to config.log.
13395# Unfortunately, on DOS this fails, as config.log is still kept open
13396# by configure, so config.status won't be able to write to it; its
13397# output is simply discarded.  So we exec the FD to /dev/null,
13398# effectively closing config.log, so it can be properly (re)opened and
13399# appended to by config.status.  When coming back to configure, we
13400# need to make the FD available again.
13401if test "$no_create" != yes; then
13402  ac_cs_success=:
13403  ac_config_status_args=
13404  test "$silent" = yes &&
13405    ac_config_status_args="$ac_config_status_args --quiet"
13406  exec 5>/dev/null
13407  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13408  exec 5>>config.log
13409  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13410  # would make configure fail if this is the last instruction.
13411  $ac_cs_success || as_fn_exit 1
13412fi
13413if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13415printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13416fi
13417
13418
13419