Set license using %license
[platform/upstream/glproto.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for GLProto 1.4.16.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
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
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190   IFS=$as_save_IFS
191   test -z "$as_dir" && as_dir=.
192   as_found=:
193   case $as_dir in #(
194          /*)
195            for as_base in sh bash ksh sh5; do
196              # Try only shells that exist, to save several forks.
197              as_shell=$as_dir/$as_base
198              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   CONFIG_SHELL=$as_shell as_have_required=yes
201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202   break 2
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211   CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216       if test "x$CONFIG_SHELL" != x; then :
217   # We cannot yet assume a decent shell, so we have to provide a
218         # neutralization value for shells without unset; and this also
219         # works around shells that cannot unset nonexistent variables.
220         # Preserve -v and -x to the replacement shell.
221         BASH_ENV=/dev/null
222         ENV=/dev/null
223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224         export CONFIG_SHELL
225         case $- in # ((((
226           *v*x* | *x*v* ) as_opts=-vx ;;
227           *v* ) as_opts=-v ;;
228           *x* ) as_opts=-x ;;
229           * ) as_opts= ;;
230         esac
231         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247   fi
248   exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266   { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275   return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283   set +e
284   as_fn_set_status $1
285   exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294   case $as_dir in #(
295   -*) as_dir=./$as_dir;;
296   esac
297   test -d "$as_dir" || eval $as_mkdir_p || {
298     as_dirs=
299     while :; do
300       case $as_dir in #(
301       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302       *) as_qdir=$as_dir;;
303       esac
304       as_dirs="'$as_qdir' $as_dirs"
305       as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307          X"$as_dir" : 'X\(//\)[^/]' \| \
308          X"$as_dir" : 'X\(//\)$' \| \
309          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312             s//\1/
313             q
314           }
315           /^X\(\/\/\)[^/].*/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)$/{
320             s//\1/
321             q
322           }
323           /^X\(\/\).*/{
324             s//\1/
325             q
326           }
327           s/.*/./; q'`
328       test -d "$as_dir" && break
329     done
330     test -z "$as_dirs" || eval "mkdir $as_dirs"
331   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342   eval 'as_fn_append ()
343   {
344     eval $1+=\$2
345   }'
346 else
347   as_fn_append ()
348   {
349     eval $1=\$$1\$2
350   }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359   eval 'as_fn_arith ()
360   {
361     as_val=$(( $* ))
362   }'
363 else
364   as_fn_arith ()
365   {
366     as_val=`expr "$@" || test $? -eq 1`
367   }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378   as_status=$1; test $as_status -eq 0 && as_status=1
379   if test "$4"; then
380     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382   fi
383   $as_echo "$as_me: error: $2" >&2
384   as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388    test "X`expr 00001 : '.*\(...\)'`" = X001; then
389   as_expr=expr
390 else
391   as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395   as_basename=basename
396 else
397   as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401   as_dirname=dirname
402 else
403   as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408          X"$0" : 'X\(//\)$' \| \
409          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411     sed '/^.*\/\([^/][^/]*\)\/*$/{
412             s//\1/
413             q
414           }
415           /^X\/\(\/\/\)$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\).*/{
420             s//\1/
421             q
422           }
423           s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433   as_lineno_1=$LINENO as_lineno_1a=$LINENO
434   as_lineno_2=$LINENO as_lineno_2a=$LINENO
435   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456   # Don't try to exec as it changes $[0], causing all sort of problems
457   # (the dirname of $[0] is not the place where we might find the
458   # original and so on.  Autoconf is especially sensitive to this).
459   . "./$as_me.lineno"
460   # Exit status is that of the last command.
461   exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467   case `echo 'xy\c'` in
468   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
469   xy)  ECHO_C='\c';;
470   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471        ECHO_T=' ';;
472   esac;;
473 *)
474   ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479   rm -f conf$$.dir/conf$$.file
480 else
481   rm -f conf$$.dir
482   mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485   if ln -s conf$$.file conf$$ 2>/dev/null; then
486     as_ln_s='ln -s'
487     # ... but there are two gotchas:
488     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490     # In both cases, we have to default to `cp -p'.
491     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492       as_ln_s='cp -p'
493   elif ln conf$$.file conf$$ 2>/dev/null; then
494     as_ln_s=ln
495   else
496     as_ln_s='cp -p'
497   fi
498 else
499   as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505   as_mkdir_p='mkdir -p "$as_dir"'
506 else
507   test -d ./-p && rmdir ./-p
508   as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512   as_test_x='test -x'
513 else
514   if ls -dL / >/dev/null 2>&1; then
515     as_ls_L_option=L
516   else
517     as_ls_L_option=
518   fi
519   as_test_x='
520     eval sh -c '\''
521       if test -d "$1"; then
522         test -d "$1/.";
523       else
524         case $1 in #(
525         -*)set "./$1";;
526         esac;
527         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528         ???[sx]*):;;*)false;;esac;fi
529     '\'' sh
530   '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541 test -n "$DJDIR" || exec 7<&0 </dev/null
542 exec 6>&1
543
544 # Name of the host.
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549 #
550 # Initializations.
551 #
552 ac_default_prefix=/usr/local
553 ac_clean_files=
554 ac_config_libobj_dir=.
555 LIBOBJS=
556 cross_compiling=no
557 subdirs=
558 MFLAGS=
559 MAKEFLAGS=
560
561 # Identity of this package.
562 PACKAGE_NAME='GLProto'
563 PACKAGE_TARNAME='glproto'
564 PACKAGE_VERSION='1.4.16'
565 PACKAGE_STRING='GLProto 1.4.16'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 LIBOBJS
609 AM_BACKSLASH
610 AM_DEFAULT_VERBOSITY
611 AM_DEFAULT_V
612 AM_V
613 MAN_SUBSTS
614 XORG_MAN_PAGE
615 ADMIN_MAN_DIR
616 DRIVER_MAN_DIR
617 MISC_MAN_DIR
618 FILE_MAN_DIR
619 LIB_MAN_DIR
620 APP_MAN_DIR
621 ADMIN_MAN_SUFFIX
622 DRIVER_MAN_SUFFIX
623 MISC_MAN_SUFFIX
624 FILE_MAN_SUFFIX
625 LIB_MAN_SUFFIX
626 APP_MAN_SUFFIX
627 SED
628 host_os
629 host_vendor
630 host_cpu
631 host
632 build_os
633 build_vendor
634 build_cpu
635 build
636 INSTALL_CMD
637 PKG_CONFIG_LIBDIR
638 PKG_CONFIG_PATH
639 PKG_CONFIG
640 CHANGELOG_CMD
641 STRICT_CFLAGS
642 CWARNFLAGS
643 BASE_CFLAGS
644 EGREP
645 GREP
646 CPP
647 am__fastdepCC_FALSE
648 am__fastdepCC_TRUE
649 CCDEPMODE
650 am__nodep
651 AMDEPBACKSLASH
652 AMDEP_FALSE
653 AMDEP_TRUE
654 am__quote
655 am__include
656 DEPDIR
657 OBJEXT
658 EXEEXT
659 ac_ct_CC
660 CPPFLAGS
661 LDFLAGS
662 CFLAGS
663 CC
664 MAINT
665 MAINTAINER_MODE_FALSE
666 MAINTAINER_MODE_TRUE
667 am__untar
668 am__tar
669 AMTAR
670 am__leading_dot
671 SET_MAKE
672 AWK
673 mkdir_p
674 MKDIR_P
675 INSTALL_STRIP_PROGRAM
676 STRIP
677 install_sh
678 MAKEINFO
679 AUTOHEADER
680 AUTOMAKE
681 AUTOCONF
682 ACLOCAL
683 VERSION
684 PACKAGE
685 CYGPATH_W
686 am__isrc
687 INSTALL_DATA
688 INSTALL_SCRIPT
689 INSTALL_PROGRAM
690 target_alias
691 host_alias
692 build_alias
693 LIBS
694 ECHO_T
695 ECHO_N
696 ECHO_C
697 DEFS
698 mandir
699 localedir
700 libdir
701 psdir
702 pdfdir
703 dvidir
704 htmldir
705 infodir
706 docdir
707 oldincludedir
708 includedir
709 localstatedir
710 sharedstatedir
711 sysconfdir
712 datadir
713 datarootdir
714 libexecdir
715 sbindir
716 bindir
717 program_transform_name
718 prefix
719 exec_prefix
720 PACKAGE_URL
721 PACKAGE_BUGREPORT
722 PACKAGE_STRING
723 PACKAGE_VERSION
724 PACKAGE_TARNAME
725 PACKAGE_NAME
726 PATH_SEPARATOR
727 SHELL'
728 ac_subst_files=''
729 ac_user_opts='
730 enable_option_checking
731 enable_maintainer_mode
732 enable_dependency_tracking
733 enable_selective_werror
734 enable_strict_compilation
735 enable_silent_rules
736 '
737       ac_precious_vars='build_alias
738 host_alias
739 target_alias
740 CC
741 CFLAGS
742 LDFLAGS
743 LIBS
744 CPPFLAGS
745 CPP
746 PKG_CONFIG
747 PKG_CONFIG_PATH
748 PKG_CONFIG_LIBDIR'
749
750
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 ac_unrecognized_opts=
755 ac_unrecognized_sep=
756 # The variables have the same names as the options, with
757 # dashes changed to underlines.
758 cache_file=/dev/null
759 exec_prefix=NONE
760 no_create=
761 no_recursion=
762 prefix=NONE
763 program_prefix=NONE
764 program_suffix=NONE
765 program_transform_name=s,x,x,
766 silent=
767 site=
768 srcdir=
769 verbose=
770 x_includes=NONE
771 x_libraries=NONE
772
773 # Installation directory options.
774 # These are left unexpanded so users can "make install exec_prefix=/foo"
775 # and all the variables that are supposed to be based on exec_prefix
776 # by default will actually change.
777 # Use braces instead of parens because sh, perl, etc. also accept them.
778 # (The list follows the same order as the GNU Coding Standards.)
779 bindir='${exec_prefix}/bin'
780 sbindir='${exec_prefix}/sbin'
781 libexecdir='${exec_prefix}/libexec'
782 datarootdir='${prefix}/share'
783 datadir='${datarootdir}'
784 sysconfdir='${prefix}/etc'
785 sharedstatedir='${prefix}/com'
786 localstatedir='${prefix}/var'
787 includedir='${prefix}/include'
788 oldincludedir='/usr/include'
789 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
790 infodir='${datarootdir}/info'
791 htmldir='${docdir}'
792 dvidir='${docdir}'
793 pdfdir='${docdir}'
794 psdir='${docdir}'
795 libdir='${exec_prefix}/lib'
796 localedir='${datarootdir}/locale'
797 mandir='${datarootdir}/man'
798
799 ac_prev=
800 ac_dashdash=
801 for ac_option
802 do
803   # If the previous option needs an argument, assign it.
804   if test -n "$ac_prev"; then
805     eval $ac_prev=\$ac_option
806     ac_prev=
807     continue
808   fi
809
810   case $ac_option in
811   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
812   *=)   ac_optarg= ;;
813   *)    ac_optarg=yes ;;
814   esac
815
816   # Accept the important Cygnus configure options, so we can diagnose typos.
817
818   case $ac_dashdash$ac_option in
819   --)
820     ac_dashdash=yes ;;
821
822   -bindir | --bindir | --bindi | --bind | --bin | --bi)
823     ac_prev=bindir ;;
824   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
825     bindir=$ac_optarg ;;
826
827   -build | --build | --buil | --bui | --bu)
828     ac_prev=build_alias ;;
829   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
830     build_alias=$ac_optarg ;;
831
832   -cache-file | --cache-file | --cache-fil | --cache-fi \
833   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
834     ac_prev=cache_file ;;
835   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
836   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
837     cache_file=$ac_optarg ;;
838
839   --config-cache | -C)
840     cache_file=config.cache ;;
841
842   -datadir | --datadir | --datadi | --datad)
843     ac_prev=datadir ;;
844   -datadir=* | --datadir=* | --datadi=* | --datad=*)
845     datadir=$ac_optarg ;;
846
847   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
848   | --dataroo | --dataro | --datar)
849     ac_prev=datarootdir ;;
850   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
851   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
852     datarootdir=$ac_optarg ;;
853
854   -disable-* | --disable-*)
855     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
856     # Reject names that are not valid shell variable names.
857     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
858       as_fn_error $? "invalid feature name: $ac_useropt"
859     ac_useropt_orig=$ac_useropt
860     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861     case $ac_user_opts in
862       *"
863 "enable_$ac_useropt"
864 "*) ;;
865       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
866          ac_unrecognized_sep=', ';;
867     esac
868     eval enable_$ac_useropt=no ;;
869
870   -docdir | --docdir | --docdi | --doc | --do)
871     ac_prev=docdir ;;
872   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
873     docdir=$ac_optarg ;;
874
875   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
876     ac_prev=dvidir ;;
877   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
878     dvidir=$ac_optarg ;;
879
880   -enable-* | --enable-*)
881     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
882     # Reject names that are not valid shell variable names.
883     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884       as_fn_error $? "invalid feature name: $ac_useropt"
885     ac_useropt_orig=$ac_useropt
886     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887     case $ac_user_opts in
888       *"
889 "enable_$ac_useropt"
890 "*) ;;
891       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
892          ac_unrecognized_sep=', ';;
893     esac
894     eval enable_$ac_useropt=\$ac_optarg ;;
895
896   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
897   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
898   | --exec | --exe | --ex)
899     ac_prev=exec_prefix ;;
900   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
901   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
902   | --exec=* | --exe=* | --ex=*)
903     exec_prefix=$ac_optarg ;;
904
905   -gas | --gas | --ga | --g)
906     # Obsolete; use --with-gas.
907     with_gas=yes ;;
908
909   -help | --help | --hel | --he | -h)
910     ac_init_help=long ;;
911   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
912     ac_init_help=recursive ;;
913   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
914     ac_init_help=short ;;
915
916   -host | --host | --hos | --ho)
917     ac_prev=host_alias ;;
918   -host=* | --host=* | --hos=* | --ho=*)
919     host_alias=$ac_optarg ;;
920
921   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
922     ac_prev=htmldir ;;
923   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
924   | --ht=*)
925     htmldir=$ac_optarg ;;
926
927   -includedir | --includedir | --includedi | --included | --include \
928   | --includ | --inclu | --incl | --inc)
929     ac_prev=includedir ;;
930   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
931   | --includ=* | --inclu=* | --incl=* | --inc=*)
932     includedir=$ac_optarg ;;
933
934   -infodir | --infodir | --infodi | --infod | --info | --inf)
935     ac_prev=infodir ;;
936   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
937     infodir=$ac_optarg ;;
938
939   -libdir | --libdir | --libdi | --libd)
940     ac_prev=libdir ;;
941   -libdir=* | --libdir=* | --libdi=* | --libd=*)
942     libdir=$ac_optarg ;;
943
944   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
945   | --libexe | --libex | --libe)
946     ac_prev=libexecdir ;;
947   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
948   | --libexe=* | --libex=* | --libe=*)
949     libexecdir=$ac_optarg ;;
950
951   -localedir | --localedir | --localedi | --localed | --locale)
952     ac_prev=localedir ;;
953   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
954     localedir=$ac_optarg ;;
955
956   -localstatedir | --localstatedir | --localstatedi | --localstated \
957   | --localstate | --localstat | --localsta | --localst | --locals)
958     ac_prev=localstatedir ;;
959   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
960   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
961     localstatedir=$ac_optarg ;;
962
963   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
964     ac_prev=mandir ;;
965   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
966     mandir=$ac_optarg ;;
967
968   -nfp | --nfp | --nf)
969     # Obsolete; use --without-fp.
970     with_fp=no ;;
971
972   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
973   | --no-cr | --no-c | -n)
974     no_create=yes ;;
975
976   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
977   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
978     no_recursion=yes ;;
979
980   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
981   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
982   | --oldin | --oldi | --old | --ol | --o)
983     ac_prev=oldincludedir ;;
984   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
985   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
986   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
987     oldincludedir=$ac_optarg ;;
988
989   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
990     ac_prev=prefix ;;
991   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
992     prefix=$ac_optarg ;;
993
994   -program-prefix | --program-prefix | --program-prefi | --program-pref \
995   | --program-pre | --program-pr | --program-p)
996     ac_prev=program_prefix ;;
997   -program-prefix=* | --program-prefix=* | --program-prefi=* \
998   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
999     program_prefix=$ac_optarg ;;
1000
1001   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1002   | --program-suf | --program-su | --program-s)
1003     ac_prev=program_suffix ;;
1004   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1005   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1006     program_suffix=$ac_optarg ;;
1007
1008   -program-transform-name | --program-transform-name \
1009   | --program-transform-nam | --program-transform-na \
1010   | --program-transform-n | --program-transform- \
1011   | --program-transform | --program-transfor \
1012   | --program-transfo | --program-transf \
1013   | --program-trans | --program-tran \
1014   | --progr-tra | --program-tr | --program-t)
1015     ac_prev=program_transform_name ;;
1016   -program-transform-name=* | --program-transform-name=* \
1017   | --program-transform-nam=* | --program-transform-na=* \
1018   | --program-transform-n=* | --program-transform-=* \
1019   | --program-transform=* | --program-transfor=* \
1020   | --program-transfo=* | --program-transf=* \
1021   | --program-trans=* | --program-tran=* \
1022   | --progr-tra=* | --program-tr=* | --program-t=*)
1023     program_transform_name=$ac_optarg ;;
1024
1025   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1026     ac_prev=pdfdir ;;
1027   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1028     pdfdir=$ac_optarg ;;
1029
1030   -psdir | --psdir | --psdi | --psd | --ps)
1031     ac_prev=psdir ;;
1032   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1033     psdir=$ac_optarg ;;
1034
1035   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036   | -silent | --silent | --silen | --sile | --sil)
1037     silent=yes ;;
1038
1039   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1040     ac_prev=sbindir ;;
1041   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1042   | --sbi=* | --sb=*)
1043     sbindir=$ac_optarg ;;
1044
1045   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1046   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1047   | --sharedst | --shareds | --shared | --share | --shar \
1048   | --sha | --sh)
1049     ac_prev=sharedstatedir ;;
1050   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1051   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1052   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1053   | --sha=* | --sh=*)
1054     sharedstatedir=$ac_optarg ;;
1055
1056   -site | --site | --sit)
1057     ac_prev=site ;;
1058   -site=* | --site=* | --sit=*)
1059     site=$ac_optarg ;;
1060
1061   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1062     ac_prev=srcdir ;;
1063   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1064     srcdir=$ac_optarg ;;
1065
1066   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1067   | --syscon | --sysco | --sysc | --sys | --sy)
1068     ac_prev=sysconfdir ;;
1069   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1070   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1071     sysconfdir=$ac_optarg ;;
1072
1073   -target | --target | --targe | --targ | --tar | --ta | --t)
1074     ac_prev=target_alias ;;
1075   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1076     target_alias=$ac_optarg ;;
1077
1078   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1079     verbose=yes ;;
1080
1081   -version | --version | --versio | --versi | --vers | -V)
1082     ac_init_version=: ;;
1083
1084   -with-* | --with-*)
1085     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1086     # Reject names that are not valid shell variable names.
1087     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088       as_fn_error $? "invalid package name: $ac_useropt"
1089     ac_useropt_orig=$ac_useropt
1090     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091     case $ac_user_opts in
1092       *"
1093 "with_$ac_useropt"
1094 "*) ;;
1095       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1096          ac_unrecognized_sep=', ';;
1097     esac
1098     eval with_$ac_useropt=\$ac_optarg ;;
1099
1100   -without-* | --without-*)
1101     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1102     # Reject names that are not valid shell variable names.
1103     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104       as_fn_error $? "invalid package name: $ac_useropt"
1105     ac_useropt_orig=$ac_useropt
1106     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107     case $ac_user_opts in
1108       *"
1109 "with_$ac_useropt"
1110 "*) ;;
1111       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1112          ac_unrecognized_sep=', ';;
1113     esac
1114     eval with_$ac_useropt=no ;;
1115
1116   --x)
1117     # Obsolete; use --with-x.
1118     with_x=yes ;;
1119
1120   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1121   | --x-incl | --x-inc | --x-in | --x-i)
1122     ac_prev=x_includes ;;
1123   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1124   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1125     x_includes=$ac_optarg ;;
1126
1127   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1128   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1129     ac_prev=x_libraries ;;
1130   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1131   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1132     x_libraries=$ac_optarg ;;
1133
1134   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1135 Try \`$0 --help' for more information"
1136     ;;
1137
1138   *=*)
1139     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140     # Reject names that are not valid shell variable names.
1141     case $ac_envvar in #(
1142       '' | [0-9]* | *[!_$as_cr_alnum]* )
1143       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1144     esac
1145     eval $ac_envvar=\$ac_optarg
1146     export $ac_envvar ;;
1147
1148   *)
1149     # FIXME: should be removed in autoconf 3.0.
1150     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1151     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1152       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1153     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1154     ;;
1155
1156   esac
1157 done
1158
1159 if test -n "$ac_prev"; then
1160   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1161   as_fn_error $? "missing argument to $ac_option"
1162 fi
1163
1164 if test -n "$ac_unrecognized_opts"; then
1165   case $enable_option_checking in
1166     no) ;;
1167     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1168     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1169   esac
1170 fi
1171
1172 # Check all directory arguments for consistency.
1173 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1174                 datadir sysconfdir sharedstatedir localstatedir includedir \
1175                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1176                 libdir localedir mandir
1177 do
1178   eval ac_val=\$$ac_var
1179   # Remove trailing slashes.
1180   case $ac_val in
1181     */ )
1182       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1183       eval $ac_var=\$ac_val;;
1184   esac
1185   # Be sure to have absolute directory names.
1186   case $ac_val in
1187     [\\/$]* | ?:[\\/]* )  continue;;
1188     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189   esac
1190   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1191 done
1192
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1196 build=$build_alias
1197 host=$host_alias
1198 target=$target_alias
1199
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202   if test "x$build_alias" = x; then
1203     cross_compiling=maybe
1204     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1205     If a cross compiler is detected then cross compile mode will be used" >&2
1206   elif test "x$build_alias" != "x$host_alias"; then
1207     cross_compiling=yes
1208   fi
1209 fi
1210
1211 ac_tool_prefix=
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1213
1214 test "$silent" = yes && exec 6>/dev/null
1215
1216
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220   as_fn_error $? "working directory cannot be determined"
1221 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1222   as_fn_error $? "pwd does not report name of working directory"
1223
1224
1225 # Find the source files, if location was not specified.
1226 if test -z "$srcdir"; then
1227   ac_srcdir_defaulted=yes
1228   # Try the directory containing this script, then the parent directory.
1229   ac_confdir=`$as_dirname -- "$as_myself" ||
1230 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1231          X"$as_myself" : 'X\(//\)[^/]' \| \
1232          X"$as_myself" : 'X\(//\)$' \| \
1233          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1234 $as_echo X"$as_myself" |
1235     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1236             s//\1/
1237             q
1238           }
1239           /^X\(\/\/\)[^/].*/{
1240             s//\1/
1241             q
1242           }
1243           /^X\(\/\/\)$/{
1244             s//\1/
1245             q
1246           }
1247           /^X\(\/\).*/{
1248             s//\1/
1249             q
1250           }
1251           s/.*/./; q'`
1252   srcdir=$ac_confdir
1253   if test ! -r "$srcdir/$ac_unique_file"; then
1254     srcdir=..
1255   fi
1256 else
1257   ac_srcdir_defaulted=no
1258 fi
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1260   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1261   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1262 fi
1263 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1264 ac_abs_confdir=`(
1265         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1266         pwd)`
1267 # When building in place, set srcdir=.
1268 if test "$ac_abs_confdir" = "$ac_pwd"; then
1269   srcdir=.
1270 fi
1271 # Remove unnecessary trailing slashes from srcdir.
1272 # Double slashes in file names in object file debugging info
1273 # mess up M-x gdb in Emacs.
1274 case $srcdir in
1275 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1276 esac
1277 for ac_var in $ac_precious_vars; do
1278   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1279   eval ac_env_${ac_var}_value=\$${ac_var}
1280   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1281   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1282 done
1283
1284 #
1285 # Report the --help message.
1286 #
1287 if test "$ac_init_help" = "long"; then
1288   # Omit some internal or obsolete options to make the list less imposing.
1289   # This message is too long to be a string in the A/UX 3.1 sh.
1290   cat <<_ACEOF
1291 \`configure' configures GLProto 1.4.16 to adapt to many kinds of systems.
1292
1293 Usage: $0 [OPTION]... [VAR=VALUE]...
1294
1295 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296 VAR=VALUE.  See below for descriptions of some of the useful variables.
1297
1298 Defaults for the options are specified in brackets.
1299
1300 Configuration:
1301   -h, --help              display this help and exit
1302       --help=short        display options specific to this package
1303       --help=recursive    display the short help of all the included packages
1304   -V, --version           display version information and exit
1305   -q, --quiet, --silent   do not print \`checking ...' messages
1306       --cache-file=FILE   cache test results in FILE [disabled]
1307   -C, --config-cache      alias for \`--cache-file=config.cache'
1308   -n, --no-create         do not create output files
1309       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1310
1311 Installation directories:
1312   --prefix=PREFIX         install architecture-independent files in PREFIX
1313                           [$ac_default_prefix]
1314   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1315                           [PREFIX]
1316
1317 By default, \`make install' will install all the files in
1318 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1319 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1320 for instance \`--prefix=\$HOME'.
1321
1322 For better control, use the options below.
1323
1324 Fine tuning of the installation directories:
1325   --bindir=DIR            user executables [EPREFIX/bin]
1326   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1327   --libexecdir=DIR        program executables [EPREFIX/libexec]
1328   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1329   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1330   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1331   --libdir=DIR            object code libraries [EPREFIX/lib]
1332   --includedir=DIR        C header files [PREFIX/include]
1333   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1334   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1335   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1336   --infodir=DIR           info documentation [DATAROOTDIR/info]
1337   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1338   --mandir=DIR            man documentation [DATAROOTDIR/man]
1339   --docdir=DIR            documentation root [DATAROOTDIR/doc/glproto]
1340   --htmldir=DIR           html documentation [DOCDIR]
1341   --dvidir=DIR            dvi documentation [DOCDIR]
1342   --pdfdir=DIR            pdf documentation [DOCDIR]
1343   --psdir=DIR             ps documentation [DOCDIR]
1344 _ACEOF
1345
1346   cat <<\_ACEOF
1347
1348 Program names:
1349   --program-prefix=PREFIX            prepend PREFIX to installed program names
1350   --program-suffix=SUFFIX            append SUFFIX to installed program names
1351   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1352
1353 System types:
1354   --build=BUILD     configure for building on BUILD [guessed]
1355   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1356 _ACEOF
1357 fi
1358
1359 if test -n "$ac_init_help"; then
1360   case $ac_init_help in
1361      short | recursive ) echo "Configuration of GLProto 1.4.16:";;
1362    esac
1363   cat <<\_ACEOF
1364
1365 Optional Features:
1366   --disable-option-checking  ignore unrecognized --enable/--with options
1367   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1368   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1369   --enable-maintainer-mode  enable make rules and dependencies not useful
1370                           (and sometimes confusing) to the casual installer
1371   --disable-dependency-tracking  speeds up one-time build
1372   --enable-dependency-tracking   do not reject slow dependency extractors
1373   --disable-selective-werror
1374                           Turn off selective compiler errors. (default:
1375                           enabled)
1376   --enable-strict-compilation
1377                           Enable all warnings from compiler and make them
1378                           errors (default: disabled)
1379   --enable-silent-rules          less verbose build output (undo: `make V=1')
1380   --disable-silent-rules         verbose build output (undo: `make V=0')
1381
1382 Some influential environment variables:
1383   CC          C compiler command
1384   CFLAGS      C compiler flags
1385   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1386               nonstandard directory <lib dir>
1387   LIBS        libraries to pass to the linker, e.g. -l<library>
1388   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1389               you have headers in a nonstandard directory <include dir>
1390   CPP         C preprocessor
1391   PKG_CONFIG  path to pkg-config utility
1392   PKG_CONFIG_PATH
1393               directories to add to pkg-config's search path
1394   PKG_CONFIG_LIBDIR
1395               path overriding pkg-config's built-in search path
1396
1397 Use these variables to override the choices made by `configure' or to help
1398 it to find libraries and programs with nonstandard names/locations.
1399
1400 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1401 _ACEOF
1402 ac_status=$?
1403 fi
1404
1405 if test "$ac_init_help" = "recursive"; then
1406   # If there are subdirs, report their specific --help.
1407   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1408     test -d "$ac_dir" ||
1409       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1410       continue
1411     ac_builddir=.
1412
1413 case "$ac_dir" in
1414 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1415 *)
1416   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1417   # A ".." for each directory in $ac_dir_suffix.
1418   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1419   case $ac_top_builddir_sub in
1420   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1422   esac ;;
1423 esac
1424 ac_abs_top_builddir=$ac_pwd
1425 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1426 # for backward compatibility:
1427 ac_top_builddir=$ac_top_build_prefix
1428
1429 case $srcdir in
1430   .)  # We are building in place.
1431     ac_srcdir=.
1432     ac_top_srcdir=$ac_top_builddir_sub
1433     ac_abs_top_srcdir=$ac_pwd ;;
1434   [\\/]* | ?:[\\/]* )  # Absolute name.
1435     ac_srcdir=$srcdir$ac_dir_suffix;
1436     ac_top_srcdir=$srcdir
1437     ac_abs_top_srcdir=$srcdir ;;
1438   *) # Relative name.
1439     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1440     ac_top_srcdir=$ac_top_build_prefix$srcdir
1441     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1442 esac
1443 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1444
1445     cd "$ac_dir" || { ac_status=$?; continue; }
1446     # Check for guested configure.
1447     if test -f "$ac_srcdir/configure.gnu"; then
1448       echo &&
1449       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1450     elif test -f "$ac_srcdir/configure"; then
1451       echo &&
1452       $SHELL "$ac_srcdir/configure" --help=recursive
1453     else
1454       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1455     fi || ac_status=$?
1456     cd "$ac_pwd" || { ac_status=$?; break; }
1457   done
1458 fi
1459
1460 test -n "$ac_init_help" && exit $ac_status
1461 if $ac_init_version; then
1462   cat <<\_ACEOF
1463 GLProto configure 1.4.16
1464 generated by GNU Autoconf 2.68
1465
1466 Copyright (C) 2010 Free Software Foundation, Inc.
1467 This configure script is free software; the Free Software Foundation
1468 gives unlimited permission to copy, distribute and modify it.
1469 _ACEOF
1470   exit
1471 fi
1472
1473 ## ------------------------ ##
1474 ## Autoconf initialization. ##
1475 ## ------------------------ ##
1476
1477 # ac_fn_c_try_compile LINENO
1478 # --------------------------
1479 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1480 ac_fn_c_try_compile ()
1481 {
1482   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1483   rm -f conftest.$ac_objext
1484   if { { ac_try="$ac_compile"
1485 case "(($ac_try" in
1486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1487   *) ac_try_echo=$ac_try;;
1488 esac
1489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490 $as_echo "$ac_try_echo"; } >&5
1491   (eval "$ac_compile") 2>conftest.err
1492   ac_status=$?
1493   if test -s conftest.err; then
1494     grep -v '^ *+' conftest.err >conftest.er1
1495     cat conftest.er1 >&5
1496     mv -f conftest.er1 conftest.err
1497   fi
1498   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1499   test $ac_status = 0; } && {
1500          test -z "$ac_c_werror_flag" ||
1501          test ! -s conftest.err
1502        } && test -s conftest.$ac_objext; then :
1503   ac_retval=0
1504 else
1505   $as_echo "$as_me: failed program was:" >&5
1506 sed 's/^/| /' conftest.$ac_ext >&5
1507
1508         ac_retval=1
1509 fi
1510   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1511   as_fn_set_status $ac_retval
1512
1513 } # ac_fn_c_try_compile
1514
1515 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1516 # ---------------------------------------------
1517 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1518 # accordingly.
1519 ac_fn_c_check_decl ()
1520 {
1521   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522   as_decl_name=`echo $2|sed 's/ *(.*//'`
1523   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1525 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1526 if eval \${$3+:} false; then :
1527   $as_echo_n "(cached) " >&6
1528 else
1529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1530 /* end confdefs.h.  */
1531 $4
1532 int
1533 main ()
1534 {
1535 #ifndef $as_decl_name
1536 #ifdef __cplusplus
1537   (void) $as_decl_use;
1538 #else
1539   (void) $as_decl_name;
1540 #endif
1541 #endif
1542
1543   ;
1544   return 0;
1545 }
1546 _ACEOF
1547 if ac_fn_c_try_compile "$LINENO"; then :
1548   eval "$3=yes"
1549 else
1550   eval "$3=no"
1551 fi
1552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1553 fi
1554 eval ac_res=\$$3
1555                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1556 $as_echo "$ac_res" >&6; }
1557   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558
1559 } # ac_fn_c_check_decl
1560
1561 # ac_fn_c_try_cpp LINENO
1562 # ----------------------
1563 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_cpp ()
1565 {
1566   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567   if { { ac_try="$ac_cpp conftest.$ac_ext"
1568 case "(($ac_try" in
1569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570   *) ac_try_echo=$ac_try;;
1571 esac
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1575   ac_status=$?
1576   if test -s conftest.err; then
1577     grep -v '^ *+' conftest.err >conftest.er1
1578     cat conftest.er1 >&5
1579     mv -f conftest.er1 conftest.err
1580   fi
1581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582   test $ac_status = 0; } > conftest.i && {
1583          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1584          test ! -s conftest.err
1585        }; then :
1586   ac_retval=0
1587 else
1588   $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1590
1591     ac_retval=1
1592 fi
1593   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594   as_fn_set_status $ac_retval
1595
1596 } # ac_fn_c_try_cpp
1597
1598 # ac_fn_c_try_run LINENO
1599 # ----------------------
1600 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1601 # that executables *can* be run.
1602 ac_fn_c_try_run ()
1603 {
1604   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605   if { { ac_try="$ac_link"
1606 case "(($ac_try" in
1607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608   *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612   (eval "$ac_link") 2>&5
1613   ac_status=$?
1614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1616   { { case "(($ac_try" in
1617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618   *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622   (eval "$ac_try") 2>&5
1623   ac_status=$?
1624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625   test $ac_status = 0; }; }; then :
1626   ac_retval=0
1627 else
1628   $as_echo "$as_me: program exited with status $ac_status" >&5
1629        $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1631
1632        ac_retval=$ac_status
1633 fi
1634   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1635   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636   as_fn_set_status $ac_retval
1637
1638 } # ac_fn_c_try_run
1639
1640 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1641 # -------------------------------------------------------
1642 # Tests whether HEADER exists and can be compiled using the include files in
1643 # INCLUDES, setting the cache variable VAR accordingly.
1644 ac_fn_c_check_header_compile ()
1645 {
1646   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648 $as_echo_n "checking for $2... " >&6; }
1649 if eval \${$3+:} false; then :
1650   $as_echo_n "(cached) " >&6
1651 else
1652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653 /* end confdefs.h.  */
1654 $4
1655 #include <$2>
1656 _ACEOF
1657 if ac_fn_c_try_compile "$LINENO"; then :
1658   eval "$3=yes"
1659 else
1660   eval "$3=no"
1661 fi
1662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663 fi
1664 eval ac_res=\$$3
1665                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 $as_echo "$ac_res" >&6; }
1667   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668
1669 } # ac_fn_c_check_header_compile
1670
1671 # ac_fn_c_try_link LINENO
1672 # -----------------------
1673 # Try to link conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_link ()
1675 {
1676   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677   rm -f conftest.$ac_objext conftest$ac_exeext
1678   if { { ac_try="$ac_link"
1679 case "(($ac_try" in
1680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681   *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685   (eval "$ac_link") 2>conftest.err
1686   ac_status=$?
1687   if test -s conftest.err; then
1688     grep -v '^ *+' conftest.err >conftest.er1
1689     cat conftest.er1 >&5
1690     mv -f conftest.er1 conftest.err
1691   fi
1692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693   test $ac_status = 0; } && {
1694          test -z "$ac_c_werror_flag" ||
1695          test ! -s conftest.err
1696        } && test -s conftest$ac_exeext && {
1697          test "$cross_compiling" = yes ||
1698          $as_test_x conftest$ac_exeext
1699        }; then :
1700   ac_retval=0
1701 else
1702   $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705         ac_retval=1
1706 fi
1707   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1708   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1709   # interfere with the next link command; also delete a directory that is
1710   # left behind by Apple's compiler.  We do this before executing the actions.
1711   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713   as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_link
1716 cat >config.log <<_ACEOF
1717 This file contains any messages produced by compilers while
1718 running configure, to aid debugging if configure makes a mistake.
1719
1720 It was created by GLProto $as_me 1.4.16, which was
1721 generated by GNU Autoconf 2.68.  Invocation command line was
1722
1723   $ $0 $@
1724
1725 _ACEOF
1726 exec 5>>config.log
1727 {
1728 cat <<_ASUNAME
1729 ## --------- ##
1730 ## Platform. ##
1731 ## --------- ##
1732
1733 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1734 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1735 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1736 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1737 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1738
1739 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1740 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1741
1742 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1743 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1744 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1745 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1746 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1747 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1748 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1749
1750 _ASUNAME
1751
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753 for as_dir in $PATH
1754 do
1755   IFS=$as_save_IFS
1756   test -z "$as_dir" && as_dir=.
1757     $as_echo "PATH: $as_dir"
1758   done
1759 IFS=$as_save_IFS
1760
1761 } >&5
1762
1763 cat >&5 <<_ACEOF
1764
1765
1766 ## ----------- ##
1767 ## Core tests. ##
1768 ## ----------- ##
1769
1770 _ACEOF
1771
1772
1773 # Keep a trace of the command line.
1774 # Strip out --no-create and --no-recursion so they do not pile up.
1775 # Strip out --silent because we don't want to record it for future runs.
1776 # Also quote any args containing shell meta-characters.
1777 # Make two passes to allow for proper duplicate-argument suppression.
1778 ac_configure_args=
1779 ac_configure_args0=
1780 ac_configure_args1=
1781 ac_must_keep_next=false
1782 for ac_pass in 1 2
1783 do
1784   for ac_arg
1785   do
1786     case $ac_arg in
1787     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1788     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1789     | -silent | --silent | --silen | --sile | --sil)
1790       continue ;;
1791     *\'*)
1792       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1793     esac
1794     case $ac_pass in
1795     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1796     2)
1797       as_fn_append ac_configure_args1 " '$ac_arg'"
1798       if test $ac_must_keep_next = true; then
1799         ac_must_keep_next=false # Got value, back to normal.
1800       else
1801         case $ac_arg in
1802           *=* | --config-cache | -C | -disable-* | --disable-* \
1803           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1804           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1805           | -with-* | --with-* | -without-* | --without-* | --x)
1806             case "$ac_configure_args0 " in
1807               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1808             esac
1809             ;;
1810           -* ) ac_must_keep_next=true ;;
1811         esac
1812       fi
1813       as_fn_append ac_configure_args " '$ac_arg'"
1814       ;;
1815     esac
1816   done
1817 done
1818 { ac_configure_args0=; unset ac_configure_args0;}
1819 { ac_configure_args1=; unset ac_configure_args1;}
1820
1821 # When interrupted or exit'd, cleanup temporary files, and complete
1822 # config.log.  We remove comments because anyway the quotes in there
1823 # would cause problems or look ugly.
1824 # WARNING: Use '\'' to represent an apostrophe within the trap.
1825 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1826 trap 'exit_status=$?
1827   # Save into config.log some information that might help in debugging.
1828   {
1829     echo
1830
1831     $as_echo "## ---------------- ##
1832 ## Cache variables. ##
1833 ## ---------------- ##"
1834     echo
1835     # The following way of writing the cache mishandles newlines in values,
1836 (
1837   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1838     eval ac_val=\$$ac_var
1839     case $ac_val in #(
1840     *${as_nl}*)
1841       case $ac_var in #(
1842       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1843 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1844       esac
1845       case $ac_var in #(
1846       _ | IFS | as_nl) ;; #(
1847       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1848       *) { eval $ac_var=; unset $ac_var;} ;;
1849       esac ;;
1850     esac
1851   done
1852   (set) 2>&1 |
1853     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1854     *${as_nl}ac_space=\ *)
1855       sed -n \
1856         "s/'\''/'\''\\\\'\'''\''/g;
1857           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1858       ;; #(
1859     *)
1860       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1861       ;;
1862     esac |
1863     sort
1864 )
1865     echo
1866
1867     $as_echo "## ----------------- ##
1868 ## Output variables. ##
1869 ## ----------------- ##"
1870     echo
1871     for ac_var in $ac_subst_vars
1872     do
1873       eval ac_val=\$$ac_var
1874       case $ac_val in
1875       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876       esac
1877       $as_echo "$ac_var='\''$ac_val'\''"
1878     done | sort
1879     echo
1880
1881     if test -n "$ac_subst_files"; then
1882       $as_echo "## ------------------- ##
1883 ## File substitutions. ##
1884 ## ------------------- ##"
1885       echo
1886       for ac_var in $ac_subst_files
1887       do
1888         eval ac_val=\$$ac_var
1889         case $ac_val in
1890         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1891         esac
1892         $as_echo "$ac_var='\''$ac_val'\''"
1893       done | sort
1894       echo
1895     fi
1896
1897     if test -s confdefs.h; then
1898       $as_echo "## ----------- ##
1899 ## confdefs.h. ##
1900 ## ----------- ##"
1901       echo
1902       cat confdefs.h
1903       echo
1904     fi
1905     test "$ac_signal" != 0 &&
1906       $as_echo "$as_me: caught signal $ac_signal"
1907     $as_echo "$as_me: exit $exit_status"
1908   } >&5
1909   rm -f core *.core core.conftest.* &&
1910     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1911     exit $exit_status
1912 ' 0
1913 for ac_signal in 1 2 13 15; do
1914   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1915 done
1916 ac_signal=0
1917
1918 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1919 rm -f -r conftest* confdefs.h
1920
1921 $as_echo "/* confdefs.h */" > confdefs.h
1922
1923 # Predefined preprocessor variables.
1924
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_NAME "$PACKAGE_NAME"
1927 _ACEOF
1928
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1931 _ACEOF
1932
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1935 _ACEOF
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_STRING "$PACKAGE_STRING"
1939 _ACEOF
1940
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1943 _ACEOF
1944
1945 cat >>confdefs.h <<_ACEOF
1946 #define PACKAGE_URL "$PACKAGE_URL"
1947 _ACEOF
1948
1949
1950 # Let the site file select an alternate cache file if it wants to.
1951 # Prefer an explicitly selected file to automatically selected ones.
1952 ac_site_file1=NONE
1953 ac_site_file2=NONE
1954 if test -n "$CONFIG_SITE"; then
1955   # We do not want a PATH search for config.site.
1956   case $CONFIG_SITE in #((
1957     -*)  ac_site_file1=./$CONFIG_SITE;;
1958     */*) ac_site_file1=$CONFIG_SITE;;
1959     *)   ac_site_file1=./$CONFIG_SITE;;
1960   esac
1961 elif test "x$prefix" != xNONE; then
1962   ac_site_file1=$prefix/share/config.site
1963   ac_site_file2=$prefix/etc/config.site
1964 else
1965   ac_site_file1=$ac_default_prefix/share/config.site
1966   ac_site_file2=$ac_default_prefix/etc/config.site
1967 fi
1968 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1969 do
1970   test "x$ac_site_file" = xNONE && continue
1971   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1972     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1973 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1974     sed 's/^/| /' "$ac_site_file" >&5
1975     . "$ac_site_file" \
1976       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1978 as_fn_error $? "failed to load site script $ac_site_file
1979 See \`config.log' for more details" "$LINENO" 5; }
1980   fi
1981 done
1982
1983 if test -r "$cache_file"; then
1984   # Some versions of bash will fail to source /dev/null (special files
1985   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1986   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1987     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1988 $as_echo "$as_me: loading cache $cache_file" >&6;}
1989     case $cache_file in
1990       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1991       *)                      . "./$cache_file";;
1992     esac
1993   fi
1994 else
1995   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1996 $as_echo "$as_me: creating cache $cache_file" >&6;}
1997   >$cache_file
1998 fi
1999
2000 # Check that the precious variables saved in the cache have kept the same
2001 # value.
2002 ac_cache_corrupted=false
2003 for ac_var in $ac_precious_vars; do
2004   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2005   eval ac_new_set=\$ac_env_${ac_var}_set
2006   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2007   eval ac_new_val=\$ac_env_${ac_var}_value
2008   case $ac_old_set,$ac_new_set in
2009     set,)
2010       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2011 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2012       ac_cache_corrupted=: ;;
2013     ,set)
2014       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2015 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2016       ac_cache_corrupted=: ;;
2017     ,);;
2018     *)
2019       if test "x$ac_old_val" != "x$ac_new_val"; then
2020         # differences in whitespace do not lead to failure.
2021         ac_old_val_w=`echo x $ac_old_val`
2022         ac_new_val_w=`echo x $ac_new_val`
2023         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2024           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2025 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2026           ac_cache_corrupted=:
2027         else
2028           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2029 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2030           eval $ac_var=\$ac_old_val
2031         fi
2032         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2033 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2034         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2035 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2036       fi;;
2037   esac
2038   # Pass precious variables to config.status.
2039   if test "$ac_new_set" = set; then
2040     case $ac_new_val in
2041     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2042     *) ac_arg=$ac_var=$ac_new_val ;;
2043     esac
2044     case " $ac_configure_args " in
2045       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2046       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2047     esac
2048   fi
2049 done
2050 if $ac_cache_corrupted; then
2051   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2053   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2054 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2055   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2056 fi
2057 ## -------------------- ##
2058 ## Main body of script. ##
2059 ## -------------------- ##
2060
2061 ac_ext=c
2062 ac_cpp='$CPP $CPPFLAGS'
2063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2066
2067
2068 am__api_version='1.11'
2069
2070 ac_aux_dir=
2071 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2072   if test -f "$ac_dir/install-sh"; then
2073     ac_aux_dir=$ac_dir
2074     ac_install_sh="$ac_aux_dir/install-sh -c"
2075     break
2076   elif test -f "$ac_dir/install.sh"; then
2077     ac_aux_dir=$ac_dir
2078     ac_install_sh="$ac_aux_dir/install.sh -c"
2079     break
2080   elif test -f "$ac_dir/shtool"; then
2081     ac_aux_dir=$ac_dir
2082     ac_install_sh="$ac_aux_dir/shtool install -c"
2083     break
2084   fi
2085 done
2086 if test -z "$ac_aux_dir"; then
2087   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2088 fi
2089
2090 # These three variables are undocumented and unsupported,
2091 # and are intended to be withdrawn in a future Autoconf release.
2092 # They can cause serious problems if a builder's source tree is in a directory
2093 # whose full name contains unusual characters.
2094 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2095 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2096 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2097
2098
2099 # Find a good install program.  We prefer a C program (faster),
2100 # so one script is as good as another.  But avoid the broken or
2101 # incompatible versions:
2102 # SysV /etc/install, /usr/sbin/install
2103 # SunOS /usr/etc/install
2104 # IRIX /sbin/install
2105 # AIX /bin/install
2106 # AmigaOS /C/install, which installs bootblocks on floppy discs
2107 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2108 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2109 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2110 # OS/2's system install, which has a completely different semantic
2111 # ./install, which can be erroneously created by make from ./install.sh.
2112 # Reject install programs that cannot install multiple files.
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2114 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2115 if test -z "$INSTALL"; then
2116 if ${ac_cv_path_install+:} false; then :
2117   $as_echo_n "(cached) " >&6
2118 else
2119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 for as_dir in $PATH
2121 do
2122   IFS=$as_save_IFS
2123   test -z "$as_dir" && as_dir=.
2124     # Account for people who put trailing slashes in PATH elements.
2125 case $as_dir/ in #((
2126   ./ | .// | /[cC]/* | \
2127   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2128   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2129   /usr/ucb/* ) ;;
2130   *)
2131     # OSF1 and SCO ODT 3.0 have their own names for install.
2132     # Don't use installbsd from OSF since it installs stuff as root
2133     # by default.
2134     for ac_prog in ginstall scoinst install; do
2135       for ac_exec_ext in '' $ac_executable_extensions; do
2136         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2137           if test $ac_prog = install &&
2138             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2139             # AIX install.  It has an incompatible calling convention.
2140             :
2141           elif test $ac_prog = install &&
2142             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2143             # program-specific install script used by HP pwplus--don't use.
2144             :
2145           else
2146             rm -rf conftest.one conftest.two conftest.dir
2147             echo one > conftest.one
2148             echo two > conftest.two
2149             mkdir conftest.dir
2150             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2151               test -s conftest.one && test -s conftest.two &&
2152               test -s conftest.dir/conftest.one &&
2153               test -s conftest.dir/conftest.two
2154             then
2155               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2156               break 3
2157             fi
2158           fi
2159         fi
2160       done
2161     done
2162     ;;
2163 esac
2164
2165   done
2166 IFS=$as_save_IFS
2167
2168 rm -rf conftest.one conftest.two conftest.dir
2169
2170 fi
2171   if test "${ac_cv_path_install+set}" = set; then
2172     INSTALL=$ac_cv_path_install
2173   else
2174     # As a last resort, use the slow shell script.  Don't cache a
2175     # value for INSTALL within a source directory, because that will
2176     # break other packages using the cache if that directory is
2177     # removed, or if the value is a relative name.
2178     INSTALL=$ac_install_sh
2179   fi
2180 fi
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2182 $as_echo "$INSTALL" >&6; }
2183
2184 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2185 # It thinks the first close brace ends the variable substitution.
2186 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2187
2188 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2189
2190 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2191
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2193 $as_echo_n "checking whether build environment is sane... " >&6; }
2194 # Just in case
2195 sleep 1
2196 echo timestamp > conftest.file
2197 # Reject unsafe characters in $srcdir or the absolute working directory
2198 # name.  Accept space and tab only in the latter.
2199 am_lf='
2200 '
2201 case `pwd` in
2202   *[\\\"\#\$\&\'\`$am_lf]*)
2203     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2204 esac
2205 case $srcdir in
2206   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2207     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2208 esac
2209
2210 # Do `set' in a subshell so we don't clobber the current shell's
2211 # arguments.  Must try -L first in case configure is actually a
2212 # symlink; some systems play weird games with the mod time of symlinks
2213 # (eg FreeBSD returns the mod time of the symlink's containing
2214 # directory).
2215 if (
2216    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2217    if test "$*" = "X"; then
2218       # -L didn't work.
2219       set X `ls -t "$srcdir/configure" conftest.file`
2220    fi
2221    rm -f conftest.file
2222    if test "$*" != "X $srcdir/configure conftest.file" \
2223       && test "$*" != "X conftest.file $srcdir/configure"; then
2224
2225       # If neither matched, then we have a broken ls.  This can happen
2226       # if, for instance, CONFIG_SHELL is bash and it inherits a
2227       # broken ls alias from the environment.  This has actually
2228       # happened.  Such a system could not be considered "sane".
2229       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2230 alias in your environment" "$LINENO" 5
2231    fi
2232
2233    test "$2" = conftest.file
2234    )
2235 then
2236    # Ok.
2237    :
2238 else
2239    as_fn_error $? "newly created file is older than distributed files!
2240 Check your system clock" "$LINENO" 5
2241 fi
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2243 $as_echo "yes" >&6; }
2244 test "$program_prefix" != NONE &&
2245   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2246 # Use a double $ so make ignores it.
2247 test "$program_suffix" != NONE &&
2248   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2249 # Double any \ or $.
2250 # By default was `s,x,x', remove it if useless.
2251 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2252 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2253
2254 # expand $ac_aux_dir to an absolute path
2255 am_aux_dir=`cd $ac_aux_dir && pwd`
2256
2257 if test x"${MISSING+set}" != xset; then
2258   case $am_aux_dir in
2259   *\ * | *\     *)
2260     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2261   *)
2262     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2263   esac
2264 fi
2265 # Use eval to expand $SHELL
2266 if eval "$MISSING --run true"; then
2267   am_missing_run="$MISSING --run "
2268 else
2269   am_missing_run=
2270   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2271 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2272 fi
2273
2274 if test x"${install_sh}" != xset; then
2275   case $am_aux_dir in
2276   *\ * | *\     *)
2277     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2278   *)
2279     install_sh="\${SHELL} $am_aux_dir/install-sh"
2280   esac
2281 fi
2282
2283 # Installed binaries are usually stripped using `strip' when the user
2284 # run `make install-strip'.  However `strip' might not be the right
2285 # tool to use in cross-compilation environments, therefore Automake
2286 # will honor the `STRIP' environment variable to overrule this program.
2287 if test "$cross_compiling" != no; then
2288   if test -n "$ac_tool_prefix"; then
2289   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2290 set dummy ${ac_tool_prefix}strip; ac_word=$2
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2292 $as_echo_n "checking for $ac_word... " >&6; }
2293 if ${ac_cv_prog_STRIP+:} false; then :
2294   $as_echo_n "(cached) " >&6
2295 else
2296   if test -n "$STRIP"; then
2297   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2298 else
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 for as_dir in $PATH
2301 do
2302   IFS=$as_save_IFS
2303   test -z "$as_dir" && as_dir=.
2304     for ac_exec_ext in '' $ac_executable_extensions; do
2305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2306     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2308     break 2
2309   fi
2310 done
2311   done
2312 IFS=$as_save_IFS
2313
2314 fi
2315 fi
2316 STRIP=$ac_cv_prog_STRIP
2317 if test -n "$STRIP"; then
2318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2319 $as_echo "$STRIP" >&6; }
2320 else
2321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2322 $as_echo "no" >&6; }
2323 fi
2324
2325
2326 fi
2327 if test -z "$ac_cv_prog_STRIP"; then
2328   ac_ct_STRIP=$STRIP
2329   # Extract the first word of "strip", so it can be a program name with args.
2330 set dummy strip; ac_word=$2
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2332 $as_echo_n "checking for $ac_word... " >&6; }
2333 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2334   $as_echo_n "(cached) " >&6
2335 else
2336   if test -n "$ac_ct_STRIP"; then
2337   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2338 else
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2341 do
2342   IFS=$as_save_IFS
2343   test -z "$as_dir" && as_dir=.
2344     for ac_exec_ext in '' $ac_executable_extensions; do
2345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2346     ac_cv_prog_ac_ct_STRIP="strip"
2347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2348     break 2
2349   fi
2350 done
2351   done
2352 IFS=$as_save_IFS
2353
2354 fi
2355 fi
2356 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2357 if test -n "$ac_ct_STRIP"; then
2358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2359 $as_echo "$ac_ct_STRIP" >&6; }
2360 else
2361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2362 $as_echo "no" >&6; }
2363 fi
2364
2365   if test "x$ac_ct_STRIP" = x; then
2366     STRIP=":"
2367   else
2368     case $cross_compiling:$ac_tool_warned in
2369 yes:)
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2372 ac_tool_warned=yes ;;
2373 esac
2374     STRIP=$ac_ct_STRIP
2375   fi
2376 else
2377   STRIP="$ac_cv_prog_STRIP"
2378 fi
2379
2380 fi
2381 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2382
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2384 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2385 if test -z "$MKDIR_P"; then
2386   if ${ac_cv_path_mkdir+:} false; then :
2387   $as_echo_n "(cached) " >&6
2388 else
2389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2391 do
2392   IFS=$as_save_IFS
2393   test -z "$as_dir" && as_dir=.
2394     for ac_prog in mkdir gmkdir; do
2395          for ac_exec_ext in '' $ac_executable_extensions; do
2396            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2397            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2398              'mkdir (GNU coreutils) '* | \
2399              'mkdir (coreutils) '* | \
2400              'mkdir (fileutils) '4.1*)
2401                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2402                break 3;;
2403            esac
2404          done
2405        done
2406   done
2407 IFS=$as_save_IFS
2408
2409 fi
2410
2411   test -d ./--version && rmdir ./--version
2412   if test "${ac_cv_path_mkdir+set}" = set; then
2413     MKDIR_P="$ac_cv_path_mkdir -p"
2414   else
2415     # As a last resort, use the slow shell script.  Don't cache a
2416     # value for MKDIR_P within a source directory, because that will
2417     # break other packages using the cache if that directory is
2418     # removed, or if the value is a relative name.
2419     MKDIR_P="$ac_install_sh -d"
2420   fi
2421 fi
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2423 $as_echo "$MKDIR_P" >&6; }
2424
2425 mkdir_p="$MKDIR_P"
2426 case $mkdir_p in
2427   [\\/$]* | ?:[\\/]*) ;;
2428   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2429 esac
2430
2431 for ac_prog in gawk mawk nawk awk
2432 do
2433   # Extract the first word of "$ac_prog", so it can be a program name with args.
2434 set dummy $ac_prog; ac_word=$2
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2436 $as_echo_n "checking for $ac_word... " >&6; }
2437 if ${ac_cv_prog_AWK+:} false; then :
2438   $as_echo_n "(cached) " >&6
2439 else
2440   if test -n "$AWK"; then
2441   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2442 else
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2445 do
2446   IFS=$as_save_IFS
2447   test -z "$as_dir" && as_dir=.
2448     for ac_exec_ext in '' $ac_executable_extensions; do
2449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2450     ac_cv_prog_AWK="$ac_prog"
2451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2452     break 2
2453   fi
2454 done
2455   done
2456 IFS=$as_save_IFS
2457
2458 fi
2459 fi
2460 AWK=$ac_cv_prog_AWK
2461 if test -n "$AWK"; then
2462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2463 $as_echo "$AWK" >&6; }
2464 else
2465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2466 $as_echo "no" >&6; }
2467 fi
2468
2469
2470   test -n "$AWK" && break
2471 done
2472
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2474 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2475 set x ${MAKE-make}
2476 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2477 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2478   $as_echo_n "(cached) " >&6
2479 else
2480   cat >conftest.make <<\_ACEOF
2481 SHELL = /bin/sh
2482 all:
2483         @echo '@@@%%%=$(MAKE)=@@@%%%'
2484 _ACEOF
2485 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2486 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2487   *@@@%%%=?*=@@@%%%*)
2488     eval ac_cv_prog_make_${ac_make}_set=yes;;
2489   *)
2490     eval ac_cv_prog_make_${ac_make}_set=no;;
2491 esac
2492 rm -f conftest.make
2493 fi
2494 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2496 $as_echo "yes" >&6; }
2497   SET_MAKE=
2498 else
2499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2500 $as_echo "no" >&6; }
2501   SET_MAKE="MAKE=${MAKE-make}"
2502 fi
2503
2504 rm -rf .tst 2>/dev/null
2505 mkdir .tst 2>/dev/null
2506 if test -d .tst; then
2507   am__leading_dot=.
2508 else
2509   am__leading_dot=_
2510 fi
2511 rmdir .tst 2>/dev/null
2512
2513 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2514   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2515   # is not polluted with repeated "-I."
2516   am__isrc=' -I$(srcdir)'
2517   # test to see if srcdir already configured
2518   if test -f $srcdir/config.status; then
2519     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2520   fi
2521 fi
2522
2523 # test whether we have cygpath
2524 if test -z "$CYGPATH_W"; then
2525   if (cygpath --version) >/dev/null 2>/dev/null; then
2526     CYGPATH_W='cygpath -w'
2527   else
2528     CYGPATH_W=echo
2529   fi
2530 fi
2531
2532
2533 # Define the identity of the package.
2534  PACKAGE='glproto'
2535  VERSION='1.4.16'
2536
2537
2538 cat >>confdefs.h <<_ACEOF
2539 #define PACKAGE "$PACKAGE"
2540 _ACEOF
2541
2542
2543 cat >>confdefs.h <<_ACEOF
2544 #define VERSION "$VERSION"
2545 _ACEOF
2546
2547 # Some tools Automake needs.
2548
2549 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2550
2551
2552 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2553
2554
2555 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2556
2557
2558 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2559
2560
2561 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2562
2563 # We need awk for the "check" target.  The system "awk" is bad on
2564 # some platforms.
2565 # Always define AMTAR for backward compatibility.  Yes, it's still used
2566 # in the wild :-(  We should find a proper way to deprecate it ...
2567 AMTAR='$${TAR-tar}'
2568
2569 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2570
2571
2572
2573
2574
2575
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2577 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2578     # Check whether --enable-maintainer-mode was given.
2579 if test "${enable_maintainer_mode+set}" = set; then :
2580   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2581 else
2582   USE_MAINTAINER_MODE=no
2583 fi
2584
2585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2586 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2587    if test $USE_MAINTAINER_MODE = yes; then
2588   MAINTAINER_MODE_TRUE=
2589   MAINTAINER_MODE_FALSE='#'
2590 else
2591   MAINTAINER_MODE_TRUE='#'
2592   MAINTAINER_MODE_FALSE=
2593 fi
2594
2595   MAINT=$MAINTAINER_MODE_TRUE
2596
2597
2598
2599 # Require xorg-macros: XORG_DEFAULT_OPTIONS
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611 DEPDIR="${am__leading_dot}deps"
2612
2613 ac_config_commands="$ac_config_commands depfiles"
2614
2615
2616 am_make=${MAKE-make}
2617 cat > confinc << 'END'
2618 am__doit:
2619         @echo this is the am__doit target
2620 .PHONY: am__doit
2621 END
2622 # If we don't find an include directive, just comment out the code.
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2624 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2625 am__include="#"
2626 am__quote=
2627 _am_result=none
2628 # First try GNU make style include.
2629 echo "include confinc" > confmf
2630 # Ignore all kinds of additional output from `make'.
2631 case `$am_make -s -f confmf 2> /dev/null` in #(
2632 *the\ am__doit\ target*)
2633   am__include=include
2634   am__quote=
2635   _am_result=GNU
2636   ;;
2637 esac
2638 # Now try BSD make style include.
2639 if test "$am__include" = "#"; then
2640    echo '.include "confinc"' > confmf
2641    case `$am_make -s -f confmf 2> /dev/null` in #(
2642    *the\ am__doit\ target*)
2643      am__include=.include
2644      am__quote="\""
2645      _am_result=BSD
2646      ;;
2647    esac
2648 fi
2649
2650
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2652 $as_echo "$_am_result" >&6; }
2653 rm -f confinc confmf
2654
2655 # Check whether --enable-dependency-tracking was given.
2656 if test "${enable_dependency_tracking+set}" = set; then :
2657   enableval=$enable_dependency_tracking;
2658 fi
2659
2660 if test "x$enable_dependency_tracking" != xno; then
2661   am_depcomp="$ac_aux_dir/depcomp"
2662   AMDEPBACKSLASH='\'
2663   am__nodep='_no'
2664 fi
2665  if test "x$enable_dependency_tracking" != xno; then
2666   AMDEP_TRUE=
2667   AMDEP_FALSE='#'
2668 else
2669   AMDEP_TRUE='#'
2670   AMDEP_FALSE=
2671 fi
2672
2673
2674 ac_ext=c
2675 ac_cpp='$CPP $CPPFLAGS'
2676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679 if test -n "$ac_tool_prefix"; then
2680   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2681 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if ${ac_cv_prog_CC+:} false; then :
2685   $as_echo_n "(cached) " >&6
2686 else
2687   if test -n "$CC"; then
2688   ac_cv_prog_CC="$CC" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693   IFS=$as_save_IFS
2694   test -z "$as_dir" && as_dir=.
2695     for ac_exec_ext in '' $ac_executable_extensions; do
2696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699     break 2
2700   fi
2701 done
2702   done
2703 IFS=$as_save_IFS
2704
2705 fi
2706 fi
2707 CC=$ac_cv_prog_CC
2708 if test -n "$CC"; then
2709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2710 $as_echo "$CC" >&6; }
2711 else
2712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713 $as_echo "no" >&6; }
2714 fi
2715
2716
2717 fi
2718 if test -z "$ac_cv_prog_CC"; then
2719   ac_ct_CC=$CC
2720   # Extract the first word of "gcc", so it can be a program name with args.
2721 set dummy gcc; ac_word=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2725   $as_echo_n "(cached) " >&6
2726 else
2727   if test -n "$ac_ct_CC"; then
2728   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2732 do
2733   IFS=$as_save_IFS
2734   test -z "$as_dir" && as_dir=.
2735     for ac_exec_ext in '' $ac_executable_extensions; do
2736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737     ac_cv_prog_ac_ct_CC="gcc"
2738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739     break 2
2740   fi
2741 done
2742   done
2743 IFS=$as_save_IFS
2744
2745 fi
2746 fi
2747 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2748 if test -n "$ac_ct_CC"; then
2749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2750 $as_echo "$ac_ct_CC" >&6; }
2751 else
2752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2754 fi
2755
2756   if test "x$ac_ct_CC" = x; then
2757     CC=""
2758   else
2759     case $cross_compiling:$ac_tool_warned in
2760 yes:)
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2763 ac_tool_warned=yes ;;
2764 esac
2765     CC=$ac_ct_CC
2766   fi
2767 else
2768   CC="$ac_cv_prog_CC"
2769 fi
2770
2771 if test -z "$CC"; then
2772           if test -n "$ac_tool_prefix"; then
2773     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2774 set dummy ${ac_tool_prefix}cc; ac_word=$2
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if ${ac_cv_prog_CC+:} false; then :
2778   $as_echo_n "(cached) " >&6
2779 else
2780   if test -n "$CC"; then
2781   ac_cv_prog_CC="$CC" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2785 do
2786   IFS=$as_save_IFS
2787   test -z "$as_dir" && as_dir=.
2788     for ac_exec_ext in '' $ac_executable_extensions; do
2789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790     ac_cv_prog_CC="${ac_tool_prefix}cc"
2791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792     break 2
2793   fi
2794 done
2795   done
2796 IFS=$as_save_IFS
2797
2798 fi
2799 fi
2800 CC=$ac_cv_prog_CC
2801 if test -n "$CC"; then
2802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2803 $as_echo "$CC" >&6; }
2804 else
2805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806 $as_echo "no" >&6; }
2807 fi
2808
2809
2810   fi
2811 fi
2812 if test -z "$CC"; then
2813   # Extract the first word of "cc", so it can be a program name with args.
2814 set dummy cc; ac_word=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if ${ac_cv_prog_CC+:} false; then :
2818   $as_echo_n "(cached) " >&6
2819 else
2820   if test -n "$CC"; then
2821   ac_cv_prog_CC="$CC" # Let the user override the test.
2822 else
2823   ac_prog_rejected=no
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827   IFS=$as_save_IFS
2828   test -z "$as_dir" && as_dir=.
2829     for ac_exec_ext in '' $ac_executable_extensions; do
2830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2832        ac_prog_rejected=yes
2833        continue
2834      fi
2835     ac_cv_prog_CC="cc"
2836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837     break 2
2838   fi
2839 done
2840   done
2841 IFS=$as_save_IFS
2842
2843 if test $ac_prog_rejected = yes; then
2844   # We found a bogon in the path, so make sure we never use it.
2845   set dummy $ac_cv_prog_CC
2846   shift
2847   if test $# != 0; then
2848     # We chose a different compiler from the bogus one.
2849     # However, it has the same basename, so the bogon will be chosen
2850     # first if we set CC to just the basename; use the full file name.
2851     shift
2852     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2853   fi
2854 fi
2855 fi
2856 fi
2857 CC=$ac_cv_prog_CC
2858 if test -n "$CC"; then
2859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860 $as_echo "$CC" >&6; }
2861 else
2862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2864 fi
2865
2866
2867 fi
2868 if test -z "$CC"; then
2869   if test -n "$ac_tool_prefix"; then
2870   for ac_prog in cl.exe
2871   do
2872     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2873 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875 $as_echo_n "checking for $ac_word... " >&6; }
2876 if ${ac_cv_prog_CC+:} false; then :
2877   $as_echo_n "(cached) " >&6
2878 else
2879   if test -n "$CC"; then
2880   ac_cv_prog_CC="$CC" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2884 do
2885   IFS=$as_save_IFS
2886   test -z "$as_dir" && as_dir=.
2887     for ac_exec_ext in '' $ac_executable_extensions; do
2888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2891     break 2
2892   fi
2893 done
2894   done
2895 IFS=$as_save_IFS
2896
2897 fi
2898 fi
2899 CC=$ac_cv_prog_CC
2900 if test -n "$CC"; then
2901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2902 $as_echo "$CC" >&6; }
2903 else
2904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905 $as_echo "no" >&6; }
2906 fi
2907
2908
2909     test -n "$CC" && break
2910   done
2911 fi
2912 if test -z "$CC"; then
2913   ac_ct_CC=$CC
2914   for ac_prog in cl.exe
2915 do
2916   # Extract the first word of "$ac_prog", so it can be a program name with args.
2917 set dummy $ac_prog; ac_word=$2
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919 $as_echo_n "checking for $ac_word... " >&6; }
2920 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2921   $as_echo_n "(cached) " >&6
2922 else
2923   if test -n "$ac_ct_CC"; then
2924   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2925 else
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2928 do
2929   IFS=$as_save_IFS
2930   test -z "$as_dir" && as_dir=.
2931     for ac_exec_ext in '' $ac_executable_extensions; do
2932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933     ac_cv_prog_ac_ct_CC="$ac_prog"
2934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935     break 2
2936   fi
2937 done
2938   done
2939 IFS=$as_save_IFS
2940
2941 fi
2942 fi
2943 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2944 if test -n "$ac_ct_CC"; then
2945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2946 $as_echo "$ac_ct_CC" >&6; }
2947 else
2948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949 $as_echo "no" >&6; }
2950 fi
2951
2952
2953   test -n "$ac_ct_CC" && break
2954 done
2955
2956   if test "x$ac_ct_CC" = x; then
2957     CC=""
2958   else
2959     case $cross_compiling:$ac_tool_warned in
2960 yes:)
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2963 ac_tool_warned=yes ;;
2964 esac
2965     CC=$ac_ct_CC
2966   fi
2967 fi
2968
2969 fi
2970
2971
2972 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2974 as_fn_error $? "no acceptable C compiler found in \$PATH
2975 See \`config.log' for more details" "$LINENO" 5; }
2976
2977 # Provide some information about the compiler.
2978 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2979 set X $ac_compile
2980 ac_compiler=$2
2981 for ac_option in --version -v -V -qversion; do
2982   { { ac_try="$ac_compiler $ac_option >&5"
2983 case "(($ac_try" in
2984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985   *) ac_try_echo=$ac_try;;
2986 esac
2987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2988 $as_echo "$ac_try_echo"; } >&5
2989   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2990   ac_status=$?
2991   if test -s conftest.err; then
2992     sed '10a\
2993 ... rest of stderr output deleted ...
2994          10q' conftest.err >conftest.er1
2995     cat conftest.er1 >&5
2996   fi
2997   rm -f conftest.er1 conftest.err
2998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2999   test $ac_status = 0; }
3000 done
3001
3002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003 /* end confdefs.h.  */
3004
3005 int
3006 main ()
3007 {
3008
3009   ;
3010   return 0;
3011 }
3012 _ACEOF
3013 ac_clean_files_save=$ac_clean_files
3014 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3015 # Try to create an executable without -o first, disregard a.out.
3016 # It will help us diagnose broken compilers, and finding out an intuition
3017 # of exeext.
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3019 $as_echo_n "checking whether the C compiler works... " >&6; }
3020 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3021
3022 # The possible output files:
3023 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3024
3025 ac_rmfiles=
3026 for ac_file in $ac_files
3027 do
3028   case $ac_file in
3029     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3030     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3031   esac
3032 done
3033 rm -f $ac_rmfiles
3034
3035 if { { ac_try="$ac_link_default"
3036 case "(($ac_try" in
3037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038   *) ac_try_echo=$ac_try;;
3039 esac
3040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3041 $as_echo "$ac_try_echo"; } >&5
3042   (eval "$ac_link_default") 2>&5
3043   ac_status=$?
3044   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3045   test $ac_status = 0; }; then :
3046   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3047 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3048 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3049 # so that the user can short-circuit this test for compilers unknown to
3050 # Autoconf.
3051 for ac_file in $ac_files ''
3052 do
3053   test -f "$ac_file" || continue
3054   case $ac_file in
3055     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3056         ;;
3057     [ab].out )
3058         # We found the default executable, but exeext='' is most
3059         # certainly right.
3060         break;;
3061     *.* )
3062         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3063         then :; else
3064            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3065         fi
3066         # We set ac_cv_exeext here because the later test for it is not
3067         # safe: cross compilers may not add the suffix if given an `-o'
3068         # argument, so we may need to know it at that point already.
3069         # Even if this section looks crufty: it has the advantage of
3070         # actually working.
3071         break;;
3072     * )
3073         break;;
3074   esac
3075 done
3076 test "$ac_cv_exeext" = no && ac_cv_exeext=
3077
3078 else
3079   ac_file=''
3080 fi
3081 if test -z "$ac_file"; then :
3082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083 $as_echo "no" >&6; }
3084 $as_echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3086
3087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3089 as_fn_error 77 "C compiler cannot create executables
3090 See \`config.log' for more details" "$LINENO" 5; }
3091 else
3092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3093 $as_echo "yes" >&6; }
3094 fi
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3096 $as_echo_n "checking for C compiler default output file name... " >&6; }
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3098 $as_echo "$ac_file" >&6; }
3099 ac_exeext=$ac_cv_exeext
3100
3101 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3102 ac_clean_files=$ac_clean_files_save
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3104 $as_echo_n "checking for suffix of executables... " >&6; }
3105 if { { ac_try="$ac_link"
3106 case "(($ac_try" in
3107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108   *) ac_try_echo=$ac_try;;
3109 esac
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112   (eval "$ac_link") 2>&5
3113   ac_status=$?
3114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115   test $ac_status = 0; }; then :
3116   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3117 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3118 # work properly (i.e., refer to `conftest.exe'), while it won't with
3119 # `rm'.
3120 for ac_file in conftest.exe conftest conftest.*; do
3121   test -f "$ac_file" || continue
3122   case $ac_file in
3123     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3124     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3125           break;;
3126     * ) break;;
3127   esac
3128 done
3129 else
3130   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3132 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3133 See \`config.log' for more details" "$LINENO" 5; }
3134 fi
3135 rm -f conftest conftest$ac_cv_exeext
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3137 $as_echo "$ac_cv_exeext" >&6; }
3138
3139 rm -f conftest.$ac_ext
3140 EXEEXT=$ac_cv_exeext
3141 ac_exeext=$EXEEXT
3142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143 /* end confdefs.h.  */
3144 #include <stdio.h>
3145 int
3146 main ()
3147 {
3148 FILE *f = fopen ("conftest.out", "w");
3149  return ferror (f) || fclose (f) != 0;
3150
3151   ;
3152   return 0;
3153 }
3154 _ACEOF
3155 ac_clean_files="$ac_clean_files conftest.out"
3156 # Check that the compiler produces executables we can run.  If not, either
3157 # the compiler is broken, or we cross compile.
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3159 $as_echo_n "checking whether we are cross compiling... " >&6; }
3160 if test "$cross_compiling" != yes; then
3161   { { ac_try="$ac_link"
3162 case "(($ac_try" in
3163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164   *) ac_try_echo=$ac_try;;
3165 esac
3166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167 $as_echo "$ac_try_echo"; } >&5
3168   (eval "$ac_link") 2>&5
3169   ac_status=$?
3170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171   test $ac_status = 0; }
3172   if { ac_try='./conftest$ac_cv_exeext'
3173   { { case "(($ac_try" in
3174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175   *) ac_try_echo=$ac_try;;
3176 esac
3177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178 $as_echo "$ac_try_echo"; } >&5
3179   (eval "$ac_try") 2>&5
3180   ac_status=$?
3181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182   test $ac_status = 0; }; }; then
3183     cross_compiling=no
3184   else
3185     if test "$cross_compiling" = maybe; then
3186         cross_compiling=yes
3187     else
3188         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3190 as_fn_error $? "cannot run C compiled programs.
3191 If you meant to cross compile, use \`--host'.
3192 See \`config.log' for more details" "$LINENO" 5; }
3193     fi
3194   fi
3195 fi
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3197 $as_echo "$cross_compiling" >&6; }
3198
3199 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3200 ac_clean_files=$ac_clean_files_save
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3202 $as_echo_n "checking for suffix of object files... " >&6; }
3203 if ${ac_cv_objext+:} false; then :
3204   $as_echo_n "(cached) " >&6
3205 else
3206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h.  */
3208
3209 int
3210 main ()
3211 {
3212
3213   ;
3214   return 0;
3215 }
3216 _ACEOF
3217 rm -f conftest.o conftest.obj
3218 if { { ac_try="$ac_compile"
3219 case "(($ac_try" in
3220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221   *) ac_try_echo=$ac_try;;
3222 esac
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 $as_echo "$ac_try_echo"; } >&5
3225   (eval "$ac_compile") 2>&5
3226   ac_status=$?
3227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228   test $ac_status = 0; }; then :
3229   for ac_file in conftest.o conftest.obj conftest.*; do
3230   test -f "$ac_file" || continue;
3231   case $ac_file in
3232     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3233     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3234        break;;
3235   esac
3236 done
3237 else
3238   $as_echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3240
3241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error $? "cannot compute suffix of object files: cannot compile
3244 See \`config.log' for more details" "$LINENO" 5; }
3245 fi
3246 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3247 fi
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3249 $as_echo "$ac_cv_objext" >&6; }
3250 OBJEXT=$ac_cv_objext
3251 ac_objext=$OBJEXT
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3253 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3254 if ${ac_cv_c_compiler_gnu+:} false; then :
3255   $as_echo_n "(cached) " >&6
3256 else
3257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h.  */
3259
3260 int
3261 main ()
3262 {
3263 #ifndef __GNUC__
3264        choke me
3265 #endif
3266
3267   ;
3268   return 0;
3269 }
3270 _ACEOF
3271 if ac_fn_c_try_compile "$LINENO"; then :
3272   ac_compiler_gnu=yes
3273 else
3274   ac_compiler_gnu=no
3275 fi
3276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3278
3279 fi
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3281 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3282 if test $ac_compiler_gnu = yes; then
3283   GCC=yes
3284 else
3285   GCC=
3286 fi
3287 ac_test_CFLAGS=${CFLAGS+set}
3288 ac_save_CFLAGS=$CFLAGS
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3290 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3291 if ${ac_cv_prog_cc_g+:} false; then :
3292   $as_echo_n "(cached) " >&6
3293 else
3294   ac_save_c_werror_flag=$ac_c_werror_flag
3295    ac_c_werror_flag=yes
3296    ac_cv_prog_cc_g=no
3297    CFLAGS="-g"
3298    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299 /* end confdefs.h.  */
3300
3301 int
3302 main ()
3303 {
3304
3305   ;
3306   return 0;
3307 }
3308 _ACEOF
3309 if ac_fn_c_try_compile "$LINENO"; then :
3310   ac_cv_prog_cc_g=yes
3311 else
3312   CFLAGS=""
3313       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h.  */
3315
3316 int
3317 main ()
3318 {
3319
3320   ;
3321   return 0;
3322 }
3323 _ACEOF
3324 if ac_fn_c_try_compile "$LINENO"; then :
3325
3326 else
3327   ac_c_werror_flag=$ac_save_c_werror_flag
3328          CFLAGS="-g"
3329          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h.  */
3331
3332 int
3333 main ()
3334 {
3335
3336   ;
3337   return 0;
3338 }
3339 _ACEOF
3340 if ac_fn_c_try_compile "$LINENO"; then :
3341   ac_cv_prog_cc_g=yes
3342 fi
3343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344 fi
3345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346 fi
3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348    ac_c_werror_flag=$ac_save_c_werror_flag
3349 fi
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3351 $as_echo "$ac_cv_prog_cc_g" >&6; }
3352 if test "$ac_test_CFLAGS" = set; then
3353   CFLAGS=$ac_save_CFLAGS
3354 elif test $ac_cv_prog_cc_g = yes; then
3355   if test "$GCC" = yes; then
3356     CFLAGS="-g -O2"
3357   else
3358     CFLAGS="-g"
3359   fi
3360 else
3361   if test "$GCC" = yes; then
3362     CFLAGS="-O2"
3363   else
3364     CFLAGS=
3365   fi
3366 fi
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3368 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3369 if ${ac_cv_prog_cc_c89+:} false; then :
3370   $as_echo_n "(cached) " >&6
3371 else
3372   ac_cv_prog_cc_c89=no
3373 ac_save_CC=$CC
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375 /* end confdefs.h.  */
3376 #include <stdarg.h>
3377 #include <stdio.h>
3378 #include <sys/types.h>
3379 #include <sys/stat.h>
3380 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3381 struct buf { int x; };
3382 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3383 static char *e (p, i)
3384      char **p;
3385      int i;
3386 {
3387   return p[i];
3388 }
3389 static char *f (char * (*g) (char **, int), char **p, ...)
3390 {
3391   char *s;
3392   va_list v;
3393   va_start (v,p);
3394   s = g (p, va_arg (v,int));
3395   va_end (v);
3396   return s;
3397 }
3398
3399 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3400    function prototypes and stuff, but not '\xHH' hex character constants.
3401    These don't provoke an error unfortunately, instead are silently treated
3402    as 'x'.  The following induces an error, until -std is added to get
3403    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3404    array size at least.  It's necessary to write '\x00'==0 to get something
3405    that's true only with -std.  */
3406 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3407
3408 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3409    inside strings and character constants.  */
3410 #define FOO(x) 'x'
3411 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3412
3413 int test (int i, double x);
3414 struct s1 {int (*f) (int a);};
3415 struct s2 {int (*f) (double a);};
3416 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3417 int argc;
3418 char **argv;
3419 int
3420 main ()
3421 {
3422 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3423   ;
3424   return 0;
3425 }
3426 _ACEOF
3427 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3428         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3429 do
3430   CC="$ac_save_CC $ac_arg"
3431   if ac_fn_c_try_compile "$LINENO"; then :
3432   ac_cv_prog_cc_c89=$ac_arg
3433 fi
3434 rm -f core conftest.err conftest.$ac_objext
3435   test "x$ac_cv_prog_cc_c89" != "xno" && break
3436 done
3437 rm -f conftest.$ac_ext
3438 CC=$ac_save_CC
3439
3440 fi
3441 # AC_CACHE_VAL
3442 case "x$ac_cv_prog_cc_c89" in
3443   x)
3444     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3445 $as_echo "none needed" >&6; } ;;
3446   xno)
3447     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3448 $as_echo "unsupported" >&6; } ;;
3449   *)
3450     CC="$CC $ac_cv_prog_cc_c89"
3451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3452 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3453 esac
3454 if test "x$ac_cv_prog_cc_c89" != xno; then :
3455
3456 fi
3457
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464 depcc="$CC"   am_compiler_list=
3465
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3467 $as_echo_n "checking dependency style of $depcc... " >&6; }
3468 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3469   $as_echo_n "(cached) " >&6
3470 else
3471   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3472   # We make a subdir and do the tests there.  Otherwise we can end up
3473   # making bogus files that we don't know about and never remove.  For
3474   # instance it was reported that on HP-UX the gcc test will end up
3475   # making a dummy file named `D' -- because `-MD' means `put the output
3476   # in D'.
3477   rm -rf conftest.dir
3478   mkdir conftest.dir
3479   # Copy depcomp to subdir because otherwise we won't find it if we're
3480   # using a relative directory.
3481   cp "$am_depcomp" conftest.dir
3482   cd conftest.dir
3483   # We will build objects and dependencies in a subdirectory because
3484   # it helps to detect inapplicable dependency modes.  For instance
3485   # both Tru64's cc and ICC support -MD to output dependencies as a
3486   # side effect of compilation, but ICC will put the dependencies in
3487   # the current directory while Tru64 will put them in the object
3488   # directory.
3489   mkdir sub
3490
3491   am_cv_CC_dependencies_compiler_type=none
3492   if test "$am_compiler_list" = ""; then
3493      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3494   fi
3495   am__universal=false
3496   case " $depcc " in #(
3497      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3498      esac
3499
3500   for depmode in $am_compiler_list; do
3501     # Setup a source with many dependencies, because some compilers
3502     # like to wrap large dependency lists on column 80 (with \), and
3503     # we should not choose a depcomp mode which is confused by this.
3504     #
3505     # We need to recreate these files for each test, as the compiler may
3506     # overwrite some of them when testing with obscure command lines.
3507     # This happens at least with the AIX C compiler.
3508     : > sub/conftest.c
3509     for i in 1 2 3 4 5 6; do
3510       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3511       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3512       # Solaris 8's {/usr,}/bin/sh.
3513       touch sub/conftst$i.h
3514     done
3515     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3516
3517     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3518     # mode.  It turns out that the SunPro C++ compiler does not properly
3519     # handle `-M -o', and we need to detect this.  Also, some Intel
3520     # versions had trouble with output in subdirs
3521     am__obj=sub/conftest.${OBJEXT-o}
3522     am__minus_obj="-o $am__obj"
3523     case $depmode in
3524     gcc)
3525       # This depmode causes a compiler race in universal mode.
3526       test "$am__universal" = false || continue
3527       ;;
3528     nosideeffect)
3529       # after this tag, mechanisms are not by side-effect, so they'll
3530       # only be used when explicitly requested
3531       if test "x$enable_dependency_tracking" = xyes; then
3532         continue
3533       else
3534         break
3535       fi
3536       ;;
3537     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3538       # This compiler won't grok `-c -o', but also, the minuso test has
3539       # not run yet.  These depmodes are late enough in the game, and
3540       # so weak that their functioning should not be impacted.
3541       am__obj=conftest.${OBJEXT-o}
3542       am__minus_obj=
3543       ;;
3544     none) break ;;
3545     esac
3546     if depmode=$depmode \
3547        source=sub/conftest.c object=$am__obj \
3548        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3549        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3550          >/dev/null 2>conftest.err &&
3551        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3552        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3553        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3554        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3555       # icc doesn't choke on unknown options, it will just issue warnings
3556       # or remarks (even with -Werror).  So we grep stderr for any message
3557       # that says an option was ignored or not supported.
3558       # When given -MP, icc 7.0 and 7.1 complain thusly:
3559       #   icc: Command line warning: ignoring option '-M'; no argument required
3560       # The diagnosis changed in icc 8.0:
3561       #   icc: Command line remark: option '-MP' not supported
3562       if (grep 'ignoring option' conftest.err ||
3563           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3564         am_cv_CC_dependencies_compiler_type=$depmode
3565         break
3566       fi
3567     fi
3568   done
3569
3570   cd ..
3571   rm -rf conftest.dir
3572 else
3573   am_cv_CC_dependencies_compiler_type=none
3574 fi
3575
3576 fi
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3578 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3579 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3580
3581  if
3582   test "x$enable_dependency_tracking" != xno \
3583   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3584   am__fastdepCC_TRUE=
3585   am__fastdepCC_FALSE='#'
3586 else
3587   am__fastdepCC_TRUE='#'
3588   am__fastdepCC_FALSE=
3589 fi
3590
3591
3592    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3593 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3594 if ${ac_cv_prog_cc_c99+:} false; then :
3595   $as_echo_n "(cached) " >&6
3596 else
3597   ac_cv_prog_cc_c99=no
3598 ac_save_CC=$CC
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h.  */
3601 #include <stdarg.h>
3602 #include <stdbool.h>
3603 #include <stdlib.h>
3604 #include <wchar.h>
3605 #include <stdio.h>
3606
3607 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3608 #define debug(...) fprintf (stderr, __VA_ARGS__)
3609 #define showlist(...) puts (#__VA_ARGS__)
3610 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3611 static void
3612 test_varargs_macros (void)
3613 {
3614   int x = 1234;
3615   int y = 5678;
3616   debug ("Flag");
3617   debug ("X = %d\n", x);
3618   showlist (The first, second, and third items.);
3619   report (x>y, "x is %d but y is %d", x, y);
3620 }
3621
3622 // Check long long types.
3623 #define BIG64 18446744073709551615ull
3624 #define BIG32 4294967295ul
3625 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3626 #if !BIG_OK
3627   your preprocessor is broken;
3628 #endif
3629 #if BIG_OK
3630 #else
3631   your preprocessor is broken;
3632 #endif
3633 static long long int bignum = -9223372036854775807LL;
3634 static unsigned long long int ubignum = BIG64;
3635
3636 struct incomplete_array
3637 {
3638   int datasize;
3639   double data[];
3640 };
3641
3642 struct named_init {
3643   int number;
3644   const wchar_t *name;
3645   double average;
3646 };
3647
3648 typedef const char *ccp;
3649
3650 static inline int
3651 test_restrict (ccp restrict text)
3652 {
3653   // See if C++-style comments work.
3654   // Iterate through items via the restricted pointer.
3655   // Also check for declarations in for loops.
3656   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3657     continue;
3658   return 0;
3659 }
3660
3661 // Check varargs and va_copy.
3662 static void
3663 test_varargs (const char *format, ...)
3664 {
3665   va_list args;
3666   va_start (args, format);
3667   va_list args_copy;
3668   va_copy (args_copy, args);
3669
3670   const char *str;
3671   int number;
3672   float fnumber;
3673
3674   while (*format)
3675     {
3676       switch (*format++)
3677         {
3678         case 's': // string
3679           str = va_arg (args_copy, const char *);
3680           break;
3681         case 'd': // int
3682           number = va_arg (args_copy, int);
3683           break;
3684         case 'f': // float
3685           fnumber = va_arg (args_copy, double);
3686           break;
3687         default:
3688           break;
3689         }
3690     }
3691   va_end (args_copy);
3692   va_end (args);
3693 }
3694
3695 int
3696 main ()
3697 {
3698
3699   // Check bool.
3700   _Bool success = false;
3701
3702   // Check restrict.
3703   if (test_restrict ("String literal") == 0)
3704     success = true;
3705   char *restrict newvar = "Another string";
3706
3707   // Check varargs.
3708   test_varargs ("s, d' f .", "string", 65, 34.234);
3709   test_varargs_macros ();
3710
3711   // Check flexible array members.
3712   struct incomplete_array *ia =
3713     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3714   ia->datasize = 10;
3715   for (int i = 0; i < ia->datasize; ++i)
3716     ia->data[i] = i * 1.234;
3717
3718   // Check named initializers.
3719   struct named_init ni = {
3720     .number = 34,
3721     .name = L"Test wide string",
3722     .average = 543.34343,
3723   };
3724
3725   ni.number = 58;
3726
3727   int dynamic_array[ni.number];
3728   dynamic_array[ni.number - 1] = 543;
3729
3730   // work around unused variable warnings
3731   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3732           || dynamic_array[ni.number - 1] != 543);
3733
3734   ;
3735   return 0;
3736 }
3737 _ACEOF
3738 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3739 do
3740   CC="$ac_save_CC $ac_arg"
3741   if ac_fn_c_try_compile "$LINENO"; then :
3742   ac_cv_prog_cc_c99=$ac_arg
3743 fi
3744 rm -f core conftest.err conftest.$ac_objext
3745   test "x$ac_cv_prog_cc_c99" != "xno" && break
3746 done
3747 rm -f conftest.$ac_ext
3748 CC=$ac_save_CC
3749
3750 fi
3751 # AC_CACHE_VAL
3752 case "x$ac_cv_prog_cc_c99" in
3753   x)
3754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3755 $as_echo "none needed" >&6; } ;;
3756   xno)
3757     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3758 $as_echo "unsupported" >&6; } ;;
3759   *)
3760     CC="$CC $ac_cv_prog_cc_c99"
3761     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3762 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3763 esac
3764 if test "x$ac_cv_prog_cc_c99" != xno; then :
3765
3766 fi
3767
3768
3769
3770 ac_ext=c
3771 ac_cpp='$CPP $CPPFLAGS'
3772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3776 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3777 # On Suns, sometimes $CPP names a directory.
3778 if test -n "$CPP" && test -d "$CPP"; then
3779   CPP=
3780 fi
3781 if test -z "$CPP"; then
3782   if ${ac_cv_prog_CPP+:} false; then :
3783   $as_echo_n "(cached) " >&6
3784 else
3785       # Double quotes because CPP needs to be expanded
3786     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3787     do
3788       ac_preproc_ok=false
3789 for ac_c_preproc_warn_flag in '' yes
3790 do
3791   # Use a header file that comes with gcc, so configuring glibc
3792   # with a fresh cross-compiler works.
3793   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3794   # <limits.h> exists even on freestanding compilers.
3795   # On the NeXT, cc -E runs the code through the compiler's parser,
3796   # not just through cpp. "Syntax error" is here to catch this case.
3797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h.  */
3799 #ifdef __STDC__
3800 # include <limits.h>
3801 #else
3802 # include <assert.h>
3803 #endif
3804                      Syntax error
3805 _ACEOF
3806 if ac_fn_c_try_cpp "$LINENO"; then :
3807
3808 else
3809   # Broken: fails on valid input.
3810 continue
3811 fi
3812 rm -f conftest.err conftest.i conftest.$ac_ext
3813
3814   # OK, works on sane cases.  Now check whether nonexistent headers
3815   # can be detected and how.
3816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h.  */
3818 #include <ac_nonexistent.h>
3819 _ACEOF
3820 if ac_fn_c_try_cpp "$LINENO"; then :
3821   # Broken: success on invalid input.
3822 continue
3823 else
3824   # Passes both tests.
3825 ac_preproc_ok=:
3826 break
3827 fi
3828 rm -f conftest.err conftest.i conftest.$ac_ext
3829
3830 done
3831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3832 rm -f conftest.i conftest.err conftest.$ac_ext
3833 if $ac_preproc_ok; then :
3834   break
3835 fi
3836
3837     done
3838     ac_cv_prog_CPP=$CPP
3839
3840 fi
3841   CPP=$ac_cv_prog_CPP
3842 else
3843   ac_cv_prog_CPP=$CPP
3844 fi
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3846 $as_echo "$CPP" >&6; }
3847 ac_preproc_ok=false
3848 for ac_c_preproc_warn_flag in '' yes
3849 do
3850   # Use a header file that comes with gcc, so configuring glibc
3851   # with a fresh cross-compiler works.
3852   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3853   # <limits.h> exists even on freestanding compilers.
3854   # On the NeXT, cc -E runs the code through the compiler's parser,
3855   # not just through cpp. "Syntax error" is here to catch this case.
3856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h.  */
3858 #ifdef __STDC__
3859 # include <limits.h>
3860 #else
3861 # include <assert.h>
3862 #endif
3863                      Syntax error
3864 _ACEOF
3865 if ac_fn_c_try_cpp "$LINENO"; then :
3866
3867 else
3868   # Broken: fails on valid input.
3869 continue
3870 fi
3871 rm -f conftest.err conftest.i conftest.$ac_ext
3872
3873   # OK, works on sane cases.  Now check whether nonexistent headers
3874   # can be detected and how.
3875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h.  */
3877 #include <ac_nonexistent.h>
3878 _ACEOF
3879 if ac_fn_c_try_cpp "$LINENO"; then :
3880   # Broken: success on invalid input.
3881 continue
3882 else
3883   # Passes both tests.
3884 ac_preproc_ok=:
3885 break
3886 fi
3887 rm -f conftest.err conftest.i conftest.$ac_ext
3888
3889 done
3890 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3891 rm -f conftest.i conftest.err conftest.$ac_ext
3892 if $ac_preproc_ok; then :
3893
3894 else
3895   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3898 See \`config.log' for more details" "$LINENO" 5; }
3899 fi
3900
3901 ac_ext=c
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906
3907
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3909 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3910 if ${ac_cv_path_GREP+:} false; then :
3911   $as_echo_n "(cached) " >&6
3912 else
3913   if test -z "$GREP"; then
3914   ac_path_GREP_found=false
3915   # Loop through the user's path and test for each of PROGNAME-LIST
3916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3918 do
3919   IFS=$as_save_IFS
3920   test -z "$as_dir" && as_dir=.
3921     for ac_prog in grep ggrep; do
3922     for ac_exec_ext in '' $ac_executable_extensions; do
3923       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3924       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3925 # Check for GNU ac_path_GREP and select it if it is found.
3926   # Check for GNU $ac_path_GREP
3927 case `"$ac_path_GREP" --version 2>&1` in
3928 *GNU*)
3929   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3930 *)
3931   ac_count=0
3932   $as_echo_n 0123456789 >"conftest.in"
3933   while :
3934   do
3935     cat "conftest.in" "conftest.in" >"conftest.tmp"
3936     mv "conftest.tmp" "conftest.in"
3937     cp "conftest.in" "conftest.nl"
3938     $as_echo 'GREP' >> "conftest.nl"
3939     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3940     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3941     as_fn_arith $ac_count + 1 && ac_count=$as_val
3942     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3943       # Best one so far, save it but keep looking for a better one
3944       ac_cv_path_GREP="$ac_path_GREP"
3945       ac_path_GREP_max=$ac_count
3946     fi
3947     # 10*(2^10) chars as input seems more than enough
3948     test $ac_count -gt 10 && break
3949   done
3950   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3951 esac
3952
3953       $ac_path_GREP_found && break 3
3954     done
3955   done
3956   done
3957 IFS=$as_save_IFS
3958   if test -z "$ac_cv_path_GREP"; then
3959     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3960   fi
3961 else
3962   ac_cv_path_GREP=$GREP
3963 fi
3964
3965 fi
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3967 $as_echo "$ac_cv_path_GREP" >&6; }
3968  GREP="$ac_cv_path_GREP"
3969
3970
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3972 $as_echo_n "checking for egrep... " >&6; }
3973 if ${ac_cv_path_EGREP+:} false; then :
3974   $as_echo_n "(cached) " >&6
3975 else
3976   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3977    then ac_cv_path_EGREP="$GREP -E"
3978    else
3979      if test -z "$EGREP"; then
3980   ac_path_EGREP_found=false
3981   # Loop through the user's path and test for each of PROGNAME-LIST
3982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3984 do
3985   IFS=$as_save_IFS
3986   test -z "$as_dir" && as_dir=.
3987     for ac_prog in egrep; do
3988     for ac_exec_ext in '' $ac_executable_extensions; do
3989       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3990       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3991 # Check for GNU ac_path_EGREP and select it if it is found.
3992   # Check for GNU $ac_path_EGREP
3993 case `"$ac_path_EGREP" --version 2>&1` in
3994 *GNU*)
3995   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3996 *)
3997   ac_count=0
3998   $as_echo_n 0123456789 >"conftest.in"
3999   while :
4000   do
4001     cat "conftest.in" "conftest.in" >"conftest.tmp"
4002     mv "conftest.tmp" "conftest.in"
4003     cp "conftest.in" "conftest.nl"
4004     $as_echo 'EGREP' >> "conftest.nl"
4005     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4006     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4007     as_fn_arith $ac_count + 1 && ac_count=$as_val
4008     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4009       # Best one so far, save it but keep looking for a better one
4010       ac_cv_path_EGREP="$ac_path_EGREP"
4011       ac_path_EGREP_max=$ac_count
4012     fi
4013     # 10*(2^10) chars as input seems more than enough
4014     test $ac_count -gt 10 && break
4015   done
4016   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4017 esac
4018
4019       $ac_path_EGREP_found && break 3
4020     done
4021   done
4022   done
4023 IFS=$as_save_IFS
4024   if test -z "$ac_cv_path_EGREP"; then
4025     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4026   fi
4027 else
4028   ac_cv_path_EGREP=$EGREP
4029 fi
4030
4031    fi
4032 fi
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4034 $as_echo "$ac_cv_path_EGREP" >&6; }
4035  EGREP="$ac_cv_path_EGREP"
4036
4037
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4039 $as_echo_n "checking for ANSI C header files... " >&6; }
4040 if ${ac_cv_header_stdc+:} false; then :
4041   $as_echo_n "(cached) " >&6
4042 else
4043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h.  */
4045 #include <stdlib.h>
4046 #include <stdarg.h>
4047 #include <string.h>
4048 #include <float.h>
4049
4050 int
4051 main ()
4052 {
4053
4054   ;
4055   return 0;
4056 }
4057 _ACEOF
4058 if ac_fn_c_try_compile "$LINENO"; then :
4059   ac_cv_header_stdc=yes
4060 else
4061   ac_cv_header_stdc=no
4062 fi
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064
4065 if test $ac_cv_header_stdc = yes; then
4066   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h.  */
4069 #include <string.h>
4070
4071 _ACEOF
4072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4073   $EGREP "memchr" >/dev/null 2>&1; then :
4074
4075 else
4076   ac_cv_header_stdc=no
4077 fi
4078 rm -f conftest*
4079
4080 fi
4081
4082 if test $ac_cv_header_stdc = yes; then
4083   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h.  */
4086 #include <stdlib.h>
4087
4088 _ACEOF
4089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4090   $EGREP "free" >/dev/null 2>&1; then :
4091
4092 else
4093   ac_cv_header_stdc=no
4094 fi
4095 rm -f conftest*
4096
4097 fi
4098
4099 if test $ac_cv_header_stdc = yes; then
4100   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4101   if test "$cross_compiling" = yes; then :
4102   :
4103 else
4104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h.  */
4106 #include <ctype.h>
4107 #include <stdlib.h>
4108 #if ((' ' & 0x0FF) == 0x020)
4109 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4110 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4111 #else
4112 # define ISLOWER(c) \
4113                    (('a' <= (c) && (c) <= 'i') \
4114                      || ('j' <= (c) && (c) <= 'r') \
4115                      || ('s' <= (c) && (c) <= 'z'))
4116 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4117 #endif
4118
4119 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4120 int
4121 main ()
4122 {
4123   int i;
4124   for (i = 0; i < 256; i++)
4125     if (XOR (islower (i), ISLOWER (i))
4126         || toupper (i) != TOUPPER (i))
4127       return 2;
4128   return 0;
4129 }
4130 _ACEOF
4131 if ac_fn_c_try_run "$LINENO"; then :
4132
4133 else
4134   ac_cv_header_stdc=no
4135 fi
4136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4137   conftest.$ac_objext conftest.beam conftest.$ac_ext
4138 fi
4139
4140 fi
4141 fi
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4143 $as_echo "$ac_cv_header_stdc" >&6; }
4144 if test $ac_cv_header_stdc = yes; then
4145
4146 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4147
4148 fi
4149
4150 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4151 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4152                   inttypes.h stdint.h unistd.h
4153 do :
4154   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4155 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4156 "
4157 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4158   cat >>confdefs.h <<_ACEOF
4159 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4160 _ACEOF
4161
4162 fi
4163
4164 done
4165
4166
4167
4168
4169
4170
4171 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4172 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4173   CLANGCC="yes"
4174 else
4175   CLANGCC="no"
4176 fi
4177
4178 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4179 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4180   INTELCC="yes"
4181 else
4182   INTELCC="no"
4183 fi
4184
4185 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4186 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4187   SUNCC="yes"
4188 else
4189   SUNCC="no"
4190 fi
4191
4192
4193
4194
4195
4196
4197
4198
4199 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4200         if test -n "$ac_tool_prefix"; then
4201   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4202 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204 $as_echo_n "checking for $ac_word... " >&6; }
4205 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4206   $as_echo_n "(cached) " >&6
4207 else
4208   case $PKG_CONFIG in
4209   [\\/]* | ?:[\\/]*)
4210   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4211   ;;
4212   *)
4213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4215 do
4216   IFS=$as_save_IFS
4217   test -z "$as_dir" && as_dir=.
4218     for ac_exec_ext in '' $ac_executable_extensions; do
4219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4220     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4222     break 2
4223   fi
4224 done
4225   done
4226 IFS=$as_save_IFS
4227
4228   ;;
4229 esac
4230 fi
4231 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4232 if test -n "$PKG_CONFIG"; then
4233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4234 $as_echo "$PKG_CONFIG" >&6; }
4235 else
4236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237 $as_echo "no" >&6; }
4238 fi
4239
4240
4241 fi
4242 if test -z "$ac_cv_path_PKG_CONFIG"; then
4243   ac_pt_PKG_CONFIG=$PKG_CONFIG
4244   # Extract the first word of "pkg-config", so it can be a program name with args.
4245 set dummy pkg-config; ac_word=$2
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247 $as_echo_n "checking for $ac_word... " >&6; }
4248 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4249   $as_echo_n "(cached) " >&6
4250 else
4251   case $ac_pt_PKG_CONFIG in
4252   [\\/]* | ?:[\\/]*)
4253   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4254   ;;
4255   *)
4256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4258 do
4259   IFS=$as_save_IFS
4260   test -z "$as_dir" && as_dir=.
4261     for ac_exec_ext in '' $ac_executable_extensions; do
4262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4263     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4265     break 2
4266   fi
4267 done
4268   done
4269 IFS=$as_save_IFS
4270
4271   ;;
4272 esac
4273 fi
4274 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4275 if test -n "$ac_pt_PKG_CONFIG"; then
4276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4277 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4278 else
4279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280 $as_echo "no" >&6; }
4281 fi
4282
4283   if test "x$ac_pt_PKG_CONFIG" = x; then
4284     PKG_CONFIG=""
4285   else
4286     case $cross_compiling:$ac_tool_warned in
4287 yes:)
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4290 ac_tool_warned=yes ;;
4291 esac
4292     PKG_CONFIG=$ac_pt_PKG_CONFIG
4293   fi
4294 else
4295   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4296 fi
4297
4298 fi
4299 if test -n "$PKG_CONFIG"; then
4300         _pkg_min_version=0.9.0
4301         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4302 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4303         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4304                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4305 $as_echo "yes" >&6; }
4306         else
4307                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4308 $as_echo "no" >&6; }
4309                 PKG_CONFIG=""
4310         fi
4311 fi
4312 # Make sure we can run config.sub.
4313 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4314   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4315
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4317 $as_echo_n "checking build system type... " >&6; }
4318 if ${ac_cv_build+:} false; then :
4319   $as_echo_n "(cached) " >&6
4320 else
4321   ac_build_alias=$build_alias
4322 test "x$ac_build_alias" = x &&
4323   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4324 test "x$ac_build_alias" = x &&
4325   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4326 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4327   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4328
4329 fi
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4331 $as_echo "$ac_cv_build" >&6; }
4332 case $ac_cv_build in
4333 *-*-*) ;;
4334 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4335 esac
4336 build=$ac_cv_build
4337 ac_save_IFS=$IFS; IFS='-'
4338 set x $ac_cv_build
4339 shift
4340 build_cpu=$1
4341 build_vendor=$2
4342 shift; shift
4343 # Remember, the first character of IFS is used to create $*,
4344 # except with old shells:
4345 build_os=$*
4346 IFS=$ac_save_IFS
4347 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4348
4349
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4351 $as_echo_n "checking host system type... " >&6; }
4352 if ${ac_cv_host+:} false; then :
4353   $as_echo_n "(cached) " >&6
4354 else
4355   if test "x$host_alias" = x; then
4356   ac_cv_host=$ac_cv_build
4357 else
4358   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4359     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4360 fi
4361
4362 fi
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4364 $as_echo "$ac_cv_host" >&6; }
4365 case $ac_cv_host in
4366 *-*-*) ;;
4367 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4368 esac
4369 host=$ac_cv_host
4370 ac_save_IFS=$IFS; IFS='-'
4371 set x $ac_cv_host
4372 shift
4373 host_cpu=$1
4374 host_vendor=$2
4375 shift; shift
4376 # Remember, the first character of IFS is used to create $*,
4377 # except with old shells:
4378 host_os=$*
4379 IFS=$ac_save_IFS
4380 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4381
4382
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4384 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4385 if ${ac_cv_path_SED+:} false; then :
4386   $as_echo_n "(cached) " >&6
4387 else
4388             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4389      for ac_i in 1 2 3 4 5 6 7; do
4390        ac_script="$ac_script$as_nl$ac_script"
4391      done
4392      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4393      { ac_script=; unset ac_script;}
4394      if test -z "$SED"; then
4395   ac_path_SED_found=false
4396   # Loop through the user's path and test for each of PROGNAME-LIST
4397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400   IFS=$as_save_IFS
4401   test -z "$as_dir" && as_dir=.
4402     for ac_prog in sed gsed; do
4403     for ac_exec_ext in '' $ac_executable_extensions; do
4404       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4405       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4406 # Check for GNU ac_path_SED and select it if it is found.
4407   # Check for GNU $ac_path_SED
4408 case `"$ac_path_SED" --version 2>&1` in
4409 *GNU*)
4410   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4411 *)
4412   ac_count=0
4413   $as_echo_n 0123456789 >"conftest.in"
4414   while :
4415   do
4416     cat "conftest.in" "conftest.in" >"conftest.tmp"
4417     mv "conftest.tmp" "conftest.in"
4418     cp "conftest.in" "conftest.nl"
4419     $as_echo '' >> "conftest.nl"
4420     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4421     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4422     as_fn_arith $ac_count + 1 && ac_count=$as_val
4423     if test $ac_count -gt ${ac_path_SED_max-0}; then
4424       # Best one so far, save it but keep looking for a better one
4425       ac_cv_path_SED="$ac_path_SED"
4426       ac_path_SED_max=$ac_count
4427     fi
4428     # 10*(2^10) chars as input seems more than enough
4429     test $ac_count -gt 10 && break
4430   done
4431   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4432 esac
4433
4434       $ac_path_SED_found && break 3
4435     done
4436   done
4437   done
4438 IFS=$as_save_IFS
4439   if test -z "$ac_cv_path_SED"; then
4440     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4441   fi
4442 else
4443   ac_cv_path_SED=$SED
4444 fi
4445
4446 fi
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4448 $as_echo "$ac_cv_path_SED" >&6; }
4449  SED="$ac_cv_path_SED"
4450   rm -f conftest.sed
4451
4452
4453
4454
4455
4456
4457 # Check whether --enable-selective-werror was given.
4458 if test "${enable_selective_werror+set}" = set; then :
4459   enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4460 else
4461   SELECTIVE_WERROR=yes
4462 fi
4463
4464
4465
4466
4467
4468 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4469 if test "x$SUNCC" = "xyes"; then
4470     BASE_CFLAGS="-v"
4471 else
4472     BASE_CFLAGS=""
4473 fi
4474
4475 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489 xorg_testset_save_CFLAGS="$CFLAGS"
4490
4491 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4492         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4493         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4494 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4495 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4496   $as_echo_n "(cached) " >&6
4497 else
4498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h.  */
4500 int i;
4501 _ACEOF
4502 if ac_fn_c_try_compile "$LINENO"; then :
4503   xorg_cv_cc_flag_unknown_warning_option=yes
4504 else
4505   xorg_cv_cc_flag_unknown_warning_option=no
4506 fi
4507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508 fi
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4510 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4511         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4512         CFLAGS="$xorg_testset_save_CFLAGS"
4513 fi
4514
4515 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4516         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4517                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4518         fi
4519         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4520         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4521 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4522 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4523   $as_echo_n "(cached) " >&6
4524 else
4525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h.  */
4527 int i;
4528 _ACEOF
4529 if ac_fn_c_try_compile "$LINENO"; then :
4530   xorg_cv_cc_flag_unused_command_line_argument=yes
4531 else
4532   xorg_cv_cc_flag_unused_command_line_argument=no
4533 fi
4534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4535 fi
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4537 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4538         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4539         CFLAGS="$xorg_testset_save_CFLAGS"
4540 fi
4541
4542 found="no"
4543
4544         if test $found = "no" ; then
4545                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4546                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4547                 fi
4548
4549                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4550                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4551                 fi
4552
4553                 CFLAGS="$CFLAGS -Wall"
4554
4555                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4556 $as_echo_n "checking if $CC supports-Wall... " >&6; }
4557                 cacheid=xorg_cv_cc_flag__Wall
4558                 if eval \${$cacheid+:} false; then :
4559   $as_echo_n "(cached) " >&6
4560 else
4561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h.  */
4563 int i;
4564 int
4565 main ()
4566 {
4567
4568   ;
4569   return 0;
4570 }
4571 _ACEOF
4572 if ac_fn_c_try_link "$LINENO"; then :
4573   eval $cacheid=yes
4574 else
4575   eval $cacheid=no
4576 fi
4577 rm -f core conftest.err conftest.$ac_objext \
4578     conftest$ac_exeext conftest.$ac_ext
4579 fi
4580
4581
4582                 CFLAGS="$xorg_testset_save_CFLAGS"
4583
4584                 eval supported=\$$cacheid
4585                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4586 $as_echo "$supported" >&6; }
4587                 if test "$supported" = "yes" ; then
4588                         BASE_CFLAGS="$BASE_CFLAGS -Wall"
4589                         found="yes"
4590                 fi
4591         fi
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607 xorg_testset_save_CFLAGS="$CFLAGS"
4608
4609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4610         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4611         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4612 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4613 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4614   $as_echo_n "(cached) " >&6
4615 else
4616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h.  */
4618 int i;
4619 _ACEOF
4620 if ac_fn_c_try_compile "$LINENO"; then :
4621   xorg_cv_cc_flag_unknown_warning_option=yes
4622 else
4623   xorg_cv_cc_flag_unknown_warning_option=no
4624 fi
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626 fi
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4628 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4629         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4630         CFLAGS="$xorg_testset_save_CFLAGS"
4631 fi
4632
4633 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4634         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4635                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4636         fi
4637         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4638         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4639 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4640 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4641   $as_echo_n "(cached) " >&6
4642 else
4643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h.  */
4645 int i;
4646 _ACEOF
4647 if ac_fn_c_try_compile "$LINENO"; then :
4648   xorg_cv_cc_flag_unused_command_line_argument=yes
4649 else
4650   xorg_cv_cc_flag_unused_command_line_argument=no
4651 fi
4652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653 fi
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4655 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4656         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4657         CFLAGS="$xorg_testset_save_CFLAGS"
4658 fi
4659
4660 found="no"
4661
4662         if test $found = "no" ; then
4663                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4664                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4665                 fi
4666
4667                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4668                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4669                 fi
4670
4671                 CFLAGS="$CFLAGS -Wpointer-arith"
4672
4673                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4674 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4675                 cacheid=xorg_cv_cc_flag__Wpointer_arith
4676                 if eval \${$cacheid+:} false; then :
4677   $as_echo_n "(cached) " >&6
4678 else
4679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h.  */
4681 int i;
4682 int
4683 main ()
4684 {
4685
4686   ;
4687   return 0;
4688 }
4689 _ACEOF
4690 if ac_fn_c_try_link "$LINENO"; then :
4691   eval $cacheid=yes
4692 else
4693   eval $cacheid=no
4694 fi
4695 rm -f core conftest.err conftest.$ac_objext \
4696     conftest$ac_exeext conftest.$ac_ext
4697 fi
4698
4699
4700                 CFLAGS="$xorg_testset_save_CFLAGS"
4701
4702                 eval supported=\$$cacheid
4703                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4704 $as_echo "$supported" >&6; }
4705                 if test "$supported" = "yes" ; then
4706                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4707                         found="yes"
4708                 fi
4709         fi
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725 xorg_testset_save_CFLAGS="$CFLAGS"
4726
4727 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4728         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4729         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4730 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4731 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4732   $as_echo_n "(cached) " >&6
4733 else
4734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h.  */
4736 int i;
4737 _ACEOF
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739   xorg_cv_cc_flag_unknown_warning_option=yes
4740 else
4741   xorg_cv_cc_flag_unknown_warning_option=no
4742 fi
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 fi
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4746 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4747         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4748         CFLAGS="$xorg_testset_save_CFLAGS"
4749 fi
4750
4751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4752         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4753                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4754         fi
4755         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4756         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4757 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4758 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4759   $as_echo_n "(cached) " >&6
4760 else
4761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h.  */
4763 int i;
4764 _ACEOF
4765 if ac_fn_c_try_compile "$LINENO"; then :
4766   xorg_cv_cc_flag_unused_command_line_argument=yes
4767 else
4768   xorg_cv_cc_flag_unused_command_line_argument=no
4769 fi
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 fi
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4773 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4774         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4775         CFLAGS="$xorg_testset_save_CFLAGS"
4776 fi
4777
4778 found="no"
4779
4780         if test $found = "no" ; then
4781                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4782                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4783                 fi
4784
4785                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4786                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4787                 fi
4788
4789                 CFLAGS="$CFLAGS -Wmissing-declarations"
4790
4791                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4792 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
4793                 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4794                 if eval \${$cacheid+:} false; then :
4795   $as_echo_n "(cached) " >&6
4796 else
4797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h.  */
4799 int i;
4800 int
4801 main ()
4802 {
4803
4804   ;
4805   return 0;
4806 }
4807 _ACEOF
4808 if ac_fn_c_try_link "$LINENO"; then :
4809   eval $cacheid=yes
4810 else
4811   eval $cacheid=no
4812 fi
4813 rm -f core conftest.err conftest.$ac_objext \
4814     conftest$ac_exeext conftest.$ac_ext
4815 fi
4816
4817
4818                 CFLAGS="$xorg_testset_save_CFLAGS"
4819
4820                 eval supported=\$$cacheid
4821                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4822 $as_echo "$supported" >&6; }
4823                 if test "$supported" = "yes" ; then
4824                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4825                         found="yes"
4826                 fi
4827         fi
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843 xorg_testset_save_CFLAGS="$CFLAGS"
4844
4845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4846         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4847         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4848 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4849 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4850   $as_echo_n "(cached) " >&6
4851 else
4852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h.  */
4854 int i;
4855 _ACEOF
4856 if ac_fn_c_try_compile "$LINENO"; then :
4857   xorg_cv_cc_flag_unknown_warning_option=yes
4858 else
4859   xorg_cv_cc_flag_unknown_warning_option=no
4860 fi
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862 fi
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4864 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4865         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4866         CFLAGS="$xorg_testset_save_CFLAGS"
4867 fi
4868
4869 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4870         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4871                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4872         fi
4873         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4874         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4875 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4876 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4877   $as_echo_n "(cached) " >&6
4878 else
4879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h.  */
4881 int i;
4882 _ACEOF
4883 if ac_fn_c_try_compile "$LINENO"; then :
4884   xorg_cv_cc_flag_unused_command_line_argument=yes
4885 else
4886   xorg_cv_cc_flag_unused_command_line_argument=no
4887 fi
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 fi
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4891 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4892         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4893         CFLAGS="$xorg_testset_save_CFLAGS"
4894 fi
4895
4896 found="no"
4897
4898         if test $found = "no" ; then
4899                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4900                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4901                 fi
4902
4903                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4904                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4905                 fi
4906
4907                 CFLAGS="$CFLAGS -Wformat=2"
4908
4909                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
4910 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
4911                 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4912                 if eval \${$cacheid+:} false; then :
4913   $as_echo_n "(cached) " >&6
4914 else
4915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h.  */
4917 int i;
4918 int
4919 main ()
4920 {
4921
4922   ;
4923   return 0;
4924 }
4925 _ACEOF
4926 if ac_fn_c_try_link "$LINENO"; then :
4927   eval $cacheid=yes
4928 else
4929   eval $cacheid=no
4930 fi
4931 rm -f core conftest.err conftest.$ac_objext \
4932     conftest$ac_exeext conftest.$ac_ext
4933 fi
4934
4935
4936                 CFLAGS="$xorg_testset_save_CFLAGS"
4937
4938                 eval supported=\$$cacheid
4939                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4940 $as_echo "$supported" >&6; }
4941                 if test "$supported" = "yes" ; then
4942                         BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4943                         found="yes"
4944                 fi
4945         fi
4946
4947         if test $found = "no" ; then
4948                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4949                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4950                 fi
4951
4952                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4953                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4954                 fi
4955
4956                 CFLAGS="$CFLAGS -Wformat"
4957
4958                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
4959 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
4960                 cacheid=xorg_cv_cc_flag__Wformat
4961                 if eval \${$cacheid+:} false; then :
4962   $as_echo_n "(cached) " >&6
4963 else
4964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965 /* end confdefs.h.  */
4966 int i;
4967 int
4968 main ()
4969 {
4970
4971   ;
4972   return 0;
4973 }
4974 _ACEOF
4975 if ac_fn_c_try_link "$LINENO"; then :
4976   eval $cacheid=yes
4977 else
4978   eval $cacheid=no
4979 fi
4980 rm -f core conftest.err conftest.$ac_objext \
4981     conftest$ac_exeext conftest.$ac_ext
4982 fi
4983
4984
4985                 CFLAGS="$xorg_testset_save_CFLAGS"
4986
4987                 eval supported=\$$cacheid
4988                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4989 $as_echo "$supported" >&6; }
4990                 if test "$supported" = "yes" ; then
4991                         BASE_CFLAGS="$BASE_CFLAGS -Wformat"
4992                         found="yes"
4993                 fi
4994         fi
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012 xorg_testset_save_CFLAGS="$CFLAGS"
5013
5014 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5015         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5016         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5017 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5018 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5019   $as_echo_n "(cached) " >&6
5020 else
5021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022 /* end confdefs.h.  */
5023 int i;
5024 _ACEOF
5025 if ac_fn_c_try_compile "$LINENO"; then :
5026   xorg_cv_cc_flag_unknown_warning_option=yes
5027 else
5028   xorg_cv_cc_flag_unknown_warning_option=no
5029 fi
5030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031 fi
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5033 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5034         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5035         CFLAGS="$xorg_testset_save_CFLAGS"
5036 fi
5037
5038 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5039         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5040                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5041         fi
5042         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5043         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5044 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5045 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5046   $as_echo_n "(cached) " >&6
5047 else
5048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h.  */
5050 int i;
5051 _ACEOF
5052 if ac_fn_c_try_compile "$LINENO"; then :
5053   xorg_cv_cc_flag_unused_command_line_argument=yes
5054 else
5055   xorg_cv_cc_flag_unused_command_line_argument=no
5056 fi
5057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058 fi
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5060 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5061         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5062         CFLAGS="$xorg_testset_save_CFLAGS"
5063 fi
5064
5065 found="no"
5066
5067         if test $found = "no" ; then
5068                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5069                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5070                 fi
5071
5072                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5073                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5074                 fi
5075
5076                 CFLAGS="$CFLAGS -Wstrict-prototypes"
5077
5078                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5079 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5080                 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5081                 if eval \${$cacheid+:} false; then :
5082   $as_echo_n "(cached) " >&6
5083 else
5084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085 /* end confdefs.h.  */
5086 int i;
5087 int
5088 main ()
5089 {
5090
5091   ;
5092   return 0;
5093 }
5094 _ACEOF
5095 if ac_fn_c_try_link "$LINENO"; then :
5096   eval $cacheid=yes
5097 else
5098   eval $cacheid=no
5099 fi
5100 rm -f core conftest.err conftest.$ac_objext \
5101     conftest$ac_exeext conftest.$ac_ext
5102 fi
5103
5104
5105                 CFLAGS="$xorg_testset_save_CFLAGS"
5106
5107                 eval supported=\$$cacheid
5108                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5109 $as_echo "$supported" >&6; }
5110                 if test "$supported" = "yes" ; then
5111                         BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5112                         found="yes"
5113                 fi
5114         fi
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130 xorg_testset_save_CFLAGS="$CFLAGS"
5131
5132 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5133         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5134         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5135 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5136 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5137   $as_echo_n "(cached) " >&6
5138 else
5139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h.  */
5141 int i;
5142 _ACEOF
5143 if ac_fn_c_try_compile "$LINENO"; then :
5144   xorg_cv_cc_flag_unknown_warning_option=yes
5145 else
5146   xorg_cv_cc_flag_unknown_warning_option=no
5147 fi
5148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149 fi
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5151 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5152         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5153         CFLAGS="$xorg_testset_save_CFLAGS"
5154 fi
5155
5156 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5157         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5158                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5159         fi
5160         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5161         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5162 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5163 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5164   $as_echo_n "(cached) " >&6
5165 else
5166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h.  */
5168 int i;
5169 _ACEOF
5170 if ac_fn_c_try_compile "$LINENO"; then :
5171   xorg_cv_cc_flag_unused_command_line_argument=yes
5172 else
5173   xorg_cv_cc_flag_unused_command_line_argument=no
5174 fi
5175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176 fi
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5178 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5179         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5180         CFLAGS="$xorg_testset_save_CFLAGS"
5181 fi
5182
5183 found="no"
5184
5185         if test $found = "no" ; then
5186                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5187                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5188                 fi
5189
5190                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5191                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5192                 fi
5193
5194                 CFLAGS="$CFLAGS -Wmissing-prototypes"
5195
5196                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5197 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5198                 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5199                 if eval \${$cacheid+:} false; then :
5200   $as_echo_n "(cached) " >&6
5201 else
5202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h.  */
5204 int i;
5205 int
5206 main ()
5207 {
5208
5209   ;
5210   return 0;
5211 }
5212 _ACEOF
5213 if ac_fn_c_try_link "$LINENO"; then :
5214   eval $cacheid=yes
5215 else
5216   eval $cacheid=no
5217 fi
5218 rm -f core conftest.err conftest.$ac_objext \
5219     conftest$ac_exeext conftest.$ac_ext
5220 fi
5221
5222
5223                 CFLAGS="$xorg_testset_save_CFLAGS"
5224
5225                 eval supported=\$$cacheid
5226                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5227 $as_echo "$supported" >&6; }
5228                 if test "$supported" = "yes" ; then
5229                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5230                         found="yes"
5231                 fi
5232         fi
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248 xorg_testset_save_CFLAGS="$CFLAGS"
5249
5250 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5251         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5252         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5253 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5254 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5255   $as_echo_n "(cached) " >&6
5256 else
5257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h.  */
5259 int i;
5260 _ACEOF
5261 if ac_fn_c_try_compile "$LINENO"; then :
5262   xorg_cv_cc_flag_unknown_warning_option=yes
5263 else
5264   xorg_cv_cc_flag_unknown_warning_option=no
5265 fi
5266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267 fi
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5269 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5270         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5271         CFLAGS="$xorg_testset_save_CFLAGS"
5272 fi
5273
5274 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5275         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5276                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5277         fi
5278         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5279         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5280 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5281 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5282   $as_echo_n "(cached) " >&6
5283 else
5284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h.  */
5286 int i;
5287 _ACEOF
5288 if ac_fn_c_try_compile "$LINENO"; then :
5289   xorg_cv_cc_flag_unused_command_line_argument=yes
5290 else
5291   xorg_cv_cc_flag_unused_command_line_argument=no
5292 fi
5293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294 fi
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5296 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5297         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5298         CFLAGS="$xorg_testset_save_CFLAGS"
5299 fi
5300
5301 found="no"
5302
5303         if test $found = "no" ; then
5304                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5305                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5306                 fi
5307
5308                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5309                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5310                 fi
5311
5312                 CFLAGS="$CFLAGS -Wnested-externs"
5313
5314                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5315 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5316                 cacheid=xorg_cv_cc_flag__Wnested_externs
5317                 if eval \${$cacheid+:} false; then :
5318   $as_echo_n "(cached) " >&6
5319 else
5320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h.  */
5322 int i;
5323 int
5324 main ()
5325 {
5326
5327   ;
5328   return 0;
5329 }
5330 _ACEOF
5331 if ac_fn_c_try_link "$LINENO"; then :
5332   eval $cacheid=yes
5333 else
5334   eval $cacheid=no
5335 fi
5336 rm -f core conftest.err conftest.$ac_objext \
5337     conftest$ac_exeext conftest.$ac_ext
5338 fi
5339
5340
5341                 CFLAGS="$xorg_testset_save_CFLAGS"
5342
5343                 eval supported=\$$cacheid
5344                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5345 $as_echo "$supported" >&6; }
5346                 if test "$supported" = "yes" ; then
5347                         BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5348                         found="yes"
5349                 fi
5350         fi
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366 xorg_testset_save_CFLAGS="$CFLAGS"
5367
5368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5369         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5370         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5371 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5372 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5373   $as_echo_n "(cached) " >&6
5374 else
5375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h.  */
5377 int i;
5378 _ACEOF
5379 if ac_fn_c_try_compile "$LINENO"; then :
5380   xorg_cv_cc_flag_unknown_warning_option=yes
5381 else
5382   xorg_cv_cc_flag_unknown_warning_option=no
5383 fi
5384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385 fi
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5387 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5388         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5389         CFLAGS="$xorg_testset_save_CFLAGS"
5390 fi
5391
5392 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5393         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5394                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5395         fi
5396         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5397         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5398 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5399 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5400   $as_echo_n "(cached) " >&6
5401 else
5402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h.  */
5404 int i;
5405 _ACEOF
5406 if ac_fn_c_try_compile "$LINENO"; then :
5407   xorg_cv_cc_flag_unused_command_line_argument=yes
5408 else
5409   xorg_cv_cc_flag_unused_command_line_argument=no
5410 fi
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412 fi
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5414 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5415         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5416         CFLAGS="$xorg_testset_save_CFLAGS"
5417 fi
5418
5419 found="no"
5420
5421         if test $found = "no" ; then
5422                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5423                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5424                 fi
5425
5426                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5427                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5428                 fi
5429
5430                 CFLAGS="$CFLAGS -Wbad-function-cast"
5431
5432                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5433 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5434                 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5435                 if eval \${$cacheid+:} false; then :
5436   $as_echo_n "(cached) " >&6
5437 else
5438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h.  */
5440 int i;
5441 int
5442 main ()
5443 {
5444
5445   ;
5446   return 0;
5447 }
5448 _ACEOF
5449 if ac_fn_c_try_link "$LINENO"; then :
5450   eval $cacheid=yes
5451 else
5452   eval $cacheid=no
5453 fi
5454 rm -f core conftest.err conftest.$ac_objext \
5455     conftest$ac_exeext conftest.$ac_ext
5456 fi
5457
5458
5459                 CFLAGS="$xorg_testset_save_CFLAGS"
5460
5461                 eval supported=\$$cacheid
5462                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5463 $as_echo "$supported" >&6; }
5464                 if test "$supported" = "yes" ; then
5465                         BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5466                         found="yes"
5467                 fi
5468         fi
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484 xorg_testset_save_CFLAGS="$CFLAGS"
5485
5486 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5487         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5488         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5489 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5490 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5491   $as_echo_n "(cached) " >&6
5492 else
5493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h.  */
5495 int i;
5496 _ACEOF
5497 if ac_fn_c_try_compile "$LINENO"; then :
5498   xorg_cv_cc_flag_unknown_warning_option=yes
5499 else
5500   xorg_cv_cc_flag_unknown_warning_option=no
5501 fi
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503 fi
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5505 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5506         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5507         CFLAGS="$xorg_testset_save_CFLAGS"
5508 fi
5509
5510 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5511         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5512                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5513         fi
5514         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5515         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5516 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5517 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5518   $as_echo_n "(cached) " >&6
5519 else
5520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h.  */
5522 int i;
5523 _ACEOF
5524 if ac_fn_c_try_compile "$LINENO"; then :
5525   xorg_cv_cc_flag_unused_command_line_argument=yes
5526 else
5527   xorg_cv_cc_flag_unused_command_line_argument=no
5528 fi
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 fi
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5532 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5533         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5534         CFLAGS="$xorg_testset_save_CFLAGS"
5535 fi
5536
5537 found="no"
5538
5539         if test $found = "no" ; then
5540                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5541                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5542                 fi
5543
5544                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5545                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5546                 fi
5547
5548                 CFLAGS="$CFLAGS -Wold-style-definition"
5549
5550                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5551 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5552                 cacheid=xorg_cv_cc_flag__Wold_style_definition
5553                 if eval \${$cacheid+:} false; then :
5554   $as_echo_n "(cached) " >&6
5555 else
5556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h.  */
5558 int i;
5559 int
5560 main ()
5561 {
5562
5563   ;
5564   return 0;
5565 }
5566 _ACEOF
5567 if ac_fn_c_try_link "$LINENO"; then :
5568   eval $cacheid=yes
5569 else
5570   eval $cacheid=no
5571 fi
5572 rm -f core conftest.err conftest.$ac_objext \
5573     conftest$ac_exeext conftest.$ac_ext
5574 fi
5575
5576
5577                 CFLAGS="$xorg_testset_save_CFLAGS"
5578
5579                 eval supported=\$$cacheid
5580                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5581 $as_echo "$supported" >&6; }
5582                 if test "$supported" = "yes" ; then
5583                         BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5584                         found="yes"
5585                 fi
5586         fi
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602 xorg_testset_save_CFLAGS="$CFLAGS"
5603
5604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5605         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5606         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5607 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5608 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5609   $as_echo_n "(cached) " >&6
5610 else
5611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h.  */
5613 int i;
5614 _ACEOF
5615 if ac_fn_c_try_compile "$LINENO"; then :
5616   xorg_cv_cc_flag_unknown_warning_option=yes
5617 else
5618   xorg_cv_cc_flag_unknown_warning_option=no
5619 fi
5620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621 fi
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5623 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5624         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5625         CFLAGS="$xorg_testset_save_CFLAGS"
5626 fi
5627
5628 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5629         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5630                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5631         fi
5632         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5633         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5634 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5635 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5636   $as_echo_n "(cached) " >&6
5637 else
5638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h.  */
5640 int i;
5641 _ACEOF
5642 if ac_fn_c_try_compile "$LINENO"; then :
5643   xorg_cv_cc_flag_unused_command_line_argument=yes
5644 else
5645   xorg_cv_cc_flag_unused_command_line_argument=no
5646 fi
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648 fi
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5650 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5651         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5652         CFLAGS="$xorg_testset_save_CFLAGS"
5653 fi
5654
5655 found="no"
5656
5657         if test $found = "no" ; then
5658                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5659                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5660                 fi
5661
5662                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5663                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5664                 fi
5665
5666                 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5667
5668                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5669 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5670                 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5671                 if eval \${$cacheid+:} false; then :
5672   $as_echo_n "(cached) " >&6
5673 else
5674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h.  */
5676 int i;
5677 int
5678 main ()
5679 {
5680
5681   ;
5682   return 0;
5683 }
5684 _ACEOF
5685 if ac_fn_c_try_link "$LINENO"; then :
5686   eval $cacheid=yes
5687 else
5688   eval $cacheid=no
5689 fi
5690 rm -f core conftest.err conftest.$ac_objext \
5691     conftest$ac_exeext conftest.$ac_ext
5692 fi
5693
5694
5695                 CFLAGS="$xorg_testset_save_CFLAGS"
5696
5697                 eval supported=\$$cacheid
5698                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5699 $as_echo "$supported" >&6; }
5700                 if test "$supported" = "yes" ; then
5701                         BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5702                         found="yes"
5703                 fi
5704         fi
5705
5706
5707
5708
5709
5710 # This chunk adds additional warnings that could catch undesired effects.
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724 xorg_testset_save_CFLAGS="$CFLAGS"
5725
5726 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5727         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5728         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5729 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5730 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5731   $as_echo_n "(cached) " >&6
5732 else
5733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h.  */
5735 int i;
5736 _ACEOF
5737 if ac_fn_c_try_compile "$LINENO"; then :
5738   xorg_cv_cc_flag_unknown_warning_option=yes
5739 else
5740   xorg_cv_cc_flag_unknown_warning_option=no
5741 fi
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 fi
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5745 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5746         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5747         CFLAGS="$xorg_testset_save_CFLAGS"
5748 fi
5749
5750 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5751         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5752                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5753         fi
5754         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5755         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5756 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5757 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5758   $as_echo_n "(cached) " >&6
5759 else
5760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h.  */
5762 int i;
5763 _ACEOF
5764 if ac_fn_c_try_compile "$LINENO"; then :
5765   xorg_cv_cc_flag_unused_command_line_argument=yes
5766 else
5767   xorg_cv_cc_flag_unused_command_line_argument=no
5768 fi
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770 fi
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5772 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5773         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5774         CFLAGS="$xorg_testset_save_CFLAGS"
5775 fi
5776
5777 found="no"
5778
5779         if test $found = "no" ; then
5780                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5781                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5782                 fi
5783
5784                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5785                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5786                 fi
5787
5788                 CFLAGS="$CFLAGS -Wunused"
5789
5790                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5791 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
5792                 cacheid=xorg_cv_cc_flag__Wunused
5793                 if eval \${$cacheid+:} false; then :
5794   $as_echo_n "(cached) " >&6
5795 else
5796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h.  */
5798 int i;
5799 int
5800 main ()
5801 {
5802
5803   ;
5804   return 0;
5805 }
5806 _ACEOF
5807 if ac_fn_c_try_link "$LINENO"; then :
5808   eval $cacheid=yes
5809 else
5810   eval $cacheid=no
5811 fi
5812 rm -f core conftest.err conftest.$ac_objext \
5813     conftest$ac_exeext conftest.$ac_ext
5814 fi
5815
5816
5817                 CFLAGS="$xorg_testset_save_CFLAGS"
5818
5819                 eval supported=\$$cacheid
5820                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5821 $as_echo "$supported" >&6; }
5822                 if test "$supported" = "yes" ; then
5823                         BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5824                         found="yes"
5825                 fi
5826         fi
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842 xorg_testset_save_CFLAGS="$CFLAGS"
5843
5844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5845         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5846         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5847 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5848 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5849   $as_echo_n "(cached) " >&6
5850 else
5851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h.  */
5853 int i;
5854 _ACEOF
5855 if ac_fn_c_try_compile "$LINENO"; then :
5856   xorg_cv_cc_flag_unknown_warning_option=yes
5857 else
5858   xorg_cv_cc_flag_unknown_warning_option=no
5859 fi
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 fi
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5863 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5864         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5865         CFLAGS="$xorg_testset_save_CFLAGS"
5866 fi
5867
5868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5869         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5870                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5871         fi
5872         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5873         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5874 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5875 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5876   $as_echo_n "(cached) " >&6
5877 else
5878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879 /* end confdefs.h.  */
5880 int i;
5881 _ACEOF
5882 if ac_fn_c_try_compile "$LINENO"; then :
5883   xorg_cv_cc_flag_unused_command_line_argument=yes
5884 else
5885   xorg_cv_cc_flag_unused_command_line_argument=no
5886 fi
5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888 fi
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5890 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5891         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5892         CFLAGS="$xorg_testset_save_CFLAGS"
5893 fi
5894
5895 found="no"
5896
5897         if test $found = "no" ; then
5898                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5899                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5900                 fi
5901
5902                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5903                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5904                 fi
5905
5906                 CFLAGS="$CFLAGS -Wuninitialized"
5907
5908                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
5909 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
5910                 cacheid=xorg_cv_cc_flag__Wuninitialized
5911                 if eval \${$cacheid+:} false; then :
5912   $as_echo_n "(cached) " >&6
5913 else
5914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h.  */
5916 int i;
5917 int
5918 main ()
5919 {
5920
5921   ;
5922   return 0;
5923 }
5924 _ACEOF
5925 if ac_fn_c_try_link "$LINENO"; then :
5926   eval $cacheid=yes
5927 else
5928   eval $cacheid=no
5929 fi
5930 rm -f core conftest.err conftest.$ac_objext \
5931     conftest$ac_exeext conftest.$ac_ext
5932 fi
5933
5934
5935                 CFLAGS="$xorg_testset_save_CFLAGS"
5936
5937                 eval supported=\$$cacheid
5938                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5939 $as_echo "$supported" >&6; }
5940                 if test "$supported" = "yes" ; then
5941                         BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5942                         found="yes"
5943                 fi
5944         fi
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960 xorg_testset_save_CFLAGS="$CFLAGS"
5961
5962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5963         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5964         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5965 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5966 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5967   $as_echo_n "(cached) " >&6
5968 else
5969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h.  */
5971 int i;
5972 _ACEOF
5973 if ac_fn_c_try_compile "$LINENO"; then :
5974   xorg_cv_cc_flag_unknown_warning_option=yes
5975 else
5976   xorg_cv_cc_flag_unknown_warning_option=no
5977 fi
5978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979 fi
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5981 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5982         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5983         CFLAGS="$xorg_testset_save_CFLAGS"
5984 fi
5985
5986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5987         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5988                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5989         fi
5990         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5991         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5992 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5993 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5994   $as_echo_n "(cached) " >&6
5995 else
5996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h.  */
5998 int i;
5999 _ACEOF
6000 if ac_fn_c_try_compile "$LINENO"; then :
6001   xorg_cv_cc_flag_unused_command_line_argument=yes
6002 else
6003   xorg_cv_cc_flag_unused_command_line_argument=no
6004 fi
6005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6006 fi
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6008 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6009         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6010         CFLAGS="$xorg_testset_save_CFLAGS"
6011 fi
6012
6013 found="no"
6014
6015         if test $found = "no" ; then
6016                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6017                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6018                 fi
6019
6020                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6021                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6022                 fi
6023
6024                 CFLAGS="$CFLAGS -Wshadow"
6025
6026                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6027 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6028                 cacheid=xorg_cv_cc_flag__Wshadow
6029                 if eval \${$cacheid+:} false; then :
6030   $as_echo_n "(cached) " >&6
6031 else
6032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h.  */
6034 int i;
6035 int
6036 main ()
6037 {
6038
6039   ;
6040   return 0;
6041 }
6042 _ACEOF
6043 if ac_fn_c_try_link "$LINENO"; then :
6044   eval $cacheid=yes
6045 else
6046   eval $cacheid=no
6047 fi
6048 rm -f core conftest.err conftest.$ac_objext \
6049     conftest$ac_exeext conftest.$ac_ext
6050 fi
6051
6052
6053                 CFLAGS="$xorg_testset_save_CFLAGS"
6054
6055                 eval supported=\$$cacheid
6056                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6057 $as_echo "$supported" >&6; }
6058                 if test "$supported" = "yes" ; then
6059                         BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6060                         found="yes"
6061                 fi
6062         fi
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078 xorg_testset_save_CFLAGS="$CFLAGS"
6079
6080 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6081         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6082         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6083 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6084 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6085   $as_echo_n "(cached) " >&6
6086 else
6087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h.  */
6089 int i;
6090 _ACEOF
6091 if ac_fn_c_try_compile "$LINENO"; then :
6092   xorg_cv_cc_flag_unknown_warning_option=yes
6093 else
6094   xorg_cv_cc_flag_unknown_warning_option=no
6095 fi
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097 fi
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6099 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6100         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6101         CFLAGS="$xorg_testset_save_CFLAGS"
6102 fi
6103
6104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6105         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6106                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6107         fi
6108         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6109         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6110 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6111 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6112   $as_echo_n "(cached) " >&6
6113 else
6114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h.  */
6116 int i;
6117 _ACEOF
6118 if ac_fn_c_try_compile "$LINENO"; then :
6119   xorg_cv_cc_flag_unused_command_line_argument=yes
6120 else
6121   xorg_cv_cc_flag_unused_command_line_argument=no
6122 fi
6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124 fi
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6126 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6127         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6128         CFLAGS="$xorg_testset_save_CFLAGS"
6129 fi
6130
6131 found="no"
6132
6133         if test $found = "no" ; then
6134                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6135                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6136                 fi
6137
6138                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6139                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6140                 fi
6141
6142                 CFLAGS="$CFLAGS -Wcast-qual"
6143
6144                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6145 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6146                 cacheid=xorg_cv_cc_flag__Wcast_qual
6147                 if eval \${$cacheid+:} false; then :
6148   $as_echo_n "(cached) " >&6
6149 else
6150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h.  */
6152 int i;
6153 int
6154 main ()
6155 {
6156
6157   ;
6158   return 0;
6159 }
6160 _ACEOF
6161 if ac_fn_c_try_link "$LINENO"; then :
6162   eval $cacheid=yes
6163 else
6164   eval $cacheid=no
6165 fi
6166 rm -f core conftest.err conftest.$ac_objext \
6167     conftest$ac_exeext conftest.$ac_ext
6168 fi
6169
6170
6171                 CFLAGS="$xorg_testset_save_CFLAGS"
6172
6173                 eval supported=\$$cacheid
6174                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6175 $as_echo "$supported" >&6; }
6176                 if test "$supported" = "yes" ; then
6177                         BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6178                         found="yes"
6179                 fi
6180         fi
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196 xorg_testset_save_CFLAGS="$CFLAGS"
6197
6198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6199         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6200         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6201 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6202 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6203   $as_echo_n "(cached) " >&6
6204 else
6205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h.  */
6207 int i;
6208 _ACEOF
6209 if ac_fn_c_try_compile "$LINENO"; then :
6210   xorg_cv_cc_flag_unknown_warning_option=yes
6211 else
6212   xorg_cv_cc_flag_unknown_warning_option=no
6213 fi
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 fi
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6217 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6218         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6219         CFLAGS="$xorg_testset_save_CFLAGS"
6220 fi
6221
6222 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6223         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6224                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6225         fi
6226         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6227         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6228 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6229 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6230   $as_echo_n "(cached) " >&6
6231 else
6232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h.  */
6234 int i;
6235 _ACEOF
6236 if ac_fn_c_try_compile "$LINENO"; then :
6237   xorg_cv_cc_flag_unused_command_line_argument=yes
6238 else
6239   xorg_cv_cc_flag_unused_command_line_argument=no
6240 fi
6241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242 fi
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6244 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6245         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6246         CFLAGS="$xorg_testset_save_CFLAGS"
6247 fi
6248
6249 found="no"
6250
6251         if test $found = "no" ; then
6252                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6253                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6254                 fi
6255
6256                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6257                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6258                 fi
6259
6260                 CFLAGS="$CFLAGS -Wmissing-noreturn"
6261
6262                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6263 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6264                 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6265                 if eval \${$cacheid+:} false; then :
6266   $as_echo_n "(cached) " >&6
6267 else
6268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h.  */
6270 int i;
6271 int
6272 main ()
6273 {
6274
6275   ;
6276   return 0;
6277 }
6278 _ACEOF
6279 if ac_fn_c_try_link "$LINENO"; then :
6280   eval $cacheid=yes
6281 else
6282   eval $cacheid=no
6283 fi
6284 rm -f core conftest.err conftest.$ac_objext \
6285     conftest$ac_exeext conftest.$ac_ext
6286 fi
6287
6288
6289                 CFLAGS="$xorg_testset_save_CFLAGS"
6290
6291                 eval supported=\$$cacheid
6292                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6293 $as_echo "$supported" >&6; }
6294                 if test "$supported" = "yes" ; then
6295                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6296                         found="yes"
6297                 fi
6298         fi
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314 xorg_testset_save_CFLAGS="$CFLAGS"
6315
6316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6317         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6318         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6319 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6320 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6321   $as_echo_n "(cached) " >&6
6322 else
6323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h.  */
6325 int i;
6326 _ACEOF
6327 if ac_fn_c_try_compile "$LINENO"; then :
6328   xorg_cv_cc_flag_unknown_warning_option=yes
6329 else
6330   xorg_cv_cc_flag_unknown_warning_option=no
6331 fi
6332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6333 fi
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6335 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6336         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6337         CFLAGS="$xorg_testset_save_CFLAGS"
6338 fi
6339
6340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6341         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6342                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6343         fi
6344         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6345         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6346 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6347 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6348   $as_echo_n "(cached) " >&6
6349 else
6350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h.  */
6352 int i;
6353 _ACEOF
6354 if ac_fn_c_try_compile "$LINENO"; then :
6355   xorg_cv_cc_flag_unused_command_line_argument=yes
6356 else
6357   xorg_cv_cc_flag_unused_command_line_argument=no
6358 fi
6359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6360 fi
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6362 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6363         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6364         CFLAGS="$xorg_testset_save_CFLAGS"
6365 fi
6366
6367 found="no"
6368
6369         if test $found = "no" ; then
6370                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6371                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6372                 fi
6373
6374                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6375                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6376                 fi
6377
6378                 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6379
6380                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6381 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6382                 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6383                 if eval \${$cacheid+:} false; then :
6384   $as_echo_n "(cached) " >&6
6385 else
6386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h.  */
6388 int i;
6389 int
6390 main ()
6391 {
6392
6393   ;
6394   return 0;
6395 }
6396 _ACEOF
6397 if ac_fn_c_try_link "$LINENO"; then :
6398   eval $cacheid=yes
6399 else
6400   eval $cacheid=no
6401 fi
6402 rm -f core conftest.err conftest.$ac_objext \
6403     conftest$ac_exeext conftest.$ac_ext
6404 fi
6405
6406
6407                 CFLAGS="$xorg_testset_save_CFLAGS"
6408
6409                 eval supported=\$$cacheid
6410                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6411 $as_echo "$supported" >&6; }
6412                 if test "$supported" = "yes" ; then
6413                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6414                         found="yes"
6415                 fi
6416         fi
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432 xorg_testset_save_CFLAGS="$CFLAGS"
6433
6434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6435         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6436         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6437 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6438 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6439   $as_echo_n "(cached) " >&6
6440 else
6441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h.  */
6443 int i;
6444 _ACEOF
6445 if ac_fn_c_try_compile "$LINENO"; then :
6446   xorg_cv_cc_flag_unknown_warning_option=yes
6447 else
6448   xorg_cv_cc_flag_unknown_warning_option=no
6449 fi
6450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451 fi
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6453 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6454         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6455         CFLAGS="$xorg_testset_save_CFLAGS"
6456 fi
6457
6458 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6459         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6460                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6461         fi
6462         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6463         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6464 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6465 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6466   $as_echo_n "(cached) " >&6
6467 else
6468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h.  */
6470 int i;
6471 _ACEOF
6472 if ac_fn_c_try_compile "$LINENO"; then :
6473   xorg_cv_cc_flag_unused_command_line_argument=yes
6474 else
6475   xorg_cv_cc_flag_unused_command_line_argument=no
6476 fi
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478 fi
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6480 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6481         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6482         CFLAGS="$xorg_testset_save_CFLAGS"
6483 fi
6484
6485 found="no"
6486
6487         if test $found = "no" ; then
6488                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6489                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6490                 fi
6491
6492                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6493                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6494                 fi
6495
6496                 CFLAGS="$CFLAGS -Wredundant-decls"
6497
6498                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6499 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6500                 cacheid=xorg_cv_cc_flag__Wredundant_decls
6501                 if eval \${$cacheid+:} false; then :
6502   $as_echo_n "(cached) " >&6
6503 else
6504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h.  */
6506 int i;
6507 int
6508 main ()
6509 {
6510
6511   ;
6512   return 0;
6513 }
6514 _ACEOF
6515 if ac_fn_c_try_link "$LINENO"; then :
6516   eval $cacheid=yes
6517 else
6518   eval $cacheid=no
6519 fi
6520 rm -f core conftest.err conftest.$ac_objext \
6521     conftest$ac_exeext conftest.$ac_ext
6522 fi
6523
6524
6525                 CFLAGS="$xorg_testset_save_CFLAGS"
6526
6527                 eval supported=\$$cacheid
6528                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6529 $as_echo "$supported" >&6; }
6530                 if test "$supported" = "yes" ; then
6531                         BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6532                         found="yes"
6533                 fi
6534         fi
6535
6536
6537
6538 # These are currently disabled because they are noisy.  They will be enabled
6539 # in the future once the codebase is sufficiently modernized to silence
6540 # them.  For now, I don't want them to drown out the other warnings.
6541 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6542 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6543 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6544
6545 # Turn some warnings into errors, so we don't accidently get successful builds
6546 # when there are problems that should be fixed.
6547
6548 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562 xorg_testset_save_CFLAGS="$CFLAGS"
6563
6564 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6565         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6566         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6567 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6568 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6569   $as_echo_n "(cached) " >&6
6570 else
6571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h.  */
6573 int i;
6574 _ACEOF
6575 if ac_fn_c_try_compile "$LINENO"; then :
6576   xorg_cv_cc_flag_unknown_warning_option=yes
6577 else
6578   xorg_cv_cc_flag_unknown_warning_option=no
6579 fi
6580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581 fi
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6583 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6584         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6585         CFLAGS="$xorg_testset_save_CFLAGS"
6586 fi
6587
6588 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6589         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6590                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6591         fi
6592         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6593         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6594 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6595 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6596   $as_echo_n "(cached) " >&6
6597 else
6598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h.  */
6600 int i;
6601 _ACEOF
6602 if ac_fn_c_try_compile "$LINENO"; then :
6603   xorg_cv_cc_flag_unused_command_line_argument=yes
6604 else
6605   xorg_cv_cc_flag_unused_command_line_argument=no
6606 fi
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608 fi
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6610 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6611         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6612         CFLAGS="$xorg_testset_save_CFLAGS"
6613 fi
6614
6615 found="no"
6616
6617         if test $found = "no" ; then
6618                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6619                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6620                 fi
6621
6622                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6623                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6624                 fi
6625
6626                 CFLAGS="$CFLAGS -Werror=implicit"
6627
6628                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6629 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6630                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6631                 if eval \${$cacheid+:} false; then :
6632   $as_echo_n "(cached) " >&6
6633 else
6634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6635 /* end confdefs.h.  */
6636 int i;
6637 int
6638 main ()
6639 {
6640
6641   ;
6642   return 0;
6643 }
6644 _ACEOF
6645 if ac_fn_c_try_link "$LINENO"; then :
6646   eval $cacheid=yes
6647 else
6648   eval $cacheid=no
6649 fi
6650 rm -f core conftest.err conftest.$ac_objext \
6651     conftest$ac_exeext conftest.$ac_ext
6652 fi
6653
6654
6655                 CFLAGS="$xorg_testset_save_CFLAGS"
6656
6657                 eval supported=\$$cacheid
6658                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6659 $as_echo "$supported" >&6; }
6660                 if test "$supported" = "yes" ; then
6661                         BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6662                         found="yes"
6663                 fi
6664         fi
6665
6666         if test $found = "no" ; then
6667                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6668                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6669                 fi
6670
6671                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6672                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6673                 fi
6674
6675                 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6676
6677                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6678 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6679                 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6680                 if eval \${$cacheid+:} false; then :
6681   $as_echo_n "(cached) " >&6
6682 else
6683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h.  */
6685 int i;
6686 int
6687 main ()
6688 {
6689
6690   ;
6691   return 0;
6692 }
6693 _ACEOF
6694 if ac_fn_c_try_link "$LINENO"; then :
6695   eval $cacheid=yes
6696 else
6697   eval $cacheid=no
6698 fi
6699 rm -f core conftest.err conftest.$ac_objext \
6700     conftest$ac_exeext conftest.$ac_ext
6701 fi
6702
6703
6704                 CFLAGS="$xorg_testset_save_CFLAGS"
6705
6706                 eval supported=\$$cacheid
6707                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6708 $as_echo "$supported" >&6; }
6709                 if test "$supported" = "yes" ; then
6710                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6711                         found="yes"
6712                 fi
6713         fi
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729 xorg_testset_save_CFLAGS="$CFLAGS"
6730
6731 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6732         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6733         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6734 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6735 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6736   $as_echo_n "(cached) " >&6
6737 else
6738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h.  */
6740 int i;
6741 _ACEOF
6742 if ac_fn_c_try_compile "$LINENO"; then :
6743   xorg_cv_cc_flag_unknown_warning_option=yes
6744 else
6745   xorg_cv_cc_flag_unknown_warning_option=no
6746 fi
6747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6748 fi
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6750 $as_echo "$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"
6753 fi
6754
6755 if 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         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6761 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6762 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6763   $as_echo_n "(cached) " >&6
6764 else
6765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h.  */
6767 int i;
6768 _ACEOF
6769 if ac_fn_c_try_compile "$LINENO"; then :
6770   xorg_cv_cc_flag_unused_command_line_argument=yes
6771 else
6772   xorg_cv_cc_flag_unused_command_line_argument=no
6773 fi
6774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775 fi
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6777 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6778         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6779         CFLAGS="$xorg_testset_save_CFLAGS"
6780 fi
6781
6782 found="no"
6783
6784         if test $found = "no" ; then
6785                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6786                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6787                 fi
6788
6789                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6790                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6791                 fi
6792
6793                 CFLAGS="$CFLAGS -Werror=nonnull"
6794
6795                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6796 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6797                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6798                 if eval \${$cacheid+:} false; then :
6799   $as_echo_n "(cached) " >&6
6800 else
6801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h.  */
6803 int i;
6804 int
6805 main ()
6806 {
6807
6808   ;
6809   return 0;
6810 }
6811 _ACEOF
6812 if ac_fn_c_try_link "$LINENO"; then :
6813   eval $cacheid=yes
6814 else
6815   eval $cacheid=no
6816 fi
6817 rm -f core conftest.err conftest.$ac_objext \
6818     conftest$ac_exeext conftest.$ac_ext
6819 fi
6820
6821
6822                 CFLAGS="$xorg_testset_save_CFLAGS"
6823
6824                 eval supported=\$$cacheid
6825                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6826 $as_echo "$supported" >&6; }
6827                 if test "$supported" = "yes" ; then
6828                         BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6829                         found="yes"
6830                 fi
6831         fi
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847 xorg_testset_save_CFLAGS="$CFLAGS"
6848
6849 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6850         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6851         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6852 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6853 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6854   $as_echo_n "(cached) " >&6
6855 else
6856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h.  */
6858 int i;
6859 _ACEOF
6860 if ac_fn_c_try_compile "$LINENO"; then :
6861   xorg_cv_cc_flag_unknown_warning_option=yes
6862 else
6863   xorg_cv_cc_flag_unknown_warning_option=no
6864 fi
6865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6866 fi
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6868 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6869         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6870         CFLAGS="$xorg_testset_save_CFLAGS"
6871 fi
6872
6873 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6874         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6875                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6876         fi
6877         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6878         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6879 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6880 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6881   $as_echo_n "(cached) " >&6
6882 else
6883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h.  */
6885 int i;
6886 _ACEOF
6887 if ac_fn_c_try_compile "$LINENO"; then :
6888   xorg_cv_cc_flag_unused_command_line_argument=yes
6889 else
6890   xorg_cv_cc_flag_unused_command_line_argument=no
6891 fi
6892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893 fi
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6895 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6896         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6897         CFLAGS="$xorg_testset_save_CFLAGS"
6898 fi
6899
6900 found="no"
6901
6902         if test $found = "no" ; then
6903                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6904                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6905                 fi
6906
6907                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6908                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6909                 fi
6910
6911                 CFLAGS="$CFLAGS -Werror=init-self"
6912
6913                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
6914 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
6915                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6916                 if eval \${$cacheid+:} false; then :
6917   $as_echo_n "(cached) " >&6
6918 else
6919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h.  */
6921 int i;
6922 int
6923 main ()
6924 {
6925
6926   ;
6927   return 0;
6928 }
6929 _ACEOF
6930 if ac_fn_c_try_link "$LINENO"; then :
6931   eval $cacheid=yes
6932 else
6933   eval $cacheid=no
6934 fi
6935 rm -f core conftest.err conftest.$ac_objext \
6936     conftest$ac_exeext conftest.$ac_ext
6937 fi
6938
6939
6940                 CFLAGS="$xorg_testset_save_CFLAGS"
6941
6942                 eval supported=\$$cacheid
6943                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6944 $as_echo "$supported" >&6; }
6945                 if test "$supported" = "yes" ; then
6946                         BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6947                         found="yes"
6948                 fi
6949         fi
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965 xorg_testset_save_CFLAGS="$CFLAGS"
6966
6967 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6968         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6969         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6970 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6971 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6972   $as_echo_n "(cached) " >&6
6973 else
6974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h.  */
6976 int i;
6977 _ACEOF
6978 if ac_fn_c_try_compile "$LINENO"; then :
6979   xorg_cv_cc_flag_unknown_warning_option=yes
6980 else
6981   xorg_cv_cc_flag_unknown_warning_option=no
6982 fi
6983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984 fi
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6986 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6987         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6988         CFLAGS="$xorg_testset_save_CFLAGS"
6989 fi
6990
6991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6992         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6993                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6994         fi
6995         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6996         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6997 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6998 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6999   $as_echo_n "(cached) " >&6
7000 else
7001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h.  */
7003 int i;
7004 _ACEOF
7005 if ac_fn_c_try_compile "$LINENO"; then :
7006   xorg_cv_cc_flag_unused_command_line_argument=yes
7007 else
7008   xorg_cv_cc_flag_unused_command_line_argument=no
7009 fi
7010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7011 fi
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7013 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7014         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7015         CFLAGS="$xorg_testset_save_CFLAGS"
7016 fi
7017
7018 found="no"
7019
7020         if test $found = "no" ; then
7021                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7022                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7023                 fi
7024
7025                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7026                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7027                 fi
7028
7029                 CFLAGS="$CFLAGS -Werror=main"
7030
7031                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7032 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7033                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7034                 if eval \${$cacheid+:} false; then :
7035   $as_echo_n "(cached) " >&6
7036 else
7037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h.  */
7039 int i;
7040 int
7041 main ()
7042 {
7043
7044   ;
7045   return 0;
7046 }
7047 _ACEOF
7048 if ac_fn_c_try_link "$LINENO"; then :
7049   eval $cacheid=yes
7050 else
7051   eval $cacheid=no
7052 fi
7053 rm -f core conftest.err conftest.$ac_objext \
7054     conftest$ac_exeext conftest.$ac_ext
7055 fi
7056
7057
7058                 CFLAGS="$xorg_testset_save_CFLAGS"
7059
7060                 eval supported=\$$cacheid
7061                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7062 $as_echo "$supported" >&6; }
7063                 if test "$supported" = "yes" ; then
7064                         BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7065                         found="yes"
7066                 fi
7067         fi
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083 xorg_testset_save_CFLAGS="$CFLAGS"
7084
7085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7086         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7087         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7088 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7089 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7090   $as_echo_n "(cached) " >&6
7091 else
7092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h.  */
7094 int i;
7095 _ACEOF
7096 if ac_fn_c_try_compile "$LINENO"; then :
7097   xorg_cv_cc_flag_unknown_warning_option=yes
7098 else
7099   xorg_cv_cc_flag_unknown_warning_option=no
7100 fi
7101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102 fi
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7104 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7105         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7106         CFLAGS="$xorg_testset_save_CFLAGS"
7107 fi
7108
7109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7110         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7111                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7112         fi
7113         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7114         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7115 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7116 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7117   $as_echo_n "(cached) " >&6
7118 else
7119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h.  */
7121 int i;
7122 _ACEOF
7123 if ac_fn_c_try_compile "$LINENO"; then :
7124   xorg_cv_cc_flag_unused_command_line_argument=yes
7125 else
7126   xorg_cv_cc_flag_unused_command_line_argument=no
7127 fi
7128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7129 fi
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7131 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7132         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7133         CFLAGS="$xorg_testset_save_CFLAGS"
7134 fi
7135
7136 found="no"
7137
7138         if test $found = "no" ; then
7139                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7140                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7141                 fi
7142
7143                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7144                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7145                 fi
7146
7147                 CFLAGS="$CFLAGS -Werror=missing-braces"
7148
7149                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7150 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7151                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7152                 if eval \${$cacheid+:} false; then :
7153   $as_echo_n "(cached) " >&6
7154 else
7155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h.  */
7157 int i;
7158 int
7159 main ()
7160 {
7161
7162   ;
7163   return 0;
7164 }
7165 _ACEOF
7166 if ac_fn_c_try_link "$LINENO"; then :
7167   eval $cacheid=yes
7168 else
7169   eval $cacheid=no
7170 fi
7171 rm -f core conftest.err conftest.$ac_objext \
7172     conftest$ac_exeext conftest.$ac_ext
7173 fi
7174
7175
7176                 CFLAGS="$xorg_testset_save_CFLAGS"
7177
7178                 eval supported=\$$cacheid
7179                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7180 $as_echo "$supported" >&6; }
7181                 if test "$supported" = "yes" ; then
7182                         BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7183                         found="yes"
7184                 fi
7185         fi
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201 xorg_testset_save_CFLAGS="$CFLAGS"
7202
7203 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7204         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7205         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7206 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7207 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7208   $as_echo_n "(cached) " >&6
7209 else
7210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h.  */
7212 int i;
7213 _ACEOF
7214 if ac_fn_c_try_compile "$LINENO"; then :
7215   xorg_cv_cc_flag_unknown_warning_option=yes
7216 else
7217   xorg_cv_cc_flag_unknown_warning_option=no
7218 fi
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220 fi
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7222 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7223         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7224         CFLAGS="$xorg_testset_save_CFLAGS"
7225 fi
7226
7227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7228         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7229                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7230         fi
7231         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7232         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7233 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7234 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7235   $as_echo_n "(cached) " >&6
7236 else
7237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h.  */
7239 int i;
7240 _ACEOF
7241 if ac_fn_c_try_compile "$LINENO"; then :
7242   xorg_cv_cc_flag_unused_command_line_argument=yes
7243 else
7244   xorg_cv_cc_flag_unused_command_line_argument=no
7245 fi
7246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7247 fi
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7249 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7250         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7251         CFLAGS="$xorg_testset_save_CFLAGS"
7252 fi
7253
7254 found="no"
7255
7256         if test $found = "no" ; then
7257                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7258                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7259                 fi
7260
7261                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7262                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7263                 fi
7264
7265                 CFLAGS="$CFLAGS -Werror=sequence-point"
7266
7267                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7268 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7269                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7270                 if eval \${$cacheid+:} false; then :
7271   $as_echo_n "(cached) " >&6
7272 else
7273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274 /* end confdefs.h.  */
7275 int i;
7276 int
7277 main ()
7278 {
7279
7280   ;
7281   return 0;
7282 }
7283 _ACEOF
7284 if ac_fn_c_try_link "$LINENO"; then :
7285   eval $cacheid=yes
7286 else
7287   eval $cacheid=no
7288 fi
7289 rm -f core conftest.err conftest.$ac_objext \
7290     conftest$ac_exeext conftest.$ac_ext
7291 fi
7292
7293
7294                 CFLAGS="$xorg_testset_save_CFLAGS"
7295
7296                 eval supported=\$$cacheid
7297                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7298 $as_echo "$supported" >&6; }
7299                 if test "$supported" = "yes" ; then
7300                         BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7301                         found="yes"
7302                 fi
7303         fi
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319 xorg_testset_save_CFLAGS="$CFLAGS"
7320
7321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7322         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7323         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7324 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7325 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7326   $as_echo_n "(cached) " >&6
7327 else
7328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h.  */
7330 int i;
7331 _ACEOF
7332 if ac_fn_c_try_compile "$LINENO"; then :
7333   xorg_cv_cc_flag_unknown_warning_option=yes
7334 else
7335   xorg_cv_cc_flag_unknown_warning_option=no
7336 fi
7337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 fi
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7340 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7341         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7342         CFLAGS="$xorg_testset_save_CFLAGS"
7343 fi
7344
7345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7346         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7347                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7348         fi
7349         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7350         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7351 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7352 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7353   $as_echo_n "(cached) " >&6
7354 else
7355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h.  */
7357 int i;
7358 _ACEOF
7359 if ac_fn_c_try_compile "$LINENO"; then :
7360   xorg_cv_cc_flag_unused_command_line_argument=yes
7361 else
7362   xorg_cv_cc_flag_unused_command_line_argument=no
7363 fi
7364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7365 fi
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7367 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7368         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7369         CFLAGS="$xorg_testset_save_CFLAGS"
7370 fi
7371
7372 found="no"
7373
7374         if test $found = "no" ; then
7375                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7376                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7377                 fi
7378
7379                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7380                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7381                 fi
7382
7383                 CFLAGS="$CFLAGS -Werror=return-type"
7384
7385                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7386 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7387                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7388                 if eval \${$cacheid+:} false; then :
7389   $as_echo_n "(cached) " >&6
7390 else
7391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7392 /* end confdefs.h.  */
7393 int i;
7394 int
7395 main ()
7396 {
7397
7398   ;
7399   return 0;
7400 }
7401 _ACEOF
7402 if ac_fn_c_try_link "$LINENO"; then :
7403   eval $cacheid=yes
7404 else
7405   eval $cacheid=no
7406 fi
7407 rm -f core conftest.err conftest.$ac_objext \
7408     conftest$ac_exeext conftest.$ac_ext
7409 fi
7410
7411
7412                 CFLAGS="$xorg_testset_save_CFLAGS"
7413
7414                 eval supported=\$$cacheid
7415                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7416 $as_echo "$supported" >&6; }
7417                 if test "$supported" = "yes" ; then
7418                         BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7419                         found="yes"
7420                 fi
7421         fi
7422
7423         if test $found = "no" ; then
7424                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7425                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7426                 fi
7427
7428                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7429                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7430                 fi
7431
7432                 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7433
7434                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7435 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7436                 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7437                 if eval \${$cacheid+:} false; then :
7438   $as_echo_n "(cached) " >&6
7439 else
7440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h.  */
7442 int i;
7443 int
7444 main ()
7445 {
7446
7447   ;
7448   return 0;
7449 }
7450 _ACEOF
7451 if ac_fn_c_try_link "$LINENO"; then :
7452   eval $cacheid=yes
7453 else
7454   eval $cacheid=no
7455 fi
7456 rm -f core conftest.err conftest.$ac_objext \
7457     conftest$ac_exeext conftest.$ac_ext
7458 fi
7459
7460
7461                 CFLAGS="$xorg_testset_save_CFLAGS"
7462
7463                 eval supported=\$$cacheid
7464                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7465 $as_echo "$supported" >&6; }
7466                 if test "$supported" = "yes" ; then
7467                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7468                         found="yes"
7469                 fi
7470         fi
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486 xorg_testset_save_CFLAGS="$CFLAGS"
7487
7488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7489         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7490         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7491 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7492 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7493   $as_echo_n "(cached) " >&6
7494 else
7495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h.  */
7497 int i;
7498 _ACEOF
7499 if ac_fn_c_try_compile "$LINENO"; then :
7500   xorg_cv_cc_flag_unknown_warning_option=yes
7501 else
7502   xorg_cv_cc_flag_unknown_warning_option=no
7503 fi
7504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7505 fi
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7507 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7508         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7509         CFLAGS="$xorg_testset_save_CFLAGS"
7510 fi
7511
7512 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7513         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7514                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7515         fi
7516         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7517         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7518 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7519 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7520   $as_echo_n "(cached) " >&6
7521 else
7522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h.  */
7524 int i;
7525 _ACEOF
7526 if ac_fn_c_try_compile "$LINENO"; then :
7527   xorg_cv_cc_flag_unused_command_line_argument=yes
7528 else
7529   xorg_cv_cc_flag_unused_command_line_argument=no
7530 fi
7531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532 fi
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7534 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7535         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7536         CFLAGS="$xorg_testset_save_CFLAGS"
7537 fi
7538
7539 found="no"
7540
7541         if test $found = "no" ; then
7542                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7543                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7544                 fi
7545
7546                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7547                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7548                 fi
7549
7550                 CFLAGS="$CFLAGS -Werror=trigraphs"
7551
7552                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7553 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7554                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7555                 if eval \${$cacheid+:} false; then :
7556   $as_echo_n "(cached) " >&6
7557 else
7558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h.  */
7560 int i;
7561 int
7562 main ()
7563 {
7564
7565   ;
7566   return 0;
7567 }
7568 _ACEOF
7569 if ac_fn_c_try_link "$LINENO"; then :
7570   eval $cacheid=yes
7571 else
7572   eval $cacheid=no
7573 fi
7574 rm -f core conftest.err conftest.$ac_objext \
7575     conftest$ac_exeext conftest.$ac_ext
7576 fi
7577
7578
7579                 CFLAGS="$xorg_testset_save_CFLAGS"
7580
7581                 eval supported=\$$cacheid
7582                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7583 $as_echo "$supported" >&6; }
7584                 if test "$supported" = "yes" ; then
7585                         BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7586                         found="yes"
7587                 fi
7588         fi
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604 xorg_testset_save_CFLAGS="$CFLAGS"
7605
7606 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7607         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7608         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7609 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7610 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7611   $as_echo_n "(cached) " >&6
7612 else
7613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614 /* end confdefs.h.  */
7615 int i;
7616 _ACEOF
7617 if ac_fn_c_try_compile "$LINENO"; then :
7618   xorg_cv_cc_flag_unknown_warning_option=yes
7619 else
7620   xorg_cv_cc_flag_unknown_warning_option=no
7621 fi
7622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7623 fi
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7625 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7626         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7627         CFLAGS="$xorg_testset_save_CFLAGS"
7628 fi
7629
7630 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7631         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7632                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7633         fi
7634         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7635         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7636 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7637 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7638   $as_echo_n "(cached) " >&6
7639 else
7640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h.  */
7642 int i;
7643 _ACEOF
7644 if ac_fn_c_try_compile "$LINENO"; then :
7645   xorg_cv_cc_flag_unused_command_line_argument=yes
7646 else
7647   xorg_cv_cc_flag_unused_command_line_argument=no
7648 fi
7649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650 fi
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7652 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7653         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7654         CFLAGS="$xorg_testset_save_CFLAGS"
7655 fi
7656
7657 found="no"
7658
7659         if test $found = "no" ; then
7660                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7661                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7662                 fi
7663
7664                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7665                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7666                 fi
7667
7668                 CFLAGS="$CFLAGS -Werror=array-bounds"
7669
7670                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7671 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7672                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7673                 if eval \${$cacheid+:} false; then :
7674   $as_echo_n "(cached) " >&6
7675 else
7676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h.  */
7678 int i;
7679 int
7680 main ()
7681 {
7682
7683   ;
7684   return 0;
7685 }
7686 _ACEOF
7687 if ac_fn_c_try_link "$LINENO"; then :
7688   eval $cacheid=yes
7689 else
7690   eval $cacheid=no
7691 fi
7692 rm -f core conftest.err conftest.$ac_objext \
7693     conftest$ac_exeext conftest.$ac_ext
7694 fi
7695
7696
7697                 CFLAGS="$xorg_testset_save_CFLAGS"
7698
7699                 eval supported=\$$cacheid
7700                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7701 $as_echo "$supported" >&6; }
7702                 if test "$supported" = "yes" ; then
7703                         BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7704                         found="yes"
7705                 fi
7706         fi
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722 xorg_testset_save_CFLAGS="$CFLAGS"
7723
7724 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7725         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7726         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7727 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7728 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7729   $as_echo_n "(cached) " >&6
7730 else
7731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h.  */
7733 int i;
7734 _ACEOF
7735 if ac_fn_c_try_compile "$LINENO"; then :
7736   xorg_cv_cc_flag_unknown_warning_option=yes
7737 else
7738   xorg_cv_cc_flag_unknown_warning_option=no
7739 fi
7740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7741 fi
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7743 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7744         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7745         CFLAGS="$xorg_testset_save_CFLAGS"
7746 fi
7747
7748 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7749         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7750                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7751         fi
7752         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7753         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7754 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7755 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7756   $as_echo_n "(cached) " >&6
7757 else
7758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h.  */
7760 int i;
7761 _ACEOF
7762 if ac_fn_c_try_compile "$LINENO"; then :
7763   xorg_cv_cc_flag_unused_command_line_argument=yes
7764 else
7765   xorg_cv_cc_flag_unused_command_line_argument=no
7766 fi
7767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7768 fi
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7770 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7771         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7772         CFLAGS="$xorg_testset_save_CFLAGS"
7773 fi
7774
7775 found="no"
7776
7777         if test $found = "no" ; then
7778                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7779                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7780                 fi
7781
7782                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7783                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7784                 fi
7785
7786                 CFLAGS="$CFLAGS -Werror=write-strings"
7787
7788                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7789 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7790                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7791                 if eval \${$cacheid+:} false; then :
7792   $as_echo_n "(cached) " >&6
7793 else
7794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h.  */
7796 int i;
7797 int
7798 main ()
7799 {
7800
7801   ;
7802   return 0;
7803 }
7804 _ACEOF
7805 if ac_fn_c_try_link "$LINENO"; then :
7806   eval $cacheid=yes
7807 else
7808   eval $cacheid=no
7809 fi
7810 rm -f core conftest.err conftest.$ac_objext \
7811     conftest$ac_exeext conftest.$ac_ext
7812 fi
7813
7814
7815                 CFLAGS="$xorg_testset_save_CFLAGS"
7816
7817                 eval supported=\$$cacheid
7818                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7819 $as_echo "$supported" >&6; }
7820                 if test "$supported" = "yes" ; then
7821                         BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7822                         found="yes"
7823                 fi
7824         fi
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840 xorg_testset_save_CFLAGS="$CFLAGS"
7841
7842 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7843         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7844         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7845 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7846 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7847   $as_echo_n "(cached) " >&6
7848 else
7849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h.  */
7851 int i;
7852 _ACEOF
7853 if ac_fn_c_try_compile "$LINENO"; then :
7854   xorg_cv_cc_flag_unknown_warning_option=yes
7855 else
7856   xorg_cv_cc_flag_unknown_warning_option=no
7857 fi
7858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7859 fi
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7861 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7862         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7863         CFLAGS="$xorg_testset_save_CFLAGS"
7864 fi
7865
7866 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7867         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7868                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7869         fi
7870         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7871         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7872 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7873 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7874   $as_echo_n "(cached) " >&6
7875 else
7876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h.  */
7878 int i;
7879 _ACEOF
7880 if ac_fn_c_try_compile "$LINENO"; then :
7881   xorg_cv_cc_flag_unused_command_line_argument=yes
7882 else
7883   xorg_cv_cc_flag_unused_command_line_argument=no
7884 fi
7885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7886 fi
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7888 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7889         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7890         CFLAGS="$xorg_testset_save_CFLAGS"
7891 fi
7892
7893 found="no"
7894
7895         if test $found = "no" ; then
7896                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7897                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7898                 fi
7899
7900                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7901                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7902                 fi
7903
7904                 CFLAGS="$CFLAGS -Werror=address"
7905
7906                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
7907 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
7908                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7909                 if eval \${$cacheid+:} false; then :
7910   $as_echo_n "(cached) " >&6
7911 else
7912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h.  */
7914 int i;
7915 int
7916 main ()
7917 {
7918
7919   ;
7920   return 0;
7921 }
7922 _ACEOF
7923 if ac_fn_c_try_link "$LINENO"; then :
7924   eval $cacheid=yes
7925 else
7926   eval $cacheid=no
7927 fi
7928 rm -f core conftest.err conftest.$ac_objext \
7929     conftest$ac_exeext conftest.$ac_ext
7930 fi
7931
7932
7933                 CFLAGS="$xorg_testset_save_CFLAGS"
7934
7935                 eval supported=\$$cacheid
7936                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7937 $as_echo "$supported" >&6; }
7938                 if test "$supported" = "yes" ; then
7939                         BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7940                         found="yes"
7941                 fi
7942         fi
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958 xorg_testset_save_CFLAGS="$CFLAGS"
7959
7960 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7961         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7962         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7963 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7964 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7965   $as_echo_n "(cached) " >&6
7966 else
7967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h.  */
7969 int i;
7970 _ACEOF
7971 if ac_fn_c_try_compile "$LINENO"; then :
7972   xorg_cv_cc_flag_unknown_warning_option=yes
7973 else
7974   xorg_cv_cc_flag_unknown_warning_option=no
7975 fi
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977 fi
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7979 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7980         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7981         CFLAGS="$xorg_testset_save_CFLAGS"
7982 fi
7983
7984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7985         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7986                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7987         fi
7988         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7989         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7990 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7991 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7992   $as_echo_n "(cached) " >&6
7993 else
7994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h.  */
7996 int i;
7997 _ACEOF
7998 if ac_fn_c_try_compile "$LINENO"; then :
7999   xorg_cv_cc_flag_unused_command_line_argument=yes
8000 else
8001   xorg_cv_cc_flag_unused_command_line_argument=no
8002 fi
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004 fi
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8006 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8007         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8008         CFLAGS="$xorg_testset_save_CFLAGS"
8009 fi
8010
8011 found="no"
8012
8013         if test $found = "no" ; then
8014                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8015                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8016                 fi
8017
8018                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8019                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8020                 fi
8021
8022                 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8023
8024                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8025 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8026                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8027                 if eval \${$cacheid+:} false; then :
8028   $as_echo_n "(cached) " >&6
8029 else
8030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h.  */
8032 int i;
8033 int
8034 main ()
8035 {
8036
8037   ;
8038   return 0;
8039 }
8040 _ACEOF
8041 if ac_fn_c_try_link "$LINENO"; then :
8042   eval $cacheid=yes
8043 else
8044   eval $cacheid=no
8045 fi
8046 rm -f core conftest.err conftest.$ac_objext \
8047     conftest$ac_exeext conftest.$ac_ext
8048 fi
8049
8050
8051                 CFLAGS="$xorg_testset_save_CFLAGS"
8052
8053                 eval supported=\$$cacheid
8054                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8055 $as_echo "$supported" >&6; }
8056                 if test "$supported" = "yes" ; then
8057                         BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8058                         found="yes"
8059                 fi
8060         fi
8061
8062         if test $found = "no" ; then
8063                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8064                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8065                 fi
8066
8067                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8068                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8069                 fi
8070
8071                 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8072
8073                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8074 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8075                 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8076                 if eval \${$cacheid+:} false; then :
8077   $as_echo_n "(cached) " >&6
8078 else
8079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h.  */
8081 int i;
8082 int
8083 main ()
8084 {
8085
8086   ;
8087   return 0;
8088 }
8089 _ACEOF
8090 if ac_fn_c_try_link "$LINENO"; then :
8091   eval $cacheid=yes
8092 else
8093   eval $cacheid=no
8094 fi
8095 rm -f core conftest.err conftest.$ac_objext \
8096     conftest$ac_exeext conftest.$ac_ext
8097 fi
8098
8099
8100                 CFLAGS="$xorg_testset_save_CFLAGS"
8101
8102                 eval supported=\$$cacheid
8103                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8104 $as_echo "$supported" >&6; }
8105                 if test "$supported" = "yes" ; then
8106                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8107                         found="yes"
8108                 fi
8109         fi
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125 xorg_testset_save_CFLAGS="$CFLAGS"
8126
8127 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8128         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8129         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8130 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8131 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8132   $as_echo_n "(cached) " >&6
8133 else
8134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h.  */
8136 int i;
8137 _ACEOF
8138 if ac_fn_c_try_compile "$LINENO"; then :
8139   xorg_cv_cc_flag_unknown_warning_option=yes
8140 else
8141   xorg_cv_cc_flag_unknown_warning_option=no
8142 fi
8143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8144 fi
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8146 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8147         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8148         CFLAGS="$xorg_testset_save_CFLAGS"
8149 fi
8150
8151 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8152         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8153                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8154         fi
8155         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8156         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8157 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8158 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8159   $as_echo_n "(cached) " >&6
8160 else
8161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h.  */
8163 int i;
8164 _ACEOF
8165 if ac_fn_c_try_compile "$LINENO"; then :
8166   xorg_cv_cc_flag_unused_command_line_argument=yes
8167 else
8168   xorg_cv_cc_flag_unused_command_line_argument=no
8169 fi
8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171 fi
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8173 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8174         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8175         CFLAGS="$xorg_testset_save_CFLAGS"
8176 fi
8177
8178 found="no"
8179
8180         if test $found = "no" ; then
8181                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8182                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8183                 fi
8184
8185                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8186                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8187                 fi
8188
8189                 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8190
8191                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8192 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8193                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8194                 if eval \${$cacheid+:} false; then :
8195   $as_echo_n "(cached) " >&6
8196 else
8197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h.  */
8199 int i;
8200 int
8201 main ()
8202 {
8203
8204   ;
8205   return 0;
8206 }
8207 _ACEOF
8208 if ac_fn_c_try_link "$LINENO"; then :
8209   eval $cacheid=yes
8210 else
8211   eval $cacheid=no
8212 fi
8213 rm -f core conftest.err conftest.$ac_objext \
8214     conftest$ac_exeext conftest.$ac_ext
8215 fi
8216
8217
8218                 CFLAGS="$xorg_testset_save_CFLAGS"
8219
8220                 eval supported=\$$cacheid
8221                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8222 $as_echo "$supported" >&6; }
8223                 if test "$supported" = "yes" ; then
8224                         BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8225                         found="yes"
8226                 fi
8227         fi
8228
8229  # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8230 else
8231 { $as_echo "$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
8232 $as_echo "$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;}
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246 xorg_testset_save_CFLAGS="$CFLAGS"
8247
8248 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8249         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8250         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8251 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8252 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8253   $as_echo_n "(cached) " >&6
8254 else
8255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h.  */
8257 int i;
8258 _ACEOF
8259 if ac_fn_c_try_compile "$LINENO"; then :
8260   xorg_cv_cc_flag_unknown_warning_option=yes
8261 else
8262   xorg_cv_cc_flag_unknown_warning_option=no
8263 fi
8264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8265 fi
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8267 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8268         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8269         CFLAGS="$xorg_testset_save_CFLAGS"
8270 fi
8271
8272 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8273         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8274                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8275         fi
8276         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8277         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8278 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8279 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8280   $as_echo_n "(cached) " >&6
8281 else
8282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283 /* end confdefs.h.  */
8284 int i;
8285 _ACEOF
8286 if ac_fn_c_try_compile "$LINENO"; then :
8287   xorg_cv_cc_flag_unused_command_line_argument=yes
8288 else
8289   xorg_cv_cc_flag_unused_command_line_argument=no
8290 fi
8291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8292 fi
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8294 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8295         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8296         CFLAGS="$xorg_testset_save_CFLAGS"
8297 fi
8298
8299 found="no"
8300
8301         if test $found = "no" ; then
8302                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8303                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8304                 fi
8305
8306                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8307                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8308                 fi
8309
8310                 CFLAGS="$CFLAGS -Wimplicit"
8311
8312                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8313 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8314                 cacheid=xorg_cv_cc_flag__Wimplicit
8315                 if eval \${$cacheid+:} false; then :
8316   $as_echo_n "(cached) " >&6
8317 else
8318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h.  */
8320 int i;
8321 int
8322 main ()
8323 {
8324
8325   ;
8326   return 0;
8327 }
8328 _ACEOF
8329 if ac_fn_c_try_link "$LINENO"; then :
8330   eval $cacheid=yes
8331 else
8332   eval $cacheid=no
8333 fi
8334 rm -f core conftest.err conftest.$ac_objext \
8335     conftest$ac_exeext conftest.$ac_ext
8336 fi
8337
8338
8339                 CFLAGS="$xorg_testset_save_CFLAGS"
8340
8341                 eval supported=\$$cacheid
8342                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8343 $as_echo "$supported" >&6; }
8344                 if test "$supported" = "yes" ; then
8345                         BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8346                         found="yes"
8347                 fi
8348         fi
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364 xorg_testset_save_CFLAGS="$CFLAGS"
8365
8366 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8367         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8368         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8369 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8370 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8371   $as_echo_n "(cached) " >&6
8372 else
8373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h.  */
8375 int i;
8376 _ACEOF
8377 if ac_fn_c_try_compile "$LINENO"; then :
8378   xorg_cv_cc_flag_unknown_warning_option=yes
8379 else
8380   xorg_cv_cc_flag_unknown_warning_option=no
8381 fi
8382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8383 fi
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8385 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8386         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8387         CFLAGS="$xorg_testset_save_CFLAGS"
8388 fi
8389
8390 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8391         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8392                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8393         fi
8394         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8395         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8396 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8397 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8398   $as_echo_n "(cached) " >&6
8399 else
8400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h.  */
8402 int i;
8403 _ACEOF
8404 if ac_fn_c_try_compile "$LINENO"; then :
8405   xorg_cv_cc_flag_unused_command_line_argument=yes
8406 else
8407   xorg_cv_cc_flag_unused_command_line_argument=no
8408 fi
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410 fi
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8412 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8413         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8414         CFLAGS="$xorg_testset_save_CFLAGS"
8415 fi
8416
8417 found="no"
8418
8419         if test $found = "no" ; then
8420                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8421                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8422                 fi
8423
8424                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8425                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8426                 fi
8427
8428                 CFLAGS="$CFLAGS -Wnonnull"
8429
8430                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8431 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8432                 cacheid=xorg_cv_cc_flag__Wnonnull
8433                 if eval \${$cacheid+:} false; then :
8434   $as_echo_n "(cached) " >&6
8435 else
8436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8437 /* end confdefs.h.  */
8438 int i;
8439 int
8440 main ()
8441 {
8442
8443   ;
8444   return 0;
8445 }
8446 _ACEOF
8447 if ac_fn_c_try_link "$LINENO"; then :
8448   eval $cacheid=yes
8449 else
8450   eval $cacheid=no
8451 fi
8452 rm -f core conftest.err conftest.$ac_objext \
8453     conftest$ac_exeext conftest.$ac_ext
8454 fi
8455
8456
8457                 CFLAGS="$xorg_testset_save_CFLAGS"
8458
8459                 eval supported=\$$cacheid
8460                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8461 $as_echo "$supported" >&6; }
8462                 if test "$supported" = "yes" ; then
8463                         BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8464                         found="yes"
8465                 fi
8466         fi
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482 xorg_testset_save_CFLAGS="$CFLAGS"
8483
8484 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8485         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8486         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8487 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8488 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8489   $as_echo_n "(cached) " >&6
8490 else
8491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h.  */
8493 int i;
8494 _ACEOF
8495 if ac_fn_c_try_compile "$LINENO"; then :
8496   xorg_cv_cc_flag_unknown_warning_option=yes
8497 else
8498   xorg_cv_cc_flag_unknown_warning_option=no
8499 fi
8500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8501 fi
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8503 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8504         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8505         CFLAGS="$xorg_testset_save_CFLAGS"
8506 fi
8507
8508 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8509         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8510                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8511         fi
8512         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8513         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8514 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8515 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8516   $as_echo_n "(cached) " >&6
8517 else
8518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h.  */
8520 int i;
8521 _ACEOF
8522 if ac_fn_c_try_compile "$LINENO"; then :
8523   xorg_cv_cc_flag_unused_command_line_argument=yes
8524 else
8525   xorg_cv_cc_flag_unused_command_line_argument=no
8526 fi
8527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528 fi
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8530 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8531         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8532         CFLAGS="$xorg_testset_save_CFLAGS"
8533 fi
8534
8535 found="no"
8536
8537         if test $found = "no" ; then
8538                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8539                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8540                 fi
8541
8542                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8543                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8544                 fi
8545
8546                 CFLAGS="$CFLAGS -Winit-self"
8547
8548                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8549 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8550                 cacheid=xorg_cv_cc_flag__Winit_self
8551                 if eval \${$cacheid+:} false; then :
8552   $as_echo_n "(cached) " >&6
8553 else
8554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8555 /* end confdefs.h.  */
8556 int i;
8557 int
8558 main ()
8559 {
8560
8561   ;
8562   return 0;
8563 }
8564 _ACEOF
8565 if ac_fn_c_try_link "$LINENO"; then :
8566   eval $cacheid=yes
8567 else
8568   eval $cacheid=no
8569 fi
8570 rm -f core conftest.err conftest.$ac_objext \
8571     conftest$ac_exeext conftest.$ac_ext
8572 fi
8573
8574
8575                 CFLAGS="$xorg_testset_save_CFLAGS"
8576
8577                 eval supported=\$$cacheid
8578                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8579 $as_echo "$supported" >&6; }
8580                 if test "$supported" = "yes" ; then
8581                         BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8582                         found="yes"
8583                 fi
8584         fi
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600 xorg_testset_save_CFLAGS="$CFLAGS"
8601
8602 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8603         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8604         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8605 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8606 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8607   $as_echo_n "(cached) " >&6
8608 else
8609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h.  */
8611 int i;
8612 _ACEOF
8613 if ac_fn_c_try_compile "$LINENO"; then :
8614   xorg_cv_cc_flag_unknown_warning_option=yes
8615 else
8616   xorg_cv_cc_flag_unknown_warning_option=no
8617 fi
8618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619 fi
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8621 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8622         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8623         CFLAGS="$xorg_testset_save_CFLAGS"
8624 fi
8625
8626 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8627         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8628                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8629         fi
8630         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8631         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8632 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8633 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8634   $as_echo_n "(cached) " >&6
8635 else
8636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h.  */
8638 int i;
8639 _ACEOF
8640 if ac_fn_c_try_compile "$LINENO"; then :
8641   xorg_cv_cc_flag_unused_command_line_argument=yes
8642 else
8643   xorg_cv_cc_flag_unused_command_line_argument=no
8644 fi
8645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8646 fi
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8648 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8649         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8650         CFLAGS="$xorg_testset_save_CFLAGS"
8651 fi
8652
8653 found="no"
8654
8655         if test $found = "no" ; then
8656                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8657                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8658                 fi
8659
8660                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8661                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8662                 fi
8663
8664                 CFLAGS="$CFLAGS -Wmain"
8665
8666                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8667 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
8668                 cacheid=xorg_cv_cc_flag__Wmain
8669                 if eval \${$cacheid+:} false; then :
8670   $as_echo_n "(cached) " >&6
8671 else
8672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8673 /* end confdefs.h.  */
8674 int i;
8675 int
8676 main ()
8677 {
8678
8679   ;
8680   return 0;
8681 }
8682 _ACEOF
8683 if ac_fn_c_try_link "$LINENO"; then :
8684   eval $cacheid=yes
8685 else
8686   eval $cacheid=no
8687 fi
8688 rm -f core conftest.err conftest.$ac_objext \
8689     conftest$ac_exeext conftest.$ac_ext
8690 fi
8691
8692
8693                 CFLAGS="$xorg_testset_save_CFLAGS"
8694
8695                 eval supported=\$$cacheid
8696                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8697 $as_echo "$supported" >&6; }
8698                 if test "$supported" = "yes" ; then
8699                         BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8700                         found="yes"
8701                 fi
8702         fi
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718 xorg_testset_save_CFLAGS="$CFLAGS"
8719
8720 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8721         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8722         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8723 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8724 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8725   $as_echo_n "(cached) " >&6
8726 else
8727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h.  */
8729 int i;
8730 _ACEOF
8731 if ac_fn_c_try_compile "$LINENO"; then :
8732   xorg_cv_cc_flag_unknown_warning_option=yes
8733 else
8734   xorg_cv_cc_flag_unknown_warning_option=no
8735 fi
8736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8737 fi
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8739 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8740         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8741         CFLAGS="$xorg_testset_save_CFLAGS"
8742 fi
8743
8744 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8745         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8746                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8747         fi
8748         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8749         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8750 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8751 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8752   $as_echo_n "(cached) " >&6
8753 else
8754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h.  */
8756 int i;
8757 _ACEOF
8758 if ac_fn_c_try_compile "$LINENO"; then :
8759   xorg_cv_cc_flag_unused_command_line_argument=yes
8760 else
8761   xorg_cv_cc_flag_unused_command_line_argument=no
8762 fi
8763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8764 fi
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8766 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8767         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8768         CFLAGS="$xorg_testset_save_CFLAGS"
8769 fi
8770
8771 found="no"
8772
8773         if test $found = "no" ; then
8774                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8775                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8776                 fi
8777
8778                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8779                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8780                 fi
8781
8782                 CFLAGS="$CFLAGS -Wmissing-braces"
8783
8784                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8785 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
8786                 cacheid=xorg_cv_cc_flag__Wmissing_braces
8787                 if eval \${$cacheid+:} false; then :
8788   $as_echo_n "(cached) " >&6
8789 else
8790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791 /* end confdefs.h.  */
8792 int i;
8793 int
8794 main ()
8795 {
8796
8797   ;
8798   return 0;
8799 }
8800 _ACEOF
8801 if ac_fn_c_try_link "$LINENO"; then :
8802   eval $cacheid=yes
8803 else
8804   eval $cacheid=no
8805 fi
8806 rm -f core conftest.err conftest.$ac_objext \
8807     conftest$ac_exeext conftest.$ac_ext
8808 fi
8809
8810
8811                 CFLAGS="$xorg_testset_save_CFLAGS"
8812
8813                 eval supported=\$$cacheid
8814                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8815 $as_echo "$supported" >&6; }
8816                 if test "$supported" = "yes" ; then
8817                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8818                         found="yes"
8819                 fi
8820         fi
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836 xorg_testset_save_CFLAGS="$CFLAGS"
8837
8838 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8839         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8840         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8841 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8842 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8843   $as_echo_n "(cached) " >&6
8844 else
8845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h.  */
8847 int i;
8848 _ACEOF
8849 if ac_fn_c_try_compile "$LINENO"; then :
8850   xorg_cv_cc_flag_unknown_warning_option=yes
8851 else
8852   xorg_cv_cc_flag_unknown_warning_option=no
8853 fi
8854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855 fi
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8857 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8858         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8859         CFLAGS="$xorg_testset_save_CFLAGS"
8860 fi
8861
8862 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8863         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8864                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8865         fi
8866         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8867         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8868 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8869 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8870   $as_echo_n "(cached) " >&6
8871 else
8872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h.  */
8874 int i;
8875 _ACEOF
8876 if ac_fn_c_try_compile "$LINENO"; then :
8877   xorg_cv_cc_flag_unused_command_line_argument=yes
8878 else
8879   xorg_cv_cc_flag_unused_command_line_argument=no
8880 fi
8881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8882 fi
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8884 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8885         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8886         CFLAGS="$xorg_testset_save_CFLAGS"
8887 fi
8888
8889 found="no"
8890
8891         if test $found = "no" ; then
8892                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8893                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8894                 fi
8895
8896                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8897                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8898                 fi
8899
8900                 CFLAGS="$CFLAGS -Wsequence-point"
8901
8902                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
8903 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
8904                 cacheid=xorg_cv_cc_flag__Wsequence_point
8905                 if eval \${$cacheid+:} false; then :
8906   $as_echo_n "(cached) " >&6
8907 else
8908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h.  */
8910 int i;
8911 int
8912 main ()
8913 {
8914
8915   ;
8916   return 0;
8917 }
8918 _ACEOF
8919 if ac_fn_c_try_link "$LINENO"; then :
8920   eval $cacheid=yes
8921 else
8922   eval $cacheid=no
8923 fi
8924 rm -f core conftest.err conftest.$ac_objext \
8925     conftest$ac_exeext conftest.$ac_ext
8926 fi
8927
8928
8929                 CFLAGS="$xorg_testset_save_CFLAGS"
8930
8931                 eval supported=\$$cacheid
8932                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8933 $as_echo "$supported" >&6; }
8934                 if test "$supported" = "yes" ; then
8935                         BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8936                         found="yes"
8937                 fi
8938         fi
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954 xorg_testset_save_CFLAGS="$CFLAGS"
8955
8956 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8957         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8958         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8959 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8960 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8961   $as_echo_n "(cached) " >&6
8962 else
8963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h.  */
8965 int i;
8966 _ACEOF
8967 if ac_fn_c_try_compile "$LINENO"; then :
8968   xorg_cv_cc_flag_unknown_warning_option=yes
8969 else
8970   xorg_cv_cc_flag_unknown_warning_option=no
8971 fi
8972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8973 fi
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8975 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8976         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8977         CFLAGS="$xorg_testset_save_CFLAGS"
8978 fi
8979
8980 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8981         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8982                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8983         fi
8984         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8985         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8986 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8987 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8988   $as_echo_n "(cached) " >&6
8989 else
8990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h.  */
8992 int i;
8993 _ACEOF
8994 if ac_fn_c_try_compile "$LINENO"; then :
8995   xorg_cv_cc_flag_unused_command_line_argument=yes
8996 else
8997   xorg_cv_cc_flag_unused_command_line_argument=no
8998 fi
8999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9000 fi
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9002 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9003         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9004         CFLAGS="$xorg_testset_save_CFLAGS"
9005 fi
9006
9007 found="no"
9008
9009         if test $found = "no" ; then
9010                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9011                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9012                 fi
9013
9014                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9015                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9016                 fi
9017
9018                 CFLAGS="$CFLAGS -Wreturn-type"
9019
9020                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9021 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9022                 cacheid=xorg_cv_cc_flag__Wreturn_type
9023                 if eval \${$cacheid+:} false; then :
9024   $as_echo_n "(cached) " >&6
9025 else
9026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h.  */
9028 int i;
9029 int
9030 main ()
9031 {
9032
9033   ;
9034   return 0;
9035 }
9036 _ACEOF
9037 if ac_fn_c_try_link "$LINENO"; then :
9038   eval $cacheid=yes
9039 else
9040   eval $cacheid=no
9041 fi
9042 rm -f core conftest.err conftest.$ac_objext \
9043     conftest$ac_exeext conftest.$ac_ext
9044 fi
9045
9046
9047                 CFLAGS="$xorg_testset_save_CFLAGS"
9048
9049                 eval supported=\$$cacheid
9050                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9051 $as_echo "$supported" >&6; }
9052                 if test "$supported" = "yes" ; then
9053                         BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9054                         found="yes"
9055                 fi
9056         fi
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072 xorg_testset_save_CFLAGS="$CFLAGS"
9073
9074 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9075         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9076         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9077 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9078 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9079   $as_echo_n "(cached) " >&6
9080 else
9081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h.  */
9083 int i;
9084 _ACEOF
9085 if ac_fn_c_try_compile "$LINENO"; then :
9086   xorg_cv_cc_flag_unknown_warning_option=yes
9087 else
9088   xorg_cv_cc_flag_unknown_warning_option=no
9089 fi
9090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9091 fi
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9093 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9094         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9095         CFLAGS="$xorg_testset_save_CFLAGS"
9096 fi
9097
9098 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9099         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9100                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9101         fi
9102         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9103         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9104 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9105 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9106   $as_echo_n "(cached) " >&6
9107 else
9108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109 /* end confdefs.h.  */
9110 int i;
9111 _ACEOF
9112 if ac_fn_c_try_compile "$LINENO"; then :
9113   xorg_cv_cc_flag_unused_command_line_argument=yes
9114 else
9115   xorg_cv_cc_flag_unused_command_line_argument=no
9116 fi
9117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9118 fi
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9120 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9121         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9122         CFLAGS="$xorg_testset_save_CFLAGS"
9123 fi
9124
9125 found="no"
9126
9127         if test $found = "no" ; then
9128                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9129                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9130                 fi
9131
9132                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9133                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9134                 fi
9135
9136                 CFLAGS="$CFLAGS -Wtrigraphs"
9137
9138                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9139 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9140                 cacheid=xorg_cv_cc_flag__Wtrigraphs
9141                 if eval \${$cacheid+:} false; then :
9142   $as_echo_n "(cached) " >&6
9143 else
9144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h.  */
9146 int i;
9147 int
9148 main ()
9149 {
9150
9151   ;
9152   return 0;
9153 }
9154 _ACEOF
9155 if ac_fn_c_try_link "$LINENO"; then :
9156   eval $cacheid=yes
9157 else
9158   eval $cacheid=no
9159 fi
9160 rm -f core conftest.err conftest.$ac_objext \
9161     conftest$ac_exeext conftest.$ac_ext
9162 fi
9163
9164
9165                 CFLAGS="$xorg_testset_save_CFLAGS"
9166
9167                 eval supported=\$$cacheid
9168                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9169 $as_echo "$supported" >&6; }
9170                 if test "$supported" = "yes" ; then
9171                         BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9172                         found="yes"
9173                 fi
9174         fi
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190 xorg_testset_save_CFLAGS="$CFLAGS"
9191
9192 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9193         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9194         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9195 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9196 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9197   $as_echo_n "(cached) " >&6
9198 else
9199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h.  */
9201 int i;
9202 _ACEOF
9203 if ac_fn_c_try_compile "$LINENO"; then :
9204   xorg_cv_cc_flag_unknown_warning_option=yes
9205 else
9206   xorg_cv_cc_flag_unknown_warning_option=no
9207 fi
9208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9209 fi
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9211 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9212         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9213         CFLAGS="$xorg_testset_save_CFLAGS"
9214 fi
9215
9216 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9217         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9218                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9219         fi
9220         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9221         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9222 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9223 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9224   $as_echo_n "(cached) " >&6
9225 else
9226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h.  */
9228 int i;
9229 _ACEOF
9230 if ac_fn_c_try_compile "$LINENO"; then :
9231   xorg_cv_cc_flag_unused_command_line_argument=yes
9232 else
9233   xorg_cv_cc_flag_unused_command_line_argument=no
9234 fi
9235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9236 fi
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9238 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9239         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9240         CFLAGS="$xorg_testset_save_CFLAGS"
9241 fi
9242
9243 found="no"
9244
9245         if test $found = "no" ; then
9246                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9247                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9248                 fi
9249
9250                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9251                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9252                 fi
9253
9254                 CFLAGS="$CFLAGS -Warray-bounds"
9255
9256                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9257 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9258                 cacheid=xorg_cv_cc_flag__Warray_bounds
9259                 if eval \${$cacheid+:} false; then :
9260   $as_echo_n "(cached) " >&6
9261 else
9262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h.  */
9264 int i;
9265 int
9266 main ()
9267 {
9268
9269   ;
9270   return 0;
9271 }
9272 _ACEOF
9273 if ac_fn_c_try_link "$LINENO"; then :
9274   eval $cacheid=yes
9275 else
9276   eval $cacheid=no
9277 fi
9278 rm -f core conftest.err conftest.$ac_objext \
9279     conftest$ac_exeext conftest.$ac_ext
9280 fi
9281
9282
9283                 CFLAGS="$xorg_testset_save_CFLAGS"
9284
9285                 eval supported=\$$cacheid
9286                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9287 $as_echo "$supported" >&6; }
9288                 if test "$supported" = "yes" ; then
9289                         BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9290                         found="yes"
9291                 fi
9292         fi
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308 xorg_testset_save_CFLAGS="$CFLAGS"
9309
9310 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9311         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9312         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9313 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9314 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9315   $as_echo_n "(cached) " >&6
9316 else
9317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h.  */
9319 int i;
9320 _ACEOF
9321 if ac_fn_c_try_compile "$LINENO"; then :
9322   xorg_cv_cc_flag_unknown_warning_option=yes
9323 else
9324   xorg_cv_cc_flag_unknown_warning_option=no
9325 fi
9326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9327 fi
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9329 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9330         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9331         CFLAGS="$xorg_testset_save_CFLAGS"
9332 fi
9333
9334 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9335         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9336                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9337         fi
9338         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9339         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9340 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9341 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9342   $as_echo_n "(cached) " >&6
9343 else
9344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h.  */
9346 int i;
9347 _ACEOF
9348 if ac_fn_c_try_compile "$LINENO"; then :
9349   xorg_cv_cc_flag_unused_command_line_argument=yes
9350 else
9351   xorg_cv_cc_flag_unused_command_line_argument=no
9352 fi
9353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9354 fi
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9356 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9357         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9358         CFLAGS="$xorg_testset_save_CFLAGS"
9359 fi
9360
9361 found="no"
9362
9363         if test $found = "no" ; then
9364                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9365                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9366                 fi
9367
9368                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9369                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9370                 fi
9371
9372                 CFLAGS="$CFLAGS -Wwrite-strings"
9373
9374                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9375 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9376                 cacheid=xorg_cv_cc_flag__Wwrite_strings
9377                 if eval \${$cacheid+:} false; then :
9378   $as_echo_n "(cached) " >&6
9379 else
9380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h.  */
9382 int i;
9383 int
9384 main ()
9385 {
9386
9387   ;
9388   return 0;
9389 }
9390 _ACEOF
9391 if ac_fn_c_try_link "$LINENO"; then :
9392   eval $cacheid=yes
9393 else
9394   eval $cacheid=no
9395 fi
9396 rm -f core conftest.err conftest.$ac_objext \
9397     conftest$ac_exeext conftest.$ac_ext
9398 fi
9399
9400
9401                 CFLAGS="$xorg_testset_save_CFLAGS"
9402
9403                 eval supported=\$$cacheid
9404                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9405 $as_echo "$supported" >&6; }
9406                 if test "$supported" = "yes" ; then
9407                         BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9408                         found="yes"
9409                 fi
9410         fi
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426 xorg_testset_save_CFLAGS="$CFLAGS"
9427
9428 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9429         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9430         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9431 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9432 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9433   $as_echo_n "(cached) " >&6
9434 else
9435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h.  */
9437 int i;
9438 _ACEOF
9439 if ac_fn_c_try_compile "$LINENO"; then :
9440   xorg_cv_cc_flag_unknown_warning_option=yes
9441 else
9442   xorg_cv_cc_flag_unknown_warning_option=no
9443 fi
9444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9445 fi
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9447 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9448         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9449         CFLAGS="$xorg_testset_save_CFLAGS"
9450 fi
9451
9452 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9453         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9454                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9455         fi
9456         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9457         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9458 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9459 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9460   $as_echo_n "(cached) " >&6
9461 else
9462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h.  */
9464 int i;
9465 _ACEOF
9466 if ac_fn_c_try_compile "$LINENO"; then :
9467   xorg_cv_cc_flag_unused_command_line_argument=yes
9468 else
9469   xorg_cv_cc_flag_unused_command_line_argument=no
9470 fi
9471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9472 fi
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9474 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9475         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9476         CFLAGS="$xorg_testset_save_CFLAGS"
9477 fi
9478
9479 found="no"
9480
9481         if test $found = "no" ; then
9482                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9483                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9484                 fi
9485
9486                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9487                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9488                 fi
9489
9490                 CFLAGS="$CFLAGS -Waddress"
9491
9492                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9493 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9494                 cacheid=xorg_cv_cc_flag__Waddress
9495                 if eval \${$cacheid+:} false; then :
9496   $as_echo_n "(cached) " >&6
9497 else
9498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h.  */
9500 int i;
9501 int
9502 main ()
9503 {
9504
9505   ;
9506   return 0;
9507 }
9508 _ACEOF
9509 if ac_fn_c_try_link "$LINENO"; then :
9510   eval $cacheid=yes
9511 else
9512   eval $cacheid=no
9513 fi
9514 rm -f core conftest.err conftest.$ac_objext \
9515     conftest$ac_exeext conftest.$ac_ext
9516 fi
9517
9518
9519                 CFLAGS="$xorg_testset_save_CFLAGS"
9520
9521                 eval supported=\$$cacheid
9522                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9523 $as_echo "$supported" >&6; }
9524                 if test "$supported" = "yes" ; then
9525                         BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9526                         found="yes"
9527                 fi
9528         fi
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544 xorg_testset_save_CFLAGS="$CFLAGS"
9545
9546 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9547         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9548         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9549 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9550 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9551   $as_echo_n "(cached) " >&6
9552 else
9553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h.  */
9555 int i;
9556 _ACEOF
9557 if ac_fn_c_try_compile "$LINENO"; then :
9558   xorg_cv_cc_flag_unknown_warning_option=yes
9559 else
9560   xorg_cv_cc_flag_unknown_warning_option=no
9561 fi
9562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9563 fi
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9565 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9566         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9567         CFLAGS="$xorg_testset_save_CFLAGS"
9568 fi
9569
9570 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9571         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9572                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9573         fi
9574         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9575         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9576 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9577 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9578   $as_echo_n "(cached) " >&6
9579 else
9580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h.  */
9582 int i;
9583 _ACEOF
9584 if ac_fn_c_try_compile "$LINENO"; then :
9585   xorg_cv_cc_flag_unused_command_line_argument=yes
9586 else
9587   xorg_cv_cc_flag_unused_command_line_argument=no
9588 fi
9589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9590 fi
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9592 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9593         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9594         CFLAGS="$xorg_testset_save_CFLAGS"
9595 fi
9596
9597 found="no"
9598
9599         if test $found = "no" ; then
9600                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9601                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9602                 fi
9603
9604                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9605                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9606                 fi
9607
9608                 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9609
9610                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9611 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9612                 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9613                 if eval \${$cacheid+:} false; then :
9614   $as_echo_n "(cached) " >&6
9615 else
9616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617 /* end confdefs.h.  */
9618 int i;
9619 int
9620 main ()
9621 {
9622
9623   ;
9624   return 0;
9625 }
9626 _ACEOF
9627 if ac_fn_c_try_link "$LINENO"; then :
9628   eval $cacheid=yes
9629 else
9630   eval $cacheid=no
9631 fi
9632 rm -f core conftest.err conftest.$ac_objext \
9633     conftest$ac_exeext conftest.$ac_ext
9634 fi
9635
9636
9637                 CFLAGS="$xorg_testset_save_CFLAGS"
9638
9639                 eval supported=\$$cacheid
9640                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9641 $as_echo "$supported" >&6; }
9642                 if test "$supported" = "yes" ; then
9643                         BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9644                         found="yes"
9645                 fi
9646         fi
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662 xorg_testset_save_CFLAGS="$CFLAGS"
9663
9664 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9665         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9666         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9667 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9668 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9669   $as_echo_n "(cached) " >&6
9670 else
9671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h.  */
9673 int i;
9674 _ACEOF
9675 if ac_fn_c_try_compile "$LINENO"; then :
9676   xorg_cv_cc_flag_unknown_warning_option=yes
9677 else
9678   xorg_cv_cc_flag_unknown_warning_option=no
9679 fi
9680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681 fi
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9683 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9684         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9685         CFLAGS="$xorg_testset_save_CFLAGS"
9686 fi
9687
9688 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9689         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9690                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9691         fi
9692         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9693         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9694 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9695 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9696   $as_echo_n "(cached) " >&6
9697 else
9698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h.  */
9700 int i;
9701 _ACEOF
9702 if ac_fn_c_try_compile "$LINENO"; then :
9703   xorg_cv_cc_flag_unused_command_line_argument=yes
9704 else
9705   xorg_cv_cc_flag_unused_command_line_argument=no
9706 fi
9707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9708 fi
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9710 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9711         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9712         CFLAGS="$xorg_testset_save_CFLAGS"
9713 fi
9714
9715 found="no"
9716
9717         if test $found = "no" ; then
9718                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9719                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9720                 fi
9721
9722                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9723                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9724                 fi
9725
9726                 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9727
9728                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9729 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9730                 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9731                 if eval \${$cacheid+:} false; then :
9732   $as_echo_n "(cached) " >&6
9733 else
9734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735 /* end confdefs.h.  */
9736 int i;
9737 int
9738 main ()
9739 {
9740
9741   ;
9742   return 0;
9743 }
9744 _ACEOF
9745 if ac_fn_c_try_link "$LINENO"; then :
9746   eval $cacheid=yes
9747 else
9748   eval $cacheid=no
9749 fi
9750 rm -f core conftest.err conftest.$ac_objext \
9751     conftest$ac_exeext conftest.$ac_ext
9752 fi
9753
9754
9755                 CFLAGS="$xorg_testset_save_CFLAGS"
9756
9757                 eval supported=\$$cacheid
9758                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9759 $as_echo "$supported" >&6; }
9760                 if test "$supported" = "yes" ; then
9761                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9762                         found="yes"
9763                 fi
9764         fi
9765
9766
9767 fi
9768
9769
9770
9771
9772
9773
9774
9775                 CWARNFLAGS="$BASE_CFLAGS"
9776                 if  test "x$GCC" = xyes ; then
9777                     CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9778                 fi
9779
9780
9781
9782
9783
9784
9785
9786
9787 # Check whether --enable-strict-compilation was given.
9788 if test "${enable_strict_compilation+set}" = set; then :
9789   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9790 else
9791   STRICT_COMPILE=no
9792 fi
9793
9794
9795
9796
9797
9798
9799 STRICT_CFLAGS=""
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813 xorg_testset_save_CFLAGS="$CFLAGS"
9814
9815 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9816         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9817         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9818 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9819 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9820   $as_echo_n "(cached) " >&6
9821 else
9822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823 /* end confdefs.h.  */
9824 int i;
9825 _ACEOF
9826 if ac_fn_c_try_compile "$LINENO"; then :
9827   xorg_cv_cc_flag_unknown_warning_option=yes
9828 else
9829   xorg_cv_cc_flag_unknown_warning_option=no
9830 fi
9831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9832 fi
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9834 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9835         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9836         CFLAGS="$xorg_testset_save_CFLAGS"
9837 fi
9838
9839 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9840         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9841                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9842         fi
9843         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9844         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9845 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9846 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9847   $as_echo_n "(cached) " >&6
9848 else
9849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9850 /* end confdefs.h.  */
9851 int i;
9852 _ACEOF
9853 if ac_fn_c_try_compile "$LINENO"; then :
9854   xorg_cv_cc_flag_unused_command_line_argument=yes
9855 else
9856   xorg_cv_cc_flag_unused_command_line_argument=no
9857 fi
9858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9859 fi
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9861 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9862         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9863         CFLAGS="$xorg_testset_save_CFLAGS"
9864 fi
9865
9866 found="no"
9867
9868         if test $found = "no" ; then
9869                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9870                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9871                 fi
9872
9873                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9874                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9875                 fi
9876
9877                 CFLAGS="$CFLAGS -pedantic"
9878
9879                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
9880 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
9881                 cacheid=xorg_cv_cc_flag__pedantic
9882                 if eval \${$cacheid+:} false; then :
9883   $as_echo_n "(cached) " >&6
9884 else
9885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886 /* end confdefs.h.  */
9887 int i;
9888 int
9889 main ()
9890 {
9891
9892   ;
9893   return 0;
9894 }
9895 _ACEOF
9896 if ac_fn_c_try_link "$LINENO"; then :
9897   eval $cacheid=yes
9898 else
9899   eval $cacheid=no
9900 fi
9901 rm -f core conftest.err conftest.$ac_objext \
9902     conftest$ac_exeext conftest.$ac_ext
9903 fi
9904
9905
9906                 CFLAGS="$xorg_testset_save_CFLAGS"
9907
9908                 eval supported=\$$cacheid
9909                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9910 $as_echo "$supported" >&6; }
9911                 if test "$supported" = "yes" ; then
9912                         STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9913                         found="yes"
9914                 fi
9915         fi
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931 xorg_testset_save_CFLAGS="$CFLAGS"
9932
9933 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9934         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9935         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9936 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9937 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9938   $as_echo_n "(cached) " >&6
9939 else
9940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h.  */
9942 int i;
9943 _ACEOF
9944 if ac_fn_c_try_compile "$LINENO"; then :
9945   xorg_cv_cc_flag_unknown_warning_option=yes
9946 else
9947   xorg_cv_cc_flag_unknown_warning_option=no
9948 fi
9949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9950 fi
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9952 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9953         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9954         CFLAGS="$xorg_testset_save_CFLAGS"
9955 fi
9956
9957 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9958         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9959                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9960         fi
9961         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9962         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9963 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9964 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9965   $as_echo_n "(cached) " >&6
9966 else
9967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968 /* end confdefs.h.  */
9969 int i;
9970 _ACEOF
9971 if ac_fn_c_try_compile "$LINENO"; then :
9972   xorg_cv_cc_flag_unused_command_line_argument=yes
9973 else
9974   xorg_cv_cc_flag_unused_command_line_argument=no
9975 fi
9976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9977 fi
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9979 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9980         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9981         CFLAGS="$xorg_testset_save_CFLAGS"
9982 fi
9983
9984 found="no"
9985
9986         if test $found = "no" ; then
9987                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9988                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9989                 fi
9990
9991                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9992                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9993                 fi
9994
9995                 CFLAGS="$CFLAGS -Werror"
9996
9997                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
9998 $as_echo_n "checking if $CC supports-Werror... " >&6; }
9999                 cacheid=xorg_cv_cc_flag__Werror
10000                 if eval \${$cacheid+:} false; then :
10001   $as_echo_n "(cached) " >&6
10002 else
10003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h.  */
10005 int i;
10006 int
10007 main ()
10008 {
10009
10010   ;
10011   return 0;
10012 }
10013 _ACEOF
10014 if ac_fn_c_try_link "$LINENO"; then :
10015   eval $cacheid=yes
10016 else
10017   eval $cacheid=no
10018 fi
10019 rm -f core conftest.err conftest.$ac_objext \
10020     conftest$ac_exeext conftest.$ac_ext
10021 fi
10022
10023
10024                 CFLAGS="$xorg_testset_save_CFLAGS"
10025
10026                 eval supported=\$$cacheid
10027                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10028 $as_echo "$supported" >&6; }
10029                 if test "$supported" = "yes" ; then
10030                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10031                         found="yes"
10032                 fi
10033         fi
10034
10035         if test $found = "no" ; then
10036                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10037                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10038                 fi
10039
10040                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10041                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10042                 fi
10043
10044                 CFLAGS="$CFLAGS -errwarn"
10045
10046                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10047 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
10048                 cacheid=xorg_cv_cc_flag__errwarn
10049                 if eval \${$cacheid+:} false; then :
10050   $as_echo_n "(cached) " >&6
10051 else
10052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10053 /* end confdefs.h.  */
10054 int i;
10055 int
10056 main ()
10057 {
10058
10059   ;
10060   return 0;
10061 }
10062 _ACEOF
10063 if ac_fn_c_try_link "$LINENO"; then :
10064   eval $cacheid=yes
10065 else
10066   eval $cacheid=no
10067 fi
10068 rm -f core conftest.err conftest.$ac_objext \
10069     conftest$ac_exeext conftest.$ac_ext
10070 fi
10071
10072
10073                 CFLAGS="$xorg_testset_save_CFLAGS"
10074
10075                 eval supported=\$$cacheid
10076                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10077 $as_echo "$supported" >&6; }
10078                 if test "$supported" = "yes" ; then
10079                         STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10080                         found="yes"
10081                 fi
10082         fi
10083
10084
10085
10086 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10087 # activate it with -Werror, so we add it here explicitly.
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101 xorg_testset_save_CFLAGS="$CFLAGS"
10102
10103 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10104         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10105         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10106 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10107 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10108   $as_echo_n "(cached) " >&6
10109 else
10110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111 /* end confdefs.h.  */
10112 int i;
10113 _ACEOF
10114 if ac_fn_c_try_compile "$LINENO"; then :
10115   xorg_cv_cc_flag_unknown_warning_option=yes
10116 else
10117   xorg_cv_cc_flag_unknown_warning_option=no
10118 fi
10119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10120 fi
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10122 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10123         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10124         CFLAGS="$xorg_testset_save_CFLAGS"
10125 fi
10126
10127 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10128         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10129                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10130         fi
10131         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10132         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10133 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10134 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10135   $as_echo_n "(cached) " >&6
10136 else
10137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h.  */
10139 int i;
10140 _ACEOF
10141 if ac_fn_c_try_compile "$LINENO"; then :
10142   xorg_cv_cc_flag_unused_command_line_argument=yes
10143 else
10144   xorg_cv_cc_flag_unused_command_line_argument=no
10145 fi
10146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10147 fi
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10149 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10150         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10151         CFLAGS="$xorg_testset_save_CFLAGS"
10152 fi
10153
10154 found="no"
10155
10156         if test $found = "no" ; then
10157                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10158                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10159                 fi
10160
10161                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10162                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10163                 fi
10164
10165                 CFLAGS="$CFLAGS -Werror=attributes"
10166
10167                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10168 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10169                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10170                 if eval \${$cacheid+:} false; then :
10171   $as_echo_n "(cached) " >&6
10172 else
10173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h.  */
10175 int i;
10176 int
10177 main ()
10178 {
10179
10180   ;
10181   return 0;
10182 }
10183 _ACEOF
10184 if ac_fn_c_try_link "$LINENO"; then :
10185   eval $cacheid=yes
10186 else
10187   eval $cacheid=no
10188 fi
10189 rm -f core conftest.err conftest.$ac_objext \
10190     conftest$ac_exeext conftest.$ac_ext
10191 fi
10192
10193
10194                 CFLAGS="$xorg_testset_save_CFLAGS"
10195
10196                 eval supported=\$$cacheid
10197                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10198 $as_echo "$supported" >&6; }
10199                 if test "$supported" = "yes" ; then
10200                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10201                         found="yes"
10202                 fi
10203         fi
10204
10205
10206
10207 if test "x$STRICT_COMPILE" = "xyes"; then
10208     BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10209     CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10210 fi
10211
10212
10213
10214
10215
10216
10217 cat >>confdefs.h <<_ACEOF
10218 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10219 _ACEOF
10220
10221         PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10222         if test "x$PVM" = "x"; then
10223                 PVM="0"
10224         fi
10225
10226 cat >>confdefs.h <<_ACEOF
10227 #define PACKAGE_VERSION_MINOR $PVM
10228 _ACEOF
10229
10230         PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10231         if test "x$PVP" = "x"; then
10232                 PVP="0"
10233         fi
10234
10235 cat >>confdefs.h <<_ACEOF
10236 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10237 _ACEOF
10238
10239
10240
10241 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10242 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10243 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10244 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10245
10246
10247
10248
10249 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10250 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10251 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10252 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10253 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10254
10255
10256
10257
10258
10259
10260 if test x$APP_MAN_SUFFIX = x    ; then
10261     APP_MAN_SUFFIX=1
10262 fi
10263 if test x$APP_MAN_DIR = x    ; then
10264     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10265 fi
10266
10267 if test x$LIB_MAN_SUFFIX = x    ; then
10268     LIB_MAN_SUFFIX=3
10269 fi
10270 if test x$LIB_MAN_DIR = x    ; then
10271     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10272 fi
10273
10274 if test x$FILE_MAN_SUFFIX = x    ; then
10275     case $host_os in
10276         solaris*)       FILE_MAN_SUFFIX=4  ;;
10277         *)              FILE_MAN_SUFFIX=5  ;;
10278     esac
10279 fi
10280 if test x$FILE_MAN_DIR = x    ; then
10281     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10282 fi
10283
10284 if test x$MISC_MAN_SUFFIX = x    ; then
10285     case $host_os in
10286         solaris*)       MISC_MAN_SUFFIX=5  ;;
10287         *)              MISC_MAN_SUFFIX=7  ;;
10288     esac
10289 fi
10290 if test x$MISC_MAN_DIR = x    ; then
10291     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10292 fi
10293
10294 if test x$DRIVER_MAN_SUFFIX = x    ; then
10295     case $host_os in
10296         solaris*)       DRIVER_MAN_SUFFIX=7  ;;
10297         *)              DRIVER_MAN_SUFFIX=4  ;;
10298     esac
10299 fi
10300 if test x$DRIVER_MAN_DIR = x    ; then
10301     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10302 fi
10303
10304 if test x$ADMIN_MAN_SUFFIX = x    ; then
10305     case $host_os in
10306         solaris*)       ADMIN_MAN_SUFFIX=1m ;;
10307         *)              ADMIN_MAN_SUFFIX=8  ;;
10308     esac
10309 fi
10310 if test x$ADMIN_MAN_DIR = x    ; then
10311     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10312 fi
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328 XORG_MAN_PAGE="X Version 11"
10329
10330 MAN_SUBSTS="\
10331         -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10332         -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10333         -e 's|__xservername__|Xorg|g' \
10334         -e 's|__xconfigfile__|xorg.conf|g' \
10335         -e 's|__projectroot__|\$(prefix)|g' \
10336         -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10337         -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10338         -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10339         -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10340         -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10341         -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10342         -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10343
10344
10345
10346 # Check whether --enable-silent-rules was given.
10347 if test "${enable_silent_rules+set}" = set; then :
10348   enableval=$enable_silent_rules;
10349 fi
10350
10351 case $enable_silent_rules in
10352 yes) AM_DEFAULT_VERBOSITY=0;;
10353 no)  AM_DEFAULT_VERBOSITY=1;;
10354 *)   AM_DEFAULT_VERBOSITY=0;;
10355 esac
10356 am_make=${MAKE-make}
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10358 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10359 if ${am_cv_make_support_nested_variables+:} false; then :
10360   $as_echo_n "(cached) " >&6
10361 else
10362   if $as_echo 'TRUE=$(BAR$(V))
10363 BAR0=false
10364 BAR1=true
10365 V=1
10366 am__doit:
10367         @$(TRUE)
10368 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10369   am_cv_make_support_nested_variables=yes
10370 else
10371   am_cv_make_support_nested_variables=no
10372 fi
10373 fi
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10375 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10376 if test $am_cv_make_support_nested_variables = yes; then
10377     AM_V='$(V)'
10378   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10379 else
10380   AM_V=$AM_DEFAULT_VERBOSITY
10381   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10382 fi
10383 AM_BACKSLASH='\'
10384
10385
10386
10387 ac_config_files="$ac_config_files Makefile glproto.pc"
10388
10389 cat >confcache <<\_ACEOF
10390 # This file is a shell script that caches the results of configure
10391 # tests run on this system so they can be shared between configure
10392 # scripts and configure runs, see configure's option --config-cache.
10393 # It is not useful on other systems.  If it contains results you don't
10394 # want to keep, you may remove or edit it.
10395 #
10396 # config.status only pays attention to the cache file if you give it
10397 # the --recheck option to rerun configure.
10398 #
10399 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10400 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10401 # following values.
10402
10403 _ACEOF
10404
10405 # The following way of writing the cache mishandles newlines in values,
10406 # but we know of no workaround that is simple, portable, and efficient.
10407 # So, we kill variables containing newlines.
10408 # Ultrix sh set writes to stderr and can't be redirected directly,
10409 # and sets the high bit in the cache file unless we assign to the vars.
10410 (
10411   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10412     eval ac_val=\$$ac_var
10413     case $ac_val in #(
10414     *${as_nl}*)
10415       case $ac_var in #(
10416       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10417 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10418       esac
10419       case $ac_var in #(
10420       _ | IFS | as_nl) ;; #(
10421       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10422       *) { eval $ac_var=; unset $ac_var;} ;;
10423       esac ;;
10424     esac
10425   done
10426
10427   (set) 2>&1 |
10428     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10429     *${as_nl}ac_space=\ *)
10430       # `set' does not quote correctly, so add quotes: double-quote
10431       # substitution turns \\\\ into \\, and sed turns \\ into \.
10432       sed -n \
10433         "s/'/'\\\\''/g;
10434           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10435       ;; #(
10436     *)
10437       # `set' quotes correctly as required by POSIX, so do not add quotes.
10438       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10439       ;;
10440     esac |
10441     sort
10442 ) |
10443   sed '
10444      /^ac_cv_env_/b end
10445      t clear
10446      :clear
10447      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10448      t end
10449      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10450      :end' >>confcache
10451 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10452   if test -w "$cache_file"; then
10453     if test "x$cache_file" != "x/dev/null"; then
10454       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10455 $as_echo "$as_me: updating cache $cache_file" >&6;}
10456       if test ! -f "$cache_file" || test -h "$cache_file"; then
10457         cat confcache >"$cache_file"
10458       else
10459         case $cache_file in #(
10460         */* | ?:*)
10461           mv -f confcache "$cache_file"$$ &&
10462           mv -f "$cache_file"$$ "$cache_file" ;; #(
10463         *)
10464           mv -f confcache "$cache_file" ;;
10465         esac
10466       fi
10467     fi
10468   else
10469     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10470 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10471   fi
10472 fi
10473 rm -f confcache
10474
10475 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10476 # Let make expand exec_prefix.
10477 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10478
10479 # Transform confdefs.h into DEFS.
10480 # Protect against shell expansion while executing Makefile rules.
10481 # Protect against Makefile macro expansion.
10482 #
10483 # If the first sed substitution is executed (which looks for macros that
10484 # take arguments), then branch to the quote section.  Otherwise,
10485 # look for a macro that doesn't take arguments.
10486 ac_script='
10487 :mline
10488 /\\$/{
10489  N
10490  s,\\\n,,
10491  b mline
10492 }
10493 t clear
10494 :clear
10495 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
10496 t quote
10497 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
10498 t quote
10499 b any
10500 :quote
10501 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10502 s/\[/\\&/g
10503 s/\]/\\&/g
10504 s/\$/$$/g
10505 H
10506 :any
10507 ${
10508         g
10509         s/^\n//
10510         s/\n/ /g
10511         p
10512 }
10513 '
10514 DEFS=`sed -n "$ac_script" confdefs.h`
10515
10516
10517 ac_libobjs=
10518 ac_ltlibobjs=
10519 U=
10520 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10521   # 1. Remove the extension, and $U if already installed.
10522   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10523   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10524   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10525   #    will be set to the directory where LIBOBJS objects are built.
10526   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10527   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10528 done
10529 LIBOBJS=$ac_libobjs
10530
10531 LTLIBOBJS=$ac_ltlibobjs
10532
10533
10534  if test -n "$EXEEXT"; then
10535   am__EXEEXT_TRUE=
10536   am__EXEEXT_FALSE='#'
10537 else
10538   am__EXEEXT_TRUE='#'
10539   am__EXEEXT_FALSE=
10540 fi
10541
10542 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10543   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10545 fi
10546 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10547   as_fn_error $? "conditional \"AMDEP\" was never defined.
10548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10549 fi
10550 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10551   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10553 fi
10554
10555 : "${CONFIG_STATUS=./config.status}"
10556 ac_write_fail=0
10557 ac_clean_files_save=$ac_clean_files
10558 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10560 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10561 as_write_fail=0
10562 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10563 #! $SHELL
10564 # Generated by $as_me.
10565 # Run this file to recreate the current configuration.
10566 # Compiler output produced by configure, useful for debugging
10567 # configure, is in config.log if it exists.
10568
10569 debug=false
10570 ac_cs_recheck=false
10571 ac_cs_silent=false
10572
10573 SHELL=\${CONFIG_SHELL-$SHELL}
10574 export SHELL
10575 _ASEOF
10576 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10577 ## -------------------- ##
10578 ## M4sh Initialization. ##
10579 ## -------------------- ##
10580
10581 # Be more Bourne compatible
10582 DUALCASE=1; export DUALCASE # for MKS sh
10583 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10584   emulate sh
10585   NULLCMD=:
10586   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10587   # is contrary to our usage.  Disable this feature.
10588   alias -g '${1+"$@"}'='"$@"'
10589   setopt NO_GLOB_SUBST
10590 else
10591   case `(set -o) 2>/dev/null` in #(
10592   *posix*) :
10593     set -o posix ;; #(
10594   *) :
10595      ;;
10596 esac
10597 fi
10598
10599
10600 as_nl='
10601 '
10602 export as_nl
10603 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10604 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10605 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10606 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10607 # Prefer a ksh shell builtin over an external printf program on Solaris,
10608 # but without wasting forks for bash or zsh.
10609 if test -z "$BASH_VERSION$ZSH_VERSION" \
10610     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10611   as_echo='print -r --'
10612   as_echo_n='print -rn --'
10613 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10614   as_echo='printf %s\n'
10615   as_echo_n='printf %s'
10616 else
10617   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10618     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10619     as_echo_n='/usr/ucb/echo -n'
10620   else
10621     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10622     as_echo_n_body='eval
10623       arg=$1;
10624       case $arg in #(
10625       *"$as_nl"*)
10626         expr "X$arg" : "X\\(.*\\)$as_nl";
10627         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10628       esac;
10629       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10630     '
10631     export as_echo_n_body
10632     as_echo_n='sh -c $as_echo_n_body as_echo'
10633   fi
10634   export as_echo_body
10635   as_echo='sh -c $as_echo_body as_echo'
10636 fi
10637
10638 # The user is always right.
10639 if test "${PATH_SEPARATOR+set}" != set; then
10640   PATH_SEPARATOR=:
10641   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10642     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10643       PATH_SEPARATOR=';'
10644   }
10645 fi
10646
10647
10648 # IFS
10649 # We need space, tab and new line, in precisely that order.  Quoting is
10650 # there to prevent editors from complaining about space-tab.
10651 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10652 # splitting by setting IFS to empty value.)
10653 IFS=" ""        $as_nl"
10654
10655 # Find who we are.  Look in the path if we contain no directory separator.
10656 as_myself=
10657 case $0 in #((
10658   *[\\/]* ) as_myself=$0 ;;
10659   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10660 for as_dir in $PATH
10661 do
10662   IFS=$as_save_IFS
10663   test -z "$as_dir" && as_dir=.
10664     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10665   done
10666 IFS=$as_save_IFS
10667
10668      ;;
10669 esac
10670 # We did not find ourselves, most probably we were run as `sh COMMAND'
10671 # in which case we are not to be found in the path.
10672 if test "x$as_myself" = x; then
10673   as_myself=$0
10674 fi
10675 if test ! -f "$as_myself"; then
10676   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10677   exit 1
10678 fi
10679
10680 # Unset variables that we do not need and which cause bugs (e.g. in
10681 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10682 # suppresses any "Segmentation fault" message there.  '((' could
10683 # trigger a bug in pdksh 5.2.14.
10684 for as_var in BASH_ENV ENV MAIL MAILPATH
10685 do eval test x\${$as_var+set} = xset \
10686   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10687 done
10688 PS1='$ '
10689 PS2='> '
10690 PS4='+ '
10691
10692 # NLS nuisances.
10693 LC_ALL=C
10694 export LC_ALL
10695 LANGUAGE=C
10696 export LANGUAGE
10697
10698 # CDPATH.
10699 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10700
10701
10702 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10703 # ----------------------------------------
10704 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10705 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10706 # script with STATUS, using 1 if that was 0.
10707 as_fn_error ()
10708 {
10709   as_status=$1; test $as_status -eq 0 && as_status=1
10710   if test "$4"; then
10711     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10712     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10713   fi
10714   $as_echo "$as_me: error: $2" >&2
10715   as_fn_exit $as_status
10716 } # as_fn_error
10717
10718
10719 # as_fn_set_status STATUS
10720 # -----------------------
10721 # Set $? to STATUS, without forking.
10722 as_fn_set_status ()
10723 {
10724   return $1
10725 } # as_fn_set_status
10726
10727 # as_fn_exit STATUS
10728 # -----------------
10729 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10730 as_fn_exit ()
10731 {
10732   set +e
10733   as_fn_set_status $1
10734   exit $1
10735 } # as_fn_exit
10736
10737 # as_fn_unset VAR
10738 # ---------------
10739 # Portably unset VAR.
10740 as_fn_unset ()
10741 {
10742   { eval $1=; unset $1;}
10743 }
10744 as_unset=as_fn_unset
10745 # as_fn_append VAR VALUE
10746 # ----------------------
10747 # Append the text in VALUE to the end of the definition contained in VAR. Take
10748 # advantage of any shell optimizations that allow amortized linear growth over
10749 # repeated appends, instead of the typical quadratic growth present in naive
10750 # implementations.
10751 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10752   eval 'as_fn_append ()
10753   {
10754     eval $1+=\$2
10755   }'
10756 else
10757   as_fn_append ()
10758   {
10759     eval $1=\$$1\$2
10760   }
10761 fi # as_fn_append
10762
10763 # as_fn_arith ARG...
10764 # ------------------
10765 # Perform arithmetic evaluation on the ARGs, and store the result in the
10766 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10767 # must be portable across $(()) and expr.
10768 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10769   eval 'as_fn_arith ()
10770   {
10771     as_val=$(( $* ))
10772   }'
10773 else
10774   as_fn_arith ()
10775   {
10776     as_val=`expr "$@" || test $? -eq 1`
10777   }
10778 fi # as_fn_arith
10779
10780
10781 if expr a : '\(a\)' >/dev/null 2>&1 &&
10782    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10783   as_expr=expr
10784 else
10785   as_expr=false
10786 fi
10787
10788 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10789   as_basename=basename
10790 else
10791   as_basename=false
10792 fi
10793
10794 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10795   as_dirname=dirname
10796 else
10797   as_dirname=false
10798 fi
10799
10800 as_me=`$as_basename -- "$0" ||
10801 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10802          X"$0" : 'X\(//\)$' \| \
10803          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10804 $as_echo X/"$0" |
10805     sed '/^.*\/\([^/][^/]*\)\/*$/{
10806             s//\1/
10807             q
10808           }
10809           /^X\/\(\/\/\)$/{
10810             s//\1/
10811             q
10812           }
10813           /^X\/\(\/\).*/{
10814             s//\1/
10815             q
10816           }
10817           s/.*/./; q'`
10818
10819 # Avoid depending upon Character Ranges.
10820 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10821 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10822 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10823 as_cr_digits='0123456789'
10824 as_cr_alnum=$as_cr_Letters$as_cr_digits
10825
10826 ECHO_C= ECHO_N= ECHO_T=
10827 case `echo -n x` in #(((((
10828 -n*)
10829   case `echo 'xy\c'` in
10830   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10831   xy)  ECHO_C='\c';;
10832   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
10833        ECHO_T=' ';;
10834   esac;;
10835 *)
10836   ECHO_N='-n';;
10837 esac
10838
10839 rm -f conf$$ conf$$.exe conf$$.file
10840 if test -d conf$$.dir; then
10841   rm -f conf$$.dir/conf$$.file
10842 else
10843   rm -f conf$$.dir
10844   mkdir conf$$.dir 2>/dev/null
10845 fi
10846 if (echo >conf$$.file) 2>/dev/null; then
10847   if ln -s conf$$.file conf$$ 2>/dev/null; then
10848     as_ln_s='ln -s'
10849     # ... but there are two gotchas:
10850     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10851     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10852     # In both cases, we have to default to `cp -p'.
10853     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10854       as_ln_s='cp -p'
10855   elif ln conf$$.file conf$$ 2>/dev/null; then
10856     as_ln_s=ln
10857   else
10858     as_ln_s='cp -p'
10859   fi
10860 else
10861   as_ln_s='cp -p'
10862 fi
10863 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10864 rmdir conf$$.dir 2>/dev/null
10865
10866
10867 # as_fn_mkdir_p
10868 # -------------
10869 # Create "$as_dir" as a directory, including parents if necessary.
10870 as_fn_mkdir_p ()
10871 {
10872
10873   case $as_dir in #(
10874   -*) as_dir=./$as_dir;;
10875   esac
10876   test -d "$as_dir" || eval $as_mkdir_p || {
10877     as_dirs=
10878     while :; do
10879       case $as_dir in #(
10880       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10881       *) as_qdir=$as_dir;;
10882       esac
10883       as_dirs="'$as_qdir' $as_dirs"
10884       as_dir=`$as_dirname -- "$as_dir" ||
10885 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10886          X"$as_dir" : 'X\(//\)[^/]' \| \
10887          X"$as_dir" : 'X\(//\)$' \| \
10888          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10889 $as_echo X"$as_dir" |
10890     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10891             s//\1/
10892             q
10893           }
10894           /^X\(\/\/\)[^/].*/{
10895             s//\1/
10896             q
10897           }
10898           /^X\(\/\/\)$/{
10899             s//\1/
10900             q
10901           }
10902           /^X\(\/\).*/{
10903             s//\1/
10904             q
10905           }
10906           s/.*/./; q'`
10907       test -d "$as_dir" && break
10908     done
10909     test -z "$as_dirs" || eval "mkdir $as_dirs"
10910   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10911
10912
10913 } # as_fn_mkdir_p
10914 if mkdir -p . 2>/dev/null; then
10915   as_mkdir_p='mkdir -p "$as_dir"'
10916 else
10917   test -d ./-p && rmdir ./-p
10918   as_mkdir_p=false
10919 fi
10920
10921 if test -x / >/dev/null 2>&1; then
10922   as_test_x='test -x'
10923 else
10924   if ls -dL / >/dev/null 2>&1; then
10925     as_ls_L_option=L
10926   else
10927     as_ls_L_option=
10928   fi
10929   as_test_x='
10930     eval sh -c '\''
10931       if test -d "$1"; then
10932         test -d "$1/.";
10933       else
10934         case $1 in #(
10935         -*)set "./$1";;
10936         esac;
10937         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10938         ???[sx]*):;;*)false;;esac;fi
10939     '\'' sh
10940   '
10941 fi
10942 as_executable_p=$as_test_x
10943
10944 # Sed expression to map a string onto a valid CPP name.
10945 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10946
10947 # Sed expression to map a string onto a valid variable name.
10948 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10949
10950
10951 exec 6>&1
10952 ## ----------------------------------- ##
10953 ## Main body of $CONFIG_STATUS script. ##
10954 ## ----------------------------------- ##
10955 _ASEOF
10956 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10957
10958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10959 # Save the log message, to keep $0 and so on meaningful, and to
10960 # report actual input values of CONFIG_FILES etc. instead of their
10961 # values after options handling.
10962 ac_log="
10963 This file was extended by GLProto $as_me 1.4.16, which was
10964 generated by GNU Autoconf 2.68.  Invocation command line was
10965
10966   CONFIG_FILES    = $CONFIG_FILES
10967   CONFIG_HEADERS  = $CONFIG_HEADERS
10968   CONFIG_LINKS    = $CONFIG_LINKS
10969   CONFIG_COMMANDS = $CONFIG_COMMANDS
10970   $ $0 $@
10971
10972 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10973 "
10974
10975 _ACEOF
10976
10977 case $ac_config_files in *"
10978 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10979 esac
10980
10981
10982
10983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10984 # Files that config.status was made for.
10985 config_files="$ac_config_files"
10986 config_commands="$ac_config_commands"
10987
10988 _ACEOF
10989
10990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10991 ac_cs_usage="\
10992 \`$as_me' instantiates files and other configuration actions
10993 from templates according to the current configuration.  Unless the files
10994 and actions are specified as TAGs, all are instantiated by default.
10995
10996 Usage: $0 [OPTION]... [TAG]...
10997
10998   -h, --help       print this help, then exit
10999   -V, --version    print version number and configuration settings, then exit
11000       --config     print configuration, then exit
11001   -q, --quiet, --silent
11002                    do not print progress messages
11003   -d, --debug      don't remove temporary files
11004       --recheck    update $as_me by reconfiguring in the same conditions
11005       --file=FILE[:TEMPLATE]
11006                    instantiate the configuration file FILE
11007
11008 Configuration files:
11009 $config_files
11010
11011 Configuration commands:
11012 $config_commands
11013
11014 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11015
11016 _ACEOF
11017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11018 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11019 ac_cs_version="\\
11020 GLProto config.status 1.4.16
11021 configured by $0, generated by GNU Autoconf 2.68,
11022   with options \\"\$ac_cs_config\\"
11023
11024 Copyright (C) 2010 Free Software Foundation, Inc.
11025 This config.status script is free software; the Free Software Foundation
11026 gives unlimited permission to copy, distribute and modify it."
11027
11028 ac_pwd='$ac_pwd'
11029 srcdir='$srcdir'
11030 INSTALL='$INSTALL'
11031 MKDIR_P='$MKDIR_P'
11032 AWK='$AWK'
11033 test -n "\$AWK" || AWK=awk
11034 _ACEOF
11035
11036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11037 # The default lists apply if the user does not specify any file.
11038 ac_need_defaults=:
11039 while test $# != 0
11040 do
11041   case $1 in
11042   --*=?*)
11043     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11044     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11045     ac_shift=:
11046     ;;
11047   --*=)
11048     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11049     ac_optarg=
11050     ac_shift=:
11051     ;;
11052   *)
11053     ac_option=$1
11054     ac_optarg=$2
11055     ac_shift=shift
11056     ;;
11057   esac
11058
11059   case $ac_option in
11060   # Handling of the options.
11061   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11062     ac_cs_recheck=: ;;
11063   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11064     $as_echo "$ac_cs_version"; exit ;;
11065   --config | --confi | --conf | --con | --co | --c )
11066     $as_echo "$ac_cs_config"; exit ;;
11067   --debug | --debu | --deb | --de | --d | -d )
11068     debug=: ;;
11069   --file | --fil | --fi | --f )
11070     $ac_shift
11071     case $ac_optarg in
11072     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11073     '') as_fn_error $? "missing file argument" ;;
11074     esac
11075     as_fn_append CONFIG_FILES " '$ac_optarg'"
11076     ac_need_defaults=false;;
11077   --he | --h |  --help | --hel | -h )
11078     $as_echo "$ac_cs_usage"; exit ;;
11079   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11080   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11081     ac_cs_silent=: ;;
11082
11083   # This is an error.
11084   -*) as_fn_error $? "unrecognized option: \`$1'
11085 Try \`$0 --help' for more information." ;;
11086
11087   *) as_fn_append ac_config_targets " $1"
11088      ac_need_defaults=false ;;
11089
11090   esac
11091   shift
11092 done
11093
11094 ac_configure_extra_args=
11095
11096 if $ac_cs_silent; then
11097   exec 6>/dev/null
11098   ac_configure_extra_args="$ac_configure_extra_args --silent"
11099 fi
11100
11101 _ACEOF
11102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11103 if \$ac_cs_recheck; then
11104   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11105   shift
11106   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11107   CONFIG_SHELL='$SHELL'
11108   export CONFIG_SHELL
11109   exec "\$@"
11110 fi
11111
11112 _ACEOF
11113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11114 exec 5>>config.log
11115 {
11116   echo
11117   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11118 ## Running $as_me. ##
11119 _ASBOX
11120   $as_echo "$ac_log"
11121 } >&5
11122
11123 _ACEOF
11124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11125 #
11126 # INIT-COMMANDS
11127 #
11128 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11129
11130 _ACEOF
11131
11132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11133
11134 # Handling of arguments.
11135 for ac_config_target in $ac_config_targets
11136 do
11137   case $ac_config_target in
11138     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11139     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11140     "glproto.pc") CONFIG_FILES="$CONFIG_FILES glproto.pc" ;;
11141
11142   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11143   esac
11144 done
11145
11146
11147 # If the user did not use the arguments to specify the items to instantiate,
11148 # then the envvar interface is used.  Set only those that are not.
11149 # We use the long form for the default assignment because of an extremely
11150 # bizarre bug on SunOS 4.1.3.
11151 if $ac_need_defaults; then
11152   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11153   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11154 fi
11155
11156 # Have a temporary directory for convenience.  Make it in the build tree
11157 # simply because there is no reason against having it here, and in addition,
11158 # creating and moving files from /tmp can sometimes cause problems.
11159 # Hook for its removal unless debugging.
11160 # Note that there is a small window in which the directory will not be cleaned:
11161 # after its creation but before its name has been assigned to `$tmp'.
11162 $debug ||
11163 {
11164   tmp= ac_tmp=
11165   trap 'exit_status=$?
11166   : "${ac_tmp:=$tmp}"
11167   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11168 ' 0
11169   trap 'as_fn_exit 1' 1 2 13 15
11170 }
11171 # Create a (secure) tmp directory for tmp files.
11172
11173 {
11174   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11175   test -d "$tmp"
11176 }  ||
11177 {
11178   tmp=./conf$$-$RANDOM
11179   (umask 077 && mkdir "$tmp")
11180 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11181 ac_tmp=$tmp
11182
11183 # Set up the scripts for CONFIG_FILES section.
11184 # No need to generate them if there are no CONFIG_FILES.
11185 # This happens for instance with `./config.status config.h'.
11186 if test -n "$CONFIG_FILES"; then
11187
11188
11189 ac_cr=`echo X | tr X '\015'`
11190 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11191 # But we know of no other shell where ac_cr would be empty at this
11192 # point, so we can use a bashism as a fallback.
11193 if test "x$ac_cr" = x; then
11194   eval ac_cr=\$\'\\r\'
11195 fi
11196 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11197 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11198   ac_cs_awk_cr='\\r'
11199 else
11200   ac_cs_awk_cr=$ac_cr
11201 fi
11202
11203 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11204 _ACEOF
11205
11206
11207 {
11208   echo "cat >conf$$subs.awk <<_ACEOF" &&
11209   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11210   echo "_ACEOF"
11211 } >conf$$subs.sh ||
11212   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11213 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11214 ac_delim='%!_!# '
11215 for ac_last_try in false false false false false :; do
11216   . ./conf$$subs.sh ||
11217     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11218
11219   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11220   if test $ac_delim_n = $ac_delim_num; then
11221     break
11222   elif $ac_last_try; then
11223     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11224   else
11225     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11226   fi
11227 done
11228 rm -f conf$$subs.sh
11229
11230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11231 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11232 _ACEOF
11233 sed -n '
11234 h
11235 s/^/S["/; s/!.*/"]=/
11236 p
11237 g
11238 s/^[^!]*!//
11239 :repl
11240 t repl
11241 s/'"$ac_delim"'$//
11242 t delim
11243 :nl
11244 h
11245 s/\(.\{148\}\)..*/\1/
11246 t more1
11247 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11248 p
11249 n
11250 b repl
11251 :more1
11252 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11253 p
11254 g
11255 s/.\{148\}//
11256 t nl
11257 :delim
11258 h
11259 s/\(.\{148\}\)..*/\1/
11260 t more2
11261 s/["\\]/\\&/g; s/^/"/; s/$/"/
11262 p
11263 b
11264 :more2
11265 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11266 p
11267 g
11268 s/.\{148\}//
11269 t delim
11270 ' <conf$$subs.awk | sed '
11271 /^[^""]/{
11272   N
11273   s/\n//
11274 }
11275 ' >>$CONFIG_STATUS || ac_write_fail=1
11276 rm -f conf$$subs.awk
11277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11278 _ACAWK
11279 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11280   for (key in S) S_is_set[key] = 1
11281   FS = "\a"
11282
11283 }
11284 {
11285   line = $ 0
11286   nfields = split(line, field, "@")
11287   substed = 0
11288   len = length(field[1])
11289   for (i = 2; i < nfields; i++) {
11290     key = field[i]
11291     keylen = length(key)
11292     if (S_is_set[key]) {
11293       value = S[key]
11294       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11295       len += length(value) + length(field[++i])
11296       substed = 1
11297     } else
11298       len += 1 + keylen
11299   }
11300
11301   print line
11302 }
11303
11304 _ACAWK
11305 _ACEOF
11306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11307 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11308   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11309 else
11310   cat
11311 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11312   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11313 _ACEOF
11314
11315 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11316 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11317 # trailing colons and then remove the whole line if VPATH becomes empty
11318 # (actually we leave an empty line to preserve line numbers).
11319 if test "x$srcdir" = x.; then
11320   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
11321 h
11322 s///
11323 s/^/:/
11324 s/[      ]*$/:/
11325 s/:\$(srcdir):/:/g
11326 s/:\${srcdir}:/:/g
11327 s/:@srcdir@:/:/g
11328 s/^:*//
11329 s/:*$//
11330 x
11331 s/\(=[   ]*\).*/\1/
11332 G
11333 s/\n//
11334 s/^[^=]*=[       ]*$//
11335 }'
11336 fi
11337
11338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11339 fi # test -n "$CONFIG_FILES"
11340
11341
11342 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
11343 shift
11344 for ac_tag
11345 do
11346   case $ac_tag in
11347   :[FHLC]) ac_mode=$ac_tag; continue;;
11348   esac
11349   case $ac_mode$ac_tag in
11350   :[FHL]*:*);;
11351   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11352   :[FH]-) ac_tag=-:-;;
11353   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11354   esac
11355   ac_save_IFS=$IFS
11356   IFS=:
11357   set x $ac_tag
11358   IFS=$ac_save_IFS
11359   shift
11360   ac_file=$1
11361   shift
11362
11363   case $ac_mode in
11364   :L) ac_source=$1;;
11365   :[FH])
11366     ac_file_inputs=
11367     for ac_f
11368     do
11369       case $ac_f in
11370       -) ac_f="$ac_tmp/stdin";;
11371       *) # Look for the file first in the build tree, then in the source tree
11372          # (if the path is not absolute).  The absolute path cannot be DOS-style,
11373          # because $ac_f cannot contain `:'.
11374          test -f "$ac_f" ||
11375            case $ac_f in
11376            [\\/$]*) false;;
11377            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11378            esac ||
11379            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11380       esac
11381       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11382       as_fn_append ac_file_inputs " '$ac_f'"
11383     done
11384
11385     # Let's still pretend it is `configure' which instantiates (i.e., don't
11386     # use $as_me), people would be surprised to read:
11387     #    /* config.h.  Generated by config.status.  */
11388     configure_input='Generated from '`
11389           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11390         `' by configure.'
11391     if test x"$ac_file" != x-; then
11392       configure_input="$ac_file.  $configure_input"
11393       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11394 $as_echo "$as_me: creating $ac_file" >&6;}
11395     fi
11396     # Neutralize special characters interpreted by sed in replacement strings.
11397     case $configure_input in #(
11398     *\&* | *\|* | *\\* )
11399        ac_sed_conf_input=`$as_echo "$configure_input" |
11400        sed 's/[\\\\&|]/\\\\&/g'`;; #(
11401     *) ac_sed_conf_input=$configure_input;;
11402     esac
11403
11404     case $ac_tag in
11405     *:-:* | *:-) cat >"$ac_tmp/stdin" \
11406       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11407     esac
11408     ;;
11409   esac
11410
11411   ac_dir=`$as_dirname -- "$ac_file" ||
11412 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11413          X"$ac_file" : 'X\(//\)[^/]' \| \
11414          X"$ac_file" : 'X\(//\)$' \| \
11415          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11416 $as_echo X"$ac_file" |
11417     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11418             s//\1/
11419             q
11420           }
11421           /^X\(\/\/\)[^/].*/{
11422             s//\1/
11423             q
11424           }
11425           /^X\(\/\/\)$/{
11426             s//\1/
11427             q
11428           }
11429           /^X\(\/\).*/{
11430             s//\1/
11431             q
11432           }
11433           s/.*/./; q'`
11434   as_dir="$ac_dir"; as_fn_mkdir_p
11435   ac_builddir=.
11436
11437 case "$ac_dir" in
11438 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11439 *)
11440   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11441   # A ".." for each directory in $ac_dir_suffix.
11442   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11443   case $ac_top_builddir_sub in
11444   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11445   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11446   esac ;;
11447 esac
11448 ac_abs_top_builddir=$ac_pwd
11449 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11450 # for backward compatibility:
11451 ac_top_builddir=$ac_top_build_prefix
11452
11453 case $srcdir in
11454   .)  # We are building in place.
11455     ac_srcdir=.
11456     ac_top_srcdir=$ac_top_builddir_sub
11457     ac_abs_top_srcdir=$ac_pwd ;;
11458   [\\/]* | ?:[\\/]* )  # Absolute name.
11459     ac_srcdir=$srcdir$ac_dir_suffix;
11460     ac_top_srcdir=$srcdir
11461     ac_abs_top_srcdir=$srcdir ;;
11462   *) # Relative name.
11463     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11464     ac_top_srcdir=$ac_top_build_prefix$srcdir
11465     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11466 esac
11467 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11468
11469
11470   case $ac_mode in
11471   :F)
11472   #
11473   # CONFIG_FILE
11474   #
11475
11476   case $INSTALL in
11477   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11478   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11479   esac
11480   ac_MKDIR_P=$MKDIR_P
11481   case $MKDIR_P in
11482   [\\/$]* | ?:[\\/]* ) ;;
11483   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11484   esac
11485 _ACEOF
11486
11487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11488 # If the template does not know about datarootdir, expand it.
11489 # FIXME: This hack should be removed a few years after 2.60.
11490 ac_datarootdir_hack=; ac_datarootdir_seen=
11491 ac_sed_dataroot='
11492 /datarootdir/ {
11493   p
11494   q
11495 }
11496 /@datadir@/p
11497 /@docdir@/p
11498 /@infodir@/p
11499 /@localedir@/p
11500 /@mandir@/p'
11501 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11502 *datarootdir*) ac_datarootdir_seen=yes;;
11503 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11504   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11505 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11506 _ACEOF
11507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11508   ac_datarootdir_hack='
11509   s&@datadir@&$datadir&g
11510   s&@docdir@&$docdir&g
11511   s&@infodir@&$infodir&g
11512   s&@localedir@&$localedir&g
11513   s&@mandir@&$mandir&g
11514   s&\\\${datarootdir}&$datarootdir&g' ;;
11515 esac
11516 _ACEOF
11517
11518 # Neutralize VPATH when `$srcdir' = `.'.
11519 # Shell code in configure.ac might set extrasub.
11520 # FIXME: do we really want to maintain this feature?
11521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11522 ac_sed_extra="$ac_vpsub
11523 $extrasub
11524 _ACEOF
11525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11526 :t
11527 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11528 s|@configure_input@|$ac_sed_conf_input|;t t
11529 s&@top_builddir@&$ac_top_builddir_sub&;t t
11530 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11531 s&@srcdir@&$ac_srcdir&;t t
11532 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11533 s&@top_srcdir@&$ac_top_srcdir&;t t
11534 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11535 s&@builddir@&$ac_builddir&;t t
11536 s&@abs_builddir@&$ac_abs_builddir&;t t
11537 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11538 s&@INSTALL@&$ac_INSTALL&;t t
11539 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11540 $ac_datarootdir_hack
11541 "
11542 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11543   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11544
11545 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11546   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11547   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
11548       "$ac_tmp/out"`; test -z "$ac_out"; } &&
11549   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11550 which seems to be undefined.  Please make sure it is defined" >&5
11551 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11552 which seems to be undefined.  Please make sure it is defined" >&2;}
11553
11554   rm -f "$ac_tmp/stdin"
11555   case $ac_file in
11556   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11557   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11558   esac \
11559   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11560  ;;
11561
11562
11563   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11564 $as_echo "$as_me: executing $ac_file commands" >&6;}
11565  ;;
11566   esac
11567
11568
11569   case $ac_file$ac_mode in
11570     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11571   # Autoconf 2.62 quotes --file arguments for eval, but not when files
11572   # are listed without --file.  Let's play safe and only enable the eval
11573   # if we detect the quoting.
11574   case $CONFIG_FILES in
11575   *\'*) eval set x "$CONFIG_FILES" ;;
11576   *)   set x $CONFIG_FILES ;;
11577   esac
11578   shift
11579   for mf
11580   do
11581     # Strip MF so we end up with the name of the file.
11582     mf=`echo "$mf" | sed -e 's/:.*$//'`
11583     # Check whether this is an Automake generated Makefile or not.
11584     # We used to match only the files named `Makefile.in', but
11585     # some people rename them; so instead we look at the file content.
11586     # Grep'ing the first line is not enough: some people post-process
11587     # each Makefile.in and add a new line on top of each file to say so.
11588     # Grep'ing the whole file is not good either: AIX grep has a line
11589     # limit of 2048, but all sed's we know have understand at least 4000.
11590     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11591       dirpart=`$as_dirname -- "$mf" ||
11592 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11593          X"$mf" : 'X\(//\)[^/]' \| \
11594          X"$mf" : 'X\(//\)$' \| \
11595          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11596 $as_echo X"$mf" |
11597     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11598             s//\1/
11599             q
11600           }
11601           /^X\(\/\/\)[^/].*/{
11602             s//\1/
11603             q
11604           }
11605           /^X\(\/\/\)$/{
11606             s//\1/
11607             q
11608           }
11609           /^X\(\/\).*/{
11610             s//\1/
11611             q
11612           }
11613           s/.*/./; q'`
11614     else
11615       continue
11616     fi
11617     # Extract the definition of DEPDIR, am__include, and am__quote
11618     # from the Makefile without running `make'.
11619     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11620     test -z "$DEPDIR" && continue
11621     am__include=`sed -n 's/^am__include = //p' < "$mf"`
11622     test -z "am__include" && continue
11623     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11624     # When using ansi2knr, U may be empty or an underscore; expand it
11625     U=`sed -n 's/^U = //p' < "$mf"`
11626     # Find all dependency output files, they are included files with
11627     # $(DEPDIR) in their names.  We invoke sed twice because it is the
11628     # simplest approach to changing $(DEPDIR) to its actual value in the
11629     # expansion.
11630     for file in `sed -n "
11631       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11632          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11633       # Make sure the directory exists.
11634       test -f "$dirpart/$file" && continue
11635       fdir=`$as_dirname -- "$file" ||
11636 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11637          X"$file" : 'X\(//\)[^/]' \| \
11638          X"$file" : 'X\(//\)$' \| \
11639          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11640 $as_echo X"$file" |
11641     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11642             s//\1/
11643             q
11644           }
11645           /^X\(\/\/\)[^/].*/{
11646             s//\1/
11647             q
11648           }
11649           /^X\(\/\/\)$/{
11650             s//\1/
11651             q
11652           }
11653           /^X\(\/\).*/{
11654             s//\1/
11655             q
11656           }
11657           s/.*/./; q'`
11658       as_dir=$dirpart/$fdir; as_fn_mkdir_p
11659       # echo "creating $dirpart/$file"
11660       echo '# dummy' > "$dirpart/$file"
11661     done
11662   done
11663 }
11664  ;;
11665
11666   esac
11667 done # for ac_tag
11668
11669
11670 as_fn_exit 0
11671 _ACEOF
11672 ac_clean_files=$ac_clean_files_save
11673
11674 test $ac_write_fail = 0 ||
11675   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11676
11677
11678 # configure is writing to config.log, and then calls config.status.
11679 # config.status does its own redirection, appending to config.log.
11680 # Unfortunately, on DOS this fails, as config.log is still kept open
11681 # by configure, so config.status won't be able to write to it; its
11682 # output is simply discarded.  So we exec the FD to /dev/null,
11683 # effectively closing config.log, so it can be properly (re)opened and
11684 # appended to by config.status.  When coming back to configure, we
11685 # need to make the FD available again.
11686 if test "$no_create" != yes; then
11687   ac_cs_success=:
11688   ac_config_status_args=
11689   test "$silent" = yes &&
11690     ac_config_status_args="$ac_config_status_args --quiet"
11691   exec 5>/dev/null
11692   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11693   exec 5>>config.log
11694   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11695   # would make configure fail if this is the last instruction.
11696   $ac_cs_success || as_fn_exit 1
11697 fi
11698 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11699   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11700 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11701 fi
11702