1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xmodmap 1.0.11.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmodmap/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/xmodmap/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='xmodmap'
614PACKAGE_TARNAME='xmodmap'
615PACKAGE_VERSION='1.0.11'
616PACKAGE_STRING='xmodmap 1.0.11'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xmodmap/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
657LINT_FALSE
658LINT_TRUE
659LINT_FLAGS
660LINT
661XMODMAP_LIBS
662XMODMAP_CFLAGS
663MAN_SUBSTS
664XORG_MAN_PAGE
665ADMIN_MAN_DIR
666DRIVER_MAN_DIR
667MISC_MAN_DIR
668FILE_MAN_DIR
669LIB_MAN_DIR
670APP_MAN_DIR
671ADMIN_MAN_SUFFIX
672DRIVER_MAN_SUFFIX
673MISC_MAN_SUFFIX
674FILE_MAN_SUFFIX
675LIB_MAN_SUFFIX
676APP_MAN_SUFFIX
677SED
678host_os
679host_vendor
680host_cpu
681host
682build_os
683build_vendor
684build_cpu
685build
686INSTALL_CMD
687PKG_CONFIG_LIBDIR
688PKG_CONFIG_PATH
689PKG_CONFIG
690CHANGELOG_CMD
691STRICT_CFLAGS
692CWARNFLAGS
693BASE_CFLAGS
694AM_BACKSLASH
695AM_DEFAULT_VERBOSITY
696AM_DEFAULT_V
697AM_V
698CSCOPE
699ETAGS
700CTAGS
701am__fastdepCC_FALSE
702am__fastdepCC_TRUE
703CCDEPMODE
704am__nodep
705AMDEPBACKSLASH
706AMDEP_FALSE
707AMDEP_TRUE
708am__include
709DEPDIR
710am__untar
711am__tar
712AMTAR
713am__leading_dot
714SET_MAKE
715AWK
716mkdir_p
717MKDIR_P
718INSTALL_STRIP_PROGRAM
719STRIP
720install_sh
721MAKEINFO
722AUTOHEADER
723AUTOMAKE
724AUTOCONF
725ACLOCAL
726VERSION
727PACKAGE
728CYGPATH_W
729am__isrc
730INSTALL_DATA
731INSTALL_SCRIPT
732INSTALL_PROGRAM
733OBJEXT
734EXEEXT
735ac_ct_CC
736CPPFLAGS
737LDFLAGS
738CFLAGS
739CC
740target_alias
741host_alias
742build_alias
743LIBS
744ECHO_T
745ECHO_N
746ECHO_C
747DEFS
748mandir
749localedir
750libdir
751psdir
752pdfdir
753dvidir
754htmldir
755infodir
756docdir
757oldincludedir
758includedir
759runstatedir
760localstatedir
761sharedstatedir
762sysconfdir
763datadir
764datarootdir
765libexecdir
766sbindir
767bindir
768program_transform_name
769prefix
770exec_prefix
771PACKAGE_URL
772PACKAGE_BUGREPORT
773PACKAGE_STRING
774PACKAGE_VERSION
775PACKAGE_TARNAME
776PACKAGE_NAME
777PATH_SEPARATOR
778SHELL
779am__quote'
780ac_subst_files=''
781ac_user_opts='
782enable_option_checking
783enable_dependency_tracking
784enable_silent_rules
785enable_selective_werror
786enable_strict_compilation
787with_lint
788'
789      ac_precious_vars='build_alias
790host_alias
791target_alias
792CC
793CFLAGS
794LDFLAGS
795LIBS
796CPPFLAGS
797PKG_CONFIG
798PKG_CONFIG_PATH
799PKG_CONFIG_LIBDIR
800XMODMAP_CFLAGS
801XMODMAP_LIBS
802LINT
803LINT_FLAGS'
804
805
806# Initialize some variables set by options.
807ac_init_help=
808ac_init_version=false
809ac_unrecognized_opts=
810ac_unrecognized_sep=
811# The variables have the same names as the options, with
812# dashes changed to underlines.
813cache_file=/dev/null
814exec_prefix=NONE
815no_create=
816no_recursion=
817prefix=NONE
818program_prefix=NONE
819program_suffix=NONE
820program_transform_name=s,x,x,
821silent=
822site=
823srcdir=
824verbose=
825x_includes=NONE
826x_libraries=NONE
827
828# Installation directory options.
829# These are left unexpanded so users can "make install exec_prefix=/foo"
830# and all the variables that are supposed to be based on exec_prefix
831# by default will actually change.
832# Use braces instead of parens because sh, perl, etc. also accept them.
833# (The list follows the same order as the GNU Coding Standards.)
834bindir='${exec_prefix}/bin'
835sbindir='${exec_prefix}/sbin'
836libexecdir='${exec_prefix}/libexec'
837datarootdir='${prefix}/share'
838datadir='${datarootdir}'
839sysconfdir='${prefix}/etc'
840sharedstatedir='${prefix}/com'
841localstatedir='${prefix}/var'
842runstatedir='${localstatedir}/run'
843includedir='${prefix}/include'
844oldincludedir='/usr/include'
845docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846infodir='${datarootdir}/info'
847htmldir='${docdir}'
848dvidir='${docdir}'
849pdfdir='${docdir}'
850psdir='${docdir}'
851libdir='${exec_prefix}/lib'
852localedir='${datarootdir}/locale'
853mandir='${datarootdir}/man'
854
855ac_prev=
856ac_dashdash=
857for ac_option
858do
859  # If the previous option needs an argument, assign it.
860  if test -n "$ac_prev"; then
861    eval $ac_prev=\$ac_option
862    ac_prev=
863    continue
864  fi
865
866  case $ac_option in
867  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868  *=)   ac_optarg= ;;
869  *)    ac_optarg=yes ;;
870  esac
871
872  case $ac_dashdash$ac_option in
873  --)
874    ac_dashdash=yes ;;
875
876  -bindir | --bindir | --bindi | --bind | --bin | --bi)
877    ac_prev=bindir ;;
878  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879    bindir=$ac_optarg ;;
880
881  -build | --build | --buil | --bui | --bu)
882    ac_prev=build_alias ;;
883  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884    build_alias=$ac_optarg ;;
885
886  -cache-file | --cache-file | --cache-fil | --cache-fi \
887  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888    ac_prev=cache_file ;;
889  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891    cache_file=$ac_optarg ;;
892
893  --config-cache | -C)
894    cache_file=config.cache ;;
895
896  -datadir | --datadir | --datadi | --datad)
897    ac_prev=datadir ;;
898  -datadir=* | --datadir=* | --datadi=* | --datad=*)
899    datadir=$ac_optarg ;;
900
901  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902  | --dataroo | --dataro | --datar)
903    ac_prev=datarootdir ;;
904  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906    datarootdir=$ac_optarg ;;
907
908  -disable-* | --disable-*)
909    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910    # Reject names that are not valid shell variable names.
911    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912      as_fn_error $? "invalid feature name: \`$ac_useropt'"
913    ac_useropt_orig=$ac_useropt
914    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
915    case $ac_user_opts in
916      *"
917"enable_$ac_useropt"
918"*) ;;
919      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920	 ac_unrecognized_sep=', ';;
921    esac
922    eval enable_$ac_useropt=no ;;
923
924  -docdir | --docdir | --docdi | --doc | --do)
925    ac_prev=docdir ;;
926  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927    docdir=$ac_optarg ;;
928
929  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930    ac_prev=dvidir ;;
931  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932    dvidir=$ac_optarg ;;
933
934  -enable-* | --enable-*)
935    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936    # Reject names that are not valid shell variable names.
937    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938      as_fn_error $? "invalid feature name: \`$ac_useropt'"
939    ac_useropt_orig=$ac_useropt
940    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
941    case $ac_user_opts in
942      *"
943"enable_$ac_useropt"
944"*) ;;
945      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946	 ac_unrecognized_sep=', ';;
947    esac
948    eval enable_$ac_useropt=\$ac_optarg ;;
949
950  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952  | --exec | --exe | --ex)
953    ac_prev=exec_prefix ;;
954  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956  | --exec=* | --exe=* | --ex=*)
957    exec_prefix=$ac_optarg ;;
958
959  -gas | --gas | --ga | --g)
960    # Obsolete; use --with-gas.
961    with_gas=yes ;;
962
963  -help | --help | --hel | --he | -h)
964    ac_init_help=long ;;
965  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966    ac_init_help=recursive ;;
967  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968    ac_init_help=short ;;
969
970  -host | --host | --hos | --ho)
971    ac_prev=host_alias ;;
972  -host=* | --host=* | --hos=* | --ho=*)
973    host_alias=$ac_optarg ;;
974
975  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976    ac_prev=htmldir ;;
977  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978  | --ht=*)
979    htmldir=$ac_optarg ;;
980
981  -includedir | --includedir | --includedi | --included | --include \
982  | --includ | --inclu | --incl | --inc)
983    ac_prev=includedir ;;
984  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985  | --includ=* | --inclu=* | --incl=* | --inc=*)
986    includedir=$ac_optarg ;;
987
988  -infodir | --infodir | --infodi | --infod | --info | --inf)
989    ac_prev=infodir ;;
990  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991    infodir=$ac_optarg ;;
992
993  -libdir | --libdir | --libdi | --libd)
994    ac_prev=libdir ;;
995  -libdir=* | --libdir=* | --libdi=* | --libd=*)
996    libdir=$ac_optarg ;;
997
998  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999  | --libexe | --libex | --libe)
1000    ac_prev=libexecdir ;;
1001  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002  | --libexe=* | --libex=* | --libe=*)
1003    libexecdir=$ac_optarg ;;
1004
1005  -localedir | --localedir | --localedi | --localed | --locale)
1006    ac_prev=localedir ;;
1007  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008    localedir=$ac_optarg ;;
1009
1010  -localstatedir | --localstatedir | --localstatedi | --localstated \
1011  | --localstate | --localstat | --localsta | --localst | --locals)
1012    ac_prev=localstatedir ;;
1013  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015    localstatedir=$ac_optarg ;;
1016
1017  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018    ac_prev=mandir ;;
1019  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020    mandir=$ac_optarg ;;
1021
1022  -nfp | --nfp | --nf)
1023    # Obsolete; use --without-fp.
1024    with_fp=no ;;
1025
1026  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027  | --no-cr | --no-c | -n)
1028    no_create=yes ;;
1029
1030  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032    no_recursion=yes ;;
1033
1034  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036  | --oldin | --oldi | --old | --ol | --o)
1037    ac_prev=oldincludedir ;;
1038  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041    oldincludedir=$ac_optarg ;;
1042
1043  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044    ac_prev=prefix ;;
1045  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046    prefix=$ac_optarg ;;
1047
1048  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049  | --program-pre | --program-pr | --program-p)
1050    ac_prev=program_prefix ;;
1051  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053    program_prefix=$ac_optarg ;;
1054
1055  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056  | --program-suf | --program-su | --program-s)
1057    ac_prev=program_suffix ;;
1058  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060    program_suffix=$ac_optarg ;;
1061
1062  -program-transform-name | --program-transform-name \
1063  | --program-transform-nam | --program-transform-na \
1064  | --program-transform-n | --program-transform- \
1065  | --program-transform | --program-transfor \
1066  | --program-transfo | --program-transf \
1067  | --program-trans | --program-tran \
1068  | --progr-tra | --program-tr | --program-t)
1069    ac_prev=program_transform_name ;;
1070  -program-transform-name=* | --program-transform-name=* \
1071  | --program-transform-nam=* | --program-transform-na=* \
1072  | --program-transform-n=* | --program-transform-=* \
1073  | --program-transform=* | --program-transfor=* \
1074  | --program-transfo=* | --program-transf=* \
1075  | --program-trans=* | --program-tran=* \
1076  | --progr-tra=* | --program-tr=* | --program-t=*)
1077    program_transform_name=$ac_optarg ;;
1078
1079  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080    ac_prev=pdfdir ;;
1081  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082    pdfdir=$ac_optarg ;;
1083
1084  -psdir | --psdir | --psdi | --psd | --ps)
1085    ac_prev=psdir ;;
1086  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087    psdir=$ac_optarg ;;
1088
1089  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090  | -silent | --silent | --silen | --sile | --sil)
1091    silent=yes ;;
1092
1093  -runstatedir | --runstatedir | --runstatedi | --runstated \
1094  | --runstate | --runstat | --runsta | --runst | --runs \
1095  | --run | --ru | --r)
1096    ac_prev=runstatedir ;;
1097  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1098  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1099  | --run=* | --ru=* | --r=*)
1100    runstatedir=$ac_optarg ;;
1101
1102  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103    ac_prev=sbindir ;;
1104  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105  | --sbi=* | --sb=*)
1106    sbindir=$ac_optarg ;;
1107
1108  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110  | --sharedst | --shareds | --shared | --share | --shar \
1111  | --sha | --sh)
1112    ac_prev=sharedstatedir ;;
1113  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116  | --sha=* | --sh=*)
1117    sharedstatedir=$ac_optarg ;;
1118
1119  -site | --site | --sit)
1120    ac_prev=site ;;
1121  -site=* | --site=* | --sit=*)
1122    site=$ac_optarg ;;
1123
1124  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125    ac_prev=srcdir ;;
1126  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127    srcdir=$ac_optarg ;;
1128
1129  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130  | --syscon | --sysco | --sysc | --sys | --sy)
1131    ac_prev=sysconfdir ;;
1132  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134    sysconfdir=$ac_optarg ;;
1135
1136  -target | --target | --targe | --targ | --tar | --ta | --t)
1137    ac_prev=target_alias ;;
1138  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139    target_alias=$ac_optarg ;;
1140
1141  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142    verbose=yes ;;
1143
1144  -version | --version | --versio | --versi | --vers | -V)
1145    ac_init_version=: ;;
1146
1147  -with-* | --with-*)
1148    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149    # Reject names that are not valid shell variable names.
1150    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151      as_fn_error $? "invalid package name: \`$ac_useropt'"
1152    ac_useropt_orig=$ac_useropt
1153    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1154    case $ac_user_opts in
1155      *"
1156"with_$ac_useropt"
1157"*) ;;
1158      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159	 ac_unrecognized_sep=', ';;
1160    esac
1161    eval with_$ac_useropt=\$ac_optarg ;;
1162
1163  -without-* | --without-*)
1164    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165    # Reject names that are not valid shell variable names.
1166    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167      as_fn_error $? "invalid package name: \`$ac_useropt'"
1168    ac_useropt_orig=$ac_useropt
1169    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1170    case $ac_user_opts in
1171      *"
1172"with_$ac_useropt"
1173"*) ;;
1174      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175	 ac_unrecognized_sep=', ';;
1176    esac
1177    eval with_$ac_useropt=no ;;
1178
1179  --x)
1180    # Obsolete; use --with-x.
1181    with_x=yes ;;
1182
1183  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184  | --x-incl | --x-inc | --x-in | --x-i)
1185    ac_prev=x_includes ;;
1186  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188    x_includes=$ac_optarg ;;
1189
1190  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192    ac_prev=x_libraries ;;
1193  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195    x_libraries=$ac_optarg ;;
1196
1197  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198Try \`$0 --help' for more information"
1199    ;;
1200
1201  *=*)
1202    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203    # Reject names that are not valid shell variable names.
1204    case $ac_envvar in #(
1205      '' | [0-9]* | *[!_$as_cr_alnum]* )
1206      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207    esac
1208    eval $ac_envvar=\$ac_optarg
1209    export $ac_envvar ;;
1210
1211  *)
1212    # FIXME: should be removed in autoconf 3.0.
1213    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1214    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1216    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217    ;;
1218
1219  esac
1220done
1221
1222if test -n "$ac_prev"; then
1223  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224  as_fn_error $? "missing argument to $ac_option"
1225fi
1226
1227if test -n "$ac_unrecognized_opts"; then
1228  case $enable_option_checking in
1229    no) ;;
1230    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232  esac
1233fi
1234
1235# Check all directory arguments for consistency.
1236for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237		datadir sysconfdir sharedstatedir localstatedir includedir \
1238		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239		libdir localedir mandir runstatedir
1240do
1241  eval ac_val=\$$ac_var
1242  # Remove trailing slashes.
1243  case $ac_val in
1244    */ )
1245      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246      eval $ac_var=\$ac_val;;
1247  esac
1248  # Be sure to have absolute directory names.
1249  case $ac_val in
1250    [\\/$]* | ?:[\\/]* )  continue;;
1251    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252  esac
1253  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254done
1255
1256# There might be people who depend on the old broken behavior: `$host'
1257# used to hold the argument of --host etc.
1258# FIXME: To remove some day.
1259build=$build_alias
1260host=$host_alias
1261target=$target_alias
1262
1263# FIXME: To remove some day.
1264if test "x$host_alias" != x; then
1265  if test "x$build_alias" = x; then
1266    cross_compiling=maybe
1267  elif test "x$build_alias" != "x$host_alias"; then
1268    cross_compiling=yes
1269  fi
1270fi
1271
1272ac_tool_prefix=
1273test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275test "$silent" = yes && exec 6>/dev/null
1276
1277
1278ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279ac_ls_di=`ls -di .` &&
1280ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281  as_fn_error $? "working directory cannot be determined"
1282test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283  as_fn_error $? "pwd does not report name of working directory"
1284
1285
1286# Find the source files, if location was not specified.
1287if test -z "$srcdir"; then
1288  ac_srcdir_defaulted=yes
1289  # Try the directory containing this script, then the parent directory.
1290  ac_confdir=`$as_dirname -- "$as_myself" ||
1291$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292	 X"$as_myself" : 'X\(//\)[^/]' \| \
1293	 X"$as_myself" : 'X\(//\)$' \| \
1294	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295printf "%s\n" X"$as_myself" |
1296    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297	    s//\1/
1298	    q
1299	  }
1300	  /^X\(\/\/\)[^/].*/{
1301	    s//\1/
1302	    q
1303	  }
1304	  /^X\(\/\/\)$/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\).*/{
1309	    s//\1/
1310	    q
1311	  }
1312	  s/.*/./; q'`
1313  srcdir=$ac_confdir
1314  if test ! -r "$srcdir/$ac_unique_file"; then
1315    srcdir=..
1316  fi
1317else
1318  ac_srcdir_defaulted=no
1319fi
1320if test ! -r "$srcdir/$ac_unique_file"; then
1321  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323fi
1324ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325ac_abs_confdir=`(
1326	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327	pwd)`
1328# When building in place, set srcdir=.
1329if test "$ac_abs_confdir" = "$ac_pwd"; then
1330  srcdir=.
1331fi
1332# Remove unnecessary trailing slashes from srcdir.
1333# Double slashes in file names in object file debugging info
1334# mess up M-x gdb in Emacs.
1335case $srcdir in
1336*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337esac
1338for ac_var in $ac_precious_vars; do
1339  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340  eval ac_env_${ac_var}_value=\$${ac_var}
1341  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343done
1344
1345#
1346# Report the --help message.
1347#
1348if test "$ac_init_help" = "long"; then
1349  # Omit some internal or obsolete options to make the list less imposing.
1350  # This message is too long to be a string in the A/UX 3.1 sh.
1351  cat <<_ACEOF
1352\`configure' configures xmodmap 1.0.11 to adapt to many kinds of systems.
1353
1354Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357VAR=VALUE.  See below for descriptions of some of the useful variables.
1358
1359Defaults for the options are specified in brackets.
1360
1361Configuration:
1362  -h, --help              display this help and exit
1363      --help=short        display options specific to this package
1364      --help=recursive    display the short help of all the included packages
1365  -V, --version           display version information and exit
1366  -q, --quiet, --silent   do not print \`checking ...' messages
1367      --cache-file=FILE   cache test results in FILE [disabled]
1368  -C, --config-cache      alias for \`--cache-file=config.cache'
1369  -n, --no-create         do not create output files
1370      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1371
1372Installation directories:
1373  --prefix=PREFIX         install architecture-independent files in PREFIX
1374                          [$ac_default_prefix]
1375  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1376                          [PREFIX]
1377
1378By default, \`make install' will install all the files in
1379\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1380an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381for instance \`--prefix=\$HOME'.
1382
1383For better control, use the options below.
1384
1385Fine tuning of the installation directories:
1386  --bindir=DIR            user executables [EPREFIX/bin]
1387  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1388  --libexecdir=DIR        program executables [EPREFIX/libexec]
1389  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1390  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1391  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1392  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1393  --libdir=DIR            object code libraries [EPREFIX/lib]
1394  --includedir=DIR        C header files [PREFIX/include]
1395  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1396  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1397  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1398  --infodir=DIR           info documentation [DATAROOTDIR/info]
1399  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1400  --mandir=DIR            man documentation [DATAROOTDIR/man]
1401  --docdir=DIR            documentation root [DATAROOTDIR/doc/xmodmap]
1402  --htmldir=DIR           html documentation [DOCDIR]
1403  --dvidir=DIR            dvi documentation [DOCDIR]
1404  --pdfdir=DIR            pdf documentation [DOCDIR]
1405  --psdir=DIR             ps documentation [DOCDIR]
1406_ACEOF
1407
1408  cat <<\_ACEOF
1409
1410Program names:
1411  --program-prefix=PREFIX            prepend PREFIX to installed program names
1412  --program-suffix=SUFFIX            append SUFFIX to installed program names
1413  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1414
1415System types:
1416  --build=BUILD     configure for building on BUILD [guessed]
1417  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1418_ACEOF
1419fi
1420
1421if test -n "$ac_init_help"; then
1422  case $ac_init_help in
1423     short | recursive ) echo "Configuration of xmodmap 1.0.11:";;
1424   esac
1425  cat <<\_ACEOF
1426
1427Optional Features:
1428  --disable-option-checking  ignore unrecognized --enable/--with options
1429  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1430  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1431  --enable-dependency-tracking
1432                          do not reject slow dependency extractors
1433  --disable-dependency-tracking
1434                          speeds up one-time build
1435  --enable-silent-rules   less verbose build output (undo: "make V=1")
1436  --disable-silent-rules  verbose build output (undo: "make V=0")
1437  --disable-selective-werror
1438                          Turn off selective compiler errors. (default:
1439                          enabled)
1440  --enable-strict-compilation
1441                          Enable all warnings from compiler and make them
1442                          errors (default: disabled)
1443
1444Optional Packages:
1445  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1446  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1447  --with-lint             Use a lint-style source code checker (default:
1448                          disabled)
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  XMODMAP_CFLAGS
1464              C compiler flags for XMODMAP, overriding pkg-config
1465  XMODMAP_LIBS
1466              linker flags for XMODMAP, overriding pkg-config
1467  LINT        Path to a lint-style command
1468  LINT_FLAGS  Flags for the lint-style command
1469
1470Use these variables to override the choices made by `configure' or to help
1471it to find libraries and programs with nonstandard names/locations.
1472
1473Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmodmap/issues>.
1474_ACEOF
1475ac_status=$?
1476fi
1477
1478if test "$ac_init_help" = "recursive"; then
1479  # If there are subdirs, report their specific --help.
1480  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481    test -d "$ac_dir" ||
1482      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483      continue
1484    ac_builddir=.
1485
1486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
1489  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1490  # A ".." for each directory in $ac_dir_suffix.
1491  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492  case $ac_top_builddir_sub in
1493  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495  esac ;;
1496esac
1497ac_abs_top_builddir=$ac_pwd
1498ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499# for backward compatibility:
1500ac_top_builddir=$ac_top_build_prefix
1501
1502case $srcdir in
1503  .)  # We are building in place.
1504    ac_srcdir=.
1505    ac_top_srcdir=$ac_top_builddir_sub
1506    ac_abs_top_srcdir=$ac_pwd ;;
1507  [\\/]* | ?:[\\/]* )  # Absolute name.
1508    ac_srcdir=$srcdir$ac_dir_suffix;
1509    ac_top_srcdir=$srcdir
1510    ac_abs_top_srcdir=$srcdir ;;
1511  *) # Relative name.
1512    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513    ac_top_srcdir=$ac_top_build_prefix$srcdir
1514    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515esac
1516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518    cd "$ac_dir" || { ac_status=$?; continue; }
1519    # Check for configure.gnu first; this name is used for a wrapper for
1520    # Metaconfig's "Configure" on case-insensitive file systems.
1521    if test -f "$ac_srcdir/configure.gnu"; then
1522      echo &&
1523      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524    elif test -f "$ac_srcdir/configure"; then
1525      echo &&
1526      $SHELL "$ac_srcdir/configure" --help=recursive
1527    else
1528      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529    fi || ac_status=$?
1530    cd "$ac_pwd" || { ac_status=$?; break; }
1531  done
1532fi
1533
1534test -n "$ac_init_help" && exit $ac_status
1535if $ac_init_version; then
1536  cat <<\_ACEOF
1537xmodmap configure 1.0.11
1538generated by GNU Autoconf 2.71
1539
1540Copyright (C) 2021 Free Software Foundation, Inc.
1541This configure script is free software; the Free Software Foundation
1542gives unlimited permission to copy, distribute and modify it.
1543_ACEOF
1544  exit
1545fi
1546
1547## ------------------------ ##
1548## Autoconf initialization. ##
1549## ------------------------ ##
1550
1551# ac_fn_c_try_compile LINENO
1552# --------------------------
1553# Try to compile conftest.$ac_ext, and return whether this succeeded.
1554ac_fn_c_try_compile ()
1555{
1556  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557  rm -f conftest.$ac_objext conftest.beam
1558  if { { ac_try="$ac_compile"
1559case "(($ac_try" in
1560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561  *) ac_try_echo=$ac_try;;
1562esac
1563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564printf "%s\n" "$ac_try_echo"; } >&5
1565  (eval "$ac_compile") 2>conftest.err
1566  ac_status=$?
1567  if test -s conftest.err; then
1568    grep -v '^ *+' conftest.err >conftest.er1
1569    cat conftest.er1 >&5
1570    mv -f conftest.er1 conftest.err
1571  fi
1572  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573  test $ac_status = 0; } && {
1574	 test -z "$ac_c_werror_flag" ||
1575	 test ! -s conftest.err
1576       } && test -s conftest.$ac_objext
1577then :
1578  ac_retval=0
1579else $as_nop
1580  printf "%s\n" "$as_me: failed program was:" >&5
1581sed 's/^/| /' conftest.$ac_ext >&5
1582
1583	ac_retval=1
1584fi
1585  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586  as_fn_set_status $ac_retval
1587
1588} # ac_fn_c_try_compile
1589
1590# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1591# -------------------------------------------------------
1592# Tests whether HEADER exists and can be compiled using the include files in
1593# INCLUDES, setting the cache variable VAR accordingly.
1594ac_fn_c_check_header_compile ()
1595{
1596  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1598printf %s "checking for $2... " >&6; }
1599if eval test \${$3+y}
1600then :
1601  printf %s "(cached) " >&6
1602else $as_nop
1603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1604/* end confdefs.h.  */
1605$4
1606#include <$2>
1607_ACEOF
1608if ac_fn_c_try_compile "$LINENO"
1609then :
1610  eval "$3=yes"
1611else $as_nop
1612  eval "$3=no"
1613fi
1614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1615fi
1616eval ac_res=\$$3
1617	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618printf "%s\n" "$ac_res" >&6; }
1619  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620
1621} # ac_fn_c_check_header_compile
1622
1623# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1624# ------------------------------------------------------------------
1625# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1626# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1627ac_fn_check_decl ()
1628{
1629  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630  as_decl_name=`echo $2|sed 's/ *(.*//'`
1631  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1632printf %s "checking whether $as_decl_name is declared... " >&6; }
1633if eval test \${$3+y}
1634then :
1635  printf %s "(cached) " >&6
1636else $as_nop
1637  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1638  eval ac_save_FLAGS=\$$6
1639  as_fn_append $6 " $5"
1640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641/* end confdefs.h.  */
1642$4
1643int
1644main (void)
1645{
1646#ifndef $as_decl_name
1647#ifdef __cplusplus
1648  (void) $as_decl_use;
1649#else
1650  (void) $as_decl_name;
1651#endif
1652#endif
1653
1654  ;
1655  return 0;
1656}
1657_ACEOF
1658if ac_fn_c_try_compile "$LINENO"
1659then :
1660  eval "$3=yes"
1661else $as_nop
1662  eval "$3=no"
1663fi
1664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1665  eval $6=\$ac_save_FLAGS
1666
1667fi
1668eval ac_res=\$$3
1669	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670printf "%s\n" "$ac_res" >&6; }
1671  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672
1673} # ac_fn_check_decl
1674
1675# ac_fn_c_try_link LINENO
1676# -----------------------
1677# Try to link conftest.$ac_ext, and return whether this succeeded.
1678ac_fn_c_try_link ()
1679{
1680  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1682  if { { ac_try="$ac_link"
1683case "(($ac_try" in
1684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685  *) ac_try_echo=$ac_try;;
1686esac
1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688printf "%s\n" "$ac_try_echo"; } >&5
1689  (eval "$ac_link") 2>conftest.err
1690  ac_status=$?
1691  if test -s conftest.err; then
1692    grep -v '^ *+' conftest.err >conftest.er1
1693    cat conftest.er1 >&5
1694    mv -f conftest.er1 conftest.err
1695  fi
1696  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697  test $ac_status = 0; } && {
1698	 test -z "$ac_c_werror_flag" ||
1699	 test ! -s conftest.err
1700       } && test -s conftest$ac_exeext && {
1701	 test "$cross_compiling" = yes ||
1702	 test -x conftest$ac_exeext
1703       }
1704then :
1705  ac_retval=0
1706else $as_nop
1707  printf "%s\n" "$as_me: failed program was:" >&5
1708sed 's/^/| /' conftest.$ac_ext >&5
1709
1710	ac_retval=1
1711fi
1712  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1713  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1714  # interfere with the next link command; also delete a directory that is
1715  # left behind by Apple's compiler.  We do this before executing the actions.
1716  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718  as_fn_set_status $ac_retval
1719
1720} # ac_fn_c_try_link
1721
1722# ac_fn_c_check_func LINENO FUNC VAR
1723# ----------------------------------
1724# Tests whether FUNC exists, setting the cache variable VAR accordingly
1725ac_fn_c_check_func ()
1726{
1727  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729printf %s "checking for $2... " >&6; }
1730if eval test \${$3+y}
1731then :
1732  printf %s "(cached) " >&6
1733else $as_nop
1734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735/* end confdefs.h.  */
1736/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1737   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1738#define $2 innocuous_$2
1739
1740/* System header to define __stub macros and hopefully few prototypes,
1741   which can conflict with char $2 (); below.  */
1742
1743#include <limits.h>
1744#undef $2
1745
1746/* Override any GCC internal prototype to avoid an error.
1747   Use char because int might match the return type of a GCC
1748   builtin and then its argument prototype would still apply.  */
1749#ifdef __cplusplus
1750extern "C"
1751#endif
1752char $2 ();
1753/* The GNU C library defines this for functions which it implements
1754    to always fail with ENOSYS.  Some functions are actually named
1755    something starting with __ and the normal name is an alias.  */
1756#if defined __stub_$2 || defined __stub___$2
1757choke me
1758#endif
1759
1760int
1761main (void)
1762{
1763return $2 ();
1764  ;
1765  return 0;
1766}
1767_ACEOF
1768if ac_fn_c_try_link "$LINENO"
1769then :
1770  eval "$3=yes"
1771else $as_nop
1772  eval "$3=no"
1773fi
1774rm -f core conftest.err conftest.$ac_objext conftest.beam \
1775    conftest$ac_exeext conftest.$ac_ext
1776fi
1777eval ac_res=\$$3
1778	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779printf "%s\n" "$ac_res" >&6; }
1780  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781
1782} # ac_fn_c_check_func
1783ac_configure_args_raw=
1784for ac_arg
1785do
1786  case $ac_arg in
1787  *\'*)
1788    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1789  esac
1790  as_fn_append ac_configure_args_raw " '$ac_arg'"
1791done
1792
1793case $ac_configure_args_raw in
1794  *$as_nl*)
1795    ac_safe_unquote= ;;
1796  *)
1797    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1798    ac_unsafe_a="$ac_unsafe_z#~"
1799    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1800    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1801esac
1802
1803cat >config.log <<_ACEOF
1804This file contains any messages produced by compilers while
1805running configure, to aid debugging if configure makes a mistake.
1806
1807It was created by xmodmap $as_me 1.0.11, which was
1808generated by GNU Autoconf 2.71.  Invocation command line was
1809
1810  $ $0$ac_configure_args_raw
1811
1812_ACEOF
1813exec 5>>config.log
1814{
1815cat <<_ASUNAME
1816## --------- ##
1817## Platform. ##
1818## --------- ##
1819
1820hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1821uname -m = `(uname -m) 2>/dev/null || echo unknown`
1822uname -r = `(uname -r) 2>/dev/null || echo unknown`
1823uname -s = `(uname -s) 2>/dev/null || echo unknown`
1824uname -v = `(uname -v) 2>/dev/null || echo unknown`
1825
1826/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1827/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1828
1829/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1830/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1831/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1832/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1833/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1834/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1835/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1836
1837_ASUNAME
1838
1839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840for as_dir in $PATH
1841do
1842  IFS=$as_save_IFS
1843  case $as_dir in #(((
1844    '') as_dir=./ ;;
1845    */) ;;
1846    *) as_dir=$as_dir/ ;;
1847  esac
1848    printf "%s\n" "PATH: $as_dir"
1849  done
1850IFS=$as_save_IFS
1851
1852} >&5
1853
1854cat >&5 <<_ACEOF
1855
1856
1857## ----------- ##
1858## Core tests. ##
1859## ----------- ##
1860
1861_ACEOF
1862
1863
1864# Keep a trace of the command line.
1865# Strip out --no-create and --no-recursion so they do not pile up.
1866# Strip out --silent because we don't want to record it for future runs.
1867# Also quote any args containing shell meta-characters.
1868# Make two passes to allow for proper duplicate-argument suppression.
1869ac_configure_args=
1870ac_configure_args0=
1871ac_configure_args1=
1872ac_must_keep_next=false
1873for ac_pass in 1 2
1874do
1875  for ac_arg
1876  do
1877    case $ac_arg in
1878    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1879    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1880    | -silent | --silent | --silen | --sile | --sil)
1881      continue ;;
1882    *\'*)
1883      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1884    esac
1885    case $ac_pass in
1886    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1887    2)
1888      as_fn_append ac_configure_args1 " '$ac_arg'"
1889      if test $ac_must_keep_next = true; then
1890	ac_must_keep_next=false # Got value, back to normal.
1891      else
1892	case $ac_arg in
1893	  *=* | --config-cache | -C | -disable-* | --disable-* \
1894	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1895	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1896	  | -with-* | --with-* | -without-* | --without-* | --x)
1897	    case "$ac_configure_args0 " in
1898	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1899	    esac
1900	    ;;
1901	  -* ) ac_must_keep_next=true ;;
1902	esac
1903      fi
1904      as_fn_append ac_configure_args " '$ac_arg'"
1905      ;;
1906    esac
1907  done
1908done
1909{ ac_configure_args0=; unset ac_configure_args0;}
1910{ ac_configure_args1=; unset ac_configure_args1;}
1911
1912# When interrupted or exit'd, cleanup temporary files, and complete
1913# config.log.  We remove comments because anyway the quotes in there
1914# would cause problems or look ugly.
1915# WARNING: Use '\'' to represent an apostrophe within the trap.
1916# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1917trap 'exit_status=$?
1918  # Sanitize IFS.
1919  IFS=" ""	$as_nl"
1920  # Save into config.log some information that might help in debugging.
1921  {
1922    echo
1923
1924    printf "%s\n" "## ---------------- ##
1925## Cache variables. ##
1926## ---------------- ##"
1927    echo
1928    # The following way of writing the cache mishandles newlines in values,
1929(
1930  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1931    eval ac_val=\$$ac_var
1932    case $ac_val in #(
1933    *${as_nl}*)
1934      case $ac_var in #(
1935      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1936printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1937      esac
1938      case $ac_var in #(
1939      _ | IFS | as_nl) ;; #(
1940      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1941      *) { eval $ac_var=; unset $ac_var;} ;;
1942      esac ;;
1943    esac
1944  done
1945  (set) 2>&1 |
1946    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1947    *${as_nl}ac_space=\ *)
1948      sed -n \
1949	"s/'\''/'\''\\\\'\'''\''/g;
1950	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1951      ;; #(
1952    *)
1953      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1954      ;;
1955    esac |
1956    sort
1957)
1958    echo
1959
1960    printf "%s\n" "## ----------------- ##
1961## Output variables. ##
1962## ----------------- ##"
1963    echo
1964    for ac_var in $ac_subst_vars
1965    do
1966      eval ac_val=\$$ac_var
1967      case $ac_val in
1968      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1969      esac
1970      printf "%s\n" "$ac_var='\''$ac_val'\''"
1971    done | sort
1972    echo
1973
1974    if test -n "$ac_subst_files"; then
1975      printf "%s\n" "## ------------------- ##
1976## File substitutions. ##
1977## ------------------- ##"
1978      echo
1979      for ac_var in $ac_subst_files
1980      do
1981	eval ac_val=\$$ac_var
1982	case $ac_val in
1983	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1984	esac
1985	printf "%s\n" "$ac_var='\''$ac_val'\''"
1986      done | sort
1987      echo
1988    fi
1989
1990    if test -s confdefs.h; then
1991      printf "%s\n" "## ----------- ##
1992## confdefs.h. ##
1993## ----------- ##"
1994      echo
1995      cat confdefs.h
1996      echo
1997    fi
1998    test "$ac_signal" != 0 &&
1999      printf "%s\n" "$as_me: caught signal $ac_signal"
2000    printf "%s\n" "$as_me: exit $exit_status"
2001  } >&5
2002  rm -f core *.core core.conftest.* &&
2003    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2004    exit $exit_status
2005' 0
2006for ac_signal in 1 2 13 15; do
2007  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2008done
2009ac_signal=0
2010
2011# confdefs.h avoids OS command line length limits that DEFS can exceed.
2012rm -f -r conftest* confdefs.h
2013
2014printf "%s\n" "/* confdefs.h */" > confdefs.h
2015
2016# Predefined preprocessor variables.
2017
2018printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2019
2020printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2021
2022printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2023
2024printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2025
2026printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2027
2028printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2029
2030
2031# Let the site file select an alternate cache file if it wants to.
2032# Prefer an explicitly selected file to automatically selected ones.
2033if test -n "$CONFIG_SITE"; then
2034  ac_site_files="$CONFIG_SITE"
2035elif test "x$prefix" != xNONE; then
2036  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2037else
2038  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2039fi
2040
2041for ac_site_file in $ac_site_files
2042do
2043  case $ac_site_file in #(
2044  */*) :
2045     ;; #(
2046  *) :
2047    ac_site_file=./$ac_site_file ;;
2048esac
2049  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2050    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2051printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2052    sed 's/^/| /' "$ac_site_file" >&5
2053    . "$ac_site_file" \
2054      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2055printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2056as_fn_error $? "failed to load site script $ac_site_file
2057See \`config.log' for more details" "$LINENO" 5; }
2058  fi
2059done
2060
2061if test -r "$cache_file"; then
2062  # Some versions of bash will fail to source /dev/null (special files
2063  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2064  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2065    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2066printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2067    case $cache_file in
2068      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2069      *)                      . "./$cache_file";;
2070    esac
2071  fi
2072else
2073  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2074printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2075  >$cache_file
2076fi
2077
2078as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
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 " stdlib.h stdlib_h HAVE_STDLIB_H"
2388as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2389as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2390as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2391as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2392as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2393as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2394as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2395as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2396as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2397
2398# Auxiliary files required by this configure script.
2399ac_aux_files="config.guess config.sub missing install-sh compile"
2400
2401# Locations in which to look for auxiliary files.
2402ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2403
2404# Search for a directory containing all of the required auxiliary files,
2405# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2406# If we don't find one directory that contains all the files we need,
2407# we report the set of missing files from the *first* directory in
2408# $ac_aux_dir_candidates and give up.
2409ac_missing_aux_files=""
2410ac_first_candidate=:
2411printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413as_found=false
2414for as_dir in $ac_aux_dir_candidates
2415do
2416  IFS=$as_save_IFS
2417  case $as_dir in #(((
2418    '') as_dir=./ ;;
2419    */) ;;
2420    *) as_dir=$as_dir/ ;;
2421  esac
2422  as_found=:
2423
2424  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2425  ac_aux_dir_found=yes
2426  ac_install_sh=
2427  for ac_aux in $ac_aux_files
2428  do
2429    # As a special case, if "install-sh" is required, that requirement
2430    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2431    # and $ac_install_sh is set appropriately for whichever one is found.
2432    if test x"$ac_aux" = x"install-sh"
2433    then
2434      if test -f "${as_dir}install-sh"; then
2435        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2436        ac_install_sh="${as_dir}install-sh -c"
2437      elif test -f "${as_dir}install.sh"; then
2438        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2439        ac_install_sh="${as_dir}install.sh -c"
2440      elif test -f "${as_dir}shtool"; then
2441        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2442        ac_install_sh="${as_dir}shtool install -c"
2443      else
2444        ac_aux_dir_found=no
2445        if $ac_first_candidate; then
2446          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2447        else
2448          break
2449        fi
2450      fi
2451    else
2452      if test -f "${as_dir}${ac_aux}"; then
2453        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2454      else
2455        ac_aux_dir_found=no
2456        if $ac_first_candidate; then
2457          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2458        else
2459          break
2460        fi
2461      fi
2462    fi
2463  done
2464  if test "$ac_aux_dir_found" = yes; then
2465    ac_aux_dir="$as_dir"
2466    break
2467  fi
2468  ac_first_candidate=false
2469
2470  as_found=false
2471done
2472IFS=$as_save_IFS
2473if $as_found
2474then :
2475
2476else $as_nop
2477  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2478fi
2479
2480
2481# These three variables are undocumented and unsupported,
2482# and are intended to be withdrawn in a future Autoconf release.
2483# They can cause serious problems if a builder's source tree is in a directory
2484# whose full name contains unusual characters.
2485if test -f "${ac_aux_dir}config.guess"; then
2486  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2487fi
2488if test -f "${ac_aux_dir}config.sub"; then
2489  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2490fi
2491if test -f "$ac_aux_dir/configure"; then
2492  ac_configure="$SHELL ${ac_aux_dir}configure"
2493fi
2494
2495# Check that the precious variables saved in the cache have kept the same
2496# value.
2497ac_cache_corrupted=false
2498for ac_var in $ac_precious_vars; do
2499  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2500  eval ac_new_set=\$ac_env_${ac_var}_set
2501  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2502  eval ac_new_val=\$ac_env_${ac_var}_value
2503  case $ac_old_set,$ac_new_set in
2504    set,)
2505      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2506printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2507      ac_cache_corrupted=: ;;
2508    ,set)
2509      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2510printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2511      ac_cache_corrupted=: ;;
2512    ,);;
2513    *)
2514      if test "x$ac_old_val" != "x$ac_new_val"; then
2515	# differences in whitespace do not lead to failure.
2516	ac_old_val_w=`echo x $ac_old_val`
2517	ac_new_val_w=`echo x $ac_new_val`
2518	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2519	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2520printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2521	  ac_cache_corrupted=:
2522	else
2523	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2524printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2525	  eval $ac_var=\$ac_old_val
2526	fi
2527	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2528printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2529	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2530printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2531      fi;;
2532  esac
2533  # Pass precious variables to config.status.
2534  if test "$ac_new_set" = set; then
2535    case $ac_new_val in
2536    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2537    *) ac_arg=$ac_var=$ac_new_val ;;
2538    esac
2539    case " $ac_configure_args " in
2540      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2541      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2542    esac
2543  fi
2544done
2545if $ac_cache_corrupted; then
2546  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2547printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2548  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2549printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2550  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2551	    and start over" "$LINENO" 5
2552fi
2553## -------------------- ##
2554## Main body of script. ##
2555## -------------------- ##
2556
2557ac_ext=c
2558ac_cpp='$CPP $CPPFLAGS'
2559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2561ac_compiler_gnu=$ac_cv_c_compiler_gnu
2562
2563
2564
2565ac_config_headers="$ac_config_headers config.h"
2566
2567# Needed for asprintf on GNU libc
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579# Expand $ac_aux_dir to an absolute path.
2580am_aux_dir=`cd "$ac_aux_dir" && pwd`
2581
2582ac_ext=c
2583ac_cpp='$CPP $CPPFLAGS'
2584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2586ac_compiler_gnu=$ac_cv_c_compiler_gnu
2587if test -n "$ac_tool_prefix"; then
2588  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2589set dummy ${ac_tool_prefix}gcc; ac_word=$2
2590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591printf %s "checking for $ac_word... " >&6; }
2592if test ${ac_cv_prog_CC+y}
2593then :
2594  printf %s "(cached) " >&6
2595else $as_nop
2596  if test -n "$CC"; then
2597  ac_cv_prog_CC="$CC" # Let the user override the test.
2598else
2599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600for as_dir in $PATH
2601do
2602  IFS=$as_save_IFS
2603  case $as_dir in #(((
2604    '') as_dir=./ ;;
2605    */) ;;
2606    *) as_dir=$as_dir/ ;;
2607  esac
2608    for ac_exec_ext in '' $ac_executable_extensions; do
2609  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2610    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2611    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2612    break 2
2613  fi
2614done
2615  done
2616IFS=$as_save_IFS
2617
2618fi
2619fi
2620CC=$ac_cv_prog_CC
2621if test -n "$CC"; then
2622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2623printf "%s\n" "$CC" >&6; }
2624else
2625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2626printf "%s\n" "no" >&6; }
2627fi
2628
2629
2630fi
2631if test -z "$ac_cv_prog_CC"; then
2632  ac_ct_CC=$CC
2633  # Extract the first word of "gcc", so it can be a program name with args.
2634set dummy gcc; ac_word=$2
2635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2636printf %s "checking for $ac_word... " >&6; }
2637if test ${ac_cv_prog_ac_ct_CC+y}
2638then :
2639  printf %s "(cached) " >&6
2640else $as_nop
2641  if test -n "$ac_ct_CC"; then
2642  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2643else
2644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645for as_dir in $PATH
2646do
2647  IFS=$as_save_IFS
2648  case $as_dir in #(((
2649    '') as_dir=./ ;;
2650    */) ;;
2651    *) as_dir=$as_dir/ ;;
2652  esac
2653    for ac_exec_ext in '' $ac_executable_extensions; do
2654  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2655    ac_cv_prog_ac_ct_CC="gcc"
2656    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2657    break 2
2658  fi
2659done
2660  done
2661IFS=$as_save_IFS
2662
2663fi
2664fi
2665ac_ct_CC=$ac_cv_prog_ac_ct_CC
2666if test -n "$ac_ct_CC"; then
2667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2668printf "%s\n" "$ac_ct_CC" >&6; }
2669else
2670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671printf "%s\n" "no" >&6; }
2672fi
2673
2674  if test "x$ac_ct_CC" = x; then
2675    CC=""
2676  else
2677    case $cross_compiling:$ac_tool_warned in
2678yes:)
2679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2680printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2681ac_tool_warned=yes ;;
2682esac
2683    CC=$ac_ct_CC
2684  fi
2685else
2686  CC="$ac_cv_prog_CC"
2687fi
2688
2689if test -z "$CC"; then
2690          if test -n "$ac_tool_prefix"; then
2691    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2692set dummy ${ac_tool_prefix}cc; ac_word=$2
2693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694printf %s "checking for $ac_word... " >&6; }
2695if test ${ac_cv_prog_CC+y}
2696then :
2697  printf %s "(cached) " >&6
2698else $as_nop
2699  if test -n "$CC"; then
2700  ac_cv_prog_CC="$CC" # Let the user override the test.
2701else
2702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703for as_dir in $PATH
2704do
2705  IFS=$as_save_IFS
2706  case $as_dir in #(((
2707    '') as_dir=./ ;;
2708    */) ;;
2709    *) as_dir=$as_dir/ ;;
2710  esac
2711    for ac_exec_ext in '' $ac_executable_extensions; do
2712  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2713    ac_cv_prog_CC="${ac_tool_prefix}cc"
2714    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2715    break 2
2716  fi
2717done
2718  done
2719IFS=$as_save_IFS
2720
2721fi
2722fi
2723CC=$ac_cv_prog_CC
2724if test -n "$CC"; then
2725  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2726printf "%s\n" "$CC" >&6; }
2727else
2728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729printf "%s\n" "no" >&6; }
2730fi
2731
2732
2733  fi
2734fi
2735if test -z "$CC"; then
2736  # Extract the first word of "cc", so it can be a program name with args.
2737set dummy cc; ac_word=$2
2738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739printf %s "checking for $ac_word... " >&6; }
2740if test ${ac_cv_prog_CC+y}
2741then :
2742  printf %s "(cached) " >&6
2743else $as_nop
2744  if test -n "$CC"; then
2745  ac_cv_prog_CC="$CC" # Let the user override the test.
2746else
2747  ac_prog_rejected=no
2748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749for as_dir in $PATH
2750do
2751  IFS=$as_save_IFS
2752  case $as_dir in #(((
2753    '') as_dir=./ ;;
2754    */) ;;
2755    *) as_dir=$as_dir/ ;;
2756  esac
2757    for ac_exec_ext in '' $ac_executable_extensions; do
2758  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2759    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2760       ac_prog_rejected=yes
2761       continue
2762     fi
2763    ac_cv_prog_CC="cc"
2764    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2765    break 2
2766  fi
2767done
2768  done
2769IFS=$as_save_IFS
2770
2771if test $ac_prog_rejected = yes; then
2772  # We found a bogon in the path, so make sure we never use it.
2773  set dummy $ac_cv_prog_CC
2774  shift
2775  if test $# != 0; then
2776    # We chose a different compiler from the bogus one.
2777    # However, it has the same basename, so the bogon will be chosen
2778    # first if we set CC to just the basename; use the full file name.
2779    shift
2780    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2781  fi
2782fi
2783fi
2784fi
2785CC=$ac_cv_prog_CC
2786if test -n "$CC"; then
2787  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2788printf "%s\n" "$CC" >&6; }
2789else
2790  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791printf "%s\n" "no" >&6; }
2792fi
2793
2794
2795fi
2796if test -z "$CC"; then
2797  if test -n "$ac_tool_prefix"; then
2798  for ac_prog in cl.exe
2799  do
2800    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2801set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803printf %s "checking for $ac_word... " >&6; }
2804if test ${ac_cv_prog_CC+y}
2805then :
2806  printf %s "(cached) " >&6
2807else $as_nop
2808  if test -n "$CC"; then
2809  ac_cv_prog_CC="$CC" # Let the user override the test.
2810else
2811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812for as_dir in $PATH
2813do
2814  IFS=$as_save_IFS
2815  case $as_dir in #(((
2816    '') as_dir=./ ;;
2817    */) ;;
2818    *) as_dir=$as_dir/ ;;
2819  esac
2820    for ac_exec_ext in '' $ac_executable_extensions; do
2821  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2822    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2823    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2824    break 2
2825  fi
2826done
2827  done
2828IFS=$as_save_IFS
2829
2830fi
2831fi
2832CC=$ac_cv_prog_CC
2833if test -n "$CC"; then
2834  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2835printf "%s\n" "$CC" >&6; }
2836else
2837  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838printf "%s\n" "no" >&6; }
2839fi
2840
2841
2842    test -n "$CC" && break
2843  done
2844fi
2845if test -z "$CC"; then
2846  ac_ct_CC=$CC
2847  for ac_prog in cl.exe
2848do
2849  # Extract the first word of "$ac_prog", so it can be a program name with args.
2850set dummy $ac_prog; ac_word=$2
2851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852printf %s "checking for $ac_word... " >&6; }
2853if test ${ac_cv_prog_ac_ct_CC+y}
2854then :
2855  printf %s "(cached) " >&6
2856else $as_nop
2857  if test -n "$ac_ct_CC"; then
2858  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859else
2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH
2862do
2863  IFS=$as_save_IFS
2864  case $as_dir in #(((
2865    '') as_dir=./ ;;
2866    */) ;;
2867    *) as_dir=$as_dir/ ;;
2868  esac
2869    for ac_exec_ext in '' $ac_executable_extensions; do
2870  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2871    ac_cv_prog_ac_ct_CC="$ac_prog"
2872    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2873    break 2
2874  fi
2875done
2876  done
2877IFS=$as_save_IFS
2878
2879fi
2880fi
2881ac_ct_CC=$ac_cv_prog_ac_ct_CC
2882if test -n "$ac_ct_CC"; then
2883  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2884printf "%s\n" "$ac_ct_CC" >&6; }
2885else
2886  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887printf "%s\n" "no" >&6; }
2888fi
2889
2890
2891  test -n "$ac_ct_CC" && break
2892done
2893
2894  if test "x$ac_ct_CC" = x; then
2895    CC=""
2896  else
2897    case $cross_compiling:$ac_tool_warned in
2898yes:)
2899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2900printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2901ac_tool_warned=yes ;;
2902esac
2903    CC=$ac_ct_CC
2904  fi
2905fi
2906
2907fi
2908if test -z "$CC"; then
2909  if test -n "$ac_tool_prefix"; then
2910  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2911set dummy ${ac_tool_prefix}clang; ac_word=$2
2912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913printf %s "checking for $ac_word... " >&6; }
2914if test ${ac_cv_prog_CC+y}
2915then :
2916  printf %s "(cached) " >&6
2917else $as_nop
2918  if test -n "$CC"; then
2919  ac_cv_prog_CC="$CC" # Let the user override the test.
2920else
2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924  IFS=$as_save_IFS
2925  case $as_dir in #(((
2926    '') as_dir=./ ;;
2927    */) ;;
2928    *) as_dir=$as_dir/ ;;
2929  esac
2930    for ac_exec_ext in '' $ac_executable_extensions; do
2931  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2932    ac_cv_prog_CC="${ac_tool_prefix}clang"
2933    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2934    break 2
2935  fi
2936done
2937  done
2938IFS=$as_save_IFS
2939
2940fi
2941fi
2942CC=$ac_cv_prog_CC
2943if test -n "$CC"; then
2944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2945printf "%s\n" "$CC" >&6; }
2946else
2947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948printf "%s\n" "no" >&6; }
2949fi
2950
2951
2952fi
2953if test -z "$ac_cv_prog_CC"; then
2954  ac_ct_CC=$CC
2955  # Extract the first word of "clang", so it can be a program name with args.
2956set dummy clang; ac_word=$2
2957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958printf %s "checking for $ac_word... " >&6; }
2959if test ${ac_cv_prog_ac_ct_CC+y}
2960then :
2961  printf %s "(cached) " >&6
2962else $as_nop
2963  if test -n "$ac_ct_CC"; then
2964  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2965else
2966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967for as_dir in $PATH
2968do
2969  IFS=$as_save_IFS
2970  case $as_dir in #(((
2971    '') as_dir=./ ;;
2972    */) ;;
2973    *) as_dir=$as_dir/ ;;
2974  esac
2975    for ac_exec_ext in '' $ac_executable_extensions; do
2976  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2977    ac_cv_prog_ac_ct_CC="clang"
2978    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2979    break 2
2980  fi
2981done
2982  done
2983IFS=$as_save_IFS
2984
2985fi
2986fi
2987ac_ct_CC=$ac_cv_prog_ac_ct_CC
2988if test -n "$ac_ct_CC"; then
2989  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2990printf "%s\n" "$ac_ct_CC" >&6; }
2991else
2992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993printf "%s\n" "no" >&6; }
2994fi
2995
2996  if test "x$ac_ct_CC" = x; then
2997    CC=""
2998  else
2999    case $cross_compiling:$ac_tool_warned in
3000yes:)
3001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3002printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3003ac_tool_warned=yes ;;
3004esac
3005    CC=$ac_ct_CC
3006  fi
3007else
3008  CC="$ac_cv_prog_CC"
3009fi
3010
3011fi
3012
3013
3014test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3016as_fn_error $? "no acceptable C compiler found in \$PATH
3017See \`config.log' for more details" "$LINENO" 5; }
3018
3019# Provide some information about the compiler.
3020printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3021set X $ac_compile
3022ac_compiler=$2
3023for ac_option in --version -v -V -qversion -version; do
3024  { { ac_try="$ac_compiler $ac_option >&5"
3025case "(($ac_try" in
3026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027  *) ac_try_echo=$ac_try;;
3028esac
3029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3030printf "%s\n" "$ac_try_echo"; } >&5
3031  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3032  ac_status=$?
3033  if test -s conftest.err; then
3034    sed '10a\
3035... rest of stderr output deleted ...
3036         10q' conftest.err >conftest.er1
3037    cat conftest.er1 >&5
3038  fi
3039  rm -f conftest.er1 conftest.err
3040  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3041  test $ac_status = 0; }
3042done
3043
3044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045/* end confdefs.h.  */
3046
3047int
3048main (void)
3049{
3050
3051  ;
3052  return 0;
3053}
3054_ACEOF
3055ac_clean_files_save=$ac_clean_files
3056ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3057# Try to create an executable without -o first, disregard a.out.
3058# It will help us diagnose broken compilers, and finding out an intuition
3059# of exeext.
3060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3061printf %s "checking whether the C compiler works... " >&6; }
3062ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3063
3064# The possible output files:
3065ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3066
3067ac_rmfiles=
3068for ac_file in $ac_files
3069do
3070  case $ac_file in
3071    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3072    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3073  esac
3074done
3075rm -f $ac_rmfiles
3076
3077if { { ac_try="$ac_link_default"
3078case "(($ac_try" in
3079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080  *) ac_try_echo=$ac_try;;
3081esac
3082eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3083printf "%s\n" "$ac_try_echo"; } >&5
3084  (eval "$ac_link_default") 2>&5
3085  ac_status=$?
3086  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3087  test $ac_status = 0; }
3088then :
3089  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3090# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3091# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3092# so that the user can short-circuit this test for compilers unknown to
3093# Autoconf.
3094for ac_file in $ac_files ''
3095do
3096  test -f "$ac_file" || continue
3097  case $ac_file in
3098    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3099	;;
3100    [ab].out )
3101	# We found the default executable, but exeext='' is most
3102	# certainly right.
3103	break;;
3104    *.* )
3105	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3106	then :; else
3107	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3108	fi
3109	# We set ac_cv_exeext here because the later test for it is not
3110	# safe: cross compilers may not add the suffix if given an `-o'
3111	# argument, so we may need to know it at that point already.
3112	# Even if this section looks crufty: it has the advantage of
3113	# actually working.
3114	break;;
3115    * )
3116	break;;
3117  esac
3118done
3119test "$ac_cv_exeext" = no && ac_cv_exeext=
3120
3121else $as_nop
3122  ac_file=''
3123fi
3124if test -z "$ac_file"
3125then :
3126  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127printf "%s\n" "no" >&6; }
3128printf "%s\n" "$as_me: failed program was:" >&5
3129sed 's/^/| /' conftest.$ac_ext >&5
3130
3131{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3133as_fn_error 77 "C compiler cannot create executables
3134See \`config.log' for more details" "$LINENO" 5; }
3135else $as_nop
3136  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3137printf "%s\n" "yes" >&6; }
3138fi
3139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3140printf %s "checking for C compiler default output file name... " >&6; }
3141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3142printf "%s\n" "$ac_file" >&6; }
3143ac_exeext=$ac_cv_exeext
3144
3145rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3146ac_clean_files=$ac_clean_files_save
3147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3148printf %s "checking for suffix of executables... " >&6; }
3149if { { ac_try="$ac_link"
3150case "(($ac_try" in
3151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152  *) ac_try_echo=$ac_try;;
3153esac
3154eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3155printf "%s\n" "$ac_try_echo"; } >&5
3156  (eval "$ac_link") 2>&5
3157  ac_status=$?
3158  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3159  test $ac_status = 0; }
3160then :
3161  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3162# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3163# work properly (i.e., refer to `conftest.exe'), while it won't with
3164# `rm'.
3165for ac_file in conftest.exe conftest conftest.*; do
3166  test -f "$ac_file" || continue
3167  case $ac_file in
3168    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3169    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3170	  break;;
3171    * ) break;;
3172  esac
3173done
3174else $as_nop
3175  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3176printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3177as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3178See \`config.log' for more details" "$LINENO" 5; }
3179fi
3180rm -f conftest conftest$ac_cv_exeext
3181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3182printf "%s\n" "$ac_cv_exeext" >&6; }
3183
3184rm -f conftest.$ac_ext
3185EXEEXT=$ac_cv_exeext
3186ac_exeext=$EXEEXT
3187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3188/* end confdefs.h.  */
3189#include <stdio.h>
3190int
3191main (void)
3192{
3193FILE *f = fopen ("conftest.out", "w");
3194 return ferror (f) || fclose (f) != 0;
3195
3196  ;
3197  return 0;
3198}
3199_ACEOF
3200ac_clean_files="$ac_clean_files conftest.out"
3201# Check that the compiler produces executables we can run.  If not, either
3202# the compiler is broken, or we cross compile.
3203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3204printf %s "checking whether we are cross compiling... " >&6; }
3205if test "$cross_compiling" != yes; then
3206  { { ac_try="$ac_link"
3207case "(($ac_try" in
3208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209  *) ac_try_echo=$ac_try;;
3210esac
3211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212printf "%s\n" "$ac_try_echo"; } >&5
3213  (eval "$ac_link") 2>&5
3214  ac_status=$?
3215  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3216  test $ac_status = 0; }
3217  if { ac_try='./conftest$ac_cv_exeext'
3218  { { case "(($ac_try" in
3219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220  *) ac_try_echo=$ac_try;;
3221esac
3222eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3223printf "%s\n" "$ac_try_echo"; } >&5
3224  (eval "$ac_try") 2>&5
3225  ac_status=$?
3226  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227  test $ac_status = 0; }; }; then
3228    cross_compiling=no
3229  else
3230    if test "$cross_compiling" = maybe; then
3231	cross_compiling=yes
3232    else
3233	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3235as_fn_error 77 "cannot run C compiled programs.
3236If you meant to cross compile, use \`--host'.
3237See \`config.log' for more details" "$LINENO" 5; }
3238    fi
3239  fi
3240fi
3241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3242printf "%s\n" "$cross_compiling" >&6; }
3243
3244rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3245ac_clean_files=$ac_clean_files_save
3246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3247printf %s "checking for suffix of object files... " >&6; }
3248if test ${ac_cv_objext+y}
3249then :
3250  printf %s "(cached) " >&6
3251else $as_nop
3252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253/* end confdefs.h.  */
3254
3255int
3256main (void)
3257{
3258
3259  ;
3260  return 0;
3261}
3262_ACEOF
3263rm -f conftest.o conftest.obj
3264if { { ac_try="$ac_compile"
3265case "(($ac_try" in
3266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267  *) ac_try_echo=$ac_try;;
3268esac
3269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270printf "%s\n" "$ac_try_echo"; } >&5
3271  (eval "$ac_compile") 2>&5
3272  ac_status=$?
3273  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274  test $ac_status = 0; }
3275then :
3276  for ac_file in conftest.o conftest.obj conftest.*; do
3277  test -f "$ac_file" || continue;
3278  case $ac_file in
3279    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3280    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3281       break;;
3282  esac
3283done
3284else $as_nop
3285  printf "%s\n" "$as_me: failed program was:" >&5
3286sed 's/^/| /' conftest.$ac_ext >&5
3287
3288{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3290as_fn_error $? "cannot compute suffix of object files: cannot compile
3291See \`config.log' for more details" "$LINENO" 5; }
3292fi
3293rm -f conftest.$ac_cv_objext conftest.$ac_ext
3294fi
3295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3296printf "%s\n" "$ac_cv_objext" >&6; }
3297OBJEXT=$ac_cv_objext
3298ac_objext=$OBJEXT
3299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3300printf %s "checking whether the compiler supports GNU C... " >&6; }
3301if test ${ac_cv_c_compiler_gnu+y}
3302then :
3303  printf %s "(cached) " >&6
3304else $as_nop
3305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306/* end confdefs.h.  */
3307
3308int
3309main (void)
3310{
3311#ifndef __GNUC__
3312       choke me
3313#endif
3314
3315  ;
3316  return 0;
3317}
3318_ACEOF
3319if ac_fn_c_try_compile "$LINENO"
3320then :
3321  ac_compiler_gnu=yes
3322else $as_nop
3323  ac_compiler_gnu=no
3324fi
3325rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3326ac_cv_c_compiler_gnu=$ac_compiler_gnu
3327
3328fi
3329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3330printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3331ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332
3333if test $ac_compiler_gnu = yes; then
3334  GCC=yes
3335else
3336  GCC=
3337fi
3338ac_test_CFLAGS=${CFLAGS+y}
3339ac_save_CFLAGS=$CFLAGS
3340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3341printf %s "checking whether $CC accepts -g... " >&6; }
3342if test ${ac_cv_prog_cc_g+y}
3343then :
3344  printf %s "(cached) " >&6
3345else $as_nop
3346  ac_save_c_werror_flag=$ac_c_werror_flag
3347   ac_c_werror_flag=yes
3348   ac_cv_prog_cc_g=no
3349   CFLAGS="-g"
3350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351/* end confdefs.h.  */
3352
3353int
3354main (void)
3355{
3356
3357  ;
3358  return 0;
3359}
3360_ACEOF
3361if ac_fn_c_try_compile "$LINENO"
3362then :
3363  ac_cv_prog_cc_g=yes
3364else $as_nop
3365  CFLAGS=""
3366      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367/* end confdefs.h.  */
3368
3369int
3370main (void)
3371{
3372
3373  ;
3374  return 0;
3375}
3376_ACEOF
3377if ac_fn_c_try_compile "$LINENO"
3378then :
3379
3380else $as_nop
3381  ac_c_werror_flag=$ac_save_c_werror_flag
3382	 CFLAGS="-g"
3383	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384/* end confdefs.h.  */
3385
3386int
3387main (void)
3388{
3389
3390  ;
3391  return 0;
3392}
3393_ACEOF
3394if ac_fn_c_try_compile "$LINENO"
3395then :
3396  ac_cv_prog_cc_g=yes
3397fi
3398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3399fi
3400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3401fi
3402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3403   ac_c_werror_flag=$ac_save_c_werror_flag
3404fi
3405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3406printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3407if test $ac_test_CFLAGS; then
3408  CFLAGS=$ac_save_CFLAGS
3409elif test $ac_cv_prog_cc_g = yes; then
3410  if test "$GCC" = yes; then
3411    CFLAGS="-g -O2"
3412  else
3413    CFLAGS="-g"
3414  fi
3415else
3416  if test "$GCC" = yes; then
3417    CFLAGS="-O2"
3418  else
3419    CFLAGS=
3420  fi
3421fi
3422ac_prog_cc_stdc=no
3423if test x$ac_prog_cc_stdc = xno
3424then :
3425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3426printf %s "checking for $CC option to enable C11 features... " >&6; }
3427if test ${ac_cv_prog_cc_c11+y}
3428then :
3429  printf %s "(cached) " >&6
3430else $as_nop
3431  ac_cv_prog_cc_c11=no
3432ac_save_CC=$CC
3433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434/* end confdefs.h.  */
3435$ac_c_conftest_c11_program
3436_ACEOF
3437for ac_arg in '' -std=gnu11
3438do
3439  CC="$ac_save_CC $ac_arg"
3440  if ac_fn_c_try_compile "$LINENO"
3441then :
3442  ac_cv_prog_cc_c11=$ac_arg
3443fi
3444rm -f core conftest.err conftest.$ac_objext conftest.beam
3445  test "x$ac_cv_prog_cc_c11" != "xno" && break
3446done
3447rm -f conftest.$ac_ext
3448CC=$ac_save_CC
3449fi
3450
3451if test "x$ac_cv_prog_cc_c11" = xno
3452then :
3453  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3454printf "%s\n" "unsupported" >&6; }
3455else $as_nop
3456  if test "x$ac_cv_prog_cc_c11" = x
3457then :
3458  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3459printf "%s\n" "none needed" >&6; }
3460else $as_nop
3461  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3462printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3463     CC="$CC $ac_cv_prog_cc_c11"
3464fi
3465  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3466  ac_prog_cc_stdc=c11
3467fi
3468fi
3469if test x$ac_prog_cc_stdc = xno
3470then :
3471  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3472printf %s "checking for $CC option to enable C99 features... " >&6; }
3473if test ${ac_cv_prog_cc_c99+y}
3474then :
3475  printf %s "(cached) " >&6
3476else $as_nop
3477  ac_cv_prog_cc_c99=no
3478ac_save_CC=$CC
3479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480/* end confdefs.h.  */
3481$ac_c_conftest_c99_program
3482_ACEOF
3483for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3484do
3485  CC="$ac_save_CC $ac_arg"
3486  if ac_fn_c_try_compile "$LINENO"
3487then :
3488  ac_cv_prog_cc_c99=$ac_arg
3489fi
3490rm -f core conftest.err conftest.$ac_objext conftest.beam
3491  test "x$ac_cv_prog_cc_c99" != "xno" && break
3492done
3493rm -f conftest.$ac_ext
3494CC=$ac_save_CC
3495fi
3496
3497if test "x$ac_cv_prog_cc_c99" = xno
3498then :
3499  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3500printf "%s\n" "unsupported" >&6; }
3501else $as_nop
3502  if test "x$ac_cv_prog_cc_c99" = x
3503then :
3504  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3505printf "%s\n" "none needed" >&6; }
3506else $as_nop
3507  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3508printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3509     CC="$CC $ac_cv_prog_cc_c99"
3510fi
3511  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3512  ac_prog_cc_stdc=c99
3513fi
3514fi
3515if test x$ac_prog_cc_stdc = xno
3516then :
3517  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3518printf %s "checking for $CC option to enable C89 features... " >&6; }
3519if test ${ac_cv_prog_cc_c89+y}
3520then :
3521  printf %s "(cached) " >&6
3522else $as_nop
3523  ac_cv_prog_cc_c89=no
3524ac_save_CC=$CC
3525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526/* end confdefs.h.  */
3527$ac_c_conftest_c89_program
3528_ACEOF
3529for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3530do
3531  CC="$ac_save_CC $ac_arg"
3532  if ac_fn_c_try_compile "$LINENO"
3533then :
3534  ac_cv_prog_cc_c89=$ac_arg
3535fi
3536rm -f core conftest.err conftest.$ac_objext conftest.beam
3537  test "x$ac_cv_prog_cc_c89" != "xno" && break
3538done
3539rm -f conftest.$ac_ext
3540CC=$ac_save_CC
3541fi
3542
3543if test "x$ac_cv_prog_cc_c89" = xno
3544then :
3545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3546printf "%s\n" "unsupported" >&6; }
3547else $as_nop
3548  if test "x$ac_cv_prog_cc_c89" = x
3549then :
3550  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3551printf "%s\n" "none needed" >&6; }
3552else $as_nop
3553  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3554printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3555     CC="$CC $ac_cv_prog_cc_c89"
3556fi
3557  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3558  ac_prog_cc_stdc=c89
3559fi
3560fi
3561
3562ac_ext=c
3563ac_cpp='$CPP $CPPFLAGS'
3564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3566ac_compiler_gnu=$ac_cv_c_compiler_gnu
3567
3568
3569  ac_ext=c
3570ac_cpp='$CPP $CPPFLAGS'
3571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3575printf %s "checking whether $CC understands -c and -o together... " >&6; }
3576if test ${am_cv_prog_cc_c_o+y}
3577then :
3578  printf %s "(cached) " >&6
3579else $as_nop
3580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581/* end confdefs.h.  */
3582
3583int
3584main (void)
3585{
3586
3587  ;
3588  return 0;
3589}
3590_ACEOF
3591  # Make sure it works both with $CC and with simple cc.
3592  # Following AC_PROG_CC_C_O, we do the test twice because some
3593  # compilers refuse to overwrite an existing .o file with -o,
3594  # though they will create one.
3595  am_cv_prog_cc_c_o=yes
3596  for am_i in 1 2; do
3597    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3598   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3599   ac_status=$?
3600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601   (exit $ac_status); } \
3602         && test -f conftest2.$ac_objext; then
3603      : OK
3604    else
3605      am_cv_prog_cc_c_o=no
3606      break
3607    fi
3608  done
3609  rm -f core conftest*
3610  unset am_i
3611fi
3612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3613printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3614if test "$am_cv_prog_cc_c_o" != yes; then
3615   # Losing compiler, so override with the script.
3616   # FIXME: It is wrong to rewrite CC.
3617   # But if we don't then we get into trouble of one sort or another.
3618   # A longer-term fix would be to have automake use am__CC in this case,
3619   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3620   CC="$am_aux_dir/compile $CC"
3621fi
3622ac_ext=c
3623ac_cpp='$CPP $CPPFLAGS'
3624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626ac_compiler_gnu=$ac_cv_c_compiler_gnu
3627
3628
3629
3630ac_header= ac_cache=
3631for ac_item in $ac_header_c_list
3632do
3633  if test $ac_cache; then
3634    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3635    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3636      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3637    fi
3638    ac_header= ac_cache=
3639  elif test $ac_header; then
3640    ac_cache=$ac_item
3641  else
3642    ac_header=$ac_item
3643  fi
3644done
3645
3646
3647
3648
3649
3650
3651
3652
3653if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3654then :
3655
3656printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3657
3658fi
3659
3660
3661
3662
3663
3664
3665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3666printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3667if test ${ac_cv_safe_to_define___extensions__+y}
3668then :
3669  printf %s "(cached) " >&6
3670else $as_nop
3671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672/* end confdefs.h.  */
3673
3674#         define __EXTENSIONS__ 1
3675          $ac_includes_default
3676int
3677main (void)
3678{
3679
3680  ;
3681  return 0;
3682}
3683_ACEOF
3684if ac_fn_c_try_compile "$LINENO"
3685then :
3686  ac_cv_safe_to_define___extensions__=yes
3687else $as_nop
3688  ac_cv_safe_to_define___extensions__=no
3689fi
3690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3691fi
3692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3693printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3694
3695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3696printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3697if test ${ac_cv_should_define__xopen_source+y}
3698then :
3699  printf %s "(cached) " >&6
3700else $as_nop
3701  ac_cv_should_define__xopen_source=no
3702    if test $ac_cv_header_wchar_h = yes
3703then :
3704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705/* end confdefs.h.  */
3706
3707          #include <wchar.h>
3708          mbstate_t x;
3709int
3710main (void)
3711{
3712
3713  ;
3714  return 0;
3715}
3716_ACEOF
3717if ac_fn_c_try_compile "$LINENO"
3718then :
3719
3720else $as_nop
3721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722/* end confdefs.h.  */
3723
3724            #define _XOPEN_SOURCE 500
3725            #include <wchar.h>
3726            mbstate_t x;
3727int
3728main (void)
3729{
3730
3731  ;
3732  return 0;
3733}
3734_ACEOF
3735if ac_fn_c_try_compile "$LINENO"
3736then :
3737  ac_cv_should_define__xopen_source=yes
3738fi
3739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3740fi
3741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3742fi
3743fi
3744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3745printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3746
3747  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3748
3749  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3750
3751  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3752
3753  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3754
3755  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3756
3757  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3758
3759  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3760
3761  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3762
3763  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3764
3765  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3766
3767  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3768
3769  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3770
3771  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3772
3773  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3774
3775  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3776
3777  if test $ac_cv_header_minix_config_h = yes
3778then :
3779  MINIX=yes
3780    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3781
3782    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3783
3784    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3785
3786else $as_nop
3787  MINIX=
3788fi
3789  if test $ac_cv_safe_to_define___extensions__ = yes
3790then :
3791  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3792
3793fi
3794  if test $ac_cv_should_define__xopen_source = yes
3795then :
3796  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3797
3798fi
3799
3800
3801# Initialize Automake
3802am__api_version='1.16'
3803
3804
3805  # Find a good install program.  We prefer a C program (faster),
3806# so one script is as good as another.  But avoid the broken or
3807# incompatible versions:
3808# SysV /etc/install, /usr/sbin/install
3809# SunOS /usr/etc/install
3810# IRIX /sbin/install
3811# AIX /bin/install
3812# AmigaOS /C/install, which installs bootblocks on floppy discs
3813# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3814# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3815# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3816# OS/2's system install, which has a completely different semantic
3817# ./install, which can be erroneously created by make from ./install.sh.
3818# Reject install programs that cannot install multiple files.
3819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3820printf %s "checking for a BSD-compatible install... " >&6; }
3821if test -z "$INSTALL"; then
3822if test ${ac_cv_path_install+y}
3823then :
3824  printf %s "(cached) " >&6
3825else $as_nop
3826  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827for as_dir in $PATH
3828do
3829  IFS=$as_save_IFS
3830  case $as_dir in #(((
3831    '') as_dir=./ ;;
3832    */) ;;
3833    *) as_dir=$as_dir/ ;;
3834  esac
3835    # Account for fact that we put trailing slashes in our PATH walk.
3836case $as_dir in #((
3837  ./ | /[cC]/* | \
3838  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3839  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3840  /usr/ucb/* ) ;;
3841  *)
3842    # OSF1 and SCO ODT 3.0 have their own names for install.
3843    # Don't use installbsd from OSF since it installs stuff as root
3844    # by default.
3845    for ac_prog in ginstall scoinst install; do
3846      for ac_exec_ext in '' $ac_executable_extensions; do
3847	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3848	  if test $ac_prog = install &&
3849	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3850	    # AIX install.  It has an incompatible calling convention.
3851	    :
3852	  elif test $ac_prog = install &&
3853	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3854	    # program-specific install script used by HP pwplus--don't use.
3855	    :
3856	  else
3857	    rm -rf conftest.one conftest.two conftest.dir
3858	    echo one > conftest.one
3859	    echo two > conftest.two
3860	    mkdir conftest.dir
3861	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3862	      test -s conftest.one && test -s conftest.two &&
3863	      test -s conftest.dir/conftest.one &&
3864	      test -s conftest.dir/conftest.two
3865	    then
3866	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3867	      break 3
3868	    fi
3869	  fi
3870	fi
3871      done
3872    done
3873    ;;
3874esac
3875
3876  done
3877IFS=$as_save_IFS
3878
3879rm -rf conftest.one conftest.two conftest.dir
3880
3881fi
3882  if test ${ac_cv_path_install+y}; then
3883    INSTALL=$ac_cv_path_install
3884  else
3885    # As a last resort, use the slow shell script.  Don't cache a
3886    # value for INSTALL within a source directory, because that will
3887    # break other packages using the cache if that directory is
3888    # removed, or if the value is a relative name.
3889    INSTALL=$ac_install_sh
3890  fi
3891fi
3892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3893printf "%s\n" "$INSTALL" >&6; }
3894
3895# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3896# It thinks the first close brace ends the variable substitution.
3897test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3898
3899test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3900
3901test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3902
3903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3904printf %s "checking whether build environment is sane... " >&6; }
3905# Reject unsafe characters in $srcdir or the absolute working directory
3906# name.  Accept space and tab only in the latter.
3907am_lf='
3908'
3909case `pwd` in
3910  *[\\\"\#\$\&\'\`$am_lf]*)
3911    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3912esac
3913case $srcdir in
3914  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3915    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3916esac
3917
3918# Do 'set' in a subshell so we don't clobber the current shell's
3919# arguments.  Must try -L first in case configure is actually a
3920# symlink; some systems play weird games with the mod time of symlinks
3921# (eg FreeBSD returns the mod time of the symlink's containing
3922# directory).
3923if (
3924   am_has_slept=no
3925   for am_try in 1 2; do
3926     echo "timestamp, slept: $am_has_slept" > conftest.file
3927     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3928     if test "$*" = "X"; then
3929	# -L didn't work.
3930	set X `ls -t "$srcdir/configure" conftest.file`
3931     fi
3932     if test "$*" != "X $srcdir/configure conftest.file" \
3933	&& test "$*" != "X conftest.file $srcdir/configure"; then
3934
3935	# If neither matched, then we have a broken ls.  This can happen
3936	# if, for instance, CONFIG_SHELL is bash and it inherits a
3937	# broken ls alias from the environment.  This has actually
3938	# happened.  Such a system could not be considered "sane".
3939	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3940  alias in your environment" "$LINENO" 5
3941     fi
3942     if test "$2" = conftest.file || test $am_try -eq 2; then
3943       break
3944     fi
3945     # Just in case.
3946     sleep 1
3947     am_has_slept=yes
3948   done
3949   test "$2" = conftest.file
3950   )
3951then
3952   # Ok.
3953   :
3954else
3955   as_fn_error $? "newly created file is older than distributed files!
3956Check your system clock" "$LINENO" 5
3957fi
3958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3959printf "%s\n" "yes" >&6; }
3960# If we didn't sleep, we still need to ensure time stamps of config.status and
3961# generated files are strictly newer.
3962am_sleep_pid=
3963if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3964  ( sleep 1 ) &
3965  am_sleep_pid=$!
3966fi
3967
3968rm -f conftest.file
3969
3970test "$program_prefix" != NONE &&
3971  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3972# Use a double $ so make ignores it.
3973test "$program_suffix" != NONE &&
3974  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3975# Double any \ or $.
3976# By default was `s,x,x', remove it if useless.
3977ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3978program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3979
3980
3981  if test x"${MISSING+set}" != xset; then
3982  MISSING="\${SHELL} '$am_aux_dir/missing'"
3983fi
3984# Use eval to expand $SHELL
3985if eval "$MISSING --is-lightweight"; then
3986  am_missing_run="$MISSING "
3987else
3988  am_missing_run=
3989  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3990printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3991fi
3992
3993if test x"${install_sh+set}" != xset; then
3994  case $am_aux_dir in
3995  *\ * | *\	*)
3996    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3997  *)
3998    install_sh="\${SHELL} $am_aux_dir/install-sh"
3999  esac
4000fi
4001
4002# Installed binaries are usually stripped using 'strip' when the user
4003# run "make install-strip".  However 'strip' might not be the right
4004# tool to use in cross-compilation environments, therefore Automake
4005# will honor the 'STRIP' environment variable to overrule this program.
4006if test "$cross_compiling" != no; then
4007  if test -n "$ac_tool_prefix"; then
4008  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4009set dummy ${ac_tool_prefix}strip; ac_word=$2
4010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011printf %s "checking for $ac_word... " >&6; }
4012if test ${ac_cv_prog_STRIP+y}
4013then :
4014  printf %s "(cached) " >&6
4015else $as_nop
4016  if test -n "$STRIP"; then
4017  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4018else
4019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020for as_dir in $PATH
4021do
4022  IFS=$as_save_IFS
4023  case $as_dir in #(((
4024    '') as_dir=./ ;;
4025    */) ;;
4026    *) as_dir=$as_dir/ ;;
4027  esac
4028    for ac_exec_ext in '' $ac_executable_extensions; do
4029  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4030    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4031    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4032    break 2
4033  fi
4034done
4035  done
4036IFS=$as_save_IFS
4037
4038fi
4039fi
4040STRIP=$ac_cv_prog_STRIP
4041if test -n "$STRIP"; then
4042  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4043printf "%s\n" "$STRIP" >&6; }
4044else
4045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046printf "%s\n" "no" >&6; }
4047fi
4048
4049
4050fi
4051if test -z "$ac_cv_prog_STRIP"; then
4052  ac_ct_STRIP=$STRIP
4053  # Extract the first word of "strip", so it can be a program name with args.
4054set dummy strip; ac_word=$2
4055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056printf %s "checking for $ac_word... " >&6; }
4057if test ${ac_cv_prog_ac_ct_STRIP+y}
4058then :
4059  printf %s "(cached) " >&6
4060else $as_nop
4061  if test -n "$ac_ct_STRIP"; then
4062  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4063else
4064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065for as_dir in $PATH
4066do
4067  IFS=$as_save_IFS
4068  case $as_dir in #(((
4069    '') as_dir=./ ;;
4070    */) ;;
4071    *) as_dir=$as_dir/ ;;
4072  esac
4073    for ac_exec_ext in '' $ac_executable_extensions; do
4074  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4075    ac_cv_prog_ac_ct_STRIP="strip"
4076    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4077    break 2
4078  fi
4079done
4080  done
4081IFS=$as_save_IFS
4082
4083fi
4084fi
4085ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4086if test -n "$ac_ct_STRIP"; then
4087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4088printf "%s\n" "$ac_ct_STRIP" >&6; }
4089else
4090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091printf "%s\n" "no" >&6; }
4092fi
4093
4094  if test "x$ac_ct_STRIP" = x; then
4095    STRIP=":"
4096  else
4097    case $cross_compiling:$ac_tool_warned in
4098yes:)
4099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4100printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4101ac_tool_warned=yes ;;
4102esac
4103    STRIP=$ac_ct_STRIP
4104  fi
4105else
4106  STRIP="$ac_cv_prog_STRIP"
4107fi
4108
4109fi
4110INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4111
4112
4113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4114printf %s "checking for a race-free mkdir -p... " >&6; }
4115if test -z "$MKDIR_P"; then
4116  if test ${ac_cv_path_mkdir+y}
4117then :
4118  printf %s "(cached) " >&6
4119else $as_nop
4120  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4122do
4123  IFS=$as_save_IFS
4124  case $as_dir in #(((
4125    '') as_dir=./ ;;
4126    */) ;;
4127    *) as_dir=$as_dir/ ;;
4128  esac
4129    for ac_prog in mkdir gmkdir; do
4130	 for ac_exec_ext in '' $ac_executable_extensions; do
4131	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4132	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4133	     'mkdir ('*'coreutils) '* | \
4134	     'BusyBox '* | \
4135	     'mkdir (fileutils) '4.1*)
4136	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4137	       break 3;;
4138	   esac
4139	 done
4140       done
4141  done
4142IFS=$as_save_IFS
4143
4144fi
4145
4146  test -d ./--version && rmdir ./--version
4147  if test ${ac_cv_path_mkdir+y}; then
4148    MKDIR_P="$ac_cv_path_mkdir -p"
4149  else
4150    # As a last resort, use the slow shell script.  Don't cache a
4151    # value for MKDIR_P within a source directory, because that will
4152    # break other packages using the cache if that directory is
4153    # removed, or if the value is a relative name.
4154    MKDIR_P="$ac_install_sh -d"
4155  fi
4156fi
4157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4158printf "%s\n" "$MKDIR_P" >&6; }
4159
4160for ac_prog in gawk mawk nawk awk
4161do
4162  # Extract the first word of "$ac_prog", so it can be a program name with args.
4163set dummy $ac_prog; ac_word=$2
4164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165printf %s "checking for $ac_word... " >&6; }
4166if test ${ac_cv_prog_AWK+y}
4167then :
4168  printf %s "(cached) " >&6
4169else $as_nop
4170  if test -n "$AWK"; then
4171  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4172else
4173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174for as_dir in $PATH
4175do
4176  IFS=$as_save_IFS
4177  case $as_dir in #(((
4178    '') as_dir=./ ;;
4179    */) ;;
4180    *) as_dir=$as_dir/ ;;
4181  esac
4182    for ac_exec_ext in '' $ac_executable_extensions; do
4183  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4184    ac_cv_prog_AWK="$ac_prog"
4185    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4186    break 2
4187  fi
4188done
4189  done
4190IFS=$as_save_IFS
4191
4192fi
4193fi
4194AWK=$ac_cv_prog_AWK
4195if test -n "$AWK"; then
4196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4197printf "%s\n" "$AWK" >&6; }
4198else
4199  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200printf "%s\n" "no" >&6; }
4201fi
4202
4203
4204  test -n "$AWK" && break
4205done
4206
4207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4208printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4209set x ${MAKE-make}
4210ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4211if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4212then :
4213  printf %s "(cached) " >&6
4214else $as_nop
4215  cat >conftest.make <<\_ACEOF
4216SHELL = /bin/sh
4217all:
4218	@echo '@@@%%%=$(MAKE)=@@@%%%'
4219_ACEOF
4220# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4221case `${MAKE-make} -f conftest.make 2>/dev/null` in
4222  *@@@%%%=?*=@@@%%%*)
4223    eval ac_cv_prog_make_${ac_make}_set=yes;;
4224  *)
4225    eval ac_cv_prog_make_${ac_make}_set=no;;
4226esac
4227rm -f conftest.make
4228fi
4229if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4231printf "%s\n" "yes" >&6; }
4232  SET_MAKE=
4233else
4234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235printf "%s\n" "no" >&6; }
4236  SET_MAKE="MAKE=${MAKE-make}"
4237fi
4238
4239rm -rf .tst 2>/dev/null
4240mkdir .tst 2>/dev/null
4241if test -d .tst; then
4242  am__leading_dot=.
4243else
4244  am__leading_dot=_
4245fi
4246rmdir .tst 2>/dev/null
4247
4248DEPDIR="${am__leading_dot}deps"
4249
4250ac_config_commands="$ac_config_commands depfiles"
4251
4252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4253printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4254cat > confinc.mk << 'END'
4255am__doit:
4256	@echo this is the am__doit target >confinc.out
4257.PHONY: am__doit
4258END
4259am__include="#"
4260am__quote=
4261# BSD make does it like this.
4262echo '.include "confinc.mk" # ignored' > confmf.BSD
4263# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4264echo 'include confinc.mk # ignored' > confmf.GNU
4265_am_result=no
4266for s in GNU BSD; do
4267  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4268   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4269   ac_status=$?
4270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); }
4272  case $?:`cat confinc.out 2>/dev/null` in #(
4273  '0:this is the am__doit target') :
4274    case $s in #(
4275  BSD) :
4276    am__include='.include' am__quote='"' ;; #(
4277  *) :
4278    am__include='include' am__quote='' ;;
4279esac ;; #(
4280  *) :
4281     ;;
4282esac
4283  if test "$am__include" != "#"; then
4284    _am_result="yes ($s style)"
4285    break
4286  fi
4287done
4288rm -f confinc.* confmf.*
4289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4290printf "%s\n" "${_am_result}" >&6; }
4291
4292# Check whether --enable-dependency-tracking was given.
4293if test ${enable_dependency_tracking+y}
4294then :
4295  enableval=$enable_dependency_tracking;
4296fi
4297
4298if test "x$enable_dependency_tracking" != xno; then
4299  am_depcomp="$ac_aux_dir/depcomp"
4300  AMDEPBACKSLASH='\'
4301  am__nodep='_no'
4302fi
4303 if test "x$enable_dependency_tracking" != xno; then
4304  AMDEP_TRUE=
4305  AMDEP_FALSE='#'
4306else
4307  AMDEP_TRUE='#'
4308  AMDEP_FALSE=
4309fi
4310
4311
4312# Check whether --enable-silent-rules was given.
4313if test ${enable_silent_rules+y}
4314then :
4315  enableval=$enable_silent_rules;
4316fi
4317
4318case $enable_silent_rules in # (((
4319  yes) AM_DEFAULT_VERBOSITY=0;;
4320   no) AM_DEFAULT_VERBOSITY=1;;
4321    *) AM_DEFAULT_VERBOSITY=1;;
4322esac
4323am_make=${MAKE-make}
4324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4325printf %s "checking whether $am_make supports nested variables... " >&6; }
4326if test ${am_cv_make_support_nested_variables+y}
4327then :
4328  printf %s "(cached) " >&6
4329else $as_nop
4330  if printf "%s\n" 'TRUE=$(BAR$(V))
4331BAR0=false
4332BAR1=true
4333V=1
4334am__doit:
4335	@$(TRUE)
4336.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4337  am_cv_make_support_nested_variables=yes
4338else
4339  am_cv_make_support_nested_variables=no
4340fi
4341fi
4342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4343printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4344if test $am_cv_make_support_nested_variables = yes; then
4345    AM_V='$(V)'
4346  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4347else
4348  AM_V=$AM_DEFAULT_VERBOSITY
4349  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4350fi
4351AM_BACKSLASH='\'
4352
4353if test "`cd $srcdir && pwd`" != "`pwd`"; then
4354  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4355  # is not polluted with repeated "-I."
4356  am__isrc=' -I$(srcdir)'
4357  # test to see if srcdir already configured
4358  if test -f $srcdir/config.status; then
4359    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4360  fi
4361fi
4362
4363# test whether we have cygpath
4364if test -z "$CYGPATH_W"; then
4365  if (cygpath --version) >/dev/null 2>/dev/null; then
4366    CYGPATH_W='cygpath -w'
4367  else
4368    CYGPATH_W=echo
4369  fi
4370fi
4371
4372
4373# Define the identity of the package.
4374 PACKAGE='xmodmap'
4375 VERSION='1.0.11'
4376
4377
4378printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4379
4380
4381printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4382
4383# Some tools Automake needs.
4384
4385ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4386
4387
4388AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4389
4390
4391AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4392
4393
4394AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4395
4396
4397MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4398
4399# For better backward compatibility.  To be removed once Automake 1.9.x
4400# dies out for good.  For more background, see:
4401# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4402# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4403mkdir_p='$(MKDIR_P)'
4404
4405# We need awk for the "check" target (and possibly the TAP driver).  The
4406# system "awk" is bad on some platforms.
4407# Always define AMTAR for backward compatibility.  Yes, it's still used
4408# in the wild :-(  We should find a proper way to deprecate it ...
4409AMTAR='$${TAR-tar}'
4410
4411
4412# We'll loop over all known methods to create a tar archive until one works.
4413_am_tools='gnutar  pax cpio none'
4414
4415am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4416
4417
4418
4419
4420
4421depcc="$CC"   am_compiler_list=
4422
4423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4424printf %s "checking dependency style of $depcc... " >&6; }
4425if test ${am_cv_CC_dependencies_compiler_type+y}
4426then :
4427  printf %s "(cached) " >&6
4428else $as_nop
4429  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4430  # We make a subdir and do the tests there.  Otherwise we can end up
4431  # making bogus files that we don't know about and never remove.  For
4432  # instance it was reported that on HP-UX the gcc test will end up
4433  # making a dummy file named 'D' -- because '-MD' means "put the output
4434  # in D".
4435  rm -rf conftest.dir
4436  mkdir conftest.dir
4437  # Copy depcomp to subdir because otherwise we won't find it if we're
4438  # using a relative directory.
4439  cp "$am_depcomp" conftest.dir
4440  cd conftest.dir
4441  # We will build objects and dependencies in a subdirectory because
4442  # it helps to detect inapplicable dependency modes.  For instance
4443  # both Tru64's cc and ICC support -MD to output dependencies as a
4444  # side effect of compilation, but ICC will put the dependencies in
4445  # the current directory while Tru64 will put them in the object
4446  # directory.
4447  mkdir sub
4448
4449  am_cv_CC_dependencies_compiler_type=none
4450  if test "$am_compiler_list" = ""; then
4451     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4452  fi
4453  am__universal=false
4454  case " $depcc " in #(
4455     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4456     esac
4457
4458  for depmode in $am_compiler_list; do
4459    # Setup a source with many dependencies, because some compilers
4460    # like to wrap large dependency lists on column 80 (with \), and
4461    # we should not choose a depcomp mode which is confused by this.
4462    #
4463    # We need to recreate these files for each test, as the compiler may
4464    # overwrite some of them when testing with obscure command lines.
4465    # This happens at least with the AIX C compiler.
4466    : > sub/conftest.c
4467    for i in 1 2 3 4 5 6; do
4468      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4469      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4470      # Solaris 10 /bin/sh.
4471      echo '/* dummy */' > sub/conftst$i.h
4472    done
4473    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4474
4475    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4476    # mode.  It turns out that the SunPro C++ compiler does not properly
4477    # handle '-M -o', and we need to detect this.  Also, some Intel
4478    # versions had trouble with output in subdirs.
4479    am__obj=sub/conftest.${OBJEXT-o}
4480    am__minus_obj="-o $am__obj"
4481    case $depmode in
4482    gcc)
4483      # This depmode causes a compiler race in universal mode.
4484      test "$am__universal" = false || continue
4485      ;;
4486    nosideeffect)
4487      # After this tag, mechanisms are not by side-effect, so they'll
4488      # only be used when explicitly requested.
4489      if test "x$enable_dependency_tracking" = xyes; then
4490	continue
4491      else
4492	break
4493      fi
4494      ;;
4495    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4496      # This compiler won't grok '-c -o', but also, the minuso test has
4497      # not run yet.  These depmodes are late enough in the game, and
4498      # so weak that their functioning should not be impacted.
4499      am__obj=conftest.${OBJEXT-o}
4500      am__minus_obj=
4501      ;;
4502    none) break ;;
4503    esac
4504    if depmode=$depmode \
4505       source=sub/conftest.c object=$am__obj \
4506       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4507       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4508         >/dev/null 2>conftest.err &&
4509       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4510       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4511       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4512       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4513      # icc doesn't choke on unknown options, it will just issue warnings
4514      # or remarks (even with -Werror).  So we grep stderr for any message
4515      # that says an option was ignored or not supported.
4516      # When given -MP, icc 7.0 and 7.1 complain thusly:
4517      #   icc: Command line warning: ignoring option '-M'; no argument required
4518      # The diagnosis changed in icc 8.0:
4519      #   icc: Command line remark: option '-MP' not supported
4520      if (grep 'ignoring option' conftest.err ||
4521          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4522        am_cv_CC_dependencies_compiler_type=$depmode
4523        break
4524      fi
4525    fi
4526  done
4527
4528  cd ..
4529  rm -rf conftest.dir
4530else
4531  am_cv_CC_dependencies_compiler_type=none
4532fi
4533
4534fi
4535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4536printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4537CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4538
4539 if
4540  test "x$enable_dependency_tracking" != xno \
4541  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4542  am__fastdepCC_TRUE=
4543  am__fastdepCC_FALSE='#'
4544else
4545  am__fastdepCC_TRUE='#'
4546  am__fastdepCC_FALSE=
4547fi
4548
4549
4550# Variables for tags utilities; see am/tags.am
4551if test -z "$CTAGS"; then
4552  CTAGS=ctags
4553fi
4554
4555if test -z "$ETAGS"; then
4556  ETAGS=etags
4557fi
4558
4559if test -z "$CSCOPE"; then
4560  CSCOPE=cscope
4561fi
4562
4563
4564
4565# POSIX will say in a future version that running "rm -f" with no argument
4566# is OK; and we want to be able to make that assumption in our Makefile
4567# recipes.  So use an aggressive probe to check that the usage we want is
4568# actually supported "in the wild" to an acceptable degree.
4569# See automake bug#10828.
4570# To make any issue more visible, cause the running configure to be aborted
4571# by default if the 'rm' program in use doesn't match our expectations; the
4572# user can still override this though.
4573if rm -f && rm -fr && rm -rf; then : OK; else
4574  cat >&2 <<'END'
4575Oops!
4576
4577Your 'rm' program seems unable to run without file operands specified
4578on the command line, even when the '-f' option is present.  This is contrary
4579to the behaviour of most rm programs out there, and not conforming with
4580the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4581
4582Please tell bug-automake@gnu.org about your system, including the value
4583of your $PATH and any error possibly output before this message.  This
4584can help us improve future automake versions.
4585
4586END
4587  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4588    echo 'Configuration will proceed anyway, since you have set the' >&2
4589    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4590    echo >&2
4591  else
4592    cat >&2 <<'END'
4593Aborting the configuration process, to ensure you take notice of the issue.
4594
4595You can download and install GNU coreutils to get an 'rm' implementation
4596that behaves properly: <https://www.gnu.org/software/coreutils/>.
4597
4598If you want to complete the configuration process using your problematic
4599'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4600to "yes", and re-run configure.
4601
4602END
4603    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4604  fi
4605fi
4606
4607
4608# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4622printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4623if test ${ac_cv_c_undeclared_builtin_options+y}
4624then :
4625  printf %s "(cached) " >&6
4626else $as_nop
4627  ac_save_CFLAGS=$CFLAGS
4628   ac_cv_c_undeclared_builtin_options='cannot detect'
4629   for ac_arg in '' -fno-builtin; do
4630     CFLAGS="$ac_save_CFLAGS $ac_arg"
4631     # This test program should *not* compile successfully.
4632     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633/* end confdefs.h.  */
4634
4635int
4636main (void)
4637{
4638(void) strchr;
4639  ;
4640  return 0;
4641}
4642_ACEOF
4643if ac_fn_c_try_compile "$LINENO"
4644then :
4645
4646else $as_nop
4647  # This test program should compile successfully.
4648        # No library function is consistently available on
4649        # freestanding implementations, so test against a dummy
4650        # declaration.  Include always-available headers on the
4651        # off chance that they somehow elicit warnings.
4652        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653/* end confdefs.h.  */
4654#include <float.h>
4655#include <limits.h>
4656#include <stdarg.h>
4657#include <stddef.h>
4658extern void ac_decl (int, char *);
4659
4660int
4661main (void)
4662{
4663(void) ac_decl (0, (char *) 0);
4664  (void) ac_decl;
4665
4666  ;
4667  return 0;
4668}
4669_ACEOF
4670if ac_fn_c_try_compile "$LINENO"
4671then :
4672  if test x"$ac_arg" = x
4673then :
4674  ac_cv_c_undeclared_builtin_options='none needed'
4675else $as_nop
4676  ac_cv_c_undeclared_builtin_options=$ac_arg
4677fi
4678          break
4679fi
4680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4681fi
4682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4683    done
4684    CFLAGS=$ac_save_CFLAGS
4685
4686fi
4687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4688printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4689  case $ac_cv_c_undeclared_builtin_options in #(
4690  'cannot detect') :
4691    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4692printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4693as_fn_error $? "cannot make $CC report undeclared builtins
4694See \`config.log' for more details" "$LINENO" 5; } ;; #(
4695  'none needed') :
4696    ac_c_undeclared_builtin_options='' ;; #(
4697  *) :
4698    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4699esac
4700
4701
4702
4703
4704
4705ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4706if test "x$ac_cv_have_decl___clang__" = xyes
4707then :
4708  CLANGCC="yes"
4709else $as_nop
4710  CLANGCC="no"
4711fi
4712ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4713if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4714then :
4715  INTELCC="yes"
4716else $as_nop
4717  INTELCC="no"
4718fi
4719ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4720if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4721then :
4722  SUNCC="yes"
4723else $as_nop
4724  SUNCC="no"
4725fi
4726
4727
4728
4729
4730
4731
4732
4733
4734if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4735	if test -n "$ac_tool_prefix"; then
4736  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4737set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739printf %s "checking for $ac_word... " >&6; }
4740if test ${ac_cv_path_PKG_CONFIG+y}
4741then :
4742  printf %s "(cached) " >&6
4743else $as_nop
4744  case $PKG_CONFIG in
4745  [\\/]* | ?:[\\/]*)
4746  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4747  ;;
4748  *)
4749  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752  IFS=$as_save_IFS
4753  case $as_dir in #(((
4754    '') as_dir=./ ;;
4755    */) ;;
4756    *) as_dir=$as_dir/ ;;
4757  esac
4758    for ac_exec_ext in '' $ac_executable_extensions; do
4759  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4760    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4761    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4762    break 2
4763  fi
4764done
4765  done
4766IFS=$as_save_IFS
4767
4768  ;;
4769esac
4770fi
4771PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4772if test -n "$PKG_CONFIG"; then
4773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4774printf "%s\n" "$PKG_CONFIG" >&6; }
4775else
4776  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777printf "%s\n" "no" >&6; }
4778fi
4779
4780
4781fi
4782if test -z "$ac_cv_path_PKG_CONFIG"; then
4783  ac_pt_PKG_CONFIG=$PKG_CONFIG
4784  # Extract the first word of "pkg-config", so it can be a program name with args.
4785set dummy pkg-config; ac_word=$2
4786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4787printf %s "checking for $ac_word... " >&6; }
4788if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4789then :
4790  printf %s "(cached) " >&6
4791else $as_nop
4792  case $ac_pt_PKG_CONFIG in
4793  [\\/]* | ?:[\\/]*)
4794  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4795  ;;
4796  *)
4797  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798for as_dir in $PATH
4799do
4800  IFS=$as_save_IFS
4801  case $as_dir in #(((
4802    '') as_dir=./ ;;
4803    */) ;;
4804    *) as_dir=$as_dir/ ;;
4805  esac
4806    for ac_exec_ext in '' $ac_executable_extensions; do
4807  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4808    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4809    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4810    break 2
4811  fi
4812done
4813  done
4814IFS=$as_save_IFS
4815
4816  ;;
4817esac
4818fi
4819ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4820if test -n "$ac_pt_PKG_CONFIG"; then
4821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4822printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4823else
4824  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4825printf "%s\n" "no" >&6; }
4826fi
4827
4828  if test "x$ac_pt_PKG_CONFIG" = x; then
4829    PKG_CONFIG=""
4830  else
4831    case $cross_compiling:$ac_tool_warned in
4832yes:)
4833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4834printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4835ac_tool_warned=yes ;;
4836esac
4837    PKG_CONFIG=$ac_pt_PKG_CONFIG
4838  fi
4839else
4840  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4841fi
4842
4843fi
4844if test -n "$PKG_CONFIG"; then
4845	_pkg_min_version=0.9.0
4846	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4847printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4848	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4849		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4850printf "%s\n" "yes" >&6; }
4851	else
4852		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853printf "%s\n" "no" >&6; }
4854		PKG_CONFIG=""
4855	fi
4856fi
4857
4858
4859  # Make sure we can run config.sub.
4860$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4861  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4862
4863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4864printf %s "checking build system type... " >&6; }
4865if test ${ac_cv_build+y}
4866then :
4867  printf %s "(cached) " >&6
4868else $as_nop
4869  ac_build_alias=$build_alias
4870test "x$ac_build_alias" = x &&
4871  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4872test "x$ac_build_alias" = x &&
4873  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4874ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4875  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4876
4877fi
4878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4879printf "%s\n" "$ac_cv_build" >&6; }
4880case $ac_cv_build in
4881*-*-*) ;;
4882*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4883esac
4884build=$ac_cv_build
4885ac_save_IFS=$IFS; IFS='-'
4886set x $ac_cv_build
4887shift
4888build_cpu=$1
4889build_vendor=$2
4890shift; shift
4891# Remember, the first character of IFS is used to create $*,
4892# except with old shells:
4893build_os=$*
4894IFS=$ac_save_IFS
4895case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4896
4897
4898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4899printf %s "checking host system type... " >&6; }
4900if test ${ac_cv_host+y}
4901then :
4902  printf %s "(cached) " >&6
4903else $as_nop
4904  if test "x$host_alias" = x; then
4905  ac_cv_host=$ac_cv_build
4906else
4907  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4908    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4909fi
4910
4911fi
4912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4913printf "%s\n" "$ac_cv_host" >&6; }
4914case $ac_cv_host in
4915*-*-*) ;;
4916*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4917esac
4918host=$ac_cv_host
4919ac_save_IFS=$IFS; IFS='-'
4920set x $ac_cv_host
4921shift
4922host_cpu=$1
4923host_vendor=$2
4924shift; shift
4925# Remember, the first character of IFS is used to create $*,
4926# except with old shells:
4927host_os=$*
4928IFS=$ac_save_IFS
4929case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4930
4931
4932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4933printf %s "checking for a sed that does not truncate output... " >&6; }
4934if test ${ac_cv_path_SED+y}
4935then :
4936  printf %s "(cached) " >&6
4937else $as_nop
4938            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4939     for ac_i in 1 2 3 4 5 6 7; do
4940       ac_script="$ac_script$as_nl$ac_script"
4941     done
4942     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4943     { ac_script=; unset ac_script;}
4944     if test -z "$SED"; then
4945  ac_path_SED_found=false
4946  # Loop through the user's path and test for each of PROGNAME-LIST
4947  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948for as_dir in $PATH
4949do
4950  IFS=$as_save_IFS
4951  case $as_dir in #(((
4952    '') as_dir=./ ;;
4953    */) ;;
4954    *) as_dir=$as_dir/ ;;
4955  esac
4956    for ac_prog in sed gsed
4957   do
4958    for ac_exec_ext in '' $ac_executable_extensions; do
4959      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4960      as_fn_executable_p "$ac_path_SED" || continue
4961# Check for GNU ac_path_SED and select it if it is found.
4962  # Check for GNU $ac_path_SED
4963case `"$ac_path_SED" --version 2>&1` in
4964*GNU*)
4965  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4966*)
4967  ac_count=0
4968  printf %s 0123456789 >"conftest.in"
4969  while :
4970  do
4971    cat "conftest.in" "conftest.in" >"conftest.tmp"
4972    mv "conftest.tmp" "conftest.in"
4973    cp "conftest.in" "conftest.nl"
4974    printf "%s\n" '' >> "conftest.nl"
4975    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4976    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4977    as_fn_arith $ac_count + 1 && ac_count=$as_val
4978    if test $ac_count -gt ${ac_path_SED_max-0}; then
4979      # Best one so far, save it but keep looking for a better one
4980      ac_cv_path_SED="$ac_path_SED"
4981      ac_path_SED_max=$ac_count
4982    fi
4983    # 10*(2^10) chars as input seems more than enough
4984    test $ac_count -gt 10 && break
4985  done
4986  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4987esac
4988
4989      $ac_path_SED_found && break 3
4990    done
4991  done
4992  done
4993IFS=$as_save_IFS
4994  if test -z "$ac_cv_path_SED"; then
4995    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4996  fi
4997else
4998  ac_cv_path_SED=$SED
4999fi
5000
5001fi
5002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5003printf "%s\n" "$ac_cv_path_SED" >&6; }
5004 SED="$ac_cv_path_SED"
5005  rm -f conftest.sed
5006
5007
5008
5009
5010
5011
5012# Check whether --enable-selective-werror was given.
5013if test ${enable_selective_werror+y}
5014then :
5015  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5016else $as_nop
5017  SELECTIVE_WERROR=yes
5018fi
5019
5020
5021
5022
5023
5024# -v is too short to test reliably with XORG_TESTSET_CFLAG
5025if test "x$SUNCC" = "xyes"; then
5026    BASE_CFLAGS="-v"
5027else
5028    BASE_CFLAGS=""
5029fi
5030
5031# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045xorg_testset_save_CFLAGS="$CFLAGS"
5046
5047if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5048	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5049	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5050printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5051if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5052then :
5053  printf %s "(cached) " >&6
5054else $as_nop
5055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056/* end confdefs.h.  */
5057int i;
5058_ACEOF
5059if ac_fn_c_try_compile "$LINENO"
5060then :
5061  xorg_cv_cc_flag_unknown_warning_option=yes
5062else $as_nop
5063  xorg_cv_cc_flag_unknown_warning_option=no
5064fi
5065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5066fi
5067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5068printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5069	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5070	CFLAGS="$xorg_testset_save_CFLAGS"
5071fi
5072
5073if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5074	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5075		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5076	fi
5077	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5078	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5079printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5080if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5081then :
5082  printf %s "(cached) " >&6
5083else $as_nop
5084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085/* end confdefs.h.  */
5086int i;
5087_ACEOF
5088if ac_fn_c_try_compile "$LINENO"
5089then :
5090  xorg_cv_cc_flag_unused_command_line_argument=yes
5091else $as_nop
5092  xorg_cv_cc_flag_unused_command_line_argument=no
5093fi
5094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5095fi
5096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5097printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5098	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5099	CFLAGS="$xorg_testset_save_CFLAGS"
5100fi
5101
5102found="no"
5103
5104	if test $found = "no" ; then
5105		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5106			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5107		fi
5108
5109		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5110			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5111		fi
5112
5113		CFLAGS="$CFLAGS -Wall"
5114
5115		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5116printf %s "checking if $CC supports -Wall... " >&6; }
5117		cacheid=xorg_cv_cc_flag__Wall
5118		if eval test \${$cacheid+y}
5119then :
5120  printf %s "(cached) " >&6
5121else $as_nop
5122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123/* end confdefs.h.  */
5124int i;
5125int
5126main (void)
5127{
5128
5129  ;
5130  return 0;
5131}
5132_ACEOF
5133if ac_fn_c_try_link "$LINENO"
5134then :
5135  eval $cacheid=yes
5136else $as_nop
5137  eval $cacheid=no
5138fi
5139rm -f core conftest.err conftest.$ac_objext conftest.beam \
5140    conftest$ac_exeext conftest.$ac_ext
5141fi
5142
5143
5144		CFLAGS="$xorg_testset_save_CFLAGS"
5145
5146		eval supported=\$$cacheid
5147		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5148printf "%s\n" "$supported" >&6; }
5149		if test "$supported" = "yes" ; then
5150			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5151			found="yes"
5152		fi
5153	fi
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169xorg_testset_save_CFLAGS="$CFLAGS"
5170
5171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5172	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5173	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5174printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5175if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5176then :
5177  printf %s "(cached) " >&6
5178else $as_nop
5179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180/* end confdefs.h.  */
5181int i;
5182_ACEOF
5183if ac_fn_c_try_compile "$LINENO"
5184then :
5185  xorg_cv_cc_flag_unknown_warning_option=yes
5186else $as_nop
5187  xorg_cv_cc_flag_unknown_warning_option=no
5188fi
5189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5190fi
5191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5192printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5193	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5194	CFLAGS="$xorg_testset_save_CFLAGS"
5195fi
5196
5197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5198	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5199		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5200	fi
5201	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5202	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5203printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5204if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5205then :
5206  printf %s "(cached) " >&6
5207else $as_nop
5208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5209/* end confdefs.h.  */
5210int i;
5211_ACEOF
5212if ac_fn_c_try_compile "$LINENO"
5213then :
5214  xorg_cv_cc_flag_unused_command_line_argument=yes
5215else $as_nop
5216  xorg_cv_cc_flag_unused_command_line_argument=no
5217fi
5218rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5219fi
5220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5221printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5222	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5223	CFLAGS="$xorg_testset_save_CFLAGS"
5224fi
5225
5226found="no"
5227
5228	if test $found = "no" ; then
5229		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5230			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5231		fi
5232
5233		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5234			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5235		fi
5236
5237		CFLAGS="$CFLAGS -Wpointer-arith"
5238
5239		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5240printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5241		cacheid=xorg_cv_cc_flag__Wpointer_arith
5242		if eval test \${$cacheid+y}
5243then :
5244  printf %s "(cached) " >&6
5245else $as_nop
5246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247/* end confdefs.h.  */
5248int i;
5249int
5250main (void)
5251{
5252
5253  ;
5254  return 0;
5255}
5256_ACEOF
5257if ac_fn_c_try_link "$LINENO"
5258then :
5259  eval $cacheid=yes
5260else $as_nop
5261  eval $cacheid=no
5262fi
5263rm -f core conftest.err conftest.$ac_objext conftest.beam \
5264    conftest$ac_exeext conftest.$ac_ext
5265fi
5266
5267
5268		CFLAGS="$xorg_testset_save_CFLAGS"
5269
5270		eval supported=\$$cacheid
5271		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5272printf "%s\n" "$supported" >&6; }
5273		if test "$supported" = "yes" ; then
5274			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5275			found="yes"
5276		fi
5277	fi
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293xorg_testset_save_CFLAGS="$CFLAGS"
5294
5295if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5296	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5297	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5298printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5299if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5300then :
5301  printf %s "(cached) " >&6
5302else $as_nop
5303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304/* end confdefs.h.  */
5305int i;
5306_ACEOF
5307if ac_fn_c_try_compile "$LINENO"
5308then :
5309  xorg_cv_cc_flag_unknown_warning_option=yes
5310else $as_nop
5311  xorg_cv_cc_flag_unknown_warning_option=no
5312fi
5313rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5314fi
5315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5316printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5317	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5318	CFLAGS="$xorg_testset_save_CFLAGS"
5319fi
5320
5321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5322	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5323		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5324	fi
5325	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5326	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5327printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5328if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5329then :
5330  printf %s "(cached) " >&6
5331else $as_nop
5332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333/* end confdefs.h.  */
5334int i;
5335_ACEOF
5336if ac_fn_c_try_compile "$LINENO"
5337then :
5338  xorg_cv_cc_flag_unused_command_line_argument=yes
5339else $as_nop
5340  xorg_cv_cc_flag_unused_command_line_argument=no
5341fi
5342rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5343fi
5344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5345printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5346	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5347	CFLAGS="$xorg_testset_save_CFLAGS"
5348fi
5349
5350found="no"
5351
5352	if test $found = "no" ; then
5353		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5354			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5355		fi
5356
5357		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5358			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5359		fi
5360
5361		CFLAGS="$CFLAGS -Wmissing-declarations"
5362
5363		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5364printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5365		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5366		if eval test \${$cacheid+y}
5367then :
5368  printf %s "(cached) " >&6
5369else $as_nop
5370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371/* end confdefs.h.  */
5372int i;
5373int
5374main (void)
5375{
5376
5377  ;
5378  return 0;
5379}
5380_ACEOF
5381if ac_fn_c_try_link "$LINENO"
5382then :
5383  eval $cacheid=yes
5384else $as_nop
5385  eval $cacheid=no
5386fi
5387rm -f core conftest.err conftest.$ac_objext conftest.beam \
5388    conftest$ac_exeext conftest.$ac_ext
5389fi
5390
5391
5392		CFLAGS="$xorg_testset_save_CFLAGS"
5393
5394		eval supported=\$$cacheid
5395		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5396printf "%s\n" "$supported" >&6; }
5397		if test "$supported" = "yes" ; then
5398			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5399			found="yes"
5400		fi
5401	fi
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417xorg_testset_save_CFLAGS="$CFLAGS"
5418
5419if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5420	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5421	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5422printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5423if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5424then :
5425  printf %s "(cached) " >&6
5426else $as_nop
5427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428/* end confdefs.h.  */
5429int i;
5430_ACEOF
5431if ac_fn_c_try_compile "$LINENO"
5432then :
5433  xorg_cv_cc_flag_unknown_warning_option=yes
5434else $as_nop
5435  xorg_cv_cc_flag_unknown_warning_option=no
5436fi
5437rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5438fi
5439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5440printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5441	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5442	CFLAGS="$xorg_testset_save_CFLAGS"
5443fi
5444
5445if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5446	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5447		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5448	fi
5449	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5450	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5451printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5452if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5453then :
5454  printf %s "(cached) " >&6
5455else $as_nop
5456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457/* end confdefs.h.  */
5458int i;
5459_ACEOF
5460if ac_fn_c_try_compile "$LINENO"
5461then :
5462  xorg_cv_cc_flag_unused_command_line_argument=yes
5463else $as_nop
5464  xorg_cv_cc_flag_unused_command_line_argument=no
5465fi
5466rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5467fi
5468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5469printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5470	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5471	CFLAGS="$xorg_testset_save_CFLAGS"
5472fi
5473
5474found="no"
5475
5476	if test $found = "no" ; then
5477		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5478			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5479		fi
5480
5481		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5482			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5483		fi
5484
5485		CFLAGS="$CFLAGS -Wformat=2"
5486
5487		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5488printf %s "checking if $CC supports -Wformat=2... " >&6; }
5489		cacheid=xorg_cv_cc_flag__Wformat_2
5490		if eval test \${$cacheid+y}
5491then :
5492  printf %s "(cached) " >&6
5493else $as_nop
5494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495/* end confdefs.h.  */
5496int i;
5497int
5498main (void)
5499{
5500
5501  ;
5502  return 0;
5503}
5504_ACEOF
5505if ac_fn_c_try_link "$LINENO"
5506then :
5507  eval $cacheid=yes
5508else $as_nop
5509  eval $cacheid=no
5510fi
5511rm -f core conftest.err conftest.$ac_objext conftest.beam \
5512    conftest$ac_exeext conftest.$ac_ext
5513fi
5514
5515
5516		CFLAGS="$xorg_testset_save_CFLAGS"
5517
5518		eval supported=\$$cacheid
5519		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5520printf "%s\n" "$supported" >&6; }
5521		if test "$supported" = "yes" ; then
5522			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5523			found="yes"
5524		fi
5525	fi
5526
5527	if test $found = "no" ; then
5528		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5529			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5530		fi
5531
5532		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5533			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5534		fi
5535
5536		CFLAGS="$CFLAGS -Wformat"
5537
5538		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5539printf %s "checking if $CC supports -Wformat... " >&6; }
5540		cacheid=xorg_cv_cc_flag__Wformat
5541		if eval test \${$cacheid+y}
5542then :
5543  printf %s "(cached) " >&6
5544else $as_nop
5545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546/* end confdefs.h.  */
5547int i;
5548int
5549main (void)
5550{
5551
5552  ;
5553  return 0;
5554}
5555_ACEOF
5556if ac_fn_c_try_link "$LINENO"
5557then :
5558  eval $cacheid=yes
5559else $as_nop
5560  eval $cacheid=no
5561fi
5562rm -f core conftest.err conftest.$ac_objext conftest.beam \
5563    conftest$ac_exeext conftest.$ac_ext
5564fi
5565
5566
5567		CFLAGS="$xorg_testset_save_CFLAGS"
5568
5569		eval supported=\$$cacheid
5570		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5571printf "%s\n" "$supported" >&6; }
5572		if test "$supported" = "yes" ; then
5573			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5574			found="yes"
5575		fi
5576	fi
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594xorg_testset_save_CFLAGS="$CFLAGS"
5595
5596if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5597	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5598	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5599printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5600if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5601then :
5602  printf %s "(cached) " >&6
5603else $as_nop
5604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605/* end confdefs.h.  */
5606int i;
5607_ACEOF
5608if ac_fn_c_try_compile "$LINENO"
5609then :
5610  xorg_cv_cc_flag_unknown_warning_option=yes
5611else $as_nop
5612  xorg_cv_cc_flag_unknown_warning_option=no
5613fi
5614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5615fi
5616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5617printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5618	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5619	CFLAGS="$xorg_testset_save_CFLAGS"
5620fi
5621
5622if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5623	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5624		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5625	fi
5626	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5627	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5628printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5629if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5630then :
5631  printf %s "(cached) " >&6
5632else $as_nop
5633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634/* end confdefs.h.  */
5635int i;
5636_ACEOF
5637if ac_fn_c_try_compile "$LINENO"
5638then :
5639  xorg_cv_cc_flag_unused_command_line_argument=yes
5640else $as_nop
5641  xorg_cv_cc_flag_unused_command_line_argument=no
5642fi
5643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5644fi
5645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5646printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5647	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5648	CFLAGS="$xorg_testset_save_CFLAGS"
5649fi
5650
5651found="no"
5652
5653	if test $found = "no" ; then
5654		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5655			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5656		fi
5657
5658		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5659			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5660		fi
5661
5662		CFLAGS="$CFLAGS -Wstrict-prototypes"
5663
5664		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5665printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5666		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5667		if eval test \${$cacheid+y}
5668then :
5669  printf %s "(cached) " >&6
5670else $as_nop
5671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672/* end confdefs.h.  */
5673int i;
5674int
5675main (void)
5676{
5677
5678  ;
5679  return 0;
5680}
5681_ACEOF
5682if ac_fn_c_try_link "$LINENO"
5683then :
5684  eval $cacheid=yes
5685else $as_nop
5686  eval $cacheid=no
5687fi
5688rm -f core conftest.err conftest.$ac_objext conftest.beam \
5689    conftest$ac_exeext conftest.$ac_ext
5690fi
5691
5692
5693		CFLAGS="$xorg_testset_save_CFLAGS"
5694
5695		eval supported=\$$cacheid
5696		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5697printf "%s\n" "$supported" >&6; }
5698		if test "$supported" = "yes" ; then
5699			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5700			found="yes"
5701		fi
5702	fi
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718xorg_testset_save_CFLAGS="$CFLAGS"
5719
5720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5721	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5722	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5723printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5724if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5725then :
5726  printf %s "(cached) " >&6
5727else $as_nop
5728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729/* end confdefs.h.  */
5730int i;
5731_ACEOF
5732if ac_fn_c_try_compile "$LINENO"
5733then :
5734  xorg_cv_cc_flag_unknown_warning_option=yes
5735else $as_nop
5736  xorg_cv_cc_flag_unknown_warning_option=no
5737fi
5738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5739fi
5740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5741printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5742	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5743	CFLAGS="$xorg_testset_save_CFLAGS"
5744fi
5745
5746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5747	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5748		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5749	fi
5750	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5751	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5752printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5753if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5754then :
5755  printf %s "(cached) " >&6
5756else $as_nop
5757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758/* end confdefs.h.  */
5759int i;
5760_ACEOF
5761if ac_fn_c_try_compile "$LINENO"
5762then :
5763  xorg_cv_cc_flag_unused_command_line_argument=yes
5764else $as_nop
5765  xorg_cv_cc_flag_unused_command_line_argument=no
5766fi
5767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5768fi
5769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5770printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5771	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5772	CFLAGS="$xorg_testset_save_CFLAGS"
5773fi
5774
5775found="no"
5776
5777	if test $found = "no" ; then
5778		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5779			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5780		fi
5781
5782		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5783			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5784		fi
5785
5786		CFLAGS="$CFLAGS -Wmissing-prototypes"
5787
5788		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5789printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5790		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5791		if eval test \${$cacheid+y}
5792then :
5793  printf %s "(cached) " >&6
5794else $as_nop
5795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796/* end confdefs.h.  */
5797int i;
5798int
5799main (void)
5800{
5801
5802  ;
5803  return 0;
5804}
5805_ACEOF
5806if ac_fn_c_try_link "$LINENO"
5807then :
5808  eval $cacheid=yes
5809else $as_nop
5810  eval $cacheid=no
5811fi
5812rm -f core conftest.err conftest.$ac_objext conftest.beam \
5813    conftest$ac_exeext conftest.$ac_ext
5814fi
5815
5816
5817		CFLAGS="$xorg_testset_save_CFLAGS"
5818
5819		eval supported=\$$cacheid
5820		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5821printf "%s\n" "$supported" >&6; }
5822		if test "$supported" = "yes" ; then
5823			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5824			found="yes"
5825		fi
5826	fi
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842xorg_testset_save_CFLAGS="$CFLAGS"
5843
5844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5845	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5846	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5847printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5848if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5849then :
5850  printf %s "(cached) " >&6
5851else $as_nop
5852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853/* end confdefs.h.  */
5854int i;
5855_ACEOF
5856if ac_fn_c_try_compile "$LINENO"
5857then :
5858  xorg_cv_cc_flag_unknown_warning_option=yes
5859else $as_nop
5860  xorg_cv_cc_flag_unknown_warning_option=no
5861fi
5862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5863fi
5864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5865printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5866	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5867	CFLAGS="$xorg_testset_save_CFLAGS"
5868fi
5869
5870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5871	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5872		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5873	fi
5874	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5875	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5876printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5877if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5878then :
5879  printf %s "(cached) " >&6
5880else $as_nop
5881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882/* end confdefs.h.  */
5883int i;
5884_ACEOF
5885if ac_fn_c_try_compile "$LINENO"
5886then :
5887  xorg_cv_cc_flag_unused_command_line_argument=yes
5888else $as_nop
5889  xorg_cv_cc_flag_unused_command_line_argument=no
5890fi
5891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5892fi
5893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5894printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5895	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5896	CFLAGS="$xorg_testset_save_CFLAGS"
5897fi
5898
5899found="no"
5900
5901	if test $found = "no" ; then
5902		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5903			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5904		fi
5905
5906		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5907			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5908		fi
5909
5910		CFLAGS="$CFLAGS -Wnested-externs"
5911
5912		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5913printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5914		cacheid=xorg_cv_cc_flag__Wnested_externs
5915		if eval test \${$cacheid+y}
5916then :
5917  printf %s "(cached) " >&6
5918else $as_nop
5919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920/* end confdefs.h.  */
5921int i;
5922int
5923main (void)
5924{
5925
5926  ;
5927  return 0;
5928}
5929_ACEOF
5930if ac_fn_c_try_link "$LINENO"
5931then :
5932  eval $cacheid=yes
5933else $as_nop
5934  eval $cacheid=no
5935fi
5936rm -f core conftest.err conftest.$ac_objext conftest.beam \
5937    conftest$ac_exeext conftest.$ac_ext
5938fi
5939
5940
5941		CFLAGS="$xorg_testset_save_CFLAGS"
5942
5943		eval supported=\$$cacheid
5944		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5945printf "%s\n" "$supported" >&6; }
5946		if test "$supported" = "yes" ; then
5947			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5948			found="yes"
5949		fi
5950	fi
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966xorg_testset_save_CFLAGS="$CFLAGS"
5967
5968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5969	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5970	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5971printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5972if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5973then :
5974  printf %s "(cached) " >&6
5975else $as_nop
5976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977/* end confdefs.h.  */
5978int i;
5979_ACEOF
5980if ac_fn_c_try_compile "$LINENO"
5981then :
5982  xorg_cv_cc_flag_unknown_warning_option=yes
5983else $as_nop
5984  xorg_cv_cc_flag_unknown_warning_option=no
5985fi
5986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5987fi
5988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5989printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5990	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5991	CFLAGS="$xorg_testset_save_CFLAGS"
5992fi
5993
5994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5995	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5996		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5997	fi
5998	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5999	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6000printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6001if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6002then :
6003  printf %s "(cached) " >&6
6004else $as_nop
6005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006/* end confdefs.h.  */
6007int i;
6008_ACEOF
6009if ac_fn_c_try_compile "$LINENO"
6010then :
6011  xorg_cv_cc_flag_unused_command_line_argument=yes
6012else $as_nop
6013  xorg_cv_cc_flag_unused_command_line_argument=no
6014fi
6015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6016fi
6017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6018printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6019	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6020	CFLAGS="$xorg_testset_save_CFLAGS"
6021fi
6022
6023found="no"
6024
6025	if test $found = "no" ; then
6026		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6027			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6028		fi
6029
6030		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6031			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6032		fi
6033
6034		CFLAGS="$CFLAGS -Wbad-function-cast"
6035
6036		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6037printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6038		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6039		if eval test \${$cacheid+y}
6040then :
6041  printf %s "(cached) " >&6
6042else $as_nop
6043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044/* end confdefs.h.  */
6045int i;
6046int
6047main (void)
6048{
6049
6050  ;
6051  return 0;
6052}
6053_ACEOF
6054if ac_fn_c_try_link "$LINENO"
6055then :
6056  eval $cacheid=yes
6057else $as_nop
6058  eval $cacheid=no
6059fi
6060rm -f core conftest.err conftest.$ac_objext conftest.beam \
6061    conftest$ac_exeext conftest.$ac_ext
6062fi
6063
6064
6065		CFLAGS="$xorg_testset_save_CFLAGS"
6066
6067		eval supported=\$$cacheid
6068		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6069printf "%s\n" "$supported" >&6; }
6070		if test "$supported" = "yes" ; then
6071			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6072			found="yes"
6073		fi
6074	fi
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090xorg_testset_save_CFLAGS="$CFLAGS"
6091
6092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6093	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6094	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6095printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6096if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6097then :
6098  printf %s "(cached) " >&6
6099else $as_nop
6100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101/* end confdefs.h.  */
6102int i;
6103_ACEOF
6104if ac_fn_c_try_compile "$LINENO"
6105then :
6106  xorg_cv_cc_flag_unknown_warning_option=yes
6107else $as_nop
6108  xorg_cv_cc_flag_unknown_warning_option=no
6109fi
6110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6111fi
6112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6113printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6114	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6115	CFLAGS="$xorg_testset_save_CFLAGS"
6116fi
6117
6118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6119	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6120		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6121	fi
6122	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6123	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6124printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6125if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6126then :
6127  printf %s "(cached) " >&6
6128else $as_nop
6129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130/* end confdefs.h.  */
6131int i;
6132_ACEOF
6133if ac_fn_c_try_compile "$LINENO"
6134then :
6135  xorg_cv_cc_flag_unused_command_line_argument=yes
6136else $as_nop
6137  xorg_cv_cc_flag_unused_command_line_argument=no
6138fi
6139rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6140fi
6141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6142printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6143	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6144	CFLAGS="$xorg_testset_save_CFLAGS"
6145fi
6146
6147found="no"
6148
6149	if test $found = "no" ; then
6150		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6151			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6152		fi
6153
6154		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6155			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6156		fi
6157
6158		CFLAGS="$CFLAGS -Wold-style-definition"
6159
6160		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6161printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6162		cacheid=xorg_cv_cc_flag__Wold_style_definition
6163		if eval test \${$cacheid+y}
6164then :
6165  printf %s "(cached) " >&6
6166else $as_nop
6167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168/* end confdefs.h.  */
6169int i;
6170int
6171main (void)
6172{
6173
6174  ;
6175  return 0;
6176}
6177_ACEOF
6178if ac_fn_c_try_link "$LINENO"
6179then :
6180  eval $cacheid=yes
6181else $as_nop
6182  eval $cacheid=no
6183fi
6184rm -f core conftest.err conftest.$ac_objext conftest.beam \
6185    conftest$ac_exeext conftest.$ac_ext
6186fi
6187
6188
6189		CFLAGS="$xorg_testset_save_CFLAGS"
6190
6191		eval supported=\$$cacheid
6192		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6193printf "%s\n" "$supported" >&6; }
6194		if test "$supported" = "yes" ; then
6195			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6196			found="yes"
6197		fi
6198	fi
6199
6200	if test $found = "no" ; then
6201		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6202			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6203		fi
6204
6205		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6206			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6207		fi
6208
6209		CFLAGS="$CFLAGS -fd"
6210
6211		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6212printf %s "checking if $CC supports -fd... " >&6; }
6213		cacheid=xorg_cv_cc_flag__fd
6214		if eval test \${$cacheid+y}
6215then :
6216  printf %s "(cached) " >&6
6217else $as_nop
6218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219/* end confdefs.h.  */
6220int i;
6221int
6222main (void)
6223{
6224
6225  ;
6226  return 0;
6227}
6228_ACEOF
6229if ac_fn_c_try_link "$LINENO"
6230then :
6231  eval $cacheid=yes
6232else $as_nop
6233  eval $cacheid=no
6234fi
6235rm -f core conftest.err conftest.$ac_objext conftest.beam \
6236    conftest$ac_exeext conftest.$ac_ext
6237fi
6238
6239
6240		CFLAGS="$xorg_testset_save_CFLAGS"
6241
6242		eval supported=\$$cacheid
6243		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6244printf "%s\n" "$supported" >&6; }
6245		if test "$supported" = "yes" ; then
6246			BASE_CFLAGS="$BASE_CFLAGS -fd"
6247			found="yes"
6248		fi
6249	fi
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265xorg_testset_save_CFLAGS="$CFLAGS"
6266
6267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6268	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6269	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6270printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6271if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6272then :
6273  printf %s "(cached) " >&6
6274else $as_nop
6275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276/* end confdefs.h.  */
6277int i;
6278_ACEOF
6279if ac_fn_c_try_compile "$LINENO"
6280then :
6281  xorg_cv_cc_flag_unknown_warning_option=yes
6282else $as_nop
6283  xorg_cv_cc_flag_unknown_warning_option=no
6284fi
6285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6286fi
6287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6288printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6289	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6290	CFLAGS="$xorg_testset_save_CFLAGS"
6291fi
6292
6293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6294	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6295		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6296	fi
6297	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6298	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6299printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6300if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6301then :
6302  printf %s "(cached) " >&6
6303else $as_nop
6304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305/* end confdefs.h.  */
6306int i;
6307_ACEOF
6308if ac_fn_c_try_compile "$LINENO"
6309then :
6310  xorg_cv_cc_flag_unused_command_line_argument=yes
6311else $as_nop
6312  xorg_cv_cc_flag_unused_command_line_argument=no
6313fi
6314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6315fi
6316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6317printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6318	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6319	CFLAGS="$xorg_testset_save_CFLAGS"
6320fi
6321
6322found="no"
6323
6324	if test $found = "no" ; then
6325		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6326			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6327		fi
6328
6329		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6330			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6331		fi
6332
6333		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6334
6335		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6336printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6337		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6338		if eval test \${$cacheid+y}
6339then :
6340  printf %s "(cached) " >&6
6341else $as_nop
6342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343/* end confdefs.h.  */
6344int i;
6345int
6346main (void)
6347{
6348
6349  ;
6350  return 0;
6351}
6352_ACEOF
6353if ac_fn_c_try_link "$LINENO"
6354then :
6355  eval $cacheid=yes
6356else $as_nop
6357  eval $cacheid=no
6358fi
6359rm -f core conftest.err conftest.$ac_objext conftest.beam \
6360    conftest$ac_exeext conftest.$ac_ext
6361fi
6362
6363
6364		CFLAGS="$xorg_testset_save_CFLAGS"
6365
6366		eval supported=\$$cacheid
6367		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6368printf "%s\n" "$supported" >&6; }
6369		if test "$supported" = "yes" ; then
6370			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6371			found="yes"
6372		fi
6373	fi
6374
6375
6376
6377
6378
6379# This chunk adds additional warnings that could catch undesired effects.
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393xorg_testset_save_CFLAGS="$CFLAGS"
6394
6395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6396	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6397	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6398printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6399if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6400then :
6401  printf %s "(cached) " >&6
6402else $as_nop
6403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404/* end confdefs.h.  */
6405int i;
6406_ACEOF
6407if ac_fn_c_try_compile "$LINENO"
6408then :
6409  xorg_cv_cc_flag_unknown_warning_option=yes
6410else $as_nop
6411  xorg_cv_cc_flag_unknown_warning_option=no
6412fi
6413rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6414fi
6415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6416printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6417	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6418	CFLAGS="$xorg_testset_save_CFLAGS"
6419fi
6420
6421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6422	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6423		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6424	fi
6425	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6426	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6427printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6428if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6429then :
6430  printf %s "(cached) " >&6
6431else $as_nop
6432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433/* end confdefs.h.  */
6434int i;
6435_ACEOF
6436if ac_fn_c_try_compile "$LINENO"
6437then :
6438  xorg_cv_cc_flag_unused_command_line_argument=yes
6439else $as_nop
6440  xorg_cv_cc_flag_unused_command_line_argument=no
6441fi
6442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6443fi
6444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6445printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6446	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6447	CFLAGS="$xorg_testset_save_CFLAGS"
6448fi
6449
6450found="no"
6451
6452	if test $found = "no" ; then
6453		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6454			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6455		fi
6456
6457		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6458			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6459		fi
6460
6461		CFLAGS="$CFLAGS -Wunused"
6462
6463		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6464printf %s "checking if $CC supports -Wunused... " >&6; }
6465		cacheid=xorg_cv_cc_flag__Wunused
6466		if eval test \${$cacheid+y}
6467then :
6468  printf %s "(cached) " >&6
6469else $as_nop
6470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471/* end confdefs.h.  */
6472int i;
6473int
6474main (void)
6475{
6476
6477  ;
6478  return 0;
6479}
6480_ACEOF
6481if ac_fn_c_try_link "$LINENO"
6482then :
6483  eval $cacheid=yes
6484else $as_nop
6485  eval $cacheid=no
6486fi
6487rm -f core conftest.err conftest.$ac_objext conftest.beam \
6488    conftest$ac_exeext conftest.$ac_ext
6489fi
6490
6491
6492		CFLAGS="$xorg_testset_save_CFLAGS"
6493
6494		eval supported=\$$cacheid
6495		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6496printf "%s\n" "$supported" >&6; }
6497		if test "$supported" = "yes" ; then
6498			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6499			found="yes"
6500		fi
6501	fi
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517xorg_testset_save_CFLAGS="$CFLAGS"
6518
6519if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6520	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6521	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6522printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6523if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6524then :
6525  printf %s "(cached) " >&6
6526else $as_nop
6527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528/* end confdefs.h.  */
6529int i;
6530_ACEOF
6531if ac_fn_c_try_compile "$LINENO"
6532then :
6533  xorg_cv_cc_flag_unknown_warning_option=yes
6534else $as_nop
6535  xorg_cv_cc_flag_unknown_warning_option=no
6536fi
6537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6538fi
6539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6540printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6541	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6542	CFLAGS="$xorg_testset_save_CFLAGS"
6543fi
6544
6545if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6546	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6547		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6548	fi
6549	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6550	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6551printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6552if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6553then :
6554  printf %s "(cached) " >&6
6555else $as_nop
6556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557/* end confdefs.h.  */
6558int i;
6559_ACEOF
6560if ac_fn_c_try_compile "$LINENO"
6561then :
6562  xorg_cv_cc_flag_unused_command_line_argument=yes
6563else $as_nop
6564  xorg_cv_cc_flag_unused_command_line_argument=no
6565fi
6566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6567fi
6568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6569printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6570	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6571	CFLAGS="$xorg_testset_save_CFLAGS"
6572fi
6573
6574found="no"
6575
6576	if test $found = "no" ; then
6577		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6578			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6579		fi
6580
6581		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6582			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6583		fi
6584
6585		CFLAGS="$CFLAGS -Wuninitialized"
6586
6587		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6588printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6589		cacheid=xorg_cv_cc_flag__Wuninitialized
6590		if eval test \${$cacheid+y}
6591then :
6592  printf %s "(cached) " >&6
6593else $as_nop
6594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595/* end confdefs.h.  */
6596int i;
6597int
6598main (void)
6599{
6600
6601  ;
6602  return 0;
6603}
6604_ACEOF
6605if ac_fn_c_try_link "$LINENO"
6606then :
6607  eval $cacheid=yes
6608else $as_nop
6609  eval $cacheid=no
6610fi
6611rm -f core conftest.err conftest.$ac_objext conftest.beam \
6612    conftest$ac_exeext conftest.$ac_ext
6613fi
6614
6615
6616		CFLAGS="$xorg_testset_save_CFLAGS"
6617
6618		eval supported=\$$cacheid
6619		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6620printf "%s\n" "$supported" >&6; }
6621		if test "$supported" = "yes" ; then
6622			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6623			found="yes"
6624		fi
6625	fi
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641xorg_testset_save_CFLAGS="$CFLAGS"
6642
6643if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6644	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6645	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6646printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6647if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6648then :
6649  printf %s "(cached) " >&6
6650else $as_nop
6651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652/* end confdefs.h.  */
6653int i;
6654_ACEOF
6655if ac_fn_c_try_compile "$LINENO"
6656then :
6657  xorg_cv_cc_flag_unknown_warning_option=yes
6658else $as_nop
6659  xorg_cv_cc_flag_unknown_warning_option=no
6660fi
6661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6662fi
6663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6664printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6665	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6666	CFLAGS="$xorg_testset_save_CFLAGS"
6667fi
6668
6669if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6670	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6671		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6672	fi
6673	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6674	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6675printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6676if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6677then :
6678  printf %s "(cached) " >&6
6679else $as_nop
6680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681/* end confdefs.h.  */
6682int i;
6683_ACEOF
6684if ac_fn_c_try_compile "$LINENO"
6685then :
6686  xorg_cv_cc_flag_unused_command_line_argument=yes
6687else $as_nop
6688  xorg_cv_cc_flag_unused_command_line_argument=no
6689fi
6690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6691fi
6692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6693printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6694	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6695	CFLAGS="$xorg_testset_save_CFLAGS"
6696fi
6697
6698found="no"
6699
6700	if test $found = "no" ; then
6701		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6702			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6703		fi
6704
6705		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6706			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6707		fi
6708
6709		CFLAGS="$CFLAGS -Wshadow"
6710
6711		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6712printf %s "checking if $CC supports -Wshadow... " >&6; }
6713		cacheid=xorg_cv_cc_flag__Wshadow
6714		if eval test \${$cacheid+y}
6715then :
6716  printf %s "(cached) " >&6
6717else $as_nop
6718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719/* end confdefs.h.  */
6720int i;
6721int
6722main (void)
6723{
6724
6725  ;
6726  return 0;
6727}
6728_ACEOF
6729if ac_fn_c_try_link "$LINENO"
6730then :
6731  eval $cacheid=yes
6732else $as_nop
6733  eval $cacheid=no
6734fi
6735rm -f core conftest.err conftest.$ac_objext conftest.beam \
6736    conftest$ac_exeext conftest.$ac_ext
6737fi
6738
6739
6740		CFLAGS="$xorg_testset_save_CFLAGS"
6741
6742		eval supported=\$$cacheid
6743		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6744printf "%s\n" "$supported" >&6; }
6745		if test "$supported" = "yes" ; then
6746			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6747			found="yes"
6748		fi
6749	fi
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765xorg_testset_save_CFLAGS="$CFLAGS"
6766
6767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6768	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6769	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6770printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6771if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6772then :
6773  printf %s "(cached) " >&6
6774else $as_nop
6775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776/* end confdefs.h.  */
6777int i;
6778_ACEOF
6779if ac_fn_c_try_compile "$LINENO"
6780then :
6781  xorg_cv_cc_flag_unknown_warning_option=yes
6782else $as_nop
6783  xorg_cv_cc_flag_unknown_warning_option=no
6784fi
6785rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6786fi
6787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6788printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6789	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6790	CFLAGS="$xorg_testset_save_CFLAGS"
6791fi
6792
6793if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6794	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6795		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6796	fi
6797	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6798	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6799printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6800if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6801then :
6802  printf %s "(cached) " >&6
6803else $as_nop
6804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6805/* end confdefs.h.  */
6806int i;
6807_ACEOF
6808if ac_fn_c_try_compile "$LINENO"
6809then :
6810  xorg_cv_cc_flag_unused_command_line_argument=yes
6811else $as_nop
6812  xorg_cv_cc_flag_unused_command_line_argument=no
6813fi
6814rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6815fi
6816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6817printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6818	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6819	CFLAGS="$xorg_testset_save_CFLAGS"
6820fi
6821
6822found="no"
6823
6824	if test $found = "no" ; then
6825		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6826			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6827		fi
6828
6829		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6830			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6831		fi
6832
6833		CFLAGS="$CFLAGS -Wmissing-noreturn"
6834
6835		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6836printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6837		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6838		if eval test \${$cacheid+y}
6839then :
6840  printf %s "(cached) " >&6
6841else $as_nop
6842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843/* end confdefs.h.  */
6844int i;
6845int
6846main (void)
6847{
6848
6849  ;
6850  return 0;
6851}
6852_ACEOF
6853if ac_fn_c_try_link "$LINENO"
6854then :
6855  eval $cacheid=yes
6856else $as_nop
6857  eval $cacheid=no
6858fi
6859rm -f core conftest.err conftest.$ac_objext conftest.beam \
6860    conftest$ac_exeext conftest.$ac_ext
6861fi
6862
6863
6864		CFLAGS="$xorg_testset_save_CFLAGS"
6865
6866		eval supported=\$$cacheid
6867		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6868printf "%s\n" "$supported" >&6; }
6869		if test "$supported" = "yes" ; then
6870			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6871			found="yes"
6872		fi
6873	fi
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889xorg_testset_save_CFLAGS="$CFLAGS"
6890
6891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6892	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6893	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6894printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6895if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6896then :
6897  printf %s "(cached) " >&6
6898else $as_nop
6899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900/* end confdefs.h.  */
6901int i;
6902_ACEOF
6903if ac_fn_c_try_compile "$LINENO"
6904then :
6905  xorg_cv_cc_flag_unknown_warning_option=yes
6906else $as_nop
6907  xorg_cv_cc_flag_unknown_warning_option=no
6908fi
6909rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6910fi
6911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6912printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6913	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6914	CFLAGS="$xorg_testset_save_CFLAGS"
6915fi
6916
6917if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6918	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6919		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6920	fi
6921	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6922	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6923printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6924if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6925then :
6926  printf %s "(cached) " >&6
6927else $as_nop
6928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929/* end confdefs.h.  */
6930int i;
6931_ACEOF
6932if ac_fn_c_try_compile "$LINENO"
6933then :
6934  xorg_cv_cc_flag_unused_command_line_argument=yes
6935else $as_nop
6936  xorg_cv_cc_flag_unused_command_line_argument=no
6937fi
6938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6939fi
6940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6941printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6942	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6943	CFLAGS="$xorg_testset_save_CFLAGS"
6944fi
6945
6946found="no"
6947
6948	if test $found = "no" ; then
6949		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6950			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6951		fi
6952
6953		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6954			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6955		fi
6956
6957		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6958
6959		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6960printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6961		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6962		if eval test \${$cacheid+y}
6963then :
6964  printf %s "(cached) " >&6
6965else $as_nop
6966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967/* end confdefs.h.  */
6968int i;
6969int
6970main (void)
6971{
6972
6973  ;
6974  return 0;
6975}
6976_ACEOF
6977if ac_fn_c_try_link "$LINENO"
6978then :
6979  eval $cacheid=yes
6980else $as_nop
6981  eval $cacheid=no
6982fi
6983rm -f core conftest.err conftest.$ac_objext conftest.beam \
6984    conftest$ac_exeext conftest.$ac_ext
6985fi
6986
6987
6988		CFLAGS="$xorg_testset_save_CFLAGS"
6989
6990		eval supported=\$$cacheid
6991		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6992printf "%s\n" "$supported" >&6; }
6993		if test "$supported" = "yes" ; then
6994			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6995			found="yes"
6996		fi
6997	fi
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013xorg_testset_save_CFLAGS="$CFLAGS"
7014
7015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7016	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7017	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7018printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7019if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7020then :
7021  printf %s "(cached) " >&6
7022else $as_nop
7023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024/* end confdefs.h.  */
7025int i;
7026_ACEOF
7027if ac_fn_c_try_compile "$LINENO"
7028then :
7029  xorg_cv_cc_flag_unknown_warning_option=yes
7030else $as_nop
7031  xorg_cv_cc_flag_unknown_warning_option=no
7032fi
7033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7034fi
7035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7036printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7037	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7038	CFLAGS="$xorg_testset_save_CFLAGS"
7039fi
7040
7041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7042	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7043		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7044	fi
7045	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7046	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7047printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7048if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7049then :
7050  printf %s "(cached) " >&6
7051else $as_nop
7052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053/* end confdefs.h.  */
7054int i;
7055_ACEOF
7056if ac_fn_c_try_compile "$LINENO"
7057then :
7058  xorg_cv_cc_flag_unused_command_line_argument=yes
7059else $as_nop
7060  xorg_cv_cc_flag_unused_command_line_argument=no
7061fi
7062rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7063fi
7064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7065printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7066	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7067	CFLAGS="$xorg_testset_save_CFLAGS"
7068fi
7069
7070found="no"
7071
7072	if test $found = "no" ; then
7073		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7074			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7075		fi
7076
7077		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7078			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7079		fi
7080
7081		CFLAGS="$CFLAGS -Wredundant-decls"
7082
7083		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7084printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7085		cacheid=xorg_cv_cc_flag__Wredundant_decls
7086		if eval test \${$cacheid+y}
7087then :
7088  printf %s "(cached) " >&6
7089else $as_nop
7090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091/* end confdefs.h.  */
7092int i;
7093int
7094main (void)
7095{
7096
7097  ;
7098  return 0;
7099}
7100_ACEOF
7101if ac_fn_c_try_link "$LINENO"
7102then :
7103  eval $cacheid=yes
7104else $as_nop
7105  eval $cacheid=no
7106fi
7107rm -f core conftest.err conftest.$ac_objext conftest.beam \
7108    conftest$ac_exeext conftest.$ac_ext
7109fi
7110
7111
7112		CFLAGS="$xorg_testset_save_CFLAGS"
7113
7114		eval supported=\$$cacheid
7115		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7116printf "%s\n" "$supported" >&6; }
7117		if test "$supported" = "yes" ; then
7118			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7119			found="yes"
7120		fi
7121	fi
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137xorg_testset_save_CFLAGS="$CFLAGS"
7138
7139if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7140	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7141	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7142printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7143if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7144then :
7145  printf %s "(cached) " >&6
7146else $as_nop
7147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148/* end confdefs.h.  */
7149int i;
7150_ACEOF
7151if ac_fn_c_try_compile "$LINENO"
7152then :
7153  xorg_cv_cc_flag_unknown_warning_option=yes
7154else $as_nop
7155  xorg_cv_cc_flag_unknown_warning_option=no
7156fi
7157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7158fi
7159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7160printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7161	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7162	CFLAGS="$xorg_testset_save_CFLAGS"
7163fi
7164
7165if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7166	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7167		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7168	fi
7169	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7170	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7171printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7172if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7173then :
7174  printf %s "(cached) " >&6
7175else $as_nop
7176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7177/* end confdefs.h.  */
7178int i;
7179_ACEOF
7180if ac_fn_c_try_compile "$LINENO"
7181then :
7182  xorg_cv_cc_flag_unused_command_line_argument=yes
7183else $as_nop
7184  xorg_cv_cc_flag_unused_command_line_argument=no
7185fi
7186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7187fi
7188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7189printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7190	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7191	CFLAGS="$xorg_testset_save_CFLAGS"
7192fi
7193
7194found="no"
7195
7196	if test $found = "no" ; then
7197		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7198			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7199		fi
7200
7201		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7202			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7203		fi
7204
7205		CFLAGS="$CFLAGS -Wlogical-op"
7206
7207		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7208printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7209		cacheid=xorg_cv_cc_flag__Wlogical_op
7210		if eval test \${$cacheid+y}
7211then :
7212  printf %s "(cached) " >&6
7213else $as_nop
7214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215/* end confdefs.h.  */
7216int i;
7217int
7218main (void)
7219{
7220
7221  ;
7222  return 0;
7223}
7224_ACEOF
7225if ac_fn_c_try_link "$LINENO"
7226then :
7227  eval $cacheid=yes
7228else $as_nop
7229  eval $cacheid=no
7230fi
7231rm -f core conftest.err conftest.$ac_objext conftest.beam \
7232    conftest$ac_exeext conftest.$ac_ext
7233fi
7234
7235
7236		CFLAGS="$xorg_testset_save_CFLAGS"
7237
7238		eval supported=\$$cacheid
7239		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7240printf "%s\n" "$supported" >&6; }
7241		if test "$supported" = "yes" ; then
7242			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7243			found="yes"
7244		fi
7245	fi
7246
7247
7248
7249# These are currently disabled because they are noisy.  They will be enabled
7250# in the future once the codebase is sufficiently modernized to silence
7251# them.  For now, I don't want them to drown out the other warnings.
7252# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7253# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7254# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7255
7256# Turn some warnings into errors, so we don't accidently get successful builds
7257# when there are problems that should be fixed.
7258
7259if test "x$SELECTIVE_WERROR" = "xyes" ; then
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273xorg_testset_save_CFLAGS="$CFLAGS"
7274
7275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7276	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7277	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7278printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7279if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7280then :
7281  printf %s "(cached) " >&6
7282else $as_nop
7283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284/* end confdefs.h.  */
7285int i;
7286_ACEOF
7287if ac_fn_c_try_compile "$LINENO"
7288then :
7289  xorg_cv_cc_flag_unknown_warning_option=yes
7290else $as_nop
7291  xorg_cv_cc_flag_unknown_warning_option=no
7292fi
7293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7294fi
7295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7296printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7297	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7298	CFLAGS="$xorg_testset_save_CFLAGS"
7299fi
7300
7301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7302	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7303		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7304	fi
7305	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7306	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7307printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7308if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7309then :
7310  printf %s "(cached) " >&6
7311else $as_nop
7312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313/* end confdefs.h.  */
7314int i;
7315_ACEOF
7316if ac_fn_c_try_compile "$LINENO"
7317then :
7318  xorg_cv_cc_flag_unused_command_line_argument=yes
7319else $as_nop
7320  xorg_cv_cc_flag_unused_command_line_argument=no
7321fi
7322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7323fi
7324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7325printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7326	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7327	CFLAGS="$xorg_testset_save_CFLAGS"
7328fi
7329
7330found="no"
7331
7332	if test $found = "no" ; then
7333		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7334			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7335		fi
7336
7337		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7338			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7339		fi
7340
7341		CFLAGS="$CFLAGS -Werror=implicit"
7342
7343		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7344printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7345		cacheid=xorg_cv_cc_flag__Werror_implicit
7346		if eval test \${$cacheid+y}
7347then :
7348  printf %s "(cached) " >&6
7349else $as_nop
7350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351/* end confdefs.h.  */
7352int i;
7353int
7354main (void)
7355{
7356
7357  ;
7358  return 0;
7359}
7360_ACEOF
7361if ac_fn_c_try_link "$LINENO"
7362then :
7363  eval $cacheid=yes
7364else $as_nop
7365  eval $cacheid=no
7366fi
7367rm -f core conftest.err conftest.$ac_objext conftest.beam \
7368    conftest$ac_exeext conftest.$ac_ext
7369fi
7370
7371
7372		CFLAGS="$xorg_testset_save_CFLAGS"
7373
7374		eval supported=\$$cacheid
7375		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7376printf "%s\n" "$supported" >&6; }
7377		if test "$supported" = "yes" ; then
7378			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7379			found="yes"
7380		fi
7381	fi
7382
7383	if test $found = "no" ; then
7384		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7385			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7386		fi
7387
7388		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7389			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7390		fi
7391
7392		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7393
7394		{ 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
7395printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7396		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7397		if eval test \${$cacheid+y}
7398then :
7399  printf %s "(cached) " >&6
7400else $as_nop
7401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402/* end confdefs.h.  */
7403int i;
7404int
7405main (void)
7406{
7407
7408  ;
7409  return 0;
7410}
7411_ACEOF
7412if ac_fn_c_try_link "$LINENO"
7413then :
7414  eval $cacheid=yes
7415else $as_nop
7416  eval $cacheid=no
7417fi
7418rm -f core conftest.err conftest.$ac_objext conftest.beam \
7419    conftest$ac_exeext conftest.$ac_ext
7420fi
7421
7422
7423		CFLAGS="$xorg_testset_save_CFLAGS"
7424
7425		eval supported=\$$cacheid
7426		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7427printf "%s\n" "$supported" >&6; }
7428		if test "$supported" = "yes" ; then
7429			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7430			found="yes"
7431		fi
7432	fi
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448xorg_testset_save_CFLAGS="$CFLAGS"
7449
7450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7451	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7452	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7453printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7454if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7455then :
7456  printf %s "(cached) " >&6
7457else $as_nop
7458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459/* end confdefs.h.  */
7460int i;
7461_ACEOF
7462if ac_fn_c_try_compile "$LINENO"
7463then :
7464  xorg_cv_cc_flag_unknown_warning_option=yes
7465else $as_nop
7466  xorg_cv_cc_flag_unknown_warning_option=no
7467fi
7468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7469fi
7470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7471printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7472	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7473	CFLAGS="$xorg_testset_save_CFLAGS"
7474fi
7475
7476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7477	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7478		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7479	fi
7480	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7481	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7482printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7483if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7484then :
7485  printf %s "(cached) " >&6
7486else $as_nop
7487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488/* end confdefs.h.  */
7489int i;
7490_ACEOF
7491if ac_fn_c_try_compile "$LINENO"
7492then :
7493  xorg_cv_cc_flag_unused_command_line_argument=yes
7494else $as_nop
7495  xorg_cv_cc_flag_unused_command_line_argument=no
7496fi
7497rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7498fi
7499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7500printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7501	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7502	CFLAGS="$xorg_testset_save_CFLAGS"
7503fi
7504
7505found="no"
7506
7507	if test $found = "no" ; then
7508		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7509			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7510		fi
7511
7512		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7513			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7514		fi
7515
7516		CFLAGS="$CFLAGS -Werror=nonnull"
7517
7518		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7519printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7520		cacheid=xorg_cv_cc_flag__Werror_nonnull
7521		if eval test \${$cacheid+y}
7522then :
7523  printf %s "(cached) " >&6
7524else $as_nop
7525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526/* end confdefs.h.  */
7527int i;
7528int
7529main (void)
7530{
7531
7532  ;
7533  return 0;
7534}
7535_ACEOF
7536if ac_fn_c_try_link "$LINENO"
7537then :
7538  eval $cacheid=yes
7539else $as_nop
7540  eval $cacheid=no
7541fi
7542rm -f core conftest.err conftest.$ac_objext conftest.beam \
7543    conftest$ac_exeext conftest.$ac_ext
7544fi
7545
7546
7547		CFLAGS="$xorg_testset_save_CFLAGS"
7548
7549		eval supported=\$$cacheid
7550		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7551printf "%s\n" "$supported" >&6; }
7552		if test "$supported" = "yes" ; then
7553			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7554			found="yes"
7555		fi
7556	fi
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572xorg_testset_save_CFLAGS="$CFLAGS"
7573
7574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7575	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7576	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7577printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7578if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7579then :
7580  printf %s "(cached) " >&6
7581else $as_nop
7582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7583/* end confdefs.h.  */
7584int i;
7585_ACEOF
7586if ac_fn_c_try_compile "$LINENO"
7587then :
7588  xorg_cv_cc_flag_unknown_warning_option=yes
7589else $as_nop
7590  xorg_cv_cc_flag_unknown_warning_option=no
7591fi
7592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7593fi
7594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7595printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7596	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7597	CFLAGS="$xorg_testset_save_CFLAGS"
7598fi
7599
7600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7601	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7602		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7603	fi
7604	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7605	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7606printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7607if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7608then :
7609  printf %s "(cached) " >&6
7610else $as_nop
7611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612/* end confdefs.h.  */
7613int i;
7614_ACEOF
7615if ac_fn_c_try_compile "$LINENO"
7616then :
7617  xorg_cv_cc_flag_unused_command_line_argument=yes
7618else $as_nop
7619  xorg_cv_cc_flag_unused_command_line_argument=no
7620fi
7621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7622fi
7623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7624printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7625	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7626	CFLAGS="$xorg_testset_save_CFLAGS"
7627fi
7628
7629found="no"
7630
7631	if test $found = "no" ; then
7632		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7633			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7634		fi
7635
7636		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7637			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7638		fi
7639
7640		CFLAGS="$CFLAGS -Werror=init-self"
7641
7642		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7643printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7644		cacheid=xorg_cv_cc_flag__Werror_init_self
7645		if eval test \${$cacheid+y}
7646then :
7647  printf %s "(cached) " >&6
7648else $as_nop
7649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650/* end confdefs.h.  */
7651int i;
7652int
7653main (void)
7654{
7655
7656  ;
7657  return 0;
7658}
7659_ACEOF
7660if ac_fn_c_try_link "$LINENO"
7661then :
7662  eval $cacheid=yes
7663else $as_nop
7664  eval $cacheid=no
7665fi
7666rm -f core conftest.err conftest.$ac_objext conftest.beam \
7667    conftest$ac_exeext conftest.$ac_ext
7668fi
7669
7670
7671		CFLAGS="$xorg_testset_save_CFLAGS"
7672
7673		eval supported=\$$cacheid
7674		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7675printf "%s\n" "$supported" >&6; }
7676		if test "$supported" = "yes" ; then
7677			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7678			found="yes"
7679		fi
7680	fi
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696xorg_testset_save_CFLAGS="$CFLAGS"
7697
7698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7699	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7700	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7701printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7702if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7703then :
7704  printf %s "(cached) " >&6
7705else $as_nop
7706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707/* end confdefs.h.  */
7708int i;
7709_ACEOF
7710if ac_fn_c_try_compile "$LINENO"
7711then :
7712  xorg_cv_cc_flag_unknown_warning_option=yes
7713else $as_nop
7714  xorg_cv_cc_flag_unknown_warning_option=no
7715fi
7716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7717fi
7718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7719printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7720	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7721	CFLAGS="$xorg_testset_save_CFLAGS"
7722fi
7723
7724if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7725	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7726		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7727	fi
7728	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7729	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7730printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7731if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7732then :
7733  printf %s "(cached) " >&6
7734else $as_nop
7735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736/* end confdefs.h.  */
7737int i;
7738_ACEOF
7739if ac_fn_c_try_compile "$LINENO"
7740then :
7741  xorg_cv_cc_flag_unused_command_line_argument=yes
7742else $as_nop
7743  xorg_cv_cc_flag_unused_command_line_argument=no
7744fi
7745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7746fi
7747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7748printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7749	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7750	CFLAGS="$xorg_testset_save_CFLAGS"
7751fi
7752
7753found="no"
7754
7755	if test $found = "no" ; then
7756		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7757			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7758		fi
7759
7760		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7761			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7762		fi
7763
7764		CFLAGS="$CFLAGS -Werror=main"
7765
7766		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7767printf %s "checking if $CC supports -Werror=main... " >&6; }
7768		cacheid=xorg_cv_cc_flag__Werror_main
7769		if eval test \${$cacheid+y}
7770then :
7771  printf %s "(cached) " >&6
7772else $as_nop
7773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774/* end confdefs.h.  */
7775int i;
7776int
7777main (void)
7778{
7779
7780  ;
7781  return 0;
7782}
7783_ACEOF
7784if ac_fn_c_try_link "$LINENO"
7785then :
7786  eval $cacheid=yes
7787else $as_nop
7788  eval $cacheid=no
7789fi
7790rm -f core conftest.err conftest.$ac_objext conftest.beam \
7791    conftest$ac_exeext conftest.$ac_ext
7792fi
7793
7794
7795		CFLAGS="$xorg_testset_save_CFLAGS"
7796
7797		eval supported=\$$cacheid
7798		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7799printf "%s\n" "$supported" >&6; }
7800		if test "$supported" = "yes" ; then
7801			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7802			found="yes"
7803		fi
7804	fi
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820xorg_testset_save_CFLAGS="$CFLAGS"
7821
7822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7823	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7824	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7825printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7826if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7827then :
7828  printf %s "(cached) " >&6
7829else $as_nop
7830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831/* end confdefs.h.  */
7832int i;
7833_ACEOF
7834if ac_fn_c_try_compile "$LINENO"
7835then :
7836  xorg_cv_cc_flag_unknown_warning_option=yes
7837else $as_nop
7838  xorg_cv_cc_flag_unknown_warning_option=no
7839fi
7840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7841fi
7842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7843printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7844	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7845	CFLAGS="$xorg_testset_save_CFLAGS"
7846fi
7847
7848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7849	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7850		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7851	fi
7852	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7853	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7854printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7855if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7856then :
7857  printf %s "(cached) " >&6
7858else $as_nop
7859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860/* end confdefs.h.  */
7861int i;
7862_ACEOF
7863if ac_fn_c_try_compile "$LINENO"
7864then :
7865  xorg_cv_cc_flag_unused_command_line_argument=yes
7866else $as_nop
7867  xorg_cv_cc_flag_unused_command_line_argument=no
7868fi
7869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7870fi
7871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7872printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7873	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7874	CFLAGS="$xorg_testset_save_CFLAGS"
7875fi
7876
7877found="no"
7878
7879	if test $found = "no" ; then
7880		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7881			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7882		fi
7883
7884		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7885			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7886		fi
7887
7888		CFLAGS="$CFLAGS -Werror=missing-braces"
7889
7890		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7891printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7892		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7893		if eval test \${$cacheid+y}
7894then :
7895  printf %s "(cached) " >&6
7896else $as_nop
7897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898/* end confdefs.h.  */
7899int i;
7900int
7901main (void)
7902{
7903
7904  ;
7905  return 0;
7906}
7907_ACEOF
7908if ac_fn_c_try_link "$LINENO"
7909then :
7910  eval $cacheid=yes
7911else $as_nop
7912  eval $cacheid=no
7913fi
7914rm -f core conftest.err conftest.$ac_objext conftest.beam \
7915    conftest$ac_exeext conftest.$ac_ext
7916fi
7917
7918
7919		CFLAGS="$xorg_testset_save_CFLAGS"
7920
7921		eval supported=\$$cacheid
7922		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7923printf "%s\n" "$supported" >&6; }
7924		if test "$supported" = "yes" ; then
7925			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7926			found="yes"
7927		fi
7928	fi
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944xorg_testset_save_CFLAGS="$CFLAGS"
7945
7946if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7947	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7948	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7949printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7950if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7951then :
7952  printf %s "(cached) " >&6
7953else $as_nop
7954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7955/* end confdefs.h.  */
7956int i;
7957_ACEOF
7958if ac_fn_c_try_compile "$LINENO"
7959then :
7960  xorg_cv_cc_flag_unknown_warning_option=yes
7961else $as_nop
7962  xorg_cv_cc_flag_unknown_warning_option=no
7963fi
7964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7965fi
7966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7967printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7968	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7969	CFLAGS="$xorg_testset_save_CFLAGS"
7970fi
7971
7972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7973	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7974		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7975	fi
7976	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7977	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7978printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7979if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7980then :
7981  printf %s "(cached) " >&6
7982else $as_nop
7983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984/* end confdefs.h.  */
7985int i;
7986_ACEOF
7987if ac_fn_c_try_compile "$LINENO"
7988then :
7989  xorg_cv_cc_flag_unused_command_line_argument=yes
7990else $as_nop
7991  xorg_cv_cc_flag_unused_command_line_argument=no
7992fi
7993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7994fi
7995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7996printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7997	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7998	CFLAGS="$xorg_testset_save_CFLAGS"
7999fi
8000
8001found="no"
8002
8003	if test $found = "no" ; then
8004		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8005			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8006		fi
8007
8008		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8009			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8010		fi
8011
8012		CFLAGS="$CFLAGS -Werror=sequence-point"
8013
8014		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8015printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8016		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8017		if eval test \${$cacheid+y}
8018then :
8019  printf %s "(cached) " >&6
8020else $as_nop
8021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022/* end confdefs.h.  */
8023int i;
8024int
8025main (void)
8026{
8027
8028  ;
8029  return 0;
8030}
8031_ACEOF
8032if ac_fn_c_try_link "$LINENO"
8033then :
8034  eval $cacheid=yes
8035else $as_nop
8036  eval $cacheid=no
8037fi
8038rm -f core conftest.err conftest.$ac_objext conftest.beam \
8039    conftest$ac_exeext conftest.$ac_ext
8040fi
8041
8042
8043		CFLAGS="$xorg_testset_save_CFLAGS"
8044
8045		eval supported=\$$cacheid
8046		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8047printf "%s\n" "$supported" >&6; }
8048		if test "$supported" = "yes" ; then
8049			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8050			found="yes"
8051		fi
8052	fi
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068xorg_testset_save_CFLAGS="$CFLAGS"
8069
8070if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8071	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8072	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8073printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8074if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8075then :
8076  printf %s "(cached) " >&6
8077else $as_nop
8078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079/* end confdefs.h.  */
8080int i;
8081_ACEOF
8082if ac_fn_c_try_compile "$LINENO"
8083then :
8084  xorg_cv_cc_flag_unknown_warning_option=yes
8085else $as_nop
8086  xorg_cv_cc_flag_unknown_warning_option=no
8087fi
8088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8089fi
8090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8091printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8092	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8093	CFLAGS="$xorg_testset_save_CFLAGS"
8094fi
8095
8096if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8097	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8098		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8099	fi
8100	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8101	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8102printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8103if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8104then :
8105  printf %s "(cached) " >&6
8106else $as_nop
8107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108/* end confdefs.h.  */
8109int i;
8110_ACEOF
8111if ac_fn_c_try_compile "$LINENO"
8112then :
8113  xorg_cv_cc_flag_unused_command_line_argument=yes
8114else $as_nop
8115  xorg_cv_cc_flag_unused_command_line_argument=no
8116fi
8117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8118fi
8119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8120printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8121	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8122	CFLAGS="$xorg_testset_save_CFLAGS"
8123fi
8124
8125found="no"
8126
8127	if test $found = "no" ; then
8128		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8129			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8130		fi
8131
8132		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8133			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8134		fi
8135
8136		CFLAGS="$CFLAGS -Werror=return-type"
8137
8138		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8139printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8140		cacheid=xorg_cv_cc_flag__Werror_return_type
8141		if eval test \${$cacheid+y}
8142then :
8143  printf %s "(cached) " >&6
8144else $as_nop
8145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146/* end confdefs.h.  */
8147int i;
8148int
8149main (void)
8150{
8151
8152  ;
8153  return 0;
8154}
8155_ACEOF
8156if ac_fn_c_try_link "$LINENO"
8157then :
8158  eval $cacheid=yes
8159else $as_nop
8160  eval $cacheid=no
8161fi
8162rm -f core conftest.err conftest.$ac_objext conftest.beam \
8163    conftest$ac_exeext conftest.$ac_ext
8164fi
8165
8166
8167		CFLAGS="$xorg_testset_save_CFLAGS"
8168
8169		eval supported=\$$cacheid
8170		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8171printf "%s\n" "$supported" >&6; }
8172		if test "$supported" = "yes" ; then
8173			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8174			found="yes"
8175		fi
8176	fi
8177
8178	if test $found = "no" ; then
8179		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8180			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8181		fi
8182
8183		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8184			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8185		fi
8186
8187		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8188
8189		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8190printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8191		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8192		if eval test \${$cacheid+y}
8193then :
8194  printf %s "(cached) " >&6
8195else $as_nop
8196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197/* end confdefs.h.  */
8198int i;
8199int
8200main (void)
8201{
8202
8203  ;
8204  return 0;
8205}
8206_ACEOF
8207if ac_fn_c_try_link "$LINENO"
8208then :
8209  eval $cacheid=yes
8210else $as_nop
8211  eval $cacheid=no
8212fi
8213rm -f core conftest.err conftest.$ac_objext conftest.beam \
8214    conftest$ac_exeext conftest.$ac_ext
8215fi
8216
8217
8218		CFLAGS="$xorg_testset_save_CFLAGS"
8219
8220		eval supported=\$$cacheid
8221		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8222printf "%s\n" "$supported" >&6; }
8223		if test "$supported" = "yes" ; then
8224			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8225			found="yes"
8226		fi
8227	fi
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243xorg_testset_save_CFLAGS="$CFLAGS"
8244
8245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8246	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8247	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8248printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8249if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8250then :
8251  printf %s "(cached) " >&6
8252else $as_nop
8253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8254/* end confdefs.h.  */
8255int i;
8256_ACEOF
8257if ac_fn_c_try_compile "$LINENO"
8258then :
8259  xorg_cv_cc_flag_unknown_warning_option=yes
8260else $as_nop
8261  xorg_cv_cc_flag_unknown_warning_option=no
8262fi
8263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8264fi
8265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8266printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8267	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8268	CFLAGS="$xorg_testset_save_CFLAGS"
8269fi
8270
8271if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8272	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8273		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8274	fi
8275	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8276	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8277printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8278if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8279then :
8280  printf %s "(cached) " >&6
8281else $as_nop
8282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283/* end confdefs.h.  */
8284int i;
8285_ACEOF
8286if ac_fn_c_try_compile "$LINENO"
8287then :
8288  xorg_cv_cc_flag_unused_command_line_argument=yes
8289else $as_nop
8290  xorg_cv_cc_flag_unused_command_line_argument=no
8291fi
8292rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8293fi
8294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8295printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8296	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8297	CFLAGS="$xorg_testset_save_CFLAGS"
8298fi
8299
8300found="no"
8301
8302	if test $found = "no" ; then
8303		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8304			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8305		fi
8306
8307		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8308			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8309		fi
8310
8311		CFLAGS="$CFLAGS -Werror=trigraphs"
8312
8313		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8314printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8315		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8316		if eval test \${$cacheid+y}
8317then :
8318  printf %s "(cached) " >&6
8319else $as_nop
8320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321/* end confdefs.h.  */
8322int i;
8323int
8324main (void)
8325{
8326
8327  ;
8328  return 0;
8329}
8330_ACEOF
8331if ac_fn_c_try_link "$LINENO"
8332then :
8333  eval $cacheid=yes
8334else $as_nop
8335  eval $cacheid=no
8336fi
8337rm -f core conftest.err conftest.$ac_objext conftest.beam \
8338    conftest$ac_exeext conftest.$ac_ext
8339fi
8340
8341
8342		CFLAGS="$xorg_testset_save_CFLAGS"
8343
8344		eval supported=\$$cacheid
8345		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8346printf "%s\n" "$supported" >&6; }
8347		if test "$supported" = "yes" ; then
8348			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8349			found="yes"
8350		fi
8351	fi
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367xorg_testset_save_CFLAGS="$CFLAGS"
8368
8369if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8370	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8371	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8372printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8373if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8374then :
8375  printf %s "(cached) " >&6
8376else $as_nop
8377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378/* end confdefs.h.  */
8379int i;
8380_ACEOF
8381if ac_fn_c_try_compile "$LINENO"
8382then :
8383  xorg_cv_cc_flag_unknown_warning_option=yes
8384else $as_nop
8385  xorg_cv_cc_flag_unknown_warning_option=no
8386fi
8387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8388fi
8389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8390printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8391	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8392	CFLAGS="$xorg_testset_save_CFLAGS"
8393fi
8394
8395if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8396	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8397		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8398	fi
8399	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8400	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8401printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8402if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8403then :
8404  printf %s "(cached) " >&6
8405else $as_nop
8406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8407/* end confdefs.h.  */
8408int i;
8409_ACEOF
8410if ac_fn_c_try_compile "$LINENO"
8411then :
8412  xorg_cv_cc_flag_unused_command_line_argument=yes
8413else $as_nop
8414  xorg_cv_cc_flag_unused_command_line_argument=no
8415fi
8416rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8417fi
8418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8419printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8420	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8421	CFLAGS="$xorg_testset_save_CFLAGS"
8422fi
8423
8424found="no"
8425
8426	if test $found = "no" ; then
8427		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8428			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8429		fi
8430
8431		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8432			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8433		fi
8434
8435		CFLAGS="$CFLAGS -Werror=array-bounds"
8436
8437		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8438printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8439		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8440		if eval test \${$cacheid+y}
8441then :
8442  printf %s "(cached) " >&6
8443else $as_nop
8444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445/* end confdefs.h.  */
8446int i;
8447int
8448main (void)
8449{
8450
8451  ;
8452  return 0;
8453}
8454_ACEOF
8455if ac_fn_c_try_link "$LINENO"
8456then :
8457  eval $cacheid=yes
8458else $as_nop
8459  eval $cacheid=no
8460fi
8461rm -f core conftest.err conftest.$ac_objext conftest.beam \
8462    conftest$ac_exeext conftest.$ac_ext
8463fi
8464
8465
8466		CFLAGS="$xorg_testset_save_CFLAGS"
8467
8468		eval supported=\$$cacheid
8469		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8470printf "%s\n" "$supported" >&6; }
8471		if test "$supported" = "yes" ; then
8472			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8473			found="yes"
8474		fi
8475	fi
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491xorg_testset_save_CFLAGS="$CFLAGS"
8492
8493if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8494	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8495	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8496printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8497if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8498then :
8499  printf %s "(cached) " >&6
8500else $as_nop
8501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8502/* end confdefs.h.  */
8503int i;
8504_ACEOF
8505if ac_fn_c_try_compile "$LINENO"
8506then :
8507  xorg_cv_cc_flag_unknown_warning_option=yes
8508else $as_nop
8509  xorg_cv_cc_flag_unknown_warning_option=no
8510fi
8511rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8512fi
8513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8514printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8515	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8516	CFLAGS="$xorg_testset_save_CFLAGS"
8517fi
8518
8519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8520	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8521		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8522	fi
8523	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8524	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8525printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8526if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8527then :
8528  printf %s "(cached) " >&6
8529else $as_nop
8530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531/* end confdefs.h.  */
8532int i;
8533_ACEOF
8534if ac_fn_c_try_compile "$LINENO"
8535then :
8536  xorg_cv_cc_flag_unused_command_line_argument=yes
8537else $as_nop
8538  xorg_cv_cc_flag_unused_command_line_argument=no
8539fi
8540rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8541fi
8542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8543printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8544	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8545	CFLAGS="$xorg_testset_save_CFLAGS"
8546fi
8547
8548found="no"
8549
8550	if test $found = "no" ; then
8551		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8552			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8553		fi
8554
8555		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8556			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8557		fi
8558
8559		CFLAGS="$CFLAGS -Werror=write-strings"
8560
8561		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8562printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8563		cacheid=xorg_cv_cc_flag__Werror_write_strings
8564		if eval test \${$cacheid+y}
8565then :
8566  printf %s "(cached) " >&6
8567else $as_nop
8568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569/* end confdefs.h.  */
8570int i;
8571int
8572main (void)
8573{
8574
8575  ;
8576  return 0;
8577}
8578_ACEOF
8579if ac_fn_c_try_link "$LINENO"
8580then :
8581  eval $cacheid=yes
8582else $as_nop
8583  eval $cacheid=no
8584fi
8585rm -f core conftest.err conftest.$ac_objext conftest.beam \
8586    conftest$ac_exeext conftest.$ac_ext
8587fi
8588
8589
8590		CFLAGS="$xorg_testset_save_CFLAGS"
8591
8592		eval supported=\$$cacheid
8593		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8594printf "%s\n" "$supported" >&6; }
8595		if test "$supported" = "yes" ; then
8596			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8597			found="yes"
8598		fi
8599	fi
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615xorg_testset_save_CFLAGS="$CFLAGS"
8616
8617if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8618	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8619	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8620printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8621if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8622then :
8623  printf %s "(cached) " >&6
8624else $as_nop
8625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8626/* end confdefs.h.  */
8627int i;
8628_ACEOF
8629if ac_fn_c_try_compile "$LINENO"
8630then :
8631  xorg_cv_cc_flag_unknown_warning_option=yes
8632else $as_nop
8633  xorg_cv_cc_flag_unknown_warning_option=no
8634fi
8635rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8636fi
8637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8638printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8639	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8640	CFLAGS="$xorg_testset_save_CFLAGS"
8641fi
8642
8643if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8644	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8645		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8646	fi
8647	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8648	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8649printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8650if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8651then :
8652  printf %s "(cached) " >&6
8653else $as_nop
8654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655/* end confdefs.h.  */
8656int i;
8657_ACEOF
8658if ac_fn_c_try_compile "$LINENO"
8659then :
8660  xorg_cv_cc_flag_unused_command_line_argument=yes
8661else $as_nop
8662  xorg_cv_cc_flag_unused_command_line_argument=no
8663fi
8664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8665fi
8666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8667printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8668	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8669	CFLAGS="$xorg_testset_save_CFLAGS"
8670fi
8671
8672found="no"
8673
8674	if test $found = "no" ; then
8675		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8676			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8677		fi
8678
8679		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8680			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8681		fi
8682
8683		CFLAGS="$CFLAGS -Werror=address"
8684
8685		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8686printf %s "checking if $CC supports -Werror=address... " >&6; }
8687		cacheid=xorg_cv_cc_flag__Werror_address
8688		if eval test \${$cacheid+y}
8689then :
8690  printf %s "(cached) " >&6
8691else $as_nop
8692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693/* end confdefs.h.  */
8694int i;
8695int
8696main (void)
8697{
8698
8699  ;
8700  return 0;
8701}
8702_ACEOF
8703if ac_fn_c_try_link "$LINENO"
8704then :
8705  eval $cacheid=yes
8706else $as_nop
8707  eval $cacheid=no
8708fi
8709rm -f core conftest.err conftest.$ac_objext conftest.beam \
8710    conftest$ac_exeext conftest.$ac_ext
8711fi
8712
8713
8714		CFLAGS="$xorg_testset_save_CFLAGS"
8715
8716		eval supported=\$$cacheid
8717		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8718printf "%s\n" "$supported" >&6; }
8719		if test "$supported" = "yes" ; then
8720			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8721			found="yes"
8722		fi
8723	fi
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739xorg_testset_save_CFLAGS="$CFLAGS"
8740
8741if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8742	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8743	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8744printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8745if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8746then :
8747  printf %s "(cached) " >&6
8748else $as_nop
8749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750/* end confdefs.h.  */
8751int i;
8752_ACEOF
8753if ac_fn_c_try_compile "$LINENO"
8754then :
8755  xorg_cv_cc_flag_unknown_warning_option=yes
8756else $as_nop
8757  xorg_cv_cc_flag_unknown_warning_option=no
8758fi
8759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8760fi
8761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8762printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8763	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8764	CFLAGS="$xorg_testset_save_CFLAGS"
8765fi
8766
8767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8768	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8769		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8770	fi
8771	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8772	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8773printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8774if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8775then :
8776  printf %s "(cached) " >&6
8777else $as_nop
8778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8779/* end confdefs.h.  */
8780int i;
8781_ACEOF
8782if ac_fn_c_try_compile "$LINENO"
8783then :
8784  xorg_cv_cc_flag_unused_command_line_argument=yes
8785else $as_nop
8786  xorg_cv_cc_flag_unused_command_line_argument=no
8787fi
8788rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8789fi
8790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8791printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8792	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8793	CFLAGS="$xorg_testset_save_CFLAGS"
8794fi
8795
8796found="no"
8797
8798	if test $found = "no" ; then
8799		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8800			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8801		fi
8802
8803		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8804			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8805		fi
8806
8807		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8808
8809		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8810printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8811		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8812		if eval test \${$cacheid+y}
8813then :
8814  printf %s "(cached) " >&6
8815else $as_nop
8816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817/* end confdefs.h.  */
8818int i;
8819int
8820main (void)
8821{
8822
8823  ;
8824  return 0;
8825}
8826_ACEOF
8827if ac_fn_c_try_link "$LINENO"
8828then :
8829  eval $cacheid=yes
8830else $as_nop
8831  eval $cacheid=no
8832fi
8833rm -f core conftest.err conftest.$ac_objext conftest.beam \
8834    conftest$ac_exeext conftest.$ac_ext
8835fi
8836
8837
8838		CFLAGS="$xorg_testset_save_CFLAGS"
8839
8840		eval supported=\$$cacheid
8841		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8842printf "%s\n" "$supported" >&6; }
8843		if test "$supported" = "yes" ; then
8844			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8845			found="yes"
8846		fi
8847	fi
8848
8849	if test $found = "no" ; then
8850		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8851			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8852		fi
8853
8854		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8855			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8856		fi
8857
8858		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8859
8860		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8861printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8862		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8863		if eval test \${$cacheid+y}
8864then :
8865  printf %s "(cached) " >&6
8866else $as_nop
8867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868/* end confdefs.h.  */
8869int i;
8870int
8871main (void)
8872{
8873
8874  ;
8875  return 0;
8876}
8877_ACEOF
8878if ac_fn_c_try_link "$LINENO"
8879then :
8880  eval $cacheid=yes
8881else $as_nop
8882  eval $cacheid=no
8883fi
8884rm -f core conftest.err conftest.$ac_objext conftest.beam \
8885    conftest$ac_exeext conftest.$ac_ext
8886fi
8887
8888
8889		CFLAGS="$xorg_testset_save_CFLAGS"
8890
8891		eval supported=\$$cacheid
8892		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8893printf "%s\n" "$supported" >&6; }
8894		if test "$supported" = "yes" ; then
8895			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8896			found="yes"
8897		fi
8898	fi
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914xorg_testset_save_CFLAGS="$CFLAGS"
8915
8916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8917	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8918	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8919printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8920if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8921then :
8922  printf %s "(cached) " >&6
8923else $as_nop
8924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925/* end confdefs.h.  */
8926int i;
8927_ACEOF
8928if ac_fn_c_try_compile "$LINENO"
8929then :
8930  xorg_cv_cc_flag_unknown_warning_option=yes
8931else $as_nop
8932  xorg_cv_cc_flag_unknown_warning_option=no
8933fi
8934rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8935fi
8936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8937printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8938	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8939	CFLAGS="$xorg_testset_save_CFLAGS"
8940fi
8941
8942if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8943	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8944		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8945	fi
8946	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8947	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8948printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8949if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8950then :
8951  printf %s "(cached) " >&6
8952else $as_nop
8953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8954/* end confdefs.h.  */
8955int i;
8956_ACEOF
8957if ac_fn_c_try_compile "$LINENO"
8958then :
8959  xorg_cv_cc_flag_unused_command_line_argument=yes
8960else $as_nop
8961  xorg_cv_cc_flag_unused_command_line_argument=no
8962fi
8963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8964fi
8965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8966printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8967	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8968	CFLAGS="$xorg_testset_save_CFLAGS"
8969fi
8970
8971found="no"
8972
8973	if test $found = "no" ; then
8974		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8975			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8976		fi
8977
8978		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8979			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8980		fi
8981
8982		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8983
8984		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8985printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8986		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8987		if eval test \${$cacheid+y}
8988then :
8989  printf %s "(cached) " >&6
8990else $as_nop
8991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992/* end confdefs.h.  */
8993int i;
8994int
8995main (void)
8996{
8997
8998  ;
8999  return 0;
9000}
9001_ACEOF
9002if ac_fn_c_try_link "$LINENO"
9003then :
9004  eval $cacheid=yes
9005else $as_nop
9006  eval $cacheid=no
9007fi
9008rm -f core conftest.err conftest.$ac_objext conftest.beam \
9009    conftest$ac_exeext conftest.$ac_ext
9010fi
9011
9012
9013		CFLAGS="$xorg_testset_save_CFLAGS"
9014
9015		eval supported=\$$cacheid
9016		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9017printf "%s\n" "$supported" >&6; }
9018		if test "$supported" = "yes" ; then
9019			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9020			found="yes"
9021		fi
9022	fi
9023
9024 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9025else
9026{ 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
9027printf "%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;}
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041xorg_testset_save_CFLAGS="$CFLAGS"
9042
9043if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9044	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9045	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9046printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9047if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9048then :
9049  printf %s "(cached) " >&6
9050else $as_nop
9051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052/* end confdefs.h.  */
9053int i;
9054_ACEOF
9055if ac_fn_c_try_compile "$LINENO"
9056then :
9057  xorg_cv_cc_flag_unknown_warning_option=yes
9058else $as_nop
9059  xorg_cv_cc_flag_unknown_warning_option=no
9060fi
9061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9062fi
9063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9064printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9065	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9066	CFLAGS="$xorg_testset_save_CFLAGS"
9067fi
9068
9069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9070	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9071		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9072	fi
9073	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9074	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9075printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9076if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9077then :
9078  printf %s "(cached) " >&6
9079else $as_nop
9080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9081/* end confdefs.h.  */
9082int i;
9083_ACEOF
9084if ac_fn_c_try_compile "$LINENO"
9085then :
9086  xorg_cv_cc_flag_unused_command_line_argument=yes
9087else $as_nop
9088  xorg_cv_cc_flag_unused_command_line_argument=no
9089fi
9090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9091fi
9092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9093printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9094	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9095	CFLAGS="$xorg_testset_save_CFLAGS"
9096fi
9097
9098found="no"
9099
9100	if test $found = "no" ; then
9101		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9102			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9103		fi
9104
9105		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9106			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9107		fi
9108
9109		CFLAGS="$CFLAGS -Wimplicit"
9110
9111		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9112printf %s "checking if $CC supports -Wimplicit... " >&6; }
9113		cacheid=xorg_cv_cc_flag__Wimplicit
9114		if eval test \${$cacheid+y}
9115then :
9116  printf %s "(cached) " >&6
9117else $as_nop
9118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119/* end confdefs.h.  */
9120int i;
9121int
9122main (void)
9123{
9124
9125  ;
9126  return 0;
9127}
9128_ACEOF
9129if ac_fn_c_try_link "$LINENO"
9130then :
9131  eval $cacheid=yes
9132else $as_nop
9133  eval $cacheid=no
9134fi
9135rm -f core conftest.err conftest.$ac_objext conftest.beam \
9136    conftest$ac_exeext conftest.$ac_ext
9137fi
9138
9139
9140		CFLAGS="$xorg_testset_save_CFLAGS"
9141
9142		eval supported=\$$cacheid
9143		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9144printf "%s\n" "$supported" >&6; }
9145		if test "$supported" = "yes" ; then
9146			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9147			found="yes"
9148		fi
9149	fi
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165xorg_testset_save_CFLAGS="$CFLAGS"
9166
9167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9168	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9169	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9170printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9171if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9172then :
9173  printf %s "(cached) " >&6
9174else $as_nop
9175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176/* end confdefs.h.  */
9177int i;
9178_ACEOF
9179if ac_fn_c_try_compile "$LINENO"
9180then :
9181  xorg_cv_cc_flag_unknown_warning_option=yes
9182else $as_nop
9183  xorg_cv_cc_flag_unknown_warning_option=no
9184fi
9185rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9186fi
9187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9188printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9189	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9190	CFLAGS="$xorg_testset_save_CFLAGS"
9191fi
9192
9193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9194	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9195		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9196	fi
9197	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9198	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9199printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9200if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9201then :
9202  printf %s "(cached) " >&6
9203else $as_nop
9204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205/* end confdefs.h.  */
9206int i;
9207_ACEOF
9208if ac_fn_c_try_compile "$LINENO"
9209then :
9210  xorg_cv_cc_flag_unused_command_line_argument=yes
9211else $as_nop
9212  xorg_cv_cc_flag_unused_command_line_argument=no
9213fi
9214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9215fi
9216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9217printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9218	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9219	CFLAGS="$xorg_testset_save_CFLAGS"
9220fi
9221
9222found="no"
9223
9224	if test $found = "no" ; then
9225		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9226			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9227		fi
9228
9229		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9230			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9231		fi
9232
9233		CFLAGS="$CFLAGS -Wnonnull"
9234
9235		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9236printf %s "checking if $CC supports -Wnonnull... " >&6; }
9237		cacheid=xorg_cv_cc_flag__Wnonnull
9238		if eval test \${$cacheid+y}
9239then :
9240  printf %s "(cached) " >&6
9241else $as_nop
9242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243/* end confdefs.h.  */
9244int i;
9245int
9246main (void)
9247{
9248
9249  ;
9250  return 0;
9251}
9252_ACEOF
9253if ac_fn_c_try_link "$LINENO"
9254then :
9255  eval $cacheid=yes
9256else $as_nop
9257  eval $cacheid=no
9258fi
9259rm -f core conftest.err conftest.$ac_objext conftest.beam \
9260    conftest$ac_exeext conftest.$ac_ext
9261fi
9262
9263
9264		CFLAGS="$xorg_testset_save_CFLAGS"
9265
9266		eval supported=\$$cacheid
9267		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9268printf "%s\n" "$supported" >&6; }
9269		if test "$supported" = "yes" ; then
9270			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9271			found="yes"
9272		fi
9273	fi
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289xorg_testset_save_CFLAGS="$CFLAGS"
9290
9291if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9292	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9293	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9294printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9295if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9296then :
9297  printf %s "(cached) " >&6
9298else $as_nop
9299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9300/* end confdefs.h.  */
9301int i;
9302_ACEOF
9303if ac_fn_c_try_compile "$LINENO"
9304then :
9305  xorg_cv_cc_flag_unknown_warning_option=yes
9306else $as_nop
9307  xorg_cv_cc_flag_unknown_warning_option=no
9308fi
9309rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9310fi
9311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9312printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9313	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9314	CFLAGS="$xorg_testset_save_CFLAGS"
9315fi
9316
9317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9318	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9319		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9320	fi
9321	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9322	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9323printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9324if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9325then :
9326  printf %s "(cached) " >&6
9327else $as_nop
9328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329/* end confdefs.h.  */
9330int i;
9331_ACEOF
9332if ac_fn_c_try_compile "$LINENO"
9333then :
9334  xorg_cv_cc_flag_unused_command_line_argument=yes
9335else $as_nop
9336  xorg_cv_cc_flag_unused_command_line_argument=no
9337fi
9338rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9339fi
9340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9341printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9342	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9343	CFLAGS="$xorg_testset_save_CFLAGS"
9344fi
9345
9346found="no"
9347
9348	if test $found = "no" ; then
9349		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9350			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9351		fi
9352
9353		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9354			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9355		fi
9356
9357		CFLAGS="$CFLAGS -Winit-self"
9358
9359		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9360printf %s "checking if $CC supports -Winit-self... " >&6; }
9361		cacheid=xorg_cv_cc_flag__Winit_self
9362		if eval test \${$cacheid+y}
9363then :
9364  printf %s "(cached) " >&6
9365else $as_nop
9366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367/* end confdefs.h.  */
9368int i;
9369int
9370main (void)
9371{
9372
9373  ;
9374  return 0;
9375}
9376_ACEOF
9377if ac_fn_c_try_link "$LINENO"
9378then :
9379  eval $cacheid=yes
9380else $as_nop
9381  eval $cacheid=no
9382fi
9383rm -f core conftest.err conftest.$ac_objext conftest.beam \
9384    conftest$ac_exeext conftest.$ac_ext
9385fi
9386
9387
9388		CFLAGS="$xorg_testset_save_CFLAGS"
9389
9390		eval supported=\$$cacheid
9391		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9392printf "%s\n" "$supported" >&6; }
9393		if test "$supported" = "yes" ; then
9394			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9395			found="yes"
9396		fi
9397	fi
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413xorg_testset_save_CFLAGS="$CFLAGS"
9414
9415if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9416	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9417	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9418printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9419if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9420then :
9421  printf %s "(cached) " >&6
9422else $as_nop
9423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424/* end confdefs.h.  */
9425int i;
9426_ACEOF
9427if ac_fn_c_try_compile "$LINENO"
9428then :
9429  xorg_cv_cc_flag_unknown_warning_option=yes
9430else $as_nop
9431  xorg_cv_cc_flag_unknown_warning_option=no
9432fi
9433rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9434fi
9435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9436printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9437	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9438	CFLAGS="$xorg_testset_save_CFLAGS"
9439fi
9440
9441if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9442	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9443		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9444	fi
9445	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9446	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9447printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9448if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9449then :
9450  printf %s "(cached) " >&6
9451else $as_nop
9452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453/* end confdefs.h.  */
9454int i;
9455_ACEOF
9456if ac_fn_c_try_compile "$LINENO"
9457then :
9458  xorg_cv_cc_flag_unused_command_line_argument=yes
9459else $as_nop
9460  xorg_cv_cc_flag_unused_command_line_argument=no
9461fi
9462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9463fi
9464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9465printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9466	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9467	CFLAGS="$xorg_testset_save_CFLAGS"
9468fi
9469
9470found="no"
9471
9472	if test $found = "no" ; then
9473		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9474			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9475		fi
9476
9477		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9478			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9479		fi
9480
9481		CFLAGS="$CFLAGS -Wmain"
9482
9483		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9484printf %s "checking if $CC supports -Wmain... " >&6; }
9485		cacheid=xorg_cv_cc_flag__Wmain
9486		if eval test \${$cacheid+y}
9487then :
9488  printf %s "(cached) " >&6
9489else $as_nop
9490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491/* end confdefs.h.  */
9492int i;
9493int
9494main (void)
9495{
9496
9497  ;
9498  return 0;
9499}
9500_ACEOF
9501if ac_fn_c_try_link "$LINENO"
9502then :
9503  eval $cacheid=yes
9504else $as_nop
9505  eval $cacheid=no
9506fi
9507rm -f core conftest.err conftest.$ac_objext conftest.beam \
9508    conftest$ac_exeext conftest.$ac_ext
9509fi
9510
9511
9512		CFLAGS="$xorg_testset_save_CFLAGS"
9513
9514		eval supported=\$$cacheid
9515		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9516printf "%s\n" "$supported" >&6; }
9517		if test "$supported" = "yes" ; then
9518			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9519			found="yes"
9520		fi
9521	fi
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537xorg_testset_save_CFLAGS="$CFLAGS"
9538
9539if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9540	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9541	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9542printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9543if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9544then :
9545  printf %s "(cached) " >&6
9546else $as_nop
9547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548/* end confdefs.h.  */
9549int i;
9550_ACEOF
9551if ac_fn_c_try_compile "$LINENO"
9552then :
9553  xorg_cv_cc_flag_unknown_warning_option=yes
9554else $as_nop
9555  xorg_cv_cc_flag_unknown_warning_option=no
9556fi
9557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9558fi
9559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9560printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9561	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9562	CFLAGS="$xorg_testset_save_CFLAGS"
9563fi
9564
9565if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9566	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9567		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9568	fi
9569	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9570	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9571printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9572if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9573then :
9574  printf %s "(cached) " >&6
9575else $as_nop
9576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577/* end confdefs.h.  */
9578int i;
9579_ACEOF
9580if ac_fn_c_try_compile "$LINENO"
9581then :
9582  xorg_cv_cc_flag_unused_command_line_argument=yes
9583else $as_nop
9584  xorg_cv_cc_flag_unused_command_line_argument=no
9585fi
9586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9587fi
9588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9589printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9590	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9591	CFLAGS="$xorg_testset_save_CFLAGS"
9592fi
9593
9594found="no"
9595
9596	if test $found = "no" ; then
9597		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9598			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9599		fi
9600
9601		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9602			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9603		fi
9604
9605		CFLAGS="$CFLAGS -Wmissing-braces"
9606
9607		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9608printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9609		cacheid=xorg_cv_cc_flag__Wmissing_braces
9610		if eval test \${$cacheid+y}
9611then :
9612  printf %s "(cached) " >&6
9613else $as_nop
9614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615/* end confdefs.h.  */
9616int i;
9617int
9618main (void)
9619{
9620
9621  ;
9622  return 0;
9623}
9624_ACEOF
9625if ac_fn_c_try_link "$LINENO"
9626then :
9627  eval $cacheid=yes
9628else $as_nop
9629  eval $cacheid=no
9630fi
9631rm -f core conftest.err conftest.$ac_objext conftest.beam \
9632    conftest$ac_exeext conftest.$ac_ext
9633fi
9634
9635
9636		CFLAGS="$xorg_testset_save_CFLAGS"
9637
9638		eval supported=\$$cacheid
9639		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9640printf "%s\n" "$supported" >&6; }
9641		if test "$supported" = "yes" ; then
9642			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9643			found="yes"
9644		fi
9645	fi
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661xorg_testset_save_CFLAGS="$CFLAGS"
9662
9663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9664	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9665	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9666printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9667if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9668then :
9669  printf %s "(cached) " >&6
9670else $as_nop
9671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672/* end confdefs.h.  */
9673int i;
9674_ACEOF
9675if ac_fn_c_try_compile "$LINENO"
9676then :
9677  xorg_cv_cc_flag_unknown_warning_option=yes
9678else $as_nop
9679  xorg_cv_cc_flag_unknown_warning_option=no
9680fi
9681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9682fi
9683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9684printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9685	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9686	CFLAGS="$xorg_testset_save_CFLAGS"
9687fi
9688
9689if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9690	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9691		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9692	fi
9693	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9694	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9695printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9696if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9697then :
9698  printf %s "(cached) " >&6
9699else $as_nop
9700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701/* end confdefs.h.  */
9702int i;
9703_ACEOF
9704if ac_fn_c_try_compile "$LINENO"
9705then :
9706  xorg_cv_cc_flag_unused_command_line_argument=yes
9707else $as_nop
9708  xorg_cv_cc_flag_unused_command_line_argument=no
9709fi
9710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9711fi
9712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9713printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9714	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9715	CFLAGS="$xorg_testset_save_CFLAGS"
9716fi
9717
9718found="no"
9719
9720	if test $found = "no" ; then
9721		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9722			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9723		fi
9724
9725		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9726			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9727		fi
9728
9729		CFLAGS="$CFLAGS -Wsequence-point"
9730
9731		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9732printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9733		cacheid=xorg_cv_cc_flag__Wsequence_point
9734		if eval test \${$cacheid+y}
9735then :
9736  printf %s "(cached) " >&6
9737else $as_nop
9738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739/* end confdefs.h.  */
9740int i;
9741int
9742main (void)
9743{
9744
9745  ;
9746  return 0;
9747}
9748_ACEOF
9749if ac_fn_c_try_link "$LINENO"
9750then :
9751  eval $cacheid=yes
9752else $as_nop
9753  eval $cacheid=no
9754fi
9755rm -f core conftest.err conftest.$ac_objext conftest.beam \
9756    conftest$ac_exeext conftest.$ac_ext
9757fi
9758
9759
9760		CFLAGS="$xorg_testset_save_CFLAGS"
9761
9762		eval supported=\$$cacheid
9763		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9764printf "%s\n" "$supported" >&6; }
9765		if test "$supported" = "yes" ; then
9766			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9767			found="yes"
9768		fi
9769	fi
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785xorg_testset_save_CFLAGS="$CFLAGS"
9786
9787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9788	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9789	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9790printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9791if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9792then :
9793  printf %s "(cached) " >&6
9794else $as_nop
9795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796/* end confdefs.h.  */
9797int i;
9798_ACEOF
9799if ac_fn_c_try_compile "$LINENO"
9800then :
9801  xorg_cv_cc_flag_unknown_warning_option=yes
9802else $as_nop
9803  xorg_cv_cc_flag_unknown_warning_option=no
9804fi
9805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9806fi
9807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9808printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9809	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9810	CFLAGS="$xorg_testset_save_CFLAGS"
9811fi
9812
9813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9814	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9815		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9816	fi
9817	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9818	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9819printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9820if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9821then :
9822  printf %s "(cached) " >&6
9823else $as_nop
9824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9825/* end confdefs.h.  */
9826int i;
9827_ACEOF
9828if ac_fn_c_try_compile "$LINENO"
9829then :
9830  xorg_cv_cc_flag_unused_command_line_argument=yes
9831else $as_nop
9832  xorg_cv_cc_flag_unused_command_line_argument=no
9833fi
9834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9835fi
9836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9837printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9838	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9839	CFLAGS="$xorg_testset_save_CFLAGS"
9840fi
9841
9842found="no"
9843
9844	if test $found = "no" ; then
9845		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9846			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9847		fi
9848
9849		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9850			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9851		fi
9852
9853		CFLAGS="$CFLAGS -Wreturn-type"
9854
9855		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9856printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9857		cacheid=xorg_cv_cc_flag__Wreturn_type
9858		if eval test \${$cacheid+y}
9859then :
9860  printf %s "(cached) " >&6
9861else $as_nop
9862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9863/* end confdefs.h.  */
9864int i;
9865int
9866main (void)
9867{
9868
9869  ;
9870  return 0;
9871}
9872_ACEOF
9873if ac_fn_c_try_link "$LINENO"
9874then :
9875  eval $cacheid=yes
9876else $as_nop
9877  eval $cacheid=no
9878fi
9879rm -f core conftest.err conftest.$ac_objext conftest.beam \
9880    conftest$ac_exeext conftest.$ac_ext
9881fi
9882
9883
9884		CFLAGS="$xorg_testset_save_CFLAGS"
9885
9886		eval supported=\$$cacheid
9887		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9888printf "%s\n" "$supported" >&6; }
9889		if test "$supported" = "yes" ; then
9890			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9891			found="yes"
9892		fi
9893	fi
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909xorg_testset_save_CFLAGS="$CFLAGS"
9910
9911if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9912	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9913	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9914printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9915if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9916then :
9917  printf %s "(cached) " >&6
9918else $as_nop
9919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9920/* end confdefs.h.  */
9921int i;
9922_ACEOF
9923if ac_fn_c_try_compile "$LINENO"
9924then :
9925  xorg_cv_cc_flag_unknown_warning_option=yes
9926else $as_nop
9927  xorg_cv_cc_flag_unknown_warning_option=no
9928fi
9929rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9930fi
9931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9932printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9933	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9934	CFLAGS="$xorg_testset_save_CFLAGS"
9935fi
9936
9937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9938	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9939		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9940	fi
9941	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9942	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9943printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9944if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9945then :
9946  printf %s "(cached) " >&6
9947else $as_nop
9948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9949/* end confdefs.h.  */
9950int i;
9951_ACEOF
9952if ac_fn_c_try_compile "$LINENO"
9953then :
9954  xorg_cv_cc_flag_unused_command_line_argument=yes
9955else $as_nop
9956  xorg_cv_cc_flag_unused_command_line_argument=no
9957fi
9958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9959fi
9960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9961printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9962	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9963	CFLAGS="$xorg_testset_save_CFLAGS"
9964fi
9965
9966found="no"
9967
9968	if test $found = "no" ; then
9969		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9970			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9971		fi
9972
9973		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9974			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9975		fi
9976
9977		CFLAGS="$CFLAGS -Wtrigraphs"
9978
9979		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9980printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9981		cacheid=xorg_cv_cc_flag__Wtrigraphs
9982		if eval test \${$cacheid+y}
9983then :
9984  printf %s "(cached) " >&6
9985else $as_nop
9986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987/* end confdefs.h.  */
9988int i;
9989int
9990main (void)
9991{
9992
9993  ;
9994  return 0;
9995}
9996_ACEOF
9997if ac_fn_c_try_link "$LINENO"
9998then :
9999  eval $cacheid=yes
10000else $as_nop
10001  eval $cacheid=no
10002fi
10003rm -f core conftest.err conftest.$ac_objext conftest.beam \
10004    conftest$ac_exeext conftest.$ac_ext
10005fi
10006
10007
10008		CFLAGS="$xorg_testset_save_CFLAGS"
10009
10010		eval supported=\$$cacheid
10011		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10012printf "%s\n" "$supported" >&6; }
10013		if test "$supported" = "yes" ; then
10014			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10015			found="yes"
10016		fi
10017	fi
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033xorg_testset_save_CFLAGS="$CFLAGS"
10034
10035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10036	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10037	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10038printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10039if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10040then :
10041  printf %s "(cached) " >&6
10042else $as_nop
10043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10044/* end confdefs.h.  */
10045int i;
10046_ACEOF
10047if ac_fn_c_try_compile "$LINENO"
10048then :
10049  xorg_cv_cc_flag_unknown_warning_option=yes
10050else $as_nop
10051  xorg_cv_cc_flag_unknown_warning_option=no
10052fi
10053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10054fi
10055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10056printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10057	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10058	CFLAGS="$xorg_testset_save_CFLAGS"
10059fi
10060
10061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10062	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10063		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10064	fi
10065	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10066	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10067printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10068if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10069then :
10070  printf %s "(cached) " >&6
10071else $as_nop
10072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10073/* end confdefs.h.  */
10074int i;
10075_ACEOF
10076if ac_fn_c_try_compile "$LINENO"
10077then :
10078  xorg_cv_cc_flag_unused_command_line_argument=yes
10079else $as_nop
10080  xorg_cv_cc_flag_unused_command_line_argument=no
10081fi
10082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10083fi
10084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10085printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10086	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10087	CFLAGS="$xorg_testset_save_CFLAGS"
10088fi
10089
10090found="no"
10091
10092	if test $found = "no" ; then
10093		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10094			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10095		fi
10096
10097		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10098			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10099		fi
10100
10101		CFLAGS="$CFLAGS -Warray-bounds"
10102
10103		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10104printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10105		cacheid=xorg_cv_cc_flag__Warray_bounds
10106		if eval test \${$cacheid+y}
10107then :
10108  printf %s "(cached) " >&6
10109else $as_nop
10110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111/* end confdefs.h.  */
10112int i;
10113int
10114main (void)
10115{
10116
10117  ;
10118  return 0;
10119}
10120_ACEOF
10121if ac_fn_c_try_link "$LINENO"
10122then :
10123  eval $cacheid=yes
10124else $as_nop
10125  eval $cacheid=no
10126fi
10127rm -f core conftest.err conftest.$ac_objext conftest.beam \
10128    conftest$ac_exeext conftest.$ac_ext
10129fi
10130
10131
10132		CFLAGS="$xorg_testset_save_CFLAGS"
10133
10134		eval supported=\$$cacheid
10135		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10136printf "%s\n" "$supported" >&6; }
10137		if test "$supported" = "yes" ; then
10138			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10139			found="yes"
10140		fi
10141	fi
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157xorg_testset_save_CFLAGS="$CFLAGS"
10158
10159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10160	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10161	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10162printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10163if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10164then :
10165  printf %s "(cached) " >&6
10166else $as_nop
10167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168/* end confdefs.h.  */
10169int i;
10170_ACEOF
10171if ac_fn_c_try_compile "$LINENO"
10172then :
10173  xorg_cv_cc_flag_unknown_warning_option=yes
10174else $as_nop
10175  xorg_cv_cc_flag_unknown_warning_option=no
10176fi
10177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10178fi
10179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10180printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10181	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10182	CFLAGS="$xorg_testset_save_CFLAGS"
10183fi
10184
10185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10186	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10187		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10188	fi
10189	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10190	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10191printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10192if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10193then :
10194  printf %s "(cached) " >&6
10195else $as_nop
10196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197/* end confdefs.h.  */
10198int i;
10199_ACEOF
10200if ac_fn_c_try_compile "$LINENO"
10201then :
10202  xorg_cv_cc_flag_unused_command_line_argument=yes
10203else $as_nop
10204  xorg_cv_cc_flag_unused_command_line_argument=no
10205fi
10206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10207fi
10208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10209printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10210	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10211	CFLAGS="$xorg_testset_save_CFLAGS"
10212fi
10213
10214found="no"
10215
10216	if test $found = "no" ; then
10217		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10218			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10219		fi
10220
10221		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10222			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10223		fi
10224
10225		CFLAGS="$CFLAGS -Wwrite-strings"
10226
10227		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10228printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10229		cacheid=xorg_cv_cc_flag__Wwrite_strings
10230		if eval test \${$cacheid+y}
10231then :
10232  printf %s "(cached) " >&6
10233else $as_nop
10234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235/* end confdefs.h.  */
10236int i;
10237int
10238main (void)
10239{
10240
10241  ;
10242  return 0;
10243}
10244_ACEOF
10245if ac_fn_c_try_link "$LINENO"
10246then :
10247  eval $cacheid=yes
10248else $as_nop
10249  eval $cacheid=no
10250fi
10251rm -f core conftest.err conftest.$ac_objext conftest.beam \
10252    conftest$ac_exeext conftest.$ac_ext
10253fi
10254
10255
10256		CFLAGS="$xorg_testset_save_CFLAGS"
10257
10258		eval supported=\$$cacheid
10259		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10260printf "%s\n" "$supported" >&6; }
10261		if test "$supported" = "yes" ; then
10262			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10263			found="yes"
10264		fi
10265	fi
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281xorg_testset_save_CFLAGS="$CFLAGS"
10282
10283if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10284	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10285	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10286printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10287if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10288then :
10289  printf %s "(cached) " >&6
10290else $as_nop
10291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10292/* end confdefs.h.  */
10293int i;
10294_ACEOF
10295if ac_fn_c_try_compile "$LINENO"
10296then :
10297  xorg_cv_cc_flag_unknown_warning_option=yes
10298else $as_nop
10299  xorg_cv_cc_flag_unknown_warning_option=no
10300fi
10301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10302fi
10303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10304printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10305	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10306	CFLAGS="$xorg_testset_save_CFLAGS"
10307fi
10308
10309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10310	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10311		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10312	fi
10313	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10314	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10315printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10316if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10317then :
10318  printf %s "(cached) " >&6
10319else $as_nop
10320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10321/* end confdefs.h.  */
10322int i;
10323_ACEOF
10324if ac_fn_c_try_compile "$LINENO"
10325then :
10326  xorg_cv_cc_flag_unused_command_line_argument=yes
10327else $as_nop
10328  xorg_cv_cc_flag_unused_command_line_argument=no
10329fi
10330rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10331fi
10332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10333printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10334	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10335	CFLAGS="$xorg_testset_save_CFLAGS"
10336fi
10337
10338found="no"
10339
10340	if test $found = "no" ; then
10341		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10342			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10343		fi
10344
10345		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10346			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10347		fi
10348
10349		CFLAGS="$CFLAGS -Waddress"
10350
10351		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10352printf %s "checking if $CC supports -Waddress... " >&6; }
10353		cacheid=xorg_cv_cc_flag__Waddress
10354		if eval test \${$cacheid+y}
10355then :
10356  printf %s "(cached) " >&6
10357else $as_nop
10358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359/* end confdefs.h.  */
10360int i;
10361int
10362main (void)
10363{
10364
10365  ;
10366  return 0;
10367}
10368_ACEOF
10369if ac_fn_c_try_link "$LINENO"
10370then :
10371  eval $cacheid=yes
10372else $as_nop
10373  eval $cacheid=no
10374fi
10375rm -f core conftest.err conftest.$ac_objext conftest.beam \
10376    conftest$ac_exeext conftest.$ac_ext
10377fi
10378
10379
10380		CFLAGS="$xorg_testset_save_CFLAGS"
10381
10382		eval supported=\$$cacheid
10383		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10384printf "%s\n" "$supported" >&6; }
10385		if test "$supported" = "yes" ; then
10386			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10387			found="yes"
10388		fi
10389	fi
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405xorg_testset_save_CFLAGS="$CFLAGS"
10406
10407if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10408	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10409	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10410printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10411if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10412then :
10413  printf %s "(cached) " >&6
10414else $as_nop
10415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416/* end confdefs.h.  */
10417int i;
10418_ACEOF
10419if ac_fn_c_try_compile "$LINENO"
10420then :
10421  xorg_cv_cc_flag_unknown_warning_option=yes
10422else $as_nop
10423  xorg_cv_cc_flag_unknown_warning_option=no
10424fi
10425rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10426fi
10427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10428printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10429	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10430	CFLAGS="$xorg_testset_save_CFLAGS"
10431fi
10432
10433if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10434	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10435		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10436	fi
10437	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10438	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10439printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10440if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10441then :
10442  printf %s "(cached) " >&6
10443else $as_nop
10444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10445/* end confdefs.h.  */
10446int i;
10447_ACEOF
10448if ac_fn_c_try_compile "$LINENO"
10449then :
10450  xorg_cv_cc_flag_unused_command_line_argument=yes
10451else $as_nop
10452  xorg_cv_cc_flag_unused_command_line_argument=no
10453fi
10454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10455fi
10456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10457printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10458	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10459	CFLAGS="$xorg_testset_save_CFLAGS"
10460fi
10461
10462found="no"
10463
10464	if test $found = "no" ; then
10465		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10466			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10467		fi
10468
10469		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10470			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10471		fi
10472
10473		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10474
10475		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10476printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10477		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10478		if eval test \${$cacheid+y}
10479then :
10480  printf %s "(cached) " >&6
10481else $as_nop
10482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483/* end confdefs.h.  */
10484int i;
10485int
10486main (void)
10487{
10488
10489  ;
10490  return 0;
10491}
10492_ACEOF
10493if ac_fn_c_try_link "$LINENO"
10494then :
10495  eval $cacheid=yes
10496else $as_nop
10497  eval $cacheid=no
10498fi
10499rm -f core conftest.err conftest.$ac_objext conftest.beam \
10500    conftest$ac_exeext conftest.$ac_ext
10501fi
10502
10503
10504		CFLAGS="$xorg_testset_save_CFLAGS"
10505
10506		eval supported=\$$cacheid
10507		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10508printf "%s\n" "$supported" >&6; }
10509		if test "$supported" = "yes" ; then
10510			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10511			found="yes"
10512		fi
10513	fi
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529xorg_testset_save_CFLAGS="$CFLAGS"
10530
10531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10532	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10533	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10534printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10535if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10536then :
10537  printf %s "(cached) " >&6
10538else $as_nop
10539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540/* end confdefs.h.  */
10541int i;
10542_ACEOF
10543if ac_fn_c_try_compile "$LINENO"
10544then :
10545  xorg_cv_cc_flag_unknown_warning_option=yes
10546else $as_nop
10547  xorg_cv_cc_flag_unknown_warning_option=no
10548fi
10549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10550fi
10551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10552printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10553	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10554	CFLAGS="$xorg_testset_save_CFLAGS"
10555fi
10556
10557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10558	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10559		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10560	fi
10561	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10562	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10563printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10564if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10565then :
10566  printf %s "(cached) " >&6
10567else $as_nop
10568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569/* end confdefs.h.  */
10570int i;
10571_ACEOF
10572if ac_fn_c_try_compile "$LINENO"
10573then :
10574  xorg_cv_cc_flag_unused_command_line_argument=yes
10575else $as_nop
10576  xorg_cv_cc_flag_unused_command_line_argument=no
10577fi
10578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10579fi
10580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10581printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10582	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10583	CFLAGS="$xorg_testset_save_CFLAGS"
10584fi
10585
10586found="no"
10587
10588	if test $found = "no" ; then
10589		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10590			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10591		fi
10592
10593		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10594			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10595		fi
10596
10597		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10598
10599		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10600printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10601		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10602		if eval test \${$cacheid+y}
10603then :
10604  printf %s "(cached) " >&6
10605else $as_nop
10606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607/* end confdefs.h.  */
10608int i;
10609int
10610main (void)
10611{
10612
10613  ;
10614  return 0;
10615}
10616_ACEOF
10617if ac_fn_c_try_link "$LINENO"
10618then :
10619  eval $cacheid=yes
10620else $as_nop
10621  eval $cacheid=no
10622fi
10623rm -f core conftest.err conftest.$ac_objext conftest.beam \
10624    conftest$ac_exeext conftest.$ac_ext
10625fi
10626
10627
10628		CFLAGS="$xorg_testset_save_CFLAGS"
10629
10630		eval supported=\$$cacheid
10631		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10632printf "%s\n" "$supported" >&6; }
10633		if test "$supported" = "yes" ; then
10634			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10635			found="yes"
10636		fi
10637	fi
10638
10639
10640fi
10641
10642
10643
10644
10645
10646
10647
10648		CWARNFLAGS="$BASE_CFLAGS"
10649		if  test "x$GCC" = xyes ; then
10650		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10651		fi
10652
10653
10654
10655
10656
10657
10658
10659
10660# Check whether --enable-strict-compilation was given.
10661if test ${enable_strict_compilation+y}
10662then :
10663  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10664else $as_nop
10665  STRICT_COMPILE=no
10666fi
10667
10668
10669
10670
10671
10672
10673STRICT_CFLAGS=""
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687xorg_testset_save_CFLAGS="$CFLAGS"
10688
10689if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10690	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10691	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10692printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10693if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10694then :
10695  printf %s "(cached) " >&6
10696else $as_nop
10697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10698/* end confdefs.h.  */
10699int i;
10700_ACEOF
10701if ac_fn_c_try_compile "$LINENO"
10702then :
10703  xorg_cv_cc_flag_unknown_warning_option=yes
10704else $as_nop
10705  xorg_cv_cc_flag_unknown_warning_option=no
10706fi
10707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10708fi
10709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10710printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10711	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10712	CFLAGS="$xorg_testset_save_CFLAGS"
10713fi
10714
10715if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10716	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10717		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10718	fi
10719	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10720	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10721printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10722if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10723then :
10724  printf %s "(cached) " >&6
10725else $as_nop
10726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727/* end confdefs.h.  */
10728int i;
10729_ACEOF
10730if ac_fn_c_try_compile "$LINENO"
10731then :
10732  xorg_cv_cc_flag_unused_command_line_argument=yes
10733else $as_nop
10734  xorg_cv_cc_flag_unused_command_line_argument=no
10735fi
10736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10737fi
10738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10739printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10740	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10741	CFLAGS="$xorg_testset_save_CFLAGS"
10742fi
10743
10744found="no"
10745
10746	if test $found = "no" ; then
10747		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10748			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10749		fi
10750
10751		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10752			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10753		fi
10754
10755		CFLAGS="$CFLAGS -pedantic"
10756
10757		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10758printf %s "checking if $CC supports -pedantic... " >&6; }
10759		cacheid=xorg_cv_cc_flag__pedantic
10760		if eval test \${$cacheid+y}
10761then :
10762  printf %s "(cached) " >&6
10763else $as_nop
10764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765/* end confdefs.h.  */
10766int i;
10767int
10768main (void)
10769{
10770
10771  ;
10772  return 0;
10773}
10774_ACEOF
10775if ac_fn_c_try_link "$LINENO"
10776then :
10777  eval $cacheid=yes
10778else $as_nop
10779  eval $cacheid=no
10780fi
10781rm -f core conftest.err conftest.$ac_objext conftest.beam \
10782    conftest$ac_exeext conftest.$ac_ext
10783fi
10784
10785
10786		CFLAGS="$xorg_testset_save_CFLAGS"
10787
10788		eval supported=\$$cacheid
10789		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10790printf "%s\n" "$supported" >&6; }
10791		if test "$supported" = "yes" ; then
10792			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10793			found="yes"
10794		fi
10795	fi
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811xorg_testset_save_CFLAGS="$CFLAGS"
10812
10813if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10814	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10815	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10816printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10817if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10818then :
10819  printf %s "(cached) " >&6
10820else $as_nop
10821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10822/* end confdefs.h.  */
10823int i;
10824_ACEOF
10825if ac_fn_c_try_compile "$LINENO"
10826then :
10827  xorg_cv_cc_flag_unknown_warning_option=yes
10828else $as_nop
10829  xorg_cv_cc_flag_unknown_warning_option=no
10830fi
10831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10832fi
10833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10834printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10835	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10836	CFLAGS="$xorg_testset_save_CFLAGS"
10837fi
10838
10839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10840	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10841		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10842	fi
10843	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10844	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10845printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10846if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10847then :
10848  printf %s "(cached) " >&6
10849else $as_nop
10850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10851/* end confdefs.h.  */
10852int i;
10853_ACEOF
10854if ac_fn_c_try_compile "$LINENO"
10855then :
10856  xorg_cv_cc_flag_unused_command_line_argument=yes
10857else $as_nop
10858  xorg_cv_cc_flag_unused_command_line_argument=no
10859fi
10860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10861fi
10862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10863printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10864	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10865	CFLAGS="$xorg_testset_save_CFLAGS"
10866fi
10867
10868found="no"
10869
10870	if test $found = "no" ; then
10871		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10872			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10873		fi
10874
10875		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10876			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10877		fi
10878
10879		CFLAGS="$CFLAGS -Werror"
10880
10881		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10882printf %s "checking if $CC supports -Werror... " >&6; }
10883		cacheid=xorg_cv_cc_flag__Werror
10884		if eval test \${$cacheid+y}
10885then :
10886  printf %s "(cached) " >&6
10887else $as_nop
10888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889/* end confdefs.h.  */
10890int i;
10891int
10892main (void)
10893{
10894
10895  ;
10896  return 0;
10897}
10898_ACEOF
10899if ac_fn_c_try_link "$LINENO"
10900then :
10901  eval $cacheid=yes
10902else $as_nop
10903  eval $cacheid=no
10904fi
10905rm -f core conftest.err conftest.$ac_objext conftest.beam \
10906    conftest$ac_exeext conftest.$ac_ext
10907fi
10908
10909
10910		CFLAGS="$xorg_testset_save_CFLAGS"
10911
10912		eval supported=\$$cacheid
10913		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10914printf "%s\n" "$supported" >&6; }
10915		if test "$supported" = "yes" ; then
10916			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10917			found="yes"
10918		fi
10919	fi
10920
10921	if test $found = "no" ; then
10922		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10923			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10924		fi
10925
10926		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10927			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10928		fi
10929
10930		CFLAGS="$CFLAGS -errwarn"
10931
10932		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10933printf %s "checking if $CC supports -errwarn... " >&6; }
10934		cacheid=xorg_cv_cc_flag__errwarn
10935		if eval test \${$cacheid+y}
10936then :
10937  printf %s "(cached) " >&6
10938else $as_nop
10939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940/* end confdefs.h.  */
10941int i;
10942int
10943main (void)
10944{
10945
10946  ;
10947  return 0;
10948}
10949_ACEOF
10950if ac_fn_c_try_link "$LINENO"
10951then :
10952  eval $cacheid=yes
10953else $as_nop
10954  eval $cacheid=no
10955fi
10956rm -f core conftest.err conftest.$ac_objext conftest.beam \
10957    conftest$ac_exeext conftest.$ac_ext
10958fi
10959
10960
10961		CFLAGS="$xorg_testset_save_CFLAGS"
10962
10963		eval supported=\$$cacheid
10964		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10965printf "%s\n" "$supported" >&6; }
10966		if test "$supported" = "yes" ; then
10967			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10968			found="yes"
10969		fi
10970	fi
10971
10972
10973
10974# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10975# activate it with -Werror, so we add it here explicitly.
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989xorg_testset_save_CFLAGS="$CFLAGS"
10990
10991if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10992	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10993	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10994printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10995if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10996then :
10997  printf %s "(cached) " >&6
10998else $as_nop
10999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11000/* end confdefs.h.  */
11001int i;
11002_ACEOF
11003if ac_fn_c_try_compile "$LINENO"
11004then :
11005  xorg_cv_cc_flag_unknown_warning_option=yes
11006else $as_nop
11007  xorg_cv_cc_flag_unknown_warning_option=no
11008fi
11009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11010fi
11011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11012printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11013	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11014	CFLAGS="$xorg_testset_save_CFLAGS"
11015fi
11016
11017if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11018	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11019		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11020	fi
11021	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11022	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11023printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11024if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11025then :
11026  printf %s "(cached) " >&6
11027else $as_nop
11028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029/* end confdefs.h.  */
11030int i;
11031_ACEOF
11032if ac_fn_c_try_compile "$LINENO"
11033then :
11034  xorg_cv_cc_flag_unused_command_line_argument=yes
11035else $as_nop
11036  xorg_cv_cc_flag_unused_command_line_argument=no
11037fi
11038rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11039fi
11040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11041printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11042	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11043	CFLAGS="$xorg_testset_save_CFLAGS"
11044fi
11045
11046found="no"
11047
11048	if test $found = "no" ; then
11049		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11050			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11051		fi
11052
11053		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11054			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11055		fi
11056
11057		CFLAGS="$CFLAGS -Werror=attributes"
11058
11059		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11060printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11061		cacheid=xorg_cv_cc_flag__Werror_attributes
11062		if eval test \${$cacheid+y}
11063then :
11064  printf %s "(cached) " >&6
11065else $as_nop
11066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11067/* end confdefs.h.  */
11068int i;
11069int
11070main (void)
11071{
11072
11073  ;
11074  return 0;
11075}
11076_ACEOF
11077if ac_fn_c_try_link "$LINENO"
11078then :
11079  eval $cacheid=yes
11080else $as_nop
11081  eval $cacheid=no
11082fi
11083rm -f core conftest.err conftest.$ac_objext conftest.beam \
11084    conftest$ac_exeext conftest.$ac_ext
11085fi
11086
11087
11088		CFLAGS="$xorg_testset_save_CFLAGS"
11089
11090		eval supported=\$$cacheid
11091		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11092printf "%s\n" "$supported" >&6; }
11093		if test "$supported" = "yes" ; then
11094			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11095			found="yes"
11096		fi
11097	fi
11098
11099
11100
11101if test "x$STRICT_COMPILE" = "xyes"; then
11102    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11103    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11104fi
11105
11106
11107
11108
11109
11110
11111cat >>confdefs.h <<_ACEOF
11112#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11113_ACEOF
11114
11115	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11116	if test "x$PVM" = "x"; then
11117		PVM="0"
11118	fi
11119
11120printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11121
11122	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11123	if test "x$PVP" = "x"; then
11124		PVP="0"
11125	fi
11126
11127printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11128
11129
11130
11131CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11132mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11133|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11134touch \$(top_srcdir)/ChangeLog; \
11135echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11136
11137
11138
11139
11140macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11141INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11142mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11143|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11144touch \$(top_srcdir)/INSTALL; \
11145echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11146
11147
11148
11149
11150
11151
11152case $host_os in
11153    solaris*)
11154        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11155        # check for a man page file found in later versions that use
11156        # traditional section numbers instead
11157        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11158printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11159if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11160then :
11161  printf %s "(cached) " >&6
11162else $as_nop
11163  test "$cross_compiling" = yes &&
11164  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11165if test -r "/usr/share/man/man7/attributes.7"; then
11166  ac_cv_file__usr_share_man_man7_attributes_7=yes
11167else
11168  ac_cv_file__usr_share_man_man7_attributes_7=no
11169fi
11170fi
11171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11172printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11173if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11174then :
11175  SYSV_MAN_SECTIONS=false
11176else $as_nop
11177  SYSV_MAN_SECTIONS=true
11178fi
11179
11180        ;;
11181    *) SYSV_MAN_SECTIONS=false ;;
11182esac
11183
11184if test x$APP_MAN_SUFFIX = x    ; then
11185    APP_MAN_SUFFIX=1
11186fi
11187if test x$APP_MAN_DIR = x    ; then
11188    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11189fi
11190
11191if test x$LIB_MAN_SUFFIX = x    ; then
11192    LIB_MAN_SUFFIX=3
11193fi
11194if test x$LIB_MAN_DIR = x    ; then
11195    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11196fi
11197
11198if test x$FILE_MAN_SUFFIX = x    ; then
11199    case $SYSV_MAN_SECTIONS in
11200	true)				FILE_MAN_SUFFIX=4  ;;
11201	*)				FILE_MAN_SUFFIX=5  ;;
11202    esac
11203fi
11204if test x$FILE_MAN_DIR = x    ; then
11205    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11206fi
11207
11208if test x$MISC_MAN_SUFFIX = x    ; then
11209    case $SYSV_MAN_SECTIONS in
11210	true)				MISC_MAN_SUFFIX=5  ;;
11211	*)				MISC_MAN_SUFFIX=7  ;;
11212    esac
11213fi
11214if test x$MISC_MAN_DIR = x    ; then
11215    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11216fi
11217
11218if test x$DRIVER_MAN_SUFFIX = x    ; then
11219    case $SYSV_MAN_SECTIONS in
11220	true)				DRIVER_MAN_SUFFIX=7  ;;
11221	*)				DRIVER_MAN_SUFFIX=4  ;;
11222    esac
11223fi
11224if test x$DRIVER_MAN_DIR = x    ; then
11225    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11226fi
11227
11228if test x$ADMIN_MAN_SUFFIX = x    ; then
11229    case $SYSV_MAN_SECTIONS in
11230	true)				ADMIN_MAN_SUFFIX=1m ;;
11231	*)				ADMIN_MAN_SUFFIX=8  ;;
11232    esac
11233fi
11234if test x$ADMIN_MAN_DIR = x    ; then
11235    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11236fi
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252XORG_MAN_PAGE="X Version 11"
11253
11254MAN_SUBSTS="\
11255	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11256	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11257	-e 's|__xservername__|Xorg|g' \
11258	-e 's|__xconfigfile__|xorg.conf|g' \
11259	-e 's|__projectroot__|\$(prefix)|g' \
11260	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11261	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11262	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11263	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11264	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11265	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11266	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11267
11268
11269
11270# Check whether --enable-silent-rules was given.
11271if test ${enable_silent_rules+y}
11272then :
11273  enableval=$enable_silent_rules;
11274fi
11275
11276case $enable_silent_rules in # (((
11277  yes) AM_DEFAULT_VERBOSITY=0;;
11278   no) AM_DEFAULT_VERBOSITY=1;;
11279    *) AM_DEFAULT_VERBOSITY=0;;
11280esac
11281am_make=${MAKE-make}
11282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11283printf %s "checking whether $am_make supports nested variables... " >&6; }
11284if test ${am_cv_make_support_nested_variables+y}
11285then :
11286  printf %s "(cached) " >&6
11287else $as_nop
11288  if printf "%s\n" 'TRUE=$(BAR$(V))
11289BAR0=false
11290BAR1=true
11291V=1
11292am__doit:
11293	@$(TRUE)
11294.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11295  am_cv_make_support_nested_variables=yes
11296else
11297  am_cv_make_support_nested_variables=no
11298fi
11299fi
11300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11301printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11302if test $am_cv_make_support_nested_variables = yes; then
11303    AM_V='$(V)'
11304  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11305else
11306  AM_V=$AM_DEFAULT_VERBOSITY
11307  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11308fi
11309AM_BACKSLASH='\'
11310
11311
11312
11313ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
11314if test "x$ac_cv_func_strncasecmp" = xyes
11315then :
11316  printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
11317
11318fi
11319ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
11320if test "x$ac_cv_func_asprintf" = xyes
11321then :
11322  printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
11323
11324fi
11325
11326
11327# Checks for pkg-config packages
11328
11329pkg_failed=no
11330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XMODMAP" >&5
11331printf %s "checking for XMODMAP... " >&6; }
11332
11333if test -n "$XMODMAP_CFLAGS"; then
11334    pkg_cv_XMODMAP_CFLAGS="$XMODMAP_CFLAGS"
11335 elif test -n "$PKG_CONFIG"; then
11336    if test -n "$PKG_CONFIG" && \
11337    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
11338  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
11339  ac_status=$?
11340  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11341  test $ac_status = 0; }; then
11342  pkg_cv_XMODMAP_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25" 2>/dev/null`
11343		      test "x$?" != "x0" && pkg_failed=yes
11344else
11345  pkg_failed=yes
11346fi
11347 else
11348    pkg_failed=untried
11349fi
11350if test -n "$XMODMAP_LIBS"; then
11351    pkg_cv_XMODMAP_LIBS="$XMODMAP_LIBS"
11352 elif test -n "$PKG_CONFIG"; then
11353    if test -n "$PKG_CONFIG" && \
11354    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
11355  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
11356  ac_status=$?
11357  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11358  test $ac_status = 0; }; then
11359  pkg_cv_XMODMAP_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25" 2>/dev/null`
11360		      test "x$?" != "x0" && pkg_failed=yes
11361else
11362  pkg_failed=yes
11363fi
11364 else
11365    pkg_failed=untried
11366fi
11367
11368
11369
11370if test $pkg_failed = yes; then
11371   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372printf "%s\n" "no" >&6; }
11373
11374if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11375        _pkg_short_errors_supported=yes
11376else
11377        _pkg_short_errors_supported=no
11378fi
11379        if test $_pkg_short_errors_supported = yes; then
11380	        XMODMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
11381        else
11382	        XMODMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
11383        fi
11384	# Put the nasty error message in config.log where it belongs
11385	echo "$XMODMAP_PKG_ERRORS" >&5
11386
11387	as_fn_error $? "Package requirements (x11 xproto >= 7.0.25) were not met:
11388
11389$XMODMAP_PKG_ERRORS
11390
11391Consider adjusting the PKG_CONFIG_PATH environment variable if you
11392installed software in a non-standard prefix.
11393
11394Alternatively, you may set the environment variables XMODMAP_CFLAGS
11395and XMODMAP_LIBS to avoid the need to call pkg-config.
11396See the pkg-config man page for more details." "$LINENO" 5
11397elif test $pkg_failed = untried; then
11398     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11399printf "%s\n" "no" >&6; }
11400	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11401printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11402as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11403is in your PATH or set the PKG_CONFIG environment variable to the full
11404path to pkg-config.
11405
11406Alternatively, you may set the environment variables XMODMAP_CFLAGS
11407and XMODMAP_LIBS to avoid the need to call pkg-config.
11408See the pkg-config man page for more details.
11409
11410To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11411See \`config.log' for more details" "$LINENO" 5; }
11412else
11413	XMODMAP_CFLAGS=$pkg_cv_XMODMAP_CFLAGS
11414	XMODMAP_LIBS=$pkg_cv_XMODMAP_LIBS
11415        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11416printf "%s\n" "yes" >&6; }
11417
11418fi
11419
11420
11421
11422
11423
11424
11425# Check whether --with-lint was given.
11426if test ${with_lint+y}
11427then :
11428  withval=$with_lint; use_lint=$withval
11429else $as_nop
11430  use_lint=no
11431fi
11432
11433
11434# Obtain platform specific info like program name and options
11435# The lint program on FreeBSD and NetBSD is different from the one on Solaris
11436case $host_os in
11437  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11438	lint_name=splint
11439	lint_options="-badflag"
11440	;;
11441  *freebsd* | *netbsd*)
11442	lint_name=lint
11443	lint_options="-u -b"
11444	;;
11445  *solaris*)
11446	lint_name=lint
11447	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11448	;;
11449esac
11450
11451# Test for the presence of the program (either guessed by the code or spelled out by the user)
11452if test "x$use_lint" = x"yes" ; then
11453   # Extract the first word of "$lint_name", so it can be a program name with args.
11454set dummy $lint_name; ac_word=$2
11455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11456printf %s "checking for $ac_word... " >&6; }
11457if test ${ac_cv_path_LINT+y}
11458then :
11459  printf %s "(cached) " >&6
11460else $as_nop
11461  case $LINT in
11462  [\\/]* | ?:[\\/]*)
11463  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11464  ;;
11465  *)
11466  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467for as_dir in $PATH
11468do
11469  IFS=$as_save_IFS
11470  case $as_dir in #(((
11471    '') as_dir=./ ;;
11472    */) ;;
11473    *) as_dir=$as_dir/ ;;
11474  esac
11475    for ac_exec_ext in '' $ac_executable_extensions; do
11476  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11477    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
11478    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11479    break 2
11480  fi
11481done
11482  done
11483IFS=$as_save_IFS
11484
11485  ;;
11486esac
11487fi
11488LINT=$ac_cv_path_LINT
11489if test -n "$LINT"; then
11490  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11491printf "%s\n" "$LINT" >&6; }
11492else
11493  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494printf "%s\n" "no" >&6; }
11495fi
11496
11497
11498   if test "x$LINT" = "x"; then
11499        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11500   fi
11501elif test "x$use_lint" = x"no" ; then
11502   if test "x$LINT" != "x"; then
11503      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11504printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11505   fi
11506else
11507   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
11508fi
11509
11510# User supplied flags override default flags
11511if test "x$LINT_FLAGS" != "x"; then
11512   lint_options=$LINT_FLAGS
11513fi
11514
11515LINT_FLAGS=$lint_options
11516
11517 if test "x$LINT" != x; then
11518  LINT_TRUE=
11519  LINT_FALSE='#'
11520else
11521  LINT_TRUE='#'
11522  LINT_FALSE=
11523fi
11524
11525
11526
11527
11528ac_config_files="$ac_config_files Makefile man/Makefile"
11529
11530cat >confcache <<\_ACEOF
11531# This file is a shell script that caches the results of configure
11532# tests run on this system so they can be shared between configure
11533# scripts and configure runs, see configure's option --config-cache.
11534# It is not useful on other systems.  If it contains results you don't
11535# want to keep, you may remove or edit it.
11536#
11537# config.status only pays attention to the cache file if you give it
11538# the --recheck option to rerun configure.
11539#
11540# `ac_cv_env_foo' variables (set or unset) will be overridden when
11541# loading this file, other *unset* `ac_cv_foo' will be assigned the
11542# following values.
11543
11544_ACEOF
11545
11546# The following way of writing the cache mishandles newlines in values,
11547# but we know of no workaround that is simple, portable, and efficient.
11548# So, we kill variables containing newlines.
11549# Ultrix sh set writes to stderr and can't be redirected directly,
11550# and sets the high bit in the cache file unless we assign to the vars.
11551(
11552  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11553    eval ac_val=\$$ac_var
11554    case $ac_val in #(
11555    *${as_nl}*)
11556      case $ac_var in #(
11557      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11558printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11559      esac
11560      case $ac_var in #(
11561      _ | IFS | as_nl) ;; #(
11562      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11563      *) { eval $ac_var=; unset $ac_var;} ;;
11564      esac ;;
11565    esac
11566  done
11567
11568  (set) 2>&1 |
11569    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11570    *${as_nl}ac_space=\ *)
11571      # `set' does not quote correctly, so add quotes: double-quote
11572      # substitution turns \\\\ into \\, and sed turns \\ into \.
11573      sed -n \
11574	"s/'/'\\\\''/g;
11575	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11576      ;; #(
11577    *)
11578      # `set' quotes correctly as required by POSIX, so do not add quotes.
11579      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11580      ;;
11581    esac |
11582    sort
11583) |
11584  sed '
11585     /^ac_cv_env_/b end
11586     t clear
11587     :clear
11588     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11589     t end
11590     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11591     :end' >>confcache
11592if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11593  if test -w "$cache_file"; then
11594    if test "x$cache_file" != "x/dev/null"; then
11595      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11596printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11597      if test ! -f "$cache_file" || test -h "$cache_file"; then
11598	cat confcache >"$cache_file"
11599      else
11600        case $cache_file in #(
11601        */* | ?:*)
11602	  mv -f confcache "$cache_file"$$ &&
11603	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11604        *)
11605	  mv -f confcache "$cache_file" ;;
11606	esac
11607      fi
11608    fi
11609  else
11610    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11611printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11612  fi
11613fi
11614rm -f confcache
11615
11616test "x$prefix" = xNONE && prefix=$ac_default_prefix
11617# Let make expand exec_prefix.
11618test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11619
11620DEFS=-DHAVE_CONFIG_H
11621
11622ac_libobjs=
11623ac_ltlibobjs=
11624U=
11625for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11626  # 1. Remove the extension, and $U if already installed.
11627  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11628  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11629  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11630  #    will be set to the directory where LIBOBJS objects are built.
11631  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11632  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11633done
11634LIBOBJS=$ac_libobjs
11635
11636LTLIBOBJS=$ac_ltlibobjs
11637
11638
11639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11640printf %s "checking that generated files are newer than configure... " >&6; }
11641   if test -n "$am_sleep_pid"; then
11642     # Hide warnings about reused PIDs.
11643     wait $am_sleep_pid 2>/dev/null
11644   fi
11645   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11646printf "%s\n" "done" >&6; }
11647if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11648  as_fn_error $? "conditional \"AMDEP\" was never defined.
11649Usually this means the macro was only invoked conditionally." "$LINENO" 5
11650fi
11651if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11652  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11653Usually this means the macro was only invoked conditionally." "$LINENO" 5
11654fi
11655 if test -n "$EXEEXT"; then
11656  am__EXEEXT_TRUE=
11657  am__EXEEXT_FALSE='#'
11658else
11659  am__EXEEXT_TRUE='#'
11660  am__EXEEXT_FALSE=
11661fi
11662
11663if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
11664  as_fn_error $? "conditional \"LINT\" was never defined.
11665Usually this means the macro was only invoked conditionally." "$LINENO" 5
11666fi
11667
11668: "${CONFIG_STATUS=./config.status}"
11669ac_write_fail=0
11670ac_clean_files_save=$ac_clean_files
11671ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11673printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11674as_write_fail=0
11675cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11676#! $SHELL
11677# Generated by $as_me.
11678# Run this file to recreate the current configuration.
11679# Compiler output produced by configure, useful for debugging
11680# configure, is in config.log if it exists.
11681
11682debug=false
11683ac_cs_recheck=false
11684ac_cs_silent=false
11685
11686SHELL=\${CONFIG_SHELL-$SHELL}
11687export SHELL
11688_ASEOF
11689cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11690## -------------------- ##
11691## M4sh Initialization. ##
11692## -------------------- ##
11693
11694# Be more Bourne compatible
11695DUALCASE=1; export DUALCASE # for MKS sh
11696as_nop=:
11697if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11698then :
11699  emulate sh
11700  NULLCMD=:
11701  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11702  # is contrary to our usage.  Disable this feature.
11703  alias -g '${1+"$@"}'='"$@"'
11704  setopt NO_GLOB_SUBST
11705else $as_nop
11706  case `(set -o) 2>/dev/null` in #(
11707  *posix*) :
11708    set -o posix ;; #(
11709  *) :
11710     ;;
11711esac
11712fi
11713
11714
11715
11716# Reset variables that may have inherited troublesome values from
11717# the environment.
11718
11719# IFS needs to be set, to space, tab, and newline, in precisely that order.
11720# (If _AS_PATH_WALK were called with IFS unset, it would have the
11721# side effect of setting IFS to empty, thus disabling word splitting.)
11722# Quoting is to prevent editors from complaining about space-tab.
11723as_nl='
11724'
11725export as_nl
11726IFS=" ""	$as_nl"
11727
11728PS1='$ '
11729PS2='> '
11730PS4='+ '
11731
11732# Ensure predictable behavior from utilities with locale-dependent output.
11733LC_ALL=C
11734export LC_ALL
11735LANGUAGE=C
11736export LANGUAGE
11737
11738# We cannot yet rely on "unset" to work, but we need these variables
11739# to be unset--not just set to an empty or harmless value--now, to
11740# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11741# also avoids known problems related to "unset" and subshell syntax
11742# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11743for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11744do eval test \${$as_var+y} \
11745  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11746done
11747
11748# Ensure that fds 0, 1, and 2 are open.
11749if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11750if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11751if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11752
11753# The user is always right.
11754if ${PATH_SEPARATOR+false} :; then
11755  PATH_SEPARATOR=:
11756  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11757    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11758      PATH_SEPARATOR=';'
11759  }
11760fi
11761
11762
11763# Find who we are.  Look in the path if we contain no directory separator.
11764as_myself=
11765case $0 in #((
11766  *[\\/]* ) as_myself=$0 ;;
11767  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11768for as_dir in $PATH
11769do
11770  IFS=$as_save_IFS
11771  case $as_dir in #(((
11772    '') as_dir=./ ;;
11773    */) ;;
11774    *) as_dir=$as_dir/ ;;
11775  esac
11776    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11777  done
11778IFS=$as_save_IFS
11779
11780     ;;
11781esac
11782# We did not find ourselves, most probably we were run as `sh COMMAND'
11783# in which case we are not to be found in the path.
11784if test "x$as_myself" = x; then
11785  as_myself=$0
11786fi
11787if test ! -f "$as_myself"; then
11788  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11789  exit 1
11790fi
11791
11792
11793
11794# as_fn_error STATUS ERROR [LINENO LOG_FD]
11795# ----------------------------------------
11796# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11797# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11798# script with STATUS, using 1 if that was 0.
11799as_fn_error ()
11800{
11801  as_status=$1; test $as_status -eq 0 && as_status=1
11802  if test "$4"; then
11803    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11804    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11805  fi
11806  printf "%s\n" "$as_me: error: $2" >&2
11807  as_fn_exit $as_status
11808} # as_fn_error
11809
11810
11811
11812# as_fn_set_status STATUS
11813# -----------------------
11814# Set $? to STATUS, without forking.
11815as_fn_set_status ()
11816{
11817  return $1
11818} # as_fn_set_status
11819
11820# as_fn_exit STATUS
11821# -----------------
11822# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11823as_fn_exit ()
11824{
11825  set +e
11826  as_fn_set_status $1
11827  exit $1
11828} # as_fn_exit
11829
11830# as_fn_unset VAR
11831# ---------------
11832# Portably unset VAR.
11833as_fn_unset ()
11834{
11835  { eval $1=; unset $1;}
11836}
11837as_unset=as_fn_unset
11838
11839# as_fn_append VAR VALUE
11840# ----------------------
11841# Append the text in VALUE to the end of the definition contained in VAR. Take
11842# advantage of any shell optimizations that allow amortized linear growth over
11843# repeated appends, instead of the typical quadratic growth present in naive
11844# implementations.
11845if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11846then :
11847  eval 'as_fn_append ()
11848  {
11849    eval $1+=\$2
11850  }'
11851else $as_nop
11852  as_fn_append ()
11853  {
11854    eval $1=\$$1\$2
11855  }
11856fi # as_fn_append
11857
11858# as_fn_arith ARG...
11859# ------------------
11860# Perform arithmetic evaluation on the ARGs, and store the result in the
11861# global $as_val. Take advantage of shells that can avoid forks. The arguments
11862# must be portable across $(()) and expr.
11863if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11864then :
11865  eval 'as_fn_arith ()
11866  {
11867    as_val=$(( $* ))
11868  }'
11869else $as_nop
11870  as_fn_arith ()
11871  {
11872    as_val=`expr "$@" || test $? -eq 1`
11873  }
11874fi # as_fn_arith
11875
11876
11877if expr a : '\(a\)' >/dev/null 2>&1 &&
11878   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11879  as_expr=expr
11880else
11881  as_expr=false
11882fi
11883
11884if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11885  as_basename=basename
11886else
11887  as_basename=false
11888fi
11889
11890if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11891  as_dirname=dirname
11892else
11893  as_dirname=false
11894fi
11895
11896as_me=`$as_basename -- "$0" ||
11897$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11898	 X"$0" : 'X\(//\)$' \| \
11899	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11900printf "%s\n" X/"$0" |
11901    sed '/^.*\/\([^/][^/]*\)\/*$/{
11902	    s//\1/
11903	    q
11904	  }
11905	  /^X\/\(\/\/\)$/{
11906	    s//\1/
11907	    q
11908	  }
11909	  /^X\/\(\/\).*/{
11910	    s//\1/
11911	    q
11912	  }
11913	  s/.*/./; q'`
11914
11915# Avoid depending upon Character Ranges.
11916as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11917as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11918as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11919as_cr_digits='0123456789'
11920as_cr_alnum=$as_cr_Letters$as_cr_digits
11921
11922
11923# Determine whether it's possible to make 'echo' print without a newline.
11924# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11925# for compatibility with existing Makefiles.
11926ECHO_C= ECHO_N= ECHO_T=
11927case `echo -n x` in #(((((
11928-n*)
11929  case `echo 'xy\c'` in
11930  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11931  xy)  ECHO_C='\c';;
11932  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11933       ECHO_T='	';;
11934  esac;;
11935*)
11936  ECHO_N='-n';;
11937esac
11938
11939# For backward compatibility with old third-party macros, we provide
11940# the shell variables $as_echo and $as_echo_n.  New code should use
11941# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11942as_echo='printf %s\n'
11943as_echo_n='printf %s'
11944
11945rm -f conf$$ conf$$.exe conf$$.file
11946if test -d conf$$.dir; then
11947  rm -f conf$$.dir/conf$$.file
11948else
11949  rm -f conf$$.dir
11950  mkdir conf$$.dir 2>/dev/null
11951fi
11952if (echo >conf$$.file) 2>/dev/null; then
11953  if ln -s conf$$.file conf$$ 2>/dev/null; then
11954    as_ln_s='ln -s'
11955    # ... but there are two gotchas:
11956    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11957    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11958    # In both cases, we have to default to `cp -pR'.
11959    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11960      as_ln_s='cp -pR'
11961  elif ln conf$$.file conf$$ 2>/dev/null; then
11962    as_ln_s=ln
11963  else
11964    as_ln_s='cp -pR'
11965  fi
11966else
11967  as_ln_s='cp -pR'
11968fi
11969rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11970rmdir conf$$.dir 2>/dev/null
11971
11972
11973# as_fn_mkdir_p
11974# -------------
11975# Create "$as_dir" as a directory, including parents if necessary.
11976as_fn_mkdir_p ()
11977{
11978
11979  case $as_dir in #(
11980  -*) as_dir=./$as_dir;;
11981  esac
11982  test -d "$as_dir" || eval $as_mkdir_p || {
11983    as_dirs=
11984    while :; do
11985      case $as_dir in #(
11986      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11987      *) as_qdir=$as_dir;;
11988      esac
11989      as_dirs="'$as_qdir' $as_dirs"
11990      as_dir=`$as_dirname -- "$as_dir" ||
11991$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11992	 X"$as_dir" : 'X\(//\)[^/]' \| \
11993	 X"$as_dir" : 'X\(//\)$' \| \
11994	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11995printf "%s\n" X"$as_dir" |
11996    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11997	    s//\1/
11998	    q
11999	  }
12000	  /^X\(\/\/\)[^/].*/{
12001	    s//\1/
12002	    q
12003	  }
12004	  /^X\(\/\/\)$/{
12005	    s//\1/
12006	    q
12007	  }
12008	  /^X\(\/\).*/{
12009	    s//\1/
12010	    q
12011	  }
12012	  s/.*/./; q'`
12013      test -d "$as_dir" && break
12014    done
12015    test -z "$as_dirs" || eval "mkdir $as_dirs"
12016  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12017
12018
12019} # as_fn_mkdir_p
12020if mkdir -p . 2>/dev/null; then
12021  as_mkdir_p='mkdir -p "$as_dir"'
12022else
12023  test -d ./-p && rmdir ./-p
12024  as_mkdir_p=false
12025fi
12026
12027
12028# as_fn_executable_p FILE
12029# -----------------------
12030# Test if FILE is an executable regular file.
12031as_fn_executable_p ()
12032{
12033  test -f "$1" && test -x "$1"
12034} # as_fn_executable_p
12035as_test_x='test -x'
12036as_executable_p=as_fn_executable_p
12037
12038# Sed expression to map a string onto a valid CPP name.
12039as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12040
12041# Sed expression to map a string onto a valid variable name.
12042as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12043
12044
12045exec 6>&1
12046## ----------------------------------- ##
12047## Main body of $CONFIG_STATUS script. ##
12048## ----------------------------------- ##
12049_ASEOF
12050test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12051
12052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12053# Save the log message, to keep $0 and so on meaningful, and to
12054# report actual input values of CONFIG_FILES etc. instead of their
12055# values after options handling.
12056ac_log="
12057This file was extended by xmodmap $as_me 1.0.11, which was
12058generated by GNU Autoconf 2.71.  Invocation command line was
12059
12060  CONFIG_FILES    = $CONFIG_FILES
12061  CONFIG_HEADERS  = $CONFIG_HEADERS
12062  CONFIG_LINKS    = $CONFIG_LINKS
12063  CONFIG_COMMANDS = $CONFIG_COMMANDS
12064  $ $0 $@
12065
12066on `(hostname || uname -n) 2>/dev/null | sed 1q`
12067"
12068
12069_ACEOF
12070
12071case $ac_config_files in *"
12072"*) set x $ac_config_files; shift; ac_config_files=$*;;
12073esac
12074
12075case $ac_config_headers in *"
12076"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12077esac
12078
12079
12080cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12081# Files that config.status was made for.
12082config_files="$ac_config_files"
12083config_headers="$ac_config_headers"
12084config_commands="$ac_config_commands"
12085
12086_ACEOF
12087
12088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12089ac_cs_usage="\
12090\`$as_me' instantiates files and other configuration actions
12091from templates according to the current configuration.  Unless the files
12092and actions are specified as TAGs, all are instantiated by default.
12093
12094Usage: $0 [OPTION]... [TAG]...
12095
12096  -h, --help       print this help, then exit
12097  -V, --version    print version number and configuration settings, then exit
12098      --config     print configuration, then exit
12099  -q, --quiet, --silent
12100                   do not print progress messages
12101  -d, --debug      don't remove temporary files
12102      --recheck    update $as_me by reconfiguring in the same conditions
12103      --file=FILE[:TEMPLATE]
12104                   instantiate the configuration file FILE
12105      --header=FILE[:TEMPLATE]
12106                   instantiate the configuration header FILE
12107
12108Configuration files:
12109$config_files
12110
12111Configuration headers:
12112$config_headers
12113
12114Configuration commands:
12115$config_commands
12116
12117Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmodmap/issues>."
12118
12119_ACEOF
12120ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12121ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12123ac_cs_config='$ac_cs_config_escaped'
12124ac_cs_version="\\
12125xmodmap config.status 1.0.11
12126configured by $0, generated by GNU Autoconf 2.71,
12127  with options \\"\$ac_cs_config\\"
12128
12129Copyright (C) 2021 Free Software Foundation, Inc.
12130This config.status script is free software; the Free Software Foundation
12131gives unlimited permission to copy, distribute and modify it."
12132
12133ac_pwd='$ac_pwd'
12134srcdir='$srcdir'
12135INSTALL='$INSTALL'
12136MKDIR_P='$MKDIR_P'
12137AWK='$AWK'
12138test -n "\$AWK" || AWK=awk
12139_ACEOF
12140
12141cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12142# The default lists apply if the user does not specify any file.
12143ac_need_defaults=:
12144while test $# != 0
12145do
12146  case $1 in
12147  --*=?*)
12148    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12149    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12150    ac_shift=:
12151    ;;
12152  --*=)
12153    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12154    ac_optarg=
12155    ac_shift=:
12156    ;;
12157  *)
12158    ac_option=$1
12159    ac_optarg=$2
12160    ac_shift=shift
12161    ;;
12162  esac
12163
12164  case $ac_option in
12165  # Handling of the options.
12166  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12167    ac_cs_recheck=: ;;
12168  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12169    printf "%s\n" "$ac_cs_version"; exit ;;
12170  --config | --confi | --conf | --con | --co | --c )
12171    printf "%s\n" "$ac_cs_config"; exit ;;
12172  --debug | --debu | --deb | --de | --d | -d )
12173    debug=: ;;
12174  --file | --fil | --fi | --f )
12175    $ac_shift
12176    case $ac_optarg in
12177    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12178    '') as_fn_error $? "missing file argument" ;;
12179    esac
12180    as_fn_append CONFIG_FILES " '$ac_optarg'"
12181    ac_need_defaults=false;;
12182  --header | --heade | --head | --hea )
12183    $ac_shift
12184    case $ac_optarg in
12185    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12186    esac
12187    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12188    ac_need_defaults=false;;
12189  --he | --h)
12190    # Conflict between --help and --header
12191    as_fn_error $? "ambiguous option: \`$1'
12192Try \`$0 --help' for more information.";;
12193  --help | --hel | -h )
12194    printf "%s\n" "$ac_cs_usage"; exit ;;
12195  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12196  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12197    ac_cs_silent=: ;;
12198
12199  # This is an error.
12200  -*) as_fn_error $? "unrecognized option: \`$1'
12201Try \`$0 --help' for more information." ;;
12202
12203  *) as_fn_append ac_config_targets " $1"
12204     ac_need_defaults=false ;;
12205
12206  esac
12207  shift
12208done
12209
12210ac_configure_extra_args=
12211
12212if $ac_cs_silent; then
12213  exec 6>/dev/null
12214  ac_configure_extra_args="$ac_configure_extra_args --silent"
12215fi
12216
12217_ACEOF
12218cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12219if \$ac_cs_recheck; then
12220  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12221  shift
12222  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12223  CONFIG_SHELL='$SHELL'
12224  export CONFIG_SHELL
12225  exec "\$@"
12226fi
12227
12228_ACEOF
12229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12230exec 5>>config.log
12231{
12232  echo
12233  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12234## Running $as_me. ##
12235_ASBOX
12236  printf "%s\n" "$ac_log"
12237} >&5
12238
12239_ACEOF
12240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12241#
12242# INIT-COMMANDS
12243#
12244AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12245
12246_ACEOF
12247
12248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12249
12250# Handling of arguments.
12251for ac_config_target in $ac_config_targets
12252do
12253  case $ac_config_target in
12254    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12255    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12256    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12257    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12258
12259  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12260  esac
12261done
12262
12263
12264# If the user did not use the arguments to specify the items to instantiate,
12265# then the envvar interface is used.  Set only those that are not.
12266# We use the long form for the default assignment because of an extremely
12267# bizarre bug on SunOS 4.1.3.
12268if $ac_need_defaults; then
12269  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12270  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12271  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12272fi
12273
12274# Have a temporary directory for convenience.  Make it in the build tree
12275# simply because there is no reason against having it here, and in addition,
12276# creating and moving files from /tmp can sometimes cause problems.
12277# Hook for its removal unless debugging.
12278# Note that there is a small window in which the directory will not be cleaned:
12279# after its creation but before its name has been assigned to `$tmp'.
12280$debug ||
12281{
12282  tmp= ac_tmp=
12283  trap 'exit_status=$?
12284  : "${ac_tmp:=$tmp}"
12285  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12286' 0
12287  trap 'as_fn_exit 1' 1 2 13 15
12288}
12289# Create a (secure) tmp directory for tmp files.
12290
12291{
12292  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12293  test -d "$tmp"
12294}  ||
12295{
12296  tmp=./conf$$-$RANDOM
12297  (umask 077 && mkdir "$tmp")
12298} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12299ac_tmp=$tmp
12300
12301# Set up the scripts for CONFIG_FILES section.
12302# No need to generate them if there are no CONFIG_FILES.
12303# This happens for instance with `./config.status config.h'.
12304if test -n "$CONFIG_FILES"; then
12305
12306
12307ac_cr=`echo X | tr X '\015'`
12308# On cygwin, bash can eat \r inside `` if the user requested igncr.
12309# But we know of no other shell where ac_cr would be empty at this
12310# point, so we can use a bashism as a fallback.
12311if test "x$ac_cr" = x; then
12312  eval ac_cr=\$\'\\r\'
12313fi
12314ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12315if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12316  ac_cs_awk_cr='\\r'
12317else
12318  ac_cs_awk_cr=$ac_cr
12319fi
12320
12321echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12322_ACEOF
12323
12324
12325{
12326  echo "cat >conf$$subs.awk <<_ACEOF" &&
12327  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12328  echo "_ACEOF"
12329} >conf$$subs.sh ||
12330  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12331ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12332ac_delim='%!_!# '
12333for ac_last_try in false false false false false :; do
12334  . ./conf$$subs.sh ||
12335    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12336
12337  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12338  if test $ac_delim_n = $ac_delim_num; then
12339    break
12340  elif $ac_last_try; then
12341    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12342  else
12343    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12344  fi
12345done
12346rm -f conf$$subs.sh
12347
12348cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12349cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12350_ACEOF
12351sed -n '
12352h
12353s/^/S["/; s/!.*/"]=/
12354p
12355g
12356s/^[^!]*!//
12357:repl
12358t repl
12359s/'"$ac_delim"'$//
12360t delim
12361:nl
12362h
12363s/\(.\{148\}\)..*/\1/
12364t more1
12365s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12366p
12367n
12368b repl
12369:more1
12370s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12371p
12372g
12373s/.\{148\}//
12374t nl
12375:delim
12376h
12377s/\(.\{148\}\)..*/\1/
12378t more2
12379s/["\\]/\\&/g; s/^/"/; s/$/"/
12380p
12381b
12382:more2
12383s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12384p
12385g
12386s/.\{148\}//
12387t delim
12388' <conf$$subs.awk | sed '
12389/^[^""]/{
12390  N
12391  s/\n//
12392}
12393' >>$CONFIG_STATUS || ac_write_fail=1
12394rm -f conf$$subs.awk
12395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12396_ACAWK
12397cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12398  for (key in S) S_is_set[key] = 1
12399  FS = ""
12400
12401}
12402{
12403  line = $ 0
12404  nfields = split(line, field, "@")
12405  substed = 0
12406  len = length(field[1])
12407  for (i = 2; i < nfields; i++) {
12408    key = field[i]
12409    keylen = length(key)
12410    if (S_is_set[key]) {
12411      value = S[key]
12412      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12413      len += length(value) + length(field[++i])
12414      substed = 1
12415    } else
12416      len += 1 + keylen
12417  }
12418
12419  print line
12420}
12421
12422_ACAWK
12423_ACEOF
12424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12425if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12426  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12427else
12428  cat
12429fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12430  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12431_ACEOF
12432
12433# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12434# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12435# trailing colons and then remove the whole line if VPATH becomes empty
12436# (actually we leave an empty line to preserve line numbers).
12437if test "x$srcdir" = x.; then
12438  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12439h
12440s///
12441s/^/:/
12442s/[	 ]*$/:/
12443s/:\$(srcdir):/:/g
12444s/:\${srcdir}:/:/g
12445s/:@srcdir@:/:/g
12446s/^:*//
12447s/:*$//
12448x
12449s/\(=[	 ]*\).*/\1/
12450G
12451s/\n//
12452s/^[^=]*=[	 ]*$//
12453}'
12454fi
12455
12456cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12457fi # test -n "$CONFIG_FILES"
12458
12459# Set up the scripts for CONFIG_HEADERS section.
12460# No need to generate them if there are no CONFIG_HEADERS.
12461# This happens for instance with `./config.status Makefile'.
12462if test -n "$CONFIG_HEADERS"; then
12463cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12464BEGIN {
12465_ACEOF
12466
12467# Transform confdefs.h into an awk script `defines.awk', embedded as
12468# here-document in config.status, that substitutes the proper values into
12469# config.h.in to produce config.h.
12470
12471# Create a delimiter string that does not exist in confdefs.h, to ease
12472# handling of long lines.
12473ac_delim='%!_!# '
12474for ac_last_try in false false :; do
12475  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12476  if test -z "$ac_tt"; then
12477    break
12478  elif $ac_last_try; then
12479    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12480  else
12481    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12482  fi
12483done
12484
12485# For the awk script, D is an array of macro values keyed by name,
12486# likewise P contains macro parameters if any.  Preserve backslash
12487# newline sequences.
12488
12489ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12490sed -n '
12491s/.\{148\}/&'"$ac_delim"'/g
12492t rset
12493:rset
12494s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12495t def
12496d
12497:def
12498s/\\$//
12499t bsnl
12500s/["\\]/\\&/g
12501s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12502D["\1"]=" \3"/p
12503s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12504d
12505:bsnl
12506s/["\\]/\\&/g
12507s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12508D["\1"]=" \3\\\\\\n"\\/p
12509t cont
12510s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12511t cont
12512d
12513:cont
12514n
12515s/.\{148\}/&'"$ac_delim"'/g
12516t clear
12517:clear
12518s/\\$//
12519t bsnlc
12520s/["\\]/\\&/g; s/^/"/; s/$/"/p
12521d
12522:bsnlc
12523s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12524b cont
12525' <confdefs.h | sed '
12526s/'"$ac_delim"'/"\\\
12527"/g' >>$CONFIG_STATUS || ac_write_fail=1
12528
12529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12530  for (key in D) D_is_set[key] = 1
12531  FS = ""
12532}
12533/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12534  line = \$ 0
12535  split(line, arg, " ")
12536  if (arg[1] == "#") {
12537    defundef = arg[2]
12538    mac1 = arg[3]
12539  } else {
12540    defundef = substr(arg[1], 2)
12541    mac1 = arg[2]
12542  }
12543  split(mac1, mac2, "(") #)
12544  macro = mac2[1]
12545  prefix = substr(line, 1, index(line, defundef) - 1)
12546  if (D_is_set[macro]) {
12547    # Preserve the white space surrounding the "#".
12548    print prefix "define", macro P[macro] D[macro]
12549    next
12550  } else {
12551    # Replace #undef with comments.  This is necessary, for example,
12552    # in the case of _POSIX_SOURCE, which is predefined and required
12553    # on some systems where configure will not decide to define it.
12554    if (defundef == "undef") {
12555      print "/*", prefix defundef, macro, "*/"
12556      next
12557    }
12558  }
12559}
12560{ print }
12561_ACAWK
12562_ACEOF
12563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12564  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12565fi # test -n "$CONFIG_HEADERS"
12566
12567
12568eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12569shift
12570for ac_tag
12571do
12572  case $ac_tag in
12573  :[FHLC]) ac_mode=$ac_tag; continue;;
12574  esac
12575  case $ac_mode$ac_tag in
12576  :[FHL]*:*);;
12577  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12578  :[FH]-) ac_tag=-:-;;
12579  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12580  esac
12581  ac_save_IFS=$IFS
12582  IFS=:
12583  set x $ac_tag
12584  IFS=$ac_save_IFS
12585  shift
12586  ac_file=$1
12587  shift
12588
12589  case $ac_mode in
12590  :L) ac_source=$1;;
12591  :[FH])
12592    ac_file_inputs=
12593    for ac_f
12594    do
12595      case $ac_f in
12596      -) ac_f="$ac_tmp/stdin";;
12597      *) # Look for the file first in the build tree, then in the source tree
12598	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12599	 # because $ac_f cannot contain `:'.
12600	 test -f "$ac_f" ||
12601	   case $ac_f in
12602	   [\\/$]*) false;;
12603	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12604	   esac ||
12605	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12606      esac
12607      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12608      as_fn_append ac_file_inputs " '$ac_f'"
12609    done
12610
12611    # Let's still pretend it is `configure' which instantiates (i.e., don't
12612    # use $as_me), people would be surprised to read:
12613    #    /* config.h.  Generated by config.status.  */
12614    configure_input='Generated from '`
12615	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12616	`' by configure.'
12617    if test x"$ac_file" != x-; then
12618      configure_input="$ac_file.  $configure_input"
12619      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12620printf "%s\n" "$as_me: creating $ac_file" >&6;}
12621    fi
12622    # Neutralize special characters interpreted by sed in replacement strings.
12623    case $configure_input in #(
12624    *\&* | *\|* | *\\* )
12625       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12626       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12627    *) ac_sed_conf_input=$configure_input;;
12628    esac
12629
12630    case $ac_tag in
12631    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12632      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12633    esac
12634    ;;
12635  esac
12636
12637  ac_dir=`$as_dirname -- "$ac_file" ||
12638$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12639	 X"$ac_file" : 'X\(//\)[^/]' \| \
12640	 X"$ac_file" : 'X\(//\)$' \| \
12641	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12642printf "%s\n" X"$ac_file" |
12643    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12644	    s//\1/
12645	    q
12646	  }
12647	  /^X\(\/\/\)[^/].*/{
12648	    s//\1/
12649	    q
12650	  }
12651	  /^X\(\/\/\)$/{
12652	    s//\1/
12653	    q
12654	  }
12655	  /^X\(\/\).*/{
12656	    s//\1/
12657	    q
12658	  }
12659	  s/.*/./; q'`
12660  as_dir="$ac_dir"; as_fn_mkdir_p
12661  ac_builddir=.
12662
12663case "$ac_dir" in
12664.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12665*)
12666  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12667  # A ".." for each directory in $ac_dir_suffix.
12668  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12669  case $ac_top_builddir_sub in
12670  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12671  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12672  esac ;;
12673esac
12674ac_abs_top_builddir=$ac_pwd
12675ac_abs_builddir=$ac_pwd$ac_dir_suffix
12676# for backward compatibility:
12677ac_top_builddir=$ac_top_build_prefix
12678
12679case $srcdir in
12680  .)  # We are building in place.
12681    ac_srcdir=.
12682    ac_top_srcdir=$ac_top_builddir_sub
12683    ac_abs_top_srcdir=$ac_pwd ;;
12684  [\\/]* | ?:[\\/]* )  # Absolute name.
12685    ac_srcdir=$srcdir$ac_dir_suffix;
12686    ac_top_srcdir=$srcdir
12687    ac_abs_top_srcdir=$srcdir ;;
12688  *) # Relative name.
12689    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12690    ac_top_srcdir=$ac_top_build_prefix$srcdir
12691    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12692esac
12693ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12694
12695
12696  case $ac_mode in
12697  :F)
12698  #
12699  # CONFIG_FILE
12700  #
12701
12702  case $INSTALL in
12703  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12704  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12705  esac
12706  ac_MKDIR_P=$MKDIR_P
12707  case $MKDIR_P in
12708  [\\/$]* | ?:[\\/]* ) ;;
12709  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12710  esac
12711_ACEOF
12712
12713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12714# If the template does not know about datarootdir, expand it.
12715# FIXME: This hack should be removed a few years after 2.60.
12716ac_datarootdir_hack=; ac_datarootdir_seen=
12717ac_sed_dataroot='
12718/datarootdir/ {
12719  p
12720  q
12721}
12722/@datadir@/p
12723/@docdir@/p
12724/@infodir@/p
12725/@localedir@/p
12726/@mandir@/p'
12727case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12728*datarootdir*) ac_datarootdir_seen=yes;;
12729*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12731printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12732_ACEOF
12733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12734  ac_datarootdir_hack='
12735  s&@datadir@&$datadir&g
12736  s&@docdir@&$docdir&g
12737  s&@infodir@&$infodir&g
12738  s&@localedir@&$localedir&g
12739  s&@mandir@&$mandir&g
12740  s&\\\${datarootdir}&$datarootdir&g' ;;
12741esac
12742_ACEOF
12743
12744# Neutralize VPATH when `$srcdir' = `.'.
12745# Shell code in configure.ac might set extrasub.
12746# FIXME: do we really want to maintain this feature?
12747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12748ac_sed_extra="$ac_vpsub
12749$extrasub
12750_ACEOF
12751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12752:t
12753/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12754s|@configure_input@|$ac_sed_conf_input|;t t
12755s&@top_builddir@&$ac_top_builddir_sub&;t t
12756s&@top_build_prefix@&$ac_top_build_prefix&;t t
12757s&@srcdir@&$ac_srcdir&;t t
12758s&@abs_srcdir@&$ac_abs_srcdir&;t t
12759s&@top_srcdir@&$ac_top_srcdir&;t t
12760s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12761s&@builddir@&$ac_builddir&;t t
12762s&@abs_builddir@&$ac_abs_builddir&;t t
12763s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12764s&@INSTALL@&$ac_INSTALL&;t t
12765s&@MKDIR_P@&$ac_MKDIR_P&;t t
12766$ac_datarootdir_hack
12767"
12768eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12769  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12770
12771test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12772  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12773  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12774      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12775  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12776which seems to be undefined.  Please make sure it is defined" >&5
12777printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12778which seems to be undefined.  Please make sure it is defined" >&2;}
12779
12780  rm -f "$ac_tmp/stdin"
12781  case $ac_file in
12782  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12783  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12784  esac \
12785  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12786 ;;
12787  :H)
12788  #
12789  # CONFIG_HEADER
12790  #
12791  if test x"$ac_file" != x-; then
12792    {
12793      printf "%s\n" "/* $configure_input  */" >&1 \
12794      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12795    } >"$ac_tmp/config.h" \
12796      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12797    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12798      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12799printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12800    else
12801      rm -f "$ac_file"
12802      mv "$ac_tmp/config.h" "$ac_file" \
12803	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12804    fi
12805  else
12806    printf "%s\n" "/* $configure_input  */" >&1 \
12807      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12808      || as_fn_error $? "could not create -" "$LINENO" 5
12809  fi
12810# Compute "$ac_file"'s index in $config_headers.
12811_am_arg="$ac_file"
12812_am_stamp_count=1
12813for _am_header in $config_headers :; do
12814  case $_am_header in
12815    $_am_arg | $_am_arg:* )
12816      break ;;
12817    * )
12818      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12819  esac
12820done
12821echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12822$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12823	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12824	 X"$_am_arg" : 'X\(//\)$' \| \
12825	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12826printf "%s\n" X"$_am_arg" |
12827    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12828	    s//\1/
12829	    q
12830	  }
12831	  /^X\(\/\/\)[^/].*/{
12832	    s//\1/
12833	    q
12834	  }
12835	  /^X\(\/\/\)$/{
12836	    s//\1/
12837	    q
12838	  }
12839	  /^X\(\/\).*/{
12840	    s//\1/
12841	    q
12842	  }
12843	  s/.*/./; q'`/stamp-h$_am_stamp_count
12844 ;;
12845
12846  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12847printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12848 ;;
12849  esac
12850
12851
12852  case $ac_file$ac_mode in
12853    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12854  # Older Autoconf quotes --file arguments for eval, but not when files
12855  # are listed without --file.  Let's play safe and only enable the eval
12856  # if we detect the quoting.
12857  # TODO: see whether this extra hack can be removed once we start
12858  # requiring Autoconf 2.70 or later.
12859  case $CONFIG_FILES in #(
12860  *\'*) :
12861    eval set x "$CONFIG_FILES" ;; #(
12862  *) :
12863    set x $CONFIG_FILES ;; #(
12864  *) :
12865     ;;
12866esac
12867  shift
12868  # Used to flag and report bootstrapping failures.
12869  am_rc=0
12870  for am_mf
12871  do
12872    # Strip MF so we end up with the name of the file.
12873    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12874    # Check whether this is an Automake generated Makefile which includes
12875    # dependency-tracking related rules and includes.
12876    # Grep'ing the whole file directly is not great: AIX grep has a line
12877    # limit of 2048, but all sed's we know have understand at least 4000.
12878    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12879      || continue
12880    am_dirpart=`$as_dirname -- "$am_mf" ||
12881$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12882	 X"$am_mf" : 'X\(//\)[^/]' \| \
12883	 X"$am_mf" : 'X\(//\)$' \| \
12884	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12885printf "%s\n" X"$am_mf" |
12886    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12887	    s//\1/
12888	    q
12889	  }
12890	  /^X\(\/\/\)[^/].*/{
12891	    s//\1/
12892	    q
12893	  }
12894	  /^X\(\/\/\)$/{
12895	    s//\1/
12896	    q
12897	  }
12898	  /^X\(\/\).*/{
12899	    s//\1/
12900	    q
12901	  }
12902	  s/.*/./; q'`
12903    am_filepart=`$as_basename -- "$am_mf" ||
12904$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12905	 X"$am_mf" : 'X\(//\)$' \| \
12906	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12907printf "%s\n" X/"$am_mf" |
12908    sed '/^.*\/\([^/][^/]*\)\/*$/{
12909	    s//\1/
12910	    q
12911	  }
12912	  /^X\/\(\/\/\)$/{
12913	    s//\1/
12914	    q
12915	  }
12916	  /^X\/\(\/\).*/{
12917	    s//\1/
12918	    q
12919	  }
12920	  s/.*/./; q'`
12921    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12922      && sed -e '/# am--include-marker/d' "$am_filepart" \
12923        | $MAKE -f - am--depfiles" >&5
12924   (cd "$am_dirpart" \
12925      && sed -e '/# am--include-marker/d' "$am_filepart" \
12926        | $MAKE -f - am--depfiles) >&5 2>&5
12927   ac_status=$?
12928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929   (exit $ac_status); } || am_rc=$?
12930  done
12931  if test $am_rc -ne 0; then
12932    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12933printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12934as_fn_error $? "Something went wrong bootstrapping makefile fragments
12935    for automatic dependency tracking.  If GNU make was not used, consider
12936    re-running the configure script with MAKE=\"gmake\" (or whatever is
12937    necessary).  You can also try re-running configure with the
12938    '--disable-dependency-tracking' option to at least be able to build
12939    the package (albeit without support for automatic dependency tracking).
12940See \`config.log' for more details" "$LINENO" 5; }
12941  fi
12942  { am_dirpart=; unset am_dirpart;}
12943  { am_filepart=; unset am_filepart;}
12944  { am_mf=; unset am_mf;}
12945  { am_rc=; unset am_rc;}
12946  rm -f conftest-deps.mk
12947}
12948 ;;
12949
12950  esac
12951done # for ac_tag
12952
12953
12954as_fn_exit 0
12955_ACEOF
12956ac_clean_files=$ac_clean_files_save
12957
12958test $ac_write_fail = 0 ||
12959  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12960
12961
12962# configure is writing to config.log, and then calls config.status.
12963# config.status does its own redirection, appending to config.log.
12964# Unfortunately, on DOS this fails, as config.log is still kept open
12965# by configure, so config.status won't be able to write to it; its
12966# output is simply discarded.  So we exec the FD to /dev/null,
12967# effectively closing config.log, so it can be properly (re)opened and
12968# appended to by config.status.  When coming back to configure, we
12969# need to make the FD available again.
12970if test "$no_create" != yes; then
12971  ac_cs_success=:
12972  ac_config_status_args=
12973  test "$silent" = yes &&
12974    ac_config_status_args="$ac_config_status_args --quiet"
12975  exec 5>/dev/null
12976  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12977  exec 5>>config.log
12978  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12979  # would make configure fail if this is the last instruction.
12980  $ac_cs_success || as_fn_exit 1
12981fi
12982if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12984printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12985fi
12986
12987
12988