configure revision ddb28773
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xcalc 1.1.1.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xcalc/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/xcalc/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='xcalc'
614PACKAGE_TARNAME='xcalc'
615PACKAGE_VERSION='1.1.1'
616PACKAGE_STRING='xcalc 1.1.1'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xcalc/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
660XCALC_LIBS
661XCALC_CFLAGS
662MAN_SUBSTS
663XORG_MAN_PAGE
664ADMIN_MAN_DIR
665DRIVER_MAN_DIR
666MISC_MAN_DIR
667FILE_MAN_DIR
668LIB_MAN_DIR
669APP_MAN_DIR
670ADMIN_MAN_SUFFIX
671DRIVER_MAN_SUFFIX
672MISC_MAN_SUFFIX
673FILE_MAN_SUFFIX
674LIB_MAN_SUFFIX
675APP_MAN_SUFFIX
676SED
677host_os
678host_vendor
679host_cpu
680host
681build_os
682build_vendor
683build_cpu
684build
685INSTALL_CMD
686PKG_CONFIG_LIBDIR
687PKG_CONFIG_PATH
688PKG_CONFIG
689CHANGELOG_CMD
690STRICT_CFLAGS
691CWARNFLAGS
692BASE_CFLAGS
693am__fastdepCC_FALSE
694am__fastdepCC_TRUE
695CCDEPMODE
696am__nodep
697AMDEPBACKSLASH
698AMDEP_FALSE
699AMDEP_TRUE
700am__include
701DEPDIR
702OBJEXT
703EXEEXT
704ac_ct_CC
705CPPFLAGS
706LDFLAGS
707CFLAGS
708CC
709AM_BACKSLASH
710AM_DEFAULT_VERBOSITY
711AM_DEFAULT_V
712AM_V
713CSCOPE
714ETAGS
715CTAGS
716am__untar
717am__tar
718AMTAR
719am__leading_dot
720SET_MAKE
721AWK
722mkdir_p
723MKDIR_P
724INSTALL_STRIP_PROGRAM
725STRIP
726install_sh
727MAKEINFO
728AUTOHEADER
729AUTOMAKE
730AUTOCONF
731ACLOCAL
732VERSION
733PACKAGE
734CYGPATH_W
735am__isrc
736INSTALL_DATA
737INSTALL_SCRIPT
738INSTALL_PROGRAM
739target_alias
740host_alias
741build_alias
742LIBS
743ECHO_T
744ECHO_N
745ECHO_C
746DEFS
747mandir
748localedir
749libdir
750psdir
751pdfdir
752dvidir
753htmldir
754infodir
755docdir
756oldincludedir
757includedir
758runstatedir
759localstatedir
760sharedstatedir
761sysconfdir
762datadir
763datarootdir
764libexecdir
765sbindir
766bindir
767program_transform_name
768prefix
769exec_prefix
770PACKAGE_URL
771PACKAGE_BUGREPORT
772PACKAGE_STRING
773PACKAGE_VERSION
774PACKAGE_TARNAME
775PACKAGE_NAME
776PATH_SEPARATOR
777SHELL
778am__quote'
779ac_subst_files=''
780ac_user_opts='
781enable_option_checking
782enable_silent_rules
783enable_dependency_tracking
784enable_selective_werror
785enable_strict_compilation
786with_appdefaultdir
787'
788      ac_precious_vars='build_alias
789host_alias
790target_alias
791CC
792CFLAGS
793LDFLAGS
794LIBS
795CPPFLAGS
796PKG_CONFIG
797PKG_CONFIG_PATH
798PKG_CONFIG_LIBDIR
799XCALC_CFLAGS
800XCALC_LIBS
801APPDEFS_CFLAGS
802APPDEFS_LIBS'
803
804
805# Initialize some variables set by options.
806ac_init_help=
807ac_init_version=false
808ac_unrecognized_opts=
809ac_unrecognized_sep=
810# The variables have the same names as the options, with
811# dashes changed to underlines.
812cache_file=/dev/null
813exec_prefix=NONE
814no_create=
815no_recursion=
816prefix=NONE
817program_prefix=NONE
818program_suffix=NONE
819program_transform_name=s,x,x,
820silent=
821site=
822srcdir=
823verbose=
824x_includes=NONE
825x_libraries=NONE
826
827# Installation directory options.
828# These are left unexpanded so users can "make install exec_prefix=/foo"
829# and all the variables that are supposed to be based on exec_prefix
830# by default will actually change.
831# Use braces instead of parens because sh, perl, etc. also accept them.
832# (The list follows the same order as the GNU Coding Standards.)
833bindir='${exec_prefix}/bin'
834sbindir='${exec_prefix}/sbin'
835libexecdir='${exec_prefix}/libexec'
836datarootdir='${prefix}/share'
837datadir='${datarootdir}'
838sysconfdir='${prefix}/etc'
839sharedstatedir='${prefix}/com'
840localstatedir='${prefix}/var'
841runstatedir='${localstatedir}/run'
842includedir='${prefix}/include'
843oldincludedir='/usr/include'
844docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845infodir='${datarootdir}/info'
846htmldir='${docdir}'
847dvidir='${docdir}'
848pdfdir='${docdir}'
849psdir='${docdir}'
850libdir='${exec_prefix}/lib'
851localedir='${datarootdir}/locale'
852mandir='${datarootdir}/man'
853
854ac_prev=
855ac_dashdash=
856for ac_option
857do
858  # If the previous option needs an argument, assign it.
859  if test -n "$ac_prev"; then
860    eval $ac_prev=\$ac_option
861    ac_prev=
862    continue
863  fi
864
865  case $ac_option in
866  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867  *=)   ac_optarg= ;;
868  *)    ac_optarg=yes ;;
869  esac
870
871  case $ac_dashdash$ac_option in
872  --)
873    ac_dashdash=yes ;;
874
875  -bindir | --bindir | --bindi | --bind | --bin | --bi)
876    ac_prev=bindir ;;
877  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878    bindir=$ac_optarg ;;
879
880  -build | --build | --buil | --bui | --bu)
881    ac_prev=build_alias ;;
882  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883    build_alias=$ac_optarg ;;
884
885  -cache-file | --cache-file | --cache-fil | --cache-fi \
886  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887    ac_prev=cache_file ;;
888  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890    cache_file=$ac_optarg ;;
891
892  --config-cache | -C)
893    cache_file=config.cache ;;
894
895  -datadir | --datadir | --datadi | --datad)
896    ac_prev=datadir ;;
897  -datadir=* | --datadir=* | --datadi=* | --datad=*)
898    datadir=$ac_optarg ;;
899
900  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901  | --dataroo | --dataro | --datar)
902    ac_prev=datarootdir ;;
903  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905    datarootdir=$ac_optarg ;;
906
907  -disable-* | --disable-*)
908    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909    # Reject names that are not valid shell variable names.
910    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911      as_fn_error $? "invalid feature name: \`$ac_useropt'"
912    ac_useropt_orig=$ac_useropt
913    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
914    case $ac_user_opts in
915      *"
916"enable_$ac_useropt"
917"*) ;;
918      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919	 ac_unrecognized_sep=', ';;
920    esac
921    eval enable_$ac_useropt=no ;;
922
923  -docdir | --docdir | --docdi | --doc | --do)
924    ac_prev=docdir ;;
925  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926    docdir=$ac_optarg ;;
927
928  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929    ac_prev=dvidir ;;
930  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931    dvidir=$ac_optarg ;;
932
933  -enable-* | --enable-*)
934    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935    # Reject names that are not valid shell variable names.
936    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937      as_fn_error $? "invalid feature name: \`$ac_useropt'"
938    ac_useropt_orig=$ac_useropt
939    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
940    case $ac_user_opts in
941      *"
942"enable_$ac_useropt"
943"*) ;;
944      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945	 ac_unrecognized_sep=', ';;
946    esac
947    eval enable_$ac_useropt=\$ac_optarg ;;
948
949  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951  | --exec | --exe | --ex)
952    ac_prev=exec_prefix ;;
953  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955  | --exec=* | --exe=* | --ex=*)
956    exec_prefix=$ac_optarg ;;
957
958  -gas | --gas | --ga | --g)
959    # Obsolete; use --with-gas.
960    with_gas=yes ;;
961
962  -help | --help | --hel | --he | -h)
963    ac_init_help=long ;;
964  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965    ac_init_help=recursive ;;
966  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967    ac_init_help=short ;;
968
969  -host | --host | --hos | --ho)
970    ac_prev=host_alias ;;
971  -host=* | --host=* | --hos=* | --ho=*)
972    host_alias=$ac_optarg ;;
973
974  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975    ac_prev=htmldir ;;
976  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977  | --ht=*)
978    htmldir=$ac_optarg ;;
979
980  -includedir | --includedir | --includedi | --included | --include \
981  | --includ | --inclu | --incl | --inc)
982    ac_prev=includedir ;;
983  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984  | --includ=* | --inclu=* | --incl=* | --inc=*)
985    includedir=$ac_optarg ;;
986
987  -infodir | --infodir | --infodi | --infod | --info | --inf)
988    ac_prev=infodir ;;
989  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990    infodir=$ac_optarg ;;
991
992  -libdir | --libdir | --libdi | --libd)
993    ac_prev=libdir ;;
994  -libdir=* | --libdir=* | --libdi=* | --libd=*)
995    libdir=$ac_optarg ;;
996
997  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998  | --libexe | --libex | --libe)
999    ac_prev=libexecdir ;;
1000  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001  | --libexe=* | --libex=* | --libe=*)
1002    libexecdir=$ac_optarg ;;
1003
1004  -localedir | --localedir | --localedi | --localed | --locale)
1005    ac_prev=localedir ;;
1006  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007    localedir=$ac_optarg ;;
1008
1009  -localstatedir | --localstatedir | --localstatedi | --localstated \
1010  | --localstate | --localstat | --localsta | --localst | --locals)
1011    ac_prev=localstatedir ;;
1012  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014    localstatedir=$ac_optarg ;;
1015
1016  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017    ac_prev=mandir ;;
1018  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019    mandir=$ac_optarg ;;
1020
1021  -nfp | --nfp | --nf)
1022    # Obsolete; use --without-fp.
1023    with_fp=no ;;
1024
1025  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026  | --no-cr | --no-c | -n)
1027    no_create=yes ;;
1028
1029  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031    no_recursion=yes ;;
1032
1033  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035  | --oldin | --oldi | --old | --ol | --o)
1036    ac_prev=oldincludedir ;;
1037  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040    oldincludedir=$ac_optarg ;;
1041
1042  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043    ac_prev=prefix ;;
1044  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045    prefix=$ac_optarg ;;
1046
1047  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048  | --program-pre | --program-pr | --program-p)
1049    ac_prev=program_prefix ;;
1050  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052    program_prefix=$ac_optarg ;;
1053
1054  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055  | --program-suf | --program-su | --program-s)
1056    ac_prev=program_suffix ;;
1057  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059    program_suffix=$ac_optarg ;;
1060
1061  -program-transform-name | --program-transform-name \
1062  | --program-transform-nam | --program-transform-na \
1063  | --program-transform-n | --program-transform- \
1064  | --program-transform | --program-transfor \
1065  | --program-transfo | --program-transf \
1066  | --program-trans | --program-tran \
1067  | --progr-tra | --program-tr | --program-t)
1068    ac_prev=program_transform_name ;;
1069  -program-transform-name=* | --program-transform-name=* \
1070  | --program-transform-nam=* | --program-transform-na=* \
1071  | --program-transform-n=* | --program-transform-=* \
1072  | --program-transform=* | --program-transfor=* \
1073  | --program-transfo=* | --program-transf=* \
1074  | --program-trans=* | --program-tran=* \
1075  | --progr-tra=* | --program-tr=* | --program-t=*)
1076    program_transform_name=$ac_optarg ;;
1077
1078  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079    ac_prev=pdfdir ;;
1080  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081    pdfdir=$ac_optarg ;;
1082
1083  -psdir | --psdir | --psdi | --psd | --ps)
1084    ac_prev=psdir ;;
1085  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086    psdir=$ac_optarg ;;
1087
1088  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089  | -silent | --silent | --silen | --sile | --sil)
1090    silent=yes ;;
1091
1092  -runstatedir | --runstatedir | --runstatedi | --runstated \
1093  | --runstate | --runstat | --runsta | --runst | --runs \
1094  | --run | --ru | --r)
1095    ac_prev=runstatedir ;;
1096  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1097  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1098  | --run=* | --ru=* | --r=*)
1099    runstatedir=$ac_optarg ;;
1100
1101  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102    ac_prev=sbindir ;;
1103  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104  | --sbi=* | --sb=*)
1105    sbindir=$ac_optarg ;;
1106
1107  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109  | --sharedst | --shareds | --shared | --share | --shar \
1110  | --sha | --sh)
1111    ac_prev=sharedstatedir ;;
1112  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115  | --sha=* | --sh=*)
1116    sharedstatedir=$ac_optarg ;;
1117
1118  -site | --site | --sit)
1119    ac_prev=site ;;
1120  -site=* | --site=* | --sit=*)
1121    site=$ac_optarg ;;
1122
1123  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124    ac_prev=srcdir ;;
1125  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126    srcdir=$ac_optarg ;;
1127
1128  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129  | --syscon | --sysco | --sysc | --sys | --sy)
1130    ac_prev=sysconfdir ;;
1131  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133    sysconfdir=$ac_optarg ;;
1134
1135  -target | --target | --targe | --targ | --tar | --ta | --t)
1136    ac_prev=target_alias ;;
1137  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138    target_alias=$ac_optarg ;;
1139
1140  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141    verbose=yes ;;
1142
1143  -version | --version | --versio | --versi | --vers | -V)
1144    ac_init_version=: ;;
1145
1146  -with-* | --with-*)
1147    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148    # Reject names that are not valid shell variable names.
1149    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150      as_fn_error $? "invalid package name: \`$ac_useropt'"
1151    ac_useropt_orig=$ac_useropt
1152    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1153    case $ac_user_opts in
1154      *"
1155"with_$ac_useropt"
1156"*) ;;
1157      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158	 ac_unrecognized_sep=', ';;
1159    esac
1160    eval with_$ac_useropt=\$ac_optarg ;;
1161
1162  -without-* | --without-*)
1163    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164    # Reject names that are not valid shell variable names.
1165    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166      as_fn_error $? "invalid package name: \`$ac_useropt'"
1167    ac_useropt_orig=$ac_useropt
1168    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1169    case $ac_user_opts in
1170      *"
1171"with_$ac_useropt"
1172"*) ;;
1173      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1174	 ac_unrecognized_sep=', ';;
1175    esac
1176    eval with_$ac_useropt=no ;;
1177
1178  --x)
1179    # Obsolete; use --with-x.
1180    with_x=yes ;;
1181
1182  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1183  | --x-incl | --x-inc | --x-in | --x-i)
1184    ac_prev=x_includes ;;
1185  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1186  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1187    x_includes=$ac_optarg ;;
1188
1189  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1190  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1191    ac_prev=x_libraries ;;
1192  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1193  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1194    x_libraries=$ac_optarg ;;
1195
1196  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1197Try \`$0 --help' for more information"
1198    ;;
1199
1200  *=*)
1201    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1202    # Reject names that are not valid shell variable names.
1203    case $ac_envvar in #(
1204      '' | [0-9]* | *[!_$as_cr_alnum]* )
1205      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1206    esac
1207    eval $ac_envvar=\$ac_optarg
1208    export $ac_envvar ;;
1209
1210  *)
1211    # FIXME: should be removed in autoconf 3.0.
1212    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1213    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1215    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1216    ;;
1217
1218  esac
1219done
1220
1221if test -n "$ac_prev"; then
1222  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1223  as_fn_error $? "missing argument to $ac_option"
1224fi
1225
1226if test -n "$ac_unrecognized_opts"; then
1227  case $enable_option_checking in
1228    no) ;;
1229    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1230    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231  esac
1232fi
1233
1234# Check all directory arguments for consistency.
1235for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236		datadir sysconfdir sharedstatedir localstatedir includedir \
1237		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238		libdir localedir mandir runstatedir
1239do
1240  eval ac_val=\$$ac_var
1241  # Remove trailing slashes.
1242  case $ac_val in
1243    */ )
1244      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1245      eval $ac_var=\$ac_val;;
1246  esac
1247  # Be sure to have absolute directory names.
1248  case $ac_val in
1249    [\\/$]* | ?:[\\/]* )  continue;;
1250    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251  esac
1252  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1253done
1254
1255# There might be people who depend on the old broken behavior: `$host'
1256# used to hold the argument of --host etc.
1257# FIXME: To remove some day.
1258build=$build_alias
1259host=$host_alias
1260target=$target_alias
1261
1262# FIXME: To remove some day.
1263if test "x$host_alias" != x; then
1264  if test "x$build_alias" = x; then
1265    cross_compiling=maybe
1266  elif test "x$build_alias" != "x$host_alias"; then
1267    cross_compiling=yes
1268  fi
1269fi
1270
1271ac_tool_prefix=
1272test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273
1274test "$silent" = yes && exec 6>/dev/null
1275
1276
1277ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278ac_ls_di=`ls -di .` &&
1279ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280  as_fn_error $? "working directory cannot be determined"
1281test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282  as_fn_error $? "pwd does not report name of working directory"
1283
1284
1285# Find the source files, if location was not specified.
1286if test -z "$srcdir"; then
1287  ac_srcdir_defaulted=yes
1288  # Try the directory containing this script, then the parent directory.
1289  ac_confdir=`$as_dirname -- "$as_myself" ||
1290$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291	 X"$as_myself" : 'X\(//\)[^/]' \| \
1292	 X"$as_myself" : 'X\(//\)$' \| \
1293	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1294printf "%s\n" X"$as_myself" |
1295    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296	    s//\1/
1297	    q
1298	  }
1299	  /^X\(\/\/\)[^/].*/{
1300	    s//\1/
1301	    q
1302	  }
1303	  /^X\(\/\/\)$/{
1304	    s//\1/
1305	    q
1306	  }
1307	  /^X\(\/\).*/{
1308	    s//\1/
1309	    q
1310	  }
1311	  s/.*/./; q'`
1312  srcdir=$ac_confdir
1313  if test ! -r "$srcdir/$ac_unique_file"; then
1314    srcdir=..
1315  fi
1316else
1317  ac_srcdir_defaulted=no
1318fi
1319if test ! -r "$srcdir/$ac_unique_file"; then
1320  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1321  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1322fi
1323ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324ac_abs_confdir=`(
1325	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1326	pwd)`
1327# When building in place, set srcdir=.
1328if test "$ac_abs_confdir" = "$ac_pwd"; then
1329  srcdir=.
1330fi
1331# Remove unnecessary trailing slashes from srcdir.
1332# Double slashes in file names in object file debugging info
1333# mess up M-x gdb in Emacs.
1334case $srcdir in
1335*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336esac
1337for ac_var in $ac_precious_vars; do
1338  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339  eval ac_env_${ac_var}_value=\$${ac_var}
1340  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342done
1343
1344#
1345# Report the --help message.
1346#
1347if test "$ac_init_help" = "long"; then
1348  # Omit some internal or obsolete options to make the list less imposing.
1349  # This message is too long to be a string in the A/UX 3.1 sh.
1350  cat <<_ACEOF
1351\`configure' configures xcalc 1.1.1 to adapt to many kinds of systems.
1352
1353Usage: $0 [OPTION]... [VAR=VALUE]...
1354
1355To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356VAR=VALUE.  See below for descriptions of some of the useful variables.
1357
1358Defaults for the options are specified in brackets.
1359
1360Configuration:
1361  -h, --help              display this help and exit
1362      --help=short        display options specific to this package
1363      --help=recursive    display the short help of all the included packages
1364  -V, --version           display version information and exit
1365  -q, --quiet, --silent   do not print \`checking ...' messages
1366      --cache-file=FILE   cache test results in FILE [disabled]
1367  -C, --config-cache      alias for \`--cache-file=config.cache'
1368  -n, --no-create         do not create output files
1369      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1370
1371Installation directories:
1372  --prefix=PREFIX         install architecture-independent files in PREFIX
1373                          [$ac_default_prefix]
1374  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1375                          [PREFIX]
1376
1377By default, \`make install' will install all the files in
1378\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1379an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1380for instance \`--prefix=\$HOME'.
1381
1382For better control, use the options below.
1383
1384Fine tuning of the installation directories:
1385  --bindir=DIR            user executables [EPREFIX/bin]
1386  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1387  --libexecdir=DIR        program executables [EPREFIX/libexec]
1388  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1389  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1390  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1391  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1392  --libdir=DIR            object code libraries [EPREFIX/lib]
1393  --includedir=DIR        C header files [PREFIX/include]
1394  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1395  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1396  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1397  --infodir=DIR           info documentation [DATAROOTDIR/info]
1398  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1399  --mandir=DIR            man documentation [DATAROOTDIR/man]
1400  --docdir=DIR            documentation root [DATAROOTDIR/doc/xcalc]
1401  --htmldir=DIR           html documentation [DOCDIR]
1402  --dvidir=DIR            dvi documentation [DOCDIR]
1403  --pdfdir=DIR            pdf documentation [DOCDIR]
1404  --psdir=DIR             ps documentation [DOCDIR]
1405_ACEOF
1406
1407  cat <<\_ACEOF
1408
1409Program names:
1410  --program-prefix=PREFIX            prepend PREFIX to installed program names
1411  --program-suffix=SUFFIX            append SUFFIX to installed program names
1412  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1413
1414System types:
1415  --build=BUILD     configure for building on BUILD [guessed]
1416  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1417_ACEOF
1418fi
1419
1420if test -n "$ac_init_help"; then
1421  case $ac_init_help in
1422     short | recursive ) echo "Configuration of xcalc 1.1.1:";;
1423   esac
1424  cat <<\_ACEOF
1425
1426Optional Features:
1427  --disable-option-checking  ignore unrecognized --enable/--with options
1428  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1429  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1430  --enable-silent-rules   less verbose build output (undo: "make V=1")
1431  --disable-silent-rules  verbose build output (undo: "make V=0")
1432  --enable-dependency-tracking
1433                          do not reject slow dependency extractors
1434  --disable-dependency-tracking
1435                          speeds up one-time build
1436  --disable-selective-werror
1437                          Turn off selective compiler errors. (default:
1438                          enabled)
1439  --enable-strict-compilation
1440                          Enable all warnings from compiler and make them
1441                          errors (default: disabled)
1442
1443Optional Packages:
1444  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1445  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1446  --with-appdefaultdir=<pathname>
1447                          specify directory for app-defaults files (default is
1448                          autodetected)
1449
1450Some influential environment variables:
1451  CC          C compiler command
1452  CFLAGS      C compiler flags
1453  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1454              nonstandard directory <lib dir>
1455  LIBS        libraries to pass to the linker, e.g. -l<library>
1456  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1457              you have headers in a nonstandard directory <include dir>
1458  PKG_CONFIG  path to pkg-config utility
1459  PKG_CONFIG_PATH
1460              directories to add to pkg-config's search path
1461  PKG_CONFIG_LIBDIR
1462              path overriding pkg-config's built-in search path
1463  XCALC_CFLAGS
1464              C compiler flags for XCALC, overriding pkg-config
1465  XCALC_LIBS  linker flags for XCALC, overriding pkg-config
1466  APPDEFS_CFLAGS
1467              C compiler flags for APPDEFS, overriding pkg-config
1468  APPDEFS_LIBS
1469              linker flags for APPDEFS, overriding pkg-config
1470
1471Use these variables to override the choices made by `configure' or to help
1472it to find libraries and programs with nonstandard names/locations.
1473
1474Report bugs to <https://gitlab.freedesktop.org/xorg/app/xcalc/issues>.
1475_ACEOF
1476ac_status=$?
1477fi
1478
1479if test "$ac_init_help" = "recursive"; then
1480  # If there are subdirs, report their specific --help.
1481  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482    test -d "$ac_dir" ||
1483      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484      continue
1485    ac_builddir=.
1486
1487case "$ac_dir" in
1488.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489*)
1490  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1491  # A ".." for each directory in $ac_dir_suffix.
1492  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493  case $ac_top_builddir_sub in
1494  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496  esac ;;
1497esac
1498ac_abs_top_builddir=$ac_pwd
1499ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500# for backward compatibility:
1501ac_top_builddir=$ac_top_build_prefix
1502
1503case $srcdir in
1504  .)  # We are building in place.
1505    ac_srcdir=.
1506    ac_top_srcdir=$ac_top_builddir_sub
1507    ac_abs_top_srcdir=$ac_pwd ;;
1508  [\\/]* | ?:[\\/]* )  # Absolute name.
1509    ac_srcdir=$srcdir$ac_dir_suffix;
1510    ac_top_srcdir=$srcdir
1511    ac_abs_top_srcdir=$srcdir ;;
1512  *) # Relative name.
1513    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514    ac_top_srcdir=$ac_top_build_prefix$srcdir
1515    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516esac
1517ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519    cd "$ac_dir" || { ac_status=$?; continue; }
1520    # Check for configure.gnu first; this name is used for a wrapper for
1521    # Metaconfig's "Configure" on case-insensitive file systems.
1522    if test -f "$ac_srcdir/configure.gnu"; then
1523      echo &&
1524      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525    elif test -f "$ac_srcdir/configure"; then
1526      echo &&
1527      $SHELL "$ac_srcdir/configure" --help=recursive
1528    else
1529      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530    fi || ac_status=$?
1531    cd "$ac_pwd" || { ac_status=$?; break; }
1532  done
1533fi
1534
1535test -n "$ac_init_help" && exit $ac_status
1536if $ac_init_version; then
1537  cat <<\_ACEOF
1538xcalc configure 1.1.1
1539generated by GNU Autoconf 2.71
1540
1541Copyright (C) 2021 Free Software Foundation, Inc.
1542This configure script is free software; the Free Software Foundation
1543gives unlimited permission to copy, distribute and modify it.
1544_ACEOF
1545  exit
1546fi
1547
1548## ------------------------ ##
1549## Autoconf initialization. ##
1550## ------------------------ ##
1551
1552# ac_fn_c_try_compile LINENO
1553# --------------------------
1554# Try to compile conftest.$ac_ext, and return whether this succeeded.
1555ac_fn_c_try_compile ()
1556{
1557  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558  rm -f conftest.$ac_objext conftest.beam
1559  if { { ac_try="$ac_compile"
1560case "(($ac_try" in
1561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562  *) ac_try_echo=$ac_try;;
1563esac
1564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565printf "%s\n" "$ac_try_echo"; } >&5
1566  (eval "$ac_compile") 2>conftest.err
1567  ac_status=$?
1568  if test -s conftest.err; then
1569    grep -v '^ *+' conftest.err >conftest.er1
1570    cat conftest.er1 >&5
1571    mv -f conftest.er1 conftest.err
1572  fi
1573  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574  test $ac_status = 0; } && {
1575	 test -z "$ac_c_werror_flag" ||
1576	 test ! -s conftest.err
1577       } && test -s conftest.$ac_objext
1578then :
1579  ac_retval=0
1580else $as_nop
1581  printf "%s\n" "$as_me: failed program was:" >&5
1582sed 's/^/| /' conftest.$ac_ext >&5
1583
1584	ac_retval=1
1585fi
1586  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587  as_fn_set_status $ac_retval
1588
1589} # ac_fn_c_try_compile
1590
1591# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1592# ------------------------------------------------------------------
1593# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1594# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1595ac_fn_check_decl ()
1596{
1597  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598  as_decl_name=`echo $2|sed 's/ *(.*//'`
1599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1600printf %s "checking whether $as_decl_name is declared... " >&6; }
1601if eval test \${$3+y}
1602then :
1603  printf %s "(cached) " >&6
1604else $as_nop
1605  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1606  eval ac_save_FLAGS=\$$6
1607  as_fn_append $6 " $5"
1608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609/* end confdefs.h.  */
1610$4
1611int
1612main (void)
1613{
1614#ifndef $as_decl_name
1615#ifdef __cplusplus
1616  (void) $as_decl_use;
1617#else
1618  (void) $as_decl_name;
1619#endif
1620#endif
1621
1622  ;
1623  return 0;
1624}
1625_ACEOF
1626if ac_fn_c_try_compile "$LINENO"
1627then :
1628  eval "$3=yes"
1629else $as_nop
1630  eval "$3=no"
1631fi
1632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1633  eval $6=\$ac_save_FLAGS
1634
1635fi
1636eval ac_res=\$$3
1637	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638printf "%s\n" "$ac_res" >&6; }
1639  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640
1641} # ac_fn_check_decl
1642
1643# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1644# -------------------------------------------------------
1645# Tests whether HEADER exists and can be compiled using the include files in
1646# INCLUDES, setting the cache variable VAR accordingly.
1647ac_fn_c_check_header_compile ()
1648{
1649  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651printf %s "checking for $2... " >&6; }
1652if eval test \${$3+y}
1653then :
1654  printf %s "(cached) " >&6
1655else $as_nop
1656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657/* end confdefs.h.  */
1658$4
1659#include <$2>
1660_ACEOF
1661if ac_fn_c_try_compile "$LINENO"
1662then :
1663  eval "$3=yes"
1664else $as_nop
1665  eval "$3=no"
1666fi
1667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1668fi
1669eval ac_res=\$$3
1670	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671printf "%s\n" "$ac_res" >&6; }
1672  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673
1674} # ac_fn_c_check_header_compile
1675
1676# ac_fn_c_try_link LINENO
1677# -----------------------
1678# Try to link conftest.$ac_ext, and return whether this succeeded.
1679ac_fn_c_try_link ()
1680{
1681  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1683  if { { ac_try="$ac_link"
1684case "(($ac_try" in
1685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686  *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689printf "%s\n" "$ac_try_echo"; } >&5
1690  (eval "$ac_link") 2>conftest.err
1691  ac_status=$?
1692  if test -s conftest.err; then
1693    grep -v '^ *+' conftest.err >conftest.er1
1694    cat conftest.er1 >&5
1695    mv -f conftest.er1 conftest.err
1696  fi
1697  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698  test $ac_status = 0; } && {
1699	 test -z "$ac_c_werror_flag" ||
1700	 test ! -s conftest.err
1701       } && test -s conftest$ac_exeext && {
1702	 test "$cross_compiling" = yes ||
1703	 test -x conftest$ac_exeext
1704       }
1705then :
1706  ac_retval=0
1707else $as_nop
1708  printf "%s\n" "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711	ac_retval=1
1712fi
1713  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1714  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1715  # interfere with the next link command; also delete a directory that is
1716  # left behind by Apple's compiler.  We do this before executing the actions.
1717  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719  as_fn_set_status $ac_retval
1720
1721} # ac_fn_c_try_link
1722
1723# ac_fn_c_check_func LINENO FUNC VAR
1724# ----------------------------------
1725# Tests whether FUNC exists, setting the cache variable VAR accordingly
1726ac_fn_c_check_func ()
1727{
1728  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730printf %s "checking for $2... " >&6; }
1731if eval test \${$3+y}
1732then :
1733  printf %s "(cached) " >&6
1734else $as_nop
1735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736/* end confdefs.h.  */
1737/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1738   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1739#define $2 innocuous_$2
1740
1741/* System header to define __stub macros and hopefully few prototypes,
1742   which can conflict with char $2 (); below.  */
1743
1744#include <limits.h>
1745#undef $2
1746
1747/* Override any GCC internal prototype to avoid an error.
1748   Use char because int might match the return type of a GCC
1749   builtin and then its argument prototype would still apply.  */
1750#ifdef __cplusplus
1751extern "C"
1752#endif
1753char $2 ();
1754/* The GNU C library defines this for functions which it implements
1755    to always fail with ENOSYS.  Some functions are actually named
1756    something starting with __ and the normal name is an alias.  */
1757#if defined __stub_$2 || defined __stub___$2
1758choke me
1759#endif
1760
1761int
1762main (void)
1763{
1764return $2 ();
1765  ;
1766  return 0;
1767}
1768_ACEOF
1769if ac_fn_c_try_link "$LINENO"
1770then :
1771  eval "$3=yes"
1772else $as_nop
1773  eval "$3=no"
1774fi
1775rm -f core conftest.err conftest.$ac_objext conftest.beam \
1776    conftest$ac_exeext conftest.$ac_ext
1777fi
1778eval ac_res=\$$3
1779	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780printf "%s\n" "$ac_res" >&6; }
1781  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783} # ac_fn_c_check_func
1784ac_configure_args_raw=
1785for ac_arg
1786do
1787  case $ac_arg in
1788  *\'*)
1789    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1790  esac
1791  as_fn_append ac_configure_args_raw " '$ac_arg'"
1792done
1793
1794case $ac_configure_args_raw in
1795  *$as_nl*)
1796    ac_safe_unquote= ;;
1797  *)
1798    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1799    ac_unsafe_a="$ac_unsafe_z#~"
1800    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1801    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1802esac
1803
1804cat >config.log <<_ACEOF
1805This file contains any messages produced by compilers while
1806running configure, to aid debugging if configure makes a mistake.
1807
1808It was created by xcalc $as_me 1.1.1, which was
1809generated by GNU Autoconf 2.71.  Invocation command line was
1810
1811  $ $0$ac_configure_args_raw
1812
1813_ACEOF
1814exec 5>>config.log
1815{
1816cat <<_ASUNAME
1817## --------- ##
1818## Platform. ##
1819## --------- ##
1820
1821hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1822uname -m = `(uname -m) 2>/dev/null || echo unknown`
1823uname -r = `(uname -r) 2>/dev/null || echo unknown`
1824uname -s = `(uname -s) 2>/dev/null || echo unknown`
1825uname -v = `(uname -v) 2>/dev/null || echo unknown`
1826
1827/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1828/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1829
1830/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1831/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1832/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1833/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1834/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1835/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1836/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1837
1838_ASUNAME
1839
1840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841for as_dir in $PATH
1842do
1843  IFS=$as_save_IFS
1844  case $as_dir in #(((
1845    '') as_dir=./ ;;
1846    */) ;;
1847    *) as_dir=$as_dir/ ;;
1848  esac
1849    printf "%s\n" "PATH: $as_dir"
1850  done
1851IFS=$as_save_IFS
1852
1853} >&5
1854
1855cat >&5 <<_ACEOF
1856
1857
1858## ----------- ##
1859## Core tests. ##
1860## ----------- ##
1861
1862_ACEOF
1863
1864
1865# Keep a trace of the command line.
1866# Strip out --no-create and --no-recursion so they do not pile up.
1867# Strip out --silent because we don't want to record it for future runs.
1868# Also quote any args containing shell meta-characters.
1869# Make two passes to allow for proper duplicate-argument suppression.
1870ac_configure_args=
1871ac_configure_args0=
1872ac_configure_args1=
1873ac_must_keep_next=false
1874for ac_pass in 1 2
1875do
1876  for ac_arg
1877  do
1878    case $ac_arg in
1879    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1880    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1881    | -silent | --silent | --silen | --sile | --sil)
1882      continue ;;
1883    *\'*)
1884      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1885    esac
1886    case $ac_pass in
1887    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1888    2)
1889      as_fn_append ac_configure_args1 " '$ac_arg'"
1890      if test $ac_must_keep_next = true; then
1891	ac_must_keep_next=false # Got value, back to normal.
1892      else
1893	case $ac_arg in
1894	  *=* | --config-cache | -C | -disable-* | --disable-* \
1895	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1896	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1897	  | -with-* | --with-* | -without-* | --without-* | --x)
1898	    case "$ac_configure_args0 " in
1899	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1900	    esac
1901	    ;;
1902	  -* ) ac_must_keep_next=true ;;
1903	esac
1904      fi
1905      as_fn_append ac_configure_args " '$ac_arg'"
1906      ;;
1907    esac
1908  done
1909done
1910{ ac_configure_args0=; unset ac_configure_args0;}
1911{ ac_configure_args1=; unset ac_configure_args1;}
1912
1913# When interrupted or exit'd, cleanup temporary files, and complete
1914# config.log.  We remove comments because anyway the quotes in there
1915# would cause problems or look ugly.
1916# WARNING: Use '\'' to represent an apostrophe within the trap.
1917# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1918trap 'exit_status=$?
1919  # Sanitize IFS.
1920  IFS=" ""	$as_nl"
1921  # Save into config.log some information that might help in debugging.
1922  {
1923    echo
1924
1925    printf "%s\n" "## ---------------- ##
1926## Cache variables. ##
1927## ---------------- ##"
1928    echo
1929    # The following way of writing the cache mishandles newlines in values,
1930(
1931  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1932    eval ac_val=\$$ac_var
1933    case $ac_val in #(
1934    *${as_nl}*)
1935      case $ac_var in #(
1936      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1937printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1938      esac
1939      case $ac_var in #(
1940      _ | IFS | as_nl) ;; #(
1941      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1942      *) { eval $ac_var=; unset $ac_var;} ;;
1943      esac ;;
1944    esac
1945  done
1946  (set) 2>&1 |
1947    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1948    *${as_nl}ac_space=\ *)
1949      sed -n \
1950	"s/'\''/'\''\\\\'\'''\''/g;
1951	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1952      ;; #(
1953    *)
1954      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1955      ;;
1956    esac |
1957    sort
1958)
1959    echo
1960
1961    printf "%s\n" "## ----------------- ##
1962## Output variables. ##
1963## ----------------- ##"
1964    echo
1965    for ac_var in $ac_subst_vars
1966    do
1967      eval ac_val=\$$ac_var
1968      case $ac_val in
1969      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1970      esac
1971      printf "%s\n" "$ac_var='\''$ac_val'\''"
1972    done | sort
1973    echo
1974
1975    if test -n "$ac_subst_files"; then
1976      printf "%s\n" "## ------------------- ##
1977## File substitutions. ##
1978## ------------------- ##"
1979      echo
1980      for ac_var in $ac_subst_files
1981      do
1982	eval ac_val=\$$ac_var
1983	case $ac_val in
1984	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1985	esac
1986	printf "%s\n" "$ac_var='\''$ac_val'\''"
1987      done | sort
1988      echo
1989    fi
1990
1991    if test -s confdefs.h; then
1992      printf "%s\n" "## ----------- ##
1993## confdefs.h. ##
1994## ----------- ##"
1995      echo
1996      cat confdefs.h
1997      echo
1998    fi
1999    test "$ac_signal" != 0 &&
2000      printf "%s\n" "$as_me: caught signal $ac_signal"
2001    printf "%s\n" "$as_me: exit $exit_status"
2002  } >&5
2003  rm -f core *.core core.conftest.* &&
2004    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2005    exit $exit_status
2006' 0
2007for ac_signal in 1 2 13 15; do
2008  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2009done
2010ac_signal=0
2011
2012# confdefs.h avoids OS command line length limits that DEFS can exceed.
2013rm -f -r conftest* confdefs.h
2014
2015printf "%s\n" "/* confdefs.h */" > confdefs.h
2016
2017# Predefined preprocessor variables.
2018
2019printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2020
2021printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2022
2023printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2024
2025printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2026
2027printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2028
2029printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2030
2031
2032# Let the site file select an alternate cache file if it wants to.
2033# Prefer an explicitly selected file to automatically selected ones.
2034if test -n "$CONFIG_SITE"; then
2035  ac_site_files="$CONFIG_SITE"
2036elif test "x$prefix" != xNONE; then
2037  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2038else
2039  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2040fi
2041
2042for ac_site_file in $ac_site_files
2043do
2044  case $ac_site_file in #(
2045  */*) :
2046     ;; #(
2047  *) :
2048    ac_site_file=./$ac_site_file ;;
2049esac
2050  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2051    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2052printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2053    sed 's/^/| /' "$ac_site_file" >&5
2054    . "$ac_site_file" \
2055      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2056printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2057as_fn_error $? "failed to load site script $ac_site_file
2058See \`config.log' for more details" "$LINENO" 5; }
2059  fi
2060done
2061
2062if test -r "$cache_file"; then
2063  # Some versions of bash will fail to source /dev/null (special files
2064  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2065  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2066    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2067printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2068    case $cache_file in
2069      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2070      *)                      . "./$cache_file";;
2071    esac
2072  fi
2073else
2074  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2075printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2076  >$cache_file
2077fi
2078
2079# Test code for whether the C compiler supports C89 (global declarations)
2080ac_c_conftest_c89_globals='
2081/* Does the compiler advertise C89 conformance?
2082   Do not test the value of __STDC__, because some compilers set it to 0
2083   while being otherwise adequately conformant. */
2084#if !defined __STDC__
2085# error "Compiler does not advertise C89 conformance"
2086#endif
2087
2088#include <stddef.h>
2089#include <stdarg.h>
2090struct stat;
2091/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2092struct buf { int x; };
2093struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2094static char *e (p, i)
2095     char **p;
2096     int i;
2097{
2098  return p[i];
2099}
2100static char *f (char * (*g) (char **, int), char **p, ...)
2101{
2102  char *s;
2103  va_list v;
2104  va_start (v,p);
2105  s = g (p, va_arg (v,int));
2106  va_end (v);
2107  return s;
2108}
2109
2110/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2111   function prototypes and stuff, but not \xHH hex character constants.
2112   These do not provoke an error unfortunately, instead are silently treated
2113   as an "x".  The following induces an error, until -std is added to get
2114   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2115   array size at least.  It is necessary to write \x00 == 0 to get something
2116   that is true only with -std.  */
2117int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2118
2119/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2120   inside strings and character constants.  */
2121#define FOO(x) '\''x'\''
2122int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2123
2124int test (int i, double x);
2125struct s1 {int (*f) (int a);};
2126struct s2 {int (*f) (double a);};
2127int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2128               int, int);'
2129
2130# Test code for whether the C compiler supports C89 (body of main).
2131ac_c_conftest_c89_main='
2132ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2133'
2134
2135# Test code for whether the C compiler supports C99 (global declarations)
2136ac_c_conftest_c99_globals='
2137// Does the compiler advertise C99 conformance?
2138#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2139# error "Compiler does not advertise C99 conformance"
2140#endif
2141
2142#include <stdbool.h>
2143extern int puts (const char *);
2144extern int printf (const char *, ...);
2145extern int dprintf (int, const char *, ...);
2146extern void *malloc (size_t);
2147
2148// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2149// dprintf is used instead of fprintf to avoid needing to declare
2150// FILE and stderr.
2151#define debug(...) dprintf (2, __VA_ARGS__)
2152#define showlist(...) puts (#__VA_ARGS__)
2153#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2154static void
2155test_varargs_macros (void)
2156{
2157  int x = 1234;
2158  int y = 5678;
2159  debug ("Flag");
2160  debug ("X = %d\n", x);
2161  showlist (The first, second, and third items.);
2162  report (x>y, "x is %d but y is %d", x, y);
2163}
2164
2165// Check long long types.
2166#define BIG64 18446744073709551615ull
2167#define BIG32 4294967295ul
2168#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2169#if !BIG_OK
2170  #error "your preprocessor is broken"
2171#endif
2172#if BIG_OK
2173#else
2174  #error "your preprocessor is broken"
2175#endif
2176static long long int bignum = -9223372036854775807LL;
2177static unsigned long long int ubignum = BIG64;
2178
2179struct incomplete_array
2180{
2181  int datasize;
2182  double data[];
2183};
2184
2185struct named_init {
2186  int number;
2187  const wchar_t *name;
2188  double average;
2189};
2190
2191typedef const char *ccp;
2192
2193static inline int
2194test_restrict (ccp restrict text)
2195{
2196  // See if C++-style comments work.
2197  // Iterate through items via the restricted pointer.
2198  // Also check for declarations in for loops.
2199  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2200    continue;
2201  return 0;
2202}
2203
2204// Check varargs and va_copy.
2205static bool
2206test_varargs (const char *format, ...)
2207{
2208  va_list args;
2209  va_start (args, format);
2210  va_list args_copy;
2211  va_copy (args_copy, args);
2212
2213  const char *str = "";
2214  int number = 0;
2215  float fnumber = 0;
2216
2217  while (*format)
2218    {
2219      switch (*format++)
2220	{
2221	case '\''s'\'': // string
2222	  str = va_arg (args_copy, const char *);
2223	  break;
2224	case '\''d'\'': // int
2225	  number = va_arg (args_copy, int);
2226	  break;
2227	case '\''f'\'': // float
2228	  fnumber = va_arg (args_copy, double);
2229	  break;
2230	default:
2231	  break;
2232	}
2233    }
2234  va_end (args_copy);
2235  va_end (args);
2236
2237  return *str && number && fnumber;
2238}
2239'
2240
2241# Test code for whether the C compiler supports C99 (body of main).
2242ac_c_conftest_c99_main='
2243  // Check bool.
2244  _Bool success = false;
2245  success |= (argc != 0);
2246
2247  // Check restrict.
2248  if (test_restrict ("String literal") == 0)
2249    success = true;
2250  char *restrict newvar = "Another string";
2251
2252  // Check varargs.
2253  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2254  test_varargs_macros ();
2255
2256  // Check flexible array members.
2257  struct incomplete_array *ia =
2258    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2259  ia->datasize = 10;
2260  for (int i = 0; i < ia->datasize; ++i)
2261    ia->data[i] = i * 1.234;
2262
2263  // Check named initializers.
2264  struct named_init ni = {
2265    .number = 34,
2266    .name = L"Test wide string",
2267    .average = 543.34343,
2268  };
2269
2270  ni.number = 58;
2271
2272  int dynamic_array[ni.number];
2273  dynamic_array[0] = argv[0][0];
2274  dynamic_array[ni.number - 1] = 543;
2275
2276  // work around unused variable warnings
2277  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2278	 || dynamic_array[ni.number - 1] != 543);
2279'
2280
2281# Test code for whether the C compiler supports C11 (global declarations)
2282ac_c_conftest_c11_globals='
2283// Does the compiler advertise C11 conformance?
2284#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2285# error "Compiler does not advertise C11 conformance"
2286#endif
2287
2288// Check _Alignas.
2289char _Alignas (double) aligned_as_double;
2290char _Alignas (0) no_special_alignment;
2291extern char aligned_as_int;
2292char _Alignas (0) _Alignas (int) aligned_as_int;
2293
2294// Check _Alignof.
2295enum
2296{
2297  int_alignment = _Alignof (int),
2298  int_array_alignment = _Alignof (int[100]),
2299  char_alignment = _Alignof (char)
2300};
2301_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2302
2303// Check _Noreturn.
2304int _Noreturn does_not_return (void) { for (;;) continue; }
2305
2306// Check _Static_assert.
2307struct test_static_assert
2308{
2309  int x;
2310  _Static_assert (sizeof (int) <= sizeof (long int),
2311                  "_Static_assert does not work in struct");
2312  long int y;
2313};
2314
2315// Check UTF-8 literals.
2316#define u8 syntax error!
2317char const utf8_literal[] = u8"happens to be ASCII" "another string";
2318
2319// Check duplicate typedefs.
2320typedef long *long_ptr;
2321typedef long int *long_ptr;
2322typedef long_ptr long_ptr;
2323
2324// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2325struct anonymous
2326{
2327  union {
2328    struct { int i; int j; };
2329    struct { int k; long int l; } w;
2330  };
2331  int m;
2332} v1;
2333'
2334
2335# Test code for whether the C compiler supports C11 (body of main).
2336ac_c_conftest_c11_main='
2337  _Static_assert ((offsetof (struct anonymous, i)
2338		   == offsetof (struct anonymous, w.k)),
2339		  "Anonymous union alignment botch");
2340  v1.i = 2;
2341  v1.w.k = 5;
2342  ok |= v1.i != 5;
2343'
2344
2345# Test code for whether the C compiler supports C11 (complete).
2346ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2347${ac_c_conftest_c99_globals}
2348${ac_c_conftest_c11_globals}
2349
2350int
2351main (int argc, char **argv)
2352{
2353  int ok = 0;
2354  ${ac_c_conftest_c89_main}
2355  ${ac_c_conftest_c99_main}
2356  ${ac_c_conftest_c11_main}
2357  return ok;
2358}
2359"
2360
2361# Test code for whether the C compiler supports C99 (complete).
2362ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2363${ac_c_conftest_c99_globals}
2364
2365int
2366main (int argc, char **argv)
2367{
2368  int ok = 0;
2369  ${ac_c_conftest_c89_main}
2370  ${ac_c_conftest_c99_main}
2371  return ok;
2372}
2373"
2374
2375# Test code for whether the C compiler supports C89 (complete).
2376ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2377
2378int
2379main (int argc, char **argv)
2380{
2381  int ok = 0;
2382  ${ac_c_conftest_c89_main}
2383  return ok;
2384}
2385"
2386
2387as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2388as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2389as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2390as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2391as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2392as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2393as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2394as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2395as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2396
2397# Auxiliary files required by this configure script.
2398ac_aux_files="config.guess config.sub compile missing install-sh"
2399
2400# Locations in which to look for auxiliary files.
2401ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2402
2403# Search for a directory containing all of the required auxiliary files,
2404# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2405# If we don't find one directory that contains all the files we need,
2406# we report the set of missing files from the *first* directory in
2407# $ac_aux_dir_candidates and give up.
2408ac_missing_aux_files=""
2409ac_first_candidate=:
2410printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412as_found=false
2413for as_dir in $ac_aux_dir_candidates
2414do
2415  IFS=$as_save_IFS
2416  case $as_dir in #(((
2417    '') as_dir=./ ;;
2418    */) ;;
2419    *) as_dir=$as_dir/ ;;
2420  esac
2421  as_found=:
2422
2423  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2424  ac_aux_dir_found=yes
2425  ac_install_sh=
2426  for ac_aux in $ac_aux_files
2427  do
2428    # As a special case, if "install-sh" is required, that requirement
2429    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2430    # and $ac_install_sh is set appropriately for whichever one is found.
2431    if test x"$ac_aux" = x"install-sh"
2432    then
2433      if test -f "${as_dir}install-sh"; then
2434        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2435        ac_install_sh="${as_dir}install-sh -c"
2436      elif test -f "${as_dir}install.sh"; then
2437        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2438        ac_install_sh="${as_dir}install.sh -c"
2439      elif test -f "${as_dir}shtool"; then
2440        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2441        ac_install_sh="${as_dir}shtool install -c"
2442      else
2443        ac_aux_dir_found=no
2444        if $ac_first_candidate; then
2445          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2446        else
2447          break
2448        fi
2449      fi
2450    else
2451      if test -f "${as_dir}${ac_aux}"; then
2452        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2453      else
2454        ac_aux_dir_found=no
2455        if $ac_first_candidate; then
2456          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2457        else
2458          break
2459        fi
2460      fi
2461    fi
2462  done
2463  if test "$ac_aux_dir_found" = yes; then
2464    ac_aux_dir="$as_dir"
2465    break
2466  fi
2467  ac_first_candidate=false
2468
2469  as_found=false
2470done
2471IFS=$as_save_IFS
2472if $as_found
2473then :
2474
2475else $as_nop
2476  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2477fi
2478
2479
2480# These three variables are undocumented and unsupported,
2481# and are intended to be withdrawn in a future Autoconf release.
2482# They can cause serious problems if a builder's source tree is in a directory
2483# whose full name contains unusual characters.
2484if test -f "${ac_aux_dir}config.guess"; then
2485  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2486fi
2487if test -f "${ac_aux_dir}config.sub"; then
2488  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2489fi
2490if test -f "$ac_aux_dir/configure"; then
2491  ac_configure="$SHELL ${ac_aux_dir}configure"
2492fi
2493
2494# Check that the precious variables saved in the cache have kept the same
2495# value.
2496ac_cache_corrupted=false
2497for ac_var in $ac_precious_vars; do
2498  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2499  eval ac_new_set=\$ac_env_${ac_var}_set
2500  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2501  eval ac_new_val=\$ac_env_${ac_var}_value
2502  case $ac_old_set,$ac_new_set in
2503    set,)
2504      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2505printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2506      ac_cache_corrupted=: ;;
2507    ,set)
2508      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2509printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2510      ac_cache_corrupted=: ;;
2511    ,);;
2512    *)
2513      if test "x$ac_old_val" != "x$ac_new_val"; then
2514	# differences in whitespace do not lead to failure.
2515	ac_old_val_w=`echo x $ac_old_val`
2516	ac_new_val_w=`echo x $ac_new_val`
2517	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2518	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2519printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2520	  ac_cache_corrupted=:
2521	else
2522	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2523printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2524	  eval $ac_var=\$ac_old_val
2525	fi
2526	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2527printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2528	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2529printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2530      fi;;
2531  esac
2532  # Pass precious variables to config.status.
2533  if test "$ac_new_set" = set; then
2534    case $ac_new_val in
2535    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2536    *) ac_arg=$ac_var=$ac_new_val ;;
2537    esac
2538    case " $ac_configure_args " in
2539      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2540      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2541    esac
2542  fi
2543done
2544if $ac_cache_corrupted; then
2545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2546printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2547  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2548printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2549  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2550	    and start over" "$LINENO" 5
2551fi
2552## -------------------- ##
2553## Main body of script. ##
2554## -------------------- ##
2555
2556ac_ext=c
2557ac_cpp='$CPP $CPPFLAGS'
2558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2560ac_compiler_gnu=$ac_cv_c_compiler_gnu
2561
2562
2563
2564ac_config_headers="$ac_config_headers config.h"
2565
2566
2567# Initialize Automake
2568am__api_version='1.16'
2569
2570
2571
2572  # Find a good install program.  We prefer a C program (faster),
2573# so one script is as good as another.  But avoid the broken or
2574# incompatible versions:
2575# SysV /etc/install, /usr/sbin/install
2576# SunOS /usr/etc/install
2577# IRIX /sbin/install
2578# AIX /bin/install
2579# AmigaOS /C/install, which installs bootblocks on floppy discs
2580# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2581# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2582# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2583# OS/2's system install, which has a completely different semantic
2584# ./install, which can be erroneously created by make from ./install.sh.
2585# Reject install programs that cannot install multiple files.
2586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2587printf %s "checking for a BSD-compatible install... " >&6; }
2588if test -z "$INSTALL"; then
2589if test ${ac_cv_path_install+y}
2590then :
2591  printf %s "(cached) " >&6
2592else $as_nop
2593  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594for as_dir in $PATH
2595do
2596  IFS=$as_save_IFS
2597  case $as_dir in #(((
2598    '') as_dir=./ ;;
2599    */) ;;
2600    *) as_dir=$as_dir/ ;;
2601  esac
2602    # Account for fact that we put trailing slashes in our PATH walk.
2603case $as_dir in #((
2604  ./ | /[cC]/* | \
2605  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2606  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2607  /usr/ucb/* ) ;;
2608  *)
2609    # OSF1 and SCO ODT 3.0 have their own names for install.
2610    # Don't use installbsd from OSF since it installs stuff as root
2611    # by default.
2612    for ac_prog in ginstall scoinst install; do
2613      for ac_exec_ext in '' $ac_executable_extensions; do
2614	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2615	  if test $ac_prog = install &&
2616	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2617	    # AIX install.  It has an incompatible calling convention.
2618	    :
2619	  elif test $ac_prog = install &&
2620	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2621	    # program-specific install script used by HP pwplus--don't use.
2622	    :
2623	  else
2624	    rm -rf conftest.one conftest.two conftest.dir
2625	    echo one > conftest.one
2626	    echo two > conftest.two
2627	    mkdir conftest.dir
2628	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2629	      test -s conftest.one && test -s conftest.two &&
2630	      test -s conftest.dir/conftest.one &&
2631	      test -s conftest.dir/conftest.two
2632	    then
2633	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2634	      break 3
2635	    fi
2636	  fi
2637	fi
2638      done
2639    done
2640    ;;
2641esac
2642
2643  done
2644IFS=$as_save_IFS
2645
2646rm -rf conftest.one conftest.two conftest.dir
2647
2648fi
2649  if test ${ac_cv_path_install+y}; then
2650    INSTALL=$ac_cv_path_install
2651  else
2652    # As a last resort, use the slow shell script.  Don't cache a
2653    # value for INSTALL within a source directory, because that will
2654    # break other packages using the cache if that directory is
2655    # removed, or if the value is a relative name.
2656    INSTALL=$ac_install_sh
2657  fi
2658fi
2659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2660printf "%s\n" "$INSTALL" >&6; }
2661
2662# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2663# It thinks the first close brace ends the variable substitution.
2664test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2665
2666test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2667
2668test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2669
2670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2671printf %s "checking whether build environment is sane... " >&6; }
2672# Reject unsafe characters in $srcdir or the absolute working directory
2673# name.  Accept space and tab only in the latter.
2674am_lf='
2675'
2676case `pwd` in
2677  *[\\\"\#\$\&\'\`$am_lf]*)
2678    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2679esac
2680case $srcdir in
2681  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2682    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2683esac
2684
2685# Do 'set' in a subshell so we don't clobber the current shell's
2686# arguments.  Must try -L first in case configure is actually a
2687# symlink; some systems play weird games with the mod time of symlinks
2688# (eg FreeBSD returns the mod time of the symlink's containing
2689# directory).
2690if (
2691   am_has_slept=no
2692   for am_try in 1 2; do
2693     echo "timestamp, slept: $am_has_slept" > conftest.file
2694     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2695     if test "$*" = "X"; then
2696	# -L didn't work.
2697	set X `ls -t "$srcdir/configure" conftest.file`
2698     fi
2699     if test "$*" != "X $srcdir/configure conftest.file" \
2700	&& test "$*" != "X conftest.file $srcdir/configure"; then
2701
2702	# If neither matched, then we have a broken ls.  This can happen
2703	# if, for instance, CONFIG_SHELL is bash and it inherits a
2704	# broken ls alias from the environment.  This has actually
2705	# happened.  Such a system could not be considered "sane".
2706	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2707  alias in your environment" "$LINENO" 5
2708     fi
2709     if test "$2" = conftest.file || test $am_try -eq 2; then
2710       break
2711     fi
2712     # Just in case.
2713     sleep 1
2714     am_has_slept=yes
2715   done
2716   test "$2" = conftest.file
2717   )
2718then
2719   # Ok.
2720   :
2721else
2722   as_fn_error $? "newly created file is older than distributed files!
2723Check your system clock" "$LINENO" 5
2724fi
2725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2726printf "%s\n" "yes" >&6; }
2727# If we didn't sleep, we still need to ensure time stamps of config.status and
2728# generated files are strictly newer.
2729am_sleep_pid=
2730if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2731  ( sleep 1 ) &
2732  am_sleep_pid=$!
2733fi
2734
2735rm -f conftest.file
2736
2737test "$program_prefix" != NONE &&
2738  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2739# Use a double $ so make ignores it.
2740test "$program_suffix" != NONE &&
2741  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2742# Double any \ or $.
2743# By default was `s,x,x', remove it if useless.
2744ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2745program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2746
2747
2748# Expand $ac_aux_dir to an absolute path.
2749am_aux_dir=`cd "$ac_aux_dir" && pwd`
2750
2751
2752  if test x"${MISSING+set}" != xset; then
2753  MISSING="\${SHELL} '$am_aux_dir/missing'"
2754fi
2755# Use eval to expand $SHELL
2756if eval "$MISSING --is-lightweight"; then
2757  am_missing_run="$MISSING "
2758else
2759  am_missing_run=
2760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2761printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2762fi
2763
2764if test x"${install_sh+set}" != xset; then
2765  case $am_aux_dir in
2766  *\ * | *\	*)
2767    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2768  *)
2769    install_sh="\${SHELL} $am_aux_dir/install-sh"
2770  esac
2771fi
2772
2773# Installed binaries are usually stripped using 'strip' when the user
2774# run "make install-strip".  However 'strip' might not be the right
2775# tool to use in cross-compilation environments, therefore Automake
2776# will honor the 'STRIP' environment variable to overrule this program.
2777if test "$cross_compiling" != no; then
2778  if test -n "$ac_tool_prefix"; then
2779  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2780set dummy ${ac_tool_prefix}strip; ac_word=$2
2781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782printf %s "checking for $ac_word... " >&6; }
2783if test ${ac_cv_prog_STRIP+y}
2784then :
2785  printf %s "(cached) " >&6
2786else $as_nop
2787  if test -n "$STRIP"; then
2788  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2789else
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793  IFS=$as_save_IFS
2794  case $as_dir in #(((
2795    '') as_dir=./ ;;
2796    */) ;;
2797    *) as_dir=$as_dir/ ;;
2798  esac
2799    for ac_exec_ext in '' $ac_executable_extensions; do
2800  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2801    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2802    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2803    break 2
2804  fi
2805done
2806  done
2807IFS=$as_save_IFS
2808
2809fi
2810fi
2811STRIP=$ac_cv_prog_STRIP
2812if test -n "$STRIP"; then
2813  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2814printf "%s\n" "$STRIP" >&6; }
2815else
2816  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817printf "%s\n" "no" >&6; }
2818fi
2819
2820
2821fi
2822if test -z "$ac_cv_prog_STRIP"; then
2823  ac_ct_STRIP=$STRIP
2824  # Extract the first word of "strip", so it can be a program name with args.
2825set dummy strip; ac_word=$2
2826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827printf %s "checking for $ac_word... " >&6; }
2828if test ${ac_cv_prog_ac_ct_STRIP+y}
2829then :
2830  printf %s "(cached) " >&6
2831else $as_nop
2832  if test -n "$ac_ct_STRIP"; then
2833  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2834else
2835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836for as_dir in $PATH
2837do
2838  IFS=$as_save_IFS
2839  case $as_dir in #(((
2840    '') as_dir=./ ;;
2841    */) ;;
2842    *) as_dir=$as_dir/ ;;
2843  esac
2844    for ac_exec_ext in '' $ac_executable_extensions; do
2845  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2846    ac_cv_prog_ac_ct_STRIP="strip"
2847    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2848    break 2
2849  fi
2850done
2851  done
2852IFS=$as_save_IFS
2853
2854fi
2855fi
2856ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2857if test -n "$ac_ct_STRIP"; then
2858  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2859printf "%s\n" "$ac_ct_STRIP" >&6; }
2860else
2861  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862printf "%s\n" "no" >&6; }
2863fi
2864
2865  if test "x$ac_ct_STRIP" = x; then
2866    STRIP=":"
2867  else
2868    case $cross_compiling:$ac_tool_warned in
2869yes:)
2870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2871printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2872ac_tool_warned=yes ;;
2873esac
2874    STRIP=$ac_ct_STRIP
2875  fi
2876else
2877  STRIP="$ac_cv_prog_STRIP"
2878fi
2879
2880fi
2881INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2882
2883
2884  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2885printf %s "checking for a race-free mkdir -p... " >&6; }
2886if test -z "$MKDIR_P"; then
2887  if test ${ac_cv_path_mkdir+y}
2888then :
2889  printf %s "(cached) " >&6
2890else $as_nop
2891  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2893do
2894  IFS=$as_save_IFS
2895  case $as_dir in #(((
2896    '') as_dir=./ ;;
2897    */) ;;
2898    *) as_dir=$as_dir/ ;;
2899  esac
2900    for ac_prog in mkdir gmkdir; do
2901	 for ac_exec_ext in '' $ac_executable_extensions; do
2902	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2903	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2904	     'mkdir ('*'coreutils) '* | \
2905	     'BusyBox '* | \
2906	     'mkdir (fileutils) '4.1*)
2907	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2908	       break 3;;
2909	   esac
2910	 done
2911       done
2912  done
2913IFS=$as_save_IFS
2914
2915fi
2916
2917  test -d ./--version && rmdir ./--version
2918  if test ${ac_cv_path_mkdir+y}; then
2919    MKDIR_P="$ac_cv_path_mkdir -p"
2920  else
2921    # As a last resort, use the slow shell script.  Don't cache a
2922    # value for MKDIR_P within a source directory, because that will
2923    # break other packages using the cache if that directory is
2924    # removed, or if the value is a relative name.
2925    MKDIR_P="$ac_install_sh -d"
2926  fi
2927fi
2928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2929printf "%s\n" "$MKDIR_P" >&6; }
2930
2931for ac_prog in gawk mawk nawk awk
2932do
2933  # Extract the first word of "$ac_prog", so it can be a program name with args.
2934set dummy $ac_prog; ac_word=$2
2935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936printf %s "checking for $ac_word... " >&6; }
2937if test ${ac_cv_prog_AWK+y}
2938then :
2939  printf %s "(cached) " >&6
2940else $as_nop
2941  if test -n "$AWK"; then
2942  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2943else
2944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945for as_dir in $PATH
2946do
2947  IFS=$as_save_IFS
2948  case $as_dir in #(((
2949    '') as_dir=./ ;;
2950    */) ;;
2951    *) as_dir=$as_dir/ ;;
2952  esac
2953    for ac_exec_ext in '' $ac_executable_extensions; do
2954  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2955    ac_cv_prog_AWK="$ac_prog"
2956    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2957    break 2
2958  fi
2959done
2960  done
2961IFS=$as_save_IFS
2962
2963fi
2964fi
2965AWK=$ac_cv_prog_AWK
2966if test -n "$AWK"; then
2967  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2968printf "%s\n" "$AWK" >&6; }
2969else
2970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971printf "%s\n" "no" >&6; }
2972fi
2973
2974
2975  test -n "$AWK" && break
2976done
2977
2978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2979printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2980set x ${MAKE-make}
2981ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2982if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2983then :
2984  printf %s "(cached) " >&6
2985else $as_nop
2986  cat >conftest.make <<\_ACEOF
2987SHELL = /bin/sh
2988all:
2989	@echo '@@@%%%=$(MAKE)=@@@%%%'
2990_ACEOF
2991# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2992case `${MAKE-make} -f conftest.make 2>/dev/null` in
2993  *@@@%%%=?*=@@@%%%*)
2994    eval ac_cv_prog_make_${ac_make}_set=yes;;
2995  *)
2996    eval ac_cv_prog_make_${ac_make}_set=no;;
2997esac
2998rm -f conftest.make
2999fi
3000if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3002printf "%s\n" "yes" >&6; }
3003  SET_MAKE=
3004else
3005  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006printf "%s\n" "no" >&6; }
3007  SET_MAKE="MAKE=${MAKE-make}"
3008fi
3009
3010rm -rf .tst 2>/dev/null
3011mkdir .tst 2>/dev/null
3012if test -d .tst; then
3013  am__leading_dot=.
3014else
3015  am__leading_dot=_
3016fi
3017rmdir .tst 2>/dev/null
3018
3019# Check whether --enable-silent-rules was given.
3020if test ${enable_silent_rules+y}
3021then :
3022  enableval=$enable_silent_rules;
3023fi
3024
3025case $enable_silent_rules in # (((
3026  yes) AM_DEFAULT_VERBOSITY=0;;
3027   no) AM_DEFAULT_VERBOSITY=1;;
3028    *) AM_DEFAULT_VERBOSITY=1;;
3029esac
3030am_make=${MAKE-make}
3031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3032printf %s "checking whether $am_make supports nested variables... " >&6; }
3033if test ${am_cv_make_support_nested_variables+y}
3034then :
3035  printf %s "(cached) " >&6
3036else $as_nop
3037  if printf "%s\n" 'TRUE=$(BAR$(V))
3038BAR0=false
3039BAR1=true
3040V=1
3041am__doit:
3042	@$(TRUE)
3043.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3044  am_cv_make_support_nested_variables=yes
3045else
3046  am_cv_make_support_nested_variables=no
3047fi
3048fi
3049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3050printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3051if test $am_cv_make_support_nested_variables = yes; then
3052    AM_V='$(V)'
3053  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3054else
3055  AM_V=$AM_DEFAULT_VERBOSITY
3056  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3057fi
3058AM_BACKSLASH='\'
3059
3060if test "`cd $srcdir && pwd`" != "`pwd`"; then
3061  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3062  # is not polluted with repeated "-I."
3063  am__isrc=' -I$(srcdir)'
3064  # test to see if srcdir already configured
3065  if test -f $srcdir/config.status; then
3066    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3067  fi
3068fi
3069
3070# test whether we have cygpath
3071if test -z "$CYGPATH_W"; then
3072  if (cygpath --version) >/dev/null 2>/dev/null; then
3073    CYGPATH_W='cygpath -w'
3074  else
3075    CYGPATH_W=echo
3076  fi
3077fi
3078
3079
3080# Define the identity of the package.
3081 PACKAGE='xcalc'
3082 VERSION='1.1.1'
3083
3084
3085printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3086
3087
3088printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3089
3090# Some tools Automake needs.
3091
3092ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3093
3094
3095AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3096
3097
3098AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3099
3100
3101AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3102
3103
3104MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3105
3106# For better backward compatibility.  To be removed once Automake 1.9.x
3107# dies out for good.  For more background, see:
3108# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3109# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3110mkdir_p='$(MKDIR_P)'
3111
3112# We need awk for the "check" target (and possibly the TAP driver).  The
3113# system "awk" is bad on some platforms.
3114# Always define AMTAR for backward compatibility.  Yes, it's still used
3115# in the wild :-(  We should find a proper way to deprecate it ...
3116AMTAR='$${TAR-tar}'
3117
3118
3119# We'll loop over all known methods to create a tar archive until one works.
3120_am_tools='gnutar  pax cpio none'
3121
3122am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3123
3124
3125
3126
3127
3128# Variables for tags utilities; see am/tags.am
3129if test -z "$CTAGS"; then
3130  CTAGS=ctags
3131fi
3132
3133if test -z "$ETAGS"; then
3134  ETAGS=etags
3135fi
3136
3137if test -z "$CSCOPE"; then
3138  CSCOPE=cscope
3139fi
3140
3141
3142
3143# POSIX will say in a future version that running "rm -f" with no argument
3144# is OK; and we want to be able to make that assumption in our Makefile
3145# recipes.  So use an aggressive probe to check that the usage we want is
3146# actually supported "in the wild" to an acceptable degree.
3147# See automake bug#10828.
3148# To make any issue more visible, cause the running configure to be aborted
3149# by default if the 'rm' program in use doesn't match our expectations; the
3150# user can still override this though.
3151if rm -f && rm -fr && rm -rf; then : OK; else
3152  cat >&2 <<'END'
3153Oops!
3154
3155Your 'rm' program seems unable to run without file operands specified
3156on the command line, even when the '-f' option is present.  This is contrary
3157to the behaviour of most rm programs out there, and not conforming with
3158the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3159
3160Please tell bug-automake@gnu.org about your system, including the value
3161of your $PATH and any error possibly output before this message.  This
3162can help us improve future automake versions.
3163
3164END
3165  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3166    echo 'Configuration will proceed anyway, since you have set the' >&2
3167    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3168    echo >&2
3169  else
3170    cat >&2 <<'END'
3171Aborting the configuration process, to ensure you take notice of the issue.
3172
3173You can download and install GNU coreutils to get an 'rm' implementation
3174that behaves properly: <https://www.gnu.org/software/coreutils/>.
3175
3176If you want to complete the configuration process using your problematic
3177'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3178to "yes", and re-run configure.
3179
3180END
3181    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3182  fi
3183fi
3184
3185
3186# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207DEPDIR="${am__leading_dot}deps"
3208
3209ac_config_commands="$ac_config_commands depfiles"
3210
3211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3212printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3213cat > confinc.mk << 'END'
3214am__doit:
3215	@echo this is the am__doit target >confinc.out
3216.PHONY: am__doit
3217END
3218am__include="#"
3219am__quote=
3220# BSD make does it like this.
3221echo '.include "confinc.mk" # ignored' > confmf.BSD
3222# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3223echo 'include confinc.mk # ignored' > confmf.GNU
3224_am_result=no
3225for s in GNU BSD; do
3226  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3227   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3228   ac_status=$?
3229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230   (exit $ac_status); }
3231  case $?:`cat confinc.out 2>/dev/null` in #(
3232  '0:this is the am__doit target') :
3233    case $s in #(
3234  BSD) :
3235    am__include='.include' am__quote='"' ;; #(
3236  *) :
3237    am__include='include' am__quote='' ;;
3238esac ;; #(
3239  *) :
3240     ;;
3241esac
3242  if test "$am__include" != "#"; then
3243    _am_result="yes ($s style)"
3244    break
3245  fi
3246done
3247rm -f confinc.* confmf.*
3248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3249printf "%s\n" "${_am_result}" >&6; }
3250
3251# Check whether --enable-dependency-tracking was given.
3252if test ${enable_dependency_tracking+y}
3253then :
3254  enableval=$enable_dependency_tracking;
3255fi
3256
3257if test "x$enable_dependency_tracking" != xno; then
3258  am_depcomp="$ac_aux_dir/depcomp"
3259  AMDEPBACKSLASH='\'
3260  am__nodep='_no'
3261fi
3262 if test "x$enable_dependency_tracking" != xno; then
3263  AMDEP_TRUE=
3264  AMDEP_FALSE='#'
3265else
3266  AMDEP_TRUE='#'
3267  AMDEP_FALSE=
3268fi
3269
3270
3271ac_ext=c
3272ac_cpp='$CPP $CPPFLAGS'
3273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276if test -n "$ac_tool_prefix"; then
3277  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3278set dummy ${ac_tool_prefix}gcc; ac_word=$2
3279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280printf %s "checking for $ac_word... " >&6; }
3281if test ${ac_cv_prog_CC+y}
3282then :
3283  printf %s "(cached) " >&6
3284else $as_nop
3285  if test -n "$CC"; then
3286  ac_cv_prog_CC="$CC" # Let the user override the test.
3287else
3288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289for as_dir in $PATH
3290do
3291  IFS=$as_save_IFS
3292  case $as_dir in #(((
3293    '') as_dir=./ ;;
3294    */) ;;
3295    *) as_dir=$as_dir/ ;;
3296  esac
3297    for ac_exec_ext in '' $ac_executable_extensions; do
3298  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3299    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3300    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3301    break 2
3302  fi
3303done
3304  done
3305IFS=$as_save_IFS
3306
3307fi
3308fi
3309CC=$ac_cv_prog_CC
3310if test -n "$CC"; then
3311  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3312printf "%s\n" "$CC" >&6; }
3313else
3314  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315printf "%s\n" "no" >&6; }
3316fi
3317
3318
3319fi
3320if test -z "$ac_cv_prog_CC"; then
3321  ac_ct_CC=$CC
3322  # Extract the first word of "gcc", so it can be a program name with args.
3323set dummy gcc; ac_word=$2
3324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3325printf %s "checking for $ac_word... " >&6; }
3326if test ${ac_cv_prog_ac_ct_CC+y}
3327then :
3328  printf %s "(cached) " >&6
3329else $as_nop
3330  if test -n "$ac_ct_CC"; then
3331  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3332else
3333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334for as_dir in $PATH
3335do
3336  IFS=$as_save_IFS
3337  case $as_dir in #(((
3338    '') as_dir=./ ;;
3339    */) ;;
3340    *) as_dir=$as_dir/ ;;
3341  esac
3342    for ac_exec_ext in '' $ac_executable_extensions; do
3343  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3344    ac_cv_prog_ac_ct_CC="gcc"
3345    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3346    break 2
3347  fi
3348done
3349  done
3350IFS=$as_save_IFS
3351
3352fi
3353fi
3354ac_ct_CC=$ac_cv_prog_ac_ct_CC
3355if test -n "$ac_ct_CC"; then
3356  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3357printf "%s\n" "$ac_ct_CC" >&6; }
3358else
3359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360printf "%s\n" "no" >&6; }
3361fi
3362
3363  if test "x$ac_ct_CC" = x; then
3364    CC=""
3365  else
3366    case $cross_compiling:$ac_tool_warned in
3367yes:)
3368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3369printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3370ac_tool_warned=yes ;;
3371esac
3372    CC=$ac_ct_CC
3373  fi
3374else
3375  CC="$ac_cv_prog_CC"
3376fi
3377
3378if test -z "$CC"; then
3379          if test -n "$ac_tool_prefix"; then
3380    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3381set dummy ${ac_tool_prefix}cc; ac_word=$2
3382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383printf %s "checking for $ac_word... " >&6; }
3384if test ${ac_cv_prog_CC+y}
3385then :
3386  printf %s "(cached) " >&6
3387else $as_nop
3388  if test -n "$CC"; then
3389  ac_cv_prog_CC="$CC" # Let the user override the test.
3390else
3391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392for as_dir in $PATH
3393do
3394  IFS=$as_save_IFS
3395  case $as_dir in #(((
3396    '') as_dir=./ ;;
3397    */) ;;
3398    *) as_dir=$as_dir/ ;;
3399  esac
3400    for ac_exec_ext in '' $ac_executable_extensions; do
3401  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3402    ac_cv_prog_CC="${ac_tool_prefix}cc"
3403    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3404    break 2
3405  fi
3406done
3407  done
3408IFS=$as_save_IFS
3409
3410fi
3411fi
3412CC=$ac_cv_prog_CC
3413if test -n "$CC"; then
3414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3415printf "%s\n" "$CC" >&6; }
3416else
3417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418printf "%s\n" "no" >&6; }
3419fi
3420
3421
3422  fi
3423fi
3424if test -z "$CC"; then
3425  # Extract the first word of "cc", so it can be a program name with args.
3426set dummy cc; ac_word=$2
3427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428printf %s "checking for $ac_word... " >&6; }
3429if test ${ac_cv_prog_CC+y}
3430then :
3431  printf %s "(cached) " >&6
3432else $as_nop
3433  if test -n "$CC"; then
3434  ac_cv_prog_CC="$CC" # Let the user override the test.
3435else
3436  ac_prog_rejected=no
3437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438for as_dir in $PATH
3439do
3440  IFS=$as_save_IFS
3441  case $as_dir in #(((
3442    '') as_dir=./ ;;
3443    */) ;;
3444    *) as_dir=$as_dir/ ;;
3445  esac
3446    for ac_exec_ext in '' $ac_executable_extensions; do
3447  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3448    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3449       ac_prog_rejected=yes
3450       continue
3451     fi
3452    ac_cv_prog_CC="cc"
3453    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3454    break 2
3455  fi
3456done
3457  done
3458IFS=$as_save_IFS
3459
3460if test $ac_prog_rejected = yes; then
3461  # We found a bogon in the path, so make sure we never use it.
3462  set dummy $ac_cv_prog_CC
3463  shift
3464  if test $# != 0; then
3465    # We chose a different compiler from the bogus one.
3466    # However, it has the same basename, so the bogon will be chosen
3467    # first if we set CC to just the basename; use the full file name.
3468    shift
3469    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3470  fi
3471fi
3472fi
3473fi
3474CC=$ac_cv_prog_CC
3475if test -n "$CC"; then
3476  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3477printf "%s\n" "$CC" >&6; }
3478else
3479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480printf "%s\n" "no" >&6; }
3481fi
3482
3483
3484fi
3485if test -z "$CC"; then
3486  if test -n "$ac_tool_prefix"; then
3487  for ac_prog in cl.exe
3488  do
3489    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3490set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492printf %s "checking for $ac_word... " >&6; }
3493if test ${ac_cv_prog_CC+y}
3494then :
3495  printf %s "(cached) " >&6
3496else $as_nop
3497  if test -n "$CC"; then
3498  ac_cv_prog_CC="$CC" # Let the user override the test.
3499else
3500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501for as_dir in $PATH
3502do
3503  IFS=$as_save_IFS
3504  case $as_dir in #(((
3505    '') as_dir=./ ;;
3506    */) ;;
3507    *) as_dir=$as_dir/ ;;
3508  esac
3509    for ac_exec_ext in '' $ac_executable_extensions; do
3510  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3511    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3512    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3513    break 2
3514  fi
3515done
3516  done
3517IFS=$as_save_IFS
3518
3519fi
3520fi
3521CC=$ac_cv_prog_CC
3522if test -n "$CC"; then
3523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524printf "%s\n" "$CC" >&6; }
3525else
3526  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527printf "%s\n" "no" >&6; }
3528fi
3529
3530
3531    test -n "$CC" && break
3532  done
3533fi
3534if test -z "$CC"; then
3535  ac_ct_CC=$CC
3536  for ac_prog in cl.exe
3537do
3538  # Extract the first word of "$ac_prog", so it can be a program name with args.
3539set dummy $ac_prog; ac_word=$2
3540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541printf %s "checking for $ac_word... " >&6; }
3542if test ${ac_cv_prog_ac_ct_CC+y}
3543then :
3544  printf %s "(cached) " >&6
3545else $as_nop
3546  if test -n "$ac_ct_CC"; then
3547  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3548else
3549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550for as_dir in $PATH
3551do
3552  IFS=$as_save_IFS
3553  case $as_dir in #(((
3554    '') as_dir=./ ;;
3555    */) ;;
3556    *) as_dir=$as_dir/ ;;
3557  esac
3558    for ac_exec_ext in '' $ac_executable_extensions; do
3559  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3560    ac_cv_prog_ac_ct_CC="$ac_prog"
3561    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3562    break 2
3563  fi
3564done
3565  done
3566IFS=$as_save_IFS
3567
3568fi
3569fi
3570ac_ct_CC=$ac_cv_prog_ac_ct_CC
3571if test -n "$ac_ct_CC"; then
3572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3573printf "%s\n" "$ac_ct_CC" >&6; }
3574else
3575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576printf "%s\n" "no" >&6; }
3577fi
3578
3579
3580  test -n "$ac_ct_CC" && break
3581done
3582
3583  if test "x$ac_ct_CC" = x; then
3584    CC=""
3585  else
3586    case $cross_compiling:$ac_tool_warned in
3587yes:)
3588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3589printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3590ac_tool_warned=yes ;;
3591esac
3592    CC=$ac_ct_CC
3593  fi
3594fi
3595
3596fi
3597if test -z "$CC"; then
3598  if test -n "$ac_tool_prefix"; then
3599  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3600set dummy ${ac_tool_prefix}clang; ac_word=$2
3601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602printf %s "checking for $ac_word... " >&6; }
3603if test ${ac_cv_prog_CC+y}
3604then :
3605  printf %s "(cached) " >&6
3606else $as_nop
3607  if test -n "$CC"; then
3608  ac_cv_prog_CC="$CC" # Let the user override the test.
3609else
3610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611for as_dir in $PATH
3612do
3613  IFS=$as_save_IFS
3614  case $as_dir in #(((
3615    '') as_dir=./ ;;
3616    */) ;;
3617    *) as_dir=$as_dir/ ;;
3618  esac
3619    for ac_exec_ext in '' $ac_executable_extensions; do
3620  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3621    ac_cv_prog_CC="${ac_tool_prefix}clang"
3622    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3623    break 2
3624  fi
3625done
3626  done
3627IFS=$as_save_IFS
3628
3629fi
3630fi
3631CC=$ac_cv_prog_CC
3632if test -n "$CC"; then
3633  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3634printf "%s\n" "$CC" >&6; }
3635else
3636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637printf "%s\n" "no" >&6; }
3638fi
3639
3640
3641fi
3642if test -z "$ac_cv_prog_CC"; then
3643  ac_ct_CC=$CC
3644  # Extract the first word of "clang", so it can be a program name with args.
3645set dummy clang; ac_word=$2
3646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647printf %s "checking for $ac_word... " >&6; }
3648if test ${ac_cv_prog_ac_ct_CC+y}
3649then :
3650  printf %s "(cached) " >&6
3651else $as_nop
3652  if test -n "$ac_ct_CC"; then
3653  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3654else
3655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656for as_dir in $PATH
3657do
3658  IFS=$as_save_IFS
3659  case $as_dir in #(((
3660    '') as_dir=./ ;;
3661    */) ;;
3662    *) as_dir=$as_dir/ ;;
3663  esac
3664    for ac_exec_ext in '' $ac_executable_extensions; do
3665  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3666    ac_cv_prog_ac_ct_CC="clang"
3667    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3668    break 2
3669  fi
3670done
3671  done
3672IFS=$as_save_IFS
3673
3674fi
3675fi
3676ac_ct_CC=$ac_cv_prog_ac_ct_CC
3677if test -n "$ac_ct_CC"; then
3678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3679printf "%s\n" "$ac_ct_CC" >&6; }
3680else
3681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682printf "%s\n" "no" >&6; }
3683fi
3684
3685  if test "x$ac_ct_CC" = x; then
3686    CC=""
3687  else
3688    case $cross_compiling:$ac_tool_warned in
3689yes:)
3690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3691printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3692ac_tool_warned=yes ;;
3693esac
3694    CC=$ac_ct_CC
3695  fi
3696else
3697  CC="$ac_cv_prog_CC"
3698fi
3699
3700fi
3701
3702
3703test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3704printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3705as_fn_error $? "no acceptable C compiler found in \$PATH
3706See \`config.log' for more details" "$LINENO" 5; }
3707
3708# Provide some information about the compiler.
3709printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3710set X $ac_compile
3711ac_compiler=$2
3712for ac_option in --version -v -V -qversion -version; do
3713  { { ac_try="$ac_compiler $ac_option >&5"
3714case "(($ac_try" in
3715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716  *) ac_try_echo=$ac_try;;
3717esac
3718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3719printf "%s\n" "$ac_try_echo"; } >&5
3720  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3721  ac_status=$?
3722  if test -s conftest.err; then
3723    sed '10a\
3724... rest of stderr output deleted ...
3725         10q' conftest.err >conftest.er1
3726    cat conftest.er1 >&5
3727  fi
3728  rm -f conftest.er1 conftest.err
3729  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3730  test $ac_status = 0; }
3731done
3732
3733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734/* end confdefs.h.  */
3735
3736int
3737main (void)
3738{
3739
3740  ;
3741  return 0;
3742}
3743_ACEOF
3744ac_clean_files_save=$ac_clean_files
3745ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3746# Try to create an executable without -o first, disregard a.out.
3747# It will help us diagnose broken compilers, and finding out an intuition
3748# of exeext.
3749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3750printf %s "checking whether the C compiler works... " >&6; }
3751ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3752
3753# The possible output files:
3754ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3755
3756ac_rmfiles=
3757for ac_file in $ac_files
3758do
3759  case $ac_file in
3760    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3761    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3762  esac
3763done
3764rm -f $ac_rmfiles
3765
3766if { { ac_try="$ac_link_default"
3767case "(($ac_try" in
3768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769  *) ac_try_echo=$ac_try;;
3770esac
3771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3772printf "%s\n" "$ac_try_echo"; } >&5
3773  (eval "$ac_link_default") 2>&5
3774  ac_status=$?
3775  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3776  test $ac_status = 0; }
3777then :
3778  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3779# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3780# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3781# so that the user can short-circuit this test for compilers unknown to
3782# Autoconf.
3783for ac_file in $ac_files ''
3784do
3785  test -f "$ac_file" || continue
3786  case $ac_file in
3787    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3788	;;
3789    [ab].out )
3790	# We found the default executable, but exeext='' is most
3791	# certainly right.
3792	break;;
3793    *.* )
3794	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3795	then :; else
3796	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3797	fi
3798	# We set ac_cv_exeext here because the later test for it is not
3799	# safe: cross compilers may not add the suffix if given an `-o'
3800	# argument, so we may need to know it at that point already.
3801	# Even if this section looks crufty: it has the advantage of
3802	# actually working.
3803	break;;
3804    * )
3805	break;;
3806  esac
3807done
3808test "$ac_cv_exeext" = no && ac_cv_exeext=
3809
3810else $as_nop
3811  ac_file=''
3812fi
3813if test -z "$ac_file"
3814then :
3815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816printf "%s\n" "no" >&6; }
3817printf "%s\n" "$as_me: failed program was:" >&5
3818sed 's/^/| /' conftest.$ac_ext >&5
3819
3820{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3822as_fn_error 77 "C compiler cannot create executables
3823See \`config.log' for more details" "$LINENO" 5; }
3824else $as_nop
3825  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3826printf "%s\n" "yes" >&6; }
3827fi
3828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3829printf %s "checking for C compiler default output file name... " >&6; }
3830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3831printf "%s\n" "$ac_file" >&6; }
3832ac_exeext=$ac_cv_exeext
3833
3834rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3835ac_clean_files=$ac_clean_files_save
3836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3837printf %s "checking for suffix of executables... " >&6; }
3838if { { ac_try="$ac_link"
3839case "(($ac_try" in
3840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841  *) ac_try_echo=$ac_try;;
3842esac
3843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3844printf "%s\n" "$ac_try_echo"; } >&5
3845  (eval "$ac_link") 2>&5
3846  ac_status=$?
3847  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3848  test $ac_status = 0; }
3849then :
3850  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3851# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3852# work properly (i.e., refer to `conftest.exe'), while it won't with
3853# `rm'.
3854for ac_file in conftest.exe conftest conftest.*; do
3855  test -f "$ac_file" || continue
3856  case $ac_file in
3857    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3858    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3859	  break;;
3860    * ) break;;
3861  esac
3862done
3863else $as_nop
3864  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3866as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3867See \`config.log' for more details" "$LINENO" 5; }
3868fi
3869rm -f conftest conftest$ac_cv_exeext
3870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3871printf "%s\n" "$ac_cv_exeext" >&6; }
3872
3873rm -f conftest.$ac_ext
3874EXEEXT=$ac_cv_exeext
3875ac_exeext=$EXEEXT
3876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877/* end confdefs.h.  */
3878#include <stdio.h>
3879int
3880main (void)
3881{
3882FILE *f = fopen ("conftest.out", "w");
3883 return ferror (f) || fclose (f) != 0;
3884
3885  ;
3886  return 0;
3887}
3888_ACEOF
3889ac_clean_files="$ac_clean_files conftest.out"
3890# Check that the compiler produces executables we can run.  If not, either
3891# the compiler is broken, or we cross compile.
3892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3893printf %s "checking whether we are cross compiling... " >&6; }
3894if test "$cross_compiling" != yes; then
3895  { { ac_try="$ac_link"
3896case "(($ac_try" in
3897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898  *) ac_try_echo=$ac_try;;
3899esac
3900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3901printf "%s\n" "$ac_try_echo"; } >&5
3902  (eval "$ac_link") 2>&5
3903  ac_status=$?
3904  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3905  test $ac_status = 0; }
3906  if { ac_try='./conftest$ac_cv_exeext'
3907  { { case "(($ac_try" in
3908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909  *) ac_try_echo=$ac_try;;
3910esac
3911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3912printf "%s\n" "$ac_try_echo"; } >&5
3913  (eval "$ac_try") 2>&5
3914  ac_status=$?
3915  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3916  test $ac_status = 0; }; }; then
3917    cross_compiling=no
3918  else
3919    if test "$cross_compiling" = maybe; then
3920	cross_compiling=yes
3921    else
3922	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3923printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3924as_fn_error 77 "cannot run C compiled programs.
3925If you meant to cross compile, use \`--host'.
3926See \`config.log' for more details" "$LINENO" 5; }
3927    fi
3928  fi
3929fi
3930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3931printf "%s\n" "$cross_compiling" >&6; }
3932
3933rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3934ac_clean_files=$ac_clean_files_save
3935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3936printf %s "checking for suffix of object files... " >&6; }
3937if test ${ac_cv_objext+y}
3938then :
3939  printf %s "(cached) " >&6
3940else $as_nop
3941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942/* end confdefs.h.  */
3943
3944int
3945main (void)
3946{
3947
3948  ;
3949  return 0;
3950}
3951_ACEOF
3952rm -f conftest.o conftest.obj
3953if { { ac_try="$ac_compile"
3954case "(($ac_try" in
3955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956  *) ac_try_echo=$ac_try;;
3957esac
3958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959printf "%s\n" "$ac_try_echo"; } >&5
3960  (eval "$ac_compile") 2>&5
3961  ac_status=$?
3962  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963  test $ac_status = 0; }
3964then :
3965  for ac_file in conftest.o conftest.obj conftest.*; do
3966  test -f "$ac_file" || continue;
3967  case $ac_file in
3968    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3969    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3970       break;;
3971  esac
3972done
3973else $as_nop
3974  printf "%s\n" "$as_me: failed program was:" >&5
3975sed 's/^/| /' conftest.$ac_ext >&5
3976
3977{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3979as_fn_error $? "cannot compute suffix of object files: cannot compile
3980See \`config.log' for more details" "$LINENO" 5; }
3981fi
3982rm -f conftest.$ac_cv_objext conftest.$ac_ext
3983fi
3984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3985printf "%s\n" "$ac_cv_objext" >&6; }
3986OBJEXT=$ac_cv_objext
3987ac_objext=$OBJEXT
3988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3989printf %s "checking whether the compiler supports GNU C... " >&6; }
3990if test ${ac_cv_c_compiler_gnu+y}
3991then :
3992  printf %s "(cached) " >&6
3993else $as_nop
3994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995/* end confdefs.h.  */
3996
3997int
3998main (void)
3999{
4000#ifndef __GNUC__
4001       choke me
4002#endif
4003
4004  ;
4005  return 0;
4006}
4007_ACEOF
4008if ac_fn_c_try_compile "$LINENO"
4009then :
4010  ac_compiler_gnu=yes
4011else $as_nop
4012  ac_compiler_gnu=no
4013fi
4014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4015ac_cv_c_compiler_gnu=$ac_compiler_gnu
4016
4017fi
4018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4019printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4020ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021
4022if test $ac_compiler_gnu = yes; then
4023  GCC=yes
4024else
4025  GCC=
4026fi
4027ac_test_CFLAGS=${CFLAGS+y}
4028ac_save_CFLAGS=$CFLAGS
4029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4030printf %s "checking whether $CC accepts -g... " >&6; }
4031if test ${ac_cv_prog_cc_g+y}
4032then :
4033  printf %s "(cached) " >&6
4034else $as_nop
4035  ac_save_c_werror_flag=$ac_c_werror_flag
4036   ac_c_werror_flag=yes
4037   ac_cv_prog_cc_g=no
4038   CFLAGS="-g"
4039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040/* end confdefs.h.  */
4041
4042int
4043main (void)
4044{
4045
4046  ;
4047  return 0;
4048}
4049_ACEOF
4050if ac_fn_c_try_compile "$LINENO"
4051then :
4052  ac_cv_prog_cc_g=yes
4053else $as_nop
4054  CFLAGS=""
4055      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056/* end confdefs.h.  */
4057
4058int
4059main (void)
4060{
4061
4062  ;
4063  return 0;
4064}
4065_ACEOF
4066if ac_fn_c_try_compile "$LINENO"
4067then :
4068
4069else $as_nop
4070  ac_c_werror_flag=$ac_save_c_werror_flag
4071	 CFLAGS="-g"
4072	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073/* end confdefs.h.  */
4074
4075int
4076main (void)
4077{
4078
4079  ;
4080  return 0;
4081}
4082_ACEOF
4083if ac_fn_c_try_compile "$LINENO"
4084then :
4085  ac_cv_prog_cc_g=yes
4086fi
4087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4088fi
4089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4090fi
4091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4092   ac_c_werror_flag=$ac_save_c_werror_flag
4093fi
4094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4095printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4096if test $ac_test_CFLAGS; then
4097  CFLAGS=$ac_save_CFLAGS
4098elif test $ac_cv_prog_cc_g = yes; then
4099  if test "$GCC" = yes; then
4100    CFLAGS="-g -O2"
4101  else
4102    CFLAGS="-g"
4103  fi
4104else
4105  if test "$GCC" = yes; then
4106    CFLAGS="-O2"
4107  else
4108    CFLAGS=
4109  fi
4110fi
4111ac_prog_cc_stdc=no
4112if test x$ac_prog_cc_stdc = xno
4113then :
4114  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4115printf %s "checking for $CC option to enable C11 features... " >&6; }
4116if test ${ac_cv_prog_cc_c11+y}
4117then :
4118  printf %s "(cached) " >&6
4119else $as_nop
4120  ac_cv_prog_cc_c11=no
4121ac_save_CC=$CC
4122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123/* end confdefs.h.  */
4124$ac_c_conftest_c11_program
4125_ACEOF
4126for ac_arg in '' -std=gnu11
4127do
4128  CC="$ac_save_CC $ac_arg"
4129  if ac_fn_c_try_compile "$LINENO"
4130then :
4131  ac_cv_prog_cc_c11=$ac_arg
4132fi
4133rm -f core conftest.err conftest.$ac_objext conftest.beam
4134  test "x$ac_cv_prog_cc_c11" != "xno" && break
4135done
4136rm -f conftest.$ac_ext
4137CC=$ac_save_CC
4138fi
4139
4140if test "x$ac_cv_prog_cc_c11" = xno
4141then :
4142  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4143printf "%s\n" "unsupported" >&6; }
4144else $as_nop
4145  if test "x$ac_cv_prog_cc_c11" = x
4146then :
4147  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4148printf "%s\n" "none needed" >&6; }
4149else $as_nop
4150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4151printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4152     CC="$CC $ac_cv_prog_cc_c11"
4153fi
4154  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4155  ac_prog_cc_stdc=c11
4156fi
4157fi
4158if test x$ac_prog_cc_stdc = xno
4159then :
4160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4161printf %s "checking for $CC option to enable C99 features... " >&6; }
4162if test ${ac_cv_prog_cc_c99+y}
4163then :
4164  printf %s "(cached) " >&6
4165else $as_nop
4166  ac_cv_prog_cc_c99=no
4167ac_save_CC=$CC
4168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169/* end confdefs.h.  */
4170$ac_c_conftest_c99_program
4171_ACEOF
4172for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4173do
4174  CC="$ac_save_CC $ac_arg"
4175  if ac_fn_c_try_compile "$LINENO"
4176then :
4177  ac_cv_prog_cc_c99=$ac_arg
4178fi
4179rm -f core conftest.err conftest.$ac_objext conftest.beam
4180  test "x$ac_cv_prog_cc_c99" != "xno" && break
4181done
4182rm -f conftest.$ac_ext
4183CC=$ac_save_CC
4184fi
4185
4186if test "x$ac_cv_prog_cc_c99" = xno
4187then :
4188  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4189printf "%s\n" "unsupported" >&6; }
4190else $as_nop
4191  if test "x$ac_cv_prog_cc_c99" = x
4192then :
4193  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4194printf "%s\n" "none needed" >&6; }
4195else $as_nop
4196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4197printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4198     CC="$CC $ac_cv_prog_cc_c99"
4199fi
4200  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4201  ac_prog_cc_stdc=c99
4202fi
4203fi
4204if test x$ac_prog_cc_stdc = xno
4205then :
4206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4207printf %s "checking for $CC option to enable C89 features... " >&6; }
4208if test ${ac_cv_prog_cc_c89+y}
4209then :
4210  printf %s "(cached) " >&6
4211else $as_nop
4212  ac_cv_prog_cc_c89=no
4213ac_save_CC=$CC
4214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215/* end confdefs.h.  */
4216$ac_c_conftest_c89_program
4217_ACEOF
4218for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4219do
4220  CC="$ac_save_CC $ac_arg"
4221  if ac_fn_c_try_compile "$LINENO"
4222then :
4223  ac_cv_prog_cc_c89=$ac_arg
4224fi
4225rm -f core conftest.err conftest.$ac_objext conftest.beam
4226  test "x$ac_cv_prog_cc_c89" != "xno" && break
4227done
4228rm -f conftest.$ac_ext
4229CC=$ac_save_CC
4230fi
4231
4232if test "x$ac_cv_prog_cc_c89" = xno
4233then :
4234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4235printf "%s\n" "unsupported" >&6; }
4236else $as_nop
4237  if test "x$ac_cv_prog_cc_c89" = x
4238then :
4239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4240printf "%s\n" "none needed" >&6; }
4241else $as_nop
4242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4243printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4244     CC="$CC $ac_cv_prog_cc_c89"
4245fi
4246  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4247  ac_prog_cc_stdc=c89
4248fi
4249fi
4250
4251ac_ext=c
4252ac_cpp='$CPP $CPPFLAGS'
4253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255ac_compiler_gnu=$ac_cv_c_compiler_gnu
4256
4257
4258  ac_ext=c
4259ac_cpp='$CPP $CPPFLAGS'
4260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262ac_compiler_gnu=$ac_cv_c_compiler_gnu
4263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4264printf %s "checking whether $CC understands -c and -o together... " >&6; }
4265if test ${am_cv_prog_cc_c_o+y}
4266then :
4267  printf %s "(cached) " >&6
4268else $as_nop
4269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270/* end confdefs.h.  */
4271
4272int
4273main (void)
4274{
4275
4276  ;
4277  return 0;
4278}
4279_ACEOF
4280  # Make sure it works both with $CC and with simple cc.
4281  # Following AC_PROG_CC_C_O, we do the test twice because some
4282  # compilers refuse to overwrite an existing .o file with -o,
4283  # though they will create one.
4284  am_cv_prog_cc_c_o=yes
4285  for am_i in 1 2; do
4286    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4287   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4288   ac_status=$?
4289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290   (exit $ac_status); } \
4291         && test -f conftest2.$ac_objext; then
4292      : OK
4293    else
4294      am_cv_prog_cc_c_o=no
4295      break
4296    fi
4297  done
4298  rm -f core conftest*
4299  unset am_i
4300fi
4301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4302printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4303if test "$am_cv_prog_cc_c_o" != yes; then
4304   # Losing compiler, so override with the script.
4305   # FIXME: It is wrong to rewrite CC.
4306   # But if we don't then we get into trouble of one sort or another.
4307   # A longer-term fix would be to have automake use am__CC in this case,
4308   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4309   CC="$am_aux_dir/compile $CC"
4310fi
4311ac_ext=c
4312ac_cpp='$CPP $CPPFLAGS'
4313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4315ac_compiler_gnu=$ac_cv_c_compiler_gnu
4316
4317
4318depcc="$CC"   am_compiler_list=
4319
4320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4321printf %s "checking dependency style of $depcc... " >&6; }
4322if test ${am_cv_CC_dependencies_compiler_type+y}
4323then :
4324  printf %s "(cached) " >&6
4325else $as_nop
4326  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4327  # We make a subdir and do the tests there.  Otherwise we can end up
4328  # making bogus files that we don't know about and never remove.  For
4329  # instance it was reported that on HP-UX the gcc test will end up
4330  # making a dummy file named 'D' -- because '-MD' means "put the output
4331  # in D".
4332  rm -rf conftest.dir
4333  mkdir conftest.dir
4334  # Copy depcomp to subdir because otherwise we won't find it if we're
4335  # using a relative directory.
4336  cp "$am_depcomp" conftest.dir
4337  cd conftest.dir
4338  # We will build objects and dependencies in a subdirectory because
4339  # it helps to detect inapplicable dependency modes.  For instance
4340  # both Tru64's cc and ICC support -MD to output dependencies as a
4341  # side effect of compilation, but ICC will put the dependencies in
4342  # the current directory while Tru64 will put them in the object
4343  # directory.
4344  mkdir sub
4345
4346  am_cv_CC_dependencies_compiler_type=none
4347  if test "$am_compiler_list" = ""; then
4348     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4349  fi
4350  am__universal=false
4351  case " $depcc " in #(
4352     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4353     esac
4354
4355  for depmode in $am_compiler_list; do
4356    # Setup a source with many dependencies, because some compilers
4357    # like to wrap large dependency lists on column 80 (with \), and
4358    # we should not choose a depcomp mode which is confused by this.
4359    #
4360    # We need to recreate these files for each test, as the compiler may
4361    # overwrite some of them when testing with obscure command lines.
4362    # This happens at least with the AIX C compiler.
4363    : > sub/conftest.c
4364    for i in 1 2 3 4 5 6; do
4365      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4366      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4367      # Solaris 10 /bin/sh.
4368      echo '/* dummy */' > sub/conftst$i.h
4369    done
4370    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4371
4372    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4373    # mode.  It turns out that the SunPro C++ compiler does not properly
4374    # handle '-M -o', and we need to detect this.  Also, some Intel
4375    # versions had trouble with output in subdirs.
4376    am__obj=sub/conftest.${OBJEXT-o}
4377    am__minus_obj="-o $am__obj"
4378    case $depmode in
4379    gcc)
4380      # This depmode causes a compiler race in universal mode.
4381      test "$am__universal" = false || continue
4382      ;;
4383    nosideeffect)
4384      # After this tag, mechanisms are not by side-effect, so they'll
4385      # only be used when explicitly requested.
4386      if test "x$enable_dependency_tracking" = xyes; then
4387	continue
4388      else
4389	break
4390      fi
4391      ;;
4392    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4393      # This compiler won't grok '-c -o', but also, the minuso test has
4394      # not run yet.  These depmodes are late enough in the game, and
4395      # so weak that their functioning should not be impacted.
4396      am__obj=conftest.${OBJEXT-o}
4397      am__minus_obj=
4398      ;;
4399    none) break ;;
4400    esac
4401    if depmode=$depmode \
4402       source=sub/conftest.c object=$am__obj \
4403       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4404       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4405         >/dev/null 2>conftest.err &&
4406       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4407       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4408       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4409       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4410      # icc doesn't choke on unknown options, it will just issue warnings
4411      # or remarks (even with -Werror).  So we grep stderr for any message
4412      # that says an option was ignored or not supported.
4413      # When given -MP, icc 7.0 and 7.1 complain thusly:
4414      #   icc: Command line warning: ignoring option '-M'; no argument required
4415      # The diagnosis changed in icc 8.0:
4416      #   icc: Command line remark: option '-MP' not supported
4417      if (grep 'ignoring option' conftest.err ||
4418          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4419        am_cv_CC_dependencies_compiler_type=$depmode
4420        break
4421      fi
4422    fi
4423  done
4424
4425  cd ..
4426  rm -rf conftest.dir
4427else
4428  am_cv_CC_dependencies_compiler_type=none
4429fi
4430
4431fi
4432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4433printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4434CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4435
4436 if
4437  test "x$enable_dependency_tracking" != xno \
4438  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4439  am__fastdepCC_TRUE=
4440  am__fastdepCC_FALSE='#'
4441else
4442  am__fastdepCC_TRUE='#'
4443  am__fastdepCC_FALSE=
4444fi
4445
4446
4447
4448
4449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4450printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4451if test ${ac_cv_c_undeclared_builtin_options+y}
4452then :
4453  printf %s "(cached) " >&6
4454else $as_nop
4455  ac_save_CFLAGS=$CFLAGS
4456   ac_cv_c_undeclared_builtin_options='cannot detect'
4457   for ac_arg in '' -fno-builtin; do
4458     CFLAGS="$ac_save_CFLAGS $ac_arg"
4459     # This test program should *not* compile successfully.
4460     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461/* end confdefs.h.  */
4462
4463int
4464main (void)
4465{
4466(void) strchr;
4467  ;
4468  return 0;
4469}
4470_ACEOF
4471if ac_fn_c_try_compile "$LINENO"
4472then :
4473
4474else $as_nop
4475  # This test program should compile successfully.
4476        # No library function is consistently available on
4477        # freestanding implementations, so test against a dummy
4478        # declaration.  Include always-available headers on the
4479        # off chance that they somehow elicit warnings.
4480        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481/* end confdefs.h.  */
4482#include <float.h>
4483#include <limits.h>
4484#include <stdarg.h>
4485#include <stddef.h>
4486extern void ac_decl (int, char *);
4487
4488int
4489main (void)
4490{
4491(void) ac_decl (0, (char *) 0);
4492  (void) ac_decl;
4493
4494  ;
4495  return 0;
4496}
4497_ACEOF
4498if ac_fn_c_try_compile "$LINENO"
4499then :
4500  if test x"$ac_arg" = x
4501then :
4502  ac_cv_c_undeclared_builtin_options='none needed'
4503else $as_nop
4504  ac_cv_c_undeclared_builtin_options=$ac_arg
4505fi
4506          break
4507fi
4508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4509fi
4510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4511    done
4512    CFLAGS=$ac_save_CFLAGS
4513
4514fi
4515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4516printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4517  case $ac_cv_c_undeclared_builtin_options in #(
4518  'cannot detect') :
4519    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4520printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4521as_fn_error $? "cannot make $CC report undeclared builtins
4522See \`config.log' for more details" "$LINENO" 5; } ;; #(
4523  'none needed') :
4524    ac_c_undeclared_builtin_options='' ;; #(
4525  *) :
4526    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4527esac
4528
4529ac_header= ac_cache=
4530for ac_item in $ac_header_c_list
4531do
4532  if test $ac_cache; then
4533    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4534    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4535      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4536    fi
4537    ac_header= ac_cache=
4538  elif test $ac_header; then
4539    ac_cache=$ac_item
4540  else
4541    ac_header=$ac_item
4542  fi
4543done
4544
4545
4546
4547
4548
4549
4550
4551
4552if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4553then :
4554
4555printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4556
4557fi
4558
4559
4560
4561
4562ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4563if test "x$ac_cv_have_decl___clang__" = xyes
4564then :
4565  CLANGCC="yes"
4566else $as_nop
4567  CLANGCC="no"
4568fi
4569ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4570if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4571then :
4572  INTELCC="yes"
4573else $as_nop
4574  INTELCC="no"
4575fi
4576ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4577if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4578then :
4579  SUNCC="yes"
4580else $as_nop
4581  SUNCC="no"
4582fi
4583
4584
4585
4586
4587
4588
4589
4590
4591if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4592	if test -n "$ac_tool_prefix"; then
4593  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4594set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596printf %s "checking for $ac_word... " >&6; }
4597if test ${ac_cv_path_PKG_CONFIG+y}
4598then :
4599  printf %s "(cached) " >&6
4600else $as_nop
4601  case $PKG_CONFIG in
4602  [\\/]* | ?:[\\/]*)
4603  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4604  ;;
4605  *)
4606  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607for as_dir in $PATH
4608do
4609  IFS=$as_save_IFS
4610  case $as_dir in #(((
4611    '') as_dir=./ ;;
4612    */) ;;
4613    *) as_dir=$as_dir/ ;;
4614  esac
4615    for ac_exec_ext in '' $ac_executable_extensions; do
4616  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4617    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4618    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4619    break 2
4620  fi
4621done
4622  done
4623IFS=$as_save_IFS
4624
4625  ;;
4626esac
4627fi
4628PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4629if test -n "$PKG_CONFIG"; then
4630  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4631printf "%s\n" "$PKG_CONFIG" >&6; }
4632else
4633  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634printf "%s\n" "no" >&6; }
4635fi
4636
4637
4638fi
4639if test -z "$ac_cv_path_PKG_CONFIG"; then
4640  ac_pt_PKG_CONFIG=$PKG_CONFIG
4641  # Extract the first word of "pkg-config", so it can be a program name with args.
4642set dummy pkg-config; ac_word=$2
4643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4644printf %s "checking for $ac_word... " >&6; }
4645if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4646then :
4647  printf %s "(cached) " >&6
4648else $as_nop
4649  case $ac_pt_PKG_CONFIG in
4650  [\\/]* | ?:[\\/]*)
4651  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4652  ;;
4653  *)
4654  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655for as_dir in $PATH
4656do
4657  IFS=$as_save_IFS
4658  case $as_dir in #(((
4659    '') as_dir=./ ;;
4660    */) ;;
4661    *) as_dir=$as_dir/ ;;
4662  esac
4663    for ac_exec_ext in '' $ac_executable_extensions; do
4664  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4665    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4666    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4667    break 2
4668  fi
4669done
4670  done
4671IFS=$as_save_IFS
4672
4673  ;;
4674esac
4675fi
4676ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4677if test -n "$ac_pt_PKG_CONFIG"; then
4678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4679printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4680else
4681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682printf "%s\n" "no" >&6; }
4683fi
4684
4685  if test "x$ac_pt_PKG_CONFIG" = x; then
4686    PKG_CONFIG=""
4687  else
4688    case $cross_compiling:$ac_tool_warned in
4689yes:)
4690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4691printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4692ac_tool_warned=yes ;;
4693esac
4694    PKG_CONFIG=$ac_pt_PKG_CONFIG
4695  fi
4696else
4697  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4698fi
4699
4700fi
4701if test -n "$PKG_CONFIG"; then
4702	_pkg_min_version=0.9.0
4703	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4704printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4705	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4706		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4707printf "%s\n" "yes" >&6; }
4708	else
4709		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710printf "%s\n" "no" >&6; }
4711		PKG_CONFIG=""
4712	fi
4713fi
4714
4715
4716  # Make sure we can run config.sub.
4717$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4718  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4719
4720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4721printf %s "checking build system type... " >&6; }
4722if test ${ac_cv_build+y}
4723then :
4724  printf %s "(cached) " >&6
4725else $as_nop
4726  ac_build_alias=$build_alias
4727test "x$ac_build_alias" = x &&
4728  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4729test "x$ac_build_alias" = x &&
4730  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4731ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4732  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4733
4734fi
4735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4736printf "%s\n" "$ac_cv_build" >&6; }
4737case $ac_cv_build in
4738*-*-*) ;;
4739*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4740esac
4741build=$ac_cv_build
4742ac_save_IFS=$IFS; IFS='-'
4743set x $ac_cv_build
4744shift
4745build_cpu=$1
4746build_vendor=$2
4747shift; shift
4748# Remember, the first character of IFS is used to create $*,
4749# except with old shells:
4750build_os=$*
4751IFS=$ac_save_IFS
4752case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4753
4754
4755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4756printf %s "checking host system type... " >&6; }
4757if test ${ac_cv_host+y}
4758then :
4759  printf %s "(cached) " >&6
4760else $as_nop
4761  if test "x$host_alias" = x; then
4762  ac_cv_host=$ac_cv_build
4763else
4764  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4765    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4766fi
4767
4768fi
4769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4770printf "%s\n" "$ac_cv_host" >&6; }
4771case $ac_cv_host in
4772*-*-*) ;;
4773*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4774esac
4775host=$ac_cv_host
4776ac_save_IFS=$IFS; IFS='-'
4777set x $ac_cv_host
4778shift
4779host_cpu=$1
4780host_vendor=$2
4781shift; shift
4782# Remember, the first character of IFS is used to create $*,
4783# except with old shells:
4784host_os=$*
4785IFS=$ac_save_IFS
4786case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4787
4788
4789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4790printf %s "checking for a sed that does not truncate output... " >&6; }
4791if test ${ac_cv_path_SED+y}
4792then :
4793  printf %s "(cached) " >&6
4794else $as_nop
4795            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4796     for ac_i in 1 2 3 4 5 6 7; do
4797       ac_script="$ac_script$as_nl$ac_script"
4798     done
4799     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4800     { ac_script=; unset ac_script;}
4801     if test -z "$SED"; then
4802  ac_path_SED_found=false
4803  # Loop through the user's path and test for each of PROGNAME-LIST
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_prog in sed gsed
4814   do
4815    for ac_exec_ext in '' $ac_executable_extensions; do
4816      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4817      as_fn_executable_p "$ac_path_SED" || continue
4818# Check for GNU ac_path_SED and select it if it is found.
4819  # Check for GNU $ac_path_SED
4820case `"$ac_path_SED" --version 2>&1` in
4821*GNU*)
4822  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4823*)
4824  ac_count=0
4825  printf %s 0123456789 >"conftest.in"
4826  while :
4827  do
4828    cat "conftest.in" "conftest.in" >"conftest.tmp"
4829    mv "conftest.tmp" "conftest.in"
4830    cp "conftest.in" "conftest.nl"
4831    printf "%s\n" '' >> "conftest.nl"
4832    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4833    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4834    as_fn_arith $ac_count + 1 && ac_count=$as_val
4835    if test $ac_count -gt ${ac_path_SED_max-0}; then
4836      # Best one so far, save it but keep looking for a better one
4837      ac_cv_path_SED="$ac_path_SED"
4838      ac_path_SED_max=$ac_count
4839    fi
4840    # 10*(2^10) chars as input seems more than enough
4841    test $ac_count -gt 10 && break
4842  done
4843  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4844esac
4845
4846      $ac_path_SED_found && break 3
4847    done
4848  done
4849  done
4850IFS=$as_save_IFS
4851  if test -z "$ac_cv_path_SED"; then
4852    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4853  fi
4854else
4855  ac_cv_path_SED=$SED
4856fi
4857
4858fi
4859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4860printf "%s\n" "$ac_cv_path_SED" >&6; }
4861 SED="$ac_cv_path_SED"
4862  rm -f conftest.sed
4863
4864
4865
4866
4867
4868
4869# Check whether --enable-selective-werror was given.
4870if test ${enable_selective_werror+y}
4871then :
4872  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4873else $as_nop
4874  SELECTIVE_WERROR=yes
4875fi
4876
4877
4878
4879
4880
4881# -v is too short to test reliably with XORG_TESTSET_CFLAG
4882if test "x$SUNCC" = "xyes"; then
4883    BASE_CFLAGS="-v"
4884else
4885    BASE_CFLAGS=""
4886fi
4887
4888# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902xorg_testset_save_CFLAGS="$CFLAGS"
4903
4904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4905	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4906	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4907printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4908if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4909then :
4910  printf %s "(cached) " >&6
4911else $as_nop
4912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913/* end confdefs.h.  */
4914int i;
4915_ACEOF
4916if ac_fn_c_try_compile "$LINENO"
4917then :
4918  xorg_cv_cc_flag_unknown_warning_option=yes
4919else $as_nop
4920  xorg_cv_cc_flag_unknown_warning_option=no
4921fi
4922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4923fi
4924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4925printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4926	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4927	CFLAGS="$xorg_testset_save_CFLAGS"
4928fi
4929
4930if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4931	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4932		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4933	fi
4934	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4935	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4936printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4937if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4938then :
4939  printf %s "(cached) " >&6
4940else $as_nop
4941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942/* end confdefs.h.  */
4943int i;
4944_ACEOF
4945if ac_fn_c_try_compile "$LINENO"
4946then :
4947  xorg_cv_cc_flag_unused_command_line_argument=yes
4948else $as_nop
4949  xorg_cv_cc_flag_unused_command_line_argument=no
4950fi
4951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4952fi
4953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4954printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4955	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4956	CFLAGS="$xorg_testset_save_CFLAGS"
4957fi
4958
4959found="no"
4960
4961	if test $found = "no" ; then
4962		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4963			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4964		fi
4965
4966		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4967			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4968		fi
4969
4970		CFLAGS="$CFLAGS -Wall"
4971
4972		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4973printf %s "checking if $CC supports -Wall... " >&6; }
4974		cacheid=xorg_cv_cc_flag__Wall
4975		if eval test \${$cacheid+y}
4976then :
4977  printf %s "(cached) " >&6
4978else $as_nop
4979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980/* end confdefs.h.  */
4981int i;
4982int
4983main (void)
4984{
4985
4986  ;
4987  return 0;
4988}
4989_ACEOF
4990if ac_fn_c_try_link "$LINENO"
4991then :
4992  eval $cacheid=yes
4993else $as_nop
4994  eval $cacheid=no
4995fi
4996rm -f core conftest.err conftest.$ac_objext conftest.beam \
4997    conftest$ac_exeext conftest.$ac_ext
4998fi
4999
5000
5001		CFLAGS="$xorg_testset_save_CFLAGS"
5002
5003		eval supported=\$$cacheid
5004		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5005printf "%s\n" "$supported" >&6; }
5006		if test "$supported" = "yes" ; then
5007			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5008			found="yes"
5009		fi
5010	fi
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026xorg_testset_save_CFLAGS="$CFLAGS"
5027
5028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5029	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5030	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5031printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5032if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5033then :
5034  printf %s "(cached) " >&6
5035else $as_nop
5036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037/* end confdefs.h.  */
5038int i;
5039_ACEOF
5040if ac_fn_c_try_compile "$LINENO"
5041then :
5042  xorg_cv_cc_flag_unknown_warning_option=yes
5043else $as_nop
5044  xorg_cv_cc_flag_unknown_warning_option=no
5045fi
5046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5047fi
5048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5049printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5050	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5051	CFLAGS="$xorg_testset_save_CFLAGS"
5052fi
5053
5054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5055	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5056		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5057	fi
5058	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5059	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5060printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5061if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5062then :
5063  printf %s "(cached) " >&6
5064else $as_nop
5065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066/* end confdefs.h.  */
5067int i;
5068_ACEOF
5069if ac_fn_c_try_compile "$LINENO"
5070then :
5071  xorg_cv_cc_flag_unused_command_line_argument=yes
5072else $as_nop
5073  xorg_cv_cc_flag_unused_command_line_argument=no
5074fi
5075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5076fi
5077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5078printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5079	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5080	CFLAGS="$xorg_testset_save_CFLAGS"
5081fi
5082
5083found="no"
5084
5085	if test $found = "no" ; then
5086		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5087			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5088		fi
5089
5090		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5091			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5092		fi
5093
5094		CFLAGS="$CFLAGS -Wpointer-arith"
5095
5096		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5097printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5098		cacheid=xorg_cv_cc_flag__Wpointer_arith
5099		if eval test \${$cacheid+y}
5100then :
5101  printf %s "(cached) " >&6
5102else $as_nop
5103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104/* end confdefs.h.  */
5105int i;
5106int
5107main (void)
5108{
5109
5110  ;
5111  return 0;
5112}
5113_ACEOF
5114if ac_fn_c_try_link "$LINENO"
5115then :
5116  eval $cacheid=yes
5117else $as_nop
5118  eval $cacheid=no
5119fi
5120rm -f core conftest.err conftest.$ac_objext conftest.beam \
5121    conftest$ac_exeext conftest.$ac_ext
5122fi
5123
5124
5125		CFLAGS="$xorg_testset_save_CFLAGS"
5126
5127		eval supported=\$$cacheid
5128		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5129printf "%s\n" "$supported" >&6; }
5130		if test "$supported" = "yes" ; then
5131			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5132			found="yes"
5133		fi
5134	fi
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150xorg_testset_save_CFLAGS="$CFLAGS"
5151
5152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5153	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5154	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5155printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5156if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5157then :
5158  printf %s "(cached) " >&6
5159else $as_nop
5160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161/* end confdefs.h.  */
5162int i;
5163_ACEOF
5164if ac_fn_c_try_compile "$LINENO"
5165then :
5166  xorg_cv_cc_flag_unknown_warning_option=yes
5167else $as_nop
5168  xorg_cv_cc_flag_unknown_warning_option=no
5169fi
5170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5171fi
5172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5173printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5174	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5175	CFLAGS="$xorg_testset_save_CFLAGS"
5176fi
5177
5178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5179	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5180		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5181	fi
5182	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5183	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5184printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5185if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5186then :
5187  printf %s "(cached) " >&6
5188else $as_nop
5189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190/* end confdefs.h.  */
5191int i;
5192_ACEOF
5193if ac_fn_c_try_compile "$LINENO"
5194then :
5195  xorg_cv_cc_flag_unused_command_line_argument=yes
5196else $as_nop
5197  xorg_cv_cc_flag_unused_command_line_argument=no
5198fi
5199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5200fi
5201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5202printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5203	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5204	CFLAGS="$xorg_testset_save_CFLAGS"
5205fi
5206
5207found="no"
5208
5209	if test $found = "no" ; then
5210		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5211			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5212		fi
5213
5214		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5215			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5216		fi
5217
5218		CFLAGS="$CFLAGS -Wmissing-declarations"
5219
5220		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5221printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5222		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5223		if eval test \${$cacheid+y}
5224then :
5225  printf %s "(cached) " >&6
5226else $as_nop
5227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228/* end confdefs.h.  */
5229int i;
5230int
5231main (void)
5232{
5233
5234  ;
5235  return 0;
5236}
5237_ACEOF
5238if ac_fn_c_try_link "$LINENO"
5239then :
5240  eval $cacheid=yes
5241else $as_nop
5242  eval $cacheid=no
5243fi
5244rm -f core conftest.err conftest.$ac_objext conftest.beam \
5245    conftest$ac_exeext conftest.$ac_ext
5246fi
5247
5248
5249		CFLAGS="$xorg_testset_save_CFLAGS"
5250
5251		eval supported=\$$cacheid
5252		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5253printf "%s\n" "$supported" >&6; }
5254		if test "$supported" = "yes" ; then
5255			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5256			found="yes"
5257		fi
5258	fi
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274xorg_testset_save_CFLAGS="$CFLAGS"
5275
5276if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5277	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5278	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5279printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5280if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5281then :
5282  printf %s "(cached) " >&6
5283else $as_nop
5284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285/* end confdefs.h.  */
5286int i;
5287_ACEOF
5288if ac_fn_c_try_compile "$LINENO"
5289then :
5290  xorg_cv_cc_flag_unknown_warning_option=yes
5291else $as_nop
5292  xorg_cv_cc_flag_unknown_warning_option=no
5293fi
5294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5295fi
5296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5297printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5298	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5299	CFLAGS="$xorg_testset_save_CFLAGS"
5300fi
5301
5302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5303	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5304		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5305	fi
5306	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5307	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5308printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5309if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5310then :
5311  printf %s "(cached) " >&6
5312else $as_nop
5313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314/* end confdefs.h.  */
5315int i;
5316_ACEOF
5317if ac_fn_c_try_compile "$LINENO"
5318then :
5319  xorg_cv_cc_flag_unused_command_line_argument=yes
5320else $as_nop
5321  xorg_cv_cc_flag_unused_command_line_argument=no
5322fi
5323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5324fi
5325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5326printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5327	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5328	CFLAGS="$xorg_testset_save_CFLAGS"
5329fi
5330
5331found="no"
5332
5333	if test $found = "no" ; then
5334		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5335			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5336		fi
5337
5338		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5339			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5340		fi
5341
5342		CFLAGS="$CFLAGS -Wformat=2"
5343
5344		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5345printf %s "checking if $CC supports -Wformat=2... " >&6; }
5346		cacheid=xorg_cv_cc_flag__Wformat_2
5347		if eval test \${$cacheid+y}
5348then :
5349  printf %s "(cached) " >&6
5350else $as_nop
5351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352/* end confdefs.h.  */
5353int i;
5354int
5355main (void)
5356{
5357
5358  ;
5359  return 0;
5360}
5361_ACEOF
5362if ac_fn_c_try_link "$LINENO"
5363then :
5364  eval $cacheid=yes
5365else $as_nop
5366  eval $cacheid=no
5367fi
5368rm -f core conftest.err conftest.$ac_objext conftest.beam \
5369    conftest$ac_exeext conftest.$ac_ext
5370fi
5371
5372
5373		CFLAGS="$xorg_testset_save_CFLAGS"
5374
5375		eval supported=\$$cacheid
5376		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5377printf "%s\n" "$supported" >&6; }
5378		if test "$supported" = "yes" ; then
5379			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5380			found="yes"
5381		fi
5382	fi
5383
5384	if test $found = "no" ; then
5385		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5386			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5387		fi
5388
5389		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5390			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5391		fi
5392
5393		CFLAGS="$CFLAGS -Wformat"
5394
5395		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5396printf %s "checking if $CC supports -Wformat... " >&6; }
5397		cacheid=xorg_cv_cc_flag__Wformat
5398		if eval test \${$cacheid+y}
5399then :
5400  printf %s "(cached) " >&6
5401else $as_nop
5402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403/* end confdefs.h.  */
5404int i;
5405int
5406main (void)
5407{
5408
5409  ;
5410  return 0;
5411}
5412_ACEOF
5413if ac_fn_c_try_link "$LINENO"
5414then :
5415  eval $cacheid=yes
5416else $as_nop
5417  eval $cacheid=no
5418fi
5419rm -f core conftest.err conftest.$ac_objext conftest.beam \
5420    conftest$ac_exeext conftest.$ac_ext
5421fi
5422
5423
5424		CFLAGS="$xorg_testset_save_CFLAGS"
5425
5426		eval supported=\$$cacheid
5427		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5428printf "%s\n" "$supported" >&6; }
5429		if test "$supported" = "yes" ; then
5430			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5431			found="yes"
5432		fi
5433	fi
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451xorg_testset_save_CFLAGS="$CFLAGS"
5452
5453if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5454	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5455	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5456printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5457if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5458then :
5459  printf %s "(cached) " >&6
5460else $as_nop
5461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462/* end confdefs.h.  */
5463int i;
5464_ACEOF
5465if ac_fn_c_try_compile "$LINENO"
5466then :
5467  xorg_cv_cc_flag_unknown_warning_option=yes
5468else $as_nop
5469  xorg_cv_cc_flag_unknown_warning_option=no
5470fi
5471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5472fi
5473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5474printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5475	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5476	CFLAGS="$xorg_testset_save_CFLAGS"
5477fi
5478
5479if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5480	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5481		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5482	fi
5483	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5484	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5485printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5486if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5487then :
5488  printf %s "(cached) " >&6
5489else $as_nop
5490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491/* end confdefs.h.  */
5492int i;
5493_ACEOF
5494if ac_fn_c_try_compile "$LINENO"
5495then :
5496  xorg_cv_cc_flag_unused_command_line_argument=yes
5497else $as_nop
5498  xorg_cv_cc_flag_unused_command_line_argument=no
5499fi
5500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5501fi
5502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5503printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5504	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5505	CFLAGS="$xorg_testset_save_CFLAGS"
5506fi
5507
5508found="no"
5509
5510	if test $found = "no" ; then
5511		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5512			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5513		fi
5514
5515		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5516			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5517		fi
5518
5519		CFLAGS="$CFLAGS -Wstrict-prototypes"
5520
5521		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5522printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5523		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5524		if eval test \${$cacheid+y}
5525then :
5526  printf %s "(cached) " >&6
5527else $as_nop
5528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529/* end confdefs.h.  */
5530int i;
5531int
5532main (void)
5533{
5534
5535  ;
5536  return 0;
5537}
5538_ACEOF
5539if ac_fn_c_try_link "$LINENO"
5540then :
5541  eval $cacheid=yes
5542else $as_nop
5543  eval $cacheid=no
5544fi
5545rm -f core conftest.err conftest.$ac_objext conftest.beam \
5546    conftest$ac_exeext conftest.$ac_ext
5547fi
5548
5549
5550		CFLAGS="$xorg_testset_save_CFLAGS"
5551
5552		eval supported=\$$cacheid
5553		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5554printf "%s\n" "$supported" >&6; }
5555		if test "$supported" = "yes" ; then
5556			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5557			found="yes"
5558		fi
5559	fi
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575xorg_testset_save_CFLAGS="$CFLAGS"
5576
5577if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5578	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5579	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5580printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5581if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5582then :
5583  printf %s "(cached) " >&6
5584else $as_nop
5585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586/* end confdefs.h.  */
5587int i;
5588_ACEOF
5589if ac_fn_c_try_compile "$LINENO"
5590then :
5591  xorg_cv_cc_flag_unknown_warning_option=yes
5592else $as_nop
5593  xorg_cv_cc_flag_unknown_warning_option=no
5594fi
5595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5596fi
5597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5598printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5599	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5600	CFLAGS="$xorg_testset_save_CFLAGS"
5601fi
5602
5603if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5604	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5605		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5606	fi
5607	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5608	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5609printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5610if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5611then :
5612  printf %s "(cached) " >&6
5613else $as_nop
5614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615/* end confdefs.h.  */
5616int i;
5617_ACEOF
5618if ac_fn_c_try_compile "$LINENO"
5619then :
5620  xorg_cv_cc_flag_unused_command_line_argument=yes
5621else $as_nop
5622  xorg_cv_cc_flag_unused_command_line_argument=no
5623fi
5624rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5625fi
5626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5627printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5628	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5629	CFLAGS="$xorg_testset_save_CFLAGS"
5630fi
5631
5632found="no"
5633
5634	if test $found = "no" ; then
5635		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5636			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5637		fi
5638
5639		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5640			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5641		fi
5642
5643		CFLAGS="$CFLAGS -Wmissing-prototypes"
5644
5645		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5646printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5647		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5648		if eval test \${$cacheid+y}
5649then :
5650  printf %s "(cached) " >&6
5651else $as_nop
5652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653/* end confdefs.h.  */
5654int i;
5655int
5656main (void)
5657{
5658
5659  ;
5660  return 0;
5661}
5662_ACEOF
5663if ac_fn_c_try_link "$LINENO"
5664then :
5665  eval $cacheid=yes
5666else $as_nop
5667  eval $cacheid=no
5668fi
5669rm -f core conftest.err conftest.$ac_objext conftest.beam \
5670    conftest$ac_exeext conftest.$ac_ext
5671fi
5672
5673
5674		CFLAGS="$xorg_testset_save_CFLAGS"
5675
5676		eval supported=\$$cacheid
5677		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5678printf "%s\n" "$supported" >&6; }
5679		if test "$supported" = "yes" ; then
5680			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5681			found="yes"
5682		fi
5683	fi
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699xorg_testset_save_CFLAGS="$CFLAGS"
5700
5701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5702	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5703	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5704printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5705if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5706then :
5707  printf %s "(cached) " >&6
5708else $as_nop
5709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710/* end confdefs.h.  */
5711int i;
5712_ACEOF
5713if ac_fn_c_try_compile "$LINENO"
5714then :
5715  xorg_cv_cc_flag_unknown_warning_option=yes
5716else $as_nop
5717  xorg_cv_cc_flag_unknown_warning_option=no
5718fi
5719rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5720fi
5721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5722printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5723	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5724	CFLAGS="$xorg_testset_save_CFLAGS"
5725fi
5726
5727if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5728	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5729		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5730	fi
5731	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5732	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5733printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5734if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5735then :
5736  printf %s "(cached) " >&6
5737else $as_nop
5738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739/* end confdefs.h.  */
5740int i;
5741_ACEOF
5742if ac_fn_c_try_compile "$LINENO"
5743then :
5744  xorg_cv_cc_flag_unused_command_line_argument=yes
5745else $as_nop
5746  xorg_cv_cc_flag_unused_command_line_argument=no
5747fi
5748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5749fi
5750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5751printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5752	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5753	CFLAGS="$xorg_testset_save_CFLAGS"
5754fi
5755
5756found="no"
5757
5758	if test $found = "no" ; then
5759		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5760			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5761		fi
5762
5763		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5764			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5765		fi
5766
5767		CFLAGS="$CFLAGS -Wnested-externs"
5768
5769		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5770printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5771		cacheid=xorg_cv_cc_flag__Wnested_externs
5772		if eval test \${$cacheid+y}
5773then :
5774  printf %s "(cached) " >&6
5775else $as_nop
5776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777/* end confdefs.h.  */
5778int i;
5779int
5780main (void)
5781{
5782
5783  ;
5784  return 0;
5785}
5786_ACEOF
5787if ac_fn_c_try_link "$LINENO"
5788then :
5789  eval $cacheid=yes
5790else $as_nop
5791  eval $cacheid=no
5792fi
5793rm -f core conftest.err conftest.$ac_objext conftest.beam \
5794    conftest$ac_exeext conftest.$ac_ext
5795fi
5796
5797
5798		CFLAGS="$xorg_testset_save_CFLAGS"
5799
5800		eval supported=\$$cacheid
5801		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5802printf "%s\n" "$supported" >&6; }
5803		if test "$supported" = "yes" ; then
5804			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5805			found="yes"
5806		fi
5807	fi
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823xorg_testset_save_CFLAGS="$CFLAGS"
5824
5825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5826	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5827	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5828printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5829if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5830then :
5831  printf %s "(cached) " >&6
5832else $as_nop
5833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834/* end confdefs.h.  */
5835int i;
5836_ACEOF
5837if ac_fn_c_try_compile "$LINENO"
5838then :
5839  xorg_cv_cc_flag_unknown_warning_option=yes
5840else $as_nop
5841  xorg_cv_cc_flag_unknown_warning_option=no
5842fi
5843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5844fi
5845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5846printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5847	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5848	CFLAGS="$xorg_testset_save_CFLAGS"
5849fi
5850
5851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5852	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5853		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5854	fi
5855	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5856	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5857printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5858if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5859then :
5860  printf %s "(cached) " >&6
5861else $as_nop
5862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863/* end confdefs.h.  */
5864int i;
5865_ACEOF
5866if ac_fn_c_try_compile "$LINENO"
5867then :
5868  xorg_cv_cc_flag_unused_command_line_argument=yes
5869else $as_nop
5870  xorg_cv_cc_flag_unused_command_line_argument=no
5871fi
5872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5873fi
5874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5875printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5876	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5877	CFLAGS="$xorg_testset_save_CFLAGS"
5878fi
5879
5880found="no"
5881
5882	if test $found = "no" ; then
5883		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5884			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5885		fi
5886
5887		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5888			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5889		fi
5890
5891		CFLAGS="$CFLAGS -Wbad-function-cast"
5892
5893		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5894printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5895		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5896		if eval test \${$cacheid+y}
5897then :
5898  printf %s "(cached) " >&6
5899else $as_nop
5900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901/* end confdefs.h.  */
5902int i;
5903int
5904main (void)
5905{
5906
5907  ;
5908  return 0;
5909}
5910_ACEOF
5911if ac_fn_c_try_link "$LINENO"
5912then :
5913  eval $cacheid=yes
5914else $as_nop
5915  eval $cacheid=no
5916fi
5917rm -f core conftest.err conftest.$ac_objext conftest.beam \
5918    conftest$ac_exeext conftest.$ac_ext
5919fi
5920
5921
5922		CFLAGS="$xorg_testset_save_CFLAGS"
5923
5924		eval supported=\$$cacheid
5925		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5926printf "%s\n" "$supported" >&6; }
5927		if test "$supported" = "yes" ; then
5928			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5929			found="yes"
5930		fi
5931	fi
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947xorg_testset_save_CFLAGS="$CFLAGS"
5948
5949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5950	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5951	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5952printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5953if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5954then :
5955  printf %s "(cached) " >&6
5956else $as_nop
5957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958/* end confdefs.h.  */
5959int i;
5960_ACEOF
5961if ac_fn_c_try_compile "$LINENO"
5962then :
5963  xorg_cv_cc_flag_unknown_warning_option=yes
5964else $as_nop
5965  xorg_cv_cc_flag_unknown_warning_option=no
5966fi
5967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5968fi
5969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5970printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5971	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5972	CFLAGS="$xorg_testset_save_CFLAGS"
5973fi
5974
5975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5976	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5977		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5978	fi
5979	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5980	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5981printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5982if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5983then :
5984  printf %s "(cached) " >&6
5985else $as_nop
5986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987/* end confdefs.h.  */
5988int i;
5989_ACEOF
5990if ac_fn_c_try_compile "$LINENO"
5991then :
5992  xorg_cv_cc_flag_unused_command_line_argument=yes
5993else $as_nop
5994  xorg_cv_cc_flag_unused_command_line_argument=no
5995fi
5996rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5997fi
5998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5999printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6000	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6001	CFLAGS="$xorg_testset_save_CFLAGS"
6002fi
6003
6004found="no"
6005
6006	if test $found = "no" ; then
6007		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6008			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6009		fi
6010
6011		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6012			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6013		fi
6014
6015		CFLAGS="$CFLAGS -Wold-style-definition"
6016
6017		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6018printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6019		cacheid=xorg_cv_cc_flag__Wold_style_definition
6020		if eval test \${$cacheid+y}
6021then :
6022  printf %s "(cached) " >&6
6023else $as_nop
6024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025/* end confdefs.h.  */
6026int i;
6027int
6028main (void)
6029{
6030
6031  ;
6032  return 0;
6033}
6034_ACEOF
6035if ac_fn_c_try_link "$LINENO"
6036then :
6037  eval $cacheid=yes
6038else $as_nop
6039  eval $cacheid=no
6040fi
6041rm -f core conftest.err conftest.$ac_objext conftest.beam \
6042    conftest$ac_exeext conftest.$ac_ext
6043fi
6044
6045
6046		CFLAGS="$xorg_testset_save_CFLAGS"
6047
6048		eval supported=\$$cacheid
6049		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6050printf "%s\n" "$supported" >&6; }
6051		if test "$supported" = "yes" ; then
6052			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6053			found="yes"
6054		fi
6055	fi
6056
6057	if test $found = "no" ; then
6058		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6059			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6060		fi
6061
6062		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6063			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6064		fi
6065
6066		CFLAGS="$CFLAGS -fd"
6067
6068		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6069printf %s "checking if $CC supports -fd... " >&6; }
6070		cacheid=xorg_cv_cc_flag__fd
6071		if eval test \${$cacheid+y}
6072then :
6073  printf %s "(cached) " >&6
6074else $as_nop
6075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076/* end confdefs.h.  */
6077int i;
6078int
6079main (void)
6080{
6081
6082  ;
6083  return 0;
6084}
6085_ACEOF
6086if ac_fn_c_try_link "$LINENO"
6087then :
6088  eval $cacheid=yes
6089else $as_nop
6090  eval $cacheid=no
6091fi
6092rm -f core conftest.err conftest.$ac_objext conftest.beam \
6093    conftest$ac_exeext conftest.$ac_ext
6094fi
6095
6096
6097		CFLAGS="$xorg_testset_save_CFLAGS"
6098
6099		eval supported=\$$cacheid
6100		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6101printf "%s\n" "$supported" >&6; }
6102		if test "$supported" = "yes" ; then
6103			BASE_CFLAGS="$BASE_CFLAGS -fd"
6104			found="yes"
6105		fi
6106	fi
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122xorg_testset_save_CFLAGS="$CFLAGS"
6123
6124if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6125	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6126	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6127printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6128if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6129then :
6130  printf %s "(cached) " >&6
6131else $as_nop
6132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133/* end confdefs.h.  */
6134int i;
6135_ACEOF
6136if ac_fn_c_try_compile "$LINENO"
6137then :
6138  xorg_cv_cc_flag_unknown_warning_option=yes
6139else $as_nop
6140  xorg_cv_cc_flag_unknown_warning_option=no
6141fi
6142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6143fi
6144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6145printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6146	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6147	CFLAGS="$xorg_testset_save_CFLAGS"
6148fi
6149
6150if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6151	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6152		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6153	fi
6154	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6155	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6156printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6157if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6158then :
6159  printf %s "(cached) " >&6
6160else $as_nop
6161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162/* end confdefs.h.  */
6163int i;
6164_ACEOF
6165if ac_fn_c_try_compile "$LINENO"
6166then :
6167  xorg_cv_cc_flag_unused_command_line_argument=yes
6168else $as_nop
6169  xorg_cv_cc_flag_unused_command_line_argument=no
6170fi
6171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6172fi
6173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6174printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6175	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6176	CFLAGS="$xorg_testset_save_CFLAGS"
6177fi
6178
6179found="no"
6180
6181	if test $found = "no" ; then
6182		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6183			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6184		fi
6185
6186		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6187			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6188		fi
6189
6190		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6191
6192		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6193printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6194		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6195		if eval test \${$cacheid+y}
6196then :
6197  printf %s "(cached) " >&6
6198else $as_nop
6199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6200/* end confdefs.h.  */
6201int i;
6202int
6203main (void)
6204{
6205
6206  ;
6207  return 0;
6208}
6209_ACEOF
6210if ac_fn_c_try_link "$LINENO"
6211then :
6212  eval $cacheid=yes
6213else $as_nop
6214  eval $cacheid=no
6215fi
6216rm -f core conftest.err conftest.$ac_objext conftest.beam \
6217    conftest$ac_exeext conftest.$ac_ext
6218fi
6219
6220
6221		CFLAGS="$xorg_testset_save_CFLAGS"
6222
6223		eval supported=\$$cacheid
6224		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6225printf "%s\n" "$supported" >&6; }
6226		if test "$supported" = "yes" ; then
6227			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6228			found="yes"
6229		fi
6230	fi
6231
6232
6233
6234
6235
6236# This chunk adds additional warnings that could catch undesired effects.
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250xorg_testset_save_CFLAGS="$CFLAGS"
6251
6252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6253	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6254	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6255printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6256if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6257then :
6258  printf %s "(cached) " >&6
6259else $as_nop
6260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261/* end confdefs.h.  */
6262int i;
6263_ACEOF
6264if ac_fn_c_try_compile "$LINENO"
6265then :
6266  xorg_cv_cc_flag_unknown_warning_option=yes
6267else $as_nop
6268  xorg_cv_cc_flag_unknown_warning_option=no
6269fi
6270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6271fi
6272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6273printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6274	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6275	CFLAGS="$xorg_testset_save_CFLAGS"
6276fi
6277
6278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6279	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6280		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6281	fi
6282	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6283	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6284printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6285if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6286then :
6287  printf %s "(cached) " >&6
6288else $as_nop
6289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290/* end confdefs.h.  */
6291int i;
6292_ACEOF
6293if ac_fn_c_try_compile "$LINENO"
6294then :
6295  xorg_cv_cc_flag_unused_command_line_argument=yes
6296else $as_nop
6297  xorg_cv_cc_flag_unused_command_line_argument=no
6298fi
6299rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6300fi
6301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6302printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6303	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6304	CFLAGS="$xorg_testset_save_CFLAGS"
6305fi
6306
6307found="no"
6308
6309	if test $found = "no" ; then
6310		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6311			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6312		fi
6313
6314		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6315			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6316		fi
6317
6318		CFLAGS="$CFLAGS -Wunused"
6319
6320		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6321printf %s "checking if $CC supports -Wunused... " >&6; }
6322		cacheid=xorg_cv_cc_flag__Wunused
6323		if eval test \${$cacheid+y}
6324then :
6325  printf %s "(cached) " >&6
6326else $as_nop
6327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328/* end confdefs.h.  */
6329int i;
6330int
6331main (void)
6332{
6333
6334  ;
6335  return 0;
6336}
6337_ACEOF
6338if ac_fn_c_try_link "$LINENO"
6339then :
6340  eval $cacheid=yes
6341else $as_nop
6342  eval $cacheid=no
6343fi
6344rm -f core conftest.err conftest.$ac_objext conftest.beam \
6345    conftest$ac_exeext conftest.$ac_ext
6346fi
6347
6348
6349		CFLAGS="$xorg_testset_save_CFLAGS"
6350
6351		eval supported=\$$cacheid
6352		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6353printf "%s\n" "$supported" >&6; }
6354		if test "$supported" = "yes" ; then
6355			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6356			found="yes"
6357		fi
6358	fi
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374xorg_testset_save_CFLAGS="$CFLAGS"
6375
6376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6377	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6378	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6379printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6380if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6381then :
6382  printf %s "(cached) " >&6
6383else $as_nop
6384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385/* end confdefs.h.  */
6386int i;
6387_ACEOF
6388if ac_fn_c_try_compile "$LINENO"
6389then :
6390  xorg_cv_cc_flag_unknown_warning_option=yes
6391else $as_nop
6392  xorg_cv_cc_flag_unknown_warning_option=no
6393fi
6394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6395fi
6396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6397printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6398	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6399	CFLAGS="$xorg_testset_save_CFLAGS"
6400fi
6401
6402if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6403	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6404		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6405	fi
6406	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6407	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6408printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6409if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6410then :
6411  printf %s "(cached) " >&6
6412else $as_nop
6413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414/* end confdefs.h.  */
6415int i;
6416_ACEOF
6417if ac_fn_c_try_compile "$LINENO"
6418then :
6419  xorg_cv_cc_flag_unused_command_line_argument=yes
6420else $as_nop
6421  xorg_cv_cc_flag_unused_command_line_argument=no
6422fi
6423rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6424fi
6425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6426printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6427	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6428	CFLAGS="$xorg_testset_save_CFLAGS"
6429fi
6430
6431found="no"
6432
6433	if test $found = "no" ; then
6434		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6435			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6436		fi
6437
6438		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6439			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6440		fi
6441
6442		CFLAGS="$CFLAGS -Wuninitialized"
6443
6444		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6445printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6446		cacheid=xorg_cv_cc_flag__Wuninitialized
6447		if eval test \${$cacheid+y}
6448then :
6449  printf %s "(cached) " >&6
6450else $as_nop
6451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452/* end confdefs.h.  */
6453int i;
6454int
6455main (void)
6456{
6457
6458  ;
6459  return 0;
6460}
6461_ACEOF
6462if ac_fn_c_try_link "$LINENO"
6463then :
6464  eval $cacheid=yes
6465else $as_nop
6466  eval $cacheid=no
6467fi
6468rm -f core conftest.err conftest.$ac_objext conftest.beam \
6469    conftest$ac_exeext conftest.$ac_ext
6470fi
6471
6472
6473		CFLAGS="$xorg_testset_save_CFLAGS"
6474
6475		eval supported=\$$cacheid
6476		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6477printf "%s\n" "$supported" >&6; }
6478		if test "$supported" = "yes" ; then
6479			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6480			found="yes"
6481		fi
6482	fi
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498xorg_testset_save_CFLAGS="$CFLAGS"
6499
6500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6501	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6502	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6503printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6504if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6505then :
6506  printf %s "(cached) " >&6
6507else $as_nop
6508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509/* end confdefs.h.  */
6510int i;
6511_ACEOF
6512if ac_fn_c_try_compile "$LINENO"
6513then :
6514  xorg_cv_cc_flag_unknown_warning_option=yes
6515else $as_nop
6516  xorg_cv_cc_flag_unknown_warning_option=no
6517fi
6518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6519fi
6520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6521printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6522	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6523	CFLAGS="$xorg_testset_save_CFLAGS"
6524fi
6525
6526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6527	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6528		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6529	fi
6530	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6531	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6532printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6533if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6534then :
6535  printf %s "(cached) " >&6
6536else $as_nop
6537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538/* end confdefs.h.  */
6539int i;
6540_ACEOF
6541if ac_fn_c_try_compile "$LINENO"
6542then :
6543  xorg_cv_cc_flag_unused_command_line_argument=yes
6544else $as_nop
6545  xorg_cv_cc_flag_unused_command_line_argument=no
6546fi
6547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6548fi
6549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6550printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6551	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6552	CFLAGS="$xorg_testset_save_CFLAGS"
6553fi
6554
6555found="no"
6556
6557	if test $found = "no" ; then
6558		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6559			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6560		fi
6561
6562		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6563			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6564		fi
6565
6566		CFLAGS="$CFLAGS -Wshadow"
6567
6568		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6569printf %s "checking if $CC supports -Wshadow... " >&6; }
6570		cacheid=xorg_cv_cc_flag__Wshadow
6571		if eval test \${$cacheid+y}
6572then :
6573  printf %s "(cached) " >&6
6574else $as_nop
6575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576/* end confdefs.h.  */
6577int i;
6578int
6579main (void)
6580{
6581
6582  ;
6583  return 0;
6584}
6585_ACEOF
6586if ac_fn_c_try_link "$LINENO"
6587then :
6588  eval $cacheid=yes
6589else $as_nop
6590  eval $cacheid=no
6591fi
6592rm -f core conftest.err conftest.$ac_objext conftest.beam \
6593    conftest$ac_exeext conftest.$ac_ext
6594fi
6595
6596
6597		CFLAGS="$xorg_testset_save_CFLAGS"
6598
6599		eval supported=\$$cacheid
6600		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6601printf "%s\n" "$supported" >&6; }
6602		if test "$supported" = "yes" ; then
6603			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6604			found="yes"
6605		fi
6606	fi
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622xorg_testset_save_CFLAGS="$CFLAGS"
6623
6624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6625	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6626	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6627printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6628if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6629then :
6630  printf %s "(cached) " >&6
6631else $as_nop
6632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633/* end confdefs.h.  */
6634int i;
6635_ACEOF
6636if ac_fn_c_try_compile "$LINENO"
6637then :
6638  xorg_cv_cc_flag_unknown_warning_option=yes
6639else $as_nop
6640  xorg_cv_cc_flag_unknown_warning_option=no
6641fi
6642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6643fi
6644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6645printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6646	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6647	CFLAGS="$xorg_testset_save_CFLAGS"
6648fi
6649
6650if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6651	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6652		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6653	fi
6654	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6655	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6656printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6657if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6658then :
6659  printf %s "(cached) " >&6
6660else $as_nop
6661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662/* end confdefs.h.  */
6663int i;
6664_ACEOF
6665if ac_fn_c_try_compile "$LINENO"
6666then :
6667  xorg_cv_cc_flag_unused_command_line_argument=yes
6668else $as_nop
6669  xorg_cv_cc_flag_unused_command_line_argument=no
6670fi
6671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6672fi
6673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6674printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6675	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6676	CFLAGS="$xorg_testset_save_CFLAGS"
6677fi
6678
6679found="no"
6680
6681	if test $found = "no" ; then
6682		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6683			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6684		fi
6685
6686		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6687			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6688		fi
6689
6690		CFLAGS="$CFLAGS -Wmissing-noreturn"
6691
6692		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6693printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6694		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6695		if eval test \${$cacheid+y}
6696then :
6697  printf %s "(cached) " >&6
6698else $as_nop
6699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700/* end confdefs.h.  */
6701int i;
6702int
6703main (void)
6704{
6705
6706  ;
6707  return 0;
6708}
6709_ACEOF
6710if ac_fn_c_try_link "$LINENO"
6711then :
6712  eval $cacheid=yes
6713else $as_nop
6714  eval $cacheid=no
6715fi
6716rm -f core conftest.err conftest.$ac_objext conftest.beam \
6717    conftest$ac_exeext conftest.$ac_ext
6718fi
6719
6720
6721		CFLAGS="$xorg_testset_save_CFLAGS"
6722
6723		eval supported=\$$cacheid
6724		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6725printf "%s\n" "$supported" >&6; }
6726		if test "$supported" = "yes" ; then
6727			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6728			found="yes"
6729		fi
6730	fi
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746xorg_testset_save_CFLAGS="$CFLAGS"
6747
6748if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6749	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6750	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6751printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6752if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6753then :
6754  printf %s "(cached) " >&6
6755else $as_nop
6756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757/* end confdefs.h.  */
6758int i;
6759_ACEOF
6760if ac_fn_c_try_compile "$LINENO"
6761then :
6762  xorg_cv_cc_flag_unknown_warning_option=yes
6763else $as_nop
6764  xorg_cv_cc_flag_unknown_warning_option=no
6765fi
6766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6767fi
6768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6769printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6770	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6771	CFLAGS="$xorg_testset_save_CFLAGS"
6772fi
6773
6774if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6775	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6776		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6777	fi
6778	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6779	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6780printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6781if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6782then :
6783  printf %s "(cached) " >&6
6784else $as_nop
6785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786/* end confdefs.h.  */
6787int i;
6788_ACEOF
6789if ac_fn_c_try_compile "$LINENO"
6790then :
6791  xorg_cv_cc_flag_unused_command_line_argument=yes
6792else $as_nop
6793  xorg_cv_cc_flag_unused_command_line_argument=no
6794fi
6795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6796fi
6797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6798printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6799	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6800	CFLAGS="$xorg_testset_save_CFLAGS"
6801fi
6802
6803found="no"
6804
6805	if test $found = "no" ; then
6806		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6807			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6808		fi
6809
6810		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6811			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6812		fi
6813
6814		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6815
6816		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6817printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6818		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6819		if eval test \${$cacheid+y}
6820then :
6821  printf %s "(cached) " >&6
6822else $as_nop
6823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824/* end confdefs.h.  */
6825int i;
6826int
6827main (void)
6828{
6829
6830  ;
6831  return 0;
6832}
6833_ACEOF
6834if ac_fn_c_try_link "$LINENO"
6835then :
6836  eval $cacheid=yes
6837else $as_nop
6838  eval $cacheid=no
6839fi
6840rm -f core conftest.err conftest.$ac_objext conftest.beam \
6841    conftest$ac_exeext conftest.$ac_ext
6842fi
6843
6844
6845		CFLAGS="$xorg_testset_save_CFLAGS"
6846
6847		eval supported=\$$cacheid
6848		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6849printf "%s\n" "$supported" >&6; }
6850		if test "$supported" = "yes" ; then
6851			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6852			found="yes"
6853		fi
6854	fi
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870xorg_testset_save_CFLAGS="$CFLAGS"
6871
6872if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6873	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6874	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6875printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6876if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6877then :
6878  printf %s "(cached) " >&6
6879else $as_nop
6880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881/* end confdefs.h.  */
6882int i;
6883_ACEOF
6884if ac_fn_c_try_compile "$LINENO"
6885then :
6886  xorg_cv_cc_flag_unknown_warning_option=yes
6887else $as_nop
6888  xorg_cv_cc_flag_unknown_warning_option=no
6889fi
6890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6891fi
6892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6893printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6894	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6895	CFLAGS="$xorg_testset_save_CFLAGS"
6896fi
6897
6898if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6899	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6900		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6901	fi
6902	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6903	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6904printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6905if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6906then :
6907  printf %s "(cached) " >&6
6908else $as_nop
6909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910/* end confdefs.h.  */
6911int i;
6912_ACEOF
6913if ac_fn_c_try_compile "$LINENO"
6914then :
6915  xorg_cv_cc_flag_unused_command_line_argument=yes
6916else $as_nop
6917  xorg_cv_cc_flag_unused_command_line_argument=no
6918fi
6919rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6920fi
6921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6922printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6923	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6924	CFLAGS="$xorg_testset_save_CFLAGS"
6925fi
6926
6927found="no"
6928
6929	if test $found = "no" ; then
6930		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6931			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6932		fi
6933
6934		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6935			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6936		fi
6937
6938		CFLAGS="$CFLAGS -Wredundant-decls"
6939
6940		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6941printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6942		cacheid=xorg_cv_cc_flag__Wredundant_decls
6943		if eval test \${$cacheid+y}
6944then :
6945  printf %s "(cached) " >&6
6946else $as_nop
6947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948/* end confdefs.h.  */
6949int i;
6950int
6951main (void)
6952{
6953
6954  ;
6955  return 0;
6956}
6957_ACEOF
6958if ac_fn_c_try_link "$LINENO"
6959then :
6960  eval $cacheid=yes
6961else $as_nop
6962  eval $cacheid=no
6963fi
6964rm -f core conftest.err conftest.$ac_objext conftest.beam \
6965    conftest$ac_exeext conftest.$ac_ext
6966fi
6967
6968
6969		CFLAGS="$xorg_testset_save_CFLAGS"
6970
6971		eval supported=\$$cacheid
6972		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6973printf "%s\n" "$supported" >&6; }
6974		if test "$supported" = "yes" ; then
6975			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6976			found="yes"
6977		fi
6978	fi
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994xorg_testset_save_CFLAGS="$CFLAGS"
6995
6996if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6997	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6998	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6999printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7000if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7001then :
7002  printf %s "(cached) " >&6
7003else $as_nop
7004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005/* end confdefs.h.  */
7006int i;
7007_ACEOF
7008if ac_fn_c_try_compile "$LINENO"
7009then :
7010  xorg_cv_cc_flag_unknown_warning_option=yes
7011else $as_nop
7012  xorg_cv_cc_flag_unknown_warning_option=no
7013fi
7014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7015fi
7016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7017printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7018	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7019	CFLAGS="$xorg_testset_save_CFLAGS"
7020fi
7021
7022if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7023	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7024		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7025	fi
7026	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7027	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7028printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7029if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7030then :
7031  printf %s "(cached) " >&6
7032else $as_nop
7033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034/* end confdefs.h.  */
7035int i;
7036_ACEOF
7037if ac_fn_c_try_compile "$LINENO"
7038then :
7039  xorg_cv_cc_flag_unused_command_line_argument=yes
7040else $as_nop
7041  xorg_cv_cc_flag_unused_command_line_argument=no
7042fi
7043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7044fi
7045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7046printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7047	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7048	CFLAGS="$xorg_testset_save_CFLAGS"
7049fi
7050
7051found="no"
7052
7053	if test $found = "no" ; then
7054		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7055			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7056		fi
7057
7058		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7059			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7060		fi
7061
7062		CFLAGS="$CFLAGS -Wlogical-op"
7063
7064		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7065printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7066		cacheid=xorg_cv_cc_flag__Wlogical_op
7067		if eval test \${$cacheid+y}
7068then :
7069  printf %s "(cached) " >&6
7070else $as_nop
7071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072/* end confdefs.h.  */
7073int i;
7074int
7075main (void)
7076{
7077
7078  ;
7079  return 0;
7080}
7081_ACEOF
7082if ac_fn_c_try_link "$LINENO"
7083then :
7084  eval $cacheid=yes
7085else $as_nop
7086  eval $cacheid=no
7087fi
7088rm -f core conftest.err conftest.$ac_objext conftest.beam \
7089    conftest$ac_exeext conftest.$ac_ext
7090fi
7091
7092
7093		CFLAGS="$xorg_testset_save_CFLAGS"
7094
7095		eval supported=\$$cacheid
7096		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7097printf "%s\n" "$supported" >&6; }
7098		if test "$supported" = "yes" ; then
7099			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7100			found="yes"
7101		fi
7102	fi
7103
7104
7105
7106# These are currently disabled because they are noisy.  They will be enabled
7107# in the future once the codebase is sufficiently modernized to silence
7108# them.  For now, I don't want them to drown out the other warnings.
7109# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7110# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7111# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7112
7113# Turn some warnings into errors, so we don't accidently get successful builds
7114# when there are problems that should be fixed.
7115
7116if test "x$SELECTIVE_WERROR" = "xyes" ; then
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130xorg_testset_save_CFLAGS="$CFLAGS"
7131
7132if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7133	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7134	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7135printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7136if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7137then :
7138  printf %s "(cached) " >&6
7139else $as_nop
7140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141/* end confdefs.h.  */
7142int i;
7143_ACEOF
7144if ac_fn_c_try_compile "$LINENO"
7145then :
7146  xorg_cv_cc_flag_unknown_warning_option=yes
7147else $as_nop
7148  xorg_cv_cc_flag_unknown_warning_option=no
7149fi
7150rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7151fi
7152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7153printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7154	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7155	CFLAGS="$xorg_testset_save_CFLAGS"
7156fi
7157
7158if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7159	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7160		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7161	fi
7162	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7163	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7164printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7165if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7166then :
7167  printf %s "(cached) " >&6
7168else $as_nop
7169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7170/* end confdefs.h.  */
7171int i;
7172_ACEOF
7173if ac_fn_c_try_compile "$LINENO"
7174then :
7175  xorg_cv_cc_flag_unused_command_line_argument=yes
7176else $as_nop
7177  xorg_cv_cc_flag_unused_command_line_argument=no
7178fi
7179rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7180fi
7181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7182printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7183	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7184	CFLAGS="$xorg_testset_save_CFLAGS"
7185fi
7186
7187found="no"
7188
7189	if test $found = "no" ; then
7190		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7191			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7192		fi
7193
7194		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7195			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7196		fi
7197
7198		CFLAGS="$CFLAGS -Werror=implicit"
7199
7200		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7201printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7202		cacheid=xorg_cv_cc_flag__Werror_implicit
7203		if eval test \${$cacheid+y}
7204then :
7205  printf %s "(cached) " >&6
7206else $as_nop
7207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208/* end confdefs.h.  */
7209int i;
7210int
7211main (void)
7212{
7213
7214  ;
7215  return 0;
7216}
7217_ACEOF
7218if ac_fn_c_try_link "$LINENO"
7219then :
7220  eval $cacheid=yes
7221else $as_nop
7222  eval $cacheid=no
7223fi
7224rm -f core conftest.err conftest.$ac_objext conftest.beam \
7225    conftest$ac_exeext conftest.$ac_ext
7226fi
7227
7228
7229		CFLAGS="$xorg_testset_save_CFLAGS"
7230
7231		eval supported=\$$cacheid
7232		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7233printf "%s\n" "$supported" >&6; }
7234		if test "$supported" = "yes" ; then
7235			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7236			found="yes"
7237		fi
7238	fi
7239
7240	if test $found = "no" ; then
7241		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7242			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7243		fi
7244
7245		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7246			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7247		fi
7248
7249		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7250
7251		{ 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
7252printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7253		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7254		if eval test \${$cacheid+y}
7255then :
7256  printf %s "(cached) " >&6
7257else $as_nop
7258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259/* end confdefs.h.  */
7260int i;
7261int
7262main (void)
7263{
7264
7265  ;
7266  return 0;
7267}
7268_ACEOF
7269if ac_fn_c_try_link "$LINENO"
7270then :
7271  eval $cacheid=yes
7272else $as_nop
7273  eval $cacheid=no
7274fi
7275rm -f core conftest.err conftest.$ac_objext conftest.beam \
7276    conftest$ac_exeext conftest.$ac_ext
7277fi
7278
7279
7280		CFLAGS="$xorg_testset_save_CFLAGS"
7281
7282		eval supported=\$$cacheid
7283		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7284printf "%s\n" "$supported" >&6; }
7285		if test "$supported" = "yes" ; then
7286			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7287			found="yes"
7288		fi
7289	fi
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305xorg_testset_save_CFLAGS="$CFLAGS"
7306
7307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7308	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7309	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7310printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7311if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7312then :
7313  printf %s "(cached) " >&6
7314else $as_nop
7315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316/* end confdefs.h.  */
7317int i;
7318_ACEOF
7319if ac_fn_c_try_compile "$LINENO"
7320then :
7321  xorg_cv_cc_flag_unknown_warning_option=yes
7322else $as_nop
7323  xorg_cv_cc_flag_unknown_warning_option=no
7324fi
7325rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7326fi
7327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7328printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7329	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7330	CFLAGS="$xorg_testset_save_CFLAGS"
7331fi
7332
7333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7334	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7335		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7336	fi
7337	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7338	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7339printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7340if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7341then :
7342  printf %s "(cached) " >&6
7343else $as_nop
7344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345/* end confdefs.h.  */
7346int i;
7347_ACEOF
7348if ac_fn_c_try_compile "$LINENO"
7349then :
7350  xorg_cv_cc_flag_unused_command_line_argument=yes
7351else $as_nop
7352  xorg_cv_cc_flag_unused_command_line_argument=no
7353fi
7354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7355fi
7356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7357printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7358	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7359	CFLAGS="$xorg_testset_save_CFLAGS"
7360fi
7361
7362found="no"
7363
7364	if test $found = "no" ; then
7365		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7366			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7367		fi
7368
7369		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7370			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7371		fi
7372
7373		CFLAGS="$CFLAGS -Werror=nonnull"
7374
7375		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7376printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7377		cacheid=xorg_cv_cc_flag__Werror_nonnull
7378		if eval test \${$cacheid+y}
7379then :
7380  printf %s "(cached) " >&6
7381else $as_nop
7382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383/* end confdefs.h.  */
7384int i;
7385int
7386main (void)
7387{
7388
7389  ;
7390  return 0;
7391}
7392_ACEOF
7393if ac_fn_c_try_link "$LINENO"
7394then :
7395  eval $cacheid=yes
7396else $as_nop
7397  eval $cacheid=no
7398fi
7399rm -f core conftest.err conftest.$ac_objext conftest.beam \
7400    conftest$ac_exeext conftest.$ac_ext
7401fi
7402
7403
7404		CFLAGS="$xorg_testset_save_CFLAGS"
7405
7406		eval supported=\$$cacheid
7407		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7408printf "%s\n" "$supported" >&6; }
7409		if test "$supported" = "yes" ; then
7410			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7411			found="yes"
7412		fi
7413	fi
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429xorg_testset_save_CFLAGS="$CFLAGS"
7430
7431if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7432	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7433	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7434printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7435if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7436then :
7437  printf %s "(cached) " >&6
7438else $as_nop
7439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440/* end confdefs.h.  */
7441int i;
7442_ACEOF
7443if ac_fn_c_try_compile "$LINENO"
7444then :
7445  xorg_cv_cc_flag_unknown_warning_option=yes
7446else $as_nop
7447  xorg_cv_cc_flag_unknown_warning_option=no
7448fi
7449rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7450fi
7451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7452printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7453	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7454	CFLAGS="$xorg_testset_save_CFLAGS"
7455fi
7456
7457if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7458	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7459		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7460	fi
7461	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7462	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7463printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7464if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7465then :
7466  printf %s "(cached) " >&6
7467else $as_nop
7468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469/* end confdefs.h.  */
7470int i;
7471_ACEOF
7472if ac_fn_c_try_compile "$LINENO"
7473then :
7474  xorg_cv_cc_flag_unused_command_line_argument=yes
7475else $as_nop
7476  xorg_cv_cc_flag_unused_command_line_argument=no
7477fi
7478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7479fi
7480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7481printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7482	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7483	CFLAGS="$xorg_testset_save_CFLAGS"
7484fi
7485
7486found="no"
7487
7488	if test $found = "no" ; then
7489		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7490			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7491		fi
7492
7493		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7494			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7495		fi
7496
7497		CFLAGS="$CFLAGS -Werror=init-self"
7498
7499		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7500printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7501		cacheid=xorg_cv_cc_flag__Werror_init_self
7502		if eval test \${$cacheid+y}
7503then :
7504  printf %s "(cached) " >&6
7505else $as_nop
7506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507/* end confdefs.h.  */
7508int i;
7509int
7510main (void)
7511{
7512
7513  ;
7514  return 0;
7515}
7516_ACEOF
7517if ac_fn_c_try_link "$LINENO"
7518then :
7519  eval $cacheid=yes
7520else $as_nop
7521  eval $cacheid=no
7522fi
7523rm -f core conftest.err conftest.$ac_objext conftest.beam \
7524    conftest$ac_exeext conftest.$ac_ext
7525fi
7526
7527
7528		CFLAGS="$xorg_testset_save_CFLAGS"
7529
7530		eval supported=\$$cacheid
7531		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7532printf "%s\n" "$supported" >&6; }
7533		if test "$supported" = "yes" ; then
7534			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7535			found="yes"
7536		fi
7537	fi
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553xorg_testset_save_CFLAGS="$CFLAGS"
7554
7555if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7556	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7557	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7558printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7559if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7560then :
7561  printf %s "(cached) " >&6
7562else $as_nop
7563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564/* end confdefs.h.  */
7565int i;
7566_ACEOF
7567if ac_fn_c_try_compile "$LINENO"
7568then :
7569  xorg_cv_cc_flag_unknown_warning_option=yes
7570else $as_nop
7571  xorg_cv_cc_flag_unknown_warning_option=no
7572fi
7573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7574fi
7575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7576printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7577	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7578	CFLAGS="$xorg_testset_save_CFLAGS"
7579fi
7580
7581if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7582	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7583		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7584	fi
7585	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7586	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7587printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7588if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7589then :
7590  printf %s "(cached) " >&6
7591else $as_nop
7592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593/* end confdefs.h.  */
7594int i;
7595_ACEOF
7596if ac_fn_c_try_compile "$LINENO"
7597then :
7598  xorg_cv_cc_flag_unused_command_line_argument=yes
7599else $as_nop
7600  xorg_cv_cc_flag_unused_command_line_argument=no
7601fi
7602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7603fi
7604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7605printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7606	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7607	CFLAGS="$xorg_testset_save_CFLAGS"
7608fi
7609
7610found="no"
7611
7612	if test $found = "no" ; then
7613		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7614			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7615		fi
7616
7617		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7618			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7619		fi
7620
7621		CFLAGS="$CFLAGS -Werror=main"
7622
7623		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7624printf %s "checking if $CC supports -Werror=main... " >&6; }
7625		cacheid=xorg_cv_cc_flag__Werror_main
7626		if eval test \${$cacheid+y}
7627then :
7628  printf %s "(cached) " >&6
7629else $as_nop
7630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631/* end confdefs.h.  */
7632int i;
7633int
7634main (void)
7635{
7636
7637  ;
7638  return 0;
7639}
7640_ACEOF
7641if ac_fn_c_try_link "$LINENO"
7642then :
7643  eval $cacheid=yes
7644else $as_nop
7645  eval $cacheid=no
7646fi
7647rm -f core conftest.err conftest.$ac_objext conftest.beam \
7648    conftest$ac_exeext conftest.$ac_ext
7649fi
7650
7651
7652		CFLAGS="$xorg_testset_save_CFLAGS"
7653
7654		eval supported=\$$cacheid
7655		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7656printf "%s\n" "$supported" >&6; }
7657		if test "$supported" = "yes" ; then
7658			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7659			found="yes"
7660		fi
7661	fi
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677xorg_testset_save_CFLAGS="$CFLAGS"
7678
7679if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7680	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7681	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7682printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7683if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7684then :
7685  printf %s "(cached) " >&6
7686else $as_nop
7687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688/* end confdefs.h.  */
7689int i;
7690_ACEOF
7691if ac_fn_c_try_compile "$LINENO"
7692then :
7693  xorg_cv_cc_flag_unknown_warning_option=yes
7694else $as_nop
7695  xorg_cv_cc_flag_unknown_warning_option=no
7696fi
7697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7698fi
7699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7700printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7701	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7702	CFLAGS="$xorg_testset_save_CFLAGS"
7703fi
7704
7705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7706	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7707		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7708	fi
7709	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7710	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7711printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7712if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7713then :
7714  printf %s "(cached) " >&6
7715else $as_nop
7716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717/* end confdefs.h.  */
7718int i;
7719_ACEOF
7720if ac_fn_c_try_compile "$LINENO"
7721then :
7722  xorg_cv_cc_flag_unused_command_line_argument=yes
7723else $as_nop
7724  xorg_cv_cc_flag_unused_command_line_argument=no
7725fi
7726rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7727fi
7728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7729printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7730	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7731	CFLAGS="$xorg_testset_save_CFLAGS"
7732fi
7733
7734found="no"
7735
7736	if test $found = "no" ; then
7737		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7738			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7739		fi
7740
7741		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7742			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7743		fi
7744
7745		CFLAGS="$CFLAGS -Werror=missing-braces"
7746
7747		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7748printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7749		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7750		if eval test \${$cacheid+y}
7751then :
7752  printf %s "(cached) " >&6
7753else $as_nop
7754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755/* end confdefs.h.  */
7756int i;
7757int
7758main (void)
7759{
7760
7761  ;
7762  return 0;
7763}
7764_ACEOF
7765if ac_fn_c_try_link "$LINENO"
7766then :
7767  eval $cacheid=yes
7768else $as_nop
7769  eval $cacheid=no
7770fi
7771rm -f core conftest.err conftest.$ac_objext conftest.beam \
7772    conftest$ac_exeext conftest.$ac_ext
7773fi
7774
7775
7776		CFLAGS="$xorg_testset_save_CFLAGS"
7777
7778		eval supported=\$$cacheid
7779		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7780printf "%s\n" "$supported" >&6; }
7781		if test "$supported" = "yes" ; then
7782			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7783			found="yes"
7784		fi
7785	fi
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801xorg_testset_save_CFLAGS="$CFLAGS"
7802
7803if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7804	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7805	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7806printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7807if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7808then :
7809  printf %s "(cached) " >&6
7810else $as_nop
7811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812/* end confdefs.h.  */
7813int i;
7814_ACEOF
7815if ac_fn_c_try_compile "$LINENO"
7816then :
7817  xorg_cv_cc_flag_unknown_warning_option=yes
7818else $as_nop
7819  xorg_cv_cc_flag_unknown_warning_option=no
7820fi
7821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7822fi
7823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7824printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7825	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7826	CFLAGS="$xorg_testset_save_CFLAGS"
7827fi
7828
7829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7830	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7831		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7832	fi
7833	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7834	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7835printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7836if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7837then :
7838  printf %s "(cached) " >&6
7839else $as_nop
7840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841/* end confdefs.h.  */
7842int i;
7843_ACEOF
7844if ac_fn_c_try_compile "$LINENO"
7845then :
7846  xorg_cv_cc_flag_unused_command_line_argument=yes
7847else $as_nop
7848  xorg_cv_cc_flag_unused_command_line_argument=no
7849fi
7850rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7851fi
7852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7853printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7854	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7855	CFLAGS="$xorg_testset_save_CFLAGS"
7856fi
7857
7858found="no"
7859
7860	if test $found = "no" ; then
7861		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7862			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7863		fi
7864
7865		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7866			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7867		fi
7868
7869		CFLAGS="$CFLAGS -Werror=sequence-point"
7870
7871		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7872printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7873		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7874		if eval test \${$cacheid+y}
7875then :
7876  printf %s "(cached) " >&6
7877else $as_nop
7878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879/* end confdefs.h.  */
7880int i;
7881int
7882main (void)
7883{
7884
7885  ;
7886  return 0;
7887}
7888_ACEOF
7889if ac_fn_c_try_link "$LINENO"
7890then :
7891  eval $cacheid=yes
7892else $as_nop
7893  eval $cacheid=no
7894fi
7895rm -f core conftest.err conftest.$ac_objext conftest.beam \
7896    conftest$ac_exeext conftest.$ac_ext
7897fi
7898
7899
7900		CFLAGS="$xorg_testset_save_CFLAGS"
7901
7902		eval supported=\$$cacheid
7903		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7904printf "%s\n" "$supported" >&6; }
7905		if test "$supported" = "yes" ; then
7906			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7907			found="yes"
7908		fi
7909	fi
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925xorg_testset_save_CFLAGS="$CFLAGS"
7926
7927if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7928	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7929	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7930printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7931if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7932then :
7933  printf %s "(cached) " >&6
7934else $as_nop
7935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936/* end confdefs.h.  */
7937int i;
7938_ACEOF
7939if ac_fn_c_try_compile "$LINENO"
7940then :
7941  xorg_cv_cc_flag_unknown_warning_option=yes
7942else $as_nop
7943  xorg_cv_cc_flag_unknown_warning_option=no
7944fi
7945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7946fi
7947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7948printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7949	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7950	CFLAGS="$xorg_testset_save_CFLAGS"
7951fi
7952
7953if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7954	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7955		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7956	fi
7957	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7958	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7959printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7960if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7961then :
7962  printf %s "(cached) " >&6
7963else $as_nop
7964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965/* end confdefs.h.  */
7966int i;
7967_ACEOF
7968if ac_fn_c_try_compile "$LINENO"
7969then :
7970  xorg_cv_cc_flag_unused_command_line_argument=yes
7971else $as_nop
7972  xorg_cv_cc_flag_unused_command_line_argument=no
7973fi
7974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7975fi
7976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7977printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7978	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7979	CFLAGS="$xorg_testset_save_CFLAGS"
7980fi
7981
7982found="no"
7983
7984	if test $found = "no" ; then
7985		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7986			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7987		fi
7988
7989		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7990			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7991		fi
7992
7993		CFLAGS="$CFLAGS -Werror=return-type"
7994
7995		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7996printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7997		cacheid=xorg_cv_cc_flag__Werror_return_type
7998		if eval test \${$cacheid+y}
7999then :
8000  printf %s "(cached) " >&6
8001else $as_nop
8002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003/* end confdefs.h.  */
8004int i;
8005int
8006main (void)
8007{
8008
8009  ;
8010  return 0;
8011}
8012_ACEOF
8013if ac_fn_c_try_link "$LINENO"
8014then :
8015  eval $cacheid=yes
8016else $as_nop
8017  eval $cacheid=no
8018fi
8019rm -f core conftest.err conftest.$ac_objext conftest.beam \
8020    conftest$ac_exeext conftest.$ac_ext
8021fi
8022
8023
8024		CFLAGS="$xorg_testset_save_CFLAGS"
8025
8026		eval supported=\$$cacheid
8027		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8028printf "%s\n" "$supported" >&6; }
8029		if test "$supported" = "yes" ; then
8030			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8031			found="yes"
8032		fi
8033	fi
8034
8035	if test $found = "no" ; then
8036		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8037			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8038		fi
8039
8040		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8041			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8042		fi
8043
8044		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8045
8046		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8047printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8048		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8049		if eval test \${$cacheid+y}
8050then :
8051  printf %s "(cached) " >&6
8052else $as_nop
8053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054/* end confdefs.h.  */
8055int i;
8056int
8057main (void)
8058{
8059
8060  ;
8061  return 0;
8062}
8063_ACEOF
8064if ac_fn_c_try_link "$LINENO"
8065then :
8066  eval $cacheid=yes
8067else $as_nop
8068  eval $cacheid=no
8069fi
8070rm -f core conftest.err conftest.$ac_objext conftest.beam \
8071    conftest$ac_exeext conftest.$ac_ext
8072fi
8073
8074
8075		CFLAGS="$xorg_testset_save_CFLAGS"
8076
8077		eval supported=\$$cacheid
8078		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8079printf "%s\n" "$supported" >&6; }
8080		if test "$supported" = "yes" ; then
8081			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8082			found="yes"
8083		fi
8084	fi
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100xorg_testset_save_CFLAGS="$CFLAGS"
8101
8102if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8103	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8104	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8105printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8106if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8107then :
8108  printf %s "(cached) " >&6
8109else $as_nop
8110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111/* end confdefs.h.  */
8112int i;
8113_ACEOF
8114if ac_fn_c_try_compile "$LINENO"
8115then :
8116  xorg_cv_cc_flag_unknown_warning_option=yes
8117else $as_nop
8118  xorg_cv_cc_flag_unknown_warning_option=no
8119fi
8120rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8121fi
8122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8123printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8124	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8125	CFLAGS="$xorg_testset_save_CFLAGS"
8126fi
8127
8128if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8129	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8130		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8131	fi
8132	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8133	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8134printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8135if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8136then :
8137  printf %s "(cached) " >&6
8138else $as_nop
8139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140/* end confdefs.h.  */
8141int i;
8142_ACEOF
8143if ac_fn_c_try_compile "$LINENO"
8144then :
8145  xorg_cv_cc_flag_unused_command_line_argument=yes
8146else $as_nop
8147  xorg_cv_cc_flag_unused_command_line_argument=no
8148fi
8149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8150fi
8151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8152printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8153	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8154	CFLAGS="$xorg_testset_save_CFLAGS"
8155fi
8156
8157found="no"
8158
8159	if test $found = "no" ; then
8160		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8161			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8162		fi
8163
8164		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8165			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8166		fi
8167
8168		CFLAGS="$CFLAGS -Werror=trigraphs"
8169
8170		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8171printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8172		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8173		if eval test \${$cacheid+y}
8174then :
8175  printf %s "(cached) " >&6
8176else $as_nop
8177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178/* end confdefs.h.  */
8179int i;
8180int
8181main (void)
8182{
8183
8184  ;
8185  return 0;
8186}
8187_ACEOF
8188if ac_fn_c_try_link "$LINENO"
8189then :
8190  eval $cacheid=yes
8191else $as_nop
8192  eval $cacheid=no
8193fi
8194rm -f core conftest.err conftest.$ac_objext conftest.beam \
8195    conftest$ac_exeext conftest.$ac_ext
8196fi
8197
8198
8199		CFLAGS="$xorg_testset_save_CFLAGS"
8200
8201		eval supported=\$$cacheid
8202		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8203printf "%s\n" "$supported" >&6; }
8204		if test "$supported" = "yes" ; then
8205			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8206			found="yes"
8207		fi
8208	fi
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224xorg_testset_save_CFLAGS="$CFLAGS"
8225
8226if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8227	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8228	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8229printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8230if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8231then :
8232  printf %s "(cached) " >&6
8233else $as_nop
8234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235/* end confdefs.h.  */
8236int i;
8237_ACEOF
8238if ac_fn_c_try_compile "$LINENO"
8239then :
8240  xorg_cv_cc_flag_unknown_warning_option=yes
8241else $as_nop
8242  xorg_cv_cc_flag_unknown_warning_option=no
8243fi
8244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8245fi
8246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8247printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8248	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8249	CFLAGS="$xorg_testset_save_CFLAGS"
8250fi
8251
8252if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8253	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8254		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8255	fi
8256	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8257	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8258printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8259if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8260then :
8261  printf %s "(cached) " >&6
8262else $as_nop
8263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8264/* end confdefs.h.  */
8265int i;
8266_ACEOF
8267if ac_fn_c_try_compile "$LINENO"
8268then :
8269  xorg_cv_cc_flag_unused_command_line_argument=yes
8270else $as_nop
8271  xorg_cv_cc_flag_unused_command_line_argument=no
8272fi
8273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8274fi
8275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8276printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8277	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8278	CFLAGS="$xorg_testset_save_CFLAGS"
8279fi
8280
8281found="no"
8282
8283	if test $found = "no" ; then
8284		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8285			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8286		fi
8287
8288		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8289			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8290		fi
8291
8292		CFLAGS="$CFLAGS -Werror=array-bounds"
8293
8294		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8295printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8296		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8297		if eval test \${$cacheid+y}
8298then :
8299  printf %s "(cached) " >&6
8300else $as_nop
8301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302/* end confdefs.h.  */
8303int i;
8304int
8305main (void)
8306{
8307
8308  ;
8309  return 0;
8310}
8311_ACEOF
8312if ac_fn_c_try_link "$LINENO"
8313then :
8314  eval $cacheid=yes
8315else $as_nop
8316  eval $cacheid=no
8317fi
8318rm -f core conftest.err conftest.$ac_objext conftest.beam \
8319    conftest$ac_exeext conftest.$ac_ext
8320fi
8321
8322
8323		CFLAGS="$xorg_testset_save_CFLAGS"
8324
8325		eval supported=\$$cacheid
8326		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8327printf "%s\n" "$supported" >&6; }
8328		if test "$supported" = "yes" ; then
8329			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8330			found="yes"
8331		fi
8332	fi
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348xorg_testset_save_CFLAGS="$CFLAGS"
8349
8350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8351	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8352	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8353printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8354if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8355then :
8356  printf %s "(cached) " >&6
8357else $as_nop
8358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359/* end confdefs.h.  */
8360int i;
8361_ACEOF
8362if ac_fn_c_try_compile "$LINENO"
8363then :
8364  xorg_cv_cc_flag_unknown_warning_option=yes
8365else $as_nop
8366  xorg_cv_cc_flag_unknown_warning_option=no
8367fi
8368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8369fi
8370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8371printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8372	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8373	CFLAGS="$xorg_testset_save_CFLAGS"
8374fi
8375
8376if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8377	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8378		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8379	fi
8380	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8381	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8382printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8383if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8384then :
8385  printf %s "(cached) " >&6
8386else $as_nop
8387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388/* end confdefs.h.  */
8389int i;
8390_ACEOF
8391if ac_fn_c_try_compile "$LINENO"
8392then :
8393  xorg_cv_cc_flag_unused_command_line_argument=yes
8394else $as_nop
8395  xorg_cv_cc_flag_unused_command_line_argument=no
8396fi
8397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8398fi
8399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8400printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8401	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8402	CFLAGS="$xorg_testset_save_CFLAGS"
8403fi
8404
8405found="no"
8406
8407	if test $found = "no" ; then
8408		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8409			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8410		fi
8411
8412		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8413			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8414		fi
8415
8416		CFLAGS="$CFLAGS -Werror=write-strings"
8417
8418		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8419printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8420		cacheid=xorg_cv_cc_flag__Werror_write_strings
8421		if eval test \${$cacheid+y}
8422then :
8423  printf %s "(cached) " >&6
8424else $as_nop
8425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426/* end confdefs.h.  */
8427int i;
8428int
8429main (void)
8430{
8431
8432  ;
8433  return 0;
8434}
8435_ACEOF
8436if ac_fn_c_try_link "$LINENO"
8437then :
8438  eval $cacheid=yes
8439else $as_nop
8440  eval $cacheid=no
8441fi
8442rm -f core conftest.err conftest.$ac_objext conftest.beam \
8443    conftest$ac_exeext conftest.$ac_ext
8444fi
8445
8446
8447		CFLAGS="$xorg_testset_save_CFLAGS"
8448
8449		eval supported=\$$cacheid
8450		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8451printf "%s\n" "$supported" >&6; }
8452		if test "$supported" = "yes" ; then
8453			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8454			found="yes"
8455		fi
8456	fi
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472xorg_testset_save_CFLAGS="$CFLAGS"
8473
8474if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8475	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8476	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8477printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8478if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8479then :
8480  printf %s "(cached) " >&6
8481else $as_nop
8482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483/* end confdefs.h.  */
8484int i;
8485_ACEOF
8486if ac_fn_c_try_compile "$LINENO"
8487then :
8488  xorg_cv_cc_flag_unknown_warning_option=yes
8489else $as_nop
8490  xorg_cv_cc_flag_unknown_warning_option=no
8491fi
8492rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8493fi
8494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8495printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8496	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8497	CFLAGS="$xorg_testset_save_CFLAGS"
8498fi
8499
8500if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8501	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8502		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8503	fi
8504	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8505	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8506printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8507if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8508then :
8509  printf %s "(cached) " >&6
8510else $as_nop
8511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512/* end confdefs.h.  */
8513int i;
8514_ACEOF
8515if ac_fn_c_try_compile "$LINENO"
8516then :
8517  xorg_cv_cc_flag_unused_command_line_argument=yes
8518else $as_nop
8519  xorg_cv_cc_flag_unused_command_line_argument=no
8520fi
8521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8522fi
8523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8524printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8525	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8526	CFLAGS="$xorg_testset_save_CFLAGS"
8527fi
8528
8529found="no"
8530
8531	if test $found = "no" ; then
8532		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8533			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8534		fi
8535
8536		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8537			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8538		fi
8539
8540		CFLAGS="$CFLAGS -Werror=address"
8541
8542		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8543printf %s "checking if $CC supports -Werror=address... " >&6; }
8544		cacheid=xorg_cv_cc_flag__Werror_address
8545		if eval test \${$cacheid+y}
8546then :
8547  printf %s "(cached) " >&6
8548else $as_nop
8549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550/* end confdefs.h.  */
8551int i;
8552int
8553main (void)
8554{
8555
8556  ;
8557  return 0;
8558}
8559_ACEOF
8560if ac_fn_c_try_link "$LINENO"
8561then :
8562  eval $cacheid=yes
8563else $as_nop
8564  eval $cacheid=no
8565fi
8566rm -f core conftest.err conftest.$ac_objext conftest.beam \
8567    conftest$ac_exeext conftest.$ac_ext
8568fi
8569
8570
8571		CFLAGS="$xorg_testset_save_CFLAGS"
8572
8573		eval supported=\$$cacheid
8574		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8575printf "%s\n" "$supported" >&6; }
8576		if test "$supported" = "yes" ; then
8577			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8578			found="yes"
8579		fi
8580	fi
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596xorg_testset_save_CFLAGS="$CFLAGS"
8597
8598if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8599	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8600	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8601printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8602if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8603then :
8604  printf %s "(cached) " >&6
8605else $as_nop
8606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607/* end confdefs.h.  */
8608int i;
8609_ACEOF
8610if ac_fn_c_try_compile "$LINENO"
8611then :
8612  xorg_cv_cc_flag_unknown_warning_option=yes
8613else $as_nop
8614  xorg_cv_cc_flag_unknown_warning_option=no
8615fi
8616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8617fi
8618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8619printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8620	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8621	CFLAGS="$xorg_testset_save_CFLAGS"
8622fi
8623
8624if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8625	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8626		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8627	fi
8628	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8629	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8630printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8631if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8632then :
8633  printf %s "(cached) " >&6
8634else $as_nop
8635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636/* end confdefs.h.  */
8637int i;
8638_ACEOF
8639if ac_fn_c_try_compile "$LINENO"
8640then :
8641  xorg_cv_cc_flag_unused_command_line_argument=yes
8642else $as_nop
8643  xorg_cv_cc_flag_unused_command_line_argument=no
8644fi
8645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8646fi
8647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8648printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8649	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8650	CFLAGS="$xorg_testset_save_CFLAGS"
8651fi
8652
8653found="no"
8654
8655	if test $found = "no" ; then
8656		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8657			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8658		fi
8659
8660		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8661			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8662		fi
8663
8664		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8665
8666		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8667printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8668		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8669		if eval test \${$cacheid+y}
8670then :
8671  printf %s "(cached) " >&6
8672else $as_nop
8673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8674/* end confdefs.h.  */
8675int i;
8676int
8677main (void)
8678{
8679
8680  ;
8681  return 0;
8682}
8683_ACEOF
8684if ac_fn_c_try_link "$LINENO"
8685then :
8686  eval $cacheid=yes
8687else $as_nop
8688  eval $cacheid=no
8689fi
8690rm -f core conftest.err conftest.$ac_objext conftest.beam \
8691    conftest$ac_exeext conftest.$ac_ext
8692fi
8693
8694
8695		CFLAGS="$xorg_testset_save_CFLAGS"
8696
8697		eval supported=\$$cacheid
8698		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8699printf "%s\n" "$supported" >&6; }
8700		if test "$supported" = "yes" ; then
8701			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8702			found="yes"
8703		fi
8704	fi
8705
8706	if test $found = "no" ; then
8707		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8708			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8709		fi
8710
8711		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8712			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8713		fi
8714
8715		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8716
8717		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8718printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8719		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8720		if eval test \${$cacheid+y}
8721then :
8722  printf %s "(cached) " >&6
8723else $as_nop
8724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725/* end confdefs.h.  */
8726int i;
8727int
8728main (void)
8729{
8730
8731  ;
8732  return 0;
8733}
8734_ACEOF
8735if ac_fn_c_try_link "$LINENO"
8736then :
8737  eval $cacheid=yes
8738else $as_nop
8739  eval $cacheid=no
8740fi
8741rm -f core conftest.err conftest.$ac_objext conftest.beam \
8742    conftest$ac_exeext conftest.$ac_ext
8743fi
8744
8745
8746		CFLAGS="$xorg_testset_save_CFLAGS"
8747
8748		eval supported=\$$cacheid
8749		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8750printf "%s\n" "$supported" >&6; }
8751		if test "$supported" = "yes" ; then
8752			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8753			found="yes"
8754		fi
8755	fi
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771xorg_testset_save_CFLAGS="$CFLAGS"
8772
8773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8774	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8775	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8776printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8777if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8778then :
8779  printf %s "(cached) " >&6
8780else $as_nop
8781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782/* end confdefs.h.  */
8783int i;
8784_ACEOF
8785if ac_fn_c_try_compile "$LINENO"
8786then :
8787  xorg_cv_cc_flag_unknown_warning_option=yes
8788else $as_nop
8789  xorg_cv_cc_flag_unknown_warning_option=no
8790fi
8791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8792fi
8793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8794printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8795	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8796	CFLAGS="$xorg_testset_save_CFLAGS"
8797fi
8798
8799if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8800	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8801		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8802	fi
8803	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8804	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8805printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8806if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8807then :
8808  printf %s "(cached) " >&6
8809else $as_nop
8810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811/* end confdefs.h.  */
8812int i;
8813_ACEOF
8814if ac_fn_c_try_compile "$LINENO"
8815then :
8816  xorg_cv_cc_flag_unused_command_line_argument=yes
8817else $as_nop
8818  xorg_cv_cc_flag_unused_command_line_argument=no
8819fi
8820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8821fi
8822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8823printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8824	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8825	CFLAGS="$xorg_testset_save_CFLAGS"
8826fi
8827
8828found="no"
8829
8830	if test $found = "no" ; then
8831		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8832			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8833		fi
8834
8835		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8836			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8837		fi
8838
8839		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8840
8841		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8842printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8843		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8844		if eval test \${$cacheid+y}
8845then :
8846  printf %s "(cached) " >&6
8847else $as_nop
8848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8849/* end confdefs.h.  */
8850int i;
8851int
8852main (void)
8853{
8854
8855  ;
8856  return 0;
8857}
8858_ACEOF
8859if ac_fn_c_try_link "$LINENO"
8860then :
8861  eval $cacheid=yes
8862else $as_nop
8863  eval $cacheid=no
8864fi
8865rm -f core conftest.err conftest.$ac_objext conftest.beam \
8866    conftest$ac_exeext conftest.$ac_ext
8867fi
8868
8869
8870		CFLAGS="$xorg_testset_save_CFLAGS"
8871
8872		eval supported=\$$cacheid
8873		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8874printf "%s\n" "$supported" >&6; }
8875		if test "$supported" = "yes" ; then
8876			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8877			found="yes"
8878		fi
8879	fi
8880
8881 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8882else
8883{ 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
8884printf "%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;}
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898xorg_testset_save_CFLAGS="$CFLAGS"
8899
8900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8901	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8902	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8903printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8904if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8905then :
8906  printf %s "(cached) " >&6
8907else $as_nop
8908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909/* end confdefs.h.  */
8910int i;
8911_ACEOF
8912if ac_fn_c_try_compile "$LINENO"
8913then :
8914  xorg_cv_cc_flag_unknown_warning_option=yes
8915else $as_nop
8916  xorg_cv_cc_flag_unknown_warning_option=no
8917fi
8918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8919fi
8920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8921printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8922	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8923	CFLAGS="$xorg_testset_save_CFLAGS"
8924fi
8925
8926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8927	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8928		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8929	fi
8930	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8931	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8932printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8933if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8934then :
8935  printf %s "(cached) " >&6
8936else $as_nop
8937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938/* end confdefs.h.  */
8939int i;
8940_ACEOF
8941if ac_fn_c_try_compile "$LINENO"
8942then :
8943  xorg_cv_cc_flag_unused_command_line_argument=yes
8944else $as_nop
8945  xorg_cv_cc_flag_unused_command_line_argument=no
8946fi
8947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8948fi
8949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8950printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8951	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8952	CFLAGS="$xorg_testset_save_CFLAGS"
8953fi
8954
8955found="no"
8956
8957	if test $found = "no" ; then
8958		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8959			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8960		fi
8961
8962		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8963			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8964		fi
8965
8966		CFLAGS="$CFLAGS -Wimplicit"
8967
8968		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8969printf %s "checking if $CC supports -Wimplicit... " >&6; }
8970		cacheid=xorg_cv_cc_flag__Wimplicit
8971		if eval test \${$cacheid+y}
8972then :
8973  printf %s "(cached) " >&6
8974else $as_nop
8975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976/* end confdefs.h.  */
8977int i;
8978int
8979main (void)
8980{
8981
8982  ;
8983  return 0;
8984}
8985_ACEOF
8986if ac_fn_c_try_link "$LINENO"
8987then :
8988  eval $cacheid=yes
8989else $as_nop
8990  eval $cacheid=no
8991fi
8992rm -f core conftest.err conftest.$ac_objext conftest.beam \
8993    conftest$ac_exeext conftest.$ac_ext
8994fi
8995
8996
8997		CFLAGS="$xorg_testset_save_CFLAGS"
8998
8999		eval supported=\$$cacheid
9000		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9001printf "%s\n" "$supported" >&6; }
9002		if test "$supported" = "yes" ; then
9003			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9004			found="yes"
9005		fi
9006	fi
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022xorg_testset_save_CFLAGS="$CFLAGS"
9023
9024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9025	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9026	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9027printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9028if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9029then :
9030  printf %s "(cached) " >&6
9031else $as_nop
9032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033/* end confdefs.h.  */
9034int i;
9035_ACEOF
9036if ac_fn_c_try_compile "$LINENO"
9037then :
9038  xorg_cv_cc_flag_unknown_warning_option=yes
9039else $as_nop
9040  xorg_cv_cc_flag_unknown_warning_option=no
9041fi
9042rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9043fi
9044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9045printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9046	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9047	CFLAGS="$xorg_testset_save_CFLAGS"
9048fi
9049
9050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9051	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9052		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9053	fi
9054	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9055	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9056printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9057if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9058then :
9059  printf %s "(cached) " >&6
9060else $as_nop
9061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9062/* end confdefs.h.  */
9063int i;
9064_ACEOF
9065if ac_fn_c_try_compile "$LINENO"
9066then :
9067  xorg_cv_cc_flag_unused_command_line_argument=yes
9068else $as_nop
9069  xorg_cv_cc_flag_unused_command_line_argument=no
9070fi
9071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9072fi
9073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9074printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9075	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9076	CFLAGS="$xorg_testset_save_CFLAGS"
9077fi
9078
9079found="no"
9080
9081	if test $found = "no" ; then
9082		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9083			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9084		fi
9085
9086		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9087			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9088		fi
9089
9090		CFLAGS="$CFLAGS -Wnonnull"
9091
9092		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9093printf %s "checking if $CC supports -Wnonnull... " >&6; }
9094		cacheid=xorg_cv_cc_flag__Wnonnull
9095		if eval test \${$cacheid+y}
9096then :
9097  printf %s "(cached) " >&6
9098else $as_nop
9099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100/* end confdefs.h.  */
9101int i;
9102int
9103main (void)
9104{
9105
9106  ;
9107  return 0;
9108}
9109_ACEOF
9110if ac_fn_c_try_link "$LINENO"
9111then :
9112  eval $cacheid=yes
9113else $as_nop
9114  eval $cacheid=no
9115fi
9116rm -f core conftest.err conftest.$ac_objext conftest.beam \
9117    conftest$ac_exeext conftest.$ac_ext
9118fi
9119
9120
9121		CFLAGS="$xorg_testset_save_CFLAGS"
9122
9123		eval supported=\$$cacheid
9124		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9125printf "%s\n" "$supported" >&6; }
9126		if test "$supported" = "yes" ; then
9127			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9128			found="yes"
9129		fi
9130	fi
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146xorg_testset_save_CFLAGS="$CFLAGS"
9147
9148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9149	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9150	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9151printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9152if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9153then :
9154  printf %s "(cached) " >&6
9155else $as_nop
9156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157/* end confdefs.h.  */
9158int i;
9159_ACEOF
9160if ac_fn_c_try_compile "$LINENO"
9161then :
9162  xorg_cv_cc_flag_unknown_warning_option=yes
9163else $as_nop
9164  xorg_cv_cc_flag_unknown_warning_option=no
9165fi
9166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9167fi
9168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9169printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9170	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9171	CFLAGS="$xorg_testset_save_CFLAGS"
9172fi
9173
9174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9175	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9176		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9177	fi
9178	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9179	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9180printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9181if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9182then :
9183  printf %s "(cached) " >&6
9184else $as_nop
9185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186/* end confdefs.h.  */
9187int i;
9188_ACEOF
9189if ac_fn_c_try_compile "$LINENO"
9190then :
9191  xorg_cv_cc_flag_unused_command_line_argument=yes
9192else $as_nop
9193  xorg_cv_cc_flag_unused_command_line_argument=no
9194fi
9195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9196fi
9197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9198printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9199	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9200	CFLAGS="$xorg_testset_save_CFLAGS"
9201fi
9202
9203found="no"
9204
9205	if test $found = "no" ; then
9206		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9207			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9208		fi
9209
9210		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9211			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9212		fi
9213
9214		CFLAGS="$CFLAGS -Winit-self"
9215
9216		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9217printf %s "checking if $CC supports -Winit-self... " >&6; }
9218		cacheid=xorg_cv_cc_flag__Winit_self
9219		if eval test \${$cacheid+y}
9220then :
9221  printf %s "(cached) " >&6
9222else $as_nop
9223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224/* end confdefs.h.  */
9225int i;
9226int
9227main (void)
9228{
9229
9230  ;
9231  return 0;
9232}
9233_ACEOF
9234if ac_fn_c_try_link "$LINENO"
9235then :
9236  eval $cacheid=yes
9237else $as_nop
9238  eval $cacheid=no
9239fi
9240rm -f core conftest.err conftest.$ac_objext conftest.beam \
9241    conftest$ac_exeext conftest.$ac_ext
9242fi
9243
9244
9245		CFLAGS="$xorg_testset_save_CFLAGS"
9246
9247		eval supported=\$$cacheid
9248		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9249printf "%s\n" "$supported" >&6; }
9250		if test "$supported" = "yes" ; then
9251			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9252			found="yes"
9253		fi
9254	fi
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270xorg_testset_save_CFLAGS="$CFLAGS"
9271
9272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9273	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9274	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9275printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9276if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9277then :
9278  printf %s "(cached) " >&6
9279else $as_nop
9280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281/* end confdefs.h.  */
9282int i;
9283_ACEOF
9284if ac_fn_c_try_compile "$LINENO"
9285then :
9286  xorg_cv_cc_flag_unknown_warning_option=yes
9287else $as_nop
9288  xorg_cv_cc_flag_unknown_warning_option=no
9289fi
9290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9291fi
9292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9293printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9294	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9295	CFLAGS="$xorg_testset_save_CFLAGS"
9296fi
9297
9298if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9299	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9300		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9301	fi
9302	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9303	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9304printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9305if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9306then :
9307  printf %s "(cached) " >&6
9308else $as_nop
9309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310/* end confdefs.h.  */
9311int i;
9312_ACEOF
9313if ac_fn_c_try_compile "$LINENO"
9314then :
9315  xorg_cv_cc_flag_unused_command_line_argument=yes
9316else $as_nop
9317  xorg_cv_cc_flag_unused_command_line_argument=no
9318fi
9319rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9320fi
9321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9322printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9323	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9324	CFLAGS="$xorg_testset_save_CFLAGS"
9325fi
9326
9327found="no"
9328
9329	if test $found = "no" ; then
9330		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9331			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9332		fi
9333
9334		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9335			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9336		fi
9337
9338		CFLAGS="$CFLAGS -Wmain"
9339
9340		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9341printf %s "checking if $CC supports -Wmain... " >&6; }
9342		cacheid=xorg_cv_cc_flag__Wmain
9343		if eval test \${$cacheid+y}
9344then :
9345  printf %s "(cached) " >&6
9346else $as_nop
9347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348/* end confdefs.h.  */
9349int i;
9350int
9351main (void)
9352{
9353
9354  ;
9355  return 0;
9356}
9357_ACEOF
9358if ac_fn_c_try_link "$LINENO"
9359then :
9360  eval $cacheid=yes
9361else $as_nop
9362  eval $cacheid=no
9363fi
9364rm -f core conftest.err conftest.$ac_objext conftest.beam \
9365    conftest$ac_exeext conftest.$ac_ext
9366fi
9367
9368
9369		CFLAGS="$xorg_testset_save_CFLAGS"
9370
9371		eval supported=\$$cacheid
9372		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9373printf "%s\n" "$supported" >&6; }
9374		if test "$supported" = "yes" ; then
9375			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9376			found="yes"
9377		fi
9378	fi
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394xorg_testset_save_CFLAGS="$CFLAGS"
9395
9396if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9397	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9398	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9399printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9400if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9401then :
9402  printf %s "(cached) " >&6
9403else $as_nop
9404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405/* end confdefs.h.  */
9406int i;
9407_ACEOF
9408if ac_fn_c_try_compile "$LINENO"
9409then :
9410  xorg_cv_cc_flag_unknown_warning_option=yes
9411else $as_nop
9412  xorg_cv_cc_flag_unknown_warning_option=no
9413fi
9414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9415fi
9416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9417printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9418	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9419	CFLAGS="$xorg_testset_save_CFLAGS"
9420fi
9421
9422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9423	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9424		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9425	fi
9426	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9427	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9428printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9429if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9430then :
9431  printf %s "(cached) " >&6
9432else $as_nop
9433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434/* end confdefs.h.  */
9435int i;
9436_ACEOF
9437if ac_fn_c_try_compile "$LINENO"
9438then :
9439  xorg_cv_cc_flag_unused_command_line_argument=yes
9440else $as_nop
9441  xorg_cv_cc_flag_unused_command_line_argument=no
9442fi
9443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9444fi
9445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9446printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9447	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9448	CFLAGS="$xorg_testset_save_CFLAGS"
9449fi
9450
9451found="no"
9452
9453	if test $found = "no" ; then
9454		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9455			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9456		fi
9457
9458		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9459			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9460		fi
9461
9462		CFLAGS="$CFLAGS -Wmissing-braces"
9463
9464		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9465printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9466		cacheid=xorg_cv_cc_flag__Wmissing_braces
9467		if eval test \${$cacheid+y}
9468then :
9469  printf %s "(cached) " >&6
9470else $as_nop
9471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472/* end confdefs.h.  */
9473int i;
9474int
9475main (void)
9476{
9477
9478  ;
9479  return 0;
9480}
9481_ACEOF
9482if ac_fn_c_try_link "$LINENO"
9483then :
9484  eval $cacheid=yes
9485else $as_nop
9486  eval $cacheid=no
9487fi
9488rm -f core conftest.err conftest.$ac_objext conftest.beam \
9489    conftest$ac_exeext conftest.$ac_ext
9490fi
9491
9492
9493		CFLAGS="$xorg_testset_save_CFLAGS"
9494
9495		eval supported=\$$cacheid
9496		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9497printf "%s\n" "$supported" >&6; }
9498		if test "$supported" = "yes" ; then
9499			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9500			found="yes"
9501		fi
9502	fi
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518xorg_testset_save_CFLAGS="$CFLAGS"
9519
9520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9521	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9522	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9523printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9524if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9525then :
9526  printf %s "(cached) " >&6
9527else $as_nop
9528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529/* end confdefs.h.  */
9530int i;
9531_ACEOF
9532if ac_fn_c_try_compile "$LINENO"
9533then :
9534  xorg_cv_cc_flag_unknown_warning_option=yes
9535else $as_nop
9536  xorg_cv_cc_flag_unknown_warning_option=no
9537fi
9538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9539fi
9540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9541printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9542	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9543	CFLAGS="$xorg_testset_save_CFLAGS"
9544fi
9545
9546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9547	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9548		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9549	fi
9550	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9551	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9552printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9553if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9554then :
9555  printf %s "(cached) " >&6
9556else $as_nop
9557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558/* end confdefs.h.  */
9559int i;
9560_ACEOF
9561if ac_fn_c_try_compile "$LINENO"
9562then :
9563  xorg_cv_cc_flag_unused_command_line_argument=yes
9564else $as_nop
9565  xorg_cv_cc_flag_unused_command_line_argument=no
9566fi
9567rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9568fi
9569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9570printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9571	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9572	CFLAGS="$xorg_testset_save_CFLAGS"
9573fi
9574
9575found="no"
9576
9577	if test $found = "no" ; then
9578		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9579			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9580		fi
9581
9582		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9583			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9584		fi
9585
9586		CFLAGS="$CFLAGS -Wsequence-point"
9587
9588		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9589printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9590		cacheid=xorg_cv_cc_flag__Wsequence_point
9591		if eval test \${$cacheid+y}
9592then :
9593  printf %s "(cached) " >&6
9594else $as_nop
9595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596/* end confdefs.h.  */
9597int i;
9598int
9599main (void)
9600{
9601
9602  ;
9603  return 0;
9604}
9605_ACEOF
9606if ac_fn_c_try_link "$LINENO"
9607then :
9608  eval $cacheid=yes
9609else $as_nop
9610  eval $cacheid=no
9611fi
9612rm -f core conftest.err conftest.$ac_objext conftest.beam \
9613    conftest$ac_exeext conftest.$ac_ext
9614fi
9615
9616
9617		CFLAGS="$xorg_testset_save_CFLAGS"
9618
9619		eval supported=\$$cacheid
9620		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9621printf "%s\n" "$supported" >&6; }
9622		if test "$supported" = "yes" ; then
9623			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9624			found="yes"
9625		fi
9626	fi
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642xorg_testset_save_CFLAGS="$CFLAGS"
9643
9644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9645	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9646	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9647printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9648if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9649then :
9650  printf %s "(cached) " >&6
9651else $as_nop
9652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653/* end confdefs.h.  */
9654int i;
9655_ACEOF
9656if ac_fn_c_try_compile "$LINENO"
9657then :
9658  xorg_cv_cc_flag_unknown_warning_option=yes
9659else $as_nop
9660  xorg_cv_cc_flag_unknown_warning_option=no
9661fi
9662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9663fi
9664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9665printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9666	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9667	CFLAGS="$xorg_testset_save_CFLAGS"
9668fi
9669
9670if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9671	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9672		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9673	fi
9674	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9675	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9676printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9677if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9678then :
9679  printf %s "(cached) " >&6
9680else $as_nop
9681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682/* end confdefs.h.  */
9683int i;
9684_ACEOF
9685if ac_fn_c_try_compile "$LINENO"
9686then :
9687  xorg_cv_cc_flag_unused_command_line_argument=yes
9688else $as_nop
9689  xorg_cv_cc_flag_unused_command_line_argument=no
9690fi
9691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9692fi
9693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9694printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9695	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9696	CFLAGS="$xorg_testset_save_CFLAGS"
9697fi
9698
9699found="no"
9700
9701	if test $found = "no" ; then
9702		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9703			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9704		fi
9705
9706		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9707			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9708		fi
9709
9710		CFLAGS="$CFLAGS -Wreturn-type"
9711
9712		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9713printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9714		cacheid=xorg_cv_cc_flag__Wreturn_type
9715		if eval test \${$cacheid+y}
9716then :
9717  printf %s "(cached) " >&6
9718else $as_nop
9719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720/* end confdefs.h.  */
9721int i;
9722int
9723main (void)
9724{
9725
9726  ;
9727  return 0;
9728}
9729_ACEOF
9730if ac_fn_c_try_link "$LINENO"
9731then :
9732  eval $cacheid=yes
9733else $as_nop
9734  eval $cacheid=no
9735fi
9736rm -f core conftest.err conftest.$ac_objext conftest.beam \
9737    conftest$ac_exeext conftest.$ac_ext
9738fi
9739
9740
9741		CFLAGS="$xorg_testset_save_CFLAGS"
9742
9743		eval supported=\$$cacheid
9744		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9745printf "%s\n" "$supported" >&6; }
9746		if test "$supported" = "yes" ; then
9747			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9748			found="yes"
9749		fi
9750	fi
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766xorg_testset_save_CFLAGS="$CFLAGS"
9767
9768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9770	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9771printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9772if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9773then :
9774  printf %s "(cached) " >&6
9775else $as_nop
9776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777/* end confdefs.h.  */
9778int i;
9779_ACEOF
9780if ac_fn_c_try_compile "$LINENO"
9781then :
9782  xorg_cv_cc_flag_unknown_warning_option=yes
9783else $as_nop
9784  xorg_cv_cc_flag_unknown_warning_option=no
9785fi
9786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9787fi
9788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9789printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9790	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9791	CFLAGS="$xorg_testset_save_CFLAGS"
9792fi
9793
9794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9795	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9796		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9797	fi
9798	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9799	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9800printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9801if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9802then :
9803  printf %s "(cached) " >&6
9804else $as_nop
9805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806/* end confdefs.h.  */
9807int i;
9808_ACEOF
9809if ac_fn_c_try_compile "$LINENO"
9810then :
9811  xorg_cv_cc_flag_unused_command_line_argument=yes
9812else $as_nop
9813  xorg_cv_cc_flag_unused_command_line_argument=no
9814fi
9815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9816fi
9817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9818printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9819	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9820	CFLAGS="$xorg_testset_save_CFLAGS"
9821fi
9822
9823found="no"
9824
9825	if test $found = "no" ; then
9826		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9827			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9828		fi
9829
9830		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9831			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9832		fi
9833
9834		CFLAGS="$CFLAGS -Wtrigraphs"
9835
9836		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9837printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9838		cacheid=xorg_cv_cc_flag__Wtrigraphs
9839		if eval test \${$cacheid+y}
9840then :
9841  printf %s "(cached) " >&6
9842else $as_nop
9843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844/* end confdefs.h.  */
9845int i;
9846int
9847main (void)
9848{
9849
9850  ;
9851  return 0;
9852}
9853_ACEOF
9854if ac_fn_c_try_link "$LINENO"
9855then :
9856  eval $cacheid=yes
9857else $as_nop
9858  eval $cacheid=no
9859fi
9860rm -f core conftest.err conftest.$ac_objext conftest.beam \
9861    conftest$ac_exeext conftest.$ac_ext
9862fi
9863
9864
9865		CFLAGS="$xorg_testset_save_CFLAGS"
9866
9867		eval supported=\$$cacheid
9868		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9869printf "%s\n" "$supported" >&6; }
9870		if test "$supported" = "yes" ; then
9871			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9872			found="yes"
9873		fi
9874	fi
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890xorg_testset_save_CFLAGS="$CFLAGS"
9891
9892if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9893	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9894	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9895printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9896if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9897then :
9898  printf %s "(cached) " >&6
9899else $as_nop
9900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901/* end confdefs.h.  */
9902int i;
9903_ACEOF
9904if ac_fn_c_try_compile "$LINENO"
9905then :
9906  xorg_cv_cc_flag_unknown_warning_option=yes
9907else $as_nop
9908  xorg_cv_cc_flag_unknown_warning_option=no
9909fi
9910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9911fi
9912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9913printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9914	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9915	CFLAGS="$xorg_testset_save_CFLAGS"
9916fi
9917
9918if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9919	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9920		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9921	fi
9922	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9923	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9924printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9925if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9926then :
9927  printf %s "(cached) " >&6
9928else $as_nop
9929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9930/* end confdefs.h.  */
9931int i;
9932_ACEOF
9933if ac_fn_c_try_compile "$LINENO"
9934then :
9935  xorg_cv_cc_flag_unused_command_line_argument=yes
9936else $as_nop
9937  xorg_cv_cc_flag_unused_command_line_argument=no
9938fi
9939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9940fi
9941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9942printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9943	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9944	CFLAGS="$xorg_testset_save_CFLAGS"
9945fi
9946
9947found="no"
9948
9949	if test $found = "no" ; then
9950		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9951			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9952		fi
9953
9954		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9955			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9956		fi
9957
9958		CFLAGS="$CFLAGS -Warray-bounds"
9959
9960		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9961printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9962		cacheid=xorg_cv_cc_flag__Warray_bounds
9963		if eval test \${$cacheid+y}
9964then :
9965  printf %s "(cached) " >&6
9966else $as_nop
9967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968/* end confdefs.h.  */
9969int i;
9970int
9971main (void)
9972{
9973
9974  ;
9975  return 0;
9976}
9977_ACEOF
9978if ac_fn_c_try_link "$LINENO"
9979then :
9980  eval $cacheid=yes
9981else $as_nop
9982  eval $cacheid=no
9983fi
9984rm -f core conftest.err conftest.$ac_objext conftest.beam \
9985    conftest$ac_exeext conftest.$ac_ext
9986fi
9987
9988
9989		CFLAGS="$xorg_testset_save_CFLAGS"
9990
9991		eval supported=\$$cacheid
9992		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9993printf "%s\n" "$supported" >&6; }
9994		if test "$supported" = "yes" ; then
9995			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9996			found="yes"
9997		fi
9998	fi
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014xorg_testset_save_CFLAGS="$CFLAGS"
10015
10016if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10017	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10018	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10019printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10020if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10021then :
10022  printf %s "(cached) " >&6
10023else $as_nop
10024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10025/* end confdefs.h.  */
10026int i;
10027_ACEOF
10028if ac_fn_c_try_compile "$LINENO"
10029then :
10030  xorg_cv_cc_flag_unknown_warning_option=yes
10031else $as_nop
10032  xorg_cv_cc_flag_unknown_warning_option=no
10033fi
10034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10035fi
10036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10037printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10038	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10039	CFLAGS="$xorg_testset_save_CFLAGS"
10040fi
10041
10042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10043	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10044		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10045	fi
10046	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10047	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10048printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10049if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10050then :
10051  printf %s "(cached) " >&6
10052else $as_nop
10053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10054/* end confdefs.h.  */
10055int i;
10056_ACEOF
10057if ac_fn_c_try_compile "$LINENO"
10058then :
10059  xorg_cv_cc_flag_unused_command_line_argument=yes
10060else $as_nop
10061  xorg_cv_cc_flag_unused_command_line_argument=no
10062fi
10063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10064fi
10065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10066printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10067	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10068	CFLAGS="$xorg_testset_save_CFLAGS"
10069fi
10070
10071found="no"
10072
10073	if test $found = "no" ; then
10074		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10075			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10076		fi
10077
10078		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10079			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10080		fi
10081
10082		CFLAGS="$CFLAGS -Wwrite-strings"
10083
10084		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10085printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10086		cacheid=xorg_cv_cc_flag__Wwrite_strings
10087		if eval test \${$cacheid+y}
10088then :
10089  printf %s "(cached) " >&6
10090else $as_nop
10091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10092/* end confdefs.h.  */
10093int i;
10094int
10095main (void)
10096{
10097
10098  ;
10099  return 0;
10100}
10101_ACEOF
10102if ac_fn_c_try_link "$LINENO"
10103then :
10104  eval $cacheid=yes
10105else $as_nop
10106  eval $cacheid=no
10107fi
10108rm -f core conftest.err conftest.$ac_objext conftest.beam \
10109    conftest$ac_exeext conftest.$ac_ext
10110fi
10111
10112
10113		CFLAGS="$xorg_testset_save_CFLAGS"
10114
10115		eval supported=\$$cacheid
10116		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10117printf "%s\n" "$supported" >&6; }
10118		if test "$supported" = "yes" ; then
10119			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10120			found="yes"
10121		fi
10122	fi
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138xorg_testset_save_CFLAGS="$CFLAGS"
10139
10140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10141	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10142	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10143printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10144if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10145then :
10146  printf %s "(cached) " >&6
10147else $as_nop
10148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149/* end confdefs.h.  */
10150int i;
10151_ACEOF
10152if ac_fn_c_try_compile "$LINENO"
10153then :
10154  xorg_cv_cc_flag_unknown_warning_option=yes
10155else $as_nop
10156  xorg_cv_cc_flag_unknown_warning_option=no
10157fi
10158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10159fi
10160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10161printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10162	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10163	CFLAGS="$xorg_testset_save_CFLAGS"
10164fi
10165
10166if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10167	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10168		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10169	fi
10170	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10171	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10172printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10173if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10174then :
10175  printf %s "(cached) " >&6
10176else $as_nop
10177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178/* end confdefs.h.  */
10179int i;
10180_ACEOF
10181if ac_fn_c_try_compile "$LINENO"
10182then :
10183  xorg_cv_cc_flag_unused_command_line_argument=yes
10184else $as_nop
10185  xorg_cv_cc_flag_unused_command_line_argument=no
10186fi
10187rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10188fi
10189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10190printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10191	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10192	CFLAGS="$xorg_testset_save_CFLAGS"
10193fi
10194
10195found="no"
10196
10197	if test $found = "no" ; then
10198		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10199			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10200		fi
10201
10202		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10203			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10204		fi
10205
10206		CFLAGS="$CFLAGS -Waddress"
10207
10208		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10209printf %s "checking if $CC supports -Waddress... " >&6; }
10210		cacheid=xorg_cv_cc_flag__Waddress
10211		if eval test \${$cacheid+y}
10212then :
10213  printf %s "(cached) " >&6
10214else $as_nop
10215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10216/* end confdefs.h.  */
10217int i;
10218int
10219main (void)
10220{
10221
10222  ;
10223  return 0;
10224}
10225_ACEOF
10226if ac_fn_c_try_link "$LINENO"
10227then :
10228  eval $cacheid=yes
10229else $as_nop
10230  eval $cacheid=no
10231fi
10232rm -f core conftest.err conftest.$ac_objext conftest.beam \
10233    conftest$ac_exeext conftest.$ac_ext
10234fi
10235
10236
10237		CFLAGS="$xorg_testset_save_CFLAGS"
10238
10239		eval supported=\$$cacheid
10240		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10241printf "%s\n" "$supported" >&6; }
10242		if test "$supported" = "yes" ; then
10243			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10244			found="yes"
10245		fi
10246	fi
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262xorg_testset_save_CFLAGS="$CFLAGS"
10263
10264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10265	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10266	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10267printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10268if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10269then :
10270  printf %s "(cached) " >&6
10271else $as_nop
10272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10273/* end confdefs.h.  */
10274int i;
10275_ACEOF
10276if ac_fn_c_try_compile "$LINENO"
10277then :
10278  xorg_cv_cc_flag_unknown_warning_option=yes
10279else $as_nop
10280  xorg_cv_cc_flag_unknown_warning_option=no
10281fi
10282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10283fi
10284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10285printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10286	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10287	CFLAGS="$xorg_testset_save_CFLAGS"
10288fi
10289
10290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10291	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10292		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10293	fi
10294	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10295	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10296printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10297if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10298then :
10299  printf %s "(cached) " >&6
10300else $as_nop
10301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10302/* end confdefs.h.  */
10303int i;
10304_ACEOF
10305if ac_fn_c_try_compile "$LINENO"
10306then :
10307  xorg_cv_cc_flag_unused_command_line_argument=yes
10308else $as_nop
10309  xorg_cv_cc_flag_unused_command_line_argument=no
10310fi
10311rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10312fi
10313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10314printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10315	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10316	CFLAGS="$xorg_testset_save_CFLAGS"
10317fi
10318
10319found="no"
10320
10321	if test $found = "no" ; then
10322		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10323			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10324		fi
10325
10326		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10327			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10328		fi
10329
10330		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10331
10332		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10333printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10334		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10335		if eval test \${$cacheid+y}
10336then :
10337  printf %s "(cached) " >&6
10338else $as_nop
10339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10340/* end confdefs.h.  */
10341int i;
10342int
10343main (void)
10344{
10345
10346  ;
10347  return 0;
10348}
10349_ACEOF
10350if ac_fn_c_try_link "$LINENO"
10351then :
10352  eval $cacheid=yes
10353else $as_nop
10354  eval $cacheid=no
10355fi
10356rm -f core conftest.err conftest.$ac_objext conftest.beam \
10357    conftest$ac_exeext conftest.$ac_ext
10358fi
10359
10360
10361		CFLAGS="$xorg_testset_save_CFLAGS"
10362
10363		eval supported=\$$cacheid
10364		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10365printf "%s\n" "$supported" >&6; }
10366		if test "$supported" = "yes" ; then
10367			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10368			found="yes"
10369		fi
10370	fi
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386xorg_testset_save_CFLAGS="$CFLAGS"
10387
10388if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10389	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10390	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10391printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10392if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10393then :
10394  printf %s "(cached) " >&6
10395else $as_nop
10396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10397/* end confdefs.h.  */
10398int i;
10399_ACEOF
10400if ac_fn_c_try_compile "$LINENO"
10401then :
10402  xorg_cv_cc_flag_unknown_warning_option=yes
10403else $as_nop
10404  xorg_cv_cc_flag_unknown_warning_option=no
10405fi
10406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10407fi
10408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10409printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10410	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10411	CFLAGS="$xorg_testset_save_CFLAGS"
10412fi
10413
10414if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10415	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10416		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10417	fi
10418	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10419	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10420printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10421if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10422then :
10423  printf %s "(cached) " >&6
10424else $as_nop
10425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426/* end confdefs.h.  */
10427int i;
10428_ACEOF
10429if ac_fn_c_try_compile "$LINENO"
10430then :
10431  xorg_cv_cc_flag_unused_command_line_argument=yes
10432else $as_nop
10433  xorg_cv_cc_flag_unused_command_line_argument=no
10434fi
10435rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10436fi
10437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10438printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10439	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10440	CFLAGS="$xorg_testset_save_CFLAGS"
10441fi
10442
10443found="no"
10444
10445	if test $found = "no" ; then
10446		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10447			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10448		fi
10449
10450		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10451			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10452		fi
10453
10454		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10455
10456		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10457printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10458		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10459		if eval test \${$cacheid+y}
10460then :
10461  printf %s "(cached) " >&6
10462else $as_nop
10463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10464/* end confdefs.h.  */
10465int i;
10466int
10467main (void)
10468{
10469
10470  ;
10471  return 0;
10472}
10473_ACEOF
10474if ac_fn_c_try_link "$LINENO"
10475then :
10476  eval $cacheid=yes
10477else $as_nop
10478  eval $cacheid=no
10479fi
10480rm -f core conftest.err conftest.$ac_objext conftest.beam \
10481    conftest$ac_exeext conftest.$ac_ext
10482fi
10483
10484
10485		CFLAGS="$xorg_testset_save_CFLAGS"
10486
10487		eval supported=\$$cacheid
10488		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10489printf "%s\n" "$supported" >&6; }
10490		if test "$supported" = "yes" ; then
10491			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10492			found="yes"
10493		fi
10494	fi
10495
10496
10497fi
10498
10499
10500
10501
10502
10503
10504
10505		CWARNFLAGS="$BASE_CFLAGS"
10506		if  test "x$GCC" = xyes ; then
10507		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10508		fi
10509
10510
10511
10512
10513
10514
10515
10516
10517# Check whether --enable-strict-compilation was given.
10518if test ${enable_strict_compilation+y}
10519then :
10520  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10521else $as_nop
10522  STRICT_COMPILE=no
10523fi
10524
10525
10526
10527
10528
10529
10530STRICT_CFLAGS=""
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544xorg_testset_save_CFLAGS="$CFLAGS"
10545
10546if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10547	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10548	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10549printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10550if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10551then :
10552  printf %s "(cached) " >&6
10553else $as_nop
10554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555/* end confdefs.h.  */
10556int i;
10557_ACEOF
10558if ac_fn_c_try_compile "$LINENO"
10559then :
10560  xorg_cv_cc_flag_unknown_warning_option=yes
10561else $as_nop
10562  xorg_cv_cc_flag_unknown_warning_option=no
10563fi
10564rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10565fi
10566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10567printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10568	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10569	CFLAGS="$xorg_testset_save_CFLAGS"
10570fi
10571
10572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10573	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10574		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10575	fi
10576	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10577	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10578printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10579if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10580then :
10581  printf %s "(cached) " >&6
10582else $as_nop
10583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584/* end confdefs.h.  */
10585int i;
10586_ACEOF
10587if ac_fn_c_try_compile "$LINENO"
10588then :
10589  xorg_cv_cc_flag_unused_command_line_argument=yes
10590else $as_nop
10591  xorg_cv_cc_flag_unused_command_line_argument=no
10592fi
10593rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10594fi
10595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10596printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10597	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10598	CFLAGS="$xorg_testset_save_CFLAGS"
10599fi
10600
10601found="no"
10602
10603	if test $found = "no" ; then
10604		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10605			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10606		fi
10607
10608		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10609			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10610		fi
10611
10612		CFLAGS="$CFLAGS -pedantic"
10613
10614		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10615printf %s "checking if $CC supports -pedantic... " >&6; }
10616		cacheid=xorg_cv_cc_flag__pedantic
10617		if eval test \${$cacheid+y}
10618then :
10619  printf %s "(cached) " >&6
10620else $as_nop
10621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622/* end confdefs.h.  */
10623int i;
10624int
10625main (void)
10626{
10627
10628  ;
10629  return 0;
10630}
10631_ACEOF
10632if ac_fn_c_try_link "$LINENO"
10633then :
10634  eval $cacheid=yes
10635else $as_nop
10636  eval $cacheid=no
10637fi
10638rm -f core conftest.err conftest.$ac_objext conftest.beam \
10639    conftest$ac_exeext conftest.$ac_ext
10640fi
10641
10642
10643		CFLAGS="$xorg_testset_save_CFLAGS"
10644
10645		eval supported=\$$cacheid
10646		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10647printf "%s\n" "$supported" >&6; }
10648		if test "$supported" = "yes" ; then
10649			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10650			found="yes"
10651		fi
10652	fi
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668xorg_testset_save_CFLAGS="$CFLAGS"
10669
10670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10671	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10672	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10673printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10674if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10675then :
10676  printf %s "(cached) " >&6
10677else $as_nop
10678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10679/* end confdefs.h.  */
10680int i;
10681_ACEOF
10682if ac_fn_c_try_compile "$LINENO"
10683then :
10684  xorg_cv_cc_flag_unknown_warning_option=yes
10685else $as_nop
10686  xorg_cv_cc_flag_unknown_warning_option=no
10687fi
10688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10689fi
10690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10691printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10692	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10693	CFLAGS="$xorg_testset_save_CFLAGS"
10694fi
10695
10696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10697	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10698		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10699	fi
10700	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10701	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10702printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10703if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10704then :
10705  printf %s "(cached) " >&6
10706else $as_nop
10707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708/* end confdefs.h.  */
10709int i;
10710_ACEOF
10711if ac_fn_c_try_compile "$LINENO"
10712then :
10713  xorg_cv_cc_flag_unused_command_line_argument=yes
10714else $as_nop
10715  xorg_cv_cc_flag_unused_command_line_argument=no
10716fi
10717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10718fi
10719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10720printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10721	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10722	CFLAGS="$xorg_testset_save_CFLAGS"
10723fi
10724
10725found="no"
10726
10727	if test $found = "no" ; then
10728		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10729			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10730		fi
10731
10732		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10733			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10734		fi
10735
10736		CFLAGS="$CFLAGS -Werror"
10737
10738		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10739printf %s "checking if $CC supports -Werror... " >&6; }
10740		cacheid=xorg_cv_cc_flag__Werror
10741		if eval test \${$cacheid+y}
10742then :
10743  printf %s "(cached) " >&6
10744else $as_nop
10745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10746/* end confdefs.h.  */
10747int i;
10748int
10749main (void)
10750{
10751
10752  ;
10753  return 0;
10754}
10755_ACEOF
10756if ac_fn_c_try_link "$LINENO"
10757then :
10758  eval $cacheid=yes
10759else $as_nop
10760  eval $cacheid=no
10761fi
10762rm -f core conftest.err conftest.$ac_objext conftest.beam \
10763    conftest$ac_exeext conftest.$ac_ext
10764fi
10765
10766
10767		CFLAGS="$xorg_testset_save_CFLAGS"
10768
10769		eval supported=\$$cacheid
10770		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10771printf "%s\n" "$supported" >&6; }
10772		if test "$supported" = "yes" ; then
10773			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10774			found="yes"
10775		fi
10776	fi
10777
10778	if test $found = "no" ; then
10779		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10780			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10781		fi
10782
10783		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10784			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10785		fi
10786
10787		CFLAGS="$CFLAGS -errwarn"
10788
10789		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10790printf %s "checking if $CC supports -errwarn... " >&6; }
10791		cacheid=xorg_cv_cc_flag__errwarn
10792		if eval test \${$cacheid+y}
10793then :
10794  printf %s "(cached) " >&6
10795else $as_nop
10796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797/* end confdefs.h.  */
10798int i;
10799int
10800main (void)
10801{
10802
10803  ;
10804  return 0;
10805}
10806_ACEOF
10807if ac_fn_c_try_link "$LINENO"
10808then :
10809  eval $cacheid=yes
10810else $as_nop
10811  eval $cacheid=no
10812fi
10813rm -f core conftest.err conftest.$ac_objext conftest.beam \
10814    conftest$ac_exeext conftest.$ac_ext
10815fi
10816
10817
10818		CFLAGS="$xorg_testset_save_CFLAGS"
10819
10820		eval supported=\$$cacheid
10821		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10822printf "%s\n" "$supported" >&6; }
10823		if test "$supported" = "yes" ; then
10824			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10825			found="yes"
10826		fi
10827	fi
10828
10829
10830
10831# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10832# activate it with -Werror, so we add it here explicitly.
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846xorg_testset_save_CFLAGS="$CFLAGS"
10847
10848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10849	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10850	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10851printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10852if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10853then :
10854  printf %s "(cached) " >&6
10855else $as_nop
10856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857/* end confdefs.h.  */
10858int i;
10859_ACEOF
10860if ac_fn_c_try_compile "$LINENO"
10861then :
10862  xorg_cv_cc_flag_unknown_warning_option=yes
10863else $as_nop
10864  xorg_cv_cc_flag_unknown_warning_option=no
10865fi
10866rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10867fi
10868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10869printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10870	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10871	CFLAGS="$xorg_testset_save_CFLAGS"
10872fi
10873
10874if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10875	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10876		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10877	fi
10878	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10879	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10880printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10881if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10882then :
10883  printf %s "(cached) " >&6
10884else $as_nop
10885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886/* end confdefs.h.  */
10887int i;
10888_ACEOF
10889if ac_fn_c_try_compile "$LINENO"
10890then :
10891  xorg_cv_cc_flag_unused_command_line_argument=yes
10892else $as_nop
10893  xorg_cv_cc_flag_unused_command_line_argument=no
10894fi
10895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10896fi
10897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10898printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10899	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10900	CFLAGS="$xorg_testset_save_CFLAGS"
10901fi
10902
10903found="no"
10904
10905	if test $found = "no" ; then
10906		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10907			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10908		fi
10909
10910		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10911			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10912		fi
10913
10914		CFLAGS="$CFLAGS -Werror=attributes"
10915
10916		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10917printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10918		cacheid=xorg_cv_cc_flag__Werror_attributes
10919		if eval test \${$cacheid+y}
10920then :
10921  printf %s "(cached) " >&6
10922else $as_nop
10923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10924/* end confdefs.h.  */
10925int i;
10926int
10927main (void)
10928{
10929
10930  ;
10931  return 0;
10932}
10933_ACEOF
10934if ac_fn_c_try_link "$LINENO"
10935then :
10936  eval $cacheid=yes
10937else $as_nop
10938  eval $cacheid=no
10939fi
10940rm -f core conftest.err conftest.$ac_objext conftest.beam \
10941    conftest$ac_exeext conftest.$ac_ext
10942fi
10943
10944
10945		CFLAGS="$xorg_testset_save_CFLAGS"
10946
10947		eval supported=\$$cacheid
10948		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10949printf "%s\n" "$supported" >&6; }
10950		if test "$supported" = "yes" ; then
10951			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10952			found="yes"
10953		fi
10954	fi
10955
10956
10957
10958if test "x$STRICT_COMPILE" = "xyes"; then
10959    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10960    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10961fi
10962
10963
10964
10965
10966
10967
10968cat >>confdefs.h <<_ACEOF
10969#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10970_ACEOF
10971
10972	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10973	if test "x$PVM" = "x"; then
10974		PVM="0"
10975	fi
10976
10977printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10978
10979	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10980	if test "x$PVP" = "x"; then
10981		PVP="0"
10982	fi
10983
10984printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10985
10986
10987
10988CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10989mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10990|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10991touch \$(top_srcdir)/ChangeLog; \
10992echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10993
10994
10995
10996
10997macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10998INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10999mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11000|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11001touch \$(top_srcdir)/INSTALL; \
11002echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11003
11004
11005
11006
11007
11008
11009case $host_os in
11010    solaris*)
11011        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11012        # check for a man page file found in later versions that use
11013        # traditional section numbers instead
11014        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11015printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11016if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11017then :
11018  printf %s "(cached) " >&6
11019else $as_nop
11020  test "$cross_compiling" = yes &&
11021  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11022if test -r "/usr/share/man/man7/attributes.7"; then
11023  ac_cv_file__usr_share_man_man7_attributes_7=yes
11024else
11025  ac_cv_file__usr_share_man_man7_attributes_7=no
11026fi
11027fi
11028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11029printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11030if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11031then :
11032  SYSV_MAN_SECTIONS=false
11033else $as_nop
11034  SYSV_MAN_SECTIONS=true
11035fi
11036
11037        ;;
11038    *) SYSV_MAN_SECTIONS=false ;;
11039esac
11040
11041if test x$APP_MAN_SUFFIX = x    ; then
11042    APP_MAN_SUFFIX=1
11043fi
11044if test x$APP_MAN_DIR = x    ; then
11045    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11046fi
11047
11048if test x$LIB_MAN_SUFFIX = x    ; then
11049    LIB_MAN_SUFFIX=3
11050fi
11051if test x$LIB_MAN_DIR = x    ; then
11052    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11053fi
11054
11055if test x$FILE_MAN_SUFFIX = x    ; then
11056    case $SYSV_MAN_SECTIONS in
11057	true)				FILE_MAN_SUFFIX=4  ;;
11058	*)				FILE_MAN_SUFFIX=5  ;;
11059    esac
11060fi
11061if test x$FILE_MAN_DIR = x    ; then
11062    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11063fi
11064
11065if test x$MISC_MAN_SUFFIX = x    ; then
11066    case $SYSV_MAN_SECTIONS in
11067	true)				MISC_MAN_SUFFIX=5  ;;
11068	*)				MISC_MAN_SUFFIX=7  ;;
11069    esac
11070fi
11071if test x$MISC_MAN_DIR = x    ; then
11072    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11073fi
11074
11075if test x$DRIVER_MAN_SUFFIX = x    ; then
11076    case $SYSV_MAN_SECTIONS in
11077	true)				DRIVER_MAN_SUFFIX=7  ;;
11078	*)				DRIVER_MAN_SUFFIX=4  ;;
11079    esac
11080fi
11081if test x$DRIVER_MAN_DIR = x    ; then
11082    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11083fi
11084
11085if test x$ADMIN_MAN_SUFFIX = x    ; then
11086    case $SYSV_MAN_SECTIONS in
11087	true)				ADMIN_MAN_SUFFIX=1m ;;
11088	*)				ADMIN_MAN_SUFFIX=8  ;;
11089    esac
11090fi
11091if test x$ADMIN_MAN_DIR = x    ; then
11092    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11093fi
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109XORG_MAN_PAGE="X Version 11"
11110
11111MAN_SUBSTS="\
11112	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11113	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11114	-e 's|__xservername__|Xorg|g' \
11115	-e 's|__xconfigfile__|xorg.conf|g' \
11116	-e 's|__projectroot__|\$(prefix)|g' \
11117	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11118	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11119	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11120	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11121	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11122	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11123	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11124
11125
11126
11127# Check whether --enable-silent-rules was given.
11128if test ${enable_silent_rules+y}
11129then :
11130  enableval=$enable_silent_rules;
11131fi
11132
11133case $enable_silent_rules in # (((
11134  yes) AM_DEFAULT_VERBOSITY=0;;
11135   no) AM_DEFAULT_VERBOSITY=1;;
11136    *) AM_DEFAULT_VERBOSITY=0;;
11137esac
11138am_make=${MAKE-make}
11139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11140printf %s "checking whether $am_make supports nested variables... " >&6; }
11141if test ${am_cv_make_support_nested_variables+y}
11142then :
11143  printf %s "(cached) " >&6
11144else $as_nop
11145  if printf "%s\n" 'TRUE=$(BAR$(V))
11146BAR0=false
11147BAR1=true
11148V=1
11149am__doit:
11150	@$(TRUE)
11151.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11152  am_cv_make_support_nested_variables=yes
11153else
11154  am_cv_make_support_nested_variables=no
11155fi
11156fi
11157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11158printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11159if test $am_cv_make_support_nested_variables = yes; then
11160    AM_V='$(V)'
11161  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11162else
11163  AM_V=$AM_DEFAULT_VERBOSITY
11164  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11165fi
11166AM_BACKSLASH='\'
11167
11168
11169
11170ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
11171if test "x$ac_cv_func_strlcpy" = xyes
11172then :
11173  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
11174
11175fi
11176
11177
11178# Checks for pkg-config packages
11179
11180pkg_failed=no
11181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCALC" >&5
11182printf %s "checking for XCALC... " >&6; }
11183
11184if test -n "$XCALC_CFLAGS"; then
11185    pkg_cv_XCALC_CFLAGS="$XCALC_CFLAGS"
11186 elif test -n "$PKG_CONFIG"; then
11187    if test -n "$PKG_CONFIG" && \
11188    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xt x11 xproto >= 7.0.17\""; } >&5
11189  ($PKG_CONFIG --exists --print-errors "xaw7 xt x11 xproto >= 7.0.17") 2>&5
11190  ac_status=$?
11191  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11192  test $ac_status = 0; }; then
11193  pkg_cv_XCALC_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xt x11 xproto >= 7.0.17" 2>/dev/null`
11194		      test "x$?" != "x0" && pkg_failed=yes
11195else
11196  pkg_failed=yes
11197fi
11198 else
11199    pkg_failed=untried
11200fi
11201if test -n "$XCALC_LIBS"; then
11202    pkg_cv_XCALC_LIBS="$XCALC_LIBS"
11203 elif test -n "$PKG_CONFIG"; then
11204    if test -n "$PKG_CONFIG" && \
11205    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xt x11 xproto >= 7.0.17\""; } >&5
11206  ($PKG_CONFIG --exists --print-errors "xaw7 xt x11 xproto >= 7.0.17") 2>&5
11207  ac_status=$?
11208  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11209  test $ac_status = 0; }; then
11210  pkg_cv_XCALC_LIBS=`$PKG_CONFIG --libs "xaw7 xt x11 xproto >= 7.0.17" 2>/dev/null`
11211		      test "x$?" != "x0" && pkg_failed=yes
11212else
11213  pkg_failed=yes
11214fi
11215 else
11216    pkg_failed=untried
11217fi
11218
11219
11220
11221if test $pkg_failed = yes; then
11222   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11223printf "%s\n" "no" >&6; }
11224
11225if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11226        _pkg_short_errors_supported=yes
11227else
11228        _pkg_short_errors_supported=no
11229fi
11230        if test $_pkg_short_errors_supported = yes; then
11231	        XCALC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xt x11 xproto >= 7.0.17" 2>&1`
11232        else
11233	        XCALC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xt x11 xproto >= 7.0.17" 2>&1`
11234        fi
11235	# Put the nasty error message in config.log where it belongs
11236	echo "$XCALC_PKG_ERRORS" >&5
11237
11238	as_fn_error $? "Package requirements (xaw7 xt x11 xproto >= 7.0.17) were not met:
11239
11240$XCALC_PKG_ERRORS
11241
11242Consider adjusting the PKG_CONFIG_PATH environment variable if you
11243installed software in a non-standard prefix.
11244
11245Alternatively, you may set the environment variables XCALC_CFLAGS
11246and XCALC_LIBS to avoid the need to call pkg-config.
11247See the pkg-config man page for more details." "$LINENO" 5
11248elif test $pkg_failed = untried; then
11249     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250printf "%s\n" "no" >&6; }
11251	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11252printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11253as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11254is in your PATH or set the PKG_CONFIG environment variable to the full
11255path to pkg-config.
11256
11257Alternatively, you may set the environment variables XCALC_CFLAGS
11258and XCALC_LIBS to avoid the need to call pkg-config.
11259See the pkg-config man page for more details.
11260
11261To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11262See \`config.log' for more details" "$LINENO" 5; }
11263else
11264	XCALC_CFLAGS=$pkg_cv_XCALC_CFLAGS
11265	XCALC_LIBS=$pkg_cv_XCALC_LIBS
11266        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11267printf "%s\n" "yes" >&6; }
11268
11269fi
11270
11271
11272pkg_failed=no
11273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11274printf %s "checking for APPDEFS... " >&6; }
11275
11276if test -n "$APPDEFS_CFLAGS"; then
11277    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11278 elif test -n "$PKG_CONFIG"; then
11279    if test -n "$PKG_CONFIG" && \
11280    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11281  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11282  ac_status=$?
11283  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11284  test $ac_status = 0; }; then
11285  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11286		      test "x$?" != "x0" && pkg_failed=yes
11287else
11288  pkg_failed=yes
11289fi
11290 else
11291    pkg_failed=untried
11292fi
11293if test -n "$APPDEFS_LIBS"; then
11294    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11295 elif test -n "$PKG_CONFIG"; then
11296    if test -n "$PKG_CONFIG" && \
11297    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11298  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11299  ac_status=$?
11300  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11301  test $ac_status = 0; }; then
11302  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11303		      test "x$?" != "x0" && pkg_failed=yes
11304else
11305  pkg_failed=yes
11306fi
11307 else
11308    pkg_failed=untried
11309fi
11310
11311
11312
11313if test $pkg_failed = yes; then
11314   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11315printf "%s\n" "no" >&6; }
11316
11317if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11318        _pkg_short_errors_supported=yes
11319else
11320        _pkg_short_errors_supported=no
11321fi
11322        if test $_pkg_short_errors_supported = yes; then
11323	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11324        else
11325	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11326        fi
11327	# Put the nasty error message in config.log where it belongs
11328	echo "$APPDEFS_PKG_ERRORS" >&5
11329
11330	as_fn_error $? "Package requirements (xt) were not met:
11331
11332$APPDEFS_PKG_ERRORS
11333
11334Consider adjusting the PKG_CONFIG_PATH environment variable if you
11335installed software in a non-standard prefix.
11336
11337Alternatively, you may set the environment variables APPDEFS_CFLAGS
11338and APPDEFS_LIBS to avoid the need to call pkg-config.
11339See the pkg-config man page for more details." "$LINENO" 5
11340elif test $pkg_failed = untried; then
11341     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11342printf "%s\n" "no" >&6; }
11343	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11344printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11345as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11346is in your PATH or set the PKG_CONFIG environment variable to the full
11347path to pkg-config.
11348
11349Alternatively, you may set the environment variables APPDEFS_CFLAGS
11350and APPDEFS_LIBS to avoid the need to call pkg-config.
11351See the pkg-config man page for more details.
11352
11353To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11354See \`config.log' for more details" "$LINENO" 5; }
11355else
11356	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11357	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11358        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11359printf "%s\n" "yes" >&6; }
11360
11361fi
11362xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11363
11364# Check whether --with-appdefaultdir was given.
11365if test ${with_appdefaultdir+y}
11366then :
11367  withval=$with_appdefaultdir; appdefaultdir="$withval"
11368else $as_nop
11369  appdefaultdir="${xt_appdefaultdir}"
11370fi
11371
11372
11373
11374
11375ac_config_files="$ac_config_files Makefile man/Makefile"
11376
11377cat >confcache <<\_ACEOF
11378# This file is a shell script that caches the results of configure
11379# tests run on this system so they can be shared between configure
11380# scripts and configure runs, see configure's option --config-cache.
11381# It is not useful on other systems.  If it contains results you don't
11382# want to keep, you may remove or edit it.
11383#
11384# config.status only pays attention to the cache file if you give it
11385# the --recheck option to rerun configure.
11386#
11387# `ac_cv_env_foo' variables (set or unset) will be overridden when
11388# loading this file, other *unset* `ac_cv_foo' will be assigned the
11389# following values.
11390
11391_ACEOF
11392
11393# The following way of writing the cache mishandles newlines in values,
11394# but we know of no workaround that is simple, portable, and efficient.
11395# So, we kill variables containing newlines.
11396# Ultrix sh set writes to stderr and can't be redirected directly,
11397# and sets the high bit in the cache file unless we assign to the vars.
11398(
11399  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11400    eval ac_val=\$$ac_var
11401    case $ac_val in #(
11402    *${as_nl}*)
11403      case $ac_var in #(
11404      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11405printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11406      esac
11407      case $ac_var in #(
11408      _ | IFS | as_nl) ;; #(
11409      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11410      *) { eval $ac_var=; unset $ac_var;} ;;
11411      esac ;;
11412    esac
11413  done
11414
11415  (set) 2>&1 |
11416    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11417    *${as_nl}ac_space=\ *)
11418      # `set' does not quote correctly, so add quotes: double-quote
11419      # substitution turns \\\\ into \\, and sed turns \\ into \.
11420      sed -n \
11421	"s/'/'\\\\''/g;
11422	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11423      ;; #(
11424    *)
11425      # `set' quotes correctly as required by POSIX, so do not add quotes.
11426      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11427      ;;
11428    esac |
11429    sort
11430) |
11431  sed '
11432     /^ac_cv_env_/b end
11433     t clear
11434     :clear
11435     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11436     t end
11437     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11438     :end' >>confcache
11439if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11440  if test -w "$cache_file"; then
11441    if test "x$cache_file" != "x/dev/null"; then
11442      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11443printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11444      if test ! -f "$cache_file" || test -h "$cache_file"; then
11445	cat confcache >"$cache_file"
11446      else
11447        case $cache_file in #(
11448        */* | ?:*)
11449	  mv -f confcache "$cache_file"$$ &&
11450	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11451        *)
11452	  mv -f confcache "$cache_file" ;;
11453	esac
11454      fi
11455    fi
11456  else
11457    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11458printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11459  fi
11460fi
11461rm -f confcache
11462
11463test "x$prefix" = xNONE && prefix=$ac_default_prefix
11464# Let make expand exec_prefix.
11465test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11466
11467DEFS=-DHAVE_CONFIG_H
11468
11469ac_libobjs=
11470ac_ltlibobjs=
11471U=
11472for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11473  # 1. Remove the extension, and $U if already installed.
11474  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11475  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11476  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11477  #    will be set to the directory where LIBOBJS objects are built.
11478  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11479  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11480done
11481LIBOBJS=$ac_libobjs
11482
11483LTLIBOBJS=$ac_ltlibobjs
11484
11485
11486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11487printf %s "checking that generated files are newer than configure... " >&6; }
11488   if test -n "$am_sleep_pid"; then
11489     # Hide warnings about reused PIDs.
11490     wait $am_sleep_pid 2>/dev/null
11491   fi
11492   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11493printf "%s\n" "done" >&6; }
11494 if test -n "$EXEEXT"; then
11495  am__EXEEXT_TRUE=
11496  am__EXEEXT_FALSE='#'
11497else
11498  am__EXEEXT_TRUE='#'
11499  am__EXEEXT_FALSE=
11500fi
11501
11502if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11503  as_fn_error $? "conditional \"AMDEP\" was never defined.
11504Usually this means the macro was only invoked conditionally." "$LINENO" 5
11505fi
11506if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11507  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11508Usually this means the macro was only invoked conditionally." "$LINENO" 5
11509fi
11510
11511: "${CONFIG_STATUS=./config.status}"
11512ac_write_fail=0
11513ac_clean_files_save=$ac_clean_files
11514ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11516printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11517as_write_fail=0
11518cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11519#! $SHELL
11520# Generated by $as_me.
11521# Run this file to recreate the current configuration.
11522# Compiler output produced by configure, useful for debugging
11523# configure, is in config.log if it exists.
11524
11525debug=false
11526ac_cs_recheck=false
11527ac_cs_silent=false
11528
11529SHELL=\${CONFIG_SHELL-$SHELL}
11530export SHELL
11531_ASEOF
11532cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11533## -------------------- ##
11534## M4sh Initialization. ##
11535## -------------------- ##
11536
11537# Be more Bourne compatible
11538DUALCASE=1; export DUALCASE # for MKS sh
11539as_nop=:
11540if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11541then :
11542  emulate sh
11543  NULLCMD=:
11544  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11545  # is contrary to our usage.  Disable this feature.
11546  alias -g '${1+"$@"}'='"$@"'
11547  setopt NO_GLOB_SUBST
11548else $as_nop
11549  case `(set -o) 2>/dev/null` in #(
11550  *posix*) :
11551    set -o posix ;; #(
11552  *) :
11553     ;;
11554esac
11555fi
11556
11557
11558
11559# Reset variables that may have inherited troublesome values from
11560# the environment.
11561
11562# IFS needs to be set, to space, tab, and newline, in precisely that order.
11563# (If _AS_PATH_WALK were called with IFS unset, it would have the
11564# side effect of setting IFS to empty, thus disabling word splitting.)
11565# Quoting is to prevent editors from complaining about space-tab.
11566as_nl='
11567'
11568export as_nl
11569IFS=" ""	$as_nl"
11570
11571PS1='$ '
11572PS2='> '
11573PS4='+ '
11574
11575# Ensure predictable behavior from utilities with locale-dependent output.
11576LC_ALL=C
11577export LC_ALL
11578LANGUAGE=C
11579export LANGUAGE
11580
11581# We cannot yet rely on "unset" to work, but we need these variables
11582# to be unset--not just set to an empty or harmless value--now, to
11583# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11584# also avoids known problems related to "unset" and subshell syntax
11585# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11586for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11587do eval test \${$as_var+y} \
11588  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11589done
11590
11591# Ensure that fds 0, 1, and 2 are open.
11592if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11593if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11594if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11595
11596# The user is always right.
11597if ${PATH_SEPARATOR+false} :; then
11598  PATH_SEPARATOR=:
11599  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11600    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11601      PATH_SEPARATOR=';'
11602  }
11603fi
11604
11605
11606# Find who we are.  Look in the path if we contain no directory separator.
11607as_myself=
11608case $0 in #((
11609  *[\\/]* ) as_myself=$0 ;;
11610  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611for as_dir in $PATH
11612do
11613  IFS=$as_save_IFS
11614  case $as_dir in #(((
11615    '') as_dir=./ ;;
11616    */) ;;
11617    *) as_dir=$as_dir/ ;;
11618  esac
11619    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11620  done
11621IFS=$as_save_IFS
11622
11623     ;;
11624esac
11625# We did not find ourselves, most probably we were run as `sh COMMAND'
11626# in which case we are not to be found in the path.
11627if test "x$as_myself" = x; then
11628  as_myself=$0
11629fi
11630if test ! -f "$as_myself"; then
11631  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11632  exit 1
11633fi
11634
11635
11636
11637# as_fn_error STATUS ERROR [LINENO LOG_FD]
11638# ----------------------------------------
11639# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11640# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11641# script with STATUS, using 1 if that was 0.
11642as_fn_error ()
11643{
11644  as_status=$1; test $as_status -eq 0 && as_status=1
11645  if test "$4"; then
11646    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11647    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11648  fi
11649  printf "%s\n" "$as_me: error: $2" >&2
11650  as_fn_exit $as_status
11651} # as_fn_error
11652
11653
11654
11655# as_fn_set_status STATUS
11656# -----------------------
11657# Set $? to STATUS, without forking.
11658as_fn_set_status ()
11659{
11660  return $1
11661} # as_fn_set_status
11662
11663# as_fn_exit STATUS
11664# -----------------
11665# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11666as_fn_exit ()
11667{
11668  set +e
11669  as_fn_set_status $1
11670  exit $1
11671} # as_fn_exit
11672
11673# as_fn_unset VAR
11674# ---------------
11675# Portably unset VAR.
11676as_fn_unset ()
11677{
11678  { eval $1=; unset $1;}
11679}
11680as_unset=as_fn_unset
11681
11682# as_fn_append VAR VALUE
11683# ----------------------
11684# Append the text in VALUE to the end of the definition contained in VAR. Take
11685# advantage of any shell optimizations that allow amortized linear growth over
11686# repeated appends, instead of the typical quadratic growth present in naive
11687# implementations.
11688if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11689then :
11690  eval 'as_fn_append ()
11691  {
11692    eval $1+=\$2
11693  }'
11694else $as_nop
11695  as_fn_append ()
11696  {
11697    eval $1=\$$1\$2
11698  }
11699fi # as_fn_append
11700
11701# as_fn_arith ARG...
11702# ------------------
11703# Perform arithmetic evaluation on the ARGs, and store the result in the
11704# global $as_val. Take advantage of shells that can avoid forks. The arguments
11705# must be portable across $(()) and expr.
11706if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11707then :
11708  eval 'as_fn_arith ()
11709  {
11710    as_val=$(( $* ))
11711  }'
11712else $as_nop
11713  as_fn_arith ()
11714  {
11715    as_val=`expr "$@" || test $? -eq 1`
11716  }
11717fi # as_fn_arith
11718
11719
11720if expr a : '\(a\)' >/dev/null 2>&1 &&
11721   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11722  as_expr=expr
11723else
11724  as_expr=false
11725fi
11726
11727if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11728  as_basename=basename
11729else
11730  as_basename=false
11731fi
11732
11733if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11734  as_dirname=dirname
11735else
11736  as_dirname=false
11737fi
11738
11739as_me=`$as_basename -- "$0" ||
11740$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11741	 X"$0" : 'X\(//\)$' \| \
11742	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11743printf "%s\n" X/"$0" |
11744    sed '/^.*\/\([^/][^/]*\)\/*$/{
11745	    s//\1/
11746	    q
11747	  }
11748	  /^X\/\(\/\/\)$/{
11749	    s//\1/
11750	    q
11751	  }
11752	  /^X\/\(\/\).*/{
11753	    s//\1/
11754	    q
11755	  }
11756	  s/.*/./; q'`
11757
11758# Avoid depending upon Character Ranges.
11759as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11760as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11761as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11762as_cr_digits='0123456789'
11763as_cr_alnum=$as_cr_Letters$as_cr_digits
11764
11765
11766# Determine whether it's possible to make 'echo' print without a newline.
11767# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11768# for compatibility with existing Makefiles.
11769ECHO_C= ECHO_N= ECHO_T=
11770case `echo -n x` in #(((((
11771-n*)
11772  case `echo 'xy\c'` in
11773  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11774  xy)  ECHO_C='\c';;
11775  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11776       ECHO_T='	';;
11777  esac;;
11778*)
11779  ECHO_N='-n';;
11780esac
11781
11782# For backward compatibility with old third-party macros, we provide
11783# the shell variables $as_echo and $as_echo_n.  New code should use
11784# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11785as_echo='printf %s\n'
11786as_echo_n='printf %s'
11787
11788rm -f conf$$ conf$$.exe conf$$.file
11789if test -d conf$$.dir; then
11790  rm -f conf$$.dir/conf$$.file
11791else
11792  rm -f conf$$.dir
11793  mkdir conf$$.dir 2>/dev/null
11794fi
11795if (echo >conf$$.file) 2>/dev/null; then
11796  if ln -s conf$$.file conf$$ 2>/dev/null; then
11797    as_ln_s='ln -s'
11798    # ... but there are two gotchas:
11799    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11800    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11801    # In both cases, we have to default to `cp -pR'.
11802    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11803      as_ln_s='cp -pR'
11804  elif ln conf$$.file conf$$ 2>/dev/null; then
11805    as_ln_s=ln
11806  else
11807    as_ln_s='cp -pR'
11808  fi
11809else
11810  as_ln_s='cp -pR'
11811fi
11812rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11813rmdir conf$$.dir 2>/dev/null
11814
11815
11816# as_fn_mkdir_p
11817# -------------
11818# Create "$as_dir" as a directory, including parents if necessary.
11819as_fn_mkdir_p ()
11820{
11821
11822  case $as_dir in #(
11823  -*) as_dir=./$as_dir;;
11824  esac
11825  test -d "$as_dir" || eval $as_mkdir_p || {
11826    as_dirs=
11827    while :; do
11828      case $as_dir in #(
11829      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11830      *) as_qdir=$as_dir;;
11831      esac
11832      as_dirs="'$as_qdir' $as_dirs"
11833      as_dir=`$as_dirname -- "$as_dir" ||
11834$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11835	 X"$as_dir" : 'X\(//\)[^/]' \| \
11836	 X"$as_dir" : 'X\(//\)$' \| \
11837	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11838printf "%s\n" X"$as_dir" |
11839    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11840	    s//\1/
11841	    q
11842	  }
11843	  /^X\(\/\/\)[^/].*/{
11844	    s//\1/
11845	    q
11846	  }
11847	  /^X\(\/\/\)$/{
11848	    s//\1/
11849	    q
11850	  }
11851	  /^X\(\/\).*/{
11852	    s//\1/
11853	    q
11854	  }
11855	  s/.*/./; q'`
11856      test -d "$as_dir" && break
11857    done
11858    test -z "$as_dirs" || eval "mkdir $as_dirs"
11859  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11860
11861
11862} # as_fn_mkdir_p
11863if mkdir -p . 2>/dev/null; then
11864  as_mkdir_p='mkdir -p "$as_dir"'
11865else
11866  test -d ./-p && rmdir ./-p
11867  as_mkdir_p=false
11868fi
11869
11870
11871# as_fn_executable_p FILE
11872# -----------------------
11873# Test if FILE is an executable regular file.
11874as_fn_executable_p ()
11875{
11876  test -f "$1" && test -x "$1"
11877} # as_fn_executable_p
11878as_test_x='test -x'
11879as_executable_p=as_fn_executable_p
11880
11881# Sed expression to map a string onto a valid CPP name.
11882as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11883
11884# Sed expression to map a string onto a valid variable name.
11885as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11886
11887
11888exec 6>&1
11889## ----------------------------------- ##
11890## Main body of $CONFIG_STATUS script. ##
11891## ----------------------------------- ##
11892_ASEOF
11893test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11894
11895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11896# Save the log message, to keep $0 and so on meaningful, and to
11897# report actual input values of CONFIG_FILES etc. instead of their
11898# values after options handling.
11899ac_log="
11900This file was extended by xcalc $as_me 1.1.1, which was
11901generated by GNU Autoconf 2.71.  Invocation command line was
11902
11903  CONFIG_FILES    = $CONFIG_FILES
11904  CONFIG_HEADERS  = $CONFIG_HEADERS
11905  CONFIG_LINKS    = $CONFIG_LINKS
11906  CONFIG_COMMANDS = $CONFIG_COMMANDS
11907  $ $0 $@
11908
11909on `(hostname || uname -n) 2>/dev/null | sed 1q`
11910"
11911
11912_ACEOF
11913
11914case $ac_config_files in *"
11915"*) set x $ac_config_files; shift; ac_config_files=$*;;
11916esac
11917
11918case $ac_config_headers in *"
11919"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11920esac
11921
11922
11923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11924# Files that config.status was made for.
11925config_files="$ac_config_files"
11926config_headers="$ac_config_headers"
11927config_commands="$ac_config_commands"
11928
11929_ACEOF
11930
11931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11932ac_cs_usage="\
11933\`$as_me' instantiates files and other configuration actions
11934from templates according to the current configuration.  Unless the files
11935and actions are specified as TAGs, all are instantiated by default.
11936
11937Usage: $0 [OPTION]... [TAG]...
11938
11939  -h, --help       print this help, then exit
11940  -V, --version    print version number and configuration settings, then exit
11941      --config     print configuration, then exit
11942  -q, --quiet, --silent
11943                   do not print progress messages
11944  -d, --debug      don't remove temporary files
11945      --recheck    update $as_me by reconfiguring in the same conditions
11946      --file=FILE[:TEMPLATE]
11947                   instantiate the configuration file FILE
11948      --header=FILE[:TEMPLATE]
11949                   instantiate the configuration header FILE
11950
11951Configuration files:
11952$config_files
11953
11954Configuration headers:
11955$config_headers
11956
11957Configuration commands:
11958$config_commands
11959
11960Report bugs to <https://gitlab.freedesktop.org/xorg/app/xcalc/issues>."
11961
11962_ACEOF
11963ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11964ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11966ac_cs_config='$ac_cs_config_escaped'
11967ac_cs_version="\\
11968xcalc config.status 1.1.1
11969configured by $0, generated by GNU Autoconf 2.71,
11970  with options \\"\$ac_cs_config\\"
11971
11972Copyright (C) 2021 Free Software Foundation, Inc.
11973This config.status script is free software; the Free Software Foundation
11974gives unlimited permission to copy, distribute and modify it."
11975
11976ac_pwd='$ac_pwd'
11977srcdir='$srcdir'
11978INSTALL='$INSTALL'
11979MKDIR_P='$MKDIR_P'
11980AWK='$AWK'
11981test -n "\$AWK" || AWK=awk
11982_ACEOF
11983
11984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11985# The default lists apply if the user does not specify any file.
11986ac_need_defaults=:
11987while test $# != 0
11988do
11989  case $1 in
11990  --*=?*)
11991    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11992    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11993    ac_shift=:
11994    ;;
11995  --*=)
11996    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11997    ac_optarg=
11998    ac_shift=:
11999    ;;
12000  *)
12001    ac_option=$1
12002    ac_optarg=$2
12003    ac_shift=shift
12004    ;;
12005  esac
12006
12007  case $ac_option in
12008  # Handling of the options.
12009  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12010    ac_cs_recheck=: ;;
12011  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12012    printf "%s\n" "$ac_cs_version"; exit ;;
12013  --config | --confi | --conf | --con | --co | --c )
12014    printf "%s\n" "$ac_cs_config"; exit ;;
12015  --debug | --debu | --deb | --de | --d | -d )
12016    debug=: ;;
12017  --file | --fil | --fi | --f )
12018    $ac_shift
12019    case $ac_optarg in
12020    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12021    '') as_fn_error $? "missing file argument" ;;
12022    esac
12023    as_fn_append CONFIG_FILES " '$ac_optarg'"
12024    ac_need_defaults=false;;
12025  --header | --heade | --head | --hea )
12026    $ac_shift
12027    case $ac_optarg in
12028    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12029    esac
12030    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12031    ac_need_defaults=false;;
12032  --he | --h)
12033    # Conflict between --help and --header
12034    as_fn_error $? "ambiguous option: \`$1'
12035Try \`$0 --help' for more information.";;
12036  --help | --hel | -h )
12037    printf "%s\n" "$ac_cs_usage"; exit ;;
12038  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12039  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12040    ac_cs_silent=: ;;
12041
12042  # This is an error.
12043  -*) as_fn_error $? "unrecognized option: \`$1'
12044Try \`$0 --help' for more information." ;;
12045
12046  *) as_fn_append ac_config_targets " $1"
12047     ac_need_defaults=false ;;
12048
12049  esac
12050  shift
12051done
12052
12053ac_configure_extra_args=
12054
12055if $ac_cs_silent; then
12056  exec 6>/dev/null
12057  ac_configure_extra_args="$ac_configure_extra_args --silent"
12058fi
12059
12060_ACEOF
12061cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12062if \$ac_cs_recheck; then
12063  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12064  shift
12065  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12066  CONFIG_SHELL='$SHELL'
12067  export CONFIG_SHELL
12068  exec "\$@"
12069fi
12070
12071_ACEOF
12072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12073exec 5>>config.log
12074{
12075  echo
12076  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12077## Running $as_me. ##
12078_ASBOX
12079  printf "%s\n" "$ac_log"
12080} >&5
12081
12082_ACEOF
12083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12084#
12085# INIT-COMMANDS
12086#
12087AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12088
12089_ACEOF
12090
12091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12092
12093# Handling of arguments.
12094for ac_config_target in $ac_config_targets
12095do
12096  case $ac_config_target in
12097    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12098    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12099    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12100    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12101
12102  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12103  esac
12104done
12105
12106
12107# If the user did not use the arguments to specify the items to instantiate,
12108# then the envvar interface is used.  Set only those that are not.
12109# We use the long form for the default assignment because of an extremely
12110# bizarre bug on SunOS 4.1.3.
12111if $ac_need_defaults; then
12112  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12113  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12114  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12115fi
12116
12117# Have a temporary directory for convenience.  Make it in the build tree
12118# simply because there is no reason against having it here, and in addition,
12119# creating and moving files from /tmp can sometimes cause problems.
12120# Hook for its removal unless debugging.
12121# Note that there is a small window in which the directory will not be cleaned:
12122# after its creation but before its name has been assigned to `$tmp'.
12123$debug ||
12124{
12125  tmp= ac_tmp=
12126  trap 'exit_status=$?
12127  : "${ac_tmp:=$tmp}"
12128  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12129' 0
12130  trap 'as_fn_exit 1' 1 2 13 15
12131}
12132# Create a (secure) tmp directory for tmp files.
12133
12134{
12135  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12136  test -d "$tmp"
12137}  ||
12138{
12139  tmp=./conf$$-$RANDOM
12140  (umask 077 && mkdir "$tmp")
12141} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12142ac_tmp=$tmp
12143
12144# Set up the scripts for CONFIG_FILES section.
12145# No need to generate them if there are no CONFIG_FILES.
12146# This happens for instance with `./config.status config.h'.
12147if test -n "$CONFIG_FILES"; then
12148
12149
12150ac_cr=`echo X | tr X '\015'`
12151# On cygwin, bash can eat \r inside `` if the user requested igncr.
12152# But we know of no other shell where ac_cr would be empty at this
12153# point, so we can use a bashism as a fallback.
12154if test "x$ac_cr" = x; then
12155  eval ac_cr=\$\'\\r\'
12156fi
12157ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12158if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12159  ac_cs_awk_cr='\\r'
12160else
12161  ac_cs_awk_cr=$ac_cr
12162fi
12163
12164echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12165_ACEOF
12166
12167
12168{
12169  echo "cat >conf$$subs.awk <<_ACEOF" &&
12170  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12171  echo "_ACEOF"
12172} >conf$$subs.sh ||
12173  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12174ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12175ac_delim='%!_!# '
12176for ac_last_try in false false false false false :; do
12177  . ./conf$$subs.sh ||
12178    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12179
12180  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12181  if test $ac_delim_n = $ac_delim_num; then
12182    break
12183  elif $ac_last_try; then
12184    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12185  else
12186    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12187  fi
12188done
12189rm -f conf$$subs.sh
12190
12191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12192cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12193_ACEOF
12194sed -n '
12195h
12196s/^/S["/; s/!.*/"]=/
12197p
12198g
12199s/^[^!]*!//
12200:repl
12201t repl
12202s/'"$ac_delim"'$//
12203t delim
12204:nl
12205h
12206s/\(.\{148\}\)..*/\1/
12207t more1
12208s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12209p
12210n
12211b repl
12212:more1
12213s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12214p
12215g
12216s/.\{148\}//
12217t nl
12218:delim
12219h
12220s/\(.\{148\}\)..*/\1/
12221t more2
12222s/["\\]/\\&/g; s/^/"/; s/$/"/
12223p
12224b
12225:more2
12226s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12227p
12228g
12229s/.\{148\}//
12230t delim
12231' <conf$$subs.awk | sed '
12232/^[^""]/{
12233  N
12234  s/\n//
12235}
12236' >>$CONFIG_STATUS || ac_write_fail=1
12237rm -f conf$$subs.awk
12238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12239_ACAWK
12240cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12241  for (key in S) S_is_set[key] = 1
12242  FS = ""
12243
12244}
12245{
12246  line = $ 0
12247  nfields = split(line, field, "@")
12248  substed = 0
12249  len = length(field[1])
12250  for (i = 2; i < nfields; i++) {
12251    key = field[i]
12252    keylen = length(key)
12253    if (S_is_set[key]) {
12254      value = S[key]
12255      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12256      len += length(value) + length(field[++i])
12257      substed = 1
12258    } else
12259      len += 1 + keylen
12260  }
12261
12262  print line
12263}
12264
12265_ACAWK
12266_ACEOF
12267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12268if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12269  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12270else
12271  cat
12272fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12273  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12274_ACEOF
12275
12276# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12277# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12278# trailing colons and then remove the whole line if VPATH becomes empty
12279# (actually we leave an empty line to preserve line numbers).
12280if test "x$srcdir" = x.; then
12281  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12282h
12283s///
12284s/^/:/
12285s/[	 ]*$/:/
12286s/:\$(srcdir):/:/g
12287s/:\${srcdir}:/:/g
12288s/:@srcdir@:/:/g
12289s/^:*//
12290s/:*$//
12291x
12292s/\(=[	 ]*\).*/\1/
12293G
12294s/\n//
12295s/^[^=]*=[	 ]*$//
12296}'
12297fi
12298
12299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12300fi # test -n "$CONFIG_FILES"
12301
12302# Set up the scripts for CONFIG_HEADERS section.
12303# No need to generate them if there are no CONFIG_HEADERS.
12304# This happens for instance with `./config.status Makefile'.
12305if test -n "$CONFIG_HEADERS"; then
12306cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12307BEGIN {
12308_ACEOF
12309
12310# Transform confdefs.h into an awk script `defines.awk', embedded as
12311# here-document in config.status, that substitutes the proper values into
12312# config.h.in to produce config.h.
12313
12314# Create a delimiter string that does not exist in confdefs.h, to ease
12315# handling of long lines.
12316ac_delim='%!_!# '
12317for ac_last_try in false false :; do
12318  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12319  if test -z "$ac_tt"; then
12320    break
12321  elif $ac_last_try; then
12322    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12323  else
12324    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12325  fi
12326done
12327
12328# For the awk script, D is an array of macro values keyed by name,
12329# likewise P contains macro parameters if any.  Preserve backslash
12330# newline sequences.
12331
12332ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12333sed -n '
12334s/.\{148\}/&'"$ac_delim"'/g
12335t rset
12336:rset
12337s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12338t def
12339d
12340:def
12341s/\\$//
12342t bsnl
12343s/["\\]/\\&/g
12344s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12345D["\1"]=" \3"/p
12346s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12347d
12348:bsnl
12349s/["\\]/\\&/g
12350s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12351D["\1"]=" \3\\\\\\n"\\/p
12352t cont
12353s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12354t cont
12355d
12356:cont
12357n
12358s/.\{148\}/&'"$ac_delim"'/g
12359t clear
12360:clear
12361s/\\$//
12362t bsnlc
12363s/["\\]/\\&/g; s/^/"/; s/$/"/p
12364d
12365:bsnlc
12366s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12367b cont
12368' <confdefs.h | sed '
12369s/'"$ac_delim"'/"\\\
12370"/g' >>$CONFIG_STATUS || ac_write_fail=1
12371
12372cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12373  for (key in D) D_is_set[key] = 1
12374  FS = ""
12375}
12376/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12377  line = \$ 0
12378  split(line, arg, " ")
12379  if (arg[1] == "#") {
12380    defundef = arg[2]
12381    mac1 = arg[3]
12382  } else {
12383    defundef = substr(arg[1], 2)
12384    mac1 = arg[2]
12385  }
12386  split(mac1, mac2, "(") #)
12387  macro = mac2[1]
12388  prefix = substr(line, 1, index(line, defundef) - 1)
12389  if (D_is_set[macro]) {
12390    # Preserve the white space surrounding the "#".
12391    print prefix "define", macro P[macro] D[macro]
12392    next
12393  } else {
12394    # Replace #undef with comments.  This is necessary, for example,
12395    # in the case of _POSIX_SOURCE, which is predefined and required
12396    # on some systems where configure will not decide to define it.
12397    if (defundef == "undef") {
12398      print "/*", prefix defundef, macro, "*/"
12399      next
12400    }
12401  }
12402}
12403{ print }
12404_ACAWK
12405_ACEOF
12406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12407  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12408fi # test -n "$CONFIG_HEADERS"
12409
12410
12411eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12412shift
12413for ac_tag
12414do
12415  case $ac_tag in
12416  :[FHLC]) ac_mode=$ac_tag; continue;;
12417  esac
12418  case $ac_mode$ac_tag in
12419  :[FHL]*:*);;
12420  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12421  :[FH]-) ac_tag=-:-;;
12422  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12423  esac
12424  ac_save_IFS=$IFS
12425  IFS=:
12426  set x $ac_tag
12427  IFS=$ac_save_IFS
12428  shift
12429  ac_file=$1
12430  shift
12431
12432  case $ac_mode in
12433  :L) ac_source=$1;;
12434  :[FH])
12435    ac_file_inputs=
12436    for ac_f
12437    do
12438      case $ac_f in
12439      -) ac_f="$ac_tmp/stdin";;
12440      *) # Look for the file first in the build tree, then in the source tree
12441	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12442	 # because $ac_f cannot contain `:'.
12443	 test -f "$ac_f" ||
12444	   case $ac_f in
12445	   [\\/$]*) false;;
12446	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12447	   esac ||
12448	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12449      esac
12450      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12451      as_fn_append ac_file_inputs " '$ac_f'"
12452    done
12453
12454    # Let's still pretend it is `configure' which instantiates (i.e., don't
12455    # use $as_me), people would be surprised to read:
12456    #    /* config.h.  Generated by config.status.  */
12457    configure_input='Generated from '`
12458	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12459	`' by configure.'
12460    if test x"$ac_file" != x-; then
12461      configure_input="$ac_file.  $configure_input"
12462      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12463printf "%s\n" "$as_me: creating $ac_file" >&6;}
12464    fi
12465    # Neutralize special characters interpreted by sed in replacement strings.
12466    case $configure_input in #(
12467    *\&* | *\|* | *\\* )
12468       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12469       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12470    *) ac_sed_conf_input=$configure_input;;
12471    esac
12472
12473    case $ac_tag in
12474    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12475      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12476    esac
12477    ;;
12478  esac
12479
12480  ac_dir=`$as_dirname -- "$ac_file" ||
12481$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12482	 X"$ac_file" : 'X\(//\)[^/]' \| \
12483	 X"$ac_file" : 'X\(//\)$' \| \
12484	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12485printf "%s\n" X"$ac_file" |
12486    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12487	    s//\1/
12488	    q
12489	  }
12490	  /^X\(\/\/\)[^/].*/{
12491	    s//\1/
12492	    q
12493	  }
12494	  /^X\(\/\/\)$/{
12495	    s//\1/
12496	    q
12497	  }
12498	  /^X\(\/\).*/{
12499	    s//\1/
12500	    q
12501	  }
12502	  s/.*/./; q'`
12503  as_dir="$ac_dir"; as_fn_mkdir_p
12504  ac_builddir=.
12505
12506case "$ac_dir" in
12507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12508*)
12509  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12510  # A ".." for each directory in $ac_dir_suffix.
12511  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12512  case $ac_top_builddir_sub in
12513  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12514  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12515  esac ;;
12516esac
12517ac_abs_top_builddir=$ac_pwd
12518ac_abs_builddir=$ac_pwd$ac_dir_suffix
12519# for backward compatibility:
12520ac_top_builddir=$ac_top_build_prefix
12521
12522case $srcdir in
12523  .)  # We are building in place.
12524    ac_srcdir=.
12525    ac_top_srcdir=$ac_top_builddir_sub
12526    ac_abs_top_srcdir=$ac_pwd ;;
12527  [\\/]* | ?:[\\/]* )  # Absolute name.
12528    ac_srcdir=$srcdir$ac_dir_suffix;
12529    ac_top_srcdir=$srcdir
12530    ac_abs_top_srcdir=$srcdir ;;
12531  *) # Relative name.
12532    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12533    ac_top_srcdir=$ac_top_build_prefix$srcdir
12534    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12535esac
12536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12537
12538
12539  case $ac_mode in
12540  :F)
12541  #
12542  # CONFIG_FILE
12543  #
12544
12545  case $INSTALL in
12546  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12547  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12548  esac
12549  ac_MKDIR_P=$MKDIR_P
12550  case $MKDIR_P in
12551  [\\/$]* | ?:[\\/]* ) ;;
12552  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12553  esac
12554_ACEOF
12555
12556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12557# If the template does not know about datarootdir, expand it.
12558# FIXME: This hack should be removed a few years after 2.60.
12559ac_datarootdir_hack=; ac_datarootdir_seen=
12560ac_sed_dataroot='
12561/datarootdir/ {
12562  p
12563  q
12564}
12565/@datadir@/p
12566/@docdir@/p
12567/@infodir@/p
12568/@localedir@/p
12569/@mandir@/p'
12570case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12571*datarootdir*) ac_datarootdir_seen=yes;;
12572*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12574printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12575_ACEOF
12576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12577  ac_datarootdir_hack='
12578  s&@datadir@&$datadir&g
12579  s&@docdir@&$docdir&g
12580  s&@infodir@&$infodir&g
12581  s&@localedir@&$localedir&g
12582  s&@mandir@&$mandir&g
12583  s&\\\${datarootdir}&$datarootdir&g' ;;
12584esac
12585_ACEOF
12586
12587# Neutralize VPATH when `$srcdir' = `.'.
12588# Shell code in configure.ac might set extrasub.
12589# FIXME: do we really want to maintain this feature?
12590cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12591ac_sed_extra="$ac_vpsub
12592$extrasub
12593_ACEOF
12594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12595:t
12596/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12597s|@configure_input@|$ac_sed_conf_input|;t t
12598s&@top_builddir@&$ac_top_builddir_sub&;t t
12599s&@top_build_prefix@&$ac_top_build_prefix&;t t
12600s&@srcdir@&$ac_srcdir&;t t
12601s&@abs_srcdir@&$ac_abs_srcdir&;t t
12602s&@top_srcdir@&$ac_top_srcdir&;t t
12603s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12604s&@builddir@&$ac_builddir&;t t
12605s&@abs_builddir@&$ac_abs_builddir&;t t
12606s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12607s&@INSTALL@&$ac_INSTALL&;t t
12608s&@MKDIR_P@&$ac_MKDIR_P&;t t
12609$ac_datarootdir_hack
12610"
12611eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12612  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12613
12614test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12615  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12616  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12617      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12619which seems to be undefined.  Please make sure it is defined" >&5
12620printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12621which seems to be undefined.  Please make sure it is defined" >&2;}
12622
12623  rm -f "$ac_tmp/stdin"
12624  case $ac_file in
12625  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12626  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12627  esac \
12628  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12629 ;;
12630  :H)
12631  #
12632  # CONFIG_HEADER
12633  #
12634  if test x"$ac_file" != x-; then
12635    {
12636      printf "%s\n" "/* $configure_input  */" >&1 \
12637      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12638    } >"$ac_tmp/config.h" \
12639      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12640    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12641      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12642printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12643    else
12644      rm -f "$ac_file"
12645      mv "$ac_tmp/config.h" "$ac_file" \
12646	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12647    fi
12648  else
12649    printf "%s\n" "/* $configure_input  */" >&1 \
12650      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12651      || as_fn_error $? "could not create -" "$LINENO" 5
12652  fi
12653# Compute "$ac_file"'s index in $config_headers.
12654_am_arg="$ac_file"
12655_am_stamp_count=1
12656for _am_header in $config_headers :; do
12657  case $_am_header in
12658    $_am_arg | $_am_arg:* )
12659      break ;;
12660    * )
12661      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12662  esac
12663done
12664echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12665$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12666	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12667	 X"$_am_arg" : 'X\(//\)$' \| \
12668	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12669printf "%s\n" X"$_am_arg" |
12670    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12671	    s//\1/
12672	    q
12673	  }
12674	  /^X\(\/\/\)[^/].*/{
12675	    s//\1/
12676	    q
12677	  }
12678	  /^X\(\/\/\)$/{
12679	    s//\1/
12680	    q
12681	  }
12682	  /^X\(\/\).*/{
12683	    s//\1/
12684	    q
12685	  }
12686	  s/.*/./; q'`/stamp-h$_am_stamp_count
12687 ;;
12688
12689  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12690printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12691 ;;
12692  esac
12693
12694
12695  case $ac_file$ac_mode in
12696    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12697  # Older Autoconf quotes --file arguments for eval, but not when files
12698  # are listed without --file.  Let's play safe and only enable the eval
12699  # if we detect the quoting.
12700  # TODO: see whether this extra hack can be removed once we start
12701  # requiring Autoconf 2.70 or later.
12702  case $CONFIG_FILES in #(
12703  *\'*) :
12704    eval set x "$CONFIG_FILES" ;; #(
12705  *) :
12706    set x $CONFIG_FILES ;; #(
12707  *) :
12708     ;;
12709esac
12710  shift
12711  # Used to flag and report bootstrapping failures.
12712  am_rc=0
12713  for am_mf
12714  do
12715    # Strip MF so we end up with the name of the file.
12716    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12717    # Check whether this is an Automake generated Makefile which includes
12718    # dependency-tracking related rules and includes.
12719    # Grep'ing the whole file directly is not great: AIX grep has a line
12720    # limit of 2048, but all sed's we know have understand at least 4000.
12721    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12722      || continue
12723    am_dirpart=`$as_dirname -- "$am_mf" ||
12724$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12725	 X"$am_mf" : 'X\(//\)[^/]' \| \
12726	 X"$am_mf" : 'X\(//\)$' \| \
12727	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12728printf "%s\n" X"$am_mf" |
12729    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12730	    s//\1/
12731	    q
12732	  }
12733	  /^X\(\/\/\)[^/].*/{
12734	    s//\1/
12735	    q
12736	  }
12737	  /^X\(\/\/\)$/{
12738	    s//\1/
12739	    q
12740	  }
12741	  /^X\(\/\).*/{
12742	    s//\1/
12743	    q
12744	  }
12745	  s/.*/./; q'`
12746    am_filepart=`$as_basename -- "$am_mf" ||
12747$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12748	 X"$am_mf" : 'X\(//\)$' \| \
12749	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12750printf "%s\n" X/"$am_mf" |
12751    sed '/^.*\/\([^/][^/]*\)\/*$/{
12752	    s//\1/
12753	    q
12754	  }
12755	  /^X\/\(\/\/\)$/{
12756	    s//\1/
12757	    q
12758	  }
12759	  /^X\/\(\/\).*/{
12760	    s//\1/
12761	    q
12762	  }
12763	  s/.*/./; q'`
12764    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12765      && sed -e '/# am--include-marker/d' "$am_filepart" \
12766        | $MAKE -f - am--depfiles" >&5
12767   (cd "$am_dirpart" \
12768      && sed -e '/# am--include-marker/d' "$am_filepart" \
12769        | $MAKE -f - am--depfiles) >&5 2>&5
12770   ac_status=$?
12771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772   (exit $ac_status); } || am_rc=$?
12773  done
12774  if test $am_rc -ne 0; then
12775    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12776printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12777as_fn_error $? "Something went wrong bootstrapping makefile fragments
12778    for automatic dependency tracking.  If GNU make was not used, consider
12779    re-running the configure script with MAKE=\"gmake\" (or whatever is
12780    necessary).  You can also try re-running configure with the
12781    '--disable-dependency-tracking' option to at least be able to build
12782    the package (albeit without support for automatic dependency tracking).
12783See \`config.log' for more details" "$LINENO" 5; }
12784  fi
12785  { am_dirpart=; unset am_dirpart;}
12786  { am_filepart=; unset am_filepart;}
12787  { am_mf=; unset am_mf;}
12788  { am_rc=; unset am_rc;}
12789  rm -f conftest-deps.mk
12790}
12791 ;;
12792
12793  esac
12794done # for ac_tag
12795
12796
12797as_fn_exit 0
12798_ACEOF
12799ac_clean_files=$ac_clean_files_save
12800
12801test $ac_write_fail = 0 ||
12802  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12803
12804
12805# configure is writing to config.log, and then calls config.status.
12806# config.status does its own redirection, appending to config.log.
12807# Unfortunately, on DOS this fails, as config.log is still kept open
12808# by configure, so config.status won't be able to write to it; its
12809# output is simply discarded.  So we exec the FD to /dev/null,
12810# effectively closing config.log, so it can be properly (re)opened and
12811# appended to by config.status.  When coming back to configure, we
12812# need to make the FD available again.
12813if test "$no_create" != yes; then
12814  ac_cs_success=:
12815  ac_config_status_args=
12816  test "$silent" = yes &&
12817    ac_config_status_args="$ac_config_status_args --quiet"
12818  exec 5>/dev/null
12819  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12820  exec 5>>config.log
12821  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12822  # would make configure fail if this is the last instruction.
12823  $ac_cs_success || as_fn_exit 1
12824fi
12825if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12826  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12827printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12828fi
12829
12830
12831