1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for xclipboard 1.1.5.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xclipboard/-/issue>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else case e in #(
29  e) case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as 'sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed 'exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144then :
145  emulate sh
146  NULLCMD=:
147  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148  # is contrary to our usage.  Disable this feature.
149  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150  setopt NO_GLOB_SUBST
151else case e in #(
152  e) case \`(set -o) 2>/dev/null\` in #(
153  *posix*) :
154    set -o posix ;; #(
155  *) :
156     ;;
157esac ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else case e in #(
176  e) exitcode=1; echo positional parameters were not saved. ;;
177esac
178fi
179test x\$exitcode = x0 || exit 1
180blah=\$(echo \$(echo blah))
181test x\"\$blah\" = xblah || exit 1
182test -x / || exit 1"
183  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187test \$(( 1 + 1 )) = 2 || exit 1"
188  if (eval "$as_required") 2>/dev/null
189then :
190  as_have_required=yes
191else case e in #(
192  e) as_have_required=no ;;
193esac
194fi
195  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196then :
197
198else case e in #(
199  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200as_found=false
201for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202do
203  IFS=$as_save_IFS
204  case $as_dir in #(((
205    '') as_dir=./ ;;
206    */) ;;
207    *) as_dir=$as_dir/ ;;
208  esac
209  as_found=:
210  case $as_dir in #(
211	 /*)
212	   for as_base in sh bash ksh sh5; do
213	     # Try only shells that exist, to save several forks.
214	     as_shell=$as_dir$as_base
215	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217then :
218  CONFIG_SHELL=$as_shell as_have_required=yes
219		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220then :
221  break 2
222fi
223fi
224	   done;;
225       esac
226  as_found=false
227done
228IFS=$as_save_IFS
229if $as_found
230then :
231
232else case e in #(
233  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235then :
236  CONFIG_SHELL=$SHELL as_have_required=yes
237fi ;;
238esac
239fi
240
241
242      if test "x$CONFIG_SHELL" != x
243then :
244  export CONFIG_SHELL
245             # We cannot yet assume a decent shell, so we have to provide a
246# neutralization value for shells without unset; and this also
247# works around shells that cannot unset nonexistent variables.
248# Preserve -v and -x to the replacement shell.
249BASH_ENV=/dev/null
250ENV=/dev/null
251(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252case $- in # ((((
253  *v*x* | *x*v* ) as_opts=-vx ;;
254  *v* ) as_opts=-v ;;
255  *x* ) as_opts=-x ;;
256  * ) as_opts= ;;
257esac
258exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259# Admittedly, this is quite paranoid, since all the known shells bail
260# out after a failed 'exec'.
261printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262exit 255
263fi
264
265    if test x$as_have_required = xno
266then :
267  printf "%s\n" "$0: This script requires a shell more modern than all"
268  printf "%s\n" "$0: the shells that I found on your system."
269  if test ${ZSH_VERSION+y} ; then
270    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272  else
273    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
274$0: https://gitlab.freedesktop.org/xorg/app/xclipboard/-/issue
275$0: about your system, including any error possibly output
276$0: before this message. Then install a modern shell, or
277$0: manually run the script under such a shell if you do
278$0: have one."
279  fi
280  exit 1
281fi ;;
282esac
283fi
284fi
285SHELL=${CONFIG_SHELL-/bin/sh}
286export SHELL
287# Unset more variables known to interfere with behavior of common tools.
288CLICOLOR_FORCE= GREP_OPTIONS=
289unset CLICOLOR_FORCE GREP_OPTIONS
290
291## --------------------- ##
292## M4sh Shell Functions. ##
293## --------------------- ##
294# as_fn_unset VAR
295# ---------------
296# Portably unset VAR.
297as_fn_unset ()
298{
299  { eval $1=; unset $1;}
300}
301as_unset=as_fn_unset
302
303
304# as_fn_set_status STATUS
305# -----------------------
306# Set $? to STATUS, without forking.
307as_fn_set_status ()
308{
309  return $1
310} # as_fn_set_status
311
312# as_fn_exit STATUS
313# -----------------
314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315as_fn_exit ()
316{
317  set +e
318  as_fn_set_status $1
319  exit $1
320} # as_fn_exit
321
322# as_fn_mkdir_p
323# -------------
324# Create "$as_dir" as a directory, including parents if necessary.
325as_fn_mkdir_p ()
326{
327
328  case $as_dir in #(
329  -*) as_dir=./$as_dir;;
330  esac
331  test -d "$as_dir" || eval $as_mkdir_p || {
332    as_dirs=
333    while :; do
334      case $as_dir in #(
335      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336      *) as_qdir=$as_dir;;
337      esac
338      as_dirs="'$as_qdir' $as_dirs"
339      as_dir=`$as_dirname -- "$as_dir" ||
340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341	 X"$as_dir" : 'X\(//\)[^/]' \| \
342	 X"$as_dir" : 'X\(//\)$' \| \
343	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344printf "%s\n" X"$as_dir" |
345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346	    s//\1/
347	    q
348	  }
349	  /^X\(\/\/\)[^/].*/{
350	    s//\1/
351	    q
352	  }
353	  /^X\(\/\/\)$/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\).*/{
358	    s//\1/
359	    q
360	  }
361	  s/.*/./; q'`
362      test -d "$as_dir" && break
363    done
364    test -z "$as_dirs" || eval "mkdir $as_dirs"
365  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368} # as_fn_mkdir_p
369
370# as_fn_executable_p FILE
371# -----------------------
372# Test if FILE is an executable regular file.
373as_fn_executable_p ()
374{
375  test -f "$1" && test -x "$1"
376} # as_fn_executable_p
377# as_fn_append VAR VALUE
378# ----------------------
379# Append the text in VALUE to the end of the definition contained in VAR. Take
380# advantage of any shell optimizations that allow amortized linear growth over
381# repeated appends, instead of the typical quadratic growth present in naive
382# implementations.
383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else case e in #(
390  e) as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  } ;;
394esac
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403then :
404  eval 'as_fn_arith ()
405  {
406    as_val=$(( $* ))
407  }'
408else case e in #(
409  e) as_fn_arith ()
410  {
411    as_val=`expr "$@" || test $? -eq 1`
412  } ;;
413esac
414fi # as_fn_arith
415
416
417# as_fn_error STATUS ERROR [LINENO LOG_FD]
418# ----------------------------------------
419# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421# script with STATUS, using 1 if that was 0.
422as_fn_error ()
423{
424  as_status=$1; test $as_status -eq 0 && as_status=1
425  if test "$4"; then
426    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428  fi
429  printf "%s\n" "$as_me: error: $2" >&2
430  as_fn_exit $as_status
431} # as_fn_error
432
433if expr a : '\(a\)' >/dev/null 2>&1 &&
434   test "X`expr 00001 : '.*\(...\)'`" = X001; then
435  as_expr=expr
436else
437  as_expr=false
438fi
439
440if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
441  as_basename=basename
442else
443  as_basename=false
444fi
445
446if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447  as_dirname=dirname
448else
449  as_dirname=false
450fi
451
452as_me=`$as_basename -- "$0" ||
453$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
454	 X"$0" : 'X\(//\)$' \| \
455	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456printf "%s\n" X/"$0" |
457    sed '/^.*\/\([^/][^/]*\)\/*$/{
458	    s//\1/
459	    q
460	  }
461	  /^X\/\(\/\/\)$/{
462	    s//\1/
463	    q
464	  }
465	  /^X\/\(\/\).*/{
466	    s//\1/
467	    q
468	  }
469	  s/.*/./; q'`
470
471# Avoid depending upon Character Ranges.
472as_cr_letters='abcdefghijklmnopqrstuvwxyz'
473as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
474as_cr_Letters=$as_cr_letters$as_cr_LETTERS
475as_cr_digits='0123456789'
476as_cr_alnum=$as_cr_Letters$as_cr_digits
477
478
479  as_lineno_1=$LINENO as_lineno_1a=$LINENO
480  as_lineno_2=$LINENO as_lineno_2a=$LINENO
481  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
484  sed -n '
485    p
486    /[$]LINENO/=
487  ' <$as_myself |
488    sed '
489      t clear
490      :clear
491      s/[$]LINENO.*/&-/
492      t lineno
493      b
494      :lineno
495      N
496      :loop
497      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498      t loop
499      s/-\n.*//
500    ' >$as_me.lineno &&
501  chmod +x "$as_me.lineno" ||
502    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
503
504  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
505  # already done that, so ensure we don't try to do so again and fall
506  # in an infinite loop.  This has already happened in practice.
507  _as_can_reexec=no; export _as_can_reexec
508  # Don't try to exec as it changes $[0], causing all sort of problems
509  # (the dirname of $[0] is not the place where we might find the
510  # original and so on.  Autoconf is especially sensitive to this).
511  . "./$as_me.lineno"
512  # Exit status is that of the last command.
513  exit
514}
515
516
517# Determine whether it's possible to make 'echo' print without a newline.
518# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519# for compatibility with existing Makefiles.
520ECHO_C= ECHO_N= ECHO_T=
521case `echo -n x` in #(((((
522-n*)
523  case `echo 'xy\c'` in
524  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
525  xy)  ECHO_C='\c';;
526  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
527       ECHO_T='	';;
528  esac;;
529*)
530  ECHO_N='-n';;
531esac
532
533# For backward compatibility with old third-party macros, we provide
534# the shell variables $as_echo and $as_echo_n.  New code should use
535# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536as_echo='printf %s\n'
537as_echo_n='printf %s'
538
539rm -f conf$$ conf$$.exe conf$$.file
540if test -d conf$$.dir; then
541  rm -f conf$$.dir/conf$$.file
542else
543  rm -f conf$$.dir
544  mkdir conf$$.dir 2>/dev/null
545fi
546if (echo >conf$$.file) 2>/dev/null; then
547  if ln -s conf$$.file conf$$ 2>/dev/null; then
548    as_ln_s='ln -s'
549    # ... but there are two gotchas:
550    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
551    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
552    # In both cases, we have to default to 'cp -pR'.
553    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
554      as_ln_s='cp -pR'
555  elif ln conf$$.file conf$$ 2>/dev/null; then
556    as_ln_s=ln
557  else
558    as_ln_s='cp -pR'
559  fi
560else
561  as_ln_s='cp -pR'
562fi
563rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
564rmdir conf$$.dir 2>/dev/null
565
566if mkdir -p . 2>/dev/null; then
567  as_mkdir_p='mkdir -p "$as_dir"'
568else
569  test -d ./-p && rmdir ./-p
570  as_mkdir_p=false
571fi
572
573as_test_x='test -x'
574as_executable_p=as_fn_executable_p
575
576# Sed expression to map a string onto a valid CPP name.
577as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
578as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
579
580# Sed expression to map a string onto a valid variable name.
581as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
582as_tr_sh="eval sed '$as_sed_sh'" # deprecated
583
584
585test -n "$DJDIR" || exec 7<&0 </dev/null
586exec 6>&1
587
588# Name of the host.
589# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
590# so uname gets run too.
591ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
592
593#
594# Initializations.
595#
596ac_default_prefix=/usr/local
597ac_clean_files=
598ac_config_libobj_dir=.
599LIBOBJS=
600cross_compiling=no
601subdirs=
602MFLAGS=
603MAKEFLAGS=
604
605# Identity of this package.
606PACKAGE_NAME='xclipboard'
607PACKAGE_TARNAME='xclipboard'
608PACKAGE_VERSION='1.1.5'
609PACKAGE_STRING='xclipboard 1.1.5'
610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xclipboard/-/issue'
611PACKAGE_URL='https://gitlab.freedesktop.org/xorg/app/xclipboard/'
612
613ac_unique_file="Makefile.am"
614# Factoring default headers for most tests.
615ac_includes_default="\
616#include <stddef.h>
617#ifdef HAVE_STDIO_H
618# include <stdio.h>
619#endif
620#ifdef HAVE_STDLIB_H
621# include <stdlib.h>
622#endif
623#ifdef HAVE_STRING_H
624# include <string.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_STRINGS_H
633# include <strings.h>
634#endif
635#ifdef HAVE_SYS_TYPES_H
636# include <sys/types.h>
637#endif
638#ifdef HAVE_SYS_STAT_H
639# include <sys/stat.h>
640#endif
641#ifdef HAVE_UNISTD_H
642# include <unistd.h>
643#endif"
644
645ac_header_c_list=
646ac_subst_vars='am__EXEEXT_FALSE
647am__EXEEXT_TRUE
648LTLIBOBJS
649LIBOBJS
650appdefaultdir
651APPDEFS_LIBS
652APPDEFS_CFLAGS
653XCLIPBOARD_LIBS
654XCLIPBOARD_CFLAGS
655MAN_SUBSTS
656XORG_MAN_PAGE
657ADMIN_MAN_DIR
658DRIVER_MAN_DIR
659MISC_MAN_DIR
660FILE_MAN_DIR
661LIB_MAN_DIR
662APP_MAN_DIR
663ADMIN_MAN_SUFFIX
664DRIVER_MAN_SUFFIX
665MISC_MAN_SUFFIX
666FILE_MAN_SUFFIX
667LIB_MAN_SUFFIX
668APP_MAN_SUFFIX
669SED
670host_os
671host_vendor
672host_cpu
673host
674build_os
675build_vendor
676build_cpu
677build
678INSTALL_CMD
679PKG_CONFIG_LIBDIR
680PKG_CONFIG_PATH
681PKG_CONFIG
682CHANGELOG_CMD
683STRICT_CFLAGS
684CWARNFLAGS
685BASE_CFLAGS
686am__fastdepCC_FALSE
687am__fastdepCC_TRUE
688CCDEPMODE
689am__nodep
690AMDEPBACKSLASH
691AMDEP_FALSE
692AMDEP_TRUE
693am__include
694DEPDIR
695OBJEXT
696EXEEXT
697ac_ct_CC
698CPPFLAGS
699LDFLAGS
700CFLAGS
701CC
702am__xargs_n
703am__rm_f_notfound
704AM_BACKSLASH
705AM_DEFAULT_VERBOSITY
706AM_DEFAULT_V
707AM_V
708CSCOPE
709ETAGS
710CTAGS
711am__untar
712am__tar
713AMTAR
714am__leading_dot
715SET_MAKE
716AWK
717mkdir_p
718MKDIR_P
719INSTALL_STRIP_PROGRAM
720STRIP
721install_sh
722MAKEINFO
723AUTOHEADER
724AUTOMAKE
725AUTOCONF
726ACLOCAL
727VERSION
728PACKAGE
729CYGPATH_W
730am__isrc
731INSTALL_DATA
732INSTALL_SCRIPT
733INSTALL_PROGRAM
734target_alias
735host_alias
736build_alias
737LIBS
738ECHO_T
739ECHO_N
740ECHO_C
741DEFS
742mandir
743localedir
744libdir
745psdir
746pdfdir
747dvidir
748htmldir
749infodir
750docdir
751oldincludedir
752includedir
753runstatedir
754localstatedir
755sharedstatedir
756sysconfdir
757datadir
758datarootdir
759libexecdir
760sbindir
761bindir
762program_transform_name
763prefix
764exec_prefix
765PACKAGE_URL
766PACKAGE_BUGREPORT
767PACKAGE_STRING
768PACKAGE_VERSION
769PACKAGE_TARNAME
770PACKAGE_NAME
771PATH_SEPARATOR
772SHELL
773am__quote'
774ac_subst_files=''
775ac_user_opts='
776enable_option_checking
777enable_silent_rules
778enable_dependency_tracking
779enable_selective_werror
780enable_strict_compilation
781with_appdefaultdir
782'
783      ac_precious_vars='build_alias
784host_alias
785target_alias
786CC
787CFLAGS
788LDFLAGS
789LIBS
790CPPFLAGS
791PKG_CONFIG
792PKG_CONFIG_PATH
793PKG_CONFIG_LIBDIR
794XCLIPBOARD_CFLAGS
795XCLIPBOARD_LIBS
796APPDEFS_CFLAGS
797APPDEFS_LIBS'
798
799
800# Initialize some variables set by options.
801ac_init_help=
802ac_init_version=false
803ac_unrecognized_opts=
804ac_unrecognized_sep=
805# The variables have the same names as the options, with
806# dashes changed to underlines.
807cache_file=/dev/null
808exec_prefix=NONE
809no_create=
810no_recursion=
811prefix=NONE
812program_prefix=NONE
813program_suffix=NONE
814program_transform_name=s,x,x,
815silent=
816site=
817srcdir=
818verbose=
819x_includes=NONE
820x_libraries=NONE
821
822# Installation directory options.
823# These are left unexpanded so users can "make install exec_prefix=/foo"
824# and all the variables that are supposed to be based on exec_prefix
825# by default will actually change.
826# Use braces instead of parens because sh, perl, etc. also accept them.
827# (The list follows the same order as the GNU Coding Standards.)
828bindir='${exec_prefix}/bin'
829sbindir='${exec_prefix}/sbin'
830libexecdir='${exec_prefix}/libexec'
831datarootdir='${prefix}/share'
832datadir='${datarootdir}'
833sysconfdir='${prefix}/etc'
834sharedstatedir='${prefix}/com'
835localstatedir='${prefix}/var'
836runstatedir='${localstatedir}/run'
837includedir='${prefix}/include'
838oldincludedir='/usr/include'
839docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840infodir='${datarootdir}/info'
841htmldir='${docdir}'
842dvidir='${docdir}'
843pdfdir='${docdir}'
844psdir='${docdir}'
845libdir='${exec_prefix}/lib'
846localedir='${datarootdir}/locale'
847mandir='${datarootdir}/man'
848
849ac_prev=
850ac_dashdash=
851for ac_option
852do
853  # If the previous option needs an argument, assign it.
854  if test -n "$ac_prev"; then
855    eval $ac_prev=\$ac_option
856    ac_prev=
857    continue
858  fi
859
860  case $ac_option in
861  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862  *=)   ac_optarg= ;;
863  *)    ac_optarg=yes ;;
864  esac
865
866  case $ac_dashdash$ac_option in
867  --)
868    ac_dashdash=yes ;;
869
870  -bindir | --bindir | --bindi | --bind | --bin | --bi)
871    ac_prev=bindir ;;
872  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
873    bindir=$ac_optarg ;;
874
875  -build | --build | --buil | --bui | --bu)
876    ac_prev=build_alias ;;
877  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878    build_alias=$ac_optarg ;;
879
880  -cache-file | --cache-file | --cache-fil | --cache-fi \
881  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882    ac_prev=cache_file ;;
883  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885    cache_file=$ac_optarg ;;
886
887  --config-cache | -C)
888    cache_file=config.cache ;;
889
890  -datadir | --datadir | --datadi | --datad)
891    ac_prev=datadir ;;
892  -datadir=* | --datadir=* | --datadi=* | --datad=*)
893    datadir=$ac_optarg ;;
894
895  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896  | --dataroo | --dataro | --datar)
897    ac_prev=datarootdir ;;
898  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900    datarootdir=$ac_optarg ;;
901
902  -disable-* | --disable-*)
903    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904    # Reject names that are not valid shell variable names.
905    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906      as_fn_error $? "invalid feature name: '$ac_useropt'"
907    ac_useropt_orig=$ac_useropt
908    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
909    case $ac_user_opts in
910      *"
911"enable_$ac_useropt"
912"*) ;;
913      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914	 ac_unrecognized_sep=', ';;
915    esac
916    eval enable_$ac_useropt=no ;;
917
918  -docdir | --docdir | --docdi | --doc | --do)
919    ac_prev=docdir ;;
920  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
921    docdir=$ac_optarg ;;
922
923  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
924    ac_prev=dvidir ;;
925  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
926    dvidir=$ac_optarg ;;
927
928  -enable-* | --enable-*)
929    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
930    # Reject names that are not valid shell variable names.
931    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932      as_fn_error $? "invalid feature name: '$ac_useropt'"
933    ac_useropt_orig=$ac_useropt
934    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
935    case $ac_user_opts in
936      *"
937"enable_$ac_useropt"
938"*) ;;
939      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940	 ac_unrecognized_sep=', ';;
941    esac
942    eval enable_$ac_useropt=\$ac_optarg ;;
943
944  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946  | --exec | --exe | --ex)
947    ac_prev=exec_prefix ;;
948  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950  | --exec=* | --exe=* | --ex=*)
951    exec_prefix=$ac_optarg ;;
952
953  -gas | --gas | --ga | --g)
954    # Obsolete; use --with-gas.
955    with_gas=yes ;;
956
957  -help | --help | --hel | --he | -h)
958    ac_init_help=long ;;
959  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960    ac_init_help=recursive ;;
961  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962    ac_init_help=short ;;
963
964  -host | --host | --hos | --ho)
965    ac_prev=host_alias ;;
966  -host=* | --host=* | --hos=* | --ho=*)
967    host_alias=$ac_optarg ;;
968
969  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970    ac_prev=htmldir ;;
971  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972  | --ht=*)
973    htmldir=$ac_optarg ;;
974
975  -includedir | --includedir | --includedi | --included | --include \
976  | --includ | --inclu | --incl | --inc)
977    ac_prev=includedir ;;
978  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979  | --includ=* | --inclu=* | --incl=* | --inc=*)
980    includedir=$ac_optarg ;;
981
982  -infodir | --infodir | --infodi | --infod | --info | --inf)
983    ac_prev=infodir ;;
984  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985    infodir=$ac_optarg ;;
986
987  -libdir | --libdir | --libdi | --libd)
988    ac_prev=libdir ;;
989  -libdir=* | --libdir=* | --libdi=* | --libd=*)
990    libdir=$ac_optarg ;;
991
992  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993  | --libexe | --libex | --libe)
994    ac_prev=libexecdir ;;
995  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996  | --libexe=* | --libex=* | --libe=*)
997    libexecdir=$ac_optarg ;;
998
999  -localedir | --localedir | --localedi | --localed | --locale)
1000    ac_prev=localedir ;;
1001  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002    localedir=$ac_optarg ;;
1003
1004  -localstatedir | --localstatedir | --localstatedi | --localstated \
1005  | --localstate | --localstat | --localsta | --localst | --locals)
1006    ac_prev=localstatedir ;;
1007  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009    localstatedir=$ac_optarg ;;
1010
1011  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012    ac_prev=mandir ;;
1013  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014    mandir=$ac_optarg ;;
1015
1016  -nfp | --nfp | --nf)
1017    # Obsolete; use --without-fp.
1018    with_fp=no ;;
1019
1020  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021  | --no-cr | --no-c | -n)
1022    no_create=yes ;;
1023
1024  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026    no_recursion=yes ;;
1027
1028  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030  | --oldin | --oldi | --old | --ol | --o)
1031    ac_prev=oldincludedir ;;
1032  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035    oldincludedir=$ac_optarg ;;
1036
1037  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038    ac_prev=prefix ;;
1039  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040    prefix=$ac_optarg ;;
1041
1042  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043  | --program-pre | --program-pr | --program-p)
1044    ac_prev=program_prefix ;;
1045  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047    program_prefix=$ac_optarg ;;
1048
1049  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050  | --program-suf | --program-su | --program-s)
1051    ac_prev=program_suffix ;;
1052  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054    program_suffix=$ac_optarg ;;
1055
1056  -program-transform-name | --program-transform-name \
1057  | --program-transform-nam | --program-transform-na \
1058  | --program-transform-n | --program-transform- \
1059  | --program-transform | --program-transfor \
1060  | --program-transfo | --program-transf \
1061  | --program-trans | --program-tran \
1062  | --progr-tra | --program-tr | --program-t)
1063    ac_prev=program_transform_name ;;
1064  -program-transform-name=* | --program-transform-name=* \
1065  | --program-transform-nam=* | --program-transform-na=* \
1066  | --program-transform-n=* | --program-transform-=* \
1067  | --program-transform=* | --program-transfor=* \
1068  | --program-transfo=* | --program-transf=* \
1069  | --program-trans=* | --program-tran=* \
1070  | --progr-tra=* | --program-tr=* | --program-t=*)
1071    program_transform_name=$ac_optarg ;;
1072
1073  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074    ac_prev=pdfdir ;;
1075  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076    pdfdir=$ac_optarg ;;
1077
1078  -psdir | --psdir | --psdi | --psd | --ps)
1079    ac_prev=psdir ;;
1080  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081    psdir=$ac_optarg ;;
1082
1083  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084  | -silent | --silent | --silen | --sile | --sil)
1085    silent=yes ;;
1086
1087  -runstatedir | --runstatedir | --runstatedi | --runstated \
1088  | --runstate | --runstat | --runsta | --runst | --runs \
1089  | --run | --ru | --r)
1090    ac_prev=runstatedir ;;
1091  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1092  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1093  | --run=* | --ru=* | --r=*)
1094    runstatedir=$ac_optarg ;;
1095
1096  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097    ac_prev=sbindir ;;
1098  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099  | --sbi=* | --sb=*)
1100    sbindir=$ac_optarg ;;
1101
1102  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104  | --sharedst | --shareds | --shared | --share | --shar \
1105  | --sha | --sh)
1106    ac_prev=sharedstatedir ;;
1107  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110  | --sha=* | --sh=*)
1111    sharedstatedir=$ac_optarg ;;
1112
1113  -site | --site | --sit)
1114    ac_prev=site ;;
1115  -site=* | --site=* | --sit=*)
1116    site=$ac_optarg ;;
1117
1118  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119    ac_prev=srcdir ;;
1120  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121    srcdir=$ac_optarg ;;
1122
1123  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124  | --syscon | --sysco | --sysc | --sys | --sy)
1125    ac_prev=sysconfdir ;;
1126  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128    sysconfdir=$ac_optarg ;;
1129
1130  -target | --target | --targe | --targ | --tar | --ta | --t)
1131    ac_prev=target_alias ;;
1132  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133    target_alias=$ac_optarg ;;
1134
1135  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136    verbose=yes ;;
1137
1138  -version | --version | --versio | --versi | --vers | -V)
1139    ac_init_version=: ;;
1140
1141  -with-* | --with-*)
1142    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143    # Reject names that are not valid shell variable names.
1144    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145      as_fn_error $? "invalid package name: '$ac_useropt'"
1146    ac_useropt_orig=$ac_useropt
1147    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1148    case $ac_user_opts in
1149      *"
1150"with_$ac_useropt"
1151"*) ;;
1152      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1153	 ac_unrecognized_sep=', ';;
1154    esac
1155    eval with_$ac_useropt=\$ac_optarg ;;
1156
1157  -without-* | --without-*)
1158    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159    # Reject names that are not valid shell variable names.
1160    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161      as_fn_error $? "invalid package name: '$ac_useropt'"
1162    ac_useropt_orig=$ac_useropt
1163    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1164    case $ac_user_opts in
1165      *"
1166"with_$ac_useropt"
1167"*) ;;
1168      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1169	 ac_unrecognized_sep=', ';;
1170    esac
1171    eval with_$ac_useropt=no ;;
1172
1173  --x)
1174    # Obsolete; use --with-x.
1175    with_x=yes ;;
1176
1177  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1178  | --x-incl | --x-inc | --x-in | --x-i)
1179    ac_prev=x_includes ;;
1180  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1181  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1182    x_includes=$ac_optarg ;;
1183
1184  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1185  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1186    ac_prev=x_libraries ;;
1187  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1188  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1189    x_libraries=$ac_optarg ;;
1190
1191  -*) as_fn_error $? "unrecognized option: '$ac_option'
1192Try '$0 --help' for more information"
1193    ;;
1194
1195  *=*)
1196    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1197    # Reject names that are not valid shell variable names.
1198    case $ac_envvar in #(
1199      '' | [0-9]* | *[!_$as_cr_alnum]* )
1200      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1201    esac
1202    eval $ac_envvar=\$ac_optarg
1203    export $ac_envvar ;;
1204
1205  *)
1206    # FIXME: should be removed in autoconf 3.0.
1207    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1208    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1209      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1210    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1211    ;;
1212
1213  esac
1214done
1215
1216if test -n "$ac_prev"; then
1217  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1218  as_fn_error $? "missing argument to $ac_option"
1219fi
1220
1221if test -n "$ac_unrecognized_opts"; then
1222  case $enable_option_checking in
1223    no) ;;
1224    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1225    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1226  esac
1227fi
1228
1229# Check all directory arguments for consistency.
1230for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1231		datadir sysconfdir sharedstatedir localstatedir includedir \
1232		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1233		libdir localedir mandir runstatedir
1234do
1235  eval ac_val=\$$ac_var
1236  # Remove trailing slashes.
1237  case $ac_val in
1238    */ )
1239      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1240      eval $ac_var=\$ac_val;;
1241  esac
1242  # Be sure to have absolute directory names.
1243  case $ac_val in
1244    [\\/$]* | ?:[\\/]* )  continue;;
1245    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1246  esac
1247  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1248done
1249
1250# There might be people who depend on the old broken behavior: '$host'
1251# used to hold the argument of --host etc.
1252# FIXME: To remove some day.
1253build=$build_alias
1254host=$host_alias
1255target=$target_alias
1256
1257# FIXME: To remove some day.
1258if test "x$host_alias" != x; then
1259  if test "x$build_alias" = x; then
1260    cross_compiling=maybe
1261  elif test "x$build_alias" != "x$host_alias"; then
1262    cross_compiling=yes
1263  fi
1264fi
1265
1266ac_tool_prefix=
1267test -n "$host_alias" && ac_tool_prefix=$host_alias-
1268
1269test "$silent" = yes && exec 6>/dev/null
1270
1271
1272ac_pwd=`pwd` && test -n "$ac_pwd" &&
1273ac_ls_di=`ls -di .` &&
1274ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1275  as_fn_error $? "working directory cannot be determined"
1276test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1277  as_fn_error $? "pwd does not report name of working directory"
1278
1279
1280# Find the source files, if location was not specified.
1281if test -z "$srcdir"; then
1282  ac_srcdir_defaulted=yes
1283  # Try the directory containing this script, then the parent directory.
1284  ac_confdir=`$as_dirname -- "$as_myself" ||
1285$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286	 X"$as_myself" : 'X\(//\)[^/]' \| \
1287	 X"$as_myself" : 'X\(//\)$' \| \
1288	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1289printf "%s\n" X"$as_myself" |
1290    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291	    s//\1/
1292	    q
1293	  }
1294	  /^X\(\/\/\)[^/].*/{
1295	    s//\1/
1296	    q
1297	  }
1298	  /^X\(\/\/\)$/{
1299	    s//\1/
1300	    q
1301	  }
1302	  /^X\(\/\).*/{
1303	    s//\1/
1304	    q
1305	  }
1306	  s/.*/./; q'`
1307  srcdir=$ac_confdir
1308  if test ! -r "$srcdir/$ac_unique_file"; then
1309    srcdir=..
1310  fi
1311else
1312  ac_srcdir_defaulted=no
1313fi
1314if test ! -r "$srcdir/$ac_unique_file"; then
1315  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1317fi
1318ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1319ac_abs_confdir=`(
1320	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1321	pwd)`
1322# When building in place, set srcdir=.
1323if test "$ac_abs_confdir" = "$ac_pwd"; then
1324  srcdir=.
1325fi
1326# Remove unnecessary trailing slashes from srcdir.
1327# Double slashes in file names in object file debugging info
1328# mess up M-x gdb in Emacs.
1329case $srcdir in
1330*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331esac
1332for ac_var in $ac_precious_vars; do
1333  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1334  eval ac_env_${ac_var}_value=\$${ac_var}
1335  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1336  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1337done
1338
1339#
1340# Report the --help message.
1341#
1342if test "$ac_init_help" = "long"; then
1343  # Omit some internal or obsolete options to make the list less imposing.
1344  # This message is too long to be a string in the A/UX 3.1 sh.
1345  cat <<_ACEOF
1346'configure' configures xclipboard 1.1.5 to adapt to many kinds of systems.
1347
1348Usage: $0 [OPTION]... [VAR=VALUE]...
1349
1350To assign environment variables (e.g., CC, CFLAGS...), specify them as
1351VAR=VALUE.  See below for descriptions of some of the useful variables.
1352
1353Defaults for the options are specified in brackets.
1354
1355Configuration:
1356  -h, --help              display this help and exit
1357      --help=short        display options specific to this package
1358      --help=recursive    display the short help of all the included packages
1359  -V, --version           display version information and exit
1360  -q, --quiet, --silent   do not print 'checking ...' messages
1361      --cache-file=FILE   cache test results in FILE [disabled]
1362  -C, --config-cache      alias for '--cache-file=config.cache'
1363  -n, --no-create         do not create output files
1364      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1365
1366Installation directories:
1367  --prefix=PREFIX         install architecture-independent files in PREFIX
1368                          [$ac_default_prefix]
1369  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1370                          [PREFIX]
1371
1372By default, 'make install' will install all the files in
1373'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1374an installation prefix other than '$ac_default_prefix' using '--prefix',
1375for instance '--prefix=\$HOME'.
1376
1377For better control, use the options below.
1378
1379Fine tuning of the installation directories:
1380  --bindir=DIR            user executables [EPREFIX/bin]
1381  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1382  --libexecdir=DIR        program executables [EPREFIX/libexec]
1383  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1384  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1385  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1386  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1387  --libdir=DIR            object code libraries [EPREFIX/lib]
1388  --includedir=DIR        C header files [PREFIX/include]
1389  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1390  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1391  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1392  --infodir=DIR           info documentation [DATAROOTDIR/info]
1393  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1394  --mandir=DIR            man documentation [DATAROOTDIR/man]
1395  --docdir=DIR            documentation root [DATAROOTDIR/doc/xclipboard]
1396  --htmldir=DIR           html documentation [DOCDIR]
1397  --dvidir=DIR            dvi documentation [DOCDIR]
1398  --pdfdir=DIR            pdf documentation [DOCDIR]
1399  --psdir=DIR             ps documentation [DOCDIR]
1400_ACEOF
1401
1402  cat <<\_ACEOF
1403
1404Program names:
1405  --program-prefix=PREFIX            prepend PREFIX to installed program names
1406  --program-suffix=SUFFIX            append SUFFIX to installed program names
1407  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1408
1409System types:
1410  --build=BUILD     configure for building on BUILD [guessed]
1411  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1412_ACEOF
1413fi
1414
1415if test -n "$ac_init_help"; then
1416  case $ac_init_help in
1417     short | recursive ) echo "Configuration of xclipboard 1.1.5:";;
1418   esac
1419  cat <<\_ACEOF
1420
1421Optional Features:
1422  --disable-option-checking  ignore unrecognized --enable/--with options
1423  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1424  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1425  --enable-silent-rules   less verbose build output (undo: "make V=1")
1426  --disable-silent-rules  verbose build output (undo: "make V=0")
1427  --enable-dependency-tracking
1428                          do not reject slow dependency extractors
1429  --disable-dependency-tracking
1430                          speeds up one-time build
1431  --disable-selective-werror
1432                          Turn off selective compiler errors. (default:
1433                          enabled)
1434  --enable-strict-compilation
1435                          Enable all warnings from compiler and make them
1436                          errors (default: disabled)
1437
1438Optional Packages:
1439  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1440  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1441  --with-appdefaultdir=<pathname>
1442                          specify directory for app-defaults files (default is
1443                          autodetected)
1444
1445Some influential environment variables:
1446  CC          C compiler command
1447  CFLAGS      C compiler flags
1448  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1449              nonstandard directory <lib dir>
1450  LIBS        libraries to pass to the linker, e.g. -l<library>
1451  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1452              you have headers in a nonstandard directory <include dir>
1453  PKG_CONFIG  path to pkg-config utility
1454  PKG_CONFIG_PATH
1455              directories to add to pkg-config's search path
1456  PKG_CONFIG_LIBDIR
1457              path overriding pkg-config's built-in search path
1458  XCLIPBOARD_CFLAGS
1459              C compiler flags for XCLIPBOARD, overriding pkg-config
1460  XCLIPBOARD_LIBS
1461              linker flags for XCLIPBOARD, overriding pkg-config
1462  APPDEFS_CFLAGS
1463              C compiler flags for APPDEFS, overriding pkg-config
1464  APPDEFS_LIBS
1465              linker flags for APPDEFS, overriding pkg-config
1466
1467Use these variables to override the choices made by 'configure' or to help
1468it to find libraries and programs with nonstandard names/locations.
1469
1470Report bugs to <https://gitlab.freedesktop.org/xorg/app/xclipboard/-/issue>.
1471xclipboard home page: <https://gitlab.freedesktop.org/xorg/app/xclipboard/>.
1472_ACEOF
1473ac_status=$?
1474fi
1475
1476if test "$ac_init_help" = "recursive"; then
1477  # If there are subdirs, report their specific --help.
1478  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479    test -d "$ac_dir" ||
1480      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481      continue
1482    ac_builddir=.
1483
1484case "$ac_dir" in
1485.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486*)
1487  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1488  # A ".." for each directory in $ac_dir_suffix.
1489  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490  case $ac_top_builddir_sub in
1491  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493  esac ;;
1494esac
1495ac_abs_top_builddir=$ac_pwd
1496ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497# for backward compatibility:
1498ac_top_builddir=$ac_top_build_prefix
1499
1500case $srcdir in
1501  .)  # We are building in place.
1502    ac_srcdir=.
1503    ac_top_srcdir=$ac_top_builddir_sub
1504    ac_abs_top_srcdir=$ac_pwd ;;
1505  [\\/]* | ?:[\\/]* )  # Absolute name.
1506    ac_srcdir=$srcdir$ac_dir_suffix;
1507    ac_top_srcdir=$srcdir
1508    ac_abs_top_srcdir=$srcdir ;;
1509  *) # Relative name.
1510    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511    ac_top_srcdir=$ac_top_build_prefix$srcdir
1512    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513esac
1514ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516    cd "$ac_dir" || { ac_status=$?; continue; }
1517    # Check for configure.gnu first; this name is used for a wrapper for
1518    # Metaconfig's "Configure" on case-insensitive file systems.
1519    if test -f "$ac_srcdir/configure.gnu"; then
1520      echo &&
1521      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522    elif test -f "$ac_srcdir/configure"; then
1523      echo &&
1524      $SHELL "$ac_srcdir/configure" --help=recursive
1525    else
1526      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527    fi || ac_status=$?
1528    cd "$ac_pwd" || { ac_status=$?; break; }
1529  done
1530fi
1531
1532test -n "$ac_init_help" && exit $ac_status
1533if $ac_init_version; then
1534  cat <<\_ACEOF
1535xclipboard configure 1.1.5
1536generated by GNU Autoconf 2.72
1537
1538Copyright (C) 2023 Free Software Foundation, Inc.
1539This configure script is free software; the Free Software Foundation
1540gives unlimited permission to copy, distribute and modify it.
1541_ACEOF
1542  exit
1543fi
1544
1545## ------------------------ ##
1546## Autoconf initialization. ##
1547## ------------------------ ##
1548
1549# ac_fn_c_try_compile LINENO
1550# --------------------------
1551# Try to compile conftest.$ac_ext, and return whether this succeeded.
1552ac_fn_c_try_compile ()
1553{
1554  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555  rm -f conftest.$ac_objext conftest.beam
1556  if { { ac_try="$ac_compile"
1557case "(($ac_try" in
1558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559  *) ac_try_echo=$ac_try;;
1560esac
1561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562printf "%s\n" "$ac_try_echo"; } >&5
1563  (eval "$ac_compile") 2>conftest.err
1564  ac_status=$?
1565  if test -s conftest.err; then
1566    grep -v '^ *+' conftest.err >conftest.er1
1567    cat conftest.er1 >&5
1568    mv -f conftest.er1 conftest.err
1569  fi
1570  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571  test $ac_status = 0; } && {
1572	 test -z "$ac_c_werror_flag" ||
1573	 test ! -s conftest.err
1574       } && test -s conftest.$ac_objext
1575then :
1576  ac_retval=0
1577else case e in #(
1578  e) printf "%s\n" "$as_me: failed program was:" >&5
1579sed 's/^/| /' conftest.$ac_ext >&5
1580
1581	ac_retval=1 ;;
1582esac
1583fi
1584  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585  as_fn_set_status $ac_retval
1586
1587} # ac_fn_c_try_compile
1588
1589# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1590# ------------------------------------------------------------------
1591# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1592# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1593ac_fn_check_decl ()
1594{
1595  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596  as_decl_name=`echo $2|sed 's/ *(.*//'`
1597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1598printf %s "checking whether $as_decl_name is declared... " >&6; }
1599if eval test \${$3+y}
1600then :
1601  printf %s "(cached) " >&6
1602else case e in #(
1603  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1604  eval ac_save_FLAGS=\$$6
1605  as_fn_append $6 " $5"
1606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607/* end confdefs.h.  */
1608$4
1609int
1610main (void)
1611{
1612#ifndef $as_decl_name
1613#ifdef __cplusplus
1614  (void) $as_decl_use;
1615#else
1616  (void) $as_decl_name;
1617#endif
1618#endif
1619
1620  ;
1621  return 0;
1622}
1623_ACEOF
1624if ac_fn_c_try_compile "$LINENO"
1625then :
1626  eval "$3=yes"
1627else case e in #(
1628  e) eval "$3=no" ;;
1629esac
1630fi
1631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1632  eval $6=\$ac_save_FLAGS
1633 ;;
1634esac
1635fi
1636eval ac_res=\$$3
1637	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638printf "%s\n" "$ac_res" >&6; }
1639  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640
1641} # ac_fn_check_decl
1642
1643# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1644# -------------------------------------------------------
1645# Tests whether HEADER exists and can be compiled using the include files in
1646# INCLUDES, setting the cache variable VAR accordingly.
1647ac_fn_c_check_header_compile ()
1648{
1649  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651printf %s "checking for $2... " >&6; }
1652if eval test \${$3+y}
1653then :
1654  printf %s "(cached) " >&6
1655else case e in #(
1656  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657/* end confdefs.h.  */
1658$4
1659#include <$2>
1660_ACEOF
1661if ac_fn_c_try_compile "$LINENO"
1662then :
1663  eval "$3=yes"
1664else case e in #(
1665  e) eval "$3=no" ;;
1666esac
1667fi
1668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1669esac
1670fi
1671eval ac_res=\$$3
1672	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673printf "%s\n" "$ac_res" >&6; }
1674  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675
1676} # ac_fn_c_check_header_compile
1677
1678# ac_fn_c_try_link LINENO
1679# -----------------------
1680# Try to link conftest.$ac_ext, and return whether this succeeded.
1681ac_fn_c_try_link ()
1682{
1683  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1685  if { { ac_try="$ac_link"
1686case "(($ac_try" in
1687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688  *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691printf "%s\n" "$ac_try_echo"; } >&5
1692  (eval "$ac_link") 2>conftest.err
1693  ac_status=$?
1694  if test -s conftest.err; then
1695    grep -v '^ *+' conftest.err >conftest.er1
1696    cat conftest.er1 >&5
1697    mv -f conftest.er1 conftest.err
1698  fi
1699  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700  test $ac_status = 0; } && {
1701	 test -z "$ac_c_werror_flag" ||
1702	 test ! -s conftest.err
1703       } && test -s conftest$ac_exeext && {
1704	 test "$cross_compiling" = yes ||
1705	 test -x conftest$ac_exeext
1706       }
1707then :
1708  ac_retval=0
1709else case e in #(
1710  e) printf "%s\n" "$as_me: failed program was:" >&5
1711sed 's/^/| /' conftest.$ac_ext >&5
1712
1713	ac_retval=1 ;;
1714esac
1715fi
1716  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718  # interfere with the next link command; also delete a directory that is
1719  # left behind by Apple's compiler.  We do this before executing the actions.
1720  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722  as_fn_set_status $ac_retval
1723
1724} # ac_fn_c_try_link
1725ac_configure_args_raw=
1726for ac_arg
1727do
1728  case $ac_arg in
1729  *\'*)
1730    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1731  esac
1732  as_fn_append ac_configure_args_raw " '$ac_arg'"
1733done
1734
1735case $ac_configure_args_raw in
1736  *$as_nl*)
1737    ac_safe_unquote= ;;
1738  *)
1739    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1740    ac_unsafe_a="$ac_unsafe_z#~"
1741    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1742    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1743esac
1744
1745cat >config.log <<_ACEOF
1746This file contains any messages produced by compilers while
1747running configure, to aid debugging if configure makes a mistake.
1748
1749It was created by xclipboard $as_me 1.1.5, which was
1750generated by GNU Autoconf 2.72.  Invocation command line was
1751
1752  $ $0$ac_configure_args_raw
1753
1754_ACEOF
1755exec 5>>config.log
1756{
1757cat <<_ASUNAME
1758## --------- ##
1759## Platform. ##
1760## --------- ##
1761
1762hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1763uname -m = `(uname -m) 2>/dev/null || echo unknown`
1764uname -r = `(uname -r) 2>/dev/null || echo unknown`
1765uname -s = `(uname -s) 2>/dev/null || echo unknown`
1766uname -v = `(uname -v) 2>/dev/null || echo unknown`
1767
1768/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1769/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1770
1771/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1772/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1773/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1774/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1775/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1776/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1777/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1778
1779_ASUNAME
1780
1781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782for as_dir in $PATH
1783do
1784  IFS=$as_save_IFS
1785  case $as_dir in #(((
1786    '') as_dir=./ ;;
1787    */) ;;
1788    *) as_dir=$as_dir/ ;;
1789  esac
1790    printf "%s\n" "PATH: $as_dir"
1791  done
1792IFS=$as_save_IFS
1793
1794} >&5
1795
1796cat >&5 <<_ACEOF
1797
1798
1799## ----------- ##
1800## Core tests. ##
1801## ----------- ##
1802
1803_ACEOF
1804
1805
1806# Keep a trace of the command line.
1807# Strip out --no-create and --no-recursion so they do not pile up.
1808# Strip out --silent because we don't want to record it for future runs.
1809# Also quote any args containing shell meta-characters.
1810# Make two passes to allow for proper duplicate-argument suppression.
1811ac_configure_args=
1812ac_configure_args0=
1813ac_configure_args1=
1814ac_must_keep_next=false
1815for ac_pass in 1 2
1816do
1817  for ac_arg
1818  do
1819    case $ac_arg in
1820    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1821    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1822    | -silent | --silent | --silen | --sile | --sil)
1823      continue ;;
1824    *\'*)
1825      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1826    esac
1827    case $ac_pass in
1828    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1829    2)
1830      as_fn_append ac_configure_args1 " '$ac_arg'"
1831      if test $ac_must_keep_next = true; then
1832	ac_must_keep_next=false # Got value, back to normal.
1833      else
1834	case $ac_arg in
1835	  *=* | --config-cache | -C | -disable-* | --disable-* \
1836	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1837	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1838	  | -with-* | --with-* | -without-* | --without-* | --x)
1839	    case "$ac_configure_args0 " in
1840	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1841	    esac
1842	    ;;
1843	  -* ) ac_must_keep_next=true ;;
1844	esac
1845      fi
1846      as_fn_append ac_configure_args " '$ac_arg'"
1847      ;;
1848    esac
1849  done
1850done
1851{ ac_configure_args0=; unset ac_configure_args0;}
1852{ ac_configure_args1=; unset ac_configure_args1;}
1853
1854# When interrupted or exit'd, cleanup temporary files, and complete
1855# config.log.  We remove comments because anyway the quotes in there
1856# would cause problems or look ugly.
1857# WARNING: Use '\'' to represent an apostrophe within the trap.
1858# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1859trap 'exit_status=$?
1860  # Sanitize IFS.
1861  IFS=" ""	$as_nl"
1862  # Save into config.log some information that might help in debugging.
1863  {
1864    echo
1865
1866    printf "%s\n" "## ---------------- ##
1867## Cache variables. ##
1868## ---------------- ##"
1869    echo
1870    # The following way of writing the cache mishandles newlines in values,
1871(
1872  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1873    eval ac_val=\$$ac_var
1874    case $ac_val in #(
1875    *${as_nl}*)
1876      case $ac_var in #(
1877      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1878printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1879      esac
1880      case $ac_var in #(
1881      _ | IFS | as_nl) ;; #(
1882      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1883      *) { eval $ac_var=; unset $ac_var;} ;;
1884      esac ;;
1885    esac
1886  done
1887  (set) 2>&1 |
1888    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1889    *${as_nl}ac_space=\ *)
1890      sed -n \
1891	"s/'\''/'\''\\\\'\'''\''/g;
1892	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1893      ;; #(
1894    *)
1895      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1896      ;;
1897    esac |
1898    sort
1899)
1900    echo
1901
1902    printf "%s\n" "## ----------------- ##
1903## Output variables. ##
1904## ----------------- ##"
1905    echo
1906    for ac_var in $ac_subst_vars
1907    do
1908      eval ac_val=\$$ac_var
1909      case $ac_val in
1910      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1911      esac
1912      printf "%s\n" "$ac_var='\''$ac_val'\''"
1913    done | sort
1914    echo
1915
1916    if test -n "$ac_subst_files"; then
1917      printf "%s\n" "## ------------------- ##
1918## File substitutions. ##
1919## ------------------- ##"
1920      echo
1921      for ac_var in $ac_subst_files
1922      do
1923	eval ac_val=\$$ac_var
1924	case $ac_val in
1925	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1926	esac
1927	printf "%s\n" "$ac_var='\''$ac_val'\''"
1928      done | sort
1929      echo
1930    fi
1931
1932    if test -s confdefs.h; then
1933      printf "%s\n" "## ----------- ##
1934## confdefs.h. ##
1935## ----------- ##"
1936      echo
1937      cat confdefs.h
1938      echo
1939    fi
1940    test "$ac_signal" != 0 &&
1941      printf "%s\n" "$as_me: caught signal $ac_signal"
1942    printf "%s\n" "$as_me: exit $exit_status"
1943  } >&5
1944  rm -f core *.core core.conftest.* &&
1945    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1946    exit $exit_status
1947' 0
1948for ac_signal in 1 2 13 15; do
1949  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1950done
1951ac_signal=0
1952
1953# confdefs.h avoids OS command line length limits that DEFS can exceed.
1954rm -f -r conftest* confdefs.h
1955
1956printf "%s\n" "/* confdefs.h */" > confdefs.h
1957
1958# Predefined preprocessor variables.
1959
1960printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1961
1962printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1963
1964printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1965
1966printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1967
1968printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1969
1970printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1971
1972
1973# Let the site file select an alternate cache file if it wants to.
1974# Prefer an explicitly selected file to automatically selected ones.
1975if test -n "$CONFIG_SITE"; then
1976  ac_site_files="$CONFIG_SITE"
1977elif test "x$prefix" != xNONE; then
1978  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1979else
1980  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1981fi
1982
1983for ac_site_file in $ac_site_files
1984do
1985  case $ac_site_file in #(
1986  */*) :
1987     ;; #(
1988  *) :
1989    ac_site_file=./$ac_site_file ;;
1990esac
1991  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1992    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1993printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1994    sed 's/^/| /' "$ac_site_file" >&5
1995    . "$ac_site_file" \
1996      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1997printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1998as_fn_error $? "failed to load site script $ac_site_file
1999See 'config.log' for more details" "$LINENO" 5; }
2000  fi
2001done
2002
2003if test -r "$cache_file"; then
2004  # Some versions of bash will fail to source /dev/null (special files
2005  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2006  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2007    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2008printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2009    case $cache_file in
2010      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2011      *)                      . "./$cache_file";;
2012    esac
2013  fi
2014else
2015  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2016printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2017  >$cache_file
2018fi
2019
2020# Test code for whether the C compiler supports C89 (global declarations)
2021ac_c_conftest_c89_globals='
2022/* Does the compiler advertise C89 conformance?
2023   Do not test the value of __STDC__, because some compilers set it to 0
2024   while being otherwise adequately conformant. */
2025#if !defined __STDC__
2026# error "Compiler does not advertise C89 conformance"
2027#endif
2028
2029#include <stddef.h>
2030#include <stdarg.h>
2031struct stat;
2032/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2033struct buf { int x; };
2034struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2035static char *e (char **p, int i)
2036{
2037  return p[i];
2038}
2039static char *f (char * (*g) (char **, int), char **p, ...)
2040{
2041  char *s;
2042  va_list v;
2043  va_start (v,p);
2044  s = g (p, va_arg (v,int));
2045  va_end (v);
2046  return s;
2047}
2048
2049/* C89 style stringification. */
2050#define noexpand_stringify(a) #a
2051const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2052
2053/* C89 style token pasting.  Exercises some of the corner cases that
2054   e.g. old MSVC gets wrong, but not very hard. */
2055#define noexpand_concat(a,b) a##b
2056#define expand_concat(a,b) noexpand_concat(a,b)
2057extern int vA;
2058extern int vbee;
2059#define aye A
2060#define bee B
2061int *pvA = &expand_concat(v,aye);
2062int *pvbee = &noexpand_concat(v,bee);
2063
2064/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2065   function prototypes and stuff, but not \xHH hex character constants.
2066   These do not provoke an error unfortunately, instead are silently treated
2067   as an "x".  The following induces an error, until -std is added to get
2068   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2069   array size at least.  It is necessary to write \x00 == 0 to get something
2070   that is true only with -std.  */
2071int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2072
2073/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2074   inside strings and character constants.  */
2075#define FOO(x) '\''x'\''
2076int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2077
2078int test (int i, double x);
2079struct s1 {int (*f) (int a);};
2080struct s2 {int (*f) (double a);};
2081int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2082               int, int);'
2083
2084# Test code for whether the C compiler supports C89 (body of main).
2085ac_c_conftest_c89_main='
2086ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2087'
2088
2089# Test code for whether the C compiler supports C99 (global declarations)
2090ac_c_conftest_c99_globals='
2091/* Does the compiler advertise C99 conformance? */
2092#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2093# error "Compiler does not advertise C99 conformance"
2094#endif
2095
2096// See if C++-style comments work.
2097
2098#include <stdbool.h>
2099extern int puts (const char *);
2100extern int printf (const char *, ...);
2101extern int dprintf (int, const char *, ...);
2102extern void *malloc (size_t);
2103extern void free (void *);
2104
2105// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2106// dprintf is used instead of fprintf to avoid needing to declare
2107// FILE and stderr.
2108#define debug(...) dprintf (2, __VA_ARGS__)
2109#define showlist(...) puts (#__VA_ARGS__)
2110#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2111static void
2112test_varargs_macros (void)
2113{
2114  int x = 1234;
2115  int y = 5678;
2116  debug ("Flag");
2117  debug ("X = %d\n", x);
2118  showlist (The first, second, and third items.);
2119  report (x>y, "x is %d but y is %d", x, y);
2120}
2121
2122// Check long long types.
2123#define BIG64 18446744073709551615ull
2124#define BIG32 4294967295ul
2125#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2126#if !BIG_OK
2127  #error "your preprocessor is broken"
2128#endif
2129#if BIG_OK
2130#else
2131  #error "your preprocessor is broken"
2132#endif
2133static long long int bignum = -9223372036854775807LL;
2134static unsigned long long int ubignum = BIG64;
2135
2136struct incomplete_array
2137{
2138  int datasize;
2139  double data[];
2140};
2141
2142struct named_init {
2143  int number;
2144  const wchar_t *name;
2145  double average;
2146};
2147
2148typedef const char *ccp;
2149
2150static inline int
2151test_restrict (ccp restrict text)
2152{
2153  // Iterate through items via the restricted pointer.
2154  // Also check for declarations in for loops.
2155  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2156    continue;
2157  return 0;
2158}
2159
2160// Check varargs and va_copy.
2161static bool
2162test_varargs (const char *format, ...)
2163{
2164  va_list args;
2165  va_start (args, format);
2166  va_list args_copy;
2167  va_copy (args_copy, args);
2168
2169  const char *str = "";
2170  int number = 0;
2171  float fnumber = 0;
2172
2173  while (*format)
2174    {
2175      switch (*format++)
2176	{
2177	case '\''s'\'': // string
2178	  str = va_arg (args_copy, const char *);
2179	  break;
2180	case '\''d'\'': // int
2181	  number = va_arg (args_copy, int);
2182	  break;
2183	case '\''f'\'': // float
2184	  fnumber = va_arg (args_copy, double);
2185	  break;
2186	default:
2187	  break;
2188	}
2189    }
2190  va_end (args_copy);
2191  va_end (args);
2192
2193  return *str && number && fnumber;
2194}
2195'
2196
2197# Test code for whether the C compiler supports C99 (body of main).
2198ac_c_conftest_c99_main='
2199  // Check bool.
2200  _Bool success = false;
2201  success |= (argc != 0);
2202
2203  // Check restrict.
2204  if (test_restrict ("String literal") == 0)
2205    success = true;
2206  char *restrict newvar = "Another string";
2207
2208  // Check varargs.
2209  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2210  test_varargs_macros ();
2211
2212  // Check flexible array members.
2213  struct incomplete_array *ia =
2214    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2215  ia->datasize = 10;
2216  for (int i = 0; i < ia->datasize; ++i)
2217    ia->data[i] = i * 1.234;
2218  // Work around memory leak warnings.
2219  free (ia);
2220
2221  // Check named initializers.
2222  struct named_init ni = {
2223    .number = 34,
2224    .name = L"Test wide string",
2225    .average = 543.34343,
2226  };
2227
2228  ni.number = 58;
2229
2230  int dynamic_array[ni.number];
2231  dynamic_array[0] = argv[0][0];
2232  dynamic_array[ni.number - 1] = 543;
2233
2234  // work around unused variable warnings
2235  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2236	 || dynamic_array[ni.number - 1] != 543);
2237'
2238
2239# Test code for whether the C compiler supports C11 (global declarations)
2240ac_c_conftest_c11_globals='
2241/* Does the compiler advertise C11 conformance? */
2242#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2243# error "Compiler does not advertise C11 conformance"
2244#endif
2245
2246// Check _Alignas.
2247char _Alignas (double) aligned_as_double;
2248char _Alignas (0) no_special_alignment;
2249extern char aligned_as_int;
2250char _Alignas (0) _Alignas (int) aligned_as_int;
2251
2252// Check _Alignof.
2253enum
2254{
2255  int_alignment = _Alignof (int),
2256  int_array_alignment = _Alignof (int[100]),
2257  char_alignment = _Alignof (char)
2258};
2259_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2260
2261// Check _Noreturn.
2262int _Noreturn does_not_return (void) { for (;;) continue; }
2263
2264// Check _Static_assert.
2265struct test_static_assert
2266{
2267  int x;
2268  _Static_assert (sizeof (int) <= sizeof (long int),
2269                  "_Static_assert does not work in struct");
2270  long int y;
2271};
2272
2273// Check UTF-8 literals.
2274#define u8 syntax error!
2275char const utf8_literal[] = u8"happens to be ASCII" "another string";
2276
2277// Check duplicate typedefs.
2278typedef long *long_ptr;
2279typedef long int *long_ptr;
2280typedef long_ptr long_ptr;
2281
2282// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2283struct anonymous
2284{
2285  union {
2286    struct { int i; int j; };
2287    struct { int k; long int l; } w;
2288  };
2289  int m;
2290} v1;
2291'
2292
2293# Test code for whether the C compiler supports C11 (body of main).
2294ac_c_conftest_c11_main='
2295  _Static_assert ((offsetof (struct anonymous, i)
2296		   == offsetof (struct anonymous, w.k)),
2297		  "Anonymous union alignment botch");
2298  v1.i = 2;
2299  v1.w.k = 5;
2300  ok |= v1.i != 5;
2301'
2302
2303# Test code for whether the C compiler supports C11 (complete).
2304ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2305${ac_c_conftest_c99_globals}
2306${ac_c_conftest_c11_globals}
2307
2308int
2309main (int argc, char **argv)
2310{
2311  int ok = 0;
2312  ${ac_c_conftest_c89_main}
2313  ${ac_c_conftest_c99_main}
2314  ${ac_c_conftest_c11_main}
2315  return ok;
2316}
2317"
2318
2319# Test code for whether the C compiler supports C99 (complete).
2320ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2321${ac_c_conftest_c99_globals}
2322
2323int
2324main (int argc, char **argv)
2325{
2326  int ok = 0;
2327  ${ac_c_conftest_c89_main}
2328  ${ac_c_conftest_c99_main}
2329  return ok;
2330}
2331"
2332
2333# Test code for whether the C compiler supports C89 (complete).
2334ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2335
2336int
2337main (int argc, char **argv)
2338{
2339  int ok = 0;
2340  ${ac_c_conftest_c89_main}
2341  return ok;
2342}
2343"
2344
2345as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2346as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2347as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2348as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2349as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2350as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2351as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2352as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2353as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2354
2355# Auxiliary files required by this configure script.
2356ac_aux_files="config.guess config.sub compile missing install-sh"
2357
2358# Locations in which to look for auxiliary files.
2359ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2360
2361# Search for a directory containing all of the required auxiliary files,
2362# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2363# If we don't find one directory that contains all the files we need,
2364# we report the set of missing files from the *first* directory in
2365# $ac_aux_dir_candidates and give up.
2366ac_missing_aux_files=""
2367ac_first_candidate=:
2368printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370as_found=false
2371for as_dir in $ac_aux_dir_candidates
2372do
2373  IFS=$as_save_IFS
2374  case $as_dir in #(((
2375    '') as_dir=./ ;;
2376    */) ;;
2377    *) as_dir=$as_dir/ ;;
2378  esac
2379  as_found=:
2380
2381  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2382  ac_aux_dir_found=yes
2383  ac_install_sh=
2384  for ac_aux in $ac_aux_files
2385  do
2386    # As a special case, if "install-sh" is required, that requirement
2387    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2388    # and $ac_install_sh is set appropriately for whichever one is found.
2389    if test x"$ac_aux" = x"install-sh"
2390    then
2391      if test -f "${as_dir}install-sh"; then
2392        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2393        ac_install_sh="${as_dir}install-sh -c"
2394      elif test -f "${as_dir}install.sh"; then
2395        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2396        ac_install_sh="${as_dir}install.sh -c"
2397      elif test -f "${as_dir}shtool"; then
2398        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2399        ac_install_sh="${as_dir}shtool install -c"
2400      else
2401        ac_aux_dir_found=no
2402        if $ac_first_candidate; then
2403          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2404        else
2405          break
2406        fi
2407      fi
2408    else
2409      if test -f "${as_dir}${ac_aux}"; then
2410        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2411      else
2412        ac_aux_dir_found=no
2413        if $ac_first_candidate; then
2414          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2415        else
2416          break
2417        fi
2418      fi
2419    fi
2420  done
2421  if test "$ac_aux_dir_found" = yes; then
2422    ac_aux_dir="$as_dir"
2423    break
2424  fi
2425  ac_first_candidate=false
2426
2427  as_found=false
2428done
2429IFS=$as_save_IFS
2430if $as_found
2431then :
2432
2433else case e in #(
2434  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2435esac
2436fi
2437
2438
2439# These three variables are undocumented and unsupported,
2440# and are intended to be withdrawn in a future Autoconf release.
2441# They can cause serious problems if a builder's source tree is in a directory
2442# whose full name contains unusual characters.
2443if test -f "${ac_aux_dir}config.guess"; then
2444  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2445fi
2446if test -f "${ac_aux_dir}config.sub"; then
2447  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2448fi
2449if test -f "$ac_aux_dir/configure"; then
2450  ac_configure="$SHELL ${ac_aux_dir}configure"
2451fi
2452
2453# Check that the precious variables saved in the cache have kept the same
2454# value.
2455ac_cache_corrupted=false
2456for ac_var in $ac_precious_vars; do
2457  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2458  eval ac_new_set=\$ac_env_${ac_var}_set
2459  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2460  eval ac_new_val=\$ac_env_${ac_var}_value
2461  case $ac_old_set,$ac_new_set in
2462    set,)
2463      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2464printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2465      ac_cache_corrupted=: ;;
2466    ,set)
2467      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2468printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2469      ac_cache_corrupted=: ;;
2470    ,);;
2471    *)
2472      if test "x$ac_old_val" != "x$ac_new_val"; then
2473	# differences in whitespace do not lead to failure.
2474	ac_old_val_w=`echo x $ac_old_val`
2475	ac_new_val_w=`echo x $ac_new_val`
2476	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2477	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2478printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2479	  ac_cache_corrupted=:
2480	else
2481	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2482printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2483	  eval $ac_var=\$ac_old_val
2484	fi
2485	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2486printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2487	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2488printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2489      fi;;
2490  esac
2491  # Pass precious variables to config.status.
2492  if test "$ac_new_set" = set; then
2493    case $ac_new_val in
2494    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2495    *) ac_arg=$ac_var=$ac_new_val ;;
2496    esac
2497    case " $ac_configure_args " in
2498      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2499      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2500    esac
2501  fi
2502done
2503if $ac_cache_corrupted; then
2504  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2505printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2507printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2508  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2509	    and start over" "$LINENO" 5
2510fi
2511## -------------------- ##
2512## Main body of script. ##
2513## -------------------- ##
2514
2515ac_ext=c
2516ac_cpp='$CPP $CPPFLAGS'
2517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2519ac_compiler_gnu=$ac_cv_c_compiler_gnu
2520
2521
2522
2523ac_config_headers="$ac_config_headers config.h"
2524
2525
2526# Initialize Automake
2527am__api_version='1.17'
2528
2529
2530
2531  # Find a good install program.  We prefer a C program (faster),
2532# so one script is as good as another.  But avoid the broken or
2533# incompatible versions:
2534# SysV /etc/install, /usr/sbin/install
2535# SunOS /usr/etc/install
2536# IRIX /sbin/install
2537# AIX /bin/install
2538# AmigaOS /C/install, which installs bootblocks on floppy discs
2539# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2540# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2541# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2542# OS/2's system install, which has a completely different semantic
2543# ./install, which can be erroneously created by make from ./install.sh.
2544# Reject install programs that cannot install multiple files.
2545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2546printf %s "checking for a BSD-compatible install... " >&6; }
2547if test -z "$INSTALL"; then
2548if test ${ac_cv_path_install+y}
2549then :
2550  printf %s "(cached) " >&6
2551else case e in #(
2552  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553for as_dir in $PATH
2554do
2555  IFS=$as_save_IFS
2556  case $as_dir in #(((
2557    '') as_dir=./ ;;
2558    */) ;;
2559    *) as_dir=$as_dir/ ;;
2560  esac
2561    # Account for fact that we put trailing slashes in our PATH walk.
2562case $as_dir in #((
2563  ./ | /[cC]/* | \
2564  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2565  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2566  /usr/ucb/* ) ;;
2567  *)
2568    # OSF1 and SCO ODT 3.0 have their own names for install.
2569    # Don't use installbsd from OSF since it installs stuff as root
2570    # by default.
2571    for ac_prog in ginstall scoinst install; do
2572      for ac_exec_ext in '' $ac_executable_extensions; do
2573	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2574	  if test $ac_prog = install &&
2575	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2576	    # AIX install.  It has an incompatible calling convention.
2577	    :
2578	  elif test $ac_prog = install &&
2579	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2580	    # program-specific install script used by HP pwplus--don't use.
2581	    :
2582	  else
2583	    rm -rf conftest.one conftest.two conftest.dir
2584	    echo one > conftest.one
2585	    echo two > conftest.two
2586	    mkdir conftest.dir
2587	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2588	      test -s conftest.one && test -s conftest.two &&
2589	      test -s conftest.dir/conftest.one &&
2590	      test -s conftest.dir/conftest.two
2591	    then
2592	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2593	      break 3
2594	    fi
2595	  fi
2596	fi
2597      done
2598    done
2599    ;;
2600esac
2601
2602  done
2603IFS=$as_save_IFS
2604
2605rm -rf conftest.one conftest.two conftest.dir
2606 ;;
2607esac
2608fi
2609  if test ${ac_cv_path_install+y}; then
2610    INSTALL=$ac_cv_path_install
2611  else
2612    # As a last resort, use the slow shell script.  Don't cache a
2613    # value for INSTALL within a source directory, because that will
2614    # break other packages using the cache if that directory is
2615    # removed, or if the value is a relative name.
2616    INSTALL=$ac_install_sh
2617  fi
2618fi
2619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2620printf "%s\n" "$INSTALL" >&6; }
2621
2622# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2623# It thinks the first close brace ends the variable substitution.
2624test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2625
2626test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2627
2628test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2629
2630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2631printf %s "checking whether sleep supports fractional seconds... " >&6; }
2632if test ${am_cv_sleep_fractional_seconds+y}
2633then :
2634  printf %s "(cached) " >&6
2635else case e in #(
2636  e) if sleep 0.001 2>/dev/null
2637then :
2638  am_cv_sleep_fractional_seconds=yes
2639else case e in #(
2640  e) am_cv_sleep_fractional_seconds=no ;;
2641esac
2642fi
2643 ;;
2644esac
2645fi
2646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2647printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2648
2649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2650printf %s "checking filesystem timestamp resolution... " >&6; }
2651if test ${am_cv_filesystem_timestamp_resolution+y}
2652then :
2653  printf %s "(cached) " >&6
2654else case e in #(
2655  e) # Default to the worst case.
2656am_cv_filesystem_timestamp_resolution=2
2657
2658# Only try to go finer than 1 sec if sleep can do it.
2659# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2660# - 1 sec is not much of a win compared to 2 sec, and
2661# - it takes 2 seconds to perform the test whether 1 sec works.
2662#
2663# Instead, just use the default 2s on platforms that have 1s resolution,
2664# accept the extra 1s delay when using $sleep in the Automake tests, in
2665# exchange for not incurring the 2s delay for running the test for all
2666# packages.
2667#
2668am_try_resolutions=
2669if test "$am_cv_sleep_fractional_seconds" = yes; then
2670  # Even a millisecond often causes a bunch of false positives,
2671  # so just try a hundredth of a second. The time saved between .001 and
2672  # .01 is not terribly consequential.
2673  am_try_resolutions="0.01 0.1 $am_try_resolutions"
2674fi
2675
2676# In order to catch current-generation FAT out, we must *modify* files
2677# that already exist; the *creation* timestamp is finer.  Use names
2678# that make ls -t sort them differently when they have equal
2679# timestamps than when they have distinct timestamps, keeping
2680# in mind that ls -t prints the *newest* file first.
2681rm -f conftest.ts?
2682: > conftest.ts1
2683: > conftest.ts2
2684: > conftest.ts3
2685
2686# Make sure ls -t actually works.  Do 'set' in a subshell so we don't
2687# clobber the current shell's arguments. (Outer-level square brackets
2688# are removed by m4; they're present so that m4 does not expand
2689# <dollar><star>; be careful, easy to get confused.)
2690if (
2691     set X `ls -t conftest.ts[12]` &&
2692     {
2693       test "$*" != "X conftest.ts1 conftest.ts2" ||
2694       test "$*" != "X conftest.ts2 conftest.ts1";
2695     }
2696); then :; else
2697  # If neither matched, then we have a broken ls.  This can happen
2698  # if, for instance, CONFIG_SHELL is bash and it inherits a
2699  # broken ls alias from the environment.  This has actually
2700  # happened.  Such a system could not be considered "sane".
2701  printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2702  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2703printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2704as_fn_error $? "ls -t produces unexpected output.
2705Make sure there is not a broken ls alias in your environment.
2706See 'config.log' for more details" "$LINENO" 5; }
2707fi
2708
2709for am_try_res in $am_try_resolutions; do
2710  # Any one fine-grained sleep might happen to cross the boundary
2711  # between two values of a coarser actual resolution, but if we do
2712  # two fine-grained sleeps in a row, at least one of them will fall
2713  # entirely within a coarse interval.
2714  echo alpha > conftest.ts1
2715  sleep $am_try_res
2716  echo beta > conftest.ts2
2717  sleep $am_try_res
2718  echo gamma > conftest.ts3
2719
2720  # We assume that 'ls -t' will make use of high-resolution
2721  # timestamps if the operating system supports them at all.
2722  if (set X `ls -t conftest.ts?` &&
2723      test "$2" = conftest.ts3 &&
2724      test "$3" = conftest.ts2 &&
2725      test "$4" = conftest.ts1); then
2726    #
2727    # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2728    # because we don't need to test make.
2729    make_ok=true
2730    if test $am_try_res != 1; then
2731      # But if we've succeeded so far with a subsecond resolution, we
2732      # have one more thing to check: make. It can happen that
2733      # everything else supports the subsecond mtimes, but make doesn't;
2734      # notably on macOS, which ships make 3.81 from 2006 (the last one
2735      # released under GPLv2). https://bugs.gnu.org/68808
2736      #
2737      # We test $MAKE if it is defined in the environment, else "make".
2738      # It might get overridden later, but our hope is that in practice
2739      # it does not matter: it is the system "make" which is (by far)
2740      # the most likely to be broken, whereas if the user overrides it,
2741      # probably they did so with a better, or at least not worse, make.
2742      # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2743      #
2744      # Create a Makefile (real tab character here):
2745      rm -f conftest.mk
2746      echo 'conftest.ts1: conftest.ts2' >conftest.mk
2747      echo '	touch conftest.ts2' >>conftest.mk
2748      #
2749      # Now, running
2750      #   touch conftest.ts1; touch conftest.ts2; make
2751      # should touch ts1 because ts2 is newer. This could happen by luck,
2752      # but most often, it will fail if make's support is insufficient. So
2753      # test for several consecutive successes.
2754      #
2755      # (We reuse conftest.ts[12] because we still want to modify existing
2756      # files, not create new ones, per above.)
2757      n=0
2758      make=${MAKE-make}
2759      until test $n -eq 3; do
2760        echo one > conftest.ts1
2761        sleep $am_try_res
2762        echo two > conftest.ts2 # ts2 should now be newer than ts1
2763        if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2764          make_ok=false
2765          break # out of $n loop
2766        fi
2767        n=`expr $n + 1`
2768      done
2769    fi
2770    #
2771    if $make_ok; then
2772      # Everything we know to check worked out, so call this resolution good.
2773      am_cv_filesystem_timestamp_resolution=$am_try_res
2774      break # out of $am_try_res loop
2775    fi
2776    # Otherwise, we'll go on to check the next resolution.
2777  fi
2778done
2779rm -f conftest.ts?
2780# (end _am_filesystem_timestamp_resolution)
2781 ;;
2782esac
2783fi
2784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2785printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2786
2787# This check should not be cached, as it may vary across builds of
2788# different projects.
2789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2790printf %s "checking whether build environment is sane... " >&6; }
2791# Reject unsafe characters in $srcdir or the absolute working directory
2792# name.  Accept space and tab only in the latter.
2793am_lf='
2794'
2795case `pwd` in
2796  *[\\\"\#\$\&\'\`$am_lf]*)
2797    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2798esac
2799case $srcdir in
2800  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2801    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2802esac
2803
2804# Do 'set' in a subshell so we don't clobber the current shell's
2805# arguments.  Must try -L first in case configure is actually a
2806# symlink; some systems play weird games with the mod time of symlinks
2807# (eg FreeBSD returns the mod time of the symlink's containing
2808# directory).
2809am_build_env_is_sane=no
2810am_has_slept=no
2811rm -f conftest.file
2812for am_try in 1 2; do
2813  echo "timestamp, slept: $am_has_slept" > conftest.file
2814  if (
2815    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2816    if test "$*" = "X"; then
2817      # -L didn't work.
2818      set X `ls -t "$srcdir/configure" conftest.file`
2819    fi
2820    test "$2" = conftest.file
2821  ); then
2822    am_build_env_is_sane=yes
2823    break
2824  fi
2825  # Just in case.
2826  sleep "$am_cv_filesystem_timestamp_resolution"
2827  am_has_slept=yes
2828done
2829
2830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2831printf "%s\n" "$am_build_env_is_sane" >&6; }
2832if test "$am_build_env_is_sane" = no; then
2833  as_fn_error $? "newly created file is older than distributed files!
2834Check your system clock" "$LINENO" 5
2835fi
2836
2837# If we didn't sleep, we still need to ensure time stamps of config.status and
2838# generated files are strictly newer.
2839am_sleep_pid=
2840if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2841then :
2842
2843else case e in #(
2844  e)   ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
2845  am_sleep_pid=$!
2846 ;;
2847esac
2848fi
2849
2850rm -f conftest.file
2851
2852test "$program_prefix" != NONE &&
2853  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2854# Use a double $ so make ignores it.
2855test "$program_suffix" != NONE &&
2856  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2857# Double any \ or $.
2858# By default was 's,x,x', remove it if useless.
2859ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2860program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2861
2862
2863# Expand $ac_aux_dir to an absolute path.
2864am_aux_dir=`cd "$ac_aux_dir" && pwd`
2865
2866
2867  if test x"${MISSING+set}" != xset; then
2868  MISSING="\${SHELL} '$am_aux_dir/missing'"
2869fi
2870# Use eval to expand $SHELL
2871if eval "$MISSING --is-lightweight"; then
2872  am_missing_run="$MISSING "
2873else
2874  am_missing_run=
2875  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2876printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2877fi
2878
2879if test x"${install_sh+set}" != xset; then
2880  case $am_aux_dir in
2881  *\ * | *\	*)
2882    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2883  *)
2884    install_sh="\${SHELL} $am_aux_dir/install-sh"
2885  esac
2886fi
2887
2888# Installed binaries are usually stripped using 'strip' when the user
2889# run "make install-strip".  However 'strip' might not be the right
2890# tool to use in cross-compilation environments, therefore Automake
2891# will honor the 'STRIP' environment variable to overrule this program.
2892if test "$cross_compiling" != no; then
2893  if test -n "$ac_tool_prefix"; then
2894  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2895set dummy ${ac_tool_prefix}strip; ac_word=$2
2896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897printf %s "checking for $ac_word... " >&6; }
2898if test ${ac_cv_prog_STRIP+y}
2899then :
2900  printf %s "(cached) " >&6
2901else case e in #(
2902  e) if test -n "$STRIP"; then
2903  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2904else
2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906for as_dir in $PATH
2907do
2908  IFS=$as_save_IFS
2909  case $as_dir in #(((
2910    '') as_dir=./ ;;
2911    */) ;;
2912    *) as_dir=$as_dir/ ;;
2913  esac
2914    for ac_exec_ext in '' $ac_executable_extensions; do
2915  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2916    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2917    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2918    break 2
2919  fi
2920done
2921  done
2922IFS=$as_save_IFS
2923
2924fi ;;
2925esac
2926fi
2927STRIP=$ac_cv_prog_STRIP
2928if test -n "$STRIP"; then
2929  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2930printf "%s\n" "$STRIP" >&6; }
2931else
2932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933printf "%s\n" "no" >&6; }
2934fi
2935
2936
2937fi
2938if test -z "$ac_cv_prog_STRIP"; then
2939  ac_ct_STRIP=$STRIP
2940  # Extract the first word of "strip", so it can be a program name with args.
2941set dummy strip; ac_word=$2
2942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943printf %s "checking for $ac_word... " >&6; }
2944if test ${ac_cv_prog_ac_ct_STRIP+y}
2945then :
2946  printf %s "(cached) " >&6
2947else case e in #(
2948  e) if test -n "$ac_ct_STRIP"; then
2949  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2950else
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954  IFS=$as_save_IFS
2955  case $as_dir in #(((
2956    '') as_dir=./ ;;
2957    */) ;;
2958    *) as_dir=$as_dir/ ;;
2959  esac
2960    for ac_exec_ext in '' $ac_executable_extensions; do
2961  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2962    ac_cv_prog_ac_ct_STRIP="strip"
2963    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2964    break 2
2965  fi
2966done
2967  done
2968IFS=$as_save_IFS
2969
2970fi ;;
2971esac
2972fi
2973ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2974if test -n "$ac_ct_STRIP"; then
2975  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2976printf "%s\n" "$ac_ct_STRIP" >&6; }
2977else
2978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979printf "%s\n" "no" >&6; }
2980fi
2981
2982  if test "x$ac_ct_STRIP" = x; then
2983    STRIP=":"
2984  else
2985    case $cross_compiling:$ac_tool_warned in
2986yes:)
2987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2988printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2989ac_tool_warned=yes ;;
2990esac
2991    STRIP=$ac_ct_STRIP
2992  fi
2993else
2994  STRIP="$ac_cv_prog_STRIP"
2995fi
2996
2997fi
2998INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2999
3000
3001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3002printf %s "checking for a race-free mkdir -p... " >&6; }
3003if test -z "$MKDIR_P"; then
3004  if test ${ac_cv_path_mkdir+y}
3005then :
3006  printf %s "(cached) " >&6
3007else case e in #(
3008  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3010do
3011  IFS=$as_save_IFS
3012  case $as_dir in #(((
3013    '') as_dir=./ ;;
3014    */) ;;
3015    *) as_dir=$as_dir/ ;;
3016  esac
3017    for ac_prog in mkdir gmkdir; do
3018	 for ac_exec_ext in '' $ac_executable_extensions; do
3019	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3020	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3021	     'mkdir ('*'coreutils) '* | \
3022	     *'BusyBox '* | \
3023	     'mkdir (fileutils) '4.1*)
3024	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3025	       break 3;;
3026	   esac
3027	 done
3028       done
3029  done
3030IFS=$as_save_IFS
3031 ;;
3032esac
3033fi
3034
3035  test -d ./--version && rmdir ./--version
3036  if test ${ac_cv_path_mkdir+y}; then
3037    MKDIR_P="$ac_cv_path_mkdir -p"
3038  else
3039    # As a last resort, use plain mkdir -p,
3040    # in the hope it doesn't have the bugs of ancient mkdir.
3041    MKDIR_P='mkdir -p'
3042  fi
3043fi
3044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3045printf "%s\n" "$MKDIR_P" >&6; }
3046
3047for ac_prog in gawk mawk nawk awk
3048do
3049  # Extract the first word of "$ac_prog", so it can be a program name with args.
3050set dummy $ac_prog; ac_word=$2
3051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052printf %s "checking for $ac_word... " >&6; }
3053if test ${ac_cv_prog_AWK+y}
3054then :
3055  printf %s "(cached) " >&6
3056else case e in #(
3057  e) if test -n "$AWK"; then
3058  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3059else
3060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061for as_dir in $PATH
3062do
3063  IFS=$as_save_IFS
3064  case $as_dir in #(((
3065    '') as_dir=./ ;;
3066    */) ;;
3067    *) as_dir=$as_dir/ ;;
3068  esac
3069    for ac_exec_ext in '' $ac_executable_extensions; do
3070  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3071    ac_cv_prog_AWK="$ac_prog"
3072    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3073    break 2
3074  fi
3075done
3076  done
3077IFS=$as_save_IFS
3078
3079fi ;;
3080esac
3081fi
3082AWK=$ac_cv_prog_AWK
3083if test -n "$AWK"; then
3084  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3085printf "%s\n" "$AWK" >&6; }
3086else
3087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088printf "%s\n" "no" >&6; }
3089fi
3090
3091
3092  test -n "$AWK" && break
3093done
3094
3095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3096printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3097set x ${MAKE-make}
3098ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3099if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3100then :
3101  printf %s "(cached) " >&6
3102else case e in #(
3103  e) cat >conftest.make <<\_ACEOF
3104SHELL = /bin/sh
3105all:
3106	@echo '@@@%%%=$(MAKE)=@@@%%%'
3107_ACEOF
3108# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3109case `${MAKE-make} -f conftest.make 2>/dev/null` in
3110  *@@@%%%=?*=@@@%%%*)
3111    eval ac_cv_prog_make_${ac_make}_set=yes;;
3112  *)
3113    eval ac_cv_prog_make_${ac_make}_set=no;;
3114esac
3115rm -f conftest.make ;;
3116esac
3117fi
3118if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3119  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3120printf "%s\n" "yes" >&6; }
3121  SET_MAKE=
3122else
3123  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124printf "%s\n" "no" >&6; }
3125  SET_MAKE="MAKE=${MAKE-make}"
3126fi
3127
3128rm -rf .tst 2>/dev/null
3129mkdir .tst 2>/dev/null
3130if test -d .tst; then
3131  am__leading_dot=.
3132else
3133  am__leading_dot=_
3134fi
3135rmdir .tst 2>/dev/null
3136
3137AM_DEFAULT_VERBOSITY=1
3138# Check whether --enable-silent-rules was given.
3139if test ${enable_silent_rules+y}
3140then :
3141  enableval=$enable_silent_rules;
3142fi
3143
3144am_make=${MAKE-make}
3145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3146printf %s "checking whether $am_make supports nested variables... " >&6; }
3147if test ${am_cv_make_support_nested_variables+y}
3148then :
3149  printf %s "(cached) " >&6
3150else case e in #(
3151  e) if printf "%s\n" 'TRUE=$(BAR$(V))
3152BAR0=false
3153BAR1=true
3154V=1
3155am__doit:
3156	@$(TRUE)
3157.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3158  am_cv_make_support_nested_variables=yes
3159else
3160  am_cv_make_support_nested_variables=no
3161fi ;;
3162esac
3163fi
3164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3165printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3166AM_BACKSLASH='\'
3167
3168am__rm_f_notfound=
3169if (rm -f && rm -fr && rm -rf) 2>/dev/null
3170then :
3171
3172else case e in #(
3173  e) am__rm_f_notfound='""' ;;
3174esac
3175fi
3176
3177
3178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3179printf %s "checking xargs -n works... " >&6; }
3180if test ${am_cv_xargs_n_works+y}
3181then :
3182  printf %s "(cached) " >&6
3183else case e in #(
3184  e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
31853"
3186then :
3187  am_cv_xargs_n_works=yes
3188else case e in #(
3189  e) am_cv_xargs_n_works=no ;;
3190esac
3191fi ;;
3192esac
3193fi
3194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3195printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3196if test "$am_cv_xargs_n_works" = yes
3197then :
3198  am__xargs_n='xargs -n'
3199else case e in #(
3200  e)   am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3201 ;;
3202esac
3203fi
3204
3205if test "`cd $srcdir && pwd`" != "`pwd`"; then
3206  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3207  # is not polluted with repeated "-I."
3208  am__isrc=' -I$(srcdir)'
3209  # test to see if srcdir already configured
3210  if test -f $srcdir/config.status; then
3211    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3212  fi
3213fi
3214
3215# test whether we have cygpath
3216if test -z "$CYGPATH_W"; then
3217  if (cygpath --version) >/dev/null 2>/dev/null; then
3218    CYGPATH_W='cygpath -w'
3219  else
3220    CYGPATH_W=echo
3221  fi
3222fi
3223
3224
3225# Define the identity of the package.
3226 PACKAGE='xclipboard'
3227 VERSION='1.1.5'
3228
3229
3230printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3231
3232
3233printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3234
3235# Some tools Automake needs.
3236
3237ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3238
3239
3240AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3241
3242
3243AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3244
3245
3246AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3247
3248
3249MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3250
3251# For better backward compatibility.  To be removed once Automake 1.9.x
3252# dies out for good.  For more background, see:
3253# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3254# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3255mkdir_p='$(MKDIR_P)'
3256
3257# We need awk for the "check" target (and possibly the TAP driver).  The
3258# system "awk" is bad on some platforms.
3259# Always define AMTAR for backward compatibility.  Yes, it's still used
3260# in the wild :-(  We should find a proper way to deprecate it ...
3261AMTAR='$${TAR-tar}'
3262
3263
3264# We'll loop over all known methods to create a tar archive until one works.
3265_am_tools='gnutar  pax cpio none'
3266
3267am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3268
3269
3270
3271
3272
3273# Variables for tags utilities; see am/tags.am
3274if test -z "$CTAGS"; then
3275  CTAGS=ctags
3276fi
3277
3278if test -z "$ETAGS"; then
3279  ETAGS=etags
3280fi
3281
3282if test -z "$CSCOPE"; then
3283  CSCOPE=cscope
3284fi
3285
3286
3287
3288
3289
3290
3291
3292
3293# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314DEPDIR="${am__leading_dot}deps"
3315
3316ac_config_commands="$ac_config_commands depfiles"
3317
3318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3319printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3320cat > confinc.mk << 'END'
3321am__doit:
3322	@echo this is the am__doit target >confinc.out
3323.PHONY: am__doit
3324END
3325am__include="#"
3326am__quote=
3327# BSD make does it like this.
3328echo '.include "confinc.mk" # ignored' > confmf.BSD
3329# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3330echo 'include confinc.mk # ignored' > confmf.GNU
3331_am_result=no
3332for s in GNU BSD; do
3333  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3334   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3335   ac_status=$?
3336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337   (exit $ac_status); }
3338  case $?:`cat confinc.out 2>/dev/null` in #(
3339  '0:this is the am__doit target') :
3340    case $s in #(
3341  BSD) :
3342    am__include='.include' am__quote='"' ;; #(
3343  *) :
3344    am__include='include' am__quote='' ;;
3345esac ;; #(
3346  *) :
3347     ;;
3348esac
3349  if test "$am__include" != "#"; then
3350    _am_result="yes ($s style)"
3351    break
3352  fi
3353done
3354rm -f confinc.* confmf.*
3355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3356printf "%s\n" "${_am_result}" >&6; }
3357
3358# Check whether --enable-dependency-tracking was given.
3359if test ${enable_dependency_tracking+y}
3360then :
3361  enableval=$enable_dependency_tracking;
3362fi
3363
3364if test "x$enable_dependency_tracking" != xno; then
3365  am_depcomp="$ac_aux_dir/depcomp"
3366  AMDEPBACKSLASH='\'
3367  am__nodep='_no'
3368fi
3369 if test "x$enable_dependency_tracking" != xno; then
3370  AMDEP_TRUE=
3371  AMDEP_FALSE='#'
3372else
3373  AMDEP_TRUE='#'
3374  AMDEP_FALSE=
3375fi
3376
3377
3378ac_ext=c
3379ac_cpp='$CPP $CPPFLAGS'
3380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3382ac_compiler_gnu=$ac_cv_c_compiler_gnu
3383if test -n "$ac_tool_prefix"; then
3384  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3385set dummy ${ac_tool_prefix}gcc; ac_word=$2
3386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387printf %s "checking for $ac_word... " >&6; }
3388if test ${ac_cv_prog_CC+y}
3389then :
3390  printf %s "(cached) " >&6
3391else case e in #(
3392  e) if test -n "$CC"; then
3393  ac_cv_prog_CC="$CC" # Let the user override the test.
3394else
3395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396for as_dir in $PATH
3397do
3398  IFS=$as_save_IFS
3399  case $as_dir in #(((
3400    '') as_dir=./ ;;
3401    */) ;;
3402    *) as_dir=$as_dir/ ;;
3403  esac
3404    for ac_exec_ext in '' $ac_executable_extensions; do
3405  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3406    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3407    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3408    break 2
3409  fi
3410done
3411  done
3412IFS=$as_save_IFS
3413
3414fi ;;
3415esac
3416fi
3417CC=$ac_cv_prog_CC
3418if test -n "$CC"; then
3419  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3420printf "%s\n" "$CC" >&6; }
3421else
3422  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423printf "%s\n" "no" >&6; }
3424fi
3425
3426
3427fi
3428if test -z "$ac_cv_prog_CC"; then
3429  ac_ct_CC=$CC
3430  # Extract the first word of "gcc", so it can be a program name with args.
3431set dummy gcc; ac_word=$2
3432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3433printf %s "checking for $ac_word... " >&6; }
3434if test ${ac_cv_prog_ac_ct_CC+y}
3435then :
3436  printf %s "(cached) " >&6
3437else case e in #(
3438  e) if test -n "$ac_ct_CC"; then
3439  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3440else
3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442for as_dir in $PATH
3443do
3444  IFS=$as_save_IFS
3445  case $as_dir in #(((
3446    '') as_dir=./ ;;
3447    */) ;;
3448    *) as_dir=$as_dir/ ;;
3449  esac
3450    for ac_exec_ext in '' $ac_executable_extensions; do
3451  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3452    ac_cv_prog_ac_ct_CC="gcc"
3453    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3454    break 2
3455  fi
3456done
3457  done
3458IFS=$as_save_IFS
3459
3460fi ;;
3461esac
3462fi
3463ac_ct_CC=$ac_cv_prog_ac_ct_CC
3464if test -n "$ac_ct_CC"; then
3465  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3466printf "%s\n" "$ac_ct_CC" >&6; }
3467else
3468  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469printf "%s\n" "no" >&6; }
3470fi
3471
3472  if test "x$ac_ct_CC" = x; then
3473    CC=""
3474  else
3475    case $cross_compiling:$ac_tool_warned in
3476yes:)
3477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3478printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3479ac_tool_warned=yes ;;
3480esac
3481    CC=$ac_ct_CC
3482  fi
3483else
3484  CC="$ac_cv_prog_CC"
3485fi
3486
3487if test -z "$CC"; then
3488          if test -n "$ac_tool_prefix"; then
3489    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3490set dummy ${ac_tool_prefix}cc; ac_word=$2
3491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492printf %s "checking for $ac_word... " >&6; }
3493if test ${ac_cv_prog_CC+y}
3494then :
3495  printf %s "(cached) " >&6
3496else case e in #(
3497  e) if test -n "$CC"; then
3498  ac_cv_prog_CC="$CC" # Let the user override the test.
3499else
3500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501for as_dir in $PATH
3502do
3503  IFS=$as_save_IFS
3504  case $as_dir in #(((
3505    '') as_dir=./ ;;
3506    */) ;;
3507    *) as_dir=$as_dir/ ;;
3508  esac
3509    for ac_exec_ext in '' $ac_executable_extensions; do
3510  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3511    ac_cv_prog_CC="${ac_tool_prefix}cc"
3512    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3513    break 2
3514  fi
3515done
3516  done
3517IFS=$as_save_IFS
3518
3519fi ;;
3520esac
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  fi
3533fi
3534if test -z "$CC"; then
3535  # Extract the first word of "cc", so it can be a program name with args.
3536set dummy cc; ac_word=$2
3537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538printf %s "checking for $ac_word... " >&6; }
3539if test ${ac_cv_prog_CC+y}
3540then :
3541  printf %s "(cached) " >&6
3542else case e in #(
3543  e) if test -n "$CC"; then
3544  ac_cv_prog_CC="$CC" # Let the user override the test.
3545else
3546  ac_prog_rejected=no
3547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548for as_dir in $PATH
3549do
3550  IFS=$as_save_IFS
3551  case $as_dir in #(((
3552    '') as_dir=./ ;;
3553    */) ;;
3554    *) as_dir=$as_dir/ ;;
3555  esac
3556    for ac_exec_ext in '' $ac_executable_extensions; do
3557  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3558    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3559       ac_prog_rejected=yes
3560       continue
3561     fi
3562    ac_cv_prog_CC="cc"
3563    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3564    break 2
3565  fi
3566done
3567  done
3568IFS=$as_save_IFS
3569
3570if test $ac_prog_rejected = yes; then
3571  # We found a bogon in the path, so make sure we never use it.
3572  set dummy $ac_cv_prog_CC
3573  shift
3574  if test $# != 0; then
3575    # We chose a different compiler from the bogus one.
3576    # However, it has the same basename, so the bogon will be chosen
3577    # first if we set CC to just the basename; use the full file name.
3578    shift
3579    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3580  fi
3581fi
3582fi ;;
3583esac
3584fi
3585CC=$ac_cv_prog_CC
3586if test -n "$CC"; then
3587  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3588printf "%s\n" "$CC" >&6; }
3589else
3590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591printf "%s\n" "no" >&6; }
3592fi
3593
3594
3595fi
3596if test -z "$CC"; then
3597  if test -n "$ac_tool_prefix"; then
3598  for ac_prog in cl.exe
3599  do
3600    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3601set dummy $ac_tool_prefix$ac_prog; 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 case e in #(
3608  e) 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$ac_prog"
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 ;;
3631esac
3632fi
3633CC=$ac_cv_prog_CC
3634if test -n "$CC"; then
3635  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3636printf "%s\n" "$CC" >&6; }
3637else
3638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639printf "%s\n" "no" >&6; }
3640fi
3641
3642
3643    test -n "$CC" && break
3644  done
3645fi
3646if test -z "$CC"; then
3647  ac_ct_CC=$CC
3648  for ac_prog in cl.exe
3649do
3650  # Extract the first word of "$ac_prog", so it can be a program name with args.
3651set dummy $ac_prog; ac_word=$2
3652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653printf %s "checking for $ac_word... " >&6; }
3654if test ${ac_cv_prog_ac_ct_CC+y}
3655then :
3656  printf %s "(cached) " >&6
3657else case e in #(
3658  e) if test -n "$ac_ct_CC"; then
3659  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3660else
3661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662for as_dir in $PATH
3663do
3664  IFS=$as_save_IFS
3665  case $as_dir in #(((
3666    '') as_dir=./ ;;
3667    */) ;;
3668    *) as_dir=$as_dir/ ;;
3669  esac
3670    for ac_exec_ext in '' $ac_executable_extensions; do
3671  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3672    ac_cv_prog_ac_ct_CC="$ac_prog"
3673    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3674    break 2
3675  fi
3676done
3677  done
3678IFS=$as_save_IFS
3679
3680fi ;;
3681esac
3682fi
3683ac_ct_CC=$ac_cv_prog_ac_ct_CC
3684if test -n "$ac_ct_CC"; then
3685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3686printf "%s\n" "$ac_ct_CC" >&6; }
3687else
3688  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689printf "%s\n" "no" >&6; }
3690fi
3691
3692
3693  test -n "$ac_ct_CC" && break
3694done
3695
3696  if test "x$ac_ct_CC" = x; then
3697    CC=""
3698  else
3699    case $cross_compiling:$ac_tool_warned in
3700yes:)
3701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3702printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3703ac_tool_warned=yes ;;
3704esac
3705    CC=$ac_ct_CC
3706  fi
3707fi
3708
3709fi
3710if test -z "$CC"; then
3711  if test -n "$ac_tool_prefix"; then
3712  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3713set dummy ${ac_tool_prefix}clang; ac_word=$2
3714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3715printf %s "checking for $ac_word... " >&6; }
3716if test ${ac_cv_prog_CC+y}
3717then :
3718  printf %s "(cached) " >&6
3719else case e in #(
3720  e) if test -n "$CC"; then
3721  ac_cv_prog_CC="$CC" # Let the user override the test.
3722else
3723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724for as_dir in $PATH
3725do
3726  IFS=$as_save_IFS
3727  case $as_dir in #(((
3728    '') as_dir=./ ;;
3729    */) ;;
3730    *) as_dir=$as_dir/ ;;
3731  esac
3732    for ac_exec_ext in '' $ac_executable_extensions; do
3733  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3734    ac_cv_prog_CC="${ac_tool_prefix}clang"
3735    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3736    break 2
3737  fi
3738done
3739  done
3740IFS=$as_save_IFS
3741
3742fi ;;
3743esac
3744fi
3745CC=$ac_cv_prog_CC
3746if test -n "$CC"; then
3747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3748printf "%s\n" "$CC" >&6; }
3749else
3750  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751printf "%s\n" "no" >&6; }
3752fi
3753
3754
3755fi
3756if test -z "$ac_cv_prog_CC"; then
3757  ac_ct_CC=$CC
3758  # Extract the first word of "clang", so it can be a program name with args.
3759set dummy clang; ac_word=$2
3760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3761printf %s "checking for $ac_word... " >&6; }
3762if test ${ac_cv_prog_ac_ct_CC+y}
3763then :
3764  printf %s "(cached) " >&6
3765else case e in #(
3766  e) if test -n "$ac_ct_CC"; then
3767  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3768else
3769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770for as_dir in $PATH
3771do
3772  IFS=$as_save_IFS
3773  case $as_dir in #(((
3774    '') as_dir=./ ;;
3775    */) ;;
3776    *) as_dir=$as_dir/ ;;
3777  esac
3778    for ac_exec_ext in '' $ac_executable_extensions; do
3779  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3780    ac_cv_prog_ac_ct_CC="clang"
3781    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3782    break 2
3783  fi
3784done
3785  done
3786IFS=$as_save_IFS
3787
3788fi ;;
3789esac
3790fi
3791ac_ct_CC=$ac_cv_prog_ac_ct_CC
3792if test -n "$ac_ct_CC"; then
3793  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3794printf "%s\n" "$ac_ct_CC" >&6; }
3795else
3796  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3797printf "%s\n" "no" >&6; }
3798fi
3799
3800  if test "x$ac_ct_CC" = x; then
3801    CC=""
3802  else
3803    case $cross_compiling:$ac_tool_warned in
3804yes:)
3805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3806printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3807ac_tool_warned=yes ;;
3808esac
3809    CC=$ac_ct_CC
3810  fi
3811else
3812  CC="$ac_cv_prog_CC"
3813fi
3814
3815fi
3816
3817
3818test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3819printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3820as_fn_error $? "no acceptable C compiler found in \$PATH
3821See 'config.log' for more details" "$LINENO" 5; }
3822
3823# Provide some information about the compiler.
3824printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3825set X $ac_compile
3826ac_compiler=$2
3827for ac_option in --version -v -V -qversion -version; do
3828  { { ac_try="$ac_compiler $ac_option >&5"
3829case "(($ac_try" in
3830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831  *) ac_try_echo=$ac_try;;
3832esac
3833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834printf "%s\n" "$ac_try_echo"; } >&5
3835  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3836  ac_status=$?
3837  if test -s conftest.err; then
3838    sed '10a\
3839... rest of stderr output deleted ...
3840         10q' conftest.err >conftest.er1
3841    cat conftest.er1 >&5
3842  fi
3843  rm -f conftest.er1 conftest.err
3844  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3845  test $ac_status = 0; }
3846done
3847
3848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849/* end confdefs.h.  */
3850
3851int
3852main (void)
3853{
3854
3855  ;
3856  return 0;
3857}
3858_ACEOF
3859ac_clean_files_save=$ac_clean_files
3860ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3861# Try to create an executable without -o first, disregard a.out.
3862# It will help us diagnose broken compilers, and finding out an intuition
3863# of exeext.
3864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3865printf %s "checking whether the C compiler works... " >&6; }
3866ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3867
3868# The possible output files:
3869ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3870
3871ac_rmfiles=
3872for ac_file in $ac_files
3873do
3874  case $ac_file in
3875    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3876    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3877  esac
3878done
3879rm -f $ac_rmfiles
3880
3881if { { ac_try="$ac_link_default"
3882case "(($ac_try" in
3883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884  *) ac_try_echo=$ac_try;;
3885esac
3886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3887printf "%s\n" "$ac_try_echo"; } >&5
3888  (eval "$ac_link_default") 2>&5
3889  ac_status=$?
3890  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891  test $ac_status = 0; }
3892then :
3893  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3894# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3895# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3896# so that the user can short-circuit this test for compilers unknown to
3897# Autoconf.
3898for ac_file in $ac_files ''
3899do
3900  test -f "$ac_file" || continue
3901  case $ac_file in
3902    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3903	;;
3904    [ab].out )
3905	# We found the default executable, but exeext='' is most
3906	# certainly right.
3907	break;;
3908    *.* )
3909	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3910	then :; else
3911	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3912	fi
3913	# We set ac_cv_exeext here because the later test for it is not
3914	# safe: cross compilers may not add the suffix if given an '-o'
3915	# argument, so we may need to know it at that point already.
3916	# Even if this section looks crufty: it has the advantage of
3917	# actually working.
3918	break;;
3919    * )
3920	break;;
3921  esac
3922done
3923test "$ac_cv_exeext" = no && ac_cv_exeext=
3924
3925else case e in #(
3926  e) ac_file='' ;;
3927esac
3928fi
3929if test -z "$ac_file"
3930then :
3931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932printf "%s\n" "no" >&6; }
3933printf "%s\n" "$as_me: failed program was:" >&5
3934sed 's/^/| /' conftest.$ac_ext >&5
3935
3936{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3937printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3938as_fn_error 77 "C compiler cannot create executables
3939See 'config.log' for more details" "$LINENO" 5; }
3940else case e in #(
3941  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3942printf "%s\n" "yes" >&6; } ;;
3943esac
3944fi
3945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3946printf %s "checking for C compiler default output file name... " >&6; }
3947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3948printf "%s\n" "$ac_file" >&6; }
3949ac_exeext=$ac_cv_exeext
3950
3951rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3952ac_clean_files=$ac_clean_files_save
3953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3954printf %s "checking for suffix of executables... " >&6; }
3955if { { ac_try="$ac_link"
3956case "(($ac_try" in
3957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958  *) ac_try_echo=$ac_try;;
3959esac
3960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3961printf "%s\n" "$ac_try_echo"; } >&5
3962  (eval "$ac_link") 2>&5
3963  ac_status=$?
3964  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3965  test $ac_status = 0; }
3966then :
3967  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3968# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3969# work properly (i.e., refer to 'conftest.exe'), while it won't with
3970# 'rm'.
3971for ac_file in conftest.exe conftest conftest.*; do
3972  test -f "$ac_file" || continue
3973  case $ac_file in
3974    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3975    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3976	  break;;
3977    * ) break;;
3978  esac
3979done
3980else case e in #(
3981  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3982printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3983as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3984See 'config.log' for more details" "$LINENO" 5; } ;;
3985esac
3986fi
3987rm -f conftest conftest$ac_cv_exeext
3988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3989printf "%s\n" "$ac_cv_exeext" >&6; }
3990
3991rm -f conftest.$ac_ext
3992EXEEXT=$ac_cv_exeext
3993ac_exeext=$EXEEXT
3994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995/* end confdefs.h.  */
3996#include <stdio.h>
3997int
3998main (void)
3999{
4000FILE *f = fopen ("conftest.out", "w");
4001 if (!f)
4002  return 1;
4003 return ferror (f) || fclose (f) != 0;
4004
4005  ;
4006  return 0;
4007}
4008_ACEOF
4009ac_clean_files="$ac_clean_files conftest.out"
4010# Check that the compiler produces executables we can run.  If not, either
4011# the compiler is broken, or we cross compile.
4012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4013printf %s "checking whether we are cross compiling... " >&6; }
4014if test "$cross_compiling" != yes; then
4015  { { ac_try="$ac_link"
4016case "(($ac_try" in
4017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018  *) ac_try_echo=$ac_try;;
4019esac
4020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4021printf "%s\n" "$ac_try_echo"; } >&5
4022  (eval "$ac_link") 2>&5
4023  ac_status=$?
4024  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4025  test $ac_status = 0; }
4026  if { ac_try='./conftest$ac_cv_exeext'
4027  { { case "(($ac_try" in
4028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029  *) ac_try_echo=$ac_try;;
4030esac
4031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4032printf "%s\n" "$ac_try_echo"; } >&5
4033  (eval "$ac_try") 2>&5
4034  ac_status=$?
4035  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036  test $ac_status = 0; }; }; then
4037    cross_compiling=no
4038  else
4039    if test "$cross_compiling" = maybe; then
4040	cross_compiling=yes
4041    else
4042	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4043printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4044as_fn_error 77 "cannot run C compiled programs.
4045If you meant to cross compile, use '--host'.
4046See 'config.log' for more details" "$LINENO" 5; }
4047    fi
4048  fi
4049fi
4050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4051printf "%s\n" "$cross_compiling" >&6; }
4052
4053rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4054  conftest.o conftest.obj conftest.out
4055ac_clean_files=$ac_clean_files_save
4056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4057printf %s "checking for suffix of object files... " >&6; }
4058if test ${ac_cv_objext+y}
4059then :
4060  printf %s "(cached) " >&6
4061else case e in #(
4062  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063/* end confdefs.h.  */
4064
4065int
4066main (void)
4067{
4068
4069  ;
4070  return 0;
4071}
4072_ACEOF
4073rm -f conftest.o conftest.obj
4074if { { ac_try="$ac_compile"
4075case "(($ac_try" in
4076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077  *) ac_try_echo=$ac_try;;
4078esac
4079eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080printf "%s\n" "$ac_try_echo"; } >&5
4081  (eval "$ac_compile") 2>&5
4082  ac_status=$?
4083  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4084  test $ac_status = 0; }
4085then :
4086  for ac_file in conftest.o conftest.obj conftest.*; do
4087  test -f "$ac_file" || continue;
4088  case $ac_file in
4089    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4090    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4091       break;;
4092  esac
4093done
4094else case e in #(
4095  e) printf "%s\n" "$as_me: failed program was:" >&5
4096sed 's/^/| /' conftest.$ac_ext >&5
4097
4098{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4099printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4100as_fn_error $? "cannot compute suffix of object files: cannot compile
4101See 'config.log' for more details" "$LINENO" 5; } ;;
4102esac
4103fi
4104rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4105esac
4106fi
4107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4108printf "%s\n" "$ac_cv_objext" >&6; }
4109OBJEXT=$ac_cv_objext
4110ac_objext=$OBJEXT
4111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4112printf %s "checking whether the compiler supports GNU C... " >&6; }
4113if test ${ac_cv_c_compiler_gnu+y}
4114then :
4115  printf %s "(cached) " >&6
4116else case e in #(
4117  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118/* end confdefs.h.  */
4119
4120int
4121main (void)
4122{
4123#ifndef __GNUC__
4124       choke me
4125#endif
4126
4127  ;
4128  return 0;
4129}
4130_ACEOF
4131if ac_fn_c_try_compile "$LINENO"
4132then :
4133  ac_compiler_gnu=yes
4134else case e in #(
4135  e) ac_compiler_gnu=no ;;
4136esac
4137fi
4138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4139ac_cv_c_compiler_gnu=$ac_compiler_gnu
4140 ;;
4141esac
4142fi
4143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4144printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4145ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146
4147if test $ac_compiler_gnu = yes; then
4148  GCC=yes
4149else
4150  GCC=
4151fi
4152ac_test_CFLAGS=${CFLAGS+y}
4153ac_save_CFLAGS=$CFLAGS
4154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4155printf %s "checking whether $CC accepts -g... " >&6; }
4156if test ${ac_cv_prog_cc_g+y}
4157then :
4158  printf %s "(cached) " >&6
4159else case e in #(
4160  e) ac_save_c_werror_flag=$ac_c_werror_flag
4161   ac_c_werror_flag=yes
4162   ac_cv_prog_cc_g=no
4163   CFLAGS="-g"
4164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165/* end confdefs.h.  */
4166
4167int
4168main (void)
4169{
4170
4171  ;
4172  return 0;
4173}
4174_ACEOF
4175if ac_fn_c_try_compile "$LINENO"
4176then :
4177  ac_cv_prog_cc_g=yes
4178else case e in #(
4179  e) CFLAGS=""
4180      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181/* end confdefs.h.  */
4182
4183int
4184main (void)
4185{
4186
4187  ;
4188  return 0;
4189}
4190_ACEOF
4191if ac_fn_c_try_compile "$LINENO"
4192then :
4193
4194else case e in #(
4195  e) ac_c_werror_flag=$ac_save_c_werror_flag
4196	 CFLAGS="-g"
4197	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198/* end confdefs.h.  */
4199
4200int
4201main (void)
4202{
4203
4204  ;
4205  return 0;
4206}
4207_ACEOF
4208if ac_fn_c_try_compile "$LINENO"
4209then :
4210  ac_cv_prog_cc_g=yes
4211fi
4212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4213esac
4214fi
4215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4216esac
4217fi
4218rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4219   ac_c_werror_flag=$ac_save_c_werror_flag ;;
4220esac
4221fi
4222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4223printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4224if test $ac_test_CFLAGS; then
4225  CFLAGS=$ac_save_CFLAGS
4226elif test $ac_cv_prog_cc_g = yes; then
4227  if test "$GCC" = yes; then
4228    CFLAGS="-g -O2"
4229  else
4230    CFLAGS="-g"
4231  fi
4232else
4233  if test "$GCC" = yes; then
4234    CFLAGS="-O2"
4235  else
4236    CFLAGS=
4237  fi
4238fi
4239ac_prog_cc_stdc=no
4240if test x$ac_prog_cc_stdc = xno
4241then :
4242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4243printf %s "checking for $CC option to enable C11 features... " >&6; }
4244if test ${ac_cv_prog_cc_c11+y}
4245then :
4246  printf %s "(cached) " >&6
4247else case e in #(
4248  e) ac_cv_prog_cc_c11=no
4249ac_save_CC=$CC
4250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251/* end confdefs.h.  */
4252$ac_c_conftest_c11_program
4253_ACEOF
4254for ac_arg in '' -std=gnu11
4255do
4256  CC="$ac_save_CC $ac_arg"
4257  if ac_fn_c_try_compile "$LINENO"
4258then :
4259  ac_cv_prog_cc_c11=$ac_arg
4260fi
4261rm -f core conftest.err conftest.$ac_objext conftest.beam
4262  test "x$ac_cv_prog_cc_c11" != "xno" && break
4263done
4264rm -f conftest.$ac_ext
4265CC=$ac_save_CC ;;
4266esac
4267fi
4268
4269if test "x$ac_cv_prog_cc_c11" = xno
4270then :
4271  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4272printf "%s\n" "unsupported" >&6; }
4273else case e in #(
4274  e) if test "x$ac_cv_prog_cc_c11" = x
4275then :
4276  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4277printf "%s\n" "none needed" >&6; }
4278else case e in #(
4279  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4280printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4281     CC="$CC $ac_cv_prog_cc_c11" ;;
4282esac
4283fi
4284  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4285  ac_prog_cc_stdc=c11 ;;
4286esac
4287fi
4288fi
4289if test x$ac_prog_cc_stdc = xno
4290then :
4291  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4292printf %s "checking for $CC option to enable C99 features... " >&6; }
4293if test ${ac_cv_prog_cc_c99+y}
4294then :
4295  printf %s "(cached) " >&6
4296else case e in #(
4297  e) ac_cv_prog_cc_c99=no
4298ac_save_CC=$CC
4299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300/* end confdefs.h.  */
4301$ac_c_conftest_c99_program
4302_ACEOF
4303for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4304do
4305  CC="$ac_save_CC $ac_arg"
4306  if ac_fn_c_try_compile "$LINENO"
4307then :
4308  ac_cv_prog_cc_c99=$ac_arg
4309fi
4310rm -f core conftest.err conftest.$ac_objext conftest.beam
4311  test "x$ac_cv_prog_cc_c99" != "xno" && break
4312done
4313rm -f conftest.$ac_ext
4314CC=$ac_save_CC ;;
4315esac
4316fi
4317
4318if test "x$ac_cv_prog_cc_c99" = xno
4319then :
4320  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4321printf "%s\n" "unsupported" >&6; }
4322else case e in #(
4323  e) if test "x$ac_cv_prog_cc_c99" = x
4324then :
4325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4326printf "%s\n" "none needed" >&6; }
4327else case e in #(
4328  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4329printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4330     CC="$CC $ac_cv_prog_cc_c99" ;;
4331esac
4332fi
4333  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4334  ac_prog_cc_stdc=c99 ;;
4335esac
4336fi
4337fi
4338if test x$ac_prog_cc_stdc = xno
4339then :
4340  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4341printf %s "checking for $CC option to enable C89 features... " >&6; }
4342if test ${ac_cv_prog_cc_c89+y}
4343then :
4344  printf %s "(cached) " >&6
4345else case e in #(
4346  e) ac_cv_prog_cc_c89=no
4347ac_save_CC=$CC
4348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349/* end confdefs.h.  */
4350$ac_c_conftest_c89_program
4351_ACEOF
4352for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4353do
4354  CC="$ac_save_CC $ac_arg"
4355  if ac_fn_c_try_compile "$LINENO"
4356then :
4357  ac_cv_prog_cc_c89=$ac_arg
4358fi
4359rm -f core conftest.err conftest.$ac_objext conftest.beam
4360  test "x$ac_cv_prog_cc_c89" != "xno" && break
4361done
4362rm -f conftest.$ac_ext
4363CC=$ac_save_CC ;;
4364esac
4365fi
4366
4367if test "x$ac_cv_prog_cc_c89" = xno
4368then :
4369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4370printf "%s\n" "unsupported" >&6; }
4371else case e in #(
4372  e) if test "x$ac_cv_prog_cc_c89" = x
4373then :
4374  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4375printf "%s\n" "none needed" >&6; }
4376else case e in #(
4377  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4378printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4379     CC="$CC $ac_cv_prog_cc_c89" ;;
4380esac
4381fi
4382  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4383  ac_prog_cc_stdc=c89 ;;
4384esac
4385fi
4386fi
4387
4388ac_ext=c
4389ac_cpp='$CPP $CPPFLAGS'
4390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392ac_compiler_gnu=$ac_cv_c_compiler_gnu
4393
4394
4395  ac_ext=c
4396ac_cpp='$CPP $CPPFLAGS'
4397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399ac_compiler_gnu=$ac_cv_c_compiler_gnu
4400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4401printf %s "checking whether $CC understands -c and -o together... " >&6; }
4402if test ${am_cv_prog_cc_c_o+y}
4403then :
4404  printf %s "(cached) " >&6
4405else case e in #(
4406  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407/* end confdefs.h.  */
4408
4409int
4410main (void)
4411{
4412
4413  ;
4414  return 0;
4415}
4416_ACEOF
4417  # Make sure it works both with $CC and with simple cc.
4418  # Following AC_PROG_CC_C_O, we do the test twice because some
4419  # compilers refuse to overwrite an existing .o file with -o,
4420  # though they will create one.
4421  am_cv_prog_cc_c_o=yes
4422  for am_i in 1 2; do
4423    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4424   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); } \
4428         && test -f conftest2.$ac_objext; then
4429      : OK
4430    else
4431      am_cv_prog_cc_c_o=no
4432      break
4433    fi
4434  done
4435  rm -f core conftest*
4436  unset am_i ;;
4437esac
4438fi
4439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4440printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4441if test "$am_cv_prog_cc_c_o" != yes; then
4442   # Losing compiler, so override with the script.
4443   # FIXME: It is wrong to rewrite CC.
4444   # But if we don't then we get into trouble of one sort or another.
4445   # A longer-term fix would be to have automake use am__CC in this case,
4446   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4447   CC="$am_aux_dir/compile $CC"
4448fi
4449ac_ext=c
4450ac_cpp='$CPP $CPPFLAGS'
4451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454
4455
4456depcc="$CC"   am_compiler_list=
4457
4458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4459printf %s "checking dependency style of $depcc... " >&6; }
4460if test ${am_cv_CC_dependencies_compiler_type+y}
4461then :
4462  printf %s "(cached) " >&6
4463else case e in #(
4464  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4465  # We make a subdir and do the tests there.  Otherwise we can end up
4466  # making bogus files that we don't know about and never remove.  For
4467  # instance it was reported that on HP-UX the gcc test will end up
4468  # making a dummy file named 'D' -- because '-MD' means "put the output
4469  # in D".
4470  rm -rf conftest.dir
4471  mkdir conftest.dir
4472  # Copy depcomp to subdir because otherwise we won't find it if we're
4473  # using a relative directory.
4474  cp "$am_depcomp" conftest.dir
4475  cd conftest.dir
4476  # We will build objects and dependencies in a subdirectory because
4477  # it helps to detect inapplicable dependency modes.  For instance
4478  # both Tru64's cc and ICC support -MD to output dependencies as a
4479  # side effect of compilation, but ICC will put the dependencies in
4480  # the current directory while Tru64 will put them in the object
4481  # directory.
4482  mkdir sub
4483
4484  am_cv_CC_dependencies_compiler_type=none
4485  if test "$am_compiler_list" = ""; then
4486     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4487  fi
4488  am__universal=false
4489  case " $depcc " in #(
4490     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4491     esac
4492
4493  for depmode in $am_compiler_list; do
4494    # Setup a source with many dependencies, because some compilers
4495    # like to wrap large dependency lists on column 80 (with \), and
4496    # we should not choose a depcomp mode which is confused by this.
4497    #
4498    # We need to recreate these files for each test, as the compiler may
4499    # overwrite some of them when testing with obscure command lines.
4500    # This happens at least with the AIX C compiler.
4501    : > sub/conftest.c
4502    for i in 1 2 3 4 5 6; do
4503      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4504      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4505      # Solaris 10 /bin/sh.
4506      echo '/* dummy */' > sub/conftst$i.h
4507    done
4508    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4509
4510    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4511    # mode.  It turns out that the SunPro C++ compiler does not properly
4512    # handle '-M -o', and we need to detect this.  Also, some Intel
4513    # versions had trouble with output in subdirs.
4514    am__obj=sub/conftest.${OBJEXT-o}
4515    am__minus_obj="-o $am__obj"
4516    case $depmode in
4517    gcc)
4518      # This depmode causes a compiler race in universal mode.
4519      test "$am__universal" = false || continue
4520      ;;
4521    nosideeffect)
4522      # After this tag, mechanisms are not by side-effect, so they'll
4523      # only be used when explicitly requested.
4524      if test "x$enable_dependency_tracking" = xyes; then
4525	continue
4526      else
4527	break
4528      fi
4529      ;;
4530    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4531      # This compiler won't grok '-c -o', but also, the minuso test has
4532      # not run yet.  These depmodes are late enough in the game, and
4533      # so weak that their functioning should not be impacted.
4534      am__obj=conftest.${OBJEXT-o}
4535      am__minus_obj=
4536      ;;
4537    none) break ;;
4538    esac
4539    if depmode=$depmode \
4540       source=sub/conftest.c object=$am__obj \
4541       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4542       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4543         >/dev/null 2>conftest.err &&
4544       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4545       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4546       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4547       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4548      # icc doesn't choke on unknown options, it will just issue warnings
4549      # or remarks (even with -Werror).  So we grep stderr for any message
4550      # that says an option was ignored or not supported.
4551      # When given -MP, icc 7.0 and 7.1 complain thus:
4552      #   icc: Command line warning: ignoring option '-M'; no argument required
4553      # The diagnosis changed in icc 8.0:
4554      #   icc: Command line remark: option '-MP' not supported
4555      if (grep 'ignoring option' conftest.err ||
4556          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4557        am_cv_CC_dependencies_compiler_type=$depmode
4558        break
4559      fi
4560    fi
4561  done
4562
4563  cd ..
4564  rm -rf conftest.dir
4565else
4566  am_cv_CC_dependencies_compiler_type=none
4567fi
4568 ;;
4569esac
4570fi
4571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4572printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4573CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4574
4575 if
4576  test "x$enable_dependency_tracking" != xno \
4577  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4578  am__fastdepCC_TRUE=
4579  am__fastdepCC_FALSE='#'
4580else
4581  am__fastdepCC_TRUE='#'
4582  am__fastdepCC_FALSE=
4583fi
4584
4585
4586
4587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4588printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4589if test ${ac_cv_c_undeclared_builtin_options+y}
4590then :
4591  printf %s "(cached) " >&6
4592else case e in #(
4593  e) ac_save_CFLAGS=$CFLAGS
4594   ac_cv_c_undeclared_builtin_options='cannot detect'
4595   for ac_arg in '' -fno-builtin; do
4596     CFLAGS="$ac_save_CFLAGS $ac_arg"
4597     # This test program should *not* compile successfully.
4598     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599/* end confdefs.h.  */
4600
4601int
4602main (void)
4603{
4604(void) strchr;
4605  ;
4606  return 0;
4607}
4608_ACEOF
4609if ac_fn_c_try_compile "$LINENO"
4610then :
4611
4612else case e in #(
4613  e) # This test program should compile successfully.
4614        # No library function is consistently available on
4615        # freestanding implementations, so test against a dummy
4616        # declaration.  Include always-available headers on the
4617        # off chance that they somehow elicit warnings.
4618        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619/* end confdefs.h.  */
4620#include <float.h>
4621#include <limits.h>
4622#include <stdarg.h>
4623#include <stddef.h>
4624extern void ac_decl (int, char *);
4625
4626int
4627main (void)
4628{
4629(void) ac_decl (0, (char *) 0);
4630  (void) ac_decl;
4631
4632  ;
4633  return 0;
4634}
4635_ACEOF
4636if ac_fn_c_try_compile "$LINENO"
4637then :
4638  if test x"$ac_arg" = x
4639then :
4640  ac_cv_c_undeclared_builtin_options='none needed'
4641else case e in #(
4642  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4643esac
4644fi
4645          break
4646fi
4647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4648esac
4649fi
4650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4651    done
4652    CFLAGS=$ac_save_CFLAGS
4653   ;;
4654esac
4655fi
4656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4657printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4658  case $ac_cv_c_undeclared_builtin_options in #(
4659  'cannot detect') :
4660    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4661printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4662as_fn_error $? "cannot make $CC report undeclared builtins
4663See 'config.log' for more details" "$LINENO" 5; } ;; #(
4664  'none needed') :
4665    ac_c_undeclared_builtin_options='' ;; #(
4666  *) :
4667    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4668esac
4669
4670ac_header= ac_cache=
4671for ac_item in $ac_header_c_list
4672do
4673  if test $ac_cache; then
4674    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4675    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4676      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4677    fi
4678    ac_header= ac_cache=
4679  elif test $ac_header; then
4680    ac_cache=$ac_item
4681  else
4682    ac_header=$ac_item
4683  fi
4684done
4685
4686
4687
4688
4689
4690
4691
4692
4693if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4694then :
4695
4696printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4697
4698fi
4699
4700
4701
4702
4703ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4704if test "x$ac_cv_have_decl___clang__" = xyes
4705then :
4706  CLANGCC="yes"
4707else case e in #(
4708  e) CLANGCC="no" ;;
4709esac
4710fi
4711ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4712if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4713then :
4714  INTELCC="yes"
4715else case e in #(
4716  e) INTELCC="no" ;;
4717esac
4718fi
4719ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4720if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4721then :
4722  SUNCC="yes"
4723else case e in #(
4724  e) SUNCC="no" ;;
4725esac
4726fi
4727
4728
4729
4730
4731
4732
4733
4734
4735if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4736	if test -n "$ac_tool_prefix"; then
4737  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4738set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740printf %s "checking for $ac_word... " >&6; }
4741if test ${ac_cv_path_PKG_CONFIG+y}
4742then :
4743  printf %s "(cached) " >&6
4744else case e in #(
4745  e) case $PKG_CONFIG in
4746  [\\/]* | ?:[\\/]*)
4747  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4748  ;;
4749  *)
4750  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751for as_dir in $PATH
4752do
4753  IFS=$as_save_IFS
4754  case $as_dir in #(((
4755    '') as_dir=./ ;;
4756    */) ;;
4757    *) as_dir=$as_dir/ ;;
4758  esac
4759    for ac_exec_ext in '' $ac_executable_extensions; do
4760  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4761    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4762    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4763    break 2
4764  fi
4765done
4766  done
4767IFS=$as_save_IFS
4768
4769  ;;
4770esac ;;
4771esac
4772fi
4773PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4774if test -n "$PKG_CONFIG"; then
4775  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4776printf "%s\n" "$PKG_CONFIG" >&6; }
4777else
4778  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779printf "%s\n" "no" >&6; }
4780fi
4781
4782
4783fi
4784if test -z "$ac_cv_path_PKG_CONFIG"; then
4785  ac_pt_PKG_CONFIG=$PKG_CONFIG
4786  # Extract the first word of "pkg-config", so it can be a program name with args.
4787set dummy pkg-config; ac_word=$2
4788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789printf %s "checking for $ac_word... " >&6; }
4790if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4791then :
4792  printf %s "(cached) " >&6
4793else case e in #(
4794  e) case $ac_pt_PKG_CONFIG in
4795  [\\/]* | ?:[\\/]*)
4796  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4797  ;;
4798  *)
4799  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800for as_dir in $PATH
4801do
4802  IFS=$as_save_IFS
4803  case $as_dir in #(((
4804    '') as_dir=./ ;;
4805    */) ;;
4806    *) as_dir=$as_dir/ ;;
4807  esac
4808    for ac_exec_ext in '' $ac_executable_extensions; do
4809  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4810    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4811    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4812    break 2
4813  fi
4814done
4815  done
4816IFS=$as_save_IFS
4817
4818  ;;
4819esac ;;
4820esac
4821fi
4822ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4823if test -n "$ac_pt_PKG_CONFIG"; then
4824  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4825printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4826else
4827  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828printf "%s\n" "no" >&6; }
4829fi
4830
4831  if test "x$ac_pt_PKG_CONFIG" = x; then
4832    PKG_CONFIG=""
4833  else
4834    case $cross_compiling:$ac_tool_warned in
4835yes:)
4836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4837printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4838ac_tool_warned=yes ;;
4839esac
4840    PKG_CONFIG=$ac_pt_PKG_CONFIG
4841  fi
4842else
4843  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4844fi
4845
4846fi
4847if test -n "$PKG_CONFIG"; then
4848	_pkg_min_version=0.9.0
4849	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4850printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4851	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4852		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4853printf "%s\n" "yes" >&6; }
4854	else
4855		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856printf "%s\n" "no" >&6; }
4857		PKG_CONFIG=""
4858	fi
4859fi
4860
4861
4862  # Make sure we can run config.sub.
4863$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4864  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4865
4866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4867printf %s "checking build system type... " >&6; }
4868if test ${ac_cv_build+y}
4869then :
4870  printf %s "(cached) " >&6
4871else case e in #(
4872  e) ac_build_alias=$build_alias
4873test "x$ac_build_alias" = x &&
4874  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4875test "x$ac_build_alias" = x &&
4876  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4877ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4878  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4879 ;;
4880esac
4881fi
4882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4883printf "%s\n" "$ac_cv_build" >&6; }
4884case $ac_cv_build in
4885*-*-*) ;;
4886*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4887esac
4888build=$ac_cv_build
4889ac_save_IFS=$IFS; IFS='-'
4890set x $ac_cv_build
4891shift
4892build_cpu=$1
4893build_vendor=$2
4894shift; shift
4895# Remember, the first character of IFS is used to create $*,
4896# except with old shells:
4897build_os=$*
4898IFS=$ac_save_IFS
4899case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4900
4901
4902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4903printf %s "checking host system type... " >&6; }
4904if test ${ac_cv_host+y}
4905then :
4906  printf %s "(cached) " >&6
4907else case e in #(
4908  e) if test "x$host_alias" = x; then
4909  ac_cv_host=$ac_cv_build
4910else
4911  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4912    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4913fi
4914 ;;
4915esac
4916fi
4917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4918printf "%s\n" "$ac_cv_host" >&6; }
4919case $ac_cv_host in
4920*-*-*) ;;
4921*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4922esac
4923host=$ac_cv_host
4924ac_save_IFS=$IFS; IFS='-'
4925set x $ac_cv_host
4926shift
4927host_cpu=$1
4928host_vendor=$2
4929shift; shift
4930# Remember, the first character of IFS is used to create $*,
4931# except with old shells:
4932host_os=$*
4933IFS=$ac_save_IFS
4934case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4935
4936
4937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4938printf %s "checking for a sed that does not truncate output... " >&6; }
4939if test ${ac_cv_path_SED+y}
4940then :
4941  printf %s "(cached) " >&6
4942else case e in #(
4943  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4944     for ac_i in 1 2 3 4 5 6 7; do
4945       ac_script="$ac_script$as_nl$ac_script"
4946     done
4947     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4948     { ac_script=; unset ac_script;}
4949     if test -z "$SED"; then
4950  ac_path_SED_found=false
4951  # Loop through the user's path and test for each of PROGNAME-LIST
4952  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953for as_dir in $PATH
4954do
4955  IFS=$as_save_IFS
4956  case $as_dir in #(((
4957    '') as_dir=./ ;;
4958    */) ;;
4959    *) as_dir=$as_dir/ ;;
4960  esac
4961    for ac_prog in sed gsed
4962   do
4963    for ac_exec_ext in '' $ac_executable_extensions; do
4964      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4965      as_fn_executable_p "$ac_path_SED" || continue
4966# Check for GNU ac_path_SED and select it if it is found.
4967  # Check for GNU $ac_path_SED
4968case `"$ac_path_SED" --version 2>&1` in #(
4969*GNU*)
4970  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4971#(
4972*)
4973  ac_count=0
4974  printf %s 0123456789 >"conftest.in"
4975  while :
4976  do
4977    cat "conftest.in" "conftest.in" >"conftest.tmp"
4978    mv "conftest.tmp" "conftest.in"
4979    cp "conftest.in" "conftest.nl"
4980    printf "%s\n" '' >> "conftest.nl"
4981    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4982    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4983    as_fn_arith $ac_count + 1 && ac_count=$as_val
4984    if test $ac_count -gt ${ac_path_SED_max-0}; then
4985      # Best one so far, save it but keep looking for a better one
4986      ac_cv_path_SED="$ac_path_SED"
4987      ac_path_SED_max=$ac_count
4988    fi
4989    # 10*(2^10) chars as input seems more than enough
4990    test $ac_count -gt 10 && break
4991  done
4992  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4993esac
4994
4995      $ac_path_SED_found && break 3
4996    done
4997  done
4998  done
4999IFS=$as_save_IFS
5000  if test -z "$ac_cv_path_SED"; then
5001    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5002  fi
5003else
5004  ac_cv_path_SED=$SED
5005fi
5006 ;;
5007esac
5008fi
5009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5010printf "%s\n" "$ac_cv_path_SED" >&6; }
5011 SED="$ac_cv_path_SED"
5012  rm -f conftest.sed
5013
5014
5015
5016
5017
5018
5019# Check whether --enable-selective-werror was given.
5020if test ${enable_selective_werror+y}
5021then :
5022  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5023else case e in #(
5024  e) SELECTIVE_WERROR=yes ;;
5025esac
5026fi
5027
5028
5029
5030
5031
5032# -v is too short to test reliably with XORG_TESTSET_CFLAG
5033if test "x$SUNCC" = "xyes"; then
5034    BASE_CFLAGS="-v"
5035else
5036    BASE_CFLAGS=""
5037fi
5038
5039# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053xorg_testset_save_CFLAGS="$CFLAGS"
5054
5055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5056	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5057	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5058printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5059if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5060then :
5061  printf %s "(cached) " >&6
5062else case e in #(
5063  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064/* end confdefs.h.  */
5065int i;
5066_ACEOF
5067if ac_fn_c_try_compile "$LINENO"
5068then :
5069  xorg_cv_cc_flag_unknown_warning_option=yes
5070else case e in #(
5071  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5072esac
5073fi
5074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5075esac
5076fi
5077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5078printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5079	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5080	CFLAGS="$xorg_testset_save_CFLAGS"
5081fi
5082
5083if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5084	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5085		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5086	fi
5087	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5088	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5089printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5090if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5091then :
5092  printf %s "(cached) " >&6
5093else case e in #(
5094  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095/* end confdefs.h.  */
5096int i;
5097_ACEOF
5098if ac_fn_c_try_compile "$LINENO"
5099then :
5100  xorg_cv_cc_flag_unused_command_line_argument=yes
5101else case e in #(
5102  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5103esac
5104fi
5105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5106esac
5107fi
5108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5109printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5110	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5111	CFLAGS="$xorg_testset_save_CFLAGS"
5112fi
5113
5114found="no"
5115
5116	if test $found = "no" ; then
5117		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5118			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5119		fi
5120
5121		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5122			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5123		fi
5124
5125		CFLAGS="$CFLAGS -Wall"
5126
5127		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5128printf %s "checking if $CC supports -Wall... " >&6; }
5129		cacheid=xorg_cv_cc_flag__Wall
5130		if eval test \${$cacheid+y}
5131then :
5132  printf %s "(cached) " >&6
5133else case e in #(
5134  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135/* end confdefs.h.  */
5136int i;
5137int
5138main (void)
5139{
5140
5141  ;
5142  return 0;
5143}
5144_ACEOF
5145if ac_fn_c_try_link "$LINENO"
5146then :
5147  eval $cacheid=yes
5148else case e in #(
5149  e) eval $cacheid=no ;;
5150esac
5151fi
5152rm -f core conftest.err conftest.$ac_objext conftest.beam \
5153    conftest$ac_exeext conftest.$ac_ext ;;
5154esac
5155fi
5156
5157
5158		CFLAGS="$xorg_testset_save_CFLAGS"
5159
5160		eval supported=\$$cacheid
5161		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5162printf "%s\n" "$supported" >&6; }
5163		if test "$supported" = "yes" ; then
5164			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5165			found="yes"
5166		fi
5167	fi
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183xorg_testset_save_CFLAGS="$CFLAGS"
5184
5185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5186	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5187	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5188printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5189if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5190then :
5191  printf %s "(cached) " >&6
5192else case e in #(
5193  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194/* end confdefs.h.  */
5195int i;
5196_ACEOF
5197if ac_fn_c_try_compile "$LINENO"
5198then :
5199  xorg_cv_cc_flag_unknown_warning_option=yes
5200else case e in #(
5201  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5202esac
5203fi
5204rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5205esac
5206fi
5207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5208printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5209	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5210	CFLAGS="$xorg_testset_save_CFLAGS"
5211fi
5212
5213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5214	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5215		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5216	fi
5217	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5218	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5219printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5220if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5221then :
5222  printf %s "(cached) " >&6
5223else case e in #(
5224  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225/* end confdefs.h.  */
5226int i;
5227_ACEOF
5228if ac_fn_c_try_compile "$LINENO"
5229then :
5230  xorg_cv_cc_flag_unused_command_line_argument=yes
5231else case e in #(
5232  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5233esac
5234fi
5235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5236esac
5237fi
5238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5239printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5240	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5241	CFLAGS="$xorg_testset_save_CFLAGS"
5242fi
5243
5244found="no"
5245
5246	if test $found = "no" ; then
5247		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5248			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5249		fi
5250
5251		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5252			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5253		fi
5254
5255		CFLAGS="$CFLAGS -Wpointer-arith"
5256
5257		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5258printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5259		cacheid=xorg_cv_cc_flag__Wpointer_arith
5260		if eval test \${$cacheid+y}
5261then :
5262  printf %s "(cached) " >&6
5263else case e in #(
5264  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265/* end confdefs.h.  */
5266int i;
5267int
5268main (void)
5269{
5270
5271  ;
5272  return 0;
5273}
5274_ACEOF
5275if ac_fn_c_try_link "$LINENO"
5276then :
5277  eval $cacheid=yes
5278else case e in #(
5279  e) eval $cacheid=no ;;
5280esac
5281fi
5282rm -f core conftest.err conftest.$ac_objext conftest.beam \
5283    conftest$ac_exeext conftest.$ac_ext ;;
5284esac
5285fi
5286
5287
5288		CFLAGS="$xorg_testset_save_CFLAGS"
5289
5290		eval supported=\$$cacheid
5291		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5292printf "%s\n" "$supported" >&6; }
5293		if test "$supported" = "yes" ; then
5294			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5295			found="yes"
5296		fi
5297	fi
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313xorg_testset_save_CFLAGS="$CFLAGS"
5314
5315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5316	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5317	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5318printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5319if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5320then :
5321  printf %s "(cached) " >&6
5322else case e in #(
5323  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324/* end confdefs.h.  */
5325int i;
5326_ACEOF
5327if ac_fn_c_try_compile "$LINENO"
5328then :
5329  xorg_cv_cc_flag_unknown_warning_option=yes
5330else case e in #(
5331  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5332esac
5333fi
5334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5335esac
5336fi
5337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5338printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5339	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5340	CFLAGS="$xorg_testset_save_CFLAGS"
5341fi
5342
5343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5344	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5345		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5346	fi
5347	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5348	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5349printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5350if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5351then :
5352  printf %s "(cached) " >&6
5353else case e in #(
5354  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355/* end confdefs.h.  */
5356int i;
5357_ACEOF
5358if ac_fn_c_try_compile "$LINENO"
5359then :
5360  xorg_cv_cc_flag_unused_command_line_argument=yes
5361else case e in #(
5362  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5363esac
5364fi
5365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5366esac
5367fi
5368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5369printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5370	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5371	CFLAGS="$xorg_testset_save_CFLAGS"
5372fi
5373
5374found="no"
5375
5376	if test $found = "no" ; then
5377		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5378			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5379		fi
5380
5381		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5382			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5383		fi
5384
5385		CFLAGS="$CFLAGS -Wmissing-declarations"
5386
5387		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5388printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5389		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5390		if eval test \${$cacheid+y}
5391then :
5392  printf %s "(cached) " >&6
5393else case e in #(
5394  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395/* end confdefs.h.  */
5396int i;
5397int
5398main (void)
5399{
5400
5401  ;
5402  return 0;
5403}
5404_ACEOF
5405if ac_fn_c_try_link "$LINENO"
5406then :
5407  eval $cacheid=yes
5408else case e in #(
5409  e) eval $cacheid=no ;;
5410esac
5411fi
5412rm -f core conftest.err conftest.$ac_objext conftest.beam \
5413    conftest$ac_exeext conftest.$ac_ext ;;
5414esac
5415fi
5416
5417
5418		CFLAGS="$xorg_testset_save_CFLAGS"
5419
5420		eval supported=\$$cacheid
5421		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5422printf "%s\n" "$supported" >&6; }
5423		if test "$supported" = "yes" ; then
5424			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5425			found="yes"
5426		fi
5427	fi
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443xorg_testset_save_CFLAGS="$CFLAGS"
5444
5445if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5446	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5447	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5448printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5449if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5450then :
5451  printf %s "(cached) " >&6
5452else case e in #(
5453  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454/* end confdefs.h.  */
5455int i;
5456_ACEOF
5457if ac_fn_c_try_compile "$LINENO"
5458then :
5459  xorg_cv_cc_flag_unknown_warning_option=yes
5460else case e in #(
5461  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5462esac
5463fi
5464rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5465esac
5466fi
5467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5468printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5469	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5470	CFLAGS="$xorg_testset_save_CFLAGS"
5471fi
5472
5473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5474	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5475		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5476	fi
5477	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5478	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5479printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5480if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5481then :
5482  printf %s "(cached) " >&6
5483else case e in #(
5484  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485/* end confdefs.h.  */
5486int i;
5487_ACEOF
5488if ac_fn_c_try_compile "$LINENO"
5489then :
5490  xorg_cv_cc_flag_unused_command_line_argument=yes
5491else case e in #(
5492  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5493esac
5494fi
5495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5496esac
5497fi
5498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5499printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5500	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5501	CFLAGS="$xorg_testset_save_CFLAGS"
5502fi
5503
5504found="no"
5505
5506	if test $found = "no" ; then
5507		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5508			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5509		fi
5510
5511		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5512			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5513		fi
5514
5515		CFLAGS="$CFLAGS -Wformat=2"
5516
5517		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5518printf %s "checking if $CC supports -Wformat=2... " >&6; }
5519		cacheid=xorg_cv_cc_flag__Wformat_2
5520		if eval test \${$cacheid+y}
5521then :
5522  printf %s "(cached) " >&6
5523else case e in #(
5524  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525/* end confdefs.h.  */
5526int i;
5527int
5528main (void)
5529{
5530
5531  ;
5532  return 0;
5533}
5534_ACEOF
5535if ac_fn_c_try_link "$LINENO"
5536then :
5537  eval $cacheid=yes
5538else case e in #(
5539  e) eval $cacheid=no ;;
5540esac
5541fi
5542rm -f core conftest.err conftest.$ac_objext conftest.beam \
5543    conftest$ac_exeext conftest.$ac_ext ;;
5544esac
5545fi
5546
5547
5548		CFLAGS="$xorg_testset_save_CFLAGS"
5549
5550		eval supported=\$$cacheid
5551		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5552printf "%s\n" "$supported" >&6; }
5553		if test "$supported" = "yes" ; then
5554			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5555			found="yes"
5556		fi
5557	fi
5558
5559	if test $found = "no" ; then
5560		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5561			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5562		fi
5563
5564		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5565			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5566		fi
5567
5568		CFLAGS="$CFLAGS -Wformat"
5569
5570		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5571printf %s "checking if $CC supports -Wformat... " >&6; }
5572		cacheid=xorg_cv_cc_flag__Wformat
5573		if eval test \${$cacheid+y}
5574then :
5575  printf %s "(cached) " >&6
5576else case e in #(
5577  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578/* end confdefs.h.  */
5579int i;
5580int
5581main (void)
5582{
5583
5584  ;
5585  return 0;
5586}
5587_ACEOF
5588if ac_fn_c_try_link "$LINENO"
5589then :
5590  eval $cacheid=yes
5591else case e in #(
5592  e) eval $cacheid=no ;;
5593esac
5594fi
5595rm -f core conftest.err conftest.$ac_objext conftest.beam \
5596    conftest$ac_exeext conftest.$ac_ext ;;
5597esac
5598fi
5599
5600
5601		CFLAGS="$xorg_testset_save_CFLAGS"
5602
5603		eval supported=\$$cacheid
5604		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5605printf "%s\n" "$supported" >&6; }
5606		if test "$supported" = "yes" ; then
5607			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5608			found="yes"
5609		fi
5610	fi
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628xorg_testset_save_CFLAGS="$CFLAGS"
5629
5630if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5631	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5632	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5633printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5634if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5635then :
5636  printf %s "(cached) " >&6
5637else case e in #(
5638  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639/* end confdefs.h.  */
5640int i;
5641_ACEOF
5642if ac_fn_c_try_compile "$LINENO"
5643then :
5644  xorg_cv_cc_flag_unknown_warning_option=yes
5645else case e in #(
5646  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5647esac
5648fi
5649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5650esac
5651fi
5652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5653printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5654	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5655	CFLAGS="$xorg_testset_save_CFLAGS"
5656fi
5657
5658if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5659	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5660		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5661	fi
5662	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5663	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5664printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5665if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5666then :
5667  printf %s "(cached) " >&6
5668else case e in #(
5669  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670/* end confdefs.h.  */
5671int i;
5672_ACEOF
5673if ac_fn_c_try_compile "$LINENO"
5674then :
5675  xorg_cv_cc_flag_unused_command_line_argument=yes
5676else case e in #(
5677  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5678esac
5679fi
5680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5681esac
5682fi
5683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5684printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5685	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5686	CFLAGS="$xorg_testset_save_CFLAGS"
5687fi
5688
5689found="no"
5690
5691	if test $found = "no" ; then
5692		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5693			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5694		fi
5695
5696		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5697			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5698		fi
5699
5700		CFLAGS="$CFLAGS -Wstrict-prototypes"
5701
5702		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5703printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5704		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5705		if eval test \${$cacheid+y}
5706then :
5707  printf %s "(cached) " >&6
5708else case e in #(
5709  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710/* end confdefs.h.  */
5711int i;
5712int
5713main (void)
5714{
5715
5716  ;
5717  return 0;
5718}
5719_ACEOF
5720if ac_fn_c_try_link "$LINENO"
5721then :
5722  eval $cacheid=yes
5723else case e in #(
5724  e) eval $cacheid=no ;;
5725esac
5726fi
5727rm -f core conftest.err conftest.$ac_objext conftest.beam \
5728    conftest$ac_exeext conftest.$ac_ext ;;
5729esac
5730fi
5731
5732
5733		CFLAGS="$xorg_testset_save_CFLAGS"
5734
5735		eval supported=\$$cacheid
5736		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5737printf "%s\n" "$supported" >&6; }
5738		if test "$supported" = "yes" ; then
5739			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5740			found="yes"
5741		fi
5742	fi
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758xorg_testset_save_CFLAGS="$CFLAGS"
5759
5760if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5761	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5762	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5763printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5764if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5765then :
5766  printf %s "(cached) " >&6
5767else case e in #(
5768  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769/* end confdefs.h.  */
5770int i;
5771_ACEOF
5772if ac_fn_c_try_compile "$LINENO"
5773then :
5774  xorg_cv_cc_flag_unknown_warning_option=yes
5775else case e in #(
5776  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5777esac
5778fi
5779rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5780esac
5781fi
5782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5783printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5784	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5785	CFLAGS="$xorg_testset_save_CFLAGS"
5786fi
5787
5788if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5789	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5790		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5791	fi
5792	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5793	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5794printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5795if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5796then :
5797  printf %s "(cached) " >&6
5798else case e in #(
5799  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800/* end confdefs.h.  */
5801int i;
5802_ACEOF
5803if ac_fn_c_try_compile "$LINENO"
5804then :
5805  xorg_cv_cc_flag_unused_command_line_argument=yes
5806else case e in #(
5807  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5808esac
5809fi
5810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5811esac
5812fi
5813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5814printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5815	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5816	CFLAGS="$xorg_testset_save_CFLAGS"
5817fi
5818
5819found="no"
5820
5821	if test $found = "no" ; then
5822		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5823			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5824		fi
5825
5826		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5827			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5828		fi
5829
5830		CFLAGS="$CFLAGS -Wmissing-prototypes"
5831
5832		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5833printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5834		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5835		if eval test \${$cacheid+y}
5836then :
5837  printf %s "(cached) " >&6
5838else case e in #(
5839  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840/* end confdefs.h.  */
5841int i;
5842int
5843main (void)
5844{
5845
5846  ;
5847  return 0;
5848}
5849_ACEOF
5850if ac_fn_c_try_link "$LINENO"
5851then :
5852  eval $cacheid=yes
5853else case e in #(
5854  e) eval $cacheid=no ;;
5855esac
5856fi
5857rm -f core conftest.err conftest.$ac_objext conftest.beam \
5858    conftest$ac_exeext conftest.$ac_ext ;;
5859esac
5860fi
5861
5862
5863		CFLAGS="$xorg_testset_save_CFLAGS"
5864
5865		eval supported=\$$cacheid
5866		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5867printf "%s\n" "$supported" >&6; }
5868		if test "$supported" = "yes" ; then
5869			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5870			found="yes"
5871		fi
5872	fi
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888xorg_testset_save_CFLAGS="$CFLAGS"
5889
5890if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5891	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5892	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5893printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5894if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5895then :
5896  printf %s "(cached) " >&6
5897else case e in #(
5898  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899/* end confdefs.h.  */
5900int i;
5901_ACEOF
5902if ac_fn_c_try_compile "$LINENO"
5903then :
5904  xorg_cv_cc_flag_unknown_warning_option=yes
5905else case e in #(
5906  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5907esac
5908fi
5909rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5910esac
5911fi
5912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5913printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5914	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5915	CFLAGS="$xorg_testset_save_CFLAGS"
5916fi
5917
5918if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5919	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5920		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5921	fi
5922	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5923	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5924printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5925if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5926then :
5927  printf %s "(cached) " >&6
5928else case e in #(
5929  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930/* end confdefs.h.  */
5931int i;
5932_ACEOF
5933if ac_fn_c_try_compile "$LINENO"
5934then :
5935  xorg_cv_cc_flag_unused_command_line_argument=yes
5936else case e in #(
5937  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5938esac
5939fi
5940rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5941esac
5942fi
5943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5944printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5945	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5946	CFLAGS="$xorg_testset_save_CFLAGS"
5947fi
5948
5949found="no"
5950
5951	if test $found = "no" ; then
5952		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5953			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5954		fi
5955
5956		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5957			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5958		fi
5959
5960		CFLAGS="$CFLAGS -Wnested-externs"
5961
5962		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5963printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5964		cacheid=xorg_cv_cc_flag__Wnested_externs
5965		if eval test \${$cacheid+y}
5966then :
5967  printf %s "(cached) " >&6
5968else case e in #(
5969  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970/* end confdefs.h.  */
5971int i;
5972int
5973main (void)
5974{
5975
5976  ;
5977  return 0;
5978}
5979_ACEOF
5980if ac_fn_c_try_link "$LINENO"
5981then :
5982  eval $cacheid=yes
5983else case e in #(
5984  e) eval $cacheid=no ;;
5985esac
5986fi
5987rm -f core conftest.err conftest.$ac_objext conftest.beam \
5988    conftest$ac_exeext conftest.$ac_ext ;;
5989esac
5990fi
5991
5992
5993		CFLAGS="$xorg_testset_save_CFLAGS"
5994
5995		eval supported=\$$cacheid
5996		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5997printf "%s\n" "$supported" >&6; }
5998		if test "$supported" = "yes" ; then
5999			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6000			found="yes"
6001		fi
6002	fi
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018xorg_testset_save_CFLAGS="$CFLAGS"
6019
6020if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6021	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6022	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6023printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6024if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6025then :
6026  printf %s "(cached) " >&6
6027else case e in #(
6028  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029/* end confdefs.h.  */
6030int i;
6031_ACEOF
6032if ac_fn_c_try_compile "$LINENO"
6033then :
6034  xorg_cv_cc_flag_unknown_warning_option=yes
6035else case e in #(
6036  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6037esac
6038fi
6039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6040esac
6041fi
6042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6043printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6044	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6045	CFLAGS="$xorg_testset_save_CFLAGS"
6046fi
6047
6048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6049	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6050		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6051	fi
6052	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6053	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6054printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6055if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6056then :
6057  printf %s "(cached) " >&6
6058else case e in #(
6059  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060/* end confdefs.h.  */
6061int i;
6062_ACEOF
6063if ac_fn_c_try_compile "$LINENO"
6064then :
6065  xorg_cv_cc_flag_unused_command_line_argument=yes
6066else case e in #(
6067  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6068esac
6069fi
6070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6071esac
6072fi
6073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6074printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6075	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6076	CFLAGS="$xorg_testset_save_CFLAGS"
6077fi
6078
6079found="no"
6080
6081	if test $found = "no" ; then
6082		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6083			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6084		fi
6085
6086		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6087			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6088		fi
6089
6090		CFLAGS="$CFLAGS -Wbad-function-cast"
6091
6092		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6093printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6094		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6095		if eval test \${$cacheid+y}
6096then :
6097  printf %s "(cached) " >&6
6098else case e in #(
6099  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6100/* end confdefs.h.  */
6101int i;
6102int
6103main (void)
6104{
6105
6106  ;
6107  return 0;
6108}
6109_ACEOF
6110if ac_fn_c_try_link "$LINENO"
6111then :
6112  eval $cacheid=yes
6113else case e in #(
6114  e) eval $cacheid=no ;;
6115esac
6116fi
6117rm -f core conftest.err conftest.$ac_objext conftest.beam \
6118    conftest$ac_exeext conftest.$ac_ext ;;
6119esac
6120fi
6121
6122
6123		CFLAGS="$xorg_testset_save_CFLAGS"
6124
6125		eval supported=\$$cacheid
6126		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6127printf "%s\n" "$supported" >&6; }
6128		if test "$supported" = "yes" ; then
6129			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6130			found="yes"
6131		fi
6132	fi
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148xorg_testset_save_CFLAGS="$CFLAGS"
6149
6150if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6151	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6152	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6153printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6154if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6155then :
6156  printf %s "(cached) " >&6
6157else case e in #(
6158  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159/* end confdefs.h.  */
6160int i;
6161_ACEOF
6162if ac_fn_c_try_compile "$LINENO"
6163then :
6164  xorg_cv_cc_flag_unknown_warning_option=yes
6165else case e in #(
6166  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6167esac
6168fi
6169rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6170esac
6171fi
6172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6173printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6174	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6175	CFLAGS="$xorg_testset_save_CFLAGS"
6176fi
6177
6178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6179	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6180		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6181	fi
6182	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6183	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6184printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6185if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6186then :
6187  printf %s "(cached) " >&6
6188else case e in #(
6189  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190/* end confdefs.h.  */
6191int i;
6192_ACEOF
6193if ac_fn_c_try_compile "$LINENO"
6194then :
6195  xorg_cv_cc_flag_unused_command_line_argument=yes
6196else case e in #(
6197  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6198esac
6199fi
6200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6201esac
6202fi
6203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6204printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6205	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6206	CFLAGS="$xorg_testset_save_CFLAGS"
6207fi
6208
6209found="no"
6210
6211	if test $found = "no" ; then
6212		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6213			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6214		fi
6215
6216		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6217			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6218		fi
6219
6220		CFLAGS="$CFLAGS -Wold-style-definition"
6221
6222		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6223printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6224		cacheid=xorg_cv_cc_flag__Wold_style_definition
6225		if eval test \${$cacheid+y}
6226then :
6227  printf %s "(cached) " >&6
6228else case e in #(
6229  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230/* end confdefs.h.  */
6231int i;
6232int
6233main (void)
6234{
6235
6236  ;
6237  return 0;
6238}
6239_ACEOF
6240if ac_fn_c_try_link "$LINENO"
6241then :
6242  eval $cacheid=yes
6243else case e in #(
6244  e) eval $cacheid=no ;;
6245esac
6246fi
6247rm -f core conftest.err conftest.$ac_objext conftest.beam \
6248    conftest$ac_exeext conftest.$ac_ext ;;
6249esac
6250fi
6251
6252
6253		CFLAGS="$xorg_testset_save_CFLAGS"
6254
6255		eval supported=\$$cacheid
6256		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6257printf "%s\n" "$supported" >&6; }
6258		if test "$supported" = "yes" ; then
6259			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6260			found="yes"
6261		fi
6262	fi
6263
6264	if test $found = "no" ; then
6265		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6266			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6267		fi
6268
6269		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6270			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6271		fi
6272
6273		CFLAGS="$CFLAGS -fd"
6274
6275		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6276printf %s "checking if $CC supports -fd... " >&6; }
6277		cacheid=xorg_cv_cc_flag__fd
6278		if eval test \${$cacheid+y}
6279then :
6280  printf %s "(cached) " >&6
6281else case e in #(
6282  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283/* end confdefs.h.  */
6284int i;
6285int
6286main (void)
6287{
6288
6289  ;
6290  return 0;
6291}
6292_ACEOF
6293if ac_fn_c_try_link "$LINENO"
6294then :
6295  eval $cacheid=yes
6296else case e in #(
6297  e) eval $cacheid=no ;;
6298esac
6299fi
6300rm -f core conftest.err conftest.$ac_objext conftest.beam \
6301    conftest$ac_exeext conftest.$ac_ext ;;
6302esac
6303fi
6304
6305
6306		CFLAGS="$xorg_testset_save_CFLAGS"
6307
6308		eval supported=\$$cacheid
6309		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6310printf "%s\n" "$supported" >&6; }
6311		if test "$supported" = "yes" ; then
6312			BASE_CFLAGS="$BASE_CFLAGS -fd"
6313			found="yes"
6314		fi
6315	fi
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331xorg_testset_save_CFLAGS="$CFLAGS"
6332
6333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6334	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6335	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6336printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6337if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6338then :
6339  printf %s "(cached) " >&6
6340else case e in #(
6341  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342/* end confdefs.h.  */
6343int i;
6344_ACEOF
6345if ac_fn_c_try_compile "$LINENO"
6346then :
6347  xorg_cv_cc_flag_unknown_warning_option=yes
6348else case e in #(
6349  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6350esac
6351fi
6352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6353esac
6354fi
6355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6356printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6357	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6358	CFLAGS="$xorg_testset_save_CFLAGS"
6359fi
6360
6361if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6362	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6363		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6364	fi
6365	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6366	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6367printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6368if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6369then :
6370  printf %s "(cached) " >&6
6371else case e in #(
6372  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373/* end confdefs.h.  */
6374int i;
6375_ACEOF
6376if ac_fn_c_try_compile "$LINENO"
6377then :
6378  xorg_cv_cc_flag_unused_command_line_argument=yes
6379else case e in #(
6380  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6381esac
6382fi
6383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6384esac
6385fi
6386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6387printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6388	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6389	CFLAGS="$xorg_testset_save_CFLAGS"
6390fi
6391
6392found="no"
6393
6394	if test $found = "no" ; then
6395		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6396			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6397		fi
6398
6399		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6400			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6401		fi
6402
6403		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6404
6405		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6406printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6407		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6408		if eval test \${$cacheid+y}
6409then :
6410  printf %s "(cached) " >&6
6411else case e in #(
6412  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413/* end confdefs.h.  */
6414int i;
6415int
6416main (void)
6417{
6418
6419  ;
6420  return 0;
6421}
6422_ACEOF
6423if ac_fn_c_try_link "$LINENO"
6424then :
6425  eval $cacheid=yes
6426else case e in #(
6427  e) eval $cacheid=no ;;
6428esac
6429fi
6430rm -f core conftest.err conftest.$ac_objext conftest.beam \
6431    conftest$ac_exeext conftest.$ac_ext ;;
6432esac
6433fi
6434
6435
6436		CFLAGS="$xorg_testset_save_CFLAGS"
6437
6438		eval supported=\$$cacheid
6439		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6440printf "%s\n" "$supported" >&6; }
6441		if test "$supported" = "yes" ; then
6442			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6443			found="yes"
6444		fi
6445	fi
6446
6447
6448
6449
6450
6451# This chunk adds additional warnings that could catch undesired effects.
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465xorg_testset_save_CFLAGS="$CFLAGS"
6466
6467if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6468	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6469	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6470printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6471if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6472then :
6473  printf %s "(cached) " >&6
6474else case e in #(
6475  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476/* end confdefs.h.  */
6477int i;
6478_ACEOF
6479if ac_fn_c_try_compile "$LINENO"
6480then :
6481  xorg_cv_cc_flag_unknown_warning_option=yes
6482else case e in #(
6483  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6484esac
6485fi
6486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6487esac
6488fi
6489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6490printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6491	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6492	CFLAGS="$xorg_testset_save_CFLAGS"
6493fi
6494
6495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6496	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6497		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6498	fi
6499	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6500	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6501printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6502if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6503then :
6504  printf %s "(cached) " >&6
6505else case e in #(
6506  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507/* end confdefs.h.  */
6508int i;
6509_ACEOF
6510if ac_fn_c_try_compile "$LINENO"
6511then :
6512  xorg_cv_cc_flag_unused_command_line_argument=yes
6513else case e in #(
6514  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6515esac
6516fi
6517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6518esac
6519fi
6520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6521printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6522	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6523	CFLAGS="$xorg_testset_save_CFLAGS"
6524fi
6525
6526found="no"
6527
6528	if test $found = "no" ; then
6529		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6530			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6531		fi
6532
6533		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6534			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6535		fi
6536
6537		CFLAGS="$CFLAGS -Wunused"
6538
6539		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6540printf %s "checking if $CC supports -Wunused... " >&6; }
6541		cacheid=xorg_cv_cc_flag__Wunused
6542		if eval test \${$cacheid+y}
6543then :
6544  printf %s "(cached) " >&6
6545else case e in #(
6546  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547/* end confdefs.h.  */
6548int i;
6549int
6550main (void)
6551{
6552
6553  ;
6554  return 0;
6555}
6556_ACEOF
6557if ac_fn_c_try_link "$LINENO"
6558then :
6559  eval $cacheid=yes
6560else case e in #(
6561  e) eval $cacheid=no ;;
6562esac
6563fi
6564rm -f core conftest.err conftest.$ac_objext conftest.beam \
6565    conftest$ac_exeext conftest.$ac_ext ;;
6566esac
6567fi
6568
6569
6570		CFLAGS="$xorg_testset_save_CFLAGS"
6571
6572		eval supported=\$$cacheid
6573		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6574printf "%s\n" "$supported" >&6; }
6575		if test "$supported" = "yes" ; then
6576			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6577			found="yes"
6578		fi
6579	fi
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595xorg_testset_save_CFLAGS="$CFLAGS"
6596
6597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6598	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6599	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6600printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6601if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6602then :
6603  printf %s "(cached) " >&6
6604else case e in #(
6605  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606/* end confdefs.h.  */
6607int i;
6608_ACEOF
6609if ac_fn_c_try_compile "$LINENO"
6610then :
6611  xorg_cv_cc_flag_unknown_warning_option=yes
6612else case e in #(
6613  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6614esac
6615fi
6616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6617esac
6618fi
6619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6620printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6621	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6622	CFLAGS="$xorg_testset_save_CFLAGS"
6623fi
6624
6625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6626	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6627		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6628	fi
6629	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6630	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6631printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6632if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6633then :
6634  printf %s "(cached) " >&6
6635else case e in #(
6636  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637/* end confdefs.h.  */
6638int i;
6639_ACEOF
6640if ac_fn_c_try_compile "$LINENO"
6641then :
6642  xorg_cv_cc_flag_unused_command_line_argument=yes
6643else case e in #(
6644  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6645esac
6646fi
6647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6648esac
6649fi
6650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6651printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6652	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6653	CFLAGS="$xorg_testset_save_CFLAGS"
6654fi
6655
6656found="no"
6657
6658	if test $found = "no" ; then
6659		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6660			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6661		fi
6662
6663		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6664			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6665		fi
6666
6667		CFLAGS="$CFLAGS -Wuninitialized"
6668
6669		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6670printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6671		cacheid=xorg_cv_cc_flag__Wuninitialized
6672		if eval test \${$cacheid+y}
6673then :
6674  printf %s "(cached) " >&6
6675else case e in #(
6676  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677/* end confdefs.h.  */
6678int i;
6679int
6680main (void)
6681{
6682
6683  ;
6684  return 0;
6685}
6686_ACEOF
6687if ac_fn_c_try_link "$LINENO"
6688then :
6689  eval $cacheid=yes
6690else case e in #(
6691  e) eval $cacheid=no ;;
6692esac
6693fi
6694rm -f core conftest.err conftest.$ac_objext conftest.beam \
6695    conftest$ac_exeext conftest.$ac_ext ;;
6696esac
6697fi
6698
6699
6700		CFLAGS="$xorg_testset_save_CFLAGS"
6701
6702		eval supported=\$$cacheid
6703		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6704printf "%s\n" "$supported" >&6; }
6705		if test "$supported" = "yes" ; then
6706			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6707			found="yes"
6708		fi
6709	fi
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725xorg_testset_save_CFLAGS="$CFLAGS"
6726
6727if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6728	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6729	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6730printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6731if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6732then :
6733  printf %s "(cached) " >&6
6734else case e in #(
6735  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736/* end confdefs.h.  */
6737int i;
6738_ACEOF
6739if ac_fn_c_try_compile "$LINENO"
6740then :
6741  xorg_cv_cc_flag_unknown_warning_option=yes
6742else case e in #(
6743  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6744esac
6745fi
6746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6747esac
6748fi
6749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6750printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6751	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6752	CFLAGS="$xorg_testset_save_CFLAGS"
6753fi
6754
6755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6756	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6757		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6758	fi
6759	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6760	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6761printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6762if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6763then :
6764  printf %s "(cached) " >&6
6765else case e in #(
6766  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767/* end confdefs.h.  */
6768int i;
6769_ACEOF
6770if ac_fn_c_try_compile "$LINENO"
6771then :
6772  xorg_cv_cc_flag_unused_command_line_argument=yes
6773else case e in #(
6774  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6775esac
6776fi
6777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6778esac
6779fi
6780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6781printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6782	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6783	CFLAGS="$xorg_testset_save_CFLAGS"
6784fi
6785
6786found="no"
6787
6788	if test $found = "no" ; then
6789		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6790			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6791		fi
6792
6793		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6794			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6795		fi
6796
6797		CFLAGS="$CFLAGS -Wshadow"
6798
6799		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6800printf %s "checking if $CC supports -Wshadow... " >&6; }
6801		cacheid=xorg_cv_cc_flag__Wshadow
6802		if eval test \${$cacheid+y}
6803then :
6804  printf %s "(cached) " >&6
6805else case e in #(
6806  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807/* end confdefs.h.  */
6808int i;
6809int
6810main (void)
6811{
6812
6813  ;
6814  return 0;
6815}
6816_ACEOF
6817if ac_fn_c_try_link "$LINENO"
6818then :
6819  eval $cacheid=yes
6820else case e in #(
6821  e) eval $cacheid=no ;;
6822esac
6823fi
6824rm -f core conftest.err conftest.$ac_objext conftest.beam \
6825    conftest$ac_exeext conftest.$ac_ext ;;
6826esac
6827fi
6828
6829
6830		CFLAGS="$xorg_testset_save_CFLAGS"
6831
6832		eval supported=\$$cacheid
6833		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6834printf "%s\n" "$supported" >&6; }
6835		if test "$supported" = "yes" ; then
6836			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6837			found="yes"
6838		fi
6839	fi
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855xorg_testset_save_CFLAGS="$CFLAGS"
6856
6857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6858	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6859	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6860printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6861if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6862then :
6863  printf %s "(cached) " >&6
6864else case e in #(
6865  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866/* end confdefs.h.  */
6867int i;
6868_ACEOF
6869if ac_fn_c_try_compile "$LINENO"
6870then :
6871  xorg_cv_cc_flag_unknown_warning_option=yes
6872else case e in #(
6873  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6874esac
6875fi
6876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6877esac
6878fi
6879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6880printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6881	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6882	CFLAGS="$xorg_testset_save_CFLAGS"
6883fi
6884
6885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6886	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6887		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6888	fi
6889	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6890	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6891printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6892if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6893then :
6894  printf %s "(cached) " >&6
6895else case e in #(
6896  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897/* end confdefs.h.  */
6898int i;
6899_ACEOF
6900if ac_fn_c_try_compile "$LINENO"
6901then :
6902  xorg_cv_cc_flag_unused_command_line_argument=yes
6903else case e in #(
6904  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6905esac
6906fi
6907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6908esac
6909fi
6910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6911printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6912	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6913	CFLAGS="$xorg_testset_save_CFLAGS"
6914fi
6915
6916found="no"
6917
6918	if test $found = "no" ; then
6919		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6920			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6921		fi
6922
6923		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6924			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6925		fi
6926
6927		CFLAGS="$CFLAGS -Wmissing-noreturn"
6928
6929		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6930printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6931		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6932		if eval test \${$cacheid+y}
6933then :
6934  printf %s "(cached) " >&6
6935else case e in #(
6936  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937/* end confdefs.h.  */
6938int i;
6939int
6940main (void)
6941{
6942
6943  ;
6944  return 0;
6945}
6946_ACEOF
6947if ac_fn_c_try_link "$LINENO"
6948then :
6949  eval $cacheid=yes
6950else case e in #(
6951  e) eval $cacheid=no ;;
6952esac
6953fi
6954rm -f core conftest.err conftest.$ac_objext conftest.beam \
6955    conftest$ac_exeext conftest.$ac_ext ;;
6956esac
6957fi
6958
6959
6960		CFLAGS="$xorg_testset_save_CFLAGS"
6961
6962		eval supported=\$$cacheid
6963		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6964printf "%s\n" "$supported" >&6; }
6965		if test "$supported" = "yes" ; then
6966			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6967			found="yes"
6968		fi
6969	fi
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985xorg_testset_save_CFLAGS="$CFLAGS"
6986
6987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6988	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6989	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6990printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6991if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6992then :
6993  printf %s "(cached) " >&6
6994else case e in #(
6995  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996/* end confdefs.h.  */
6997int i;
6998_ACEOF
6999if ac_fn_c_try_compile "$LINENO"
7000then :
7001  xorg_cv_cc_flag_unknown_warning_option=yes
7002else case e in #(
7003  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7004esac
7005fi
7006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7007esac
7008fi
7009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7010printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7011	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7012	CFLAGS="$xorg_testset_save_CFLAGS"
7013fi
7014
7015if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7016	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7017		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7018	fi
7019	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7020	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7021printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7022if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7023then :
7024  printf %s "(cached) " >&6
7025else case e in #(
7026  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027/* end confdefs.h.  */
7028int i;
7029_ACEOF
7030if ac_fn_c_try_compile "$LINENO"
7031then :
7032  xorg_cv_cc_flag_unused_command_line_argument=yes
7033else case e in #(
7034  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7035esac
7036fi
7037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7038esac
7039fi
7040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7041printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7042	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7043	CFLAGS="$xorg_testset_save_CFLAGS"
7044fi
7045
7046found="no"
7047
7048	if test $found = "no" ; then
7049		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7050			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7051		fi
7052
7053		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7054			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7055		fi
7056
7057		CFLAGS="$CFLAGS -Wmissing-format-attribute"
7058
7059		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7060printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7061		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7062		if eval test \${$cacheid+y}
7063then :
7064  printf %s "(cached) " >&6
7065else case e in #(
7066  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067/* end confdefs.h.  */
7068int i;
7069int
7070main (void)
7071{
7072
7073  ;
7074  return 0;
7075}
7076_ACEOF
7077if ac_fn_c_try_link "$LINENO"
7078then :
7079  eval $cacheid=yes
7080else case e in #(
7081  e) eval $cacheid=no ;;
7082esac
7083fi
7084rm -f core conftest.err conftest.$ac_objext conftest.beam \
7085    conftest$ac_exeext conftest.$ac_ext ;;
7086esac
7087fi
7088
7089
7090		CFLAGS="$xorg_testset_save_CFLAGS"
7091
7092		eval supported=\$$cacheid
7093		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7094printf "%s\n" "$supported" >&6; }
7095		if test "$supported" = "yes" ; then
7096			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7097			found="yes"
7098		fi
7099	fi
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115xorg_testset_save_CFLAGS="$CFLAGS"
7116
7117if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7118	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7119	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7120printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7121if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7122then :
7123  printf %s "(cached) " >&6
7124else case e in #(
7125  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126/* end confdefs.h.  */
7127int i;
7128_ACEOF
7129if ac_fn_c_try_compile "$LINENO"
7130then :
7131  xorg_cv_cc_flag_unknown_warning_option=yes
7132else case e in #(
7133  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7134esac
7135fi
7136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7137esac
7138fi
7139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7140printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7141	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7142	CFLAGS="$xorg_testset_save_CFLAGS"
7143fi
7144
7145if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7146	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7147		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7148	fi
7149	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7150	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7151printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7152if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7153then :
7154  printf %s "(cached) " >&6
7155else case e in #(
7156  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157/* end confdefs.h.  */
7158int i;
7159_ACEOF
7160if ac_fn_c_try_compile "$LINENO"
7161then :
7162  xorg_cv_cc_flag_unused_command_line_argument=yes
7163else case e in #(
7164  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7165esac
7166fi
7167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7168esac
7169fi
7170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7171printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7172	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7173	CFLAGS="$xorg_testset_save_CFLAGS"
7174fi
7175
7176found="no"
7177
7178	if test $found = "no" ; then
7179		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7180			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7181		fi
7182
7183		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7184			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7185		fi
7186
7187		CFLAGS="$CFLAGS -Wredundant-decls"
7188
7189		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7190printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7191		cacheid=xorg_cv_cc_flag__Wredundant_decls
7192		if eval test \${$cacheid+y}
7193then :
7194  printf %s "(cached) " >&6
7195else case e in #(
7196  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197/* end confdefs.h.  */
7198int i;
7199int
7200main (void)
7201{
7202
7203  ;
7204  return 0;
7205}
7206_ACEOF
7207if ac_fn_c_try_link "$LINENO"
7208then :
7209  eval $cacheid=yes
7210else case e in #(
7211  e) eval $cacheid=no ;;
7212esac
7213fi
7214rm -f core conftest.err conftest.$ac_objext conftest.beam \
7215    conftest$ac_exeext conftest.$ac_ext ;;
7216esac
7217fi
7218
7219
7220		CFLAGS="$xorg_testset_save_CFLAGS"
7221
7222		eval supported=\$$cacheid
7223		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7224printf "%s\n" "$supported" >&6; }
7225		if test "$supported" = "yes" ; then
7226			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7227			found="yes"
7228		fi
7229	fi
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245xorg_testset_save_CFLAGS="$CFLAGS"
7246
7247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7248	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7249	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7250printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7251if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7252then :
7253  printf %s "(cached) " >&6
7254else case e in #(
7255  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256/* end confdefs.h.  */
7257int i;
7258_ACEOF
7259if ac_fn_c_try_compile "$LINENO"
7260then :
7261  xorg_cv_cc_flag_unknown_warning_option=yes
7262else case e in #(
7263  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7264esac
7265fi
7266rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7267esac
7268fi
7269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7270printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7271	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7272	CFLAGS="$xorg_testset_save_CFLAGS"
7273fi
7274
7275if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7276	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7277		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7278	fi
7279	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7280	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7281printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7282if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7283then :
7284  printf %s "(cached) " >&6
7285else case e in #(
7286  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287/* end confdefs.h.  */
7288int i;
7289_ACEOF
7290if ac_fn_c_try_compile "$LINENO"
7291then :
7292  xorg_cv_cc_flag_unused_command_line_argument=yes
7293else case e in #(
7294  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7295esac
7296fi
7297rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7298esac
7299fi
7300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7301printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7302	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7303	CFLAGS="$xorg_testset_save_CFLAGS"
7304fi
7305
7306found="no"
7307
7308	if test $found = "no" ; then
7309		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7310			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7311		fi
7312
7313		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7314			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7315		fi
7316
7317		CFLAGS="$CFLAGS -Wlogical-op"
7318
7319		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7320printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7321		cacheid=xorg_cv_cc_flag__Wlogical_op
7322		if eval test \${$cacheid+y}
7323then :
7324  printf %s "(cached) " >&6
7325else case e in #(
7326  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327/* end confdefs.h.  */
7328int i;
7329int
7330main (void)
7331{
7332
7333  ;
7334  return 0;
7335}
7336_ACEOF
7337if ac_fn_c_try_link "$LINENO"
7338then :
7339  eval $cacheid=yes
7340else case e in #(
7341  e) eval $cacheid=no ;;
7342esac
7343fi
7344rm -f core conftest.err conftest.$ac_objext conftest.beam \
7345    conftest$ac_exeext conftest.$ac_ext ;;
7346esac
7347fi
7348
7349
7350		CFLAGS="$xorg_testset_save_CFLAGS"
7351
7352		eval supported=\$$cacheid
7353		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7354printf "%s\n" "$supported" >&6; }
7355		if test "$supported" = "yes" ; then
7356			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7357			found="yes"
7358		fi
7359	fi
7360
7361
7362
7363# These are currently disabled because they are noisy.  They will be enabled
7364# in the future once the codebase is sufficiently modernized to silence
7365# them.  For now, I don't want them to drown out the other warnings.
7366# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7367# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7368# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7369
7370# Turn some warnings into errors, so we don't accidentally get successful builds
7371# when there are problems that should be fixed.
7372
7373if test "x$SELECTIVE_WERROR" = "xyes" ; then
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387xorg_testset_save_CFLAGS="$CFLAGS"
7388
7389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7390	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7391	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7392printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7393if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7394then :
7395  printf %s "(cached) " >&6
7396else case e in #(
7397  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398/* end confdefs.h.  */
7399int i;
7400_ACEOF
7401if ac_fn_c_try_compile "$LINENO"
7402then :
7403  xorg_cv_cc_flag_unknown_warning_option=yes
7404else case e in #(
7405  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7406esac
7407fi
7408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7409esac
7410fi
7411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7412printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7413	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7414	CFLAGS="$xorg_testset_save_CFLAGS"
7415fi
7416
7417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7418	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7419		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7420	fi
7421	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7422	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7423printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7424if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7425then :
7426  printf %s "(cached) " >&6
7427else case e in #(
7428  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429/* end confdefs.h.  */
7430int i;
7431_ACEOF
7432if ac_fn_c_try_compile "$LINENO"
7433then :
7434  xorg_cv_cc_flag_unused_command_line_argument=yes
7435else case e in #(
7436  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7437esac
7438fi
7439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7440esac
7441fi
7442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7443printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7444	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7445	CFLAGS="$xorg_testset_save_CFLAGS"
7446fi
7447
7448found="no"
7449
7450	if test $found = "no" ; then
7451		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7452			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7453		fi
7454
7455		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7456			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7457		fi
7458
7459		CFLAGS="$CFLAGS -Werror=implicit"
7460
7461		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7462printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7463		cacheid=xorg_cv_cc_flag__Werror_implicit
7464		if eval test \${$cacheid+y}
7465then :
7466  printf %s "(cached) " >&6
7467else case e in #(
7468  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469/* end confdefs.h.  */
7470int i;
7471int
7472main (void)
7473{
7474
7475  ;
7476  return 0;
7477}
7478_ACEOF
7479if ac_fn_c_try_link "$LINENO"
7480then :
7481  eval $cacheid=yes
7482else case e in #(
7483  e) eval $cacheid=no ;;
7484esac
7485fi
7486rm -f core conftest.err conftest.$ac_objext conftest.beam \
7487    conftest$ac_exeext conftest.$ac_ext ;;
7488esac
7489fi
7490
7491
7492		CFLAGS="$xorg_testset_save_CFLAGS"
7493
7494		eval supported=\$$cacheid
7495		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7496printf "%s\n" "$supported" >&6; }
7497		if test "$supported" = "yes" ; then
7498			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7499			found="yes"
7500		fi
7501	fi
7502
7503	if test $found = "no" ; then
7504		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7505			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7506		fi
7507
7508		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7509			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7510		fi
7511
7512		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7513
7514		{ 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
7515printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7516		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7517		if eval test \${$cacheid+y}
7518then :
7519  printf %s "(cached) " >&6
7520else case e in #(
7521  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522/* end confdefs.h.  */
7523int i;
7524int
7525main (void)
7526{
7527
7528  ;
7529  return 0;
7530}
7531_ACEOF
7532if ac_fn_c_try_link "$LINENO"
7533then :
7534  eval $cacheid=yes
7535else case e in #(
7536  e) eval $cacheid=no ;;
7537esac
7538fi
7539rm -f core conftest.err conftest.$ac_objext conftest.beam \
7540    conftest$ac_exeext conftest.$ac_ext ;;
7541esac
7542fi
7543
7544
7545		CFLAGS="$xorg_testset_save_CFLAGS"
7546
7547		eval supported=\$$cacheid
7548		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7549printf "%s\n" "$supported" >&6; }
7550		if test "$supported" = "yes" ; then
7551			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7552			found="yes"
7553		fi
7554	fi
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570xorg_testset_save_CFLAGS="$CFLAGS"
7571
7572if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7573	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7574	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7575printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7576if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7577then :
7578  printf %s "(cached) " >&6
7579else case e in #(
7580  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581/* end confdefs.h.  */
7582int i;
7583_ACEOF
7584if ac_fn_c_try_compile "$LINENO"
7585then :
7586  xorg_cv_cc_flag_unknown_warning_option=yes
7587else case e in #(
7588  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7589esac
7590fi
7591rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7592esac
7593fi
7594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7595printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7596	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7597	CFLAGS="$xorg_testset_save_CFLAGS"
7598fi
7599
7600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7601	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7602		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7603	fi
7604	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7605	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7606printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7607if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7608then :
7609  printf %s "(cached) " >&6
7610else case e in #(
7611  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612/* end confdefs.h.  */
7613int i;
7614_ACEOF
7615if ac_fn_c_try_compile "$LINENO"
7616then :
7617  xorg_cv_cc_flag_unused_command_line_argument=yes
7618else case e in #(
7619  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7620esac
7621fi
7622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7623esac
7624fi
7625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7626printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7627	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7628	CFLAGS="$xorg_testset_save_CFLAGS"
7629fi
7630
7631found="no"
7632
7633	if test $found = "no" ; then
7634		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7635			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7636		fi
7637
7638		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7639			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7640		fi
7641
7642		CFLAGS="$CFLAGS -Werror=nonnull"
7643
7644		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7645printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7646		cacheid=xorg_cv_cc_flag__Werror_nonnull
7647		if eval test \${$cacheid+y}
7648then :
7649  printf %s "(cached) " >&6
7650else case e in #(
7651  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652/* end confdefs.h.  */
7653int i;
7654int
7655main (void)
7656{
7657
7658  ;
7659  return 0;
7660}
7661_ACEOF
7662if ac_fn_c_try_link "$LINENO"
7663then :
7664  eval $cacheid=yes
7665else case e in #(
7666  e) eval $cacheid=no ;;
7667esac
7668fi
7669rm -f core conftest.err conftest.$ac_objext conftest.beam \
7670    conftest$ac_exeext conftest.$ac_ext ;;
7671esac
7672fi
7673
7674
7675		CFLAGS="$xorg_testset_save_CFLAGS"
7676
7677		eval supported=\$$cacheid
7678		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7679printf "%s\n" "$supported" >&6; }
7680		if test "$supported" = "yes" ; then
7681			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7682			found="yes"
7683		fi
7684	fi
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700xorg_testset_save_CFLAGS="$CFLAGS"
7701
7702if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7703	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7704	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7705printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7706if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7707then :
7708  printf %s "(cached) " >&6
7709else case e in #(
7710  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711/* end confdefs.h.  */
7712int i;
7713_ACEOF
7714if ac_fn_c_try_compile "$LINENO"
7715then :
7716  xorg_cv_cc_flag_unknown_warning_option=yes
7717else case e in #(
7718  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7719esac
7720fi
7721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7722esac
7723fi
7724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7725printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7726	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7727	CFLAGS="$xorg_testset_save_CFLAGS"
7728fi
7729
7730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7731	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7732		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7733	fi
7734	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7735	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7736printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7737if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7738then :
7739  printf %s "(cached) " >&6
7740else case e in #(
7741  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742/* end confdefs.h.  */
7743int i;
7744_ACEOF
7745if ac_fn_c_try_compile "$LINENO"
7746then :
7747  xorg_cv_cc_flag_unused_command_line_argument=yes
7748else case e in #(
7749  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7750esac
7751fi
7752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7753esac
7754fi
7755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7756printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7757	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7758	CFLAGS="$xorg_testset_save_CFLAGS"
7759fi
7760
7761found="no"
7762
7763	if test $found = "no" ; then
7764		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7765			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7766		fi
7767
7768		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7769			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7770		fi
7771
7772		CFLAGS="$CFLAGS -Werror=init-self"
7773
7774		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7775printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7776		cacheid=xorg_cv_cc_flag__Werror_init_self
7777		if eval test \${$cacheid+y}
7778then :
7779  printf %s "(cached) " >&6
7780else case e in #(
7781  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782/* end confdefs.h.  */
7783int i;
7784int
7785main (void)
7786{
7787
7788  ;
7789  return 0;
7790}
7791_ACEOF
7792if ac_fn_c_try_link "$LINENO"
7793then :
7794  eval $cacheid=yes
7795else case e in #(
7796  e) eval $cacheid=no ;;
7797esac
7798fi
7799rm -f core conftest.err conftest.$ac_objext conftest.beam \
7800    conftest$ac_exeext conftest.$ac_ext ;;
7801esac
7802fi
7803
7804
7805		CFLAGS="$xorg_testset_save_CFLAGS"
7806
7807		eval supported=\$$cacheid
7808		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7809printf "%s\n" "$supported" >&6; }
7810		if test "$supported" = "yes" ; then
7811			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7812			found="yes"
7813		fi
7814	fi
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830xorg_testset_save_CFLAGS="$CFLAGS"
7831
7832if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7833	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7834	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7835printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7836if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7837then :
7838  printf %s "(cached) " >&6
7839else case e in #(
7840  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841/* end confdefs.h.  */
7842int i;
7843_ACEOF
7844if ac_fn_c_try_compile "$LINENO"
7845then :
7846  xorg_cv_cc_flag_unknown_warning_option=yes
7847else case e in #(
7848  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7849esac
7850fi
7851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7852esac
7853fi
7854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7855printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7856	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7857	CFLAGS="$xorg_testset_save_CFLAGS"
7858fi
7859
7860if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7861	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7862		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7863	fi
7864	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7865	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7866printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7867if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7868then :
7869  printf %s "(cached) " >&6
7870else case e in #(
7871  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872/* end confdefs.h.  */
7873int i;
7874_ACEOF
7875if ac_fn_c_try_compile "$LINENO"
7876then :
7877  xorg_cv_cc_flag_unused_command_line_argument=yes
7878else case e in #(
7879  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7880esac
7881fi
7882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7883esac
7884fi
7885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7886printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7887	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7888	CFLAGS="$xorg_testset_save_CFLAGS"
7889fi
7890
7891found="no"
7892
7893	if test $found = "no" ; then
7894		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7895			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7896		fi
7897
7898		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7899			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7900		fi
7901
7902		CFLAGS="$CFLAGS -Werror=main"
7903
7904		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7905printf %s "checking if $CC supports -Werror=main... " >&6; }
7906		cacheid=xorg_cv_cc_flag__Werror_main
7907		if eval test \${$cacheid+y}
7908then :
7909  printf %s "(cached) " >&6
7910else case e in #(
7911  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912/* end confdefs.h.  */
7913int i;
7914int
7915main (void)
7916{
7917
7918  ;
7919  return 0;
7920}
7921_ACEOF
7922if ac_fn_c_try_link "$LINENO"
7923then :
7924  eval $cacheid=yes
7925else case e in #(
7926  e) eval $cacheid=no ;;
7927esac
7928fi
7929rm -f core conftest.err conftest.$ac_objext conftest.beam \
7930    conftest$ac_exeext conftest.$ac_ext ;;
7931esac
7932fi
7933
7934
7935		CFLAGS="$xorg_testset_save_CFLAGS"
7936
7937		eval supported=\$$cacheid
7938		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7939printf "%s\n" "$supported" >&6; }
7940		if test "$supported" = "yes" ; then
7941			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7942			found="yes"
7943		fi
7944	fi
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960xorg_testset_save_CFLAGS="$CFLAGS"
7961
7962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7963	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7964	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7965printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7966if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7967then :
7968  printf %s "(cached) " >&6
7969else case e in #(
7970  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971/* end confdefs.h.  */
7972int i;
7973_ACEOF
7974if ac_fn_c_try_compile "$LINENO"
7975then :
7976  xorg_cv_cc_flag_unknown_warning_option=yes
7977else case e in #(
7978  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7979esac
7980fi
7981rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7982esac
7983fi
7984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7985printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7986	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7987	CFLAGS="$xorg_testset_save_CFLAGS"
7988fi
7989
7990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7991	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7992		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7993	fi
7994	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7995	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7996printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7997if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7998then :
7999  printf %s "(cached) " >&6
8000else case e in #(
8001  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8002/* end confdefs.h.  */
8003int i;
8004_ACEOF
8005if ac_fn_c_try_compile "$LINENO"
8006then :
8007  xorg_cv_cc_flag_unused_command_line_argument=yes
8008else case e in #(
8009  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8010esac
8011fi
8012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8013esac
8014fi
8015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8016printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8017	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8018	CFLAGS="$xorg_testset_save_CFLAGS"
8019fi
8020
8021found="no"
8022
8023	if test $found = "no" ; then
8024		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8025			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8026		fi
8027
8028		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8029			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8030		fi
8031
8032		CFLAGS="$CFLAGS -Werror=missing-braces"
8033
8034		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8035printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8036		cacheid=xorg_cv_cc_flag__Werror_missing_braces
8037		if eval test \${$cacheid+y}
8038then :
8039  printf %s "(cached) " >&6
8040else case e in #(
8041  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042/* end confdefs.h.  */
8043int i;
8044int
8045main (void)
8046{
8047
8048  ;
8049  return 0;
8050}
8051_ACEOF
8052if ac_fn_c_try_link "$LINENO"
8053then :
8054  eval $cacheid=yes
8055else case e in #(
8056  e) eval $cacheid=no ;;
8057esac
8058fi
8059rm -f core conftest.err conftest.$ac_objext conftest.beam \
8060    conftest$ac_exeext conftest.$ac_ext ;;
8061esac
8062fi
8063
8064
8065		CFLAGS="$xorg_testset_save_CFLAGS"
8066
8067		eval supported=\$$cacheid
8068		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8069printf "%s\n" "$supported" >&6; }
8070		if test "$supported" = "yes" ; then
8071			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8072			found="yes"
8073		fi
8074	fi
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090xorg_testset_save_CFLAGS="$CFLAGS"
8091
8092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8093	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8094	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8095printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8096if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8097then :
8098  printf %s "(cached) " >&6
8099else case e in #(
8100  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101/* end confdefs.h.  */
8102int i;
8103_ACEOF
8104if ac_fn_c_try_compile "$LINENO"
8105then :
8106  xorg_cv_cc_flag_unknown_warning_option=yes
8107else case e in #(
8108  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8109esac
8110fi
8111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8112esac
8113fi
8114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8115printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8116	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8117	CFLAGS="$xorg_testset_save_CFLAGS"
8118fi
8119
8120if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8121	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8122		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8123	fi
8124	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8125	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8126printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8127if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8128then :
8129  printf %s "(cached) " >&6
8130else case e in #(
8131  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132/* end confdefs.h.  */
8133int i;
8134_ACEOF
8135if ac_fn_c_try_compile "$LINENO"
8136then :
8137  xorg_cv_cc_flag_unused_command_line_argument=yes
8138else case e in #(
8139  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8140esac
8141fi
8142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8143esac
8144fi
8145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8146printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8147	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8148	CFLAGS="$xorg_testset_save_CFLAGS"
8149fi
8150
8151found="no"
8152
8153	if test $found = "no" ; then
8154		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8155			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8156		fi
8157
8158		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8159			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8160		fi
8161
8162		CFLAGS="$CFLAGS -Werror=sequence-point"
8163
8164		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8165printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8166		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8167		if eval test \${$cacheid+y}
8168then :
8169  printf %s "(cached) " >&6
8170else case e in #(
8171  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172/* end confdefs.h.  */
8173int i;
8174int
8175main (void)
8176{
8177
8178  ;
8179  return 0;
8180}
8181_ACEOF
8182if ac_fn_c_try_link "$LINENO"
8183then :
8184  eval $cacheid=yes
8185else case e in #(
8186  e) eval $cacheid=no ;;
8187esac
8188fi
8189rm -f core conftest.err conftest.$ac_objext conftest.beam \
8190    conftest$ac_exeext conftest.$ac_ext ;;
8191esac
8192fi
8193
8194
8195		CFLAGS="$xorg_testset_save_CFLAGS"
8196
8197		eval supported=\$$cacheid
8198		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8199printf "%s\n" "$supported" >&6; }
8200		if test "$supported" = "yes" ; then
8201			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8202			found="yes"
8203		fi
8204	fi
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220xorg_testset_save_CFLAGS="$CFLAGS"
8221
8222if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8223	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8224	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8225printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8226if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8227then :
8228  printf %s "(cached) " >&6
8229else case e in #(
8230  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231/* end confdefs.h.  */
8232int i;
8233_ACEOF
8234if ac_fn_c_try_compile "$LINENO"
8235then :
8236  xorg_cv_cc_flag_unknown_warning_option=yes
8237else case e in #(
8238  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8239esac
8240fi
8241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8242esac
8243fi
8244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8245printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8246	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8247	CFLAGS="$xorg_testset_save_CFLAGS"
8248fi
8249
8250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8251	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8252		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8253	fi
8254	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8255	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8256printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8257if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8258then :
8259  printf %s "(cached) " >&6
8260else case e in #(
8261  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262/* end confdefs.h.  */
8263int i;
8264_ACEOF
8265if ac_fn_c_try_compile "$LINENO"
8266then :
8267  xorg_cv_cc_flag_unused_command_line_argument=yes
8268else case e in #(
8269  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8270esac
8271fi
8272rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8273esac
8274fi
8275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8276printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8277	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8278	CFLAGS="$xorg_testset_save_CFLAGS"
8279fi
8280
8281found="no"
8282
8283	if test $found = "no" ; then
8284		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8285			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8286		fi
8287
8288		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8289			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8290		fi
8291
8292		CFLAGS="$CFLAGS -Werror=return-type"
8293
8294		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8295printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8296		cacheid=xorg_cv_cc_flag__Werror_return_type
8297		if eval test \${$cacheid+y}
8298then :
8299  printf %s "(cached) " >&6
8300else case e in #(
8301  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302/* end confdefs.h.  */
8303int i;
8304int
8305main (void)
8306{
8307
8308  ;
8309  return 0;
8310}
8311_ACEOF
8312if ac_fn_c_try_link "$LINENO"
8313then :
8314  eval $cacheid=yes
8315else case e in #(
8316  e) eval $cacheid=no ;;
8317esac
8318fi
8319rm -f core conftest.err conftest.$ac_objext conftest.beam \
8320    conftest$ac_exeext conftest.$ac_ext ;;
8321esac
8322fi
8323
8324
8325		CFLAGS="$xorg_testset_save_CFLAGS"
8326
8327		eval supported=\$$cacheid
8328		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8329printf "%s\n" "$supported" >&6; }
8330		if test "$supported" = "yes" ; then
8331			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8332			found="yes"
8333		fi
8334	fi
8335
8336	if test $found = "no" ; then
8337		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8338			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8339		fi
8340
8341		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8342			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8343		fi
8344
8345		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8346
8347		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8348printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8349		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8350		if eval test \${$cacheid+y}
8351then :
8352  printf %s "(cached) " >&6
8353else case e in #(
8354  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355/* end confdefs.h.  */
8356int i;
8357int
8358main (void)
8359{
8360
8361  ;
8362  return 0;
8363}
8364_ACEOF
8365if ac_fn_c_try_link "$LINENO"
8366then :
8367  eval $cacheid=yes
8368else case e in #(
8369  e) eval $cacheid=no ;;
8370esac
8371fi
8372rm -f core conftest.err conftest.$ac_objext conftest.beam \
8373    conftest$ac_exeext conftest.$ac_ext ;;
8374esac
8375fi
8376
8377
8378		CFLAGS="$xorg_testset_save_CFLAGS"
8379
8380		eval supported=\$$cacheid
8381		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8382printf "%s\n" "$supported" >&6; }
8383		if test "$supported" = "yes" ; then
8384			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8385			found="yes"
8386		fi
8387	fi
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403xorg_testset_save_CFLAGS="$CFLAGS"
8404
8405if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8406	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8407	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8408printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8409if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8410then :
8411  printf %s "(cached) " >&6
8412else case e in #(
8413  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414/* end confdefs.h.  */
8415int i;
8416_ACEOF
8417if ac_fn_c_try_compile "$LINENO"
8418then :
8419  xorg_cv_cc_flag_unknown_warning_option=yes
8420else case e in #(
8421  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8422esac
8423fi
8424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8425esac
8426fi
8427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8428printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8429	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8430	CFLAGS="$xorg_testset_save_CFLAGS"
8431fi
8432
8433if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8434	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8435		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8436	fi
8437	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8438	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8439printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8440if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8441then :
8442  printf %s "(cached) " >&6
8443else case e in #(
8444  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445/* end confdefs.h.  */
8446int i;
8447_ACEOF
8448if ac_fn_c_try_compile "$LINENO"
8449then :
8450  xorg_cv_cc_flag_unused_command_line_argument=yes
8451else case e in #(
8452  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8453esac
8454fi
8455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8456esac
8457fi
8458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8459printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8460	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8461	CFLAGS="$xorg_testset_save_CFLAGS"
8462fi
8463
8464found="no"
8465
8466	if test $found = "no" ; then
8467		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8468			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8469		fi
8470
8471		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8472			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8473		fi
8474
8475		CFLAGS="$CFLAGS -Werror=trigraphs"
8476
8477		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8478printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8479		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8480		if eval test \${$cacheid+y}
8481then :
8482  printf %s "(cached) " >&6
8483else case e in #(
8484  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485/* end confdefs.h.  */
8486int i;
8487int
8488main (void)
8489{
8490
8491  ;
8492  return 0;
8493}
8494_ACEOF
8495if ac_fn_c_try_link "$LINENO"
8496then :
8497  eval $cacheid=yes
8498else case e in #(
8499  e) eval $cacheid=no ;;
8500esac
8501fi
8502rm -f core conftest.err conftest.$ac_objext conftest.beam \
8503    conftest$ac_exeext conftest.$ac_ext ;;
8504esac
8505fi
8506
8507
8508		CFLAGS="$xorg_testset_save_CFLAGS"
8509
8510		eval supported=\$$cacheid
8511		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8512printf "%s\n" "$supported" >&6; }
8513		if test "$supported" = "yes" ; then
8514			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8515			found="yes"
8516		fi
8517	fi
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533xorg_testset_save_CFLAGS="$CFLAGS"
8534
8535if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8536	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8537	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8538printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8539if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8540then :
8541  printf %s "(cached) " >&6
8542else case e in #(
8543  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544/* end confdefs.h.  */
8545int i;
8546_ACEOF
8547if ac_fn_c_try_compile "$LINENO"
8548then :
8549  xorg_cv_cc_flag_unknown_warning_option=yes
8550else case e in #(
8551  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8552esac
8553fi
8554rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8555esac
8556fi
8557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8558printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8559	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8560	CFLAGS="$xorg_testset_save_CFLAGS"
8561fi
8562
8563if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8564	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8565		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8566	fi
8567	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8568	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8569printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8570if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8571then :
8572  printf %s "(cached) " >&6
8573else case e in #(
8574  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575/* end confdefs.h.  */
8576int i;
8577_ACEOF
8578if ac_fn_c_try_compile "$LINENO"
8579then :
8580  xorg_cv_cc_flag_unused_command_line_argument=yes
8581else case e in #(
8582  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8583esac
8584fi
8585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8586esac
8587fi
8588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8589printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8590	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8591	CFLAGS="$xorg_testset_save_CFLAGS"
8592fi
8593
8594found="no"
8595
8596	if test $found = "no" ; then
8597		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8598			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8599		fi
8600
8601		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8602			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8603		fi
8604
8605		CFLAGS="$CFLAGS -Werror=array-bounds"
8606
8607		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8608printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8609		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8610		if eval test \${$cacheid+y}
8611then :
8612  printf %s "(cached) " >&6
8613else case e in #(
8614  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615/* end confdefs.h.  */
8616int i;
8617int
8618main (void)
8619{
8620
8621  ;
8622  return 0;
8623}
8624_ACEOF
8625if ac_fn_c_try_link "$LINENO"
8626then :
8627  eval $cacheid=yes
8628else case e in #(
8629  e) eval $cacheid=no ;;
8630esac
8631fi
8632rm -f core conftest.err conftest.$ac_objext conftest.beam \
8633    conftest$ac_exeext conftest.$ac_ext ;;
8634esac
8635fi
8636
8637
8638		CFLAGS="$xorg_testset_save_CFLAGS"
8639
8640		eval supported=\$$cacheid
8641		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8642printf "%s\n" "$supported" >&6; }
8643		if test "$supported" = "yes" ; then
8644			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8645			found="yes"
8646		fi
8647	fi
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663xorg_testset_save_CFLAGS="$CFLAGS"
8664
8665if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8666	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8667	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8668printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8669if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8670then :
8671  printf %s "(cached) " >&6
8672else case e in #(
8673  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8674/* end confdefs.h.  */
8675int i;
8676_ACEOF
8677if ac_fn_c_try_compile "$LINENO"
8678then :
8679  xorg_cv_cc_flag_unknown_warning_option=yes
8680else case e in #(
8681  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8682esac
8683fi
8684rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8685esac
8686fi
8687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8688printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8689	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8690	CFLAGS="$xorg_testset_save_CFLAGS"
8691fi
8692
8693if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8694	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8695		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8696	fi
8697	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8698	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8699printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8700if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8701then :
8702  printf %s "(cached) " >&6
8703else case e in #(
8704  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705/* end confdefs.h.  */
8706int i;
8707_ACEOF
8708if ac_fn_c_try_compile "$LINENO"
8709then :
8710  xorg_cv_cc_flag_unused_command_line_argument=yes
8711else case e in #(
8712  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8713esac
8714fi
8715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8716esac
8717fi
8718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8719printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8720	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8721	CFLAGS="$xorg_testset_save_CFLAGS"
8722fi
8723
8724found="no"
8725
8726	if test $found = "no" ; then
8727		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8728			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8729		fi
8730
8731		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8732			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8733		fi
8734
8735		CFLAGS="$CFLAGS -Werror=write-strings"
8736
8737		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8738printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8739		cacheid=xorg_cv_cc_flag__Werror_write_strings
8740		if eval test \${$cacheid+y}
8741then :
8742  printf %s "(cached) " >&6
8743else case e in #(
8744  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8745/* end confdefs.h.  */
8746int i;
8747int
8748main (void)
8749{
8750
8751  ;
8752  return 0;
8753}
8754_ACEOF
8755if ac_fn_c_try_link "$LINENO"
8756then :
8757  eval $cacheid=yes
8758else case e in #(
8759  e) eval $cacheid=no ;;
8760esac
8761fi
8762rm -f core conftest.err conftest.$ac_objext conftest.beam \
8763    conftest$ac_exeext conftest.$ac_ext ;;
8764esac
8765fi
8766
8767
8768		CFLAGS="$xorg_testset_save_CFLAGS"
8769
8770		eval supported=\$$cacheid
8771		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8772printf "%s\n" "$supported" >&6; }
8773		if test "$supported" = "yes" ; then
8774			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8775			found="yes"
8776		fi
8777	fi
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793xorg_testset_save_CFLAGS="$CFLAGS"
8794
8795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8796	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8797	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8798printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8799if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8800then :
8801  printf %s "(cached) " >&6
8802else case e in #(
8803  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804/* end confdefs.h.  */
8805int i;
8806_ACEOF
8807if ac_fn_c_try_compile "$LINENO"
8808then :
8809  xorg_cv_cc_flag_unknown_warning_option=yes
8810else case e in #(
8811  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8812esac
8813fi
8814rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8815esac
8816fi
8817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8818printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8819	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8820	CFLAGS="$xorg_testset_save_CFLAGS"
8821fi
8822
8823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8824	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8825		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8826	fi
8827	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8828	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8829printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8830if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8831then :
8832  printf %s "(cached) " >&6
8833else case e in #(
8834  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8835/* end confdefs.h.  */
8836int i;
8837_ACEOF
8838if ac_fn_c_try_compile "$LINENO"
8839then :
8840  xorg_cv_cc_flag_unused_command_line_argument=yes
8841else case e in #(
8842  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8843esac
8844fi
8845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8846esac
8847fi
8848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8849printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8850	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8851	CFLAGS="$xorg_testset_save_CFLAGS"
8852fi
8853
8854found="no"
8855
8856	if test $found = "no" ; then
8857		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8858			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8859		fi
8860
8861		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8862			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8863		fi
8864
8865		CFLAGS="$CFLAGS -Werror=address"
8866
8867		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8868printf %s "checking if $CC supports -Werror=address... " >&6; }
8869		cacheid=xorg_cv_cc_flag__Werror_address
8870		if eval test \${$cacheid+y}
8871then :
8872  printf %s "(cached) " >&6
8873else case e in #(
8874  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875/* end confdefs.h.  */
8876int i;
8877int
8878main (void)
8879{
8880
8881  ;
8882  return 0;
8883}
8884_ACEOF
8885if ac_fn_c_try_link "$LINENO"
8886then :
8887  eval $cacheid=yes
8888else case e in #(
8889  e) eval $cacheid=no ;;
8890esac
8891fi
8892rm -f core conftest.err conftest.$ac_objext conftest.beam \
8893    conftest$ac_exeext conftest.$ac_ext ;;
8894esac
8895fi
8896
8897
8898		CFLAGS="$xorg_testset_save_CFLAGS"
8899
8900		eval supported=\$$cacheid
8901		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8902printf "%s\n" "$supported" >&6; }
8903		if test "$supported" = "yes" ; then
8904			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8905			found="yes"
8906		fi
8907	fi
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923xorg_testset_save_CFLAGS="$CFLAGS"
8924
8925if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8926	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8927	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8928printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8929if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8930then :
8931  printf %s "(cached) " >&6
8932else case e in #(
8933  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934/* end confdefs.h.  */
8935int i;
8936_ACEOF
8937if ac_fn_c_try_compile "$LINENO"
8938then :
8939  xorg_cv_cc_flag_unknown_warning_option=yes
8940else case e in #(
8941  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8942esac
8943fi
8944rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8945esac
8946fi
8947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8948printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8949	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8950	CFLAGS="$xorg_testset_save_CFLAGS"
8951fi
8952
8953if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8954	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8955		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8956	fi
8957	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8958	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8959printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8960if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8961then :
8962  printf %s "(cached) " >&6
8963else case e in #(
8964  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965/* end confdefs.h.  */
8966int i;
8967_ACEOF
8968if ac_fn_c_try_compile "$LINENO"
8969then :
8970  xorg_cv_cc_flag_unused_command_line_argument=yes
8971else case e in #(
8972  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8973esac
8974fi
8975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8976esac
8977fi
8978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8979printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8980	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8981	CFLAGS="$xorg_testset_save_CFLAGS"
8982fi
8983
8984found="no"
8985
8986	if test $found = "no" ; then
8987		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8988			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8989		fi
8990
8991		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8992			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8993		fi
8994
8995		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8996
8997		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8998printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8999		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9000		if eval test \${$cacheid+y}
9001then :
9002  printf %s "(cached) " >&6
9003else case e in #(
9004  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005/* end confdefs.h.  */
9006int i;
9007int
9008main (void)
9009{
9010
9011  ;
9012  return 0;
9013}
9014_ACEOF
9015if ac_fn_c_try_link "$LINENO"
9016then :
9017  eval $cacheid=yes
9018else case e in #(
9019  e) eval $cacheid=no ;;
9020esac
9021fi
9022rm -f core conftest.err conftest.$ac_objext conftest.beam \
9023    conftest$ac_exeext conftest.$ac_ext ;;
9024esac
9025fi
9026
9027
9028		CFLAGS="$xorg_testset_save_CFLAGS"
9029
9030		eval supported=\$$cacheid
9031		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9032printf "%s\n" "$supported" >&6; }
9033		if test "$supported" = "yes" ; then
9034			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9035			found="yes"
9036		fi
9037	fi
9038
9039	if test $found = "no" ; then
9040		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9041			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9042		fi
9043
9044		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9045			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9046		fi
9047
9048		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9049
9050		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9051printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9052		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9053		if eval test \${$cacheid+y}
9054then :
9055  printf %s "(cached) " >&6
9056else case e in #(
9057  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058/* end confdefs.h.  */
9059int i;
9060int
9061main (void)
9062{
9063
9064  ;
9065  return 0;
9066}
9067_ACEOF
9068if ac_fn_c_try_link "$LINENO"
9069then :
9070  eval $cacheid=yes
9071else case e in #(
9072  e) eval $cacheid=no ;;
9073esac
9074fi
9075rm -f core conftest.err conftest.$ac_objext conftest.beam \
9076    conftest$ac_exeext conftest.$ac_ext ;;
9077esac
9078fi
9079
9080
9081		CFLAGS="$xorg_testset_save_CFLAGS"
9082
9083		eval supported=\$$cacheid
9084		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9085printf "%s\n" "$supported" >&6; }
9086		if test "$supported" = "yes" ; then
9087			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9088			found="yes"
9089		fi
9090	fi
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106xorg_testset_save_CFLAGS="$CFLAGS"
9107
9108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9109	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9110	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9111printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9112if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9113then :
9114  printf %s "(cached) " >&6
9115else case e in #(
9116  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117/* end confdefs.h.  */
9118int i;
9119_ACEOF
9120if ac_fn_c_try_compile "$LINENO"
9121then :
9122  xorg_cv_cc_flag_unknown_warning_option=yes
9123else case e in #(
9124  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9125esac
9126fi
9127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9128esac
9129fi
9130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9131printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9132	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9133	CFLAGS="$xorg_testset_save_CFLAGS"
9134fi
9135
9136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9137	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9138		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9139	fi
9140	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9141	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9142printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9143if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9144then :
9145  printf %s "(cached) " >&6
9146else case e in #(
9147  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9148/* end confdefs.h.  */
9149int i;
9150_ACEOF
9151if ac_fn_c_try_compile "$LINENO"
9152then :
9153  xorg_cv_cc_flag_unused_command_line_argument=yes
9154else case e in #(
9155  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9156esac
9157fi
9158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9159esac
9160fi
9161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9162printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9163	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9164	CFLAGS="$xorg_testset_save_CFLAGS"
9165fi
9166
9167found="no"
9168
9169	if test $found = "no" ; then
9170		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9171			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9172		fi
9173
9174		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9175			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9176		fi
9177
9178		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9179
9180		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9181printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9182		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9183		if eval test \${$cacheid+y}
9184then :
9185  printf %s "(cached) " >&6
9186else case e in #(
9187  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188/* end confdefs.h.  */
9189int i;
9190int
9191main (void)
9192{
9193
9194  ;
9195  return 0;
9196}
9197_ACEOF
9198if ac_fn_c_try_link "$LINENO"
9199then :
9200  eval $cacheid=yes
9201else case e in #(
9202  e) eval $cacheid=no ;;
9203esac
9204fi
9205rm -f core conftest.err conftest.$ac_objext conftest.beam \
9206    conftest$ac_exeext conftest.$ac_ext ;;
9207esac
9208fi
9209
9210
9211		CFLAGS="$xorg_testset_save_CFLAGS"
9212
9213		eval supported=\$$cacheid
9214		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9215printf "%s\n" "$supported" >&6; }
9216		if test "$supported" = "yes" ; then
9217			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9218			found="yes"
9219		fi
9220	fi
9221
9222 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9223else
9224{ 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
9225printf "%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;}
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239xorg_testset_save_CFLAGS="$CFLAGS"
9240
9241if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9242	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9243	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9244printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9245if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9246then :
9247  printf %s "(cached) " >&6
9248else case e in #(
9249  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250/* end confdefs.h.  */
9251int i;
9252_ACEOF
9253if ac_fn_c_try_compile "$LINENO"
9254then :
9255  xorg_cv_cc_flag_unknown_warning_option=yes
9256else case e in #(
9257  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9258esac
9259fi
9260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9261esac
9262fi
9263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9264printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9265	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9266	CFLAGS="$xorg_testset_save_CFLAGS"
9267fi
9268
9269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9270	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9271		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9272	fi
9273	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9274	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9275printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9276if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9277then :
9278  printf %s "(cached) " >&6
9279else case e in #(
9280  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281/* end confdefs.h.  */
9282int i;
9283_ACEOF
9284if ac_fn_c_try_compile "$LINENO"
9285then :
9286  xorg_cv_cc_flag_unused_command_line_argument=yes
9287else case e in #(
9288  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9289esac
9290fi
9291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9292esac
9293fi
9294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9295printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9296	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9297	CFLAGS="$xorg_testset_save_CFLAGS"
9298fi
9299
9300found="no"
9301
9302	if test $found = "no" ; then
9303		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9304			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9305		fi
9306
9307		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9308			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9309		fi
9310
9311		CFLAGS="$CFLAGS -Wimplicit"
9312
9313		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9314printf %s "checking if $CC supports -Wimplicit... " >&6; }
9315		cacheid=xorg_cv_cc_flag__Wimplicit
9316		if eval test \${$cacheid+y}
9317then :
9318  printf %s "(cached) " >&6
9319else case e in #(
9320  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9321/* end confdefs.h.  */
9322int i;
9323int
9324main (void)
9325{
9326
9327  ;
9328  return 0;
9329}
9330_ACEOF
9331if ac_fn_c_try_link "$LINENO"
9332then :
9333  eval $cacheid=yes
9334else case e in #(
9335  e) eval $cacheid=no ;;
9336esac
9337fi
9338rm -f core conftest.err conftest.$ac_objext conftest.beam \
9339    conftest$ac_exeext conftest.$ac_ext ;;
9340esac
9341fi
9342
9343
9344		CFLAGS="$xorg_testset_save_CFLAGS"
9345
9346		eval supported=\$$cacheid
9347		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9348printf "%s\n" "$supported" >&6; }
9349		if test "$supported" = "yes" ; then
9350			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9351			found="yes"
9352		fi
9353	fi
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369xorg_testset_save_CFLAGS="$CFLAGS"
9370
9371if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9372	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9373	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9374printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9375if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9376then :
9377  printf %s "(cached) " >&6
9378else case e in #(
9379  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380/* end confdefs.h.  */
9381int i;
9382_ACEOF
9383if ac_fn_c_try_compile "$LINENO"
9384then :
9385  xorg_cv_cc_flag_unknown_warning_option=yes
9386else case e in #(
9387  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9388esac
9389fi
9390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9391esac
9392fi
9393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9394printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9395	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9396	CFLAGS="$xorg_testset_save_CFLAGS"
9397fi
9398
9399if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9400	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9401		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9402	fi
9403	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9404	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9405printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9406if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9407then :
9408  printf %s "(cached) " >&6
9409else case e in #(
9410  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411/* end confdefs.h.  */
9412int i;
9413_ACEOF
9414if ac_fn_c_try_compile "$LINENO"
9415then :
9416  xorg_cv_cc_flag_unused_command_line_argument=yes
9417else case e in #(
9418  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9419esac
9420fi
9421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9422esac
9423fi
9424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9425printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9426	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9427	CFLAGS="$xorg_testset_save_CFLAGS"
9428fi
9429
9430found="no"
9431
9432	if test $found = "no" ; then
9433		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9434			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9435		fi
9436
9437		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9438			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9439		fi
9440
9441		CFLAGS="$CFLAGS -Wnonnull"
9442
9443		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9444printf %s "checking if $CC supports -Wnonnull... " >&6; }
9445		cacheid=xorg_cv_cc_flag__Wnonnull
9446		if eval test \${$cacheid+y}
9447then :
9448  printf %s "(cached) " >&6
9449else case e in #(
9450  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451/* end confdefs.h.  */
9452int i;
9453int
9454main (void)
9455{
9456
9457  ;
9458  return 0;
9459}
9460_ACEOF
9461if ac_fn_c_try_link "$LINENO"
9462then :
9463  eval $cacheid=yes
9464else case e in #(
9465  e) eval $cacheid=no ;;
9466esac
9467fi
9468rm -f core conftest.err conftest.$ac_objext conftest.beam \
9469    conftest$ac_exeext conftest.$ac_ext ;;
9470esac
9471fi
9472
9473
9474		CFLAGS="$xorg_testset_save_CFLAGS"
9475
9476		eval supported=\$$cacheid
9477		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9478printf "%s\n" "$supported" >&6; }
9479		if test "$supported" = "yes" ; then
9480			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9481			found="yes"
9482		fi
9483	fi
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499xorg_testset_save_CFLAGS="$CFLAGS"
9500
9501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9502	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9503	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9504printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9505if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9506then :
9507  printf %s "(cached) " >&6
9508else case e in #(
9509  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510/* end confdefs.h.  */
9511int i;
9512_ACEOF
9513if ac_fn_c_try_compile "$LINENO"
9514then :
9515  xorg_cv_cc_flag_unknown_warning_option=yes
9516else case e in #(
9517  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9518esac
9519fi
9520rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9521esac
9522fi
9523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9524printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9525	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9526	CFLAGS="$xorg_testset_save_CFLAGS"
9527fi
9528
9529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9530	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9531		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9532	fi
9533	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9534	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9535printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9536if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9537then :
9538  printf %s "(cached) " >&6
9539else case e in #(
9540  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541/* end confdefs.h.  */
9542int i;
9543_ACEOF
9544if ac_fn_c_try_compile "$LINENO"
9545then :
9546  xorg_cv_cc_flag_unused_command_line_argument=yes
9547else case e in #(
9548  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9549esac
9550fi
9551rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9552esac
9553fi
9554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9555printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9556	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9557	CFLAGS="$xorg_testset_save_CFLAGS"
9558fi
9559
9560found="no"
9561
9562	if test $found = "no" ; then
9563		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9564			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9565		fi
9566
9567		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9568			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9569		fi
9570
9571		CFLAGS="$CFLAGS -Winit-self"
9572
9573		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9574printf %s "checking if $CC supports -Winit-self... " >&6; }
9575		cacheid=xorg_cv_cc_flag__Winit_self
9576		if eval test \${$cacheid+y}
9577then :
9578  printf %s "(cached) " >&6
9579else case e in #(
9580  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581/* end confdefs.h.  */
9582int i;
9583int
9584main (void)
9585{
9586
9587  ;
9588  return 0;
9589}
9590_ACEOF
9591if ac_fn_c_try_link "$LINENO"
9592then :
9593  eval $cacheid=yes
9594else case e in #(
9595  e) eval $cacheid=no ;;
9596esac
9597fi
9598rm -f core conftest.err conftest.$ac_objext conftest.beam \
9599    conftest$ac_exeext conftest.$ac_ext ;;
9600esac
9601fi
9602
9603
9604		CFLAGS="$xorg_testset_save_CFLAGS"
9605
9606		eval supported=\$$cacheid
9607		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9608printf "%s\n" "$supported" >&6; }
9609		if test "$supported" = "yes" ; then
9610			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9611			found="yes"
9612		fi
9613	fi
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629xorg_testset_save_CFLAGS="$CFLAGS"
9630
9631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9632	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9633	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9634printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9635if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9636then :
9637  printf %s "(cached) " >&6
9638else case e in #(
9639  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640/* end confdefs.h.  */
9641int i;
9642_ACEOF
9643if ac_fn_c_try_compile "$LINENO"
9644then :
9645  xorg_cv_cc_flag_unknown_warning_option=yes
9646else case e in #(
9647  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9648esac
9649fi
9650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9651esac
9652fi
9653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9654printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9655	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9656	CFLAGS="$xorg_testset_save_CFLAGS"
9657fi
9658
9659if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9660	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9661		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9662	fi
9663	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9664	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9665printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9666if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9667then :
9668  printf %s "(cached) " >&6
9669else case e in #(
9670  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9671/* end confdefs.h.  */
9672int i;
9673_ACEOF
9674if ac_fn_c_try_compile "$LINENO"
9675then :
9676  xorg_cv_cc_flag_unused_command_line_argument=yes
9677else case e in #(
9678  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9679esac
9680fi
9681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9682esac
9683fi
9684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9685printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9686	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9687	CFLAGS="$xorg_testset_save_CFLAGS"
9688fi
9689
9690found="no"
9691
9692	if test $found = "no" ; then
9693		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9694			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9695		fi
9696
9697		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9698			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9699		fi
9700
9701		CFLAGS="$CFLAGS -Wmain"
9702
9703		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9704printf %s "checking if $CC supports -Wmain... " >&6; }
9705		cacheid=xorg_cv_cc_flag__Wmain
9706		if eval test \${$cacheid+y}
9707then :
9708  printf %s "(cached) " >&6
9709else case e in #(
9710  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711/* end confdefs.h.  */
9712int i;
9713int
9714main (void)
9715{
9716
9717  ;
9718  return 0;
9719}
9720_ACEOF
9721if ac_fn_c_try_link "$LINENO"
9722then :
9723  eval $cacheid=yes
9724else case e in #(
9725  e) eval $cacheid=no ;;
9726esac
9727fi
9728rm -f core conftest.err conftest.$ac_objext conftest.beam \
9729    conftest$ac_exeext conftest.$ac_ext ;;
9730esac
9731fi
9732
9733
9734		CFLAGS="$xorg_testset_save_CFLAGS"
9735
9736		eval supported=\$$cacheid
9737		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9738printf "%s\n" "$supported" >&6; }
9739		if test "$supported" = "yes" ; then
9740			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9741			found="yes"
9742		fi
9743	fi
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759xorg_testset_save_CFLAGS="$CFLAGS"
9760
9761if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9762	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9763	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9764printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9765if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9766then :
9767  printf %s "(cached) " >&6
9768else case e in #(
9769  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770/* end confdefs.h.  */
9771int i;
9772_ACEOF
9773if ac_fn_c_try_compile "$LINENO"
9774then :
9775  xorg_cv_cc_flag_unknown_warning_option=yes
9776else case e in #(
9777  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9778esac
9779fi
9780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9781esac
9782fi
9783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9784printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9785	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9786	CFLAGS="$xorg_testset_save_CFLAGS"
9787fi
9788
9789if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9790	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9791		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9792	fi
9793	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9794	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9795printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9796if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9797then :
9798  printf %s "(cached) " >&6
9799else case e in #(
9800  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9801/* end confdefs.h.  */
9802int i;
9803_ACEOF
9804if ac_fn_c_try_compile "$LINENO"
9805then :
9806  xorg_cv_cc_flag_unused_command_line_argument=yes
9807else case e in #(
9808  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9809esac
9810fi
9811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9812esac
9813fi
9814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9815printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9816	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9817	CFLAGS="$xorg_testset_save_CFLAGS"
9818fi
9819
9820found="no"
9821
9822	if test $found = "no" ; then
9823		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9824			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9825		fi
9826
9827		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9828			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9829		fi
9830
9831		CFLAGS="$CFLAGS -Wmissing-braces"
9832
9833		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9834printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9835		cacheid=xorg_cv_cc_flag__Wmissing_braces
9836		if eval test \${$cacheid+y}
9837then :
9838  printf %s "(cached) " >&6
9839else case e in #(
9840  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841/* end confdefs.h.  */
9842int i;
9843int
9844main (void)
9845{
9846
9847  ;
9848  return 0;
9849}
9850_ACEOF
9851if ac_fn_c_try_link "$LINENO"
9852then :
9853  eval $cacheid=yes
9854else case e in #(
9855  e) eval $cacheid=no ;;
9856esac
9857fi
9858rm -f core conftest.err conftest.$ac_objext conftest.beam \
9859    conftest$ac_exeext conftest.$ac_ext ;;
9860esac
9861fi
9862
9863
9864		CFLAGS="$xorg_testset_save_CFLAGS"
9865
9866		eval supported=\$$cacheid
9867		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9868printf "%s\n" "$supported" >&6; }
9869		if test "$supported" = "yes" ; then
9870			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9871			found="yes"
9872		fi
9873	fi
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889xorg_testset_save_CFLAGS="$CFLAGS"
9890
9891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9892	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9893	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9894printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9895if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9896then :
9897  printf %s "(cached) " >&6
9898else case e in #(
9899  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900/* end confdefs.h.  */
9901int i;
9902_ACEOF
9903if ac_fn_c_try_compile "$LINENO"
9904then :
9905  xorg_cv_cc_flag_unknown_warning_option=yes
9906else case e in #(
9907  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9908esac
9909fi
9910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9911esac
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 case e in #(
9930  e) 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 case e in #(
9938  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9939esac
9940fi
9941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9942esac
9943fi
9944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9945printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9946	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9947	CFLAGS="$xorg_testset_save_CFLAGS"
9948fi
9949
9950found="no"
9951
9952	if test $found = "no" ; then
9953		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9954			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9955		fi
9956
9957		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9958			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9959		fi
9960
9961		CFLAGS="$CFLAGS -Wsequence-point"
9962
9963		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9964printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9965		cacheid=xorg_cv_cc_flag__Wsequence_point
9966		if eval test \${$cacheid+y}
9967then :
9968  printf %s "(cached) " >&6
9969else case e in #(
9970  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971/* end confdefs.h.  */
9972int i;
9973int
9974main (void)
9975{
9976
9977  ;
9978  return 0;
9979}
9980_ACEOF
9981if ac_fn_c_try_link "$LINENO"
9982then :
9983  eval $cacheid=yes
9984else case e in #(
9985  e) eval $cacheid=no ;;
9986esac
9987fi
9988rm -f core conftest.err conftest.$ac_objext conftest.beam \
9989    conftest$ac_exeext conftest.$ac_ext ;;
9990esac
9991fi
9992
9993
9994		CFLAGS="$xorg_testset_save_CFLAGS"
9995
9996		eval supported=\$$cacheid
9997		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9998printf "%s\n" "$supported" >&6; }
9999		if test "$supported" = "yes" ; then
10000			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10001			found="yes"
10002		fi
10003	fi
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019xorg_testset_save_CFLAGS="$CFLAGS"
10020
10021if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10022	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10023	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10024printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10025if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10026then :
10027  printf %s "(cached) " >&6
10028else case e in #(
10029  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030/* end confdefs.h.  */
10031int i;
10032_ACEOF
10033if ac_fn_c_try_compile "$LINENO"
10034then :
10035  xorg_cv_cc_flag_unknown_warning_option=yes
10036else case e in #(
10037  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10038esac
10039fi
10040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10041esac
10042fi
10043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10044printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10045	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10046	CFLAGS="$xorg_testset_save_CFLAGS"
10047fi
10048
10049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10050	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10051		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10052	fi
10053	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10054	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10055printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10056if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10057then :
10058  printf %s "(cached) " >&6
10059else case e in #(
10060  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10061/* end confdefs.h.  */
10062int i;
10063_ACEOF
10064if ac_fn_c_try_compile "$LINENO"
10065then :
10066  xorg_cv_cc_flag_unused_command_line_argument=yes
10067else case e in #(
10068  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10069esac
10070fi
10071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10072esac
10073fi
10074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10075printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10076	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10077	CFLAGS="$xorg_testset_save_CFLAGS"
10078fi
10079
10080found="no"
10081
10082	if test $found = "no" ; then
10083		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10084			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10085		fi
10086
10087		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10088			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10089		fi
10090
10091		CFLAGS="$CFLAGS -Wreturn-type"
10092
10093		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10094printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10095		cacheid=xorg_cv_cc_flag__Wreturn_type
10096		if eval test \${$cacheid+y}
10097then :
10098  printf %s "(cached) " >&6
10099else case e in #(
10100  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101/* end confdefs.h.  */
10102int i;
10103int
10104main (void)
10105{
10106
10107  ;
10108  return 0;
10109}
10110_ACEOF
10111if ac_fn_c_try_link "$LINENO"
10112then :
10113  eval $cacheid=yes
10114else case e in #(
10115  e) eval $cacheid=no ;;
10116esac
10117fi
10118rm -f core conftest.err conftest.$ac_objext conftest.beam \
10119    conftest$ac_exeext conftest.$ac_ext ;;
10120esac
10121fi
10122
10123
10124		CFLAGS="$xorg_testset_save_CFLAGS"
10125
10126		eval supported=\$$cacheid
10127		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10128printf "%s\n" "$supported" >&6; }
10129		if test "$supported" = "yes" ; then
10130			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10131			found="yes"
10132		fi
10133	fi
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149xorg_testset_save_CFLAGS="$CFLAGS"
10150
10151if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10152	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10153	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10154printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10155if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10156then :
10157  printf %s "(cached) " >&6
10158else case e in #(
10159  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160/* end confdefs.h.  */
10161int i;
10162_ACEOF
10163if ac_fn_c_try_compile "$LINENO"
10164then :
10165  xorg_cv_cc_flag_unknown_warning_option=yes
10166else case e in #(
10167  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10168esac
10169fi
10170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10171esac
10172fi
10173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10174printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10175	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10176	CFLAGS="$xorg_testset_save_CFLAGS"
10177fi
10178
10179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10180	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10181		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10182	fi
10183	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10184	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10185printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10186if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10187then :
10188  printf %s "(cached) " >&6
10189else case e in #(
10190  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10191/* end confdefs.h.  */
10192int i;
10193_ACEOF
10194if ac_fn_c_try_compile "$LINENO"
10195then :
10196  xorg_cv_cc_flag_unused_command_line_argument=yes
10197else case e in #(
10198  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10199esac
10200fi
10201rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10202esac
10203fi
10204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10205printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10206	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10207	CFLAGS="$xorg_testset_save_CFLAGS"
10208fi
10209
10210found="no"
10211
10212	if test $found = "no" ; then
10213		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10214			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10215		fi
10216
10217		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10218			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10219		fi
10220
10221		CFLAGS="$CFLAGS -Wtrigraphs"
10222
10223		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10224printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10225		cacheid=xorg_cv_cc_flag__Wtrigraphs
10226		if eval test \${$cacheid+y}
10227then :
10228  printf %s "(cached) " >&6
10229else case e in #(
10230  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10231/* end confdefs.h.  */
10232int i;
10233int
10234main (void)
10235{
10236
10237  ;
10238  return 0;
10239}
10240_ACEOF
10241if ac_fn_c_try_link "$LINENO"
10242then :
10243  eval $cacheid=yes
10244else case e in #(
10245  e) eval $cacheid=no ;;
10246esac
10247fi
10248rm -f core conftest.err conftest.$ac_objext conftest.beam \
10249    conftest$ac_exeext conftest.$ac_ext ;;
10250esac
10251fi
10252
10253
10254		CFLAGS="$xorg_testset_save_CFLAGS"
10255
10256		eval supported=\$$cacheid
10257		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10258printf "%s\n" "$supported" >&6; }
10259		if test "$supported" = "yes" ; then
10260			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10261			found="yes"
10262		fi
10263	fi
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279xorg_testset_save_CFLAGS="$CFLAGS"
10280
10281if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10282	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10283	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10284printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10285if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10286then :
10287  printf %s "(cached) " >&6
10288else case e in #(
10289  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290/* end confdefs.h.  */
10291int i;
10292_ACEOF
10293if ac_fn_c_try_compile "$LINENO"
10294then :
10295  xorg_cv_cc_flag_unknown_warning_option=yes
10296else case e in #(
10297  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10298esac
10299fi
10300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10301esac
10302fi
10303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10304printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10305	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10306	CFLAGS="$xorg_testset_save_CFLAGS"
10307fi
10308
10309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10310	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10311		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10312	fi
10313	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10314	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10315printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10316if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10317then :
10318  printf %s "(cached) " >&6
10319else case e in #(
10320  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10321/* end confdefs.h.  */
10322int i;
10323_ACEOF
10324if ac_fn_c_try_compile "$LINENO"
10325then :
10326  xorg_cv_cc_flag_unused_command_line_argument=yes
10327else case e in #(
10328  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10329esac
10330fi
10331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10332esac
10333fi
10334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10335printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10336	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10337	CFLAGS="$xorg_testset_save_CFLAGS"
10338fi
10339
10340found="no"
10341
10342	if test $found = "no" ; then
10343		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10344			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10345		fi
10346
10347		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10348			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10349		fi
10350
10351		CFLAGS="$CFLAGS -Warray-bounds"
10352
10353		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10354printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10355		cacheid=xorg_cv_cc_flag__Warray_bounds
10356		if eval test \${$cacheid+y}
10357then :
10358  printf %s "(cached) " >&6
10359else case e in #(
10360  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361/* end confdefs.h.  */
10362int i;
10363int
10364main (void)
10365{
10366
10367  ;
10368  return 0;
10369}
10370_ACEOF
10371if ac_fn_c_try_link "$LINENO"
10372then :
10373  eval $cacheid=yes
10374else case e in #(
10375  e) eval $cacheid=no ;;
10376esac
10377fi
10378rm -f core conftest.err conftest.$ac_objext conftest.beam \
10379    conftest$ac_exeext conftest.$ac_ext ;;
10380esac
10381fi
10382
10383
10384		CFLAGS="$xorg_testset_save_CFLAGS"
10385
10386		eval supported=\$$cacheid
10387		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10388printf "%s\n" "$supported" >&6; }
10389		if test "$supported" = "yes" ; then
10390			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10391			found="yes"
10392		fi
10393	fi
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409xorg_testset_save_CFLAGS="$CFLAGS"
10410
10411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10412	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10413	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10414printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10415if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10416then :
10417  printf %s "(cached) " >&6
10418else case e in #(
10419  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10420/* end confdefs.h.  */
10421int i;
10422_ACEOF
10423if ac_fn_c_try_compile "$LINENO"
10424then :
10425  xorg_cv_cc_flag_unknown_warning_option=yes
10426else case e in #(
10427  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10428esac
10429fi
10430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10431esac
10432fi
10433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10434printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10435	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10436	CFLAGS="$xorg_testset_save_CFLAGS"
10437fi
10438
10439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10440	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10441		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10442	fi
10443	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10444	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10445printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10446if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10447then :
10448  printf %s "(cached) " >&6
10449else case e in #(
10450  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451/* end confdefs.h.  */
10452int i;
10453_ACEOF
10454if ac_fn_c_try_compile "$LINENO"
10455then :
10456  xorg_cv_cc_flag_unused_command_line_argument=yes
10457else case e in #(
10458  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10459esac
10460fi
10461rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10462esac
10463fi
10464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10465printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10466	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10467	CFLAGS="$xorg_testset_save_CFLAGS"
10468fi
10469
10470found="no"
10471
10472	if test $found = "no" ; then
10473		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10474			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10475		fi
10476
10477		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10478			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10479		fi
10480
10481		CFLAGS="$CFLAGS -Wwrite-strings"
10482
10483		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10484printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10485		cacheid=xorg_cv_cc_flag__Wwrite_strings
10486		if eval test \${$cacheid+y}
10487then :
10488  printf %s "(cached) " >&6
10489else case e in #(
10490  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491/* end confdefs.h.  */
10492int i;
10493int
10494main (void)
10495{
10496
10497  ;
10498  return 0;
10499}
10500_ACEOF
10501if ac_fn_c_try_link "$LINENO"
10502then :
10503  eval $cacheid=yes
10504else case e in #(
10505  e) eval $cacheid=no ;;
10506esac
10507fi
10508rm -f core conftest.err conftest.$ac_objext conftest.beam \
10509    conftest$ac_exeext conftest.$ac_ext ;;
10510esac
10511fi
10512
10513
10514		CFLAGS="$xorg_testset_save_CFLAGS"
10515
10516		eval supported=\$$cacheid
10517		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10518printf "%s\n" "$supported" >&6; }
10519		if test "$supported" = "yes" ; then
10520			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10521			found="yes"
10522		fi
10523	fi
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539xorg_testset_save_CFLAGS="$CFLAGS"
10540
10541if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10542	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10543	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10544printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10545if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10546then :
10547  printf %s "(cached) " >&6
10548else case e in #(
10549  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550/* end confdefs.h.  */
10551int i;
10552_ACEOF
10553if ac_fn_c_try_compile "$LINENO"
10554then :
10555  xorg_cv_cc_flag_unknown_warning_option=yes
10556else case e in #(
10557  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10558esac
10559fi
10560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10561esac
10562fi
10563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10564printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10565	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10566	CFLAGS="$xorg_testset_save_CFLAGS"
10567fi
10568
10569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10570	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10571		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10572	fi
10573	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10574	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10575printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10576if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10577then :
10578  printf %s "(cached) " >&6
10579else case e in #(
10580  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10581/* end confdefs.h.  */
10582int i;
10583_ACEOF
10584if ac_fn_c_try_compile "$LINENO"
10585then :
10586  xorg_cv_cc_flag_unused_command_line_argument=yes
10587else case e in #(
10588  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10589esac
10590fi
10591rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10592esac
10593fi
10594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10595printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10596	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10597	CFLAGS="$xorg_testset_save_CFLAGS"
10598fi
10599
10600found="no"
10601
10602	if test $found = "no" ; then
10603		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10604			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10605		fi
10606
10607		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10608			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10609		fi
10610
10611		CFLAGS="$CFLAGS -Waddress"
10612
10613		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10614printf %s "checking if $CC supports -Waddress... " >&6; }
10615		cacheid=xorg_cv_cc_flag__Waddress
10616		if eval test \${$cacheid+y}
10617then :
10618  printf %s "(cached) " >&6
10619else case e in #(
10620  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10621/* end confdefs.h.  */
10622int i;
10623int
10624main (void)
10625{
10626
10627  ;
10628  return 0;
10629}
10630_ACEOF
10631if ac_fn_c_try_link "$LINENO"
10632then :
10633  eval $cacheid=yes
10634else case e in #(
10635  e) eval $cacheid=no ;;
10636esac
10637fi
10638rm -f core conftest.err conftest.$ac_objext conftest.beam \
10639    conftest$ac_exeext conftest.$ac_ext ;;
10640esac
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			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
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 case e in #(
10679  e) 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 case e in #(
10687  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10688esac
10689fi
10690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10691esac
10692fi
10693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10694printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10695	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10696	CFLAGS="$xorg_testset_save_CFLAGS"
10697fi
10698
10699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10700	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10701		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10702	fi
10703	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10704	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10705printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10706if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10707then :
10708  printf %s "(cached) " >&6
10709else case e in #(
10710  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711/* end confdefs.h.  */
10712int i;
10713_ACEOF
10714if ac_fn_c_try_compile "$LINENO"
10715then :
10716  xorg_cv_cc_flag_unused_command_line_argument=yes
10717else case e in #(
10718  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10719esac
10720fi
10721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10722esac
10723fi
10724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10725printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10726	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10727	CFLAGS="$xorg_testset_save_CFLAGS"
10728fi
10729
10730found="no"
10731
10732	if test $found = "no" ; then
10733		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10734			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10735		fi
10736
10737		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10738			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10739		fi
10740
10741		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10742
10743		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10744printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10745		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10746		if eval test \${$cacheid+y}
10747then :
10748  printf %s "(cached) " >&6
10749else case e in #(
10750  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10751/* end confdefs.h.  */
10752int i;
10753int
10754main (void)
10755{
10756
10757  ;
10758  return 0;
10759}
10760_ACEOF
10761if ac_fn_c_try_link "$LINENO"
10762then :
10763  eval $cacheid=yes
10764else case e in #(
10765  e) eval $cacheid=no ;;
10766esac
10767fi
10768rm -f core conftest.err conftest.$ac_objext conftest.beam \
10769    conftest$ac_exeext conftest.$ac_ext ;;
10770esac
10771fi
10772
10773
10774		CFLAGS="$xorg_testset_save_CFLAGS"
10775
10776		eval supported=\$$cacheid
10777		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10778printf "%s\n" "$supported" >&6; }
10779		if test "$supported" = "yes" ; then
10780			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10781			found="yes"
10782		fi
10783	fi
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799xorg_testset_save_CFLAGS="$CFLAGS"
10800
10801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10802	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10803	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10804printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10805if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10806then :
10807  printf %s "(cached) " >&6
10808else case e in #(
10809  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810/* end confdefs.h.  */
10811int i;
10812_ACEOF
10813if ac_fn_c_try_compile "$LINENO"
10814then :
10815  xorg_cv_cc_flag_unknown_warning_option=yes
10816else case e in #(
10817  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10818esac
10819fi
10820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10821esac
10822fi
10823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10824printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10825	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10826	CFLAGS="$xorg_testset_save_CFLAGS"
10827fi
10828
10829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10830	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10831		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10832	fi
10833	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10834	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10835printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10836if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10837then :
10838  printf %s "(cached) " >&6
10839else case e in #(
10840  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10841/* end confdefs.h.  */
10842int i;
10843_ACEOF
10844if ac_fn_c_try_compile "$LINENO"
10845then :
10846  xorg_cv_cc_flag_unused_command_line_argument=yes
10847else case e in #(
10848  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10849esac
10850fi
10851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10852esac
10853fi
10854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10855printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10856	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10857	CFLAGS="$xorg_testset_save_CFLAGS"
10858fi
10859
10860found="no"
10861
10862	if test $found = "no" ; then
10863		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10864			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10865		fi
10866
10867		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10868			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10869		fi
10870
10871		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10872
10873		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10874printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10875		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10876		if eval test \${$cacheid+y}
10877then :
10878  printf %s "(cached) " >&6
10879else case e in #(
10880  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881/* end confdefs.h.  */
10882int i;
10883int
10884main (void)
10885{
10886
10887  ;
10888  return 0;
10889}
10890_ACEOF
10891if ac_fn_c_try_link "$LINENO"
10892then :
10893  eval $cacheid=yes
10894else case e in #(
10895  e) eval $cacheid=no ;;
10896esac
10897fi
10898rm -f core conftest.err conftest.$ac_objext conftest.beam \
10899    conftest$ac_exeext conftest.$ac_ext ;;
10900esac
10901fi
10902
10903
10904		CFLAGS="$xorg_testset_save_CFLAGS"
10905
10906		eval supported=\$$cacheid
10907		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10908printf "%s\n" "$supported" >&6; }
10909		if test "$supported" = "yes" ; then
10910			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10911			found="yes"
10912		fi
10913	fi
10914
10915
10916fi
10917
10918
10919
10920
10921
10922
10923
10924		CWARNFLAGS="$BASE_CFLAGS"
10925		if  test "x$GCC" = xyes ; then
10926		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10927		fi
10928
10929
10930
10931
10932
10933
10934
10935
10936# Check whether --enable-strict-compilation was given.
10937if test ${enable_strict_compilation+y}
10938then :
10939  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10940else case e in #(
10941  e) STRICT_COMPILE=no ;;
10942esac
10943fi
10944
10945
10946
10947
10948
10949
10950STRICT_CFLAGS=""
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964xorg_testset_save_CFLAGS="$CFLAGS"
10965
10966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10967	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10968	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10969printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10970if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10971then :
10972  printf %s "(cached) " >&6
10973else case e in #(
10974  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10975/* end confdefs.h.  */
10976int i;
10977_ACEOF
10978if ac_fn_c_try_compile "$LINENO"
10979then :
10980  xorg_cv_cc_flag_unknown_warning_option=yes
10981else case e in #(
10982  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10983esac
10984fi
10985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10986esac
10987fi
10988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10989printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10990	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10991	CFLAGS="$xorg_testset_save_CFLAGS"
10992fi
10993
10994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10995	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10996		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10997	fi
10998	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10999	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11000printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11001if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11002then :
11003  printf %s "(cached) " >&6
11004else case e in #(
11005  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006/* end confdefs.h.  */
11007int i;
11008_ACEOF
11009if ac_fn_c_try_compile "$LINENO"
11010then :
11011  xorg_cv_cc_flag_unused_command_line_argument=yes
11012else case e in #(
11013  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11014esac
11015fi
11016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11017esac
11018fi
11019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11020printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11021	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11022	CFLAGS="$xorg_testset_save_CFLAGS"
11023fi
11024
11025found="no"
11026
11027	if test $found = "no" ; then
11028		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11029			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11030		fi
11031
11032		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11033			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11034		fi
11035
11036		CFLAGS="$CFLAGS -pedantic"
11037
11038		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11039printf %s "checking if $CC supports -pedantic... " >&6; }
11040		cacheid=xorg_cv_cc_flag__pedantic
11041		if eval test \${$cacheid+y}
11042then :
11043  printf %s "(cached) " >&6
11044else case e in #(
11045  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11046/* end confdefs.h.  */
11047int i;
11048int
11049main (void)
11050{
11051
11052  ;
11053  return 0;
11054}
11055_ACEOF
11056if ac_fn_c_try_link "$LINENO"
11057then :
11058  eval $cacheid=yes
11059else case e in #(
11060  e) eval $cacheid=no ;;
11061esac
11062fi
11063rm -f core conftest.err conftest.$ac_objext conftest.beam \
11064    conftest$ac_exeext conftest.$ac_ext ;;
11065esac
11066fi
11067
11068
11069		CFLAGS="$xorg_testset_save_CFLAGS"
11070
11071		eval supported=\$$cacheid
11072		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11073printf "%s\n" "$supported" >&6; }
11074		if test "$supported" = "yes" ; then
11075			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11076			found="yes"
11077		fi
11078	fi
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094xorg_testset_save_CFLAGS="$CFLAGS"
11095
11096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11097	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11098	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11099printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11100if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11101then :
11102  printf %s "(cached) " >&6
11103else case e in #(
11104  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105/* end confdefs.h.  */
11106int i;
11107_ACEOF
11108if ac_fn_c_try_compile "$LINENO"
11109then :
11110  xorg_cv_cc_flag_unknown_warning_option=yes
11111else case e in #(
11112  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11113esac
11114fi
11115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11116esac
11117fi
11118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11119printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11120	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11121	CFLAGS="$xorg_testset_save_CFLAGS"
11122fi
11123
11124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11125	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11126		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11127	fi
11128	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11129	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11130printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11131if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11132then :
11133  printf %s "(cached) " >&6
11134else case e in #(
11135  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11136/* end confdefs.h.  */
11137int i;
11138_ACEOF
11139if ac_fn_c_try_compile "$LINENO"
11140then :
11141  xorg_cv_cc_flag_unused_command_line_argument=yes
11142else case e in #(
11143  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11144esac
11145fi
11146rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11147esac
11148fi
11149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11150printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11151	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11152	CFLAGS="$xorg_testset_save_CFLAGS"
11153fi
11154
11155found="no"
11156
11157	if test $found = "no" ; then
11158		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11159			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11160		fi
11161
11162		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11163			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11164		fi
11165
11166		CFLAGS="$CFLAGS -Werror"
11167
11168		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11169printf %s "checking if $CC supports -Werror... " >&6; }
11170		cacheid=xorg_cv_cc_flag__Werror
11171		if eval test \${$cacheid+y}
11172then :
11173  printf %s "(cached) " >&6
11174else case e in #(
11175  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11176/* end confdefs.h.  */
11177int i;
11178int
11179main (void)
11180{
11181
11182  ;
11183  return 0;
11184}
11185_ACEOF
11186if ac_fn_c_try_link "$LINENO"
11187then :
11188  eval $cacheid=yes
11189else case e in #(
11190  e) eval $cacheid=no ;;
11191esac
11192fi
11193rm -f core conftest.err conftest.$ac_objext conftest.beam \
11194    conftest$ac_exeext conftest.$ac_ext ;;
11195esac
11196fi
11197
11198
11199		CFLAGS="$xorg_testset_save_CFLAGS"
11200
11201		eval supported=\$$cacheid
11202		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11203printf "%s\n" "$supported" >&6; }
11204		if test "$supported" = "yes" ; then
11205			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11206			found="yes"
11207		fi
11208	fi
11209
11210	if test $found = "no" ; then
11211		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11212			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11213		fi
11214
11215		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11216			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11217		fi
11218
11219		CFLAGS="$CFLAGS -errwarn"
11220
11221		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11222printf %s "checking if $CC supports -errwarn... " >&6; }
11223		cacheid=xorg_cv_cc_flag__errwarn
11224		if eval test \${$cacheid+y}
11225then :
11226  printf %s "(cached) " >&6
11227else case e in #(
11228  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11229/* end confdefs.h.  */
11230int i;
11231int
11232main (void)
11233{
11234
11235  ;
11236  return 0;
11237}
11238_ACEOF
11239if ac_fn_c_try_link "$LINENO"
11240then :
11241  eval $cacheid=yes
11242else case e in #(
11243  e) eval $cacheid=no ;;
11244esac
11245fi
11246rm -f core conftest.err conftest.$ac_objext conftest.beam \
11247    conftest$ac_exeext conftest.$ac_ext ;;
11248esac
11249fi
11250
11251
11252		CFLAGS="$xorg_testset_save_CFLAGS"
11253
11254		eval supported=\$$cacheid
11255		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11256printf "%s\n" "$supported" >&6; }
11257		if test "$supported" = "yes" ; then
11258			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11259			found="yes"
11260		fi
11261	fi
11262
11263
11264
11265# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11266# activate it with -Werror, so we add it here explicitly.
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280xorg_testset_save_CFLAGS="$CFLAGS"
11281
11282if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11283	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11284	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11285printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11286if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11287then :
11288  printf %s "(cached) " >&6
11289else case e in #(
11290  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11291/* end confdefs.h.  */
11292int i;
11293_ACEOF
11294if ac_fn_c_try_compile "$LINENO"
11295then :
11296  xorg_cv_cc_flag_unknown_warning_option=yes
11297else case e in #(
11298  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11299esac
11300fi
11301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11302esac
11303fi
11304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11305printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11306	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11307	CFLAGS="$xorg_testset_save_CFLAGS"
11308fi
11309
11310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11311	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11312		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11313	fi
11314	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11315	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11316printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11317if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11318then :
11319  printf %s "(cached) " >&6
11320else case e in #(
11321  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322/* end confdefs.h.  */
11323int i;
11324_ACEOF
11325if ac_fn_c_try_compile "$LINENO"
11326then :
11327  xorg_cv_cc_flag_unused_command_line_argument=yes
11328else case e in #(
11329  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11330esac
11331fi
11332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11333esac
11334fi
11335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11336printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11337	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11338	CFLAGS="$xorg_testset_save_CFLAGS"
11339fi
11340
11341found="no"
11342
11343	if test $found = "no" ; then
11344		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11345			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11346		fi
11347
11348		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11349			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11350		fi
11351
11352		CFLAGS="$CFLAGS -Werror=attributes"
11353
11354		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11355printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11356		cacheid=xorg_cv_cc_flag__Werror_attributes
11357		if eval test \${$cacheid+y}
11358then :
11359  printf %s "(cached) " >&6
11360else case e in #(
11361  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362/* end confdefs.h.  */
11363int i;
11364int
11365main (void)
11366{
11367
11368  ;
11369  return 0;
11370}
11371_ACEOF
11372if ac_fn_c_try_link "$LINENO"
11373then :
11374  eval $cacheid=yes
11375else case e in #(
11376  e) eval $cacheid=no ;;
11377esac
11378fi
11379rm -f core conftest.err conftest.$ac_objext conftest.beam \
11380    conftest$ac_exeext conftest.$ac_ext ;;
11381esac
11382fi
11383
11384
11385		CFLAGS="$xorg_testset_save_CFLAGS"
11386
11387		eval supported=\$$cacheid
11388		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11389printf "%s\n" "$supported" >&6; }
11390		if test "$supported" = "yes" ; then
11391			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11392			found="yes"
11393		fi
11394	fi
11395
11396
11397
11398if test "x$STRICT_COMPILE" = "xyes"; then
11399    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11400    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11401fi
11402
11403
11404
11405
11406
11407
11408
11409
11410cat >>confdefs.h <<_ACEOF
11411#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11412_ACEOF
11413
11414	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11415	if test "x$PVM" = "x"; then
11416		PVM="0"
11417	fi
11418
11419printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11420
11421	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11422	if test "x$PVP" = "x"; then
11423		PVP="0"
11424	fi
11425
11426printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11427
11428
11429
11430CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11431mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11432|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11433touch \$(top_srcdir)/ChangeLog; \
11434echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11435
11436
11437
11438
11439macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11440INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11441mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11442|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11443touch \$(top_srcdir)/INSTALL; \
11444echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11445
11446
11447
11448
11449
11450
11451case $host_os in
11452    solaris*)
11453        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11454        # check for a man page file found in later versions that use
11455        # traditional section numbers instead
11456        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11457printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11458if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11459then :
11460  printf %s "(cached) " >&6
11461else case e in #(
11462  e) test "$cross_compiling" = yes &&
11463  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11464if test -r "/usr/share/man/man7/attributes.7"; then
11465  ac_cv_file__usr_share_man_man7_attributes_7=yes
11466else
11467  ac_cv_file__usr_share_man_man7_attributes_7=no
11468fi ;;
11469esac
11470fi
11471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11472printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11473if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11474then :
11475  SYSV_MAN_SECTIONS=false
11476else case e in #(
11477  e) SYSV_MAN_SECTIONS=true ;;
11478esac
11479fi
11480
11481        ;;
11482    *) SYSV_MAN_SECTIONS=false ;;
11483esac
11484
11485if test x$APP_MAN_SUFFIX = x    ; then
11486    APP_MAN_SUFFIX=1
11487fi
11488if test x$APP_MAN_DIR = x    ; then
11489    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11490fi
11491
11492if test x$LIB_MAN_SUFFIX = x    ; then
11493    LIB_MAN_SUFFIX=3
11494fi
11495if test x$LIB_MAN_DIR = x    ; then
11496    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11497fi
11498
11499if test x$FILE_MAN_SUFFIX = x    ; then
11500    case $SYSV_MAN_SECTIONS in
11501	true)				FILE_MAN_SUFFIX=4  ;;
11502	*)				FILE_MAN_SUFFIX=5  ;;
11503    esac
11504fi
11505if test x$FILE_MAN_DIR = x    ; then
11506    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11507fi
11508
11509if test x$MISC_MAN_SUFFIX = x    ; then
11510    case $SYSV_MAN_SECTIONS in
11511	true)				MISC_MAN_SUFFIX=5  ;;
11512	*)				MISC_MAN_SUFFIX=7  ;;
11513    esac
11514fi
11515if test x$MISC_MAN_DIR = x    ; then
11516    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11517fi
11518
11519if test x$DRIVER_MAN_SUFFIX = x    ; then
11520    case $SYSV_MAN_SECTIONS in
11521	true)				DRIVER_MAN_SUFFIX=7  ;;
11522	*)				DRIVER_MAN_SUFFIX=4  ;;
11523    esac
11524fi
11525if test x$DRIVER_MAN_DIR = x    ; then
11526    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11527fi
11528
11529if test x$ADMIN_MAN_SUFFIX = x    ; then
11530    case $SYSV_MAN_SECTIONS in
11531	true)				ADMIN_MAN_SUFFIX=1m ;;
11532	*)				ADMIN_MAN_SUFFIX=8  ;;
11533    esac
11534fi
11535if test x$ADMIN_MAN_DIR = x    ; then
11536    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11537fi
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553XORG_MAN_PAGE="X Version 11"
11554
11555MAN_SUBSTS="\
11556	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11557	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11558	-e 's|__xservername__|Xorg|g' \
11559	-e 's|__xconfigfile__|xorg.conf|g' \
11560	-e 's|__projectroot__|\$(prefix)|g' \
11561	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11562	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11563	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11564	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11565	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11566	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11567	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11568
11569
11570
11571
11572AM_DEFAULT_VERBOSITY=0
11573
11574
11575
11576# Checks for pkg-config packages
11577if test -n "$PKG_CONFIG" && \
11578    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile\""; } >&5
11579  ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5
11580  ac_status=$?
11581  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11582  test $ac_status = 0; }; then
11583  XKBPKG="xkbfile"
11584else
11585  XKBPKG=""
11586fi
11587if test x$XKBPKG = xxkbfile ; then
11588
11589printf "%s\n" "#define XKB 1" >>confdefs.h
11590
11591fi
11592
11593pkg_failed=no
11594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCLIPBOARD" >&5
11595printf %s "checking for XCLIPBOARD... " >&6; }
11596
11597if test -n "$XCLIPBOARD_CFLAGS"; then
11598    pkg_cv_XCLIPBOARD_CFLAGS="$XCLIPBOARD_CFLAGS"
11599 elif test -n "$PKG_CONFIG"; then
11600    if test -n "$PKG_CONFIG" && \
11601    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.1 x11 \${XKBPKG} xproto >= 7.0.17\""; } >&5
11602  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.1 x11 ${XKBPKG} xproto >= 7.0.17") 2>&5
11603  ac_status=$?
11604  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11605  test $ac_status = 0; }; then
11606  pkg_cv_XCLIPBOARD_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt >= 1.1 x11 ${XKBPKG} xproto >= 7.0.17" 2>/dev/null`
11607		      test "x$?" != "x0" && pkg_failed=yes
11608else
11609  pkg_failed=yes
11610fi
11611 else
11612    pkg_failed=untried
11613fi
11614if test -n "$XCLIPBOARD_LIBS"; then
11615    pkg_cv_XCLIPBOARD_LIBS="$XCLIPBOARD_LIBS"
11616 elif test -n "$PKG_CONFIG"; then
11617    if test -n "$PKG_CONFIG" && \
11618    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.1 x11 \${XKBPKG} xproto >= 7.0.17\""; } >&5
11619  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.1 x11 ${XKBPKG} xproto >= 7.0.17") 2>&5
11620  ac_status=$?
11621  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11622  test $ac_status = 0; }; then
11623  pkg_cv_XCLIPBOARD_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt >= 1.1 x11 ${XKBPKG} xproto >= 7.0.17" 2>/dev/null`
11624		      test "x$?" != "x0" && pkg_failed=yes
11625else
11626  pkg_failed=yes
11627fi
11628 else
11629    pkg_failed=untried
11630fi
11631
11632
11633
11634if test $pkg_failed = yes; then
11635   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11636printf "%s\n" "no" >&6; }
11637
11638if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11639        _pkg_short_errors_supported=yes
11640else
11641        _pkg_short_errors_supported=no
11642fi
11643        if test $_pkg_short_errors_supported = yes; then
11644	        XCLIPBOARD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt >= 1.1 x11 ${XKBPKG} xproto >= 7.0.17" 2>&1`
11645        else
11646	        XCLIPBOARD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt >= 1.1 x11 ${XKBPKG} xproto >= 7.0.17" 2>&1`
11647        fi
11648	# Put the nasty error message in config.log where it belongs
11649	echo "$XCLIPBOARD_PKG_ERRORS" >&5
11650
11651	as_fn_error $? "Package requirements (xaw7 xmu xt >= 1.1 x11 ${XKBPKG} xproto >= 7.0.17) were not met:
11652
11653$XCLIPBOARD_PKG_ERRORS
11654
11655Consider adjusting the PKG_CONFIG_PATH environment variable if you
11656installed software in a non-standard prefix.
11657
11658Alternatively, you may set the environment variables XCLIPBOARD_CFLAGS
11659and XCLIPBOARD_LIBS to avoid the need to call pkg-config.
11660See the pkg-config man page for more details." "$LINENO" 5
11661elif test $pkg_failed = untried; then
11662     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11663printf "%s\n" "no" >&6; }
11664	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11665printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11666as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11667is in your PATH or set the PKG_CONFIG environment variable to the full
11668path to pkg-config.
11669
11670Alternatively, you may set the environment variables XCLIPBOARD_CFLAGS
11671and XCLIPBOARD_LIBS to avoid the need to call pkg-config.
11672See the pkg-config man page for more details.
11673
11674To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11675See 'config.log' for more details" "$LINENO" 5; }
11676else
11677	XCLIPBOARD_CFLAGS=$pkg_cv_XCLIPBOARD_CFLAGS
11678	XCLIPBOARD_LIBS=$pkg_cv_XCLIPBOARD_LIBS
11679        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11680printf "%s\n" "yes" >&6; }
11681
11682fi
11683
11684
11685pkg_failed=no
11686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11687printf %s "checking for APPDEFS... " >&6; }
11688
11689if test -n "$APPDEFS_CFLAGS"; then
11690    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11691 elif test -n "$PKG_CONFIG"; then
11692    if test -n "$PKG_CONFIG" && \
11693    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11694  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11695  ac_status=$?
11696  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11697  test $ac_status = 0; }; then
11698  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11699		      test "x$?" != "x0" && pkg_failed=yes
11700else
11701  pkg_failed=yes
11702fi
11703 else
11704    pkg_failed=untried
11705fi
11706if test -n "$APPDEFS_LIBS"; then
11707    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11708 elif test -n "$PKG_CONFIG"; then
11709    if test -n "$PKG_CONFIG" && \
11710    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11711  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11712  ac_status=$?
11713  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11714  test $ac_status = 0; }; then
11715  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11716		      test "x$?" != "x0" && pkg_failed=yes
11717else
11718  pkg_failed=yes
11719fi
11720 else
11721    pkg_failed=untried
11722fi
11723
11724
11725
11726if test $pkg_failed = yes; then
11727   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728printf "%s\n" "no" >&6; }
11729
11730if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11731        _pkg_short_errors_supported=yes
11732else
11733        _pkg_short_errors_supported=no
11734fi
11735        if test $_pkg_short_errors_supported = yes; then
11736	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11737        else
11738	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11739        fi
11740	# Put the nasty error message in config.log where it belongs
11741	echo "$APPDEFS_PKG_ERRORS" >&5
11742
11743	as_fn_error $? "Package requirements (xt) were not met:
11744
11745$APPDEFS_PKG_ERRORS
11746
11747Consider adjusting the PKG_CONFIG_PATH environment variable if you
11748installed software in a non-standard prefix.
11749
11750Alternatively, you may set the environment variables APPDEFS_CFLAGS
11751and APPDEFS_LIBS to avoid the need to call pkg-config.
11752See the pkg-config man page for more details." "$LINENO" 5
11753elif test $pkg_failed = untried; then
11754     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755printf "%s\n" "no" >&6; }
11756	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11757printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11758as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11759is in your PATH or set the PKG_CONFIG environment variable to the full
11760path to pkg-config.
11761
11762Alternatively, you may set the environment variables APPDEFS_CFLAGS
11763and APPDEFS_LIBS to avoid the need to call pkg-config.
11764See the pkg-config man page for more details.
11765
11766To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11767See 'config.log' for more details" "$LINENO" 5; }
11768else
11769	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11770	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11771        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11772printf "%s\n" "yes" >&6; }
11773
11774fi
11775xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11776
11777# Check whether --with-appdefaultdir was given.
11778if test ${with_appdefaultdir+y}
11779then :
11780  withval=$with_appdefaultdir; appdefaultdir="$withval"
11781else case e in #(
11782  e) appdefaultdir="${xt_appdefaultdir}" ;;
11783esac
11784fi
11785
11786
11787
11788
11789ac_config_files="$ac_config_files Makefile man/Makefile"
11790
11791cat >confcache <<\_ACEOF
11792# This file is a shell script that caches the results of configure
11793# tests run on this system so they can be shared between configure
11794# scripts and configure runs, see configure's option --config-cache.
11795# It is not useful on other systems.  If it contains results you don't
11796# want to keep, you may remove or edit it.
11797#
11798# config.status only pays attention to the cache file if you give it
11799# the --recheck option to rerun configure.
11800#
11801# 'ac_cv_env_foo' variables (set or unset) will be overridden when
11802# loading this file, other *unset* 'ac_cv_foo' will be assigned the
11803# following values.
11804
11805_ACEOF
11806
11807# The following way of writing the cache mishandles newlines in values,
11808# but we know of no workaround that is simple, portable, and efficient.
11809# So, we kill variables containing newlines.
11810# Ultrix sh set writes to stderr and can't be redirected directly,
11811# and sets the high bit in the cache file unless we assign to the vars.
11812(
11813  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11814    eval ac_val=\$$ac_var
11815    case $ac_val in #(
11816    *${as_nl}*)
11817      case $ac_var in #(
11818      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11819printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11820      esac
11821      case $ac_var in #(
11822      _ | IFS | as_nl) ;; #(
11823      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11824      *) { eval $ac_var=; unset $ac_var;} ;;
11825      esac ;;
11826    esac
11827  done
11828
11829  (set) 2>&1 |
11830    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11831    *${as_nl}ac_space=\ *)
11832      # 'set' does not quote correctly, so add quotes: double-quote
11833      # substitution turns \\\\ into \\, and sed turns \\ into \.
11834      sed -n \
11835	"s/'/'\\\\''/g;
11836	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11837      ;; #(
11838    *)
11839      # 'set' quotes correctly as required by POSIX, so do not add quotes.
11840      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11841      ;;
11842    esac |
11843    sort
11844) |
11845  sed '
11846     /^ac_cv_env_/b end
11847     t clear
11848     :clear
11849     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11850     t end
11851     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11852     :end' >>confcache
11853if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11854  if test -w "$cache_file"; then
11855    if test "x$cache_file" != "x/dev/null"; then
11856      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11857printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11858      if test ! -f "$cache_file" || test -h "$cache_file"; then
11859	cat confcache >"$cache_file"
11860      else
11861        case $cache_file in #(
11862        */* | ?:*)
11863	  mv -f confcache "$cache_file"$$ &&
11864	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11865        *)
11866	  mv -f confcache "$cache_file" ;;
11867	esac
11868      fi
11869    fi
11870  else
11871    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11872printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11873  fi
11874fi
11875rm -f confcache
11876
11877test "x$prefix" = xNONE && prefix=$ac_default_prefix
11878# Let make expand exec_prefix.
11879test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11880
11881DEFS=-DHAVE_CONFIG_H
11882
11883ac_libobjs=
11884ac_ltlibobjs=
11885U=
11886for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11887  # 1. Remove the extension, and $U if already installed.
11888  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11889  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11890  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11891  #    will be set to the directory where LIBOBJS objects are built.
11892  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11893  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11894done
11895LIBOBJS=$ac_libobjs
11896
11897LTLIBOBJS=$ac_ltlibobjs
11898
11899
11900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11901printf %s "checking that generated files are newer than configure... " >&6; }
11902   if test -n "$am_sleep_pid"; then
11903     # Hide warnings about reused PIDs.
11904     wait $am_sleep_pid 2>/dev/null
11905   fi
11906   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11907printf "%s\n" "done" >&6; }
11908case $enable_silent_rules in # (((
11909  yes) AM_DEFAULT_VERBOSITY=0;;
11910   no) AM_DEFAULT_VERBOSITY=1;;
11911esac
11912if test $am_cv_make_support_nested_variables = yes; then
11913    AM_V='$(V)'
11914  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11915else
11916  AM_V=$AM_DEFAULT_VERBOSITY
11917  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11918fi
11919
11920 if test -n "$EXEEXT"; then
11921  am__EXEEXT_TRUE=
11922  am__EXEEXT_FALSE='#'
11923else
11924  am__EXEEXT_TRUE='#'
11925  am__EXEEXT_FALSE=
11926fi
11927
11928if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11929  as_fn_error $? "conditional \"AMDEP\" was never defined.
11930Usually this means the macro was only invoked conditionally." "$LINENO" 5
11931fi
11932if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11933  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11934Usually this means the macro was only invoked conditionally." "$LINENO" 5
11935fi
11936
11937: "${CONFIG_STATUS=./config.status}"
11938ac_write_fail=0
11939ac_clean_files_save=$ac_clean_files
11940ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11942printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11943as_write_fail=0
11944cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11945#! $SHELL
11946# Generated by $as_me.
11947# Run this file to recreate the current configuration.
11948# Compiler output produced by configure, useful for debugging
11949# configure, is in config.log if it exists.
11950
11951debug=false
11952ac_cs_recheck=false
11953ac_cs_silent=false
11954
11955SHELL=\${CONFIG_SHELL-$SHELL}
11956export SHELL
11957_ASEOF
11958cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11959## -------------------- ##
11960## M4sh Initialization. ##
11961## -------------------- ##
11962
11963# Be more Bourne compatible
11964DUALCASE=1; export DUALCASE # for MKS sh
11965if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11966then :
11967  emulate sh
11968  NULLCMD=:
11969  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11970  # is contrary to our usage.  Disable this feature.
11971  alias -g '${1+"$@"}'='"$@"'
11972  setopt NO_GLOB_SUBST
11973else case e in #(
11974  e) case `(set -o) 2>/dev/null` in #(
11975  *posix*) :
11976    set -o posix ;; #(
11977  *) :
11978     ;;
11979esac ;;
11980esac
11981fi
11982
11983
11984
11985# Reset variables that may have inherited troublesome values from
11986# the environment.
11987
11988# IFS needs to be set, to space, tab, and newline, in precisely that order.
11989# (If _AS_PATH_WALK were called with IFS unset, it would have the
11990# side effect of setting IFS to empty, thus disabling word splitting.)
11991# Quoting is to prevent editors from complaining about space-tab.
11992as_nl='
11993'
11994export as_nl
11995IFS=" ""	$as_nl"
11996
11997PS1='$ '
11998PS2='> '
11999PS4='+ '
12000
12001# Ensure predictable behavior from utilities with locale-dependent output.
12002LC_ALL=C
12003export LC_ALL
12004LANGUAGE=C
12005export LANGUAGE
12006
12007# We cannot yet rely on "unset" to work, but we need these variables
12008# to be unset--not just set to an empty or harmless value--now, to
12009# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12010# also avoids known problems related to "unset" and subshell syntax
12011# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12012for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12013do eval test \${$as_var+y} \
12014  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12015done
12016
12017# Ensure that fds 0, 1, and 2 are open.
12018if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12019if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12020if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12021
12022# The user is always right.
12023if ${PATH_SEPARATOR+false} :; then
12024  PATH_SEPARATOR=:
12025  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12026    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12027      PATH_SEPARATOR=';'
12028  }
12029fi
12030
12031
12032# Find who we are.  Look in the path if we contain no directory separator.
12033as_myself=
12034case $0 in #((
12035  *[\\/]* ) as_myself=$0 ;;
12036  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12037for as_dir in $PATH
12038do
12039  IFS=$as_save_IFS
12040  case $as_dir in #(((
12041    '') as_dir=./ ;;
12042    */) ;;
12043    *) as_dir=$as_dir/ ;;
12044  esac
12045    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12046  done
12047IFS=$as_save_IFS
12048
12049     ;;
12050esac
12051# We did not find ourselves, most probably we were run as 'sh COMMAND'
12052# in which case we are not to be found in the path.
12053if test "x$as_myself" = x; then
12054  as_myself=$0
12055fi
12056if test ! -f "$as_myself"; then
12057  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12058  exit 1
12059fi
12060
12061
12062
12063# as_fn_error STATUS ERROR [LINENO LOG_FD]
12064# ----------------------------------------
12065# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12066# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12067# script with STATUS, using 1 if that was 0.
12068as_fn_error ()
12069{
12070  as_status=$1; test $as_status -eq 0 && as_status=1
12071  if test "$4"; then
12072    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12073    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12074  fi
12075  printf "%s\n" "$as_me: error: $2" >&2
12076  as_fn_exit $as_status
12077} # as_fn_error
12078
12079
12080# as_fn_set_status STATUS
12081# -----------------------
12082# Set $? to STATUS, without forking.
12083as_fn_set_status ()
12084{
12085  return $1
12086} # as_fn_set_status
12087
12088# as_fn_exit STATUS
12089# -----------------
12090# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12091as_fn_exit ()
12092{
12093  set +e
12094  as_fn_set_status $1
12095  exit $1
12096} # as_fn_exit
12097
12098# as_fn_unset VAR
12099# ---------------
12100# Portably unset VAR.
12101as_fn_unset ()
12102{
12103  { eval $1=; unset $1;}
12104}
12105as_unset=as_fn_unset
12106
12107# as_fn_append VAR VALUE
12108# ----------------------
12109# Append the text in VALUE to the end of the definition contained in VAR. Take
12110# advantage of any shell optimizations that allow amortized linear growth over
12111# repeated appends, instead of the typical quadratic growth present in naive
12112# implementations.
12113if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12114then :
12115  eval 'as_fn_append ()
12116  {
12117    eval $1+=\$2
12118  }'
12119else case e in #(
12120  e) as_fn_append ()
12121  {
12122    eval $1=\$$1\$2
12123  } ;;
12124esac
12125fi # as_fn_append
12126
12127# as_fn_arith ARG...
12128# ------------------
12129# Perform arithmetic evaluation on the ARGs, and store the result in the
12130# global $as_val. Take advantage of shells that can avoid forks. The arguments
12131# must be portable across $(()) and expr.
12132if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12133then :
12134  eval 'as_fn_arith ()
12135  {
12136    as_val=$(( $* ))
12137  }'
12138else case e in #(
12139  e) as_fn_arith ()
12140  {
12141    as_val=`expr "$@" || test $? -eq 1`
12142  } ;;
12143esac
12144fi # as_fn_arith
12145
12146
12147if expr a : '\(a\)' >/dev/null 2>&1 &&
12148   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12149  as_expr=expr
12150else
12151  as_expr=false
12152fi
12153
12154if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12155  as_basename=basename
12156else
12157  as_basename=false
12158fi
12159
12160if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12161  as_dirname=dirname
12162else
12163  as_dirname=false
12164fi
12165
12166as_me=`$as_basename -- "$0" ||
12167$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12168	 X"$0" : 'X\(//\)$' \| \
12169	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12170printf "%s\n" X/"$0" |
12171    sed '/^.*\/\([^/][^/]*\)\/*$/{
12172	    s//\1/
12173	    q
12174	  }
12175	  /^X\/\(\/\/\)$/{
12176	    s//\1/
12177	    q
12178	  }
12179	  /^X\/\(\/\).*/{
12180	    s//\1/
12181	    q
12182	  }
12183	  s/.*/./; q'`
12184
12185# Avoid depending upon Character Ranges.
12186as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12187as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12188as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12189as_cr_digits='0123456789'
12190as_cr_alnum=$as_cr_Letters$as_cr_digits
12191
12192
12193# Determine whether it's possible to make 'echo' print without a newline.
12194# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12195# for compatibility with existing Makefiles.
12196ECHO_C= ECHO_N= ECHO_T=
12197case `echo -n x` in #(((((
12198-n*)
12199  case `echo 'xy\c'` in
12200  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12201  xy)  ECHO_C='\c';;
12202  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12203       ECHO_T='	';;
12204  esac;;
12205*)
12206  ECHO_N='-n';;
12207esac
12208
12209# For backward compatibility with old third-party macros, we provide
12210# the shell variables $as_echo and $as_echo_n.  New code should use
12211# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12212as_echo='printf %s\n'
12213as_echo_n='printf %s'
12214
12215rm -f conf$$ conf$$.exe conf$$.file
12216if test -d conf$$.dir; then
12217  rm -f conf$$.dir/conf$$.file
12218else
12219  rm -f conf$$.dir
12220  mkdir conf$$.dir 2>/dev/null
12221fi
12222if (echo >conf$$.file) 2>/dev/null; then
12223  if ln -s conf$$.file conf$$ 2>/dev/null; then
12224    as_ln_s='ln -s'
12225    # ... but there are two gotchas:
12226    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12227    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12228    # In both cases, we have to default to 'cp -pR'.
12229    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12230      as_ln_s='cp -pR'
12231  elif ln conf$$.file conf$$ 2>/dev/null; then
12232    as_ln_s=ln
12233  else
12234    as_ln_s='cp -pR'
12235  fi
12236else
12237  as_ln_s='cp -pR'
12238fi
12239rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12240rmdir conf$$.dir 2>/dev/null
12241
12242
12243# as_fn_mkdir_p
12244# -------------
12245# Create "$as_dir" as a directory, including parents if necessary.
12246as_fn_mkdir_p ()
12247{
12248
12249  case $as_dir in #(
12250  -*) as_dir=./$as_dir;;
12251  esac
12252  test -d "$as_dir" || eval $as_mkdir_p || {
12253    as_dirs=
12254    while :; do
12255      case $as_dir in #(
12256      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12257      *) as_qdir=$as_dir;;
12258      esac
12259      as_dirs="'$as_qdir' $as_dirs"
12260      as_dir=`$as_dirname -- "$as_dir" ||
12261$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12262	 X"$as_dir" : 'X\(//\)[^/]' \| \
12263	 X"$as_dir" : 'X\(//\)$' \| \
12264	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12265printf "%s\n" X"$as_dir" |
12266    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12267	    s//\1/
12268	    q
12269	  }
12270	  /^X\(\/\/\)[^/].*/{
12271	    s//\1/
12272	    q
12273	  }
12274	  /^X\(\/\/\)$/{
12275	    s//\1/
12276	    q
12277	  }
12278	  /^X\(\/\).*/{
12279	    s//\1/
12280	    q
12281	  }
12282	  s/.*/./; q'`
12283      test -d "$as_dir" && break
12284    done
12285    test -z "$as_dirs" || eval "mkdir $as_dirs"
12286  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12287
12288
12289} # as_fn_mkdir_p
12290if mkdir -p . 2>/dev/null; then
12291  as_mkdir_p='mkdir -p "$as_dir"'
12292else
12293  test -d ./-p && rmdir ./-p
12294  as_mkdir_p=false
12295fi
12296
12297
12298# as_fn_executable_p FILE
12299# -----------------------
12300# Test if FILE is an executable regular file.
12301as_fn_executable_p ()
12302{
12303  test -f "$1" && test -x "$1"
12304} # as_fn_executable_p
12305as_test_x='test -x'
12306as_executable_p=as_fn_executable_p
12307
12308# Sed expression to map a string onto a valid CPP name.
12309as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12310as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12311
12312# Sed expression to map a string onto a valid variable name.
12313as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12314as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12315
12316
12317exec 6>&1
12318## ----------------------------------- ##
12319## Main body of $CONFIG_STATUS script. ##
12320## ----------------------------------- ##
12321_ASEOF
12322test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12323
12324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12325# Save the log message, to keep $0 and so on meaningful, and to
12326# report actual input values of CONFIG_FILES etc. instead of their
12327# values after options handling.
12328ac_log="
12329This file was extended by xclipboard $as_me 1.1.5, which was
12330generated by GNU Autoconf 2.72.  Invocation command line was
12331
12332  CONFIG_FILES    = $CONFIG_FILES
12333  CONFIG_HEADERS  = $CONFIG_HEADERS
12334  CONFIG_LINKS    = $CONFIG_LINKS
12335  CONFIG_COMMANDS = $CONFIG_COMMANDS
12336  $ $0 $@
12337
12338on `(hostname || uname -n) 2>/dev/null | sed 1q`
12339"
12340
12341_ACEOF
12342
12343case $ac_config_files in *"
12344"*) set x $ac_config_files; shift; ac_config_files=$*;;
12345esac
12346
12347case $ac_config_headers in *"
12348"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12349esac
12350
12351
12352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12353# Files that config.status was made for.
12354config_files="$ac_config_files"
12355config_headers="$ac_config_headers"
12356config_commands="$ac_config_commands"
12357
12358_ACEOF
12359
12360cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12361ac_cs_usage="\
12362'$as_me' instantiates files and other configuration actions
12363from templates according to the current configuration.  Unless the files
12364and actions are specified as TAGs, all are instantiated by default.
12365
12366Usage: $0 [OPTION]... [TAG]...
12367
12368  -h, --help       print this help, then exit
12369  -V, --version    print version number and configuration settings, then exit
12370      --config     print configuration, then exit
12371  -q, --quiet, --silent
12372                   do not print progress messages
12373  -d, --debug      don't remove temporary files
12374      --recheck    update $as_me by reconfiguring in the same conditions
12375      --file=FILE[:TEMPLATE]
12376                   instantiate the configuration file FILE
12377      --header=FILE[:TEMPLATE]
12378                   instantiate the configuration header FILE
12379
12380Configuration files:
12381$config_files
12382
12383Configuration headers:
12384$config_headers
12385
12386Configuration commands:
12387$config_commands
12388
12389Report bugs to <https://gitlab.freedesktop.org/xorg/app/xclipboard/-/issue>.
12390xclipboard home page: <https://gitlab.freedesktop.org/xorg/app/xclipboard/>."
12391
12392_ACEOF
12393ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12394ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12396ac_cs_config='$ac_cs_config_escaped'
12397ac_cs_version="\\
12398xclipboard config.status 1.1.5
12399configured by $0, generated by GNU Autoconf 2.72,
12400  with options \\"\$ac_cs_config\\"
12401
12402Copyright (C) 2023 Free Software Foundation, Inc.
12403This config.status script is free software; the Free Software Foundation
12404gives unlimited permission to copy, distribute and modify it."
12405
12406ac_pwd='$ac_pwd'
12407srcdir='$srcdir'
12408INSTALL='$INSTALL'
12409MKDIR_P='$MKDIR_P'
12410AWK='$AWK'
12411test -n "\$AWK" || AWK=awk
12412_ACEOF
12413
12414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12415# The default lists apply if the user does not specify any file.
12416ac_need_defaults=:
12417while test $# != 0
12418do
12419  case $1 in
12420  --*=?*)
12421    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12422    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12423    ac_shift=:
12424    ;;
12425  --*=)
12426    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12427    ac_optarg=
12428    ac_shift=:
12429    ;;
12430  *)
12431    ac_option=$1
12432    ac_optarg=$2
12433    ac_shift=shift
12434    ;;
12435  esac
12436
12437  case $ac_option in
12438  # Handling of the options.
12439  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12440    ac_cs_recheck=: ;;
12441  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12442    printf "%s\n" "$ac_cs_version"; exit ;;
12443  --config | --confi | --conf | --con | --co | --c )
12444    printf "%s\n" "$ac_cs_config"; exit ;;
12445  --debug | --debu | --deb | --de | --d | -d )
12446    debug=: ;;
12447  --file | --fil | --fi | --f )
12448    $ac_shift
12449    case $ac_optarg in
12450    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12451    '') as_fn_error $? "missing file argument" ;;
12452    esac
12453    as_fn_append CONFIG_FILES " '$ac_optarg'"
12454    ac_need_defaults=false;;
12455  --header | --heade | --head | --hea )
12456    $ac_shift
12457    case $ac_optarg in
12458    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12459    esac
12460    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12461    ac_need_defaults=false;;
12462  --he | --h)
12463    # Conflict between --help and --header
12464    as_fn_error $? "ambiguous option: '$1'
12465Try '$0 --help' for more information.";;
12466  --help | --hel | -h )
12467    printf "%s\n" "$ac_cs_usage"; exit ;;
12468  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12469  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12470    ac_cs_silent=: ;;
12471
12472  # This is an error.
12473  -*) as_fn_error $? "unrecognized option: '$1'
12474Try '$0 --help' for more information." ;;
12475
12476  *) as_fn_append ac_config_targets " $1"
12477     ac_need_defaults=false ;;
12478
12479  esac
12480  shift
12481done
12482
12483ac_configure_extra_args=
12484
12485if $ac_cs_silent; then
12486  exec 6>/dev/null
12487  ac_configure_extra_args="$ac_configure_extra_args --silent"
12488fi
12489
12490_ACEOF
12491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12492if \$ac_cs_recheck; then
12493  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12494  shift
12495  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12496  CONFIG_SHELL='$SHELL'
12497  export CONFIG_SHELL
12498  exec "\$@"
12499fi
12500
12501_ACEOF
12502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12503exec 5>>config.log
12504{
12505  echo
12506  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12507## Running $as_me. ##
12508_ASBOX
12509  printf "%s\n" "$ac_log"
12510} >&5
12511
12512_ACEOF
12513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12514#
12515# INIT-COMMANDS
12516#
12517AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12518
12519_ACEOF
12520
12521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12522
12523# Handling of arguments.
12524for ac_config_target in $ac_config_targets
12525do
12526  case $ac_config_target in
12527    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12528    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12529    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12530    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12531
12532  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12533  esac
12534done
12535
12536
12537# If the user did not use the arguments to specify the items to instantiate,
12538# then the envvar interface is used.  Set only those that are not.
12539# We use the long form for the default assignment because of an extremely
12540# bizarre bug on SunOS 4.1.3.
12541if $ac_need_defaults; then
12542  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12543  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12544  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12545fi
12546
12547# Have a temporary directory for convenience.  Make it in the build tree
12548# simply because there is no reason against having it here, and in addition,
12549# creating and moving files from /tmp can sometimes cause problems.
12550# Hook for its removal unless debugging.
12551# Note that there is a small window in which the directory will not be cleaned:
12552# after its creation but before its name has been assigned to '$tmp'.
12553$debug ||
12554{
12555  tmp= ac_tmp=
12556  trap 'exit_status=$?
12557  : "${ac_tmp:=$tmp}"
12558  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12559' 0
12560  trap 'as_fn_exit 1' 1 2 13 15
12561}
12562# Create a (secure) tmp directory for tmp files.
12563
12564{
12565  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12566  test -d "$tmp"
12567}  ||
12568{
12569  tmp=./conf$$-$RANDOM
12570  (umask 077 && mkdir "$tmp")
12571} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12572ac_tmp=$tmp
12573
12574# Set up the scripts for CONFIG_FILES section.
12575# No need to generate them if there are no CONFIG_FILES.
12576# This happens for instance with './config.status config.h'.
12577if test -n "$CONFIG_FILES"; then
12578
12579
12580ac_cr=`echo X | tr X '\015'`
12581# On cygwin, bash can eat \r inside `` if the user requested igncr.
12582# But we know of no other shell where ac_cr would be empty at this
12583# point, so we can use a bashism as a fallback.
12584if test "x$ac_cr" = x; then
12585  eval ac_cr=\$\'\\r\'
12586fi
12587ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12588if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12589  ac_cs_awk_cr='\\r'
12590else
12591  ac_cs_awk_cr=$ac_cr
12592fi
12593
12594echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12595_ACEOF
12596
12597
12598{
12599  echo "cat >conf$$subs.awk <<_ACEOF" &&
12600  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12601  echo "_ACEOF"
12602} >conf$$subs.sh ||
12603  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12604ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12605ac_delim='%!_!# '
12606for ac_last_try in false false false false false :; do
12607  . ./conf$$subs.sh ||
12608    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12609
12610  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12611  if test $ac_delim_n = $ac_delim_num; then
12612    break
12613  elif $ac_last_try; then
12614    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12615  else
12616    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12617  fi
12618done
12619rm -f conf$$subs.sh
12620
12621cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12622cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12623_ACEOF
12624sed -n '
12625h
12626s/^/S["/; s/!.*/"]=/
12627p
12628g
12629s/^[^!]*!//
12630:repl
12631t repl
12632s/'"$ac_delim"'$//
12633t delim
12634:nl
12635h
12636s/\(.\{148\}\)..*/\1/
12637t more1
12638s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12639p
12640n
12641b repl
12642:more1
12643s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12644p
12645g
12646s/.\{148\}//
12647t nl
12648:delim
12649h
12650s/\(.\{148\}\)..*/\1/
12651t more2
12652s/["\\]/\\&/g; s/^/"/; s/$/"/
12653p
12654b
12655:more2
12656s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12657p
12658g
12659s/.\{148\}//
12660t delim
12661' <conf$$subs.awk | sed '
12662/^[^""]/{
12663  N
12664  s/\n//
12665}
12666' >>$CONFIG_STATUS || ac_write_fail=1
12667rm -f conf$$subs.awk
12668cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12669_ACAWK
12670cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12671  for (key in S) S_is_set[key] = 1
12672  FS = ""
12673
12674}
12675{
12676  line = $ 0
12677  nfields = split(line, field, "@")
12678  substed = 0
12679  len = length(field[1])
12680  for (i = 2; i < nfields; i++) {
12681    key = field[i]
12682    keylen = length(key)
12683    if (S_is_set[key]) {
12684      value = S[key]
12685      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12686      len += length(value) + length(field[++i])
12687      substed = 1
12688    } else
12689      len += 1 + keylen
12690  }
12691
12692  print line
12693}
12694
12695_ACAWK
12696_ACEOF
12697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12698if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12699  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12700else
12701  cat
12702fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12703  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12704_ACEOF
12705
12706# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12707# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12708# trailing colons and then remove the whole line if VPATH becomes empty
12709# (actually we leave an empty line to preserve line numbers).
12710if test "x$srcdir" = x.; then
12711  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12712h
12713s///
12714s/^/:/
12715s/[	 ]*$/:/
12716s/:\$(srcdir):/:/g
12717s/:\${srcdir}:/:/g
12718s/:@srcdir@:/:/g
12719s/^:*//
12720s/:*$//
12721x
12722s/\(=[	 ]*\).*/\1/
12723G
12724s/\n//
12725s/^[^=]*=[	 ]*$//
12726}'
12727fi
12728
12729cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12730fi # test -n "$CONFIG_FILES"
12731
12732# Set up the scripts for CONFIG_HEADERS section.
12733# No need to generate them if there are no CONFIG_HEADERS.
12734# This happens for instance with './config.status Makefile'.
12735if test -n "$CONFIG_HEADERS"; then
12736cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12737BEGIN {
12738_ACEOF
12739
12740# Transform confdefs.h into an awk script 'defines.awk', embedded as
12741# here-document in config.status, that substitutes the proper values into
12742# config.h.in to produce config.h.
12743
12744# Create a delimiter string that does not exist in confdefs.h, to ease
12745# handling of long lines.
12746ac_delim='%!_!# '
12747for ac_last_try in false false :; do
12748  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12749  if test -z "$ac_tt"; then
12750    break
12751  elif $ac_last_try; then
12752    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12753  else
12754    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12755  fi
12756done
12757
12758# For the awk script, D is an array of macro values keyed by name,
12759# likewise P contains macro parameters if any.  Preserve backslash
12760# newline sequences.
12761
12762ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12763sed -n '
12764s/.\{148\}/&'"$ac_delim"'/g
12765t rset
12766:rset
12767s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12768t def
12769d
12770:def
12771s/\\$//
12772t bsnl
12773s/["\\]/\\&/g
12774s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12775D["\1"]=" \3"/p
12776s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12777d
12778:bsnl
12779s/["\\]/\\&/g
12780s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12781D["\1"]=" \3\\\\\\n"\\/p
12782t cont
12783s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12784t cont
12785d
12786:cont
12787n
12788s/.\{148\}/&'"$ac_delim"'/g
12789t clear
12790:clear
12791s/\\$//
12792t bsnlc
12793s/["\\]/\\&/g; s/^/"/; s/$/"/p
12794d
12795:bsnlc
12796s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12797b cont
12798' <confdefs.h | sed '
12799s/'"$ac_delim"'/"\\\
12800"/g' >>$CONFIG_STATUS || ac_write_fail=1
12801
12802cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12803  for (key in D) D_is_set[key] = 1
12804  FS = ""
12805}
12806/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12807  line = \$ 0
12808  split(line, arg, " ")
12809  if (arg[1] == "#") {
12810    defundef = arg[2]
12811    mac1 = arg[3]
12812  } else {
12813    defundef = substr(arg[1], 2)
12814    mac1 = arg[2]
12815  }
12816  split(mac1, mac2, "(") #)
12817  macro = mac2[1]
12818  prefix = substr(line, 1, index(line, defundef) - 1)
12819  if (D_is_set[macro]) {
12820    # Preserve the white space surrounding the "#".
12821    print prefix "define", macro P[macro] D[macro]
12822    next
12823  } else {
12824    # Replace #undef with comments.  This is necessary, for example,
12825    # in the case of _POSIX_SOURCE, which is predefined and required
12826    # on some systems where configure will not decide to define it.
12827    if (defundef == "undef") {
12828      print "/*", prefix defundef, macro, "*/"
12829      next
12830    }
12831  }
12832}
12833{ print }
12834_ACAWK
12835_ACEOF
12836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12837  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12838fi # test -n "$CONFIG_HEADERS"
12839
12840
12841eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12842shift
12843for ac_tag
12844do
12845  case $ac_tag in
12846  :[FHLC]) ac_mode=$ac_tag; continue;;
12847  esac
12848  case $ac_mode$ac_tag in
12849  :[FHL]*:*);;
12850  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12851  :[FH]-) ac_tag=-:-;;
12852  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12853  esac
12854  ac_save_IFS=$IFS
12855  IFS=:
12856  set x $ac_tag
12857  IFS=$ac_save_IFS
12858  shift
12859  ac_file=$1
12860  shift
12861
12862  case $ac_mode in
12863  :L) ac_source=$1;;
12864  :[FH])
12865    ac_file_inputs=
12866    for ac_f
12867    do
12868      case $ac_f in
12869      -) ac_f="$ac_tmp/stdin";;
12870      *) # Look for the file first in the build tree, then in the source tree
12871	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12872	 # because $ac_f cannot contain ':'.
12873	 test -f "$ac_f" ||
12874	   case $ac_f in
12875	   [\\/$]*) false;;
12876	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12877	   esac ||
12878	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12879      esac
12880      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12881      as_fn_append ac_file_inputs " '$ac_f'"
12882    done
12883
12884    # Let's still pretend it is 'configure' which instantiates (i.e., don't
12885    # use $as_me), people would be surprised to read:
12886    #    /* config.h.  Generated by config.status.  */
12887    configure_input='Generated from '`
12888	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12889	`' by configure.'
12890    if test x"$ac_file" != x-; then
12891      configure_input="$ac_file.  $configure_input"
12892      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12893printf "%s\n" "$as_me: creating $ac_file" >&6;}
12894    fi
12895    # Neutralize special characters interpreted by sed in replacement strings.
12896    case $configure_input in #(
12897    *\&* | *\|* | *\\* )
12898       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12899       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12900    *) ac_sed_conf_input=$configure_input;;
12901    esac
12902
12903    case $ac_tag in
12904    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12905      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12906    esac
12907    ;;
12908  esac
12909
12910  ac_dir=`$as_dirname -- "$ac_file" ||
12911$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12912	 X"$ac_file" : 'X\(//\)[^/]' \| \
12913	 X"$ac_file" : 'X\(//\)$' \| \
12914	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12915printf "%s\n" X"$ac_file" |
12916    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12917	    s//\1/
12918	    q
12919	  }
12920	  /^X\(\/\/\)[^/].*/{
12921	    s//\1/
12922	    q
12923	  }
12924	  /^X\(\/\/\)$/{
12925	    s//\1/
12926	    q
12927	  }
12928	  /^X\(\/\).*/{
12929	    s//\1/
12930	    q
12931	  }
12932	  s/.*/./; q'`
12933  as_dir="$ac_dir"; as_fn_mkdir_p
12934  ac_builddir=.
12935
12936case "$ac_dir" in
12937.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12938*)
12939  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12940  # A ".." for each directory in $ac_dir_suffix.
12941  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12942  case $ac_top_builddir_sub in
12943  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12944  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12945  esac ;;
12946esac
12947ac_abs_top_builddir=$ac_pwd
12948ac_abs_builddir=$ac_pwd$ac_dir_suffix
12949# for backward compatibility:
12950ac_top_builddir=$ac_top_build_prefix
12951
12952case $srcdir in
12953  .)  # We are building in place.
12954    ac_srcdir=.
12955    ac_top_srcdir=$ac_top_builddir_sub
12956    ac_abs_top_srcdir=$ac_pwd ;;
12957  [\\/]* | ?:[\\/]* )  # Absolute name.
12958    ac_srcdir=$srcdir$ac_dir_suffix;
12959    ac_top_srcdir=$srcdir
12960    ac_abs_top_srcdir=$srcdir ;;
12961  *) # Relative name.
12962    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12963    ac_top_srcdir=$ac_top_build_prefix$srcdir
12964    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12965esac
12966ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12967
12968
12969  case $ac_mode in
12970  :F)
12971  #
12972  # CONFIG_FILE
12973  #
12974
12975  case $INSTALL in
12976  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12977  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12978  esac
12979  ac_MKDIR_P=$MKDIR_P
12980  case $MKDIR_P in
12981  [\\/$]* | ?:[\\/]* ) ;;
12982  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12983  esac
12984_ACEOF
12985
12986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12987# If the template does not know about datarootdir, expand it.
12988# FIXME: This hack should be removed a few years after 2.60.
12989ac_datarootdir_hack=; ac_datarootdir_seen=
12990ac_sed_dataroot='
12991/datarootdir/ {
12992  p
12993  q
12994}
12995/@datadir@/p
12996/@docdir@/p
12997/@infodir@/p
12998/@localedir@/p
12999/@mandir@/p'
13000case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13001*datarootdir*) ac_datarootdir_seen=yes;;
13002*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13003  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13004printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13005_ACEOF
13006cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13007  ac_datarootdir_hack='
13008  s&@datadir@&$datadir&g
13009  s&@docdir@&$docdir&g
13010  s&@infodir@&$infodir&g
13011  s&@localedir@&$localedir&g
13012  s&@mandir@&$mandir&g
13013  s&\\\${datarootdir}&$datarootdir&g' ;;
13014esac
13015_ACEOF
13016
13017# Neutralize VPATH when '$srcdir' = '.'.
13018# Shell code in configure.ac might set extrasub.
13019# FIXME: do we really want to maintain this feature?
13020cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13021ac_sed_extra="$ac_vpsub
13022$extrasub
13023_ACEOF
13024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13025:t
13026/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13027s|@configure_input@|$ac_sed_conf_input|;t t
13028s&@top_builddir@&$ac_top_builddir_sub&;t t
13029s&@top_build_prefix@&$ac_top_build_prefix&;t t
13030s&@srcdir@&$ac_srcdir&;t t
13031s&@abs_srcdir@&$ac_abs_srcdir&;t t
13032s&@top_srcdir@&$ac_top_srcdir&;t t
13033s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13034s&@builddir@&$ac_builddir&;t t
13035s&@abs_builddir@&$ac_abs_builddir&;t t
13036s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13037s&@INSTALL@&$ac_INSTALL&;t t
13038s&@MKDIR_P@&$ac_MKDIR_P&;t t
13039$ac_datarootdir_hack
13040"
13041eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13042  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13043
13044test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13045  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13046  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13047      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13049which seems to be undefined.  Please make sure it is defined" >&5
13050printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13051which seems to be undefined.  Please make sure it is defined" >&2;}
13052
13053  rm -f "$ac_tmp/stdin"
13054  case $ac_file in
13055  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13056  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13057  esac \
13058  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13059 ;;
13060  :H)
13061  #
13062  # CONFIG_HEADER
13063  #
13064  if test x"$ac_file" != x-; then
13065    {
13066      printf "%s\n" "/* $configure_input  */" >&1 \
13067      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13068    } >"$ac_tmp/config.h" \
13069      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13070    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13071      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13072printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13073    else
13074      rm -f "$ac_file"
13075      mv "$ac_tmp/config.h" "$ac_file" \
13076	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13077    fi
13078  else
13079    printf "%s\n" "/* $configure_input  */" >&1 \
13080      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13081      || as_fn_error $? "could not create -" "$LINENO" 5
13082  fi
13083# Compute "$ac_file"'s index in $config_headers.
13084_am_arg="$ac_file"
13085_am_stamp_count=1
13086for _am_header in $config_headers :; do
13087  case $_am_header in
13088    $_am_arg | $_am_arg:* )
13089      break ;;
13090    * )
13091      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13092  esac
13093done
13094echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13095$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13096	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13097	 X"$_am_arg" : 'X\(//\)$' \| \
13098	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13099printf "%s\n" X"$_am_arg" |
13100    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13101	    s//\1/
13102	    q
13103	  }
13104	  /^X\(\/\/\)[^/].*/{
13105	    s//\1/
13106	    q
13107	  }
13108	  /^X\(\/\/\)$/{
13109	    s//\1/
13110	    q
13111	  }
13112	  /^X\(\/\).*/{
13113	    s//\1/
13114	    q
13115	  }
13116	  s/.*/./; q'`/stamp-h$_am_stamp_count
13117 ;;
13118
13119  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13120printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13121 ;;
13122  esac
13123
13124
13125  case $ac_file$ac_mode in
13126    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13127  # Older Autoconf quotes --file arguments for eval, but not when files
13128  # are listed without --file.  Let's play safe and only enable the eval
13129  # if we detect the quoting.
13130  # TODO: see whether this extra hack can be removed once we start
13131  # requiring Autoconf 2.70 or later.
13132  case $CONFIG_FILES in #(
13133  *\'*) :
13134    eval set x "$CONFIG_FILES" ;; #(
13135  *) :
13136    set x $CONFIG_FILES ;; #(
13137  *) :
13138     ;;
13139esac
13140  shift
13141  # Used to flag and report bootstrapping failures.
13142  am_rc=0
13143  for am_mf
13144  do
13145    # Strip MF so we end up with the name of the file.
13146    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13147    # Check whether this is an Automake generated Makefile which includes
13148    # dependency-tracking related rules and includes.
13149    # Grep'ing the whole file directly is not great: AIX grep has a line
13150    # limit of 2048, but all sed's we know have understand at least 4000.
13151    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13152      || continue
13153    am_dirpart=`$as_dirname -- "$am_mf" ||
13154$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13155	 X"$am_mf" : 'X\(//\)[^/]' \| \
13156	 X"$am_mf" : 'X\(//\)$' \| \
13157	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13158printf "%s\n" X"$am_mf" |
13159    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13160	    s//\1/
13161	    q
13162	  }
13163	  /^X\(\/\/\)[^/].*/{
13164	    s//\1/
13165	    q
13166	  }
13167	  /^X\(\/\/\)$/{
13168	    s//\1/
13169	    q
13170	  }
13171	  /^X\(\/\).*/{
13172	    s//\1/
13173	    q
13174	  }
13175	  s/.*/./; q'`
13176    am_filepart=`$as_basename -- "$am_mf" ||
13177$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13178	 X"$am_mf" : 'X\(//\)$' \| \
13179	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13180printf "%s\n" X/"$am_mf" |
13181    sed '/^.*\/\([^/][^/]*\)\/*$/{
13182	    s//\1/
13183	    q
13184	  }
13185	  /^X\/\(\/\/\)$/{
13186	    s//\1/
13187	    q
13188	  }
13189	  /^X\/\(\/\).*/{
13190	    s//\1/
13191	    q
13192	  }
13193	  s/.*/./; q'`
13194    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13195      && sed -e '/# am--include-marker/d' "$am_filepart" \
13196        | $MAKE -f - am--depfiles" >&5
13197   (cd "$am_dirpart" \
13198      && sed -e '/# am--include-marker/d' "$am_filepart" \
13199        | $MAKE -f - am--depfiles) >&5 2>&5
13200   ac_status=$?
13201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202   (exit $ac_status); } || am_rc=$?
13203  done
13204  if test $am_rc -ne 0; then
13205    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13206printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13207as_fn_error $? "Something went wrong bootstrapping makefile fragments
13208    for automatic dependency tracking.  If GNU make was not used, consider
13209    re-running the configure script with MAKE=\"gmake\" (or whatever is
13210    necessary).  You can also try re-running configure with the
13211    '--disable-dependency-tracking' option to at least be able to build
13212    the package (albeit without support for automatic dependency tracking).
13213See 'config.log' for more details" "$LINENO" 5; }
13214  fi
13215  { am_dirpart=; unset am_dirpart;}
13216  { am_filepart=; unset am_filepart;}
13217  { am_mf=; unset am_mf;}
13218  { am_rc=; unset am_rc;}
13219  rm -f conftest-deps.mk
13220}
13221 ;;
13222
13223  esac
13224done # for ac_tag
13225
13226
13227as_fn_exit 0
13228_ACEOF
13229ac_clean_files=$ac_clean_files_save
13230
13231test $ac_write_fail = 0 ||
13232  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13233
13234
13235# configure is writing to config.log, and then calls config.status.
13236# config.status does its own redirection, appending to config.log.
13237# Unfortunately, on DOS this fails, as config.log is still kept open
13238# by configure, so config.status won't be able to write to it; its
13239# output is simply discarded.  So we exec the FD to /dev/null,
13240# effectively closing config.log, so it can be properly (re)opened and
13241# appended to by config.status.  When coming back to configure, we
13242# need to make the FD available again.
13243if test "$no_create" != yes; then
13244  ac_cs_success=:
13245  ac_config_status_args=
13246  test "$silent" = yes &&
13247    ac_config_status_args="$ac_config_status_args --quiet"
13248  exec 5>/dev/null
13249  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13250  exec 5>>config.log
13251  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13252  # would make configure fail if this is the last instruction.
13253  $ac_cs_success || as_fn_exit 1
13254fi
13255if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13257printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13258fi
13259
13260
13261