configure revision 8c7c3c7e
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xditview 1.0.6.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xditview/-/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/xditview/-/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='xditview'
614PACKAGE_TARNAME='xditview'
615PACKAGE_VERSION='1.0.6'
616PACKAGE_STRING='xditview 1.0.6'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xditview/-/issues'
618PACKAGE_URL=''
619
620ac_unique_file="Makefile.am"
621# Factoring default headers for most tests.
622ac_includes_default="\
623#include <stddef.h>
624#ifdef HAVE_STDIO_H
625# include <stdio.h>
626#endif
627#ifdef HAVE_STDLIB_H
628# include <stdlib.h>
629#endif
630#ifdef HAVE_STRING_H
631# include <string.h>
632#endif
633#ifdef HAVE_INTTYPES_H
634# include <inttypes.h>
635#endif
636#ifdef HAVE_STDINT_H
637# include <stdint.h>
638#endif
639#ifdef HAVE_STRINGS_H
640# include <strings.h>
641#endif
642#ifdef HAVE_SYS_TYPES_H
643# include <sys/types.h>
644#endif
645#ifdef HAVE_SYS_STAT_H
646# include <sys/stat.h>
647#endif
648#ifdef HAVE_UNISTD_H
649# include <unistd.h>
650#endif"
651
652ac_header_c_list=
653ac_subst_vars='am__EXEEXT_FALSE
654am__EXEEXT_TRUE
655LTLIBOBJS
656LIBOBJS
657appdefaultdir
658APPDEFS_LIBS
659APPDEFS_CFLAGS
660XDITVIEW_LIBS
661XDITVIEW_CFLAGS
662MAN_SUBSTS
663XORG_MAN_PAGE
664ADMIN_MAN_DIR
665DRIVER_MAN_DIR
666MISC_MAN_DIR
667FILE_MAN_DIR
668LIB_MAN_DIR
669APP_MAN_DIR
670ADMIN_MAN_SUFFIX
671DRIVER_MAN_SUFFIX
672MISC_MAN_SUFFIX
673FILE_MAN_SUFFIX
674LIB_MAN_SUFFIX
675APP_MAN_SUFFIX
676SED
677host_os
678host_vendor
679host_cpu
680host
681build_os
682build_vendor
683build_cpu
684build
685INSTALL_CMD
686PKG_CONFIG_LIBDIR
687PKG_CONFIG_PATH
688PKG_CONFIG
689CHANGELOG_CMD
690STRICT_CFLAGS
691CWARNFLAGS
692BASE_CFLAGS
693am__fastdepCC_FALSE
694am__fastdepCC_TRUE
695CCDEPMODE
696am__nodep
697AMDEPBACKSLASH
698AMDEP_FALSE
699AMDEP_TRUE
700am__include
701DEPDIR
702OBJEXT
703EXEEXT
704ac_ct_CC
705CPPFLAGS
706LDFLAGS
707CFLAGS
708CC
709AM_BACKSLASH
710AM_DEFAULT_VERBOSITY
711AM_DEFAULT_V
712AM_V
713CSCOPE
714ETAGS
715CTAGS
716am__untar
717am__tar
718AMTAR
719am__leading_dot
720SET_MAKE
721AWK
722mkdir_p
723MKDIR_P
724INSTALL_STRIP_PROGRAM
725STRIP
726install_sh
727MAKEINFO
728AUTOHEADER
729AUTOMAKE
730AUTOCONF
731ACLOCAL
732VERSION
733PACKAGE
734CYGPATH_W
735am__isrc
736INSTALL_DATA
737INSTALL_SCRIPT
738INSTALL_PROGRAM
739target_alias
740host_alias
741build_alias
742LIBS
743ECHO_T
744ECHO_N
745ECHO_C
746DEFS
747mandir
748localedir
749libdir
750psdir
751pdfdir
752dvidir
753htmldir
754infodir
755docdir
756oldincludedir
757includedir
758runstatedir
759localstatedir
760sharedstatedir
761sysconfdir
762datadir
763datarootdir
764libexecdir
765sbindir
766bindir
767program_transform_name
768prefix
769exec_prefix
770PACKAGE_URL
771PACKAGE_BUGREPORT
772PACKAGE_STRING
773PACKAGE_VERSION
774PACKAGE_TARNAME
775PACKAGE_NAME
776PATH_SEPARATOR
777SHELL
778am__quote'
779ac_subst_files=''
780ac_user_opts='
781enable_option_checking
782enable_silent_rules
783enable_dependency_tracking
784enable_selective_werror
785enable_strict_compilation
786with_appdefaultdir
787'
788      ac_precious_vars='build_alias
789host_alias
790target_alias
791CC
792CFLAGS
793LDFLAGS
794LIBS
795CPPFLAGS
796PKG_CONFIG
797PKG_CONFIG_PATH
798PKG_CONFIG_LIBDIR
799XDITVIEW_CFLAGS
800XDITVIEW_LIBS
801APPDEFS_CFLAGS
802APPDEFS_LIBS'
803
804
805# Initialize some variables set by options.
806ac_init_help=
807ac_init_version=false
808ac_unrecognized_opts=
809ac_unrecognized_sep=
810# The variables have the same names as the options, with
811# dashes changed to underlines.
812cache_file=/dev/null
813exec_prefix=NONE
814no_create=
815no_recursion=
816prefix=NONE
817program_prefix=NONE
818program_suffix=NONE
819program_transform_name=s,x,x,
820silent=
821site=
822srcdir=
823verbose=
824x_includes=NONE
825x_libraries=NONE
826
827# Installation directory options.
828# These are left unexpanded so users can "make install exec_prefix=/foo"
829# and all the variables that are supposed to be based on exec_prefix
830# by default will actually change.
831# Use braces instead of parens because sh, perl, etc. also accept them.
832# (The list follows the same order as the GNU Coding Standards.)
833bindir='${exec_prefix}/bin'
834sbindir='${exec_prefix}/sbin'
835libexecdir='${exec_prefix}/libexec'
836datarootdir='${prefix}/share'
837datadir='${datarootdir}'
838sysconfdir='${prefix}/etc'
839sharedstatedir='${prefix}/com'
840localstatedir='${prefix}/var'
841runstatedir='${localstatedir}/run'
842includedir='${prefix}/include'
843oldincludedir='/usr/include'
844docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845infodir='${datarootdir}/info'
846htmldir='${docdir}'
847dvidir='${docdir}'
848pdfdir='${docdir}'
849psdir='${docdir}'
850libdir='${exec_prefix}/lib'
851localedir='${datarootdir}/locale'
852mandir='${datarootdir}/man'
853
854ac_prev=
855ac_dashdash=
856for ac_option
857do
858  # If the previous option needs an argument, assign it.
859  if test -n "$ac_prev"; then
860    eval $ac_prev=\$ac_option
861    ac_prev=
862    continue
863  fi
864
865  case $ac_option in
866  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867  *=)   ac_optarg= ;;
868  *)    ac_optarg=yes ;;
869  esac
870
871  case $ac_dashdash$ac_option in
872  --)
873    ac_dashdash=yes ;;
874
875  -bindir | --bindir | --bindi | --bind | --bin | --bi)
876    ac_prev=bindir ;;
877  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878    bindir=$ac_optarg ;;
879
880  -build | --build | --buil | --bui | --bu)
881    ac_prev=build_alias ;;
882  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883    build_alias=$ac_optarg ;;
884
885  -cache-file | --cache-file | --cache-fil | --cache-fi \
886  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887    ac_prev=cache_file ;;
888  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890    cache_file=$ac_optarg ;;
891
892  --config-cache | -C)
893    cache_file=config.cache ;;
894
895  -datadir | --datadir | --datadi | --datad)
896    ac_prev=datadir ;;
897  -datadir=* | --datadir=* | --datadi=* | --datad=*)
898    datadir=$ac_optarg ;;
899
900  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901  | --dataroo | --dataro | --datar)
902    ac_prev=datarootdir ;;
903  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905    datarootdir=$ac_optarg ;;
906
907  -disable-* | --disable-*)
908    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909    # Reject names that are not valid shell variable names.
910    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911      as_fn_error $? "invalid feature name: \`$ac_useropt'"
912    ac_useropt_orig=$ac_useropt
913    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
914    case $ac_user_opts in
915      *"
916"enable_$ac_useropt"
917"*) ;;
918      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919	 ac_unrecognized_sep=', ';;
920    esac
921    eval enable_$ac_useropt=no ;;
922
923  -docdir | --docdir | --docdi | --doc | --do)
924    ac_prev=docdir ;;
925  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926    docdir=$ac_optarg ;;
927
928  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929    ac_prev=dvidir ;;
930  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931    dvidir=$ac_optarg ;;
932
933  -enable-* | --enable-*)
934    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935    # Reject names that are not valid shell variable names.
936    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937      as_fn_error $? "invalid feature name: \`$ac_useropt'"
938    ac_useropt_orig=$ac_useropt
939    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
940    case $ac_user_opts in
941      *"
942"enable_$ac_useropt"
943"*) ;;
944      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945	 ac_unrecognized_sep=', ';;
946    esac
947    eval enable_$ac_useropt=\$ac_optarg ;;
948
949  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951  | --exec | --exe | --ex)
952    ac_prev=exec_prefix ;;
953  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955  | --exec=* | --exe=* | --ex=*)
956    exec_prefix=$ac_optarg ;;
957
958  -gas | --gas | --ga | --g)
959    # Obsolete; use --with-gas.
960    with_gas=yes ;;
961
962  -help | --help | --hel | --he | -h)
963    ac_init_help=long ;;
964  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965    ac_init_help=recursive ;;
966  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967    ac_init_help=short ;;
968
969  -host | --host | --hos | --ho)
970    ac_prev=host_alias ;;
971  -host=* | --host=* | --hos=* | --ho=*)
972    host_alias=$ac_optarg ;;
973
974  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975    ac_prev=htmldir ;;
976  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977  | --ht=*)
978    htmldir=$ac_optarg ;;
979
980  -includedir | --includedir | --includedi | --included | --include \
981  | --includ | --inclu | --incl | --inc)
982    ac_prev=includedir ;;
983  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984  | --includ=* | --inclu=* | --incl=* | --inc=*)
985    includedir=$ac_optarg ;;
986
987  -infodir | --infodir | --infodi | --infod | --info | --inf)
988    ac_prev=infodir ;;
989  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990    infodir=$ac_optarg ;;
991
992  -libdir | --libdir | --libdi | --libd)
993    ac_prev=libdir ;;
994  -libdir=* | --libdir=* | --libdi=* | --libd=*)
995    libdir=$ac_optarg ;;
996
997  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998  | --libexe | --libex | --libe)
999    ac_prev=libexecdir ;;
1000  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001  | --libexe=* | --libex=* | --libe=*)
1002    libexecdir=$ac_optarg ;;
1003
1004  -localedir | --localedir | --localedi | --localed | --locale)
1005    ac_prev=localedir ;;
1006  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007    localedir=$ac_optarg ;;
1008
1009  -localstatedir | --localstatedir | --localstatedi | --localstated \
1010  | --localstate | --localstat | --localsta | --localst | --locals)
1011    ac_prev=localstatedir ;;
1012  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014    localstatedir=$ac_optarg ;;
1015
1016  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017    ac_prev=mandir ;;
1018  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019    mandir=$ac_optarg ;;
1020
1021  -nfp | --nfp | --nf)
1022    # Obsolete; use --without-fp.
1023    with_fp=no ;;
1024
1025  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026  | --no-cr | --no-c | -n)
1027    no_create=yes ;;
1028
1029  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031    no_recursion=yes ;;
1032
1033  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035  | --oldin | --oldi | --old | --ol | --o)
1036    ac_prev=oldincludedir ;;
1037  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040    oldincludedir=$ac_optarg ;;
1041
1042  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043    ac_prev=prefix ;;
1044  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045    prefix=$ac_optarg ;;
1046
1047  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048  | --program-pre | --program-pr | --program-p)
1049    ac_prev=program_prefix ;;
1050  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052    program_prefix=$ac_optarg ;;
1053
1054  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055  | --program-suf | --program-su | --program-s)
1056    ac_prev=program_suffix ;;
1057  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059    program_suffix=$ac_optarg ;;
1060
1061  -program-transform-name | --program-transform-name \
1062  | --program-transform-nam | --program-transform-na \
1063  | --program-transform-n | --program-transform- \
1064  | --program-transform | --program-transfor \
1065  | --program-transfo | --program-transf \
1066  | --program-trans | --program-tran \
1067  | --progr-tra | --program-tr | --program-t)
1068    ac_prev=program_transform_name ;;
1069  -program-transform-name=* | --program-transform-name=* \
1070  | --program-transform-nam=* | --program-transform-na=* \
1071  | --program-transform-n=* | --program-transform-=* \
1072  | --program-transform=* | --program-transfor=* \
1073  | --program-transfo=* | --program-transf=* \
1074  | --program-trans=* | --program-tran=* \
1075  | --progr-tra=* | --program-tr=* | --program-t=*)
1076    program_transform_name=$ac_optarg ;;
1077
1078  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079    ac_prev=pdfdir ;;
1080  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081    pdfdir=$ac_optarg ;;
1082
1083  -psdir | --psdir | --psdi | --psd | --ps)
1084    ac_prev=psdir ;;
1085  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086    psdir=$ac_optarg ;;
1087
1088  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089  | -silent | --silent | --silen | --sile | --sil)
1090    silent=yes ;;
1091
1092  -runstatedir | --runstatedir | --runstatedi | --runstated \
1093  | --runstate | --runstat | --runsta | --runst | --runs \
1094  | --run | --ru | --r)
1095    ac_prev=runstatedir ;;
1096  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1097  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1098  | --run=* | --ru=* | --r=*)
1099    runstatedir=$ac_optarg ;;
1100
1101  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102    ac_prev=sbindir ;;
1103  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104  | --sbi=* | --sb=*)
1105    sbindir=$ac_optarg ;;
1106
1107  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109  | --sharedst | --shareds | --shared | --share | --shar \
1110  | --sha | --sh)
1111    ac_prev=sharedstatedir ;;
1112  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115  | --sha=* | --sh=*)
1116    sharedstatedir=$ac_optarg ;;
1117
1118  -site | --site | --sit)
1119    ac_prev=site ;;
1120  -site=* | --site=* | --sit=*)
1121    site=$ac_optarg ;;
1122
1123  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124    ac_prev=srcdir ;;
1125  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126    srcdir=$ac_optarg ;;
1127
1128  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129  | --syscon | --sysco | --sysc | --sys | --sy)
1130    ac_prev=sysconfdir ;;
1131  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133    sysconfdir=$ac_optarg ;;
1134
1135  -target | --target | --targe | --targ | --tar | --ta | --t)
1136    ac_prev=target_alias ;;
1137  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138    target_alias=$ac_optarg ;;
1139
1140  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141    verbose=yes ;;
1142
1143  -version | --version | --versio | --versi | --vers | -V)
1144    ac_init_version=: ;;
1145
1146  -with-* | --with-*)
1147    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148    # Reject names that are not valid shell variable names.
1149    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150      as_fn_error $? "invalid package name: \`$ac_useropt'"
1151    ac_useropt_orig=$ac_useropt
1152    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1153    case $ac_user_opts in
1154      *"
1155"with_$ac_useropt"
1156"*) ;;
1157      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158	 ac_unrecognized_sep=', ';;
1159    esac
1160    eval with_$ac_useropt=\$ac_optarg ;;
1161
1162  -without-* | --without-*)
1163    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164    # Reject names that are not valid shell variable names.
1165    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166      as_fn_error $? "invalid package name: \`$ac_useropt'"
1167    ac_useropt_orig=$ac_useropt
1168    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1169    case $ac_user_opts in
1170      *"
1171"with_$ac_useropt"
1172"*) ;;
1173      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1174	 ac_unrecognized_sep=', ';;
1175    esac
1176    eval with_$ac_useropt=no ;;
1177
1178  --x)
1179    # Obsolete; use --with-x.
1180    with_x=yes ;;
1181
1182  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1183  | --x-incl | --x-inc | --x-in | --x-i)
1184    ac_prev=x_includes ;;
1185  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1186  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1187    x_includes=$ac_optarg ;;
1188
1189  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1190  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1191    ac_prev=x_libraries ;;
1192  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1193  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1194    x_libraries=$ac_optarg ;;
1195
1196  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1197Try \`$0 --help' for more information"
1198    ;;
1199
1200  *=*)
1201    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1202    # Reject names that are not valid shell variable names.
1203    case $ac_envvar in #(
1204      '' | [0-9]* | *[!_$as_cr_alnum]* )
1205      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1206    esac
1207    eval $ac_envvar=\$ac_optarg
1208    export $ac_envvar ;;
1209
1210  *)
1211    # FIXME: should be removed in autoconf 3.0.
1212    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1213    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1215    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1216    ;;
1217
1218  esac
1219done
1220
1221if test -n "$ac_prev"; then
1222  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1223  as_fn_error $? "missing argument to $ac_option"
1224fi
1225
1226if test -n "$ac_unrecognized_opts"; then
1227  case $enable_option_checking in
1228    no) ;;
1229    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1230    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231  esac
1232fi
1233
1234# Check all directory arguments for consistency.
1235for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236		datadir sysconfdir sharedstatedir localstatedir includedir \
1237		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238		libdir localedir mandir runstatedir
1239do
1240  eval ac_val=\$$ac_var
1241  # Remove trailing slashes.
1242  case $ac_val in
1243    */ )
1244      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1245      eval $ac_var=\$ac_val;;
1246  esac
1247  # Be sure to have absolute directory names.
1248  case $ac_val in
1249    [\\/$]* | ?:[\\/]* )  continue;;
1250    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251  esac
1252  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1253done
1254
1255# There might be people who depend on the old broken behavior: `$host'
1256# used to hold the argument of --host etc.
1257# FIXME: To remove some day.
1258build=$build_alias
1259host=$host_alias
1260target=$target_alias
1261
1262# FIXME: To remove some day.
1263if test "x$host_alias" != x; then
1264  if test "x$build_alias" = x; then
1265    cross_compiling=maybe
1266  elif test "x$build_alias" != "x$host_alias"; then
1267    cross_compiling=yes
1268  fi
1269fi
1270
1271ac_tool_prefix=
1272test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273
1274test "$silent" = yes && exec 6>/dev/null
1275
1276
1277ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278ac_ls_di=`ls -di .` &&
1279ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280  as_fn_error $? "working directory cannot be determined"
1281test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282  as_fn_error $? "pwd does not report name of working directory"
1283
1284
1285# Find the source files, if location was not specified.
1286if test -z "$srcdir"; then
1287  ac_srcdir_defaulted=yes
1288  # Try the directory containing this script, then the parent directory.
1289  ac_confdir=`$as_dirname -- "$as_myself" ||
1290$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291	 X"$as_myself" : 'X\(//\)[^/]' \| \
1292	 X"$as_myself" : 'X\(//\)$' \| \
1293	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1294printf "%s\n" X"$as_myself" |
1295    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296	    s//\1/
1297	    q
1298	  }
1299	  /^X\(\/\/\)[^/].*/{
1300	    s//\1/
1301	    q
1302	  }
1303	  /^X\(\/\/\)$/{
1304	    s//\1/
1305	    q
1306	  }
1307	  /^X\(\/\).*/{
1308	    s//\1/
1309	    q
1310	  }
1311	  s/.*/./; q'`
1312  srcdir=$ac_confdir
1313  if test ! -r "$srcdir/$ac_unique_file"; then
1314    srcdir=..
1315  fi
1316else
1317  ac_srcdir_defaulted=no
1318fi
1319if test ! -r "$srcdir/$ac_unique_file"; then
1320  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1321  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1322fi
1323ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324ac_abs_confdir=`(
1325	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1326	pwd)`
1327# When building in place, set srcdir=.
1328if test "$ac_abs_confdir" = "$ac_pwd"; then
1329  srcdir=.
1330fi
1331# Remove unnecessary trailing slashes from srcdir.
1332# Double slashes in file names in object file debugging info
1333# mess up M-x gdb in Emacs.
1334case $srcdir in
1335*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336esac
1337for ac_var in $ac_precious_vars; do
1338  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339  eval ac_env_${ac_var}_value=\$${ac_var}
1340  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342done
1343
1344#
1345# Report the --help message.
1346#
1347if test "$ac_init_help" = "long"; then
1348  # Omit some internal or obsolete options to make the list less imposing.
1349  # This message is too long to be a string in the A/UX 3.1 sh.
1350  cat <<_ACEOF
1351\`configure' configures xditview 1.0.6 to adapt to many kinds of systems.
1352
1353Usage: $0 [OPTION]... [VAR=VALUE]...
1354
1355To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356VAR=VALUE.  See below for descriptions of some of the useful variables.
1357
1358Defaults for the options are specified in brackets.
1359
1360Configuration:
1361  -h, --help              display this help and exit
1362      --help=short        display options specific to this package
1363      --help=recursive    display the short help of all the included packages
1364  -V, --version           display version information and exit
1365  -q, --quiet, --silent   do not print \`checking ...' messages
1366      --cache-file=FILE   cache test results in FILE [disabled]
1367  -C, --config-cache      alias for \`--cache-file=config.cache'
1368  -n, --no-create         do not create output files
1369      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1370
1371Installation directories:
1372  --prefix=PREFIX         install architecture-independent files in PREFIX
1373                          [$ac_default_prefix]
1374  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1375                          [PREFIX]
1376
1377By default, \`make install' will install all the files in
1378\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1379an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1380for instance \`--prefix=\$HOME'.
1381
1382For better control, use the options below.
1383
1384Fine tuning of the installation directories:
1385  --bindir=DIR            user executables [EPREFIX/bin]
1386  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1387  --libexecdir=DIR        program executables [EPREFIX/libexec]
1388  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1389  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1390  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1391  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1392  --libdir=DIR            object code libraries [EPREFIX/lib]
1393  --includedir=DIR        C header files [PREFIX/include]
1394  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1395  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1396  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1397  --infodir=DIR           info documentation [DATAROOTDIR/info]
1398  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1399  --mandir=DIR            man documentation [DATAROOTDIR/man]
1400  --docdir=DIR            documentation root [DATAROOTDIR/doc/xditview]
1401  --htmldir=DIR           html documentation [DOCDIR]
1402  --dvidir=DIR            dvi documentation [DOCDIR]
1403  --pdfdir=DIR            pdf documentation [DOCDIR]
1404  --psdir=DIR             ps documentation [DOCDIR]
1405_ACEOF
1406
1407  cat <<\_ACEOF
1408
1409Program names:
1410  --program-prefix=PREFIX            prepend PREFIX to installed program names
1411  --program-suffix=SUFFIX            append SUFFIX to installed program names
1412  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1413
1414System types:
1415  --build=BUILD     configure for building on BUILD [guessed]
1416  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1417_ACEOF
1418fi
1419
1420if test -n "$ac_init_help"; then
1421  case $ac_init_help in
1422     short | recursive ) echo "Configuration of xditview 1.0.6:";;
1423   esac
1424  cat <<\_ACEOF
1425
1426Optional Features:
1427  --disable-option-checking  ignore unrecognized --enable/--with options
1428  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1429  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1430  --enable-silent-rules   less verbose build output (undo: "make V=1")
1431  --disable-silent-rules  verbose build output (undo: "make V=0")
1432  --enable-dependency-tracking
1433                          do not reject slow dependency extractors
1434  --disable-dependency-tracking
1435                          speeds up one-time build
1436  --disable-selective-werror
1437                          Turn off selective compiler errors. (default:
1438                          enabled)
1439  --enable-strict-compilation
1440                          Enable all warnings from compiler and make them
1441                          errors (default: disabled)
1442
1443Optional Packages:
1444  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1445  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1446  --with-appdefaultdir=<pathname>
1447                          specify directory for app-defaults files (default is
1448                          autodetected)
1449
1450Some influential environment variables:
1451  CC          C compiler command
1452  CFLAGS      C compiler flags
1453  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1454              nonstandard directory <lib dir>
1455  LIBS        libraries to pass to the linker, e.g. -l<library>
1456  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1457              you have headers in a nonstandard directory <include dir>
1458  PKG_CONFIG  path to pkg-config utility
1459  PKG_CONFIG_PATH
1460              directories to add to pkg-config's search path
1461  PKG_CONFIG_LIBDIR
1462              path overriding pkg-config's built-in search path
1463  XDITVIEW_CFLAGS
1464              C compiler flags for XDITVIEW, overriding pkg-config
1465  XDITVIEW_LIBS
1466              linker flags for XDITVIEW, overriding pkg-config
1467  APPDEFS_CFLAGS
1468              C compiler flags for APPDEFS, overriding pkg-config
1469  APPDEFS_LIBS
1470              linker flags for APPDEFS, overriding pkg-config
1471
1472Use these variables to override the choices made by `configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
1475Report bugs to <https://gitlab.freedesktop.org/xorg/app/xditview/-/issues>.
1476_ACEOF
1477ac_status=$?
1478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481  # If there are subdirs, report their specific --help.
1482  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483    test -d "$ac_dir" ||
1484      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485      continue
1486    ac_builddir=.
1487
1488case "$ac_dir" in
1489.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490*)
1491  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1492  # A ".." for each directory in $ac_dir_suffix.
1493  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494  case $ac_top_builddir_sub in
1495  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497  esac ;;
1498esac
1499ac_abs_top_builddir=$ac_pwd
1500ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501# for backward compatibility:
1502ac_top_builddir=$ac_top_build_prefix
1503
1504case $srcdir in
1505  .)  # We are building in place.
1506    ac_srcdir=.
1507    ac_top_srcdir=$ac_top_builddir_sub
1508    ac_abs_top_srcdir=$ac_pwd ;;
1509  [\\/]* | ?:[\\/]* )  # Absolute name.
1510    ac_srcdir=$srcdir$ac_dir_suffix;
1511    ac_top_srcdir=$srcdir
1512    ac_abs_top_srcdir=$srcdir ;;
1513  *) # Relative name.
1514    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515    ac_top_srcdir=$ac_top_build_prefix$srcdir
1516    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517esac
1518ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520    cd "$ac_dir" || { ac_status=$?; continue; }
1521    # Check for configure.gnu first; this name is used for a wrapper for
1522    # Metaconfig's "Configure" on case-insensitive file systems.
1523    if test -f "$ac_srcdir/configure.gnu"; then
1524      echo &&
1525      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1526    elif test -f "$ac_srcdir/configure"; then
1527      echo &&
1528      $SHELL "$ac_srcdir/configure" --help=recursive
1529    else
1530      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531    fi || ac_status=$?
1532    cd "$ac_pwd" || { ac_status=$?; break; }
1533  done
1534fi
1535
1536test -n "$ac_init_help" && exit $ac_status
1537if $ac_init_version; then
1538  cat <<\_ACEOF
1539xditview configure 1.0.6
1540generated by GNU Autoconf 2.71
1541
1542Copyright (C) 2021 Free Software Foundation, Inc.
1543This configure script is free software; the Free Software Foundation
1544gives unlimited permission to copy, distribute and modify it.
1545_ACEOF
1546  exit
1547fi
1548
1549## ------------------------ ##
1550## Autoconf initialization. ##
1551## ------------------------ ##
1552
1553# ac_fn_c_try_compile LINENO
1554# --------------------------
1555# Try to compile conftest.$ac_ext, and return whether this succeeded.
1556ac_fn_c_try_compile ()
1557{
1558  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559  rm -f conftest.$ac_objext conftest.beam
1560  if { { ac_try="$ac_compile"
1561case "(($ac_try" in
1562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563  *) ac_try_echo=$ac_try;;
1564esac
1565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566printf "%s\n" "$ac_try_echo"; } >&5
1567  (eval "$ac_compile") 2>conftest.err
1568  ac_status=$?
1569  if test -s conftest.err; then
1570    grep -v '^ *+' conftest.err >conftest.er1
1571    cat conftest.er1 >&5
1572    mv -f conftest.er1 conftest.err
1573  fi
1574  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575  test $ac_status = 0; } && {
1576	 test -z "$ac_c_werror_flag" ||
1577	 test ! -s conftest.err
1578       } && test -s conftest.$ac_objext
1579then :
1580  ac_retval=0
1581else $as_nop
1582  printf "%s\n" "$as_me: failed program was:" >&5
1583sed 's/^/| /' conftest.$ac_ext >&5
1584
1585	ac_retval=1
1586fi
1587  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588  as_fn_set_status $ac_retval
1589
1590} # ac_fn_c_try_compile
1591
1592# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1593# ------------------------------------------------------------------
1594# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1595# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1596ac_fn_check_decl ()
1597{
1598  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599  as_decl_name=`echo $2|sed 's/ *(.*//'`
1600  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1601printf %s "checking whether $as_decl_name is declared... " >&6; }
1602if eval test \${$3+y}
1603then :
1604  printf %s "(cached) " >&6
1605else $as_nop
1606  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1607  eval ac_save_FLAGS=\$$6
1608  as_fn_append $6 " $5"
1609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1610/* end confdefs.h.  */
1611$4
1612int
1613main (void)
1614{
1615#ifndef $as_decl_name
1616#ifdef __cplusplus
1617  (void) $as_decl_use;
1618#else
1619  (void) $as_decl_name;
1620#endif
1621#endif
1622
1623  ;
1624  return 0;
1625}
1626_ACEOF
1627if ac_fn_c_try_compile "$LINENO"
1628then :
1629  eval "$3=yes"
1630else $as_nop
1631  eval "$3=no"
1632fi
1633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1634  eval $6=\$ac_save_FLAGS
1635
1636fi
1637eval ac_res=\$$3
1638	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639printf "%s\n" "$ac_res" >&6; }
1640  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641
1642} # ac_fn_check_decl
1643
1644# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1645# -------------------------------------------------------
1646# Tests whether HEADER exists and can be compiled using the include files in
1647# INCLUDES, setting the cache variable VAR accordingly.
1648ac_fn_c_check_header_compile ()
1649{
1650  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652printf %s "checking for $2... " >&6; }
1653if eval test \${$3+y}
1654then :
1655  printf %s "(cached) " >&6
1656else $as_nop
1657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658/* end confdefs.h.  */
1659$4
1660#include <$2>
1661_ACEOF
1662if ac_fn_c_try_compile "$LINENO"
1663then :
1664  eval "$3=yes"
1665else $as_nop
1666  eval "$3=no"
1667fi
1668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1669fi
1670eval ac_res=\$$3
1671	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672printf "%s\n" "$ac_res" >&6; }
1673  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674
1675} # ac_fn_c_check_header_compile
1676
1677# ac_fn_c_try_link LINENO
1678# -----------------------
1679# Try to link conftest.$ac_ext, and return whether this succeeded.
1680ac_fn_c_try_link ()
1681{
1682  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1684  if { { ac_try="$ac_link"
1685case "(($ac_try" in
1686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687  *) ac_try_echo=$ac_try;;
1688esac
1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690printf "%s\n" "$ac_try_echo"; } >&5
1691  (eval "$ac_link") 2>conftest.err
1692  ac_status=$?
1693  if test -s conftest.err; then
1694    grep -v '^ *+' conftest.err >conftest.er1
1695    cat conftest.er1 >&5
1696    mv -f conftest.er1 conftest.err
1697  fi
1698  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699  test $ac_status = 0; } && {
1700	 test -z "$ac_c_werror_flag" ||
1701	 test ! -s conftest.err
1702       } && test -s conftest$ac_exeext && {
1703	 test "$cross_compiling" = yes ||
1704	 test -x conftest$ac_exeext
1705       }
1706then :
1707  ac_retval=0
1708else $as_nop
1709  printf "%s\n" "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712	ac_retval=1
1713fi
1714  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1715  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1716  # interfere with the next link command; also delete a directory that is
1717  # left behind by Apple's compiler.  We do this before executing the actions.
1718  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720  as_fn_set_status $ac_retval
1721
1722} # ac_fn_c_try_link
1723
1724# ac_fn_c_check_func LINENO FUNC VAR
1725# ----------------------------------
1726# Tests whether FUNC exists, setting the cache variable VAR accordingly
1727ac_fn_c_check_func ()
1728{
1729  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731printf %s "checking for $2... " >&6; }
1732if eval test \${$3+y}
1733then :
1734  printf %s "(cached) " >&6
1735else $as_nop
1736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737/* end confdefs.h.  */
1738/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1739   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1740#define $2 innocuous_$2
1741
1742/* System header to define __stub macros and hopefully few prototypes,
1743   which can conflict with char $2 (); below.  */
1744
1745#include <limits.h>
1746#undef $2
1747
1748/* Override any GCC internal prototype to avoid an error.
1749   Use char because int might match the return type of a GCC
1750   builtin and then its argument prototype would still apply.  */
1751#ifdef __cplusplus
1752extern "C"
1753#endif
1754char $2 ();
1755/* The GNU C library defines this for functions which it implements
1756    to always fail with ENOSYS.  Some functions are actually named
1757    something starting with __ and the normal name is an alias.  */
1758#if defined __stub_$2 || defined __stub___$2
1759choke me
1760#endif
1761
1762int
1763main (void)
1764{
1765return $2 ();
1766  ;
1767  return 0;
1768}
1769_ACEOF
1770if ac_fn_c_try_link "$LINENO"
1771then :
1772  eval "$3=yes"
1773else $as_nop
1774  eval "$3=no"
1775fi
1776rm -f core conftest.err conftest.$ac_objext conftest.beam \
1777    conftest$ac_exeext conftest.$ac_ext
1778fi
1779eval ac_res=\$$3
1780	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781printf "%s\n" "$ac_res" >&6; }
1782  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784} # ac_fn_c_check_func
1785ac_configure_args_raw=
1786for ac_arg
1787do
1788  case $ac_arg in
1789  *\'*)
1790    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1791  esac
1792  as_fn_append ac_configure_args_raw " '$ac_arg'"
1793done
1794
1795case $ac_configure_args_raw in
1796  *$as_nl*)
1797    ac_safe_unquote= ;;
1798  *)
1799    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1800    ac_unsafe_a="$ac_unsafe_z#~"
1801    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1802    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1803esac
1804
1805cat >config.log <<_ACEOF
1806This file contains any messages produced by compilers while
1807running configure, to aid debugging if configure makes a mistake.
1808
1809It was created by xditview $as_me 1.0.6, which was
1810generated by GNU Autoconf 2.71.  Invocation command line was
1811
1812  $ $0$ac_configure_args_raw
1813
1814_ACEOF
1815exec 5>>config.log
1816{
1817cat <<_ASUNAME
1818## --------- ##
1819## Platform. ##
1820## --------- ##
1821
1822hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1823uname -m = `(uname -m) 2>/dev/null || echo unknown`
1824uname -r = `(uname -r) 2>/dev/null || echo unknown`
1825uname -s = `(uname -s) 2>/dev/null || echo unknown`
1826uname -v = `(uname -v) 2>/dev/null || echo unknown`
1827
1828/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1829/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1830
1831/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1832/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1833/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1834/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1835/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1836/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1837/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1838
1839_ASUNAME
1840
1841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842for as_dir in $PATH
1843do
1844  IFS=$as_save_IFS
1845  case $as_dir in #(((
1846    '') as_dir=./ ;;
1847    */) ;;
1848    *) as_dir=$as_dir/ ;;
1849  esac
1850    printf "%s\n" "PATH: $as_dir"
1851  done
1852IFS=$as_save_IFS
1853
1854} >&5
1855
1856cat >&5 <<_ACEOF
1857
1858
1859## ----------- ##
1860## Core tests. ##
1861## ----------- ##
1862
1863_ACEOF
1864
1865
1866# Keep a trace of the command line.
1867# Strip out --no-create and --no-recursion so they do not pile up.
1868# Strip out --silent because we don't want to record it for future runs.
1869# Also quote any args containing shell meta-characters.
1870# Make two passes to allow for proper duplicate-argument suppression.
1871ac_configure_args=
1872ac_configure_args0=
1873ac_configure_args1=
1874ac_must_keep_next=false
1875for ac_pass in 1 2
1876do
1877  for ac_arg
1878  do
1879    case $ac_arg in
1880    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1881    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1882    | -silent | --silent | --silen | --sile | --sil)
1883      continue ;;
1884    *\'*)
1885      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1886    esac
1887    case $ac_pass in
1888    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1889    2)
1890      as_fn_append ac_configure_args1 " '$ac_arg'"
1891      if test $ac_must_keep_next = true; then
1892	ac_must_keep_next=false # Got value, back to normal.
1893      else
1894	case $ac_arg in
1895	  *=* | --config-cache | -C | -disable-* | --disable-* \
1896	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1897	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1898	  | -with-* | --with-* | -without-* | --without-* | --x)
1899	    case "$ac_configure_args0 " in
1900	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1901	    esac
1902	    ;;
1903	  -* ) ac_must_keep_next=true ;;
1904	esac
1905      fi
1906      as_fn_append ac_configure_args " '$ac_arg'"
1907      ;;
1908    esac
1909  done
1910done
1911{ ac_configure_args0=; unset ac_configure_args0;}
1912{ ac_configure_args1=; unset ac_configure_args1;}
1913
1914# When interrupted or exit'd, cleanup temporary files, and complete
1915# config.log.  We remove comments because anyway the quotes in there
1916# would cause problems or look ugly.
1917# WARNING: Use '\'' to represent an apostrophe within the trap.
1918# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1919trap 'exit_status=$?
1920  # Sanitize IFS.
1921  IFS=" ""	$as_nl"
1922  # Save into config.log some information that might help in debugging.
1923  {
1924    echo
1925
1926    printf "%s\n" "## ---------------- ##
1927## Cache variables. ##
1928## ---------------- ##"
1929    echo
1930    # The following way of writing the cache mishandles newlines in values,
1931(
1932  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1933    eval ac_val=\$$ac_var
1934    case $ac_val in #(
1935    *${as_nl}*)
1936      case $ac_var in #(
1937      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1938printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1939      esac
1940      case $ac_var in #(
1941      _ | IFS | as_nl) ;; #(
1942      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1943      *) { eval $ac_var=; unset $ac_var;} ;;
1944      esac ;;
1945    esac
1946  done
1947  (set) 2>&1 |
1948    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1949    *${as_nl}ac_space=\ *)
1950      sed -n \
1951	"s/'\''/'\''\\\\'\'''\''/g;
1952	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1953      ;; #(
1954    *)
1955      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1956      ;;
1957    esac |
1958    sort
1959)
1960    echo
1961
1962    printf "%s\n" "## ----------------- ##
1963## Output variables. ##
1964## ----------------- ##"
1965    echo
1966    for ac_var in $ac_subst_vars
1967    do
1968      eval ac_val=\$$ac_var
1969      case $ac_val in
1970      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1971      esac
1972      printf "%s\n" "$ac_var='\''$ac_val'\''"
1973    done | sort
1974    echo
1975
1976    if test -n "$ac_subst_files"; then
1977      printf "%s\n" "## ------------------- ##
1978## File substitutions. ##
1979## ------------------- ##"
1980      echo
1981      for ac_var in $ac_subst_files
1982      do
1983	eval ac_val=\$$ac_var
1984	case $ac_val in
1985	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1986	esac
1987	printf "%s\n" "$ac_var='\''$ac_val'\''"
1988      done | sort
1989      echo
1990    fi
1991
1992    if test -s confdefs.h; then
1993      printf "%s\n" "## ----------- ##
1994## confdefs.h. ##
1995## ----------- ##"
1996      echo
1997      cat confdefs.h
1998      echo
1999    fi
2000    test "$ac_signal" != 0 &&
2001      printf "%s\n" "$as_me: caught signal $ac_signal"
2002    printf "%s\n" "$as_me: exit $exit_status"
2003  } >&5
2004  rm -f core *.core core.conftest.* &&
2005    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2006    exit $exit_status
2007' 0
2008for ac_signal in 1 2 13 15; do
2009  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2010done
2011ac_signal=0
2012
2013# confdefs.h avoids OS command line length limits that DEFS can exceed.
2014rm -f -r conftest* confdefs.h
2015
2016printf "%s\n" "/* confdefs.h */" > confdefs.h
2017
2018# Predefined preprocessor variables.
2019
2020printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2021
2022printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2023
2024printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2025
2026printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2027
2028printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2029
2030printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2031
2032
2033# Let the site file select an alternate cache file if it wants to.
2034# Prefer an explicitly selected file to automatically selected ones.
2035if test -n "$CONFIG_SITE"; then
2036  ac_site_files="$CONFIG_SITE"
2037elif test "x$prefix" != xNONE; then
2038  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2039else
2040  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2041fi
2042
2043for ac_site_file in $ac_site_files
2044do
2045  case $ac_site_file in #(
2046  */*) :
2047     ;; #(
2048  *) :
2049    ac_site_file=./$ac_site_file ;;
2050esac
2051  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2052    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2053printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2054    sed 's/^/| /' "$ac_site_file" >&5
2055    . "$ac_site_file" \
2056      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2057printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2058as_fn_error $? "failed to load site script $ac_site_file
2059See \`config.log' for more details" "$LINENO" 5; }
2060  fi
2061done
2062
2063if test -r "$cache_file"; then
2064  # Some versions of bash will fail to source /dev/null (special files
2065  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2066  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2067    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2068printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2069    case $cache_file in
2070      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2071      *)                      . "./$cache_file";;
2072    esac
2073  fi
2074else
2075  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2076printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2077  >$cache_file
2078fi
2079
2080# Test code for whether the C compiler supports C89 (global declarations)
2081ac_c_conftest_c89_globals='
2082/* Does the compiler advertise C89 conformance?
2083   Do not test the value of __STDC__, because some compilers set it to 0
2084   while being otherwise adequately conformant. */
2085#if !defined __STDC__
2086# error "Compiler does not advertise C89 conformance"
2087#endif
2088
2089#include <stddef.h>
2090#include <stdarg.h>
2091struct stat;
2092/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2093struct buf { int x; };
2094struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2095static char *e (p, i)
2096     char **p;
2097     int i;
2098{
2099  return p[i];
2100}
2101static char *f (char * (*g) (char **, int), char **p, ...)
2102{
2103  char *s;
2104  va_list v;
2105  va_start (v,p);
2106  s = g (p, va_arg (v,int));
2107  va_end (v);
2108  return s;
2109}
2110
2111/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2112   function prototypes and stuff, but not \xHH hex character constants.
2113   These do not provoke an error unfortunately, instead are silently treated
2114   as an "x".  The following induces an error, until -std is added to get
2115   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2116   array size at least.  It is necessary to write \x00 == 0 to get something
2117   that is true only with -std.  */
2118int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2119
2120/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2121   inside strings and character constants.  */
2122#define FOO(x) '\''x'\''
2123int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2124
2125int test (int i, double x);
2126struct s1 {int (*f) (int a);};
2127struct s2 {int (*f) (double a);};
2128int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2129               int, int);'
2130
2131# Test code for whether the C compiler supports C89 (body of main).
2132ac_c_conftest_c89_main='
2133ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2134'
2135
2136# Test code for whether the C compiler supports C99 (global declarations)
2137ac_c_conftest_c99_globals='
2138// Does the compiler advertise C99 conformance?
2139#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2140# error "Compiler does not advertise C99 conformance"
2141#endif
2142
2143#include <stdbool.h>
2144extern int puts (const char *);
2145extern int printf (const char *, ...);
2146extern int dprintf (int, const char *, ...);
2147extern void *malloc (size_t);
2148
2149// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2150// dprintf is used instead of fprintf to avoid needing to declare
2151// FILE and stderr.
2152#define debug(...) dprintf (2, __VA_ARGS__)
2153#define showlist(...) puts (#__VA_ARGS__)
2154#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2155static void
2156test_varargs_macros (void)
2157{
2158  int x = 1234;
2159  int y = 5678;
2160  debug ("Flag");
2161  debug ("X = %d\n", x);
2162  showlist (The first, second, and third items.);
2163  report (x>y, "x is %d but y is %d", x, y);
2164}
2165
2166// Check long long types.
2167#define BIG64 18446744073709551615ull
2168#define BIG32 4294967295ul
2169#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2170#if !BIG_OK
2171  #error "your preprocessor is broken"
2172#endif
2173#if BIG_OK
2174#else
2175  #error "your preprocessor is broken"
2176#endif
2177static long long int bignum = -9223372036854775807LL;
2178static unsigned long long int ubignum = BIG64;
2179
2180struct incomplete_array
2181{
2182  int datasize;
2183  double data[];
2184};
2185
2186struct named_init {
2187  int number;
2188  const wchar_t *name;
2189  double average;
2190};
2191
2192typedef const char *ccp;
2193
2194static inline int
2195test_restrict (ccp restrict text)
2196{
2197  // See if C++-style comments work.
2198  // Iterate through items via the restricted pointer.
2199  // Also check for declarations in for loops.
2200  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2201    continue;
2202  return 0;
2203}
2204
2205// Check varargs and va_copy.
2206static bool
2207test_varargs (const char *format, ...)
2208{
2209  va_list args;
2210  va_start (args, format);
2211  va_list args_copy;
2212  va_copy (args_copy, args);
2213
2214  const char *str = "";
2215  int number = 0;
2216  float fnumber = 0;
2217
2218  while (*format)
2219    {
2220      switch (*format++)
2221	{
2222	case '\''s'\'': // string
2223	  str = va_arg (args_copy, const char *);
2224	  break;
2225	case '\''d'\'': // int
2226	  number = va_arg (args_copy, int);
2227	  break;
2228	case '\''f'\'': // float
2229	  fnumber = va_arg (args_copy, double);
2230	  break;
2231	default:
2232	  break;
2233	}
2234    }
2235  va_end (args_copy);
2236  va_end (args);
2237
2238  return *str && number && fnumber;
2239}
2240'
2241
2242# Test code for whether the C compiler supports C99 (body of main).
2243ac_c_conftest_c99_main='
2244  // Check bool.
2245  _Bool success = false;
2246  success |= (argc != 0);
2247
2248  // Check restrict.
2249  if (test_restrict ("String literal") == 0)
2250    success = true;
2251  char *restrict newvar = "Another string";
2252
2253  // Check varargs.
2254  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2255  test_varargs_macros ();
2256
2257  // Check flexible array members.
2258  struct incomplete_array *ia =
2259    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2260  ia->datasize = 10;
2261  for (int i = 0; i < ia->datasize; ++i)
2262    ia->data[i] = i * 1.234;
2263
2264  // Check named initializers.
2265  struct named_init ni = {
2266    .number = 34,
2267    .name = L"Test wide string",
2268    .average = 543.34343,
2269  };
2270
2271  ni.number = 58;
2272
2273  int dynamic_array[ni.number];
2274  dynamic_array[0] = argv[0][0];
2275  dynamic_array[ni.number - 1] = 543;
2276
2277  // work around unused variable warnings
2278  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2279	 || dynamic_array[ni.number - 1] != 543);
2280'
2281
2282# Test code for whether the C compiler supports C11 (global declarations)
2283ac_c_conftest_c11_globals='
2284// Does the compiler advertise C11 conformance?
2285#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2286# error "Compiler does not advertise C11 conformance"
2287#endif
2288
2289// Check _Alignas.
2290char _Alignas (double) aligned_as_double;
2291char _Alignas (0) no_special_alignment;
2292extern char aligned_as_int;
2293char _Alignas (0) _Alignas (int) aligned_as_int;
2294
2295// Check _Alignof.
2296enum
2297{
2298  int_alignment = _Alignof (int),
2299  int_array_alignment = _Alignof (int[100]),
2300  char_alignment = _Alignof (char)
2301};
2302_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2303
2304// Check _Noreturn.
2305int _Noreturn does_not_return (void) { for (;;) continue; }
2306
2307// Check _Static_assert.
2308struct test_static_assert
2309{
2310  int x;
2311  _Static_assert (sizeof (int) <= sizeof (long int),
2312                  "_Static_assert does not work in struct");
2313  long int y;
2314};
2315
2316// Check UTF-8 literals.
2317#define u8 syntax error!
2318char const utf8_literal[] = u8"happens to be ASCII" "another string";
2319
2320// Check duplicate typedefs.
2321typedef long *long_ptr;
2322typedef long int *long_ptr;
2323typedef long_ptr long_ptr;
2324
2325// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2326struct anonymous
2327{
2328  union {
2329    struct { int i; int j; };
2330    struct { int k; long int l; } w;
2331  };
2332  int m;
2333} v1;
2334'
2335
2336# Test code for whether the C compiler supports C11 (body of main).
2337ac_c_conftest_c11_main='
2338  _Static_assert ((offsetof (struct anonymous, i)
2339		   == offsetof (struct anonymous, w.k)),
2340		  "Anonymous union alignment botch");
2341  v1.i = 2;
2342  v1.w.k = 5;
2343  ok |= v1.i != 5;
2344'
2345
2346# Test code for whether the C compiler supports C11 (complete).
2347ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2348${ac_c_conftest_c99_globals}
2349${ac_c_conftest_c11_globals}
2350
2351int
2352main (int argc, char **argv)
2353{
2354  int ok = 0;
2355  ${ac_c_conftest_c89_main}
2356  ${ac_c_conftest_c99_main}
2357  ${ac_c_conftest_c11_main}
2358  return ok;
2359}
2360"
2361
2362# Test code for whether the C compiler supports C99 (complete).
2363ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2364${ac_c_conftest_c99_globals}
2365
2366int
2367main (int argc, char **argv)
2368{
2369  int ok = 0;
2370  ${ac_c_conftest_c89_main}
2371  ${ac_c_conftest_c99_main}
2372  return ok;
2373}
2374"
2375
2376# Test code for whether the C compiler supports C89 (complete).
2377ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2378
2379int
2380main (int argc, char **argv)
2381{
2382  int ok = 0;
2383  ${ac_c_conftest_c89_main}
2384  return ok;
2385}
2386"
2387
2388as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2389as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2390as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2391as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2392as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2393as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2394as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2395as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2396as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2397
2398# Auxiliary files required by this configure script.
2399ac_aux_files="config.guess config.sub compile missing install-sh"
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
2568# Initialize Automake
2569am__api_version='1.16'
2570
2571
2572
2573  # Find a good install program.  We prefer a C program (faster),
2574# so one script is as good as another.  But avoid the broken or
2575# incompatible versions:
2576# SysV /etc/install, /usr/sbin/install
2577# SunOS /usr/etc/install
2578# IRIX /sbin/install
2579# AIX /bin/install
2580# AmigaOS /C/install, which installs bootblocks on floppy discs
2581# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2582# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2583# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2584# OS/2's system install, which has a completely different semantic
2585# ./install, which can be erroneously created by make from ./install.sh.
2586# Reject install programs that cannot install multiple files.
2587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2588printf %s "checking for a BSD-compatible install... " >&6; }
2589if test -z "$INSTALL"; then
2590if test ${ac_cv_path_install+y}
2591then :
2592  printf %s "(cached) " >&6
2593else $as_nop
2594  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595for as_dir in $PATH
2596do
2597  IFS=$as_save_IFS
2598  case $as_dir in #(((
2599    '') as_dir=./ ;;
2600    */) ;;
2601    *) as_dir=$as_dir/ ;;
2602  esac
2603    # Account for fact that we put trailing slashes in our PATH walk.
2604case $as_dir in #((
2605  ./ | /[cC]/* | \
2606  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2607  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2608  /usr/ucb/* ) ;;
2609  *)
2610    # OSF1 and SCO ODT 3.0 have their own names for install.
2611    # Don't use installbsd from OSF since it installs stuff as root
2612    # by default.
2613    for ac_prog in ginstall scoinst install; do
2614      for ac_exec_ext in '' $ac_executable_extensions; do
2615	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2616	  if test $ac_prog = install &&
2617	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2618	    # AIX install.  It has an incompatible calling convention.
2619	    :
2620	  elif test $ac_prog = install &&
2621	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2622	    # program-specific install script used by HP pwplus--don't use.
2623	    :
2624	  else
2625	    rm -rf conftest.one conftest.two conftest.dir
2626	    echo one > conftest.one
2627	    echo two > conftest.two
2628	    mkdir conftest.dir
2629	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2630	      test -s conftest.one && test -s conftest.two &&
2631	      test -s conftest.dir/conftest.one &&
2632	      test -s conftest.dir/conftest.two
2633	    then
2634	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2635	      break 3
2636	    fi
2637	  fi
2638	fi
2639      done
2640    done
2641    ;;
2642esac
2643
2644  done
2645IFS=$as_save_IFS
2646
2647rm -rf conftest.one conftest.two conftest.dir
2648
2649fi
2650  if test ${ac_cv_path_install+y}; then
2651    INSTALL=$ac_cv_path_install
2652  else
2653    # As a last resort, use the slow shell script.  Don't cache a
2654    # value for INSTALL within a source directory, because that will
2655    # break other packages using the cache if that directory is
2656    # removed, or if the value is a relative name.
2657    INSTALL=$ac_install_sh
2658  fi
2659fi
2660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2661printf "%s\n" "$INSTALL" >&6; }
2662
2663# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2664# It thinks the first close brace ends the variable substitution.
2665test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2666
2667test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2668
2669test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2670
2671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2672printf %s "checking whether build environment is sane... " >&6; }
2673# Reject unsafe characters in $srcdir or the absolute working directory
2674# name.  Accept space and tab only in the latter.
2675am_lf='
2676'
2677case `pwd` in
2678  *[\\\"\#\$\&\'\`$am_lf]*)
2679    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2680esac
2681case $srcdir in
2682  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2683    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2684esac
2685
2686# Do 'set' in a subshell so we don't clobber the current shell's
2687# arguments.  Must try -L first in case configure is actually a
2688# symlink; some systems play weird games with the mod time of symlinks
2689# (eg FreeBSD returns the mod time of the symlink's containing
2690# directory).
2691if (
2692   am_has_slept=no
2693   for am_try in 1 2; do
2694     echo "timestamp, slept: $am_has_slept" > conftest.file
2695     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2696     if test "$*" = "X"; then
2697	# -L didn't work.
2698	set X `ls -t "$srcdir/configure" conftest.file`
2699     fi
2700     if test "$*" != "X $srcdir/configure conftest.file" \
2701	&& test "$*" != "X conftest.file $srcdir/configure"; then
2702
2703	# If neither matched, then we have a broken ls.  This can happen
2704	# if, for instance, CONFIG_SHELL is bash and it inherits a
2705	# broken ls alias from the environment.  This has actually
2706	# happened.  Such a system could not be considered "sane".
2707	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2708  alias in your environment" "$LINENO" 5
2709     fi
2710     if test "$2" = conftest.file || test $am_try -eq 2; then
2711       break
2712     fi
2713     # Just in case.
2714     sleep 1
2715     am_has_slept=yes
2716   done
2717   test "$2" = conftest.file
2718   )
2719then
2720   # Ok.
2721   :
2722else
2723   as_fn_error $? "newly created file is older than distributed files!
2724Check your system clock" "$LINENO" 5
2725fi
2726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2727printf "%s\n" "yes" >&6; }
2728# If we didn't sleep, we still need to ensure time stamps of config.status and
2729# generated files are strictly newer.
2730am_sleep_pid=
2731if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2732  ( sleep 1 ) &
2733  am_sleep_pid=$!
2734fi
2735
2736rm -f conftest.file
2737
2738test "$program_prefix" != NONE &&
2739  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2740# Use a double $ so make ignores it.
2741test "$program_suffix" != NONE &&
2742  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2743# Double any \ or $.
2744# By default was `s,x,x', remove it if useless.
2745ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2746program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2747
2748
2749# Expand $ac_aux_dir to an absolute path.
2750am_aux_dir=`cd "$ac_aux_dir" && pwd`
2751
2752
2753  if test x"${MISSING+set}" != xset; then
2754  MISSING="\${SHELL} '$am_aux_dir/missing'"
2755fi
2756# Use eval to expand $SHELL
2757if eval "$MISSING --is-lightweight"; then
2758  am_missing_run="$MISSING "
2759else
2760  am_missing_run=
2761  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2762printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2763fi
2764
2765if test x"${install_sh+set}" != xset; then
2766  case $am_aux_dir in
2767  *\ * | *\	*)
2768    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2769  *)
2770    install_sh="\${SHELL} $am_aux_dir/install-sh"
2771  esac
2772fi
2773
2774# Installed binaries are usually stripped using 'strip' when the user
2775# run "make install-strip".  However 'strip' might not be the right
2776# tool to use in cross-compilation environments, therefore Automake
2777# will honor the 'STRIP' environment variable to overrule this program.
2778if test "$cross_compiling" != no; then
2779  if test -n "$ac_tool_prefix"; then
2780  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2781set dummy ${ac_tool_prefix}strip; ac_word=$2
2782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783printf %s "checking for $ac_word... " >&6; }
2784if test ${ac_cv_prog_STRIP+y}
2785then :
2786  printf %s "(cached) " >&6
2787else $as_nop
2788  if test -n "$STRIP"; then
2789  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2790else
2791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792for as_dir in $PATH
2793do
2794  IFS=$as_save_IFS
2795  case $as_dir in #(((
2796    '') as_dir=./ ;;
2797    */) ;;
2798    *) as_dir=$as_dir/ ;;
2799  esac
2800    for ac_exec_ext in '' $ac_executable_extensions; do
2801  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2802    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2803    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2804    break 2
2805  fi
2806done
2807  done
2808IFS=$as_save_IFS
2809
2810fi
2811fi
2812STRIP=$ac_cv_prog_STRIP
2813if test -n "$STRIP"; then
2814  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2815printf "%s\n" "$STRIP" >&6; }
2816else
2817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818printf "%s\n" "no" >&6; }
2819fi
2820
2821
2822fi
2823if test -z "$ac_cv_prog_STRIP"; then
2824  ac_ct_STRIP=$STRIP
2825  # Extract the first word of "strip", so it can be a program name with args.
2826set dummy strip; ac_word=$2
2827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828printf %s "checking for $ac_word... " >&6; }
2829if test ${ac_cv_prog_ac_ct_STRIP+y}
2830then :
2831  printf %s "(cached) " >&6
2832else $as_nop
2833  if test -n "$ac_ct_STRIP"; then
2834  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2835else
2836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837for as_dir in $PATH
2838do
2839  IFS=$as_save_IFS
2840  case $as_dir in #(((
2841    '') as_dir=./ ;;
2842    */) ;;
2843    *) as_dir=$as_dir/ ;;
2844  esac
2845    for ac_exec_ext in '' $ac_executable_extensions; do
2846  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2847    ac_cv_prog_ac_ct_STRIP="strip"
2848    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2849    break 2
2850  fi
2851done
2852  done
2853IFS=$as_save_IFS
2854
2855fi
2856fi
2857ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2858if test -n "$ac_ct_STRIP"; then
2859  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2860printf "%s\n" "$ac_ct_STRIP" >&6; }
2861else
2862  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863printf "%s\n" "no" >&6; }
2864fi
2865
2866  if test "x$ac_ct_STRIP" = x; then
2867    STRIP=":"
2868  else
2869    case $cross_compiling:$ac_tool_warned in
2870yes:)
2871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2872printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2873ac_tool_warned=yes ;;
2874esac
2875    STRIP=$ac_ct_STRIP
2876  fi
2877else
2878  STRIP="$ac_cv_prog_STRIP"
2879fi
2880
2881fi
2882INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2883
2884
2885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2886printf %s "checking for a race-free mkdir -p... " >&6; }
2887if test -z "$MKDIR_P"; then
2888  if test ${ac_cv_path_mkdir+y}
2889then :
2890  printf %s "(cached) " >&6
2891else $as_nop
2892  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2894do
2895  IFS=$as_save_IFS
2896  case $as_dir in #(((
2897    '') as_dir=./ ;;
2898    */) ;;
2899    *) as_dir=$as_dir/ ;;
2900  esac
2901    for ac_prog in mkdir gmkdir; do
2902	 for ac_exec_ext in '' $ac_executable_extensions; do
2903	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2904	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2905	     'mkdir ('*'coreutils) '* | \
2906	     'BusyBox '* | \
2907	     'mkdir (fileutils) '4.1*)
2908	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2909	       break 3;;
2910	   esac
2911	 done
2912       done
2913  done
2914IFS=$as_save_IFS
2915
2916fi
2917
2918  test -d ./--version && rmdir ./--version
2919  if test ${ac_cv_path_mkdir+y}; then
2920    MKDIR_P="$ac_cv_path_mkdir -p"
2921  else
2922    # As a last resort, use the slow shell script.  Don't cache a
2923    # value for MKDIR_P within a source directory, because that will
2924    # break other packages using the cache if that directory is
2925    # removed, or if the value is a relative name.
2926    MKDIR_P="$ac_install_sh -d"
2927  fi
2928fi
2929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2930printf "%s\n" "$MKDIR_P" >&6; }
2931
2932for ac_prog in gawk mawk nawk awk
2933do
2934  # Extract the first word of "$ac_prog", so it can be a program name with args.
2935set dummy $ac_prog; ac_word=$2
2936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937printf %s "checking for $ac_word... " >&6; }
2938if test ${ac_cv_prog_AWK+y}
2939then :
2940  printf %s "(cached) " >&6
2941else $as_nop
2942  if test -n "$AWK"; then
2943  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2944else
2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH
2947do
2948  IFS=$as_save_IFS
2949  case $as_dir in #(((
2950    '') as_dir=./ ;;
2951    */) ;;
2952    *) as_dir=$as_dir/ ;;
2953  esac
2954    for ac_exec_ext in '' $ac_executable_extensions; do
2955  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2956    ac_cv_prog_AWK="$ac_prog"
2957    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2958    break 2
2959  fi
2960done
2961  done
2962IFS=$as_save_IFS
2963
2964fi
2965fi
2966AWK=$ac_cv_prog_AWK
2967if test -n "$AWK"; then
2968  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2969printf "%s\n" "$AWK" >&6; }
2970else
2971  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972printf "%s\n" "no" >&6; }
2973fi
2974
2975
2976  test -n "$AWK" && break
2977done
2978
2979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2980printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2981set x ${MAKE-make}
2982ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2983if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2984then :
2985  printf %s "(cached) " >&6
2986else $as_nop
2987  cat >conftest.make <<\_ACEOF
2988SHELL = /bin/sh
2989all:
2990	@echo '@@@%%%=$(MAKE)=@@@%%%'
2991_ACEOF
2992# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2993case `${MAKE-make} -f conftest.make 2>/dev/null` in
2994  *@@@%%%=?*=@@@%%%*)
2995    eval ac_cv_prog_make_${ac_make}_set=yes;;
2996  *)
2997    eval ac_cv_prog_make_${ac_make}_set=no;;
2998esac
2999rm -f conftest.make
3000fi
3001if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3002  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3003printf "%s\n" "yes" >&6; }
3004  SET_MAKE=
3005else
3006  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007printf "%s\n" "no" >&6; }
3008  SET_MAKE="MAKE=${MAKE-make}"
3009fi
3010
3011rm -rf .tst 2>/dev/null
3012mkdir .tst 2>/dev/null
3013if test -d .tst; then
3014  am__leading_dot=.
3015else
3016  am__leading_dot=_
3017fi
3018rmdir .tst 2>/dev/null
3019
3020# Check whether --enable-silent-rules was given.
3021if test ${enable_silent_rules+y}
3022then :
3023  enableval=$enable_silent_rules;
3024fi
3025
3026case $enable_silent_rules in # (((
3027  yes) AM_DEFAULT_VERBOSITY=0;;
3028   no) AM_DEFAULT_VERBOSITY=1;;
3029    *) AM_DEFAULT_VERBOSITY=1;;
3030esac
3031am_make=${MAKE-make}
3032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3033printf %s "checking whether $am_make supports nested variables... " >&6; }
3034if test ${am_cv_make_support_nested_variables+y}
3035then :
3036  printf %s "(cached) " >&6
3037else $as_nop
3038  if printf "%s\n" 'TRUE=$(BAR$(V))
3039BAR0=false
3040BAR1=true
3041V=1
3042am__doit:
3043	@$(TRUE)
3044.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3045  am_cv_make_support_nested_variables=yes
3046else
3047  am_cv_make_support_nested_variables=no
3048fi
3049fi
3050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3051printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3052if test $am_cv_make_support_nested_variables = yes; then
3053    AM_V='$(V)'
3054  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3055else
3056  AM_V=$AM_DEFAULT_VERBOSITY
3057  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3058fi
3059AM_BACKSLASH='\'
3060
3061if test "`cd $srcdir && pwd`" != "`pwd`"; then
3062  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3063  # is not polluted with repeated "-I."
3064  am__isrc=' -I$(srcdir)'
3065  # test to see if srcdir already configured
3066  if test -f $srcdir/config.status; then
3067    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3068  fi
3069fi
3070
3071# test whether we have cygpath
3072if test -z "$CYGPATH_W"; then
3073  if (cygpath --version) >/dev/null 2>/dev/null; then
3074    CYGPATH_W='cygpath -w'
3075  else
3076    CYGPATH_W=echo
3077  fi
3078fi
3079
3080
3081# Define the identity of the package.
3082 PACKAGE='xditview'
3083 VERSION='1.0.6'
3084
3085
3086printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3087
3088
3089printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3090
3091# Some tools Automake needs.
3092
3093ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3094
3095
3096AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3097
3098
3099AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3100
3101
3102AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3103
3104
3105MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3106
3107# For better backward compatibility.  To be removed once Automake 1.9.x
3108# dies out for good.  For more background, see:
3109# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3110# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3111mkdir_p='$(MKDIR_P)'
3112
3113# We need awk for the "check" target (and possibly the TAP driver).  The
3114# system "awk" is bad on some platforms.
3115# Always define AMTAR for backward compatibility.  Yes, it's still used
3116# in the wild :-(  We should find a proper way to deprecate it ...
3117AMTAR='$${TAR-tar}'
3118
3119
3120# We'll loop over all known methods to create a tar archive until one works.
3121_am_tools='gnutar  pax cpio none'
3122
3123am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3124
3125
3126
3127
3128
3129# Variables for tags utilities; see am/tags.am
3130if test -z "$CTAGS"; then
3131  CTAGS=ctags
3132fi
3133
3134if test -z "$ETAGS"; then
3135  ETAGS=etags
3136fi
3137
3138if test -z "$CSCOPE"; then
3139  CSCOPE=cscope
3140fi
3141
3142
3143
3144# POSIX will say in a future version that running "rm -f" with no argument
3145# is OK; and we want to be able to make that assumption in our Makefile
3146# recipes.  So use an aggressive probe to check that the usage we want is
3147# actually supported "in the wild" to an acceptable degree.
3148# See automake bug#10828.
3149# To make any issue more visible, cause the running configure to be aborted
3150# by default if the 'rm' program in use doesn't match our expectations; the
3151# user can still override this though.
3152if rm -f && rm -fr && rm -rf; then : OK; else
3153  cat >&2 <<'END'
3154Oops!
3155
3156Your 'rm' program seems unable to run without file operands specified
3157on the command line, even when the '-f' option is present.  This is contrary
3158to the behaviour of most rm programs out there, and not conforming with
3159the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3160
3161Please tell bug-automake@gnu.org about your system, including the value
3162of your $PATH and any error possibly output before this message.  This
3163can help us improve future automake versions.
3164
3165END
3166  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3167    echo 'Configuration will proceed anyway, since you have set the' >&2
3168    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3169    echo >&2
3170  else
3171    cat >&2 <<'END'
3172Aborting the configuration process, to ensure you take notice of the issue.
3173
3174You can download and install GNU coreutils to get an 'rm' implementation
3175that behaves properly: <https://www.gnu.org/software/coreutils/>.
3176
3177If you want to complete the configuration process using your problematic
3178'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3179to "yes", and re-run configure.
3180
3181END
3182    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3183  fi
3184fi
3185
3186
3187# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208DEPDIR="${am__leading_dot}deps"
3209
3210ac_config_commands="$ac_config_commands depfiles"
3211
3212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3213printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3214cat > confinc.mk << 'END'
3215am__doit:
3216	@echo this is the am__doit target >confinc.out
3217.PHONY: am__doit
3218END
3219am__include="#"
3220am__quote=
3221# BSD make does it like this.
3222echo '.include "confinc.mk" # ignored' > confmf.BSD
3223# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3224echo 'include confinc.mk # ignored' > confmf.GNU
3225_am_result=no
3226for s in GNU BSD; do
3227  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3228   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3229   ac_status=$?
3230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231   (exit $ac_status); }
3232  case $?:`cat confinc.out 2>/dev/null` in #(
3233  '0:this is the am__doit target') :
3234    case $s in #(
3235  BSD) :
3236    am__include='.include' am__quote='"' ;; #(
3237  *) :
3238    am__include='include' am__quote='' ;;
3239esac ;; #(
3240  *) :
3241     ;;
3242esac
3243  if test "$am__include" != "#"; then
3244    _am_result="yes ($s style)"
3245    break
3246  fi
3247done
3248rm -f confinc.* confmf.*
3249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3250printf "%s\n" "${_am_result}" >&6; }
3251
3252# Check whether --enable-dependency-tracking was given.
3253if test ${enable_dependency_tracking+y}
3254then :
3255  enableval=$enable_dependency_tracking;
3256fi
3257
3258if test "x$enable_dependency_tracking" != xno; then
3259  am_depcomp="$ac_aux_dir/depcomp"
3260  AMDEPBACKSLASH='\'
3261  am__nodep='_no'
3262fi
3263 if test "x$enable_dependency_tracking" != xno; then
3264  AMDEP_TRUE=
3265  AMDEP_FALSE='#'
3266else
3267  AMDEP_TRUE='#'
3268  AMDEP_FALSE=
3269fi
3270
3271
3272ac_ext=c
3273ac_cpp='$CPP $CPPFLAGS'
3274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276ac_compiler_gnu=$ac_cv_c_compiler_gnu
3277if test -n "$ac_tool_prefix"; then
3278  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3279set dummy ${ac_tool_prefix}gcc; ac_word=$2
3280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281printf %s "checking for $ac_word... " >&6; }
3282if test ${ac_cv_prog_CC+y}
3283then :
3284  printf %s "(cached) " >&6
3285else $as_nop
3286  if test -n "$CC"; then
3287  ac_cv_prog_CC="$CC" # Let the user override the test.
3288else
3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290for as_dir in $PATH
3291do
3292  IFS=$as_save_IFS
3293  case $as_dir in #(((
3294    '') as_dir=./ ;;
3295    */) ;;
3296    *) as_dir=$as_dir/ ;;
3297  esac
3298    for ac_exec_ext in '' $ac_executable_extensions; do
3299  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3300    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3301    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3302    break 2
3303  fi
3304done
3305  done
3306IFS=$as_save_IFS
3307
3308fi
3309fi
3310CC=$ac_cv_prog_CC
3311if test -n "$CC"; then
3312  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3313printf "%s\n" "$CC" >&6; }
3314else
3315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316printf "%s\n" "no" >&6; }
3317fi
3318
3319
3320fi
3321if test -z "$ac_cv_prog_CC"; then
3322  ac_ct_CC=$CC
3323  # Extract the first word of "gcc", so it can be a program name with args.
3324set dummy gcc; ac_word=$2
3325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326printf %s "checking for $ac_word... " >&6; }
3327if test ${ac_cv_prog_ac_ct_CC+y}
3328then :
3329  printf %s "(cached) " >&6
3330else $as_nop
3331  if test -n "$ac_ct_CC"; then
3332  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3333else
3334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335for as_dir in $PATH
3336do
3337  IFS=$as_save_IFS
3338  case $as_dir in #(((
3339    '') as_dir=./ ;;
3340    */) ;;
3341    *) as_dir=$as_dir/ ;;
3342  esac
3343    for ac_exec_ext in '' $ac_executable_extensions; do
3344  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3345    ac_cv_prog_ac_ct_CC="gcc"
3346    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3347    break 2
3348  fi
3349done
3350  done
3351IFS=$as_save_IFS
3352
3353fi
3354fi
3355ac_ct_CC=$ac_cv_prog_ac_ct_CC
3356if test -n "$ac_ct_CC"; then
3357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3358printf "%s\n" "$ac_ct_CC" >&6; }
3359else
3360  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361printf "%s\n" "no" >&6; }
3362fi
3363
3364  if test "x$ac_ct_CC" = x; then
3365    CC=""
3366  else
3367    case $cross_compiling:$ac_tool_warned in
3368yes:)
3369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3370printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3371ac_tool_warned=yes ;;
3372esac
3373    CC=$ac_ct_CC
3374  fi
3375else
3376  CC="$ac_cv_prog_CC"
3377fi
3378
3379if test -z "$CC"; then
3380          if test -n "$ac_tool_prefix"; then
3381    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3382set dummy ${ac_tool_prefix}cc; ac_word=$2
3383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3384printf %s "checking for $ac_word... " >&6; }
3385if test ${ac_cv_prog_CC+y}
3386then :
3387  printf %s "(cached) " >&6
3388else $as_nop
3389  if test -n "$CC"; then
3390  ac_cv_prog_CC="$CC" # Let the user override the test.
3391else
3392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393for as_dir in $PATH
3394do
3395  IFS=$as_save_IFS
3396  case $as_dir in #(((
3397    '') as_dir=./ ;;
3398    */) ;;
3399    *) as_dir=$as_dir/ ;;
3400  esac
3401    for ac_exec_ext in '' $ac_executable_extensions; do
3402  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3403    ac_cv_prog_CC="${ac_tool_prefix}cc"
3404    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3405    break 2
3406  fi
3407done
3408  done
3409IFS=$as_save_IFS
3410
3411fi
3412fi
3413CC=$ac_cv_prog_CC
3414if test -n "$CC"; then
3415  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3416printf "%s\n" "$CC" >&6; }
3417else
3418  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419printf "%s\n" "no" >&6; }
3420fi
3421
3422
3423  fi
3424fi
3425if test -z "$CC"; then
3426  # Extract the first word of "cc", so it can be a program name with args.
3427set dummy cc; ac_word=$2
3428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429printf %s "checking for $ac_word... " >&6; }
3430if test ${ac_cv_prog_CC+y}
3431then :
3432  printf %s "(cached) " >&6
3433else $as_nop
3434  if test -n "$CC"; then
3435  ac_cv_prog_CC="$CC" # Let the user override the test.
3436else
3437  ac_prog_rejected=no
3438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439for as_dir in $PATH
3440do
3441  IFS=$as_save_IFS
3442  case $as_dir in #(((
3443    '') as_dir=./ ;;
3444    */) ;;
3445    *) as_dir=$as_dir/ ;;
3446  esac
3447    for ac_exec_ext in '' $ac_executable_extensions; do
3448  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3449    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3450       ac_prog_rejected=yes
3451       continue
3452     fi
3453    ac_cv_prog_CC="cc"
3454    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3455    break 2
3456  fi
3457done
3458  done
3459IFS=$as_save_IFS
3460
3461if test $ac_prog_rejected = yes; then
3462  # We found a bogon in the path, so make sure we never use it.
3463  set dummy $ac_cv_prog_CC
3464  shift
3465  if test $# != 0; then
3466    # We chose a different compiler from the bogus one.
3467    # However, it has the same basename, so the bogon will be chosen
3468    # first if we set CC to just the basename; use the full file name.
3469    shift
3470    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3471  fi
3472fi
3473fi
3474fi
3475CC=$ac_cv_prog_CC
3476if test -n "$CC"; then
3477  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3478printf "%s\n" "$CC" >&6; }
3479else
3480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481printf "%s\n" "no" >&6; }
3482fi
3483
3484
3485fi
3486if test -z "$CC"; then
3487  if test -n "$ac_tool_prefix"; then
3488  for ac_prog in cl.exe
3489  do
3490    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3491set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493printf %s "checking for $ac_word... " >&6; }
3494if test ${ac_cv_prog_CC+y}
3495then :
3496  printf %s "(cached) " >&6
3497else $as_nop
3498  if test -n "$CC"; then
3499  ac_cv_prog_CC="$CC" # Let the user override the test.
3500else
3501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502for as_dir in $PATH
3503do
3504  IFS=$as_save_IFS
3505  case $as_dir in #(((
3506    '') as_dir=./ ;;
3507    */) ;;
3508    *) as_dir=$as_dir/ ;;
3509  esac
3510    for ac_exec_ext in '' $ac_executable_extensions; do
3511  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3512    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3513    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3514    break 2
3515  fi
3516done
3517  done
3518IFS=$as_save_IFS
3519
3520fi
3521fi
3522CC=$ac_cv_prog_CC
3523if test -n "$CC"; then
3524  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525printf "%s\n" "$CC" >&6; }
3526else
3527  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528printf "%s\n" "no" >&6; }
3529fi
3530
3531
3532    test -n "$CC" && break
3533  done
3534fi
3535if test -z "$CC"; then
3536  ac_ct_CC=$CC
3537  for ac_prog in cl.exe
3538do
3539  # Extract the first word of "$ac_prog", so it can be a program name with args.
3540set dummy $ac_prog; ac_word=$2
3541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542printf %s "checking for $ac_word... " >&6; }
3543if test ${ac_cv_prog_ac_ct_CC+y}
3544then :
3545  printf %s "(cached) " >&6
3546else $as_nop
3547  if test -n "$ac_ct_CC"; then
3548  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3549else
3550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551for as_dir in $PATH
3552do
3553  IFS=$as_save_IFS
3554  case $as_dir in #(((
3555    '') as_dir=./ ;;
3556    */) ;;
3557    *) as_dir=$as_dir/ ;;
3558  esac
3559    for ac_exec_ext in '' $ac_executable_extensions; do
3560  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3561    ac_cv_prog_ac_ct_CC="$ac_prog"
3562    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3563    break 2
3564  fi
3565done
3566  done
3567IFS=$as_save_IFS
3568
3569fi
3570fi
3571ac_ct_CC=$ac_cv_prog_ac_ct_CC
3572if test -n "$ac_ct_CC"; then
3573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3574printf "%s\n" "$ac_ct_CC" >&6; }
3575else
3576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577printf "%s\n" "no" >&6; }
3578fi
3579
3580
3581  test -n "$ac_ct_CC" && break
3582done
3583
3584  if test "x$ac_ct_CC" = x; then
3585    CC=""
3586  else
3587    case $cross_compiling:$ac_tool_warned in
3588yes:)
3589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3590printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3591ac_tool_warned=yes ;;
3592esac
3593    CC=$ac_ct_CC
3594  fi
3595fi
3596
3597fi
3598if test -z "$CC"; then
3599  if test -n "$ac_tool_prefix"; then
3600  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3601set dummy ${ac_tool_prefix}clang; ac_word=$2
3602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603printf %s "checking for $ac_word... " >&6; }
3604if test ${ac_cv_prog_CC+y}
3605then :
3606  printf %s "(cached) " >&6
3607else $as_nop
3608  if test -n "$CC"; then
3609  ac_cv_prog_CC="$CC" # Let the user override the test.
3610else
3611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612for as_dir in $PATH
3613do
3614  IFS=$as_save_IFS
3615  case $as_dir in #(((
3616    '') as_dir=./ ;;
3617    */) ;;
3618    *) as_dir=$as_dir/ ;;
3619  esac
3620    for ac_exec_ext in '' $ac_executable_extensions; do
3621  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3622    ac_cv_prog_CC="${ac_tool_prefix}clang"
3623    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3624    break 2
3625  fi
3626done
3627  done
3628IFS=$as_save_IFS
3629
3630fi
3631fi
3632CC=$ac_cv_prog_CC
3633if test -n "$CC"; then
3634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3635printf "%s\n" "$CC" >&6; }
3636else
3637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638printf "%s\n" "no" >&6; }
3639fi
3640
3641
3642fi
3643if test -z "$ac_cv_prog_CC"; then
3644  ac_ct_CC=$CC
3645  # Extract the first word of "clang", so it can be a program name with args.
3646set dummy clang; ac_word=$2
3647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648printf %s "checking for $ac_word... " >&6; }
3649if test ${ac_cv_prog_ac_ct_CC+y}
3650then :
3651  printf %s "(cached) " >&6
3652else $as_nop
3653  if test -n "$ac_ct_CC"; then
3654  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3655else
3656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657for as_dir in $PATH
3658do
3659  IFS=$as_save_IFS
3660  case $as_dir in #(((
3661    '') as_dir=./ ;;
3662    */) ;;
3663    *) as_dir=$as_dir/ ;;
3664  esac
3665    for ac_exec_ext in '' $ac_executable_extensions; do
3666  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3667    ac_cv_prog_ac_ct_CC="clang"
3668    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3669    break 2
3670  fi
3671done
3672  done
3673IFS=$as_save_IFS
3674
3675fi
3676fi
3677ac_ct_CC=$ac_cv_prog_ac_ct_CC
3678if test -n "$ac_ct_CC"; then
3679  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3680printf "%s\n" "$ac_ct_CC" >&6; }
3681else
3682  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683printf "%s\n" "no" >&6; }
3684fi
3685
3686  if test "x$ac_ct_CC" = x; then
3687    CC=""
3688  else
3689    case $cross_compiling:$ac_tool_warned in
3690yes:)
3691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3692printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3693ac_tool_warned=yes ;;
3694esac
3695    CC=$ac_ct_CC
3696  fi
3697else
3698  CC="$ac_cv_prog_CC"
3699fi
3700
3701fi
3702
3703
3704test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3706as_fn_error $? "no acceptable C compiler found in \$PATH
3707See \`config.log' for more details" "$LINENO" 5; }
3708
3709# Provide some information about the compiler.
3710printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3711set X $ac_compile
3712ac_compiler=$2
3713for ac_option in --version -v -V -qversion -version; do
3714  { { ac_try="$ac_compiler $ac_option >&5"
3715case "(($ac_try" in
3716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717  *) ac_try_echo=$ac_try;;
3718esac
3719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3720printf "%s\n" "$ac_try_echo"; } >&5
3721  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3722  ac_status=$?
3723  if test -s conftest.err; then
3724    sed '10a\
3725... rest of stderr output deleted ...
3726         10q' conftest.err >conftest.er1
3727    cat conftest.er1 >&5
3728  fi
3729  rm -f conftest.er1 conftest.err
3730  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731  test $ac_status = 0; }
3732done
3733
3734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735/* end confdefs.h.  */
3736
3737int
3738main (void)
3739{
3740
3741  ;
3742  return 0;
3743}
3744_ACEOF
3745ac_clean_files_save=$ac_clean_files
3746ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3747# Try to create an executable without -o first, disregard a.out.
3748# It will help us diagnose broken compilers, and finding out an intuition
3749# of exeext.
3750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3751printf %s "checking whether the C compiler works... " >&6; }
3752ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3753
3754# The possible output files:
3755ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3756
3757ac_rmfiles=
3758for ac_file in $ac_files
3759do
3760  case $ac_file in
3761    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3762    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3763  esac
3764done
3765rm -f $ac_rmfiles
3766
3767if { { ac_try="$ac_link_default"
3768case "(($ac_try" in
3769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770  *) ac_try_echo=$ac_try;;
3771esac
3772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3773printf "%s\n" "$ac_try_echo"; } >&5
3774  (eval "$ac_link_default") 2>&5
3775  ac_status=$?
3776  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777  test $ac_status = 0; }
3778then :
3779  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3780# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3781# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3782# so that the user can short-circuit this test for compilers unknown to
3783# Autoconf.
3784for ac_file in $ac_files ''
3785do
3786  test -f "$ac_file" || continue
3787  case $ac_file in
3788    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3789	;;
3790    [ab].out )
3791	# We found the default executable, but exeext='' is most
3792	# certainly right.
3793	break;;
3794    *.* )
3795	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3796	then :; else
3797	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3798	fi
3799	# We set ac_cv_exeext here because the later test for it is not
3800	# safe: cross compilers may not add the suffix if given an `-o'
3801	# argument, so we may need to know it at that point already.
3802	# Even if this section looks crufty: it has the advantage of
3803	# actually working.
3804	break;;
3805    * )
3806	break;;
3807  esac
3808done
3809test "$ac_cv_exeext" = no && ac_cv_exeext=
3810
3811else $as_nop
3812  ac_file=''
3813fi
3814if test -z "$ac_file"
3815then :
3816  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817printf "%s\n" "no" >&6; }
3818printf "%s\n" "$as_me: failed program was:" >&5
3819sed 's/^/| /' conftest.$ac_ext >&5
3820
3821{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3822printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3823as_fn_error 77 "C compiler cannot create executables
3824See \`config.log' for more details" "$LINENO" 5; }
3825else $as_nop
3826  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3827printf "%s\n" "yes" >&6; }
3828fi
3829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3830printf %s "checking for C compiler default output file name... " >&6; }
3831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3832printf "%s\n" "$ac_file" >&6; }
3833ac_exeext=$ac_cv_exeext
3834
3835rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3836ac_clean_files=$ac_clean_files_save
3837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3838printf %s "checking for suffix of executables... " >&6; }
3839if { { ac_try="$ac_link"
3840case "(($ac_try" in
3841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842  *) ac_try_echo=$ac_try;;
3843esac
3844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845printf "%s\n" "$ac_try_echo"; } >&5
3846  (eval "$ac_link") 2>&5
3847  ac_status=$?
3848  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3849  test $ac_status = 0; }
3850then :
3851  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3852# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3853# work properly (i.e., refer to `conftest.exe'), while it won't with
3854# `rm'.
3855for ac_file in conftest.exe conftest conftest.*; do
3856  test -f "$ac_file" || continue
3857  case $ac_file in
3858    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3859    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3860	  break;;
3861    * ) break;;
3862  esac
3863done
3864else $as_nop
3865  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3867as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3868See \`config.log' for more details" "$LINENO" 5; }
3869fi
3870rm -f conftest conftest$ac_cv_exeext
3871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3872printf "%s\n" "$ac_cv_exeext" >&6; }
3873
3874rm -f conftest.$ac_ext
3875EXEEXT=$ac_cv_exeext
3876ac_exeext=$EXEEXT
3877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878/* end confdefs.h.  */
3879#include <stdio.h>
3880int
3881main (void)
3882{
3883FILE *f = fopen ("conftest.out", "w");
3884 return ferror (f) || fclose (f) != 0;
3885
3886  ;
3887  return 0;
3888}
3889_ACEOF
3890ac_clean_files="$ac_clean_files conftest.out"
3891# Check that the compiler produces executables we can run.  If not, either
3892# the compiler is broken, or we cross compile.
3893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3894printf %s "checking whether we are cross compiling... " >&6; }
3895if test "$cross_compiling" != yes; then
3896  { { ac_try="$ac_link"
3897case "(($ac_try" in
3898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899  *) ac_try_echo=$ac_try;;
3900esac
3901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3902printf "%s\n" "$ac_try_echo"; } >&5
3903  (eval "$ac_link") 2>&5
3904  ac_status=$?
3905  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3906  test $ac_status = 0; }
3907  if { ac_try='./conftest$ac_cv_exeext'
3908  { { case "(($ac_try" in
3909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910  *) ac_try_echo=$ac_try;;
3911esac
3912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3913printf "%s\n" "$ac_try_echo"; } >&5
3914  (eval "$ac_try") 2>&5
3915  ac_status=$?
3916  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3917  test $ac_status = 0; }; }; then
3918    cross_compiling=no
3919  else
3920    if test "$cross_compiling" = maybe; then
3921	cross_compiling=yes
3922    else
3923	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3925as_fn_error 77 "cannot run C compiled programs.
3926If you meant to cross compile, use \`--host'.
3927See \`config.log' for more details" "$LINENO" 5; }
3928    fi
3929  fi
3930fi
3931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3932printf "%s\n" "$cross_compiling" >&6; }
3933
3934rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3935ac_clean_files=$ac_clean_files_save
3936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3937printf %s "checking for suffix of object files... " >&6; }
3938if test ${ac_cv_objext+y}
3939then :
3940  printf %s "(cached) " >&6
3941else $as_nop
3942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943/* end confdefs.h.  */
3944
3945int
3946main (void)
3947{
3948
3949  ;
3950  return 0;
3951}
3952_ACEOF
3953rm -f conftest.o conftest.obj
3954if { { ac_try="$ac_compile"
3955case "(($ac_try" in
3956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957  *) ac_try_echo=$ac_try;;
3958esac
3959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960printf "%s\n" "$ac_try_echo"; } >&5
3961  (eval "$ac_compile") 2>&5
3962  ac_status=$?
3963  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964  test $ac_status = 0; }
3965then :
3966  for ac_file in conftest.o conftest.obj conftest.*; do
3967  test -f "$ac_file" || continue;
3968  case $ac_file in
3969    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3970    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3971       break;;
3972  esac
3973done
3974else $as_nop
3975  printf "%s\n" "$as_me: failed program was:" >&5
3976sed 's/^/| /' conftest.$ac_ext >&5
3977
3978{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3980as_fn_error $? "cannot compute suffix of object files: cannot compile
3981See \`config.log' for more details" "$LINENO" 5; }
3982fi
3983rm -f conftest.$ac_cv_objext conftest.$ac_ext
3984fi
3985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3986printf "%s\n" "$ac_cv_objext" >&6; }
3987OBJEXT=$ac_cv_objext
3988ac_objext=$OBJEXT
3989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3990printf %s "checking whether the compiler supports GNU C... " >&6; }
3991if test ${ac_cv_c_compiler_gnu+y}
3992then :
3993  printf %s "(cached) " >&6
3994else $as_nop
3995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996/* end confdefs.h.  */
3997
3998int
3999main (void)
4000{
4001#ifndef __GNUC__
4002       choke me
4003#endif
4004
4005  ;
4006  return 0;
4007}
4008_ACEOF
4009if ac_fn_c_try_compile "$LINENO"
4010then :
4011  ac_compiler_gnu=yes
4012else $as_nop
4013  ac_compiler_gnu=no
4014fi
4015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4016ac_cv_c_compiler_gnu=$ac_compiler_gnu
4017
4018fi
4019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4020printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4021ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022
4023if test $ac_compiler_gnu = yes; then
4024  GCC=yes
4025else
4026  GCC=
4027fi
4028ac_test_CFLAGS=${CFLAGS+y}
4029ac_save_CFLAGS=$CFLAGS
4030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4031printf %s "checking whether $CC accepts -g... " >&6; }
4032if test ${ac_cv_prog_cc_g+y}
4033then :
4034  printf %s "(cached) " >&6
4035else $as_nop
4036  ac_save_c_werror_flag=$ac_c_werror_flag
4037   ac_c_werror_flag=yes
4038   ac_cv_prog_cc_g=no
4039   CFLAGS="-g"
4040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041/* end confdefs.h.  */
4042
4043int
4044main (void)
4045{
4046
4047  ;
4048  return 0;
4049}
4050_ACEOF
4051if ac_fn_c_try_compile "$LINENO"
4052then :
4053  ac_cv_prog_cc_g=yes
4054else $as_nop
4055  CFLAGS=""
4056      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057/* end confdefs.h.  */
4058
4059int
4060main (void)
4061{
4062
4063  ;
4064  return 0;
4065}
4066_ACEOF
4067if ac_fn_c_try_compile "$LINENO"
4068then :
4069
4070else $as_nop
4071  ac_c_werror_flag=$ac_save_c_werror_flag
4072	 CFLAGS="-g"
4073	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074/* end confdefs.h.  */
4075
4076int
4077main (void)
4078{
4079
4080  ;
4081  return 0;
4082}
4083_ACEOF
4084if ac_fn_c_try_compile "$LINENO"
4085then :
4086  ac_cv_prog_cc_g=yes
4087fi
4088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4089fi
4090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4091fi
4092rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4093   ac_c_werror_flag=$ac_save_c_werror_flag
4094fi
4095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4096printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4097if test $ac_test_CFLAGS; then
4098  CFLAGS=$ac_save_CFLAGS
4099elif test $ac_cv_prog_cc_g = yes; then
4100  if test "$GCC" = yes; then
4101    CFLAGS="-g -O2"
4102  else
4103    CFLAGS="-g"
4104  fi
4105else
4106  if test "$GCC" = yes; then
4107    CFLAGS="-O2"
4108  else
4109    CFLAGS=
4110  fi
4111fi
4112ac_prog_cc_stdc=no
4113if test x$ac_prog_cc_stdc = xno
4114then :
4115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4116printf %s "checking for $CC option to enable C11 features... " >&6; }
4117if test ${ac_cv_prog_cc_c11+y}
4118then :
4119  printf %s "(cached) " >&6
4120else $as_nop
4121  ac_cv_prog_cc_c11=no
4122ac_save_CC=$CC
4123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124/* end confdefs.h.  */
4125$ac_c_conftest_c11_program
4126_ACEOF
4127for ac_arg in '' -std=gnu11
4128do
4129  CC="$ac_save_CC $ac_arg"
4130  if ac_fn_c_try_compile "$LINENO"
4131then :
4132  ac_cv_prog_cc_c11=$ac_arg
4133fi
4134rm -f core conftest.err conftest.$ac_objext conftest.beam
4135  test "x$ac_cv_prog_cc_c11" != "xno" && break
4136done
4137rm -f conftest.$ac_ext
4138CC=$ac_save_CC
4139fi
4140
4141if test "x$ac_cv_prog_cc_c11" = xno
4142then :
4143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4144printf "%s\n" "unsupported" >&6; }
4145else $as_nop
4146  if test "x$ac_cv_prog_cc_c11" = x
4147then :
4148  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4149printf "%s\n" "none needed" >&6; }
4150else $as_nop
4151  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4152printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4153     CC="$CC $ac_cv_prog_cc_c11"
4154fi
4155  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4156  ac_prog_cc_stdc=c11
4157fi
4158fi
4159if test x$ac_prog_cc_stdc = xno
4160then :
4161  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4162printf %s "checking for $CC option to enable C99 features... " >&6; }
4163if test ${ac_cv_prog_cc_c99+y}
4164then :
4165  printf %s "(cached) " >&6
4166else $as_nop
4167  ac_cv_prog_cc_c99=no
4168ac_save_CC=$CC
4169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170/* end confdefs.h.  */
4171$ac_c_conftest_c99_program
4172_ACEOF
4173for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4174do
4175  CC="$ac_save_CC $ac_arg"
4176  if ac_fn_c_try_compile "$LINENO"
4177then :
4178  ac_cv_prog_cc_c99=$ac_arg
4179fi
4180rm -f core conftest.err conftest.$ac_objext conftest.beam
4181  test "x$ac_cv_prog_cc_c99" != "xno" && break
4182done
4183rm -f conftest.$ac_ext
4184CC=$ac_save_CC
4185fi
4186
4187if test "x$ac_cv_prog_cc_c99" = xno
4188then :
4189  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4190printf "%s\n" "unsupported" >&6; }
4191else $as_nop
4192  if test "x$ac_cv_prog_cc_c99" = x
4193then :
4194  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4195printf "%s\n" "none needed" >&6; }
4196else $as_nop
4197  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4198printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4199     CC="$CC $ac_cv_prog_cc_c99"
4200fi
4201  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4202  ac_prog_cc_stdc=c99
4203fi
4204fi
4205if test x$ac_prog_cc_stdc = xno
4206then :
4207  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4208printf %s "checking for $CC option to enable C89 features... " >&6; }
4209if test ${ac_cv_prog_cc_c89+y}
4210then :
4211  printf %s "(cached) " >&6
4212else $as_nop
4213  ac_cv_prog_cc_c89=no
4214ac_save_CC=$CC
4215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216/* end confdefs.h.  */
4217$ac_c_conftest_c89_program
4218_ACEOF
4219for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4220do
4221  CC="$ac_save_CC $ac_arg"
4222  if ac_fn_c_try_compile "$LINENO"
4223then :
4224  ac_cv_prog_cc_c89=$ac_arg
4225fi
4226rm -f core conftest.err conftest.$ac_objext conftest.beam
4227  test "x$ac_cv_prog_cc_c89" != "xno" && break
4228done
4229rm -f conftest.$ac_ext
4230CC=$ac_save_CC
4231fi
4232
4233if test "x$ac_cv_prog_cc_c89" = xno
4234then :
4235  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4236printf "%s\n" "unsupported" >&6; }
4237else $as_nop
4238  if test "x$ac_cv_prog_cc_c89" = x
4239then :
4240  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4241printf "%s\n" "none needed" >&6; }
4242else $as_nop
4243  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4244printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4245     CC="$CC $ac_cv_prog_cc_c89"
4246fi
4247  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4248  ac_prog_cc_stdc=c89
4249fi
4250fi
4251
4252ac_ext=c
4253ac_cpp='$CPP $CPPFLAGS'
4254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4256ac_compiler_gnu=$ac_cv_c_compiler_gnu
4257
4258
4259  ac_ext=c
4260ac_cpp='$CPP $CPPFLAGS'
4261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263ac_compiler_gnu=$ac_cv_c_compiler_gnu
4264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4265printf %s "checking whether $CC understands -c and -o together... " >&6; }
4266if test ${am_cv_prog_cc_c_o+y}
4267then :
4268  printf %s "(cached) " >&6
4269else $as_nop
4270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271/* end confdefs.h.  */
4272
4273int
4274main (void)
4275{
4276
4277  ;
4278  return 0;
4279}
4280_ACEOF
4281  # Make sure it works both with $CC and with simple cc.
4282  # Following AC_PROG_CC_C_O, we do the test twice because some
4283  # compilers refuse to overwrite an existing .o file with -o,
4284  # though they will create one.
4285  am_cv_prog_cc_c_o=yes
4286  for am_i in 1 2; do
4287    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4288   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4289   ac_status=$?
4290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); } \
4292         && test -f conftest2.$ac_objext; then
4293      : OK
4294    else
4295      am_cv_prog_cc_c_o=no
4296      break
4297    fi
4298  done
4299  rm -f core conftest*
4300  unset am_i
4301fi
4302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4303printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4304if test "$am_cv_prog_cc_c_o" != yes; then
4305   # Losing compiler, so override with the script.
4306   # FIXME: It is wrong to rewrite CC.
4307   # But if we don't then we get into trouble of one sort or another.
4308   # A longer-term fix would be to have automake use am__CC in this case,
4309   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4310   CC="$am_aux_dir/compile $CC"
4311fi
4312ac_ext=c
4313ac_cpp='$CPP $CPPFLAGS'
4314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317
4318
4319depcc="$CC"   am_compiler_list=
4320
4321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4322printf %s "checking dependency style of $depcc... " >&6; }
4323if test ${am_cv_CC_dependencies_compiler_type+y}
4324then :
4325  printf %s "(cached) " >&6
4326else $as_nop
4327  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4328  # We make a subdir and do the tests there.  Otherwise we can end up
4329  # making bogus files that we don't know about and never remove.  For
4330  # instance it was reported that on HP-UX the gcc test will end up
4331  # making a dummy file named 'D' -- because '-MD' means "put the output
4332  # in D".
4333  rm -rf conftest.dir
4334  mkdir conftest.dir
4335  # Copy depcomp to subdir because otherwise we won't find it if we're
4336  # using a relative directory.
4337  cp "$am_depcomp" conftest.dir
4338  cd conftest.dir
4339  # We will build objects and dependencies in a subdirectory because
4340  # it helps to detect inapplicable dependency modes.  For instance
4341  # both Tru64's cc and ICC support -MD to output dependencies as a
4342  # side effect of compilation, but ICC will put the dependencies in
4343  # the current directory while Tru64 will put them in the object
4344  # directory.
4345  mkdir sub
4346
4347  am_cv_CC_dependencies_compiler_type=none
4348  if test "$am_compiler_list" = ""; then
4349     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4350  fi
4351  am__universal=false
4352  case " $depcc " in #(
4353     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4354     esac
4355
4356  for depmode in $am_compiler_list; do
4357    # Setup a source with many dependencies, because some compilers
4358    # like to wrap large dependency lists on column 80 (with \), and
4359    # we should not choose a depcomp mode which is confused by this.
4360    #
4361    # We need to recreate these files for each test, as the compiler may
4362    # overwrite some of them when testing with obscure command lines.
4363    # This happens at least with the AIX C compiler.
4364    : > sub/conftest.c
4365    for i in 1 2 3 4 5 6; do
4366      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4367      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4368      # Solaris 10 /bin/sh.
4369      echo '/* dummy */' > sub/conftst$i.h
4370    done
4371    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4372
4373    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4374    # mode.  It turns out that the SunPro C++ compiler does not properly
4375    # handle '-M -o', and we need to detect this.  Also, some Intel
4376    # versions had trouble with output in subdirs.
4377    am__obj=sub/conftest.${OBJEXT-o}
4378    am__minus_obj="-o $am__obj"
4379    case $depmode in
4380    gcc)
4381      # This depmode causes a compiler race in universal mode.
4382      test "$am__universal" = false || continue
4383      ;;
4384    nosideeffect)
4385      # After this tag, mechanisms are not by side-effect, so they'll
4386      # only be used when explicitly requested.
4387      if test "x$enable_dependency_tracking" = xyes; then
4388	continue
4389      else
4390	break
4391      fi
4392      ;;
4393    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4394      # This compiler won't grok '-c -o', but also, the minuso test has
4395      # not run yet.  These depmodes are late enough in the game, and
4396      # so weak that their functioning should not be impacted.
4397      am__obj=conftest.${OBJEXT-o}
4398      am__minus_obj=
4399      ;;
4400    none) break ;;
4401    esac
4402    if depmode=$depmode \
4403       source=sub/conftest.c object=$am__obj \
4404       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4405       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4406         >/dev/null 2>conftest.err &&
4407       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4408       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4409       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4410       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4411      # icc doesn't choke on unknown options, it will just issue warnings
4412      # or remarks (even with -Werror).  So we grep stderr for any message
4413      # that says an option was ignored or not supported.
4414      # When given -MP, icc 7.0 and 7.1 complain thusly:
4415      #   icc: Command line warning: ignoring option '-M'; no argument required
4416      # The diagnosis changed in icc 8.0:
4417      #   icc: Command line remark: option '-MP' not supported
4418      if (grep 'ignoring option' conftest.err ||
4419          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4420        am_cv_CC_dependencies_compiler_type=$depmode
4421        break
4422      fi
4423    fi
4424  done
4425
4426  cd ..
4427  rm -rf conftest.dir
4428else
4429  am_cv_CC_dependencies_compiler_type=none
4430fi
4431
4432fi
4433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4434printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4435CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4436
4437 if
4438  test "x$enable_dependency_tracking" != xno \
4439  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4440  am__fastdepCC_TRUE=
4441  am__fastdepCC_FALSE='#'
4442else
4443  am__fastdepCC_TRUE='#'
4444  am__fastdepCC_FALSE=
4445fi
4446
4447
4448
4449
4450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4451printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4452if test ${ac_cv_c_undeclared_builtin_options+y}
4453then :
4454  printf %s "(cached) " >&6
4455else $as_nop
4456  ac_save_CFLAGS=$CFLAGS
4457   ac_cv_c_undeclared_builtin_options='cannot detect'
4458   for ac_arg in '' -fno-builtin; do
4459     CFLAGS="$ac_save_CFLAGS $ac_arg"
4460     # This test program should *not* compile successfully.
4461     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462/* end confdefs.h.  */
4463
4464int
4465main (void)
4466{
4467(void) strchr;
4468  ;
4469  return 0;
4470}
4471_ACEOF
4472if ac_fn_c_try_compile "$LINENO"
4473then :
4474
4475else $as_nop
4476  # This test program should compile successfully.
4477        # No library function is consistently available on
4478        # freestanding implementations, so test against a dummy
4479        # declaration.  Include always-available headers on the
4480        # off chance that they somehow elicit warnings.
4481        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482/* end confdefs.h.  */
4483#include <float.h>
4484#include <limits.h>
4485#include <stdarg.h>
4486#include <stddef.h>
4487extern void ac_decl (int, char *);
4488
4489int
4490main (void)
4491{
4492(void) ac_decl (0, (char *) 0);
4493  (void) ac_decl;
4494
4495  ;
4496  return 0;
4497}
4498_ACEOF
4499if ac_fn_c_try_compile "$LINENO"
4500then :
4501  if test x"$ac_arg" = x
4502then :
4503  ac_cv_c_undeclared_builtin_options='none needed'
4504else $as_nop
4505  ac_cv_c_undeclared_builtin_options=$ac_arg
4506fi
4507          break
4508fi
4509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4510fi
4511rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4512    done
4513    CFLAGS=$ac_save_CFLAGS
4514
4515fi
4516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4517printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4518  case $ac_cv_c_undeclared_builtin_options in #(
4519  'cannot detect') :
4520    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4521printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4522as_fn_error $? "cannot make $CC report undeclared builtins
4523See \`config.log' for more details" "$LINENO" 5; } ;; #(
4524  'none needed') :
4525    ac_c_undeclared_builtin_options='' ;; #(
4526  *) :
4527    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4528esac
4529
4530ac_header= ac_cache=
4531for ac_item in $ac_header_c_list
4532do
4533  if test $ac_cache; then
4534    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4535    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4536      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4537    fi
4538    ac_header= ac_cache=
4539  elif test $ac_header; then
4540    ac_cache=$ac_item
4541  else
4542    ac_header=$ac_item
4543  fi
4544done
4545
4546
4547
4548
4549
4550
4551
4552
4553if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4554then :
4555
4556printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4557
4558fi
4559
4560
4561
4562
4563ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4564if test "x$ac_cv_have_decl___clang__" = xyes
4565then :
4566  CLANGCC="yes"
4567else $as_nop
4568  CLANGCC="no"
4569fi
4570ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4571if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4572then :
4573  INTELCC="yes"
4574else $as_nop
4575  INTELCC="no"
4576fi
4577ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4578if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4579then :
4580  SUNCC="yes"
4581else $as_nop
4582  SUNCC="no"
4583fi
4584
4585
4586
4587
4588
4589
4590
4591
4592if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4593	if test -n "$ac_tool_prefix"; then
4594  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4595set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597printf %s "checking for $ac_word... " >&6; }
4598if test ${ac_cv_path_PKG_CONFIG+y}
4599then :
4600  printf %s "(cached) " >&6
4601else $as_nop
4602  case $PKG_CONFIG in
4603  [\\/]* | ?:[\\/]*)
4604  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4605  ;;
4606  *)
4607  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in $PATH
4609do
4610  IFS=$as_save_IFS
4611  case $as_dir in #(((
4612    '') as_dir=./ ;;
4613    */) ;;
4614    *) as_dir=$as_dir/ ;;
4615  esac
4616    for ac_exec_ext in '' $ac_executable_extensions; do
4617  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4618    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4619    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4620    break 2
4621  fi
4622done
4623  done
4624IFS=$as_save_IFS
4625
4626  ;;
4627esac
4628fi
4629PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4630if test -n "$PKG_CONFIG"; then
4631  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4632printf "%s\n" "$PKG_CONFIG" >&6; }
4633else
4634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635printf "%s\n" "no" >&6; }
4636fi
4637
4638
4639fi
4640if test -z "$ac_cv_path_PKG_CONFIG"; then
4641  ac_pt_PKG_CONFIG=$PKG_CONFIG
4642  # Extract the first word of "pkg-config", so it can be a program name with args.
4643set dummy pkg-config; ac_word=$2
4644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645printf %s "checking for $ac_word... " >&6; }
4646if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4647then :
4648  printf %s "(cached) " >&6
4649else $as_nop
4650  case $ac_pt_PKG_CONFIG in
4651  [\\/]* | ?:[\\/]*)
4652  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4653  ;;
4654  *)
4655  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656for as_dir in $PATH
4657do
4658  IFS=$as_save_IFS
4659  case $as_dir in #(((
4660    '') as_dir=./ ;;
4661    */) ;;
4662    *) as_dir=$as_dir/ ;;
4663  esac
4664    for ac_exec_ext in '' $ac_executable_extensions; do
4665  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4666    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4667    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4668    break 2
4669  fi
4670done
4671  done
4672IFS=$as_save_IFS
4673
4674  ;;
4675esac
4676fi
4677ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4678if test -n "$ac_pt_PKG_CONFIG"; then
4679  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4680printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4681else
4682  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683printf "%s\n" "no" >&6; }
4684fi
4685
4686  if test "x$ac_pt_PKG_CONFIG" = x; then
4687    PKG_CONFIG=""
4688  else
4689    case $cross_compiling:$ac_tool_warned in
4690yes:)
4691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4692printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4693ac_tool_warned=yes ;;
4694esac
4695    PKG_CONFIG=$ac_pt_PKG_CONFIG
4696  fi
4697else
4698  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4699fi
4700
4701fi
4702if test -n "$PKG_CONFIG"; then
4703	_pkg_min_version=0.9.0
4704	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4705printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4706	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4707		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4708printf "%s\n" "yes" >&6; }
4709	else
4710		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711printf "%s\n" "no" >&6; }
4712		PKG_CONFIG=""
4713	fi
4714fi
4715
4716
4717  # Make sure we can run config.sub.
4718$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4719  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4720
4721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4722printf %s "checking build system type... " >&6; }
4723if test ${ac_cv_build+y}
4724then :
4725  printf %s "(cached) " >&6
4726else $as_nop
4727  ac_build_alias=$build_alias
4728test "x$ac_build_alias" = x &&
4729  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4730test "x$ac_build_alias" = x &&
4731  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4732ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4733  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4734
4735fi
4736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4737printf "%s\n" "$ac_cv_build" >&6; }
4738case $ac_cv_build in
4739*-*-*) ;;
4740*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4741esac
4742build=$ac_cv_build
4743ac_save_IFS=$IFS; IFS='-'
4744set x $ac_cv_build
4745shift
4746build_cpu=$1
4747build_vendor=$2
4748shift; shift
4749# Remember, the first character of IFS is used to create $*,
4750# except with old shells:
4751build_os=$*
4752IFS=$ac_save_IFS
4753case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4754
4755
4756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4757printf %s "checking host system type... " >&6; }
4758if test ${ac_cv_host+y}
4759then :
4760  printf %s "(cached) " >&6
4761else $as_nop
4762  if test "x$host_alias" = x; then
4763  ac_cv_host=$ac_cv_build
4764else
4765  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4766    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4767fi
4768
4769fi
4770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4771printf "%s\n" "$ac_cv_host" >&6; }
4772case $ac_cv_host in
4773*-*-*) ;;
4774*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4775esac
4776host=$ac_cv_host
4777ac_save_IFS=$IFS; IFS='-'
4778set x $ac_cv_host
4779shift
4780host_cpu=$1
4781host_vendor=$2
4782shift; shift
4783# Remember, the first character of IFS is used to create $*,
4784# except with old shells:
4785host_os=$*
4786IFS=$ac_save_IFS
4787case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4788
4789
4790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4791printf %s "checking for a sed that does not truncate output... " >&6; }
4792if test ${ac_cv_path_SED+y}
4793then :
4794  printf %s "(cached) " >&6
4795else $as_nop
4796            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4797     for ac_i in 1 2 3 4 5 6 7; do
4798       ac_script="$ac_script$as_nl$ac_script"
4799     done
4800     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4801     { ac_script=; unset ac_script;}
4802     if test -z "$SED"; then
4803  ac_path_SED_found=false
4804  # Loop through the user's path and test for each of PROGNAME-LIST
4805  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806for as_dir in $PATH
4807do
4808  IFS=$as_save_IFS
4809  case $as_dir in #(((
4810    '') as_dir=./ ;;
4811    */) ;;
4812    *) as_dir=$as_dir/ ;;
4813  esac
4814    for ac_prog in sed gsed
4815   do
4816    for ac_exec_ext in '' $ac_executable_extensions; do
4817      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4818      as_fn_executable_p "$ac_path_SED" || continue
4819# Check for GNU ac_path_SED and select it if it is found.
4820  # Check for GNU $ac_path_SED
4821case `"$ac_path_SED" --version 2>&1` in
4822*GNU*)
4823  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4824*)
4825  ac_count=0
4826  printf %s 0123456789 >"conftest.in"
4827  while :
4828  do
4829    cat "conftest.in" "conftest.in" >"conftest.tmp"
4830    mv "conftest.tmp" "conftest.in"
4831    cp "conftest.in" "conftest.nl"
4832    printf "%s\n" '' >> "conftest.nl"
4833    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4834    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4835    as_fn_arith $ac_count + 1 && ac_count=$as_val
4836    if test $ac_count -gt ${ac_path_SED_max-0}; then
4837      # Best one so far, save it but keep looking for a better one
4838      ac_cv_path_SED="$ac_path_SED"
4839      ac_path_SED_max=$ac_count
4840    fi
4841    # 10*(2^10) chars as input seems more than enough
4842    test $ac_count -gt 10 && break
4843  done
4844  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4845esac
4846
4847      $ac_path_SED_found && break 3
4848    done
4849  done
4850  done
4851IFS=$as_save_IFS
4852  if test -z "$ac_cv_path_SED"; then
4853    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4854  fi
4855else
4856  ac_cv_path_SED=$SED
4857fi
4858
4859fi
4860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4861printf "%s\n" "$ac_cv_path_SED" >&6; }
4862 SED="$ac_cv_path_SED"
4863  rm -f conftest.sed
4864
4865
4866
4867
4868
4869
4870# Check whether --enable-selective-werror was given.
4871if test ${enable_selective_werror+y}
4872then :
4873  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4874else $as_nop
4875  SELECTIVE_WERROR=yes
4876fi
4877
4878
4879
4880
4881
4882# -v is too short to test reliably with XORG_TESTSET_CFLAG
4883if test "x$SUNCC" = "xyes"; then
4884    BASE_CFLAGS="-v"
4885else
4886    BASE_CFLAGS=""
4887fi
4888
4889# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903xorg_testset_save_CFLAGS="$CFLAGS"
4904
4905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4906	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4907	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4908printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4909if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4910then :
4911  printf %s "(cached) " >&6
4912else $as_nop
4913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914/* end confdefs.h.  */
4915int i;
4916_ACEOF
4917if ac_fn_c_try_compile "$LINENO"
4918then :
4919  xorg_cv_cc_flag_unknown_warning_option=yes
4920else $as_nop
4921  xorg_cv_cc_flag_unknown_warning_option=no
4922fi
4923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4924fi
4925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4926printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4927	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4928	CFLAGS="$xorg_testset_save_CFLAGS"
4929fi
4930
4931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4932	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4933		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4934	fi
4935	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4936	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4937printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4938if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4939then :
4940  printf %s "(cached) " >&6
4941else $as_nop
4942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943/* end confdefs.h.  */
4944int i;
4945_ACEOF
4946if ac_fn_c_try_compile "$LINENO"
4947then :
4948  xorg_cv_cc_flag_unused_command_line_argument=yes
4949else $as_nop
4950  xorg_cv_cc_flag_unused_command_line_argument=no
4951fi
4952rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4953fi
4954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4955printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4956	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4957	CFLAGS="$xorg_testset_save_CFLAGS"
4958fi
4959
4960found="no"
4961
4962	if test $found = "no" ; then
4963		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4964			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4965		fi
4966
4967		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4968			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4969		fi
4970
4971		CFLAGS="$CFLAGS -Wall"
4972
4973		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4974printf %s "checking if $CC supports -Wall... " >&6; }
4975		cacheid=xorg_cv_cc_flag__Wall
4976		if eval test \${$cacheid+y}
4977then :
4978  printf %s "(cached) " >&6
4979else $as_nop
4980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981/* end confdefs.h.  */
4982int i;
4983int
4984main (void)
4985{
4986
4987  ;
4988  return 0;
4989}
4990_ACEOF
4991if ac_fn_c_try_link "$LINENO"
4992then :
4993  eval $cacheid=yes
4994else $as_nop
4995  eval $cacheid=no
4996fi
4997rm -f core conftest.err conftest.$ac_objext conftest.beam \
4998    conftest$ac_exeext conftest.$ac_ext
4999fi
5000
5001
5002		CFLAGS="$xorg_testset_save_CFLAGS"
5003
5004		eval supported=\$$cacheid
5005		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5006printf "%s\n" "$supported" >&6; }
5007		if test "$supported" = "yes" ; then
5008			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5009			found="yes"
5010		fi
5011	fi
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027xorg_testset_save_CFLAGS="$CFLAGS"
5028
5029if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5030	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5031	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5032printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5033if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5034then :
5035  printf %s "(cached) " >&6
5036else $as_nop
5037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038/* end confdefs.h.  */
5039int i;
5040_ACEOF
5041if ac_fn_c_try_compile "$LINENO"
5042then :
5043  xorg_cv_cc_flag_unknown_warning_option=yes
5044else $as_nop
5045  xorg_cv_cc_flag_unknown_warning_option=no
5046fi
5047rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5048fi
5049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5050printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5051	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5052	CFLAGS="$xorg_testset_save_CFLAGS"
5053fi
5054
5055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5056	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5057		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5058	fi
5059	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5060	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5061printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5062if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5063then :
5064  printf %s "(cached) " >&6
5065else $as_nop
5066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067/* end confdefs.h.  */
5068int i;
5069_ACEOF
5070if ac_fn_c_try_compile "$LINENO"
5071then :
5072  xorg_cv_cc_flag_unused_command_line_argument=yes
5073else $as_nop
5074  xorg_cv_cc_flag_unused_command_line_argument=no
5075fi
5076rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5077fi
5078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5079printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5080	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5081	CFLAGS="$xorg_testset_save_CFLAGS"
5082fi
5083
5084found="no"
5085
5086	if test $found = "no" ; then
5087		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5088			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5089		fi
5090
5091		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5092			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5093		fi
5094
5095		CFLAGS="$CFLAGS -Wpointer-arith"
5096
5097		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5098printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5099		cacheid=xorg_cv_cc_flag__Wpointer_arith
5100		if eval test \${$cacheid+y}
5101then :
5102  printf %s "(cached) " >&6
5103else $as_nop
5104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105/* end confdefs.h.  */
5106int i;
5107int
5108main (void)
5109{
5110
5111  ;
5112  return 0;
5113}
5114_ACEOF
5115if ac_fn_c_try_link "$LINENO"
5116then :
5117  eval $cacheid=yes
5118else $as_nop
5119  eval $cacheid=no
5120fi
5121rm -f core conftest.err conftest.$ac_objext conftest.beam \
5122    conftest$ac_exeext conftest.$ac_ext
5123fi
5124
5125
5126		CFLAGS="$xorg_testset_save_CFLAGS"
5127
5128		eval supported=\$$cacheid
5129		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5130printf "%s\n" "$supported" >&6; }
5131		if test "$supported" = "yes" ; then
5132			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5133			found="yes"
5134		fi
5135	fi
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151xorg_testset_save_CFLAGS="$CFLAGS"
5152
5153if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5154	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5155	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5156printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5157if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5158then :
5159  printf %s "(cached) " >&6
5160else $as_nop
5161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162/* end confdefs.h.  */
5163int i;
5164_ACEOF
5165if ac_fn_c_try_compile "$LINENO"
5166then :
5167  xorg_cv_cc_flag_unknown_warning_option=yes
5168else $as_nop
5169  xorg_cv_cc_flag_unknown_warning_option=no
5170fi
5171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5172fi
5173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5174printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5175	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5176	CFLAGS="$xorg_testset_save_CFLAGS"
5177fi
5178
5179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5180	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5181		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5182	fi
5183	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5184	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5185printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5186if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5187then :
5188  printf %s "(cached) " >&6
5189else $as_nop
5190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191/* end confdefs.h.  */
5192int i;
5193_ACEOF
5194if ac_fn_c_try_compile "$LINENO"
5195then :
5196  xorg_cv_cc_flag_unused_command_line_argument=yes
5197else $as_nop
5198  xorg_cv_cc_flag_unused_command_line_argument=no
5199fi
5200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5201fi
5202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5203printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5204	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5205	CFLAGS="$xorg_testset_save_CFLAGS"
5206fi
5207
5208found="no"
5209
5210	if test $found = "no" ; then
5211		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5212			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5213		fi
5214
5215		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5216			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5217		fi
5218
5219		CFLAGS="$CFLAGS -Wmissing-declarations"
5220
5221		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5222printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5223		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5224		if eval test \${$cacheid+y}
5225then :
5226  printf %s "(cached) " >&6
5227else $as_nop
5228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229/* end confdefs.h.  */
5230int i;
5231int
5232main (void)
5233{
5234
5235  ;
5236  return 0;
5237}
5238_ACEOF
5239if ac_fn_c_try_link "$LINENO"
5240then :
5241  eval $cacheid=yes
5242else $as_nop
5243  eval $cacheid=no
5244fi
5245rm -f core conftest.err conftest.$ac_objext conftest.beam \
5246    conftest$ac_exeext conftest.$ac_ext
5247fi
5248
5249
5250		CFLAGS="$xorg_testset_save_CFLAGS"
5251
5252		eval supported=\$$cacheid
5253		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5254printf "%s\n" "$supported" >&6; }
5255		if test "$supported" = "yes" ; then
5256			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5257			found="yes"
5258		fi
5259	fi
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275xorg_testset_save_CFLAGS="$CFLAGS"
5276
5277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5278	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5279	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5280printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5281if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5282then :
5283  printf %s "(cached) " >&6
5284else $as_nop
5285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286/* end confdefs.h.  */
5287int i;
5288_ACEOF
5289if ac_fn_c_try_compile "$LINENO"
5290then :
5291  xorg_cv_cc_flag_unknown_warning_option=yes
5292else $as_nop
5293  xorg_cv_cc_flag_unknown_warning_option=no
5294fi
5295rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5296fi
5297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5298printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5299	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5300	CFLAGS="$xorg_testset_save_CFLAGS"
5301fi
5302
5303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5304	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5305		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5306	fi
5307	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5308	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5309printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5310if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5311then :
5312  printf %s "(cached) " >&6
5313else $as_nop
5314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315/* end confdefs.h.  */
5316int i;
5317_ACEOF
5318if ac_fn_c_try_compile "$LINENO"
5319then :
5320  xorg_cv_cc_flag_unused_command_line_argument=yes
5321else $as_nop
5322  xorg_cv_cc_flag_unused_command_line_argument=no
5323fi
5324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5325fi
5326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5327printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5328	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5329	CFLAGS="$xorg_testset_save_CFLAGS"
5330fi
5331
5332found="no"
5333
5334	if test $found = "no" ; then
5335		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5336			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5337		fi
5338
5339		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5340			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5341		fi
5342
5343		CFLAGS="$CFLAGS -Wformat=2"
5344
5345		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5346printf %s "checking if $CC supports -Wformat=2... " >&6; }
5347		cacheid=xorg_cv_cc_flag__Wformat_2
5348		if eval test \${$cacheid+y}
5349then :
5350  printf %s "(cached) " >&6
5351else $as_nop
5352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353/* end confdefs.h.  */
5354int i;
5355int
5356main (void)
5357{
5358
5359  ;
5360  return 0;
5361}
5362_ACEOF
5363if ac_fn_c_try_link "$LINENO"
5364then :
5365  eval $cacheid=yes
5366else $as_nop
5367  eval $cacheid=no
5368fi
5369rm -f core conftest.err conftest.$ac_objext conftest.beam \
5370    conftest$ac_exeext conftest.$ac_ext
5371fi
5372
5373
5374		CFLAGS="$xorg_testset_save_CFLAGS"
5375
5376		eval supported=\$$cacheid
5377		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5378printf "%s\n" "$supported" >&6; }
5379		if test "$supported" = "yes" ; then
5380			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5381			found="yes"
5382		fi
5383	fi
5384
5385	if test $found = "no" ; then
5386		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5387			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5388		fi
5389
5390		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5391			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5392		fi
5393
5394		CFLAGS="$CFLAGS -Wformat"
5395
5396		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5397printf %s "checking if $CC supports -Wformat... " >&6; }
5398		cacheid=xorg_cv_cc_flag__Wformat
5399		if eval test \${$cacheid+y}
5400then :
5401  printf %s "(cached) " >&6
5402else $as_nop
5403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404/* end confdefs.h.  */
5405int i;
5406int
5407main (void)
5408{
5409
5410  ;
5411  return 0;
5412}
5413_ACEOF
5414if ac_fn_c_try_link "$LINENO"
5415then :
5416  eval $cacheid=yes
5417else $as_nop
5418  eval $cacheid=no
5419fi
5420rm -f core conftest.err conftest.$ac_objext conftest.beam \
5421    conftest$ac_exeext conftest.$ac_ext
5422fi
5423
5424
5425		CFLAGS="$xorg_testset_save_CFLAGS"
5426
5427		eval supported=\$$cacheid
5428		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5429printf "%s\n" "$supported" >&6; }
5430		if test "$supported" = "yes" ; then
5431			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5432			found="yes"
5433		fi
5434	fi
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452xorg_testset_save_CFLAGS="$CFLAGS"
5453
5454if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5455	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5456	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5457printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5458if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5459then :
5460  printf %s "(cached) " >&6
5461else $as_nop
5462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463/* end confdefs.h.  */
5464int i;
5465_ACEOF
5466if ac_fn_c_try_compile "$LINENO"
5467then :
5468  xorg_cv_cc_flag_unknown_warning_option=yes
5469else $as_nop
5470  xorg_cv_cc_flag_unknown_warning_option=no
5471fi
5472rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5473fi
5474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5475printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5476	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5477	CFLAGS="$xorg_testset_save_CFLAGS"
5478fi
5479
5480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5481	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5482		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5483	fi
5484	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5485	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5486printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5487if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5488then :
5489  printf %s "(cached) " >&6
5490else $as_nop
5491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492/* end confdefs.h.  */
5493int i;
5494_ACEOF
5495if ac_fn_c_try_compile "$LINENO"
5496then :
5497  xorg_cv_cc_flag_unused_command_line_argument=yes
5498else $as_nop
5499  xorg_cv_cc_flag_unused_command_line_argument=no
5500fi
5501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5502fi
5503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5504printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5505	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5506	CFLAGS="$xorg_testset_save_CFLAGS"
5507fi
5508
5509found="no"
5510
5511	if test $found = "no" ; then
5512		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5513			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5514		fi
5515
5516		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5517			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5518		fi
5519
5520		CFLAGS="$CFLAGS -Wstrict-prototypes"
5521
5522		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5523printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5524		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5525		if eval test \${$cacheid+y}
5526then :
5527  printf %s "(cached) " >&6
5528else $as_nop
5529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530/* end confdefs.h.  */
5531int i;
5532int
5533main (void)
5534{
5535
5536  ;
5537  return 0;
5538}
5539_ACEOF
5540if ac_fn_c_try_link "$LINENO"
5541then :
5542  eval $cacheid=yes
5543else $as_nop
5544  eval $cacheid=no
5545fi
5546rm -f core conftest.err conftest.$ac_objext conftest.beam \
5547    conftest$ac_exeext conftest.$ac_ext
5548fi
5549
5550
5551		CFLAGS="$xorg_testset_save_CFLAGS"
5552
5553		eval supported=\$$cacheid
5554		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5555printf "%s\n" "$supported" >&6; }
5556		if test "$supported" = "yes" ; then
5557			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5558			found="yes"
5559		fi
5560	fi
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576xorg_testset_save_CFLAGS="$CFLAGS"
5577
5578if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5579	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5580	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5581printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5582if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5583then :
5584  printf %s "(cached) " >&6
5585else $as_nop
5586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587/* end confdefs.h.  */
5588int i;
5589_ACEOF
5590if ac_fn_c_try_compile "$LINENO"
5591then :
5592  xorg_cv_cc_flag_unknown_warning_option=yes
5593else $as_nop
5594  xorg_cv_cc_flag_unknown_warning_option=no
5595fi
5596rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5597fi
5598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5599printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5600	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5601	CFLAGS="$xorg_testset_save_CFLAGS"
5602fi
5603
5604if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5605	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5606		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5607	fi
5608	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5609	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5610printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5611if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5612then :
5613  printf %s "(cached) " >&6
5614else $as_nop
5615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616/* end confdefs.h.  */
5617int i;
5618_ACEOF
5619if ac_fn_c_try_compile "$LINENO"
5620then :
5621  xorg_cv_cc_flag_unused_command_line_argument=yes
5622else $as_nop
5623  xorg_cv_cc_flag_unused_command_line_argument=no
5624fi
5625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5626fi
5627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5628printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5629	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5630	CFLAGS="$xorg_testset_save_CFLAGS"
5631fi
5632
5633found="no"
5634
5635	if test $found = "no" ; then
5636		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5637			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5638		fi
5639
5640		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5641			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5642		fi
5643
5644		CFLAGS="$CFLAGS -Wmissing-prototypes"
5645
5646		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5647printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5648		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5649		if eval test \${$cacheid+y}
5650then :
5651  printf %s "(cached) " >&6
5652else $as_nop
5653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654/* end confdefs.h.  */
5655int i;
5656int
5657main (void)
5658{
5659
5660  ;
5661  return 0;
5662}
5663_ACEOF
5664if ac_fn_c_try_link "$LINENO"
5665then :
5666  eval $cacheid=yes
5667else $as_nop
5668  eval $cacheid=no
5669fi
5670rm -f core conftest.err conftest.$ac_objext conftest.beam \
5671    conftest$ac_exeext conftest.$ac_ext
5672fi
5673
5674
5675		CFLAGS="$xorg_testset_save_CFLAGS"
5676
5677		eval supported=\$$cacheid
5678		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5679printf "%s\n" "$supported" >&6; }
5680		if test "$supported" = "yes" ; then
5681			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5682			found="yes"
5683		fi
5684	fi
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700xorg_testset_save_CFLAGS="$CFLAGS"
5701
5702if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5703	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5704	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5705printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5706if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5707then :
5708  printf %s "(cached) " >&6
5709else $as_nop
5710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711/* end confdefs.h.  */
5712int i;
5713_ACEOF
5714if ac_fn_c_try_compile "$LINENO"
5715then :
5716  xorg_cv_cc_flag_unknown_warning_option=yes
5717else $as_nop
5718  xorg_cv_cc_flag_unknown_warning_option=no
5719fi
5720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5721fi
5722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5723printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5724	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5725	CFLAGS="$xorg_testset_save_CFLAGS"
5726fi
5727
5728if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5729	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5730		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5731	fi
5732	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5733	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5734printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5735if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5736then :
5737  printf %s "(cached) " >&6
5738else $as_nop
5739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740/* end confdefs.h.  */
5741int i;
5742_ACEOF
5743if ac_fn_c_try_compile "$LINENO"
5744then :
5745  xorg_cv_cc_flag_unused_command_line_argument=yes
5746else $as_nop
5747  xorg_cv_cc_flag_unused_command_line_argument=no
5748fi
5749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5750fi
5751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5752printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5753	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5754	CFLAGS="$xorg_testset_save_CFLAGS"
5755fi
5756
5757found="no"
5758
5759	if test $found = "no" ; then
5760		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5761			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5762		fi
5763
5764		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5765			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5766		fi
5767
5768		CFLAGS="$CFLAGS -Wnested-externs"
5769
5770		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5771printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5772		cacheid=xorg_cv_cc_flag__Wnested_externs
5773		if eval test \${$cacheid+y}
5774then :
5775  printf %s "(cached) " >&6
5776else $as_nop
5777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778/* end confdefs.h.  */
5779int i;
5780int
5781main (void)
5782{
5783
5784  ;
5785  return 0;
5786}
5787_ACEOF
5788if ac_fn_c_try_link "$LINENO"
5789then :
5790  eval $cacheid=yes
5791else $as_nop
5792  eval $cacheid=no
5793fi
5794rm -f core conftest.err conftest.$ac_objext conftest.beam \
5795    conftest$ac_exeext conftest.$ac_ext
5796fi
5797
5798
5799		CFLAGS="$xorg_testset_save_CFLAGS"
5800
5801		eval supported=\$$cacheid
5802		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5803printf "%s\n" "$supported" >&6; }
5804		if test "$supported" = "yes" ; then
5805			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5806			found="yes"
5807		fi
5808	fi
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824xorg_testset_save_CFLAGS="$CFLAGS"
5825
5826if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5827	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5828	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5829printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5830if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5831then :
5832  printf %s "(cached) " >&6
5833else $as_nop
5834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835/* end confdefs.h.  */
5836int i;
5837_ACEOF
5838if ac_fn_c_try_compile "$LINENO"
5839then :
5840  xorg_cv_cc_flag_unknown_warning_option=yes
5841else $as_nop
5842  xorg_cv_cc_flag_unknown_warning_option=no
5843fi
5844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5845fi
5846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5847printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5848	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5849	CFLAGS="$xorg_testset_save_CFLAGS"
5850fi
5851
5852if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5853	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5854		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5855	fi
5856	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5857	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5858printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5859if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5860then :
5861  printf %s "(cached) " >&6
5862else $as_nop
5863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864/* end confdefs.h.  */
5865int i;
5866_ACEOF
5867if ac_fn_c_try_compile "$LINENO"
5868then :
5869  xorg_cv_cc_flag_unused_command_line_argument=yes
5870else $as_nop
5871  xorg_cv_cc_flag_unused_command_line_argument=no
5872fi
5873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5874fi
5875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5876printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5877	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5878	CFLAGS="$xorg_testset_save_CFLAGS"
5879fi
5880
5881found="no"
5882
5883	if test $found = "no" ; then
5884		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5885			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5886		fi
5887
5888		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5889			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5890		fi
5891
5892		CFLAGS="$CFLAGS -Wbad-function-cast"
5893
5894		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5895printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5896		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5897		if eval test \${$cacheid+y}
5898then :
5899  printf %s "(cached) " >&6
5900else $as_nop
5901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902/* end confdefs.h.  */
5903int i;
5904int
5905main (void)
5906{
5907
5908  ;
5909  return 0;
5910}
5911_ACEOF
5912if ac_fn_c_try_link "$LINENO"
5913then :
5914  eval $cacheid=yes
5915else $as_nop
5916  eval $cacheid=no
5917fi
5918rm -f core conftest.err conftest.$ac_objext conftest.beam \
5919    conftest$ac_exeext conftest.$ac_ext
5920fi
5921
5922
5923		CFLAGS="$xorg_testset_save_CFLAGS"
5924
5925		eval supported=\$$cacheid
5926		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5927printf "%s\n" "$supported" >&6; }
5928		if test "$supported" = "yes" ; then
5929			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5930			found="yes"
5931		fi
5932	fi
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948xorg_testset_save_CFLAGS="$CFLAGS"
5949
5950if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5951	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5952	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5953printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5954if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5955then :
5956  printf %s "(cached) " >&6
5957else $as_nop
5958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959/* end confdefs.h.  */
5960int i;
5961_ACEOF
5962if ac_fn_c_try_compile "$LINENO"
5963then :
5964  xorg_cv_cc_flag_unknown_warning_option=yes
5965else $as_nop
5966  xorg_cv_cc_flag_unknown_warning_option=no
5967fi
5968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5969fi
5970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5971printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5972	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5973	CFLAGS="$xorg_testset_save_CFLAGS"
5974fi
5975
5976if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5977	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5978		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5979	fi
5980	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5981	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5982printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5983if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5984then :
5985  printf %s "(cached) " >&6
5986else $as_nop
5987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988/* end confdefs.h.  */
5989int i;
5990_ACEOF
5991if ac_fn_c_try_compile "$LINENO"
5992then :
5993  xorg_cv_cc_flag_unused_command_line_argument=yes
5994else $as_nop
5995  xorg_cv_cc_flag_unused_command_line_argument=no
5996fi
5997rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5998fi
5999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6000printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6001	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6002	CFLAGS="$xorg_testset_save_CFLAGS"
6003fi
6004
6005found="no"
6006
6007	if test $found = "no" ; then
6008		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6009			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6010		fi
6011
6012		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6013			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6014		fi
6015
6016		CFLAGS="$CFLAGS -Wold-style-definition"
6017
6018		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6019printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6020		cacheid=xorg_cv_cc_flag__Wold_style_definition
6021		if eval test \${$cacheid+y}
6022then :
6023  printf %s "(cached) " >&6
6024else $as_nop
6025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026/* end confdefs.h.  */
6027int i;
6028int
6029main (void)
6030{
6031
6032  ;
6033  return 0;
6034}
6035_ACEOF
6036if ac_fn_c_try_link "$LINENO"
6037then :
6038  eval $cacheid=yes
6039else $as_nop
6040  eval $cacheid=no
6041fi
6042rm -f core conftest.err conftest.$ac_objext conftest.beam \
6043    conftest$ac_exeext conftest.$ac_ext
6044fi
6045
6046
6047		CFLAGS="$xorg_testset_save_CFLAGS"
6048
6049		eval supported=\$$cacheid
6050		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6051printf "%s\n" "$supported" >&6; }
6052		if test "$supported" = "yes" ; then
6053			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6054			found="yes"
6055		fi
6056	fi
6057
6058	if test $found = "no" ; then
6059		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6060			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6061		fi
6062
6063		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6064			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6065		fi
6066
6067		CFLAGS="$CFLAGS -fd"
6068
6069		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6070printf %s "checking if $CC supports -fd... " >&6; }
6071		cacheid=xorg_cv_cc_flag__fd
6072		if eval test \${$cacheid+y}
6073then :
6074  printf %s "(cached) " >&6
6075else $as_nop
6076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077/* end confdefs.h.  */
6078int i;
6079int
6080main (void)
6081{
6082
6083  ;
6084  return 0;
6085}
6086_ACEOF
6087if ac_fn_c_try_link "$LINENO"
6088then :
6089  eval $cacheid=yes
6090else $as_nop
6091  eval $cacheid=no
6092fi
6093rm -f core conftest.err conftest.$ac_objext conftest.beam \
6094    conftest$ac_exeext conftest.$ac_ext
6095fi
6096
6097
6098		CFLAGS="$xorg_testset_save_CFLAGS"
6099
6100		eval supported=\$$cacheid
6101		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6102printf "%s\n" "$supported" >&6; }
6103		if test "$supported" = "yes" ; then
6104			BASE_CFLAGS="$BASE_CFLAGS -fd"
6105			found="yes"
6106		fi
6107	fi
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123xorg_testset_save_CFLAGS="$CFLAGS"
6124
6125if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6126	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6127	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6128printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6129if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6130then :
6131  printf %s "(cached) " >&6
6132else $as_nop
6133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134/* end confdefs.h.  */
6135int i;
6136_ACEOF
6137if ac_fn_c_try_compile "$LINENO"
6138then :
6139  xorg_cv_cc_flag_unknown_warning_option=yes
6140else $as_nop
6141  xorg_cv_cc_flag_unknown_warning_option=no
6142fi
6143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6144fi
6145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6146printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6147	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6148	CFLAGS="$xorg_testset_save_CFLAGS"
6149fi
6150
6151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6152	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6153		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6154	fi
6155	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6156	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6157printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6158if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6159then :
6160  printf %s "(cached) " >&6
6161else $as_nop
6162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163/* end confdefs.h.  */
6164int i;
6165_ACEOF
6166if ac_fn_c_try_compile "$LINENO"
6167then :
6168  xorg_cv_cc_flag_unused_command_line_argument=yes
6169else $as_nop
6170  xorg_cv_cc_flag_unused_command_line_argument=no
6171fi
6172rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6173fi
6174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6175printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6176	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6177	CFLAGS="$xorg_testset_save_CFLAGS"
6178fi
6179
6180found="no"
6181
6182	if test $found = "no" ; then
6183		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6184			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6185		fi
6186
6187		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6188			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6189		fi
6190
6191		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6192
6193		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6194printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6195		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6196		if eval test \${$cacheid+y}
6197then :
6198  printf %s "(cached) " >&6
6199else $as_nop
6200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201/* end confdefs.h.  */
6202int i;
6203int
6204main (void)
6205{
6206
6207  ;
6208  return 0;
6209}
6210_ACEOF
6211if ac_fn_c_try_link "$LINENO"
6212then :
6213  eval $cacheid=yes
6214else $as_nop
6215  eval $cacheid=no
6216fi
6217rm -f core conftest.err conftest.$ac_objext conftest.beam \
6218    conftest$ac_exeext conftest.$ac_ext
6219fi
6220
6221
6222		CFLAGS="$xorg_testset_save_CFLAGS"
6223
6224		eval supported=\$$cacheid
6225		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6226printf "%s\n" "$supported" >&6; }
6227		if test "$supported" = "yes" ; then
6228			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6229			found="yes"
6230		fi
6231	fi
6232
6233
6234
6235
6236
6237# This chunk adds additional warnings that could catch undesired effects.
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251xorg_testset_save_CFLAGS="$CFLAGS"
6252
6253if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6254	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6255	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6256printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6257if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6258then :
6259  printf %s "(cached) " >&6
6260else $as_nop
6261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262/* end confdefs.h.  */
6263int i;
6264_ACEOF
6265if ac_fn_c_try_compile "$LINENO"
6266then :
6267  xorg_cv_cc_flag_unknown_warning_option=yes
6268else $as_nop
6269  xorg_cv_cc_flag_unknown_warning_option=no
6270fi
6271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6272fi
6273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6274printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6275	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6276	CFLAGS="$xorg_testset_save_CFLAGS"
6277fi
6278
6279if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6280	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6281		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6282	fi
6283	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6284	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6285printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6286if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6287then :
6288  printf %s "(cached) " >&6
6289else $as_nop
6290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291/* end confdefs.h.  */
6292int i;
6293_ACEOF
6294if ac_fn_c_try_compile "$LINENO"
6295then :
6296  xorg_cv_cc_flag_unused_command_line_argument=yes
6297else $as_nop
6298  xorg_cv_cc_flag_unused_command_line_argument=no
6299fi
6300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6301fi
6302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6303printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6304	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6305	CFLAGS="$xorg_testset_save_CFLAGS"
6306fi
6307
6308found="no"
6309
6310	if test $found = "no" ; then
6311		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6312			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6313		fi
6314
6315		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6316			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6317		fi
6318
6319		CFLAGS="$CFLAGS -Wunused"
6320
6321		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6322printf %s "checking if $CC supports -Wunused... " >&6; }
6323		cacheid=xorg_cv_cc_flag__Wunused
6324		if eval test \${$cacheid+y}
6325then :
6326  printf %s "(cached) " >&6
6327else $as_nop
6328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329/* end confdefs.h.  */
6330int i;
6331int
6332main (void)
6333{
6334
6335  ;
6336  return 0;
6337}
6338_ACEOF
6339if ac_fn_c_try_link "$LINENO"
6340then :
6341  eval $cacheid=yes
6342else $as_nop
6343  eval $cacheid=no
6344fi
6345rm -f core conftest.err conftest.$ac_objext conftest.beam \
6346    conftest$ac_exeext conftest.$ac_ext
6347fi
6348
6349
6350		CFLAGS="$xorg_testset_save_CFLAGS"
6351
6352		eval supported=\$$cacheid
6353		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6354printf "%s\n" "$supported" >&6; }
6355		if test "$supported" = "yes" ; then
6356			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6357			found="yes"
6358		fi
6359	fi
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375xorg_testset_save_CFLAGS="$CFLAGS"
6376
6377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6378	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6379	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6380printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6381if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6382then :
6383  printf %s "(cached) " >&6
6384else $as_nop
6385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386/* end confdefs.h.  */
6387int i;
6388_ACEOF
6389if ac_fn_c_try_compile "$LINENO"
6390then :
6391  xorg_cv_cc_flag_unknown_warning_option=yes
6392else $as_nop
6393  xorg_cv_cc_flag_unknown_warning_option=no
6394fi
6395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6396fi
6397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6398printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6399	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6400	CFLAGS="$xorg_testset_save_CFLAGS"
6401fi
6402
6403if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6404	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6405		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6406	fi
6407	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6408	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6409printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6410if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6411then :
6412  printf %s "(cached) " >&6
6413else $as_nop
6414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415/* end confdefs.h.  */
6416int i;
6417_ACEOF
6418if ac_fn_c_try_compile "$LINENO"
6419then :
6420  xorg_cv_cc_flag_unused_command_line_argument=yes
6421else $as_nop
6422  xorg_cv_cc_flag_unused_command_line_argument=no
6423fi
6424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6425fi
6426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6427printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6428	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6429	CFLAGS="$xorg_testset_save_CFLAGS"
6430fi
6431
6432found="no"
6433
6434	if test $found = "no" ; then
6435		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6436			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6437		fi
6438
6439		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6440			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6441		fi
6442
6443		CFLAGS="$CFLAGS -Wuninitialized"
6444
6445		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6446printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6447		cacheid=xorg_cv_cc_flag__Wuninitialized
6448		if eval test \${$cacheid+y}
6449then :
6450  printf %s "(cached) " >&6
6451else $as_nop
6452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453/* end confdefs.h.  */
6454int i;
6455int
6456main (void)
6457{
6458
6459  ;
6460  return 0;
6461}
6462_ACEOF
6463if ac_fn_c_try_link "$LINENO"
6464then :
6465  eval $cacheid=yes
6466else $as_nop
6467  eval $cacheid=no
6468fi
6469rm -f core conftest.err conftest.$ac_objext conftest.beam \
6470    conftest$ac_exeext conftest.$ac_ext
6471fi
6472
6473
6474		CFLAGS="$xorg_testset_save_CFLAGS"
6475
6476		eval supported=\$$cacheid
6477		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6478printf "%s\n" "$supported" >&6; }
6479		if test "$supported" = "yes" ; then
6480			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6481			found="yes"
6482		fi
6483	fi
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499xorg_testset_save_CFLAGS="$CFLAGS"
6500
6501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6502	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6503	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6504printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6505if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6506then :
6507  printf %s "(cached) " >&6
6508else $as_nop
6509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510/* end confdefs.h.  */
6511int i;
6512_ACEOF
6513if ac_fn_c_try_compile "$LINENO"
6514then :
6515  xorg_cv_cc_flag_unknown_warning_option=yes
6516else $as_nop
6517  xorg_cv_cc_flag_unknown_warning_option=no
6518fi
6519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6520fi
6521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6522printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6523	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6524	CFLAGS="$xorg_testset_save_CFLAGS"
6525fi
6526
6527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6528	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6529		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6530	fi
6531	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6532	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6533printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6534if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6535then :
6536  printf %s "(cached) " >&6
6537else $as_nop
6538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539/* end confdefs.h.  */
6540int i;
6541_ACEOF
6542if ac_fn_c_try_compile "$LINENO"
6543then :
6544  xorg_cv_cc_flag_unused_command_line_argument=yes
6545else $as_nop
6546  xorg_cv_cc_flag_unused_command_line_argument=no
6547fi
6548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6549fi
6550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6551printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6552	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6553	CFLAGS="$xorg_testset_save_CFLAGS"
6554fi
6555
6556found="no"
6557
6558	if test $found = "no" ; then
6559		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6560			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6561		fi
6562
6563		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6564			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6565		fi
6566
6567		CFLAGS="$CFLAGS -Wshadow"
6568
6569		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6570printf %s "checking if $CC supports -Wshadow... " >&6; }
6571		cacheid=xorg_cv_cc_flag__Wshadow
6572		if eval test \${$cacheid+y}
6573then :
6574  printf %s "(cached) " >&6
6575else $as_nop
6576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577/* end confdefs.h.  */
6578int i;
6579int
6580main (void)
6581{
6582
6583  ;
6584  return 0;
6585}
6586_ACEOF
6587if ac_fn_c_try_link "$LINENO"
6588then :
6589  eval $cacheid=yes
6590else $as_nop
6591  eval $cacheid=no
6592fi
6593rm -f core conftest.err conftest.$ac_objext conftest.beam \
6594    conftest$ac_exeext conftest.$ac_ext
6595fi
6596
6597
6598		CFLAGS="$xorg_testset_save_CFLAGS"
6599
6600		eval supported=\$$cacheid
6601		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6602printf "%s\n" "$supported" >&6; }
6603		if test "$supported" = "yes" ; then
6604			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6605			found="yes"
6606		fi
6607	fi
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623xorg_testset_save_CFLAGS="$CFLAGS"
6624
6625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6626	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6627	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6628printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6629if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6630then :
6631  printf %s "(cached) " >&6
6632else $as_nop
6633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634/* end confdefs.h.  */
6635int i;
6636_ACEOF
6637if ac_fn_c_try_compile "$LINENO"
6638then :
6639  xorg_cv_cc_flag_unknown_warning_option=yes
6640else $as_nop
6641  xorg_cv_cc_flag_unknown_warning_option=no
6642fi
6643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6644fi
6645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6646printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6647	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6648	CFLAGS="$xorg_testset_save_CFLAGS"
6649fi
6650
6651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6652	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6653		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6654	fi
6655	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6656	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6657printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6658if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6659then :
6660  printf %s "(cached) " >&6
6661else $as_nop
6662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663/* end confdefs.h.  */
6664int i;
6665_ACEOF
6666if ac_fn_c_try_compile "$LINENO"
6667then :
6668  xorg_cv_cc_flag_unused_command_line_argument=yes
6669else $as_nop
6670  xorg_cv_cc_flag_unused_command_line_argument=no
6671fi
6672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6673fi
6674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6675printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6676	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6677	CFLAGS="$xorg_testset_save_CFLAGS"
6678fi
6679
6680found="no"
6681
6682	if test $found = "no" ; then
6683		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6684			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6685		fi
6686
6687		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6688			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6689		fi
6690
6691		CFLAGS="$CFLAGS -Wmissing-noreturn"
6692
6693		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6694printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6695		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6696		if eval test \${$cacheid+y}
6697then :
6698  printf %s "(cached) " >&6
6699else $as_nop
6700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701/* end confdefs.h.  */
6702int i;
6703int
6704main (void)
6705{
6706
6707  ;
6708  return 0;
6709}
6710_ACEOF
6711if ac_fn_c_try_link "$LINENO"
6712then :
6713  eval $cacheid=yes
6714else $as_nop
6715  eval $cacheid=no
6716fi
6717rm -f core conftest.err conftest.$ac_objext conftest.beam \
6718    conftest$ac_exeext conftest.$ac_ext
6719fi
6720
6721
6722		CFLAGS="$xorg_testset_save_CFLAGS"
6723
6724		eval supported=\$$cacheid
6725		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6726printf "%s\n" "$supported" >&6; }
6727		if test "$supported" = "yes" ; then
6728			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6729			found="yes"
6730		fi
6731	fi
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747xorg_testset_save_CFLAGS="$CFLAGS"
6748
6749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6750	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6751	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6752printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6753if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6754then :
6755  printf %s "(cached) " >&6
6756else $as_nop
6757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758/* end confdefs.h.  */
6759int i;
6760_ACEOF
6761if ac_fn_c_try_compile "$LINENO"
6762then :
6763  xorg_cv_cc_flag_unknown_warning_option=yes
6764else $as_nop
6765  xorg_cv_cc_flag_unknown_warning_option=no
6766fi
6767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6768fi
6769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6770printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6771	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6772	CFLAGS="$xorg_testset_save_CFLAGS"
6773fi
6774
6775if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6776	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6777		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6778	fi
6779	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6780	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6781printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6782if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6783then :
6784  printf %s "(cached) " >&6
6785else $as_nop
6786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787/* end confdefs.h.  */
6788int i;
6789_ACEOF
6790if ac_fn_c_try_compile "$LINENO"
6791then :
6792  xorg_cv_cc_flag_unused_command_line_argument=yes
6793else $as_nop
6794  xorg_cv_cc_flag_unused_command_line_argument=no
6795fi
6796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6797fi
6798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6799printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6800	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6801	CFLAGS="$xorg_testset_save_CFLAGS"
6802fi
6803
6804found="no"
6805
6806	if test $found = "no" ; then
6807		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6808			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6809		fi
6810
6811		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6812			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6813		fi
6814
6815		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6816
6817		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6818printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6819		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6820		if eval test \${$cacheid+y}
6821then :
6822  printf %s "(cached) " >&6
6823else $as_nop
6824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825/* end confdefs.h.  */
6826int i;
6827int
6828main (void)
6829{
6830
6831  ;
6832  return 0;
6833}
6834_ACEOF
6835if ac_fn_c_try_link "$LINENO"
6836then :
6837  eval $cacheid=yes
6838else $as_nop
6839  eval $cacheid=no
6840fi
6841rm -f core conftest.err conftest.$ac_objext conftest.beam \
6842    conftest$ac_exeext conftest.$ac_ext
6843fi
6844
6845
6846		CFLAGS="$xorg_testset_save_CFLAGS"
6847
6848		eval supported=\$$cacheid
6849		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6850printf "%s\n" "$supported" >&6; }
6851		if test "$supported" = "yes" ; then
6852			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6853			found="yes"
6854		fi
6855	fi
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871xorg_testset_save_CFLAGS="$CFLAGS"
6872
6873if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6874	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6875	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6876printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6877if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6878then :
6879  printf %s "(cached) " >&6
6880else $as_nop
6881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882/* end confdefs.h.  */
6883int i;
6884_ACEOF
6885if ac_fn_c_try_compile "$LINENO"
6886then :
6887  xorg_cv_cc_flag_unknown_warning_option=yes
6888else $as_nop
6889  xorg_cv_cc_flag_unknown_warning_option=no
6890fi
6891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6892fi
6893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6894printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6895	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6896	CFLAGS="$xorg_testset_save_CFLAGS"
6897fi
6898
6899if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6900	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6901		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6902	fi
6903	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6904	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6905printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6906if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6907then :
6908  printf %s "(cached) " >&6
6909else $as_nop
6910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911/* end confdefs.h.  */
6912int i;
6913_ACEOF
6914if ac_fn_c_try_compile "$LINENO"
6915then :
6916  xorg_cv_cc_flag_unused_command_line_argument=yes
6917else $as_nop
6918  xorg_cv_cc_flag_unused_command_line_argument=no
6919fi
6920rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6921fi
6922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6923printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6924	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6925	CFLAGS="$xorg_testset_save_CFLAGS"
6926fi
6927
6928found="no"
6929
6930	if test $found = "no" ; then
6931		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6932			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6933		fi
6934
6935		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6936			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6937		fi
6938
6939		CFLAGS="$CFLAGS -Wredundant-decls"
6940
6941		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6942printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6943		cacheid=xorg_cv_cc_flag__Wredundant_decls
6944		if eval test \${$cacheid+y}
6945then :
6946  printf %s "(cached) " >&6
6947else $as_nop
6948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949/* end confdefs.h.  */
6950int i;
6951int
6952main (void)
6953{
6954
6955  ;
6956  return 0;
6957}
6958_ACEOF
6959if ac_fn_c_try_link "$LINENO"
6960then :
6961  eval $cacheid=yes
6962else $as_nop
6963  eval $cacheid=no
6964fi
6965rm -f core conftest.err conftest.$ac_objext conftest.beam \
6966    conftest$ac_exeext conftest.$ac_ext
6967fi
6968
6969
6970		CFLAGS="$xorg_testset_save_CFLAGS"
6971
6972		eval supported=\$$cacheid
6973		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6974printf "%s\n" "$supported" >&6; }
6975		if test "$supported" = "yes" ; then
6976			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6977			found="yes"
6978		fi
6979	fi
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995xorg_testset_save_CFLAGS="$CFLAGS"
6996
6997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6998	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6999	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7000printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7001if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7002then :
7003  printf %s "(cached) " >&6
7004else $as_nop
7005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006/* end confdefs.h.  */
7007int i;
7008_ACEOF
7009if ac_fn_c_try_compile "$LINENO"
7010then :
7011  xorg_cv_cc_flag_unknown_warning_option=yes
7012else $as_nop
7013  xorg_cv_cc_flag_unknown_warning_option=no
7014fi
7015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7016fi
7017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7018printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7019	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7020	CFLAGS="$xorg_testset_save_CFLAGS"
7021fi
7022
7023if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7024	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7025		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7026	fi
7027	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7028	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7029printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7030if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7031then :
7032  printf %s "(cached) " >&6
7033else $as_nop
7034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035/* end confdefs.h.  */
7036int i;
7037_ACEOF
7038if ac_fn_c_try_compile "$LINENO"
7039then :
7040  xorg_cv_cc_flag_unused_command_line_argument=yes
7041else $as_nop
7042  xorg_cv_cc_flag_unused_command_line_argument=no
7043fi
7044rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7045fi
7046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7047printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7048	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7049	CFLAGS="$xorg_testset_save_CFLAGS"
7050fi
7051
7052found="no"
7053
7054	if test $found = "no" ; then
7055		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7056			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7057		fi
7058
7059		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7060			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7061		fi
7062
7063		CFLAGS="$CFLAGS -Wlogical-op"
7064
7065		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7066printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7067		cacheid=xorg_cv_cc_flag__Wlogical_op
7068		if eval test \${$cacheid+y}
7069then :
7070  printf %s "(cached) " >&6
7071else $as_nop
7072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073/* end confdefs.h.  */
7074int i;
7075int
7076main (void)
7077{
7078
7079  ;
7080  return 0;
7081}
7082_ACEOF
7083if ac_fn_c_try_link "$LINENO"
7084then :
7085  eval $cacheid=yes
7086else $as_nop
7087  eval $cacheid=no
7088fi
7089rm -f core conftest.err conftest.$ac_objext conftest.beam \
7090    conftest$ac_exeext conftest.$ac_ext
7091fi
7092
7093
7094		CFLAGS="$xorg_testset_save_CFLAGS"
7095
7096		eval supported=\$$cacheid
7097		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7098printf "%s\n" "$supported" >&6; }
7099		if test "$supported" = "yes" ; then
7100			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7101			found="yes"
7102		fi
7103	fi
7104
7105
7106
7107# These are currently disabled because they are noisy.  They will be enabled
7108# in the future once the codebase is sufficiently modernized to silence
7109# them.  For now, I don't want them to drown out the other warnings.
7110# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7111# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7112# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7113
7114# Turn some warnings into errors, so we don't accidently get successful builds
7115# when there are problems that should be fixed.
7116
7117if test "x$SELECTIVE_WERROR" = "xyes" ; then
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131xorg_testset_save_CFLAGS="$CFLAGS"
7132
7133if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7134	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7135	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7136printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7137if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7138then :
7139  printf %s "(cached) " >&6
7140else $as_nop
7141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142/* end confdefs.h.  */
7143int i;
7144_ACEOF
7145if ac_fn_c_try_compile "$LINENO"
7146then :
7147  xorg_cv_cc_flag_unknown_warning_option=yes
7148else $as_nop
7149  xorg_cv_cc_flag_unknown_warning_option=no
7150fi
7151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7152fi
7153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7154printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7155	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7156	CFLAGS="$xorg_testset_save_CFLAGS"
7157fi
7158
7159if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7160	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7161		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7162	fi
7163	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7164	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7165printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7166if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7167then :
7168  printf %s "(cached) " >&6
7169else $as_nop
7170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171/* end confdefs.h.  */
7172int i;
7173_ACEOF
7174if ac_fn_c_try_compile "$LINENO"
7175then :
7176  xorg_cv_cc_flag_unused_command_line_argument=yes
7177else $as_nop
7178  xorg_cv_cc_flag_unused_command_line_argument=no
7179fi
7180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7181fi
7182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7183printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7184	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7185	CFLAGS="$xorg_testset_save_CFLAGS"
7186fi
7187
7188found="no"
7189
7190	if test $found = "no" ; then
7191		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7192			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7193		fi
7194
7195		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7196			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7197		fi
7198
7199		CFLAGS="$CFLAGS -Werror=implicit"
7200
7201		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7202printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7203		cacheid=xorg_cv_cc_flag__Werror_implicit
7204		if eval test \${$cacheid+y}
7205then :
7206  printf %s "(cached) " >&6
7207else $as_nop
7208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209/* end confdefs.h.  */
7210int i;
7211int
7212main (void)
7213{
7214
7215  ;
7216  return 0;
7217}
7218_ACEOF
7219if ac_fn_c_try_link "$LINENO"
7220then :
7221  eval $cacheid=yes
7222else $as_nop
7223  eval $cacheid=no
7224fi
7225rm -f core conftest.err conftest.$ac_objext conftest.beam \
7226    conftest$ac_exeext conftest.$ac_ext
7227fi
7228
7229
7230		CFLAGS="$xorg_testset_save_CFLAGS"
7231
7232		eval supported=\$$cacheid
7233		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7234printf "%s\n" "$supported" >&6; }
7235		if test "$supported" = "yes" ; then
7236			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7237			found="yes"
7238		fi
7239	fi
7240
7241	if test $found = "no" ; then
7242		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7243			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7244		fi
7245
7246		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7247			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7248		fi
7249
7250		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7251
7252		{ 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
7253printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7254		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7255		if eval test \${$cacheid+y}
7256then :
7257  printf %s "(cached) " >&6
7258else $as_nop
7259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260/* end confdefs.h.  */
7261int i;
7262int
7263main (void)
7264{
7265
7266  ;
7267  return 0;
7268}
7269_ACEOF
7270if ac_fn_c_try_link "$LINENO"
7271then :
7272  eval $cacheid=yes
7273else $as_nop
7274  eval $cacheid=no
7275fi
7276rm -f core conftest.err conftest.$ac_objext conftest.beam \
7277    conftest$ac_exeext conftest.$ac_ext
7278fi
7279
7280
7281		CFLAGS="$xorg_testset_save_CFLAGS"
7282
7283		eval supported=\$$cacheid
7284		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7285printf "%s\n" "$supported" >&6; }
7286		if test "$supported" = "yes" ; then
7287			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7288			found="yes"
7289		fi
7290	fi
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306xorg_testset_save_CFLAGS="$CFLAGS"
7307
7308if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7309	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7310	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7311printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7312if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7313then :
7314  printf %s "(cached) " >&6
7315else $as_nop
7316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317/* end confdefs.h.  */
7318int i;
7319_ACEOF
7320if ac_fn_c_try_compile "$LINENO"
7321then :
7322  xorg_cv_cc_flag_unknown_warning_option=yes
7323else $as_nop
7324  xorg_cv_cc_flag_unknown_warning_option=no
7325fi
7326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7327fi
7328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7329printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7330	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7331	CFLAGS="$xorg_testset_save_CFLAGS"
7332fi
7333
7334if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7335	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7336		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7337	fi
7338	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7339	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7340printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7341if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7342then :
7343  printf %s "(cached) " >&6
7344else $as_nop
7345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346/* end confdefs.h.  */
7347int i;
7348_ACEOF
7349if ac_fn_c_try_compile "$LINENO"
7350then :
7351  xorg_cv_cc_flag_unused_command_line_argument=yes
7352else $as_nop
7353  xorg_cv_cc_flag_unused_command_line_argument=no
7354fi
7355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7356fi
7357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7358printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7359	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7360	CFLAGS="$xorg_testset_save_CFLAGS"
7361fi
7362
7363found="no"
7364
7365	if test $found = "no" ; then
7366		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7367			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7368		fi
7369
7370		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7371			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7372		fi
7373
7374		CFLAGS="$CFLAGS -Werror=nonnull"
7375
7376		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7377printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7378		cacheid=xorg_cv_cc_flag__Werror_nonnull
7379		if eval test \${$cacheid+y}
7380then :
7381  printf %s "(cached) " >&6
7382else $as_nop
7383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384/* end confdefs.h.  */
7385int i;
7386int
7387main (void)
7388{
7389
7390  ;
7391  return 0;
7392}
7393_ACEOF
7394if ac_fn_c_try_link "$LINENO"
7395then :
7396  eval $cacheid=yes
7397else $as_nop
7398  eval $cacheid=no
7399fi
7400rm -f core conftest.err conftest.$ac_objext conftest.beam \
7401    conftest$ac_exeext conftest.$ac_ext
7402fi
7403
7404
7405		CFLAGS="$xorg_testset_save_CFLAGS"
7406
7407		eval supported=\$$cacheid
7408		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7409printf "%s\n" "$supported" >&6; }
7410		if test "$supported" = "yes" ; then
7411			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7412			found="yes"
7413		fi
7414	fi
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430xorg_testset_save_CFLAGS="$CFLAGS"
7431
7432if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7433	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7434	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7435printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7436if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7437then :
7438  printf %s "(cached) " >&6
7439else $as_nop
7440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441/* end confdefs.h.  */
7442int i;
7443_ACEOF
7444if ac_fn_c_try_compile "$LINENO"
7445then :
7446  xorg_cv_cc_flag_unknown_warning_option=yes
7447else $as_nop
7448  xorg_cv_cc_flag_unknown_warning_option=no
7449fi
7450rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7451fi
7452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7453printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7454	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7455	CFLAGS="$xorg_testset_save_CFLAGS"
7456fi
7457
7458if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7459	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7460		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7461	fi
7462	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7463	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7464printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7465if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7466then :
7467  printf %s "(cached) " >&6
7468else $as_nop
7469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470/* end confdefs.h.  */
7471int i;
7472_ACEOF
7473if ac_fn_c_try_compile "$LINENO"
7474then :
7475  xorg_cv_cc_flag_unused_command_line_argument=yes
7476else $as_nop
7477  xorg_cv_cc_flag_unused_command_line_argument=no
7478fi
7479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7480fi
7481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7482printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7483	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7484	CFLAGS="$xorg_testset_save_CFLAGS"
7485fi
7486
7487found="no"
7488
7489	if test $found = "no" ; then
7490		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7491			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7492		fi
7493
7494		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7495			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7496		fi
7497
7498		CFLAGS="$CFLAGS -Werror=init-self"
7499
7500		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7501printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7502		cacheid=xorg_cv_cc_flag__Werror_init_self
7503		if eval test \${$cacheid+y}
7504then :
7505  printf %s "(cached) " >&6
7506else $as_nop
7507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508/* end confdefs.h.  */
7509int i;
7510int
7511main (void)
7512{
7513
7514  ;
7515  return 0;
7516}
7517_ACEOF
7518if ac_fn_c_try_link "$LINENO"
7519then :
7520  eval $cacheid=yes
7521else $as_nop
7522  eval $cacheid=no
7523fi
7524rm -f core conftest.err conftest.$ac_objext conftest.beam \
7525    conftest$ac_exeext conftest.$ac_ext
7526fi
7527
7528
7529		CFLAGS="$xorg_testset_save_CFLAGS"
7530
7531		eval supported=\$$cacheid
7532		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7533printf "%s\n" "$supported" >&6; }
7534		if test "$supported" = "yes" ; then
7535			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7536			found="yes"
7537		fi
7538	fi
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554xorg_testset_save_CFLAGS="$CFLAGS"
7555
7556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7557	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7558	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7559printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7560if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7561then :
7562  printf %s "(cached) " >&6
7563else $as_nop
7564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565/* end confdefs.h.  */
7566int i;
7567_ACEOF
7568if ac_fn_c_try_compile "$LINENO"
7569then :
7570  xorg_cv_cc_flag_unknown_warning_option=yes
7571else $as_nop
7572  xorg_cv_cc_flag_unknown_warning_option=no
7573fi
7574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7575fi
7576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7577printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7578	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7579	CFLAGS="$xorg_testset_save_CFLAGS"
7580fi
7581
7582if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7583	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7584		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7585	fi
7586	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7587	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7588printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7589if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7590then :
7591  printf %s "(cached) " >&6
7592else $as_nop
7593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594/* end confdefs.h.  */
7595int i;
7596_ACEOF
7597if ac_fn_c_try_compile "$LINENO"
7598then :
7599  xorg_cv_cc_flag_unused_command_line_argument=yes
7600else $as_nop
7601  xorg_cv_cc_flag_unused_command_line_argument=no
7602fi
7603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7604fi
7605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7606printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7607	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7608	CFLAGS="$xorg_testset_save_CFLAGS"
7609fi
7610
7611found="no"
7612
7613	if test $found = "no" ; then
7614		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7615			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7616		fi
7617
7618		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7619			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7620		fi
7621
7622		CFLAGS="$CFLAGS -Werror=main"
7623
7624		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7625printf %s "checking if $CC supports -Werror=main... " >&6; }
7626		cacheid=xorg_cv_cc_flag__Werror_main
7627		if eval test \${$cacheid+y}
7628then :
7629  printf %s "(cached) " >&6
7630else $as_nop
7631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632/* end confdefs.h.  */
7633int i;
7634int
7635main (void)
7636{
7637
7638  ;
7639  return 0;
7640}
7641_ACEOF
7642if ac_fn_c_try_link "$LINENO"
7643then :
7644  eval $cacheid=yes
7645else $as_nop
7646  eval $cacheid=no
7647fi
7648rm -f core conftest.err conftest.$ac_objext conftest.beam \
7649    conftest$ac_exeext conftest.$ac_ext
7650fi
7651
7652
7653		CFLAGS="$xorg_testset_save_CFLAGS"
7654
7655		eval supported=\$$cacheid
7656		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7657printf "%s\n" "$supported" >&6; }
7658		if test "$supported" = "yes" ; then
7659			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7660			found="yes"
7661		fi
7662	fi
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678xorg_testset_save_CFLAGS="$CFLAGS"
7679
7680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7681	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7682	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7683printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7684if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7685then :
7686  printf %s "(cached) " >&6
7687else $as_nop
7688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689/* end confdefs.h.  */
7690int i;
7691_ACEOF
7692if ac_fn_c_try_compile "$LINENO"
7693then :
7694  xorg_cv_cc_flag_unknown_warning_option=yes
7695else $as_nop
7696  xorg_cv_cc_flag_unknown_warning_option=no
7697fi
7698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7699fi
7700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7701printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7702	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7703	CFLAGS="$xorg_testset_save_CFLAGS"
7704fi
7705
7706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7707	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7708		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7709	fi
7710	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7711	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7712printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7713if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7714then :
7715  printf %s "(cached) " >&6
7716else $as_nop
7717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718/* end confdefs.h.  */
7719int i;
7720_ACEOF
7721if ac_fn_c_try_compile "$LINENO"
7722then :
7723  xorg_cv_cc_flag_unused_command_line_argument=yes
7724else $as_nop
7725  xorg_cv_cc_flag_unused_command_line_argument=no
7726fi
7727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7728fi
7729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7730printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7731	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7732	CFLAGS="$xorg_testset_save_CFLAGS"
7733fi
7734
7735found="no"
7736
7737	if test $found = "no" ; then
7738		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7739			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7740		fi
7741
7742		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7743			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7744		fi
7745
7746		CFLAGS="$CFLAGS -Werror=missing-braces"
7747
7748		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7749printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7750		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7751		if eval test \${$cacheid+y}
7752then :
7753  printf %s "(cached) " >&6
7754else $as_nop
7755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756/* end confdefs.h.  */
7757int i;
7758int
7759main (void)
7760{
7761
7762  ;
7763  return 0;
7764}
7765_ACEOF
7766if ac_fn_c_try_link "$LINENO"
7767then :
7768  eval $cacheid=yes
7769else $as_nop
7770  eval $cacheid=no
7771fi
7772rm -f core conftest.err conftest.$ac_objext conftest.beam \
7773    conftest$ac_exeext conftest.$ac_ext
7774fi
7775
7776
7777		CFLAGS="$xorg_testset_save_CFLAGS"
7778
7779		eval supported=\$$cacheid
7780		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7781printf "%s\n" "$supported" >&6; }
7782		if test "$supported" = "yes" ; then
7783			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7784			found="yes"
7785		fi
7786	fi
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802xorg_testset_save_CFLAGS="$CFLAGS"
7803
7804if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7805	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7806	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7807printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7808if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7809then :
7810  printf %s "(cached) " >&6
7811else $as_nop
7812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813/* end confdefs.h.  */
7814int i;
7815_ACEOF
7816if ac_fn_c_try_compile "$LINENO"
7817then :
7818  xorg_cv_cc_flag_unknown_warning_option=yes
7819else $as_nop
7820  xorg_cv_cc_flag_unknown_warning_option=no
7821fi
7822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7823fi
7824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7825printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7826	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7827	CFLAGS="$xorg_testset_save_CFLAGS"
7828fi
7829
7830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7831	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7832		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7833	fi
7834	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7835	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7836printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7837if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7838then :
7839  printf %s "(cached) " >&6
7840else $as_nop
7841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842/* end confdefs.h.  */
7843int i;
7844_ACEOF
7845if ac_fn_c_try_compile "$LINENO"
7846then :
7847  xorg_cv_cc_flag_unused_command_line_argument=yes
7848else $as_nop
7849  xorg_cv_cc_flag_unused_command_line_argument=no
7850fi
7851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7852fi
7853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7854printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7855	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7856	CFLAGS="$xorg_testset_save_CFLAGS"
7857fi
7858
7859found="no"
7860
7861	if test $found = "no" ; then
7862		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7863			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7864		fi
7865
7866		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7867			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7868		fi
7869
7870		CFLAGS="$CFLAGS -Werror=sequence-point"
7871
7872		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7873printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7874		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7875		if eval test \${$cacheid+y}
7876then :
7877  printf %s "(cached) " >&6
7878else $as_nop
7879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880/* end confdefs.h.  */
7881int i;
7882int
7883main (void)
7884{
7885
7886  ;
7887  return 0;
7888}
7889_ACEOF
7890if ac_fn_c_try_link "$LINENO"
7891then :
7892  eval $cacheid=yes
7893else $as_nop
7894  eval $cacheid=no
7895fi
7896rm -f core conftest.err conftest.$ac_objext conftest.beam \
7897    conftest$ac_exeext conftest.$ac_ext
7898fi
7899
7900
7901		CFLAGS="$xorg_testset_save_CFLAGS"
7902
7903		eval supported=\$$cacheid
7904		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7905printf "%s\n" "$supported" >&6; }
7906		if test "$supported" = "yes" ; then
7907			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7908			found="yes"
7909		fi
7910	fi
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926xorg_testset_save_CFLAGS="$CFLAGS"
7927
7928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7929	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7930	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7931printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7932if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7933then :
7934  printf %s "(cached) " >&6
7935else $as_nop
7936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937/* end confdefs.h.  */
7938int i;
7939_ACEOF
7940if ac_fn_c_try_compile "$LINENO"
7941then :
7942  xorg_cv_cc_flag_unknown_warning_option=yes
7943else $as_nop
7944  xorg_cv_cc_flag_unknown_warning_option=no
7945fi
7946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7947fi
7948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7949printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7950	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7951	CFLAGS="$xorg_testset_save_CFLAGS"
7952fi
7953
7954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7955	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7956		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7957	fi
7958	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7959	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7960printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7961if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7962then :
7963  printf %s "(cached) " >&6
7964else $as_nop
7965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966/* end confdefs.h.  */
7967int i;
7968_ACEOF
7969if ac_fn_c_try_compile "$LINENO"
7970then :
7971  xorg_cv_cc_flag_unused_command_line_argument=yes
7972else $as_nop
7973  xorg_cv_cc_flag_unused_command_line_argument=no
7974fi
7975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7976fi
7977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7978printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7979	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7980	CFLAGS="$xorg_testset_save_CFLAGS"
7981fi
7982
7983found="no"
7984
7985	if test $found = "no" ; then
7986		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7987			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7988		fi
7989
7990		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7991			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7992		fi
7993
7994		CFLAGS="$CFLAGS -Werror=return-type"
7995
7996		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7997printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7998		cacheid=xorg_cv_cc_flag__Werror_return_type
7999		if eval test \${$cacheid+y}
8000then :
8001  printf %s "(cached) " >&6
8002else $as_nop
8003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004/* end confdefs.h.  */
8005int i;
8006int
8007main (void)
8008{
8009
8010  ;
8011  return 0;
8012}
8013_ACEOF
8014if ac_fn_c_try_link "$LINENO"
8015then :
8016  eval $cacheid=yes
8017else $as_nop
8018  eval $cacheid=no
8019fi
8020rm -f core conftest.err conftest.$ac_objext conftest.beam \
8021    conftest$ac_exeext conftest.$ac_ext
8022fi
8023
8024
8025		CFLAGS="$xorg_testset_save_CFLAGS"
8026
8027		eval supported=\$$cacheid
8028		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8029printf "%s\n" "$supported" >&6; }
8030		if test "$supported" = "yes" ; then
8031			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8032			found="yes"
8033		fi
8034	fi
8035
8036	if test $found = "no" ; then
8037		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8038			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8039		fi
8040
8041		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8042			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8043		fi
8044
8045		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8046
8047		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8048printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8049		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8050		if eval test \${$cacheid+y}
8051then :
8052  printf %s "(cached) " >&6
8053else $as_nop
8054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8055/* end confdefs.h.  */
8056int i;
8057int
8058main (void)
8059{
8060
8061  ;
8062  return 0;
8063}
8064_ACEOF
8065if ac_fn_c_try_link "$LINENO"
8066then :
8067  eval $cacheid=yes
8068else $as_nop
8069  eval $cacheid=no
8070fi
8071rm -f core conftest.err conftest.$ac_objext conftest.beam \
8072    conftest$ac_exeext conftest.$ac_ext
8073fi
8074
8075
8076		CFLAGS="$xorg_testset_save_CFLAGS"
8077
8078		eval supported=\$$cacheid
8079		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8080printf "%s\n" "$supported" >&6; }
8081		if test "$supported" = "yes" ; then
8082			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8083			found="yes"
8084		fi
8085	fi
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101xorg_testset_save_CFLAGS="$CFLAGS"
8102
8103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8104	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8105	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8106printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8107if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8108then :
8109  printf %s "(cached) " >&6
8110else $as_nop
8111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112/* end confdefs.h.  */
8113int i;
8114_ACEOF
8115if ac_fn_c_try_compile "$LINENO"
8116then :
8117  xorg_cv_cc_flag_unknown_warning_option=yes
8118else $as_nop
8119  xorg_cv_cc_flag_unknown_warning_option=no
8120fi
8121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8122fi
8123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8124printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8125	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8126	CFLAGS="$xorg_testset_save_CFLAGS"
8127fi
8128
8129if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8130	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8131		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8132	fi
8133	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8134	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8135printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8136if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8137then :
8138  printf %s "(cached) " >&6
8139else $as_nop
8140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141/* end confdefs.h.  */
8142int i;
8143_ACEOF
8144if ac_fn_c_try_compile "$LINENO"
8145then :
8146  xorg_cv_cc_flag_unused_command_line_argument=yes
8147else $as_nop
8148  xorg_cv_cc_flag_unused_command_line_argument=no
8149fi
8150rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8151fi
8152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8153printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8154	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8155	CFLAGS="$xorg_testset_save_CFLAGS"
8156fi
8157
8158found="no"
8159
8160	if test $found = "no" ; then
8161		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8162			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8163		fi
8164
8165		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8166			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8167		fi
8168
8169		CFLAGS="$CFLAGS -Werror=trigraphs"
8170
8171		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8172printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8173		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8174		if eval test \${$cacheid+y}
8175then :
8176  printf %s "(cached) " >&6
8177else $as_nop
8178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179/* end confdefs.h.  */
8180int i;
8181int
8182main (void)
8183{
8184
8185  ;
8186  return 0;
8187}
8188_ACEOF
8189if ac_fn_c_try_link "$LINENO"
8190then :
8191  eval $cacheid=yes
8192else $as_nop
8193  eval $cacheid=no
8194fi
8195rm -f core conftest.err conftest.$ac_objext conftest.beam \
8196    conftest$ac_exeext conftest.$ac_ext
8197fi
8198
8199
8200		CFLAGS="$xorg_testset_save_CFLAGS"
8201
8202		eval supported=\$$cacheid
8203		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8204printf "%s\n" "$supported" >&6; }
8205		if test "$supported" = "yes" ; then
8206			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8207			found="yes"
8208		fi
8209	fi
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225xorg_testset_save_CFLAGS="$CFLAGS"
8226
8227if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8228	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8229	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8230printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8231if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8232then :
8233  printf %s "(cached) " >&6
8234else $as_nop
8235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236/* end confdefs.h.  */
8237int i;
8238_ACEOF
8239if ac_fn_c_try_compile "$LINENO"
8240then :
8241  xorg_cv_cc_flag_unknown_warning_option=yes
8242else $as_nop
8243  xorg_cv_cc_flag_unknown_warning_option=no
8244fi
8245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8246fi
8247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8248printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8249	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8250	CFLAGS="$xorg_testset_save_CFLAGS"
8251fi
8252
8253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8254	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8255		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8256	fi
8257	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8258	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8259printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8260if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8261then :
8262  printf %s "(cached) " >&6
8263else $as_nop
8264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265/* end confdefs.h.  */
8266int i;
8267_ACEOF
8268if ac_fn_c_try_compile "$LINENO"
8269then :
8270  xorg_cv_cc_flag_unused_command_line_argument=yes
8271else $as_nop
8272  xorg_cv_cc_flag_unused_command_line_argument=no
8273fi
8274rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8275fi
8276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8277printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8278	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8279	CFLAGS="$xorg_testset_save_CFLAGS"
8280fi
8281
8282found="no"
8283
8284	if test $found = "no" ; then
8285		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8286			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8287		fi
8288
8289		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8290			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8291		fi
8292
8293		CFLAGS="$CFLAGS -Werror=array-bounds"
8294
8295		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8296printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8297		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8298		if eval test \${$cacheid+y}
8299then :
8300  printf %s "(cached) " >&6
8301else $as_nop
8302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303/* end confdefs.h.  */
8304int i;
8305int
8306main (void)
8307{
8308
8309  ;
8310  return 0;
8311}
8312_ACEOF
8313if ac_fn_c_try_link "$LINENO"
8314then :
8315  eval $cacheid=yes
8316else $as_nop
8317  eval $cacheid=no
8318fi
8319rm -f core conftest.err conftest.$ac_objext conftest.beam \
8320    conftest$ac_exeext conftest.$ac_ext
8321fi
8322
8323
8324		CFLAGS="$xorg_testset_save_CFLAGS"
8325
8326		eval supported=\$$cacheid
8327		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8328printf "%s\n" "$supported" >&6; }
8329		if test "$supported" = "yes" ; then
8330			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8331			found="yes"
8332		fi
8333	fi
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349xorg_testset_save_CFLAGS="$CFLAGS"
8350
8351if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8352	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8353	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8354printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8355if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8356then :
8357  printf %s "(cached) " >&6
8358else $as_nop
8359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8360/* end confdefs.h.  */
8361int i;
8362_ACEOF
8363if ac_fn_c_try_compile "$LINENO"
8364then :
8365  xorg_cv_cc_flag_unknown_warning_option=yes
8366else $as_nop
8367  xorg_cv_cc_flag_unknown_warning_option=no
8368fi
8369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8370fi
8371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8372printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8373	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8374	CFLAGS="$xorg_testset_save_CFLAGS"
8375fi
8376
8377if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8378	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8379		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8380	fi
8381	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8382	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8383printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8384if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8385then :
8386  printf %s "(cached) " >&6
8387else $as_nop
8388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389/* end confdefs.h.  */
8390int i;
8391_ACEOF
8392if ac_fn_c_try_compile "$LINENO"
8393then :
8394  xorg_cv_cc_flag_unused_command_line_argument=yes
8395else $as_nop
8396  xorg_cv_cc_flag_unused_command_line_argument=no
8397fi
8398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8399fi
8400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8401printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8402	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8403	CFLAGS="$xorg_testset_save_CFLAGS"
8404fi
8405
8406found="no"
8407
8408	if test $found = "no" ; then
8409		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8410			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8411		fi
8412
8413		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8414			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8415		fi
8416
8417		CFLAGS="$CFLAGS -Werror=write-strings"
8418
8419		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8420printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8421		cacheid=xorg_cv_cc_flag__Werror_write_strings
8422		if eval test \${$cacheid+y}
8423then :
8424  printf %s "(cached) " >&6
8425else $as_nop
8426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427/* end confdefs.h.  */
8428int i;
8429int
8430main (void)
8431{
8432
8433  ;
8434  return 0;
8435}
8436_ACEOF
8437if ac_fn_c_try_link "$LINENO"
8438then :
8439  eval $cacheid=yes
8440else $as_nop
8441  eval $cacheid=no
8442fi
8443rm -f core conftest.err conftest.$ac_objext conftest.beam \
8444    conftest$ac_exeext conftest.$ac_ext
8445fi
8446
8447
8448		CFLAGS="$xorg_testset_save_CFLAGS"
8449
8450		eval supported=\$$cacheid
8451		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8452printf "%s\n" "$supported" >&6; }
8453		if test "$supported" = "yes" ; then
8454			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8455			found="yes"
8456		fi
8457	fi
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473xorg_testset_save_CFLAGS="$CFLAGS"
8474
8475if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8476	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8477	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8478printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8479if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8480then :
8481  printf %s "(cached) " >&6
8482else $as_nop
8483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484/* end confdefs.h.  */
8485int i;
8486_ACEOF
8487if ac_fn_c_try_compile "$LINENO"
8488then :
8489  xorg_cv_cc_flag_unknown_warning_option=yes
8490else $as_nop
8491  xorg_cv_cc_flag_unknown_warning_option=no
8492fi
8493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8494fi
8495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8496printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8497	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8498	CFLAGS="$xorg_testset_save_CFLAGS"
8499fi
8500
8501if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8502	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8503		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8504	fi
8505	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8506	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8507printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8508if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8509then :
8510  printf %s "(cached) " >&6
8511else $as_nop
8512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513/* end confdefs.h.  */
8514int i;
8515_ACEOF
8516if ac_fn_c_try_compile "$LINENO"
8517then :
8518  xorg_cv_cc_flag_unused_command_line_argument=yes
8519else $as_nop
8520  xorg_cv_cc_flag_unused_command_line_argument=no
8521fi
8522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8523fi
8524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8525printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8526	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8527	CFLAGS="$xorg_testset_save_CFLAGS"
8528fi
8529
8530found="no"
8531
8532	if test $found = "no" ; then
8533		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8534			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8535		fi
8536
8537		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8538			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8539		fi
8540
8541		CFLAGS="$CFLAGS -Werror=address"
8542
8543		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8544printf %s "checking if $CC supports -Werror=address... " >&6; }
8545		cacheid=xorg_cv_cc_flag__Werror_address
8546		if eval test \${$cacheid+y}
8547then :
8548  printf %s "(cached) " >&6
8549else $as_nop
8550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551/* end confdefs.h.  */
8552int i;
8553int
8554main (void)
8555{
8556
8557  ;
8558  return 0;
8559}
8560_ACEOF
8561if ac_fn_c_try_link "$LINENO"
8562then :
8563  eval $cacheid=yes
8564else $as_nop
8565  eval $cacheid=no
8566fi
8567rm -f core conftest.err conftest.$ac_objext conftest.beam \
8568    conftest$ac_exeext conftest.$ac_ext
8569fi
8570
8571
8572		CFLAGS="$xorg_testset_save_CFLAGS"
8573
8574		eval supported=\$$cacheid
8575		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8576printf "%s\n" "$supported" >&6; }
8577		if test "$supported" = "yes" ; then
8578			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8579			found="yes"
8580		fi
8581	fi
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597xorg_testset_save_CFLAGS="$CFLAGS"
8598
8599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8600	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8601	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8602printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8603if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8604then :
8605  printf %s "(cached) " >&6
8606else $as_nop
8607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608/* end confdefs.h.  */
8609int i;
8610_ACEOF
8611if ac_fn_c_try_compile "$LINENO"
8612then :
8613  xorg_cv_cc_flag_unknown_warning_option=yes
8614else $as_nop
8615  xorg_cv_cc_flag_unknown_warning_option=no
8616fi
8617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8618fi
8619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8620printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8621	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8622	CFLAGS="$xorg_testset_save_CFLAGS"
8623fi
8624
8625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8626	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8627		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8628	fi
8629	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8630	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8631printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8632if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8633then :
8634  printf %s "(cached) " >&6
8635else $as_nop
8636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637/* end confdefs.h.  */
8638int i;
8639_ACEOF
8640if ac_fn_c_try_compile "$LINENO"
8641then :
8642  xorg_cv_cc_flag_unused_command_line_argument=yes
8643else $as_nop
8644  xorg_cv_cc_flag_unused_command_line_argument=no
8645fi
8646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8647fi
8648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8649printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8650	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8651	CFLAGS="$xorg_testset_save_CFLAGS"
8652fi
8653
8654found="no"
8655
8656	if test $found = "no" ; then
8657		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8658			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8659		fi
8660
8661		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8662			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8663		fi
8664
8665		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8666
8667		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8668printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8669		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8670		if eval test \${$cacheid+y}
8671then :
8672  printf %s "(cached) " >&6
8673else $as_nop
8674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675/* end confdefs.h.  */
8676int i;
8677int
8678main (void)
8679{
8680
8681  ;
8682  return 0;
8683}
8684_ACEOF
8685if ac_fn_c_try_link "$LINENO"
8686then :
8687  eval $cacheid=yes
8688else $as_nop
8689  eval $cacheid=no
8690fi
8691rm -f core conftest.err conftest.$ac_objext conftest.beam \
8692    conftest$ac_exeext conftest.$ac_ext
8693fi
8694
8695
8696		CFLAGS="$xorg_testset_save_CFLAGS"
8697
8698		eval supported=\$$cacheid
8699		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8700printf "%s\n" "$supported" >&6; }
8701		if test "$supported" = "yes" ; then
8702			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8703			found="yes"
8704		fi
8705	fi
8706
8707	if test $found = "no" ; then
8708		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8709			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8710		fi
8711
8712		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8713			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8714		fi
8715
8716		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8717
8718		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8719printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8720		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8721		if eval test \${$cacheid+y}
8722then :
8723  printf %s "(cached) " >&6
8724else $as_nop
8725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726/* end confdefs.h.  */
8727int i;
8728int
8729main (void)
8730{
8731
8732  ;
8733  return 0;
8734}
8735_ACEOF
8736if ac_fn_c_try_link "$LINENO"
8737then :
8738  eval $cacheid=yes
8739else $as_nop
8740  eval $cacheid=no
8741fi
8742rm -f core conftest.err conftest.$ac_objext conftest.beam \
8743    conftest$ac_exeext conftest.$ac_ext
8744fi
8745
8746
8747		CFLAGS="$xorg_testset_save_CFLAGS"
8748
8749		eval supported=\$$cacheid
8750		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8751printf "%s\n" "$supported" >&6; }
8752		if test "$supported" = "yes" ; then
8753			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8754			found="yes"
8755		fi
8756	fi
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772xorg_testset_save_CFLAGS="$CFLAGS"
8773
8774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8775	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8776	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8777printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8778if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8779then :
8780  printf %s "(cached) " >&6
8781else $as_nop
8782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783/* end confdefs.h.  */
8784int i;
8785_ACEOF
8786if ac_fn_c_try_compile "$LINENO"
8787then :
8788  xorg_cv_cc_flag_unknown_warning_option=yes
8789else $as_nop
8790  xorg_cv_cc_flag_unknown_warning_option=no
8791fi
8792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8793fi
8794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8795printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8796	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8797	CFLAGS="$xorg_testset_save_CFLAGS"
8798fi
8799
8800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8801	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8802		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8803	fi
8804	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8805	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8806printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8807if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8808then :
8809  printf %s "(cached) " >&6
8810else $as_nop
8811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812/* end confdefs.h.  */
8813int i;
8814_ACEOF
8815if ac_fn_c_try_compile "$LINENO"
8816then :
8817  xorg_cv_cc_flag_unused_command_line_argument=yes
8818else $as_nop
8819  xorg_cv_cc_flag_unused_command_line_argument=no
8820fi
8821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8822fi
8823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8824printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8825	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8826	CFLAGS="$xorg_testset_save_CFLAGS"
8827fi
8828
8829found="no"
8830
8831	if test $found = "no" ; then
8832		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8833			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8834		fi
8835
8836		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8837			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8838		fi
8839
8840		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8841
8842		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8843printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8844		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8845		if eval test \${$cacheid+y}
8846then :
8847  printf %s "(cached) " >&6
8848else $as_nop
8849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850/* end confdefs.h.  */
8851int i;
8852int
8853main (void)
8854{
8855
8856  ;
8857  return 0;
8858}
8859_ACEOF
8860if ac_fn_c_try_link "$LINENO"
8861then :
8862  eval $cacheid=yes
8863else $as_nop
8864  eval $cacheid=no
8865fi
8866rm -f core conftest.err conftest.$ac_objext conftest.beam \
8867    conftest$ac_exeext conftest.$ac_ext
8868fi
8869
8870
8871		CFLAGS="$xorg_testset_save_CFLAGS"
8872
8873		eval supported=\$$cacheid
8874		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8875printf "%s\n" "$supported" >&6; }
8876		if test "$supported" = "yes" ; then
8877			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8878			found="yes"
8879		fi
8880	fi
8881
8882 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8883else
8884{ 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
8885printf "%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;}
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899xorg_testset_save_CFLAGS="$CFLAGS"
8900
8901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8902	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8903	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8904printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8905if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8906then :
8907  printf %s "(cached) " >&6
8908else $as_nop
8909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910/* end confdefs.h.  */
8911int i;
8912_ACEOF
8913if ac_fn_c_try_compile "$LINENO"
8914then :
8915  xorg_cv_cc_flag_unknown_warning_option=yes
8916else $as_nop
8917  xorg_cv_cc_flag_unknown_warning_option=no
8918fi
8919rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8920fi
8921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8922printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8923	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8924	CFLAGS="$xorg_testset_save_CFLAGS"
8925fi
8926
8927if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8928	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8929		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8930	fi
8931	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8932	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8933printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8934if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8935then :
8936  printf %s "(cached) " >&6
8937else $as_nop
8938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939/* end confdefs.h.  */
8940int i;
8941_ACEOF
8942if ac_fn_c_try_compile "$LINENO"
8943then :
8944  xorg_cv_cc_flag_unused_command_line_argument=yes
8945else $as_nop
8946  xorg_cv_cc_flag_unused_command_line_argument=no
8947fi
8948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8949fi
8950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8951printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8952	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8953	CFLAGS="$xorg_testset_save_CFLAGS"
8954fi
8955
8956found="no"
8957
8958	if test $found = "no" ; then
8959		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8960			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8961		fi
8962
8963		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8964			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8965		fi
8966
8967		CFLAGS="$CFLAGS -Wimplicit"
8968
8969		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8970printf %s "checking if $CC supports -Wimplicit... " >&6; }
8971		cacheid=xorg_cv_cc_flag__Wimplicit
8972		if eval test \${$cacheid+y}
8973then :
8974  printf %s "(cached) " >&6
8975else $as_nop
8976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977/* end confdefs.h.  */
8978int i;
8979int
8980main (void)
8981{
8982
8983  ;
8984  return 0;
8985}
8986_ACEOF
8987if ac_fn_c_try_link "$LINENO"
8988then :
8989  eval $cacheid=yes
8990else $as_nop
8991  eval $cacheid=no
8992fi
8993rm -f core conftest.err conftest.$ac_objext conftest.beam \
8994    conftest$ac_exeext conftest.$ac_ext
8995fi
8996
8997
8998		CFLAGS="$xorg_testset_save_CFLAGS"
8999
9000		eval supported=\$$cacheid
9001		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9002printf "%s\n" "$supported" >&6; }
9003		if test "$supported" = "yes" ; then
9004			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9005			found="yes"
9006		fi
9007	fi
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023xorg_testset_save_CFLAGS="$CFLAGS"
9024
9025if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9026	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9027	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9028printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9029if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9030then :
9031  printf %s "(cached) " >&6
9032else $as_nop
9033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034/* end confdefs.h.  */
9035int i;
9036_ACEOF
9037if ac_fn_c_try_compile "$LINENO"
9038then :
9039  xorg_cv_cc_flag_unknown_warning_option=yes
9040else $as_nop
9041  xorg_cv_cc_flag_unknown_warning_option=no
9042fi
9043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9044fi
9045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9046printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9047	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9048	CFLAGS="$xorg_testset_save_CFLAGS"
9049fi
9050
9051if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9052	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9053		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9054	fi
9055	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9056	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9057printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9058if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9059then :
9060  printf %s "(cached) " >&6
9061else $as_nop
9062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063/* end confdefs.h.  */
9064int i;
9065_ACEOF
9066if ac_fn_c_try_compile "$LINENO"
9067then :
9068  xorg_cv_cc_flag_unused_command_line_argument=yes
9069else $as_nop
9070  xorg_cv_cc_flag_unused_command_line_argument=no
9071fi
9072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9073fi
9074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9075printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9076	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9077	CFLAGS="$xorg_testset_save_CFLAGS"
9078fi
9079
9080found="no"
9081
9082	if test $found = "no" ; then
9083		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9084			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9085		fi
9086
9087		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9088			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9089		fi
9090
9091		CFLAGS="$CFLAGS -Wnonnull"
9092
9093		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9094printf %s "checking if $CC supports -Wnonnull... " >&6; }
9095		cacheid=xorg_cv_cc_flag__Wnonnull
9096		if eval test \${$cacheid+y}
9097then :
9098  printf %s "(cached) " >&6
9099else $as_nop
9100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101/* end confdefs.h.  */
9102int i;
9103int
9104main (void)
9105{
9106
9107  ;
9108  return 0;
9109}
9110_ACEOF
9111if ac_fn_c_try_link "$LINENO"
9112then :
9113  eval $cacheid=yes
9114else $as_nop
9115  eval $cacheid=no
9116fi
9117rm -f core conftest.err conftest.$ac_objext conftest.beam \
9118    conftest$ac_exeext conftest.$ac_ext
9119fi
9120
9121
9122		CFLAGS="$xorg_testset_save_CFLAGS"
9123
9124		eval supported=\$$cacheid
9125		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9126printf "%s\n" "$supported" >&6; }
9127		if test "$supported" = "yes" ; then
9128			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9129			found="yes"
9130		fi
9131	fi
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147xorg_testset_save_CFLAGS="$CFLAGS"
9148
9149if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9150	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9151	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9152printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9153if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9154then :
9155  printf %s "(cached) " >&6
9156else $as_nop
9157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158/* end confdefs.h.  */
9159int i;
9160_ACEOF
9161if ac_fn_c_try_compile "$LINENO"
9162then :
9163  xorg_cv_cc_flag_unknown_warning_option=yes
9164else $as_nop
9165  xorg_cv_cc_flag_unknown_warning_option=no
9166fi
9167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9168fi
9169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9170printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9171	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9172	CFLAGS="$xorg_testset_save_CFLAGS"
9173fi
9174
9175if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9176	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9177		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9178	fi
9179	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9180	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9181printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9182if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9183then :
9184  printf %s "(cached) " >&6
9185else $as_nop
9186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187/* end confdefs.h.  */
9188int i;
9189_ACEOF
9190if ac_fn_c_try_compile "$LINENO"
9191then :
9192  xorg_cv_cc_flag_unused_command_line_argument=yes
9193else $as_nop
9194  xorg_cv_cc_flag_unused_command_line_argument=no
9195fi
9196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9197fi
9198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9199printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9200	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9201	CFLAGS="$xorg_testset_save_CFLAGS"
9202fi
9203
9204found="no"
9205
9206	if test $found = "no" ; then
9207		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9208			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9209		fi
9210
9211		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9212			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9213		fi
9214
9215		CFLAGS="$CFLAGS -Winit-self"
9216
9217		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9218printf %s "checking if $CC supports -Winit-self... " >&6; }
9219		cacheid=xorg_cv_cc_flag__Winit_self
9220		if eval test \${$cacheid+y}
9221then :
9222  printf %s "(cached) " >&6
9223else $as_nop
9224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225/* end confdefs.h.  */
9226int i;
9227int
9228main (void)
9229{
9230
9231  ;
9232  return 0;
9233}
9234_ACEOF
9235if ac_fn_c_try_link "$LINENO"
9236then :
9237  eval $cacheid=yes
9238else $as_nop
9239  eval $cacheid=no
9240fi
9241rm -f core conftest.err conftest.$ac_objext conftest.beam \
9242    conftest$ac_exeext conftest.$ac_ext
9243fi
9244
9245
9246		CFLAGS="$xorg_testset_save_CFLAGS"
9247
9248		eval supported=\$$cacheid
9249		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9250printf "%s\n" "$supported" >&6; }
9251		if test "$supported" = "yes" ; then
9252			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9253			found="yes"
9254		fi
9255	fi
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271xorg_testset_save_CFLAGS="$CFLAGS"
9272
9273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9274	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9275	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9276printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9277if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9278then :
9279  printf %s "(cached) " >&6
9280else $as_nop
9281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282/* end confdefs.h.  */
9283int i;
9284_ACEOF
9285if ac_fn_c_try_compile "$LINENO"
9286then :
9287  xorg_cv_cc_flag_unknown_warning_option=yes
9288else $as_nop
9289  xorg_cv_cc_flag_unknown_warning_option=no
9290fi
9291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9292fi
9293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9294printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9295	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9296	CFLAGS="$xorg_testset_save_CFLAGS"
9297fi
9298
9299if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9300	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9301		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9302	fi
9303	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9304	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9305printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9306if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9307then :
9308  printf %s "(cached) " >&6
9309else $as_nop
9310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9311/* end confdefs.h.  */
9312int i;
9313_ACEOF
9314if ac_fn_c_try_compile "$LINENO"
9315then :
9316  xorg_cv_cc_flag_unused_command_line_argument=yes
9317else $as_nop
9318  xorg_cv_cc_flag_unused_command_line_argument=no
9319fi
9320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9321fi
9322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9323printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9324	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9325	CFLAGS="$xorg_testset_save_CFLAGS"
9326fi
9327
9328found="no"
9329
9330	if test $found = "no" ; then
9331		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9332			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9333		fi
9334
9335		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9336			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9337		fi
9338
9339		CFLAGS="$CFLAGS -Wmain"
9340
9341		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9342printf %s "checking if $CC supports -Wmain... " >&6; }
9343		cacheid=xorg_cv_cc_flag__Wmain
9344		if eval test \${$cacheid+y}
9345then :
9346  printf %s "(cached) " >&6
9347else $as_nop
9348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349/* end confdefs.h.  */
9350int i;
9351int
9352main (void)
9353{
9354
9355  ;
9356  return 0;
9357}
9358_ACEOF
9359if ac_fn_c_try_link "$LINENO"
9360then :
9361  eval $cacheid=yes
9362else $as_nop
9363  eval $cacheid=no
9364fi
9365rm -f core conftest.err conftest.$ac_objext conftest.beam \
9366    conftest$ac_exeext conftest.$ac_ext
9367fi
9368
9369
9370		CFLAGS="$xorg_testset_save_CFLAGS"
9371
9372		eval supported=\$$cacheid
9373		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9374printf "%s\n" "$supported" >&6; }
9375		if test "$supported" = "yes" ; then
9376			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9377			found="yes"
9378		fi
9379	fi
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395xorg_testset_save_CFLAGS="$CFLAGS"
9396
9397if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9398	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9399	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9400printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9401if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9402then :
9403  printf %s "(cached) " >&6
9404else $as_nop
9405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9406/* end confdefs.h.  */
9407int i;
9408_ACEOF
9409if ac_fn_c_try_compile "$LINENO"
9410then :
9411  xorg_cv_cc_flag_unknown_warning_option=yes
9412else $as_nop
9413  xorg_cv_cc_flag_unknown_warning_option=no
9414fi
9415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9416fi
9417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9418printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9419	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9420	CFLAGS="$xorg_testset_save_CFLAGS"
9421fi
9422
9423if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9424	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9425		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9426	fi
9427	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9428	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9429printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9430if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9431then :
9432  printf %s "(cached) " >&6
9433else $as_nop
9434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9435/* end confdefs.h.  */
9436int i;
9437_ACEOF
9438if ac_fn_c_try_compile "$LINENO"
9439then :
9440  xorg_cv_cc_flag_unused_command_line_argument=yes
9441else $as_nop
9442  xorg_cv_cc_flag_unused_command_line_argument=no
9443fi
9444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9445fi
9446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9447printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9448	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9449	CFLAGS="$xorg_testset_save_CFLAGS"
9450fi
9451
9452found="no"
9453
9454	if test $found = "no" ; then
9455		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9456			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9457		fi
9458
9459		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9460			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9461		fi
9462
9463		CFLAGS="$CFLAGS -Wmissing-braces"
9464
9465		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9466printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9467		cacheid=xorg_cv_cc_flag__Wmissing_braces
9468		if eval test \${$cacheid+y}
9469then :
9470  printf %s "(cached) " >&6
9471else $as_nop
9472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473/* end confdefs.h.  */
9474int i;
9475int
9476main (void)
9477{
9478
9479  ;
9480  return 0;
9481}
9482_ACEOF
9483if ac_fn_c_try_link "$LINENO"
9484then :
9485  eval $cacheid=yes
9486else $as_nop
9487  eval $cacheid=no
9488fi
9489rm -f core conftest.err conftest.$ac_objext conftest.beam \
9490    conftest$ac_exeext conftest.$ac_ext
9491fi
9492
9493
9494		CFLAGS="$xorg_testset_save_CFLAGS"
9495
9496		eval supported=\$$cacheid
9497		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9498printf "%s\n" "$supported" >&6; }
9499		if test "$supported" = "yes" ; then
9500			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9501			found="yes"
9502		fi
9503	fi
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519xorg_testset_save_CFLAGS="$CFLAGS"
9520
9521if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9522	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9523	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9524printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9525if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9526then :
9527  printf %s "(cached) " >&6
9528else $as_nop
9529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530/* end confdefs.h.  */
9531int i;
9532_ACEOF
9533if ac_fn_c_try_compile "$LINENO"
9534then :
9535  xorg_cv_cc_flag_unknown_warning_option=yes
9536else $as_nop
9537  xorg_cv_cc_flag_unknown_warning_option=no
9538fi
9539rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9540fi
9541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9542printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9543	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9544	CFLAGS="$xorg_testset_save_CFLAGS"
9545fi
9546
9547if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9548	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9549		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9550	fi
9551	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9552	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9553printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9554if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9555then :
9556  printf %s "(cached) " >&6
9557else $as_nop
9558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559/* end confdefs.h.  */
9560int i;
9561_ACEOF
9562if ac_fn_c_try_compile "$LINENO"
9563then :
9564  xorg_cv_cc_flag_unused_command_line_argument=yes
9565else $as_nop
9566  xorg_cv_cc_flag_unused_command_line_argument=no
9567fi
9568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9569fi
9570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9571printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9572	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9573	CFLAGS="$xorg_testset_save_CFLAGS"
9574fi
9575
9576found="no"
9577
9578	if test $found = "no" ; then
9579		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9580			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9581		fi
9582
9583		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9584			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9585		fi
9586
9587		CFLAGS="$CFLAGS -Wsequence-point"
9588
9589		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9590printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9591		cacheid=xorg_cv_cc_flag__Wsequence_point
9592		if eval test \${$cacheid+y}
9593then :
9594  printf %s "(cached) " >&6
9595else $as_nop
9596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597/* end confdefs.h.  */
9598int i;
9599int
9600main (void)
9601{
9602
9603  ;
9604  return 0;
9605}
9606_ACEOF
9607if ac_fn_c_try_link "$LINENO"
9608then :
9609  eval $cacheid=yes
9610else $as_nop
9611  eval $cacheid=no
9612fi
9613rm -f core conftest.err conftest.$ac_objext conftest.beam \
9614    conftest$ac_exeext conftest.$ac_ext
9615fi
9616
9617
9618		CFLAGS="$xorg_testset_save_CFLAGS"
9619
9620		eval supported=\$$cacheid
9621		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9622printf "%s\n" "$supported" >&6; }
9623		if test "$supported" = "yes" ; then
9624			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9625			found="yes"
9626		fi
9627	fi
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643xorg_testset_save_CFLAGS="$CFLAGS"
9644
9645if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9646	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9647	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9648printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9649if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9650then :
9651  printf %s "(cached) " >&6
9652else $as_nop
9653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654/* end confdefs.h.  */
9655int i;
9656_ACEOF
9657if ac_fn_c_try_compile "$LINENO"
9658then :
9659  xorg_cv_cc_flag_unknown_warning_option=yes
9660else $as_nop
9661  xorg_cv_cc_flag_unknown_warning_option=no
9662fi
9663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9664fi
9665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9666printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9667	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9668	CFLAGS="$xorg_testset_save_CFLAGS"
9669fi
9670
9671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9672	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9673		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9674	fi
9675	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9676	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9677printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9678if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9679then :
9680  printf %s "(cached) " >&6
9681else $as_nop
9682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9683/* end confdefs.h.  */
9684int i;
9685_ACEOF
9686if ac_fn_c_try_compile "$LINENO"
9687then :
9688  xorg_cv_cc_flag_unused_command_line_argument=yes
9689else $as_nop
9690  xorg_cv_cc_flag_unused_command_line_argument=no
9691fi
9692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9693fi
9694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9695printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9696	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9697	CFLAGS="$xorg_testset_save_CFLAGS"
9698fi
9699
9700found="no"
9701
9702	if test $found = "no" ; then
9703		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9704			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9705		fi
9706
9707		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9708			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9709		fi
9710
9711		CFLAGS="$CFLAGS -Wreturn-type"
9712
9713		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9714printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9715		cacheid=xorg_cv_cc_flag__Wreturn_type
9716		if eval test \${$cacheid+y}
9717then :
9718  printf %s "(cached) " >&6
9719else $as_nop
9720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721/* end confdefs.h.  */
9722int i;
9723int
9724main (void)
9725{
9726
9727  ;
9728  return 0;
9729}
9730_ACEOF
9731if ac_fn_c_try_link "$LINENO"
9732then :
9733  eval $cacheid=yes
9734else $as_nop
9735  eval $cacheid=no
9736fi
9737rm -f core conftest.err conftest.$ac_objext conftest.beam \
9738    conftest$ac_exeext conftest.$ac_ext
9739fi
9740
9741
9742		CFLAGS="$xorg_testset_save_CFLAGS"
9743
9744		eval supported=\$$cacheid
9745		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9746printf "%s\n" "$supported" >&6; }
9747		if test "$supported" = "yes" ; then
9748			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9749			found="yes"
9750		fi
9751	fi
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767xorg_testset_save_CFLAGS="$CFLAGS"
9768
9769if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9770	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9771	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9772printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9773if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9774then :
9775  printf %s "(cached) " >&6
9776else $as_nop
9777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778/* end confdefs.h.  */
9779int i;
9780_ACEOF
9781if ac_fn_c_try_compile "$LINENO"
9782then :
9783  xorg_cv_cc_flag_unknown_warning_option=yes
9784else $as_nop
9785  xorg_cv_cc_flag_unknown_warning_option=no
9786fi
9787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9788fi
9789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9790printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9791	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9792	CFLAGS="$xorg_testset_save_CFLAGS"
9793fi
9794
9795if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9796	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9797		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9798	fi
9799	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9800	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9801printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9802if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9803then :
9804  printf %s "(cached) " >&6
9805else $as_nop
9806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9807/* end confdefs.h.  */
9808int i;
9809_ACEOF
9810if ac_fn_c_try_compile "$LINENO"
9811then :
9812  xorg_cv_cc_flag_unused_command_line_argument=yes
9813else $as_nop
9814  xorg_cv_cc_flag_unused_command_line_argument=no
9815fi
9816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9817fi
9818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9819printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9820	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9821	CFLAGS="$xorg_testset_save_CFLAGS"
9822fi
9823
9824found="no"
9825
9826	if test $found = "no" ; then
9827		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9828			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9829		fi
9830
9831		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9832			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9833		fi
9834
9835		CFLAGS="$CFLAGS -Wtrigraphs"
9836
9837		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9838printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9839		cacheid=xorg_cv_cc_flag__Wtrigraphs
9840		if eval test \${$cacheid+y}
9841then :
9842  printf %s "(cached) " >&6
9843else $as_nop
9844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845/* end confdefs.h.  */
9846int i;
9847int
9848main (void)
9849{
9850
9851  ;
9852  return 0;
9853}
9854_ACEOF
9855if ac_fn_c_try_link "$LINENO"
9856then :
9857  eval $cacheid=yes
9858else $as_nop
9859  eval $cacheid=no
9860fi
9861rm -f core conftest.err conftest.$ac_objext conftest.beam \
9862    conftest$ac_exeext conftest.$ac_ext
9863fi
9864
9865
9866		CFLAGS="$xorg_testset_save_CFLAGS"
9867
9868		eval supported=\$$cacheid
9869		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9870printf "%s\n" "$supported" >&6; }
9871		if test "$supported" = "yes" ; then
9872			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9873			found="yes"
9874		fi
9875	fi
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891xorg_testset_save_CFLAGS="$CFLAGS"
9892
9893if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9894	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9895	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9896printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9897if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9898then :
9899  printf %s "(cached) " >&6
9900else $as_nop
9901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902/* end confdefs.h.  */
9903int i;
9904_ACEOF
9905if ac_fn_c_try_compile "$LINENO"
9906then :
9907  xorg_cv_cc_flag_unknown_warning_option=yes
9908else $as_nop
9909  xorg_cv_cc_flag_unknown_warning_option=no
9910fi
9911rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9912fi
9913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9914printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9915	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9916	CFLAGS="$xorg_testset_save_CFLAGS"
9917fi
9918
9919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9920	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9921		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9922	fi
9923	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9924	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9925printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9926if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9927then :
9928  printf %s "(cached) " >&6
9929else $as_nop
9930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931/* end confdefs.h.  */
9932int i;
9933_ACEOF
9934if ac_fn_c_try_compile "$LINENO"
9935then :
9936  xorg_cv_cc_flag_unused_command_line_argument=yes
9937else $as_nop
9938  xorg_cv_cc_flag_unused_command_line_argument=no
9939fi
9940rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9941fi
9942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9943printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9944	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9945	CFLAGS="$xorg_testset_save_CFLAGS"
9946fi
9947
9948found="no"
9949
9950	if test $found = "no" ; then
9951		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9952			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9953		fi
9954
9955		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9956			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9957		fi
9958
9959		CFLAGS="$CFLAGS -Warray-bounds"
9960
9961		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9962printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9963		cacheid=xorg_cv_cc_flag__Warray_bounds
9964		if eval test \${$cacheid+y}
9965then :
9966  printf %s "(cached) " >&6
9967else $as_nop
9968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9969/* end confdefs.h.  */
9970int i;
9971int
9972main (void)
9973{
9974
9975  ;
9976  return 0;
9977}
9978_ACEOF
9979if ac_fn_c_try_link "$LINENO"
9980then :
9981  eval $cacheid=yes
9982else $as_nop
9983  eval $cacheid=no
9984fi
9985rm -f core conftest.err conftest.$ac_objext conftest.beam \
9986    conftest$ac_exeext conftest.$ac_ext
9987fi
9988
9989
9990		CFLAGS="$xorg_testset_save_CFLAGS"
9991
9992		eval supported=\$$cacheid
9993		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9994printf "%s\n" "$supported" >&6; }
9995		if test "$supported" = "yes" ; then
9996			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9997			found="yes"
9998		fi
9999	fi
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015xorg_testset_save_CFLAGS="$CFLAGS"
10016
10017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10018	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10019	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10020printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10021if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10022then :
10023  printf %s "(cached) " >&6
10024else $as_nop
10025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026/* end confdefs.h.  */
10027int i;
10028_ACEOF
10029if ac_fn_c_try_compile "$LINENO"
10030then :
10031  xorg_cv_cc_flag_unknown_warning_option=yes
10032else $as_nop
10033  xorg_cv_cc_flag_unknown_warning_option=no
10034fi
10035rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10036fi
10037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10038printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10039	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10040	CFLAGS="$xorg_testset_save_CFLAGS"
10041fi
10042
10043if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10044	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10045		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10046	fi
10047	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10048	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10049printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10050if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10051then :
10052  printf %s "(cached) " >&6
10053else $as_nop
10054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055/* end confdefs.h.  */
10056int i;
10057_ACEOF
10058if ac_fn_c_try_compile "$LINENO"
10059then :
10060  xorg_cv_cc_flag_unused_command_line_argument=yes
10061else $as_nop
10062  xorg_cv_cc_flag_unused_command_line_argument=no
10063fi
10064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10065fi
10066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10067printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10068	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10069	CFLAGS="$xorg_testset_save_CFLAGS"
10070fi
10071
10072found="no"
10073
10074	if test $found = "no" ; then
10075		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10076			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10077		fi
10078
10079		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10080			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10081		fi
10082
10083		CFLAGS="$CFLAGS -Wwrite-strings"
10084
10085		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10086printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10087		cacheid=xorg_cv_cc_flag__Wwrite_strings
10088		if eval test \${$cacheid+y}
10089then :
10090  printf %s "(cached) " >&6
10091else $as_nop
10092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10093/* end confdefs.h.  */
10094int i;
10095int
10096main (void)
10097{
10098
10099  ;
10100  return 0;
10101}
10102_ACEOF
10103if ac_fn_c_try_link "$LINENO"
10104then :
10105  eval $cacheid=yes
10106else $as_nop
10107  eval $cacheid=no
10108fi
10109rm -f core conftest.err conftest.$ac_objext conftest.beam \
10110    conftest$ac_exeext conftest.$ac_ext
10111fi
10112
10113
10114		CFLAGS="$xorg_testset_save_CFLAGS"
10115
10116		eval supported=\$$cacheid
10117		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10118printf "%s\n" "$supported" >&6; }
10119		if test "$supported" = "yes" ; then
10120			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10121			found="yes"
10122		fi
10123	fi
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139xorg_testset_save_CFLAGS="$CFLAGS"
10140
10141if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10142	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10143	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10144printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10145if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10146then :
10147  printf %s "(cached) " >&6
10148else $as_nop
10149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150/* end confdefs.h.  */
10151int i;
10152_ACEOF
10153if ac_fn_c_try_compile "$LINENO"
10154then :
10155  xorg_cv_cc_flag_unknown_warning_option=yes
10156else $as_nop
10157  xorg_cv_cc_flag_unknown_warning_option=no
10158fi
10159rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10160fi
10161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10162printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10163	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10164	CFLAGS="$xorg_testset_save_CFLAGS"
10165fi
10166
10167if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10168	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10169		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10170	fi
10171	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10172	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10173printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10174if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10175then :
10176  printf %s "(cached) " >&6
10177else $as_nop
10178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10179/* end confdefs.h.  */
10180int i;
10181_ACEOF
10182if ac_fn_c_try_compile "$LINENO"
10183then :
10184  xorg_cv_cc_flag_unused_command_line_argument=yes
10185else $as_nop
10186  xorg_cv_cc_flag_unused_command_line_argument=no
10187fi
10188rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10189fi
10190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10191printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10192	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10193	CFLAGS="$xorg_testset_save_CFLAGS"
10194fi
10195
10196found="no"
10197
10198	if test $found = "no" ; then
10199		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10200			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10201		fi
10202
10203		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10204			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10205		fi
10206
10207		CFLAGS="$CFLAGS -Waddress"
10208
10209		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10210printf %s "checking if $CC supports -Waddress... " >&6; }
10211		cacheid=xorg_cv_cc_flag__Waddress
10212		if eval test \${$cacheid+y}
10213then :
10214  printf %s "(cached) " >&6
10215else $as_nop
10216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217/* end confdefs.h.  */
10218int i;
10219int
10220main (void)
10221{
10222
10223  ;
10224  return 0;
10225}
10226_ACEOF
10227if ac_fn_c_try_link "$LINENO"
10228then :
10229  eval $cacheid=yes
10230else $as_nop
10231  eval $cacheid=no
10232fi
10233rm -f core conftest.err conftest.$ac_objext conftest.beam \
10234    conftest$ac_exeext conftest.$ac_ext
10235fi
10236
10237
10238		CFLAGS="$xorg_testset_save_CFLAGS"
10239
10240		eval supported=\$$cacheid
10241		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10242printf "%s\n" "$supported" >&6; }
10243		if test "$supported" = "yes" ; then
10244			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10245			found="yes"
10246		fi
10247	fi
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263xorg_testset_save_CFLAGS="$CFLAGS"
10264
10265if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10266	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10267	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10268printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10269if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10270then :
10271  printf %s "(cached) " >&6
10272else $as_nop
10273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274/* end confdefs.h.  */
10275int i;
10276_ACEOF
10277if ac_fn_c_try_compile "$LINENO"
10278then :
10279  xorg_cv_cc_flag_unknown_warning_option=yes
10280else $as_nop
10281  xorg_cv_cc_flag_unknown_warning_option=no
10282fi
10283rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10284fi
10285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10286printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10287	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10288	CFLAGS="$xorg_testset_save_CFLAGS"
10289fi
10290
10291if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10292	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10293		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10294	fi
10295	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10296	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10297printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10298if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10299then :
10300  printf %s "(cached) " >&6
10301else $as_nop
10302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303/* end confdefs.h.  */
10304int i;
10305_ACEOF
10306if ac_fn_c_try_compile "$LINENO"
10307then :
10308  xorg_cv_cc_flag_unused_command_line_argument=yes
10309else $as_nop
10310  xorg_cv_cc_flag_unused_command_line_argument=no
10311fi
10312rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10313fi
10314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10315printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10316	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10317	CFLAGS="$xorg_testset_save_CFLAGS"
10318fi
10319
10320found="no"
10321
10322	if test $found = "no" ; then
10323		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10324			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10325		fi
10326
10327		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10328			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10329		fi
10330
10331		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10332
10333		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10334printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10335		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10336		if eval test \${$cacheid+y}
10337then :
10338  printf %s "(cached) " >&6
10339else $as_nop
10340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10341/* end confdefs.h.  */
10342int i;
10343int
10344main (void)
10345{
10346
10347  ;
10348  return 0;
10349}
10350_ACEOF
10351if ac_fn_c_try_link "$LINENO"
10352then :
10353  eval $cacheid=yes
10354else $as_nop
10355  eval $cacheid=no
10356fi
10357rm -f core conftest.err conftest.$ac_objext conftest.beam \
10358    conftest$ac_exeext conftest.$ac_ext
10359fi
10360
10361
10362		CFLAGS="$xorg_testset_save_CFLAGS"
10363
10364		eval supported=\$$cacheid
10365		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10366printf "%s\n" "$supported" >&6; }
10367		if test "$supported" = "yes" ; then
10368			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10369			found="yes"
10370		fi
10371	fi
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387xorg_testset_save_CFLAGS="$CFLAGS"
10388
10389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10390	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10391	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10392printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10393if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10394then :
10395  printf %s "(cached) " >&6
10396else $as_nop
10397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398/* end confdefs.h.  */
10399int i;
10400_ACEOF
10401if ac_fn_c_try_compile "$LINENO"
10402then :
10403  xorg_cv_cc_flag_unknown_warning_option=yes
10404else $as_nop
10405  xorg_cv_cc_flag_unknown_warning_option=no
10406fi
10407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10408fi
10409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10410printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10411	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10412	CFLAGS="$xorg_testset_save_CFLAGS"
10413fi
10414
10415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10416	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10417		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10418	fi
10419	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10420	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10421printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10422if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10423then :
10424  printf %s "(cached) " >&6
10425else $as_nop
10426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427/* end confdefs.h.  */
10428int i;
10429_ACEOF
10430if ac_fn_c_try_compile "$LINENO"
10431then :
10432  xorg_cv_cc_flag_unused_command_line_argument=yes
10433else $as_nop
10434  xorg_cv_cc_flag_unused_command_line_argument=no
10435fi
10436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10437fi
10438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10439printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10440	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10441	CFLAGS="$xorg_testset_save_CFLAGS"
10442fi
10443
10444found="no"
10445
10446	if test $found = "no" ; then
10447		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10448			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10449		fi
10450
10451		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10452			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10453		fi
10454
10455		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10456
10457		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10458printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10459		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10460		if eval test \${$cacheid+y}
10461then :
10462  printf %s "(cached) " >&6
10463else $as_nop
10464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465/* end confdefs.h.  */
10466int i;
10467int
10468main (void)
10469{
10470
10471  ;
10472  return 0;
10473}
10474_ACEOF
10475if ac_fn_c_try_link "$LINENO"
10476then :
10477  eval $cacheid=yes
10478else $as_nop
10479  eval $cacheid=no
10480fi
10481rm -f core conftest.err conftest.$ac_objext conftest.beam \
10482    conftest$ac_exeext conftest.$ac_ext
10483fi
10484
10485
10486		CFLAGS="$xorg_testset_save_CFLAGS"
10487
10488		eval supported=\$$cacheid
10489		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10490printf "%s\n" "$supported" >&6; }
10491		if test "$supported" = "yes" ; then
10492			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10493			found="yes"
10494		fi
10495	fi
10496
10497
10498fi
10499
10500
10501
10502
10503
10504
10505
10506		CWARNFLAGS="$BASE_CFLAGS"
10507		if  test "x$GCC" = xyes ; then
10508		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10509		fi
10510
10511
10512
10513
10514
10515
10516
10517
10518# Check whether --enable-strict-compilation was given.
10519if test ${enable_strict_compilation+y}
10520then :
10521  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10522else $as_nop
10523  STRICT_COMPILE=no
10524fi
10525
10526
10527
10528
10529
10530
10531STRICT_CFLAGS=""
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545xorg_testset_save_CFLAGS="$CFLAGS"
10546
10547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10548	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10549	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10550printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10551if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10552then :
10553  printf %s "(cached) " >&6
10554else $as_nop
10555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556/* end confdefs.h.  */
10557int i;
10558_ACEOF
10559if ac_fn_c_try_compile "$LINENO"
10560then :
10561  xorg_cv_cc_flag_unknown_warning_option=yes
10562else $as_nop
10563  xorg_cv_cc_flag_unknown_warning_option=no
10564fi
10565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10566fi
10567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10568printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10569	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10570	CFLAGS="$xorg_testset_save_CFLAGS"
10571fi
10572
10573if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10574	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10575		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10576	fi
10577	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10578	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10579printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10580if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10581then :
10582  printf %s "(cached) " >&6
10583else $as_nop
10584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10585/* end confdefs.h.  */
10586int i;
10587_ACEOF
10588if ac_fn_c_try_compile "$LINENO"
10589then :
10590  xorg_cv_cc_flag_unused_command_line_argument=yes
10591else $as_nop
10592  xorg_cv_cc_flag_unused_command_line_argument=no
10593fi
10594rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10595fi
10596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10597printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10598	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10599	CFLAGS="$xorg_testset_save_CFLAGS"
10600fi
10601
10602found="no"
10603
10604	if test $found = "no" ; then
10605		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10606			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10607		fi
10608
10609		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10610			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10611		fi
10612
10613		CFLAGS="$CFLAGS -pedantic"
10614
10615		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10616printf %s "checking if $CC supports -pedantic... " >&6; }
10617		cacheid=xorg_cv_cc_flag__pedantic
10618		if eval test \${$cacheid+y}
10619then :
10620  printf %s "(cached) " >&6
10621else $as_nop
10622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623/* end confdefs.h.  */
10624int i;
10625int
10626main (void)
10627{
10628
10629  ;
10630  return 0;
10631}
10632_ACEOF
10633if ac_fn_c_try_link "$LINENO"
10634then :
10635  eval $cacheid=yes
10636else $as_nop
10637  eval $cacheid=no
10638fi
10639rm -f core conftest.err conftest.$ac_objext conftest.beam \
10640    conftest$ac_exeext conftest.$ac_ext
10641fi
10642
10643
10644		CFLAGS="$xorg_testset_save_CFLAGS"
10645
10646		eval supported=\$$cacheid
10647		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10648printf "%s\n" "$supported" >&6; }
10649		if test "$supported" = "yes" ; then
10650			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10651			found="yes"
10652		fi
10653	fi
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669xorg_testset_save_CFLAGS="$CFLAGS"
10670
10671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10672	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10673	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10674printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10675if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10676then :
10677  printf %s "(cached) " >&6
10678else $as_nop
10679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680/* end confdefs.h.  */
10681int i;
10682_ACEOF
10683if ac_fn_c_try_compile "$LINENO"
10684then :
10685  xorg_cv_cc_flag_unknown_warning_option=yes
10686else $as_nop
10687  xorg_cv_cc_flag_unknown_warning_option=no
10688fi
10689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10690fi
10691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10692printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10693	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10694	CFLAGS="$xorg_testset_save_CFLAGS"
10695fi
10696
10697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10698	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10699		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10700	fi
10701	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10702	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10703printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10704if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10705then :
10706  printf %s "(cached) " >&6
10707else $as_nop
10708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709/* end confdefs.h.  */
10710int i;
10711_ACEOF
10712if ac_fn_c_try_compile "$LINENO"
10713then :
10714  xorg_cv_cc_flag_unused_command_line_argument=yes
10715else $as_nop
10716  xorg_cv_cc_flag_unused_command_line_argument=no
10717fi
10718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10719fi
10720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10721printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10722	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10723	CFLAGS="$xorg_testset_save_CFLAGS"
10724fi
10725
10726found="no"
10727
10728	if test $found = "no" ; then
10729		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10730			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10731		fi
10732
10733		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10734			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10735		fi
10736
10737		CFLAGS="$CFLAGS -Werror"
10738
10739		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10740printf %s "checking if $CC supports -Werror... " >&6; }
10741		cacheid=xorg_cv_cc_flag__Werror
10742		if eval test \${$cacheid+y}
10743then :
10744  printf %s "(cached) " >&6
10745else $as_nop
10746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10747/* end confdefs.h.  */
10748int i;
10749int
10750main (void)
10751{
10752
10753  ;
10754  return 0;
10755}
10756_ACEOF
10757if ac_fn_c_try_link "$LINENO"
10758then :
10759  eval $cacheid=yes
10760else $as_nop
10761  eval $cacheid=no
10762fi
10763rm -f core conftest.err conftest.$ac_objext conftest.beam \
10764    conftest$ac_exeext conftest.$ac_ext
10765fi
10766
10767
10768		CFLAGS="$xorg_testset_save_CFLAGS"
10769
10770		eval supported=\$$cacheid
10771		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10772printf "%s\n" "$supported" >&6; }
10773		if test "$supported" = "yes" ; then
10774			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10775			found="yes"
10776		fi
10777	fi
10778
10779	if test $found = "no" ; then
10780		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10781			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10782		fi
10783
10784		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10785			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10786		fi
10787
10788		CFLAGS="$CFLAGS -errwarn"
10789
10790		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10791printf %s "checking if $CC supports -errwarn... " >&6; }
10792		cacheid=xorg_cv_cc_flag__errwarn
10793		if eval test \${$cacheid+y}
10794then :
10795  printf %s "(cached) " >&6
10796else $as_nop
10797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798/* end confdefs.h.  */
10799int i;
10800int
10801main (void)
10802{
10803
10804  ;
10805  return 0;
10806}
10807_ACEOF
10808if ac_fn_c_try_link "$LINENO"
10809then :
10810  eval $cacheid=yes
10811else $as_nop
10812  eval $cacheid=no
10813fi
10814rm -f core conftest.err conftest.$ac_objext conftest.beam \
10815    conftest$ac_exeext conftest.$ac_ext
10816fi
10817
10818
10819		CFLAGS="$xorg_testset_save_CFLAGS"
10820
10821		eval supported=\$$cacheid
10822		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10823printf "%s\n" "$supported" >&6; }
10824		if test "$supported" = "yes" ; then
10825			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10826			found="yes"
10827		fi
10828	fi
10829
10830
10831
10832# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10833# activate it with -Werror, so we add it here explicitly.
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847xorg_testset_save_CFLAGS="$CFLAGS"
10848
10849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10850	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10851	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10852printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10853if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10854then :
10855  printf %s "(cached) " >&6
10856else $as_nop
10857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858/* end confdefs.h.  */
10859int i;
10860_ACEOF
10861if ac_fn_c_try_compile "$LINENO"
10862then :
10863  xorg_cv_cc_flag_unknown_warning_option=yes
10864else $as_nop
10865  xorg_cv_cc_flag_unknown_warning_option=no
10866fi
10867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10868fi
10869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10870printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10871	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10872	CFLAGS="$xorg_testset_save_CFLAGS"
10873fi
10874
10875if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10876	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10877		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10878	fi
10879	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10880	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10881printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10882if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10883then :
10884  printf %s "(cached) " >&6
10885else $as_nop
10886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887/* end confdefs.h.  */
10888int i;
10889_ACEOF
10890if ac_fn_c_try_compile "$LINENO"
10891then :
10892  xorg_cv_cc_flag_unused_command_line_argument=yes
10893else $as_nop
10894  xorg_cv_cc_flag_unused_command_line_argument=no
10895fi
10896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10897fi
10898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10899printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10900	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10901	CFLAGS="$xorg_testset_save_CFLAGS"
10902fi
10903
10904found="no"
10905
10906	if test $found = "no" ; then
10907		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10908			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10909		fi
10910
10911		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10912			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10913		fi
10914
10915		CFLAGS="$CFLAGS -Werror=attributes"
10916
10917		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10918printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10919		cacheid=xorg_cv_cc_flag__Werror_attributes
10920		if eval test \${$cacheid+y}
10921then :
10922  printf %s "(cached) " >&6
10923else $as_nop
10924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925/* end confdefs.h.  */
10926int i;
10927int
10928main (void)
10929{
10930
10931  ;
10932  return 0;
10933}
10934_ACEOF
10935if ac_fn_c_try_link "$LINENO"
10936then :
10937  eval $cacheid=yes
10938else $as_nop
10939  eval $cacheid=no
10940fi
10941rm -f core conftest.err conftest.$ac_objext conftest.beam \
10942    conftest$ac_exeext conftest.$ac_ext
10943fi
10944
10945
10946		CFLAGS="$xorg_testset_save_CFLAGS"
10947
10948		eval supported=\$$cacheid
10949		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10950printf "%s\n" "$supported" >&6; }
10951		if test "$supported" = "yes" ; then
10952			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10953			found="yes"
10954		fi
10955	fi
10956
10957
10958
10959if test "x$STRICT_COMPILE" = "xyes"; then
10960    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10961    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10962fi
10963
10964
10965
10966
10967
10968
10969cat >>confdefs.h <<_ACEOF
10970#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10971_ACEOF
10972
10973	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10974	if test "x$PVM" = "x"; then
10975		PVM="0"
10976	fi
10977
10978printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10979
10980	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10981	if test "x$PVP" = "x"; then
10982		PVP="0"
10983	fi
10984
10985printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10986
10987
10988
10989CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10990mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10991|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10992touch \$(top_srcdir)/ChangeLog; \
10993echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10994
10995
10996
10997
10998macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10999INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11000mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11001|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11002touch \$(top_srcdir)/INSTALL; \
11003echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11004
11005
11006
11007
11008
11009
11010case $host_os in
11011    solaris*)
11012        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11013        # check for a man page file found in later versions that use
11014        # traditional section numbers instead
11015        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11016printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11017if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11018then :
11019  printf %s "(cached) " >&6
11020else $as_nop
11021  test "$cross_compiling" = yes &&
11022  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11023if test -r "/usr/share/man/man7/attributes.7"; then
11024  ac_cv_file__usr_share_man_man7_attributes_7=yes
11025else
11026  ac_cv_file__usr_share_man_man7_attributes_7=no
11027fi
11028fi
11029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11030printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11031if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11032then :
11033  SYSV_MAN_SECTIONS=false
11034else $as_nop
11035  SYSV_MAN_SECTIONS=true
11036fi
11037
11038        ;;
11039    *) SYSV_MAN_SECTIONS=false ;;
11040esac
11041
11042if test x$APP_MAN_SUFFIX = x    ; then
11043    APP_MAN_SUFFIX=1
11044fi
11045if test x$APP_MAN_DIR = x    ; then
11046    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11047fi
11048
11049if test x$LIB_MAN_SUFFIX = x    ; then
11050    LIB_MAN_SUFFIX=3
11051fi
11052if test x$LIB_MAN_DIR = x    ; then
11053    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11054fi
11055
11056if test x$FILE_MAN_SUFFIX = x    ; then
11057    case $SYSV_MAN_SECTIONS in
11058	true)				FILE_MAN_SUFFIX=4  ;;
11059	*)				FILE_MAN_SUFFIX=5  ;;
11060    esac
11061fi
11062if test x$FILE_MAN_DIR = x    ; then
11063    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11064fi
11065
11066if test x$MISC_MAN_SUFFIX = x    ; then
11067    case $SYSV_MAN_SECTIONS in
11068	true)				MISC_MAN_SUFFIX=5  ;;
11069	*)				MISC_MAN_SUFFIX=7  ;;
11070    esac
11071fi
11072if test x$MISC_MAN_DIR = x    ; then
11073    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11074fi
11075
11076if test x$DRIVER_MAN_SUFFIX = x    ; then
11077    case $SYSV_MAN_SECTIONS in
11078	true)				DRIVER_MAN_SUFFIX=7  ;;
11079	*)				DRIVER_MAN_SUFFIX=4  ;;
11080    esac
11081fi
11082if test x$DRIVER_MAN_DIR = x    ; then
11083    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11084fi
11085
11086if test x$ADMIN_MAN_SUFFIX = x    ; then
11087    case $SYSV_MAN_SECTIONS in
11088	true)				ADMIN_MAN_SUFFIX=1m ;;
11089	*)				ADMIN_MAN_SUFFIX=8  ;;
11090    esac
11091fi
11092if test x$ADMIN_MAN_DIR = x    ; then
11093    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11094fi
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110XORG_MAN_PAGE="X Version 11"
11111
11112MAN_SUBSTS="\
11113	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11114	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11115	-e 's|__xservername__|Xorg|g' \
11116	-e 's|__xconfigfile__|xorg.conf|g' \
11117	-e 's|__projectroot__|\$(prefix)|g' \
11118	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11119	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11120	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11121	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11122	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11123	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11124	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11125
11126
11127
11128# Check whether --enable-silent-rules was given.
11129if test ${enable_silent_rules+y}
11130then :
11131  enableval=$enable_silent_rules;
11132fi
11133
11134case $enable_silent_rules in # (((
11135  yes) AM_DEFAULT_VERBOSITY=0;;
11136   no) AM_DEFAULT_VERBOSITY=1;;
11137    *) AM_DEFAULT_VERBOSITY=0;;
11138esac
11139am_make=${MAKE-make}
11140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11141printf %s "checking whether $am_make supports nested variables... " >&6; }
11142if test ${am_cv_make_support_nested_variables+y}
11143then :
11144  printf %s "(cached) " >&6
11145else $as_nop
11146  if printf "%s\n" 'TRUE=$(BAR$(V))
11147BAR0=false
11148BAR1=true
11149V=1
11150am__doit:
11151	@$(TRUE)
11152.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11153  am_cv_make_support_nested_variables=yes
11154else
11155  am_cv_make_support_nested_variables=no
11156fi
11157fi
11158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11159printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11160if test $am_cv_make_support_nested_variables = yes; then
11161    AM_V='$(V)'
11162  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11163else
11164  AM_V=$AM_DEFAULT_VERBOSITY
11165  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11166fi
11167AM_BACKSLASH='\'
11168
11169
11170
11171# Checks for library functions.
11172ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
11173if test "x$ac_cv_func_mkstemp" = xyes
11174then :
11175
11176printf "%s\n" "#define HAS_MKSTEMP 1" >>confdefs.h
11177
11178fi
11179
11180
11181# Checks for pkg-config packages
11182
11183pkg_failed=no
11184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDITVIEW" >&5
11185printf %s "checking for XDITVIEW... " >&6; }
11186
11187if test -n "$XDITVIEW_CFLAGS"; then
11188    pkg_cv_XDITVIEW_CFLAGS="$XDITVIEW_CFLAGS"
11189 elif test -n "$PKG_CONFIG"; then
11190    if test -n "$PKG_CONFIG" && \
11191    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5
11192  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5
11193  ac_status=$?
11194  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11195  test $ac_status = 0; }; then
11196  pkg_cv_XDITVIEW_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11" 2>/dev/null`
11197		      test "x$?" != "x0" && pkg_failed=yes
11198else
11199  pkg_failed=yes
11200fi
11201 else
11202    pkg_failed=untried
11203fi
11204if test -n "$XDITVIEW_LIBS"; then
11205    pkg_cv_XDITVIEW_LIBS="$XDITVIEW_LIBS"
11206 elif test -n "$PKG_CONFIG"; then
11207    if test -n "$PKG_CONFIG" && \
11208    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5
11209  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5
11210  ac_status=$?
11211  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11212  test $ac_status = 0; }; then
11213  pkg_cv_XDITVIEW_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11" 2>/dev/null`
11214		      test "x$?" != "x0" && pkg_failed=yes
11215else
11216  pkg_failed=yes
11217fi
11218 else
11219    pkg_failed=untried
11220fi
11221
11222
11223
11224if test $pkg_failed = yes; then
11225   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226printf "%s\n" "no" >&6; }
11227
11228if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11229        _pkg_short_errors_supported=yes
11230else
11231        _pkg_short_errors_supported=no
11232fi
11233        if test $_pkg_short_errors_supported = yes; then
11234	        XDITVIEW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt x11" 2>&1`
11235        else
11236	        XDITVIEW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt x11" 2>&1`
11237        fi
11238	# Put the nasty error message in config.log where it belongs
11239	echo "$XDITVIEW_PKG_ERRORS" >&5
11240
11241	as_fn_error $? "Package requirements (xaw7 xmu xt x11) were not met:
11242
11243$XDITVIEW_PKG_ERRORS
11244
11245Consider adjusting the PKG_CONFIG_PATH environment variable if you
11246installed software in a non-standard prefix.
11247
11248Alternatively, you may set the environment variables XDITVIEW_CFLAGS
11249and XDITVIEW_LIBS to avoid the need to call pkg-config.
11250See the pkg-config man page for more details." "$LINENO" 5
11251elif test $pkg_failed = untried; then
11252     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11253printf "%s\n" "no" >&6; }
11254	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11255printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11256as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11257is in your PATH or set the PKG_CONFIG environment variable to the full
11258path to pkg-config.
11259
11260Alternatively, you may set the environment variables XDITVIEW_CFLAGS
11261and XDITVIEW_LIBS to avoid the need to call pkg-config.
11262See the pkg-config man page for more details.
11263
11264To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11265See \`config.log' for more details" "$LINENO" 5; }
11266else
11267	XDITVIEW_CFLAGS=$pkg_cv_XDITVIEW_CFLAGS
11268	XDITVIEW_LIBS=$pkg_cv_XDITVIEW_LIBS
11269        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11270printf "%s\n" "yes" >&6; }
11271
11272fi
11273
11274
11275pkg_failed=no
11276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11277printf %s "checking for APPDEFS... " >&6; }
11278
11279if test -n "$APPDEFS_CFLAGS"; then
11280    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11281 elif test -n "$PKG_CONFIG"; then
11282    if test -n "$PKG_CONFIG" && \
11283    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11284  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11285  ac_status=$?
11286  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11287  test $ac_status = 0; }; then
11288  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11289		      test "x$?" != "x0" && pkg_failed=yes
11290else
11291  pkg_failed=yes
11292fi
11293 else
11294    pkg_failed=untried
11295fi
11296if test -n "$APPDEFS_LIBS"; then
11297    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11298 elif test -n "$PKG_CONFIG"; then
11299    if test -n "$PKG_CONFIG" && \
11300    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11301  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11302  ac_status=$?
11303  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11304  test $ac_status = 0; }; then
11305  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11306		      test "x$?" != "x0" && pkg_failed=yes
11307else
11308  pkg_failed=yes
11309fi
11310 else
11311    pkg_failed=untried
11312fi
11313
11314
11315
11316if test $pkg_failed = yes; then
11317   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318printf "%s\n" "no" >&6; }
11319
11320if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11321        _pkg_short_errors_supported=yes
11322else
11323        _pkg_short_errors_supported=no
11324fi
11325        if test $_pkg_short_errors_supported = yes; then
11326	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11327        else
11328	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11329        fi
11330	# Put the nasty error message in config.log where it belongs
11331	echo "$APPDEFS_PKG_ERRORS" >&5
11332
11333	as_fn_error $? "Package requirements (xt) were not met:
11334
11335$APPDEFS_PKG_ERRORS
11336
11337Consider adjusting the PKG_CONFIG_PATH environment variable if you
11338installed software in a non-standard prefix.
11339
11340Alternatively, you may set the environment variables APPDEFS_CFLAGS
11341and APPDEFS_LIBS to avoid the need to call pkg-config.
11342See the pkg-config man page for more details." "$LINENO" 5
11343elif test $pkg_failed = untried; then
11344     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11345printf "%s\n" "no" >&6; }
11346	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11347printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11348as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11349is in your PATH or set the PKG_CONFIG environment variable to the full
11350path to pkg-config.
11351
11352Alternatively, you may set the environment variables APPDEFS_CFLAGS
11353and APPDEFS_LIBS to avoid the need to call pkg-config.
11354See the pkg-config man page for more details.
11355
11356To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11357See \`config.log' for more details" "$LINENO" 5; }
11358else
11359	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11360	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11361        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11362printf "%s\n" "yes" >&6; }
11363
11364fi
11365xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11366
11367# Check whether --with-appdefaultdir was given.
11368if test ${with_appdefaultdir+y}
11369then :
11370  withval=$with_appdefaultdir; appdefaultdir="$withval"
11371else $as_nop
11372  appdefaultdir="${xt_appdefaultdir}"
11373fi
11374
11375
11376
11377
11378ac_config_files="$ac_config_files Makefile man/Makefile"
11379
11380cat >confcache <<\_ACEOF
11381# This file is a shell script that caches the results of configure
11382# tests run on this system so they can be shared between configure
11383# scripts and configure runs, see configure's option --config-cache.
11384# It is not useful on other systems.  If it contains results you don't
11385# want to keep, you may remove or edit it.
11386#
11387# config.status only pays attention to the cache file if you give it
11388# the --recheck option to rerun configure.
11389#
11390# `ac_cv_env_foo' variables (set or unset) will be overridden when
11391# loading this file, other *unset* `ac_cv_foo' will be assigned the
11392# following values.
11393
11394_ACEOF
11395
11396# The following way of writing the cache mishandles newlines in values,
11397# but we know of no workaround that is simple, portable, and efficient.
11398# So, we kill variables containing newlines.
11399# Ultrix sh set writes to stderr and can't be redirected directly,
11400# and sets the high bit in the cache file unless we assign to the vars.
11401(
11402  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11403    eval ac_val=\$$ac_var
11404    case $ac_val in #(
11405    *${as_nl}*)
11406      case $ac_var in #(
11407      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11408printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11409      esac
11410      case $ac_var in #(
11411      _ | IFS | as_nl) ;; #(
11412      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11413      *) { eval $ac_var=; unset $ac_var;} ;;
11414      esac ;;
11415    esac
11416  done
11417
11418  (set) 2>&1 |
11419    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11420    *${as_nl}ac_space=\ *)
11421      # `set' does not quote correctly, so add quotes: double-quote
11422      # substitution turns \\\\ into \\, and sed turns \\ into \.
11423      sed -n \
11424	"s/'/'\\\\''/g;
11425	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11426      ;; #(
11427    *)
11428      # `set' quotes correctly as required by POSIX, so do not add quotes.
11429      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11430      ;;
11431    esac |
11432    sort
11433) |
11434  sed '
11435     /^ac_cv_env_/b end
11436     t clear
11437     :clear
11438     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11439     t end
11440     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11441     :end' >>confcache
11442if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11443  if test -w "$cache_file"; then
11444    if test "x$cache_file" != "x/dev/null"; then
11445      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11446printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11447      if test ! -f "$cache_file" || test -h "$cache_file"; then
11448	cat confcache >"$cache_file"
11449      else
11450        case $cache_file in #(
11451        */* | ?:*)
11452	  mv -f confcache "$cache_file"$$ &&
11453	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11454        *)
11455	  mv -f confcache "$cache_file" ;;
11456	esac
11457      fi
11458    fi
11459  else
11460    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11461printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11462  fi
11463fi
11464rm -f confcache
11465
11466test "x$prefix" = xNONE && prefix=$ac_default_prefix
11467# Let make expand exec_prefix.
11468test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11469
11470DEFS=-DHAVE_CONFIG_H
11471
11472ac_libobjs=
11473ac_ltlibobjs=
11474U=
11475for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11476  # 1. Remove the extension, and $U if already installed.
11477  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11478  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11479  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11480  #    will be set to the directory where LIBOBJS objects are built.
11481  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11482  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11483done
11484LIBOBJS=$ac_libobjs
11485
11486LTLIBOBJS=$ac_ltlibobjs
11487
11488
11489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11490printf %s "checking that generated files are newer than configure... " >&6; }
11491   if test -n "$am_sleep_pid"; then
11492     # Hide warnings about reused PIDs.
11493     wait $am_sleep_pid 2>/dev/null
11494   fi
11495   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11496printf "%s\n" "done" >&6; }
11497 if test -n "$EXEEXT"; then
11498  am__EXEEXT_TRUE=
11499  am__EXEEXT_FALSE='#'
11500else
11501  am__EXEEXT_TRUE='#'
11502  am__EXEEXT_FALSE=
11503fi
11504
11505if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11506  as_fn_error $? "conditional \"AMDEP\" was never defined.
11507Usually this means the macro was only invoked conditionally." "$LINENO" 5
11508fi
11509if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11510  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11511Usually this means the macro was only invoked conditionally." "$LINENO" 5
11512fi
11513
11514: "${CONFIG_STATUS=./config.status}"
11515ac_write_fail=0
11516ac_clean_files_save=$ac_clean_files
11517ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11519printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11520as_write_fail=0
11521cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11522#! $SHELL
11523# Generated by $as_me.
11524# Run this file to recreate the current configuration.
11525# Compiler output produced by configure, useful for debugging
11526# configure, is in config.log if it exists.
11527
11528debug=false
11529ac_cs_recheck=false
11530ac_cs_silent=false
11531
11532SHELL=\${CONFIG_SHELL-$SHELL}
11533export SHELL
11534_ASEOF
11535cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11536## -------------------- ##
11537## M4sh Initialization. ##
11538## -------------------- ##
11539
11540# Be more Bourne compatible
11541DUALCASE=1; export DUALCASE # for MKS sh
11542as_nop=:
11543if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11544then :
11545  emulate sh
11546  NULLCMD=:
11547  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11548  # is contrary to our usage.  Disable this feature.
11549  alias -g '${1+"$@"}'='"$@"'
11550  setopt NO_GLOB_SUBST
11551else $as_nop
11552  case `(set -o) 2>/dev/null` in #(
11553  *posix*) :
11554    set -o posix ;; #(
11555  *) :
11556     ;;
11557esac
11558fi
11559
11560
11561
11562# Reset variables that may have inherited troublesome values from
11563# the environment.
11564
11565# IFS needs to be set, to space, tab, and newline, in precisely that order.
11566# (If _AS_PATH_WALK were called with IFS unset, it would have the
11567# side effect of setting IFS to empty, thus disabling word splitting.)
11568# Quoting is to prevent editors from complaining about space-tab.
11569as_nl='
11570'
11571export as_nl
11572IFS=" ""	$as_nl"
11573
11574PS1='$ '
11575PS2='> '
11576PS4='+ '
11577
11578# Ensure predictable behavior from utilities with locale-dependent output.
11579LC_ALL=C
11580export LC_ALL
11581LANGUAGE=C
11582export LANGUAGE
11583
11584# We cannot yet rely on "unset" to work, but we need these variables
11585# to be unset--not just set to an empty or harmless value--now, to
11586# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11587# also avoids known problems related to "unset" and subshell syntax
11588# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11589for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11590do eval test \${$as_var+y} \
11591  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11592done
11593
11594# Ensure that fds 0, 1, and 2 are open.
11595if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11596if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11597if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11598
11599# The user is always right.
11600if ${PATH_SEPARATOR+false} :; then
11601  PATH_SEPARATOR=:
11602  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11603    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11604      PATH_SEPARATOR=';'
11605  }
11606fi
11607
11608
11609# Find who we are.  Look in the path if we contain no directory separator.
11610as_myself=
11611case $0 in #((
11612  *[\\/]* ) as_myself=$0 ;;
11613  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11614for as_dir in $PATH
11615do
11616  IFS=$as_save_IFS
11617  case $as_dir in #(((
11618    '') as_dir=./ ;;
11619    */) ;;
11620    *) as_dir=$as_dir/ ;;
11621  esac
11622    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11623  done
11624IFS=$as_save_IFS
11625
11626     ;;
11627esac
11628# We did not find ourselves, most probably we were run as `sh COMMAND'
11629# in which case we are not to be found in the path.
11630if test "x$as_myself" = x; then
11631  as_myself=$0
11632fi
11633if test ! -f "$as_myself"; then
11634  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11635  exit 1
11636fi
11637
11638
11639
11640# as_fn_error STATUS ERROR [LINENO LOG_FD]
11641# ----------------------------------------
11642# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11643# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11644# script with STATUS, using 1 if that was 0.
11645as_fn_error ()
11646{
11647  as_status=$1; test $as_status -eq 0 && as_status=1
11648  if test "$4"; then
11649    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11650    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11651  fi
11652  printf "%s\n" "$as_me: error: $2" >&2
11653  as_fn_exit $as_status
11654} # as_fn_error
11655
11656
11657
11658# as_fn_set_status STATUS
11659# -----------------------
11660# Set $? to STATUS, without forking.
11661as_fn_set_status ()
11662{
11663  return $1
11664} # as_fn_set_status
11665
11666# as_fn_exit STATUS
11667# -----------------
11668# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11669as_fn_exit ()
11670{
11671  set +e
11672  as_fn_set_status $1
11673  exit $1
11674} # as_fn_exit
11675
11676# as_fn_unset VAR
11677# ---------------
11678# Portably unset VAR.
11679as_fn_unset ()
11680{
11681  { eval $1=; unset $1;}
11682}
11683as_unset=as_fn_unset
11684
11685# as_fn_append VAR VALUE
11686# ----------------------
11687# Append the text in VALUE to the end of the definition contained in VAR. Take
11688# advantage of any shell optimizations that allow amortized linear growth over
11689# repeated appends, instead of the typical quadratic growth present in naive
11690# implementations.
11691if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11692then :
11693  eval 'as_fn_append ()
11694  {
11695    eval $1+=\$2
11696  }'
11697else $as_nop
11698  as_fn_append ()
11699  {
11700    eval $1=\$$1\$2
11701  }
11702fi # as_fn_append
11703
11704# as_fn_arith ARG...
11705# ------------------
11706# Perform arithmetic evaluation on the ARGs, and store the result in the
11707# global $as_val. Take advantage of shells that can avoid forks. The arguments
11708# must be portable across $(()) and expr.
11709if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11710then :
11711  eval 'as_fn_arith ()
11712  {
11713    as_val=$(( $* ))
11714  }'
11715else $as_nop
11716  as_fn_arith ()
11717  {
11718    as_val=`expr "$@" || test $? -eq 1`
11719  }
11720fi # as_fn_arith
11721
11722
11723if expr a : '\(a\)' >/dev/null 2>&1 &&
11724   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11725  as_expr=expr
11726else
11727  as_expr=false
11728fi
11729
11730if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11731  as_basename=basename
11732else
11733  as_basename=false
11734fi
11735
11736if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11737  as_dirname=dirname
11738else
11739  as_dirname=false
11740fi
11741
11742as_me=`$as_basename -- "$0" ||
11743$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11744	 X"$0" : 'X\(//\)$' \| \
11745	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11746printf "%s\n" X/"$0" |
11747    sed '/^.*\/\([^/][^/]*\)\/*$/{
11748	    s//\1/
11749	    q
11750	  }
11751	  /^X\/\(\/\/\)$/{
11752	    s//\1/
11753	    q
11754	  }
11755	  /^X\/\(\/\).*/{
11756	    s//\1/
11757	    q
11758	  }
11759	  s/.*/./; q'`
11760
11761# Avoid depending upon Character Ranges.
11762as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11763as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11764as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11765as_cr_digits='0123456789'
11766as_cr_alnum=$as_cr_Letters$as_cr_digits
11767
11768
11769# Determine whether it's possible to make 'echo' print without a newline.
11770# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11771# for compatibility with existing Makefiles.
11772ECHO_C= ECHO_N= ECHO_T=
11773case `echo -n x` in #(((((
11774-n*)
11775  case `echo 'xy\c'` in
11776  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11777  xy)  ECHO_C='\c';;
11778  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11779       ECHO_T='	';;
11780  esac;;
11781*)
11782  ECHO_N='-n';;
11783esac
11784
11785# For backward compatibility with old third-party macros, we provide
11786# the shell variables $as_echo and $as_echo_n.  New code should use
11787# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11788as_echo='printf %s\n'
11789as_echo_n='printf %s'
11790
11791rm -f conf$$ conf$$.exe conf$$.file
11792if test -d conf$$.dir; then
11793  rm -f conf$$.dir/conf$$.file
11794else
11795  rm -f conf$$.dir
11796  mkdir conf$$.dir 2>/dev/null
11797fi
11798if (echo >conf$$.file) 2>/dev/null; then
11799  if ln -s conf$$.file conf$$ 2>/dev/null; then
11800    as_ln_s='ln -s'
11801    # ... but there are two gotchas:
11802    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11803    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11804    # In both cases, we have to default to `cp -pR'.
11805    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11806      as_ln_s='cp -pR'
11807  elif ln conf$$.file conf$$ 2>/dev/null; then
11808    as_ln_s=ln
11809  else
11810    as_ln_s='cp -pR'
11811  fi
11812else
11813  as_ln_s='cp -pR'
11814fi
11815rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11816rmdir conf$$.dir 2>/dev/null
11817
11818
11819# as_fn_mkdir_p
11820# -------------
11821# Create "$as_dir" as a directory, including parents if necessary.
11822as_fn_mkdir_p ()
11823{
11824
11825  case $as_dir in #(
11826  -*) as_dir=./$as_dir;;
11827  esac
11828  test -d "$as_dir" || eval $as_mkdir_p || {
11829    as_dirs=
11830    while :; do
11831      case $as_dir in #(
11832      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11833      *) as_qdir=$as_dir;;
11834      esac
11835      as_dirs="'$as_qdir' $as_dirs"
11836      as_dir=`$as_dirname -- "$as_dir" ||
11837$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11838	 X"$as_dir" : 'X\(//\)[^/]' \| \
11839	 X"$as_dir" : 'X\(//\)$' \| \
11840	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11841printf "%s\n" X"$as_dir" |
11842    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11843	    s//\1/
11844	    q
11845	  }
11846	  /^X\(\/\/\)[^/].*/{
11847	    s//\1/
11848	    q
11849	  }
11850	  /^X\(\/\/\)$/{
11851	    s//\1/
11852	    q
11853	  }
11854	  /^X\(\/\).*/{
11855	    s//\1/
11856	    q
11857	  }
11858	  s/.*/./; q'`
11859      test -d "$as_dir" && break
11860    done
11861    test -z "$as_dirs" || eval "mkdir $as_dirs"
11862  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11863
11864
11865} # as_fn_mkdir_p
11866if mkdir -p . 2>/dev/null; then
11867  as_mkdir_p='mkdir -p "$as_dir"'
11868else
11869  test -d ./-p && rmdir ./-p
11870  as_mkdir_p=false
11871fi
11872
11873
11874# as_fn_executable_p FILE
11875# -----------------------
11876# Test if FILE is an executable regular file.
11877as_fn_executable_p ()
11878{
11879  test -f "$1" && test -x "$1"
11880} # as_fn_executable_p
11881as_test_x='test -x'
11882as_executable_p=as_fn_executable_p
11883
11884# Sed expression to map a string onto a valid CPP name.
11885as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11886
11887# Sed expression to map a string onto a valid variable name.
11888as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11889
11890
11891exec 6>&1
11892## ----------------------------------- ##
11893## Main body of $CONFIG_STATUS script. ##
11894## ----------------------------------- ##
11895_ASEOF
11896test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11897
11898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11899# Save the log message, to keep $0 and so on meaningful, and to
11900# report actual input values of CONFIG_FILES etc. instead of their
11901# values after options handling.
11902ac_log="
11903This file was extended by xditview $as_me 1.0.6, which was
11904generated by GNU Autoconf 2.71.  Invocation command line was
11905
11906  CONFIG_FILES    = $CONFIG_FILES
11907  CONFIG_HEADERS  = $CONFIG_HEADERS
11908  CONFIG_LINKS    = $CONFIG_LINKS
11909  CONFIG_COMMANDS = $CONFIG_COMMANDS
11910  $ $0 $@
11911
11912on `(hostname || uname -n) 2>/dev/null | sed 1q`
11913"
11914
11915_ACEOF
11916
11917case $ac_config_files in *"
11918"*) set x $ac_config_files; shift; ac_config_files=$*;;
11919esac
11920
11921case $ac_config_headers in *"
11922"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11923esac
11924
11925
11926cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11927# Files that config.status was made for.
11928config_files="$ac_config_files"
11929config_headers="$ac_config_headers"
11930config_commands="$ac_config_commands"
11931
11932_ACEOF
11933
11934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11935ac_cs_usage="\
11936\`$as_me' instantiates files and other configuration actions
11937from templates according to the current configuration.  Unless the files
11938and actions are specified as TAGs, all are instantiated by default.
11939
11940Usage: $0 [OPTION]... [TAG]...
11941
11942  -h, --help       print this help, then exit
11943  -V, --version    print version number and configuration settings, then exit
11944      --config     print configuration, then exit
11945  -q, --quiet, --silent
11946                   do not print progress messages
11947  -d, --debug      don't remove temporary files
11948      --recheck    update $as_me by reconfiguring in the same conditions
11949      --file=FILE[:TEMPLATE]
11950                   instantiate the configuration file FILE
11951      --header=FILE[:TEMPLATE]
11952                   instantiate the configuration header FILE
11953
11954Configuration files:
11955$config_files
11956
11957Configuration headers:
11958$config_headers
11959
11960Configuration commands:
11961$config_commands
11962
11963Report bugs to <https://gitlab.freedesktop.org/xorg/app/xditview/-/issues>."
11964
11965_ACEOF
11966ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11967ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11969ac_cs_config='$ac_cs_config_escaped'
11970ac_cs_version="\\
11971xditview config.status 1.0.6
11972configured by $0, generated by GNU Autoconf 2.71,
11973  with options \\"\$ac_cs_config\\"
11974
11975Copyright (C) 2021 Free Software Foundation, Inc.
11976This config.status script is free software; the Free Software Foundation
11977gives unlimited permission to copy, distribute and modify it."
11978
11979ac_pwd='$ac_pwd'
11980srcdir='$srcdir'
11981INSTALL='$INSTALL'
11982MKDIR_P='$MKDIR_P'
11983AWK='$AWK'
11984test -n "\$AWK" || AWK=awk
11985_ACEOF
11986
11987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11988# The default lists apply if the user does not specify any file.
11989ac_need_defaults=:
11990while test $# != 0
11991do
11992  case $1 in
11993  --*=?*)
11994    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11995    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11996    ac_shift=:
11997    ;;
11998  --*=)
11999    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12000    ac_optarg=
12001    ac_shift=:
12002    ;;
12003  *)
12004    ac_option=$1
12005    ac_optarg=$2
12006    ac_shift=shift
12007    ;;
12008  esac
12009
12010  case $ac_option in
12011  # Handling of the options.
12012  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12013    ac_cs_recheck=: ;;
12014  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12015    printf "%s\n" "$ac_cs_version"; exit ;;
12016  --config | --confi | --conf | --con | --co | --c )
12017    printf "%s\n" "$ac_cs_config"; exit ;;
12018  --debug | --debu | --deb | --de | --d | -d )
12019    debug=: ;;
12020  --file | --fil | --fi | --f )
12021    $ac_shift
12022    case $ac_optarg in
12023    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12024    '') as_fn_error $? "missing file argument" ;;
12025    esac
12026    as_fn_append CONFIG_FILES " '$ac_optarg'"
12027    ac_need_defaults=false;;
12028  --header | --heade | --head | --hea )
12029    $ac_shift
12030    case $ac_optarg in
12031    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12032    esac
12033    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12034    ac_need_defaults=false;;
12035  --he | --h)
12036    # Conflict between --help and --header
12037    as_fn_error $? "ambiguous option: \`$1'
12038Try \`$0 --help' for more information.";;
12039  --help | --hel | -h )
12040    printf "%s\n" "$ac_cs_usage"; exit ;;
12041  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12042  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12043    ac_cs_silent=: ;;
12044
12045  # This is an error.
12046  -*) as_fn_error $? "unrecognized option: \`$1'
12047Try \`$0 --help' for more information." ;;
12048
12049  *) as_fn_append ac_config_targets " $1"
12050     ac_need_defaults=false ;;
12051
12052  esac
12053  shift
12054done
12055
12056ac_configure_extra_args=
12057
12058if $ac_cs_silent; then
12059  exec 6>/dev/null
12060  ac_configure_extra_args="$ac_configure_extra_args --silent"
12061fi
12062
12063_ACEOF
12064cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12065if \$ac_cs_recheck; then
12066  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12067  shift
12068  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12069  CONFIG_SHELL='$SHELL'
12070  export CONFIG_SHELL
12071  exec "\$@"
12072fi
12073
12074_ACEOF
12075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12076exec 5>>config.log
12077{
12078  echo
12079  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12080## Running $as_me. ##
12081_ASBOX
12082  printf "%s\n" "$ac_log"
12083} >&5
12084
12085_ACEOF
12086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12087#
12088# INIT-COMMANDS
12089#
12090AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12091
12092_ACEOF
12093
12094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12095
12096# Handling of arguments.
12097for ac_config_target in $ac_config_targets
12098do
12099  case $ac_config_target in
12100    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12101    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12102    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12103    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12104
12105  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12106  esac
12107done
12108
12109
12110# If the user did not use the arguments to specify the items to instantiate,
12111# then the envvar interface is used.  Set only those that are not.
12112# We use the long form for the default assignment because of an extremely
12113# bizarre bug on SunOS 4.1.3.
12114if $ac_need_defaults; then
12115  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12116  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12117  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12118fi
12119
12120# Have a temporary directory for convenience.  Make it in the build tree
12121# simply because there is no reason against having it here, and in addition,
12122# creating and moving files from /tmp can sometimes cause problems.
12123# Hook for its removal unless debugging.
12124# Note that there is a small window in which the directory will not be cleaned:
12125# after its creation but before its name has been assigned to `$tmp'.
12126$debug ||
12127{
12128  tmp= ac_tmp=
12129  trap 'exit_status=$?
12130  : "${ac_tmp:=$tmp}"
12131  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12132' 0
12133  trap 'as_fn_exit 1' 1 2 13 15
12134}
12135# Create a (secure) tmp directory for tmp files.
12136
12137{
12138  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12139  test -d "$tmp"
12140}  ||
12141{
12142  tmp=./conf$$-$RANDOM
12143  (umask 077 && mkdir "$tmp")
12144} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12145ac_tmp=$tmp
12146
12147# Set up the scripts for CONFIG_FILES section.
12148# No need to generate them if there are no CONFIG_FILES.
12149# This happens for instance with `./config.status config.h'.
12150if test -n "$CONFIG_FILES"; then
12151
12152
12153ac_cr=`echo X | tr X '\015'`
12154# On cygwin, bash can eat \r inside `` if the user requested igncr.
12155# But we know of no other shell where ac_cr would be empty at this
12156# point, so we can use a bashism as a fallback.
12157if test "x$ac_cr" = x; then
12158  eval ac_cr=\$\'\\r\'
12159fi
12160ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12161if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12162  ac_cs_awk_cr='\\r'
12163else
12164  ac_cs_awk_cr=$ac_cr
12165fi
12166
12167echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12168_ACEOF
12169
12170
12171{
12172  echo "cat >conf$$subs.awk <<_ACEOF" &&
12173  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12174  echo "_ACEOF"
12175} >conf$$subs.sh ||
12176  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12177ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12178ac_delim='%!_!# '
12179for ac_last_try in false false false false false :; do
12180  . ./conf$$subs.sh ||
12181    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12182
12183  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12184  if test $ac_delim_n = $ac_delim_num; then
12185    break
12186  elif $ac_last_try; then
12187    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12188  else
12189    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12190  fi
12191done
12192rm -f conf$$subs.sh
12193
12194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12195cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12196_ACEOF
12197sed -n '
12198h
12199s/^/S["/; s/!.*/"]=/
12200p
12201g
12202s/^[^!]*!//
12203:repl
12204t repl
12205s/'"$ac_delim"'$//
12206t delim
12207:nl
12208h
12209s/\(.\{148\}\)..*/\1/
12210t more1
12211s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12212p
12213n
12214b repl
12215:more1
12216s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12217p
12218g
12219s/.\{148\}//
12220t nl
12221:delim
12222h
12223s/\(.\{148\}\)..*/\1/
12224t more2
12225s/["\\]/\\&/g; s/^/"/; s/$/"/
12226p
12227b
12228:more2
12229s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12230p
12231g
12232s/.\{148\}//
12233t delim
12234' <conf$$subs.awk | sed '
12235/^[^""]/{
12236  N
12237  s/\n//
12238}
12239' >>$CONFIG_STATUS || ac_write_fail=1
12240rm -f conf$$subs.awk
12241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12242_ACAWK
12243cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12244  for (key in S) S_is_set[key] = 1
12245  FS = ""
12246
12247}
12248{
12249  line = $ 0
12250  nfields = split(line, field, "@")
12251  substed = 0
12252  len = length(field[1])
12253  for (i = 2; i < nfields; i++) {
12254    key = field[i]
12255    keylen = length(key)
12256    if (S_is_set[key]) {
12257      value = S[key]
12258      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12259      len += length(value) + length(field[++i])
12260      substed = 1
12261    } else
12262      len += 1 + keylen
12263  }
12264
12265  print line
12266}
12267
12268_ACAWK
12269_ACEOF
12270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12271if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12272  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12273else
12274  cat
12275fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12276  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12277_ACEOF
12278
12279# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12280# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12281# trailing colons and then remove the whole line if VPATH becomes empty
12282# (actually we leave an empty line to preserve line numbers).
12283if test "x$srcdir" = x.; then
12284  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12285h
12286s///
12287s/^/:/
12288s/[	 ]*$/:/
12289s/:\$(srcdir):/:/g
12290s/:\${srcdir}:/:/g
12291s/:@srcdir@:/:/g
12292s/^:*//
12293s/:*$//
12294x
12295s/\(=[	 ]*\).*/\1/
12296G
12297s/\n//
12298s/^[^=]*=[	 ]*$//
12299}'
12300fi
12301
12302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12303fi # test -n "$CONFIG_FILES"
12304
12305# Set up the scripts for CONFIG_HEADERS section.
12306# No need to generate them if there are no CONFIG_HEADERS.
12307# This happens for instance with `./config.status Makefile'.
12308if test -n "$CONFIG_HEADERS"; then
12309cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12310BEGIN {
12311_ACEOF
12312
12313# Transform confdefs.h into an awk script `defines.awk', embedded as
12314# here-document in config.status, that substitutes the proper values into
12315# config.h.in to produce config.h.
12316
12317# Create a delimiter string that does not exist in confdefs.h, to ease
12318# handling of long lines.
12319ac_delim='%!_!# '
12320for ac_last_try in false false :; do
12321  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12322  if test -z "$ac_tt"; then
12323    break
12324  elif $ac_last_try; then
12325    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12326  else
12327    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12328  fi
12329done
12330
12331# For the awk script, D is an array of macro values keyed by name,
12332# likewise P contains macro parameters if any.  Preserve backslash
12333# newline sequences.
12334
12335ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12336sed -n '
12337s/.\{148\}/&'"$ac_delim"'/g
12338t rset
12339:rset
12340s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12341t def
12342d
12343:def
12344s/\\$//
12345t bsnl
12346s/["\\]/\\&/g
12347s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12348D["\1"]=" \3"/p
12349s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12350d
12351:bsnl
12352s/["\\]/\\&/g
12353s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12354D["\1"]=" \3\\\\\\n"\\/p
12355t cont
12356s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12357t cont
12358d
12359:cont
12360n
12361s/.\{148\}/&'"$ac_delim"'/g
12362t clear
12363:clear
12364s/\\$//
12365t bsnlc
12366s/["\\]/\\&/g; s/^/"/; s/$/"/p
12367d
12368:bsnlc
12369s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12370b cont
12371' <confdefs.h | sed '
12372s/'"$ac_delim"'/"\\\
12373"/g' >>$CONFIG_STATUS || ac_write_fail=1
12374
12375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12376  for (key in D) D_is_set[key] = 1
12377  FS = ""
12378}
12379/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12380  line = \$ 0
12381  split(line, arg, " ")
12382  if (arg[1] == "#") {
12383    defundef = arg[2]
12384    mac1 = arg[3]
12385  } else {
12386    defundef = substr(arg[1], 2)
12387    mac1 = arg[2]
12388  }
12389  split(mac1, mac2, "(") #)
12390  macro = mac2[1]
12391  prefix = substr(line, 1, index(line, defundef) - 1)
12392  if (D_is_set[macro]) {
12393    # Preserve the white space surrounding the "#".
12394    print prefix "define", macro P[macro] D[macro]
12395    next
12396  } else {
12397    # Replace #undef with comments.  This is necessary, for example,
12398    # in the case of _POSIX_SOURCE, which is predefined and required
12399    # on some systems where configure will not decide to define it.
12400    if (defundef == "undef") {
12401      print "/*", prefix defundef, macro, "*/"
12402      next
12403    }
12404  }
12405}
12406{ print }
12407_ACAWK
12408_ACEOF
12409cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12410  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12411fi # test -n "$CONFIG_HEADERS"
12412
12413
12414eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12415shift
12416for ac_tag
12417do
12418  case $ac_tag in
12419  :[FHLC]) ac_mode=$ac_tag; continue;;
12420  esac
12421  case $ac_mode$ac_tag in
12422  :[FHL]*:*);;
12423  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12424  :[FH]-) ac_tag=-:-;;
12425  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12426  esac
12427  ac_save_IFS=$IFS
12428  IFS=:
12429  set x $ac_tag
12430  IFS=$ac_save_IFS
12431  shift
12432  ac_file=$1
12433  shift
12434
12435  case $ac_mode in
12436  :L) ac_source=$1;;
12437  :[FH])
12438    ac_file_inputs=
12439    for ac_f
12440    do
12441      case $ac_f in
12442      -) ac_f="$ac_tmp/stdin";;
12443      *) # Look for the file first in the build tree, then in the source tree
12444	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12445	 # because $ac_f cannot contain `:'.
12446	 test -f "$ac_f" ||
12447	   case $ac_f in
12448	   [\\/$]*) false;;
12449	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12450	   esac ||
12451	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12452      esac
12453      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12454      as_fn_append ac_file_inputs " '$ac_f'"
12455    done
12456
12457    # Let's still pretend it is `configure' which instantiates (i.e., don't
12458    # use $as_me), people would be surprised to read:
12459    #    /* config.h.  Generated by config.status.  */
12460    configure_input='Generated from '`
12461	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12462	`' by configure.'
12463    if test x"$ac_file" != x-; then
12464      configure_input="$ac_file.  $configure_input"
12465      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12466printf "%s\n" "$as_me: creating $ac_file" >&6;}
12467    fi
12468    # Neutralize special characters interpreted by sed in replacement strings.
12469    case $configure_input in #(
12470    *\&* | *\|* | *\\* )
12471       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12472       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12473    *) ac_sed_conf_input=$configure_input;;
12474    esac
12475
12476    case $ac_tag in
12477    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12478      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12479    esac
12480    ;;
12481  esac
12482
12483  ac_dir=`$as_dirname -- "$ac_file" ||
12484$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12485	 X"$ac_file" : 'X\(//\)[^/]' \| \
12486	 X"$ac_file" : 'X\(//\)$' \| \
12487	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12488printf "%s\n" X"$ac_file" |
12489    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12490	    s//\1/
12491	    q
12492	  }
12493	  /^X\(\/\/\)[^/].*/{
12494	    s//\1/
12495	    q
12496	  }
12497	  /^X\(\/\/\)$/{
12498	    s//\1/
12499	    q
12500	  }
12501	  /^X\(\/\).*/{
12502	    s//\1/
12503	    q
12504	  }
12505	  s/.*/./; q'`
12506  as_dir="$ac_dir"; as_fn_mkdir_p
12507  ac_builddir=.
12508
12509case "$ac_dir" in
12510.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12511*)
12512  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12513  # A ".." for each directory in $ac_dir_suffix.
12514  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12515  case $ac_top_builddir_sub in
12516  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12517  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12518  esac ;;
12519esac
12520ac_abs_top_builddir=$ac_pwd
12521ac_abs_builddir=$ac_pwd$ac_dir_suffix
12522# for backward compatibility:
12523ac_top_builddir=$ac_top_build_prefix
12524
12525case $srcdir in
12526  .)  # We are building in place.
12527    ac_srcdir=.
12528    ac_top_srcdir=$ac_top_builddir_sub
12529    ac_abs_top_srcdir=$ac_pwd ;;
12530  [\\/]* | ?:[\\/]* )  # Absolute name.
12531    ac_srcdir=$srcdir$ac_dir_suffix;
12532    ac_top_srcdir=$srcdir
12533    ac_abs_top_srcdir=$srcdir ;;
12534  *) # Relative name.
12535    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12536    ac_top_srcdir=$ac_top_build_prefix$srcdir
12537    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12538esac
12539ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12540
12541
12542  case $ac_mode in
12543  :F)
12544  #
12545  # CONFIG_FILE
12546  #
12547
12548  case $INSTALL in
12549  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12550  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12551  esac
12552  ac_MKDIR_P=$MKDIR_P
12553  case $MKDIR_P in
12554  [\\/$]* | ?:[\\/]* ) ;;
12555  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12556  esac
12557_ACEOF
12558
12559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12560# If the template does not know about datarootdir, expand it.
12561# FIXME: This hack should be removed a few years after 2.60.
12562ac_datarootdir_hack=; ac_datarootdir_seen=
12563ac_sed_dataroot='
12564/datarootdir/ {
12565  p
12566  q
12567}
12568/@datadir@/p
12569/@docdir@/p
12570/@infodir@/p
12571/@localedir@/p
12572/@mandir@/p'
12573case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12574*datarootdir*) ac_datarootdir_seen=yes;;
12575*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12577printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12578_ACEOF
12579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12580  ac_datarootdir_hack='
12581  s&@datadir@&$datadir&g
12582  s&@docdir@&$docdir&g
12583  s&@infodir@&$infodir&g
12584  s&@localedir@&$localedir&g
12585  s&@mandir@&$mandir&g
12586  s&\\\${datarootdir}&$datarootdir&g' ;;
12587esac
12588_ACEOF
12589
12590# Neutralize VPATH when `$srcdir' = `.'.
12591# Shell code in configure.ac might set extrasub.
12592# FIXME: do we really want to maintain this feature?
12593cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12594ac_sed_extra="$ac_vpsub
12595$extrasub
12596_ACEOF
12597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12598:t
12599/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12600s|@configure_input@|$ac_sed_conf_input|;t t
12601s&@top_builddir@&$ac_top_builddir_sub&;t t
12602s&@top_build_prefix@&$ac_top_build_prefix&;t t
12603s&@srcdir@&$ac_srcdir&;t t
12604s&@abs_srcdir@&$ac_abs_srcdir&;t t
12605s&@top_srcdir@&$ac_top_srcdir&;t t
12606s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12607s&@builddir@&$ac_builddir&;t t
12608s&@abs_builddir@&$ac_abs_builddir&;t t
12609s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12610s&@INSTALL@&$ac_INSTALL&;t t
12611s&@MKDIR_P@&$ac_MKDIR_P&;t t
12612$ac_datarootdir_hack
12613"
12614eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12615  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12616
12617test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12618  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12619  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12620      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12622which seems to be undefined.  Please make sure it is defined" >&5
12623printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12624which seems to be undefined.  Please make sure it is defined" >&2;}
12625
12626  rm -f "$ac_tmp/stdin"
12627  case $ac_file in
12628  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12629  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12630  esac \
12631  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12632 ;;
12633  :H)
12634  #
12635  # CONFIG_HEADER
12636  #
12637  if test x"$ac_file" != x-; then
12638    {
12639      printf "%s\n" "/* $configure_input  */" >&1 \
12640      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12641    } >"$ac_tmp/config.h" \
12642      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12643    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12644      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12645printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12646    else
12647      rm -f "$ac_file"
12648      mv "$ac_tmp/config.h" "$ac_file" \
12649	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12650    fi
12651  else
12652    printf "%s\n" "/* $configure_input  */" >&1 \
12653      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12654      || as_fn_error $? "could not create -" "$LINENO" 5
12655  fi
12656# Compute "$ac_file"'s index in $config_headers.
12657_am_arg="$ac_file"
12658_am_stamp_count=1
12659for _am_header in $config_headers :; do
12660  case $_am_header in
12661    $_am_arg | $_am_arg:* )
12662      break ;;
12663    * )
12664      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12665  esac
12666done
12667echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12668$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12669	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12670	 X"$_am_arg" : 'X\(//\)$' \| \
12671	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12672printf "%s\n" X"$_am_arg" |
12673    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12674	    s//\1/
12675	    q
12676	  }
12677	  /^X\(\/\/\)[^/].*/{
12678	    s//\1/
12679	    q
12680	  }
12681	  /^X\(\/\/\)$/{
12682	    s//\1/
12683	    q
12684	  }
12685	  /^X\(\/\).*/{
12686	    s//\1/
12687	    q
12688	  }
12689	  s/.*/./; q'`/stamp-h$_am_stamp_count
12690 ;;
12691
12692  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12693printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12694 ;;
12695  esac
12696
12697
12698  case $ac_file$ac_mode in
12699    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12700  # Older Autoconf quotes --file arguments for eval, but not when files
12701  # are listed without --file.  Let's play safe and only enable the eval
12702  # if we detect the quoting.
12703  # TODO: see whether this extra hack can be removed once we start
12704  # requiring Autoconf 2.70 or later.
12705  case $CONFIG_FILES in #(
12706  *\'*) :
12707    eval set x "$CONFIG_FILES" ;; #(
12708  *) :
12709    set x $CONFIG_FILES ;; #(
12710  *) :
12711     ;;
12712esac
12713  shift
12714  # Used to flag and report bootstrapping failures.
12715  am_rc=0
12716  for am_mf
12717  do
12718    # Strip MF so we end up with the name of the file.
12719    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12720    # Check whether this is an Automake generated Makefile which includes
12721    # dependency-tracking related rules and includes.
12722    # Grep'ing the whole file directly is not great: AIX grep has a line
12723    # limit of 2048, but all sed's we know have understand at least 4000.
12724    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12725      || continue
12726    am_dirpart=`$as_dirname -- "$am_mf" ||
12727$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12728	 X"$am_mf" : 'X\(//\)[^/]' \| \
12729	 X"$am_mf" : 'X\(//\)$' \| \
12730	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12731printf "%s\n" X"$am_mf" |
12732    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12733	    s//\1/
12734	    q
12735	  }
12736	  /^X\(\/\/\)[^/].*/{
12737	    s//\1/
12738	    q
12739	  }
12740	  /^X\(\/\/\)$/{
12741	    s//\1/
12742	    q
12743	  }
12744	  /^X\(\/\).*/{
12745	    s//\1/
12746	    q
12747	  }
12748	  s/.*/./; q'`
12749    am_filepart=`$as_basename -- "$am_mf" ||
12750$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12751	 X"$am_mf" : 'X\(//\)$' \| \
12752	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12753printf "%s\n" X/"$am_mf" |
12754    sed '/^.*\/\([^/][^/]*\)\/*$/{
12755	    s//\1/
12756	    q
12757	  }
12758	  /^X\/\(\/\/\)$/{
12759	    s//\1/
12760	    q
12761	  }
12762	  /^X\/\(\/\).*/{
12763	    s//\1/
12764	    q
12765	  }
12766	  s/.*/./; q'`
12767    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12768      && sed -e '/# am--include-marker/d' "$am_filepart" \
12769        | $MAKE -f - am--depfiles" >&5
12770   (cd "$am_dirpart" \
12771      && sed -e '/# am--include-marker/d' "$am_filepart" \
12772        | $MAKE -f - am--depfiles) >&5 2>&5
12773   ac_status=$?
12774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775   (exit $ac_status); } || am_rc=$?
12776  done
12777  if test $am_rc -ne 0; then
12778    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12779printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12780as_fn_error $? "Something went wrong bootstrapping makefile fragments
12781    for automatic dependency tracking.  If GNU make was not used, consider
12782    re-running the configure script with MAKE=\"gmake\" (or whatever is
12783    necessary).  You can also try re-running configure with the
12784    '--disable-dependency-tracking' option to at least be able to build
12785    the package (albeit without support for automatic dependency tracking).
12786See \`config.log' for more details" "$LINENO" 5; }
12787  fi
12788  { am_dirpart=; unset am_dirpart;}
12789  { am_filepart=; unset am_filepart;}
12790  { am_mf=; unset am_mf;}
12791  { am_rc=; unset am_rc;}
12792  rm -f conftest-deps.mk
12793}
12794 ;;
12795
12796  esac
12797done # for ac_tag
12798
12799
12800as_fn_exit 0
12801_ACEOF
12802ac_clean_files=$ac_clean_files_save
12803
12804test $ac_write_fail = 0 ||
12805  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12806
12807
12808# configure is writing to config.log, and then calls config.status.
12809# config.status does its own redirection, appending to config.log.
12810# Unfortunately, on DOS this fails, as config.log is still kept open
12811# by configure, so config.status won't be able to write to it; its
12812# output is simply discarded.  So we exec the FD to /dev/null,
12813# effectively closing config.log, so it can be properly (re)opened and
12814# appended to by config.status.  When coming back to configure, we
12815# need to make the FD available again.
12816if test "$no_create" != yes; then
12817  ac_cs_success=:
12818  ac_config_status_args=
12819  test "$silent" = yes &&
12820    ac_config_status_args="$ac_config_status_args --quiet"
12821  exec 5>/dev/null
12822  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12823  exec 5>>config.log
12824  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12825  # would make configure fail if this is the last instruction.
12826  $ac_cs_success || as_fn_exit 1
12827fi
12828if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12830printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12831fi
12832
12833
12834