configure revision 43ecf206
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xload 1.1.4.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xload/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186test \$(( 1 + 1 )) = 2 || exit 1"
187  if (eval "$as_required") 2>/dev/null
188then :
189  as_have_required=yes
190else $as_nop
191  as_have_required=no
192fi
193  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194then :
195
196else $as_nop
197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198as_found=false
199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200do
201  IFS=$as_save_IFS
202  case $as_dir in #(((
203    '') as_dir=./ ;;
204    */) ;;
205    *) as_dir=$as_dir/ ;;
206  esac
207  as_found=:
208  case $as_dir in #(
209	 /*)
210	   for as_base in sh bash ksh sh5; do
211	     # Try only shells that exist, to save several forks.
212	     as_shell=$as_dir$as_base
213	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215then :
216  CONFIG_SHELL=$as_shell as_have_required=yes
217		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218then :
219  break 2
220fi
221fi
222	   done;;
223       esac
224  as_found=false
225done
226IFS=$as_save_IFS
227if $as_found
228then :
229
230else $as_nop
231  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233then :
234  CONFIG_SHELL=$SHELL as_have_required=yes
235fi
236fi
237
238
239      if test "x$CONFIG_SHELL" != x
240then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno
263then :
264  printf "%s\n" "$0: This script requires a shell more modern than all"
265  printf "%s\n" "$0: the shells that I found on your system."
266  if test ${ZSH_VERSION+y} ; then
267    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269  else
270    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271$0: https://gitlab.freedesktop.org/xorg/app/xload/issues
272$0: about your system, including any error possibly output
273$0: before this message. Then install a modern shell, or
274$0: manually run the script under such a shell if you do
275$0: have one."
276  fi
277  exit 1
278fi
279fi
280fi
281SHELL=${CONFIG_SHELL-/bin/sh}
282export SHELL
283# Unset more variables known to interfere with behavior of common tools.
284CLICOLOR_FORCE= GREP_OPTIONS=
285unset CLICOLOR_FORCE GREP_OPTIONS
286
287## --------------------- ##
288## M4sh Shell Functions. ##
289## --------------------- ##
290# as_fn_unset VAR
291# ---------------
292# Portably unset VAR.
293as_fn_unset ()
294{
295  { eval $1=; unset $1;}
296}
297as_unset=as_fn_unset
298
299
300# as_fn_set_status STATUS
301# -----------------------
302# Set $? to STATUS, without forking.
303as_fn_set_status ()
304{
305  return $1
306} # as_fn_set_status
307
308# as_fn_exit STATUS
309# -----------------
310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311as_fn_exit ()
312{
313  set +e
314  as_fn_set_status $1
315  exit $1
316} # as_fn_exit
317# as_fn_nop
318# ---------
319# Do nothing but, unlike ":", preserve the value of $?.
320as_fn_nop ()
321{
322  return $?
323}
324as_nop=as_fn_nop
325
326# as_fn_mkdir_p
327# -------------
328# Create "$as_dir" as a directory, including parents if necessary.
329as_fn_mkdir_p ()
330{
331
332  case $as_dir in #(
333  -*) as_dir=./$as_dir;;
334  esac
335  test -d "$as_dir" || eval $as_mkdir_p || {
336    as_dirs=
337    while :; do
338      case $as_dir in #(
339      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340      *) as_qdir=$as_dir;;
341      esac
342      as_dirs="'$as_qdir' $as_dirs"
343      as_dir=`$as_dirname -- "$as_dir" ||
344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345	 X"$as_dir" : 'X\(//\)[^/]' \| \
346	 X"$as_dir" : 'X\(//\)$' \| \
347	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348printf "%s\n" X"$as_dir" |
349    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350	    s//\1/
351	    q
352	  }
353	  /^X\(\/\/\)[^/].*/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\/\)$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\).*/{
362	    s//\1/
363	    q
364	  }
365	  s/.*/./; q'`
366      test -d "$as_dir" && break
367    done
368    test -z "$as_dirs" || eval "mkdir $as_dirs"
369  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372} # as_fn_mkdir_p
373
374# as_fn_executable_p FILE
375# -----------------------
376# Test if FILE is an executable regular file.
377as_fn_executable_p ()
378{
379  test -f "$1" && test -x "$1"
380} # as_fn_executable_p
381# as_fn_append VAR VALUE
382# ----------------------
383# Append the text in VALUE to the end of the definition contained in VAR. Take
384# advantage of any shell optimizations that allow amortized linear growth over
385# repeated appends, instead of the typical quadratic growth present in naive
386# implementations.
387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388then :
389  eval 'as_fn_append ()
390  {
391    eval $1+=\$2
392  }'
393else $as_nop
394  as_fn_append ()
395  {
396    eval $1=\$$1\$2
397  }
398fi # as_fn_append
399
400# as_fn_arith ARG...
401# ------------------
402# Perform arithmetic evaluation on the ARGs, and store the result in the
403# global $as_val. Take advantage of shells that can avoid forks. The arguments
404# must be portable across $(()) and expr.
405if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406then :
407  eval 'as_fn_arith ()
408  {
409    as_val=$(( $* ))
410  }'
411else $as_nop
412  as_fn_arith ()
413  {
414    as_val=`expr "$@" || test $? -eq 1`
415  }
416fi # as_fn_arith
417
418# as_fn_nop
419# ---------
420# Do nothing but, unlike ":", preserve the value of $?.
421as_fn_nop ()
422{
423  return $?
424}
425as_nop=as_fn_nop
426
427# as_fn_error STATUS ERROR [LINENO LOG_FD]
428# ----------------------------------------
429# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431# script with STATUS, using 1 if that was 0.
432as_fn_error ()
433{
434  as_status=$1; test $as_status -eq 0 && as_status=1
435  if test "$4"; then
436    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438  fi
439  printf "%s\n" "$as_me: error: $2" >&2
440  as_fn_exit $as_status
441} # as_fn_error
442
443if expr a : '\(a\)' >/dev/null 2>&1 &&
444   test "X`expr 00001 : '.*\(...\)'`" = X001; then
445  as_expr=expr
446else
447  as_expr=false
448fi
449
450if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451  as_basename=basename
452else
453  as_basename=false
454fi
455
456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457  as_dirname=dirname
458else
459  as_dirname=false
460fi
461
462as_me=`$as_basename -- "$0" ||
463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464	 X"$0" : 'X\(//\)$' \| \
465	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466printf "%s\n" X/"$0" |
467    sed '/^.*\/\([^/][^/]*\)\/*$/{
468	    s//\1/
469	    q
470	  }
471	  /^X\/\(\/\/\)$/{
472	    s//\1/
473	    q
474	  }
475	  /^X\/\(\/\).*/{
476	    s//\1/
477	    q
478	  }
479	  s/.*/./; q'`
480
481# Avoid depending upon Character Ranges.
482as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485as_cr_digits='0123456789'
486as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489  as_lineno_1=$LINENO as_lineno_1a=$LINENO
490  as_lineno_2=$LINENO as_lineno_2a=$LINENO
491  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
494  sed -n '
495    p
496    /[$]LINENO/=
497  ' <$as_myself |
498    sed '
499      s/[$]LINENO.*/&-/
500      t lineno
501      b
502      :lineno
503      N
504      :loop
505      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506      t loop
507      s/-\n.*//
508    ' >$as_me.lineno &&
509  chmod +x "$as_me.lineno" ||
510    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513  # already done that, so ensure we don't try to do so again and fall
514  # in an infinite loop.  This has already happened in practice.
515  _as_can_reexec=no; export _as_can_reexec
516  # Don't try to exec as it changes $[0], causing all sort of problems
517  # (the dirname of $[0] is not the place where we might find the
518  # original and so on.  Autoconf is especially sensitive to this).
519  . "./$as_me.lineno"
520  # Exit status is that of the last command.
521  exit
522}
523
524
525# Determine whether it's possible to make 'echo' print without a newline.
526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527# for compatibility with existing Makefiles.
528ECHO_C= ECHO_N= ECHO_T=
529case `echo -n x` in #(((((
530-n*)
531  case `echo 'xy\c'` in
532  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
533  xy)  ECHO_C='\c';;
534  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
535       ECHO_T='	';;
536  esac;;
537*)
538  ECHO_N='-n';;
539esac
540
541# For backward compatibility with old third-party macros, we provide
542# the shell variables $as_echo and $as_echo_n.  New code should use
543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544as_echo='printf %s\n'
545as_echo_n='printf %s'
546
547
548rm -f conf$$ conf$$.exe conf$$.file
549if test -d conf$$.dir; then
550  rm -f conf$$.dir/conf$$.file
551else
552  rm -f conf$$.dir
553  mkdir conf$$.dir 2>/dev/null
554fi
555if (echo >conf$$.file) 2>/dev/null; then
556  if ln -s conf$$.file conf$$ 2>/dev/null; then
557    as_ln_s='ln -s'
558    # ... but there are two gotchas:
559    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561    # In both cases, we have to default to `cp -pR'.
562    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563      as_ln_s='cp -pR'
564  elif ln conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s=ln
566  else
567    as_ln_s='cp -pR'
568  fi
569else
570  as_ln_s='cp -pR'
571fi
572rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573rmdir conf$$.dir 2>/dev/null
574
575if mkdir -p . 2>/dev/null; then
576  as_mkdir_p='mkdir -p "$as_dir"'
577else
578  test -d ./-p && rmdir ./-p
579  as_mkdir_p=false
580fi
581
582as_test_x='test -x'
583as_executable_p=as_fn_executable_p
584
585# Sed expression to map a string onto a valid CPP name.
586as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588# Sed expression to map a string onto a valid variable name.
589as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591
592test -n "$DJDIR" || exec 7<&0 </dev/null
593exec 6>&1
594
595# Name of the host.
596# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597# so uname gets run too.
598ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600#
601# Initializations.
602#
603ac_default_prefix=/usr/local
604ac_clean_files=
605ac_config_libobj_dir=.
606LIBOBJS=
607cross_compiling=no
608subdirs=
609MFLAGS=
610MAKEFLAGS=
611
612# Identity of this package.
613PACKAGE_NAME='xload'
614PACKAGE_TARNAME='xload'
615PACKAGE_VERSION='1.1.4'
616PACKAGE_STRING='xload 1.1.4'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xload/issues'
618PACKAGE_URL=''
619
620ac_unique_file="Makefile.am"
621# Factoring default headers for most tests.
622ac_includes_default="\
623#include <stddef.h>
624#ifdef HAVE_STDIO_H
625# include <stdio.h>
626#endif
627#ifdef HAVE_STDLIB_H
628# include <stdlib.h>
629#endif
630#ifdef HAVE_STRING_H
631# include <string.h>
632#endif
633#ifdef HAVE_INTTYPES_H
634# include <inttypes.h>
635#endif
636#ifdef HAVE_STDINT_H
637# include <stdint.h>
638#endif
639#ifdef HAVE_STRINGS_H
640# include <strings.h>
641#endif
642#ifdef HAVE_SYS_TYPES_H
643# include <sys/types.h>
644#endif
645#ifdef HAVE_SYS_STAT_H
646# include <sys/stat.h>
647#endif
648#ifdef HAVE_UNISTD_H
649# include <unistd.h>
650#endif"
651
652ac_header_c_list=
653ac_subst_vars='am__EXEEXT_FALSE
654am__EXEEXT_TRUE
655LTLIBOBJS
656LIBOBJS
657appdefaultdir
658APPDEFS_LIBS
659APPDEFS_CFLAGS
660XLOAD_LIBS
661XLOAD_CFLAGS
662USE_GETTEXT_FALSE
663USE_GETTEXT_TRUE
664LOCALEDIR
665MAN_SUBSTS
666XORG_MAN_PAGE
667ADMIN_MAN_DIR
668DRIVER_MAN_DIR
669MISC_MAN_DIR
670FILE_MAN_DIR
671LIB_MAN_DIR
672APP_MAN_DIR
673ADMIN_MAN_SUFFIX
674DRIVER_MAN_SUFFIX
675MISC_MAN_SUFFIX
676FILE_MAN_SUFFIX
677LIB_MAN_SUFFIX
678APP_MAN_SUFFIX
679SED
680host_os
681host_vendor
682host_cpu
683host
684build_os
685build_vendor
686build_cpu
687build
688INSTALL_CMD
689PKG_CONFIG_LIBDIR
690PKG_CONFIG_PATH
691PKG_CONFIG
692CHANGELOG_CMD
693STRICT_CFLAGS
694CWARNFLAGS
695BASE_CFLAGS
696AM_BACKSLASH
697AM_DEFAULT_VERBOSITY
698AM_DEFAULT_V
699AM_V
700CSCOPE
701ETAGS
702CTAGS
703am__fastdepCC_FALSE
704am__fastdepCC_TRUE
705CCDEPMODE
706am__nodep
707AMDEPBACKSLASH
708AMDEP_FALSE
709AMDEP_TRUE
710am__include
711DEPDIR
712am__untar
713am__tar
714AMTAR
715am__leading_dot
716SET_MAKE
717AWK
718mkdir_p
719MKDIR_P
720INSTALL_STRIP_PROGRAM
721STRIP
722install_sh
723MAKEINFO
724AUTOHEADER
725AUTOMAKE
726AUTOCONF
727ACLOCAL
728VERSION
729PACKAGE
730CYGPATH_W
731am__isrc
732INSTALL_DATA
733INSTALL_SCRIPT
734INSTALL_PROGRAM
735OBJEXT
736EXEEXT
737ac_ct_CC
738CPPFLAGS
739LDFLAGS
740CFLAGS
741CC
742target_alias
743host_alias
744build_alias
745LIBS
746ECHO_T
747ECHO_N
748ECHO_C
749DEFS
750mandir
751localedir
752libdir
753psdir
754pdfdir
755dvidir
756htmldir
757infodir
758docdir
759oldincludedir
760includedir
761runstatedir
762localstatedir
763sharedstatedir
764sysconfdir
765datadir
766datarootdir
767libexecdir
768sbindir
769bindir
770program_transform_name
771prefix
772exec_prefix
773PACKAGE_URL
774PACKAGE_BUGREPORT
775PACKAGE_STRING
776PACKAGE_VERSION
777PACKAGE_TARNAME
778PACKAGE_NAME
779PATH_SEPARATOR
780SHELL
781am__quote'
782ac_subst_files=''
783ac_user_opts='
784enable_option_checking
785enable_dependency_tracking
786enable_silent_rules
787enable_selective_werror
788enable_strict_compilation
789with_localedir
790with_appdefaultdir
791'
792      ac_precious_vars='build_alias
793host_alias
794target_alias
795CC
796CFLAGS
797LDFLAGS
798LIBS
799CPPFLAGS
800PKG_CONFIG
801PKG_CONFIG_PATH
802PKG_CONFIG_LIBDIR
803XLOAD_CFLAGS
804XLOAD_LIBS
805APPDEFS_CFLAGS
806APPDEFS_LIBS'
807
808
809# Initialize some variables set by options.
810ac_init_help=
811ac_init_version=false
812ac_unrecognized_opts=
813ac_unrecognized_sep=
814# The variables have the same names as the options, with
815# dashes changed to underlines.
816cache_file=/dev/null
817exec_prefix=NONE
818no_create=
819no_recursion=
820prefix=NONE
821program_prefix=NONE
822program_suffix=NONE
823program_transform_name=s,x,x,
824silent=
825site=
826srcdir=
827verbose=
828x_includes=NONE
829x_libraries=NONE
830
831# Installation directory options.
832# These are left unexpanded so users can "make install exec_prefix=/foo"
833# and all the variables that are supposed to be based on exec_prefix
834# by default will actually change.
835# Use braces instead of parens because sh, perl, etc. also accept them.
836# (The list follows the same order as the GNU Coding Standards.)
837bindir='${exec_prefix}/bin'
838sbindir='${exec_prefix}/sbin'
839libexecdir='${exec_prefix}/libexec'
840datarootdir='${prefix}/share'
841datadir='${datarootdir}'
842sysconfdir='${prefix}/etc'
843sharedstatedir='${prefix}/com'
844localstatedir='${prefix}/var'
845runstatedir='${localstatedir}/run'
846includedir='${prefix}/include'
847oldincludedir='/usr/include'
848docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849infodir='${datarootdir}/info'
850htmldir='${docdir}'
851dvidir='${docdir}'
852pdfdir='${docdir}'
853psdir='${docdir}'
854libdir='${exec_prefix}/lib'
855localedir='${datarootdir}/locale'
856mandir='${datarootdir}/man'
857
858ac_prev=
859ac_dashdash=
860for ac_option
861do
862  # If the previous option needs an argument, assign it.
863  if test -n "$ac_prev"; then
864    eval $ac_prev=\$ac_option
865    ac_prev=
866    continue
867  fi
868
869  case $ac_option in
870  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871  *=)   ac_optarg= ;;
872  *)    ac_optarg=yes ;;
873  esac
874
875  case $ac_dashdash$ac_option in
876  --)
877    ac_dashdash=yes ;;
878
879  -bindir | --bindir | --bindi | --bind | --bin | --bi)
880    ac_prev=bindir ;;
881  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
882    bindir=$ac_optarg ;;
883
884  -build | --build | --buil | --bui | --bu)
885    ac_prev=build_alias ;;
886  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
887    build_alias=$ac_optarg ;;
888
889  -cache-file | --cache-file | --cache-fil | --cache-fi \
890  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
891    ac_prev=cache_file ;;
892  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
893  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
894    cache_file=$ac_optarg ;;
895
896  --config-cache | -C)
897    cache_file=config.cache ;;
898
899  -datadir | --datadir | --datadi | --datad)
900    ac_prev=datadir ;;
901  -datadir=* | --datadir=* | --datadi=* | --datad=*)
902    datadir=$ac_optarg ;;
903
904  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
905  | --dataroo | --dataro | --datar)
906    ac_prev=datarootdir ;;
907  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
908  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
909    datarootdir=$ac_optarg ;;
910
911  -disable-* | --disable-*)
912    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
913    # Reject names that are not valid shell variable names.
914    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915      as_fn_error $? "invalid feature name: \`$ac_useropt'"
916    ac_useropt_orig=$ac_useropt
917    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
918    case $ac_user_opts in
919      *"
920"enable_$ac_useropt"
921"*) ;;
922      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
923	 ac_unrecognized_sep=', ';;
924    esac
925    eval enable_$ac_useropt=no ;;
926
927  -docdir | --docdir | --docdi | --doc | --do)
928    ac_prev=docdir ;;
929  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930    docdir=$ac_optarg ;;
931
932  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933    ac_prev=dvidir ;;
934  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935    dvidir=$ac_optarg ;;
936
937  -enable-* | --enable-*)
938    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939    # Reject names that are not valid shell variable names.
940    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941      as_fn_error $? "invalid feature name: \`$ac_useropt'"
942    ac_useropt_orig=$ac_useropt
943    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
944    case $ac_user_opts in
945      *"
946"enable_$ac_useropt"
947"*) ;;
948      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
949	 ac_unrecognized_sep=', ';;
950    esac
951    eval enable_$ac_useropt=\$ac_optarg ;;
952
953  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955  | --exec | --exe | --ex)
956    ac_prev=exec_prefix ;;
957  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959  | --exec=* | --exe=* | --ex=*)
960    exec_prefix=$ac_optarg ;;
961
962  -gas | --gas | --ga | --g)
963    # Obsolete; use --with-gas.
964    with_gas=yes ;;
965
966  -help | --help | --hel | --he | -h)
967    ac_init_help=long ;;
968  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969    ac_init_help=recursive ;;
970  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971    ac_init_help=short ;;
972
973  -host | --host | --hos | --ho)
974    ac_prev=host_alias ;;
975  -host=* | --host=* | --hos=* | --ho=*)
976    host_alias=$ac_optarg ;;
977
978  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979    ac_prev=htmldir ;;
980  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981  | --ht=*)
982    htmldir=$ac_optarg ;;
983
984  -includedir | --includedir | --includedi | --included | --include \
985  | --includ | --inclu | --incl | --inc)
986    ac_prev=includedir ;;
987  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988  | --includ=* | --inclu=* | --incl=* | --inc=*)
989    includedir=$ac_optarg ;;
990
991  -infodir | --infodir | --infodi | --infod | --info | --inf)
992    ac_prev=infodir ;;
993  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994    infodir=$ac_optarg ;;
995
996  -libdir | --libdir | --libdi | --libd)
997    ac_prev=libdir ;;
998  -libdir=* | --libdir=* | --libdi=* | --libd=*)
999    libdir=$ac_optarg ;;
1000
1001  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002  | --libexe | --libex | --libe)
1003    ac_prev=libexecdir ;;
1004  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005  | --libexe=* | --libex=* | --libe=*)
1006    libexecdir=$ac_optarg ;;
1007
1008  -localedir | --localedir | --localedi | --localed | --locale)
1009    ac_prev=localedir ;;
1010  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011    localedir=$ac_optarg ;;
1012
1013  -localstatedir | --localstatedir | --localstatedi | --localstated \
1014  | --localstate | --localstat | --localsta | --localst | --locals)
1015    ac_prev=localstatedir ;;
1016  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018    localstatedir=$ac_optarg ;;
1019
1020  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021    ac_prev=mandir ;;
1022  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023    mandir=$ac_optarg ;;
1024
1025  -nfp | --nfp | --nf)
1026    # Obsolete; use --without-fp.
1027    with_fp=no ;;
1028
1029  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030  | --no-cr | --no-c | -n)
1031    no_create=yes ;;
1032
1033  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035    no_recursion=yes ;;
1036
1037  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039  | --oldin | --oldi | --old | --ol | --o)
1040    ac_prev=oldincludedir ;;
1041  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044    oldincludedir=$ac_optarg ;;
1045
1046  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047    ac_prev=prefix ;;
1048  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049    prefix=$ac_optarg ;;
1050
1051  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052  | --program-pre | --program-pr | --program-p)
1053    ac_prev=program_prefix ;;
1054  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056    program_prefix=$ac_optarg ;;
1057
1058  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059  | --program-suf | --program-su | --program-s)
1060    ac_prev=program_suffix ;;
1061  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063    program_suffix=$ac_optarg ;;
1064
1065  -program-transform-name | --program-transform-name \
1066  | --program-transform-nam | --program-transform-na \
1067  | --program-transform-n | --program-transform- \
1068  | --program-transform | --program-transfor \
1069  | --program-transfo | --program-transf \
1070  | --program-trans | --program-tran \
1071  | --progr-tra | --program-tr | --program-t)
1072    ac_prev=program_transform_name ;;
1073  -program-transform-name=* | --program-transform-name=* \
1074  | --program-transform-nam=* | --program-transform-na=* \
1075  | --program-transform-n=* | --program-transform-=* \
1076  | --program-transform=* | --program-transfor=* \
1077  | --program-transfo=* | --program-transf=* \
1078  | --program-trans=* | --program-tran=* \
1079  | --progr-tra=* | --program-tr=* | --program-t=*)
1080    program_transform_name=$ac_optarg ;;
1081
1082  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083    ac_prev=pdfdir ;;
1084  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085    pdfdir=$ac_optarg ;;
1086
1087  -psdir | --psdir | --psdi | --psd | --ps)
1088    ac_prev=psdir ;;
1089  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090    psdir=$ac_optarg ;;
1091
1092  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093  | -silent | --silent | --silen | --sile | --sil)
1094    silent=yes ;;
1095
1096  -runstatedir | --runstatedir | --runstatedi | --runstated \
1097  | --runstate | --runstat | --runsta | --runst | --runs \
1098  | --run | --ru | --r)
1099    ac_prev=runstatedir ;;
1100  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1101  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1102  | --run=* | --ru=* | --r=*)
1103    runstatedir=$ac_optarg ;;
1104
1105  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106    ac_prev=sbindir ;;
1107  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108  | --sbi=* | --sb=*)
1109    sbindir=$ac_optarg ;;
1110
1111  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113  | --sharedst | --shareds | --shared | --share | --shar \
1114  | --sha | --sh)
1115    ac_prev=sharedstatedir ;;
1116  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119  | --sha=* | --sh=*)
1120    sharedstatedir=$ac_optarg ;;
1121
1122  -site | --site | --sit)
1123    ac_prev=site ;;
1124  -site=* | --site=* | --sit=*)
1125    site=$ac_optarg ;;
1126
1127  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128    ac_prev=srcdir ;;
1129  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130    srcdir=$ac_optarg ;;
1131
1132  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133  | --syscon | --sysco | --sysc | --sys | --sy)
1134    ac_prev=sysconfdir ;;
1135  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137    sysconfdir=$ac_optarg ;;
1138
1139  -target | --target | --targe | --targ | --tar | --ta | --t)
1140    ac_prev=target_alias ;;
1141  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142    target_alias=$ac_optarg ;;
1143
1144  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145    verbose=yes ;;
1146
1147  -version | --version | --versio | --versi | --vers | -V)
1148    ac_init_version=: ;;
1149
1150  -with-* | --with-*)
1151    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152    # Reject names that are not valid shell variable names.
1153    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154      as_fn_error $? "invalid package name: \`$ac_useropt'"
1155    ac_useropt_orig=$ac_useropt
1156    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1157    case $ac_user_opts in
1158      *"
1159"with_$ac_useropt"
1160"*) ;;
1161      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1162	 ac_unrecognized_sep=', ';;
1163    esac
1164    eval with_$ac_useropt=\$ac_optarg ;;
1165
1166  -without-* | --without-*)
1167    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1168    # Reject names that are not valid shell variable names.
1169    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170      as_fn_error $? "invalid package name: \`$ac_useropt'"
1171    ac_useropt_orig=$ac_useropt
1172    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1173    case $ac_user_opts in
1174      *"
1175"with_$ac_useropt"
1176"*) ;;
1177      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178	 ac_unrecognized_sep=', ';;
1179    esac
1180    eval with_$ac_useropt=no ;;
1181
1182  --x)
1183    # Obsolete; use --with-x.
1184    with_x=yes ;;
1185
1186  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187  | --x-incl | --x-inc | --x-in | --x-i)
1188    ac_prev=x_includes ;;
1189  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191    x_includes=$ac_optarg ;;
1192
1193  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195    ac_prev=x_libraries ;;
1196  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198    x_libraries=$ac_optarg ;;
1199
1200  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1201Try \`$0 --help' for more information"
1202    ;;
1203
1204  *=*)
1205    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1206    # Reject names that are not valid shell variable names.
1207    case $ac_envvar in #(
1208      '' | [0-9]* | *[!_$as_cr_alnum]* )
1209      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1210    esac
1211    eval $ac_envvar=\$ac_optarg
1212    export $ac_envvar ;;
1213
1214  *)
1215    # FIXME: should be removed in autoconf 3.0.
1216    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1217    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1219    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1220    ;;
1221
1222  esac
1223done
1224
1225if test -n "$ac_prev"; then
1226  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227  as_fn_error $? "missing argument to $ac_option"
1228fi
1229
1230if test -n "$ac_unrecognized_opts"; then
1231  case $enable_option_checking in
1232    no) ;;
1233    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1234    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1235  esac
1236fi
1237
1238# Check all directory arguments for consistency.
1239for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240		datadir sysconfdir sharedstatedir localstatedir includedir \
1241		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242		libdir localedir mandir runstatedir
1243do
1244  eval ac_val=\$$ac_var
1245  # Remove trailing slashes.
1246  case $ac_val in
1247    */ )
1248      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249      eval $ac_var=\$ac_val;;
1250  esac
1251  # Be sure to have absolute directory names.
1252  case $ac_val in
1253    [\\/$]* | ?:[\\/]* )  continue;;
1254    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1255  esac
1256  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1257done
1258
1259# There might be people who depend on the old broken behavior: `$host'
1260# used to hold the argument of --host etc.
1261# FIXME: To remove some day.
1262build=$build_alias
1263host=$host_alias
1264target=$target_alias
1265
1266# FIXME: To remove some day.
1267if test "x$host_alias" != x; then
1268  if test "x$build_alias" = x; then
1269    cross_compiling=maybe
1270  elif test "x$build_alias" != "x$host_alias"; then
1271    cross_compiling=yes
1272  fi
1273fi
1274
1275ac_tool_prefix=
1276test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277
1278test "$silent" = yes && exec 6>/dev/null
1279
1280
1281ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282ac_ls_di=`ls -di .` &&
1283ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284  as_fn_error $? "working directory cannot be determined"
1285test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286  as_fn_error $? "pwd does not report name of working directory"
1287
1288
1289# Find the source files, if location was not specified.
1290if test -z "$srcdir"; then
1291  ac_srcdir_defaulted=yes
1292  # Try the directory containing this script, then the parent directory.
1293  ac_confdir=`$as_dirname -- "$as_myself" ||
1294$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295	 X"$as_myself" : 'X\(//\)[^/]' \| \
1296	 X"$as_myself" : 'X\(//\)$' \| \
1297	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1298printf "%s\n" X"$as_myself" |
1299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300	    s//\1/
1301	    q
1302	  }
1303	  /^X\(\/\/\)[^/].*/{
1304	    s//\1/
1305	    q
1306	  }
1307	  /^X\(\/\/\)$/{
1308	    s//\1/
1309	    q
1310	  }
1311	  /^X\(\/\).*/{
1312	    s//\1/
1313	    q
1314	  }
1315	  s/.*/./; q'`
1316  srcdir=$ac_confdir
1317  if test ! -r "$srcdir/$ac_unique_file"; then
1318    srcdir=..
1319  fi
1320else
1321  ac_srcdir_defaulted=no
1322fi
1323if test ! -r "$srcdir/$ac_unique_file"; then
1324  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1326fi
1327ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328ac_abs_confdir=`(
1329	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1330	pwd)`
1331# When building in place, set srcdir=.
1332if test "$ac_abs_confdir" = "$ac_pwd"; then
1333  srcdir=.
1334fi
1335# Remove unnecessary trailing slashes from srcdir.
1336# Double slashes in file names in object file debugging info
1337# mess up M-x gdb in Emacs.
1338case $srcdir in
1339*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340esac
1341for ac_var in $ac_precious_vars; do
1342  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343  eval ac_env_${ac_var}_value=\$${ac_var}
1344  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346done
1347
1348#
1349# Report the --help message.
1350#
1351if test "$ac_init_help" = "long"; then
1352  # Omit some internal or obsolete options to make the list less imposing.
1353  # This message is too long to be a string in the A/UX 3.1 sh.
1354  cat <<_ACEOF
1355\`configure' configures xload 1.1.4 to adapt to many kinds of systems.
1356
1357Usage: $0 [OPTION]... [VAR=VALUE]...
1358
1359To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360VAR=VALUE.  See below for descriptions of some of the useful variables.
1361
1362Defaults for the options are specified in brackets.
1363
1364Configuration:
1365  -h, --help              display this help and exit
1366      --help=short        display options specific to this package
1367      --help=recursive    display the short help of all the included packages
1368  -V, --version           display version information and exit
1369  -q, --quiet, --silent   do not print \`checking ...' messages
1370      --cache-file=FILE   cache test results in FILE [disabled]
1371  -C, --config-cache      alias for \`--cache-file=config.cache'
1372  -n, --no-create         do not create output files
1373      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1374
1375Installation directories:
1376  --prefix=PREFIX         install architecture-independent files in PREFIX
1377                          [$ac_default_prefix]
1378  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1379                          [PREFIX]
1380
1381By default, \`make install' will install all the files in
1382\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1383an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384for instance \`--prefix=\$HOME'.
1385
1386For better control, use the options below.
1387
1388Fine tuning of the installation directories:
1389  --bindir=DIR            user executables [EPREFIX/bin]
1390  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1391  --libexecdir=DIR        program executables [EPREFIX/libexec]
1392  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1393  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1394  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1395  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1396  --libdir=DIR            object code libraries [EPREFIX/lib]
1397  --includedir=DIR        C header files [PREFIX/include]
1398  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1399  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1400  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1401  --infodir=DIR           info documentation [DATAROOTDIR/info]
1402  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1403  --mandir=DIR            man documentation [DATAROOTDIR/man]
1404  --docdir=DIR            documentation root [DATAROOTDIR/doc/xload]
1405  --htmldir=DIR           html documentation [DOCDIR]
1406  --dvidir=DIR            dvi documentation [DOCDIR]
1407  --pdfdir=DIR            pdf documentation [DOCDIR]
1408  --psdir=DIR             ps documentation [DOCDIR]
1409_ACEOF
1410
1411  cat <<\_ACEOF
1412
1413Program names:
1414  --program-prefix=PREFIX            prepend PREFIX to installed program names
1415  --program-suffix=SUFFIX            append SUFFIX to installed program names
1416  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1417
1418System types:
1419  --build=BUILD     configure for building on BUILD [guessed]
1420  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1421_ACEOF
1422fi
1423
1424if test -n "$ac_init_help"; then
1425  case $ac_init_help in
1426     short | recursive ) echo "Configuration of xload 1.1.4:";;
1427   esac
1428  cat <<\_ACEOF
1429
1430Optional Features:
1431  --disable-option-checking  ignore unrecognized --enable/--with options
1432  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1433  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1434  --enable-dependency-tracking
1435                          do not reject slow dependency extractors
1436  --disable-dependency-tracking
1437                          speeds up one-time build
1438  --enable-silent-rules   less verbose build output (undo: "make V=1")
1439  --disable-silent-rules  verbose build output (undo: "make V=0")
1440  --disable-selective-werror
1441                          Turn off selective compiler errors. (default:
1442                          enabled)
1443  --enable-strict-compilation
1444                          Enable all warnings from compiler and make them
1445                          errors (default: disabled)
1446
1447Optional Packages:
1448  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1449  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1450  --with-localedir=<path> Path to install message files in (default:
1451                          datadir/locale)
1452  --with-appdefaultdir=<pathname>
1453                          specify directory for app-defaults files (default is
1454                          autodetected)
1455
1456Some influential environment variables:
1457  CC          C compiler command
1458  CFLAGS      C compiler flags
1459  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1460              nonstandard directory <lib dir>
1461  LIBS        libraries to pass to the linker, e.g. -l<library>
1462  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1463              you have headers in a nonstandard directory <include dir>
1464  PKG_CONFIG  path to pkg-config utility
1465  PKG_CONFIG_PATH
1466              directories to add to pkg-config's search path
1467  PKG_CONFIG_LIBDIR
1468              path overriding pkg-config's built-in search path
1469  XLOAD_CFLAGS
1470              C compiler flags for XLOAD, overriding pkg-config
1471  XLOAD_LIBS  linker flags for XLOAD, overriding pkg-config
1472  APPDEFS_CFLAGS
1473              C compiler flags for APPDEFS, overriding pkg-config
1474  APPDEFS_LIBS
1475              linker flags for APPDEFS, overriding pkg-config
1476
1477Use these variables to override the choices made by `configure' or to help
1478it to find libraries and programs with nonstandard names/locations.
1479
1480Report bugs to <https://gitlab.freedesktop.org/xorg/app/xload/issues>.
1481_ACEOF
1482ac_status=$?
1483fi
1484
1485if test "$ac_init_help" = "recursive"; then
1486  # If there are subdirs, report their specific --help.
1487  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488    test -d "$ac_dir" ||
1489      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490      continue
1491    ac_builddir=.
1492
1493case "$ac_dir" in
1494.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495*)
1496  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1497  # A ".." for each directory in $ac_dir_suffix.
1498  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499  case $ac_top_builddir_sub in
1500  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502  esac ;;
1503esac
1504ac_abs_top_builddir=$ac_pwd
1505ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506# for backward compatibility:
1507ac_top_builddir=$ac_top_build_prefix
1508
1509case $srcdir in
1510  .)  # We are building in place.
1511    ac_srcdir=.
1512    ac_top_srcdir=$ac_top_builddir_sub
1513    ac_abs_top_srcdir=$ac_pwd ;;
1514  [\\/]* | ?:[\\/]* )  # Absolute name.
1515    ac_srcdir=$srcdir$ac_dir_suffix;
1516    ac_top_srcdir=$srcdir
1517    ac_abs_top_srcdir=$srcdir ;;
1518  *) # Relative name.
1519    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520    ac_top_srcdir=$ac_top_build_prefix$srcdir
1521    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522esac
1523ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
1525    cd "$ac_dir" || { ac_status=$?; continue; }
1526    # Check for configure.gnu first; this name is used for a wrapper for
1527    # Metaconfig's "Configure" on case-insensitive file systems.
1528    if test -f "$ac_srcdir/configure.gnu"; then
1529      echo &&
1530      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531    elif test -f "$ac_srcdir/configure"; then
1532      echo &&
1533      $SHELL "$ac_srcdir/configure" --help=recursive
1534    else
1535      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536    fi || ac_status=$?
1537    cd "$ac_pwd" || { ac_status=$?; break; }
1538  done
1539fi
1540
1541test -n "$ac_init_help" && exit $ac_status
1542if $ac_init_version; then
1543  cat <<\_ACEOF
1544xload configure 1.1.4
1545generated by GNU Autoconf 2.71
1546
1547Copyright (C) 2021 Free Software Foundation, Inc.
1548This configure script is free software; the Free Software Foundation
1549gives unlimited permission to copy, distribute and modify it.
1550_ACEOF
1551  exit
1552fi
1553
1554## ------------------------ ##
1555## Autoconf initialization. ##
1556## ------------------------ ##
1557
1558# ac_fn_c_try_compile LINENO
1559# --------------------------
1560# Try to compile conftest.$ac_ext, and return whether this succeeded.
1561ac_fn_c_try_compile ()
1562{
1563  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564  rm -f conftest.$ac_objext conftest.beam
1565  if { { ac_try="$ac_compile"
1566case "(($ac_try" in
1567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568  *) ac_try_echo=$ac_try;;
1569esac
1570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571printf "%s\n" "$ac_try_echo"; } >&5
1572  (eval "$ac_compile") 2>conftest.err
1573  ac_status=$?
1574  if test -s conftest.err; then
1575    grep -v '^ *+' conftest.err >conftest.er1
1576    cat conftest.er1 >&5
1577    mv -f conftest.er1 conftest.err
1578  fi
1579  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580  test $ac_status = 0; } && {
1581	 test -z "$ac_c_werror_flag" ||
1582	 test ! -s conftest.err
1583       } && test -s conftest.$ac_objext
1584then :
1585  ac_retval=0
1586else $as_nop
1587  printf "%s\n" "$as_me: failed program was:" >&5
1588sed 's/^/| /' conftest.$ac_ext >&5
1589
1590	ac_retval=1
1591fi
1592  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593  as_fn_set_status $ac_retval
1594
1595} # ac_fn_c_try_compile
1596
1597# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1598# -------------------------------------------------------
1599# Tests whether HEADER exists and can be compiled using the include files in
1600# INCLUDES, setting the cache variable VAR accordingly.
1601ac_fn_c_check_header_compile ()
1602{
1603  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1605printf %s "checking for $2... " >&6; }
1606if eval test \${$3+y}
1607then :
1608  printf %s "(cached) " >&6
1609else $as_nop
1610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611/* end confdefs.h.  */
1612$4
1613#include <$2>
1614_ACEOF
1615if ac_fn_c_try_compile "$LINENO"
1616then :
1617  eval "$3=yes"
1618else $as_nop
1619  eval "$3=no"
1620fi
1621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1622fi
1623eval ac_res=\$$3
1624	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1625printf "%s\n" "$ac_res" >&6; }
1626  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627
1628} # ac_fn_c_check_header_compile
1629
1630# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1631# ------------------------------------------------------------------
1632# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1633# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1634ac_fn_check_decl ()
1635{
1636  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637  as_decl_name=`echo $2|sed 's/ *(.*//'`
1638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1639printf %s "checking whether $as_decl_name is declared... " >&6; }
1640if eval test \${$3+y}
1641then :
1642  printf %s "(cached) " >&6
1643else $as_nop
1644  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1645  eval ac_save_FLAGS=\$$6
1646  as_fn_append $6 " $5"
1647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648/* end confdefs.h.  */
1649$4
1650int
1651main (void)
1652{
1653#ifndef $as_decl_name
1654#ifdef __cplusplus
1655  (void) $as_decl_use;
1656#else
1657  (void) $as_decl_name;
1658#endif
1659#endif
1660
1661  ;
1662  return 0;
1663}
1664_ACEOF
1665if ac_fn_c_try_compile "$LINENO"
1666then :
1667  eval "$3=yes"
1668else $as_nop
1669  eval "$3=no"
1670fi
1671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1672  eval $6=\$ac_save_FLAGS
1673
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_check_decl
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 $as_nop
1714  printf "%s\n" "$as_me: failed program was:" >&5
1715sed 's/^/| /' conftest.$ac_ext >&5
1716
1717	ac_retval=1
1718fi
1719  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721  # interfere with the next link command; also delete a directory that is
1722  # left behind by Apple's compiler.  We do this before executing the actions.
1723  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725  as_fn_set_status $ac_retval
1726
1727} # ac_fn_c_try_link
1728
1729# ac_fn_c_check_func LINENO FUNC VAR
1730# ----------------------------------
1731# Tests whether FUNC exists, setting the cache variable VAR accordingly
1732ac_fn_c_check_func ()
1733{
1734  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736printf %s "checking for $2... " >&6; }
1737if eval test \${$3+y}
1738then :
1739  printf %s "(cached) " >&6
1740else $as_nop
1741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742/* end confdefs.h.  */
1743/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1744   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1745#define $2 innocuous_$2
1746
1747/* System header to define __stub macros and hopefully few prototypes,
1748   which can conflict with char $2 (); below.  */
1749
1750#include <limits.h>
1751#undef $2
1752
1753/* Override any GCC internal prototype to avoid an error.
1754   Use char because int might match the return type of a GCC
1755   builtin and then its argument prototype would still apply.  */
1756#ifdef __cplusplus
1757extern "C"
1758#endif
1759char $2 ();
1760/* The GNU C library defines this for functions which it implements
1761    to always fail with ENOSYS.  Some functions are actually named
1762    something starting with __ and the normal name is an alias.  */
1763#if defined __stub_$2 || defined __stub___$2
1764choke me
1765#endif
1766
1767int
1768main (void)
1769{
1770return $2 ();
1771  ;
1772  return 0;
1773}
1774_ACEOF
1775if ac_fn_c_try_link "$LINENO"
1776then :
1777  eval "$3=yes"
1778else $as_nop
1779  eval "$3=no"
1780fi
1781rm -f core conftest.err conftest.$ac_objext conftest.beam \
1782    conftest$ac_exeext conftest.$ac_ext
1783fi
1784eval ac_res=\$$3
1785	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786printf "%s\n" "$ac_res" >&6; }
1787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789} # ac_fn_c_check_func
1790ac_configure_args_raw=
1791for ac_arg
1792do
1793  case $ac_arg in
1794  *\'*)
1795    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1796  esac
1797  as_fn_append ac_configure_args_raw " '$ac_arg'"
1798done
1799
1800case $ac_configure_args_raw in
1801  *$as_nl*)
1802    ac_safe_unquote= ;;
1803  *)
1804    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1805    ac_unsafe_a="$ac_unsafe_z#~"
1806    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1807    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1808esac
1809
1810cat >config.log <<_ACEOF
1811This file contains any messages produced by compilers while
1812running configure, to aid debugging if configure makes a mistake.
1813
1814It was created by xload $as_me 1.1.4, which was
1815generated by GNU Autoconf 2.71.  Invocation command line was
1816
1817  $ $0$ac_configure_args_raw
1818
1819_ACEOF
1820exec 5>>config.log
1821{
1822cat <<_ASUNAME
1823## --------- ##
1824## Platform. ##
1825## --------- ##
1826
1827hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1828uname -m = `(uname -m) 2>/dev/null || echo unknown`
1829uname -r = `(uname -r) 2>/dev/null || echo unknown`
1830uname -s = `(uname -s) 2>/dev/null || echo unknown`
1831uname -v = `(uname -v) 2>/dev/null || echo unknown`
1832
1833/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1834/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1835
1836/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1837/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1838/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1839/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1840/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1841/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1842/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1843
1844_ASUNAME
1845
1846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847for as_dir in $PATH
1848do
1849  IFS=$as_save_IFS
1850  case $as_dir in #(((
1851    '') as_dir=./ ;;
1852    */) ;;
1853    *) as_dir=$as_dir/ ;;
1854  esac
1855    printf "%s\n" "PATH: $as_dir"
1856  done
1857IFS=$as_save_IFS
1858
1859} >&5
1860
1861cat >&5 <<_ACEOF
1862
1863
1864## ----------- ##
1865## Core tests. ##
1866## ----------- ##
1867
1868_ACEOF
1869
1870
1871# Keep a trace of the command line.
1872# Strip out --no-create and --no-recursion so they do not pile up.
1873# Strip out --silent because we don't want to record it for future runs.
1874# Also quote any args containing shell meta-characters.
1875# Make two passes to allow for proper duplicate-argument suppression.
1876ac_configure_args=
1877ac_configure_args0=
1878ac_configure_args1=
1879ac_must_keep_next=false
1880for ac_pass in 1 2
1881do
1882  for ac_arg
1883  do
1884    case $ac_arg in
1885    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1886    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1887    | -silent | --silent | --silen | --sile | --sil)
1888      continue ;;
1889    *\'*)
1890      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1891    esac
1892    case $ac_pass in
1893    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1894    2)
1895      as_fn_append ac_configure_args1 " '$ac_arg'"
1896      if test $ac_must_keep_next = true; then
1897	ac_must_keep_next=false # Got value, back to normal.
1898      else
1899	case $ac_arg in
1900	  *=* | --config-cache | -C | -disable-* | --disable-* \
1901	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1902	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1903	  | -with-* | --with-* | -without-* | --without-* | --x)
1904	    case "$ac_configure_args0 " in
1905	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1906	    esac
1907	    ;;
1908	  -* ) ac_must_keep_next=true ;;
1909	esac
1910      fi
1911      as_fn_append ac_configure_args " '$ac_arg'"
1912      ;;
1913    esac
1914  done
1915done
1916{ ac_configure_args0=; unset ac_configure_args0;}
1917{ ac_configure_args1=; unset ac_configure_args1;}
1918
1919# When interrupted or exit'd, cleanup temporary files, and complete
1920# config.log.  We remove comments because anyway the quotes in there
1921# would cause problems or look ugly.
1922# WARNING: Use '\'' to represent an apostrophe within the trap.
1923# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1924trap 'exit_status=$?
1925  # Sanitize IFS.
1926  IFS=" ""	$as_nl"
1927  # Save into config.log some information that might help in debugging.
1928  {
1929    echo
1930
1931    printf "%s\n" "## ---------------- ##
1932## Cache variables. ##
1933## ---------------- ##"
1934    echo
1935    # The following way of writing the cache mishandles newlines in values,
1936(
1937  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1938    eval ac_val=\$$ac_var
1939    case $ac_val in #(
1940    *${as_nl}*)
1941      case $ac_var in #(
1942      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1943printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1944      esac
1945      case $ac_var in #(
1946      _ | IFS | as_nl) ;; #(
1947      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1948      *) { eval $ac_var=; unset $ac_var;} ;;
1949      esac ;;
1950    esac
1951  done
1952  (set) 2>&1 |
1953    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1954    *${as_nl}ac_space=\ *)
1955      sed -n \
1956	"s/'\''/'\''\\\\'\'''\''/g;
1957	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1958      ;; #(
1959    *)
1960      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1961      ;;
1962    esac |
1963    sort
1964)
1965    echo
1966
1967    printf "%s\n" "## ----------------- ##
1968## Output variables. ##
1969## ----------------- ##"
1970    echo
1971    for ac_var in $ac_subst_vars
1972    do
1973      eval ac_val=\$$ac_var
1974      case $ac_val in
1975      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1976      esac
1977      printf "%s\n" "$ac_var='\''$ac_val'\''"
1978    done | sort
1979    echo
1980
1981    if test -n "$ac_subst_files"; then
1982      printf "%s\n" "## ------------------- ##
1983## File substitutions. ##
1984## ------------------- ##"
1985      echo
1986      for ac_var in $ac_subst_files
1987      do
1988	eval ac_val=\$$ac_var
1989	case $ac_val in
1990	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1991	esac
1992	printf "%s\n" "$ac_var='\''$ac_val'\''"
1993      done | sort
1994      echo
1995    fi
1996
1997    if test -s confdefs.h; then
1998      printf "%s\n" "## ----------- ##
1999## confdefs.h. ##
2000## ----------- ##"
2001      echo
2002      cat confdefs.h
2003      echo
2004    fi
2005    test "$ac_signal" != 0 &&
2006      printf "%s\n" "$as_me: caught signal $ac_signal"
2007    printf "%s\n" "$as_me: exit $exit_status"
2008  } >&5
2009  rm -f core *.core core.conftest.* &&
2010    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2011    exit $exit_status
2012' 0
2013for ac_signal in 1 2 13 15; do
2014  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2015done
2016ac_signal=0
2017
2018# confdefs.h avoids OS command line length limits that DEFS can exceed.
2019rm -f -r conftest* confdefs.h
2020
2021printf "%s\n" "/* confdefs.h */" > confdefs.h
2022
2023# Predefined preprocessor variables.
2024
2025printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2026
2027printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2028
2029printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2030
2031printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2032
2033printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2034
2035printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2036
2037
2038# Let the site file select an alternate cache file if it wants to.
2039# Prefer an explicitly selected file to automatically selected ones.
2040if test -n "$CONFIG_SITE"; then
2041  ac_site_files="$CONFIG_SITE"
2042elif test "x$prefix" != xNONE; then
2043  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2044else
2045  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2046fi
2047
2048for ac_site_file in $ac_site_files
2049do
2050  case $ac_site_file in #(
2051  */*) :
2052     ;; #(
2053  *) :
2054    ac_site_file=./$ac_site_file ;;
2055esac
2056  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2057    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2058printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2059    sed 's/^/| /' "$ac_site_file" >&5
2060    . "$ac_site_file" \
2061      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2062printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2063as_fn_error $? "failed to load site script $ac_site_file
2064See \`config.log' for more details" "$LINENO" 5; }
2065  fi
2066done
2067
2068if test -r "$cache_file"; then
2069  # Some versions of bash will fail to source /dev/null (special files
2070  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2071  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2072    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2073printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2074    case $cache_file in
2075      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2076      *)                      . "./$cache_file";;
2077    esac
2078  fi
2079else
2080  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2081printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2082  >$cache_file
2083fi
2084
2085as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2086# Test code for whether the C compiler supports C89 (global declarations)
2087ac_c_conftest_c89_globals='
2088/* Does the compiler advertise C89 conformance?
2089   Do not test the value of __STDC__, because some compilers set it to 0
2090   while being otherwise adequately conformant. */
2091#if !defined __STDC__
2092# error "Compiler does not advertise C89 conformance"
2093#endif
2094
2095#include <stddef.h>
2096#include <stdarg.h>
2097struct stat;
2098/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2099struct buf { int x; };
2100struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2101static char *e (p, i)
2102     char **p;
2103     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/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2118   function prototypes and stuff, but not \xHH hex character constants.
2119   These do not provoke an error unfortunately, instead are silently treated
2120   as an "x".  The following induces an error, until -std is added to get
2121   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2122   array size at least.  It is necessary to write \x00 == 0 to get something
2123   that is true only with -std.  */
2124int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2125
2126/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2127   inside strings and character constants.  */
2128#define FOO(x) '\''x'\''
2129int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2130
2131int test (int i, double x);
2132struct s1 {int (*f) (int a);};
2133struct s2 {int (*f) (double a);};
2134int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2135               int, int);'
2136
2137# Test code for whether the C compiler supports C89 (body of main).
2138ac_c_conftest_c89_main='
2139ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2140'
2141
2142# Test code for whether the C compiler supports C99 (global declarations)
2143ac_c_conftest_c99_globals='
2144// Does the compiler advertise C99 conformance?
2145#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2146# error "Compiler does not advertise C99 conformance"
2147#endif
2148
2149#include <stdbool.h>
2150extern int puts (const char *);
2151extern int printf (const char *, ...);
2152extern int dprintf (int, const char *, ...);
2153extern void *malloc (size_t);
2154
2155// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2156// dprintf is used instead of fprintf to avoid needing to declare
2157// FILE and stderr.
2158#define debug(...) dprintf (2, __VA_ARGS__)
2159#define showlist(...) puts (#__VA_ARGS__)
2160#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2161static void
2162test_varargs_macros (void)
2163{
2164  int x = 1234;
2165  int y = 5678;
2166  debug ("Flag");
2167  debug ("X = %d\n", x);
2168  showlist (The first, second, and third items.);
2169  report (x>y, "x is %d but y is %d", x, y);
2170}
2171
2172// Check long long types.
2173#define BIG64 18446744073709551615ull
2174#define BIG32 4294967295ul
2175#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2176#if !BIG_OK
2177  #error "your preprocessor is broken"
2178#endif
2179#if BIG_OK
2180#else
2181  #error "your preprocessor is broken"
2182#endif
2183static long long int bignum = -9223372036854775807LL;
2184static unsigned long long int ubignum = BIG64;
2185
2186struct incomplete_array
2187{
2188  int datasize;
2189  double data[];
2190};
2191
2192struct named_init {
2193  int number;
2194  const wchar_t *name;
2195  double average;
2196};
2197
2198typedef const char *ccp;
2199
2200static inline int
2201test_restrict (ccp restrict text)
2202{
2203  // See if C++-style comments work.
2204  // Iterate through items via the restricted pointer.
2205  // Also check for declarations in for loops.
2206  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2207    continue;
2208  return 0;
2209}
2210
2211// Check varargs and va_copy.
2212static bool
2213test_varargs (const char *format, ...)
2214{
2215  va_list args;
2216  va_start (args, format);
2217  va_list args_copy;
2218  va_copy (args_copy, args);
2219
2220  const char *str = "";
2221  int number = 0;
2222  float fnumber = 0;
2223
2224  while (*format)
2225    {
2226      switch (*format++)
2227	{
2228	case '\''s'\'': // string
2229	  str = va_arg (args_copy, const char *);
2230	  break;
2231	case '\''d'\'': // int
2232	  number = va_arg (args_copy, int);
2233	  break;
2234	case '\''f'\'': // float
2235	  fnumber = va_arg (args_copy, double);
2236	  break;
2237	default:
2238	  break;
2239	}
2240    }
2241  va_end (args_copy);
2242  va_end (args);
2243
2244  return *str && number && fnumber;
2245}
2246'
2247
2248# Test code for whether the C compiler supports C99 (body of main).
2249ac_c_conftest_c99_main='
2250  // Check bool.
2251  _Bool success = false;
2252  success |= (argc != 0);
2253
2254  // Check restrict.
2255  if (test_restrict ("String literal") == 0)
2256    success = true;
2257  char *restrict newvar = "Another string";
2258
2259  // Check varargs.
2260  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2261  test_varargs_macros ();
2262
2263  // Check flexible array members.
2264  struct incomplete_array *ia =
2265    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2266  ia->datasize = 10;
2267  for (int i = 0; i < ia->datasize; ++i)
2268    ia->data[i] = i * 1.234;
2269
2270  // Check named initializers.
2271  struct named_init ni = {
2272    .number = 34,
2273    .name = L"Test wide string",
2274    .average = 543.34343,
2275  };
2276
2277  ni.number = 58;
2278
2279  int dynamic_array[ni.number];
2280  dynamic_array[0] = argv[0][0];
2281  dynamic_array[ni.number - 1] = 543;
2282
2283  // work around unused variable warnings
2284  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2285	 || dynamic_array[ni.number - 1] != 543);
2286'
2287
2288# Test code for whether the C compiler supports C11 (global declarations)
2289ac_c_conftest_c11_globals='
2290// Does the compiler advertise C11 conformance?
2291#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2292# error "Compiler does not advertise C11 conformance"
2293#endif
2294
2295// Check _Alignas.
2296char _Alignas (double) aligned_as_double;
2297char _Alignas (0) no_special_alignment;
2298extern char aligned_as_int;
2299char _Alignas (0) _Alignas (int) aligned_as_int;
2300
2301// Check _Alignof.
2302enum
2303{
2304  int_alignment = _Alignof (int),
2305  int_array_alignment = _Alignof (int[100]),
2306  char_alignment = _Alignof (char)
2307};
2308_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2309
2310// Check _Noreturn.
2311int _Noreturn does_not_return (void) { for (;;) continue; }
2312
2313// Check _Static_assert.
2314struct test_static_assert
2315{
2316  int x;
2317  _Static_assert (sizeof (int) <= sizeof (long int),
2318                  "_Static_assert does not work in struct");
2319  long int y;
2320};
2321
2322// Check UTF-8 literals.
2323#define u8 syntax error!
2324char const utf8_literal[] = u8"happens to be ASCII" "another string";
2325
2326// Check duplicate typedefs.
2327typedef long *long_ptr;
2328typedef long int *long_ptr;
2329typedef long_ptr long_ptr;
2330
2331// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2332struct anonymous
2333{
2334  union {
2335    struct { int i; int j; };
2336    struct { int k; long int l; } w;
2337  };
2338  int m;
2339} v1;
2340'
2341
2342# Test code for whether the C compiler supports C11 (body of main).
2343ac_c_conftest_c11_main='
2344  _Static_assert ((offsetof (struct anonymous, i)
2345		   == offsetof (struct anonymous, w.k)),
2346		  "Anonymous union alignment botch");
2347  v1.i = 2;
2348  v1.w.k = 5;
2349  ok |= v1.i != 5;
2350'
2351
2352# Test code for whether the C compiler supports C11 (complete).
2353ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2354${ac_c_conftest_c99_globals}
2355${ac_c_conftest_c11_globals}
2356
2357int
2358main (int argc, char **argv)
2359{
2360  int ok = 0;
2361  ${ac_c_conftest_c89_main}
2362  ${ac_c_conftest_c99_main}
2363  ${ac_c_conftest_c11_main}
2364  return ok;
2365}
2366"
2367
2368# Test code for whether the C compiler supports C99 (complete).
2369ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2370${ac_c_conftest_c99_globals}
2371
2372int
2373main (int argc, char **argv)
2374{
2375  int ok = 0;
2376  ${ac_c_conftest_c89_main}
2377  ${ac_c_conftest_c99_main}
2378  return ok;
2379}
2380"
2381
2382# Test code for whether the C compiler supports C89 (complete).
2383ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2384
2385int
2386main (int argc, char **argv)
2387{
2388  int ok = 0;
2389  ${ac_c_conftest_c89_main}
2390  return ok;
2391}
2392"
2393
2394as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2395as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2396as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2397as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2398as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2399as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2400as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2401as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2402as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2403as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2404
2405# Auxiliary files required by this configure script.
2406ac_aux_files="config.guess config.sub missing install-sh compile"
2407
2408# Locations in which to look for auxiliary files.
2409ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2410
2411# Search for a directory containing all of the required auxiliary files,
2412# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2413# If we don't find one directory that contains all the files we need,
2414# we report the set of missing files from the *first* directory in
2415# $ac_aux_dir_candidates and give up.
2416ac_missing_aux_files=""
2417ac_first_candidate=:
2418printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420as_found=false
2421for as_dir in $ac_aux_dir_candidates
2422do
2423  IFS=$as_save_IFS
2424  case $as_dir in #(((
2425    '') as_dir=./ ;;
2426    */) ;;
2427    *) as_dir=$as_dir/ ;;
2428  esac
2429  as_found=:
2430
2431  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2432  ac_aux_dir_found=yes
2433  ac_install_sh=
2434  for ac_aux in $ac_aux_files
2435  do
2436    # As a special case, if "install-sh" is required, that requirement
2437    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2438    # and $ac_install_sh is set appropriately for whichever one is found.
2439    if test x"$ac_aux" = x"install-sh"
2440    then
2441      if test -f "${as_dir}install-sh"; then
2442        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2443        ac_install_sh="${as_dir}install-sh -c"
2444      elif test -f "${as_dir}install.sh"; then
2445        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2446        ac_install_sh="${as_dir}install.sh -c"
2447      elif test -f "${as_dir}shtool"; then
2448        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2449        ac_install_sh="${as_dir}shtool install -c"
2450      else
2451        ac_aux_dir_found=no
2452        if $ac_first_candidate; then
2453          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2454        else
2455          break
2456        fi
2457      fi
2458    else
2459      if test -f "${as_dir}${ac_aux}"; then
2460        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2461      else
2462        ac_aux_dir_found=no
2463        if $ac_first_candidate; then
2464          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2465        else
2466          break
2467        fi
2468      fi
2469    fi
2470  done
2471  if test "$ac_aux_dir_found" = yes; then
2472    ac_aux_dir="$as_dir"
2473    break
2474  fi
2475  ac_first_candidate=false
2476
2477  as_found=false
2478done
2479IFS=$as_save_IFS
2480if $as_found
2481then :
2482
2483else $as_nop
2484  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2485fi
2486
2487
2488# These three variables are undocumented and unsupported,
2489# and are intended to be withdrawn in a future Autoconf release.
2490# They can cause serious problems if a builder's source tree is in a directory
2491# whose full name contains unusual characters.
2492if test -f "${ac_aux_dir}config.guess"; then
2493  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2494fi
2495if test -f "${ac_aux_dir}config.sub"; then
2496  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2497fi
2498if test -f "$ac_aux_dir/configure"; then
2499  ac_configure="$SHELL ${ac_aux_dir}configure"
2500fi
2501
2502# Check that the precious variables saved in the cache have kept the same
2503# value.
2504ac_cache_corrupted=false
2505for ac_var in $ac_precious_vars; do
2506  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2507  eval ac_new_set=\$ac_env_${ac_var}_set
2508  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2509  eval ac_new_val=\$ac_env_${ac_var}_value
2510  case $ac_old_set,$ac_new_set in
2511    set,)
2512      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2513printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2514      ac_cache_corrupted=: ;;
2515    ,set)
2516      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2517printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2518      ac_cache_corrupted=: ;;
2519    ,);;
2520    *)
2521      if test "x$ac_old_val" != "x$ac_new_val"; then
2522	# differences in whitespace do not lead to failure.
2523	ac_old_val_w=`echo x $ac_old_val`
2524	ac_new_val_w=`echo x $ac_new_val`
2525	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2526	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2527printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2528	  ac_cache_corrupted=:
2529	else
2530	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2531printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2532	  eval $ac_var=\$ac_old_val
2533	fi
2534	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2535printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2536	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2537printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2538      fi;;
2539  esac
2540  # Pass precious variables to config.status.
2541  if test "$ac_new_set" = set; then
2542    case $ac_new_val in
2543    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2544    *) ac_arg=$ac_var=$ac_new_val ;;
2545    esac
2546    case " $ac_configure_args " in
2547      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2548      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2549    esac
2550  fi
2551done
2552if $ac_cache_corrupted; then
2553  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2554printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2555  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2556printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2557  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2558	    and start over" "$LINENO" 5
2559fi
2560## -------------------- ##
2561## Main body of script. ##
2562## -------------------- ##
2563
2564ac_ext=c
2565ac_cpp='$CPP $CPPFLAGS'
2566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569
2570
2571
2572
2573ac_config_headers="$ac_config_headers config.h"
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586# Expand $ac_aux_dir to an absolute path.
2587am_aux_dir=`cd "$ac_aux_dir" && pwd`
2588
2589ac_ext=c
2590ac_cpp='$CPP $CPPFLAGS'
2591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593ac_compiler_gnu=$ac_cv_c_compiler_gnu
2594if test -n "$ac_tool_prefix"; then
2595  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2596set dummy ${ac_tool_prefix}gcc; ac_word=$2
2597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2598printf %s "checking for $ac_word... " >&6; }
2599if test ${ac_cv_prog_CC+y}
2600then :
2601  printf %s "(cached) " >&6
2602else $as_nop
2603  if test -n "$CC"; then
2604  ac_cv_prog_CC="$CC" # Let the user override the test.
2605else
2606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607for as_dir in $PATH
2608do
2609  IFS=$as_save_IFS
2610  case $as_dir in #(((
2611    '') as_dir=./ ;;
2612    */) ;;
2613    *) as_dir=$as_dir/ ;;
2614  esac
2615    for ac_exec_ext in '' $ac_executable_extensions; do
2616  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2617    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2618    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2619    break 2
2620  fi
2621done
2622  done
2623IFS=$as_save_IFS
2624
2625fi
2626fi
2627CC=$ac_cv_prog_CC
2628if test -n "$CC"; then
2629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2630printf "%s\n" "$CC" >&6; }
2631else
2632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633printf "%s\n" "no" >&6; }
2634fi
2635
2636
2637fi
2638if test -z "$ac_cv_prog_CC"; then
2639  ac_ct_CC=$CC
2640  # Extract the first word of "gcc", so it can be a program name with args.
2641set dummy gcc; ac_word=$2
2642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643printf %s "checking for $ac_word... " >&6; }
2644if test ${ac_cv_prog_ac_ct_CC+y}
2645then :
2646  printf %s "(cached) " >&6
2647else $as_nop
2648  if test -n "$ac_ct_CC"; then
2649  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2650else
2651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652for as_dir in $PATH
2653do
2654  IFS=$as_save_IFS
2655  case $as_dir in #(((
2656    '') as_dir=./ ;;
2657    */) ;;
2658    *) as_dir=$as_dir/ ;;
2659  esac
2660    for ac_exec_ext in '' $ac_executable_extensions; do
2661  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2662    ac_cv_prog_ac_ct_CC="gcc"
2663    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2664    break 2
2665  fi
2666done
2667  done
2668IFS=$as_save_IFS
2669
2670fi
2671fi
2672ac_ct_CC=$ac_cv_prog_ac_ct_CC
2673if test -n "$ac_ct_CC"; then
2674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2675printf "%s\n" "$ac_ct_CC" >&6; }
2676else
2677  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678printf "%s\n" "no" >&6; }
2679fi
2680
2681  if test "x$ac_ct_CC" = x; then
2682    CC=""
2683  else
2684    case $cross_compiling:$ac_tool_warned in
2685yes:)
2686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2687printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2688ac_tool_warned=yes ;;
2689esac
2690    CC=$ac_ct_CC
2691  fi
2692else
2693  CC="$ac_cv_prog_CC"
2694fi
2695
2696if test -z "$CC"; then
2697          if test -n "$ac_tool_prefix"; then
2698    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2699set dummy ${ac_tool_prefix}cc; ac_word=$2
2700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701printf %s "checking for $ac_word... " >&6; }
2702if test ${ac_cv_prog_CC+y}
2703then :
2704  printf %s "(cached) " >&6
2705else $as_nop
2706  if test -n "$CC"; then
2707  ac_cv_prog_CC="$CC" # Let the user override the test.
2708else
2709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710for as_dir in $PATH
2711do
2712  IFS=$as_save_IFS
2713  case $as_dir in #(((
2714    '') as_dir=./ ;;
2715    */) ;;
2716    *) as_dir=$as_dir/ ;;
2717  esac
2718    for ac_exec_ext in '' $ac_executable_extensions; do
2719  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2720    ac_cv_prog_CC="${ac_tool_prefix}cc"
2721    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2722    break 2
2723  fi
2724done
2725  done
2726IFS=$as_save_IFS
2727
2728fi
2729fi
2730CC=$ac_cv_prog_CC
2731if test -n "$CC"; then
2732  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2733printf "%s\n" "$CC" >&6; }
2734else
2735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736printf "%s\n" "no" >&6; }
2737fi
2738
2739
2740  fi
2741fi
2742if test -z "$CC"; then
2743  # Extract the first word of "cc", so it can be a program name with args.
2744set dummy cc; ac_word=$2
2745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2746printf %s "checking for $ac_word... " >&6; }
2747if test ${ac_cv_prog_CC+y}
2748then :
2749  printf %s "(cached) " >&6
2750else $as_nop
2751  if test -n "$CC"; then
2752  ac_cv_prog_CC="$CC" # Let the user override the test.
2753else
2754  ac_prog_rejected=no
2755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756for as_dir in $PATH
2757do
2758  IFS=$as_save_IFS
2759  case $as_dir in #(((
2760    '') as_dir=./ ;;
2761    */) ;;
2762    *) as_dir=$as_dir/ ;;
2763  esac
2764    for ac_exec_ext in '' $ac_executable_extensions; do
2765  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2766    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2767       ac_prog_rejected=yes
2768       continue
2769     fi
2770    ac_cv_prog_CC="cc"
2771    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2772    break 2
2773  fi
2774done
2775  done
2776IFS=$as_save_IFS
2777
2778if test $ac_prog_rejected = yes; then
2779  # We found a bogon in the path, so make sure we never use it.
2780  set dummy $ac_cv_prog_CC
2781  shift
2782  if test $# != 0; then
2783    # We chose a different compiler from the bogus one.
2784    # However, it has the same basename, so the bogon will be chosen
2785    # first if we set CC to just the basename; use the full file name.
2786    shift
2787    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2788  fi
2789fi
2790fi
2791fi
2792CC=$ac_cv_prog_CC
2793if test -n "$CC"; then
2794  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2795printf "%s\n" "$CC" >&6; }
2796else
2797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798printf "%s\n" "no" >&6; }
2799fi
2800
2801
2802fi
2803if test -z "$CC"; then
2804  if test -n "$ac_tool_prefix"; then
2805  for ac_prog in cl.exe
2806  do
2807    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2808set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810printf %s "checking for $ac_word... " >&6; }
2811if test ${ac_cv_prog_CC+y}
2812then :
2813  printf %s "(cached) " >&6
2814else $as_nop
2815  if test -n "$CC"; then
2816  ac_cv_prog_CC="$CC" # Let the user override the test.
2817else
2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819for as_dir in $PATH
2820do
2821  IFS=$as_save_IFS
2822  case $as_dir in #(((
2823    '') as_dir=./ ;;
2824    */) ;;
2825    *) as_dir=$as_dir/ ;;
2826  esac
2827    for ac_exec_ext in '' $ac_executable_extensions; do
2828  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2829    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2830    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2831    break 2
2832  fi
2833done
2834  done
2835IFS=$as_save_IFS
2836
2837fi
2838fi
2839CC=$ac_cv_prog_CC
2840if test -n "$CC"; then
2841  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2842printf "%s\n" "$CC" >&6; }
2843else
2844  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845printf "%s\n" "no" >&6; }
2846fi
2847
2848
2849    test -n "$CC" && break
2850  done
2851fi
2852if test -z "$CC"; then
2853  ac_ct_CC=$CC
2854  for ac_prog in cl.exe
2855do
2856  # Extract the first word of "$ac_prog", so it can be a program name with args.
2857set dummy $ac_prog; ac_word=$2
2858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859printf %s "checking for $ac_word... " >&6; }
2860if test ${ac_cv_prog_ac_ct_CC+y}
2861then :
2862  printf %s "(cached) " >&6
2863else $as_nop
2864  if test -n "$ac_ct_CC"; then
2865  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2866else
2867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868for as_dir in $PATH
2869do
2870  IFS=$as_save_IFS
2871  case $as_dir in #(((
2872    '') as_dir=./ ;;
2873    */) ;;
2874    *) as_dir=$as_dir/ ;;
2875  esac
2876    for ac_exec_ext in '' $ac_executable_extensions; do
2877  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2878    ac_cv_prog_ac_ct_CC="$ac_prog"
2879    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2880    break 2
2881  fi
2882done
2883  done
2884IFS=$as_save_IFS
2885
2886fi
2887fi
2888ac_ct_CC=$ac_cv_prog_ac_ct_CC
2889if test -n "$ac_ct_CC"; then
2890  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2891printf "%s\n" "$ac_ct_CC" >&6; }
2892else
2893  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894printf "%s\n" "no" >&6; }
2895fi
2896
2897
2898  test -n "$ac_ct_CC" && break
2899done
2900
2901  if test "x$ac_ct_CC" = x; then
2902    CC=""
2903  else
2904    case $cross_compiling:$ac_tool_warned in
2905yes:)
2906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2907printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2908ac_tool_warned=yes ;;
2909esac
2910    CC=$ac_ct_CC
2911  fi
2912fi
2913
2914fi
2915if test -z "$CC"; then
2916  if test -n "$ac_tool_prefix"; then
2917  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2918set dummy ${ac_tool_prefix}clang; ac_word=$2
2919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920printf %s "checking for $ac_word... " >&6; }
2921if test ${ac_cv_prog_CC+y}
2922then :
2923  printf %s "(cached) " >&6
2924else $as_nop
2925  if test -n "$CC"; then
2926  ac_cv_prog_CC="$CC" # Let the user override the test.
2927else
2928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929for as_dir in $PATH
2930do
2931  IFS=$as_save_IFS
2932  case $as_dir in #(((
2933    '') as_dir=./ ;;
2934    */) ;;
2935    *) as_dir=$as_dir/ ;;
2936  esac
2937    for ac_exec_ext in '' $ac_executable_extensions; do
2938  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2939    ac_cv_prog_CC="${ac_tool_prefix}clang"
2940    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2941    break 2
2942  fi
2943done
2944  done
2945IFS=$as_save_IFS
2946
2947fi
2948fi
2949CC=$ac_cv_prog_CC
2950if test -n "$CC"; then
2951  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2952printf "%s\n" "$CC" >&6; }
2953else
2954  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955printf "%s\n" "no" >&6; }
2956fi
2957
2958
2959fi
2960if test -z "$ac_cv_prog_CC"; then
2961  ac_ct_CC=$CC
2962  # Extract the first word of "clang", so it can be a program name with args.
2963set dummy clang; 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_ac_ct_CC+y}
2967then :
2968  printf %s "(cached) " >&6
2969else $as_nop
2970  if test -n "$ac_ct_CC"; then
2971  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_ac_ct_CC="clang"
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
2993fi
2994ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995if test -n "$ac_ct_CC"; then
2996  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2997printf "%s\n" "$ac_ct_CC" >&6; }
2998else
2999  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000printf "%s\n" "no" >&6; }
3001fi
3002
3003  if test "x$ac_ct_CC" = x; then
3004    CC=""
3005  else
3006    case $cross_compiling:$ac_tool_warned in
3007yes:)
3008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3009printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3010ac_tool_warned=yes ;;
3011esac
3012    CC=$ac_ct_CC
3013  fi
3014else
3015  CC="$ac_cv_prog_CC"
3016fi
3017
3018fi
3019
3020
3021test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3022printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3023as_fn_error $? "no acceptable C compiler found in \$PATH
3024See \`config.log' for more details" "$LINENO" 5; }
3025
3026# Provide some information about the compiler.
3027printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3028set X $ac_compile
3029ac_compiler=$2
3030for ac_option in --version -v -V -qversion -version; do
3031  { { ac_try="$ac_compiler $ac_option >&5"
3032case "(($ac_try" in
3033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034  *) ac_try_echo=$ac_try;;
3035esac
3036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3037printf "%s\n" "$ac_try_echo"; } >&5
3038  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3039  ac_status=$?
3040  if test -s conftest.err; then
3041    sed '10a\
3042... rest of stderr output deleted ...
3043         10q' conftest.err >conftest.er1
3044    cat conftest.er1 >&5
3045  fi
3046  rm -f conftest.er1 conftest.err
3047  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3048  test $ac_status = 0; }
3049done
3050
3051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3052/* end confdefs.h.  */
3053
3054int
3055main (void)
3056{
3057
3058  ;
3059  return 0;
3060}
3061_ACEOF
3062ac_clean_files_save=$ac_clean_files
3063ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3064# Try to create an executable without -o first, disregard a.out.
3065# It will help us diagnose broken compilers, and finding out an intuition
3066# of exeext.
3067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3068printf %s "checking whether the C compiler works... " >&6; }
3069ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3070
3071# The possible output files:
3072ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3073
3074ac_rmfiles=
3075for ac_file in $ac_files
3076do
3077  case $ac_file in
3078    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3079    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3080  esac
3081done
3082rm -f $ac_rmfiles
3083
3084if { { ac_try="$ac_link_default"
3085case "(($ac_try" in
3086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087  *) ac_try_echo=$ac_try;;
3088esac
3089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090printf "%s\n" "$ac_try_echo"; } >&5
3091  (eval "$ac_link_default") 2>&5
3092  ac_status=$?
3093  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094  test $ac_status = 0; }
3095then :
3096  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3097# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3098# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3099# so that the user can short-circuit this test for compilers unknown to
3100# Autoconf.
3101for ac_file in $ac_files ''
3102do
3103  test -f "$ac_file" || continue
3104  case $ac_file in
3105    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3106	;;
3107    [ab].out )
3108	# We found the default executable, but exeext='' is most
3109	# certainly right.
3110	break;;
3111    *.* )
3112	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3113	then :; else
3114	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3115	fi
3116	# We set ac_cv_exeext here because the later test for it is not
3117	# safe: cross compilers may not add the suffix if given an `-o'
3118	# argument, so we may need to know it at that point already.
3119	# Even if this section looks crufty: it has the advantage of
3120	# actually working.
3121	break;;
3122    * )
3123	break;;
3124  esac
3125done
3126test "$ac_cv_exeext" = no && ac_cv_exeext=
3127
3128else $as_nop
3129  ac_file=''
3130fi
3131if test -z "$ac_file"
3132then :
3133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134printf "%s\n" "no" >&6; }
3135printf "%s\n" "$as_me: failed program was:" >&5
3136sed 's/^/| /' conftest.$ac_ext >&5
3137
3138{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3139printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3140as_fn_error 77 "C compiler cannot create executables
3141See \`config.log' for more details" "$LINENO" 5; }
3142else $as_nop
3143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3144printf "%s\n" "yes" >&6; }
3145fi
3146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3147printf %s "checking for C compiler default output file name... " >&6; }
3148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3149printf "%s\n" "$ac_file" >&6; }
3150ac_exeext=$ac_cv_exeext
3151
3152rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3153ac_clean_files=$ac_clean_files_save
3154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3155printf %s "checking for suffix of executables... " >&6; }
3156if { { ac_try="$ac_link"
3157case "(($ac_try" in
3158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159  *) ac_try_echo=$ac_try;;
3160esac
3161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162printf "%s\n" "$ac_try_echo"; } >&5
3163  (eval "$ac_link") 2>&5
3164  ac_status=$?
3165  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3166  test $ac_status = 0; }
3167then :
3168  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3169# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3170# work properly (i.e., refer to `conftest.exe'), while it won't with
3171# `rm'.
3172for ac_file in conftest.exe conftest conftest.*; do
3173  test -f "$ac_file" || continue
3174  case $ac_file in
3175    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3176    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3177	  break;;
3178    * ) break;;
3179  esac
3180done
3181else $as_nop
3182  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3184as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3185See \`config.log' for more details" "$LINENO" 5; }
3186fi
3187rm -f conftest conftest$ac_cv_exeext
3188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3189printf "%s\n" "$ac_cv_exeext" >&6; }
3190
3191rm -f conftest.$ac_ext
3192EXEEXT=$ac_cv_exeext
3193ac_exeext=$EXEEXT
3194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195/* end confdefs.h.  */
3196#include <stdio.h>
3197int
3198main (void)
3199{
3200FILE *f = fopen ("conftest.out", "w");
3201 return ferror (f) || fclose (f) != 0;
3202
3203  ;
3204  return 0;
3205}
3206_ACEOF
3207ac_clean_files="$ac_clean_files conftest.out"
3208# Check that the compiler produces executables we can run.  If not, either
3209# the compiler is broken, or we cross compile.
3210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3211printf %s "checking whether we are cross compiling... " >&6; }
3212if test "$cross_compiling" != yes; then
3213  { { ac_try="$ac_link"
3214case "(($ac_try" in
3215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216  *) ac_try_echo=$ac_try;;
3217esac
3218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219printf "%s\n" "$ac_try_echo"; } >&5
3220  (eval "$ac_link") 2>&5
3221  ac_status=$?
3222  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223  test $ac_status = 0; }
3224  if { ac_try='./conftest$ac_cv_exeext'
3225  { { case "(($ac_try" in
3226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227  *) ac_try_echo=$ac_try;;
3228esac
3229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230printf "%s\n" "$ac_try_echo"; } >&5
3231  (eval "$ac_try") 2>&5
3232  ac_status=$?
3233  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234  test $ac_status = 0; }; }; then
3235    cross_compiling=no
3236  else
3237    if test "$cross_compiling" = maybe; then
3238	cross_compiling=yes
3239    else
3240	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3242as_fn_error 77 "cannot run C compiled programs.
3243If you meant to cross compile, use \`--host'.
3244See \`config.log' for more details" "$LINENO" 5; }
3245    fi
3246  fi
3247fi
3248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3249printf "%s\n" "$cross_compiling" >&6; }
3250
3251rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3252ac_clean_files=$ac_clean_files_save
3253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3254printf %s "checking for suffix of object files... " >&6; }
3255if test ${ac_cv_objext+y}
3256then :
3257  printf %s "(cached) " >&6
3258else $as_nop
3259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260/* end confdefs.h.  */
3261
3262int
3263main (void)
3264{
3265
3266  ;
3267  return 0;
3268}
3269_ACEOF
3270rm -f conftest.o conftest.obj
3271if { { ac_try="$ac_compile"
3272case "(($ac_try" in
3273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274  *) ac_try_echo=$ac_try;;
3275esac
3276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277printf "%s\n" "$ac_try_echo"; } >&5
3278  (eval "$ac_compile") 2>&5
3279  ac_status=$?
3280  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281  test $ac_status = 0; }
3282then :
3283  for ac_file in conftest.o conftest.obj conftest.*; do
3284  test -f "$ac_file" || continue;
3285  case $ac_file in
3286    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3287    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3288       break;;
3289  esac
3290done
3291else $as_nop
3292  printf "%s\n" "$as_me: failed program was:" >&5
3293sed 's/^/| /' conftest.$ac_ext >&5
3294
3295{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3297as_fn_error $? "cannot compute suffix of object files: cannot compile
3298See \`config.log' for more details" "$LINENO" 5; }
3299fi
3300rm -f conftest.$ac_cv_objext conftest.$ac_ext
3301fi
3302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3303printf "%s\n" "$ac_cv_objext" >&6; }
3304OBJEXT=$ac_cv_objext
3305ac_objext=$OBJEXT
3306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3307printf %s "checking whether the compiler supports GNU C... " >&6; }
3308if test ${ac_cv_c_compiler_gnu+y}
3309then :
3310  printf %s "(cached) " >&6
3311else $as_nop
3312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313/* end confdefs.h.  */
3314
3315int
3316main (void)
3317{
3318#ifndef __GNUC__
3319       choke me
3320#endif
3321
3322  ;
3323  return 0;
3324}
3325_ACEOF
3326if ac_fn_c_try_compile "$LINENO"
3327then :
3328  ac_compiler_gnu=yes
3329else $as_nop
3330  ac_compiler_gnu=no
3331fi
3332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3333ac_cv_c_compiler_gnu=$ac_compiler_gnu
3334
3335fi
3336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3337printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3338ac_compiler_gnu=$ac_cv_c_compiler_gnu
3339
3340if test $ac_compiler_gnu = yes; then
3341  GCC=yes
3342else
3343  GCC=
3344fi
3345ac_test_CFLAGS=${CFLAGS+y}
3346ac_save_CFLAGS=$CFLAGS
3347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3348printf %s "checking whether $CC accepts -g... " >&6; }
3349if test ${ac_cv_prog_cc_g+y}
3350then :
3351  printf %s "(cached) " >&6
3352else $as_nop
3353  ac_save_c_werror_flag=$ac_c_werror_flag
3354   ac_c_werror_flag=yes
3355   ac_cv_prog_cc_g=no
3356   CFLAGS="-g"
3357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358/* end confdefs.h.  */
3359
3360int
3361main (void)
3362{
3363
3364  ;
3365  return 0;
3366}
3367_ACEOF
3368if ac_fn_c_try_compile "$LINENO"
3369then :
3370  ac_cv_prog_cc_g=yes
3371else $as_nop
3372  CFLAGS=""
3373      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374/* end confdefs.h.  */
3375
3376int
3377main (void)
3378{
3379
3380  ;
3381  return 0;
3382}
3383_ACEOF
3384if ac_fn_c_try_compile "$LINENO"
3385then :
3386
3387else $as_nop
3388  ac_c_werror_flag=$ac_save_c_werror_flag
3389	 CFLAGS="-g"
3390	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391/* end confdefs.h.  */
3392
3393int
3394main (void)
3395{
3396
3397  ;
3398  return 0;
3399}
3400_ACEOF
3401if ac_fn_c_try_compile "$LINENO"
3402then :
3403  ac_cv_prog_cc_g=yes
3404fi
3405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3406fi
3407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3408fi
3409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3410   ac_c_werror_flag=$ac_save_c_werror_flag
3411fi
3412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3413printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3414if test $ac_test_CFLAGS; then
3415  CFLAGS=$ac_save_CFLAGS
3416elif test $ac_cv_prog_cc_g = yes; then
3417  if test "$GCC" = yes; then
3418    CFLAGS="-g -O2"
3419  else
3420    CFLAGS="-g"
3421  fi
3422else
3423  if test "$GCC" = yes; then
3424    CFLAGS="-O2"
3425  else
3426    CFLAGS=
3427  fi
3428fi
3429ac_prog_cc_stdc=no
3430if test x$ac_prog_cc_stdc = xno
3431then :
3432  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3433printf %s "checking for $CC option to enable C11 features... " >&6; }
3434if test ${ac_cv_prog_cc_c11+y}
3435then :
3436  printf %s "(cached) " >&6
3437else $as_nop
3438  ac_cv_prog_cc_c11=no
3439ac_save_CC=$CC
3440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441/* end confdefs.h.  */
3442$ac_c_conftest_c11_program
3443_ACEOF
3444for ac_arg in '' -std=gnu11
3445do
3446  CC="$ac_save_CC $ac_arg"
3447  if ac_fn_c_try_compile "$LINENO"
3448then :
3449  ac_cv_prog_cc_c11=$ac_arg
3450fi
3451rm -f core conftest.err conftest.$ac_objext conftest.beam
3452  test "x$ac_cv_prog_cc_c11" != "xno" && break
3453done
3454rm -f conftest.$ac_ext
3455CC=$ac_save_CC
3456fi
3457
3458if test "x$ac_cv_prog_cc_c11" = xno
3459then :
3460  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3461printf "%s\n" "unsupported" >&6; }
3462else $as_nop
3463  if test "x$ac_cv_prog_cc_c11" = x
3464then :
3465  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3466printf "%s\n" "none needed" >&6; }
3467else $as_nop
3468  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3469printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3470     CC="$CC $ac_cv_prog_cc_c11"
3471fi
3472  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3473  ac_prog_cc_stdc=c11
3474fi
3475fi
3476if test x$ac_prog_cc_stdc = xno
3477then :
3478  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3479printf %s "checking for $CC option to enable C99 features... " >&6; }
3480if test ${ac_cv_prog_cc_c99+y}
3481then :
3482  printf %s "(cached) " >&6
3483else $as_nop
3484  ac_cv_prog_cc_c99=no
3485ac_save_CC=$CC
3486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487/* end confdefs.h.  */
3488$ac_c_conftest_c99_program
3489_ACEOF
3490for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3491do
3492  CC="$ac_save_CC $ac_arg"
3493  if ac_fn_c_try_compile "$LINENO"
3494then :
3495  ac_cv_prog_cc_c99=$ac_arg
3496fi
3497rm -f core conftest.err conftest.$ac_objext conftest.beam
3498  test "x$ac_cv_prog_cc_c99" != "xno" && break
3499done
3500rm -f conftest.$ac_ext
3501CC=$ac_save_CC
3502fi
3503
3504if test "x$ac_cv_prog_cc_c99" = xno
3505then :
3506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3507printf "%s\n" "unsupported" >&6; }
3508else $as_nop
3509  if test "x$ac_cv_prog_cc_c99" = x
3510then :
3511  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3512printf "%s\n" "none needed" >&6; }
3513else $as_nop
3514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3515printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3516     CC="$CC $ac_cv_prog_cc_c99"
3517fi
3518  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3519  ac_prog_cc_stdc=c99
3520fi
3521fi
3522if test x$ac_prog_cc_stdc = xno
3523then :
3524  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3525printf %s "checking for $CC option to enable C89 features... " >&6; }
3526if test ${ac_cv_prog_cc_c89+y}
3527then :
3528  printf %s "(cached) " >&6
3529else $as_nop
3530  ac_cv_prog_cc_c89=no
3531ac_save_CC=$CC
3532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533/* end confdefs.h.  */
3534$ac_c_conftest_c89_program
3535_ACEOF
3536for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3537do
3538  CC="$ac_save_CC $ac_arg"
3539  if ac_fn_c_try_compile "$LINENO"
3540then :
3541  ac_cv_prog_cc_c89=$ac_arg
3542fi
3543rm -f core conftest.err conftest.$ac_objext conftest.beam
3544  test "x$ac_cv_prog_cc_c89" != "xno" && break
3545done
3546rm -f conftest.$ac_ext
3547CC=$ac_save_CC
3548fi
3549
3550if test "x$ac_cv_prog_cc_c89" = xno
3551then :
3552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3553printf "%s\n" "unsupported" >&6; }
3554else $as_nop
3555  if test "x$ac_cv_prog_cc_c89" = x
3556then :
3557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3558printf "%s\n" "none needed" >&6; }
3559else $as_nop
3560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3561printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3562     CC="$CC $ac_cv_prog_cc_c89"
3563fi
3564  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3565  ac_prog_cc_stdc=c89
3566fi
3567fi
3568
3569ac_ext=c
3570ac_cpp='$CPP $CPPFLAGS'
3571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574
3575
3576  ac_ext=c
3577ac_cpp='$CPP $CPPFLAGS'
3578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3580ac_compiler_gnu=$ac_cv_c_compiler_gnu
3581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3582printf %s "checking whether $CC understands -c and -o together... " >&6; }
3583if test ${am_cv_prog_cc_c_o+y}
3584then :
3585  printf %s "(cached) " >&6
3586else $as_nop
3587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588/* end confdefs.h.  */
3589
3590int
3591main (void)
3592{
3593
3594  ;
3595  return 0;
3596}
3597_ACEOF
3598  # Make sure it works both with $CC and with simple cc.
3599  # Following AC_PROG_CC_C_O, we do the test twice because some
3600  # compilers refuse to overwrite an existing .o file with -o,
3601  # though they will create one.
3602  am_cv_prog_cc_c_o=yes
3603  for am_i in 1 2; do
3604    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3605   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3606   ac_status=$?
3607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608   (exit $ac_status); } \
3609         && test -f conftest2.$ac_objext; then
3610      : OK
3611    else
3612      am_cv_prog_cc_c_o=no
3613      break
3614    fi
3615  done
3616  rm -f core conftest*
3617  unset am_i
3618fi
3619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3620printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3621if test "$am_cv_prog_cc_c_o" != yes; then
3622   # Losing compiler, so override with the script.
3623   # FIXME: It is wrong to rewrite CC.
3624   # But if we don't then we get into trouble of one sort or another.
3625   # A longer-term fix would be to have automake use am__CC in this case,
3626   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3627   CC="$am_aux_dir/compile $CC"
3628fi
3629ac_ext=c
3630ac_cpp='$CPP $CPPFLAGS'
3631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3633ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634
3635
3636
3637ac_header= ac_cache=
3638for ac_item in $ac_header_c_list
3639do
3640  if test $ac_cache; then
3641    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3642    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3643      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3644    fi
3645    ac_header= ac_cache=
3646  elif test $ac_header; then
3647    ac_cache=$ac_item
3648  else
3649    ac_header=$ac_item
3650  fi
3651done
3652
3653
3654
3655
3656
3657
3658
3659
3660if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3661then :
3662
3663printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3664
3665fi
3666
3667
3668
3669
3670
3671
3672  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3673printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3674if test ${ac_cv_safe_to_define___extensions__+y}
3675then :
3676  printf %s "(cached) " >&6
3677else $as_nop
3678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679/* end confdefs.h.  */
3680
3681#         define __EXTENSIONS__ 1
3682          $ac_includes_default
3683int
3684main (void)
3685{
3686
3687  ;
3688  return 0;
3689}
3690_ACEOF
3691if ac_fn_c_try_compile "$LINENO"
3692then :
3693  ac_cv_safe_to_define___extensions__=yes
3694else $as_nop
3695  ac_cv_safe_to_define___extensions__=no
3696fi
3697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3698fi
3699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3700printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3701
3702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3703printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3704if test ${ac_cv_should_define__xopen_source+y}
3705then :
3706  printf %s "(cached) " >&6
3707else $as_nop
3708  ac_cv_should_define__xopen_source=no
3709    if test $ac_cv_header_wchar_h = yes
3710then :
3711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712/* end confdefs.h.  */
3713
3714          #include <wchar.h>
3715          mbstate_t x;
3716int
3717main (void)
3718{
3719
3720  ;
3721  return 0;
3722}
3723_ACEOF
3724if ac_fn_c_try_compile "$LINENO"
3725then :
3726
3727else $as_nop
3728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729/* end confdefs.h.  */
3730
3731            #define _XOPEN_SOURCE 500
3732            #include <wchar.h>
3733            mbstate_t x;
3734int
3735main (void)
3736{
3737
3738  ;
3739  return 0;
3740}
3741_ACEOF
3742if ac_fn_c_try_compile "$LINENO"
3743then :
3744  ac_cv_should_define__xopen_source=yes
3745fi
3746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3747fi
3748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3749fi
3750fi
3751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3752printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3753
3754  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3755
3756  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3757
3758  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3759
3760  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3761
3762  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3763
3764  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3765
3766  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3767
3768  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3769
3770  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3771
3772  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3773
3774  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3775
3776  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3777
3778  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3779
3780  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3781
3782  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3783
3784  if test $ac_cv_header_minix_config_h = yes
3785then :
3786  MINIX=yes
3787    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3788
3789    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3790
3791    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3792
3793else $as_nop
3794  MINIX=
3795fi
3796  if test $ac_cv_safe_to_define___extensions__ = yes
3797then :
3798  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3799
3800fi
3801  if test $ac_cv_should_define__xopen_source = yes
3802then :
3803  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3804
3805fi
3806
3807
3808# Initialize Automake
3809am__api_version='1.16'
3810
3811
3812  # Find a good install program.  We prefer a C program (faster),
3813# so one script is as good as another.  But avoid the broken or
3814# incompatible versions:
3815# SysV /etc/install, /usr/sbin/install
3816# SunOS /usr/etc/install
3817# IRIX /sbin/install
3818# AIX /bin/install
3819# AmigaOS /C/install, which installs bootblocks on floppy discs
3820# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3821# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3822# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3823# OS/2's system install, which has a completely different semantic
3824# ./install, which can be erroneously created by make from ./install.sh.
3825# Reject install programs that cannot install multiple files.
3826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3827printf %s "checking for a BSD-compatible install... " >&6; }
3828if test -z "$INSTALL"; then
3829if test ${ac_cv_path_install+y}
3830then :
3831  printf %s "(cached) " >&6
3832else $as_nop
3833  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834for as_dir in $PATH
3835do
3836  IFS=$as_save_IFS
3837  case $as_dir in #(((
3838    '') as_dir=./ ;;
3839    */) ;;
3840    *) as_dir=$as_dir/ ;;
3841  esac
3842    # Account for fact that we put trailing slashes in our PATH walk.
3843case $as_dir in #((
3844  ./ | /[cC]/* | \
3845  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3846  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3847  /usr/ucb/* ) ;;
3848  *)
3849    # OSF1 and SCO ODT 3.0 have their own names for install.
3850    # Don't use installbsd from OSF since it installs stuff as root
3851    # by default.
3852    for ac_prog in ginstall scoinst install; do
3853      for ac_exec_ext in '' $ac_executable_extensions; do
3854	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3855	  if test $ac_prog = install &&
3856	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3857	    # AIX install.  It has an incompatible calling convention.
3858	    :
3859	  elif test $ac_prog = install &&
3860	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3861	    # program-specific install script used by HP pwplus--don't use.
3862	    :
3863	  else
3864	    rm -rf conftest.one conftest.two conftest.dir
3865	    echo one > conftest.one
3866	    echo two > conftest.two
3867	    mkdir conftest.dir
3868	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3869	      test -s conftest.one && test -s conftest.two &&
3870	      test -s conftest.dir/conftest.one &&
3871	      test -s conftest.dir/conftest.two
3872	    then
3873	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3874	      break 3
3875	    fi
3876	  fi
3877	fi
3878      done
3879    done
3880    ;;
3881esac
3882
3883  done
3884IFS=$as_save_IFS
3885
3886rm -rf conftest.one conftest.two conftest.dir
3887
3888fi
3889  if test ${ac_cv_path_install+y}; then
3890    INSTALL=$ac_cv_path_install
3891  else
3892    # As a last resort, use the slow shell script.  Don't cache a
3893    # value for INSTALL within a source directory, because that will
3894    # break other packages using the cache if that directory is
3895    # removed, or if the value is a relative name.
3896    INSTALL=$ac_install_sh
3897  fi
3898fi
3899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3900printf "%s\n" "$INSTALL" >&6; }
3901
3902# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3903# It thinks the first close brace ends the variable substitution.
3904test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3905
3906test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3907
3908test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3909
3910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3911printf %s "checking whether build environment is sane... " >&6; }
3912# Reject unsafe characters in $srcdir or the absolute working directory
3913# name.  Accept space and tab only in the latter.
3914am_lf='
3915'
3916case `pwd` in
3917  *[\\\"\#\$\&\'\`$am_lf]*)
3918    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3919esac
3920case $srcdir in
3921  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3922    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3923esac
3924
3925# Do 'set' in a subshell so we don't clobber the current shell's
3926# arguments.  Must try -L first in case configure is actually a
3927# symlink; some systems play weird games with the mod time of symlinks
3928# (eg FreeBSD returns the mod time of the symlink's containing
3929# directory).
3930if (
3931   am_has_slept=no
3932   for am_try in 1 2; do
3933     echo "timestamp, slept: $am_has_slept" > conftest.file
3934     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3935     if test "$*" = "X"; then
3936	# -L didn't work.
3937	set X `ls -t "$srcdir/configure" conftest.file`
3938     fi
3939     if test "$*" != "X $srcdir/configure conftest.file" \
3940	&& test "$*" != "X conftest.file $srcdir/configure"; then
3941
3942	# If neither matched, then we have a broken ls.  This can happen
3943	# if, for instance, CONFIG_SHELL is bash and it inherits a
3944	# broken ls alias from the environment.  This has actually
3945	# happened.  Such a system could not be considered "sane".
3946	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3947  alias in your environment" "$LINENO" 5
3948     fi
3949     if test "$2" = conftest.file || test $am_try -eq 2; then
3950       break
3951     fi
3952     # Just in case.
3953     sleep 1
3954     am_has_slept=yes
3955   done
3956   test "$2" = conftest.file
3957   )
3958then
3959   # Ok.
3960   :
3961else
3962   as_fn_error $? "newly created file is older than distributed files!
3963Check your system clock" "$LINENO" 5
3964fi
3965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3966printf "%s\n" "yes" >&6; }
3967# If we didn't sleep, we still need to ensure time stamps of config.status and
3968# generated files are strictly newer.
3969am_sleep_pid=
3970if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3971  ( sleep 1 ) &
3972  am_sleep_pid=$!
3973fi
3974
3975rm -f conftest.file
3976
3977test "$program_prefix" != NONE &&
3978  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3979# Use a double $ so make ignores it.
3980test "$program_suffix" != NONE &&
3981  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3982# Double any \ or $.
3983# By default was `s,x,x', remove it if useless.
3984ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3985program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3986
3987
3988  if test x"${MISSING+set}" != xset; then
3989  MISSING="\${SHELL} '$am_aux_dir/missing'"
3990fi
3991# Use eval to expand $SHELL
3992if eval "$MISSING --is-lightweight"; then
3993  am_missing_run="$MISSING "
3994else
3995  am_missing_run=
3996  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3997printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3998fi
3999
4000if test x"${install_sh+set}" != xset; then
4001  case $am_aux_dir in
4002  *\ * | *\	*)
4003    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4004  *)
4005    install_sh="\${SHELL} $am_aux_dir/install-sh"
4006  esac
4007fi
4008
4009# Installed binaries are usually stripped using 'strip' when the user
4010# run "make install-strip".  However 'strip' might not be the right
4011# tool to use in cross-compilation environments, therefore Automake
4012# will honor the 'STRIP' environment variable to overrule this program.
4013if test "$cross_compiling" != no; then
4014  if test -n "$ac_tool_prefix"; then
4015  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4016set dummy ${ac_tool_prefix}strip; ac_word=$2
4017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018printf %s "checking for $ac_word... " >&6; }
4019if test ${ac_cv_prog_STRIP+y}
4020then :
4021  printf %s "(cached) " >&6
4022else $as_nop
4023  if test -n "$STRIP"; then
4024  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4025else
4026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027for as_dir in $PATH
4028do
4029  IFS=$as_save_IFS
4030  case $as_dir in #(((
4031    '') as_dir=./ ;;
4032    */) ;;
4033    *) as_dir=$as_dir/ ;;
4034  esac
4035    for ac_exec_ext in '' $ac_executable_extensions; do
4036  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4037    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4038    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4039    break 2
4040  fi
4041done
4042  done
4043IFS=$as_save_IFS
4044
4045fi
4046fi
4047STRIP=$ac_cv_prog_STRIP
4048if test -n "$STRIP"; then
4049  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4050printf "%s\n" "$STRIP" >&6; }
4051else
4052  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053printf "%s\n" "no" >&6; }
4054fi
4055
4056
4057fi
4058if test -z "$ac_cv_prog_STRIP"; then
4059  ac_ct_STRIP=$STRIP
4060  # Extract the first word of "strip", so it can be a program name with args.
4061set dummy strip; ac_word=$2
4062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4063printf %s "checking for $ac_word... " >&6; }
4064if test ${ac_cv_prog_ac_ct_STRIP+y}
4065then :
4066  printf %s "(cached) " >&6
4067else $as_nop
4068  if test -n "$ac_ct_STRIP"; then
4069  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4070else
4071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072for as_dir in $PATH
4073do
4074  IFS=$as_save_IFS
4075  case $as_dir in #(((
4076    '') as_dir=./ ;;
4077    */) ;;
4078    *) as_dir=$as_dir/ ;;
4079  esac
4080    for ac_exec_ext in '' $ac_executable_extensions; do
4081  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4082    ac_cv_prog_ac_ct_STRIP="strip"
4083    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4084    break 2
4085  fi
4086done
4087  done
4088IFS=$as_save_IFS
4089
4090fi
4091fi
4092ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4093if test -n "$ac_ct_STRIP"; then
4094  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4095printf "%s\n" "$ac_ct_STRIP" >&6; }
4096else
4097  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098printf "%s\n" "no" >&6; }
4099fi
4100
4101  if test "x$ac_ct_STRIP" = x; then
4102    STRIP=":"
4103  else
4104    case $cross_compiling:$ac_tool_warned in
4105yes:)
4106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4107printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4108ac_tool_warned=yes ;;
4109esac
4110    STRIP=$ac_ct_STRIP
4111  fi
4112else
4113  STRIP="$ac_cv_prog_STRIP"
4114fi
4115
4116fi
4117INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4118
4119
4120  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4121printf %s "checking for a race-free mkdir -p... " >&6; }
4122if test -z "$MKDIR_P"; then
4123  if test ${ac_cv_path_mkdir+y}
4124then :
4125  printf %s "(cached) " >&6
4126else $as_nop
4127  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4129do
4130  IFS=$as_save_IFS
4131  case $as_dir in #(((
4132    '') as_dir=./ ;;
4133    */) ;;
4134    *) as_dir=$as_dir/ ;;
4135  esac
4136    for ac_prog in mkdir gmkdir; do
4137	 for ac_exec_ext in '' $ac_executable_extensions; do
4138	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4139	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4140	     'mkdir ('*'coreutils) '* | \
4141	     'BusyBox '* | \
4142	     'mkdir (fileutils) '4.1*)
4143	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4144	       break 3;;
4145	   esac
4146	 done
4147       done
4148  done
4149IFS=$as_save_IFS
4150
4151fi
4152
4153  test -d ./--version && rmdir ./--version
4154  if test ${ac_cv_path_mkdir+y}; then
4155    MKDIR_P="$ac_cv_path_mkdir -p"
4156  else
4157    # As a last resort, use the slow shell script.  Don't cache a
4158    # value for MKDIR_P within a source directory, because that will
4159    # break other packages using the cache if that directory is
4160    # removed, or if the value is a relative name.
4161    MKDIR_P="$ac_install_sh -d"
4162  fi
4163fi
4164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4165printf "%s\n" "$MKDIR_P" >&6; }
4166
4167for ac_prog in gawk mawk nawk awk
4168do
4169  # Extract the first word of "$ac_prog", so it can be a program name with args.
4170set dummy $ac_prog; ac_word=$2
4171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172printf %s "checking for $ac_word... " >&6; }
4173if test ${ac_cv_prog_AWK+y}
4174then :
4175  printf %s "(cached) " >&6
4176else $as_nop
4177  if test -n "$AWK"; then
4178  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4179else
4180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181for as_dir in $PATH
4182do
4183  IFS=$as_save_IFS
4184  case $as_dir in #(((
4185    '') as_dir=./ ;;
4186    */) ;;
4187    *) as_dir=$as_dir/ ;;
4188  esac
4189    for ac_exec_ext in '' $ac_executable_extensions; do
4190  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4191    ac_cv_prog_AWK="$ac_prog"
4192    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4193    break 2
4194  fi
4195done
4196  done
4197IFS=$as_save_IFS
4198
4199fi
4200fi
4201AWK=$ac_cv_prog_AWK
4202if test -n "$AWK"; then
4203  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4204printf "%s\n" "$AWK" >&6; }
4205else
4206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207printf "%s\n" "no" >&6; }
4208fi
4209
4210
4211  test -n "$AWK" && break
4212done
4213
4214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4215printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4216set x ${MAKE-make}
4217ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4218if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4219then :
4220  printf %s "(cached) " >&6
4221else $as_nop
4222  cat >conftest.make <<\_ACEOF
4223SHELL = /bin/sh
4224all:
4225	@echo '@@@%%%=$(MAKE)=@@@%%%'
4226_ACEOF
4227# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4228case `${MAKE-make} -f conftest.make 2>/dev/null` in
4229  *@@@%%%=?*=@@@%%%*)
4230    eval ac_cv_prog_make_${ac_make}_set=yes;;
4231  *)
4232    eval ac_cv_prog_make_${ac_make}_set=no;;
4233esac
4234rm -f conftest.make
4235fi
4236if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4237  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4238printf "%s\n" "yes" >&6; }
4239  SET_MAKE=
4240else
4241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242printf "%s\n" "no" >&6; }
4243  SET_MAKE="MAKE=${MAKE-make}"
4244fi
4245
4246rm -rf .tst 2>/dev/null
4247mkdir .tst 2>/dev/null
4248if test -d .tst; then
4249  am__leading_dot=.
4250else
4251  am__leading_dot=_
4252fi
4253rmdir .tst 2>/dev/null
4254
4255DEPDIR="${am__leading_dot}deps"
4256
4257ac_config_commands="$ac_config_commands depfiles"
4258
4259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4260printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4261cat > confinc.mk << 'END'
4262am__doit:
4263	@echo this is the am__doit target >confinc.out
4264.PHONY: am__doit
4265END
4266am__include="#"
4267am__quote=
4268# BSD make does it like this.
4269echo '.include "confinc.mk" # ignored' > confmf.BSD
4270# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4271echo 'include confinc.mk # ignored' > confmf.GNU
4272_am_result=no
4273for s in GNU BSD; do
4274  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4275   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4276   ac_status=$?
4277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278   (exit $ac_status); }
4279  case $?:`cat confinc.out 2>/dev/null` in #(
4280  '0:this is the am__doit target') :
4281    case $s in #(
4282  BSD) :
4283    am__include='.include' am__quote='"' ;; #(
4284  *) :
4285    am__include='include' am__quote='' ;;
4286esac ;; #(
4287  *) :
4288     ;;
4289esac
4290  if test "$am__include" != "#"; then
4291    _am_result="yes ($s style)"
4292    break
4293  fi
4294done
4295rm -f confinc.* confmf.*
4296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4297printf "%s\n" "${_am_result}" >&6; }
4298
4299# Check whether --enable-dependency-tracking was given.
4300if test ${enable_dependency_tracking+y}
4301then :
4302  enableval=$enable_dependency_tracking;
4303fi
4304
4305if test "x$enable_dependency_tracking" != xno; then
4306  am_depcomp="$ac_aux_dir/depcomp"
4307  AMDEPBACKSLASH='\'
4308  am__nodep='_no'
4309fi
4310 if test "x$enable_dependency_tracking" != xno; then
4311  AMDEP_TRUE=
4312  AMDEP_FALSE='#'
4313else
4314  AMDEP_TRUE='#'
4315  AMDEP_FALSE=
4316fi
4317
4318
4319# Check whether --enable-silent-rules was given.
4320if test ${enable_silent_rules+y}
4321then :
4322  enableval=$enable_silent_rules;
4323fi
4324
4325case $enable_silent_rules in # (((
4326  yes) AM_DEFAULT_VERBOSITY=0;;
4327   no) AM_DEFAULT_VERBOSITY=1;;
4328    *) AM_DEFAULT_VERBOSITY=1;;
4329esac
4330am_make=${MAKE-make}
4331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4332printf %s "checking whether $am_make supports nested variables... " >&6; }
4333if test ${am_cv_make_support_nested_variables+y}
4334then :
4335  printf %s "(cached) " >&6
4336else $as_nop
4337  if printf "%s\n" 'TRUE=$(BAR$(V))
4338BAR0=false
4339BAR1=true
4340V=1
4341am__doit:
4342	@$(TRUE)
4343.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4344  am_cv_make_support_nested_variables=yes
4345else
4346  am_cv_make_support_nested_variables=no
4347fi
4348fi
4349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4350printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4351if test $am_cv_make_support_nested_variables = yes; then
4352    AM_V='$(V)'
4353  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4354else
4355  AM_V=$AM_DEFAULT_VERBOSITY
4356  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4357fi
4358AM_BACKSLASH='\'
4359
4360if test "`cd $srcdir && pwd`" != "`pwd`"; then
4361  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4362  # is not polluted with repeated "-I."
4363  am__isrc=' -I$(srcdir)'
4364  # test to see if srcdir already configured
4365  if test -f $srcdir/config.status; then
4366    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4367  fi
4368fi
4369
4370# test whether we have cygpath
4371if test -z "$CYGPATH_W"; then
4372  if (cygpath --version) >/dev/null 2>/dev/null; then
4373    CYGPATH_W='cygpath -w'
4374  else
4375    CYGPATH_W=echo
4376  fi
4377fi
4378
4379
4380# Define the identity of the package.
4381 PACKAGE='xload'
4382 VERSION='1.1.4'
4383
4384
4385printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4386
4387
4388printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4389
4390# Some tools Automake needs.
4391
4392ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4393
4394
4395AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4396
4397
4398AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4399
4400
4401AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4402
4403
4404MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4405
4406# For better backward compatibility.  To be removed once Automake 1.9.x
4407# dies out for good.  For more background, see:
4408# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4409# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4410mkdir_p='$(MKDIR_P)'
4411
4412# We need awk for the "check" target (and possibly the TAP driver).  The
4413# system "awk" is bad on some platforms.
4414# Always define AMTAR for backward compatibility.  Yes, it's still used
4415# in the wild :-(  We should find a proper way to deprecate it ...
4416AMTAR='$${TAR-tar}'
4417
4418
4419# We'll loop over all known methods to create a tar archive until one works.
4420_am_tools='gnutar  pax cpio none'
4421
4422am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4423
4424
4425
4426
4427
4428depcc="$CC"   am_compiler_list=
4429
4430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4431printf %s "checking dependency style of $depcc... " >&6; }
4432if test ${am_cv_CC_dependencies_compiler_type+y}
4433then :
4434  printf %s "(cached) " >&6
4435else $as_nop
4436  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4437  # We make a subdir and do the tests there.  Otherwise we can end up
4438  # making bogus files that we don't know about and never remove.  For
4439  # instance it was reported that on HP-UX the gcc test will end up
4440  # making a dummy file named 'D' -- because '-MD' means "put the output
4441  # in D".
4442  rm -rf conftest.dir
4443  mkdir conftest.dir
4444  # Copy depcomp to subdir because otherwise we won't find it if we're
4445  # using a relative directory.
4446  cp "$am_depcomp" conftest.dir
4447  cd conftest.dir
4448  # We will build objects and dependencies in a subdirectory because
4449  # it helps to detect inapplicable dependency modes.  For instance
4450  # both Tru64's cc and ICC support -MD to output dependencies as a
4451  # side effect of compilation, but ICC will put the dependencies in
4452  # the current directory while Tru64 will put them in the object
4453  # directory.
4454  mkdir sub
4455
4456  am_cv_CC_dependencies_compiler_type=none
4457  if test "$am_compiler_list" = ""; then
4458     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4459  fi
4460  am__universal=false
4461  case " $depcc " in #(
4462     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4463     esac
4464
4465  for depmode in $am_compiler_list; do
4466    # Setup a source with many dependencies, because some compilers
4467    # like to wrap large dependency lists on column 80 (with \), and
4468    # we should not choose a depcomp mode which is confused by this.
4469    #
4470    # We need to recreate these files for each test, as the compiler may
4471    # overwrite some of them when testing with obscure command lines.
4472    # This happens at least with the AIX C compiler.
4473    : > sub/conftest.c
4474    for i in 1 2 3 4 5 6; do
4475      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4476      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4477      # Solaris 10 /bin/sh.
4478      echo '/* dummy */' > sub/conftst$i.h
4479    done
4480    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4481
4482    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4483    # mode.  It turns out that the SunPro C++ compiler does not properly
4484    # handle '-M -o', and we need to detect this.  Also, some Intel
4485    # versions had trouble with output in subdirs.
4486    am__obj=sub/conftest.${OBJEXT-o}
4487    am__minus_obj="-o $am__obj"
4488    case $depmode in
4489    gcc)
4490      # This depmode causes a compiler race in universal mode.
4491      test "$am__universal" = false || continue
4492      ;;
4493    nosideeffect)
4494      # After this tag, mechanisms are not by side-effect, so they'll
4495      # only be used when explicitly requested.
4496      if test "x$enable_dependency_tracking" = xyes; then
4497	continue
4498      else
4499	break
4500      fi
4501      ;;
4502    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4503      # This compiler won't grok '-c -o', but also, the minuso test has
4504      # not run yet.  These depmodes are late enough in the game, and
4505      # so weak that their functioning should not be impacted.
4506      am__obj=conftest.${OBJEXT-o}
4507      am__minus_obj=
4508      ;;
4509    none) break ;;
4510    esac
4511    if depmode=$depmode \
4512       source=sub/conftest.c object=$am__obj \
4513       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4514       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4515         >/dev/null 2>conftest.err &&
4516       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4517       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4518       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4519       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4520      # icc doesn't choke on unknown options, it will just issue warnings
4521      # or remarks (even with -Werror).  So we grep stderr for any message
4522      # that says an option was ignored or not supported.
4523      # When given -MP, icc 7.0 and 7.1 complain thusly:
4524      #   icc: Command line warning: ignoring option '-M'; no argument required
4525      # The diagnosis changed in icc 8.0:
4526      #   icc: Command line remark: option '-MP' not supported
4527      if (grep 'ignoring option' conftest.err ||
4528          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4529        am_cv_CC_dependencies_compiler_type=$depmode
4530        break
4531      fi
4532    fi
4533  done
4534
4535  cd ..
4536  rm -rf conftest.dir
4537else
4538  am_cv_CC_dependencies_compiler_type=none
4539fi
4540
4541fi
4542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4543printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4544CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4545
4546 if
4547  test "x$enable_dependency_tracking" != xno \
4548  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4549  am__fastdepCC_TRUE=
4550  am__fastdepCC_FALSE='#'
4551else
4552  am__fastdepCC_TRUE='#'
4553  am__fastdepCC_FALSE=
4554fi
4555
4556
4557# Variables for tags utilities; see am/tags.am
4558if test -z "$CTAGS"; then
4559  CTAGS=ctags
4560fi
4561
4562if test -z "$ETAGS"; then
4563  ETAGS=etags
4564fi
4565
4566if test -z "$CSCOPE"; then
4567  CSCOPE=cscope
4568fi
4569
4570
4571
4572# POSIX will say in a future version that running "rm -f" with no argument
4573# is OK; and we want to be able to make that assumption in our Makefile
4574# recipes.  So use an aggressive probe to check that the usage we want is
4575# actually supported "in the wild" to an acceptable degree.
4576# See automake bug#10828.
4577# To make any issue more visible, cause the running configure to be aborted
4578# by default if the 'rm' program in use doesn't match our expectations; the
4579# user can still override this though.
4580if rm -f && rm -fr && rm -rf; then : OK; else
4581  cat >&2 <<'END'
4582Oops!
4583
4584Your 'rm' program seems unable to run without file operands specified
4585on the command line, even when the '-f' option is present.  This is contrary
4586to the behaviour of most rm programs out there, and not conforming with
4587the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4588
4589Please tell bug-automake@gnu.org about your system, including the value
4590of your $PATH and any error possibly output before this message.  This
4591can help us improve future automake versions.
4592
4593END
4594  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4595    echo 'Configuration will proceed anyway, since you have set the' >&2
4596    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4597    echo >&2
4598  else
4599    cat >&2 <<'END'
4600Aborting the configuration process, to ensure you take notice of the issue.
4601
4602You can download and install GNU coreutils to get an 'rm' implementation
4603that behaves properly: <https://www.gnu.org/software/coreutils/>.
4604
4605If you want to complete the configuration process using your problematic
4606'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4607to "yes", and re-run configure.
4608
4609END
4610    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4611  fi
4612fi
4613
4614
4615# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4629printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4630if test ${ac_cv_c_undeclared_builtin_options+y}
4631then :
4632  printf %s "(cached) " >&6
4633else $as_nop
4634  ac_save_CFLAGS=$CFLAGS
4635   ac_cv_c_undeclared_builtin_options='cannot detect'
4636   for ac_arg in '' -fno-builtin; do
4637     CFLAGS="$ac_save_CFLAGS $ac_arg"
4638     # This test program should *not* compile successfully.
4639     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640/* end confdefs.h.  */
4641
4642int
4643main (void)
4644{
4645(void) strchr;
4646  ;
4647  return 0;
4648}
4649_ACEOF
4650if ac_fn_c_try_compile "$LINENO"
4651then :
4652
4653else $as_nop
4654  # This test program should compile successfully.
4655        # No library function is consistently available on
4656        # freestanding implementations, so test against a dummy
4657        # declaration.  Include always-available headers on the
4658        # off chance that they somehow elicit warnings.
4659        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660/* end confdefs.h.  */
4661#include <float.h>
4662#include <limits.h>
4663#include <stdarg.h>
4664#include <stddef.h>
4665extern void ac_decl (int, char *);
4666
4667int
4668main (void)
4669{
4670(void) ac_decl (0, (char *) 0);
4671  (void) ac_decl;
4672
4673  ;
4674  return 0;
4675}
4676_ACEOF
4677if ac_fn_c_try_compile "$LINENO"
4678then :
4679  if test x"$ac_arg" = x
4680then :
4681  ac_cv_c_undeclared_builtin_options='none needed'
4682else $as_nop
4683  ac_cv_c_undeclared_builtin_options=$ac_arg
4684fi
4685          break
4686fi
4687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4688fi
4689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4690    done
4691    CFLAGS=$ac_save_CFLAGS
4692
4693fi
4694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4695printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4696  case $ac_cv_c_undeclared_builtin_options in #(
4697  'cannot detect') :
4698    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4699printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4700as_fn_error $? "cannot make $CC report undeclared builtins
4701See \`config.log' for more details" "$LINENO" 5; } ;; #(
4702  'none needed') :
4703    ac_c_undeclared_builtin_options='' ;; #(
4704  *) :
4705    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4706esac
4707
4708
4709
4710
4711
4712ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4713if test "x$ac_cv_have_decl___clang__" = xyes
4714then :
4715  CLANGCC="yes"
4716else $as_nop
4717  CLANGCC="no"
4718fi
4719ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4720if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4721then :
4722  INTELCC="yes"
4723else $as_nop
4724  INTELCC="no"
4725fi
4726ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4727if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4728then :
4729  SUNCC="yes"
4730else $as_nop
4731  SUNCC="no"
4732fi
4733
4734
4735
4736
4737
4738
4739
4740
4741if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4742	if test -n "$ac_tool_prefix"; then
4743  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4744set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746printf %s "checking for $ac_word... " >&6; }
4747if test ${ac_cv_path_PKG_CONFIG+y}
4748then :
4749  printf %s "(cached) " >&6
4750else $as_nop
4751  case $PKG_CONFIG in
4752  [\\/]* | ?:[\\/]*)
4753  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4754  ;;
4755  *)
4756  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757for as_dir in $PATH
4758do
4759  IFS=$as_save_IFS
4760  case $as_dir in #(((
4761    '') as_dir=./ ;;
4762    */) ;;
4763    *) as_dir=$as_dir/ ;;
4764  esac
4765    for ac_exec_ext in '' $ac_executable_extensions; do
4766  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4767    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4768    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4769    break 2
4770  fi
4771done
4772  done
4773IFS=$as_save_IFS
4774
4775  ;;
4776esac
4777fi
4778PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4779if test -n "$PKG_CONFIG"; then
4780  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4781printf "%s\n" "$PKG_CONFIG" >&6; }
4782else
4783  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784printf "%s\n" "no" >&6; }
4785fi
4786
4787
4788fi
4789if test -z "$ac_cv_path_PKG_CONFIG"; then
4790  ac_pt_PKG_CONFIG=$PKG_CONFIG
4791  # Extract the first word of "pkg-config", so it can be a program name with args.
4792set dummy pkg-config; ac_word=$2
4793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794printf %s "checking for $ac_word... " >&6; }
4795if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4796then :
4797  printf %s "(cached) " >&6
4798else $as_nop
4799  case $ac_pt_PKG_CONFIG in
4800  [\\/]* | ?:[\\/]*)
4801  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4802  ;;
4803  *)
4804  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805for as_dir in $PATH
4806do
4807  IFS=$as_save_IFS
4808  case $as_dir in #(((
4809    '') as_dir=./ ;;
4810    */) ;;
4811    *) as_dir=$as_dir/ ;;
4812  esac
4813    for ac_exec_ext in '' $ac_executable_extensions; do
4814  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4815    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4816    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4817    break 2
4818  fi
4819done
4820  done
4821IFS=$as_save_IFS
4822
4823  ;;
4824esac
4825fi
4826ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4827if test -n "$ac_pt_PKG_CONFIG"; then
4828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4829printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4830else
4831  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832printf "%s\n" "no" >&6; }
4833fi
4834
4835  if test "x$ac_pt_PKG_CONFIG" = x; then
4836    PKG_CONFIG=""
4837  else
4838    case $cross_compiling:$ac_tool_warned in
4839yes:)
4840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4841printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4842ac_tool_warned=yes ;;
4843esac
4844    PKG_CONFIG=$ac_pt_PKG_CONFIG
4845  fi
4846else
4847  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4848fi
4849
4850fi
4851if test -n "$PKG_CONFIG"; then
4852	_pkg_min_version=0.9.0
4853	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4854printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4855	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4856		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4857printf "%s\n" "yes" >&6; }
4858	else
4859		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860printf "%s\n" "no" >&6; }
4861		PKG_CONFIG=""
4862	fi
4863fi
4864
4865
4866  # Make sure we can run config.sub.
4867$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4868  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4869
4870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4871printf %s "checking build system type... " >&6; }
4872if test ${ac_cv_build+y}
4873then :
4874  printf %s "(cached) " >&6
4875else $as_nop
4876  ac_build_alias=$build_alias
4877test "x$ac_build_alias" = x &&
4878  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4879test "x$ac_build_alias" = x &&
4880  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4881ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4882  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4883
4884fi
4885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4886printf "%s\n" "$ac_cv_build" >&6; }
4887case $ac_cv_build in
4888*-*-*) ;;
4889*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4890esac
4891build=$ac_cv_build
4892ac_save_IFS=$IFS; IFS='-'
4893set x $ac_cv_build
4894shift
4895build_cpu=$1
4896build_vendor=$2
4897shift; shift
4898# Remember, the first character of IFS is used to create $*,
4899# except with old shells:
4900build_os=$*
4901IFS=$ac_save_IFS
4902case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4903
4904
4905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4906printf %s "checking host system type... " >&6; }
4907if test ${ac_cv_host+y}
4908then :
4909  printf %s "(cached) " >&6
4910else $as_nop
4911  if test "x$host_alias" = x; then
4912  ac_cv_host=$ac_cv_build
4913else
4914  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4915    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4916fi
4917
4918fi
4919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4920printf "%s\n" "$ac_cv_host" >&6; }
4921case $ac_cv_host in
4922*-*-*) ;;
4923*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4924esac
4925host=$ac_cv_host
4926ac_save_IFS=$IFS; IFS='-'
4927set x $ac_cv_host
4928shift
4929host_cpu=$1
4930host_vendor=$2
4931shift; shift
4932# Remember, the first character of IFS is used to create $*,
4933# except with old shells:
4934host_os=$*
4935IFS=$ac_save_IFS
4936case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4937
4938
4939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4940printf %s "checking for a sed that does not truncate output... " >&6; }
4941if test ${ac_cv_path_SED+y}
4942then :
4943  printf %s "(cached) " >&6
4944else $as_nop
4945            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4946     for ac_i in 1 2 3 4 5 6 7; do
4947       ac_script="$ac_script$as_nl$ac_script"
4948     done
4949     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4950     { ac_script=; unset ac_script;}
4951     if test -z "$SED"; then
4952  ac_path_SED_found=false
4953  # Loop through the user's path and test for each of PROGNAME-LIST
4954  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955for as_dir in $PATH
4956do
4957  IFS=$as_save_IFS
4958  case $as_dir in #(((
4959    '') as_dir=./ ;;
4960    */) ;;
4961    *) as_dir=$as_dir/ ;;
4962  esac
4963    for ac_prog in sed gsed
4964   do
4965    for ac_exec_ext in '' $ac_executable_extensions; do
4966      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4967      as_fn_executable_p "$ac_path_SED" || continue
4968# Check for GNU ac_path_SED and select it if it is found.
4969  # Check for GNU $ac_path_SED
4970case `"$ac_path_SED" --version 2>&1` in
4971*GNU*)
4972  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4973*)
4974  ac_count=0
4975  printf %s 0123456789 >"conftest.in"
4976  while :
4977  do
4978    cat "conftest.in" "conftest.in" >"conftest.tmp"
4979    mv "conftest.tmp" "conftest.in"
4980    cp "conftest.in" "conftest.nl"
4981    printf "%s\n" '' >> "conftest.nl"
4982    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4983    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4984    as_fn_arith $ac_count + 1 && ac_count=$as_val
4985    if test $ac_count -gt ${ac_path_SED_max-0}; then
4986      # Best one so far, save it but keep looking for a better one
4987      ac_cv_path_SED="$ac_path_SED"
4988      ac_path_SED_max=$ac_count
4989    fi
4990    # 10*(2^10) chars as input seems more than enough
4991    test $ac_count -gt 10 && break
4992  done
4993  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4994esac
4995
4996      $ac_path_SED_found && break 3
4997    done
4998  done
4999  done
5000IFS=$as_save_IFS
5001  if test -z "$ac_cv_path_SED"; then
5002    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5003  fi
5004else
5005  ac_cv_path_SED=$SED
5006fi
5007
5008fi
5009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5010printf "%s\n" "$ac_cv_path_SED" >&6; }
5011 SED="$ac_cv_path_SED"
5012  rm -f conftest.sed
5013
5014
5015
5016
5017
5018
5019# Check whether --enable-selective-werror was given.
5020if test ${enable_selective_werror+y}
5021then :
5022  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5023else $as_nop
5024  SELECTIVE_WERROR=yes
5025fi
5026
5027
5028
5029
5030
5031# -v is too short to test reliably with XORG_TESTSET_CFLAG
5032if test "x$SUNCC" = "xyes"; then
5033    BASE_CFLAGS="-v"
5034else
5035    BASE_CFLAGS=""
5036fi
5037
5038# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052xorg_testset_save_CFLAGS="$CFLAGS"
5053
5054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5055	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5056	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5057printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5058if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5059then :
5060  printf %s "(cached) " >&6
5061else $as_nop
5062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063/* end confdefs.h.  */
5064int i;
5065_ACEOF
5066if ac_fn_c_try_compile "$LINENO"
5067then :
5068  xorg_cv_cc_flag_unknown_warning_option=yes
5069else $as_nop
5070  xorg_cv_cc_flag_unknown_warning_option=no
5071fi
5072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5073fi
5074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5075printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5076	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5077	CFLAGS="$xorg_testset_save_CFLAGS"
5078fi
5079
5080if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5081	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5082		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5083	fi
5084	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5085	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5086printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5087if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5088then :
5089  printf %s "(cached) " >&6
5090else $as_nop
5091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092/* end confdefs.h.  */
5093int i;
5094_ACEOF
5095if ac_fn_c_try_compile "$LINENO"
5096then :
5097  xorg_cv_cc_flag_unused_command_line_argument=yes
5098else $as_nop
5099  xorg_cv_cc_flag_unused_command_line_argument=no
5100fi
5101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5102fi
5103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5104printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5105	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5106	CFLAGS="$xorg_testset_save_CFLAGS"
5107fi
5108
5109found="no"
5110
5111	if test $found = "no" ; then
5112		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5113			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5114		fi
5115
5116		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5117			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5118		fi
5119
5120		CFLAGS="$CFLAGS -Wall"
5121
5122		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5123printf %s "checking if $CC supports -Wall... " >&6; }
5124		cacheid=xorg_cv_cc_flag__Wall
5125		if eval test \${$cacheid+y}
5126then :
5127  printf %s "(cached) " >&6
5128else $as_nop
5129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5130/* end confdefs.h.  */
5131int i;
5132int
5133main (void)
5134{
5135
5136  ;
5137  return 0;
5138}
5139_ACEOF
5140if ac_fn_c_try_link "$LINENO"
5141then :
5142  eval $cacheid=yes
5143else $as_nop
5144  eval $cacheid=no
5145fi
5146rm -f core conftest.err conftest.$ac_objext conftest.beam \
5147    conftest$ac_exeext conftest.$ac_ext
5148fi
5149
5150
5151		CFLAGS="$xorg_testset_save_CFLAGS"
5152
5153		eval supported=\$$cacheid
5154		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5155printf "%s\n" "$supported" >&6; }
5156		if test "$supported" = "yes" ; then
5157			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5158			found="yes"
5159		fi
5160	fi
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176xorg_testset_save_CFLAGS="$CFLAGS"
5177
5178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5179	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5180	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5181printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5182if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5183then :
5184  printf %s "(cached) " >&6
5185else $as_nop
5186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187/* end confdefs.h.  */
5188int i;
5189_ACEOF
5190if ac_fn_c_try_compile "$LINENO"
5191then :
5192  xorg_cv_cc_flag_unknown_warning_option=yes
5193else $as_nop
5194  xorg_cv_cc_flag_unknown_warning_option=no
5195fi
5196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5197fi
5198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5199printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5200	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5201	CFLAGS="$xorg_testset_save_CFLAGS"
5202fi
5203
5204if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5205	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5206		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5207	fi
5208	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5209	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5210printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5211if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5212then :
5213  printf %s "(cached) " >&6
5214else $as_nop
5215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216/* end confdefs.h.  */
5217int i;
5218_ACEOF
5219if ac_fn_c_try_compile "$LINENO"
5220then :
5221  xorg_cv_cc_flag_unused_command_line_argument=yes
5222else $as_nop
5223  xorg_cv_cc_flag_unused_command_line_argument=no
5224fi
5225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5226fi
5227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5228printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5229	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5230	CFLAGS="$xorg_testset_save_CFLAGS"
5231fi
5232
5233found="no"
5234
5235	if test $found = "no" ; then
5236		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5237			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5238		fi
5239
5240		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5241			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5242		fi
5243
5244		CFLAGS="$CFLAGS -Wpointer-arith"
5245
5246		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5247printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5248		cacheid=xorg_cv_cc_flag__Wpointer_arith
5249		if eval test \${$cacheid+y}
5250then :
5251  printf %s "(cached) " >&6
5252else $as_nop
5253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254/* end confdefs.h.  */
5255int i;
5256int
5257main (void)
5258{
5259
5260  ;
5261  return 0;
5262}
5263_ACEOF
5264if ac_fn_c_try_link "$LINENO"
5265then :
5266  eval $cacheid=yes
5267else $as_nop
5268  eval $cacheid=no
5269fi
5270rm -f core conftest.err conftest.$ac_objext conftest.beam \
5271    conftest$ac_exeext conftest.$ac_ext
5272fi
5273
5274
5275		CFLAGS="$xorg_testset_save_CFLAGS"
5276
5277		eval supported=\$$cacheid
5278		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5279printf "%s\n" "$supported" >&6; }
5280		if test "$supported" = "yes" ; then
5281			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5282			found="yes"
5283		fi
5284	fi
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300xorg_testset_save_CFLAGS="$CFLAGS"
5301
5302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5303	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5304	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5305printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5306if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5307then :
5308  printf %s "(cached) " >&6
5309else $as_nop
5310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311/* end confdefs.h.  */
5312int i;
5313_ACEOF
5314if ac_fn_c_try_compile "$LINENO"
5315then :
5316  xorg_cv_cc_flag_unknown_warning_option=yes
5317else $as_nop
5318  xorg_cv_cc_flag_unknown_warning_option=no
5319fi
5320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5321fi
5322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5323printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5324	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5325	CFLAGS="$xorg_testset_save_CFLAGS"
5326fi
5327
5328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5329	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5330		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5331	fi
5332	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5333	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5334printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5335if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5336then :
5337  printf %s "(cached) " >&6
5338else $as_nop
5339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340/* end confdefs.h.  */
5341int i;
5342_ACEOF
5343if ac_fn_c_try_compile "$LINENO"
5344then :
5345  xorg_cv_cc_flag_unused_command_line_argument=yes
5346else $as_nop
5347  xorg_cv_cc_flag_unused_command_line_argument=no
5348fi
5349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5350fi
5351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5352printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5353	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5354	CFLAGS="$xorg_testset_save_CFLAGS"
5355fi
5356
5357found="no"
5358
5359	if test $found = "no" ; then
5360		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5361			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5362		fi
5363
5364		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5365			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5366		fi
5367
5368		CFLAGS="$CFLAGS -Wmissing-declarations"
5369
5370		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5371printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5372		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5373		if eval test \${$cacheid+y}
5374then :
5375  printf %s "(cached) " >&6
5376else $as_nop
5377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378/* end confdefs.h.  */
5379int i;
5380int
5381main (void)
5382{
5383
5384  ;
5385  return 0;
5386}
5387_ACEOF
5388if ac_fn_c_try_link "$LINENO"
5389then :
5390  eval $cacheid=yes
5391else $as_nop
5392  eval $cacheid=no
5393fi
5394rm -f core conftest.err conftest.$ac_objext conftest.beam \
5395    conftest$ac_exeext conftest.$ac_ext
5396fi
5397
5398
5399		CFLAGS="$xorg_testset_save_CFLAGS"
5400
5401		eval supported=\$$cacheid
5402		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5403printf "%s\n" "$supported" >&6; }
5404		if test "$supported" = "yes" ; then
5405			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5406			found="yes"
5407		fi
5408	fi
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424xorg_testset_save_CFLAGS="$CFLAGS"
5425
5426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5427	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5428	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5429printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5430if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5431then :
5432  printf %s "(cached) " >&6
5433else $as_nop
5434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435/* end confdefs.h.  */
5436int i;
5437_ACEOF
5438if ac_fn_c_try_compile "$LINENO"
5439then :
5440  xorg_cv_cc_flag_unknown_warning_option=yes
5441else $as_nop
5442  xorg_cv_cc_flag_unknown_warning_option=no
5443fi
5444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5445fi
5446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5447printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5448	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5449	CFLAGS="$xorg_testset_save_CFLAGS"
5450fi
5451
5452if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5453	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5454		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5455	fi
5456	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5457	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5458printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5459if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5460then :
5461  printf %s "(cached) " >&6
5462else $as_nop
5463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464/* end confdefs.h.  */
5465int i;
5466_ACEOF
5467if ac_fn_c_try_compile "$LINENO"
5468then :
5469  xorg_cv_cc_flag_unused_command_line_argument=yes
5470else $as_nop
5471  xorg_cv_cc_flag_unused_command_line_argument=no
5472fi
5473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5474fi
5475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5476printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5477	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5478	CFLAGS="$xorg_testset_save_CFLAGS"
5479fi
5480
5481found="no"
5482
5483	if test $found = "no" ; then
5484		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5485			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5486		fi
5487
5488		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5489			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5490		fi
5491
5492		CFLAGS="$CFLAGS -Wformat=2"
5493
5494		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5495printf %s "checking if $CC supports -Wformat=2... " >&6; }
5496		cacheid=xorg_cv_cc_flag__Wformat_2
5497		if eval test \${$cacheid+y}
5498then :
5499  printf %s "(cached) " >&6
5500else $as_nop
5501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502/* end confdefs.h.  */
5503int i;
5504int
5505main (void)
5506{
5507
5508  ;
5509  return 0;
5510}
5511_ACEOF
5512if ac_fn_c_try_link "$LINENO"
5513then :
5514  eval $cacheid=yes
5515else $as_nop
5516  eval $cacheid=no
5517fi
5518rm -f core conftest.err conftest.$ac_objext conftest.beam \
5519    conftest$ac_exeext conftest.$ac_ext
5520fi
5521
5522
5523		CFLAGS="$xorg_testset_save_CFLAGS"
5524
5525		eval supported=\$$cacheid
5526		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5527printf "%s\n" "$supported" >&6; }
5528		if test "$supported" = "yes" ; then
5529			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5530			found="yes"
5531		fi
5532	fi
5533
5534	if test $found = "no" ; then
5535		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5536			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5537		fi
5538
5539		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5540			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5541		fi
5542
5543		CFLAGS="$CFLAGS -Wformat"
5544
5545		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5546printf %s "checking if $CC supports -Wformat... " >&6; }
5547		cacheid=xorg_cv_cc_flag__Wformat
5548		if eval test \${$cacheid+y}
5549then :
5550  printf %s "(cached) " >&6
5551else $as_nop
5552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553/* end confdefs.h.  */
5554int i;
5555int
5556main (void)
5557{
5558
5559  ;
5560  return 0;
5561}
5562_ACEOF
5563if ac_fn_c_try_link "$LINENO"
5564then :
5565  eval $cacheid=yes
5566else $as_nop
5567  eval $cacheid=no
5568fi
5569rm -f core conftest.err conftest.$ac_objext conftest.beam \
5570    conftest$ac_exeext conftest.$ac_ext
5571fi
5572
5573
5574		CFLAGS="$xorg_testset_save_CFLAGS"
5575
5576		eval supported=\$$cacheid
5577		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5578printf "%s\n" "$supported" >&6; }
5579		if test "$supported" = "yes" ; then
5580			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5581			found="yes"
5582		fi
5583	fi
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601xorg_testset_save_CFLAGS="$CFLAGS"
5602
5603if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5604	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5605	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5606printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5607if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5608then :
5609  printf %s "(cached) " >&6
5610else $as_nop
5611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612/* end confdefs.h.  */
5613int i;
5614_ACEOF
5615if ac_fn_c_try_compile "$LINENO"
5616then :
5617  xorg_cv_cc_flag_unknown_warning_option=yes
5618else $as_nop
5619  xorg_cv_cc_flag_unknown_warning_option=no
5620fi
5621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5622fi
5623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5624printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5625	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5626	CFLAGS="$xorg_testset_save_CFLAGS"
5627fi
5628
5629if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5630	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5631		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5632	fi
5633	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5634	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5635printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5636if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5637then :
5638  printf %s "(cached) " >&6
5639else $as_nop
5640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641/* end confdefs.h.  */
5642int i;
5643_ACEOF
5644if ac_fn_c_try_compile "$LINENO"
5645then :
5646  xorg_cv_cc_flag_unused_command_line_argument=yes
5647else $as_nop
5648  xorg_cv_cc_flag_unused_command_line_argument=no
5649fi
5650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5651fi
5652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5653printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5654	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5655	CFLAGS="$xorg_testset_save_CFLAGS"
5656fi
5657
5658found="no"
5659
5660	if test $found = "no" ; then
5661		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5662			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5663		fi
5664
5665		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5666			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5667		fi
5668
5669		CFLAGS="$CFLAGS -Wstrict-prototypes"
5670
5671		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5672printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5673		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5674		if eval test \${$cacheid+y}
5675then :
5676  printf %s "(cached) " >&6
5677else $as_nop
5678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679/* end confdefs.h.  */
5680int i;
5681int
5682main (void)
5683{
5684
5685  ;
5686  return 0;
5687}
5688_ACEOF
5689if ac_fn_c_try_link "$LINENO"
5690then :
5691  eval $cacheid=yes
5692else $as_nop
5693  eval $cacheid=no
5694fi
5695rm -f core conftest.err conftest.$ac_objext conftest.beam \
5696    conftest$ac_exeext conftest.$ac_ext
5697fi
5698
5699
5700		CFLAGS="$xorg_testset_save_CFLAGS"
5701
5702		eval supported=\$$cacheid
5703		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5704printf "%s\n" "$supported" >&6; }
5705		if test "$supported" = "yes" ; then
5706			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5707			found="yes"
5708		fi
5709	fi
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725xorg_testset_save_CFLAGS="$CFLAGS"
5726
5727if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5728	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5729	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5730printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5731if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5732then :
5733  printf %s "(cached) " >&6
5734else $as_nop
5735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736/* end confdefs.h.  */
5737int i;
5738_ACEOF
5739if ac_fn_c_try_compile "$LINENO"
5740then :
5741  xorg_cv_cc_flag_unknown_warning_option=yes
5742else $as_nop
5743  xorg_cv_cc_flag_unknown_warning_option=no
5744fi
5745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5746fi
5747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5748printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5749	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5750	CFLAGS="$xorg_testset_save_CFLAGS"
5751fi
5752
5753if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5754	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5755		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5756	fi
5757	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5758	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5759printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5760if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5761then :
5762  printf %s "(cached) " >&6
5763else $as_nop
5764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765/* end confdefs.h.  */
5766int i;
5767_ACEOF
5768if ac_fn_c_try_compile "$LINENO"
5769then :
5770  xorg_cv_cc_flag_unused_command_line_argument=yes
5771else $as_nop
5772  xorg_cv_cc_flag_unused_command_line_argument=no
5773fi
5774rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5775fi
5776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5777printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5778	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5779	CFLAGS="$xorg_testset_save_CFLAGS"
5780fi
5781
5782found="no"
5783
5784	if test $found = "no" ; then
5785		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5786			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5787		fi
5788
5789		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5790			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5791		fi
5792
5793		CFLAGS="$CFLAGS -Wmissing-prototypes"
5794
5795		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5796printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5797		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5798		if eval test \${$cacheid+y}
5799then :
5800  printf %s "(cached) " >&6
5801else $as_nop
5802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803/* end confdefs.h.  */
5804int i;
5805int
5806main (void)
5807{
5808
5809  ;
5810  return 0;
5811}
5812_ACEOF
5813if ac_fn_c_try_link "$LINENO"
5814then :
5815  eval $cacheid=yes
5816else $as_nop
5817  eval $cacheid=no
5818fi
5819rm -f core conftest.err conftest.$ac_objext conftest.beam \
5820    conftest$ac_exeext conftest.$ac_ext
5821fi
5822
5823
5824		CFLAGS="$xorg_testset_save_CFLAGS"
5825
5826		eval supported=\$$cacheid
5827		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5828printf "%s\n" "$supported" >&6; }
5829		if test "$supported" = "yes" ; then
5830			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5831			found="yes"
5832		fi
5833	fi
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849xorg_testset_save_CFLAGS="$CFLAGS"
5850
5851if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5852	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5853	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5854printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5855if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5856then :
5857  printf %s "(cached) " >&6
5858else $as_nop
5859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860/* end confdefs.h.  */
5861int i;
5862_ACEOF
5863if ac_fn_c_try_compile "$LINENO"
5864then :
5865  xorg_cv_cc_flag_unknown_warning_option=yes
5866else $as_nop
5867  xorg_cv_cc_flag_unknown_warning_option=no
5868fi
5869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5870fi
5871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5872printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5873	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5874	CFLAGS="$xorg_testset_save_CFLAGS"
5875fi
5876
5877if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5878	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5879		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5880	fi
5881	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5882	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5883printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5884if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5885then :
5886  printf %s "(cached) " >&6
5887else $as_nop
5888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889/* end confdefs.h.  */
5890int i;
5891_ACEOF
5892if ac_fn_c_try_compile "$LINENO"
5893then :
5894  xorg_cv_cc_flag_unused_command_line_argument=yes
5895else $as_nop
5896  xorg_cv_cc_flag_unused_command_line_argument=no
5897fi
5898rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5899fi
5900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5901printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5902	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5903	CFLAGS="$xorg_testset_save_CFLAGS"
5904fi
5905
5906found="no"
5907
5908	if test $found = "no" ; then
5909		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5910			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5911		fi
5912
5913		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5914			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5915		fi
5916
5917		CFLAGS="$CFLAGS -Wnested-externs"
5918
5919		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5920printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5921		cacheid=xorg_cv_cc_flag__Wnested_externs
5922		if eval test \${$cacheid+y}
5923then :
5924  printf %s "(cached) " >&6
5925else $as_nop
5926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927/* end confdefs.h.  */
5928int i;
5929int
5930main (void)
5931{
5932
5933  ;
5934  return 0;
5935}
5936_ACEOF
5937if ac_fn_c_try_link "$LINENO"
5938then :
5939  eval $cacheid=yes
5940else $as_nop
5941  eval $cacheid=no
5942fi
5943rm -f core conftest.err conftest.$ac_objext conftest.beam \
5944    conftest$ac_exeext conftest.$ac_ext
5945fi
5946
5947
5948		CFLAGS="$xorg_testset_save_CFLAGS"
5949
5950		eval supported=\$$cacheid
5951		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5952printf "%s\n" "$supported" >&6; }
5953		if test "$supported" = "yes" ; then
5954			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5955			found="yes"
5956		fi
5957	fi
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973xorg_testset_save_CFLAGS="$CFLAGS"
5974
5975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5976	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5977	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5978printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5979if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5980then :
5981  printf %s "(cached) " >&6
5982else $as_nop
5983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984/* end confdefs.h.  */
5985int i;
5986_ACEOF
5987if ac_fn_c_try_compile "$LINENO"
5988then :
5989  xorg_cv_cc_flag_unknown_warning_option=yes
5990else $as_nop
5991  xorg_cv_cc_flag_unknown_warning_option=no
5992fi
5993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5994fi
5995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5996printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5997	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5998	CFLAGS="$xorg_testset_save_CFLAGS"
5999fi
6000
6001if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6002	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6003		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6004	fi
6005	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6006	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6007printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6008if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6009then :
6010  printf %s "(cached) " >&6
6011else $as_nop
6012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013/* end confdefs.h.  */
6014int i;
6015_ACEOF
6016if ac_fn_c_try_compile "$LINENO"
6017then :
6018  xorg_cv_cc_flag_unused_command_line_argument=yes
6019else $as_nop
6020  xorg_cv_cc_flag_unused_command_line_argument=no
6021fi
6022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6023fi
6024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6025printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6026	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6027	CFLAGS="$xorg_testset_save_CFLAGS"
6028fi
6029
6030found="no"
6031
6032	if test $found = "no" ; then
6033		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6034			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6035		fi
6036
6037		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6038			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6039		fi
6040
6041		CFLAGS="$CFLAGS -Wbad-function-cast"
6042
6043		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6044printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6045		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6046		if eval test \${$cacheid+y}
6047then :
6048  printf %s "(cached) " >&6
6049else $as_nop
6050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051/* end confdefs.h.  */
6052int i;
6053int
6054main (void)
6055{
6056
6057  ;
6058  return 0;
6059}
6060_ACEOF
6061if ac_fn_c_try_link "$LINENO"
6062then :
6063  eval $cacheid=yes
6064else $as_nop
6065  eval $cacheid=no
6066fi
6067rm -f core conftest.err conftest.$ac_objext conftest.beam \
6068    conftest$ac_exeext conftest.$ac_ext
6069fi
6070
6071
6072		CFLAGS="$xorg_testset_save_CFLAGS"
6073
6074		eval supported=\$$cacheid
6075		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6076printf "%s\n" "$supported" >&6; }
6077		if test "$supported" = "yes" ; then
6078			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6079			found="yes"
6080		fi
6081	fi
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097xorg_testset_save_CFLAGS="$CFLAGS"
6098
6099if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6100	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6101	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6102printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6103if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6104then :
6105  printf %s "(cached) " >&6
6106else $as_nop
6107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108/* end confdefs.h.  */
6109int i;
6110_ACEOF
6111if ac_fn_c_try_compile "$LINENO"
6112then :
6113  xorg_cv_cc_flag_unknown_warning_option=yes
6114else $as_nop
6115  xorg_cv_cc_flag_unknown_warning_option=no
6116fi
6117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6118fi
6119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6120printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6121	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6122	CFLAGS="$xorg_testset_save_CFLAGS"
6123fi
6124
6125if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6126	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6127		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6128	fi
6129	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6130	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6131printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6132if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6133then :
6134  printf %s "(cached) " >&6
6135else $as_nop
6136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137/* end confdefs.h.  */
6138int i;
6139_ACEOF
6140if ac_fn_c_try_compile "$LINENO"
6141then :
6142  xorg_cv_cc_flag_unused_command_line_argument=yes
6143else $as_nop
6144  xorg_cv_cc_flag_unused_command_line_argument=no
6145fi
6146rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6147fi
6148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6149printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6150	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6151	CFLAGS="$xorg_testset_save_CFLAGS"
6152fi
6153
6154found="no"
6155
6156	if test $found = "no" ; then
6157		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6158			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6159		fi
6160
6161		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6162			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6163		fi
6164
6165		CFLAGS="$CFLAGS -Wold-style-definition"
6166
6167		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6168printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6169		cacheid=xorg_cv_cc_flag__Wold_style_definition
6170		if eval test \${$cacheid+y}
6171then :
6172  printf %s "(cached) " >&6
6173else $as_nop
6174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175/* end confdefs.h.  */
6176int i;
6177int
6178main (void)
6179{
6180
6181  ;
6182  return 0;
6183}
6184_ACEOF
6185if ac_fn_c_try_link "$LINENO"
6186then :
6187  eval $cacheid=yes
6188else $as_nop
6189  eval $cacheid=no
6190fi
6191rm -f core conftest.err conftest.$ac_objext conftest.beam \
6192    conftest$ac_exeext conftest.$ac_ext
6193fi
6194
6195
6196		CFLAGS="$xorg_testset_save_CFLAGS"
6197
6198		eval supported=\$$cacheid
6199		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6200printf "%s\n" "$supported" >&6; }
6201		if test "$supported" = "yes" ; then
6202			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6203			found="yes"
6204		fi
6205	fi
6206
6207	if test $found = "no" ; then
6208		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6209			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6210		fi
6211
6212		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6213			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6214		fi
6215
6216		CFLAGS="$CFLAGS -fd"
6217
6218		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6219printf %s "checking if $CC supports -fd... " >&6; }
6220		cacheid=xorg_cv_cc_flag__fd
6221		if eval test \${$cacheid+y}
6222then :
6223  printf %s "(cached) " >&6
6224else $as_nop
6225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226/* end confdefs.h.  */
6227int i;
6228int
6229main (void)
6230{
6231
6232  ;
6233  return 0;
6234}
6235_ACEOF
6236if ac_fn_c_try_link "$LINENO"
6237then :
6238  eval $cacheid=yes
6239else $as_nop
6240  eval $cacheid=no
6241fi
6242rm -f core conftest.err conftest.$ac_objext conftest.beam \
6243    conftest$ac_exeext conftest.$ac_ext
6244fi
6245
6246
6247		CFLAGS="$xorg_testset_save_CFLAGS"
6248
6249		eval supported=\$$cacheid
6250		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6251printf "%s\n" "$supported" >&6; }
6252		if test "$supported" = "yes" ; then
6253			BASE_CFLAGS="$BASE_CFLAGS -fd"
6254			found="yes"
6255		fi
6256	fi
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272xorg_testset_save_CFLAGS="$CFLAGS"
6273
6274if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6275	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6276	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6277printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6278if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6279then :
6280  printf %s "(cached) " >&6
6281else $as_nop
6282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283/* end confdefs.h.  */
6284int i;
6285_ACEOF
6286if ac_fn_c_try_compile "$LINENO"
6287then :
6288  xorg_cv_cc_flag_unknown_warning_option=yes
6289else $as_nop
6290  xorg_cv_cc_flag_unknown_warning_option=no
6291fi
6292rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6293fi
6294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6295printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6296	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6297	CFLAGS="$xorg_testset_save_CFLAGS"
6298fi
6299
6300if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6301	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6302		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6303	fi
6304	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6305	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6306printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6307if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6308then :
6309  printf %s "(cached) " >&6
6310else $as_nop
6311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312/* end confdefs.h.  */
6313int i;
6314_ACEOF
6315if ac_fn_c_try_compile "$LINENO"
6316then :
6317  xorg_cv_cc_flag_unused_command_line_argument=yes
6318else $as_nop
6319  xorg_cv_cc_flag_unused_command_line_argument=no
6320fi
6321rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6322fi
6323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6324printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6325	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6326	CFLAGS="$xorg_testset_save_CFLAGS"
6327fi
6328
6329found="no"
6330
6331	if test $found = "no" ; then
6332		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6333			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6334		fi
6335
6336		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6337			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6338		fi
6339
6340		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6341
6342		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6343printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6344		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6345		if eval test \${$cacheid+y}
6346then :
6347  printf %s "(cached) " >&6
6348else $as_nop
6349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350/* end confdefs.h.  */
6351int i;
6352int
6353main (void)
6354{
6355
6356  ;
6357  return 0;
6358}
6359_ACEOF
6360if ac_fn_c_try_link "$LINENO"
6361then :
6362  eval $cacheid=yes
6363else $as_nop
6364  eval $cacheid=no
6365fi
6366rm -f core conftest.err conftest.$ac_objext conftest.beam \
6367    conftest$ac_exeext conftest.$ac_ext
6368fi
6369
6370
6371		CFLAGS="$xorg_testset_save_CFLAGS"
6372
6373		eval supported=\$$cacheid
6374		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6375printf "%s\n" "$supported" >&6; }
6376		if test "$supported" = "yes" ; then
6377			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6378			found="yes"
6379		fi
6380	fi
6381
6382
6383
6384
6385
6386# This chunk adds additional warnings that could catch undesired effects.
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400xorg_testset_save_CFLAGS="$CFLAGS"
6401
6402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6403	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6404	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6405printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6406if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6407then :
6408  printf %s "(cached) " >&6
6409else $as_nop
6410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6411/* end confdefs.h.  */
6412int i;
6413_ACEOF
6414if ac_fn_c_try_compile "$LINENO"
6415then :
6416  xorg_cv_cc_flag_unknown_warning_option=yes
6417else $as_nop
6418  xorg_cv_cc_flag_unknown_warning_option=no
6419fi
6420rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6421fi
6422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6423printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6424	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6425	CFLAGS="$xorg_testset_save_CFLAGS"
6426fi
6427
6428if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6429	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6430		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6431	fi
6432	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6433	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6434printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6435if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6436then :
6437  printf %s "(cached) " >&6
6438else $as_nop
6439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440/* end confdefs.h.  */
6441int i;
6442_ACEOF
6443if ac_fn_c_try_compile "$LINENO"
6444then :
6445  xorg_cv_cc_flag_unused_command_line_argument=yes
6446else $as_nop
6447  xorg_cv_cc_flag_unused_command_line_argument=no
6448fi
6449rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6450fi
6451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6452printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6453	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6454	CFLAGS="$xorg_testset_save_CFLAGS"
6455fi
6456
6457found="no"
6458
6459	if test $found = "no" ; then
6460		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6461			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6462		fi
6463
6464		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6465			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6466		fi
6467
6468		CFLAGS="$CFLAGS -Wunused"
6469
6470		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6471printf %s "checking if $CC supports -Wunused... " >&6; }
6472		cacheid=xorg_cv_cc_flag__Wunused
6473		if eval test \${$cacheid+y}
6474then :
6475  printf %s "(cached) " >&6
6476else $as_nop
6477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478/* end confdefs.h.  */
6479int i;
6480int
6481main (void)
6482{
6483
6484  ;
6485  return 0;
6486}
6487_ACEOF
6488if ac_fn_c_try_link "$LINENO"
6489then :
6490  eval $cacheid=yes
6491else $as_nop
6492  eval $cacheid=no
6493fi
6494rm -f core conftest.err conftest.$ac_objext conftest.beam \
6495    conftest$ac_exeext conftest.$ac_ext
6496fi
6497
6498
6499		CFLAGS="$xorg_testset_save_CFLAGS"
6500
6501		eval supported=\$$cacheid
6502		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6503printf "%s\n" "$supported" >&6; }
6504		if test "$supported" = "yes" ; then
6505			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6506			found="yes"
6507		fi
6508	fi
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524xorg_testset_save_CFLAGS="$CFLAGS"
6525
6526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6527	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6528	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6529printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6530if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6531then :
6532  printf %s "(cached) " >&6
6533else $as_nop
6534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535/* end confdefs.h.  */
6536int i;
6537_ACEOF
6538if ac_fn_c_try_compile "$LINENO"
6539then :
6540  xorg_cv_cc_flag_unknown_warning_option=yes
6541else $as_nop
6542  xorg_cv_cc_flag_unknown_warning_option=no
6543fi
6544rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6545fi
6546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6547printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6548	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6549	CFLAGS="$xorg_testset_save_CFLAGS"
6550fi
6551
6552if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6553	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6554		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6555	fi
6556	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6557	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6558printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6559if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6560then :
6561  printf %s "(cached) " >&6
6562else $as_nop
6563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564/* end confdefs.h.  */
6565int i;
6566_ACEOF
6567if ac_fn_c_try_compile "$LINENO"
6568then :
6569  xorg_cv_cc_flag_unused_command_line_argument=yes
6570else $as_nop
6571  xorg_cv_cc_flag_unused_command_line_argument=no
6572fi
6573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6574fi
6575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6576printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6577	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6578	CFLAGS="$xorg_testset_save_CFLAGS"
6579fi
6580
6581found="no"
6582
6583	if test $found = "no" ; then
6584		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6585			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6586		fi
6587
6588		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6589			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6590		fi
6591
6592		CFLAGS="$CFLAGS -Wuninitialized"
6593
6594		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6595printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6596		cacheid=xorg_cv_cc_flag__Wuninitialized
6597		if eval test \${$cacheid+y}
6598then :
6599  printf %s "(cached) " >&6
6600else $as_nop
6601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602/* end confdefs.h.  */
6603int i;
6604int
6605main (void)
6606{
6607
6608  ;
6609  return 0;
6610}
6611_ACEOF
6612if ac_fn_c_try_link "$LINENO"
6613then :
6614  eval $cacheid=yes
6615else $as_nop
6616  eval $cacheid=no
6617fi
6618rm -f core conftest.err conftest.$ac_objext conftest.beam \
6619    conftest$ac_exeext conftest.$ac_ext
6620fi
6621
6622
6623		CFLAGS="$xorg_testset_save_CFLAGS"
6624
6625		eval supported=\$$cacheid
6626		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6627printf "%s\n" "$supported" >&6; }
6628		if test "$supported" = "yes" ; then
6629			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6630			found="yes"
6631		fi
6632	fi
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648xorg_testset_save_CFLAGS="$CFLAGS"
6649
6650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6651	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6652	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6653printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6654if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6655then :
6656  printf %s "(cached) " >&6
6657else $as_nop
6658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659/* end confdefs.h.  */
6660int i;
6661_ACEOF
6662if ac_fn_c_try_compile "$LINENO"
6663then :
6664  xorg_cv_cc_flag_unknown_warning_option=yes
6665else $as_nop
6666  xorg_cv_cc_flag_unknown_warning_option=no
6667fi
6668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6669fi
6670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6671printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6672	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6673	CFLAGS="$xorg_testset_save_CFLAGS"
6674fi
6675
6676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6677	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6678		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6679	fi
6680	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6681	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6682printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6683if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6684then :
6685  printf %s "(cached) " >&6
6686else $as_nop
6687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688/* end confdefs.h.  */
6689int i;
6690_ACEOF
6691if ac_fn_c_try_compile "$LINENO"
6692then :
6693  xorg_cv_cc_flag_unused_command_line_argument=yes
6694else $as_nop
6695  xorg_cv_cc_flag_unused_command_line_argument=no
6696fi
6697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6698fi
6699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6700printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6701	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6702	CFLAGS="$xorg_testset_save_CFLAGS"
6703fi
6704
6705found="no"
6706
6707	if test $found = "no" ; then
6708		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6709			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6710		fi
6711
6712		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6713			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6714		fi
6715
6716		CFLAGS="$CFLAGS -Wshadow"
6717
6718		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6719printf %s "checking if $CC supports -Wshadow... " >&6; }
6720		cacheid=xorg_cv_cc_flag__Wshadow
6721		if eval test \${$cacheid+y}
6722then :
6723  printf %s "(cached) " >&6
6724else $as_nop
6725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726/* end confdefs.h.  */
6727int i;
6728int
6729main (void)
6730{
6731
6732  ;
6733  return 0;
6734}
6735_ACEOF
6736if ac_fn_c_try_link "$LINENO"
6737then :
6738  eval $cacheid=yes
6739else $as_nop
6740  eval $cacheid=no
6741fi
6742rm -f core conftest.err conftest.$ac_objext conftest.beam \
6743    conftest$ac_exeext conftest.$ac_ext
6744fi
6745
6746
6747		CFLAGS="$xorg_testset_save_CFLAGS"
6748
6749		eval supported=\$$cacheid
6750		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6751printf "%s\n" "$supported" >&6; }
6752		if test "$supported" = "yes" ; then
6753			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6754			found="yes"
6755		fi
6756	fi
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772xorg_testset_save_CFLAGS="$CFLAGS"
6773
6774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6775	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6776	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6777printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6778if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6779then :
6780  printf %s "(cached) " >&6
6781else $as_nop
6782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783/* end confdefs.h.  */
6784int i;
6785_ACEOF
6786if ac_fn_c_try_compile "$LINENO"
6787then :
6788  xorg_cv_cc_flag_unknown_warning_option=yes
6789else $as_nop
6790  xorg_cv_cc_flag_unknown_warning_option=no
6791fi
6792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6793fi
6794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6795printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6796	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6797	CFLAGS="$xorg_testset_save_CFLAGS"
6798fi
6799
6800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6801	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6802		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6803	fi
6804	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6805	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6806printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6807if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6808then :
6809  printf %s "(cached) " >&6
6810else $as_nop
6811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812/* end confdefs.h.  */
6813int i;
6814_ACEOF
6815if ac_fn_c_try_compile "$LINENO"
6816then :
6817  xorg_cv_cc_flag_unused_command_line_argument=yes
6818else $as_nop
6819  xorg_cv_cc_flag_unused_command_line_argument=no
6820fi
6821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6822fi
6823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6824printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6825	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6826	CFLAGS="$xorg_testset_save_CFLAGS"
6827fi
6828
6829found="no"
6830
6831	if test $found = "no" ; then
6832		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6833			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6834		fi
6835
6836		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6837			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6838		fi
6839
6840		CFLAGS="$CFLAGS -Wmissing-noreturn"
6841
6842		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6843printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6844		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6845		if eval test \${$cacheid+y}
6846then :
6847  printf %s "(cached) " >&6
6848else $as_nop
6849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850/* end confdefs.h.  */
6851int i;
6852int
6853main (void)
6854{
6855
6856  ;
6857  return 0;
6858}
6859_ACEOF
6860if ac_fn_c_try_link "$LINENO"
6861then :
6862  eval $cacheid=yes
6863else $as_nop
6864  eval $cacheid=no
6865fi
6866rm -f core conftest.err conftest.$ac_objext conftest.beam \
6867    conftest$ac_exeext conftest.$ac_ext
6868fi
6869
6870
6871		CFLAGS="$xorg_testset_save_CFLAGS"
6872
6873		eval supported=\$$cacheid
6874		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6875printf "%s\n" "$supported" >&6; }
6876		if test "$supported" = "yes" ; then
6877			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6878			found="yes"
6879		fi
6880	fi
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896xorg_testset_save_CFLAGS="$CFLAGS"
6897
6898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6899	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6900	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6901printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6902if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6903then :
6904  printf %s "(cached) " >&6
6905else $as_nop
6906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907/* end confdefs.h.  */
6908int i;
6909_ACEOF
6910if ac_fn_c_try_compile "$LINENO"
6911then :
6912  xorg_cv_cc_flag_unknown_warning_option=yes
6913else $as_nop
6914  xorg_cv_cc_flag_unknown_warning_option=no
6915fi
6916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6917fi
6918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6919printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6920	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6921	CFLAGS="$xorg_testset_save_CFLAGS"
6922fi
6923
6924if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6925	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6926		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6927	fi
6928	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6929	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6930printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6931if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6932then :
6933  printf %s "(cached) " >&6
6934else $as_nop
6935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936/* end confdefs.h.  */
6937int i;
6938_ACEOF
6939if ac_fn_c_try_compile "$LINENO"
6940then :
6941  xorg_cv_cc_flag_unused_command_line_argument=yes
6942else $as_nop
6943  xorg_cv_cc_flag_unused_command_line_argument=no
6944fi
6945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6946fi
6947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6948printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6949	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6950	CFLAGS="$xorg_testset_save_CFLAGS"
6951fi
6952
6953found="no"
6954
6955	if test $found = "no" ; then
6956		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6957			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6958		fi
6959
6960		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6961			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6962		fi
6963
6964		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6965
6966		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6967printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6968		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6969		if eval test \${$cacheid+y}
6970then :
6971  printf %s "(cached) " >&6
6972else $as_nop
6973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974/* end confdefs.h.  */
6975int i;
6976int
6977main (void)
6978{
6979
6980  ;
6981  return 0;
6982}
6983_ACEOF
6984if ac_fn_c_try_link "$LINENO"
6985then :
6986  eval $cacheid=yes
6987else $as_nop
6988  eval $cacheid=no
6989fi
6990rm -f core conftest.err conftest.$ac_objext conftest.beam \
6991    conftest$ac_exeext conftest.$ac_ext
6992fi
6993
6994
6995		CFLAGS="$xorg_testset_save_CFLAGS"
6996
6997		eval supported=\$$cacheid
6998		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6999printf "%s\n" "$supported" >&6; }
7000		if test "$supported" = "yes" ; then
7001			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7002			found="yes"
7003		fi
7004	fi
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020xorg_testset_save_CFLAGS="$CFLAGS"
7021
7022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7023	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7024	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7025printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7026if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7027then :
7028  printf %s "(cached) " >&6
7029else $as_nop
7030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031/* end confdefs.h.  */
7032int i;
7033_ACEOF
7034if ac_fn_c_try_compile "$LINENO"
7035then :
7036  xorg_cv_cc_flag_unknown_warning_option=yes
7037else $as_nop
7038  xorg_cv_cc_flag_unknown_warning_option=no
7039fi
7040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7041fi
7042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7043printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7044	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7045	CFLAGS="$xorg_testset_save_CFLAGS"
7046fi
7047
7048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7049	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7050		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7051	fi
7052	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7053	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7054printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7055if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7056then :
7057  printf %s "(cached) " >&6
7058else $as_nop
7059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060/* end confdefs.h.  */
7061int i;
7062_ACEOF
7063if ac_fn_c_try_compile "$LINENO"
7064then :
7065  xorg_cv_cc_flag_unused_command_line_argument=yes
7066else $as_nop
7067  xorg_cv_cc_flag_unused_command_line_argument=no
7068fi
7069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7070fi
7071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7072printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7073	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7074	CFLAGS="$xorg_testset_save_CFLAGS"
7075fi
7076
7077found="no"
7078
7079	if test $found = "no" ; then
7080		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7081			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7082		fi
7083
7084		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7085			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7086		fi
7087
7088		CFLAGS="$CFLAGS -Wredundant-decls"
7089
7090		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7091printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7092		cacheid=xorg_cv_cc_flag__Wredundant_decls
7093		if eval test \${$cacheid+y}
7094then :
7095  printf %s "(cached) " >&6
7096else $as_nop
7097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098/* end confdefs.h.  */
7099int i;
7100int
7101main (void)
7102{
7103
7104  ;
7105  return 0;
7106}
7107_ACEOF
7108if ac_fn_c_try_link "$LINENO"
7109then :
7110  eval $cacheid=yes
7111else $as_nop
7112  eval $cacheid=no
7113fi
7114rm -f core conftest.err conftest.$ac_objext conftest.beam \
7115    conftest$ac_exeext conftest.$ac_ext
7116fi
7117
7118
7119		CFLAGS="$xorg_testset_save_CFLAGS"
7120
7121		eval supported=\$$cacheid
7122		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7123printf "%s\n" "$supported" >&6; }
7124		if test "$supported" = "yes" ; then
7125			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7126			found="yes"
7127		fi
7128	fi
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144xorg_testset_save_CFLAGS="$CFLAGS"
7145
7146if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7147	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7148	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7149printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7150if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7151then :
7152  printf %s "(cached) " >&6
7153else $as_nop
7154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155/* end confdefs.h.  */
7156int i;
7157_ACEOF
7158if ac_fn_c_try_compile "$LINENO"
7159then :
7160  xorg_cv_cc_flag_unknown_warning_option=yes
7161else $as_nop
7162  xorg_cv_cc_flag_unknown_warning_option=no
7163fi
7164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7165fi
7166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7167printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7168	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7169	CFLAGS="$xorg_testset_save_CFLAGS"
7170fi
7171
7172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7173	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7174		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7175	fi
7176	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7177	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7178printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7179if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7180then :
7181  printf %s "(cached) " >&6
7182else $as_nop
7183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184/* end confdefs.h.  */
7185int i;
7186_ACEOF
7187if ac_fn_c_try_compile "$LINENO"
7188then :
7189  xorg_cv_cc_flag_unused_command_line_argument=yes
7190else $as_nop
7191  xorg_cv_cc_flag_unused_command_line_argument=no
7192fi
7193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7194fi
7195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7196printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7197	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7198	CFLAGS="$xorg_testset_save_CFLAGS"
7199fi
7200
7201found="no"
7202
7203	if test $found = "no" ; then
7204		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7205			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7206		fi
7207
7208		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7209			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7210		fi
7211
7212		CFLAGS="$CFLAGS -Wlogical-op"
7213
7214		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7215printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7216		cacheid=xorg_cv_cc_flag__Wlogical_op
7217		if eval test \${$cacheid+y}
7218then :
7219  printf %s "(cached) " >&6
7220else $as_nop
7221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222/* end confdefs.h.  */
7223int i;
7224int
7225main (void)
7226{
7227
7228  ;
7229  return 0;
7230}
7231_ACEOF
7232if ac_fn_c_try_link "$LINENO"
7233then :
7234  eval $cacheid=yes
7235else $as_nop
7236  eval $cacheid=no
7237fi
7238rm -f core conftest.err conftest.$ac_objext conftest.beam \
7239    conftest$ac_exeext conftest.$ac_ext
7240fi
7241
7242
7243		CFLAGS="$xorg_testset_save_CFLAGS"
7244
7245		eval supported=\$$cacheid
7246		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7247printf "%s\n" "$supported" >&6; }
7248		if test "$supported" = "yes" ; then
7249			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7250			found="yes"
7251		fi
7252	fi
7253
7254
7255
7256# These are currently disabled because they are noisy.  They will be enabled
7257# in the future once the codebase is sufficiently modernized to silence
7258# them.  For now, I don't want them to drown out the other warnings.
7259# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7260# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7261# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7262
7263# Turn some warnings into errors, so we don't accidently get successful builds
7264# when there are problems that should be fixed.
7265
7266if test "x$SELECTIVE_WERROR" = "xyes" ; then
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280xorg_testset_save_CFLAGS="$CFLAGS"
7281
7282if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7283	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7284	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7285printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7286if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7287then :
7288  printf %s "(cached) " >&6
7289else $as_nop
7290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291/* end confdefs.h.  */
7292int i;
7293_ACEOF
7294if ac_fn_c_try_compile "$LINENO"
7295then :
7296  xorg_cv_cc_flag_unknown_warning_option=yes
7297else $as_nop
7298  xorg_cv_cc_flag_unknown_warning_option=no
7299fi
7300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7301fi
7302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7303printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7304	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7305	CFLAGS="$xorg_testset_save_CFLAGS"
7306fi
7307
7308if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7309	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7310		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7311	fi
7312	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7313	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7314printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7315if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7316then :
7317  printf %s "(cached) " >&6
7318else $as_nop
7319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320/* end confdefs.h.  */
7321int i;
7322_ACEOF
7323if ac_fn_c_try_compile "$LINENO"
7324then :
7325  xorg_cv_cc_flag_unused_command_line_argument=yes
7326else $as_nop
7327  xorg_cv_cc_flag_unused_command_line_argument=no
7328fi
7329rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7330fi
7331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7332printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7333	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7334	CFLAGS="$xorg_testset_save_CFLAGS"
7335fi
7336
7337found="no"
7338
7339	if test $found = "no" ; then
7340		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7341			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7342		fi
7343
7344		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7345			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7346		fi
7347
7348		CFLAGS="$CFLAGS -Werror=implicit"
7349
7350		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7351printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7352		cacheid=xorg_cv_cc_flag__Werror_implicit
7353		if eval test \${$cacheid+y}
7354then :
7355  printf %s "(cached) " >&6
7356else $as_nop
7357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358/* end confdefs.h.  */
7359int i;
7360int
7361main (void)
7362{
7363
7364  ;
7365  return 0;
7366}
7367_ACEOF
7368if ac_fn_c_try_link "$LINENO"
7369then :
7370  eval $cacheid=yes
7371else $as_nop
7372  eval $cacheid=no
7373fi
7374rm -f core conftest.err conftest.$ac_objext conftest.beam \
7375    conftest$ac_exeext conftest.$ac_ext
7376fi
7377
7378
7379		CFLAGS="$xorg_testset_save_CFLAGS"
7380
7381		eval supported=\$$cacheid
7382		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7383printf "%s\n" "$supported" >&6; }
7384		if test "$supported" = "yes" ; then
7385			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7386			found="yes"
7387		fi
7388	fi
7389
7390	if test $found = "no" ; then
7391		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7392			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7393		fi
7394
7395		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7396			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7397		fi
7398
7399		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7400
7401		{ 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
7402printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7403		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7404		if eval test \${$cacheid+y}
7405then :
7406  printf %s "(cached) " >&6
7407else $as_nop
7408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409/* end confdefs.h.  */
7410int i;
7411int
7412main (void)
7413{
7414
7415  ;
7416  return 0;
7417}
7418_ACEOF
7419if ac_fn_c_try_link "$LINENO"
7420then :
7421  eval $cacheid=yes
7422else $as_nop
7423  eval $cacheid=no
7424fi
7425rm -f core conftest.err conftest.$ac_objext conftest.beam \
7426    conftest$ac_exeext conftest.$ac_ext
7427fi
7428
7429
7430		CFLAGS="$xorg_testset_save_CFLAGS"
7431
7432		eval supported=\$$cacheid
7433		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7434printf "%s\n" "$supported" >&6; }
7435		if test "$supported" = "yes" ; then
7436			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7437			found="yes"
7438		fi
7439	fi
7440
7441
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 $as_nop
7465  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 $as_nop
7473  xorg_cv_cc_flag_unknown_warning_option=no
7474fi
7475rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7476fi
7477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7478printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7479	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7480	CFLAGS="$xorg_testset_save_CFLAGS"
7481fi
7482
7483if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7484	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7485		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7486	fi
7487	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7488	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7489printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7490if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7491then :
7492  printf %s "(cached) " >&6
7493else $as_nop
7494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495/* end confdefs.h.  */
7496int i;
7497_ACEOF
7498if ac_fn_c_try_compile "$LINENO"
7499then :
7500  xorg_cv_cc_flag_unused_command_line_argument=yes
7501else $as_nop
7502  xorg_cv_cc_flag_unused_command_line_argument=no
7503fi
7504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7505fi
7506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7507printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7508	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7509	CFLAGS="$xorg_testset_save_CFLAGS"
7510fi
7511
7512found="no"
7513
7514	if test $found = "no" ; then
7515		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7516			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7517		fi
7518
7519		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7520			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7521		fi
7522
7523		CFLAGS="$CFLAGS -Werror=nonnull"
7524
7525		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7526printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7527		cacheid=xorg_cv_cc_flag__Werror_nonnull
7528		if eval test \${$cacheid+y}
7529then :
7530  printf %s "(cached) " >&6
7531else $as_nop
7532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533/* end confdefs.h.  */
7534int i;
7535int
7536main (void)
7537{
7538
7539  ;
7540  return 0;
7541}
7542_ACEOF
7543if ac_fn_c_try_link "$LINENO"
7544then :
7545  eval $cacheid=yes
7546else $as_nop
7547  eval $cacheid=no
7548fi
7549rm -f core conftest.err conftest.$ac_objext conftest.beam \
7550    conftest$ac_exeext conftest.$ac_ext
7551fi
7552
7553
7554		CFLAGS="$xorg_testset_save_CFLAGS"
7555
7556		eval supported=\$$cacheid
7557		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7558printf "%s\n" "$supported" >&6; }
7559		if test "$supported" = "yes" ; then
7560			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7561			found="yes"
7562		fi
7563	fi
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579xorg_testset_save_CFLAGS="$CFLAGS"
7580
7581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7582	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7583	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7584printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7585if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7586then :
7587  printf %s "(cached) " >&6
7588else $as_nop
7589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590/* end confdefs.h.  */
7591int i;
7592_ACEOF
7593if ac_fn_c_try_compile "$LINENO"
7594then :
7595  xorg_cv_cc_flag_unknown_warning_option=yes
7596else $as_nop
7597  xorg_cv_cc_flag_unknown_warning_option=no
7598fi
7599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7600fi
7601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7602printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7603	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7604	CFLAGS="$xorg_testset_save_CFLAGS"
7605fi
7606
7607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7608	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7609		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7610	fi
7611	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7612	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7613printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7614if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7615then :
7616  printf %s "(cached) " >&6
7617else $as_nop
7618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619/* end confdefs.h.  */
7620int i;
7621_ACEOF
7622if ac_fn_c_try_compile "$LINENO"
7623then :
7624  xorg_cv_cc_flag_unused_command_line_argument=yes
7625else $as_nop
7626  xorg_cv_cc_flag_unused_command_line_argument=no
7627fi
7628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7629fi
7630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7631printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7632	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7633	CFLAGS="$xorg_testset_save_CFLAGS"
7634fi
7635
7636found="no"
7637
7638	if test $found = "no" ; then
7639		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7640			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7641		fi
7642
7643		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7644			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7645		fi
7646
7647		CFLAGS="$CFLAGS -Werror=init-self"
7648
7649		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7650printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7651		cacheid=xorg_cv_cc_flag__Werror_init_self
7652		if eval test \${$cacheid+y}
7653then :
7654  printf %s "(cached) " >&6
7655else $as_nop
7656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657/* end confdefs.h.  */
7658int i;
7659int
7660main (void)
7661{
7662
7663  ;
7664  return 0;
7665}
7666_ACEOF
7667if ac_fn_c_try_link "$LINENO"
7668then :
7669  eval $cacheid=yes
7670else $as_nop
7671  eval $cacheid=no
7672fi
7673rm -f core conftest.err conftest.$ac_objext conftest.beam \
7674    conftest$ac_exeext conftest.$ac_ext
7675fi
7676
7677
7678		CFLAGS="$xorg_testset_save_CFLAGS"
7679
7680		eval supported=\$$cacheid
7681		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7682printf "%s\n" "$supported" >&6; }
7683		if test "$supported" = "yes" ; then
7684			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7685			found="yes"
7686		fi
7687	fi
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703xorg_testset_save_CFLAGS="$CFLAGS"
7704
7705if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7706	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7707	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7708printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7709if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7710then :
7711  printf %s "(cached) " >&6
7712else $as_nop
7713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714/* end confdefs.h.  */
7715int i;
7716_ACEOF
7717if ac_fn_c_try_compile "$LINENO"
7718then :
7719  xorg_cv_cc_flag_unknown_warning_option=yes
7720else $as_nop
7721  xorg_cv_cc_flag_unknown_warning_option=no
7722fi
7723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7724fi
7725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7726printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7727	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7728	CFLAGS="$xorg_testset_save_CFLAGS"
7729fi
7730
7731if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7732	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7733		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7734	fi
7735	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7736	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7737printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7738if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7739then :
7740  printf %s "(cached) " >&6
7741else $as_nop
7742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743/* end confdefs.h.  */
7744int i;
7745_ACEOF
7746if ac_fn_c_try_compile "$LINENO"
7747then :
7748  xorg_cv_cc_flag_unused_command_line_argument=yes
7749else $as_nop
7750  xorg_cv_cc_flag_unused_command_line_argument=no
7751fi
7752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7753fi
7754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7755printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7756	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7757	CFLAGS="$xorg_testset_save_CFLAGS"
7758fi
7759
7760found="no"
7761
7762	if test $found = "no" ; then
7763		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7764			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7765		fi
7766
7767		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7768			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7769		fi
7770
7771		CFLAGS="$CFLAGS -Werror=main"
7772
7773		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7774printf %s "checking if $CC supports -Werror=main... " >&6; }
7775		cacheid=xorg_cv_cc_flag__Werror_main
7776		if eval test \${$cacheid+y}
7777then :
7778  printf %s "(cached) " >&6
7779else $as_nop
7780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781/* end confdefs.h.  */
7782int i;
7783int
7784main (void)
7785{
7786
7787  ;
7788  return 0;
7789}
7790_ACEOF
7791if ac_fn_c_try_link "$LINENO"
7792then :
7793  eval $cacheid=yes
7794else $as_nop
7795  eval $cacheid=no
7796fi
7797rm -f core conftest.err conftest.$ac_objext conftest.beam \
7798    conftest$ac_exeext conftest.$ac_ext
7799fi
7800
7801
7802		CFLAGS="$xorg_testset_save_CFLAGS"
7803
7804		eval supported=\$$cacheid
7805		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7806printf "%s\n" "$supported" >&6; }
7807		if test "$supported" = "yes" ; then
7808			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7809			found="yes"
7810		fi
7811	fi
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827xorg_testset_save_CFLAGS="$CFLAGS"
7828
7829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7830	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7831	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7832printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7833if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7834then :
7835  printf %s "(cached) " >&6
7836else $as_nop
7837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838/* end confdefs.h.  */
7839int i;
7840_ACEOF
7841if ac_fn_c_try_compile "$LINENO"
7842then :
7843  xorg_cv_cc_flag_unknown_warning_option=yes
7844else $as_nop
7845  xorg_cv_cc_flag_unknown_warning_option=no
7846fi
7847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7848fi
7849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7850printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7851	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7852	CFLAGS="$xorg_testset_save_CFLAGS"
7853fi
7854
7855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7856	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7857		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7858	fi
7859	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7860	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7861printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7862if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7863then :
7864  printf %s "(cached) " >&6
7865else $as_nop
7866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867/* end confdefs.h.  */
7868int i;
7869_ACEOF
7870if ac_fn_c_try_compile "$LINENO"
7871then :
7872  xorg_cv_cc_flag_unused_command_line_argument=yes
7873else $as_nop
7874  xorg_cv_cc_flag_unused_command_line_argument=no
7875fi
7876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7877fi
7878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7879printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7880	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7881	CFLAGS="$xorg_testset_save_CFLAGS"
7882fi
7883
7884found="no"
7885
7886	if test $found = "no" ; then
7887		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7888			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7889		fi
7890
7891		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7892			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7893		fi
7894
7895		CFLAGS="$CFLAGS -Werror=missing-braces"
7896
7897		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7898printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7899		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7900		if eval test \${$cacheid+y}
7901then :
7902  printf %s "(cached) " >&6
7903else $as_nop
7904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905/* end confdefs.h.  */
7906int i;
7907int
7908main (void)
7909{
7910
7911  ;
7912  return 0;
7913}
7914_ACEOF
7915if ac_fn_c_try_link "$LINENO"
7916then :
7917  eval $cacheid=yes
7918else $as_nop
7919  eval $cacheid=no
7920fi
7921rm -f core conftest.err conftest.$ac_objext conftest.beam \
7922    conftest$ac_exeext conftest.$ac_ext
7923fi
7924
7925
7926		CFLAGS="$xorg_testset_save_CFLAGS"
7927
7928		eval supported=\$$cacheid
7929		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7930printf "%s\n" "$supported" >&6; }
7931		if test "$supported" = "yes" ; then
7932			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7933			found="yes"
7934		fi
7935	fi
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951xorg_testset_save_CFLAGS="$CFLAGS"
7952
7953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7954	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7955	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7956printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7957if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7958then :
7959  printf %s "(cached) " >&6
7960else $as_nop
7961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962/* end confdefs.h.  */
7963int i;
7964_ACEOF
7965if ac_fn_c_try_compile "$LINENO"
7966then :
7967  xorg_cv_cc_flag_unknown_warning_option=yes
7968else $as_nop
7969  xorg_cv_cc_flag_unknown_warning_option=no
7970fi
7971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7972fi
7973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7974printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7975	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7976	CFLAGS="$xorg_testset_save_CFLAGS"
7977fi
7978
7979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7980	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7981		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7982	fi
7983	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7984	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7985printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7986if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7987then :
7988  printf %s "(cached) " >&6
7989else $as_nop
7990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991/* end confdefs.h.  */
7992int i;
7993_ACEOF
7994if ac_fn_c_try_compile "$LINENO"
7995then :
7996  xorg_cv_cc_flag_unused_command_line_argument=yes
7997else $as_nop
7998  xorg_cv_cc_flag_unused_command_line_argument=no
7999fi
8000rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8001fi
8002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8003printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8004	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8005	CFLAGS="$xorg_testset_save_CFLAGS"
8006fi
8007
8008found="no"
8009
8010	if test $found = "no" ; then
8011		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8012			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8013		fi
8014
8015		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8016			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8017		fi
8018
8019		CFLAGS="$CFLAGS -Werror=sequence-point"
8020
8021		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8022printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8023		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8024		if eval test \${$cacheid+y}
8025then :
8026  printf %s "(cached) " >&6
8027else $as_nop
8028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029/* end confdefs.h.  */
8030int i;
8031int
8032main (void)
8033{
8034
8035  ;
8036  return 0;
8037}
8038_ACEOF
8039if ac_fn_c_try_link "$LINENO"
8040then :
8041  eval $cacheid=yes
8042else $as_nop
8043  eval $cacheid=no
8044fi
8045rm -f core conftest.err conftest.$ac_objext conftest.beam \
8046    conftest$ac_exeext conftest.$ac_ext
8047fi
8048
8049
8050		CFLAGS="$xorg_testset_save_CFLAGS"
8051
8052		eval supported=\$$cacheid
8053		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8054printf "%s\n" "$supported" >&6; }
8055		if test "$supported" = "yes" ; then
8056			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8057			found="yes"
8058		fi
8059	fi
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075xorg_testset_save_CFLAGS="$CFLAGS"
8076
8077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8078	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8079	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8080printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8081if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8082then :
8083  printf %s "(cached) " >&6
8084else $as_nop
8085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086/* end confdefs.h.  */
8087int i;
8088_ACEOF
8089if ac_fn_c_try_compile "$LINENO"
8090then :
8091  xorg_cv_cc_flag_unknown_warning_option=yes
8092else $as_nop
8093  xorg_cv_cc_flag_unknown_warning_option=no
8094fi
8095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8096fi
8097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8098printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8099	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8100	CFLAGS="$xorg_testset_save_CFLAGS"
8101fi
8102
8103if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8104	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8105		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8106	fi
8107	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8108	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8109printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8110if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8111then :
8112  printf %s "(cached) " >&6
8113else $as_nop
8114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115/* end confdefs.h.  */
8116int i;
8117_ACEOF
8118if ac_fn_c_try_compile "$LINENO"
8119then :
8120  xorg_cv_cc_flag_unused_command_line_argument=yes
8121else $as_nop
8122  xorg_cv_cc_flag_unused_command_line_argument=no
8123fi
8124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8125fi
8126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8127printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8128	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8129	CFLAGS="$xorg_testset_save_CFLAGS"
8130fi
8131
8132found="no"
8133
8134	if test $found = "no" ; then
8135		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8136			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8137		fi
8138
8139		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8140			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8141		fi
8142
8143		CFLAGS="$CFLAGS -Werror=return-type"
8144
8145		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8146printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8147		cacheid=xorg_cv_cc_flag__Werror_return_type
8148		if eval test \${$cacheid+y}
8149then :
8150  printf %s "(cached) " >&6
8151else $as_nop
8152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153/* end confdefs.h.  */
8154int i;
8155int
8156main (void)
8157{
8158
8159  ;
8160  return 0;
8161}
8162_ACEOF
8163if ac_fn_c_try_link "$LINENO"
8164then :
8165  eval $cacheid=yes
8166else $as_nop
8167  eval $cacheid=no
8168fi
8169rm -f core conftest.err conftest.$ac_objext conftest.beam \
8170    conftest$ac_exeext conftest.$ac_ext
8171fi
8172
8173
8174		CFLAGS="$xorg_testset_save_CFLAGS"
8175
8176		eval supported=\$$cacheid
8177		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8178printf "%s\n" "$supported" >&6; }
8179		if test "$supported" = "yes" ; then
8180			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8181			found="yes"
8182		fi
8183	fi
8184
8185	if test $found = "no" ; then
8186		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8187			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8188		fi
8189
8190		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8191			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8192		fi
8193
8194		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8195
8196		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8197printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8198		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8199		if eval test \${$cacheid+y}
8200then :
8201  printf %s "(cached) " >&6
8202else $as_nop
8203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204/* end confdefs.h.  */
8205int i;
8206int
8207main (void)
8208{
8209
8210  ;
8211  return 0;
8212}
8213_ACEOF
8214if ac_fn_c_try_link "$LINENO"
8215then :
8216  eval $cacheid=yes
8217else $as_nop
8218  eval $cacheid=no
8219fi
8220rm -f core conftest.err conftest.$ac_objext conftest.beam \
8221    conftest$ac_exeext conftest.$ac_ext
8222fi
8223
8224
8225		CFLAGS="$xorg_testset_save_CFLAGS"
8226
8227		eval supported=\$$cacheid
8228		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8229printf "%s\n" "$supported" >&6; }
8230		if test "$supported" = "yes" ; then
8231			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8232			found="yes"
8233		fi
8234	fi
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250xorg_testset_save_CFLAGS="$CFLAGS"
8251
8252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8253	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8254	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8255printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8256if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8257then :
8258  printf %s "(cached) " >&6
8259else $as_nop
8260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8261/* end confdefs.h.  */
8262int i;
8263_ACEOF
8264if ac_fn_c_try_compile "$LINENO"
8265then :
8266  xorg_cv_cc_flag_unknown_warning_option=yes
8267else $as_nop
8268  xorg_cv_cc_flag_unknown_warning_option=no
8269fi
8270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8271fi
8272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8273printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8274	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8275	CFLAGS="$xorg_testset_save_CFLAGS"
8276fi
8277
8278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8279	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8280		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8281	fi
8282	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8283	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8284printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8285if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8286then :
8287  printf %s "(cached) " >&6
8288else $as_nop
8289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290/* end confdefs.h.  */
8291int i;
8292_ACEOF
8293if ac_fn_c_try_compile "$LINENO"
8294then :
8295  xorg_cv_cc_flag_unused_command_line_argument=yes
8296else $as_nop
8297  xorg_cv_cc_flag_unused_command_line_argument=no
8298fi
8299rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8300fi
8301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8302printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8303	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8304	CFLAGS="$xorg_testset_save_CFLAGS"
8305fi
8306
8307found="no"
8308
8309	if test $found = "no" ; then
8310		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8311			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8312		fi
8313
8314		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8315			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8316		fi
8317
8318		CFLAGS="$CFLAGS -Werror=trigraphs"
8319
8320		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8321printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8322		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8323		if eval test \${$cacheid+y}
8324then :
8325  printf %s "(cached) " >&6
8326else $as_nop
8327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328/* end confdefs.h.  */
8329int i;
8330int
8331main (void)
8332{
8333
8334  ;
8335  return 0;
8336}
8337_ACEOF
8338if ac_fn_c_try_link "$LINENO"
8339then :
8340  eval $cacheid=yes
8341else $as_nop
8342  eval $cacheid=no
8343fi
8344rm -f core conftest.err conftest.$ac_objext conftest.beam \
8345    conftest$ac_exeext conftest.$ac_ext
8346fi
8347
8348
8349		CFLAGS="$xorg_testset_save_CFLAGS"
8350
8351		eval supported=\$$cacheid
8352		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8353printf "%s\n" "$supported" >&6; }
8354		if test "$supported" = "yes" ; then
8355			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8356			found="yes"
8357		fi
8358	fi
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374xorg_testset_save_CFLAGS="$CFLAGS"
8375
8376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8377	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8378	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8379printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8380if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8381then :
8382  printf %s "(cached) " >&6
8383else $as_nop
8384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385/* end confdefs.h.  */
8386int i;
8387_ACEOF
8388if ac_fn_c_try_compile "$LINENO"
8389then :
8390  xorg_cv_cc_flag_unknown_warning_option=yes
8391else $as_nop
8392  xorg_cv_cc_flag_unknown_warning_option=no
8393fi
8394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8395fi
8396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8397printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8398	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8399	CFLAGS="$xorg_testset_save_CFLAGS"
8400fi
8401
8402if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8403	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8404		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8405	fi
8406	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8407	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8408printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8409if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8410then :
8411  printf %s "(cached) " >&6
8412else $as_nop
8413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414/* end confdefs.h.  */
8415int i;
8416_ACEOF
8417if ac_fn_c_try_compile "$LINENO"
8418then :
8419  xorg_cv_cc_flag_unused_command_line_argument=yes
8420else $as_nop
8421  xorg_cv_cc_flag_unused_command_line_argument=no
8422fi
8423rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8424fi
8425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8426printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8427	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8428	CFLAGS="$xorg_testset_save_CFLAGS"
8429fi
8430
8431found="no"
8432
8433	if test $found = "no" ; then
8434		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8435			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8436		fi
8437
8438		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8439			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8440		fi
8441
8442		CFLAGS="$CFLAGS -Werror=array-bounds"
8443
8444		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8445printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8446		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8447		if eval test \${$cacheid+y}
8448then :
8449  printf %s "(cached) " >&6
8450else $as_nop
8451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452/* end confdefs.h.  */
8453int i;
8454int
8455main (void)
8456{
8457
8458  ;
8459  return 0;
8460}
8461_ACEOF
8462if ac_fn_c_try_link "$LINENO"
8463then :
8464  eval $cacheid=yes
8465else $as_nop
8466  eval $cacheid=no
8467fi
8468rm -f core conftest.err conftest.$ac_objext conftest.beam \
8469    conftest$ac_exeext conftest.$ac_ext
8470fi
8471
8472
8473		CFLAGS="$xorg_testset_save_CFLAGS"
8474
8475		eval supported=\$$cacheid
8476		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8477printf "%s\n" "$supported" >&6; }
8478		if test "$supported" = "yes" ; then
8479			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8480			found="yes"
8481		fi
8482	fi
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498xorg_testset_save_CFLAGS="$CFLAGS"
8499
8500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8501	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8502	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8503printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8504if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8505then :
8506  printf %s "(cached) " >&6
8507else $as_nop
8508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509/* end confdefs.h.  */
8510int i;
8511_ACEOF
8512if ac_fn_c_try_compile "$LINENO"
8513then :
8514  xorg_cv_cc_flag_unknown_warning_option=yes
8515else $as_nop
8516  xorg_cv_cc_flag_unknown_warning_option=no
8517fi
8518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8519fi
8520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8521printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8522	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8523	CFLAGS="$xorg_testset_save_CFLAGS"
8524fi
8525
8526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8527	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8528		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8529	fi
8530	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8531	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8532printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8533if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8534then :
8535  printf %s "(cached) " >&6
8536else $as_nop
8537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538/* end confdefs.h.  */
8539int i;
8540_ACEOF
8541if ac_fn_c_try_compile "$LINENO"
8542then :
8543  xorg_cv_cc_flag_unused_command_line_argument=yes
8544else $as_nop
8545  xorg_cv_cc_flag_unused_command_line_argument=no
8546fi
8547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8548fi
8549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8550printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8551	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8552	CFLAGS="$xorg_testset_save_CFLAGS"
8553fi
8554
8555found="no"
8556
8557	if test $found = "no" ; then
8558		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8559			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8560		fi
8561
8562		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8563			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8564		fi
8565
8566		CFLAGS="$CFLAGS -Werror=write-strings"
8567
8568		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8569printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8570		cacheid=xorg_cv_cc_flag__Werror_write_strings
8571		if eval test \${$cacheid+y}
8572then :
8573  printf %s "(cached) " >&6
8574else $as_nop
8575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576/* end confdefs.h.  */
8577int i;
8578int
8579main (void)
8580{
8581
8582  ;
8583  return 0;
8584}
8585_ACEOF
8586if ac_fn_c_try_link "$LINENO"
8587then :
8588  eval $cacheid=yes
8589else $as_nop
8590  eval $cacheid=no
8591fi
8592rm -f core conftest.err conftest.$ac_objext conftest.beam \
8593    conftest$ac_exeext conftest.$ac_ext
8594fi
8595
8596
8597		CFLAGS="$xorg_testset_save_CFLAGS"
8598
8599		eval supported=\$$cacheid
8600		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8601printf "%s\n" "$supported" >&6; }
8602		if test "$supported" = "yes" ; then
8603			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8604			found="yes"
8605		fi
8606	fi
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622xorg_testset_save_CFLAGS="$CFLAGS"
8623
8624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8625	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8626	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8627printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8628if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8629then :
8630  printf %s "(cached) " >&6
8631else $as_nop
8632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633/* end confdefs.h.  */
8634int i;
8635_ACEOF
8636if ac_fn_c_try_compile "$LINENO"
8637then :
8638  xorg_cv_cc_flag_unknown_warning_option=yes
8639else $as_nop
8640  xorg_cv_cc_flag_unknown_warning_option=no
8641fi
8642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8643fi
8644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8645printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8646	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8647	CFLAGS="$xorg_testset_save_CFLAGS"
8648fi
8649
8650if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8651	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8652		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8653	fi
8654	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8655	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8656printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8657if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8658then :
8659  printf %s "(cached) " >&6
8660else $as_nop
8661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662/* end confdefs.h.  */
8663int i;
8664_ACEOF
8665if ac_fn_c_try_compile "$LINENO"
8666then :
8667  xorg_cv_cc_flag_unused_command_line_argument=yes
8668else $as_nop
8669  xorg_cv_cc_flag_unused_command_line_argument=no
8670fi
8671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8672fi
8673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8674printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8675	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8676	CFLAGS="$xorg_testset_save_CFLAGS"
8677fi
8678
8679found="no"
8680
8681	if test $found = "no" ; then
8682		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8683			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8684		fi
8685
8686		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8687			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8688		fi
8689
8690		CFLAGS="$CFLAGS -Werror=address"
8691
8692		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8693printf %s "checking if $CC supports -Werror=address... " >&6; }
8694		cacheid=xorg_cv_cc_flag__Werror_address
8695		if eval test \${$cacheid+y}
8696then :
8697  printf %s "(cached) " >&6
8698else $as_nop
8699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700/* end confdefs.h.  */
8701int i;
8702int
8703main (void)
8704{
8705
8706  ;
8707  return 0;
8708}
8709_ACEOF
8710if ac_fn_c_try_link "$LINENO"
8711then :
8712  eval $cacheid=yes
8713else $as_nop
8714  eval $cacheid=no
8715fi
8716rm -f core conftest.err conftest.$ac_objext conftest.beam \
8717    conftest$ac_exeext conftest.$ac_ext
8718fi
8719
8720
8721		CFLAGS="$xorg_testset_save_CFLAGS"
8722
8723		eval supported=\$$cacheid
8724		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8725printf "%s\n" "$supported" >&6; }
8726		if test "$supported" = "yes" ; then
8727			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8728			found="yes"
8729		fi
8730	fi
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746xorg_testset_save_CFLAGS="$CFLAGS"
8747
8748if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8749	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8750	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8751printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8752if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8753then :
8754  printf %s "(cached) " >&6
8755else $as_nop
8756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757/* end confdefs.h.  */
8758int i;
8759_ACEOF
8760if ac_fn_c_try_compile "$LINENO"
8761then :
8762  xorg_cv_cc_flag_unknown_warning_option=yes
8763else $as_nop
8764  xorg_cv_cc_flag_unknown_warning_option=no
8765fi
8766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8767fi
8768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8769printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8770	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8771	CFLAGS="$xorg_testset_save_CFLAGS"
8772fi
8773
8774if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8775	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8776		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8777	fi
8778	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8779	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8780printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8781if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8782then :
8783  printf %s "(cached) " >&6
8784else $as_nop
8785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786/* end confdefs.h.  */
8787int i;
8788_ACEOF
8789if ac_fn_c_try_compile "$LINENO"
8790then :
8791  xorg_cv_cc_flag_unused_command_line_argument=yes
8792else $as_nop
8793  xorg_cv_cc_flag_unused_command_line_argument=no
8794fi
8795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8796fi
8797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8798printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8799	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8800	CFLAGS="$xorg_testset_save_CFLAGS"
8801fi
8802
8803found="no"
8804
8805	if test $found = "no" ; then
8806		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8807			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8808		fi
8809
8810		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8811			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8812		fi
8813
8814		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8815
8816		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8817printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8818		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8819		if eval test \${$cacheid+y}
8820then :
8821  printf %s "(cached) " >&6
8822else $as_nop
8823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824/* end confdefs.h.  */
8825int i;
8826int
8827main (void)
8828{
8829
8830  ;
8831  return 0;
8832}
8833_ACEOF
8834if ac_fn_c_try_link "$LINENO"
8835then :
8836  eval $cacheid=yes
8837else $as_nop
8838  eval $cacheid=no
8839fi
8840rm -f core conftest.err conftest.$ac_objext conftest.beam \
8841    conftest$ac_exeext conftest.$ac_ext
8842fi
8843
8844
8845		CFLAGS="$xorg_testset_save_CFLAGS"
8846
8847		eval supported=\$$cacheid
8848		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8849printf "%s\n" "$supported" >&6; }
8850		if test "$supported" = "yes" ; then
8851			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8852			found="yes"
8853		fi
8854	fi
8855
8856	if test $found = "no" ; then
8857		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8858			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8859		fi
8860
8861		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8862			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8863		fi
8864
8865		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8866
8867		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8868printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8869		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8870		if eval test \${$cacheid+y}
8871then :
8872  printf %s "(cached) " >&6
8873else $as_nop
8874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875/* end confdefs.h.  */
8876int i;
8877int
8878main (void)
8879{
8880
8881  ;
8882  return 0;
8883}
8884_ACEOF
8885if ac_fn_c_try_link "$LINENO"
8886then :
8887  eval $cacheid=yes
8888else $as_nop
8889  eval $cacheid=no
8890fi
8891rm -f core conftest.err conftest.$ac_objext conftest.beam \
8892    conftest$ac_exeext conftest.$ac_ext
8893fi
8894
8895
8896		CFLAGS="$xorg_testset_save_CFLAGS"
8897
8898		eval supported=\$$cacheid
8899		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8900printf "%s\n" "$supported" >&6; }
8901		if test "$supported" = "yes" ; then
8902			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8903			found="yes"
8904		fi
8905	fi
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921xorg_testset_save_CFLAGS="$CFLAGS"
8922
8923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8924	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8925	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8926printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8927if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8928then :
8929  printf %s "(cached) " >&6
8930else $as_nop
8931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932/* end confdefs.h.  */
8933int i;
8934_ACEOF
8935if ac_fn_c_try_compile "$LINENO"
8936then :
8937  xorg_cv_cc_flag_unknown_warning_option=yes
8938else $as_nop
8939  xorg_cv_cc_flag_unknown_warning_option=no
8940fi
8941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8942fi
8943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8944printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8945	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8946	CFLAGS="$xorg_testset_save_CFLAGS"
8947fi
8948
8949if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8950	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8951		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8952	fi
8953	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8954	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8955printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8956if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8957then :
8958  printf %s "(cached) " >&6
8959else $as_nop
8960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961/* end confdefs.h.  */
8962int i;
8963_ACEOF
8964if ac_fn_c_try_compile "$LINENO"
8965then :
8966  xorg_cv_cc_flag_unused_command_line_argument=yes
8967else $as_nop
8968  xorg_cv_cc_flag_unused_command_line_argument=no
8969fi
8970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8971fi
8972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8973printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8974	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8975	CFLAGS="$xorg_testset_save_CFLAGS"
8976fi
8977
8978found="no"
8979
8980	if test $found = "no" ; then
8981		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8982			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8983		fi
8984
8985		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8986			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8987		fi
8988
8989		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8990
8991		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8992printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8993		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8994		if eval test \${$cacheid+y}
8995then :
8996  printf %s "(cached) " >&6
8997else $as_nop
8998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999/* end confdefs.h.  */
9000int i;
9001int
9002main (void)
9003{
9004
9005  ;
9006  return 0;
9007}
9008_ACEOF
9009if ac_fn_c_try_link "$LINENO"
9010then :
9011  eval $cacheid=yes
9012else $as_nop
9013  eval $cacheid=no
9014fi
9015rm -f core conftest.err conftest.$ac_objext conftest.beam \
9016    conftest$ac_exeext conftest.$ac_ext
9017fi
9018
9019
9020		CFLAGS="$xorg_testset_save_CFLAGS"
9021
9022		eval supported=\$$cacheid
9023		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9024printf "%s\n" "$supported" >&6; }
9025		if test "$supported" = "yes" ; then
9026			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9027			found="yes"
9028		fi
9029	fi
9030
9031 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9032else
9033{ 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
9034printf "%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;}
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048xorg_testset_save_CFLAGS="$CFLAGS"
9049
9050if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9051	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9052	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9053printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9054if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9055then :
9056  printf %s "(cached) " >&6
9057else $as_nop
9058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059/* end confdefs.h.  */
9060int i;
9061_ACEOF
9062if ac_fn_c_try_compile "$LINENO"
9063then :
9064  xorg_cv_cc_flag_unknown_warning_option=yes
9065else $as_nop
9066  xorg_cv_cc_flag_unknown_warning_option=no
9067fi
9068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9069fi
9070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9071printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9072	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9073	CFLAGS="$xorg_testset_save_CFLAGS"
9074fi
9075
9076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9077	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9078		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9079	fi
9080	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9081	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9082printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9083if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9084then :
9085  printf %s "(cached) " >&6
9086else $as_nop
9087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088/* end confdefs.h.  */
9089int i;
9090_ACEOF
9091if ac_fn_c_try_compile "$LINENO"
9092then :
9093  xorg_cv_cc_flag_unused_command_line_argument=yes
9094else $as_nop
9095  xorg_cv_cc_flag_unused_command_line_argument=no
9096fi
9097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9098fi
9099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9100printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9101	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9102	CFLAGS="$xorg_testset_save_CFLAGS"
9103fi
9104
9105found="no"
9106
9107	if test $found = "no" ; then
9108		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9109			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9110		fi
9111
9112		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9113			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9114		fi
9115
9116		CFLAGS="$CFLAGS -Wimplicit"
9117
9118		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9119printf %s "checking if $CC supports -Wimplicit... " >&6; }
9120		cacheid=xorg_cv_cc_flag__Wimplicit
9121		if eval test \${$cacheid+y}
9122then :
9123  printf %s "(cached) " >&6
9124else $as_nop
9125  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 $as_nop
9140  eval $cacheid=no
9141fi
9142rm -f core conftest.err conftest.$ac_objext conftest.beam \
9143    conftest$ac_exeext conftest.$ac_ext
9144fi
9145
9146
9147		CFLAGS="$xorg_testset_save_CFLAGS"
9148
9149		eval supported=\$$cacheid
9150		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9151printf "%s\n" "$supported" >&6; }
9152		if test "$supported" = "yes" ; then
9153			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9154			found="yes"
9155		fi
9156	fi
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172xorg_testset_save_CFLAGS="$CFLAGS"
9173
9174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9175	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9176	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9177printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9178if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9179then :
9180  printf %s "(cached) " >&6
9181else $as_nop
9182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183/* end confdefs.h.  */
9184int i;
9185_ACEOF
9186if ac_fn_c_try_compile "$LINENO"
9187then :
9188  xorg_cv_cc_flag_unknown_warning_option=yes
9189else $as_nop
9190  xorg_cv_cc_flag_unknown_warning_option=no
9191fi
9192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9193fi
9194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9195printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9196	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9197	CFLAGS="$xorg_testset_save_CFLAGS"
9198fi
9199
9200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9201	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9202		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9203	fi
9204	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9205	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9206printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9207if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9208then :
9209  printf %s "(cached) " >&6
9210else $as_nop
9211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212/* end confdefs.h.  */
9213int i;
9214_ACEOF
9215if ac_fn_c_try_compile "$LINENO"
9216then :
9217  xorg_cv_cc_flag_unused_command_line_argument=yes
9218else $as_nop
9219  xorg_cv_cc_flag_unused_command_line_argument=no
9220fi
9221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9222fi
9223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9224printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9225	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9226	CFLAGS="$xorg_testset_save_CFLAGS"
9227fi
9228
9229found="no"
9230
9231	if test $found = "no" ; then
9232		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9233			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9234		fi
9235
9236		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9237			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9238		fi
9239
9240		CFLAGS="$CFLAGS -Wnonnull"
9241
9242		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9243printf %s "checking if $CC supports -Wnonnull... " >&6; }
9244		cacheid=xorg_cv_cc_flag__Wnonnull
9245		if eval test \${$cacheid+y}
9246then :
9247  printf %s "(cached) " >&6
9248else $as_nop
9249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250/* end confdefs.h.  */
9251int i;
9252int
9253main (void)
9254{
9255
9256  ;
9257  return 0;
9258}
9259_ACEOF
9260if ac_fn_c_try_link "$LINENO"
9261then :
9262  eval $cacheid=yes
9263else $as_nop
9264  eval $cacheid=no
9265fi
9266rm -f core conftest.err conftest.$ac_objext conftest.beam \
9267    conftest$ac_exeext conftest.$ac_ext
9268fi
9269
9270
9271		CFLAGS="$xorg_testset_save_CFLAGS"
9272
9273		eval supported=\$$cacheid
9274		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9275printf "%s\n" "$supported" >&6; }
9276		if test "$supported" = "yes" ; then
9277			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9278			found="yes"
9279		fi
9280	fi
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296xorg_testset_save_CFLAGS="$CFLAGS"
9297
9298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9299	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9300	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9301printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9302if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9303then :
9304  printf %s "(cached) " >&6
9305else $as_nop
9306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307/* end confdefs.h.  */
9308int i;
9309_ACEOF
9310if ac_fn_c_try_compile "$LINENO"
9311then :
9312  xorg_cv_cc_flag_unknown_warning_option=yes
9313else $as_nop
9314  xorg_cv_cc_flag_unknown_warning_option=no
9315fi
9316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9317fi
9318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9319printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9320	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9321	CFLAGS="$xorg_testset_save_CFLAGS"
9322fi
9323
9324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9325	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9326		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9327	fi
9328	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9329	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9330printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9331if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9332then :
9333  printf %s "(cached) " >&6
9334else $as_nop
9335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336/* end confdefs.h.  */
9337int i;
9338_ACEOF
9339if ac_fn_c_try_compile "$LINENO"
9340then :
9341  xorg_cv_cc_flag_unused_command_line_argument=yes
9342else $as_nop
9343  xorg_cv_cc_flag_unused_command_line_argument=no
9344fi
9345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9346fi
9347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9348printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9349	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9350	CFLAGS="$xorg_testset_save_CFLAGS"
9351fi
9352
9353found="no"
9354
9355	if test $found = "no" ; then
9356		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9357			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9358		fi
9359
9360		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9361			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9362		fi
9363
9364		CFLAGS="$CFLAGS -Winit-self"
9365
9366		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9367printf %s "checking if $CC supports -Winit-self... " >&6; }
9368		cacheid=xorg_cv_cc_flag__Winit_self
9369		if eval test \${$cacheid+y}
9370then :
9371  printf %s "(cached) " >&6
9372else $as_nop
9373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374/* end confdefs.h.  */
9375int i;
9376int
9377main (void)
9378{
9379
9380  ;
9381  return 0;
9382}
9383_ACEOF
9384if ac_fn_c_try_link "$LINENO"
9385then :
9386  eval $cacheid=yes
9387else $as_nop
9388  eval $cacheid=no
9389fi
9390rm -f core conftest.err conftest.$ac_objext conftest.beam \
9391    conftest$ac_exeext conftest.$ac_ext
9392fi
9393
9394
9395		CFLAGS="$xorg_testset_save_CFLAGS"
9396
9397		eval supported=\$$cacheid
9398		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9399printf "%s\n" "$supported" >&6; }
9400		if test "$supported" = "yes" ; then
9401			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9402			found="yes"
9403		fi
9404	fi
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420xorg_testset_save_CFLAGS="$CFLAGS"
9421
9422if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9423	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9424	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9425printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9426if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9427then :
9428  printf %s "(cached) " >&6
9429else $as_nop
9430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431/* end confdefs.h.  */
9432int i;
9433_ACEOF
9434if ac_fn_c_try_compile "$LINENO"
9435then :
9436  xorg_cv_cc_flag_unknown_warning_option=yes
9437else $as_nop
9438  xorg_cv_cc_flag_unknown_warning_option=no
9439fi
9440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9441fi
9442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9443printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9444	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9445	CFLAGS="$xorg_testset_save_CFLAGS"
9446fi
9447
9448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9449	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9450		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9451	fi
9452	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9453	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9454printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9455if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9456then :
9457  printf %s "(cached) " >&6
9458else $as_nop
9459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460/* end confdefs.h.  */
9461int i;
9462_ACEOF
9463if ac_fn_c_try_compile "$LINENO"
9464then :
9465  xorg_cv_cc_flag_unused_command_line_argument=yes
9466else $as_nop
9467  xorg_cv_cc_flag_unused_command_line_argument=no
9468fi
9469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9470fi
9471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9472printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9473	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9474	CFLAGS="$xorg_testset_save_CFLAGS"
9475fi
9476
9477found="no"
9478
9479	if test $found = "no" ; then
9480		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9481			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9482		fi
9483
9484		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9485			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9486		fi
9487
9488		CFLAGS="$CFLAGS -Wmain"
9489
9490		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9491printf %s "checking if $CC supports -Wmain... " >&6; }
9492		cacheid=xorg_cv_cc_flag__Wmain
9493		if eval test \${$cacheid+y}
9494then :
9495  printf %s "(cached) " >&6
9496else $as_nop
9497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498/* end confdefs.h.  */
9499int i;
9500int
9501main (void)
9502{
9503
9504  ;
9505  return 0;
9506}
9507_ACEOF
9508if ac_fn_c_try_link "$LINENO"
9509then :
9510  eval $cacheid=yes
9511else $as_nop
9512  eval $cacheid=no
9513fi
9514rm -f core conftest.err conftest.$ac_objext conftest.beam \
9515    conftest$ac_exeext conftest.$ac_ext
9516fi
9517
9518
9519		CFLAGS="$xorg_testset_save_CFLAGS"
9520
9521		eval supported=\$$cacheid
9522		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9523printf "%s\n" "$supported" >&6; }
9524		if test "$supported" = "yes" ; then
9525			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9526			found="yes"
9527		fi
9528	fi
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544xorg_testset_save_CFLAGS="$CFLAGS"
9545
9546if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9547	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9548	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9549printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9550if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9551then :
9552  printf %s "(cached) " >&6
9553else $as_nop
9554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555/* end confdefs.h.  */
9556int i;
9557_ACEOF
9558if ac_fn_c_try_compile "$LINENO"
9559then :
9560  xorg_cv_cc_flag_unknown_warning_option=yes
9561else $as_nop
9562  xorg_cv_cc_flag_unknown_warning_option=no
9563fi
9564rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9565fi
9566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9567printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9568	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9569	CFLAGS="$xorg_testset_save_CFLAGS"
9570fi
9571
9572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9573	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9574		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9575	fi
9576	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9577	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9578printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9579if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9580then :
9581  printf %s "(cached) " >&6
9582else $as_nop
9583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584/* end confdefs.h.  */
9585int i;
9586_ACEOF
9587if ac_fn_c_try_compile "$LINENO"
9588then :
9589  xorg_cv_cc_flag_unused_command_line_argument=yes
9590else $as_nop
9591  xorg_cv_cc_flag_unused_command_line_argument=no
9592fi
9593rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9594fi
9595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9596printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9597	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9598	CFLAGS="$xorg_testset_save_CFLAGS"
9599fi
9600
9601found="no"
9602
9603	if test $found = "no" ; then
9604		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9605			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9606		fi
9607
9608		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9609			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9610		fi
9611
9612		CFLAGS="$CFLAGS -Wmissing-braces"
9613
9614		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9615printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9616		cacheid=xorg_cv_cc_flag__Wmissing_braces
9617		if eval test \${$cacheid+y}
9618then :
9619  printf %s "(cached) " >&6
9620else $as_nop
9621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622/* end confdefs.h.  */
9623int i;
9624int
9625main (void)
9626{
9627
9628  ;
9629  return 0;
9630}
9631_ACEOF
9632if ac_fn_c_try_link "$LINENO"
9633then :
9634  eval $cacheid=yes
9635else $as_nop
9636  eval $cacheid=no
9637fi
9638rm -f core conftest.err conftest.$ac_objext conftest.beam \
9639    conftest$ac_exeext conftest.$ac_ext
9640fi
9641
9642
9643		CFLAGS="$xorg_testset_save_CFLAGS"
9644
9645		eval supported=\$$cacheid
9646		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9647printf "%s\n" "$supported" >&6; }
9648		if test "$supported" = "yes" ; then
9649			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9650			found="yes"
9651		fi
9652	fi
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668xorg_testset_save_CFLAGS="$CFLAGS"
9669
9670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9671	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9672	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9673printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9674if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9675then :
9676  printf %s "(cached) " >&6
9677else $as_nop
9678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679/* end confdefs.h.  */
9680int i;
9681_ACEOF
9682if ac_fn_c_try_compile "$LINENO"
9683then :
9684  xorg_cv_cc_flag_unknown_warning_option=yes
9685else $as_nop
9686  xorg_cv_cc_flag_unknown_warning_option=no
9687fi
9688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9689fi
9690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9691printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9692	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9693	CFLAGS="$xorg_testset_save_CFLAGS"
9694fi
9695
9696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9697	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9698		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9699	fi
9700	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9701	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9702printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9703if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9704then :
9705  printf %s "(cached) " >&6
9706else $as_nop
9707  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_unused_command_line_argument=yes
9714else $as_nop
9715  xorg_cv_cc_flag_unused_command_line_argument=no
9716fi
9717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9718fi
9719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9720printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9721	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9722	CFLAGS="$xorg_testset_save_CFLAGS"
9723fi
9724
9725found="no"
9726
9727	if test $found = "no" ; then
9728		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9729			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9730		fi
9731
9732		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9733			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9734		fi
9735
9736		CFLAGS="$CFLAGS -Wsequence-point"
9737
9738		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9739printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9740		cacheid=xorg_cv_cc_flag__Wsequence_point
9741		if eval test \${$cacheid+y}
9742then :
9743  printf %s "(cached) " >&6
9744else $as_nop
9745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9746/* end confdefs.h.  */
9747int i;
9748int
9749main (void)
9750{
9751
9752  ;
9753  return 0;
9754}
9755_ACEOF
9756if ac_fn_c_try_link "$LINENO"
9757then :
9758  eval $cacheid=yes
9759else $as_nop
9760  eval $cacheid=no
9761fi
9762rm -f core conftest.err conftest.$ac_objext conftest.beam \
9763    conftest$ac_exeext conftest.$ac_ext
9764fi
9765
9766
9767		CFLAGS="$xorg_testset_save_CFLAGS"
9768
9769		eval supported=\$$cacheid
9770		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9771printf "%s\n" "$supported" >&6; }
9772		if test "$supported" = "yes" ; then
9773			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9774			found="yes"
9775		fi
9776	fi
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792xorg_testset_save_CFLAGS="$CFLAGS"
9793
9794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9795	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9796	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9797printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9798if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9799then :
9800  printf %s "(cached) " >&6
9801else $as_nop
9802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803/* end confdefs.h.  */
9804int i;
9805_ACEOF
9806if ac_fn_c_try_compile "$LINENO"
9807then :
9808  xorg_cv_cc_flag_unknown_warning_option=yes
9809else $as_nop
9810  xorg_cv_cc_flag_unknown_warning_option=no
9811fi
9812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9813fi
9814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9815printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9816	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9817	CFLAGS="$xorg_testset_save_CFLAGS"
9818fi
9819
9820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9821	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9822		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9823	fi
9824	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9825	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9826printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9827if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9828then :
9829  printf %s "(cached) " >&6
9830else $as_nop
9831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832/* end confdefs.h.  */
9833int i;
9834_ACEOF
9835if ac_fn_c_try_compile "$LINENO"
9836then :
9837  xorg_cv_cc_flag_unused_command_line_argument=yes
9838else $as_nop
9839  xorg_cv_cc_flag_unused_command_line_argument=no
9840fi
9841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9842fi
9843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9844printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9845	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9846	CFLAGS="$xorg_testset_save_CFLAGS"
9847fi
9848
9849found="no"
9850
9851	if test $found = "no" ; then
9852		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9853			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9854		fi
9855
9856		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9857			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9858		fi
9859
9860		CFLAGS="$CFLAGS -Wreturn-type"
9861
9862		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9863printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9864		cacheid=xorg_cv_cc_flag__Wreturn_type
9865		if eval test \${$cacheid+y}
9866then :
9867  printf %s "(cached) " >&6
9868else $as_nop
9869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870/* end confdefs.h.  */
9871int i;
9872int
9873main (void)
9874{
9875
9876  ;
9877  return 0;
9878}
9879_ACEOF
9880if ac_fn_c_try_link "$LINENO"
9881then :
9882  eval $cacheid=yes
9883else $as_nop
9884  eval $cacheid=no
9885fi
9886rm -f core conftest.err conftest.$ac_objext conftest.beam \
9887    conftest$ac_exeext conftest.$ac_ext
9888fi
9889
9890
9891		CFLAGS="$xorg_testset_save_CFLAGS"
9892
9893		eval supported=\$$cacheid
9894		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9895printf "%s\n" "$supported" >&6; }
9896		if test "$supported" = "yes" ; then
9897			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9898			found="yes"
9899		fi
9900	fi
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916xorg_testset_save_CFLAGS="$CFLAGS"
9917
9918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9919	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9920	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9921printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9922if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9923then :
9924  printf %s "(cached) " >&6
9925else $as_nop
9926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927/* end confdefs.h.  */
9928int i;
9929_ACEOF
9930if ac_fn_c_try_compile "$LINENO"
9931then :
9932  xorg_cv_cc_flag_unknown_warning_option=yes
9933else $as_nop
9934  xorg_cv_cc_flag_unknown_warning_option=no
9935fi
9936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9937fi
9938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9939printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9940	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9941	CFLAGS="$xorg_testset_save_CFLAGS"
9942fi
9943
9944if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9945	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9946		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9947	fi
9948	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9949	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9950printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9951if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9952then :
9953  printf %s "(cached) " >&6
9954else $as_nop
9955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956/* end confdefs.h.  */
9957int i;
9958_ACEOF
9959if ac_fn_c_try_compile "$LINENO"
9960then :
9961  xorg_cv_cc_flag_unused_command_line_argument=yes
9962else $as_nop
9963  xorg_cv_cc_flag_unused_command_line_argument=no
9964fi
9965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9966fi
9967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9968printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9969	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9970	CFLAGS="$xorg_testset_save_CFLAGS"
9971fi
9972
9973found="no"
9974
9975	if test $found = "no" ; then
9976		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9977			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9978		fi
9979
9980		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9981			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9982		fi
9983
9984		CFLAGS="$CFLAGS -Wtrigraphs"
9985
9986		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9987printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9988		cacheid=xorg_cv_cc_flag__Wtrigraphs
9989		if eval test \${$cacheid+y}
9990then :
9991  printf %s "(cached) " >&6
9992else $as_nop
9993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994/* end confdefs.h.  */
9995int i;
9996int
9997main (void)
9998{
9999
10000  ;
10001  return 0;
10002}
10003_ACEOF
10004if ac_fn_c_try_link "$LINENO"
10005then :
10006  eval $cacheid=yes
10007else $as_nop
10008  eval $cacheid=no
10009fi
10010rm -f core conftest.err conftest.$ac_objext conftest.beam \
10011    conftest$ac_exeext conftest.$ac_ext
10012fi
10013
10014
10015		CFLAGS="$xorg_testset_save_CFLAGS"
10016
10017		eval supported=\$$cacheid
10018		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10019printf "%s\n" "$supported" >&6; }
10020		if test "$supported" = "yes" ; then
10021			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10022			found="yes"
10023		fi
10024	fi
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040xorg_testset_save_CFLAGS="$CFLAGS"
10041
10042if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10043	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10044	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10045printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10046if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10047then :
10048  printf %s "(cached) " >&6
10049else $as_nop
10050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051/* end confdefs.h.  */
10052int i;
10053_ACEOF
10054if ac_fn_c_try_compile "$LINENO"
10055then :
10056  xorg_cv_cc_flag_unknown_warning_option=yes
10057else $as_nop
10058  xorg_cv_cc_flag_unknown_warning_option=no
10059fi
10060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10061fi
10062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10063printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10064	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10065	CFLAGS="$xorg_testset_save_CFLAGS"
10066fi
10067
10068if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10069	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10070		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10071	fi
10072	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10073	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10074printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10075if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10076then :
10077  printf %s "(cached) " >&6
10078else $as_nop
10079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080/* end confdefs.h.  */
10081int i;
10082_ACEOF
10083if ac_fn_c_try_compile "$LINENO"
10084then :
10085  xorg_cv_cc_flag_unused_command_line_argument=yes
10086else $as_nop
10087  xorg_cv_cc_flag_unused_command_line_argument=no
10088fi
10089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10090fi
10091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10092printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10093	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10094	CFLAGS="$xorg_testset_save_CFLAGS"
10095fi
10096
10097found="no"
10098
10099	if test $found = "no" ; then
10100		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10101			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10102		fi
10103
10104		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10105			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10106		fi
10107
10108		CFLAGS="$CFLAGS -Warray-bounds"
10109
10110		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10111printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10112		cacheid=xorg_cv_cc_flag__Warray_bounds
10113		if eval test \${$cacheid+y}
10114then :
10115  printf %s "(cached) " >&6
10116else $as_nop
10117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118/* end confdefs.h.  */
10119int i;
10120int
10121main (void)
10122{
10123
10124  ;
10125  return 0;
10126}
10127_ACEOF
10128if ac_fn_c_try_link "$LINENO"
10129then :
10130  eval $cacheid=yes
10131else $as_nop
10132  eval $cacheid=no
10133fi
10134rm -f core conftest.err conftest.$ac_objext conftest.beam \
10135    conftest$ac_exeext conftest.$ac_ext
10136fi
10137
10138
10139		CFLAGS="$xorg_testset_save_CFLAGS"
10140
10141		eval supported=\$$cacheid
10142		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10143printf "%s\n" "$supported" >&6; }
10144		if test "$supported" = "yes" ; then
10145			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10146			found="yes"
10147		fi
10148	fi
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164xorg_testset_save_CFLAGS="$CFLAGS"
10165
10166if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10167	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10168	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10169printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10170if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10171then :
10172  printf %s "(cached) " >&6
10173else $as_nop
10174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175/* end confdefs.h.  */
10176int i;
10177_ACEOF
10178if ac_fn_c_try_compile "$LINENO"
10179then :
10180  xorg_cv_cc_flag_unknown_warning_option=yes
10181else $as_nop
10182  xorg_cv_cc_flag_unknown_warning_option=no
10183fi
10184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10185fi
10186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10187printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10188	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10189	CFLAGS="$xorg_testset_save_CFLAGS"
10190fi
10191
10192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10193	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10194		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10195	fi
10196	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10197	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10198printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10199if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10200then :
10201  printf %s "(cached) " >&6
10202else $as_nop
10203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204/* end confdefs.h.  */
10205int i;
10206_ACEOF
10207if ac_fn_c_try_compile "$LINENO"
10208then :
10209  xorg_cv_cc_flag_unused_command_line_argument=yes
10210else $as_nop
10211  xorg_cv_cc_flag_unused_command_line_argument=no
10212fi
10213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10214fi
10215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10216printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10217	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10218	CFLAGS="$xorg_testset_save_CFLAGS"
10219fi
10220
10221found="no"
10222
10223	if test $found = "no" ; then
10224		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10225			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10226		fi
10227
10228		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10229			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10230		fi
10231
10232		CFLAGS="$CFLAGS -Wwrite-strings"
10233
10234		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10235printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10236		cacheid=xorg_cv_cc_flag__Wwrite_strings
10237		if eval test \${$cacheid+y}
10238then :
10239  printf %s "(cached) " >&6
10240else $as_nop
10241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242/* end confdefs.h.  */
10243int i;
10244int
10245main (void)
10246{
10247
10248  ;
10249  return 0;
10250}
10251_ACEOF
10252if ac_fn_c_try_link "$LINENO"
10253then :
10254  eval $cacheid=yes
10255else $as_nop
10256  eval $cacheid=no
10257fi
10258rm -f core conftest.err conftest.$ac_objext conftest.beam \
10259    conftest$ac_exeext conftest.$ac_ext
10260fi
10261
10262
10263		CFLAGS="$xorg_testset_save_CFLAGS"
10264
10265		eval supported=\$$cacheid
10266		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10267printf "%s\n" "$supported" >&6; }
10268		if test "$supported" = "yes" ; then
10269			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10270			found="yes"
10271		fi
10272	fi
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288xorg_testset_save_CFLAGS="$CFLAGS"
10289
10290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10291	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10292	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10293printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10294if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10295then :
10296  printf %s "(cached) " >&6
10297else $as_nop
10298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10299/* end confdefs.h.  */
10300int i;
10301_ACEOF
10302if ac_fn_c_try_compile "$LINENO"
10303then :
10304  xorg_cv_cc_flag_unknown_warning_option=yes
10305else $as_nop
10306  xorg_cv_cc_flag_unknown_warning_option=no
10307fi
10308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10309fi
10310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10311printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10312	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10313	CFLAGS="$xorg_testset_save_CFLAGS"
10314fi
10315
10316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10317	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10318		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10319	fi
10320	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10321	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10322printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10323if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10324then :
10325  printf %s "(cached) " >&6
10326else $as_nop
10327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328/* end confdefs.h.  */
10329int i;
10330_ACEOF
10331if ac_fn_c_try_compile "$LINENO"
10332then :
10333  xorg_cv_cc_flag_unused_command_line_argument=yes
10334else $as_nop
10335  xorg_cv_cc_flag_unused_command_line_argument=no
10336fi
10337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10338fi
10339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10340printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10341	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10342	CFLAGS="$xorg_testset_save_CFLAGS"
10343fi
10344
10345found="no"
10346
10347	if test $found = "no" ; then
10348		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10349			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10350		fi
10351
10352		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10353			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10354		fi
10355
10356		CFLAGS="$CFLAGS -Waddress"
10357
10358		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10359printf %s "checking if $CC supports -Waddress... " >&6; }
10360		cacheid=xorg_cv_cc_flag__Waddress
10361		if eval test \${$cacheid+y}
10362then :
10363  printf %s "(cached) " >&6
10364else $as_nop
10365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10366/* end confdefs.h.  */
10367int i;
10368int
10369main (void)
10370{
10371
10372  ;
10373  return 0;
10374}
10375_ACEOF
10376if ac_fn_c_try_link "$LINENO"
10377then :
10378  eval $cacheid=yes
10379else $as_nop
10380  eval $cacheid=no
10381fi
10382rm -f core conftest.err conftest.$ac_objext conftest.beam \
10383    conftest$ac_exeext conftest.$ac_ext
10384fi
10385
10386
10387		CFLAGS="$xorg_testset_save_CFLAGS"
10388
10389		eval supported=\$$cacheid
10390		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10391printf "%s\n" "$supported" >&6; }
10392		if test "$supported" = "yes" ; then
10393			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10394			found="yes"
10395		fi
10396	fi
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412xorg_testset_save_CFLAGS="$CFLAGS"
10413
10414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10415	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10416	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10417printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10418if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10419then :
10420  printf %s "(cached) " >&6
10421else $as_nop
10422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423/* end confdefs.h.  */
10424int i;
10425_ACEOF
10426if ac_fn_c_try_compile "$LINENO"
10427then :
10428  xorg_cv_cc_flag_unknown_warning_option=yes
10429else $as_nop
10430  xorg_cv_cc_flag_unknown_warning_option=no
10431fi
10432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10433fi
10434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10435printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10436	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10437	CFLAGS="$xorg_testset_save_CFLAGS"
10438fi
10439
10440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10441	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10442		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10443	fi
10444	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10445	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10446printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10447if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10448then :
10449  printf %s "(cached) " >&6
10450else $as_nop
10451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452/* end confdefs.h.  */
10453int i;
10454_ACEOF
10455if ac_fn_c_try_compile "$LINENO"
10456then :
10457  xorg_cv_cc_flag_unused_command_line_argument=yes
10458else $as_nop
10459  xorg_cv_cc_flag_unused_command_line_argument=no
10460fi
10461rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10462fi
10463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10464printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10465	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10466	CFLAGS="$xorg_testset_save_CFLAGS"
10467fi
10468
10469found="no"
10470
10471	if test $found = "no" ; then
10472		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10473			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10474		fi
10475
10476		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10477			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10478		fi
10479
10480		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10481
10482		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10483printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10484		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10485		if eval test \${$cacheid+y}
10486then :
10487  printf %s "(cached) " >&6
10488else $as_nop
10489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10490/* end confdefs.h.  */
10491int i;
10492int
10493main (void)
10494{
10495
10496  ;
10497  return 0;
10498}
10499_ACEOF
10500if ac_fn_c_try_link "$LINENO"
10501then :
10502  eval $cacheid=yes
10503else $as_nop
10504  eval $cacheid=no
10505fi
10506rm -f core conftest.err conftest.$ac_objext conftest.beam \
10507    conftest$ac_exeext conftest.$ac_ext
10508fi
10509
10510
10511		CFLAGS="$xorg_testset_save_CFLAGS"
10512
10513		eval supported=\$$cacheid
10514		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10515printf "%s\n" "$supported" >&6; }
10516		if test "$supported" = "yes" ; then
10517			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10518			found="yes"
10519		fi
10520	fi
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536xorg_testset_save_CFLAGS="$CFLAGS"
10537
10538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10539	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10540	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10541printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10542if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10543then :
10544  printf %s "(cached) " >&6
10545else $as_nop
10546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10547/* end confdefs.h.  */
10548int i;
10549_ACEOF
10550if ac_fn_c_try_compile "$LINENO"
10551then :
10552  xorg_cv_cc_flag_unknown_warning_option=yes
10553else $as_nop
10554  xorg_cv_cc_flag_unknown_warning_option=no
10555fi
10556rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10557fi
10558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10559printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10560	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10561	CFLAGS="$xorg_testset_save_CFLAGS"
10562fi
10563
10564if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10565	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10566		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10567	fi
10568	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10569	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10570printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10571if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10572then :
10573  printf %s "(cached) " >&6
10574else $as_nop
10575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576/* end confdefs.h.  */
10577int i;
10578_ACEOF
10579if ac_fn_c_try_compile "$LINENO"
10580then :
10581  xorg_cv_cc_flag_unused_command_line_argument=yes
10582else $as_nop
10583  xorg_cv_cc_flag_unused_command_line_argument=no
10584fi
10585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10586fi
10587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10588printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10589	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10590	CFLAGS="$xorg_testset_save_CFLAGS"
10591fi
10592
10593found="no"
10594
10595	if test $found = "no" ; then
10596		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10597			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10598		fi
10599
10600		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10601			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10602		fi
10603
10604		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10605
10606		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10607printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10608		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10609		if eval test \${$cacheid+y}
10610then :
10611  printf %s "(cached) " >&6
10612else $as_nop
10613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614/* end confdefs.h.  */
10615int i;
10616int
10617main (void)
10618{
10619
10620  ;
10621  return 0;
10622}
10623_ACEOF
10624if ac_fn_c_try_link "$LINENO"
10625then :
10626  eval $cacheid=yes
10627else $as_nop
10628  eval $cacheid=no
10629fi
10630rm -f core conftest.err conftest.$ac_objext conftest.beam \
10631    conftest$ac_exeext conftest.$ac_ext
10632fi
10633
10634
10635		CFLAGS="$xorg_testset_save_CFLAGS"
10636
10637		eval supported=\$$cacheid
10638		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10639printf "%s\n" "$supported" >&6; }
10640		if test "$supported" = "yes" ; then
10641			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10642			found="yes"
10643		fi
10644	fi
10645
10646
10647fi
10648
10649
10650
10651
10652
10653
10654
10655		CWARNFLAGS="$BASE_CFLAGS"
10656		if  test "x$GCC" = xyes ; then
10657		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10658		fi
10659
10660
10661
10662
10663
10664
10665
10666
10667# Check whether --enable-strict-compilation was given.
10668if test ${enable_strict_compilation+y}
10669then :
10670  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10671else $as_nop
10672  STRICT_COMPILE=no
10673fi
10674
10675
10676
10677
10678
10679
10680STRICT_CFLAGS=""
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694xorg_testset_save_CFLAGS="$CFLAGS"
10695
10696if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10697	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10698	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10699printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10700if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10701then :
10702  printf %s "(cached) " >&6
10703else $as_nop
10704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705/* end confdefs.h.  */
10706int i;
10707_ACEOF
10708if ac_fn_c_try_compile "$LINENO"
10709then :
10710  xorg_cv_cc_flag_unknown_warning_option=yes
10711else $as_nop
10712  xorg_cv_cc_flag_unknown_warning_option=no
10713fi
10714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10715fi
10716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10717printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10718	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10719	CFLAGS="$xorg_testset_save_CFLAGS"
10720fi
10721
10722if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10723	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10724		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10725	fi
10726	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10727	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10728printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10729if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10730then :
10731  printf %s "(cached) " >&6
10732else $as_nop
10733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734/* end confdefs.h.  */
10735int i;
10736_ACEOF
10737if ac_fn_c_try_compile "$LINENO"
10738then :
10739  xorg_cv_cc_flag_unused_command_line_argument=yes
10740else $as_nop
10741  xorg_cv_cc_flag_unused_command_line_argument=no
10742fi
10743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10744fi
10745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10746printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10747	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10748	CFLAGS="$xorg_testset_save_CFLAGS"
10749fi
10750
10751found="no"
10752
10753	if test $found = "no" ; then
10754		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10755			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10756		fi
10757
10758		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10759			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10760		fi
10761
10762		CFLAGS="$CFLAGS -pedantic"
10763
10764		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10765printf %s "checking if $CC supports -pedantic... " >&6; }
10766		cacheid=xorg_cv_cc_flag__pedantic
10767		if eval test \${$cacheid+y}
10768then :
10769  printf %s "(cached) " >&6
10770else $as_nop
10771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772/* end confdefs.h.  */
10773int i;
10774int
10775main (void)
10776{
10777
10778  ;
10779  return 0;
10780}
10781_ACEOF
10782if ac_fn_c_try_link "$LINENO"
10783then :
10784  eval $cacheid=yes
10785else $as_nop
10786  eval $cacheid=no
10787fi
10788rm -f core conftest.err conftest.$ac_objext conftest.beam \
10789    conftest$ac_exeext conftest.$ac_ext
10790fi
10791
10792
10793		CFLAGS="$xorg_testset_save_CFLAGS"
10794
10795		eval supported=\$$cacheid
10796		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10797printf "%s\n" "$supported" >&6; }
10798		if test "$supported" = "yes" ; then
10799			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10800			found="yes"
10801		fi
10802	fi
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818xorg_testset_save_CFLAGS="$CFLAGS"
10819
10820if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10821	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10822	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10823printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10824if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10825then :
10826  printf %s "(cached) " >&6
10827else $as_nop
10828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829/* end confdefs.h.  */
10830int i;
10831_ACEOF
10832if ac_fn_c_try_compile "$LINENO"
10833then :
10834  xorg_cv_cc_flag_unknown_warning_option=yes
10835else $as_nop
10836  xorg_cv_cc_flag_unknown_warning_option=no
10837fi
10838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10839fi
10840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10841printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10842	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10843	CFLAGS="$xorg_testset_save_CFLAGS"
10844fi
10845
10846if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10847	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10848		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10849	fi
10850	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10851	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10852printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10853if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10854then :
10855  printf %s "(cached) " >&6
10856else $as_nop
10857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858/* end confdefs.h.  */
10859int i;
10860_ACEOF
10861if ac_fn_c_try_compile "$LINENO"
10862then :
10863  xorg_cv_cc_flag_unused_command_line_argument=yes
10864else $as_nop
10865  xorg_cv_cc_flag_unused_command_line_argument=no
10866fi
10867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10868fi
10869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10870printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10871	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10872	CFLAGS="$xorg_testset_save_CFLAGS"
10873fi
10874
10875found="no"
10876
10877	if test $found = "no" ; then
10878		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10879			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10880		fi
10881
10882		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10883			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10884		fi
10885
10886		CFLAGS="$CFLAGS -Werror"
10887
10888		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10889printf %s "checking if $CC supports -Werror... " >&6; }
10890		cacheid=xorg_cv_cc_flag__Werror
10891		if eval test \${$cacheid+y}
10892then :
10893  printf %s "(cached) " >&6
10894else $as_nop
10895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896/* end confdefs.h.  */
10897int i;
10898int
10899main (void)
10900{
10901
10902  ;
10903  return 0;
10904}
10905_ACEOF
10906if ac_fn_c_try_link "$LINENO"
10907then :
10908  eval $cacheid=yes
10909else $as_nop
10910  eval $cacheid=no
10911fi
10912rm -f core conftest.err conftest.$ac_objext conftest.beam \
10913    conftest$ac_exeext conftest.$ac_ext
10914fi
10915
10916
10917		CFLAGS="$xorg_testset_save_CFLAGS"
10918
10919		eval supported=\$$cacheid
10920		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10921printf "%s\n" "$supported" >&6; }
10922		if test "$supported" = "yes" ; then
10923			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10924			found="yes"
10925		fi
10926	fi
10927
10928	if test $found = "no" ; then
10929		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10930			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10931		fi
10932
10933		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10934			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10935		fi
10936
10937		CFLAGS="$CFLAGS -errwarn"
10938
10939		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10940printf %s "checking if $CC supports -errwarn... " >&6; }
10941		cacheid=xorg_cv_cc_flag__errwarn
10942		if eval test \${$cacheid+y}
10943then :
10944  printf %s "(cached) " >&6
10945else $as_nop
10946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947/* end confdefs.h.  */
10948int i;
10949int
10950main (void)
10951{
10952
10953  ;
10954  return 0;
10955}
10956_ACEOF
10957if ac_fn_c_try_link "$LINENO"
10958then :
10959  eval $cacheid=yes
10960else $as_nop
10961  eval $cacheid=no
10962fi
10963rm -f core conftest.err conftest.$ac_objext conftest.beam \
10964    conftest$ac_exeext conftest.$ac_ext
10965fi
10966
10967
10968		CFLAGS="$xorg_testset_save_CFLAGS"
10969
10970		eval supported=\$$cacheid
10971		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10972printf "%s\n" "$supported" >&6; }
10973		if test "$supported" = "yes" ; then
10974			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10975			found="yes"
10976		fi
10977	fi
10978
10979
10980
10981# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10982# activate it with -Werror, so we add it here explicitly.
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996xorg_testset_save_CFLAGS="$CFLAGS"
10997
10998if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10999	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11000	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11001printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11002if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11003then :
11004  printf %s "(cached) " >&6
11005else $as_nop
11006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007/* end confdefs.h.  */
11008int i;
11009_ACEOF
11010if ac_fn_c_try_compile "$LINENO"
11011then :
11012  xorg_cv_cc_flag_unknown_warning_option=yes
11013else $as_nop
11014  xorg_cv_cc_flag_unknown_warning_option=no
11015fi
11016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11017fi
11018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11019printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11020	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11021	CFLAGS="$xorg_testset_save_CFLAGS"
11022fi
11023
11024if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11025	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11026		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11027	fi
11028	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11029	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11030printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11031if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11032then :
11033  printf %s "(cached) " >&6
11034else $as_nop
11035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036/* end confdefs.h.  */
11037int i;
11038_ACEOF
11039if ac_fn_c_try_compile "$LINENO"
11040then :
11041  xorg_cv_cc_flag_unused_command_line_argument=yes
11042else $as_nop
11043  xorg_cv_cc_flag_unused_command_line_argument=no
11044fi
11045rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11046fi
11047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11048printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11049	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11050	CFLAGS="$xorg_testset_save_CFLAGS"
11051fi
11052
11053found="no"
11054
11055	if test $found = "no" ; then
11056		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11057			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11058		fi
11059
11060		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11061			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11062		fi
11063
11064		CFLAGS="$CFLAGS -Werror=attributes"
11065
11066		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11067printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11068		cacheid=xorg_cv_cc_flag__Werror_attributes
11069		if eval test \${$cacheid+y}
11070then :
11071  printf %s "(cached) " >&6
11072else $as_nop
11073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11074/* end confdefs.h.  */
11075int i;
11076int
11077main (void)
11078{
11079
11080  ;
11081  return 0;
11082}
11083_ACEOF
11084if ac_fn_c_try_link "$LINENO"
11085then :
11086  eval $cacheid=yes
11087else $as_nop
11088  eval $cacheid=no
11089fi
11090rm -f core conftest.err conftest.$ac_objext conftest.beam \
11091    conftest$ac_exeext conftest.$ac_ext
11092fi
11093
11094
11095		CFLAGS="$xorg_testset_save_CFLAGS"
11096
11097		eval supported=\$$cacheid
11098		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11099printf "%s\n" "$supported" >&6; }
11100		if test "$supported" = "yes" ; then
11101			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11102			found="yes"
11103		fi
11104	fi
11105
11106
11107
11108if test "x$STRICT_COMPILE" = "xyes"; then
11109    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11110    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11111fi
11112
11113
11114
11115
11116
11117
11118cat >>confdefs.h <<_ACEOF
11119#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11120_ACEOF
11121
11122	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11123	if test "x$PVM" = "x"; then
11124		PVM="0"
11125	fi
11126
11127printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11128
11129	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11130	if test "x$PVP" = "x"; then
11131		PVP="0"
11132	fi
11133
11134printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11135
11136
11137
11138CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11139mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11140|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11141touch \$(top_srcdir)/ChangeLog; \
11142echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11143
11144
11145
11146
11147macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11148INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11149mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11150|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11151touch \$(top_srcdir)/INSTALL; \
11152echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11153
11154
11155
11156
11157
11158
11159case $host_os in
11160    solaris*)
11161        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11162        # check for a man page file found in later versions that use
11163        # traditional section numbers instead
11164        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11165printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11166if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11167then :
11168  printf %s "(cached) " >&6
11169else $as_nop
11170  test "$cross_compiling" = yes &&
11171  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11172if test -r "/usr/share/man/man7/attributes.7"; then
11173  ac_cv_file__usr_share_man_man7_attributes_7=yes
11174else
11175  ac_cv_file__usr_share_man_man7_attributes_7=no
11176fi
11177fi
11178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11179printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11180if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11181then :
11182  SYSV_MAN_SECTIONS=false
11183else $as_nop
11184  SYSV_MAN_SECTIONS=true
11185fi
11186
11187        ;;
11188    *) SYSV_MAN_SECTIONS=false ;;
11189esac
11190
11191if test x$APP_MAN_SUFFIX = x    ; then
11192    APP_MAN_SUFFIX=1
11193fi
11194if test x$APP_MAN_DIR = x    ; then
11195    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11196fi
11197
11198if test x$LIB_MAN_SUFFIX = x    ; then
11199    LIB_MAN_SUFFIX=3
11200fi
11201if test x$LIB_MAN_DIR = x    ; then
11202    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11203fi
11204
11205if test x$FILE_MAN_SUFFIX = x    ; then
11206    case $SYSV_MAN_SECTIONS in
11207	true)				FILE_MAN_SUFFIX=4  ;;
11208	*)				FILE_MAN_SUFFIX=5  ;;
11209    esac
11210fi
11211if test x$FILE_MAN_DIR = x    ; then
11212    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11213fi
11214
11215if test x$MISC_MAN_SUFFIX = x    ; then
11216    case $SYSV_MAN_SECTIONS in
11217	true)				MISC_MAN_SUFFIX=5  ;;
11218	*)				MISC_MAN_SUFFIX=7  ;;
11219    esac
11220fi
11221if test x$MISC_MAN_DIR = x    ; then
11222    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11223fi
11224
11225if test x$DRIVER_MAN_SUFFIX = x    ; then
11226    case $SYSV_MAN_SECTIONS in
11227	true)				DRIVER_MAN_SUFFIX=7  ;;
11228	*)				DRIVER_MAN_SUFFIX=4  ;;
11229    esac
11230fi
11231if test x$DRIVER_MAN_DIR = x    ; then
11232    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11233fi
11234
11235if test x$ADMIN_MAN_SUFFIX = x    ; then
11236    case $SYSV_MAN_SECTIONS in
11237	true)				ADMIN_MAN_SUFFIX=1m ;;
11238	*)				ADMIN_MAN_SUFFIX=8  ;;
11239    esac
11240fi
11241if test x$ADMIN_MAN_DIR = x    ; then
11242    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11243fi
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259XORG_MAN_PAGE="X Version 11"
11260
11261MAN_SUBSTS="\
11262	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11263	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11264	-e 's|__xservername__|Xorg|g' \
11265	-e 's|__xconfigfile__|xorg.conf|g' \
11266	-e 's|__projectroot__|\$(prefix)|g' \
11267	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11268	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11269	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11270	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11271	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11272	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11273	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11274
11275
11276
11277# Check whether --enable-silent-rules was given.
11278if test ${enable_silent_rules+y}
11279then :
11280  enableval=$enable_silent_rules;
11281fi
11282
11283case $enable_silent_rules in # (((
11284  yes) AM_DEFAULT_VERBOSITY=0;;
11285   no) AM_DEFAULT_VERBOSITY=1;;
11286    *) AM_DEFAULT_VERBOSITY=0;;
11287esac
11288am_make=${MAKE-make}
11289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11290printf %s "checking whether $am_make supports nested variables... " >&6; }
11291if test ${am_cv_make_support_nested_variables+y}
11292then :
11293  printf %s "(cached) " >&6
11294else $as_nop
11295  if printf "%s\n" 'TRUE=$(BAR$(V))
11296BAR0=false
11297BAR1=true
11298V=1
11299am__doit:
11300	@$(TRUE)
11301.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11302  am_cv_make_support_nested_variables=yes
11303else
11304  am_cv_make_support_nested_variables=no
11305fi
11306fi
11307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11308printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11309if test $am_cv_make_support_nested_variables = yes; then
11310    AM_V='$(V)'
11311  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11312else
11313  AM_V=$AM_DEFAULT_VERBOSITY
11314  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11315fi
11316AM_BACKSLASH='\'
11317
11318
11319
11320# Internationalization & localization support
11321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
11322printf %s "checking for library containing gettext... " >&6; }
11323if test ${ac_cv_search_gettext+y}
11324then :
11325  printf %s "(cached) " >&6
11326else $as_nop
11327  ac_func_search_save_LIBS=$LIBS
11328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329/* end confdefs.h.  */
11330
11331/* Override any GCC internal prototype to avoid an error.
11332   Use char because int might match the return type of a GCC
11333   builtin and then its argument prototype would still apply.  */
11334char gettext ();
11335int
11336main (void)
11337{
11338return gettext ();
11339  ;
11340  return 0;
11341}
11342_ACEOF
11343for ac_lib in '' intl
11344do
11345  if test -z "$ac_lib"; then
11346    ac_res="none required"
11347  else
11348    ac_res=-l$ac_lib
11349    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11350  fi
11351  if ac_fn_c_try_link "$LINENO"
11352then :
11353  ac_cv_search_gettext=$ac_res
11354fi
11355rm -f core conftest.err conftest.$ac_objext conftest.beam \
11356    conftest$ac_exeext
11357  if test ${ac_cv_search_gettext+y}
11358then :
11359  break
11360fi
11361done
11362if test ${ac_cv_search_gettext+y}
11363then :
11364
11365else $as_nop
11366  ac_cv_search_gettext=no
11367fi
11368rm conftest.$ac_ext
11369LIBS=$ac_func_search_save_LIBS
11370fi
11371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
11372printf "%s\n" "$ac_cv_search_gettext" >&6; }
11373ac_res=$ac_cv_search_gettext
11374if test "$ac_res" != no
11375then :
11376  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11377  USE_GETTEXT="yes"
11378else $as_nop
11379  USE_GETTEXT="no"
11380fi
11381
11382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5
11383printf %s "checking where to install localized messages... " >&6; }
11384
11385# Check whether --with-localedir was given.
11386if test ${with_localedir+y}
11387then :
11388  withval=$with_localedir; LOCALEDIR=${withval}
11389else $as_nop
11390  LOCALEDIR=${datadir}/locale
11391fi
11392
11393
11394  prefix_NONE=
11395  exec_prefix_NONE=
11396  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
11397  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
11398  eval ax_define_dir="\"$LOCALEDIR\""
11399  eval ax_define_dir="\"$ax_define_dir\""
11400  LOCALEDIR="$ax_define_dir"
11401
11402
11403printf "%s\n" "#define LOCALEDIR \"$ax_define_dir\"" >>confdefs.h
11404
11405  test "$prefix_NONE" && prefix=NONE
11406  test "$exec_prefix_NONE" && exec_prefix=NONE
11407
11408if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
11409        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
11410printf "%s\n" "nowhere" >&6; }
11411        USE_GETTEXT="no"
11412else
11413        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5
11414printf "%s\n" "$LOCALEDIR" >&6; }
11415fi
11416
11417if test "x$USE_GETTEXT" = "xyes" ; then
11418
11419printf "%s\n" "#define USE_GETTEXT 1" >>confdefs.h
11420
11421fi
11422 if test "x$USE_GETTEXT" = "xyes"; then
11423  USE_GETTEXT_TRUE=
11424  USE_GETTEXT_FALSE='#'
11425else
11426  USE_GETTEXT_TRUE='#'
11427  USE_GETTEXT_FALSE=
11428fi
11429
11430
11431
11432### How to check load average on various OS'es:
11433
11434# getloadavg: 4.3BSD-Reno & later, glibc 2.2 & later, Solaris 7 & later
11435# BSD & GNU libc use <stdlib.h>, Solaris requires <sys/loadavg.h>
11436
11437  for ac_func in getloadavg
11438do :
11439  ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11440if test "x$ac_cv_func_getloadavg" = xyes
11441then :
11442  printf "%s\n" "#define HAVE_GETLOADAVG 1" >>confdefs.h
11443 ac_fn_c_check_header_compile "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
11444if test "x$ac_cv_header_sys_loadavg_h" = xyes
11445then :
11446  printf "%s\n" "#define HAVE_SYS_LOADAVG_H 1" >>confdefs.h
11447
11448fi
11449
11450fi
11451
11452done
11453
11454# Checks for pkg-config packages
11455
11456pkg_failed=no
11457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLOAD" >&5
11458printf %s "checking for XLOAD... " >&6; }
11459
11460if test -n "$XLOAD_CFLAGS"; then
11461    pkg_cv_XLOAD_CFLAGS="$XLOAD_CFLAGS"
11462 elif test -n "$PKG_CONFIG"; then
11463    if test -n "$PKG_CONFIG" && \
11464    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.17\""; } >&5
11465  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.17") 2>&5
11466  ac_status=$?
11467  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11468  test $ac_status = 0; }; then
11469  pkg_cv_XLOAD_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11 xproto >= 7.0.17" 2>/dev/null`
11470		      test "x$?" != "x0" && pkg_failed=yes
11471else
11472  pkg_failed=yes
11473fi
11474 else
11475    pkg_failed=untried
11476fi
11477if test -n "$XLOAD_LIBS"; then
11478    pkg_cv_XLOAD_LIBS="$XLOAD_LIBS"
11479 elif test -n "$PKG_CONFIG"; then
11480    if test -n "$PKG_CONFIG" && \
11481    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.17\""; } >&5
11482  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.17") 2>&5
11483  ac_status=$?
11484  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11485  test $ac_status = 0; }; then
11486  pkg_cv_XLOAD_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11 xproto >= 7.0.17" 2>/dev/null`
11487		      test "x$?" != "x0" && pkg_failed=yes
11488else
11489  pkg_failed=yes
11490fi
11491 else
11492    pkg_failed=untried
11493fi
11494
11495
11496
11497if test $pkg_failed = yes; then
11498   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499printf "%s\n" "no" >&6; }
11500
11501if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11502        _pkg_short_errors_supported=yes
11503else
11504        _pkg_short_errors_supported=no
11505fi
11506        if test $_pkg_short_errors_supported = yes; then
11507	        XLOAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt x11 xproto >= 7.0.17" 2>&1`
11508        else
11509	        XLOAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt x11 xproto >= 7.0.17" 2>&1`
11510        fi
11511	# Put the nasty error message in config.log where it belongs
11512	echo "$XLOAD_PKG_ERRORS" >&5
11513
11514	as_fn_error $? "Package requirements (xaw7 xmu xt x11 xproto >= 7.0.17) were not met:
11515
11516$XLOAD_PKG_ERRORS
11517
11518Consider adjusting the PKG_CONFIG_PATH environment variable if you
11519installed software in a non-standard prefix.
11520
11521Alternatively, you may set the environment variables XLOAD_CFLAGS
11522and XLOAD_LIBS to avoid the need to call pkg-config.
11523See the pkg-config man page for more details." "$LINENO" 5
11524elif test $pkg_failed = untried; then
11525     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526printf "%s\n" "no" >&6; }
11527	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11528printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11529as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11530is in your PATH or set the PKG_CONFIG environment variable to the full
11531path to pkg-config.
11532
11533Alternatively, you may set the environment variables XLOAD_CFLAGS
11534and XLOAD_LIBS to avoid the need to call pkg-config.
11535See the pkg-config man page for more details.
11536
11537To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11538See \`config.log' for more details" "$LINENO" 5; }
11539else
11540	XLOAD_CFLAGS=$pkg_cv_XLOAD_CFLAGS
11541	XLOAD_LIBS=$pkg_cv_XLOAD_LIBS
11542        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11543printf "%s\n" "yes" >&6; }
11544
11545fi
11546
11547
11548pkg_failed=no
11549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11550printf %s "checking for APPDEFS... " >&6; }
11551
11552if test -n "$APPDEFS_CFLAGS"; then
11553    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11554 elif test -n "$PKG_CONFIG"; then
11555    if test -n "$PKG_CONFIG" && \
11556    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11557  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11558  ac_status=$?
11559  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11560  test $ac_status = 0; }; then
11561  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11562		      test "x$?" != "x0" && pkg_failed=yes
11563else
11564  pkg_failed=yes
11565fi
11566 else
11567    pkg_failed=untried
11568fi
11569if test -n "$APPDEFS_LIBS"; then
11570    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11571 elif test -n "$PKG_CONFIG"; then
11572    if test -n "$PKG_CONFIG" && \
11573    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11574  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11575  ac_status=$?
11576  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11577  test $ac_status = 0; }; then
11578  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11579		      test "x$?" != "x0" && pkg_failed=yes
11580else
11581  pkg_failed=yes
11582fi
11583 else
11584    pkg_failed=untried
11585fi
11586
11587
11588
11589if test $pkg_failed = yes; then
11590   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591printf "%s\n" "no" >&6; }
11592
11593if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11594        _pkg_short_errors_supported=yes
11595else
11596        _pkg_short_errors_supported=no
11597fi
11598        if test $_pkg_short_errors_supported = yes; then
11599	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11600        else
11601	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11602        fi
11603	# Put the nasty error message in config.log where it belongs
11604	echo "$APPDEFS_PKG_ERRORS" >&5
11605
11606	as_fn_error $? "Package requirements (xt) were not met:
11607
11608$APPDEFS_PKG_ERRORS
11609
11610Consider adjusting the PKG_CONFIG_PATH environment variable if you
11611installed software in a non-standard prefix.
11612
11613Alternatively, you may set the environment variables APPDEFS_CFLAGS
11614and APPDEFS_LIBS to avoid the need to call pkg-config.
11615See the pkg-config man page for more details." "$LINENO" 5
11616elif test $pkg_failed = untried; then
11617     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618printf "%s\n" "no" >&6; }
11619	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11620printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11621as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11622is in your PATH or set the PKG_CONFIG environment variable to the full
11623path to pkg-config.
11624
11625Alternatively, you may set the environment variables APPDEFS_CFLAGS
11626and APPDEFS_LIBS to avoid the need to call pkg-config.
11627See the pkg-config man page for more details.
11628
11629To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11630See \`config.log' for more details" "$LINENO" 5; }
11631else
11632	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11633	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11634        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11635printf "%s\n" "yes" >&6; }
11636
11637fi
11638xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11639
11640# Check whether --with-appdefaultdir was given.
11641if test ${with_appdefaultdir+y}
11642then :
11643  withval=$with_appdefaultdir; appdefaultdir="$withval"
11644else $as_nop
11645  appdefaultdir="${xt_appdefaultdir}"
11646fi
11647
11648
11649
11650
11651ac_config_files="$ac_config_files Makefile man/Makefile"
11652
11653cat >confcache <<\_ACEOF
11654# This file is a shell script that caches the results of configure
11655# tests run on this system so they can be shared between configure
11656# scripts and configure runs, see configure's option --config-cache.
11657# It is not useful on other systems.  If it contains results you don't
11658# want to keep, you may remove or edit it.
11659#
11660# config.status only pays attention to the cache file if you give it
11661# the --recheck option to rerun configure.
11662#
11663# `ac_cv_env_foo' variables (set or unset) will be overridden when
11664# loading this file, other *unset* `ac_cv_foo' will be assigned the
11665# following values.
11666
11667_ACEOF
11668
11669# The following way of writing the cache mishandles newlines in values,
11670# but we know of no workaround that is simple, portable, and efficient.
11671# So, we kill variables containing newlines.
11672# Ultrix sh set writes to stderr and can't be redirected directly,
11673# and sets the high bit in the cache file unless we assign to the vars.
11674(
11675  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11676    eval ac_val=\$$ac_var
11677    case $ac_val in #(
11678    *${as_nl}*)
11679      case $ac_var in #(
11680      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11681printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11682      esac
11683      case $ac_var in #(
11684      _ | IFS | as_nl) ;; #(
11685      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11686      *) { eval $ac_var=; unset $ac_var;} ;;
11687      esac ;;
11688    esac
11689  done
11690
11691  (set) 2>&1 |
11692    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11693    *${as_nl}ac_space=\ *)
11694      # `set' does not quote correctly, so add quotes: double-quote
11695      # substitution turns \\\\ into \\, and sed turns \\ into \.
11696      sed -n \
11697	"s/'/'\\\\''/g;
11698	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11699      ;; #(
11700    *)
11701      # `set' quotes correctly as required by POSIX, so do not add quotes.
11702      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11703      ;;
11704    esac |
11705    sort
11706) |
11707  sed '
11708     /^ac_cv_env_/b end
11709     t clear
11710     :clear
11711     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11712     t end
11713     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11714     :end' >>confcache
11715if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11716  if test -w "$cache_file"; then
11717    if test "x$cache_file" != "x/dev/null"; then
11718      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11719printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11720      if test ! -f "$cache_file" || test -h "$cache_file"; then
11721	cat confcache >"$cache_file"
11722      else
11723        case $cache_file in #(
11724        */* | ?:*)
11725	  mv -f confcache "$cache_file"$$ &&
11726	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11727        *)
11728	  mv -f confcache "$cache_file" ;;
11729	esac
11730      fi
11731    fi
11732  else
11733    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11734printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11735  fi
11736fi
11737rm -f confcache
11738
11739test "x$prefix" = xNONE && prefix=$ac_default_prefix
11740# Let make expand exec_prefix.
11741test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11742
11743DEFS=-DHAVE_CONFIG_H
11744
11745ac_libobjs=
11746ac_ltlibobjs=
11747U=
11748for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11749  # 1. Remove the extension, and $U if already installed.
11750  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11751  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11752  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11753  #    will be set to the directory where LIBOBJS objects are built.
11754  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11755  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11756done
11757LIBOBJS=$ac_libobjs
11758
11759LTLIBOBJS=$ac_ltlibobjs
11760
11761
11762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11763printf %s "checking that generated files are newer than configure... " >&6; }
11764   if test -n "$am_sleep_pid"; then
11765     # Hide warnings about reused PIDs.
11766     wait $am_sleep_pid 2>/dev/null
11767   fi
11768   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11769printf "%s\n" "done" >&6; }
11770if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11771  as_fn_error $? "conditional \"AMDEP\" was never defined.
11772Usually this means the macro was only invoked conditionally." "$LINENO" 5
11773fi
11774if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11775  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11776Usually this means the macro was only invoked conditionally." "$LINENO" 5
11777fi
11778 if test -n "$EXEEXT"; then
11779  am__EXEEXT_TRUE=
11780  am__EXEEXT_FALSE='#'
11781else
11782  am__EXEEXT_TRUE='#'
11783  am__EXEEXT_FALSE=
11784fi
11785
11786if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then
11787  as_fn_error $? "conditional \"USE_GETTEXT\" was never defined.
11788Usually this means the macro was only invoked conditionally." "$LINENO" 5
11789fi
11790
11791: "${CONFIG_STATUS=./config.status}"
11792ac_write_fail=0
11793ac_clean_files_save=$ac_clean_files
11794ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11796printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11797as_write_fail=0
11798cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11799#! $SHELL
11800# Generated by $as_me.
11801# Run this file to recreate the current configuration.
11802# Compiler output produced by configure, useful for debugging
11803# configure, is in config.log if it exists.
11804
11805debug=false
11806ac_cs_recheck=false
11807ac_cs_silent=false
11808
11809SHELL=\${CONFIG_SHELL-$SHELL}
11810export SHELL
11811_ASEOF
11812cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11813## -------------------- ##
11814## M4sh Initialization. ##
11815## -------------------- ##
11816
11817# Be more Bourne compatible
11818DUALCASE=1; export DUALCASE # for MKS sh
11819as_nop=:
11820if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11821then :
11822  emulate sh
11823  NULLCMD=:
11824  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11825  # is contrary to our usage.  Disable this feature.
11826  alias -g '${1+"$@"}'='"$@"'
11827  setopt NO_GLOB_SUBST
11828else $as_nop
11829  case `(set -o) 2>/dev/null` in #(
11830  *posix*) :
11831    set -o posix ;; #(
11832  *) :
11833     ;;
11834esac
11835fi
11836
11837
11838
11839# Reset variables that may have inherited troublesome values from
11840# the environment.
11841
11842# IFS needs to be set, to space, tab, and newline, in precisely that order.
11843# (If _AS_PATH_WALK were called with IFS unset, it would have the
11844# side effect of setting IFS to empty, thus disabling word splitting.)
11845# Quoting is to prevent editors from complaining about space-tab.
11846as_nl='
11847'
11848export as_nl
11849IFS=" ""	$as_nl"
11850
11851PS1='$ '
11852PS2='> '
11853PS4='+ '
11854
11855# Ensure predictable behavior from utilities with locale-dependent output.
11856LC_ALL=C
11857export LC_ALL
11858LANGUAGE=C
11859export LANGUAGE
11860
11861# We cannot yet rely on "unset" to work, but we need these variables
11862# to be unset--not just set to an empty or harmless value--now, to
11863# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11864# also avoids known problems related to "unset" and subshell syntax
11865# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11866for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11867do eval test \${$as_var+y} \
11868  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11869done
11870
11871# Ensure that fds 0, 1, and 2 are open.
11872if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11873if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11874if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11875
11876# The user is always right.
11877if ${PATH_SEPARATOR+false} :; then
11878  PATH_SEPARATOR=:
11879  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11880    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11881      PATH_SEPARATOR=';'
11882  }
11883fi
11884
11885
11886# Find who we are.  Look in the path if we contain no directory separator.
11887as_myself=
11888case $0 in #((
11889  *[\\/]* ) as_myself=$0 ;;
11890  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11891for as_dir in $PATH
11892do
11893  IFS=$as_save_IFS
11894  case $as_dir in #(((
11895    '') as_dir=./ ;;
11896    */) ;;
11897    *) as_dir=$as_dir/ ;;
11898  esac
11899    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11900  done
11901IFS=$as_save_IFS
11902
11903     ;;
11904esac
11905# We did not find ourselves, most probably we were run as `sh COMMAND'
11906# in which case we are not to be found in the path.
11907if test "x$as_myself" = x; then
11908  as_myself=$0
11909fi
11910if test ! -f "$as_myself"; then
11911  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11912  exit 1
11913fi
11914
11915
11916
11917# as_fn_error STATUS ERROR [LINENO LOG_FD]
11918# ----------------------------------------
11919# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11920# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11921# script with STATUS, using 1 if that was 0.
11922as_fn_error ()
11923{
11924  as_status=$1; test $as_status -eq 0 && as_status=1
11925  if test "$4"; then
11926    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11927    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11928  fi
11929  printf "%s\n" "$as_me: error: $2" >&2
11930  as_fn_exit $as_status
11931} # as_fn_error
11932
11933
11934
11935# as_fn_set_status STATUS
11936# -----------------------
11937# Set $? to STATUS, without forking.
11938as_fn_set_status ()
11939{
11940  return $1
11941} # as_fn_set_status
11942
11943# as_fn_exit STATUS
11944# -----------------
11945# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11946as_fn_exit ()
11947{
11948  set +e
11949  as_fn_set_status $1
11950  exit $1
11951} # as_fn_exit
11952
11953# as_fn_unset VAR
11954# ---------------
11955# Portably unset VAR.
11956as_fn_unset ()
11957{
11958  { eval $1=; unset $1;}
11959}
11960as_unset=as_fn_unset
11961
11962# as_fn_append VAR VALUE
11963# ----------------------
11964# Append the text in VALUE to the end of the definition contained in VAR. Take
11965# advantage of any shell optimizations that allow amortized linear growth over
11966# repeated appends, instead of the typical quadratic growth present in naive
11967# implementations.
11968if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11969then :
11970  eval 'as_fn_append ()
11971  {
11972    eval $1+=\$2
11973  }'
11974else $as_nop
11975  as_fn_append ()
11976  {
11977    eval $1=\$$1\$2
11978  }
11979fi # as_fn_append
11980
11981# as_fn_arith ARG...
11982# ------------------
11983# Perform arithmetic evaluation on the ARGs, and store the result in the
11984# global $as_val. Take advantage of shells that can avoid forks. The arguments
11985# must be portable across $(()) and expr.
11986if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11987then :
11988  eval 'as_fn_arith ()
11989  {
11990    as_val=$(( $* ))
11991  }'
11992else $as_nop
11993  as_fn_arith ()
11994  {
11995    as_val=`expr "$@" || test $? -eq 1`
11996  }
11997fi # as_fn_arith
11998
11999
12000if expr a : '\(a\)' >/dev/null 2>&1 &&
12001   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12002  as_expr=expr
12003else
12004  as_expr=false
12005fi
12006
12007if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12008  as_basename=basename
12009else
12010  as_basename=false
12011fi
12012
12013if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12014  as_dirname=dirname
12015else
12016  as_dirname=false
12017fi
12018
12019as_me=`$as_basename -- "$0" ||
12020$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12021	 X"$0" : 'X\(//\)$' \| \
12022	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12023printf "%s\n" X/"$0" |
12024    sed '/^.*\/\([^/][^/]*\)\/*$/{
12025	    s//\1/
12026	    q
12027	  }
12028	  /^X\/\(\/\/\)$/{
12029	    s//\1/
12030	    q
12031	  }
12032	  /^X\/\(\/\).*/{
12033	    s//\1/
12034	    q
12035	  }
12036	  s/.*/./; q'`
12037
12038# Avoid depending upon Character Ranges.
12039as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12040as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12041as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12042as_cr_digits='0123456789'
12043as_cr_alnum=$as_cr_Letters$as_cr_digits
12044
12045
12046# Determine whether it's possible to make 'echo' print without a newline.
12047# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12048# for compatibility with existing Makefiles.
12049ECHO_C= ECHO_N= ECHO_T=
12050case `echo -n x` in #(((((
12051-n*)
12052  case `echo 'xy\c'` in
12053  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12054  xy)  ECHO_C='\c';;
12055  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12056       ECHO_T='	';;
12057  esac;;
12058*)
12059  ECHO_N='-n';;
12060esac
12061
12062# For backward compatibility with old third-party macros, we provide
12063# the shell variables $as_echo and $as_echo_n.  New code should use
12064# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12065as_echo='printf %s\n'
12066as_echo_n='printf %s'
12067
12068rm -f conf$$ conf$$.exe conf$$.file
12069if test -d conf$$.dir; then
12070  rm -f conf$$.dir/conf$$.file
12071else
12072  rm -f conf$$.dir
12073  mkdir conf$$.dir 2>/dev/null
12074fi
12075if (echo >conf$$.file) 2>/dev/null; then
12076  if ln -s conf$$.file conf$$ 2>/dev/null; then
12077    as_ln_s='ln -s'
12078    # ... but there are two gotchas:
12079    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12080    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12081    # In both cases, we have to default to `cp -pR'.
12082    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12083      as_ln_s='cp -pR'
12084  elif ln conf$$.file conf$$ 2>/dev/null; then
12085    as_ln_s=ln
12086  else
12087    as_ln_s='cp -pR'
12088  fi
12089else
12090  as_ln_s='cp -pR'
12091fi
12092rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12093rmdir conf$$.dir 2>/dev/null
12094
12095
12096# as_fn_mkdir_p
12097# -------------
12098# Create "$as_dir" as a directory, including parents if necessary.
12099as_fn_mkdir_p ()
12100{
12101
12102  case $as_dir in #(
12103  -*) as_dir=./$as_dir;;
12104  esac
12105  test -d "$as_dir" || eval $as_mkdir_p || {
12106    as_dirs=
12107    while :; do
12108      case $as_dir in #(
12109      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12110      *) as_qdir=$as_dir;;
12111      esac
12112      as_dirs="'$as_qdir' $as_dirs"
12113      as_dir=`$as_dirname -- "$as_dir" ||
12114$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12115	 X"$as_dir" : 'X\(//\)[^/]' \| \
12116	 X"$as_dir" : 'X\(//\)$' \| \
12117	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12118printf "%s\n" X"$as_dir" |
12119    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12120	    s//\1/
12121	    q
12122	  }
12123	  /^X\(\/\/\)[^/].*/{
12124	    s//\1/
12125	    q
12126	  }
12127	  /^X\(\/\/\)$/{
12128	    s//\1/
12129	    q
12130	  }
12131	  /^X\(\/\).*/{
12132	    s//\1/
12133	    q
12134	  }
12135	  s/.*/./; q'`
12136      test -d "$as_dir" && break
12137    done
12138    test -z "$as_dirs" || eval "mkdir $as_dirs"
12139  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12140
12141
12142} # as_fn_mkdir_p
12143if mkdir -p . 2>/dev/null; then
12144  as_mkdir_p='mkdir -p "$as_dir"'
12145else
12146  test -d ./-p && rmdir ./-p
12147  as_mkdir_p=false
12148fi
12149
12150
12151# as_fn_executable_p FILE
12152# -----------------------
12153# Test if FILE is an executable regular file.
12154as_fn_executable_p ()
12155{
12156  test -f "$1" && test -x "$1"
12157} # as_fn_executable_p
12158as_test_x='test -x'
12159as_executable_p=as_fn_executable_p
12160
12161# Sed expression to map a string onto a valid CPP name.
12162as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12163
12164# Sed expression to map a string onto a valid variable name.
12165as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12166
12167
12168exec 6>&1
12169## ----------------------------------- ##
12170## Main body of $CONFIG_STATUS script. ##
12171## ----------------------------------- ##
12172_ASEOF
12173test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12174
12175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12176# Save the log message, to keep $0 and so on meaningful, and to
12177# report actual input values of CONFIG_FILES etc. instead of their
12178# values after options handling.
12179ac_log="
12180This file was extended by xload $as_me 1.1.4, which was
12181generated by GNU Autoconf 2.71.  Invocation command line was
12182
12183  CONFIG_FILES    = $CONFIG_FILES
12184  CONFIG_HEADERS  = $CONFIG_HEADERS
12185  CONFIG_LINKS    = $CONFIG_LINKS
12186  CONFIG_COMMANDS = $CONFIG_COMMANDS
12187  $ $0 $@
12188
12189on `(hostname || uname -n) 2>/dev/null | sed 1q`
12190"
12191
12192_ACEOF
12193
12194case $ac_config_files in *"
12195"*) set x $ac_config_files; shift; ac_config_files=$*;;
12196esac
12197
12198case $ac_config_headers in *"
12199"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12200esac
12201
12202
12203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12204# Files that config.status was made for.
12205config_files="$ac_config_files"
12206config_headers="$ac_config_headers"
12207config_commands="$ac_config_commands"
12208
12209_ACEOF
12210
12211cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12212ac_cs_usage="\
12213\`$as_me' instantiates files and other configuration actions
12214from templates according to the current configuration.  Unless the files
12215and actions are specified as TAGs, all are instantiated by default.
12216
12217Usage: $0 [OPTION]... [TAG]...
12218
12219  -h, --help       print this help, then exit
12220  -V, --version    print version number and configuration settings, then exit
12221      --config     print configuration, then exit
12222  -q, --quiet, --silent
12223                   do not print progress messages
12224  -d, --debug      don't remove temporary files
12225      --recheck    update $as_me by reconfiguring in the same conditions
12226      --file=FILE[:TEMPLATE]
12227                   instantiate the configuration file FILE
12228      --header=FILE[:TEMPLATE]
12229                   instantiate the configuration header FILE
12230
12231Configuration files:
12232$config_files
12233
12234Configuration headers:
12235$config_headers
12236
12237Configuration commands:
12238$config_commands
12239
12240Report bugs to <https://gitlab.freedesktop.org/xorg/app/xload/issues>."
12241
12242_ACEOF
12243ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12244ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12245cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12246ac_cs_config='$ac_cs_config_escaped'
12247ac_cs_version="\\
12248xload config.status 1.1.4
12249configured by $0, generated by GNU Autoconf 2.71,
12250  with options \\"\$ac_cs_config\\"
12251
12252Copyright (C) 2021 Free Software Foundation, Inc.
12253This config.status script is free software; the Free Software Foundation
12254gives unlimited permission to copy, distribute and modify it."
12255
12256ac_pwd='$ac_pwd'
12257srcdir='$srcdir'
12258INSTALL='$INSTALL'
12259MKDIR_P='$MKDIR_P'
12260AWK='$AWK'
12261test -n "\$AWK" || AWK=awk
12262_ACEOF
12263
12264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12265# The default lists apply if the user does not specify any file.
12266ac_need_defaults=:
12267while test $# != 0
12268do
12269  case $1 in
12270  --*=?*)
12271    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12272    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12273    ac_shift=:
12274    ;;
12275  --*=)
12276    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12277    ac_optarg=
12278    ac_shift=:
12279    ;;
12280  *)
12281    ac_option=$1
12282    ac_optarg=$2
12283    ac_shift=shift
12284    ;;
12285  esac
12286
12287  case $ac_option in
12288  # Handling of the options.
12289  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12290    ac_cs_recheck=: ;;
12291  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12292    printf "%s\n" "$ac_cs_version"; exit ;;
12293  --config | --confi | --conf | --con | --co | --c )
12294    printf "%s\n" "$ac_cs_config"; exit ;;
12295  --debug | --debu | --deb | --de | --d | -d )
12296    debug=: ;;
12297  --file | --fil | --fi | --f )
12298    $ac_shift
12299    case $ac_optarg in
12300    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12301    '') as_fn_error $? "missing file argument" ;;
12302    esac
12303    as_fn_append CONFIG_FILES " '$ac_optarg'"
12304    ac_need_defaults=false;;
12305  --header | --heade | --head | --hea )
12306    $ac_shift
12307    case $ac_optarg in
12308    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12309    esac
12310    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12311    ac_need_defaults=false;;
12312  --he | --h)
12313    # Conflict between --help and --header
12314    as_fn_error $? "ambiguous option: \`$1'
12315Try \`$0 --help' for more information.";;
12316  --help | --hel | -h )
12317    printf "%s\n" "$ac_cs_usage"; exit ;;
12318  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12319  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12320    ac_cs_silent=: ;;
12321
12322  # This is an error.
12323  -*) as_fn_error $? "unrecognized option: \`$1'
12324Try \`$0 --help' for more information." ;;
12325
12326  *) as_fn_append ac_config_targets " $1"
12327     ac_need_defaults=false ;;
12328
12329  esac
12330  shift
12331done
12332
12333ac_configure_extra_args=
12334
12335if $ac_cs_silent; then
12336  exec 6>/dev/null
12337  ac_configure_extra_args="$ac_configure_extra_args --silent"
12338fi
12339
12340_ACEOF
12341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12342if \$ac_cs_recheck; then
12343  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12344  shift
12345  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12346  CONFIG_SHELL='$SHELL'
12347  export CONFIG_SHELL
12348  exec "\$@"
12349fi
12350
12351_ACEOF
12352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12353exec 5>>config.log
12354{
12355  echo
12356  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12357## Running $as_me. ##
12358_ASBOX
12359  printf "%s\n" "$ac_log"
12360} >&5
12361
12362_ACEOF
12363cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12364#
12365# INIT-COMMANDS
12366#
12367AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12368
12369_ACEOF
12370
12371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12372
12373# Handling of arguments.
12374for ac_config_target in $ac_config_targets
12375do
12376  case $ac_config_target in
12377    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12378    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12379    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12380    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12381
12382  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12383  esac
12384done
12385
12386
12387# If the user did not use the arguments to specify the items to instantiate,
12388# then the envvar interface is used.  Set only those that are not.
12389# We use the long form for the default assignment because of an extremely
12390# bizarre bug on SunOS 4.1.3.
12391if $ac_need_defaults; then
12392  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12393  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12394  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12395fi
12396
12397# Have a temporary directory for convenience.  Make it in the build tree
12398# simply because there is no reason against having it here, and in addition,
12399# creating and moving files from /tmp can sometimes cause problems.
12400# Hook for its removal unless debugging.
12401# Note that there is a small window in which the directory will not be cleaned:
12402# after its creation but before its name has been assigned to `$tmp'.
12403$debug ||
12404{
12405  tmp= ac_tmp=
12406  trap 'exit_status=$?
12407  : "${ac_tmp:=$tmp}"
12408  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12409' 0
12410  trap 'as_fn_exit 1' 1 2 13 15
12411}
12412# Create a (secure) tmp directory for tmp files.
12413
12414{
12415  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12416  test -d "$tmp"
12417}  ||
12418{
12419  tmp=./conf$$-$RANDOM
12420  (umask 077 && mkdir "$tmp")
12421} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12422ac_tmp=$tmp
12423
12424# Set up the scripts for CONFIG_FILES section.
12425# No need to generate them if there are no CONFIG_FILES.
12426# This happens for instance with `./config.status config.h'.
12427if test -n "$CONFIG_FILES"; then
12428
12429
12430ac_cr=`echo X | tr X '\015'`
12431# On cygwin, bash can eat \r inside `` if the user requested igncr.
12432# But we know of no other shell where ac_cr would be empty at this
12433# point, so we can use a bashism as a fallback.
12434if test "x$ac_cr" = x; then
12435  eval ac_cr=\$\'\\r\'
12436fi
12437ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12438if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12439  ac_cs_awk_cr='\\r'
12440else
12441  ac_cs_awk_cr=$ac_cr
12442fi
12443
12444echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12445_ACEOF
12446
12447
12448{
12449  echo "cat >conf$$subs.awk <<_ACEOF" &&
12450  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12451  echo "_ACEOF"
12452} >conf$$subs.sh ||
12453  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12454ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12455ac_delim='%!_!# '
12456for ac_last_try in false false false false false :; do
12457  . ./conf$$subs.sh ||
12458    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12459
12460  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12461  if test $ac_delim_n = $ac_delim_num; then
12462    break
12463  elif $ac_last_try; then
12464    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12465  else
12466    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12467  fi
12468done
12469rm -f conf$$subs.sh
12470
12471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12472cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12473_ACEOF
12474sed -n '
12475h
12476s/^/S["/; s/!.*/"]=/
12477p
12478g
12479s/^[^!]*!//
12480:repl
12481t repl
12482s/'"$ac_delim"'$//
12483t delim
12484:nl
12485h
12486s/\(.\{148\}\)..*/\1/
12487t more1
12488s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12489p
12490n
12491b repl
12492:more1
12493s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12494p
12495g
12496s/.\{148\}//
12497t nl
12498:delim
12499h
12500s/\(.\{148\}\)..*/\1/
12501t more2
12502s/["\\]/\\&/g; s/^/"/; s/$/"/
12503p
12504b
12505:more2
12506s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12507p
12508g
12509s/.\{148\}//
12510t delim
12511' <conf$$subs.awk | sed '
12512/^[^""]/{
12513  N
12514  s/\n//
12515}
12516' >>$CONFIG_STATUS || ac_write_fail=1
12517rm -f conf$$subs.awk
12518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12519_ACAWK
12520cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12521  for (key in S) S_is_set[key] = 1
12522  FS = ""
12523
12524}
12525{
12526  line = $ 0
12527  nfields = split(line, field, "@")
12528  substed = 0
12529  len = length(field[1])
12530  for (i = 2; i < nfields; i++) {
12531    key = field[i]
12532    keylen = length(key)
12533    if (S_is_set[key]) {
12534      value = S[key]
12535      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12536      len += length(value) + length(field[++i])
12537      substed = 1
12538    } else
12539      len += 1 + keylen
12540  }
12541
12542  print line
12543}
12544
12545_ACAWK
12546_ACEOF
12547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12548if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12549  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12550else
12551  cat
12552fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12553  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12554_ACEOF
12555
12556# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12557# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12558# trailing colons and then remove the whole line if VPATH becomes empty
12559# (actually we leave an empty line to preserve line numbers).
12560if test "x$srcdir" = x.; then
12561  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12562h
12563s///
12564s/^/:/
12565s/[	 ]*$/:/
12566s/:\$(srcdir):/:/g
12567s/:\${srcdir}:/:/g
12568s/:@srcdir@:/:/g
12569s/^:*//
12570s/:*$//
12571x
12572s/\(=[	 ]*\).*/\1/
12573G
12574s/\n//
12575s/^[^=]*=[	 ]*$//
12576}'
12577fi
12578
12579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12580fi # test -n "$CONFIG_FILES"
12581
12582# Set up the scripts for CONFIG_HEADERS section.
12583# No need to generate them if there are no CONFIG_HEADERS.
12584# This happens for instance with `./config.status Makefile'.
12585if test -n "$CONFIG_HEADERS"; then
12586cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12587BEGIN {
12588_ACEOF
12589
12590# Transform confdefs.h into an awk script `defines.awk', embedded as
12591# here-document in config.status, that substitutes the proper values into
12592# config.h.in to produce config.h.
12593
12594# Create a delimiter string that does not exist in confdefs.h, to ease
12595# handling of long lines.
12596ac_delim='%!_!# '
12597for ac_last_try in false false :; do
12598  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12599  if test -z "$ac_tt"; then
12600    break
12601  elif $ac_last_try; then
12602    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12603  else
12604    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12605  fi
12606done
12607
12608# For the awk script, D is an array of macro values keyed by name,
12609# likewise P contains macro parameters if any.  Preserve backslash
12610# newline sequences.
12611
12612ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12613sed -n '
12614s/.\{148\}/&'"$ac_delim"'/g
12615t rset
12616:rset
12617s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12618t def
12619d
12620:def
12621s/\\$//
12622t bsnl
12623s/["\\]/\\&/g
12624s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12625D["\1"]=" \3"/p
12626s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12627d
12628:bsnl
12629s/["\\]/\\&/g
12630s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12631D["\1"]=" \3\\\\\\n"\\/p
12632t cont
12633s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12634t cont
12635d
12636:cont
12637n
12638s/.\{148\}/&'"$ac_delim"'/g
12639t clear
12640:clear
12641s/\\$//
12642t bsnlc
12643s/["\\]/\\&/g; s/^/"/; s/$/"/p
12644d
12645:bsnlc
12646s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12647b cont
12648' <confdefs.h | sed '
12649s/'"$ac_delim"'/"\\\
12650"/g' >>$CONFIG_STATUS || ac_write_fail=1
12651
12652cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12653  for (key in D) D_is_set[key] = 1
12654  FS = ""
12655}
12656/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12657  line = \$ 0
12658  split(line, arg, " ")
12659  if (arg[1] == "#") {
12660    defundef = arg[2]
12661    mac1 = arg[3]
12662  } else {
12663    defundef = substr(arg[1], 2)
12664    mac1 = arg[2]
12665  }
12666  split(mac1, mac2, "(") #)
12667  macro = mac2[1]
12668  prefix = substr(line, 1, index(line, defundef) - 1)
12669  if (D_is_set[macro]) {
12670    # Preserve the white space surrounding the "#".
12671    print prefix "define", macro P[macro] D[macro]
12672    next
12673  } else {
12674    # Replace #undef with comments.  This is necessary, for example,
12675    # in the case of _POSIX_SOURCE, which is predefined and required
12676    # on some systems where configure will not decide to define it.
12677    if (defundef == "undef") {
12678      print "/*", prefix defundef, macro, "*/"
12679      next
12680    }
12681  }
12682}
12683{ print }
12684_ACAWK
12685_ACEOF
12686cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12687  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12688fi # test -n "$CONFIG_HEADERS"
12689
12690
12691eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12692shift
12693for ac_tag
12694do
12695  case $ac_tag in
12696  :[FHLC]) ac_mode=$ac_tag; continue;;
12697  esac
12698  case $ac_mode$ac_tag in
12699  :[FHL]*:*);;
12700  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12701  :[FH]-) ac_tag=-:-;;
12702  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12703  esac
12704  ac_save_IFS=$IFS
12705  IFS=:
12706  set x $ac_tag
12707  IFS=$ac_save_IFS
12708  shift
12709  ac_file=$1
12710  shift
12711
12712  case $ac_mode in
12713  :L) ac_source=$1;;
12714  :[FH])
12715    ac_file_inputs=
12716    for ac_f
12717    do
12718      case $ac_f in
12719      -) ac_f="$ac_tmp/stdin";;
12720      *) # Look for the file first in the build tree, then in the source tree
12721	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12722	 # because $ac_f cannot contain `:'.
12723	 test -f "$ac_f" ||
12724	   case $ac_f in
12725	   [\\/$]*) false;;
12726	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12727	   esac ||
12728	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12729      esac
12730      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12731      as_fn_append ac_file_inputs " '$ac_f'"
12732    done
12733
12734    # Let's still pretend it is `configure' which instantiates (i.e., don't
12735    # use $as_me), people would be surprised to read:
12736    #    /* config.h.  Generated by config.status.  */
12737    configure_input='Generated from '`
12738	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12739	`' by configure.'
12740    if test x"$ac_file" != x-; then
12741      configure_input="$ac_file.  $configure_input"
12742      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12743printf "%s\n" "$as_me: creating $ac_file" >&6;}
12744    fi
12745    # Neutralize special characters interpreted by sed in replacement strings.
12746    case $configure_input in #(
12747    *\&* | *\|* | *\\* )
12748       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12749       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12750    *) ac_sed_conf_input=$configure_input;;
12751    esac
12752
12753    case $ac_tag in
12754    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12755      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12756    esac
12757    ;;
12758  esac
12759
12760  ac_dir=`$as_dirname -- "$ac_file" ||
12761$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12762	 X"$ac_file" : 'X\(//\)[^/]' \| \
12763	 X"$ac_file" : 'X\(//\)$' \| \
12764	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12765printf "%s\n" X"$ac_file" |
12766    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12767	    s//\1/
12768	    q
12769	  }
12770	  /^X\(\/\/\)[^/].*/{
12771	    s//\1/
12772	    q
12773	  }
12774	  /^X\(\/\/\)$/{
12775	    s//\1/
12776	    q
12777	  }
12778	  /^X\(\/\).*/{
12779	    s//\1/
12780	    q
12781	  }
12782	  s/.*/./; q'`
12783  as_dir="$ac_dir"; as_fn_mkdir_p
12784  ac_builddir=.
12785
12786case "$ac_dir" in
12787.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12788*)
12789  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12790  # A ".." for each directory in $ac_dir_suffix.
12791  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12792  case $ac_top_builddir_sub in
12793  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12794  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12795  esac ;;
12796esac
12797ac_abs_top_builddir=$ac_pwd
12798ac_abs_builddir=$ac_pwd$ac_dir_suffix
12799# for backward compatibility:
12800ac_top_builddir=$ac_top_build_prefix
12801
12802case $srcdir in
12803  .)  # We are building in place.
12804    ac_srcdir=.
12805    ac_top_srcdir=$ac_top_builddir_sub
12806    ac_abs_top_srcdir=$ac_pwd ;;
12807  [\\/]* | ?:[\\/]* )  # Absolute name.
12808    ac_srcdir=$srcdir$ac_dir_suffix;
12809    ac_top_srcdir=$srcdir
12810    ac_abs_top_srcdir=$srcdir ;;
12811  *) # Relative name.
12812    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12813    ac_top_srcdir=$ac_top_build_prefix$srcdir
12814    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12815esac
12816ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12817
12818
12819  case $ac_mode in
12820  :F)
12821  #
12822  # CONFIG_FILE
12823  #
12824
12825  case $INSTALL in
12826  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12827  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12828  esac
12829  ac_MKDIR_P=$MKDIR_P
12830  case $MKDIR_P in
12831  [\\/$]* | ?:[\\/]* ) ;;
12832  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12833  esac
12834_ACEOF
12835
12836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12837# If the template does not know about datarootdir, expand it.
12838# FIXME: This hack should be removed a few years after 2.60.
12839ac_datarootdir_hack=; ac_datarootdir_seen=
12840ac_sed_dataroot='
12841/datarootdir/ {
12842  p
12843  q
12844}
12845/@datadir@/p
12846/@docdir@/p
12847/@infodir@/p
12848/@localedir@/p
12849/@mandir@/p'
12850case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12851*datarootdir*) ac_datarootdir_seen=yes;;
12852*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12853  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12854printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12855_ACEOF
12856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12857  ac_datarootdir_hack='
12858  s&@datadir@&$datadir&g
12859  s&@docdir@&$docdir&g
12860  s&@infodir@&$infodir&g
12861  s&@localedir@&$localedir&g
12862  s&@mandir@&$mandir&g
12863  s&\\\${datarootdir}&$datarootdir&g' ;;
12864esac
12865_ACEOF
12866
12867# Neutralize VPATH when `$srcdir' = `.'.
12868# Shell code in configure.ac might set extrasub.
12869# FIXME: do we really want to maintain this feature?
12870cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12871ac_sed_extra="$ac_vpsub
12872$extrasub
12873_ACEOF
12874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12875:t
12876/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12877s|@configure_input@|$ac_sed_conf_input|;t t
12878s&@top_builddir@&$ac_top_builddir_sub&;t t
12879s&@top_build_prefix@&$ac_top_build_prefix&;t t
12880s&@srcdir@&$ac_srcdir&;t t
12881s&@abs_srcdir@&$ac_abs_srcdir&;t t
12882s&@top_srcdir@&$ac_top_srcdir&;t t
12883s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12884s&@builddir@&$ac_builddir&;t t
12885s&@abs_builddir@&$ac_abs_builddir&;t t
12886s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12887s&@INSTALL@&$ac_INSTALL&;t t
12888s&@MKDIR_P@&$ac_MKDIR_P&;t t
12889$ac_datarootdir_hack
12890"
12891eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12892  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12893
12894test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12895  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12896  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12897      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12898  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12899which seems to be undefined.  Please make sure it is defined" >&5
12900printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12901which seems to be undefined.  Please make sure it is defined" >&2;}
12902
12903  rm -f "$ac_tmp/stdin"
12904  case $ac_file in
12905  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12906  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12907  esac \
12908  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12909 ;;
12910  :H)
12911  #
12912  # CONFIG_HEADER
12913  #
12914  if test x"$ac_file" != x-; then
12915    {
12916      printf "%s\n" "/* $configure_input  */" >&1 \
12917      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12918    } >"$ac_tmp/config.h" \
12919      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12920    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12921      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12922printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12923    else
12924      rm -f "$ac_file"
12925      mv "$ac_tmp/config.h" "$ac_file" \
12926	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12927    fi
12928  else
12929    printf "%s\n" "/* $configure_input  */" >&1 \
12930      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12931      || as_fn_error $? "could not create -" "$LINENO" 5
12932  fi
12933# Compute "$ac_file"'s index in $config_headers.
12934_am_arg="$ac_file"
12935_am_stamp_count=1
12936for _am_header in $config_headers :; do
12937  case $_am_header in
12938    $_am_arg | $_am_arg:* )
12939      break ;;
12940    * )
12941      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12942  esac
12943done
12944echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12945$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12946	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12947	 X"$_am_arg" : 'X\(//\)$' \| \
12948	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12949printf "%s\n" X"$_am_arg" |
12950    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12951	    s//\1/
12952	    q
12953	  }
12954	  /^X\(\/\/\)[^/].*/{
12955	    s//\1/
12956	    q
12957	  }
12958	  /^X\(\/\/\)$/{
12959	    s//\1/
12960	    q
12961	  }
12962	  /^X\(\/\).*/{
12963	    s//\1/
12964	    q
12965	  }
12966	  s/.*/./; q'`/stamp-h$_am_stamp_count
12967 ;;
12968
12969  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12970printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12971 ;;
12972  esac
12973
12974
12975  case $ac_file$ac_mode in
12976    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12977  # Older Autoconf quotes --file arguments for eval, but not when files
12978  # are listed without --file.  Let's play safe and only enable the eval
12979  # if we detect the quoting.
12980  # TODO: see whether this extra hack can be removed once we start
12981  # requiring Autoconf 2.70 or later.
12982  case $CONFIG_FILES in #(
12983  *\'*) :
12984    eval set x "$CONFIG_FILES" ;; #(
12985  *) :
12986    set x $CONFIG_FILES ;; #(
12987  *) :
12988     ;;
12989esac
12990  shift
12991  # Used to flag and report bootstrapping failures.
12992  am_rc=0
12993  for am_mf
12994  do
12995    # Strip MF so we end up with the name of the file.
12996    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12997    # Check whether this is an Automake generated Makefile which includes
12998    # dependency-tracking related rules and includes.
12999    # Grep'ing the whole file directly is not great: AIX grep has a line
13000    # limit of 2048, but all sed's we know have understand at least 4000.
13001    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13002      || continue
13003    am_dirpart=`$as_dirname -- "$am_mf" ||
13004$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13005	 X"$am_mf" : 'X\(//\)[^/]' \| \
13006	 X"$am_mf" : 'X\(//\)$' \| \
13007	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13008printf "%s\n" X"$am_mf" |
13009    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13010	    s//\1/
13011	    q
13012	  }
13013	  /^X\(\/\/\)[^/].*/{
13014	    s//\1/
13015	    q
13016	  }
13017	  /^X\(\/\/\)$/{
13018	    s//\1/
13019	    q
13020	  }
13021	  /^X\(\/\).*/{
13022	    s//\1/
13023	    q
13024	  }
13025	  s/.*/./; q'`
13026    am_filepart=`$as_basename -- "$am_mf" ||
13027$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13028	 X"$am_mf" : 'X\(//\)$' \| \
13029	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13030printf "%s\n" X/"$am_mf" |
13031    sed '/^.*\/\([^/][^/]*\)\/*$/{
13032	    s//\1/
13033	    q
13034	  }
13035	  /^X\/\(\/\/\)$/{
13036	    s//\1/
13037	    q
13038	  }
13039	  /^X\/\(\/\).*/{
13040	    s//\1/
13041	    q
13042	  }
13043	  s/.*/./; q'`
13044    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13045      && sed -e '/# am--include-marker/d' "$am_filepart" \
13046        | $MAKE -f - am--depfiles" >&5
13047   (cd "$am_dirpart" \
13048      && sed -e '/# am--include-marker/d' "$am_filepart" \
13049        | $MAKE -f - am--depfiles) >&5 2>&5
13050   ac_status=$?
13051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052   (exit $ac_status); } || am_rc=$?
13053  done
13054  if test $am_rc -ne 0; then
13055    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13056printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13057as_fn_error $? "Something went wrong bootstrapping makefile fragments
13058    for automatic dependency tracking.  If GNU make was not used, consider
13059    re-running the configure script with MAKE=\"gmake\" (or whatever is
13060    necessary).  You can also try re-running configure with the
13061    '--disable-dependency-tracking' option to at least be able to build
13062    the package (albeit without support for automatic dependency tracking).
13063See \`config.log' for more details" "$LINENO" 5; }
13064  fi
13065  { am_dirpart=; unset am_dirpart;}
13066  { am_filepart=; unset am_filepart;}
13067  { am_mf=; unset am_mf;}
13068  { am_rc=; unset am_rc;}
13069  rm -f conftest-deps.mk
13070}
13071 ;;
13072
13073  esac
13074done # for ac_tag
13075
13076
13077as_fn_exit 0
13078_ACEOF
13079ac_clean_files=$ac_clean_files_save
13080
13081test $ac_write_fail = 0 ||
13082  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13083
13084
13085# configure is writing to config.log, and then calls config.status.
13086# config.status does its own redirection, appending to config.log.
13087# Unfortunately, on DOS this fails, as config.log is still kept open
13088# by configure, so config.status won't be able to write to it; its
13089# output is simply discarded.  So we exec the FD to /dev/null,
13090# effectively closing config.log, so it can be properly (re)opened and
13091# appended to by config.status.  When coming back to configure, we
13092# need to make the FD available again.
13093if test "$no_create" != yes; then
13094  ac_cs_success=:
13095  ac_config_status_args=
13096  test "$silent" = yes &&
13097    ac_config_status_args="$ac_config_status_args --quiet"
13098  exec 5>/dev/null
13099  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13100  exec 5>>config.log
13101  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13102  # would make configure fail if this is the last instruction.
13103  $ac_cs_success || as_fn_exit 1
13104fi
13105if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13107printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13108fi
13109
13110
13111