1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for x11perf 1.7.0.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/test/x11perf/-/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/test/x11perf/-/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='x11perf'
607PACKAGE_TARNAME='x11perf'
608PACKAGE_VERSION='1.7.0'
609PACKAGE_STRING='x11perf 1.7.0'
610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/test/x11perf/-/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
650XEXT_LIBS
651XEXT_CFLAGS
652XFT_LIBS
653XFT_CFLAGS
654XRENDER_LIBS
655XRENDER_CFLAGS
656X11PERF_LIBS
657X11PERF_CFLAGS
658MKTEMP
659x11perfcompdir
660MAN_SUBSTS
661XORG_MAN_PAGE
662ADMIN_MAN_DIR
663DRIVER_MAN_DIR
664MISC_MAN_DIR
665FILE_MAN_DIR
666LIB_MAN_DIR
667APP_MAN_DIR
668ADMIN_MAN_SUFFIX
669DRIVER_MAN_SUFFIX
670MISC_MAN_SUFFIX
671FILE_MAN_SUFFIX
672LIB_MAN_SUFFIX
673APP_MAN_SUFFIX
674SED
675host_os
676host_vendor
677host_cpu
678host
679build_os
680build_vendor
681build_cpu
682build
683INSTALL_CMD
684PKG_CONFIG_LIBDIR
685PKG_CONFIG_PATH
686PKG_CONFIG
687CHANGELOG_CMD
688STRICT_CFLAGS
689CWARNFLAGS
690BASE_CFLAGS
691am__fastdepCC_FALSE
692am__fastdepCC_TRUE
693CCDEPMODE
694am__nodep
695AMDEPBACKSLASH
696AMDEP_FALSE
697AMDEP_TRUE
698am__include
699DEPDIR
700OBJEXT
701EXEEXT
702ac_ct_CC
703CPPFLAGS
704LDFLAGS
705CFLAGS
706CC
707am__xargs_n
708am__rm_f_notfound
709AM_BACKSLASH
710AM_DEFAULT_VERBOSITY
711AM_DEFAULT_V
712AM_V
713CSCOPE
714ETAGS
715CTAGS
716am__untar
717am__tar
718AMTAR
719am__leading_dot
720SET_MAKE
721AWK
722mkdir_p
723MKDIR_P
724INSTALL_STRIP_PROGRAM
725STRIP
726install_sh
727MAKEINFO
728AUTOHEADER
729AUTOMAKE
730AUTOCONF
731ACLOCAL
732VERSION
733PACKAGE
734CYGPATH_W
735am__isrc
736INSTALL_DATA
737INSTALL_SCRIPT
738INSTALL_PROGRAM
739target_alias
740host_alias
741build_alias
742LIBS
743ECHO_T
744ECHO_N
745ECHO_C
746DEFS
747mandir
748localedir
749libdir
750psdir
751pdfdir
752dvidir
753htmldir
754infodir
755docdir
756oldincludedir
757includedir
758runstatedir
759localstatedir
760sharedstatedir
761sysconfdir
762datadir
763datarootdir
764libexecdir
765sbindir
766bindir
767program_transform_name
768prefix
769exec_prefix
770PACKAGE_URL
771PACKAGE_BUGREPORT
772PACKAGE_STRING
773PACKAGE_VERSION
774PACKAGE_TARNAME
775PACKAGE_NAME
776PATH_SEPARATOR
777SHELL
778am__quote'
779ac_subst_files=''
780ac_user_opts='
781enable_option_checking
782enable_silent_rules
783enable_dependency_tracking
784enable_selective_werror
785enable_strict_compilation
786'
787      ac_precious_vars='build_alias
788host_alias
789target_alias
790CC
791CFLAGS
792LDFLAGS
793LIBS
794CPPFLAGS
795PKG_CONFIG
796PKG_CONFIG_PATH
797PKG_CONFIG_LIBDIR
798X11PERF_CFLAGS
799X11PERF_LIBS
800XRENDER_CFLAGS
801XRENDER_LIBS
802XFT_CFLAGS
803XFT_LIBS
804XEXT_CFLAGS
805XEXT_LIBS'
806
807
808# Initialize some variables set by options.
809ac_init_help=
810ac_init_version=false
811ac_unrecognized_opts=
812ac_unrecognized_sep=
813# The variables have the same names as the options, with
814# dashes changed to underlines.
815cache_file=/dev/null
816exec_prefix=NONE
817no_create=
818no_recursion=
819prefix=NONE
820program_prefix=NONE
821program_suffix=NONE
822program_transform_name=s,x,x,
823silent=
824site=
825srcdir=
826verbose=
827x_includes=NONE
828x_libraries=NONE
829
830# Installation directory options.
831# These are left unexpanded so users can "make install exec_prefix=/foo"
832# and all the variables that are supposed to be based on exec_prefix
833# by default will actually change.
834# Use braces instead of parens because sh, perl, etc. also accept them.
835# (The list follows the same order as the GNU Coding Standards.)
836bindir='${exec_prefix}/bin'
837sbindir='${exec_prefix}/sbin'
838libexecdir='${exec_prefix}/libexec'
839datarootdir='${prefix}/share'
840datadir='${datarootdir}'
841sysconfdir='${prefix}/etc'
842sharedstatedir='${prefix}/com'
843localstatedir='${prefix}/var'
844runstatedir='${localstatedir}/run'
845includedir='${prefix}/include'
846oldincludedir='/usr/include'
847docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848infodir='${datarootdir}/info'
849htmldir='${docdir}'
850dvidir='${docdir}'
851pdfdir='${docdir}'
852psdir='${docdir}'
853libdir='${exec_prefix}/lib'
854localedir='${datarootdir}/locale'
855mandir='${datarootdir}/man'
856
857ac_prev=
858ac_dashdash=
859for ac_option
860do
861  # If the previous option needs an argument, assign it.
862  if test -n "$ac_prev"; then
863    eval $ac_prev=\$ac_option
864    ac_prev=
865    continue
866  fi
867
868  case $ac_option in
869  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870  *=)   ac_optarg= ;;
871  *)    ac_optarg=yes ;;
872  esac
873
874  case $ac_dashdash$ac_option in
875  --)
876    ac_dashdash=yes ;;
877
878  -bindir | --bindir | --bindi | --bind | --bin | --bi)
879    ac_prev=bindir ;;
880  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881    bindir=$ac_optarg ;;
882
883  -build | --build | --buil | --bui | --bu)
884    ac_prev=build_alias ;;
885  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886    build_alias=$ac_optarg ;;
887
888  -cache-file | --cache-file | --cache-fil | --cache-fi \
889  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890    ac_prev=cache_file ;;
891  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893    cache_file=$ac_optarg ;;
894
895  --config-cache | -C)
896    cache_file=config.cache ;;
897
898  -datadir | --datadir | --datadi | --datad)
899    ac_prev=datadir ;;
900  -datadir=* | --datadir=* | --datadi=* | --datad=*)
901    datadir=$ac_optarg ;;
902
903  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904  | --dataroo | --dataro | --datar)
905    ac_prev=datarootdir ;;
906  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908    datarootdir=$ac_optarg ;;
909
910  -disable-* | --disable-*)
911    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912    # Reject names that are not valid shell variable names.
913    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914      as_fn_error $? "invalid feature name: '$ac_useropt'"
915    ac_useropt_orig=$ac_useropt
916    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
917    case $ac_user_opts in
918      *"
919"enable_$ac_useropt"
920"*) ;;
921      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922	 ac_unrecognized_sep=', ';;
923    esac
924    eval enable_$ac_useropt=no ;;
925
926  -docdir | --docdir | --docdi | --doc | --do)
927    ac_prev=docdir ;;
928  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929    docdir=$ac_optarg ;;
930
931  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932    ac_prev=dvidir ;;
933  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934    dvidir=$ac_optarg ;;
935
936  -enable-* | --enable-*)
937    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938    # Reject names that are not valid shell variable names.
939    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940      as_fn_error $? "invalid feature name: '$ac_useropt'"
941    ac_useropt_orig=$ac_useropt
942    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
943    case $ac_user_opts in
944      *"
945"enable_$ac_useropt"
946"*) ;;
947      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948	 ac_unrecognized_sep=', ';;
949    esac
950    eval enable_$ac_useropt=\$ac_optarg ;;
951
952  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954  | --exec | --exe | --ex)
955    ac_prev=exec_prefix ;;
956  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958  | --exec=* | --exe=* | --ex=*)
959    exec_prefix=$ac_optarg ;;
960
961  -gas | --gas | --ga | --g)
962    # Obsolete; use --with-gas.
963    with_gas=yes ;;
964
965  -help | --help | --hel | --he | -h)
966    ac_init_help=long ;;
967  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968    ac_init_help=recursive ;;
969  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970    ac_init_help=short ;;
971
972  -host | --host | --hos | --ho)
973    ac_prev=host_alias ;;
974  -host=* | --host=* | --hos=* | --ho=*)
975    host_alias=$ac_optarg ;;
976
977  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978    ac_prev=htmldir ;;
979  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980  | --ht=*)
981    htmldir=$ac_optarg ;;
982
983  -includedir | --includedir | --includedi | --included | --include \
984  | --includ | --inclu | --incl | --inc)
985    ac_prev=includedir ;;
986  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987  | --includ=* | --inclu=* | --incl=* | --inc=*)
988    includedir=$ac_optarg ;;
989
990  -infodir | --infodir | --infodi | --infod | --info | --inf)
991    ac_prev=infodir ;;
992  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993    infodir=$ac_optarg ;;
994
995  -libdir | --libdir | --libdi | --libd)
996    ac_prev=libdir ;;
997  -libdir=* | --libdir=* | --libdi=* | --libd=*)
998    libdir=$ac_optarg ;;
999
1000  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001  | --libexe | --libex | --libe)
1002    ac_prev=libexecdir ;;
1003  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004  | --libexe=* | --libex=* | --libe=*)
1005    libexecdir=$ac_optarg ;;
1006
1007  -localedir | --localedir | --localedi | --localed | --locale)
1008    ac_prev=localedir ;;
1009  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010    localedir=$ac_optarg ;;
1011
1012  -localstatedir | --localstatedir | --localstatedi | --localstated \
1013  | --localstate | --localstat | --localsta | --localst | --locals)
1014    ac_prev=localstatedir ;;
1015  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017    localstatedir=$ac_optarg ;;
1018
1019  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020    ac_prev=mandir ;;
1021  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022    mandir=$ac_optarg ;;
1023
1024  -nfp | --nfp | --nf)
1025    # Obsolete; use --without-fp.
1026    with_fp=no ;;
1027
1028  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029  | --no-cr | --no-c | -n)
1030    no_create=yes ;;
1031
1032  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034    no_recursion=yes ;;
1035
1036  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038  | --oldin | --oldi | --old | --ol | --o)
1039    ac_prev=oldincludedir ;;
1040  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043    oldincludedir=$ac_optarg ;;
1044
1045  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046    ac_prev=prefix ;;
1047  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048    prefix=$ac_optarg ;;
1049
1050  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051  | --program-pre | --program-pr | --program-p)
1052    ac_prev=program_prefix ;;
1053  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055    program_prefix=$ac_optarg ;;
1056
1057  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058  | --program-suf | --program-su | --program-s)
1059    ac_prev=program_suffix ;;
1060  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062    program_suffix=$ac_optarg ;;
1063
1064  -program-transform-name | --program-transform-name \
1065  | --program-transform-nam | --program-transform-na \
1066  | --program-transform-n | --program-transform- \
1067  | --program-transform | --program-transfor \
1068  | --program-transfo | --program-transf \
1069  | --program-trans | --program-tran \
1070  | --progr-tra | --program-tr | --program-t)
1071    ac_prev=program_transform_name ;;
1072  -program-transform-name=* | --program-transform-name=* \
1073  | --program-transform-nam=* | --program-transform-na=* \
1074  | --program-transform-n=* | --program-transform-=* \
1075  | --program-transform=* | --program-transfor=* \
1076  | --program-transfo=* | --program-transf=* \
1077  | --program-trans=* | --program-tran=* \
1078  | --progr-tra=* | --program-tr=* | --program-t=*)
1079    program_transform_name=$ac_optarg ;;
1080
1081  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082    ac_prev=pdfdir ;;
1083  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084    pdfdir=$ac_optarg ;;
1085
1086  -psdir | --psdir | --psdi | --psd | --ps)
1087    ac_prev=psdir ;;
1088  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089    psdir=$ac_optarg ;;
1090
1091  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092  | -silent | --silent | --silen | --sile | --sil)
1093    silent=yes ;;
1094
1095  -runstatedir | --runstatedir | --runstatedi | --runstated \
1096  | --runstate | --runstat | --runsta | --runst | --runs \
1097  | --run | --ru | --r)
1098    ac_prev=runstatedir ;;
1099  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1100  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1101  | --run=* | --ru=* | --r=*)
1102    runstatedir=$ac_optarg ;;
1103
1104  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105    ac_prev=sbindir ;;
1106  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107  | --sbi=* | --sb=*)
1108    sbindir=$ac_optarg ;;
1109
1110  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112  | --sharedst | --shareds | --shared | --share | --shar \
1113  | --sha | --sh)
1114    ac_prev=sharedstatedir ;;
1115  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118  | --sha=* | --sh=*)
1119    sharedstatedir=$ac_optarg ;;
1120
1121  -site | --site | --sit)
1122    ac_prev=site ;;
1123  -site=* | --site=* | --sit=*)
1124    site=$ac_optarg ;;
1125
1126  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127    ac_prev=srcdir ;;
1128  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129    srcdir=$ac_optarg ;;
1130
1131  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132  | --syscon | --sysco | --sysc | --sys | --sy)
1133    ac_prev=sysconfdir ;;
1134  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136    sysconfdir=$ac_optarg ;;
1137
1138  -target | --target | --targe | --targ | --tar | --ta | --t)
1139    ac_prev=target_alias ;;
1140  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141    target_alias=$ac_optarg ;;
1142
1143  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144    verbose=yes ;;
1145
1146  -version | --version | --versio | --versi | --vers | -V)
1147    ac_init_version=: ;;
1148
1149  -with-* | --with-*)
1150    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151    # Reject names that are not valid shell variable names.
1152    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153      as_fn_error $? "invalid package name: '$ac_useropt'"
1154    ac_useropt_orig=$ac_useropt
1155    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1156    case $ac_user_opts in
1157      *"
1158"with_$ac_useropt"
1159"*) ;;
1160      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161	 ac_unrecognized_sep=', ';;
1162    esac
1163    eval with_$ac_useropt=\$ac_optarg ;;
1164
1165  -without-* | --without-*)
1166    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167    # Reject names that are not valid shell variable names.
1168    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169      as_fn_error $? "invalid package name: '$ac_useropt'"
1170    ac_useropt_orig=$ac_useropt
1171    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1172    case $ac_user_opts in
1173      *"
1174"with_$ac_useropt"
1175"*) ;;
1176      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177	 ac_unrecognized_sep=', ';;
1178    esac
1179    eval with_$ac_useropt=no ;;
1180
1181  --x)
1182    # Obsolete; use --with-x.
1183    with_x=yes ;;
1184
1185  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186  | --x-incl | --x-inc | --x-in | --x-i)
1187    ac_prev=x_includes ;;
1188  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190    x_includes=$ac_optarg ;;
1191
1192  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194    ac_prev=x_libraries ;;
1195  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197    x_libraries=$ac_optarg ;;
1198
1199  -*) as_fn_error $? "unrecognized option: '$ac_option'
1200Try '$0 --help' for more information"
1201    ;;
1202
1203  *=*)
1204    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205    # Reject names that are not valid shell variable names.
1206    case $ac_envvar in #(
1207      '' | [0-9]* | *[!_$as_cr_alnum]* )
1208      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1209    esac
1210    eval $ac_envvar=\$ac_optarg
1211    export $ac_envvar ;;
1212
1213  *)
1214    # FIXME: should be removed in autoconf 3.0.
1215    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1216    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1218    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1219    ;;
1220
1221  esac
1222done
1223
1224if test -n "$ac_prev"; then
1225  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226  as_fn_error $? "missing argument to $ac_option"
1227fi
1228
1229if test -n "$ac_unrecognized_opts"; then
1230  case $enable_option_checking in
1231    no) ;;
1232    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234  esac
1235fi
1236
1237# Check all directory arguments for consistency.
1238for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239		datadir sysconfdir sharedstatedir localstatedir includedir \
1240		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241		libdir localedir mandir runstatedir
1242do
1243  eval ac_val=\$$ac_var
1244  # Remove trailing slashes.
1245  case $ac_val in
1246    */ )
1247      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248      eval $ac_var=\$ac_val;;
1249  esac
1250  # Be sure to have absolute directory names.
1251  case $ac_val in
1252    [\\/$]* | ?:[\\/]* )  continue;;
1253    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254  esac
1255  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256done
1257
1258# There might be people who depend on the old broken behavior: '$host'
1259# used to hold the argument of --host etc.
1260# FIXME: To remove some day.
1261build=$build_alias
1262host=$host_alias
1263target=$target_alias
1264
1265# FIXME: To remove some day.
1266if test "x$host_alias" != x; then
1267  if test "x$build_alias" = x; then
1268    cross_compiling=maybe
1269  elif test "x$build_alias" != "x$host_alias"; then
1270    cross_compiling=yes
1271  fi
1272fi
1273
1274ac_tool_prefix=
1275test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276
1277test "$silent" = yes && exec 6>/dev/null
1278
1279
1280ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281ac_ls_di=`ls -di .` &&
1282ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283  as_fn_error $? "working directory cannot be determined"
1284test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285  as_fn_error $? "pwd does not report name of working directory"
1286
1287
1288# Find the source files, if location was not specified.
1289if test -z "$srcdir"; then
1290  ac_srcdir_defaulted=yes
1291  # Try the directory containing this script, then the parent directory.
1292  ac_confdir=`$as_dirname -- "$as_myself" ||
1293$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294	 X"$as_myself" : 'X\(//\)[^/]' \| \
1295	 X"$as_myself" : 'X\(//\)$' \| \
1296	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297printf "%s\n" X"$as_myself" |
1298    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299	    s//\1/
1300	    q
1301	  }
1302	  /^X\(\/\/\)[^/].*/{
1303	    s//\1/
1304	    q
1305	  }
1306	  /^X\(\/\/\)$/{
1307	    s//\1/
1308	    q
1309	  }
1310	  /^X\(\/\).*/{
1311	    s//\1/
1312	    q
1313	  }
1314	  s/.*/./; q'`
1315  srcdir=$ac_confdir
1316  if test ! -r "$srcdir/$ac_unique_file"; then
1317    srcdir=..
1318  fi
1319else
1320  ac_srcdir_defaulted=no
1321fi
1322if test ! -r "$srcdir/$ac_unique_file"; then
1323  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1325fi
1326ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1327ac_abs_confdir=`(
1328	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329	pwd)`
1330# When building in place, set srcdir=.
1331if test "$ac_abs_confdir" = "$ac_pwd"; then
1332  srcdir=.
1333fi
1334# Remove unnecessary trailing slashes from srcdir.
1335# Double slashes in file names in object file debugging info
1336# mess up M-x gdb in Emacs.
1337case $srcdir in
1338*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339esac
1340for ac_var in $ac_precious_vars; do
1341  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342  eval ac_env_${ac_var}_value=\$${ac_var}
1343  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345done
1346
1347#
1348# Report the --help message.
1349#
1350if test "$ac_init_help" = "long"; then
1351  # Omit some internal or obsolete options to make the list less imposing.
1352  # This message is too long to be a string in the A/UX 3.1 sh.
1353  cat <<_ACEOF
1354'configure' configures x11perf 1.7.0 to adapt to many kinds of systems.
1355
1356Usage: $0 [OPTION]... [VAR=VALUE]...
1357
1358To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359VAR=VALUE.  See below for descriptions of some of the useful variables.
1360
1361Defaults for the options are specified in brackets.
1362
1363Configuration:
1364  -h, --help              display this help and exit
1365      --help=short        display options specific to this package
1366      --help=recursive    display the short help of all the included packages
1367  -V, --version           display version information and exit
1368  -q, --quiet, --silent   do not print 'checking ...' messages
1369      --cache-file=FILE   cache test results in FILE [disabled]
1370  -C, --config-cache      alias for '--cache-file=config.cache'
1371  -n, --no-create         do not create output files
1372      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1373
1374Installation directories:
1375  --prefix=PREFIX         install architecture-independent files in PREFIX
1376                          [$ac_default_prefix]
1377  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1378                          [PREFIX]
1379
1380By default, 'make install' will install all the files in
1381'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1382an installation prefix other than '$ac_default_prefix' using '--prefix',
1383for instance '--prefix=\$HOME'.
1384
1385For better control, use the options below.
1386
1387Fine tuning of the installation directories:
1388  --bindir=DIR            user executables [EPREFIX/bin]
1389  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1390  --libexecdir=DIR        program executables [EPREFIX/libexec]
1391  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1392  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1393  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1394  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1395  --libdir=DIR            object code libraries [EPREFIX/lib]
1396  --includedir=DIR        C header files [PREFIX/include]
1397  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1398  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1399  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1400  --infodir=DIR           info documentation [DATAROOTDIR/info]
1401  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1402  --mandir=DIR            man documentation [DATAROOTDIR/man]
1403  --docdir=DIR            documentation root [DATAROOTDIR/doc/x11perf]
1404  --htmldir=DIR           html documentation [DOCDIR]
1405  --dvidir=DIR            dvi documentation [DOCDIR]
1406  --pdfdir=DIR            pdf documentation [DOCDIR]
1407  --psdir=DIR             ps documentation [DOCDIR]
1408_ACEOF
1409
1410  cat <<\_ACEOF
1411
1412Program names:
1413  --program-prefix=PREFIX            prepend PREFIX to installed program names
1414  --program-suffix=SUFFIX            append SUFFIX to installed program names
1415  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1416
1417System types:
1418  --build=BUILD     configure for building on BUILD [guessed]
1419  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1420_ACEOF
1421fi
1422
1423if test -n "$ac_init_help"; then
1424  case $ac_init_help in
1425     short | recursive ) echo "Configuration of x11perf 1.7.0:";;
1426   esac
1427  cat <<\_ACEOF
1428
1429Optional Features:
1430  --disable-option-checking  ignore unrecognized --enable/--with options
1431  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1432  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1433  --enable-silent-rules   less verbose build output (undo: "make V=1")
1434  --disable-silent-rules  verbose build output (undo: "make V=0")
1435  --enable-dependency-tracking
1436                          do not reject slow dependency extractors
1437  --disable-dependency-tracking
1438                          speeds up one-time build
1439  --disable-selective-werror
1440                          Turn off selective compiler errors. (default:
1441                          enabled)
1442  --enable-strict-compilation
1443                          Enable all warnings from compiler and make them
1444                          errors (default: disabled)
1445
1446Some influential environment variables:
1447  CC          C compiler command
1448  CFLAGS      C compiler flags
1449  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1450              nonstandard directory <lib dir>
1451  LIBS        libraries to pass to the linker, e.g. -l<library>
1452  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453              you have headers in a nonstandard directory <include dir>
1454  PKG_CONFIG  path to pkg-config utility
1455  PKG_CONFIG_PATH
1456              directories to add to pkg-config's search path
1457  PKG_CONFIG_LIBDIR
1458              path overriding pkg-config's built-in search path
1459  X11PERF_CFLAGS
1460              C compiler flags for X11PERF, overriding pkg-config
1461  X11PERF_LIBS
1462              linker flags for X11PERF, overriding pkg-config
1463  XRENDER_CFLAGS
1464              C compiler flags for XRENDER, overriding pkg-config
1465  XRENDER_LIBS
1466              linker flags for XRENDER, overriding pkg-config
1467  XFT_CFLAGS  C compiler flags for XFT, overriding pkg-config
1468  XFT_LIBS    linker flags for XFT, overriding pkg-config
1469  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1470  XEXT_LIBS   linker flags for XEXT, 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/test/x11perf/-/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
1539x11perf configure 1.7.0
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 x11perf $as_me 1.7.0, 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='x11perf'
3295 VERSION='1.7.0'
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
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399xorg_testset_save_CFLAGS="$CFLAGS"
6400
6401if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6402	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6403	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6404printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6405if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6406then :
6407  printf %s "(cached) " >&6
6408else case e in #(
6409  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410/* end confdefs.h.  */
6411int i;
6412_ACEOF
6413if ac_fn_c_try_compile "$LINENO"
6414then :
6415  xorg_cv_cc_flag_unknown_warning_option=yes
6416else case e in #(
6417  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6418esac
6419fi
6420rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6421esac
6422fi
6423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6424printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6425	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6426	CFLAGS="$xorg_testset_save_CFLAGS"
6427fi
6428
6429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6430	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6431		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6432	fi
6433	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6434	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6435printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6436if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6437then :
6438  printf %s "(cached) " >&6
6439else case e in #(
6440  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441/* end confdefs.h.  */
6442int i;
6443_ACEOF
6444if ac_fn_c_try_compile "$LINENO"
6445then :
6446  xorg_cv_cc_flag_unused_command_line_argument=yes
6447else case e in #(
6448  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6449esac
6450fi
6451rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6452esac
6453fi
6454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6455printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6456	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6457	CFLAGS="$xorg_testset_save_CFLAGS"
6458fi
6459
6460found="no"
6461
6462	if test $found = "no" ; then
6463		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6464			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6465		fi
6466
6467		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6468			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6469		fi
6470
6471		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6472
6473		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6474printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6475		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6476		if eval test \${$cacheid+y}
6477then :
6478  printf %s "(cached) " >&6
6479else case e in #(
6480  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481/* end confdefs.h.  */
6482int i;
6483int
6484main (void)
6485{
6486
6487  ;
6488  return 0;
6489}
6490_ACEOF
6491if ac_fn_c_try_link "$LINENO"
6492then :
6493  eval $cacheid=yes
6494else case e in #(
6495  e) eval $cacheid=no ;;
6496esac
6497fi
6498rm -f core conftest.err conftest.$ac_objext conftest.beam \
6499    conftest$ac_exeext conftest.$ac_ext ;;
6500esac
6501fi
6502
6503
6504		CFLAGS="$xorg_testset_save_CFLAGS"
6505
6506		eval supported=\$$cacheid
6507		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6508printf "%s\n" "$supported" >&6; }
6509		if test "$supported" = "yes" ; then
6510			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6511			found="yes"
6512		fi
6513	fi
6514
6515
6516
6517
6518
6519# This chunk adds additional warnings that could catch undesired effects.
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 -Wunused"
6606
6607		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6608printf %s "checking if $CC supports -Wunused... " >&6; }
6609		cacheid=xorg_cv_cc_flag__Wunused
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 -Wunused"
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 -Wuninitialized"
6736
6737		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6738printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6739		cacheid=xorg_cv_cc_flag__Wuninitialized
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 -Wuninitialized"
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 -Wshadow"
6866
6867		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6868printf %s "checking if $CC supports -Wshadow... " >&6; }
6869		cacheid=xorg_cv_cc_flag__Wshadow
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 -Wshadow"
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-noreturn"
6996
6997		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6998printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6999		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
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-noreturn"
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 -Wmissing-format-attribute"
7126
7127		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7128printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7129		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
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 -Wmissing-format-attribute"
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 -Wredundant-decls"
7256
7257		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7258printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7259		cacheid=xorg_cv_cc_flag__Wredundant_decls
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 -Wredundant-decls"
7295			found="yes"
7296		fi
7297	fi
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313xorg_testset_save_CFLAGS="$CFLAGS"
7314
7315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7316	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7317	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7318printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7319if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7320then :
7321  printf %s "(cached) " >&6
7322else case e in #(
7323  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324/* end confdefs.h.  */
7325int i;
7326_ACEOF
7327if ac_fn_c_try_compile "$LINENO"
7328then :
7329  xorg_cv_cc_flag_unknown_warning_option=yes
7330else case e in #(
7331  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7332esac
7333fi
7334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7335esac
7336fi
7337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7338printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7339	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7340	CFLAGS="$xorg_testset_save_CFLAGS"
7341fi
7342
7343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7344	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7345		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7346	fi
7347	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7348	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7349printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7350if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7351then :
7352  printf %s "(cached) " >&6
7353else case e in #(
7354  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355/* end confdefs.h.  */
7356int i;
7357_ACEOF
7358if ac_fn_c_try_compile "$LINENO"
7359then :
7360  xorg_cv_cc_flag_unused_command_line_argument=yes
7361else case e in #(
7362  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7363esac
7364fi
7365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7366esac
7367fi
7368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7369printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7370	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7371	CFLAGS="$xorg_testset_save_CFLAGS"
7372fi
7373
7374found="no"
7375
7376	if test $found = "no" ; then
7377		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7378			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7379		fi
7380
7381		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7382			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7383		fi
7384
7385		CFLAGS="$CFLAGS -Wlogical-op"
7386
7387		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7388printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7389		cacheid=xorg_cv_cc_flag__Wlogical_op
7390		if eval test \${$cacheid+y}
7391then :
7392  printf %s "(cached) " >&6
7393else case e in #(
7394  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395/* end confdefs.h.  */
7396int i;
7397int
7398main (void)
7399{
7400
7401  ;
7402  return 0;
7403}
7404_ACEOF
7405if ac_fn_c_try_link "$LINENO"
7406then :
7407  eval $cacheid=yes
7408else case e in #(
7409  e) eval $cacheid=no ;;
7410esac
7411fi
7412rm -f core conftest.err conftest.$ac_objext conftest.beam \
7413    conftest$ac_exeext conftest.$ac_ext ;;
7414esac
7415fi
7416
7417
7418		CFLAGS="$xorg_testset_save_CFLAGS"
7419
7420		eval supported=\$$cacheid
7421		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7422printf "%s\n" "$supported" >&6; }
7423		if test "$supported" = "yes" ; then
7424			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7425			found="yes"
7426		fi
7427	fi
7428
7429
7430
7431# These are currently disabled because they are noisy.  They will be enabled
7432# in the future once the codebase is sufficiently modernized to silence
7433# them.  For now, I don't want them to drown out the other warnings.
7434# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7435# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7436# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7437
7438# Turn some warnings into errors, so we don't accidentally get successful builds
7439# when there are problems that should be fixed.
7440
7441if test "x$SELECTIVE_WERROR" = "xyes" ; then
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455xorg_testset_save_CFLAGS="$CFLAGS"
7456
7457if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7458	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7459	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7460printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7461if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7462then :
7463  printf %s "(cached) " >&6
7464else case e in #(
7465  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466/* end confdefs.h.  */
7467int i;
7468_ACEOF
7469if ac_fn_c_try_compile "$LINENO"
7470then :
7471  xorg_cv_cc_flag_unknown_warning_option=yes
7472else case e in #(
7473  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7474esac
7475fi
7476rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7477esac
7478fi
7479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7480printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7481	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7482	CFLAGS="$xorg_testset_save_CFLAGS"
7483fi
7484
7485if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7486	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7487		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7488	fi
7489	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7490	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7491printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7492if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7493then :
7494  printf %s "(cached) " >&6
7495else case e in #(
7496  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497/* end confdefs.h.  */
7498int i;
7499_ACEOF
7500if ac_fn_c_try_compile "$LINENO"
7501then :
7502  xorg_cv_cc_flag_unused_command_line_argument=yes
7503else case e in #(
7504  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7505esac
7506fi
7507rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7508esac
7509fi
7510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7511printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7512	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7513	CFLAGS="$xorg_testset_save_CFLAGS"
7514fi
7515
7516found="no"
7517
7518	if test $found = "no" ; then
7519		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7520			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7521		fi
7522
7523		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7524			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7525		fi
7526
7527		CFLAGS="$CFLAGS -Werror=implicit"
7528
7529		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7530printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7531		cacheid=xorg_cv_cc_flag__Werror_implicit
7532		if eval test \${$cacheid+y}
7533then :
7534  printf %s "(cached) " >&6
7535else case e in #(
7536  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537/* end confdefs.h.  */
7538int i;
7539int
7540main (void)
7541{
7542
7543  ;
7544  return 0;
7545}
7546_ACEOF
7547if ac_fn_c_try_link "$LINENO"
7548then :
7549  eval $cacheid=yes
7550else case e in #(
7551  e) eval $cacheid=no ;;
7552esac
7553fi
7554rm -f core conftest.err conftest.$ac_objext conftest.beam \
7555    conftest$ac_exeext conftest.$ac_ext ;;
7556esac
7557fi
7558
7559
7560		CFLAGS="$xorg_testset_save_CFLAGS"
7561
7562		eval supported=\$$cacheid
7563		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7564printf "%s\n" "$supported" >&6; }
7565		if test "$supported" = "yes" ; then
7566			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7567			found="yes"
7568		fi
7569	fi
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 -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7581
7582		{ 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
7583printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7584		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
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 -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
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=nonnull"
7711
7712		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7713printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7714		cacheid=xorg_cv_cc_flag__Werror_nonnull
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=nonnull"
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=init-self"
7841
7842		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7843printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7844		cacheid=xorg_cv_cc_flag__Werror_init_self
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=init-self"
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=main"
7971
7972		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7973printf %s "checking if $CC supports -Werror=main... " >&6; }
7974		cacheid=xorg_cv_cc_flag__Werror_main
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=main"
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=missing-braces"
8101
8102		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8103printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8104		cacheid=xorg_cv_cc_flag__Werror_missing_braces
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=missing-braces"
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=sequence-point"
8231
8232		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8233printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8234		cacheid=xorg_cv_cc_flag__Werror_sequence_point
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=sequence-point"
8270			found="yes"
8271		fi
8272	fi
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288xorg_testset_save_CFLAGS="$CFLAGS"
8289
8290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8291	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8292	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8293printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8294if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8295then :
8296  printf %s "(cached) " >&6
8297else case e in #(
8298  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299/* end confdefs.h.  */
8300int i;
8301_ACEOF
8302if ac_fn_c_try_compile "$LINENO"
8303then :
8304  xorg_cv_cc_flag_unknown_warning_option=yes
8305else case e in #(
8306  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8307esac
8308fi
8309rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8310esac
8311fi
8312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8313printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8314	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8315	CFLAGS="$xorg_testset_save_CFLAGS"
8316fi
8317
8318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8319	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8320		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8321	fi
8322	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8323	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8324printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8325if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8326then :
8327  printf %s "(cached) " >&6
8328else case e in #(
8329  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8330/* end confdefs.h.  */
8331int i;
8332_ACEOF
8333if ac_fn_c_try_compile "$LINENO"
8334then :
8335  xorg_cv_cc_flag_unused_command_line_argument=yes
8336else case e in #(
8337  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8338esac
8339fi
8340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8341esac
8342fi
8343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8344printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8345	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8346	CFLAGS="$xorg_testset_save_CFLAGS"
8347fi
8348
8349found="no"
8350
8351	if test $found = "no" ; then
8352		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8353			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8354		fi
8355
8356		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8357			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8358		fi
8359
8360		CFLAGS="$CFLAGS -Werror=return-type"
8361
8362		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8363printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8364		cacheid=xorg_cv_cc_flag__Werror_return_type
8365		if eval test \${$cacheid+y}
8366then :
8367  printf %s "(cached) " >&6
8368else case e in #(
8369  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370/* end confdefs.h.  */
8371int i;
8372int
8373main (void)
8374{
8375
8376  ;
8377  return 0;
8378}
8379_ACEOF
8380if ac_fn_c_try_link "$LINENO"
8381then :
8382  eval $cacheid=yes
8383else case e in #(
8384  e) eval $cacheid=no ;;
8385esac
8386fi
8387rm -f core conftest.err conftest.$ac_objext conftest.beam \
8388    conftest$ac_exeext conftest.$ac_ext ;;
8389esac
8390fi
8391
8392
8393		CFLAGS="$xorg_testset_save_CFLAGS"
8394
8395		eval supported=\$$cacheid
8396		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8397printf "%s\n" "$supported" >&6; }
8398		if test "$supported" = "yes" ; then
8399			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8400			found="yes"
8401		fi
8402	fi
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 -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8414
8415		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8416printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8417		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
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 -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
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=trigraphs"
8544
8545		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8546printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8547		cacheid=xorg_cv_cc_flag__Werror_trigraphs
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=trigraphs"
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=array-bounds"
8674
8675		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8676printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8677		cacheid=xorg_cv_cc_flag__Werror_array_bounds
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=array-bounds"
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=write-strings"
8804
8805		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8806printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8807		cacheid=xorg_cv_cc_flag__Werror_write_strings
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=write-strings"
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=address"
8934
8935		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8936printf %s "checking if $CC supports -Werror=address... " >&6; }
8937		cacheid=xorg_cv_cc_flag__Werror_address
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=address"
8973			found="yes"
8974		fi
8975	fi
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991xorg_testset_save_CFLAGS="$CFLAGS"
8992
8993if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8994	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8995	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8996printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8997if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8998then :
8999  printf %s "(cached) " >&6
9000else case e in #(
9001  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002/* end confdefs.h.  */
9003int i;
9004_ACEOF
9005if ac_fn_c_try_compile "$LINENO"
9006then :
9007  xorg_cv_cc_flag_unknown_warning_option=yes
9008else case e in #(
9009  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9010esac
9011fi
9012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9013esac
9014fi
9015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9016printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9017	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9018	CFLAGS="$xorg_testset_save_CFLAGS"
9019fi
9020
9021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9022	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9023		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9024	fi
9025	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9026	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9027printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9028if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9029then :
9030  printf %s "(cached) " >&6
9031else case e in #(
9032  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033/* end confdefs.h.  */
9034int i;
9035_ACEOF
9036if ac_fn_c_try_compile "$LINENO"
9037then :
9038  xorg_cv_cc_flag_unused_command_line_argument=yes
9039else case e in #(
9040  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9041esac
9042fi
9043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9044esac
9045fi
9046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9047printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9048	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9049	CFLAGS="$xorg_testset_save_CFLAGS"
9050fi
9051
9052found="no"
9053
9054	if test $found = "no" ; then
9055		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9056			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9057		fi
9058
9059		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9060			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9061		fi
9062
9063		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9064
9065		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9066printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9067		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9068		if eval test \${$cacheid+y}
9069then :
9070  printf %s "(cached) " >&6
9071else case e in #(
9072  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073/* end confdefs.h.  */
9074int i;
9075int
9076main (void)
9077{
9078
9079  ;
9080  return 0;
9081}
9082_ACEOF
9083if ac_fn_c_try_link "$LINENO"
9084then :
9085  eval $cacheid=yes
9086else case e in #(
9087  e) eval $cacheid=no ;;
9088esac
9089fi
9090rm -f core conftest.err conftest.$ac_objext conftest.beam \
9091    conftest$ac_exeext conftest.$ac_ext ;;
9092esac
9093fi
9094
9095
9096		CFLAGS="$xorg_testset_save_CFLAGS"
9097
9098		eval supported=\$$cacheid
9099		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9100printf "%s\n" "$supported" >&6; }
9101		if test "$supported" = "yes" ; then
9102			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9103			found="yes"
9104		fi
9105	fi
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 -errwarn=E_BAD_PTR_INT_COMBINATION"
9117
9118		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9119printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9120		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
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 -errwarn=E_BAD_PTR_INT_COMBINATION"
9156			found="yes"
9157		fi
9158	fi
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174xorg_testset_save_CFLAGS="$CFLAGS"
9175
9176if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9177	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9178	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9179printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9180if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9181then :
9182  printf %s "(cached) " >&6
9183else case e in #(
9184  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185/* end confdefs.h.  */
9186int i;
9187_ACEOF
9188if ac_fn_c_try_compile "$LINENO"
9189then :
9190  xorg_cv_cc_flag_unknown_warning_option=yes
9191else case e in #(
9192  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9193esac
9194fi
9195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9196esac
9197fi
9198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9199printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9200	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9201	CFLAGS="$xorg_testset_save_CFLAGS"
9202fi
9203
9204if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9205	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9206		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9207	fi
9208	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9209	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9210printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9211if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9212then :
9213  printf %s "(cached) " >&6
9214else case e in #(
9215  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216/* end confdefs.h.  */
9217int i;
9218_ACEOF
9219if ac_fn_c_try_compile "$LINENO"
9220then :
9221  xorg_cv_cc_flag_unused_command_line_argument=yes
9222else case e in #(
9223  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9224esac
9225fi
9226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9227esac
9228fi
9229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9230printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9231	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9232	CFLAGS="$xorg_testset_save_CFLAGS"
9233fi
9234
9235found="no"
9236
9237	if test $found = "no" ; then
9238		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9239			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9240		fi
9241
9242		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9243			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9244		fi
9245
9246		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9247
9248		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9249printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9250		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9251		if eval test \${$cacheid+y}
9252then :
9253  printf %s "(cached) " >&6
9254else case e in #(
9255  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256/* end confdefs.h.  */
9257int i;
9258int
9259main (void)
9260{
9261
9262  ;
9263  return 0;
9264}
9265_ACEOF
9266if ac_fn_c_try_link "$LINENO"
9267then :
9268  eval $cacheid=yes
9269else case e in #(
9270  e) eval $cacheid=no ;;
9271esac
9272fi
9273rm -f core conftest.err conftest.$ac_objext conftest.beam \
9274    conftest$ac_exeext conftest.$ac_ext ;;
9275esac
9276fi
9277
9278
9279		CFLAGS="$xorg_testset_save_CFLAGS"
9280
9281		eval supported=\$$cacheid
9282		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9283printf "%s\n" "$supported" >&6; }
9284		if test "$supported" = "yes" ; then
9285			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9286			found="yes"
9287		fi
9288	fi
9289
9290 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9291else
9292{ 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
9293printf "%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;}
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 -Wimplicit"
9380
9381		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9382printf %s "checking if $CC supports -Wimplicit... " >&6; }
9383		cacheid=xorg_cv_cc_flag__Wimplicit
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 -Wimplicit"
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 -Wnonnull"
9510
9511		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9512printf %s "checking if $CC supports -Wnonnull... " >&6; }
9513		cacheid=xorg_cv_cc_flag__Wnonnull
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 -Wnonnull"
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 -Winit-self"
9640
9641		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9642printf %s "checking if $CC supports -Winit-self... " >&6; }
9643		cacheid=xorg_cv_cc_flag__Winit_self
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 -Winit-self"
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 -Wmain"
9770
9771		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9772printf %s "checking if $CC supports -Wmain... " >&6; }
9773		cacheid=xorg_cv_cc_flag__Wmain
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 -Wmain"
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 -Wmissing-braces"
9900
9901		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9902printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9903		cacheid=xorg_cv_cc_flag__Wmissing_braces
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 -Wmissing-braces"
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 -Wsequence-point"
10030
10031		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10032printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10033		cacheid=xorg_cv_cc_flag__Wsequence_point
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 -Wsequence-point"
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 -Wreturn-type"
10160
10161		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10162printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10163		cacheid=xorg_cv_cc_flag__Wreturn_type
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 -Wreturn-type"
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 -Wtrigraphs"
10290
10291		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10292printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10293		cacheid=xorg_cv_cc_flag__Wtrigraphs
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 -Wtrigraphs"
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 -Warray-bounds"
10420
10421		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10422printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10423		cacheid=xorg_cv_cc_flag__Warray_bounds
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 -Warray-bounds"
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 -Wwrite-strings"
10550
10551		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10552printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10553		cacheid=xorg_cv_cc_flag__Wwrite_strings
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 -Wwrite-strings"
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 -Waddress"
10680
10681		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10682printf %s "checking if $CC supports -Waddress... " >&6; }
10683		cacheid=xorg_cv_cc_flag__Waddress
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 -Waddress"
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 -Wint-to-pointer-cast"
10810
10811		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10812printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10813		cacheid=xorg_cv_cc_flag__Wint_to_pointer_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 -Wint-to-pointer-cast"
10849			found="yes"
10850		fi
10851	fi
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867xorg_testset_save_CFLAGS="$CFLAGS"
10868
10869if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10870	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10871	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10872printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10873if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10874then :
10875  printf %s "(cached) " >&6
10876else case e in #(
10877  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10878/* end confdefs.h.  */
10879int i;
10880_ACEOF
10881if ac_fn_c_try_compile "$LINENO"
10882then :
10883  xorg_cv_cc_flag_unknown_warning_option=yes
10884else case e in #(
10885  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10886esac
10887fi
10888rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10889esac
10890fi
10891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10892printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10893	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10894	CFLAGS="$xorg_testset_save_CFLAGS"
10895fi
10896
10897if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10898	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10899		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10900	fi
10901	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10902	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10903printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10904if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10905then :
10906  printf %s "(cached) " >&6
10907else case e in #(
10908  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909/* end confdefs.h.  */
10910int i;
10911_ACEOF
10912if ac_fn_c_try_compile "$LINENO"
10913then :
10914  xorg_cv_cc_flag_unused_command_line_argument=yes
10915else case e in #(
10916  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10917esac
10918fi
10919rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10920esac
10921fi
10922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10923printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10924	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10925	CFLAGS="$xorg_testset_save_CFLAGS"
10926fi
10927
10928found="no"
10929
10930	if test $found = "no" ; then
10931		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10932			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10933		fi
10934
10935		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10936			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10937		fi
10938
10939		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10940
10941		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10942printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10943		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10944		if eval test \${$cacheid+y}
10945then :
10946  printf %s "(cached) " >&6
10947else case e in #(
10948  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949/* end confdefs.h.  */
10950int i;
10951int
10952main (void)
10953{
10954
10955  ;
10956  return 0;
10957}
10958_ACEOF
10959if ac_fn_c_try_link "$LINENO"
10960then :
10961  eval $cacheid=yes
10962else case e in #(
10963  e) eval $cacheid=no ;;
10964esac
10965fi
10966rm -f core conftest.err conftest.$ac_objext conftest.beam \
10967    conftest$ac_exeext conftest.$ac_ext ;;
10968esac
10969fi
10970
10971
10972		CFLAGS="$xorg_testset_save_CFLAGS"
10973
10974		eval supported=\$$cacheid
10975		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10976printf "%s\n" "$supported" >&6; }
10977		if test "$supported" = "yes" ; then
10978			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10979			found="yes"
10980		fi
10981	fi
10982
10983
10984fi
10985
10986
10987
10988
10989
10990
10991
10992		CWARNFLAGS="$BASE_CFLAGS"
10993		if  test "x$GCC" = xyes ; then
10994		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10995		fi
10996
10997
10998
10999
11000
11001
11002
11003
11004# Check whether --enable-strict-compilation was given.
11005if test ${enable_strict_compilation+y}
11006then :
11007  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11008else case e in #(
11009  e) STRICT_COMPILE=no ;;
11010esac
11011fi
11012
11013
11014
11015
11016
11017
11018STRICT_CFLAGS=""
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 -pedantic"
11105
11106		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11107printf %s "checking if $CC supports -pedantic... " >&6; }
11108		cacheid=xorg_cv_cc_flag__pedantic
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 -pedantic"
11144			found="yes"
11145		fi
11146	fi
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162xorg_testset_save_CFLAGS="$CFLAGS"
11163
11164if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11165	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11166	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11167printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11168if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11169then :
11170  printf %s "(cached) " >&6
11171else case e in #(
11172  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11173/* end confdefs.h.  */
11174int i;
11175_ACEOF
11176if ac_fn_c_try_compile "$LINENO"
11177then :
11178  xorg_cv_cc_flag_unknown_warning_option=yes
11179else case e in #(
11180  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11181esac
11182fi
11183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11184esac
11185fi
11186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11187printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11188	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11189	CFLAGS="$xorg_testset_save_CFLAGS"
11190fi
11191
11192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11193	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11194		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11195	fi
11196	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11197	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11198printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11199if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11200then :
11201  printf %s "(cached) " >&6
11202else case e in #(
11203  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11204/* end confdefs.h.  */
11205int i;
11206_ACEOF
11207if ac_fn_c_try_compile "$LINENO"
11208then :
11209  xorg_cv_cc_flag_unused_command_line_argument=yes
11210else case e in #(
11211  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11212esac
11213fi
11214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11215esac
11216fi
11217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11218printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11219	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11220	CFLAGS="$xorg_testset_save_CFLAGS"
11221fi
11222
11223found="no"
11224
11225	if test $found = "no" ; then
11226		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11227			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11228		fi
11229
11230		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11231			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11232		fi
11233
11234		CFLAGS="$CFLAGS -Werror"
11235
11236		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11237printf %s "checking if $CC supports -Werror... " >&6; }
11238		cacheid=xorg_cv_cc_flag__Werror
11239		if eval test \${$cacheid+y}
11240then :
11241  printf %s "(cached) " >&6
11242else case e in #(
11243  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244/* end confdefs.h.  */
11245int i;
11246int
11247main (void)
11248{
11249
11250  ;
11251  return 0;
11252}
11253_ACEOF
11254if ac_fn_c_try_link "$LINENO"
11255then :
11256  eval $cacheid=yes
11257else case e in #(
11258  e) eval $cacheid=no ;;
11259esac
11260fi
11261rm -f core conftest.err conftest.$ac_objext conftest.beam \
11262    conftest$ac_exeext conftest.$ac_ext ;;
11263esac
11264fi
11265
11266
11267		CFLAGS="$xorg_testset_save_CFLAGS"
11268
11269		eval supported=\$$cacheid
11270		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11271printf "%s\n" "$supported" >&6; }
11272		if test "$supported" = "yes" ; then
11273			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11274			found="yes"
11275		fi
11276	fi
11277
11278	if test $found = "no" ; then
11279		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11280			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11281		fi
11282
11283		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11284			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11285		fi
11286
11287		CFLAGS="$CFLAGS -errwarn"
11288
11289		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11290printf %s "checking if $CC supports -errwarn... " >&6; }
11291		cacheid=xorg_cv_cc_flag__errwarn
11292		if eval test \${$cacheid+y}
11293then :
11294  printf %s "(cached) " >&6
11295else case e in #(
11296  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11297/* end confdefs.h.  */
11298int i;
11299int
11300main (void)
11301{
11302
11303  ;
11304  return 0;
11305}
11306_ACEOF
11307if ac_fn_c_try_link "$LINENO"
11308then :
11309  eval $cacheid=yes
11310else case e in #(
11311  e) eval $cacheid=no ;;
11312esac
11313fi
11314rm -f core conftest.err conftest.$ac_objext conftest.beam \
11315    conftest$ac_exeext conftest.$ac_ext ;;
11316esac
11317fi
11318
11319
11320		CFLAGS="$xorg_testset_save_CFLAGS"
11321
11322		eval supported=\$$cacheid
11323		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11324printf "%s\n" "$supported" >&6; }
11325		if test "$supported" = "yes" ; then
11326			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11327			found="yes"
11328		fi
11329	fi
11330
11331
11332
11333# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11334# activate it with -Werror, so we add it here explicitly.
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348xorg_testset_save_CFLAGS="$CFLAGS"
11349
11350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11351	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11352	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11353printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11354if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11355then :
11356  printf %s "(cached) " >&6
11357else case e in #(
11358  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359/* end confdefs.h.  */
11360int i;
11361_ACEOF
11362if ac_fn_c_try_compile "$LINENO"
11363then :
11364  xorg_cv_cc_flag_unknown_warning_option=yes
11365else case e in #(
11366  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11367esac
11368fi
11369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11370esac
11371fi
11372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11373printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11374	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11375	CFLAGS="$xorg_testset_save_CFLAGS"
11376fi
11377
11378if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11379	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11380		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11381	fi
11382	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11383	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11384printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11385if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11386then :
11387  printf %s "(cached) " >&6
11388else case e in #(
11389  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390/* end confdefs.h.  */
11391int i;
11392_ACEOF
11393if ac_fn_c_try_compile "$LINENO"
11394then :
11395  xorg_cv_cc_flag_unused_command_line_argument=yes
11396else case e in #(
11397  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11398esac
11399fi
11400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11401esac
11402fi
11403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11404printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11405	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11406	CFLAGS="$xorg_testset_save_CFLAGS"
11407fi
11408
11409found="no"
11410
11411	if test $found = "no" ; then
11412		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11413			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11414		fi
11415
11416		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11417			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11418		fi
11419
11420		CFLAGS="$CFLAGS -Werror=attributes"
11421
11422		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11423printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11424		cacheid=xorg_cv_cc_flag__Werror_attributes
11425		if eval test \${$cacheid+y}
11426then :
11427  printf %s "(cached) " >&6
11428else case e in #(
11429  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430/* end confdefs.h.  */
11431int i;
11432int
11433main (void)
11434{
11435
11436  ;
11437  return 0;
11438}
11439_ACEOF
11440if ac_fn_c_try_link "$LINENO"
11441then :
11442  eval $cacheid=yes
11443else case e in #(
11444  e) eval $cacheid=no ;;
11445esac
11446fi
11447rm -f core conftest.err conftest.$ac_objext conftest.beam \
11448    conftest$ac_exeext conftest.$ac_ext ;;
11449esac
11450fi
11451
11452
11453		CFLAGS="$xorg_testset_save_CFLAGS"
11454
11455		eval supported=\$$cacheid
11456		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11457printf "%s\n" "$supported" >&6; }
11458		if test "$supported" = "yes" ; then
11459			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11460			found="yes"
11461		fi
11462	fi
11463
11464
11465
11466if test "x$STRICT_COMPILE" = "xyes"; then
11467    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11468    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11469fi
11470
11471
11472
11473
11474
11475
11476
11477
11478cat >>confdefs.h <<_ACEOF
11479#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11480_ACEOF
11481
11482	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11483	if test "x$PVM" = "x"; then
11484		PVM="0"
11485	fi
11486
11487printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11488
11489	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11490	if test "x$PVP" = "x"; then
11491		PVP="0"
11492	fi
11493
11494printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11495
11496
11497
11498CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11499mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11500|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11501touch \$(top_srcdir)/ChangeLog; \
11502echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11503
11504
11505
11506
11507macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11508INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11509mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11510|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11511touch \$(top_srcdir)/INSTALL; \
11512echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11513
11514
11515
11516
11517
11518
11519case $host_os in
11520    solaris*)
11521        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11522        # check for a man page file found in later versions that use
11523        # traditional section numbers instead
11524        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11525printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11526if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11527then :
11528  printf %s "(cached) " >&6
11529else case e in #(
11530  e) test "$cross_compiling" = yes &&
11531  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11532if test -r "/usr/share/man/man7/attributes.7"; then
11533  ac_cv_file__usr_share_man_man7_attributes_7=yes
11534else
11535  ac_cv_file__usr_share_man_man7_attributes_7=no
11536fi ;;
11537esac
11538fi
11539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11540printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11541if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11542then :
11543  SYSV_MAN_SECTIONS=false
11544else case e in #(
11545  e) SYSV_MAN_SECTIONS=true ;;
11546esac
11547fi
11548
11549        ;;
11550    *) SYSV_MAN_SECTIONS=false ;;
11551esac
11552
11553if test x$APP_MAN_SUFFIX = x    ; then
11554    APP_MAN_SUFFIX=1
11555fi
11556if test x$APP_MAN_DIR = x    ; then
11557    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11558fi
11559
11560if test x$LIB_MAN_SUFFIX = x    ; then
11561    LIB_MAN_SUFFIX=3
11562fi
11563if test x$LIB_MAN_DIR = x    ; then
11564    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11565fi
11566
11567if test x$FILE_MAN_SUFFIX = x    ; then
11568    case $SYSV_MAN_SECTIONS in
11569	true)				FILE_MAN_SUFFIX=4  ;;
11570	*)				FILE_MAN_SUFFIX=5  ;;
11571    esac
11572fi
11573if test x$FILE_MAN_DIR = x    ; then
11574    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11575fi
11576
11577if test x$MISC_MAN_SUFFIX = x    ; then
11578    case $SYSV_MAN_SECTIONS in
11579	true)				MISC_MAN_SUFFIX=5  ;;
11580	*)				MISC_MAN_SUFFIX=7  ;;
11581    esac
11582fi
11583if test x$MISC_MAN_DIR = x    ; then
11584    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11585fi
11586
11587if test x$DRIVER_MAN_SUFFIX = x    ; then
11588    case $SYSV_MAN_SECTIONS in
11589	true)				DRIVER_MAN_SUFFIX=7  ;;
11590	*)				DRIVER_MAN_SUFFIX=4  ;;
11591    esac
11592fi
11593if test x$DRIVER_MAN_DIR = x    ; then
11594    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11595fi
11596
11597if test x$ADMIN_MAN_SUFFIX = x    ; then
11598    case $SYSV_MAN_SECTIONS in
11599	true)				ADMIN_MAN_SUFFIX=1m ;;
11600	*)				ADMIN_MAN_SUFFIX=8  ;;
11601    esac
11602fi
11603if test x$ADMIN_MAN_DIR = x    ; then
11604    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11605fi
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621XORG_MAN_PAGE="X Version 11"
11622
11623MAN_SUBSTS="\
11624	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11625	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11626	-e 's|__xservername__|Xorg|g' \
11627	-e 's|__xconfigfile__|xorg.conf|g' \
11628	-e 's|__projectroot__|\$(prefix)|g' \
11629	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11630	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11631	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11632	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11633	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11634	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11635	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11636
11637
11638
11639
11640AM_DEFAULT_VERBOSITY=0
11641
11642
11643
11644# Define the installation directory for the x11 performance compare scripts
11645x11perfcompdir=$datadir/X11/x11perfcomp
11646
11647
11648# Checks for programs run by the scripts we install
11649# Extract the first word of "mktemp", so it can be a program name with args.
11650set dummy mktemp; ac_word=$2
11651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11652printf %s "checking for $ac_word... " >&6; }
11653if test ${ac_cv_path_MKTEMP+y}
11654then :
11655  printf %s "(cached) " >&6
11656else case e in #(
11657  e) case $MKTEMP in
11658  [\\/]* | ?:[\\/]*)
11659  ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
11660  ;;
11661  *)
11662  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663for as_dir in $PATH
11664do
11665  IFS=$as_save_IFS
11666  case $as_dir in #(((
11667    '') as_dir=./ ;;
11668    */) ;;
11669    *) as_dir=$as_dir/ ;;
11670  esac
11671    for ac_exec_ext in '' $ac_executable_extensions; do
11672  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11673    ac_cv_path_MKTEMP="$as_dir$ac_word$ac_exec_ext"
11674    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11675    break 2
11676  fi
11677done
11678  done
11679IFS=$as_save_IFS
11680
11681  ;;
11682esac ;;
11683esac
11684fi
11685MKTEMP=$ac_cv_path_MKTEMP
11686if test -n "$MKTEMP"; then
11687  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
11688printf "%s\n" "$MKTEMP" >&6; }
11689else
11690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691printf "%s\n" "no" >&6; }
11692fi
11693
11694
11695
11696# Checks for pkg-config packages
11697
11698pkg_failed=no
11699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11PERF" >&5
11700printf %s "checking for X11PERF... " >&6; }
11701
11702if test -n "$X11PERF_CFLAGS"; then
11703    pkg_cv_X11PERF_CFLAGS="$X11PERF_CFLAGS"
11704 elif test -n "$PKG_CONFIG"; then
11705    if test -n "$PKG_CONFIG" && \
11706    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xproto >= 7.0.25\""; } >&5
11707  ($PKG_CONFIG --exists --print-errors "x11 xmuu xproto >= 7.0.25") 2>&5
11708  ac_status=$?
11709  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11710  test $ac_status = 0; }; then
11711  pkg_cv_X11PERF_CFLAGS=`$PKG_CONFIG --cflags "x11 xmuu xproto >= 7.0.25" 2>/dev/null`
11712		      test "x$?" != "x0" && pkg_failed=yes
11713else
11714  pkg_failed=yes
11715fi
11716 else
11717    pkg_failed=untried
11718fi
11719if test -n "$X11PERF_LIBS"; then
11720    pkg_cv_X11PERF_LIBS="$X11PERF_LIBS"
11721 elif test -n "$PKG_CONFIG"; then
11722    if test -n "$PKG_CONFIG" && \
11723    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xproto >= 7.0.25\""; } >&5
11724  ($PKG_CONFIG --exists --print-errors "x11 xmuu xproto >= 7.0.25") 2>&5
11725  ac_status=$?
11726  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11727  test $ac_status = 0; }; then
11728  pkg_cv_X11PERF_LIBS=`$PKG_CONFIG --libs "x11 xmuu xproto >= 7.0.25" 2>/dev/null`
11729		      test "x$?" != "x0" && pkg_failed=yes
11730else
11731  pkg_failed=yes
11732fi
11733 else
11734    pkg_failed=untried
11735fi
11736
11737
11738
11739if test $pkg_failed = yes; then
11740   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741printf "%s\n" "no" >&6; }
11742
11743if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11744        _pkg_short_errors_supported=yes
11745else
11746        _pkg_short_errors_supported=no
11747fi
11748        if test $_pkg_short_errors_supported = yes; then
11749	        X11PERF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xmuu xproto >= 7.0.25" 2>&1`
11750        else
11751	        X11PERF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xmuu xproto >= 7.0.25" 2>&1`
11752        fi
11753	# Put the nasty error message in config.log where it belongs
11754	echo "$X11PERF_PKG_ERRORS" >&5
11755
11756	as_fn_error $? "Package requirements (x11 xmuu xproto >= 7.0.25) were not met:
11757
11758$X11PERF_PKG_ERRORS
11759
11760Consider adjusting the PKG_CONFIG_PATH environment variable if you
11761installed software in a non-standard prefix.
11762
11763Alternatively, you may set the environment variables X11PERF_CFLAGS
11764and X11PERF_LIBS to avoid the need to call pkg-config.
11765See the pkg-config man page for more details." "$LINENO" 5
11766elif test $pkg_failed = untried; then
11767     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11768printf "%s\n" "no" >&6; }
11769	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11770printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11771as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11772is in your PATH or set the PKG_CONFIG environment variable to the full
11773path to pkg-config.
11774
11775Alternatively, you may set the environment variables X11PERF_CFLAGS
11776and X11PERF_LIBS to avoid the need to call pkg-config.
11777See the pkg-config man page for more details.
11778
11779To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11780See 'config.log' for more details" "$LINENO" 5; }
11781else
11782	X11PERF_CFLAGS=$pkg_cv_X11PERF_CFLAGS
11783	X11PERF_LIBS=$pkg_cv_X11PERF_LIBS
11784        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11785printf "%s\n" "yes" >&6; }
11786
11787fi
11788
11789# Check for Xrender library
11790
11791pkg_failed=no
11792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5
11793printf %s "checking for XRENDER... " >&6; }
11794
11795if test -n "$XRENDER_CFLAGS"; then
11796    pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
11797 elif test -n "$PKG_CONFIG"; then
11798    if test -n "$PKG_CONFIG" && \
11799    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
11800  ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
11801  ac_status=$?
11802  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11803  test $ac_status = 0; }; then
11804  pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender" 2>/dev/null`
11805		      test "x$?" != "x0" && pkg_failed=yes
11806else
11807  pkg_failed=yes
11808fi
11809 else
11810    pkg_failed=untried
11811fi
11812if test -n "$XRENDER_LIBS"; then
11813    pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
11814 elif test -n "$PKG_CONFIG"; then
11815    if test -n "$PKG_CONFIG" && \
11816    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
11817  ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
11818  ac_status=$?
11819  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11820  test $ac_status = 0; }; then
11821  pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender" 2>/dev/null`
11822		      test "x$?" != "x0" && pkg_failed=yes
11823else
11824  pkg_failed=yes
11825fi
11826 else
11827    pkg_failed=untried
11828fi
11829
11830
11831
11832if test $pkg_failed = yes; then
11833   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834printf "%s\n" "no" >&6; }
11835
11836if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11837        _pkg_short_errors_supported=yes
11838else
11839        _pkg_short_errors_supported=no
11840fi
11841        if test $_pkg_short_errors_supported = yes; then
11842	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender" 2>&1`
11843        else
11844	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender" 2>&1`
11845        fi
11846	# Put the nasty error message in config.log where it belongs
11847	echo "$XRENDER_PKG_ERRORS" >&5
11848
11849	xrender_found=no
11850elif test $pkg_failed = untried; then
11851     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11852printf "%s\n" "no" >&6; }
11853	xrender_found=no
11854else
11855	XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
11856	XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
11857        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11858printf "%s\n" "yes" >&6; }
11859	xrender_found=yes
11860fi
11861case "$xrender_found" in
11862yes)
11863
11864printf "%s\n" "#define XRENDER 1" >>confdefs.h
11865
11866	;;
11867esac
11868
11869# Check for Xft library
11870
11871pkg_failed=no
11872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5
11873printf %s "checking for XFT... " >&6; }
11874
11875if test -n "$XFT_CFLAGS"; then
11876    pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
11877 elif test -n "$PKG_CONFIG"; then
11878    if test -n "$PKG_CONFIG" && \
11879    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft fontconfig\""; } >&5
11880  ($PKG_CONFIG --exists --print-errors "xft fontconfig") 2>&5
11881  ac_status=$?
11882  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11883  test $ac_status = 0; }; then
11884  pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft fontconfig" 2>/dev/null`
11885		      test "x$?" != "x0" && pkg_failed=yes
11886else
11887  pkg_failed=yes
11888fi
11889 else
11890    pkg_failed=untried
11891fi
11892if test -n "$XFT_LIBS"; then
11893    pkg_cv_XFT_LIBS="$XFT_LIBS"
11894 elif test -n "$PKG_CONFIG"; then
11895    if test -n "$PKG_CONFIG" && \
11896    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft fontconfig\""; } >&5
11897  ($PKG_CONFIG --exists --print-errors "xft fontconfig") 2>&5
11898  ac_status=$?
11899  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11900  test $ac_status = 0; }; then
11901  pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft fontconfig" 2>/dev/null`
11902		      test "x$?" != "x0" && pkg_failed=yes
11903else
11904  pkg_failed=yes
11905fi
11906 else
11907    pkg_failed=untried
11908fi
11909
11910
11911
11912if test $pkg_failed = yes; then
11913   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914printf "%s\n" "no" >&6; }
11915
11916if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11917        _pkg_short_errors_supported=yes
11918else
11919        _pkg_short_errors_supported=no
11920fi
11921        if test $_pkg_short_errors_supported = yes; then
11922	        XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xft fontconfig" 2>&1`
11923        else
11924	        XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xft fontconfig" 2>&1`
11925        fi
11926	# Put the nasty error message in config.log where it belongs
11927	echo "$XFT_PKG_ERRORS" >&5
11928
11929	xft_found=no
11930elif test $pkg_failed = untried; then
11931     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932printf "%s\n" "no" >&6; }
11933	xft_found=no
11934else
11935	XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
11936	XFT_LIBS=$pkg_cv_XFT_LIBS
11937        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11938printf "%s\n" "yes" >&6; }
11939	xft_found=yes
11940fi
11941case "$xft_found" in
11942yes)
11943
11944printf "%s\n" "#define XFT 1" >>confdefs.h
11945
11946	;;
11947esac
11948
11949# Check for MIT-SHM extension
11950
11951pkg_failed=no
11952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
11953printf %s "checking for XEXT... " >&6; }
11954
11955if test -n "$XEXT_CFLAGS"; then
11956    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
11957 elif test -n "$PKG_CONFIG"; then
11958    if test -n "$PKG_CONFIG" && \
11959    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11960  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11961  ac_status=$?
11962  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11963  test $ac_status = 0; }; then
11964  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
11965		      test "x$?" != "x0" && pkg_failed=yes
11966else
11967  pkg_failed=yes
11968fi
11969 else
11970    pkg_failed=untried
11971fi
11972if test -n "$XEXT_LIBS"; then
11973    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
11974 elif test -n "$PKG_CONFIG"; then
11975    if test -n "$PKG_CONFIG" && \
11976    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11977  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11978  ac_status=$?
11979  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11980  test $ac_status = 0; }; then
11981  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
11982		      test "x$?" != "x0" && pkg_failed=yes
11983else
11984  pkg_failed=yes
11985fi
11986 else
11987    pkg_failed=untried
11988fi
11989
11990
11991
11992if test $pkg_failed = yes; then
11993   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994printf "%s\n" "no" >&6; }
11995
11996if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11997        _pkg_short_errors_supported=yes
11998else
11999        _pkg_short_errors_supported=no
12000fi
12001        if test $_pkg_short_errors_supported = yes; then
12002	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
12003        else
12004	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
12005        fi
12006	# Put the nasty error message in config.log where it belongs
12007	echo "$XEXT_PKG_ERRORS" >&5
12008
12009	xext_found=no
12010elif test $pkg_failed = untried; then
12011     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012printf "%s\n" "no" >&6; }
12013	xext_found=no
12014else
12015	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
12016	XEXT_LIBS=$pkg_cv_XEXT_LIBS
12017        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12018printf "%s\n" "yes" >&6; }
12019	xext_found=yes
12020fi
12021case "$xext_found" in
12022yes)
12023	save_LIBS="$LIBS"
12024	LIBS="$XEXT_LIBS $LIBS"
12025
12026  for ac_func in XShmQueryExtension
12027do :
12028  ac_fn_c_check_func "$LINENO" "XShmQueryExtension" "ac_cv_func_XShmQueryExtension"
12029if test "x$ac_cv_func_XShmQueryExtension" = xyes
12030then :
12031  printf "%s\n" "#define HAVE_XSHMQUERYEXTENSION 1" >>confdefs.h
12032
12033printf "%s\n" "#define MITSHM 1" >>confdefs.h
12034
12035fi
12036
12037done
12038	LIBS="$save_LIBS"
12039	;;
12040esac
12041
12042# Substitute config variables in man pages
12043ac_config_files="$ac_config_files man/x11perf.1:man/x11perf.man"
12044
12045ac_config_files="$ac_config_files man/x11perfcomp.1:man/x11perfcomp.man"
12046
12047ac_config_files="$ac_config_files man/Xmark.1:man/Xmark.man"
12048
12049
12050ac_config_files="$ac_config_files Makefile man/Makefile"
12051
12052cat >confcache <<\_ACEOF
12053# This file is a shell script that caches the results of configure
12054# tests run on this system so they can be shared between configure
12055# scripts and configure runs, see configure's option --config-cache.
12056# It is not useful on other systems.  If it contains results you don't
12057# want to keep, you may remove or edit it.
12058#
12059# config.status only pays attention to the cache file if you give it
12060# the --recheck option to rerun configure.
12061#
12062# 'ac_cv_env_foo' variables (set or unset) will be overridden when
12063# loading this file, other *unset* 'ac_cv_foo' will be assigned the
12064# following values.
12065
12066_ACEOF
12067
12068# The following way of writing the cache mishandles newlines in values,
12069# but we know of no workaround that is simple, portable, and efficient.
12070# So, we kill variables containing newlines.
12071# Ultrix sh set writes to stderr and can't be redirected directly,
12072# and sets the high bit in the cache file unless we assign to the vars.
12073(
12074  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12075    eval ac_val=\$$ac_var
12076    case $ac_val in #(
12077    *${as_nl}*)
12078      case $ac_var in #(
12079      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12080printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12081      esac
12082      case $ac_var in #(
12083      _ | IFS | as_nl) ;; #(
12084      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12085      *) { eval $ac_var=; unset $ac_var;} ;;
12086      esac ;;
12087    esac
12088  done
12089
12090  (set) 2>&1 |
12091    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12092    *${as_nl}ac_space=\ *)
12093      # 'set' does not quote correctly, so add quotes: double-quote
12094      # substitution turns \\\\ into \\, and sed turns \\ into \.
12095      sed -n \
12096	"s/'/'\\\\''/g;
12097	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12098      ;; #(
12099    *)
12100      # 'set' quotes correctly as required by POSIX, so do not add quotes.
12101      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12102      ;;
12103    esac |
12104    sort
12105) |
12106  sed '
12107     /^ac_cv_env_/b end
12108     t clear
12109     :clear
12110     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12111     t end
12112     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12113     :end' >>confcache
12114if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12115  if test -w "$cache_file"; then
12116    if test "x$cache_file" != "x/dev/null"; then
12117      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12118printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12119      if test ! -f "$cache_file" || test -h "$cache_file"; then
12120	cat confcache >"$cache_file"
12121      else
12122        case $cache_file in #(
12123        */* | ?:*)
12124	  mv -f confcache "$cache_file"$$ &&
12125	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12126        *)
12127	  mv -f confcache "$cache_file" ;;
12128	esac
12129      fi
12130    fi
12131  else
12132    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12133printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12134  fi
12135fi
12136rm -f confcache
12137
12138test "x$prefix" = xNONE && prefix=$ac_default_prefix
12139# Let make expand exec_prefix.
12140test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12141
12142DEFS=-DHAVE_CONFIG_H
12143
12144ac_libobjs=
12145ac_ltlibobjs=
12146U=
12147for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12148  # 1. Remove the extension, and $U if already installed.
12149  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12150  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12151  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12152  #    will be set to the directory where LIBOBJS objects are built.
12153  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12154  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12155done
12156LIBOBJS=$ac_libobjs
12157
12158LTLIBOBJS=$ac_ltlibobjs
12159
12160
12161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12162printf %s "checking that generated files are newer than configure... " >&6; }
12163   if test -n "$am_sleep_pid"; then
12164     # Hide warnings about reused PIDs.
12165     wait $am_sleep_pid 2>/dev/null
12166   fi
12167   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12168printf "%s\n" "done" >&6; }
12169case $enable_silent_rules in # (((
12170  yes) AM_DEFAULT_VERBOSITY=0;;
12171   no) AM_DEFAULT_VERBOSITY=1;;
12172esac
12173if test $am_cv_make_support_nested_variables = yes; then
12174    AM_V='$(V)'
12175  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12176else
12177  AM_V=$AM_DEFAULT_VERBOSITY
12178  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12179fi
12180
12181 if test -n "$EXEEXT"; then
12182  am__EXEEXT_TRUE=
12183  am__EXEEXT_FALSE='#'
12184else
12185  am__EXEEXT_TRUE='#'
12186  am__EXEEXT_FALSE=
12187fi
12188
12189if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12190  as_fn_error $? "conditional \"AMDEP\" was never defined.
12191Usually this means the macro was only invoked conditionally." "$LINENO" 5
12192fi
12193if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12194  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12195Usually this means the macro was only invoked conditionally." "$LINENO" 5
12196fi
12197
12198: "${CONFIG_STATUS=./config.status}"
12199ac_write_fail=0
12200ac_clean_files_save=$ac_clean_files
12201ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12203printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12204as_write_fail=0
12205cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12206#! $SHELL
12207# Generated by $as_me.
12208# Run this file to recreate the current configuration.
12209# Compiler output produced by configure, useful for debugging
12210# configure, is in config.log if it exists.
12211
12212debug=false
12213ac_cs_recheck=false
12214ac_cs_silent=false
12215
12216SHELL=\${CONFIG_SHELL-$SHELL}
12217export SHELL
12218_ASEOF
12219cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12220## -------------------- ##
12221## M4sh Initialization. ##
12222## -------------------- ##
12223
12224# Be more Bourne compatible
12225DUALCASE=1; export DUALCASE # for MKS sh
12226if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12227then :
12228  emulate sh
12229  NULLCMD=:
12230  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12231  # is contrary to our usage.  Disable this feature.
12232  alias -g '${1+"$@"}'='"$@"'
12233  setopt NO_GLOB_SUBST
12234else case e in #(
12235  e) case `(set -o) 2>/dev/null` in #(
12236  *posix*) :
12237    set -o posix ;; #(
12238  *) :
12239     ;;
12240esac ;;
12241esac
12242fi
12243
12244
12245
12246# Reset variables that may have inherited troublesome values from
12247# the environment.
12248
12249# IFS needs to be set, to space, tab, and newline, in precisely that order.
12250# (If _AS_PATH_WALK were called with IFS unset, it would have the
12251# side effect of setting IFS to empty, thus disabling word splitting.)
12252# Quoting is to prevent editors from complaining about space-tab.
12253as_nl='
12254'
12255export as_nl
12256IFS=" ""	$as_nl"
12257
12258PS1='$ '
12259PS2='> '
12260PS4='+ '
12261
12262# Ensure predictable behavior from utilities with locale-dependent output.
12263LC_ALL=C
12264export LC_ALL
12265LANGUAGE=C
12266export LANGUAGE
12267
12268# We cannot yet rely on "unset" to work, but we need these variables
12269# to be unset--not just set to an empty or harmless value--now, to
12270# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12271# also avoids known problems related to "unset" and subshell syntax
12272# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12273for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12274do eval test \${$as_var+y} \
12275  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12276done
12277
12278# Ensure that fds 0, 1, and 2 are open.
12279if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12280if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12281if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12282
12283# The user is always right.
12284if ${PATH_SEPARATOR+false} :; then
12285  PATH_SEPARATOR=:
12286  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12287    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12288      PATH_SEPARATOR=';'
12289  }
12290fi
12291
12292
12293# Find who we are.  Look in the path if we contain no directory separator.
12294as_myself=
12295case $0 in #((
12296  *[\\/]* ) as_myself=$0 ;;
12297  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12298for as_dir in $PATH
12299do
12300  IFS=$as_save_IFS
12301  case $as_dir in #(((
12302    '') as_dir=./ ;;
12303    */) ;;
12304    *) as_dir=$as_dir/ ;;
12305  esac
12306    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12307  done
12308IFS=$as_save_IFS
12309
12310     ;;
12311esac
12312# We did not find ourselves, most probably we were run as 'sh COMMAND'
12313# in which case we are not to be found in the path.
12314if test "x$as_myself" = x; then
12315  as_myself=$0
12316fi
12317if test ! -f "$as_myself"; then
12318  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12319  exit 1
12320fi
12321
12322
12323
12324# as_fn_error STATUS ERROR [LINENO LOG_FD]
12325# ----------------------------------------
12326# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12327# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12328# script with STATUS, using 1 if that was 0.
12329as_fn_error ()
12330{
12331  as_status=$1; test $as_status -eq 0 && as_status=1
12332  if test "$4"; then
12333    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12334    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12335  fi
12336  printf "%s\n" "$as_me: error: $2" >&2
12337  as_fn_exit $as_status
12338} # as_fn_error
12339
12340
12341# as_fn_set_status STATUS
12342# -----------------------
12343# Set $? to STATUS, without forking.
12344as_fn_set_status ()
12345{
12346  return $1
12347} # as_fn_set_status
12348
12349# as_fn_exit STATUS
12350# -----------------
12351# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12352as_fn_exit ()
12353{
12354  set +e
12355  as_fn_set_status $1
12356  exit $1
12357} # as_fn_exit
12358
12359# as_fn_unset VAR
12360# ---------------
12361# Portably unset VAR.
12362as_fn_unset ()
12363{
12364  { eval $1=; unset $1;}
12365}
12366as_unset=as_fn_unset
12367
12368# as_fn_append VAR VALUE
12369# ----------------------
12370# Append the text in VALUE to the end of the definition contained in VAR. Take
12371# advantage of any shell optimizations that allow amortized linear growth over
12372# repeated appends, instead of the typical quadratic growth present in naive
12373# implementations.
12374if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12375then :
12376  eval 'as_fn_append ()
12377  {
12378    eval $1+=\$2
12379  }'
12380else case e in #(
12381  e) as_fn_append ()
12382  {
12383    eval $1=\$$1\$2
12384  } ;;
12385esac
12386fi # as_fn_append
12387
12388# as_fn_arith ARG...
12389# ------------------
12390# Perform arithmetic evaluation on the ARGs, and store the result in the
12391# global $as_val. Take advantage of shells that can avoid forks. The arguments
12392# must be portable across $(()) and expr.
12393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12394then :
12395  eval 'as_fn_arith ()
12396  {
12397    as_val=$(( $* ))
12398  }'
12399else case e in #(
12400  e) as_fn_arith ()
12401  {
12402    as_val=`expr "$@" || test $? -eq 1`
12403  } ;;
12404esac
12405fi # as_fn_arith
12406
12407
12408if expr a : '\(a\)' >/dev/null 2>&1 &&
12409   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12410  as_expr=expr
12411else
12412  as_expr=false
12413fi
12414
12415if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12416  as_basename=basename
12417else
12418  as_basename=false
12419fi
12420
12421if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12422  as_dirname=dirname
12423else
12424  as_dirname=false
12425fi
12426
12427as_me=`$as_basename -- "$0" ||
12428$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12429	 X"$0" : 'X\(//\)$' \| \
12430	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12431printf "%s\n" X/"$0" |
12432    sed '/^.*\/\([^/][^/]*\)\/*$/{
12433	    s//\1/
12434	    q
12435	  }
12436	  /^X\/\(\/\/\)$/{
12437	    s//\1/
12438	    q
12439	  }
12440	  /^X\/\(\/\).*/{
12441	    s//\1/
12442	    q
12443	  }
12444	  s/.*/./; q'`
12445
12446# Avoid depending upon Character Ranges.
12447as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12448as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12449as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12450as_cr_digits='0123456789'
12451as_cr_alnum=$as_cr_Letters$as_cr_digits
12452
12453
12454# Determine whether it's possible to make 'echo' print without a newline.
12455# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12456# for compatibility with existing Makefiles.
12457ECHO_C= ECHO_N= ECHO_T=
12458case `echo -n x` in #(((((
12459-n*)
12460  case `echo 'xy\c'` in
12461  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12462  xy)  ECHO_C='\c';;
12463  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12464       ECHO_T='	';;
12465  esac;;
12466*)
12467  ECHO_N='-n';;
12468esac
12469
12470# For backward compatibility with old third-party macros, we provide
12471# the shell variables $as_echo and $as_echo_n.  New code should use
12472# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12473as_echo='printf %s\n'
12474as_echo_n='printf %s'
12475
12476rm -f conf$$ conf$$.exe conf$$.file
12477if test -d conf$$.dir; then
12478  rm -f conf$$.dir/conf$$.file
12479else
12480  rm -f conf$$.dir
12481  mkdir conf$$.dir 2>/dev/null
12482fi
12483if (echo >conf$$.file) 2>/dev/null; then
12484  if ln -s conf$$.file conf$$ 2>/dev/null; then
12485    as_ln_s='ln -s'
12486    # ... but there are two gotchas:
12487    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12488    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12489    # In both cases, we have to default to 'cp -pR'.
12490    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12491      as_ln_s='cp -pR'
12492  elif ln conf$$.file conf$$ 2>/dev/null; then
12493    as_ln_s=ln
12494  else
12495    as_ln_s='cp -pR'
12496  fi
12497else
12498  as_ln_s='cp -pR'
12499fi
12500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12501rmdir conf$$.dir 2>/dev/null
12502
12503
12504# as_fn_mkdir_p
12505# -------------
12506# Create "$as_dir" as a directory, including parents if necessary.
12507as_fn_mkdir_p ()
12508{
12509
12510  case $as_dir in #(
12511  -*) as_dir=./$as_dir;;
12512  esac
12513  test -d "$as_dir" || eval $as_mkdir_p || {
12514    as_dirs=
12515    while :; do
12516      case $as_dir in #(
12517      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12518      *) as_qdir=$as_dir;;
12519      esac
12520      as_dirs="'$as_qdir' $as_dirs"
12521      as_dir=`$as_dirname -- "$as_dir" ||
12522$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12523	 X"$as_dir" : 'X\(//\)[^/]' \| \
12524	 X"$as_dir" : 'X\(//\)$' \| \
12525	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12526printf "%s\n" X"$as_dir" |
12527    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12528	    s//\1/
12529	    q
12530	  }
12531	  /^X\(\/\/\)[^/].*/{
12532	    s//\1/
12533	    q
12534	  }
12535	  /^X\(\/\/\)$/{
12536	    s//\1/
12537	    q
12538	  }
12539	  /^X\(\/\).*/{
12540	    s//\1/
12541	    q
12542	  }
12543	  s/.*/./; q'`
12544      test -d "$as_dir" && break
12545    done
12546    test -z "$as_dirs" || eval "mkdir $as_dirs"
12547  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12548
12549
12550} # as_fn_mkdir_p
12551if mkdir -p . 2>/dev/null; then
12552  as_mkdir_p='mkdir -p "$as_dir"'
12553else
12554  test -d ./-p && rmdir ./-p
12555  as_mkdir_p=false
12556fi
12557
12558
12559# as_fn_executable_p FILE
12560# -----------------------
12561# Test if FILE is an executable regular file.
12562as_fn_executable_p ()
12563{
12564  test -f "$1" && test -x "$1"
12565} # as_fn_executable_p
12566as_test_x='test -x'
12567as_executable_p=as_fn_executable_p
12568
12569# Sed expression to map a string onto a valid CPP name.
12570as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12571as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12572
12573# Sed expression to map a string onto a valid variable name.
12574as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12575as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12576
12577
12578exec 6>&1
12579## ----------------------------------- ##
12580## Main body of $CONFIG_STATUS script. ##
12581## ----------------------------------- ##
12582_ASEOF
12583test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12584
12585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12586# Save the log message, to keep $0 and so on meaningful, and to
12587# report actual input values of CONFIG_FILES etc. instead of their
12588# values after options handling.
12589ac_log="
12590This file was extended by x11perf $as_me 1.7.0, which was
12591generated by GNU Autoconf 2.72.  Invocation command line was
12592
12593  CONFIG_FILES    = $CONFIG_FILES
12594  CONFIG_HEADERS  = $CONFIG_HEADERS
12595  CONFIG_LINKS    = $CONFIG_LINKS
12596  CONFIG_COMMANDS = $CONFIG_COMMANDS
12597  $ $0 $@
12598
12599on `(hostname || uname -n) 2>/dev/null | sed 1q`
12600"
12601
12602_ACEOF
12603
12604case $ac_config_files in *"
12605"*) set x $ac_config_files; shift; ac_config_files=$*;;
12606esac
12607
12608case $ac_config_headers in *"
12609"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12610esac
12611
12612
12613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12614# Files that config.status was made for.
12615config_files="$ac_config_files"
12616config_headers="$ac_config_headers"
12617config_commands="$ac_config_commands"
12618
12619_ACEOF
12620
12621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12622ac_cs_usage="\
12623'$as_me' instantiates files and other configuration actions
12624from templates according to the current configuration.  Unless the files
12625and actions are specified as TAGs, all are instantiated by default.
12626
12627Usage: $0 [OPTION]... [TAG]...
12628
12629  -h, --help       print this help, then exit
12630  -V, --version    print version number and configuration settings, then exit
12631      --config     print configuration, then exit
12632  -q, --quiet, --silent
12633                   do not print progress messages
12634  -d, --debug      don't remove temporary files
12635      --recheck    update $as_me by reconfiguring in the same conditions
12636      --file=FILE[:TEMPLATE]
12637                   instantiate the configuration file FILE
12638      --header=FILE[:TEMPLATE]
12639                   instantiate the configuration header FILE
12640
12641Configuration files:
12642$config_files
12643
12644Configuration headers:
12645$config_headers
12646
12647Configuration commands:
12648$config_commands
12649
12650Report bugs to <https://gitlab.freedesktop.org/xorg/test/x11perf/-/issues>."
12651
12652_ACEOF
12653ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12654ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12656ac_cs_config='$ac_cs_config_escaped'
12657ac_cs_version="\\
12658x11perf config.status 1.7.0
12659configured by $0, generated by GNU Autoconf 2.72,
12660  with options \\"\$ac_cs_config\\"
12661
12662Copyright (C) 2023 Free Software Foundation, Inc.
12663This config.status script is free software; the Free Software Foundation
12664gives unlimited permission to copy, distribute and modify it."
12665
12666ac_pwd='$ac_pwd'
12667srcdir='$srcdir'
12668INSTALL='$INSTALL'
12669MKDIR_P='$MKDIR_P'
12670AWK='$AWK'
12671test -n "\$AWK" || AWK=awk
12672_ACEOF
12673
12674cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12675# The default lists apply if the user does not specify any file.
12676ac_need_defaults=:
12677while test $# != 0
12678do
12679  case $1 in
12680  --*=?*)
12681    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12682    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12683    ac_shift=:
12684    ;;
12685  --*=)
12686    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12687    ac_optarg=
12688    ac_shift=:
12689    ;;
12690  *)
12691    ac_option=$1
12692    ac_optarg=$2
12693    ac_shift=shift
12694    ;;
12695  esac
12696
12697  case $ac_option in
12698  # Handling of the options.
12699  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12700    ac_cs_recheck=: ;;
12701  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12702    printf "%s\n" "$ac_cs_version"; exit ;;
12703  --config | --confi | --conf | --con | --co | --c )
12704    printf "%s\n" "$ac_cs_config"; exit ;;
12705  --debug | --debu | --deb | --de | --d | -d )
12706    debug=: ;;
12707  --file | --fil | --fi | --f )
12708    $ac_shift
12709    case $ac_optarg in
12710    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12711    '') as_fn_error $? "missing file argument" ;;
12712    esac
12713    as_fn_append CONFIG_FILES " '$ac_optarg'"
12714    ac_need_defaults=false;;
12715  --header | --heade | --head | --hea )
12716    $ac_shift
12717    case $ac_optarg in
12718    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12719    esac
12720    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12721    ac_need_defaults=false;;
12722  --he | --h)
12723    # Conflict between --help and --header
12724    as_fn_error $? "ambiguous option: '$1'
12725Try '$0 --help' for more information.";;
12726  --help | --hel | -h )
12727    printf "%s\n" "$ac_cs_usage"; exit ;;
12728  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12729  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12730    ac_cs_silent=: ;;
12731
12732  # This is an error.
12733  -*) as_fn_error $? "unrecognized option: '$1'
12734Try '$0 --help' for more information." ;;
12735
12736  *) as_fn_append ac_config_targets " $1"
12737     ac_need_defaults=false ;;
12738
12739  esac
12740  shift
12741done
12742
12743ac_configure_extra_args=
12744
12745if $ac_cs_silent; then
12746  exec 6>/dev/null
12747  ac_configure_extra_args="$ac_configure_extra_args --silent"
12748fi
12749
12750_ACEOF
12751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12752if \$ac_cs_recheck; then
12753  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12754  shift
12755  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12756  CONFIG_SHELL='$SHELL'
12757  export CONFIG_SHELL
12758  exec "\$@"
12759fi
12760
12761_ACEOF
12762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12763exec 5>>config.log
12764{
12765  echo
12766  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12767## Running $as_me. ##
12768_ASBOX
12769  printf "%s\n" "$ac_log"
12770} >&5
12771
12772_ACEOF
12773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12774#
12775# INIT-COMMANDS
12776#
12777AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12778
12779_ACEOF
12780
12781cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12782
12783# Handling of arguments.
12784for ac_config_target in $ac_config_targets
12785do
12786  case $ac_config_target in
12787    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12788    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12789    "man/x11perf.1") CONFIG_FILES="$CONFIG_FILES man/x11perf.1:man/x11perf.man" ;;
12790    "man/x11perfcomp.1") CONFIG_FILES="$CONFIG_FILES man/x11perfcomp.1:man/x11perfcomp.man" ;;
12791    "man/Xmark.1") CONFIG_FILES="$CONFIG_FILES man/Xmark.1:man/Xmark.man" ;;
12792    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12793    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12794
12795  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12796  esac
12797done
12798
12799
12800# If the user did not use the arguments to specify the items to instantiate,
12801# then the envvar interface is used.  Set only those that are not.
12802# We use the long form for the default assignment because of an extremely
12803# bizarre bug on SunOS 4.1.3.
12804if $ac_need_defaults; then
12805  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12806  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12807  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12808fi
12809
12810# Have a temporary directory for convenience.  Make it in the build tree
12811# simply because there is no reason against having it here, and in addition,
12812# creating and moving files from /tmp can sometimes cause problems.
12813# Hook for its removal unless debugging.
12814# Note that there is a small window in which the directory will not be cleaned:
12815# after its creation but before its name has been assigned to '$tmp'.
12816$debug ||
12817{
12818  tmp= ac_tmp=
12819  trap 'exit_status=$?
12820  : "${ac_tmp:=$tmp}"
12821  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12822' 0
12823  trap 'as_fn_exit 1' 1 2 13 15
12824}
12825# Create a (secure) tmp directory for tmp files.
12826
12827{
12828  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12829  test -d "$tmp"
12830}  ||
12831{
12832  tmp=./conf$$-$RANDOM
12833  (umask 077 && mkdir "$tmp")
12834} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12835ac_tmp=$tmp
12836
12837# Set up the scripts for CONFIG_FILES section.
12838# No need to generate them if there are no CONFIG_FILES.
12839# This happens for instance with './config.status config.h'.
12840if test -n "$CONFIG_FILES"; then
12841
12842
12843ac_cr=`echo X | tr X '\015'`
12844# On cygwin, bash can eat \r inside `` if the user requested igncr.
12845# But we know of no other shell where ac_cr would be empty at this
12846# point, so we can use a bashism as a fallback.
12847if test "x$ac_cr" = x; then
12848  eval ac_cr=\$\'\\r\'
12849fi
12850ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12851if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12852  ac_cs_awk_cr='\\r'
12853else
12854  ac_cs_awk_cr=$ac_cr
12855fi
12856
12857echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12858_ACEOF
12859
12860
12861{
12862  echo "cat >conf$$subs.awk <<_ACEOF" &&
12863  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12864  echo "_ACEOF"
12865} >conf$$subs.sh ||
12866  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12867ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12868ac_delim='%!_!# '
12869for ac_last_try in false false false false false :; do
12870  . ./conf$$subs.sh ||
12871    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12872
12873  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12874  if test $ac_delim_n = $ac_delim_num; then
12875    break
12876  elif $ac_last_try; then
12877    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12878  else
12879    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12880  fi
12881done
12882rm -f conf$$subs.sh
12883
12884cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12885cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12886_ACEOF
12887sed -n '
12888h
12889s/^/S["/; s/!.*/"]=/
12890p
12891g
12892s/^[^!]*!//
12893:repl
12894t repl
12895s/'"$ac_delim"'$//
12896t delim
12897:nl
12898h
12899s/\(.\{148\}\)..*/\1/
12900t more1
12901s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12902p
12903n
12904b repl
12905:more1
12906s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12907p
12908g
12909s/.\{148\}//
12910t nl
12911:delim
12912h
12913s/\(.\{148\}\)..*/\1/
12914t more2
12915s/["\\]/\\&/g; s/^/"/; s/$/"/
12916p
12917b
12918:more2
12919s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12920p
12921g
12922s/.\{148\}//
12923t delim
12924' <conf$$subs.awk | sed '
12925/^[^""]/{
12926  N
12927  s/\n//
12928}
12929' >>$CONFIG_STATUS || ac_write_fail=1
12930rm -f conf$$subs.awk
12931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12932_ACAWK
12933cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12934  for (key in S) S_is_set[key] = 1
12935  FS = ""
12936
12937}
12938{
12939  line = $ 0
12940  nfields = split(line, field, "@")
12941  substed = 0
12942  len = length(field[1])
12943  for (i = 2; i < nfields; i++) {
12944    key = field[i]
12945    keylen = length(key)
12946    if (S_is_set[key]) {
12947      value = S[key]
12948      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12949      len += length(value) + length(field[++i])
12950      substed = 1
12951    } else
12952      len += 1 + keylen
12953  }
12954
12955  print line
12956}
12957
12958_ACAWK
12959_ACEOF
12960cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12961if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12962  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12963else
12964  cat
12965fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12966  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12967_ACEOF
12968
12969# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12970# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12971# trailing colons and then remove the whole line if VPATH becomes empty
12972# (actually we leave an empty line to preserve line numbers).
12973if test "x$srcdir" = x.; then
12974  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12975h
12976s///
12977s/^/:/
12978s/[	 ]*$/:/
12979s/:\$(srcdir):/:/g
12980s/:\${srcdir}:/:/g
12981s/:@srcdir@:/:/g
12982s/^:*//
12983s/:*$//
12984x
12985s/\(=[	 ]*\).*/\1/
12986G
12987s/\n//
12988s/^[^=]*=[	 ]*$//
12989}'
12990fi
12991
12992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12993fi # test -n "$CONFIG_FILES"
12994
12995# Set up the scripts for CONFIG_HEADERS section.
12996# No need to generate them if there are no CONFIG_HEADERS.
12997# This happens for instance with './config.status Makefile'.
12998if test -n "$CONFIG_HEADERS"; then
12999cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13000BEGIN {
13001_ACEOF
13002
13003# Transform confdefs.h into an awk script 'defines.awk', embedded as
13004# here-document in config.status, that substitutes the proper values into
13005# config.h.in to produce config.h.
13006
13007# Create a delimiter string that does not exist in confdefs.h, to ease
13008# handling of long lines.
13009ac_delim='%!_!# '
13010for ac_last_try in false false :; do
13011  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13012  if test -z "$ac_tt"; then
13013    break
13014  elif $ac_last_try; then
13015    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13016  else
13017    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13018  fi
13019done
13020
13021# For the awk script, D is an array of macro values keyed by name,
13022# likewise P contains macro parameters if any.  Preserve backslash
13023# newline sequences.
13024
13025ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13026sed -n '
13027s/.\{148\}/&'"$ac_delim"'/g
13028t rset
13029:rset
13030s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13031t def
13032d
13033:def
13034s/\\$//
13035t bsnl
13036s/["\\]/\\&/g
13037s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13038D["\1"]=" \3"/p
13039s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13040d
13041:bsnl
13042s/["\\]/\\&/g
13043s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13044D["\1"]=" \3\\\\\\n"\\/p
13045t cont
13046s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13047t cont
13048d
13049:cont
13050n
13051s/.\{148\}/&'"$ac_delim"'/g
13052t clear
13053:clear
13054s/\\$//
13055t bsnlc
13056s/["\\]/\\&/g; s/^/"/; s/$/"/p
13057d
13058:bsnlc
13059s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13060b cont
13061' <confdefs.h | sed '
13062s/'"$ac_delim"'/"\\\
13063"/g' >>$CONFIG_STATUS || ac_write_fail=1
13064
13065cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13066  for (key in D) D_is_set[key] = 1
13067  FS = ""
13068}
13069/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13070  line = \$ 0
13071  split(line, arg, " ")
13072  if (arg[1] == "#") {
13073    defundef = arg[2]
13074    mac1 = arg[3]
13075  } else {
13076    defundef = substr(arg[1], 2)
13077    mac1 = arg[2]
13078  }
13079  split(mac1, mac2, "(") #)
13080  macro = mac2[1]
13081  prefix = substr(line, 1, index(line, defundef) - 1)
13082  if (D_is_set[macro]) {
13083    # Preserve the white space surrounding the "#".
13084    print prefix "define", macro P[macro] D[macro]
13085    next
13086  } else {
13087    # Replace #undef with comments.  This is necessary, for example,
13088    # in the case of _POSIX_SOURCE, which is predefined and required
13089    # on some systems where configure will not decide to define it.
13090    if (defundef == "undef") {
13091      print "/*", prefix defundef, macro, "*/"
13092      next
13093    }
13094  }
13095}
13096{ print }
13097_ACAWK
13098_ACEOF
13099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13100  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13101fi # test -n "$CONFIG_HEADERS"
13102
13103
13104eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13105shift
13106for ac_tag
13107do
13108  case $ac_tag in
13109  :[FHLC]) ac_mode=$ac_tag; continue;;
13110  esac
13111  case $ac_mode$ac_tag in
13112  :[FHL]*:*);;
13113  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13114  :[FH]-) ac_tag=-:-;;
13115  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13116  esac
13117  ac_save_IFS=$IFS
13118  IFS=:
13119  set x $ac_tag
13120  IFS=$ac_save_IFS
13121  shift
13122  ac_file=$1
13123  shift
13124
13125  case $ac_mode in
13126  :L) ac_source=$1;;
13127  :[FH])
13128    ac_file_inputs=
13129    for ac_f
13130    do
13131      case $ac_f in
13132      -) ac_f="$ac_tmp/stdin";;
13133      *) # Look for the file first in the build tree, then in the source tree
13134	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13135	 # because $ac_f cannot contain ':'.
13136	 test -f "$ac_f" ||
13137	   case $ac_f in
13138	   [\\/$]*) false;;
13139	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13140	   esac ||
13141	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13142      esac
13143      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13144      as_fn_append ac_file_inputs " '$ac_f'"
13145    done
13146
13147    # Let's still pretend it is 'configure' which instantiates (i.e., don't
13148    # use $as_me), people would be surprised to read:
13149    #    /* config.h.  Generated by config.status.  */
13150    configure_input='Generated from '`
13151	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13152	`' by configure.'
13153    if test x"$ac_file" != x-; then
13154      configure_input="$ac_file.  $configure_input"
13155      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13156printf "%s\n" "$as_me: creating $ac_file" >&6;}
13157    fi
13158    # Neutralize special characters interpreted by sed in replacement strings.
13159    case $configure_input in #(
13160    *\&* | *\|* | *\\* )
13161       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13162       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13163    *) ac_sed_conf_input=$configure_input;;
13164    esac
13165
13166    case $ac_tag in
13167    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13168      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13169    esac
13170    ;;
13171  esac
13172
13173  ac_dir=`$as_dirname -- "$ac_file" ||
13174$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13175	 X"$ac_file" : 'X\(//\)[^/]' \| \
13176	 X"$ac_file" : 'X\(//\)$' \| \
13177	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13178printf "%s\n" X"$ac_file" |
13179    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13180	    s//\1/
13181	    q
13182	  }
13183	  /^X\(\/\/\)[^/].*/{
13184	    s//\1/
13185	    q
13186	  }
13187	  /^X\(\/\/\)$/{
13188	    s//\1/
13189	    q
13190	  }
13191	  /^X\(\/\).*/{
13192	    s//\1/
13193	    q
13194	  }
13195	  s/.*/./; q'`
13196  as_dir="$ac_dir"; as_fn_mkdir_p
13197  ac_builddir=.
13198
13199case "$ac_dir" in
13200.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13201*)
13202  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13203  # A ".." for each directory in $ac_dir_suffix.
13204  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13205  case $ac_top_builddir_sub in
13206  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13207  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13208  esac ;;
13209esac
13210ac_abs_top_builddir=$ac_pwd
13211ac_abs_builddir=$ac_pwd$ac_dir_suffix
13212# for backward compatibility:
13213ac_top_builddir=$ac_top_build_prefix
13214
13215case $srcdir in
13216  .)  # We are building in place.
13217    ac_srcdir=.
13218    ac_top_srcdir=$ac_top_builddir_sub
13219    ac_abs_top_srcdir=$ac_pwd ;;
13220  [\\/]* | ?:[\\/]* )  # Absolute name.
13221    ac_srcdir=$srcdir$ac_dir_suffix;
13222    ac_top_srcdir=$srcdir
13223    ac_abs_top_srcdir=$srcdir ;;
13224  *) # Relative name.
13225    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13226    ac_top_srcdir=$ac_top_build_prefix$srcdir
13227    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13228esac
13229ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13230
13231
13232  case $ac_mode in
13233  :F)
13234  #
13235  # CONFIG_FILE
13236  #
13237
13238  case $INSTALL in
13239  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13240  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13241  esac
13242  ac_MKDIR_P=$MKDIR_P
13243  case $MKDIR_P in
13244  [\\/$]* | ?:[\\/]* ) ;;
13245  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13246  esac
13247_ACEOF
13248
13249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13250# If the template does not know about datarootdir, expand it.
13251# FIXME: This hack should be removed a few years after 2.60.
13252ac_datarootdir_hack=; ac_datarootdir_seen=
13253ac_sed_dataroot='
13254/datarootdir/ {
13255  p
13256  q
13257}
13258/@datadir@/p
13259/@docdir@/p
13260/@infodir@/p
13261/@localedir@/p
13262/@mandir@/p'
13263case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13264*datarootdir*) ac_datarootdir_seen=yes;;
13265*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13266  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13267printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13268_ACEOF
13269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13270  ac_datarootdir_hack='
13271  s&@datadir@&$datadir&g
13272  s&@docdir@&$docdir&g
13273  s&@infodir@&$infodir&g
13274  s&@localedir@&$localedir&g
13275  s&@mandir@&$mandir&g
13276  s&\\\${datarootdir}&$datarootdir&g' ;;
13277esac
13278_ACEOF
13279
13280# Neutralize VPATH when '$srcdir' = '.'.
13281# Shell code in configure.ac might set extrasub.
13282# FIXME: do we really want to maintain this feature?
13283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13284ac_sed_extra="$ac_vpsub
13285$extrasub
13286_ACEOF
13287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13288:t
13289/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13290s|@configure_input@|$ac_sed_conf_input|;t t
13291s&@top_builddir@&$ac_top_builddir_sub&;t t
13292s&@top_build_prefix@&$ac_top_build_prefix&;t t
13293s&@srcdir@&$ac_srcdir&;t t
13294s&@abs_srcdir@&$ac_abs_srcdir&;t t
13295s&@top_srcdir@&$ac_top_srcdir&;t t
13296s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13297s&@builddir@&$ac_builddir&;t t
13298s&@abs_builddir@&$ac_abs_builddir&;t t
13299s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13300s&@INSTALL@&$ac_INSTALL&;t t
13301s&@MKDIR_P@&$ac_MKDIR_P&;t t
13302$ac_datarootdir_hack
13303"
13304eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13305  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13306
13307test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13308  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13309  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13310      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13311  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13312which seems to be undefined.  Please make sure it is defined" >&5
13313printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13314which seems to be undefined.  Please make sure it is defined" >&2;}
13315
13316  rm -f "$ac_tmp/stdin"
13317  case $ac_file in
13318  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13319  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13320  esac \
13321  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13322 ;;
13323  :H)
13324  #
13325  # CONFIG_HEADER
13326  #
13327  if test x"$ac_file" != x-; then
13328    {
13329      printf "%s\n" "/* $configure_input  */" >&1 \
13330      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13331    } >"$ac_tmp/config.h" \
13332      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13333    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13334      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13335printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13336    else
13337      rm -f "$ac_file"
13338      mv "$ac_tmp/config.h" "$ac_file" \
13339	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13340    fi
13341  else
13342    printf "%s\n" "/* $configure_input  */" >&1 \
13343      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13344      || as_fn_error $? "could not create -" "$LINENO" 5
13345  fi
13346# Compute "$ac_file"'s index in $config_headers.
13347_am_arg="$ac_file"
13348_am_stamp_count=1
13349for _am_header in $config_headers :; do
13350  case $_am_header in
13351    $_am_arg | $_am_arg:* )
13352      break ;;
13353    * )
13354      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13355  esac
13356done
13357echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13358$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13359	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13360	 X"$_am_arg" : 'X\(//\)$' \| \
13361	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13362printf "%s\n" X"$_am_arg" |
13363    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13364	    s//\1/
13365	    q
13366	  }
13367	  /^X\(\/\/\)[^/].*/{
13368	    s//\1/
13369	    q
13370	  }
13371	  /^X\(\/\/\)$/{
13372	    s//\1/
13373	    q
13374	  }
13375	  /^X\(\/\).*/{
13376	    s//\1/
13377	    q
13378	  }
13379	  s/.*/./; q'`/stamp-h$_am_stamp_count
13380 ;;
13381
13382  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13383printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13384 ;;
13385  esac
13386
13387
13388  case $ac_file$ac_mode in
13389    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13390  # Older Autoconf quotes --file arguments for eval, but not when files
13391  # are listed without --file.  Let's play safe and only enable the eval
13392  # if we detect the quoting.
13393  # TODO: see whether this extra hack can be removed once we start
13394  # requiring Autoconf 2.70 or later.
13395  case $CONFIG_FILES in #(
13396  *\'*) :
13397    eval set x "$CONFIG_FILES" ;; #(
13398  *) :
13399    set x $CONFIG_FILES ;; #(
13400  *) :
13401     ;;
13402esac
13403  shift
13404  # Used to flag and report bootstrapping failures.
13405  am_rc=0
13406  for am_mf
13407  do
13408    # Strip MF so we end up with the name of the file.
13409    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13410    # Check whether this is an Automake generated Makefile which includes
13411    # dependency-tracking related rules and includes.
13412    # Grep'ing the whole file directly is not great: AIX grep has a line
13413    # limit of 2048, but all sed's we know have understand at least 4000.
13414    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13415      || continue
13416    am_dirpart=`$as_dirname -- "$am_mf" ||
13417$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13418	 X"$am_mf" : 'X\(//\)[^/]' \| \
13419	 X"$am_mf" : 'X\(//\)$' \| \
13420	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13421printf "%s\n" X"$am_mf" |
13422    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13423	    s//\1/
13424	    q
13425	  }
13426	  /^X\(\/\/\)[^/].*/{
13427	    s//\1/
13428	    q
13429	  }
13430	  /^X\(\/\/\)$/{
13431	    s//\1/
13432	    q
13433	  }
13434	  /^X\(\/\).*/{
13435	    s//\1/
13436	    q
13437	  }
13438	  s/.*/./; q'`
13439    am_filepart=`$as_basename -- "$am_mf" ||
13440$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13441	 X"$am_mf" : 'X\(//\)$' \| \
13442	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13443printf "%s\n" X/"$am_mf" |
13444    sed '/^.*\/\([^/][^/]*\)\/*$/{
13445	    s//\1/
13446	    q
13447	  }
13448	  /^X\/\(\/\/\)$/{
13449	    s//\1/
13450	    q
13451	  }
13452	  /^X\/\(\/\).*/{
13453	    s//\1/
13454	    q
13455	  }
13456	  s/.*/./; q'`
13457    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13458      && sed -e '/# am--include-marker/d' "$am_filepart" \
13459        | $MAKE -f - am--depfiles" >&5
13460   (cd "$am_dirpart" \
13461      && sed -e '/# am--include-marker/d' "$am_filepart" \
13462        | $MAKE -f - am--depfiles) >&5 2>&5
13463   ac_status=$?
13464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465   (exit $ac_status); } || am_rc=$?
13466  done
13467  if test $am_rc -ne 0; then
13468    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13469printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13470as_fn_error $? "Something went wrong bootstrapping makefile fragments
13471    for automatic dependency tracking.  If GNU make was not used, consider
13472    re-running the configure script with MAKE=\"gmake\" (or whatever is
13473    necessary).  You can also try re-running configure with the
13474    '--disable-dependency-tracking' option to at least be able to build
13475    the package (albeit without support for automatic dependency tracking).
13476See 'config.log' for more details" "$LINENO" 5; }
13477  fi
13478  { am_dirpart=; unset am_dirpart;}
13479  { am_filepart=; unset am_filepart;}
13480  { am_mf=; unset am_mf;}
13481  { am_rc=; unset am_rc;}
13482  rm -f conftest-deps.mk
13483}
13484 ;;
13485
13486  esac
13487done # for ac_tag
13488
13489
13490as_fn_exit 0
13491_ACEOF
13492ac_clean_files=$ac_clean_files_save
13493
13494test $ac_write_fail = 0 ||
13495  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13496
13497
13498# configure is writing to config.log, and then calls config.status.
13499# config.status does its own redirection, appending to config.log.
13500# Unfortunately, on DOS this fails, as config.log is still kept open
13501# by configure, so config.status won't be able to write to it; its
13502# output is simply discarded.  So we exec the FD to /dev/null,
13503# effectively closing config.log, so it can be properly (re)opened and
13504# appended to by config.status.  When coming back to configure, we
13505# need to make the FD available again.
13506if test "$no_create" != yes; then
13507  ac_cs_success=:
13508  ac_config_status_args=
13509  test "$silent" = yes &&
13510    ac_config_status_args="$ac_config_status_args --quiet"
13511  exec 5>/dev/null
13512  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13513  exec 5>>config.log
13514  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13515  # would make configure fail if this is the last instruction.
13516  $ac_cs_success || as_fn_exit 1
13517fi
13518if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13519  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13520printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13521fi
13522
13523
13524