configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for xinit 1.3.2.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='xinit'
576 PACKAGE_TARNAME='xinit'
577 PACKAGE_VERSION='1.3.2'
578 PACKAGE_STRING='xinit 1.3.2'
579 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
580
581 ac_unique_file="Makefile.am"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 INSTALL_PROGRAM
656 INSTALL_SCRIPT
657 INSTALL_DATA
658 am__isrc
659 CYGPATH_W
660 PACKAGE
661 VERSION
662 ACLOCAL
663 AUTOCONF
664 AUTOMAKE
665 AUTOHEADER
666 MAKEINFO
667 install_sh
668 STRIP
669 INSTALL_STRIP_PROGRAM
670 mkdir_p
671 AWK
672 SET_MAKE
673 am__leading_dot
674 AMTAR
675 am__tar
676 am__untar
677 MAINTAINER_MODE_TRUE
678 MAINTAINER_MODE_FALSE
679 MAINT
680 CC
681 CFLAGS
682 LDFLAGS
683 CPPFLAGS
684 ac_ct_CC
685 EXEEXT
686 OBJEXT
687 DEPDIR
688 am__include
689 am__quote
690 AMDEP_TRUE
691 AMDEP_FALSE
692 AMDEPBACKSLASH
693 CCDEPMODE
694 am__fastdepCC_TRUE
695 am__fastdepCC_FALSE
696 CPP
697 GREP
698 EGREP
699 BASE_CFLAGS
700 CWARNFLAGS
701 STRICT_CFLAGS
702 CHANGELOG_CMD
703 PKG_CONFIG
704 PKG_CONFIG_PATH
705 PKG_CONFIG_LIBDIR
706 INSTALL_CMD
707 build
708 build_cpu
709 build_vendor
710 build_os
711 host
712 host_cpu
713 host_vendor
714 host_os
715 SED
716 APP_MAN_SUFFIX
717 LIB_MAN_SUFFIX
718 FILE_MAN_SUFFIX
719 MISC_MAN_SUFFIX
720 DRIVER_MAN_SUFFIX
721 ADMIN_MAN_SUFFIX
722 APP_MAN_DIR
723 LIB_MAN_DIR
724 FILE_MAN_DIR
725 MISC_MAN_DIR
726 DRIVER_MAN_DIR
727 ADMIN_MAN_DIR
728 XORG_MAN_PAGE
729 MAN_SUBSTS
730 AM_DEFAULT_VERBOSITY
731 RAWCPP
732 RAWCPPFLAGS
733 LAUNCHD
734 launchagentsdir
735 launchdaemonsdir
736 bundleidprefix
737 launchagentxserver
738 LAUNCHD_TRUE
739 LAUNCHD_FALSE
740 TIGER_LAUNCHD_TRUE
741 TIGER_LAUNCHD_FALSE
742 LAUNCHAGENT_XSERVER_TRUE
743 LAUNCHAGENT_XSERVER_FALSE
744 XINIT_CFLAGS
745 XINIT_LIBS
746 MCOOKIE
747 STARTX_COOKIE_FLAGS
748 SHELL_CMD
749 SCOMAN
750 XSERVERNAME
751 XCONFIGFILE
752 XCONFIGFILEMAN
753 XRDB
754 XMODMAP
755 TWM
756 XCLOCK
757 XTERM
758 XSERVER
759 XAUTH
760 XINIT
761 XINITDIR
762 LIBOBJS
763 LTLIBOBJS'
764 ac_subst_files=''
765 ac_precious_vars='build_alias
766 host_alias
767 target_alias
768 CC
769 CFLAGS
770 LDFLAGS
771 LIBS
772 CPPFLAGS
773 CPP
774 PKG_CONFIG
775 PKG_CONFIG_PATH
776 PKG_CONFIG_LIBDIR
777 XINIT_CFLAGS
778 XINIT_LIBS'
779
780
781 # Initialize some variables set by options.
782 ac_init_help=
783 ac_init_version=false
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
786 cache_file=/dev/null
787 exec_prefix=NONE
788 no_create=
789 no_recursion=
790 prefix=NONE
791 program_prefix=NONE
792 program_suffix=NONE
793 program_transform_name=s,x,x,
794 silent=
795 site=
796 srcdir=
797 verbose=
798 x_includes=NONE
799 x_libraries=NONE
800
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir='${exec_prefix}/bin'
808 sbindir='${exec_prefix}/sbin'
809 libexecdir='${exec_prefix}/libexec'
810 datarootdir='${prefix}/share'
811 datadir='${datarootdir}'
812 sysconfdir='${prefix}/etc'
813 sharedstatedir='${prefix}/com'
814 localstatedir='${prefix}/var'
815 includedir='${prefix}/include'
816 oldincludedir='/usr/include'
817 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818 infodir='${datarootdir}/info'
819 htmldir='${docdir}'
820 dvidir='${docdir}'
821 pdfdir='${docdir}'
822 psdir='${docdir}'
823 libdir='${exec_prefix}/lib'
824 localedir='${datarootdir}/locale'
825 mandir='${datarootdir}/man'
826
827 ac_prev=
828 ac_dashdash=
829 for ac_option
830 do
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
833 eval $ac_prev=\$ac_option
834 ac_prev=
835 continue
836 fi
837
838 case $ac_option in
839 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 *) ac_optarg=yes ;;
841 esac
842
843 # Accept the important Cygnus configure options, so we can diagnose typos.
844
845 case $ac_dashdash$ac_option in
846 --)
847 ac_dashdash=yes ;;
848
849 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 ac_prev=bindir ;;
851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852 bindir=$ac_optarg ;;
853
854 -build | --build | --buil | --bui | --bu)
855 ac_prev=build_alias ;;
856 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857 build_alias=$ac_optarg ;;
858
859 -cache-file | --cache-file | --cache-fil | --cache-fi \
860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861 ac_prev=cache_file ;;
862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864 cache_file=$ac_optarg ;;
865
866 --config-cache | -C)
867 cache_file=config.cache ;;
868
869 -datadir | --datadir | --datadi | --datad)
870 ac_prev=datadir ;;
871 -datadir=* | --datadir=* | --datadi=* | --datad=*)
872 datadir=$ac_optarg ;;
873
874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875 | --dataroo | --dataro | --datar)
876 ac_prev=datarootdir ;;
877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879 datarootdir=$ac_optarg ;;
880
881 -disable-* | --disable-*)
882 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
885 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
886 { (exit 1); exit 1; }; }
887 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
888 eval enable_$ac_feature=no ;;
889
890 -docdir | --docdir | --docdi | --doc | --do)
891 ac_prev=docdir ;;
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893 docdir=$ac_optarg ;;
894
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 ac_prev=dvidir ;;
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898 dvidir=$ac_optarg ;;
899
900 -enable-* | --enable-*)
901 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
904 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
905 { (exit 1); exit 1; }; }
906 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
907 eval enable_$ac_feature=\$ac_optarg ;;
908
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
917
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
920 with_gas=yes ;;
921
922 -help | --help | --hel | --he | -h)
923 ac_init_help=long ;;
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
928
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
933
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 ac_prev=htmldir ;;
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 | --ht=*)
938 htmldir=$ac_optarg ;;
939
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
946
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 ac_prev=infodir ;;
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
951
952 -libdir | --libdir | --libdi | --libd)
953 ac_prev=libdir ;;
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
955 libdir=$ac_optarg ;;
956
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
963
964 -localedir | --localedir | --localedi | --localed | --locale)
965 ac_prev=localedir ;;
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
968
969 -localstatedir | --localstatedir | --localstatedi | --localstated \
970 | --localstate | --localstat | --localsta | --localst | --locals)
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974 localstatedir=$ac_optarg ;;
975
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 ac_prev=mandir ;;
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979 mandir=$ac_optarg ;;
980
981 -nfp | --nfp | --nf)
982 # Obsolete; use --without-fp.
983 with_fp=no ;;
984
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986 | --no-cr | --no-c | -n)
987 no_create=yes ;;
988
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 no_recursion=yes ;;
992
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1001
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 ac_prev=prefix ;;
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1006
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1013
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
1020
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1037
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 ac_prev=pdfdir ;;
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1042
1043 -psdir | --psdir | --psdi | --psd | --ps)
1044 ac_prev=psdir ;;
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 psdir=$ac_optarg ;;
1047
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 silent=yes ;;
1051
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 ac_prev=sbindir ;;
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 | --sbi=* | --sb=*)
1056 sbindir=$ac_optarg ;;
1057
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1061 | --sha | --sh)
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 | --sha=* | --sh=*)
1067 sharedstatedir=$ac_optarg ;;
1068
1069 -site | --site | --sit)
1070 ac_prev=site ;;
1071 -site=* | --site=* | --sit=*)
1072 site=$ac_optarg ;;
1073
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 ac_prev=srcdir ;;
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1078
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1085
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1090
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 verbose=yes ;;
1093
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1096
1097 -with-* | --with-*)
1098 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1101 { echo "$as_me: error: invalid package name: $ac_package" >&2
1102 { (exit 1); exit 1; }; }
1103 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1104 eval with_$ac_package=\$ac_optarg ;;
1105
1106 -without-* | --without-*)
1107 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1110 { echo "$as_me: error: invalid package name: $ac_package" >&2
1111 { (exit 1); exit 1; }; }
1112 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1113 eval with_$ac_package=no ;;
1114
1115 --x)
1116 # Obsolete; use --with-x.
1117 with_x=yes ;;
1118
1119 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120 | --x-incl | --x-inc | --x-in | --x-i)
1121 ac_prev=x_includes ;;
1122 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124 x_includes=$ac_optarg ;;
1125
1126 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128 ac_prev=x_libraries ;;
1129 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131 x_libraries=$ac_optarg ;;
1132
1133 -*) { echo "$as_me: error: unrecognized option: $ac_option
1134 Try \`$0 --help' for more information." >&2
1135 { (exit 1); exit 1; }; }
1136 ;;
1137
1138 *=*)
1139 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1143 { (exit 1); exit 1; }; }
1144 eval $ac_envvar=\$ac_optarg
1145 export $ac_envvar ;;
1146
1147 *)
1148 # FIXME: should be removed in autoconf 3.0.
1149 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1153 ;;
1154
1155 esac
1156 done
1157
1158 if test -n "$ac_prev"; then
1159 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160 { echo "$as_me: error: missing argument to $ac_option" >&2
1161 { (exit 1); exit 1; }; }
1162 fi
1163
1164 # Be sure to have absolute directory names.
1165 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1166 datadir sysconfdir sharedstatedir localstatedir includedir \
1167 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1168 libdir localedir mandir
1169 do
1170 eval ac_val=\$$ac_var
1171 case $ac_val in
1172 [\\/$]* | ?:[\\/]* ) continue;;
1173 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1174 esac
1175 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1176 { (exit 1); exit 1; }; }
1177 done
1178
1179 # There might be people who depend on the old broken behavior: `$host'
1180 # used to hold the argument of --host etc.
1181 # FIXME: To remove some day.
1182 build=$build_alias
1183 host=$host_alias
1184 target=$target_alias
1185
1186 # FIXME: To remove some day.
1187 if test "x$host_alias" != x; then
1188 if test "x$build_alias" = x; then
1189 cross_compiling=maybe
1190 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1191 If a cross compiler is detected then cross compile mode will be used." >&2
1192 elif test "x$build_alias" != "x$host_alias"; then
1193 cross_compiling=yes
1194 fi
1195 fi
1196
1197 ac_tool_prefix=
1198 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1199
1200 test "$silent" = yes && exec 6>/dev/null
1201
1202
1203 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1204 ac_ls_di=`ls -di .` &&
1205 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1206 { echo "$as_me: error: Working directory cannot be determined" >&2
1207 { (exit 1); exit 1; }; }
1208 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1209 { echo "$as_me: error: pwd does not report name of working directory" >&2
1210 { (exit 1); exit 1; }; }
1211
1212
1213 # Find the source files, if location was not specified.
1214 if test -z "$srcdir"; then
1215 ac_srcdir_defaulted=yes
1216 # Try the directory containing this script, then the parent directory.
1217 ac_confdir=`$as_dirname -- "$0" ||
1218 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219 X"$0" : 'X\(//\)[^/]' \| \
1220 X"$0" : 'X\(//\)$' \| \
1221 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1222 echo X"$0" |
1223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224 s//\1/
1225 q
1226 }
1227 /^X\(\/\/\)[^/].*/{
1228 s//\1/
1229 q
1230 }
1231 /^X\(\/\/\)$/{
1232 s//\1/
1233 q
1234 }
1235 /^X\(\/\).*/{
1236 s//\1/
1237 q
1238 }
1239 s/.*/./; q'`
1240 srcdir=$ac_confdir
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1242 srcdir=..
1243 fi
1244 else
1245 ac_srcdir_defaulted=no
1246 fi
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1249 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1250 { (exit 1); exit 1; }; }
1251 fi
1252 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1253 ac_abs_confdir=`(
1254 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1255 { (exit 1); exit 1; }; }
1256 pwd)`
1257 # When building in place, set srcdir=.
1258 if test "$ac_abs_confdir" = "$ac_pwd"; then
1259 srcdir=.
1260 fi
1261 # Remove unnecessary trailing slashes from srcdir.
1262 # Double slashes in file names in object file debugging info
1263 # mess up M-x gdb in Emacs.
1264 case $srcdir in
1265 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266 esac
1267 for ac_var in $ac_precious_vars; do
1268 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_env_${ac_var}_value=\$${ac_var}
1270 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1271 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1272 done
1273
1274 #
1275 # Report the --help message.
1276 #
1277 if test "$ac_init_help" = "long"; then
1278 # Omit some internal or obsolete options to make the list less imposing.
1279 # This message is too long to be a string in the A/UX 3.1 sh.
1280 cat <<_ACEOF
1281 \`configure' configures xinit 1.3.2 to adapt to many kinds of systems.
1282
1283 Usage: $0 [OPTION]... [VAR=VALUE]...
1284
1285 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1286 VAR=VALUE. See below for descriptions of some of the useful variables.
1287
1288 Defaults for the options are specified in brackets.
1289
1290 Configuration:
1291 -h, --help display this help and exit
1292 --help=short display options specific to this package
1293 --help=recursive display the short help of all the included packages
1294 -V, --version display version information and exit
1295 -q, --quiet, --silent do not print \`checking...' messages
1296 --cache-file=FILE cache test results in FILE [disabled]
1297 -C, --config-cache alias for \`--cache-file=config.cache'
1298 -n, --no-create do not create output files
1299 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1300
1301 Installation directories:
1302 --prefix=PREFIX install architecture-independent files in PREFIX
1303 [$ac_default_prefix]
1304 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1305 [PREFIX]
1306
1307 By default, \`make install' will install all the files in
1308 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1309 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1310 for instance \`--prefix=\$HOME'.
1311
1312 For better control, use the options below.
1313
1314 Fine tuning of the installation directories:
1315 --bindir=DIR user executables [EPREFIX/bin]
1316 --sbindir=DIR system admin executables [EPREFIX/sbin]
1317 --libexecdir=DIR program executables [EPREFIX/libexec]
1318 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1319 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1320 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1321 --libdir=DIR object code libraries [EPREFIX/lib]
1322 --includedir=DIR C header files [PREFIX/include]
1323 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1324 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1325 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1326 --infodir=DIR info documentation [DATAROOTDIR/info]
1327 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1328 --mandir=DIR man documentation [DATAROOTDIR/man]
1329 --docdir=DIR documentation root [DATAROOTDIR/doc/xinit]
1330 --htmldir=DIR html documentation [DOCDIR]
1331 --dvidir=DIR dvi documentation [DOCDIR]
1332 --pdfdir=DIR pdf documentation [DOCDIR]
1333 --psdir=DIR ps documentation [DOCDIR]
1334 _ACEOF
1335
1336 cat <<\_ACEOF
1337
1338 Program names:
1339 --program-prefix=PREFIX prepend PREFIX to installed program names
1340 --program-suffix=SUFFIX append SUFFIX to installed program names
1341 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1342
1343 System types:
1344 --build=BUILD configure for building on BUILD [guessed]
1345 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1346 _ACEOF
1347 fi
1348
1349 if test -n "$ac_init_help"; then
1350 case $ac_init_help in
1351 short | recursive ) echo "Configuration of xinit 1.3.2:";;
1352 esac
1353 cat <<\_ACEOF
1354
1355 Optional Features:
1356 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1357 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1358 --enable-maintainer-mode enable make rules and dependencies not useful
1359 (and sometimes confusing) to the casual installer
1360 --disable-dependency-tracking speeds up one-time build
1361 --enable-dependency-tracking do not reject slow dependency extractors
1362 --disable-selective-werror
1363 Turn off selective compiler errors. (default:
1364 enabled)
1365 --enable-strict-compilation
1366 Enable all warnings from compiler and make them
1367 errors (default: disabled)
1368
1369 Optional Packages:
1370 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1371 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1372 --with-xrdb=XRDB Path to xrdb
1373 --with-xmodmap=XMODMAP Path to xmodmap
1374 --with-twm=TWM Path to twm
1375 --with-xclock=XCLOCK Path to xclock
1376 --with-xterm=XTERM Path to xterm
1377 --with-xserver=XSERVER Path to default X server
1378 --with-xauth=XAUTH Path to xauth
1379 --with-xinit=XINIT Path to xinit
1380 --with-xinitdir=XINITDIR
1381 Path to xinitdir
1382 --with-launchd Build with support for Apple's launchd (default:
1383 auto)
1384 --with-launchagents-dir=PATH
1385 Path to launchd's LaunchAgents directory (default:
1386 /Library/LaunchAgents)
1387 --with-launchagent-xserver=PATH
1388 Path to the X server which the LaunchAgent should
1389 start (if not provided, let startx decide)"
1390 --with-launchdaemons-dir=PATH
1391 Path to launchd's LaunchDaemonss directory (default:
1392 /Library/LaunchDaemons)
1393 --with-launchd-id-prefix=PATH
1394 Deprecated: Use --with-bundle-id-prefix.
1395 --with-bundle-id-prefix=PATH
1396 Prefix to use for bundle identifiers (default:
1397 org.x)
1398
1399 Some influential environment variables:
1400 CC C compiler command
1401 CFLAGS C compiler flags
1402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1403 nonstandard directory <lib dir>
1404 LIBS libraries to pass to the linker, e.g. -l<library>
1405 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1406 you have headers in a nonstandard directory <include dir>
1407 CPP C preprocessor
1408 PKG_CONFIG path to pkg-config utility
1409 PKG_CONFIG_PATH
1410 directories to add to pkg-config's search path
1411 PKG_CONFIG_LIBDIR
1412 path overriding pkg-config's built-in search path
1413 XINIT_CFLAGS
1414 C compiler flags for XINIT, overriding pkg-config
1415 XINIT_LIBS linker flags for XINIT, overriding pkg-config
1416
1417 Use these variables to override the choices made by `configure' or to help
1418 it to find libraries and programs with nonstandard names/locations.
1419
1420 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1421 _ACEOF
1422 ac_status=$?
1423 fi
1424
1425 if test "$ac_init_help" = "recursive"; then
1426 # If there are subdirs, report their specific --help.
1427 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1428 test -d "$ac_dir" || continue
1429 ac_builddir=.
1430
1431 case "$ac_dir" in
1432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *)
1434 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1435 # A ".." for each directory in $ac_dir_suffix.
1436 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1437 case $ac_top_builddir_sub in
1438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1440 esac ;;
1441 esac
1442 ac_abs_top_builddir=$ac_pwd
1443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1444 # for backward compatibility:
1445 ac_top_builddir=$ac_top_build_prefix
1446
1447 case $srcdir in
1448 .) # We are building in place.
1449 ac_srcdir=.
1450 ac_top_srcdir=$ac_top_builddir_sub
1451 ac_abs_top_srcdir=$ac_pwd ;;
1452 [\\/]* | ?:[\\/]* ) # Absolute name.
1453 ac_srcdir=$srcdir$ac_dir_suffix;
1454 ac_top_srcdir=$srcdir
1455 ac_abs_top_srcdir=$srcdir ;;
1456 *) # Relative name.
1457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1458 ac_top_srcdir=$ac_top_build_prefix$srcdir
1459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1460 esac
1461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1462
1463 cd "$ac_dir" || { ac_status=$?; continue; }
1464 # Check for guested configure.
1465 if test -f "$ac_srcdir/configure.gnu"; then
1466 echo &&
1467 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1468 elif test -f "$ac_srcdir/configure"; then
1469 echo &&
1470 $SHELL "$ac_srcdir/configure" --help=recursive
1471 else
1472 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1473 fi || ac_status=$?
1474 cd "$ac_pwd" || { ac_status=$?; break; }
1475 done
1476 fi
1477
1478 test -n "$ac_init_help" && exit $ac_status
1479 if $ac_init_version; then
1480 cat <<\_ACEOF
1481 xinit configure 1.3.2
1482 generated by GNU Autoconf 2.61
1483
1484 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1485 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1486 This configure script is free software; the Free Software Foundation
1487 gives unlimited permission to copy, distribute and modify it.
1488 _ACEOF
1489 exit
1490 fi
1491 cat >config.log <<_ACEOF
1492 This file contains any messages produced by compilers while
1493 running configure, to aid debugging if configure makes a mistake.
1494
1495 It was created by xinit $as_me 1.3.2, which was
1496 generated by GNU Autoconf 2.61. Invocation command line was
1497
1498 $ $0 $@
1499
1500 _ACEOF
1501 exec 5>>config.log
1502 {
1503 cat <<_ASUNAME
1504 ## --------- ##
1505 ## Platform. ##
1506 ## --------- ##
1507
1508 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1509 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1510 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1511 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1512 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1513
1514 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1515 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1516
1517 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1518 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1519 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1520 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1521 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1522 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1523 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1524
1525 _ASUNAME
1526
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528 for as_dir in $PATH
1529 do
1530 IFS=$as_save_IFS
1531 test -z "$as_dir" && as_dir=.
1532 echo "PATH: $as_dir"
1533 done
1534 IFS=$as_save_IFS
1535
1536 } >&5
1537
1538 cat >&5 <<_ACEOF
1539
1540
1541 ## ----------- ##
1542 ## Core tests. ##
1543 ## ----------- ##
1544
1545 _ACEOF
1546
1547
1548 # Keep a trace of the command line.
1549 # Strip out --no-create and --no-recursion so they do not pile up.
1550 # Strip out --silent because we don't want to record it for future runs.
1551 # Also quote any args containing shell meta-characters.
1552 # Make two passes to allow for proper duplicate-argument suppression.
1553 ac_configure_args=
1554 ac_configure_args0=
1555 ac_configure_args1=
1556 ac_must_keep_next=false
1557 for ac_pass in 1 2
1558 do
1559 for ac_arg
1560 do
1561 case $ac_arg in
1562 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1563 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1564 | -silent | --silent | --silen | --sile | --sil)
1565 continue ;;
1566 *\'*)
1567 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1568 esac
1569 case $ac_pass in
1570 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1571 2)
1572 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1573 if test $ac_must_keep_next = true; then
1574 ac_must_keep_next=false # Got value, back to normal.
1575 else
1576 case $ac_arg in
1577 *=* | --config-cache | -C | -disable-* | --disable-* \
1578 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1579 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1580 | -with-* | --with-* | -without-* | --without-* | --x)
1581 case "$ac_configure_args0 " in
1582 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1583 esac
1584 ;;
1585 -* ) ac_must_keep_next=true ;;
1586 esac
1587 fi
1588 ac_configure_args="$ac_configure_args '$ac_arg'"
1589 ;;
1590 esac
1591 done
1592 done
1593 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1594 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1595
1596 # When interrupted or exit'd, cleanup temporary files, and complete
1597 # config.log. We remove comments because anyway the quotes in there
1598 # would cause problems or look ugly.
1599 # WARNING: Use '\'' to represent an apostrophe within the trap.
1600 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1601 trap 'exit_status=$?
1602 # Save into config.log some information that might help in debugging.
1603 {
1604 echo
1605
1606 cat <<\_ASBOX
1607 ## ---------------- ##
1608 ## Cache variables. ##
1609 ## ---------------- ##
1610 _ASBOX
1611 echo
1612 # The following way of writing the cache mishandles newlines in values,
1613 (
1614 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1615 eval ac_val=\$$ac_var
1616 case $ac_val in #(
1617 *${as_nl}*)
1618 case $ac_var in #(
1619 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1620 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1621 esac
1622 case $ac_var in #(
1623 _ | IFS | as_nl) ;; #(
1624 *) $as_unset $ac_var ;;
1625 esac ;;
1626 esac
1627 done
1628 (set) 2>&1 |
1629 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1630 *${as_nl}ac_space=\ *)
1631 sed -n \
1632 "s/'\''/'\''\\\\'\'''\''/g;
1633 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1634 ;; #(
1635 *)
1636 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1637 ;;
1638 esac |
1639 sort
1640 )
1641 echo
1642
1643 cat <<\_ASBOX
1644 ## ----------------- ##
1645 ## Output variables. ##
1646 ## ----------------- ##
1647 _ASBOX
1648 echo
1649 for ac_var in $ac_subst_vars
1650 do
1651 eval ac_val=\$$ac_var
1652 case $ac_val in
1653 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1654 esac
1655 echo "$ac_var='\''$ac_val'\''"
1656 done | sort
1657 echo
1658
1659 if test -n "$ac_subst_files"; then
1660 cat <<\_ASBOX
1661 ## ------------------- ##
1662 ## File substitutions. ##
1663 ## ------------------- ##
1664 _ASBOX
1665 echo
1666 for ac_var in $ac_subst_files
1667 do
1668 eval ac_val=\$$ac_var
1669 case $ac_val in
1670 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1671 esac
1672 echo "$ac_var='\''$ac_val'\''"
1673 done | sort
1674 echo
1675 fi
1676
1677 if test -s confdefs.h; then
1678 cat <<\_ASBOX
1679 ## ----------- ##
1680 ## confdefs.h. ##
1681 ## ----------- ##
1682 _ASBOX
1683 echo
1684 cat confdefs.h
1685 echo
1686 fi
1687 test "$ac_signal" != 0 &&
1688 echo "$as_me: caught signal $ac_signal"
1689 echo "$as_me: exit $exit_status"
1690 } >&5
1691 rm -f core *.core core.conftest.* &&
1692 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1693 exit $exit_status
1694 ' 0
1695 for ac_signal in 1 2 13 15; do
1696 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1697 done
1698 ac_signal=0
1699
1700 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1701 rm -f -r conftest* confdefs.h
1702
1703 # Predefined preprocessor variables.
1704
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_NAME "$PACKAGE_NAME"
1707 _ACEOF
1708
1709
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1712 _ACEOF
1713
1714
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1717 _ACEOF
1718
1719
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_STRING "$PACKAGE_STRING"
1722 _ACEOF
1723
1724
1725 cat >>confdefs.h <<_ACEOF
1726 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1727 _ACEOF
1728
1729
1730 # Let the site file select an alternate cache file if it wants to.
1731 # Prefer explicitly selected file to automatically selected ones.
1732 if test -n "$CONFIG_SITE"; then
1733 set x "$CONFIG_SITE"
1734 elif test "x$prefix" != xNONE; then
1735 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1736 else
1737 set x "$ac_default_prefix/share/config.site" \
1738 "$ac_default_prefix/etc/config.site"
1739 fi
1740 shift
1741 for ac_site_file
1742 do
1743 if test -r "$ac_site_file"; then
1744 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1745 echo "$as_me: loading site script $ac_site_file" >&6;}
1746 sed 's/^/| /' "$ac_site_file" >&5
1747 . "$ac_site_file"
1748 fi
1749 done
1750
1751 if test -r "$cache_file"; then
1752 # Some versions of bash will fail to source /dev/null (special
1753 # files actually), so we avoid doing that.
1754 if test -f "$cache_file"; then
1755 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1756 echo "$as_me: loading cache $cache_file" >&6;}
1757 case $cache_file in
1758 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1759 *) . "./$cache_file";;
1760 esac
1761 fi
1762 else
1763 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1764 echo "$as_me: creating cache $cache_file" >&6;}
1765 >$cache_file
1766 fi
1767
1768 # Check that the precious variables saved in the cache have kept the same
1769 # value.
1770 ac_cache_corrupted=false
1771 for ac_var in $ac_precious_vars; do
1772 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1773 eval ac_new_set=\$ac_env_${ac_var}_set
1774 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1775 eval ac_new_val=\$ac_env_${ac_var}_value
1776 case $ac_old_set,$ac_new_set in
1777 set,)
1778 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1779 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1780 ac_cache_corrupted=: ;;
1781 ,set)
1782 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1783 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1784 ac_cache_corrupted=: ;;
1785 ,);;
1786 *)
1787 if test "x$ac_old_val" != "x$ac_new_val"; then
1788 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1789 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1790 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1791 echo "$as_me: former value: $ac_old_val" >&2;}
1792 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1793 echo "$as_me: current value: $ac_new_val" >&2;}
1794 ac_cache_corrupted=:
1795 fi;;
1796 esac
1797 # Pass precious variables to config.status.
1798 if test "$ac_new_set" = set; then
1799 case $ac_new_val in
1800 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1801 *) ac_arg=$ac_var=$ac_new_val ;;
1802 esac
1803 case " $ac_configure_args " in
1804 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1805 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1806 esac
1807 fi
1808 done
1809 if $ac_cache_corrupted; then
1810 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1811 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1812 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1813 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1814 { (exit 1); exit 1; }; }
1815 fi
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841 ac_ext=c
1842 ac_cpp='$CPP $CPPFLAGS'
1843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1846
1847
1848
1849 ac_config_headers="$ac_config_headers config.h"
1850
1851
1852 # Initialize Automake
1853 am__api_version='1.10'
1854
1855 ac_aux_dir=
1856 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1857 if test -f "$ac_dir/install-sh"; then
1858 ac_aux_dir=$ac_dir
1859 ac_install_sh="$ac_aux_dir/install-sh -c"
1860 break
1861 elif test -f "$ac_dir/install.sh"; then
1862 ac_aux_dir=$ac_dir
1863 ac_install_sh="$ac_aux_dir/install.sh -c"
1864 break
1865 elif test -f "$ac_dir/shtool"; then
1866 ac_aux_dir=$ac_dir
1867 ac_install_sh="$ac_aux_dir/shtool install -c"
1868 break
1869 fi
1870 done
1871 if test -z "$ac_aux_dir"; then
1872 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1873 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1874 { (exit 1); exit 1; }; }
1875 fi
1876
1877 # These three variables are undocumented and unsupported,
1878 # and are intended to be withdrawn in a future Autoconf release.
1879 # They can cause serious problems if a builder's source tree is in a directory
1880 # whose full name contains unusual characters.
1881 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1882 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1883 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1884
1885
1886 # Find a good install program. We prefer a C program (faster),
1887 # so one script is as good as another. But avoid the broken or
1888 # incompatible versions:
1889 # SysV /etc/install, /usr/sbin/install
1890 # SunOS /usr/etc/install
1891 # IRIX /sbin/install
1892 # AIX /bin/install
1893 # AmigaOS /C/install, which installs bootblocks on floppy discs
1894 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1895 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1896 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1897 # OS/2's system install, which has a completely different semantic
1898 # ./install, which can be erroneously created by make from ./install.sh.
1899 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1900 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1901 if test -z "$INSTALL"; then
1902 if test "${ac_cv_path_install+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1907 do
1908 IFS=$as_save_IFS
1909 test -z "$as_dir" && as_dir=.
1910 # Account for people who put trailing slashes in PATH elements.
1911 case $as_dir/ in
1912 ./ | .// | /cC/* | \
1913 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1914 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1915 /usr/ucb/* ) ;;
1916 *)
1917 # OSF1 and SCO ODT 3.0 have their own names for install.
1918 # Don't use installbsd from OSF since it installs stuff as root
1919 # by default.
1920 for ac_prog in ginstall scoinst install; do
1921 for ac_exec_ext in '' $ac_executable_extensions; do
1922 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1923 if test $ac_prog = install &&
1924 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1925 # AIX install. It has an incompatible calling convention.
1926 :
1927 elif test $ac_prog = install &&
1928 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1929 # program-specific install script used by HP pwplus--don't use.
1930 :
1931 else
1932 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1933 break 3
1934 fi
1935 fi
1936 done
1937 done
1938 ;;
1939 esac
1940 done
1941 IFS=$as_save_IFS
1942
1943
1944 fi
1945 if test "${ac_cv_path_install+set}" = set; then
1946 INSTALL=$ac_cv_path_install
1947 else
1948 # As a last resort, use the slow shell script. Don't cache a
1949 # value for INSTALL within a source directory, because that will
1950 # break other packages using the cache if that directory is
1951 # removed, or if the value is a relative name.
1952 INSTALL=$ac_install_sh
1953 fi
1954 fi
1955 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1956 echo "${ECHO_T}$INSTALL" >&6; }
1957
1958 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1959 # It thinks the first close brace ends the variable substitution.
1960 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1961
1962 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1963
1964 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1965
1966 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1967 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1968 # Just in case
1969 sleep 1
1970 echo timestamp > conftest.file
1971 # Do `set' in a subshell so we don't clobber the current shell's
1972 # arguments. Must try -L first in case configure is actually a
1973 # symlink; some systems play weird games with the mod time of symlinks
1974 # (eg FreeBSD returns the mod time of the symlink's containing
1975 # directory).
1976 if (
1977 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1978 if test "$*" = "X"; then
1979 # -L didn't work.
1980 set X `ls -t $srcdir/configure conftest.file`
1981 fi
1982 rm -f conftest.file
1983 if test "$*" != "X $srcdir/configure conftest.file" \
1984 && test "$*" != "X conftest.file $srcdir/configure"; then
1985
1986 # If neither matched, then we have a broken ls. This can happen
1987 # if, for instance, CONFIG_SHELL is bash and it inherits a
1988 # broken ls alias from the environment. This has actually
1989 # happened. Such a system could not be considered "sane".
1990 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1991 alias in your environment" >&5
1992 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1993 alias in your environment" >&2;}
1994 { (exit 1); exit 1; }; }
1995 fi
1996
1997 test "$2" = conftest.file
1998 )
1999 then
2000 # Ok.
2001 :
2002 else
2003 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2004 Check your system clock" >&5
2005 echo "$as_me: error: newly created file is older than distributed files!
2006 Check your system clock" >&2;}
2007 { (exit 1); exit 1; }; }
2008 fi
2009 { echo "$as_me:$LINENO: result: yes" >&5
2010 echo "${ECHO_T}yes" >&6; }
2011 test "$program_prefix" != NONE &&
2012 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2013 # Use a double $ so make ignores it.
2014 test "$program_suffix" != NONE &&
2015 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2016 # Double any \ or $. echo might interpret backslashes.
2017 # By default was `s,x,x', remove it if useless.
2018 cat <<\_ACEOF >conftest.sed
2019 s/[\\$]/&&/g;s/;s,x,x,$//
2020 _ACEOF
2021 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2022 rm -f conftest.sed
2023
2024 # expand $ac_aux_dir to an absolute path
2025 am_aux_dir=`cd $ac_aux_dir && pwd`
2026
2027 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2028 # Use eval to expand $SHELL
2029 if eval "$MISSING --run true"; then
2030 am_missing_run="$MISSING --run "
2031 else
2032 am_missing_run=
2033 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2034 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2035 fi
2036
2037 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2038 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2039 if test -z "$MKDIR_P"; then
2040 if test "${ac_cv_path_mkdir+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2045 do
2046 IFS=$as_save_IFS
2047 test -z "$as_dir" && as_dir=.
2048 for ac_prog in mkdir gmkdir; do
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2051 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2052 'mkdir (GNU coreutils) '* | \
2053 'mkdir (coreutils) '* | \
2054 'mkdir (fileutils) '4.1*)
2055 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2056 break 3;;
2057 esac
2058 done
2059 done
2060 done
2061 IFS=$as_save_IFS
2062
2063 fi
2064
2065 if test "${ac_cv_path_mkdir+set}" = set; then
2066 MKDIR_P="$ac_cv_path_mkdir -p"
2067 else
2068 # As a last resort, use the slow shell script. Don't cache a
2069 # value for MKDIR_P within a source directory, because that will
2070 # break other packages using the cache if that directory is
2071 # removed, or if the value is a relative name.
2072 test -d ./--version && rmdir ./--version
2073 MKDIR_P="$ac_install_sh -d"
2074 fi
2075 fi
2076 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2077 echo "${ECHO_T}$MKDIR_P" >&6; }
2078
2079 mkdir_p="$MKDIR_P"
2080 case $mkdir_p in
2081 [\\/$]* | ?:[\\/]*) ;;
2082 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2083 esac
2084
2085 for ac_prog in gawk mawk nawk awk
2086 do
2087 # Extract the first word of "$ac_prog", so it can be a program name with args.
2088 set dummy $ac_prog; ac_word=$2
2089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2091 if test "${ac_cv_prog_AWK+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094 if test -n "$AWK"; then
2095 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2096 else
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 for as_dir in $PATH
2099 do
2100 IFS=$as_save_IFS
2101 test -z "$as_dir" && as_dir=.
2102 for ac_exec_ext in '' $ac_executable_extensions; do
2103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2104 ac_cv_prog_AWK="$ac_prog"
2105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106 break 2
2107 fi
2108 done
2109 done
2110 IFS=$as_save_IFS
2111
2112 fi
2113 fi
2114 AWK=$ac_cv_prog_AWK
2115 if test -n "$AWK"; then
2116 { echo "$as_me:$LINENO: result: $AWK" >&5
2117 echo "${ECHO_T}$AWK" >&6; }
2118 else
2119 { echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6; }
2121 fi
2122
2123
2124 test -n "$AWK" && break
2125 done
2126
2127 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2128 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2129 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2130 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133 cat >conftest.make <<\_ACEOF
2134 SHELL = /bin/sh
2135 all:
2136 @echo '@@@%%%=$(MAKE)=@@@%%%'
2137 _ACEOF
2138 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2139 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2140 *@@@%%%=?*=@@@%%%*)
2141 eval ac_cv_prog_make_${ac_make}_set=yes;;
2142 *)
2143 eval ac_cv_prog_make_${ac_make}_set=no;;
2144 esac
2145 rm -f conftest.make
2146 fi
2147 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2148 { echo "$as_me:$LINENO: result: yes" >&5
2149 echo "${ECHO_T}yes" >&6; }
2150 SET_MAKE=
2151 else
2152 { echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6; }
2154 SET_MAKE="MAKE=${MAKE-make}"
2155 fi
2156
2157 rm -rf .tst 2>/dev/null
2158 mkdir .tst 2>/dev/null
2159 if test -d .tst; then
2160 am__leading_dot=.
2161 else
2162 am__leading_dot=_
2163 fi
2164 rmdir .tst 2>/dev/null
2165
2166 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2167 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2168 # is not polluted with repeated "-I."
2169 am__isrc=' -I$(srcdir)'
2170 # test to see if srcdir already configured
2171 if test -f $srcdir/config.status; then
2172 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2173 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2174 { (exit 1); exit 1; }; }
2175 fi
2176 fi
2177
2178 # test whether we have cygpath
2179 if test -z "$CYGPATH_W"; then
2180 if (cygpath --version) >/dev/null 2>/dev/null; then
2181 CYGPATH_W='cygpath -w'
2182 else
2183 CYGPATH_W=echo
2184 fi
2185 fi
2186
2187
2188 # Define the identity of the package.
2189 PACKAGE='xinit'
2190 VERSION='1.3.2'
2191
2192
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE "$PACKAGE"
2195 _ACEOF
2196
2197
2198 cat >>confdefs.h <<_ACEOF
2199 #define VERSION "$VERSION"
2200 _ACEOF
2201
2202 # Some tools Automake needs.
2203
2204 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2205
2206
2207 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2208
2209
2210 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2211
2212
2213 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2214
2215
2216 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2217
2218 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2219
2220 # Installed binaries are usually stripped using `strip' when the user
2221 # run `make install-strip'. However `strip' might not be the right
2222 # tool to use in cross-compilation environments, therefore Automake
2223 # will honor the `STRIP' environment variable to overrule this program.
2224 if test "$cross_compiling" != no; then
2225 if test -n "$ac_tool_prefix"; then
2226 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2227 set dummy ${ac_tool_prefix}strip; ac_word=$2
2228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2230 if test "${ac_cv_prog_STRIP+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233 if test -n "$STRIP"; then
2234 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2235 else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2238 do
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2243 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 break 2
2246 fi
2247 done
2248 done
2249 IFS=$as_save_IFS
2250
2251 fi
2252 fi
2253 STRIP=$ac_cv_prog_STRIP
2254 if test -n "$STRIP"; then
2255 { echo "$as_me:$LINENO: result: $STRIP" >&5
2256 echo "${ECHO_T}$STRIP" >&6; }
2257 else
2258 { echo "$as_me:$LINENO: result: no" >&5
2259 echo "${ECHO_T}no" >&6; }
2260 fi
2261
2262
2263 fi
2264 if test -z "$ac_cv_prog_STRIP"; then
2265 ac_ct_STRIP=$STRIP
2266 # Extract the first word of "strip", so it can be a program name with args.
2267 set dummy strip; ac_word=$2
2268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2270 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273 if test -n "$ac_ct_STRIP"; then
2274 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2275 else
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 for as_dir in $PATH
2278 do
2279 IFS=$as_save_IFS
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2283 ac_cv_prog_ac_ct_STRIP="strip"
2284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285 break 2
2286 fi
2287 done
2288 done
2289 IFS=$as_save_IFS
2290
2291 fi
2292 fi
2293 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2294 if test -n "$ac_ct_STRIP"; then
2295 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2296 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2297 else
2298 { echo "$as_me:$LINENO: result: no" >&5
2299 echo "${ECHO_T}no" >&6; }
2300 fi
2301
2302 if test "x$ac_ct_STRIP" = x; then
2303 STRIP=":"
2304 else
2305 case $cross_compiling:$ac_tool_warned in
2306 yes:)
2307 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2308 whose name does not start with the host triplet. If you think this
2309 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2310 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2311 whose name does not start with the host triplet. If you think this
2312 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2313 ac_tool_warned=yes ;;
2314 esac
2315 STRIP=$ac_ct_STRIP
2316 fi
2317 else
2318 STRIP="$ac_cv_prog_STRIP"
2319 fi
2320
2321 fi
2322 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2323
2324 # We need awk for the "check" target. The system "awk" is bad on
2325 # some platforms.
2326 # Always define AMTAR for backward compatibility.
2327
2328 AMTAR=${AMTAR-"${am_missing_run}tar"}
2329
2330 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2331
2332
2333
2334
2335
2336 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2337 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2338 # Check whether --enable-maintainer-mode was given.
2339 if test "${enable_maintainer_mode+set}" = set; then
2340 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2341 else
2342 USE_MAINTAINER_MODE=no
2343 fi
2344
2345 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2346 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2347 if test $USE_MAINTAINER_MODE = yes; then
2348 MAINTAINER_MODE_TRUE=
2349 MAINTAINER_MODE_FALSE='#'
2350 else
2351 MAINTAINER_MODE_TRUE='#'
2352 MAINTAINER_MODE_FALSE=
2353 fi
2354
2355 MAINT=$MAINTAINER_MODE_TRUE
2356
2357
2358
2359 # Require X.Org macros 1.8 or later for AC_PROG_SED in XORG_DEFAULT_OPTIONS
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371 DEPDIR="${am__leading_dot}deps"
2372
2373 ac_config_commands="$ac_config_commands depfiles"
2374
2375
2376 am_make=${MAKE-make}
2377 cat > confinc << 'END'
2378 am__doit:
2379 @echo done
2380 .PHONY: am__doit
2381 END
2382 # If we don't find an include directive, just comment out the code.
2383 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2384 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2385 am__include="#"
2386 am__quote=
2387 _am_result=none
2388 # First try GNU make style include.
2389 echo "include confinc" > confmf
2390 # We grep out `Entering directory' and `Leaving directory'
2391 # messages which can occur if `w' ends up in MAKEFLAGS.
2392 # In particular we don't look at `^make:' because GNU make might
2393 # be invoked under some other name (usually "gmake"), in which
2394 # case it prints its new name instead of `make'.
2395 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2396 am__include=include
2397 am__quote=
2398 _am_result=GNU
2399 fi
2400 # Now try BSD make style include.
2401 if test "$am__include" = "#"; then
2402 echo '.include "confinc"' > confmf
2403 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2404 am__include=.include
2405 am__quote="\""
2406 _am_result=BSD
2407 fi
2408 fi
2409
2410
2411 { echo "$as_me:$LINENO: result: $_am_result" >&5
2412 echo "${ECHO_T}$_am_result" >&6; }
2413 rm -f confinc confmf
2414
2415 # Check whether --enable-dependency-tracking was given.
2416 if test "${enable_dependency_tracking+set}" = set; then
2417 enableval=$enable_dependency_tracking;
2418 fi
2419
2420 if test "x$enable_dependency_tracking" != xno; then
2421 am_depcomp="$ac_aux_dir/depcomp"
2422 AMDEPBACKSLASH='\'
2423 fi
2424 if test "x$enable_dependency_tracking" != xno; then
2425 AMDEP_TRUE=
2426 AMDEP_FALSE='#'
2427 else
2428 AMDEP_TRUE='#'
2429 AMDEP_FALSE=
2430 fi
2431
2432
2433 ac_ext=c
2434 ac_cpp='$CPP $CPPFLAGS'
2435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2438 if test -n "$ac_tool_prefix"; then
2439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2440 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2443 if test "${ac_cv_prog_CC+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446 if test -n "$CC"; then
2447 ac_cv_prog_CC="$CC" # Let the user override the test.
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2451 do
2452 IFS=$as_save_IFS
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 break 2
2459 fi
2460 done
2461 done
2462 IFS=$as_save_IFS
2463
2464 fi
2465 fi
2466 CC=$ac_cv_prog_CC
2467 if test -n "$CC"; then
2468 { echo "$as_me:$LINENO: result: $CC" >&5
2469 echo "${ECHO_T}$CC" >&6; }
2470 else
2471 { echo "$as_me:$LINENO: result: no" >&5
2472 echo "${ECHO_T}no" >&6; }
2473 fi
2474
2475
2476 fi
2477 if test -z "$ac_cv_prog_CC"; then
2478 ac_ct_CC=$CC
2479 # Extract the first word of "gcc", so it can be a program name with args.
2480 set dummy gcc; ac_word=$2
2481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 else
2486 if test -n "$ac_ct_CC"; then
2487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2488 else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2491 do
2492 IFS=$as_save_IFS
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496 ac_cv_prog_ac_ct_CC="gcc"
2497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 break 2
2499 fi
2500 done
2501 done
2502 IFS=$as_save_IFS
2503
2504 fi
2505 fi
2506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2507 if test -n "$ac_ct_CC"; then
2508 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2509 echo "${ECHO_T}$ac_ct_CC" >&6; }
2510 else
2511 { echo "$as_me:$LINENO: result: no" >&5
2512 echo "${ECHO_T}no" >&6; }
2513 fi
2514
2515 if test "x$ac_ct_CC" = x; then
2516 CC=""
2517 else
2518 case $cross_compiling:$ac_tool_warned in
2519 yes:)
2520 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet. If you think this
2522 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2523 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2524 whose name does not start with the host triplet. If you think this
2525 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2526 ac_tool_warned=yes ;;
2527 esac
2528 CC=$ac_ct_CC
2529 fi
2530 else
2531 CC="$ac_cv_prog_CC"
2532 fi
2533
2534 if test -z "$CC"; then
2535 if test -n "$ac_tool_prefix"; then
2536 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2537 set dummy ${ac_tool_prefix}cc; ac_word=$2
2538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2540 if test "${ac_cv_prog_CC+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543 if test -n "$CC"; then
2544 ac_cv_prog_CC="$CC" # Let the user override the test.
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2548 do
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 ac_cv_prog_CC="${ac_tool_prefix}cc"
2554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 break 2
2556 fi
2557 done
2558 done
2559 IFS=$as_save_IFS
2560
2561 fi
2562 fi
2563 CC=$ac_cv_prog_CC
2564 if test -n "$CC"; then
2565 { echo "$as_me:$LINENO: result: $CC" >&5
2566 echo "${ECHO_T}$CC" >&6; }
2567 else
2568 { echo "$as_me:$LINENO: result: no" >&5
2569 echo "${ECHO_T}no" >&6; }
2570 fi
2571
2572
2573 fi
2574 fi
2575 if test -z "$CC"; then
2576 # Extract the first word of "cc", so it can be a program name with args.
2577 set dummy cc; ac_word=$2
2578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2580 if test "${ac_cv_prog_CC+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 else
2583 if test -n "$CC"; then
2584 ac_cv_prog_CC="$CC" # Let the user override the test.
2585 else
2586 ac_prog_rejected=no
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2595 ac_prog_rejected=yes
2596 continue
2597 fi
2598 ac_cv_prog_CC="cc"
2599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 break 2
2601 fi
2602 done
2603 done
2604 IFS=$as_save_IFS
2605
2606 if test $ac_prog_rejected = yes; then
2607 # We found a bogon in the path, so make sure we never use it.
2608 set dummy $ac_cv_prog_CC
2609 shift
2610 if test $# != 0; then
2611 # We chose a different compiler from the bogus one.
2612 # However, it has the same basename, so the bogon will be chosen
2613 # first if we set CC to just the basename; use the full file name.
2614 shift
2615 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2616 fi
2617 fi
2618 fi
2619 fi
2620 CC=$ac_cv_prog_CC
2621 if test -n "$CC"; then
2622 { echo "$as_me:$LINENO: result: $CC" >&5
2623 echo "${ECHO_T}$CC" >&6; }
2624 else
2625 { echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6; }
2627 fi
2628
2629
2630 fi
2631 if test -z "$CC"; then
2632 if test -n "$ac_tool_prefix"; then
2633 for ac_prog in cl.exe
2634 do
2635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2639 if test "${ac_cv_prog_CC+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 else
2642 if test -n "$CC"; then
2643 ac_cv_prog_CC="$CC" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2652 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 break 2
2655 fi
2656 done
2657 done
2658 IFS=$as_save_IFS
2659
2660 fi
2661 fi
2662 CC=$ac_cv_prog_CC
2663 if test -n "$CC"; then
2664 { echo "$as_me:$LINENO: result: $CC" >&5
2665 echo "${ECHO_T}$CC" >&6; }
2666 else
2667 { echo "$as_me:$LINENO: result: no" >&5
2668 echo "${ECHO_T}no" >&6; }
2669 fi
2670
2671
2672 test -n "$CC" && break
2673 done
2674 fi
2675 if test -z "$CC"; then
2676 ac_ct_CC=$CC
2677 for ac_prog in cl.exe
2678 do
2679 # Extract the first word of "$ac_prog", so it can be a program name with args.
2680 set dummy $ac_prog; ac_word=$2
2681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2683 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686 if test -n "$ac_ct_CC"; then
2687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2691 do
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696 ac_cv_prog_ac_ct_CC="$ac_prog"
2697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 break 2
2699 fi
2700 done
2701 done
2702 IFS=$as_save_IFS
2703
2704 fi
2705 fi
2706 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2707 if test -n "$ac_ct_CC"; then
2708 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2709 echo "${ECHO_T}$ac_ct_CC" >&6; }
2710 else
2711 { echo "$as_me:$LINENO: result: no" >&5
2712 echo "${ECHO_T}no" >&6; }
2713 fi
2714
2715
2716 test -n "$ac_ct_CC" && break
2717 done
2718
2719 if test "x$ac_ct_CC" = x; then
2720 CC=""
2721 else
2722 case $cross_compiling:$ac_tool_warned in
2723 yes:)
2724 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2725 whose name does not start with the host triplet. If you think this
2726 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2727 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2728 whose name does not start with the host triplet. If you think this
2729 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2730 ac_tool_warned=yes ;;
2731 esac
2732 CC=$ac_ct_CC
2733 fi
2734 fi
2735
2736 fi
2737
2738
2739 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2740 See \`config.log' for more details." >&5
2741 echo "$as_me: error: no acceptable C compiler found in \$PATH
2742 See \`config.log' for more details." >&2;}
2743 { (exit 1); exit 1; }; }
2744
2745 # Provide some information about the compiler.
2746 echo "$as_me:$LINENO: checking for C compiler version" >&5
2747 ac_compiler=`set X $ac_compile; echo $2`
2748 { (ac_try="$ac_compiler --version >&5"
2749 case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752 esac
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_compiler --version >&5") 2>&5
2755 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }
2758 { (ac_try="$ac_compiler -v >&5"
2759 case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2762 esac
2763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764 (eval "$ac_compiler -v >&5") 2>&5
2765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }
2768 { (ac_try="$ac_compiler -V >&5"
2769 case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2772 esac
2773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774 (eval "$ac_compiler -V >&5") 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }
2778
2779 cat >conftest.$ac_ext <<_ACEOF
2780 /* confdefs.h. */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2785
2786 int
2787 main ()
2788 {
2789
2790 ;
2791 return 0;
2792 }
2793 _ACEOF
2794 ac_clean_files_save=$ac_clean_files
2795 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2796 # Try to create an executable without -o first, disregard a.out.
2797 # It will help us diagnose broken compilers, and finding out an intuition
2798 # of exeext.
2799 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2800 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2801 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2802 #
2803 # List of possible output files, starting from the most likely.
2804 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2805 # only as a last resort. b.out is created by i960 compilers.
2806 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2807 #
2808 # The IRIX 6 linker writes into existing files which may not be
2809 # executable, retaining their permissions. Remove them first so a
2810 # subsequent execution test works.
2811 ac_rmfiles=
2812 for ac_file in $ac_files
2813 do
2814 case $ac_file in
2815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2816 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2817 esac
2818 done
2819 rm -f $ac_rmfiles
2820
2821 if { (ac_try="$ac_link_default"
2822 case "(($ac_try" in
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2825 esac
2826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827 (eval "$ac_link_default") 2>&5
2828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; then
2831 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2832 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2833 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2834 # so that the user can short-circuit this test for compilers unknown to
2835 # Autoconf.
2836 for ac_file in $ac_files ''
2837 do
2838 test -f "$ac_file" || continue
2839 case $ac_file in
2840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2841 ;;
2842 [ab].out )
2843 # We found the default executable, but exeext='' is most
2844 # certainly right.
2845 break;;
2846 *.* )
2847 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2848 then :; else
2849 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2850 fi
2851 # We set ac_cv_exeext here because the later test for it is not
2852 # safe: cross compilers may not add the suffix if given an `-o'
2853 # argument, so we may need to know it at that point already.
2854 # Even if this section looks crufty: it has the advantage of
2855 # actually working.
2856 break;;
2857 * )
2858 break;;
2859 esac
2860 done
2861 test "$ac_cv_exeext" = no && ac_cv_exeext=
2862
2863 else
2864 ac_file=''
2865 fi
2866
2867 { echo "$as_me:$LINENO: result: $ac_file" >&5
2868 echo "${ECHO_T}$ac_file" >&6; }
2869 if test -z "$ac_file"; then
2870 echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2872
2873 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2874 See \`config.log' for more details." >&5
2875 echo "$as_me: error: C compiler cannot create executables
2876 See \`config.log' for more details." >&2;}
2877 { (exit 77); exit 77; }; }
2878 fi
2879
2880 ac_exeext=$ac_cv_exeext
2881
2882 # Check that the compiler produces executables we can run. If not, either
2883 # the compiler is broken, or we cross compile.
2884 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2885 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2886 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2887 # If not cross compiling, check that we can run a simple program.
2888 if test "$cross_compiling" != yes; then
2889 if { ac_try='./$ac_file'
2890 { (case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2893 esac
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_try") 2>&5
2896 ac_status=$?
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2899 cross_compiling=no
2900 else
2901 if test "$cross_compiling" = maybe; then
2902 cross_compiling=yes
2903 else
2904 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2905 If you meant to cross compile, use \`--host'.
2906 See \`config.log' for more details." >&5
2907 echo "$as_me: error: cannot run C compiled programs.
2908 If you meant to cross compile, use \`--host'.
2909 See \`config.log' for more details." >&2;}
2910 { (exit 1); exit 1; }; }
2911 fi
2912 fi
2913 fi
2914 { echo "$as_me:$LINENO: result: yes" >&5
2915 echo "${ECHO_T}yes" >&6; }
2916
2917 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2918 ac_clean_files=$ac_clean_files_save
2919 # Check that the compiler produces executables we can run. If not, either
2920 # the compiler is broken, or we cross compile.
2921 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2922 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2923 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2924 echo "${ECHO_T}$cross_compiling" >&6; }
2925
2926 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2927 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2928 if { (ac_try="$ac_link"
2929 case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2932 esac
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_link") 2>&5
2935 ac_status=$?
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; then
2938 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2939 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2940 # work properly (i.e., refer to `conftest.exe'), while it won't with
2941 # `rm'.
2942 for ac_file in conftest.exe conftest conftest.*; do
2943 test -f "$ac_file" || continue
2944 case $ac_file in
2945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2946 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2947 break;;
2948 * ) break;;
2949 esac
2950 done
2951 else
2952 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2953 See \`config.log' for more details." >&5
2954 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2955 See \`config.log' for more details." >&2;}
2956 { (exit 1); exit 1; }; }
2957 fi
2958
2959 rm -f conftest$ac_cv_exeext
2960 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2961 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2962
2963 rm -f conftest.$ac_ext
2964 EXEEXT=$ac_cv_exeext
2965 ac_exeext=$EXEEXT
2966 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2967 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2968 if test "${ac_cv_objext+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971 cat >conftest.$ac_ext <<_ACEOF
2972 /* confdefs.h. */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2977
2978 int
2979 main ()
2980 {
2981
2982 ;
2983 return 0;
2984 }
2985 _ACEOF
2986 rm -f conftest.o conftest.obj
2987 if { (ac_try="$ac_compile"
2988 case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991 esac
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_compile") 2>&5
2994 ac_status=$?
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; then
2997 for ac_file in conftest.o conftest.obj conftest.*; do
2998 test -f "$ac_file" || continue;
2999 case $ac_file in
3000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3001 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3002 break;;
3003 esac
3004 done
3005 else
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3008
3009 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3010 See \`config.log' for more details." >&5
3011 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3012 See \`config.log' for more details." >&2;}
3013 { (exit 1); exit 1; }; }
3014 fi
3015
3016 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3017 fi
3018 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3019 echo "${ECHO_T}$ac_cv_objext" >&6; }
3020 OBJEXT=$ac_cv_objext
3021 ac_objext=$OBJEXT
3022 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3023 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3024 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027 cat >conftest.$ac_ext <<_ACEOF
3028 /* confdefs.h. */
3029 _ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h. */
3033
3034 int
3035 main ()
3036 {
3037 #ifndef __GNUC__
3038 choke me
3039 #endif
3040
3041 ;
3042 return 0;
3043 }
3044 _ACEOF
3045 rm -f conftest.$ac_objext
3046 if { (ac_try="$ac_compile"
3047 case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050 esac
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_compile") 2>conftest.er1
3053 ac_status=$?
3054 grep -v '^ *+' conftest.er1 >conftest.err
3055 rm -f conftest.er1
3056 cat conftest.err >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } && {
3059 test -z "$ac_c_werror_flag" ||
3060 test ! -s conftest.err
3061 } && test -s conftest.$ac_objext; then
3062 ac_compiler_gnu=yes
3063 else
3064 echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3066
3067 ac_compiler_gnu=no
3068 fi
3069
3070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3071 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3072
3073 fi
3074 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3075 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3076 GCC=`test $ac_compiler_gnu = yes && echo yes`
3077 ac_test_CFLAGS=${CFLAGS+set}
3078 ac_save_CFLAGS=$CFLAGS
3079 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3080 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3081 if test "${ac_cv_prog_cc_g+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 else
3084 ac_save_c_werror_flag=$ac_c_werror_flag
3085 ac_c_werror_flag=yes
3086 ac_cv_prog_cc_g=no
3087 CFLAGS="-g"
3088 cat >conftest.$ac_ext <<_ACEOF
3089 /* confdefs.h. */
3090 _ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h. */
3094
3095 int
3096 main ()
3097 {
3098
3099 ;
3100 return 0;
3101 }
3102 _ACEOF
3103 rm -f conftest.$ac_objext
3104 if { (ac_try="$ac_compile"
3105 case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_compile") 2>conftest.er1
3111 ac_status=$?
3112 grep -v '^ *+' conftest.er1 >conftest.err
3113 rm -f conftest.er1
3114 cat conftest.err >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); } && {
3117 test -z "$ac_c_werror_flag" ||
3118 test ! -s conftest.err
3119 } && test -s conftest.$ac_objext; then
3120 ac_cv_prog_cc_g=yes
3121 else
3122 echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3124
3125 CFLAGS=""
3126 cat >conftest.$ac_ext <<_ACEOF
3127 /* confdefs.h. */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3132
3133 int
3134 main ()
3135 {
3136
3137 ;
3138 return 0;
3139 }
3140 _ACEOF
3141 rm -f conftest.$ac_objext
3142 if { (ac_try="$ac_compile"
3143 case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146 esac
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } && {
3155 test -z "$ac_c_werror_flag" ||
3156 test ! -s conftest.err
3157 } && test -s conftest.$ac_objext; then
3158 :
3159 else
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3162
3163 ac_c_werror_flag=$ac_save_c_werror_flag
3164 CFLAGS="-g"
3165 cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h. */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3171
3172 int
3173 main ()
3174 {
3175
3176 ;
3177 return 0;
3178 }
3179 _ACEOF
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3182 case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3188 ac_status=$?
3189 grep -v '^ *+' conftest.er1 >conftest.err
3190 rm -f conftest.er1
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } && {
3194 test -z "$ac_c_werror_flag" ||
3195 test ! -s conftest.err
3196 } && test -s conftest.$ac_objext; then
3197 ac_cv_prog_cc_g=yes
3198 else
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3201
3202
3203 fi
3204
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 fi
3207
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 fi
3210
3211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 ac_c_werror_flag=$ac_save_c_werror_flag
3213 fi
3214 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3215 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3216 if test "$ac_test_CFLAGS" = set; then
3217 CFLAGS=$ac_save_CFLAGS
3218 elif test $ac_cv_prog_cc_g = yes; then
3219 if test "$GCC" = yes; then
3220 CFLAGS="-g -O2"
3221 else
3222 CFLAGS="-g"
3223 fi
3224 else
3225 if test "$GCC" = yes; then
3226 CFLAGS="-O2"
3227 else
3228 CFLAGS=
3229 fi
3230 fi
3231 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3232 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3233 if test "${ac_cv_prog_cc_c89+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236 ac_cv_prog_cc_c89=no
3237 ac_save_CC=$CC
3238 cat >conftest.$ac_ext <<_ACEOF
3239 /* confdefs.h. */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3244 #include <stdarg.h>
3245 #include <stdio.h>
3246 #include <sys/types.h>
3247 #include <sys/stat.h>
3248 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3249 struct buf { int x; };
3250 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3251 static char *e (p, i)
3252 char **p;
3253 int i;
3254 {
3255 return p[i];
3256 }
3257 static char *f (char * (*g) (char **, int), char **p, ...)
3258 {
3259 char *s;
3260 va_list v;
3261 va_start (v,p);
3262 s = g (p, va_arg (v,int));
3263 va_end (v);
3264 return s;
3265 }
3266
3267 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3268 function prototypes and stuff, but not '\xHH' hex character constants.
3269 These don't provoke an error unfortunately, instead are silently treated
3270 as 'x'. The following induces an error, until -std is added to get
3271 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3272 array size at least. It's necessary to write '\x00'==0 to get something
3273 that's true only with -std. */
3274 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3275
3276 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3277 inside strings and character constants. */
3278 #define FOO(x) 'x'
3279 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3280
3281 int test (int i, double x);
3282 struct s1 {int (*f) (int a);};
3283 struct s2 {int (*f) (double a);};
3284 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3285 int argc;
3286 char **argv;
3287 int
3288 main ()
3289 {
3290 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3291 ;
3292 return 0;
3293 }
3294 _ACEOF
3295 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3296 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3297 do
3298 CC="$ac_save_CC $ac_arg"
3299 rm -f conftest.$ac_objext
3300 if { (ac_try="$ac_compile"
3301 case "(($ac_try" in
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3304 esac
3305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306 (eval "$ac_compile") 2>conftest.er1
3307 ac_status=$?
3308 grep -v '^ *+' conftest.er1 >conftest.err
3309 rm -f conftest.er1
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } && {
3313 test -z "$ac_c_werror_flag" ||
3314 test ! -s conftest.err
3315 } && test -s conftest.$ac_objext; then
3316 ac_cv_prog_cc_c89=$ac_arg
3317 else
3318 echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3320
3321
3322 fi
3323
3324 rm -f core conftest.err conftest.$ac_objext
3325 test "x$ac_cv_prog_cc_c89" != "xno" && break
3326 done
3327 rm -f conftest.$ac_ext
3328 CC=$ac_save_CC
3329
3330 fi
3331 # AC_CACHE_VAL
3332 case "x$ac_cv_prog_cc_c89" in
3333 x)
3334 { echo "$as_me:$LINENO: result: none needed" >&5
3335 echo "${ECHO_T}none needed" >&6; } ;;
3336 xno)
3337 { echo "$as_me:$LINENO: result: unsupported" >&5
3338 echo "${ECHO_T}unsupported" >&6; } ;;
3339 *)
3340 CC="$CC $ac_cv_prog_cc_c89"
3341 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3342 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3343 esac
3344
3345
3346 ac_ext=c
3347 ac_cpp='$CPP $CPPFLAGS'
3348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351
3352 depcc="$CC" am_compiler_list=
3353
3354 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3355 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3356 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3360 # We make a subdir and do the tests there. Otherwise we can end up
3361 # making bogus files that we don't know about and never remove. For
3362 # instance it was reported that on HP-UX the gcc test will end up
3363 # making a dummy file named `D' -- because `-MD' means `put the output
3364 # in D'.
3365 mkdir conftest.dir
3366 # Copy depcomp to subdir because otherwise we won't find it if we're
3367 # using a relative directory.
3368 cp "$am_depcomp" conftest.dir
3369 cd conftest.dir
3370 # We will build objects and dependencies in a subdirectory because
3371 # it helps to detect inapplicable dependency modes. For instance
3372 # both Tru64's cc and ICC support -MD to output dependencies as a
3373 # side effect of compilation, but ICC will put the dependencies in
3374 # the current directory while Tru64 will put them in the object
3375 # directory.
3376 mkdir sub
3377
3378 am_cv_CC_dependencies_compiler_type=none
3379 if test "$am_compiler_list" = ""; then
3380 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3381 fi
3382 for depmode in $am_compiler_list; do
3383 # Setup a source with many dependencies, because some compilers
3384 # like to wrap large dependency lists on column 80 (with \), and
3385 # we should not choose a depcomp mode which is confused by this.
3386 #
3387 # We need to recreate these files for each test, as the compiler may
3388 # overwrite some of them when testing with obscure command lines.
3389 # This happens at least with the AIX C compiler.
3390 : > sub/conftest.c
3391 for i in 1 2 3 4 5 6; do
3392 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3393 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3394 # Solaris 8's {/usr,}/bin/sh.
3395 touch sub/conftst$i.h
3396 done
3397 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3398
3399 case $depmode in
3400 nosideeffect)
3401 # after this tag, mechanisms are not by side-effect, so they'll
3402 # only be used when explicitly requested
3403 if test "x$enable_dependency_tracking" = xyes; then
3404 continue
3405 else
3406 break
3407 fi
3408 ;;
3409 none) break ;;
3410 esac
3411 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3412 # mode. It turns out that the SunPro C++ compiler does not properly
3413 # handle `-M -o', and we need to detect this.
3414 if depmode=$depmode \
3415 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3416 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3417 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3418 >/dev/null 2>conftest.err &&
3419 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3420 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3421 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3422 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3423 # icc doesn't choke on unknown options, it will just issue warnings
3424 # or remarks (even with -Werror). So we grep stderr for any message
3425 # that says an option was ignored or not supported.
3426 # When given -MP, icc 7.0 and 7.1 complain thusly:
3427 # icc: Command line warning: ignoring option '-M'; no argument required
3428 # The diagnosis changed in icc 8.0:
3429 # icc: Command line remark: option '-MP' not supported
3430 if (grep 'ignoring option' conftest.err ||
3431 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3432 am_cv_CC_dependencies_compiler_type=$depmode
3433 break
3434 fi
3435 fi
3436 done
3437
3438 cd ..
3439 rm -rf conftest.dir
3440 else
3441 am_cv_CC_dependencies_compiler_type=none
3442 fi
3443
3444 fi
3445 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3446 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3447 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3448
3449 if
3450 test "x$enable_dependency_tracking" != xno \
3451 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3452 am__fastdepCC_TRUE=
3453 am__fastdepCC_FALSE='#'
3454 else
3455 am__fastdepCC_TRUE='#'
3456 am__fastdepCC_FALSE=
3457 fi
3458
3459
3460 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3461 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3462 if test "${ac_cv_prog_cc_c99+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465 ac_cv_prog_cc_c99=no
3466 ac_save_CC=$CC
3467 cat >conftest.$ac_ext <<_ACEOF
3468 /* confdefs.h. */
3469 _ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h. */
3473 #include <stdarg.h>
3474 #include <stdbool.h>
3475 #include <stdlib.h>
3476 #include <wchar.h>
3477 #include <stdio.h>
3478
3479 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3480 #define debug(...) fprintf (stderr, __VA_ARGS__)
3481 #define showlist(...) puts (#__VA_ARGS__)
3482 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3483 static void
3484 test_varargs_macros (void)
3485 {
3486 int x = 1234;
3487 int y = 5678;
3488 debug ("Flag");
3489 debug ("X = %d\n", x);
3490 showlist (The first, second, and third items.);
3491 report (x>y, "x is %d but y is %d", x, y);
3492 }
3493
3494 // Check long long types.
3495 #define BIG64 18446744073709551615ull
3496 #define BIG32 4294967295ul
3497 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3498 #if !BIG_OK
3499 your preprocessor is broken;
3500 #endif
3501 #if BIG_OK
3502 #else
3503 your preprocessor is broken;
3504 #endif
3505 static long long int bignum = -9223372036854775807LL;
3506 static unsigned long long int ubignum = BIG64;
3507
3508 struct incomplete_array
3509 {
3510 int datasize;
3511 double data[];
3512 };
3513
3514 struct named_init {
3515 int number;
3516 const wchar_t *name;
3517 double average;
3518 };
3519
3520 typedef const char *ccp;
3521
3522 static inline int
3523 test_restrict (ccp restrict text)
3524 {
3525 // See if C++-style comments work.
3526 // Iterate through items via the restricted pointer.
3527 // Also check for declarations in for loops.
3528 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3529 continue;
3530 return 0;
3531 }
3532
3533 // Check varargs and va_copy.
3534 static void
3535 test_varargs (const char *format, ...)
3536 {
3537 va_list args;
3538 va_start (args, format);
3539 va_list args_copy;
3540 va_copy (args_copy, args);
3541
3542 const char *str;
3543 int number;
3544 float fnumber;
3545
3546 while (*format)
3547 {
3548 switch (*format++)
3549 {
3550 case 's': // string
3551 str = va_arg (args_copy, const char *);
3552 break;
3553 case 'd': // int
3554 number = va_arg (args_copy, int);
3555 break;
3556 case 'f': // float
3557 fnumber = va_arg (args_copy, double);
3558 break;
3559 default:
3560 break;
3561 }
3562 }
3563 va_end (args_copy);
3564 va_end (args);
3565 }
3566
3567 int
3568 main ()
3569 {
3570
3571 // Check bool.
3572 _Bool success = false;
3573
3574 // Check restrict.
3575 if (test_restrict ("String literal") == 0)
3576 success = true;
3577 char *restrict newvar = "Another string";
3578
3579 // Check varargs.
3580 test_varargs ("s, d' f .", "string", 65, 34.234);
3581 test_varargs_macros ();
3582
3583 // Check flexible array members.
3584 struct incomplete_array *ia =
3585 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3586 ia->datasize = 10;
3587 for (int i = 0; i < ia->datasize; ++i)
3588 ia->data[i] = i * 1.234;
3589
3590 // Check named initializers.
3591 struct named_init ni = {
3592 .number = 34,
3593 .name = L"Test wide string",
3594 .average = 543.34343,
3595 };
3596
3597 ni.number = 58;
3598
3599 int dynamic_array[ni.number];
3600 dynamic_array[ni.number - 1] = 543;
3601
3602 // work around unused variable warnings
3603 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3604 || dynamic_array[ni.number - 1] != 543);
3605
3606 ;
3607 return 0;
3608 }
3609 _ACEOF
3610 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3611 do
3612 CC="$ac_save_CC $ac_arg"
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3615 case "(($ac_try" in
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3618 esac
3619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620 (eval "$ac_compile") 2>conftest.er1
3621 ac_status=$?
3622 grep -v '^ *+' conftest.er1 >conftest.err
3623 rm -f conftest.er1
3624 cat conftest.err >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } && {
3627 test -z "$ac_c_werror_flag" ||
3628 test ! -s conftest.err
3629 } && test -s conftest.$ac_objext; then
3630 ac_cv_prog_cc_c99=$ac_arg
3631 else
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635
3636 fi
3637
3638 rm -f core conftest.err conftest.$ac_objext
3639 test "x$ac_cv_prog_cc_c99" != "xno" && break
3640 done
3641 rm -f conftest.$ac_ext
3642 CC=$ac_save_CC
3643
3644 fi
3645 # AC_CACHE_VAL
3646 case "x$ac_cv_prog_cc_c99" in
3647 x)
3648 { echo "$as_me:$LINENO: result: none needed" >&5
3649 echo "${ECHO_T}none needed" >&6; } ;;
3650 xno)
3651 { echo "$as_me:$LINENO: result: unsupported" >&5
3652 echo "${ECHO_T}unsupported" >&6; } ;;
3653 *)
3654 CC="$CC $ac_cv_prog_cc_c99"
3655 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3656 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3657 esac
3658
3659
3660
3661
3662 ac_ext=c
3663 ac_cpp='$CPP $CPPFLAGS'
3664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3668 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3669 # On Suns, sometimes $CPP names a directory.
3670 if test -n "$CPP" && test -d "$CPP"; then
3671 CPP=
3672 fi
3673 if test -z "$CPP"; then
3674 if test "${ac_cv_prog_CPP+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677 # Double quotes because CPP needs to be expanded
3678 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3679 do
3680 ac_preproc_ok=false
3681 for ac_c_preproc_warn_flag in '' yes
3682 do
3683 # Use a header file that comes with gcc, so configuring glibc
3684 # with a fresh cross-compiler works.
3685 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3686 # <limits.h> exists even on freestanding compilers.
3687 # On the NeXT, cc -E runs the code through the compiler's parser,
3688 # not just through cpp. "Syntax error" is here to catch this case.
3689 cat >conftest.$ac_ext <<_ACEOF
3690 /* confdefs.h. */
3691 _ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h. */
3695 #ifdef __STDC__
3696 # include <limits.h>
3697 #else
3698 # include <assert.h>
3699 #endif
3700 Syntax error
3701 _ACEOF
3702 if { (ac_try="$ac_cpp conftest.$ac_ext"
3703 case "(($ac_try" in
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3706 esac
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3709 ac_status=$?
3710 grep -v '^ *+' conftest.er1 >conftest.err
3711 rm -f conftest.er1
3712 cat conftest.err >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } >/dev/null && {
3715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3716 test ! -s conftest.err
3717 }; then
3718 :
3719 else
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3722
3723 # Broken: fails on valid input.
3724 continue
3725 fi
3726
3727 rm -f conftest.err conftest.$ac_ext
3728
3729 # OK, works on sane cases. Now check whether nonexistent headers
3730 # can be detected and how.
3731 cat >conftest.$ac_ext <<_ACEOF
3732 /* confdefs.h. */
3733 _ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3737 #include <ac_nonexistent.h>
3738 _ACEOF
3739 if { (ac_try="$ac_cpp conftest.$ac_ext"
3740 case "(($ac_try" in
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3743 esac
3744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3746 ac_status=$?
3747 grep -v '^ *+' conftest.er1 >conftest.err
3748 rm -f conftest.er1
3749 cat conftest.err >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } >/dev/null && {
3752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3753 test ! -s conftest.err
3754 }; then
3755 # Broken: success on invalid input.
3756 continue
3757 else
3758 echo "$as_me: failed program was:" >&5
3759 sed 's/^/| /' conftest.$ac_ext >&5
3760
3761 # Passes both tests.
3762 ac_preproc_ok=:
3763 break
3764 fi
3765
3766 rm -f conftest.err conftest.$ac_ext
3767
3768 done
3769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3770 rm -f conftest.err conftest.$ac_ext
3771 if $ac_preproc_ok; then
3772 break
3773 fi
3774
3775 done
3776 ac_cv_prog_CPP=$CPP
3777
3778 fi
3779 CPP=$ac_cv_prog_CPP
3780 else
3781 ac_cv_prog_CPP=$CPP
3782 fi
3783 { echo "$as_me:$LINENO: result: $CPP" >&5
3784 echo "${ECHO_T}$CPP" >&6; }
3785 ac_preproc_ok=false
3786 for ac_c_preproc_warn_flag in '' yes
3787 do
3788 # Use a header file that comes with gcc, so configuring glibc
3789 # with a fresh cross-compiler works.
3790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3791 # <limits.h> exists even on freestanding compilers.
3792 # On the NeXT, cc -E runs the code through the compiler's parser,
3793 # not just through cpp. "Syntax error" is here to catch this case.
3794 cat >conftest.$ac_ext <<_ACEOF
3795 /* confdefs.h. */
3796 _ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3800 #ifdef __STDC__
3801 # include <limits.h>
3802 #else
3803 # include <assert.h>
3804 #endif
3805 Syntax error
3806 _ACEOF
3807 if { (ac_try="$ac_cpp conftest.$ac_ext"
3808 case "(($ac_try" in
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3811 esac
3812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3814 ac_status=$?
3815 grep -v '^ *+' conftest.er1 >conftest.err
3816 rm -f conftest.er1
3817 cat conftest.err >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } >/dev/null && {
3820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3821 test ! -s conftest.err
3822 }; then
3823 :
3824 else
3825 echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.$ac_ext >&5
3827
3828 # Broken: fails on valid input.
3829 continue
3830 fi
3831
3832 rm -f conftest.err conftest.$ac_ext
3833
3834 # OK, works on sane cases. Now check whether nonexistent headers
3835 # can be detected and how.
3836 cat >conftest.$ac_ext <<_ACEOF
3837 /* confdefs.h. */
3838 _ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h. */
3842 #include <ac_nonexistent.h>
3843 _ACEOF
3844 if { (ac_try="$ac_cpp conftest.$ac_ext"
3845 case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848 esac
3849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3851 ac_status=$?
3852 grep -v '^ *+' conftest.er1 >conftest.err
3853 rm -f conftest.er1
3854 cat conftest.err >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } >/dev/null && {
3857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3858 test ! -s conftest.err
3859 }; then
3860 # Broken: success on invalid input.
3861 continue
3862 else
3863 echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3865
3866 # Passes both tests.
3867 ac_preproc_ok=:
3868 break
3869 fi
3870
3871 rm -f conftest.err conftest.$ac_ext
3872
3873 done
3874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3875 rm -f conftest.err conftest.$ac_ext
3876 if $ac_preproc_ok; then
3877 :
3878 else
3879 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3880 See \`config.log' for more details." >&5
3881 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3882 See \`config.log' for more details." >&2;}
3883 { (exit 1); exit 1; }; }
3884 fi
3885
3886 ac_ext=c
3887 ac_cpp='$CPP $CPPFLAGS'
3888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891
3892
3893 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3894 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3895 if test "${ac_cv_path_GREP+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 else
3898 # Extract the first word of "grep ggrep" to use in msg output
3899 if test -z "$GREP"; then
3900 set dummy grep ggrep; ac_prog_name=$2
3901 if test "${ac_cv_path_GREP+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904 ac_path_GREP_found=false
3905 # Loop through the user's path and test for each of PROGNAME-LIST
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3908 do
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_prog in grep ggrep; do
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3914 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3915 # Check for GNU ac_path_GREP and select it if it is found.
3916 # Check for GNU $ac_path_GREP
3917 case `"$ac_path_GREP" --version 2>&1` in
3918 *GNU*)
3919 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3920 *)
3921 ac_count=0
3922 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3923 while :
3924 do
3925 cat "conftest.in" "conftest.in" >"conftest.tmp"
3926 mv "conftest.tmp" "conftest.in"
3927 cp "conftest.in" "conftest.nl"
3928 echo 'GREP' >> "conftest.nl"
3929 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3930 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3931 ac_count=`expr $ac_count + 1`
3932 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3933 # Best one so far, save it but keep looking for a better one
3934 ac_cv_path_GREP="$ac_path_GREP"
3935 ac_path_GREP_max=$ac_count
3936 fi
3937 # 10*(2^10) chars as input seems more than enough
3938 test $ac_count -gt 10 && break
3939 done
3940 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3941 esac
3942
3943
3944 $ac_path_GREP_found && break 3
3945 done
3946 done
3947
3948 done
3949 IFS=$as_save_IFS
3950
3951
3952 fi
3953
3954 GREP="$ac_cv_path_GREP"
3955 if test -z "$GREP"; then
3956 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3957 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3958 { (exit 1); exit 1; }; }
3959 fi
3960
3961 else
3962 ac_cv_path_GREP=$GREP
3963 fi
3964
3965
3966 fi
3967 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3968 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3969 GREP="$ac_cv_path_GREP"
3970
3971
3972 { echo "$as_me:$LINENO: checking for egrep" >&5
3973 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3974 if test "${ac_cv_path_EGREP+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3978 then ac_cv_path_EGREP="$GREP -E"
3979 else
3980 # Extract the first word of "egrep" to use in msg output
3981 if test -z "$EGREP"; then
3982 set dummy egrep; ac_prog_name=$2
3983 if test "${ac_cv_path_EGREP+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986 ac_path_EGREP_found=false
3987 # Loop through the user's path and test for each of PROGNAME-LIST
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3990 do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_prog in egrep; do
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3996 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3997 # Check for GNU ac_path_EGREP and select it if it is found.
3998 # Check for GNU $ac_path_EGREP
3999 case `"$ac_path_EGREP" --version 2>&1` in
4000 *GNU*)
4001 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4002 *)
4003 ac_count=0
4004 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4005 while :
4006 do
4007 cat "conftest.in" "conftest.in" >"conftest.tmp"
4008 mv "conftest.tmp" "conftest.in"
4009 cp "conftest.in" "conftest.nl"
4010 echo 'EGREP' >> "conftest.nl"
4011 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4012 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4013 ac_count=`expr $ac_count + 1`
4014 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4015 # Best one so far, save it but keep looking for a better one
4016 ac_cv_path_EGREP="$ac_path_EGREP"
4017 ac_path_EGREP_max=$ac_count
4018 fi
4019 # 10*(2^10) chars as input seems more than enough
4020 test $ac_count -gt 10 && break
4021 done
4022 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4023 esac
4024
4025
4026 $ac_path_EGREP_found && break 3
4027 done
4028 done
4029
4030 done
4031 IFS=$as_save_IFS
4032
4033
4034 fi
4035
4036 EGREP="$ac_cv_path_EGREP"
4037 if test -z "$EGREP"; then
4038 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4039 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4040 { (exit 1); exit 1; }; }
4041 fi
4042
4043 else
4044 ac_cv_path_EGREP=$EGREP
4045 fi
4046
4047
4048 fi
4049 fi
4050 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4051 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4052 EGREP="$ac_cv_path_EGREP"
4053
4054
4055 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4056 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4057 if test "${ac_cv_header_stdc+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060 cat >conftest.$ac_ext <<_ACEOF
4061 /* confdefs.h. */
4062 _ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4066 #include <stdlib.h>
4067 #include <stdarg.h>
4068 #include <string.h>
4069 #include <float.h>
4070
4071 int
4072 main ()
4073 {
4074
4075 ;
4076 return 0;
4077 }
4078 _ACEOF
4079 rm -f conftest.$ac_objext
4080 if { (ac_try="$ac_compile"
4081 case "(($ac_try" in
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4084 esac
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086 (eval "$ac_compile") 2>conftest.er1
4087 ac_status=$?
4088 grep -v '^ *+' conftest.er1 >conftest.err
4089 rm -f conftest.er1
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } && {
4093 test -z "$ac_c_werror_flag" ||
4094 test ! -s conftest.err
4095 } && test -s conftest.$ac_objext; then
4096 ac_cv_header_stdc=yes
4097 else
4098 echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4100
4101 ac_cv_header_stdc=no
4102 fi
4103
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105
4106 if test $ac_cv_header_stdc = yes; then
4107 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4108 cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h. */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4114 #include <string.h>
4115
4116 _ACEOF
4117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4118 $EGREP "memchr" >/dev/null 2>&1; then
4119 :
4120 else
4121 ac_cv_header_stdc=no
4122 fi
4123 rm -f -r conftest*
4124
4125 fi
4126
4127 if test $ac_cv_header_stdc = yes; then
4128 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4129 cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h. */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4135 #include <stdlib.h>
4136
4137 _ACEOF
4138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4139 $EGREP "free" >/dev/null 2>&1; then
4140 :
4141 else
4142 ac_cv_header_stdc=no
4143 fi
4144 rm -f -r conftest*
4145
4146 fi
4147
4148 if test $ac_cv_header_stdc = yes; then
4149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4150 if test "$cross_compiling" = yes; then
4151 :
4152 else
4153 cat >conftest.$ac_ext <<_ACEOF
4154 /* confdefs.h. */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4159 #include <ctype.h>
4160 #include <stdlib.h>
4161 #if ((' ' & 0x0FF) == 0x020)
4162 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4163 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4164 #else
4165 # define ISLOWER(c) \
4166 (('a' <= (c) && (c) <= 'i') \
4167 || ('j' <= (c) && (c) <= 'r') \
4168 || ('s' <= (c) && (c) <= 'z'))
4169 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4170 #endif
4171
4172 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4173 int
4174 main ()
4175 {
4176 int i;
4177 for (i = 0; i < 256; i++)
4178 if (XOR (islower (i), ISLOWER (i))
4179 || toupper (i) != TOUPPER (i))
4180 return 2;
4181 return 0;
4182 }
4183 _ACEOF
4184 rm -f conftest$ac_exeext
4185 if { (ac_try="$ac_link"
4186 case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189 esac
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_link") 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4195 { (case "(($ac_try" in
4196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197 *) ac_try_echo=$ac_try;;
4198 esac
4199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4200 (eval "$ac_try") 2>&5
4201 ac_status=$?
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; }; then
4204 :
4205 else
4206 echo "$as_me: program exited with status $ac_status" >&5
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4209
4210 ( exit $ac_status )
4211 ac_cv_header_stdc=no
4212 fi
4213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4214 fi
4215
4216
4217 fi
4218 fi
4219 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4220 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4221 if test $ac_cv_header_stdc = yes; then
4222
4223 cat >>confdefs.h <<\_ACEOF
4224 #define STDC_HEADERS 1
4225 _ACEOF
4226
4227 fi
4228
4229 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4240 inttypes.h stdint.h unistd.h
4241 do
4242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248 cat >conftest.$ac_ext <<_ACEOF
4249 /* confdefs.h. */
4250 _ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h. */
4254 $ac_includes_default
4255
4256 #include <$ac_header>
4257 _ACEOF
4258 rm -f conftest.$ac_objext
4259 if { (ac_try="$ac_compile"
4260 case "(($ac_try" in
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4263 esac
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_compile") 2>conftest.er1
4266 ac_status=$?
4267 grep -v '^ *+' conftest.er1 >conftest.err
4268 rm -f conftest.er1
4269 cat conftest.err >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } && {
4272 test -z "$ac_c_werror_flag" ||
4273 test ! -s conftest.err
4274 } && test -s conftest.$ac_objext; then
4275 eval "$as_ac_Header=yes"
4276 else
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4279
4280 eval "$as_ac_Header=no"
4281 fi
4282
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 fi
4285 ac_res=`eval echo '${'$as_ac_Header'}'`
4286 { echo "$as_me:$LINENO: result: $ac_res" >&5
4287 echo "${ECHO_T}$ac_res" >&6; }
4288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4289 cat >>confdefs.h <<_ACEOF
4290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4291 _ACEOF
4292
4293 fi
4294
4295 done
4296
4297
4298
4299
4300 { echo "$as_me:$LINENO: checking whether __clang__ is declared" >&5
4301 echo $ECHO_N "checking whether __clang__ is declared... $ECHO_C" >&6; }
4302 if test "${ac_cv_have_decl___clang__+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4304 else
4305 cat >conftest.$ac_ext <<_ACEOF
4306 /* confdefs.h. */
4307 _ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4311 $ac_includes_default
4312 int
4313 main ()
4314 {
4315 #ifndef __clang__
4316 (void) __clang__;
4317 #endif
4318
4319 ;
4320 return 0;
4321 }
4322 _ACEOF
4323 rm -f conftest.$ac_objext
4324 if { (ac_try="$ac_compile"
4325 case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4328 esac
4329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330 (eval "$ac_compile") 2>conftest.er1
4331 ac_status=$?
4332 grep -v '^ *+' conftest.er1 >conftest.err
4333 rm -f conftest.er1
4334 cat conftest.err >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } && {
4337 test -z "$ac_c_werror_flag" ||
4338 test ! -s conftest.err
4339 } && test -s conftest.$ac_objext; then
4340 ac_cv_have_decl___clang__=yes
4341 else
4342 echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4344
4345 ac_cv_have_decl___clang__=no
4346 fi
4347
4348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349 fi
4350 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___clang__" >&5
4351 echo "${ECHO_T}$ac_cv_have_decl___clang__" >&6; }
4352 if test $ac_cv_have_decl___clang__ = yes; then
4353 CLANGCC="yes"
4354 else
4355 CLANGCC="no"
4356 fi
4357
4358 { echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
4359 echo $ECHO_N "checking whether __INTEL_COMPILER is declared... $ECHO_C" >&6; }
4360 if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 else
4363 cat >conftest.$ac_ext <<_ACEOF
4364 /* confdefs.h. */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4369 $ac_includes_default
4370 int
4371 main ()
4372 {
4373 #ifndef __INTEL_COMPILER
4374 (void) __INTEL_COMPILER;
4375 #endif
4376
4377 ;
4378 return 0;
4379 }
4380 _ACEOF
4381 rm -f conftest.$ac_objext
4382 if { (ac_try="$ac_compile"
4383 case "(($ac_try" in
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4386 esac
4387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388 (eval "$ac_compile") 2>conftest.er1
4389 ac_status=$?
4390 grep -v '^ *+' conftest.er1 >conftest.err
4391 rm -f conftest.er1
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } && {
4395 test -z "$ac_c_werror_flag" ||
4396 test ! -s conftest.err
4397 } && test -s conftest.$ac_objext; then
4398 ac_cv_have_decl___INTEL_COMPILER=yes
4399 else
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4402
4403 ac_cv_have_decl___INTEL_COMPILER=no
4404 fi
4405
4406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407 fi
4408 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
4409 echo "${ECHO_T}$ac_cv_have_decl___INTEL_COMPILER" >&6; }
4410 if test $ac_cv_have_decl___INTEL_COMPILER = yes; then
4411 INTELCC="yes"
4412 else
4413 INTELCC="no"
4414 fi
4415
4416 { echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4417 echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6; }
4418 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 else
4421 cat >conftest.$ac_ext <<_ACEOF
4422 /* confdefs.h. */
4423 _ACEOF
4424 cat confdefs.h >>conftest.$ac_ext
4425 cat >>conftest.$ac_ext <<_ACEOF
4426 /* end confdefs.h. */
4427 $ac_includes_default
4428 int
4429 main ()
4430 {
4431 #ifndef __SUNPRO_C
4432 (void) __SUNPRO_C;
4433 #endif
4434
4435 ;
4436 return 0;
4437 }
4438 _ACEOF
4439 rm -f conftest.$ac_objext
4440 if { (ac_try="$ac_compile"
4441 case "(($ac_try" in
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4444 esac
4445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4446 (eval "$ac_compile") 2>conftest.er1
4447 ac_status=$?
4448 grep -v '^ *+' conftest.er1 >conftest.err
4449 rm -f conftest.er1
4450 cat conftest.err >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } && {
4453 test -z "$ac_c_werror_flag" ||
4454 test ! -s conftest.err
4455 } && test -s conftest.$ac_objext; then
4456 ac_cv_have_decl___SUNPRO_C=yes
4457 else
4458 echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.$ac_ext >&5
4460
4461 ac_cv_have_decl___SUNPRO_C=no
4462 fi
4463
4464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4465 fi
4466 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4467 echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6; }
4468 if test $ac_cv_have_decl___SUNPRO_C = yes; then
4469 SUNCC="yes"
4470 else
4471 SUNCC="no"
4472 fi
4473
4474
4475
4476
4477
4478
4479
4480
4481 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4482 if test -n "$ac_tool_prefix"; then
4483 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4484 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4487 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 else
4490 case $PKG_CONFIG in
4491 [\\/]* | ?:[\\/]*)
4492 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4493 ;;
4494 *)
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4497 do
4498 IFS=$as_save_IFS
4499 test -z "$as_dir" && as_dir=.
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4504 break 2
4505 fi
4506 done
4507 done
4508 IFS=$as_save_IFS
4509
4510 ;;
4511 esac
4512 fi
4513 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4514 if test -n "$PKG_CONFIG"; then
4515 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4516 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4517 else
4518 { echo "$as_me:$LINENO: result: no" >&5
4519 echo "${ECHO_T}no" >&6; }
4520 fi
4521
4522
4523 fi
4524 if test -z "$ac_cv_path_PKG_CONFIG"; then
4525 ac_pt_PKG_CONFIG=$PKG_CONFIG
4526 # Extract the first word of "pkg-config", so it can be a program name with args.
4527 set dummy pkg-config; ac_word=$2
4528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4530 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533 case $ac_pt_PKG_CONFIG in
4534 [\\/]* | ?:[\\/]*)
4535 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4536 ;;
4537 *)
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH
4540 do
4541 IFS=$as_save_IFS
4542 test -z "$as_dir" && as_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4545 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 break 2
4548 fi
4549 done
4550 done
4551 IFS=$as_save_IFS
4552
4553 ;;
4554 esac
4555 fi
4556 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4557 if test -n "$ac_pt_PKG_CONFIG"; then
4558 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4559 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4560 else
4561 { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4563 fi
4564
4565 if test "x$ac_pt_PKG_CONFIG" = x; then
4566 PKG_CONFIG=""
4567 else
4568 case $cross_compiling:$ac_tool_warned in
4569 yes:)
4570 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4571 whose name does not start with the host triplet. If you think this
4572 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
4573 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4574 whose name does not start with the host triplet. If you think this
4575 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
4576 ac_tool_warned=yes ;;
4577 esac
4578 PKG_CONFIG=$ac_pt_PKG_CONFIG
4579 fi
4580 else
4581 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4582 fi
4583
4584 fi
4585 if test -n "$PKG_CONFIG"; then
4586 _pkg_min_version=0.9.0
4587 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4588 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4589 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4590 { echo "$as_me:$LINENO: result: yes" >&5
4591 echo "${ECHO_T}yes" >&6; }
4592 else
4593 { echo "$as_me:$LINENO: result: no" >&5
4594 echo "${ECHO_T}no" >&6; }
4595 PKG_CONFIG=""
4596 fi
4597 fi
4598 # Make sure we can run config.sub.
4599 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4600 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4601 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4602 { (exit 1); exit 1; }; }
4603
4604 { echo "$as_me:$LINENO: checking build system type" >&5
4605 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4606 if test "${ac_cv_build+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609 ac_build_alias=$build_alias
4610 test "x$ac_build_alias" = x &&
4611 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4612 test "x$ac_build_alias" = x &&
4613 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4614 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4615 { (exit 1); exit 1; }; }
4616 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4617 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4618 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4619 { (exit 1); exit 1; }; }
4620
4621 fi
4622 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4623 echo "${ECHO_T}$ac_cv_build" >&6; }
4624 case $ac_cv_build in
4625 *-*-*) ;;
4626 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4627 echo "$as_me: error: invalid value of canonical build" >&2;}
4628 { (exit 1); exit 1; }; };;
4629 esac
4630 build=$ac_cv_build
4631 ac_save_IFS=$IFS; IFS='-'
4632 set x $ac_cv_build
4633 shift
4634 build_cpu=$1
4635 build_vendor=$2
4636 shift; shift
4637 # Remember, the first character of IFS is used to create $*,
4638 # except with old shells:
4639 build_os=$*
4640 IFS=$ac_save_IFS
4641 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4642
4643
4644 { echo "$as_me:$LINENO: checking host system type" >&5
4645 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4646 if test "${ac_cv_host+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649 if test "x$host_alias" = x; then
4650 ac_cv_host=$ac_cv_build
4651 else
4652 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4653 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4654 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4655 { (exit 1); exit 1; }; }
4656 fi
4657
4658 fi
4659 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4660 echo "${ECHO_T}$ac_cv_host" >&6; }
4661 case $ac_cv_host in
4662 *-*-*) ;;
4663 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4664 echo "$as_me: error: invalid value of canonical host" >&2;}
4665 { (exit 1); exit 1; }; };;
4666 esac
4667 host=$ac_cv_host
4668 ac_save_IFS=$IFS; IFS='-'
4669 set x $ac_cv_host
4670 shift
4671 host_cpu=$1
4672 host_vendor=$2
4673 shift; shift
4674 # Remember, the first character of IFS is used to create $*,
4675 # except with old shells:
4676 host_os=$*
4677 IFS=$ac_save_IFS
4678 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4679
4680
4681 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4682 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4683 if test "${ac_cv_path_SED+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4687 for ac_i in 1 2 3 4 5 6 7; do
4688 ac_script="$ac_script$as_nl$ac_script"
4689 done
4690 echo "$ac_script" | sed 99q >conftest.sed
4691 $as_unset ac_script || ac_script=
4692 # Extract the first word of "sed gsed" to use in msg output
4693 if test -z "$SED"; then
4694 set dummy sed gsed; ac_prog_name=$2
4695 if test "${ac_cv_path_SED+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698 ac_path_SED_found=false
4699 # Loop through the user's path and test for each of PROGNAME-LIST
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4702 do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_prog in sed gsed; do
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4708 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4709 # Check for GNU ac_path_SED and select it if it is found.
4710 # Check for GNU $ac_path_SED
4711 case `"$ac_path_SED" --version 2>&1` in
4712 *GNU*)
4713 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4714 *)
4715 ac_count=0
4716 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4717 while :
4718 do
4719 cat "conftest.in" "conftest.in" >"conftest.tmp"
4720 mv "conftest.tmp" "conftest.in"
4721 cp "conftest.in" "conftest.nl"
4722 echo '' >> "conftest.nl"
4723 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4724 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4725 ac_count=`expr $ac_count + 1`
4726 if test $ac_count -gt ${ac_path_SED_max-0}; then
4727 # Best one so far, save it but keep looking for a better one
4728 ac_cv_path_SED="$ac_path_SED"
4729 ac_path_SED_max=$ac_count
4730 fi
4731 # 10*(2^10) chars as input seems more than enough
4732 test $ac_count -gt 10 && break
4733 done
4734 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4735 esac
4736
4737
4738 $ac_path_SED_found && break 3
4739 done
4740 done
4741
4742 done
4743 IFS=$as_save_IFS
4744
4745
4746 fi
4747
4748 SED="$ac_cv_path_SED"
4749 if test -z "$SED"; then
4750 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4751 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4752 { (exit 1); exit 1; }; }
4753 fi
4754
4755 else
4756 ac_cv_path_SED=$SED
4757 fi
4758
4759 fi
4760 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4761 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4762 SED="$ac_cv_path_SED"
4763 rm -f conftest.sed
4764
4765
4766
4767
4768
4769
4770 # Check whether --enable-selective-werror was given.
4771 if test "${enable_selective_werror+set}" = set; then
4772 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4773 else
4774 SELECTIVE_WERROR=yes
4775 fi
4776
4777
4778 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4779 if test "x$SUNCC" = "xyes"; then
4780 BASE_CFLAGS="-v"
4781 else
4782 BASE_CFLAGS=""
4783 fi
4784
4785 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4786
4787
4788
4789
4790
4791 xorg_testset_save_CFLAGS="$CFLAGS"
4792
4793 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4795 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
4796 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
4797 cat >conftest.$ac_ext <<_ACEOF
4798 /* confdefs.h. */
4799 _ACEOF
4800 cat confdefs.h >>conftest.$ac_ext
4801 cat >>conftest.$ac_ext <<_ACEOF
4802 /* end confdefs.h. */
4803 int i;
4804 _ACEOF
4805 rm -f conftest.$ac_objext
4806 if { (ac_try="$ac_compile"
4807 case "(($ac_try" in
4808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4809 *) ac_try_echo=$ac_try;;
4810 esac
4811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4812 (eval "$ac_compile") 2>conftest.er1
4813 ac_status=$?
4814 grep -v '^ *+' conftest.er1 >conftest.err
4815 rm -f conftest.er1
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } && {
4819 test -z "$ac_c_werror_flag" ||
4820 test ! -s conftest.err
4821 } && test -s conftest.$ac_objext; then
4822 xorg_testset_unknown_warning_option=yes
4823 else
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4826
4827 xorg_testset_unknown_warning_option=no
4828 fi
4829
4830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
4832 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
4833 CFLAGS="$xorg_testset_save_CFLAGS"
4834 fi
4835
4836 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4837 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4839 fi
4840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4841 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
4842 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
4843 cat >conftest.$ac_ext <<_ACEOF
4844 /* confdefs.h. */
4845 _ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4849 int i;
4850 _ACEOF
4851 rm -f conftest.$ac_objext
4852 if { (ac_try="$ac_compile"
4853 case "(($ac_try" in
4854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855 *) ac_try_echo=$ac_try;;
4856 esac
4857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4858 (eval "$ac_compile") 2>conftest.er1
4859 ac_status=$?
4860 grep -v '^ *+' conftest.er1 >conftest.err
4861 rm -f conftest.er1
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } && {
4865 test -z "$ac_c_werror_flag" ||
4866 test ! -s conftest.err
4867 } && test -s conftest.$ac_objext; then
4868 xorg_testset_unused_command_line_argument=yes
4869 else
4870 echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4872
4873 xorg_testset_unused_command_line_argument=no
4874 fi
4875
4876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4877 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
4878 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
4879 CFLAGS="$xorg_testset_save_CFLAGS"
4880 fi
4881
4882 found="no"
4883
4884 if test $found = "no" ; then
4885 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4887 fi
4888
4889 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4891 fi
4892
4893 CFLAGS="$CFLAGS -Wall"
4894
4895 { echo "$as_me:$LINENO: checking if $CC supports -Wall" >&5
4896 echo $ECHO_N "checking if $CC supports -Wall... $ECHO_C" >&6; }
4897 cat >conftest.$ac_ext <<_ACEOF
4898 /* confdefs.h. */
4899 _ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4903 int i;
4904 int
4905 main ()
4906 {
4907
4908 ;
4909 return 0;
4910 }
4911 _ACEOF
4912 rm -f conftest.$ac_objext conftest$ac_exeext
4913 if { (ac_try="$ac_link"
4914 case "(($ac_try" in
4915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4916 *) ac_try_echo=$ac_try;;
4917 esac
4918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4919 (eval "$ac_link") 2>conftest.er1
4920 ac_status=$?
4921 grep -v '^ *+' conftest.er1 >conftest.err
4922 rm -f conftest.er1
4923 cat conftest.err >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); } && {
4926 test -z "$ac_c_werror_flag" ||
4927 test ! -s conftest.err
4928 } && test -s conftest$ac_exeext &&
4929 $as_test_x conftest$ac_exeext; then
4930 supported=yes
4931 else
4932 echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4934
4935 supported=no
4936 fi
4937
4938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4939 conftest$ac_exeext conftest.$ac_ext
4940 { echo "$as_me:$LINENO: result: $supported" >&5
4941 echo "${ECHO_T}$supported" >&6; }
4942 CFLAGS="$xorg_testset_save_CFLAGS"
4943
4944 if test "$supported" = "yes" ; then
4945 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4946 found="yes"
4947 fi
4948 fi
4949
4950
4951
4952
4953
4954
4955
4956 xorg_testset_save_CFLAGS="$CFLAGS"
4957
4958 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4960 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
4961 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
4962 cat >conftest.$ac_ext <<_ACEOF
4963 /* confdefs.h. */
4964 _ACEOF
4965 cat confdefs.h >>conftest.$ac_ext
4966 cat >>conftest.$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4968 int i;
4969 _ACEOF
4970 rm -f conftest.$ac_objext
4971 if { (ac_try="$ac_compile"
4972 case "(($ac_try" in
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4975 esac
4976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4977 (eval "$ac_compile") 2>conftest.er1
4978 ac_status=$?
4979 grep -v '^ *+' conftest.er1 >conftest.err
4980 rm -f conftest.er1
4981 cat conftest.err >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } && {
4984 test -z "$ac_c_werror_flag" ||
4985 test ! -s conftest.err
4986 } && test -s conftest.$ac_objext; then
4987 xorg_testset_unknown_warning_option=yes
4988 else
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4991
4992 xorg_testset_unknown_warning_option=no
4993 fi
4994
4995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4996 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
4997 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
4998 CFLAGS="$xorg_testset_save_CFLAGS"
4999 fi
5000
5001 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5002 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5004 fi
5005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5006 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5007 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5008 cat >conftest.$ac_ext <<_ACEOF
5009 /* confdefs.h. */
5010 _ACEOF
5011 cat confdefs.h >>conftest.$ac_ext
5012 cat >>conftest.$ac_ext <<_ACEOF
5013 /* end confdefs.h. */
5014 int i;
5015 _ACEOF
5016 rm -f conftest.$ac_objext
5017 if { (ac_try="$ac_compile"
5018 case "(($ac_try" in
5019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5020 *) ac_try_echo=$ac_try;;
5021 esac
5022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5023 (eval "$ac_compile") 2>conftest.er1
5024 ac_status=$?
5025 grep -v '^ *+' conftest.er1 >conftest.err
5026 rm -f conftest.er1
5027 cat conftest.err >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } && {
5030 test -z "$ac_c_werror_flag" ||
5031 test ! -s conftest.err
5032 } && test -s conftest.$ac_objext; then
5033 xorg_testset_unused_command_line_argument=yes
5034 else
5035 echo "$as_me: failed program was:" >&5
5036 sed 's/^/| /' conftest.$ac_ext >&5
5037
5038 xorg_testset_unused_command_line_argument=no
5039 fi
5040
5041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5042 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
5043 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
5044 CFLAGS="$xorg_testset_save_CFLAGS"
5045 fi
5046
5047 found="no"
5048
5049 if test $found = "no" ; then
5050 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5052 fi
5053
5054 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5056 fi
5057
5058 CFLAGS="$CFLAGS -Wpointer-arith"
5059
5060 { echo "$as_me:$LINENO: checking if $CC supports -Wpointer-arith" >&5
5061 echo $ECHO_N "checking if $CC supports -Wpointer-arith... $ECHO_C" >&6; }
5062 cat >conftest.$ac_ext <<_ACEOF
5063 /* confdefs.h. */
5064 _ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h. */
5068 int i;
5069 int
5070 main ()
5071 {
5072
5073 ;
5074 return 0;
5075 }
5076 _ACEOF
5077 rm -f conftest.$ac_objext conftest$ac_exeext
5078 if { (ac_try="$ac_link"
5079 case "(($ac_try" in
5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5082 esac
5083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084 (eval "$ac_link") 2>conftest.er1
5085 ac_status=$?
5086 grep -v '^ *+' conftest.er1 >conftest.err
5087 rm -f conftest.er1
5088 cat conftest.err >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } && {
5091 test -z "$ac_c_werror_flag" ||
5092 test ! -s conftest.err
5093 } && test -s conftest$ac_exeext &&
5094 $as_test_x conftest$ac_exeext; then
5095 supported=yes
5096 else
5097 echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5099
5100 supported=no
5101 fi
5102
5103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5104 conftest$ac_exeext conftest.$ac_ext
5105 { echo "$as_me:$LINENO: result: $supported" >&5
5106 echo "${ECHO_T}$supported" >&6; }
5107 CFLAGS="$xorg_testset_save_CFLAGS"
5108
5109 if test "$supported" = "yes" ; then
5110 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5111 found="yes"
5112 fi
5113 fi
5114
5115
5116
5117
5118
5119
5120
5121 xorg_testset_save_CFLAGS="$CFLAGS"
5122
5123 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5125 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5126 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5127 cat >conftest.$ac_ext <<_ACEOF
5128 /* confdefs.h. */
5129 _ACEOF
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h. */
5133 int i;
5134 _ACEOF
5135 rm -f conftest.$ac_objext
5136 if { (ac_try="$ac_compile"
5137 case "(($ac_try" in
5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5140 esac
5141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 (eval "$ac_compile") 2>conftest.er1
5143 ac_status=$?
5144 grep -v '^ *+' conftest.er1 >conftest.err
5145 rm -f conftest.er1
5146 cat conftest.err >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } && {
5149 test -z "$ac_c_werror_flag" ||
5150 test ! -s conftest.err
5151 } && test -s conftest.$ac_objext; then
5152 xorg_testset_unknown_warning_option=yes
5153 else
5154 echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.$ac_ext >&5
5156
5157 xorg_testset_unknown_warning_option=no
5158 fi
5159
5160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5162 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
5163 CFLAGS="$xorg_testset_save_CFLAGS"
5164 fi
5165
5166 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5167 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5169 fi
5170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5171 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5172 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5173 cat >conftest.$ac_ext <<_ACEOF
5174 /* confdefs.h. */
5175 _ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5179 int i;
5180 _ACEOF
5181 rm -f conftest.$ac_objext
5182 if { (ac_try="$ac_compile"
5183 case "(($ac_try" in
5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185 *) ac_try_echo=$ac_try;;
5186 esac
5187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5188 (eval "$ac_compile") 2>conftest.er1
5189 ac_status=$?
5190 grep -v '^ *+' conftest.er1 >conftest.err
5191 rm -f conftest.er1
5192 cat conftest.err >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } && {
5195 test -z "$ac_c_werror_flag" ||
5196 test ! -s conftest.err
5197 } && test -s conftest.$ac_objext; then
5198 xorg_testset_unused_command_line_argument=yes
5199 else
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5202
5203 xorg_testset_unused_command_line_argument=no
5204 fi
5205
5206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
5208 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
5209 CFLAGS="$xorg_testset_save_CFLAGS"
5210 fi
5211
5212 found="no"
5213
5214 if test $found = "no" ; then
5215 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5217 fi
5218
5219 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5221 fi
5222
5223 CFLAGS="$CFLAGS -Wstrict-prototypes"
5224
5225 { echo "$as_me:$LINENO: checking if $CC supports -Wstrict-prototypes" >&5
5226 echo $ECHO_N "checking if $CC supports -Wstrict-prototypes... $ECHO_C" >&6; }
5227 cat >conftest.$ac_ext <<_ACEOF
5228 /* confdefs.h. */
5229 _ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5233 int i;
5234 int
5235 main ()
5236 {
5237
5238 ;
5239 return 0;
5240 }
5241 _ACEOF
5242 rm -f conftest.$ac_objext conftest$ac_exeext
5243 if { (ac_try="$ac_link"
5244 case "(($ac_try" in
5245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246 *) ac_try_echo=$ac_try;;
5247 esac
5248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5249 (eval "$ac_link") 2>conftest.er1
5250 ac_status=$?
5251 grep -v '^ *+' conftest.er1 >conftest.err
5252 rm -f conftest.er1
5253 cat conftest.err >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); } && {
5256 test -z "$ac_c_werror_flag" ||
5257 test ! -s conftest.err
5258 } && test -s conftest$ac_exeext &&
5259 $as_test_x conftest$ac_exeext; then
5260 supported=yes
5261 else
5262 echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5264
5265 supported=no
5266 fi
5267
5268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5269 conftest$ac_exeext conftest.$ac_ext
5270 { echo "$as_me:$LINENO: result: $supported" >&5
5271 echo "${ECHO_T}$supported" >&6; }
5272 CFLAGS="$xorg_testset_save_CFLAGS"
5273
5274 if test "$supported" = "yes" ; then
5275 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5276 found="yes"
5277 fi
5278 fi
5279
5280
5281
5282
5283
5284
5285
5286 xorg_testset_save_CFLAGS="$CFLAGS"
5287
5288 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5290 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5291 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5292 cat >conftest.$ac_ext <<_ACEOF
5293 /* confdefs.h. */
5294 _ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h. */
5298 int i;
5299 _ACEOF
5300 rm -f conftest.$ac_objext
5301 if { (ac_try="$ac_compile"
5302 case "(($ac_try" in
5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304 *) ac_try_echo=$ac_try;;
5305 esac
5306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307 (eval "$ac_compile") 2>conftest.er1
5308 ac_status=$?
5309 grep -v '^ *+' conftest.er1 >conftest.err
5310 rm -f conftest.er1
5311 cat conftest.err >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } && {
5314 test -z "$ac_c_werror_flag" ||
5315 test ! -s conftest.err
5316 } && test -s conftest.$ac_objext; then
5317 xorg_testset_unknown_warning_option=yes
5318 else
5319 echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5321
5322 xorg_testset_unknown_warning_option=no
5323 fi
5324
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5327 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
5328 CFLAGS="$xorg_testset_save_CFLAGS"
5329 fi
5330
5331 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5332 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5334 fi
5335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5336 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5337 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5338 cat >conftest.$ac_ext <<_ACEOF
5339 /* confdefs.h. */
5340 _ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h. */
5344 int i;
5345 _ACEOF
5346 rm -f conftest.$ac_objext
5347 if { (ac_try="$ac_compile"
5348 case "(($ac_try" in
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5351 esac
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_compile") 2>conftest.er1
5354 ac_status=$?
5355 grep -v '^ *+' conftest.er1 >conftest.err
5356 rm -f conftest.er1
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } && {
5360 test -z "$ac_c_werror_flag" ||
5361 test ! -s conftest.err
5362 } && test -s conftest.$ac_objext; then
5363 xorg_testset_unused_command_line_argument=yes
5364 else
5365 echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5367
5368 xorg_testset_unused_command_line_argument=no
5369 fi
5370
5371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
5373 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
5374 CFLAGS="$xorg_testset_save_CFLAGS"
5375 fi
5376
5377 found="no"
5378
5379 if test $found = "no" ; then
5380 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5382 fi
5383
5384 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5386 fi
5387
5388 CFLAGS="$CFLAGS -Wmissing-prototypes"
5389
5390 { echo "$as_me:$LINENO: checking if $CC supports -Wmissing-prototypes" >&5
5391 echo $ECHO_N "checking if $CC supports -Wmissing-prototypes... $ECHO_C" >&6; }
5392 cat >conftest.$ac_ext <<_ACEOF
5393 /* confdefs.h. */
5394 _ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 int i;
5399 int
5400 main ()
5401 {
5402
5403 ;
5404 return 0;
5405 }
5406 _ACEOF
5407 rm -f conftest.$ac_objext conftest$ac_exeext
5408 if { (ac_try="$ac_link"
5409 case "(($ac_try" in
5410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411 *) ac_try_echo=$ac_try;;
5412 esac
5413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5414 (eval "$ac_link") 2>conftest.er1
5415 ac_status=$?
5416 grep -v '^ *+' conftest.er1 >conftest.err
5417 rm -f conftest.er1
5418 cat conftest.err >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } && {
5421 test -z "$ac_c_werror_flag" ||
5422 test ! -s conftest.err
5423 } && test -s conftest$ac_exeext &&
5424 $as_test_x conftest$ac_exeext; then
5425 supported=yes
5426 else
5427 echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.$ac_ext >&5
5429
5430 supported=no
5431 fi
5432
5433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5434 conftest$ac_exeext conftest.$ac_ext
5435 { echo "$as_me:$LINENO: result: $supported" >&5
5436 echo "${ECHO_T}$supported" >&6; }
5437 CFLAGS="$xorg_testset_save_CFLAGS"
5438
5439 if test "$supported" = "yes" ; then
5440 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5441 found="yes"
5442 fi
5443 fi
5444
5445
5446
5447
5448
5449
5450
5451 xorg_testset_save_CFLAGS="$CFLAGS"
5452
5453 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5455 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5456 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5457 cat >conftest.$ac_ext <<_ACEOF
5458 /* confdefs.h. */
5459 _ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5463 int i;
5464 _ACEOF
5465 rm -f conftest.$ac_objext
5466 if { (ac_try="$ac_compile"
5467 case "(($ac_try" in
5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469 *) ac_try_echo=$ac_try;;
5470 esac
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472 (eval "$ac_compile") 2>conftest.er1
5473 ac_status=$?
5474 grep -v '^ *+' conftest.er1 >conftest.err
5475 rm -f conftest.er1
5476 cat conftest.err >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); } && {
5479 test -z "$ac_c_werror_flag" ||
5480 test ! -s conftest.err
5481 } && test -s conftest.$ac_objext; then
5482 xorg_testset_unknown_warning_option=yes
5483 else
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5486
5487 xorg_testset_unknown_warning_option=no
5488 fi
5489
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5492 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
5493 CFLAGS="$xorg_testset_save_CFLAGS"
5494 fi
5495
5496 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5497 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5499 fi
5500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5501 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5502 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5503 cat >conftest.$ac_ext <<_ACEOF
5504 /* confdefs.h. */
5505 _ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5509 int i;
5510 _ACEOF
5511 rm -f conftest.$ac_objext
5512 if { (ac_try="$ac_compile"
5513 case "(($ac_try" in
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5516 esac
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_compile") 2>conftest.er1
5519 ac_status=$?
5520 grep -v '^ *+' conftest.er1 >conftest.err
5521 rm -f conftest.er1
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } && {
5525 test -z "$ac_c_werror_flag" ||
5526 test ! -s conftest.err
5527 } && test -s conftest.$ac_objext; then
5528 xorg_testset_unused_command_line_argument=yes
5529 else
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5532
5533 xorg_testset_unused_command_line_argument=no
5534 fi
5535
5536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
5538 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
5539 CFLAGS="$xorg_testset_save_CFLAGS"
5540 fi
5541
5542 found="no"
5543
5544 if test $found = "no" ; then
5545 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5547 fi
5548
5549 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5551 fi
5552
5553 CFLAGS="$CFLAGS -Wmissing-declarations"
5554
5555 { echo "$as_me:$LINENO: checking if $CC supports -Wmissing-declarations" >&5
5556 echo $ECHO_N "checking if $CC supports -Wmissing-declarations... $ECHO_C" >&6; }
5557 cat >conftest.$ac_ext <<_ACEOF
5558 /* confdefs.h. */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 int i;
5564 int
5565 main ()
5566 {
5567
5568 ;
5569 return 0;
5570 }
5571 _ACEOF
5572 rm -f conftest.$ac_objext conftest$ac_exeext
5573 if { (ac_try="$ac_link"
5574 case "(($ac_try" in
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5577 esac
5578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579 (eval "$ac_link") 2>conftest.er1
5580 ac_status=$?
5581 grep -v '^ *+' conftest.er1 >conftest.err
5582 rm -f conftest.er1
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } && {
5586 test -z "$ac_c_werror_flag" ||
5587 test ! -s conftest.err
5588 } && test -s conftest$ac_exeext &&
5589 $as_test_x conftest$ac_exeext; then
5590 supported=yes
5591 else
5592 echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.$ac_ext >&5
5594
5595 supported=no
5596 fi
5597
5598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5599 conftest$ac_exeext conftest.$ac_ext
5600 { echo "$as_me:$LINENO: result: $supported" >&5
5601 echo "${ECHO_T}$supported" >&6; }
5602 CFLAGS="$xorg_testset_save_CFLAGS"
5603
5604 if test "$supported" = "yes" ; then
5605 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5606 found="yes"
5607 fi
5608 fi
5609
5610
5611
5612
5613
5614
5615
5616 xorg_testset_save_CFLAGS="$CFLAGS"
5617
5618 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5620 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5621 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5622 cat >conftest.$ac_ext <<_ACEOF
5623 /* confdefs.h. */
5624 _ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 int i;
5629 _ACEOF
5630 rm -f conftest.$ac_objext
5631 if { (ac_try="$ac_compile"
5632 case "(($ac_try" in
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5635 esac
5636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637 (eval "$ac_compile") 2>conftest.er1
5638 ac_status=$?
5639 grep -v '^ *+' conftest.er1 >conftest.err
5640 rm -f conftest.er1
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } && {
5644 test -z "$ac_c_werror_flag" ||
5645 test ! -s conftest.err
5646 } && test -s conftest.$ac_objext; then
5647 xorg_testset_unknown_warning_option=yes
5648 else
5649 echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5651
5652 xorg_testset_unknown_warning_option=no
5653 fi
5654
5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5657 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
5658 CFLAGS="$xorg_testset_save_CFLAGS"
5659 fi
5660
5661 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5662 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5664 fi
5665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5666 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5667 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5668 cat >conftest.$ac_ext <<_ACEOF
5669 /* confdefs.h. */
5670 _ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5674 int i;
5675 _ACEOF
5676 rm -f conftest.$ac_objext
5677 if { (ac_try="$ac_compile"
5678 case "(($ac_try" in
5679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680 *) ac_try_echo=$ac_try;;
5681 esac
5682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683 (eval "$ac_compile") 2>conftest.er1
5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } && {
5690 test -z "$ac_c_werror_flag" ||
5691 test ! -s conftest.err
5692 } && test -s conftest.$ac_objext; then
5693 xorg_testset_unused_command_line_argument=yes
5694 else
5695 echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5697
5698 xorg_testset_unused_command_line_argument=no
5699 fi
5700
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
5703 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
5704 CFLAGS="$xorg_testset_save_CFLAGS"
5705 fi
5706
5707 found="no"
5708
5709 if test $found = "no" ; then
5710 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5712 fi
5713
5714 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5716 fi
5717
5718 CFLAGS="$CFLAGS -Wnested-externs"
5719
5720 { echo "$as_me:$LINENO: checking if $CC supports -Wnested-externs" >&5
5721 echo $ECHO_N "checking if $CC supports -Wnested-externs... $ECHO_C" >&6; }
5722 cat >conftest.$ac_ext <<_ACEOF
5723 /* confdefs.h. */
5724 _ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5728 int i;
5729 int
5730 main ()
5731 {
5732
5733 ;
5734 return 0;
5735 }
5736 _ACEOF
5737 rm -f conftest.$ac_objext conftest$ac_exeext
5738 if { (ac_try="$ac_link"
5739 case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742 esac
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_link") 2>conftest.er1
5745 ac_status=$?
5746 grep -v '^ *+' conftest.er1 >conftest.err
5747 rm -f conftest.er1
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } && {
5751 test -z "$ac_c_werror_flag" ||
5752 test ! -s conftest.err
5753 } && test -s conftest$ac_exeext &&
5754 $as_test_x conftest$ac_exeext; then
5755 supported=yes
5756 else
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5759
5760 supported=no
5761 fi
5762
5763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5764 conftest$ac_exeext conftest.$ac_ext
5765 { echo "$as_me:$LINENO: result: $supported" >&5
5766 echo "${ECHO_T}$supported" >&6; }
5767 CFLAGS="$xorg_testset_save_CFLAGS"
5768
5769 if test "$supported" = "yes" ; then
5770 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5771 found="yes"
5772 fi
5773 fi
5774
5775
5776
5777
5778
5779
5780
5781 xorg_testset_save_CFLAGS="$CFLAGS"
5782
5783 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5785 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5786 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5787 cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h. */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 int i;
5794 _ACEOF
5795 rm -f conftest.$ac_objext
5796 if { (ac_try="$ac_compile"
5797 case "(($ac_try" in
5798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799 *) ac_try_echo=$ac_try;;
5800 esac
5801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802 (eval "$ac_compile") 2>conftest.er1
5803 ac_status=$?
5804 grep -v '^ *+' conftest.er1 >conftest.err
5805 rm -f conftest.er1
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } && {
5809 test -z "$ac_c_werror_flag" ||
5810 test ! -s conftest.err
5811 } && test -s conftest.$ac_objext; then
5812 xorg_testset_unknown_warning_option=yes
5813 else
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5816
5817 xorg_testset_unknown_warning_option=no
5818 fi
5819
5820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5822 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
5823 CFLAGS="$xorg_testset_save_CFLAGS"
5824 fi
5825
5826 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5827 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5829 fi
5830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5831 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5832 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5833 cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h. */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839 int i;
5840 _ACEOF
5841 rm -f conftest.$ac_objext
5842 if { (ac_try="$ac_compile"
5843 case "(($ac_try" in
5844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5846 esac
5847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848 (eval "$ac_compile") 2>conftest.er1
5849 ac_status=$?
5850 grep -v '^ *+' conftest.er1 >conftest.err
5851 rm -f conftest.er1
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } && {
5855 test -z "$ac_c_werror_flag" ||
5856 test ! -s conftest.err
5857 } && test -s conftest.$ac_objext; then
5858 xorg_testset_unused_command_line_argument=yes
5859 else
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5862
5863 xorg_testset_unused_command_line_argument=no
5864 fi
5865
5866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5867 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
5868 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
5869 CFLAGS="$xorg_testset_save_CFLAGS"
5870 fi
5871
5872 found="no"
5873
5874 if test $found = "no" ; then
5875 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5877 fi
5878
5879 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5881 fi
5882
5883 CFLAGS="$CFLAGS -Wbad-function-cast"
5884
5885 { echo "$as_me:$LINENO: checking if $CC supports -Wbad-function-cast" >&5
5886 echo $ECHO_N "checking if $CC supports -Wbad-function-cast... $ECHO_C" >&6; }
5887 cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h. */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5893 int i;
5894 int
5895 main ()
5896 {
5897
5898 ;
5899 return 0;
5900 }
5901 _ACEOF
5902 rm -f conftest.$ac_objext conftest$ac_exeext
5903 if { (ac_try="$ac_link"
5904 case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5907 esac
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_link") 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } && {
5916 test -z "$ac_c_werror_flag" ||
5917 test ! -s conftest.err
5918 } && test -s conftest$ac_exeext &&
5919 $as_test_x conftest$ac_exeext; then
5920 supported=yes
5921 else
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5924
5925 supported=no
5926 fi
5927
5928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5929 conftest$ac_exeext conftest.$ac_ext
5930 { echo "$as_me:$LINENO: result: $supported" >&5
5931 echo "${ECHO_T}$supported" >&6; }
5932 CFLAGS="$xorg_testset_save_CFLAGS"
5933
5934 if test "$supported" = "yes" ; then
5935 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5936 found="yes"
5937 fi
5938 fi
5939
5940
5941
5942
5943
5944
5945
5946 xorg_testset_save_CFLAGS="$CFLAGS"
5947
5948 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5950 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5951 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5952 cat >conftest.$ac_ext <<_ACEOF
5953 /* confdefs.h. */
5954 _ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5958 int i;
5959 _ACEOF
5960 rm -f conftest.$ac_objext
5961 if { (ac_try="$ac_compile"
5962 case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5965 esac
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_compile") 2>conftest.er1
5968 ac_status=$?
5969 grep -v '^ *+' conftest.er1 >conftest.err
5970 rm -f conftest.er1
5971 cat conftest.err >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } && {
5974 test -z "$ac_c_werror_flag" ||
5975 test ! -s conftest.err
5976 } && test -s conftest.$ac_objext; then
5977 xorg_testset_unknown_warning_option=yes
5978 else
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5981
5982 xorg_testset_unknown_warning_option=no
5983 fi
5984
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5987 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
5988 CFLAGS="$xorg_testset_save_CFLAGS"
5989 fi
5990
5991 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5992 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5994 fi
5995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5996 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5997 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5998 cat >conftest.$ac_ext <<_ACEOF
5999 /* confdefs.h. */
6000 _ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h. */
6004 int i;
6005 _ACEOF
6006 rm -f conftest.$ac_objext
6007 if { (ac_try="$ac_compile"
6008 case "(($ac_try" in
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6011 esac
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_compile") 2>conftest.er1
6014 ac_status=$?
6015 grep -v '^ *+' conftest.er1 >conftest.err
6016 rm -f conftest.er1
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } && {
6020 test -z "$ac_c_werror_flag" ||
6021 test ! -s conftest.err
6022 } && test -s conftest.$ac_objext; then
6023 xorg_testset_unused_command_line_argument=yes
6024 else
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6027
6028 xorg_testset_unused_command_line_argument=no
6029 fi
6030
6031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6032 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6033 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6034 CFLAGS="$xorg_testset_save_CFLAGS"
6035 fi
6036
6037 found="no"
6038
6039 if test $found = "no" ; then
6040 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6042 fi
6043
6044 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6046 fi
6047
6048 CFLAGS="$CFLAGS -Wformat=2"
6049
6050 { echo "$as_me:$LINENO: checking if $CC supports -Wformat=2" >&5
6051 echo $ECHO_N "checking if $CC supports -Wformat=2... $ECHO_C" >&6; }
6052 cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h. */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6058 int i;
6059 int
6060 main ()
6061 {
6062
6063 ;
6064 return 0;
6065 }
6066 _ACEOF
6067 rm -f conftest.$ac_objext conftest$ac_exeext
6068 if { (ac_try="$ac_link"
6069 case "(($ac_try" in
6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6072 esac
6073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074 (eval "$ac_link") 2>conftest.er1
6075 ac_status=$?
6076 grep -v '^ *+' conftest.er1 >conftest.err
6077 rm -f conftest.er1
6078 cat conftest.err >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } && {
6081 test -z "$ac_c_werror_flag" ||
6082 test ! -s conftest.err
6083 } && test -s conftest$ac_exeext &&
6084 $as_test_x conftest$ac_exeext; then
6085 supported=yes
6086 else
6087 echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6089
6090 supported=no
6091 fi
6092
6093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6094 conftest$ac_exeext conftest.$ac_ext
6095 { echo "$as_me:$LINENO: result: $supported" >&5
6096 echo "${ECHO_T}$supported" >&6; }
6097 CFLAGS="$xorg_testset_save_CFLAGS"
6098
6099 if test "$supported" = "yes" ; then
6100 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
6101 found="yes"
6102 fi
6103 fi
6104
6105 if test $found = "no" ; then
6106 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6108 fi
6109
6110 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6112 fi
6113
6114 CFLAGS="$CFLAGS -Wformat"
6115
6116 { echo "$as_me:$LINENO: checking if $CC supports -Wformat" >&5
6117 echo $ECHO_N "checking if $CC supports -Wformat... $ECHO_C" >&6; }
6118 cat >conftest.$ac_ext <<_ACEOF
6119 /* confdefs.h. */
6120 _ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6124 int i;
6125 int
6126 main ()
6127 {
6128
6129 ;
6130 return 0;
6131 }
6132 _ACEOF
6133 rm -f conftest.$ac_objext conftest$ac_exeext
6134 if { (ac_try="$ac_link"
6135 case "(($ac_try" in
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6138 esac
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_link") 2>conftest.er1
6141 ac_status=$?
6142 grep -v '^ *+' conftest.er1 >conftest.err
6143 rm -f conftest.er1
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } && {
6147 test -z "$ac_c_werror_flag" ||
6148 test ! -s conftest.err
6149 } && test -s conftest$ac_exeext &&
6150 $as_test_x conftest$ac_exeext; then
6151 supported=yes
6152 else
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6155
6156 supported=no
6157 fi
6158
6159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6160 conftest$ac_exeext conftest.$ac_ext
6161 { echo "$as_me:$LINENO: result: $supported" >&5
6162 echo "${ECHO_T}$supported" >&6; }
6163 CFLAGS="$xorg_testset_save_CFLAGS"
6164
6165 if test "$supported" = "yes" ; then
6166 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
6167 found="yes"
6168 fi
6169 fi
6170
6171
6172
6173
6174
6175
6176
6177 xorg_testset_save_CFLAGS="$CFLAGS"
6178
6179 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6181 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6182 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6183 cat >conftest.$ac_ext <<_ACEOF
6184 /* confdefs.h. */
6185 _ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6189 int i;
6190 _ACEOF
6191 rm -f conftest.$ac_objext
6192 if { (ac_try="$ac_compile"
6193 case "(($ac_try" in
6194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195 *) ac_try_echo=$ac_try;;
6196 esac
6197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198 (eval "$ac_compile") 2>conftest.er1
6199 ac_status=$?
6200 grep -v '^ *+' conftest.er1 >conftest.err
6201 rm -f conftest.er1
6202 cat conftest.err >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } && {
6205 test -z "$ac_c_werror_flag" ||
6206 test ! -s conftest.err
6207 } && test -s conftest.$ac_objext; then
6208 xorg_testset_unknown_warning_option=yes
6209 else
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6212
6213 xorg_testset_unknown_warning_option=no
6214 fi
6215
6216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6218 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6219 CFLAGS="$xorg_testset_save_CFLAGS"
6220 fi
6221
6222 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6223 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6225 fi
6226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6227 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6228 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6229 cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h. */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 int i;
6236 _ACEOF
6237 rm -f conftest.$ac_objext
6238 if { (ac_try="$ac_compile"
6239 case "(($ac_try" in
6240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6241 *) ac_try_echo=$ac_try;;
6242 esac
6243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6244 (eval "$ac_compile") 2>conftest.er1
6245 ac_status=$?
6246 grep -v '^ *+' conftest.er1 >conftest.err
6247 rm -f conftest.er1
6248 cat conftest.err >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } && {
6251 test -z "$ac_c_werror_flag" ||
6252 test ! -s conftest.err
6253 } && test -s conftest.$ac_objext; then
6254 xorg_testset_unused_command_line_argument=yes
6255 else
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6258
6259 xorg_testset_unused_command_line_argument=no
6260 fi
6261
6262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6263 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6264 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6265 CFLAGS="$xorg_testset_save_CFLAGS"
6266 fi
6267
6268 found="no"
6269
6270 if test $found = "no" ; then
6271 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6273 fi
6274
6275 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6277 fi
6278
6279 CFLAGS="$CFLAGS -Wold-style-definition"
6280
6281 { echo "$as_me:$LINENO: checking if $CC supports -Wold-style-definition" >&5
6282 echo $ECHO_N "checking if $CC supports -Wold-style-definition... $ECHO_C" >&6; }
6283 cat >conftest.$ac_ext <<_ACEOF
6284 /* confdefs.h. */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6289 int i;
6290 int
6291 main ()
6292 {
6293
6294 ;
6295 return 0;
6296 }
6297 _ACEOF
6298 rm -f conftest.$ac_objext conftest$ac_exeext
6299 if { (ac_try="$ac_link"
6300 case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303 esac
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_link") 2>conftest.er1
6306 ac_status=$?
6307 grep -v '^ *+' conftest.er1 >conftest.err
6308 rm -f conftest.er1
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } && {
6312 test -z "$ac_c_werror_flag" ||
6313 test ! -s conftest.err
6314 } && test -s conftest$ac_exeext &&
6315 $as_test_x conftest$ac_exeext; then
6316 supported=yes
6317 else
6318 echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6320
6321 supported=no
6322 fi
6323
6324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6325 conftest$ac_exeext conftest.$ac_ext
6326 { echo "$as_me:$LINENO: result: $supported" >&5
6327 echo "${ECHO_T}$supported" >&6; }
6328 CFLAGS="$xorg_testset_save_CFLAGS"
6329
6330 if test "$supported" = "yes" ; then
6331 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6332 found="yes"
6333 fi
6334 fi
6335
6336
6337
6338
6339
6340
6341
6342 xorg_testset_save_CFLAGS="$CFLAGS"
6343
6344 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6346 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6347 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6348 cat >conftest.$ac_ext <<_ACEOF
6349 /* confdefs.h. */
6350 _ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h. */
6354 int i;
6355 _ACEOF
6356 rm -f conftest.$ac_objext
6357 if { (ac_try="$ac_compile"
6358 case "(($ac_try" in
6359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360 *) ac_try_echo=$ac_try;;
6361 esac
6362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6363 (eval "$ac_compile") 2>conftest.er1
6364 ac_status=$?
6365 grep -v '^ *+' conftest.er1 >conftest.err
6366 rm -f conftest.er1
6367 cat conftest.err >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } && {
6370 test -z "$ac_c_werror_flag" ||
6371 test ! -s conftest.err
6372 } && test -s conftest.$ac_objext; then
6373 xorg_testset_unknown_warning_option=yes
6374 else
6375 echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6377
6378 xorg_testset_unknown_warning_option=no
6379 fi
6380
6381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6382 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6383 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6384 CFLAGS="$xorg_testset_save_CFLAGS"
6385 fi
6386
6387 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6388 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6390 fi
6391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6392 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6393 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6394 cat >conftest.$ac_ext <<_ACEOF
6395 /* confdefs.h. */
6396 _ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6400 int i;
6401 _ACEOF
6402 rm -f conftest.$ac_objext
6403 if { (ac_try="$ac_compile"
6404 case "(($ac_try" in
6405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406 *) ac_try_echo=$ac_try;;
6407 esac
6408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6409 (eval "$ac_compile") 2>conftest.er1
6410 ac_status=$?
6411 grep -v '^ *+' conftest.er1 >conftest.err
6412 rm -f conftest.er1
6413 cat conftest.err >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } && {
6416 test -z "$ac_c_werror_flag" ||
6417 test ! -s conftest.err
6418 } && test -s conftest.$ac_objext; then
6419 xorg_testset_unused_command_line_argument=yes
6420 else
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6423
6424 xorg_testset_unused_command_line_argument=no
6425 fi
6426
6427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6428 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6429 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6430 CFLAGS="$xorg_testset_save_CFLAGS"
6431 fi
6432
6433 found="no"
6434
6435 if test $found = "no" ; then
6436 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6438 fi
6439
6440 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6442 fi
6443
6444 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6445
6446 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
6447 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
6448 cat >conftest.$ac_ext <<_ACEOF
6449 /* confdefs.h. */
6450 _ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6454 int i;
6455 int
6456 main ()
6457 {
6458
6459 ;
6460 return 0;
6461 }
6462 _ACEOF
6463 rm -f conftest.$ac_objext conftest$ac_exeext
6464 if { (ac_try="$ac_link"
6465 case "(($ac_try" in
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6468 esac
6469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_link") 2>conftest.er1
6471 ac_status=$?
6472 grep -v '^ *+' conftest.er1 >conftest.err
6473 rm -f conftest.er1
6474 cat conftest.err >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } && {
6477 test -z "$ac_c_werror_flag" ||
6478 test ! -s conftest.err
6479 } && test -s conftest$ac_exeext &&
6480 $as_test_x conftest$ac_exeext; then
6481 supported=yes
6482 else
6483 echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6485
6486 supported=no
6487 fi
6488
6489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6490 conftest$ac_exeext conftest.$ac_ext
6491 { echo "$as_me:$LINENO: result: $supported" >&5
6492 echo "${ECHO_T}$supported" >&6; }
6493 CFLAGS="$xorg_testset_save_CFLAGS"
6494
6495 if test "$supported" = "yes" ; then
6496 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6497 found="yes"
6498 fi
6499 fi
6500
6501
6502
6503 # This chunk adds additional warnings that could catch undesired effects.
6504
6505
6506
6507
6508
6509 xorg_testset_save_CFLAGS="$CFLAGS"
6510
6511 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6513 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6514 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6515 cat >conftest.$ac_ext <<_ACEOF
6516 /* confdefs.h. */
6517 _ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6521 int i;
6522 _ACEOF
6523 rm -f conftest.$ac_objext
6524 if { (ac_try="$ac_compile"
6525 case "(($ac_try" in
6526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527 *) ac_try_echo=$ac_try;;
6528 esac
6529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530 (eval "$ac_compile") 2>conftest.er1
6531 ac_status=$?
6532 grep -v '^ *+' conftest.er1 >conftest.err
6533 rm -f conftest.er1
6534 cat conftest.err >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } && {
6537 test -z "$ac_c_werror_flag" ||
6538 test ! -s conftest.err
6539 } && test -s conftest.$ac_objext; then
6540 xorg_testset_unknown_warning_option=yes
6541 else
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6544
6545 xorg_testset_unknown_warning_option=no
6546 fi
6547
6548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6550 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6551 CFLAGS="$xorg_testset_save_CFLAGS"
6552 fi
6553
6554 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6555 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6557 fi
6558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6559 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6560 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6561 cat >conftest.$ac_ext <<_ACEOF
6562 /* confdefs.h. */
6563 _ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6567 int i;
6568 _ACEOF
6569 rm -f conftest.$ac_objext
6570 if { (ac_try="$ac_compile"
6571 case "(($ac_try" in
6572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6573 *) ac_try_echo=$ac_try;;
6574 esac
6575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6576 (eval "$ac_compile") 2>conftest.er1
6577 ac_status=$?
6578 grep -v '^ *+' conftest.er1 >conftest.err
6579 rm -f conftest.er1
6580 cat conftest.err >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } && {
6583 test -z "$ac_c_werror_flag" ||
6584 test ! -s conftest.err
6585 } && test -s conftest.$ac_objext; then
6586 xorg_testset_unused_command_line_argument=yes
6587 else
6588 echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6590
6591 xorg_testset_unused_command_line_argument=no
6592 fi
6593
6594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6596 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6597 CFLAGS="$xorg_testset_save_CFLAGS"
6598 fi
6599
6600 found="no"
6601
6602 if test $found = "no" ; then
6603 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6605 fi
6606
6607 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6609 fi
6610
6611 CFLAGS="$CFLAGS -Wunused"
6612
6613 { echo "$as_me:$LINENO: checking if $CC supports -Wunused" >&5
6614 echo $ECHO_N "checking if $CC supports -Wunused... $ECHO_C" >&6; }
6615 cat >conftest.$ac_ext <<_ACEOF
6616 /* confdefs.h. */
6617 _ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6621 int i;
6622 int
6623 main ()
6624 {
6625
6626 ;
6627 return 0;
6628 }
6629 _ACEOF
6630 rm -f conftest.$ac_objext conftest$ac_exeext
6631 if { (ac_try="$ac_link"
6632 case "(($ac_try" in
6633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634 *) ac_try_echo=$ac_try;;
6635 esac
6636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637 (eval "$ac_link") 2>conftest.er1
6638 ac_status=$?
6639 grep -v '^ *+' conftest.er1 >conftest.err
6640 rm -f conftest.er1
6641 cat conftest.err >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } && {
6644 test -z "$ac_c_werror_flag" ||
6645 test ! -s conftest.err
6646 } && test -s conftest$ac_exeext &&
6647 $as_test_x conftest$ac_exeext; then
6648 supported=yes
6649 else
6650 echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6652
6653 supported=no
6654 fi
6655
6656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6657 conftest$ac_exeext conftest.$ac_ext
6658 { echo "$as_me:$LINENO: result: $supported" >&5
6659 echo "${ECHO_T}$supported" >&6; }
6660 CFLAGS="$xorg_testset_save_CFLAGS"
6661
6662 if test "$supported" = "yes" ; then
6663 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6664 found="yes"
6665 fi
6666 fi
6667
6668
6669
6670
6671
6672
6673
6674 xorg_testset_save_CFLAGS="$CFLAGS"
6675
6676 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6678 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6679 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6680 cat >conftest.$ac_ext <<_ACEOF
6681 /* confdefs.h. */
6682 _ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6686 int i;
6687 _ACEOF
6688 rm -f conftest.$ac_objext
6689 if { (ac_try="$ac_compile"
6690 case "(($ac_try" in
6691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692 *) ac_try_echo=$ac_try;;
6693 esac
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695 (eval "$ac_compile") 2>conftest.er1
6696 ac_status=$?
6697 grep -v '^ *+' conftest.er1 >conftest.err
6698 rm -f conftest.er1
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } && {
6702 test -z "$ac_c_werror_flag" ||
6703 test ! -s conftest.err
6704 } && test -s conftest.$ac_objext; then
6705 xorg_testset_unknown_warning_option=yes
6706 else
6707 echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6709
6710 xorg_testset_unknown_warning_option=no
6711 fi
6712
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6715 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6716 CFLAGS="$xorg_testset_save_CFLAGS"
6717 fi
6718
6719 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6720 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6722 fi
6723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6724 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6725 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6726 cat >conftest.$ac_ext <<_ACEOF
6727 /* confdefs.h. */
6728 _ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h. */
6732 int i;
6733 _ACEOF
6734 rm -f conftest.$ac_objext
6735 if { (ac_try="$ac_compile"
6736 case "(($ac_try" in
6737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6738 *) ac_try_echo=$ac_try;;
6739 esac
6740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6741 (eval "$ac_compile") 2>conftest.er1
6742 ac_status=$?
6743 grep -v '^ *+' conftest.er1 >conftest.err
6744 rm -f conftest.er1
6745 cat conftest.err >&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); } && {
6748 test -z "$ac_c_werror_flag" ||
6749 test ! -s conftest.err
6750 } && test -s conftest.$ac_objext; then
6751 xorg_testset_unused_command_line_argument=yes
6752 else
6753 echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6755
6756 xorg_testset_unused_command_line_argument=no
6757 fi
6758
6759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6761 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6762 CFLAGS="$xorg_testset_save_CFLAGS"
6763 fi
6764
6765 found="no"
6766
6767 if test $found = "no" ; then
6768 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6770 fi
6771
6772 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6774 fi
6775
6776 CFLAGS="$CFLAGS -Wuninitialized"
6777
6778 { echo "$as_me:$LINENO: checking if $CC supports -Wuninitialized" >&5
6779 echo $ECHO_N "checking if $CC supports -Wuninitialized... $ECHO_C" >&6; }
6780 cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h. */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 int i;
6787 int
6788 main ()
6789 {
6790
6791 ;
6792 return 0;
6793 }
6794 _ACEOF
6795 rm -f conftest.$ac_objext conftest$ac_exeext
6796 if { (ac_try="$ac_link"
6797 case "(($ac_try" in
6798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6800 esac
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_link") 2>conftest.er1
6803 ac_status=$?
6804 grep -v '^ *+' conftest.er1 >conftest.err
6805 rm -f conftest.er1
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } && {
6809 test -z "$ac_c_werror_flag" ||
6810 test ! -s conftest.err
6811 } && test -s conftest$ac_exeext &&
6812 $as_test_x conftest$ac_exeext; then
6813 supported=yes
6814 else
6815 echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6817
6818 supported=no
6819 fi
6820
6821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6822 conftest$ac_exeext conftest.$ac_ext
6823 { echo "$as_me:$LINENO: result: $supported" >&5
6824 echo "${ECHO_T}$supported" >&6; }
6825 CFLAGS="$xorg_testset_save_CFLAGS"
6826
6827 if test "$supported" = "yes" ; then
6828 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6829 found="yes"
6830 fi
6831 fi
6832
6833
6834
6835
6836
6837
6838
6839 xorg_testset_save_CFLAGS="$CFLAGS"
6840
6841 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6843 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6844 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6845 cat >conftest.$ac_ext <<_ACEOF
6846 /* confdefs.h. */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6851 int i;
6852 _ACEOF
6853 rm -f conftest.$ac_objext
6854 if { (ac_try="$ac_compile"
6855 case "(($ac_try" in
6856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6857 *) ac_try_echo=$ac_try;;
6858 esac
6859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6860 (eval "$ac_compile") 2>conftest.er1
6861 ac_status=$?
6862 grep -v '^ *+' conftest.er1 >conftest.err
6863 rm -f conftest.er1
6864 cat conftest.err >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); } && {
6867 test -z "$ac_c_werror_flag" ||
6868 test ! -s conftest.err
6869 } && test -s conftest.$ac_objext; then
6870 xorg_testset_unknown_warning_option=yes
6871 else
6872 echo "$as_me: failed program was:" >&5
6873 sed 's/^/| /' conftest.$ac_ext >&5
6874
6875 xorg_testset_unknown_warning_option=no
6876 fi
6877
6878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6879 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6880 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6881 CFLAGS="$xorg_testset_save_CFLAGS"
6882 fi
6883
6884 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6885 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6887 fi
6888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6889 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6890 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6891 cat >conftest.$ac_ext <<_ACEOF
6892 /* confdefs.h. */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 int i;
6898 _ACEOF
6899 rm -f conftest.$ac_objext
6900 if { (ac_try="$ac_compile"
6901 case "(($ac_try" in
6902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6903 *) ac_try_echo=$ac_try;;
6904 esac
6905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6906 (eval "$ac_compile") 2>conftest.er1
6907 ac_status=$?
6908 grep -v '^ *+' conftest.er1 >conftest.err
6909 rm -f conftest.er1
6910 cat conftest.err >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } && {
6913 test -z "$ac_c_werror_flag" ||
6914 test ! -s conftest.err
6915 } && test -s conftest.$ac_objext; then
6916 xorg_testset_unused_command_line_argument=yes
6917 else
6918 echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6920
6921 xorg_testset_unused_command_line_argument=no
6922 fi
6923
6924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6925 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6926 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6927 CFLAGS="$xorg_testset_save_CFLAGS"
6928 fi
6929
6930 found="no"
6931
6932 if test $found = "no" ; then
6933 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6935 fi
6936
6937 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6939 fi
6940
6941 CFLAGS="$CFLAGS -Wshadow"
6942
6943 { echo "$as_me:$LINENO: checking if $CC supports -Wshadow" >&5
6944 echo $ECHO_N "checking if $CC supports -Wshadow... $ECHO_C" >&6; }
6945 cat >conftest.$ac_ext <<_ACEOF
6946 /* confdefs.h. */
6947 _ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6951 int i;
6952 int
6953 main ()
6954 {
6955
6956 ;
6957 return 0;
6958 }
6959 _ACEOF
6960 rm -f conftest.$ac_objext conftest$ac_exeext
6961 if { (ac_try="$ac_link"
6962 case "(($ac_try" in
6963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6964 *) ac_try_echo=$ac_try;;
6965 esac
6966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6967 (eval "$ac_link") 2>conftest.er1
6968 ac_status=$?
6969 grep -v '^ *+' conftest.er1 >conftest.err
6970 rm -f conftest.er1
6971 cat conftest.err >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } && {
6974 test -z "$ac_c_werror_flag" ||
6975 test ! -s conftest.err
6976 } && test -s conftest$ac_exeext &&
6977 $as_test_x conftest$ac_exeext; then
6978 supported=yes
6979 else
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6982
6983 supported=no
6984 fi
6985
6986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6987 conftest$ac_exeext conftest.$ac_ext
6988 { echo "$as_me:$LINENO: result: $supported" >&5
6989 echo "${ECHO_T}$supported" >&6; }
6990 CFLAGS="$xorg_testset_save_CFLAGS"
6991
6992 if test "$supported" = "yes" ; then
6993 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6994 found="yes"
6995 fi
6996 fi
6997
6998
6999
7000
7001
7002
7003
7004 xorg_testset_save_CFLAGS="$CFLAGS"
7005
7006 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7008 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7009 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7010 cat >conftest.$ac_ext <<_ACEOF
7011 /* confdefs.h. */
7012 _ACEOF
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h. */
7016 int i;
7017 _ACEOF
7018 rm -f conftest.$ac_objext
7019 if { (ac_try="$ac_compile"
7020 case "(($ac_try" in
7021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7022 *) ac_try_echo=$ac_try;;
7023 esac
7024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7025 (eval "$ac_compile") 2>conftest.er1
7026 ac_status=$?
7027 grep -v '^ *+' conftest.er1 >conftest.err
7028 rm -f conftest.er1
7029 cat conftest.err >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } && {
7032 test -z "$ac_c_werror_flag" ||
7033 test ! -s conftest.err
7034 } && test -s conftest.$ac_objext; then
7035 xorg_testset_unknown_warning_option=yes
7036 else
7037 echo "$as_me: failed program was:" >&5
7038 sed 's/^/| /' conftest.$ac_ext >&5
7039
7040 xorg_testset_unknown_warning_option=no
7041 fi
7042
7043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7045 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7046 CFLAGS="$xorg_testset_save_CFLAGS"
7047 fi
7048
7049 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7050 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7052 fi
7053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7054 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7055 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7056 cat >conftest.$ac_ext <<_ACEOF
7057 /* confdefs.h. */
7058 _ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h. */
7062 int i;
7063 _ACEOF
7064 rm -f conftest.$ac_objext
7065 if { (ac_try="$ac_compile"
7066 case "(($ac_try" in
7067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7068 *) ac_try_echo=$ac_try;;
7069 esac
7070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7071 (eval "$ac_compile") 2>conftest.er1
7072 ac_status=$?
7073 grep -v '^ *+' conftest.er1 >conftest.err
7074 rm -f conftest.er1
7075 cat conftest.err >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } && {
7078 test -z "$ac_c_werror_flag" ||
7079 test ! -s conftest.err
7080 } && test -s conftest.$ac_objext; then
7081 xorg_testset_unused_command_line_argument=yes
7082 else
7083 echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7085
7086 xorg_testset_unused_command_line_argument=no
7087 fi
7088
7089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7091 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7092 CFLAGS="$xorg_testset_save_CFLAGS"
7093 fi
7094
7095 found="no"
7096
7097 if test $found = "no" ; then
7098 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7100 fi
7101
7102 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7104 fi
7105
7106 CFLAGS="$CFLAGS -Wcast-qual"
7107
7108 { echo "$as_me:$LINENO: checking if $CC supports -Wcast-qual" >&5
7109 echo $ECHO_N "checking if $CC supports -Wcast-qual... $ECHO_C" >&6; }
7110 cat >conftest.$ac_ext <<_ACEOF
7111 /* confdefs.h. */
7112 _ACEOF
7113 cat confdefs.h >>conftest.$ac_ext
7114 cat >>conftest.$ac_ext <<_ACEOF
7115 /* end confdefs.h. */
7116 int i;
7117 int
7118 main ()
7119 {
7120
7121 ;
7122 return 0;
7123 }
7124 _ACEOF
7125 rm -f conftest.$ac_objext conftest$ac_exeext
7126 if { (ac_try="$ac_link"
7127 case "(($ac_try" in
7128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7129 *) ac_try_echo=$ac_try;;
7130 esac
7131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7132 (eval "$ac_link") 2>conftest.er1
7133 ac_status=$?
7134 grep -v '^ *+' conftest.er1 >conftest.err
7135 rm -f conftest.er1
7136 cat conftest.err >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); } && {
7139 test -z "$ac_c_werror_flag" ||
7140 test ! -s conftest.err
7141 } && test -s conftest$ac_exeext &&
7142 $as_test_x conftest$ac_exeext; then
7143 supported=yes
7144 else
7145 echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7147
7148 supported=no
7149 fi
7150
7151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7152 conftest$ac_exeext conftest.$ac_ext
7153 { echo "$as_me:$LINENO: result: $supported" >&5
7154 echo "${ECHO_T}$supported" >&6; }
7155 CFLAGS="$xorg_testset_save_CFLAGS"
7156
7157 if test "$supported" = "yes" ; then
7158 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
7159 found="yes"
7160 fi
7161 fi
7162
7163
7164
7165
7166
7167
7168
7169 xorg_testset_save_CFLAGS="$CFLAGS"
7170
7171 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7173 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7174 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7175 cat >conftest.$ac_ext <<_ACEOF
7176 /* confdefs.h. */
7177 _ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 int i;
7182 _ACEOF
7183 rm -f conftest.$ac_objext
7184 if { (ac_try="$ac_compile"
7185 case "(($ac_try" in
7186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187 *) ac_try_echo=$ac_try;;
7188 esac
7189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7190 (eval "$ac_compile") 2>conftest.er1
7191 ac_status=$?
7192 grep -v '^ *+' conftest.er1 >conftest.err
7193 rm -f conftest.er1
7194 cat conftest.err >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } && {
7197 test -z "$ac_c_werror_flag" ||
7198 test ! -s conftest.err
7199 } && test -s conftest.$ac_objext; then
7200 xorg_testset_unknown_warning_option=yes
7201 else
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7204
7205 xorg_testset_unknown_warning_option=no
7206 fi
7207
7208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7209 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7210 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7211 CFLAGS="$xorg_testset_save_CFLAGS"
7212 fi
7213
7214 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7215 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7217 fi
7218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7219 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7220 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7221 cat >conftest.$ac_ext <<_ACEOF
7222 /* confdefs.h. */
7223 _ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h. */
7227 int i;
7228 _ACEOF
7229 rm -f conftest.$ac_objext
7230 if { (ac_try="$ac_compile"
7231 case "(($ac_try" in
7232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7233 *) ac_try_echo=$ac_try;;
7234 esac
7235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7236 (eval "$ac_compile") 2>conftest.er1
7237 ac_status=$?
7238 grep -v '^ *+' conftest.er1 >conftest.err
7239 rm -f conftest.er1
7240 cat conftest.err >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } && {
7243 test -z "$ac_c_werror_flag" ||
7244 test ! -s conftest.err
7245 } && test -s conftest.$ac_objext; then
7246 xorg_testset_unused_command_line_argument=yes
7247 else
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7250
7251 xorg_testset_unused_command_line_argument=no
7252 fi
7253
7254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7255 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7256 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7257 CFLAGS="$xorg_testset_save_CFLAGS"
7258 fi
7259
7260 found="no"
7261
7262 if test $found = "no" ; then
7263 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7265 fi
7266
7267 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7269 fi
7270
7271 CFLAGS="$CFLAGS -Wmissing-noreturn"
7272
7273 { echo "$as_me:$LINENO: checking if $CC supports -Wmissing-noreturn" >&5
7274 echo $ECHO_N "checking if $CC supports -Wmissing-noreturn... $ECHO_C" >&6; }
7275 cat >conftest.$ac_ext <<_ACEOF
7276 /* confdefs.h. */
7277 _ACEOF
7278 cat confdefs.h >>conftest.$ac_ext
7279 cat >>conftest.$ac_ext <<_ACEOF
7280 /* end confdefs.h. */
7281 int i;
7282 int
7283 main ()
7284 {
7285
7286 ;
7287 return 0;
7288 }
7289 _ACEOF
7290 rm -f conftest.$ac_objext conftest$ac_exeext
7291 if { (ac_try="$ac_link"
7292 case "(($ac_try" in
7293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7294 *) ac_try_echo=$ac_try;;
7295 esac
7296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7297 (eval "$ac_link") 2>conftest.er1
7298 ac_status=$?
7299 grep -v '^ *+' conftest.er1 >conftest.err
7300 rm -f conftest.er1
7301 cat conftest.err >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } && {
7304 test -z "$ac_c_werror_flag" ||
7305 test ! -s conftest.err
7306 } && test -s conftest$ac_exeext &&
7307 $as_test_x conftest$ac_exeext; then
7308 supported=yes
7309 else
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7312
7313 supported=no
7314 fi
7315
7316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7317 conftest$ac_exeext conftest.$ac_ext
7318 { echo "$as_me:$LINENO: result: $supported" >&5
7319 echo "${ECHO_T}$supported" >&6; }
7320 CFLAGS="$xorg_testset_save_CFLAGS"
7321
7322 if test "$supported" = "yes" ; then
7323 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7324 found="yes"
7325 fi
7326 fi
7327
7328
7329
7330
7331
7332
7333
7334 xorg_testset_save_CFLAGS="$CFLAGS"
7335
7336 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7338 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7339 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7340 cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h. */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7346 int i;
7347 _ACEOF
7348 rm -f conftest.$ac_objext
7349 if { (ac_try="$ac_compile"
7350 case "(($ac_try" in
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7353 esac
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355 (eval "$ac_compile") 2>conftest.er1
7356 ac_status=$?
7357 grep -v '^ *+' conftest.er1 >conftest.err
7358 rm -f conftest.er1
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && {
7362 test -z "$ac_c_werror_flag" ||
7363 test ! -s conftest.err
7364 } && test -s conftest.$ac_objext; then
7365 xorg_testset_unknown_warning_option=yes
7366 else
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7369
7370 xorg_testset_unknown_warning_option=no
7371 fi
7372
7373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7375 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7376 CFLAGS="$xorg_testset_save_CFLAGS"
7377 fi
7378
7379 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7380 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7382 fi
7383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7384 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7385 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7386 cat >conftest.$ac_ext <<_ACEOF
7387 /* confdefs.h. */
7388 _ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7392 int i;
7393 _ACEOF
7394 rm -f conftest.$ac_objext
7395 if { (ac_try="$ac_compile"
7396 case "(($ac_try" in
7397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7398 *) ac_try_echo=$ac_try;;
7399 esac
7400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7401 (eval "$ac_compile") 2>conftest.er1
7402 ac_status=$?
7403 grep -v '^ *+' conftest.er1 >conftest.err
7404 rm -f conftest.er1
7405 cat conftest.err >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } && {
7408 test -z "$ac_c_werror_flag" ||
7409 test ! -s conftest.err
7410 } && test -s conftest.$ac_objext; then
7411 xorg_testset_unused_command_line_argument=yes
7412 else
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7415
7416 xorg_testset_unused_command_line_argument=no
7417 fi
7418
7419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7420 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7421 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7422 CFLAGS="$xorg_testset_save_CFLAGS"
7423 fi
7424
7425 found="no"
7426
7427 if test $found = "no" ; then
7428 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7430 fi
7431
7432 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7434 fi
7435
7436 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7437
7438 { echo "$as_me:$LINENO: checking if $CC supports -Wmissing-format-attribute" >&5
7439 echo $ECHO_N "checking if $CC supports -Wmissing-format-attribute... $ECHO_C" >&6; }
7440 cat >conftest.$ac_ext <<_ACEOF
7441 /* confdefs.h. */
7442 _ACEOF
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h. */
7446 int i;
7447 int
7448 main ()
7449 {
7450
7451 ;
7452 return 0;
7453 }
7454 _ACEOF
7455 rm -f conftest.$ac_objext conftest$ac_exeext
7456 if { (ac_try="$ac_link"
7457 case "(($ac_try" in
7458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459 *) ac_try_echo=$ac_try;;
7460 esac
7461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7462 (eval "$ac_link") 2>conftest.er1
7463 ac_status=$?
7464 grep -v '^ *+' conftest.er1 >conftest.err
7465 rm -f conftest.er1
7466 cat conftest.err >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } && {
7469 test -z "$ac_c_werror_flag" ||
7470 test ! -s conftest.err
7471 } && test -s conftest$ac_exeext &&
7472 $as_test_x conftest$ac_exeext; then
7473 supported=yes
7474 else
7475 echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7477
7478 supported=no
7479 fi
7480
7481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7482 conftest$ac_exeext conftest.$ac_ext
7483 { echo "$as_me:$LINENO: result: $supported" >&5
7484 echo "${ECHO_T}$supported" >&6; }
7485 CFLAGS="$xorg_testset_save_CFLAGS"
7486
7487 if test "$supported" = "yes" ; then
7488 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7489 found="yes"
7490 fi
7491 fi
7492
7493
7494
7495
7496
7497
7498
7499 xorg_testset_save_CFLAGS="$CFLAGS"
7500
7501 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7503 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7504 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7505 cat >conftest.$ac_ext <<_ACEOF
7506 /* confdefs.h. */
7507 _ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7511 int i;
7512 _ACEOF
7513 rm -f conftest.$ac_objext
7514 if { (ac_try="$ac_compile"
7515 case "(($ac_try" in
7516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7517 *) ac_try_echo=$ac_try;;
7518 esac
7519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7520 (eval "$ac_compile") 2>conftest.er1
7521 ac_status=$?
7522 grep -v '^ *+' conftest.er1 >conftest.err
7523 rm -f conftest.er1
7524 cat conftest.err >&5
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); } && {
7527 test -z "$ac_c_werror_flag" ||
7528 test ! -s conftest.err
7529 } && test -s conftest.$ac_objext; then
7530 xorg_testset_unknown_warning_option=yes
7531 else
7532 echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7534
7535 xorg_testset_unknown_warning_option=no
7536 fi
7537
7538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7540 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7541 CFLAGS="$xorg_testset_save_CFLAGS"
7542 fi
7543
7544 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7545 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7547 fi
7548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7549 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7550 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7551 cat >conftest.$ac_ext <<_ACEOF
7552 /* confdefs.h. */
7553 _ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h. */
7557 int i;
7558 _ACEOF
7559 rm -f conftest.$ac_objext
7560 if { (ac_try="$ac_compile"
7561 case "(($ac_try" in
7562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7563 *) ac_try_echo=$ac_try;;
7564 esac
7565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7566 (eval "$ac_compile") 2>conftest.er1
7567 ac_status=$?
7568 grep -v '^ *+' conftest.er1 >conftest.err
7569 rm -f conftest.er1
7570 cat conftest.err >&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); } && {
7573 test -z "$ac_c_werror_flag" ||
7574 test ! -s conftest.err
7575 } && test -s conftest.$ac_objext; then
7576 xorg_testset_unused_command_line_argument=yes
7577 else
7578 echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.$ac_ext >&5
7580
7581 xorg_testset_unused_command_line_argument=no
7582 fi
7583
7584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7586 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7587 CFLAGS="$xorg_testset_save_CFLAGS"
7588 fi
7589
7590 found="no"
7591
7592 if test $found = "no" ; then
7593 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7595 fi
7596
7597 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7599 fi
7600
7601 CFLAGS="$CFLAGS -Wredundant-decls"
7602
7603 { echo "$as_me:$LINENO: checking if $CC supports -Wredundant-decls" >&5
7604 echo $ECHO_N "checking if $CC supports -Wredundant-decls... $ECHO_C" >&6; }
7605 cat >conftest.$ac_ext <<_ACEOF
7606 /* confdefs.h. */
7607 _ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7611 int i;
7612 int
7613 main ()
7614 {
7615
7616 ;
7617 return 0;
7618 }
7619 _ACEOF
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (ac_try="$ac_link"
7622 case "(($ac_try" in
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7625 esac
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627 (eval "$ac_link") 2>conftest.er1
7628 ac_status=$?
7629 grep -v '^ *+' conftest.er1 >conftest.err
7630 rm -f conftest.er1
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } && {
7634 test -z "$ac_c_werror_flag" ||
7635 test ! -s conftest.err
7636 } && test -s conftest$ac_exeext &&
7637 $as_test_x conftest$ac_exeext; then
7638 supported=yes
7639 else
7640 echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.$ac_ext >&5
7642
7643 supported=no
7644 fi
7645
7646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7647 conftest$ac_exeext conftest.$ac_ext
7648 { echo "$as_me:$LINENO: result: $supported" >&5
7649 echo "${ECHO_T}$supported" >&6; }
7650 CFLAGS="$xorg_testset_save_CFLAGS"
7651
7652 if test "$supported" = "yes" ; then
7653 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7654 found="yes"
7655 fi
7656 fi
7657
7658
7659
7660 # These are currently disabled because they are noisy. They will be enabled
7661 # in the future once the codebase is sufficiently modernized to silence
7662 # them. For now, I don't want them to drown out the other warnings.
7663 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
7664 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
7665 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
7666
7667 # Turn some warnings into errors, so we don't accidently get successful builds
7668 # when there are problems that should be fixed.
7669
7670 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7671
7672
7673
7674
7675
7676 xorg_testset_save_CFLAGS="$CFLAGS"
7677
7678 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7680 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7681 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7682 cat >conftest.$ac_ext <<_ACEOF
7683 /* confdefs.h. */
7684 _ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7688 int i;
7689 _ACEOF
7690 rm -f conftest.$ac_objext
7691 if { (ac_try="$ac_compile"
7692 case "(($ac_try" in
7693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694 *) ac_try_echo=$ac_try;;
7695 esac
7696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7697 (eval "$ac_compile") 2>conftest.er1
7698 ac_status=$?
7699 grep -v '^ *+' conftest.er1 >conftest.err
7700 rm -f conftest.er1
7701 cat conftest.err >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } && {
7704 test -z "$ac_c_werror_flag" ||
7705 test ! -s conftest.err
7706 } && test -s conftest.$ac_objext; then
7707 xorg_testset_unknown_warning_option=yes
7708 else
7709 echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7711
7712 xorg_testset_unknown_warning_option=no
7713 fi
7714
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7717 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7718 CFLAGS="$xorg_testset_save_CFLAGS"
7719 fi
7720
7721 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7722 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7724 fi
7725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7726 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7727 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7728 cat >conftest.$ac_ext <<_ACEOF
7729 /* confdefs.h. */
7730 _ACEOF
7731 cat confdefs.h >>conftest.$ac_ext
7732 cat >>conftest.$ac_ext <<_ACEOF
7733 /* end confdefs.h. */
7734 int i;
7735 _ACEOF
7736 rm -f conftest.$ac_objext
7737 if { (ac_try="$ac_compile"
7738 case "(($ac_try" in
7739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740 *) ac_try_echo=$ac_try;;
7741 esac
7742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743 (eval "$ac_compile") 2>conftest.er1
7744 ac_status=$?
7745 grep -v '^ *+' conftest.er1 >conftest.err
7746 rm -f conftest.er1
7747 cat conftest.err >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } && {
7750 test -z "$ac_c_werror_flag" ||
7751 test ! -s conftest.err
7752 } && test -s conftest.$ac_objext; then
7753 xorg_testset_unused_command_line_argument=yes
7754 else
7755 echo "$as_me: failed program was:" >&5
7756 sed 's/^/| /' conftest.$ac_ext >&5
7757
7758 xorg_testset_unused_command_line_argument=no
7759 fi
7760
7761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7762 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7763 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7764 CFLAGS="$xorg_testset_save_CFLAGS"
7765 fi
7766
7767 found="no"
7768
7769 if test $found = "no" ; then
7770 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7772 fi
7773
7774 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7776 fi
7777
7778 CFLAGS="$CFLAGS -Werror=implicit"
7779
7780 { echo "$as_me:$LINENO: checking if $CC supports -Werror=implicit" >&5
7781 echo $ECHO_N "checking if $CC supports -Werror=implicit... $ECHO_C" >&6; }
7782 cat >conftest.$ac_ext <<_ACEOF
7783 /* confdefs.h. */
7784 _ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7788 int i;
7789 int
7790 main ()
7791 {
7792
7793 ;
7794 return 0;
7795 }
7796 _ACEOF
7797 rm -f conftest.$ac_objext conftest$ac_exeext
7798 if { (ac_try="$ac_link"
7799 case "(($ac_try" in
7800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801 *) ac_try_echo=$ac_try;;
7802 esac
7803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804 (eval "$ac_link") 2>conftest.er1
7805 ac_status=$?
7806 grep -v '^ *+' conftest.er1 >conftest.err
7807 rm -f conftest.er1
7808 cat conftest.err >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } && {
7811 test -z "$ac_c_werror_flag" ||
7812 test ! -s conftest.err
7813 } && test -s conftest$ac_exeext &&
7814 $as_test_x conftest$ac_exeext; then
7815 supported=yes
7816 else
7817 echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7819
7820 supported=no
7821 fi
7822
7823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7824 conftest$ac_exeext conftest.$ac_ext
7825 { echo "$as_me:$LINENO: result: $supported" >&5
7826 echo "${ECHO_T}$supported" >&6; }
7827 CFLAGS="$xorg_testset_save_CFLAGS"
7828
7829 if test "$supported" = "yes" ; then
7830 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7831 found="yes"
7832 fi
7833 fi
7834
7835 if test $found = "no" ; then
7836 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7838 fi
7839
7840 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7842 fi
7843
7844 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7845
7846 { echo "$as_me:$LINENO: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7847 echo $ECHO_N "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... $ECHO_C" >&6; }
7848 cat >conftest.$ac_ext <<_ACEOF
7849 /* confdefs.h. */
7850 _ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7854 int i;
7855 int
7856 main ()
7857 {
7858
7859 ;
7860 return 0;
7861 }
7862 _ACEOF
7863 rm -f conftest.$ac_objext conftest$ac_exeext
7864 if { (ac_try="$ac_link"
7865 case "(($ac_try" in
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7868 esac
7869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870 (eval "$ac_link") 2>conftest.er1
7871 ac_status=$?
7872 grep -v '^ *+' conftest.er1 >conftest.err
7873 rm -f conftest.er1
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } && {
7877 test -z "$ac_c_werror_flag" ||
7878 test ! -s conftest.err
7879 } && test -s conftest$ac_exeext &&
7880 $as_test_x conftest$ac_exeext; then
7881 supported=yes
7882 else
7883 echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.$ac_ext >&5
7885
7886 supported=no
7887 fi
7888
7889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7890 conftest$ac_exeext conftest.$ac_ext
7891 { echo "$as_me:$LINENO: result: $supported" >&5
7892 echo "${ECHO_T}$supported" >&6; }
7893 CFLAGS="$xorg_testset_save_CFLAGS"
7894
7895 if test "$supported" = "yes" ; then
7896 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7897 found="yes"
7898 fi
7899 fi
7900
7901
7902
7903
7904
7905
7906
7907 xorg_testset_save_CFLAGS="$CFLAGS"
7908
7909 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7911 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7912 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7913 cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h. */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7919 int i;
7920 _ACEOF
7921 rm -f conftest.$ac_objext
7922 if { (ac_try="$ac_compile"
7923 case "(($ac_try" in
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7926 esac
7927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7928 (eval "$ac_compile") 2>conftest.er1
7929 ac_status=$?
7930 grep -v '^ *+' conftest.er1 >conftest.err
7931 rm -f conftest.er1
7932 cat conftest.err >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } && {
7935 test -z "$ac_c_werror_flag" ||
7936 test ! -s conftest.err
7937 } && test -s conftest.$ac_objext; then
7938 xorg_testset_unknown_warning_option=yes
7939 else
7940 echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7942
7943 xorg_testset_unknown_warning_option=no
7944 fi
7945
7946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7947 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7948 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7949 CFLAGS="$xorg_testset_save_CFLAGS"
7950 fi
7951
7952 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7953 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7955 fi
7956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7957 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7958 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7959 cat >conftest.$ac_ext <<_ACEOF
7960 /* confdefs.h. */
7961 _ACEOF
7962 cat confdefs.h >>conftest.$ac_ext
7963 cat >>conftest.$ac_ext <<_ACEOF
7964 /* end confdefs.h. */
7965 int i;
7966 _ACEOF
7967 rm -f conftest.$ac_objext
7968 if { (ac_try="$ac_compile"
7969 case "(($ac_try" in
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7972 esac
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 (eval "$ac_compile") 2>conftest.er1
7975 ac_status=$?
7976 grep -v '^ *+' conftest.er1 >conftest.err
7977 rm -f conftest.er1
7978 cat conftest.err >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } && {
7981 test -z "$ac_c_werror_flag" ||
7982 test ! -s conftest.err
7983 } && test -s conftest.$ac_objext; then
7984 xorg_testset_unused_command_line_argument=yes
7985 else
7986 echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7988
7989 xorg_testset_unused_command_line_argument=no
7990 fi
7991
7992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7993 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7994 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7995 CFLAGS="$xorg_testset_save_CFLAGS"
7996 fi
7997
7998 found="no"
7999
8000 if test $found = "no" ; then
8001 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8003 fi
8004
8005 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8007 fi
8008
8009 CFLAGS="$CFLAGS -Werror=nonnull"
8010
8011 { echo "$as_me:$LINENO: checking if $CC supports -Werror=nonnull" >&5
8012 echo $ECHO_N "checking if $CC supports -Werror=nonnull... $ECHO_C" >&6; }
8013 cat >conftest.$ac_ext <<_ACEOF
8014 /* confdefs.h. */
8015 _ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h. */
8019 int i;
8020 int
8021 main ()
8022 {
8023
8024 ;
8025 return 0;
8026 }
8027 _ACEOF
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (ac_try="$ac_link"
8030 case "(($ac_try" in
8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8033 esac
8034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035 (eval "$ac_link") 2>conftest.er1
8036 ac_status=$?
8037 grep -v '^ *+' conftest.er1 >conftest.err
8038 rm -f conftest.er1
8039 cat conftest.err >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } && {
8042 test -z "$ac_c_werror_flag" ||
8043 test ! -s conftest.err
8044 } && test -s conftest$ac_exeext &&
8045 $as_test_x conftest$ac_exeext; then
8046 supported=yes
8047 else
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8050
8051 supported=no
8052 fi
8053
8054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8055 conftest$ac_exeext conftest.$ac_ext
8056 { echo "$as_me:$LINENO: result: $supported" >&5
8057 echo "${ECHO_T}$supported" >&6; }
8058 CFLAGS="$xorg_testset_save_CFLAGS"
8059
8060 if test "$supported" = "yes" ; then
8061 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
8062 found="yes"
8063 fi
8064 fi
8065
8066
8067
8068
8069
8070
8071
8072 xorg_testset_save_CFLAGS="$CFLAGS"
8073
8074 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8076 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8077 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8078 cat >conftest.$ac_ext <<_ACEOF
8079 /* confdefs.h. */
8080 _ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h. */
8084 int i;
8085 _ACEOF
8086 rm -f conftest.$ac_objext
8087 if { (ac_try="$ac_compile"
8088 case "(($ac_try" in
8089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090 *) ac_try_echo=$ac_try;;
8091 esac
8092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8093 (eval "$ac_compile") 2>conftest.er1
8094 ac_status=$?
8095 grep -v '^ *+' conftest.er1 >conftest.err
8096 rm -f conftest.er1
8097 cat conftest.err >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } && {
8100 test -z "$ac_c_werror_flag" ||
8101 test ! -s conftest.err
8102 } && test -s conftest.$ac_objext; then
8103 xorg_testset_unknown_warning_option=yes
8104 else
8105 echo "$as_me: failed program was:" >&5
8106 sed 's/^/| /' conftest.$ac_ext >&5
8107
8108 xorg_testset_unknown_warning_option=no
8109 fi
8110
8111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8112 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8113 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8114 CFLAGS="$xorg_testset_save_CFLAGS"
8115 fi
8116
8117 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8118 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8120 fi
8121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8122 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8123 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8124 cat >conftest.$ac_ext <<_ACEOF
8125 /* confdefs.h. */
8126 _ACEOF
8127 cat confdefs.h >>conftest.$ac_ext
8128 cat >>conftest.$ac_ext <<_ACEOF
8129 /* end confdefs.h. */
8130 int i;
8131 _ACEOF
8132 rm -f conftest.$ac_objext
8133 if { (ac_try="$ac_compile"
8134 case "(($ac_try" in
8135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136 *) ac_try_echo=$ac_try;;
8137 esac
8138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139 (eval "$ac_compile") 2>conftest.er1
8140 ac_status=$?
8141 grep -v '^ *+' conftest.er1 >conftest.err
8142 rm -f conftest.er1
8143 cat conftest.err >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } && {
8146 test -z "$ac_c_werror_flag" ||
8147 test ! -s conftest.err
8148 } && test -s conftest.$ac_objext; then
8149 xorg_testset_unused_command_line_argument=yes
8150 else
8151 echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8153
8154 xorg_testset_unused_command_line_argument=no
8155 fi
8156
8157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8159 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8160 CFLAGS="$xorg_testset_save_CFLAGS"
8161 fi
8162
8163 found="no"
8164
8165 if test $found = "no" ; then
8166 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8168 fi
8169
8170 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8172 fi
8173
8174 CFLAGS="$CFLAGS -Werror=init-self"
8175
8176 { echo "$as_me:$LINENO: checking if $CC supports -Werror=init-self" >&5
8177 echo $ECHO_N "checking if $CC supports -Werror=init-self... $ECHO_C" >&6; }
8178 cat >conftest.$ac_ext <<_ACEOF
8179 /* confdefs.h. */
8180 _ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h. */
8184 int i;
8185 int
8186 main ()
8187 {
8188
8189 ;
8190 return 0;
8191 }
8192 _ACEOF
8193 rm -f conftest.$ac_objext conftest$ac_exeext
8194 if { (ac_try="$ac_link"
8195 case "(($ac_try" in
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8198 esac
8199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200 (eval "$ac_link") 2>conftest.er1
8201 ac_status=$?
8202 grep -v '^ *+' conftest.er1 >conftest.err
8203 rm -f conftest.er1
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } && {
8207 test -z "$ac_c_werror_flag" ||
8208 test ! -s conftest.err
8209 } && test -s conftest$ac_exeext &&
8210 $as_test_x conftest$ac_exeext; then
8211 supported=yes
8212 else
8213 echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8215
8216 supported=no
8217 fi
8218
8219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8220 conftest$ac_exeext conftest.$ac_ext
8221 { echo "$as_me:$LINENO: result: $supported" >&5
8222 echo "${ECHO_T}$supported" >&6; }
8223 CFLAGS="$xorg_testset_save_CFLAGS"
8224
8225 if test "$supported" = "yes" ; then
8226 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
8227 found="yes"
8228 fi
8229 fi
8230
8231
8232
8233
8234
8235
8236
8237 xorg_testset_save_CFLAGS="$CFLAGS"
8238
8239 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8241 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8242 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8243 cat >conftest.$ac_ext <<_ACEOF
8244 /* confdefs.h. */
8245 _ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h. */
8249 int i;
8250 _ACEOF
8251 rm -f conftest.$ac_objext
8252 if { (ac_try="$ac_compile"
8253 case "(($ac_try" in
8254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8256 esac
8257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258 (eval "$ac_compile") 2>conftest.er1
8259 ac_status=$?
8260 grep -v '^ *+' conftest.er1 >conftest.err
8261 rm -f conftest.er1
8262 cat conftest.err >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } && {
8265 test -z "$ac_c_werror_flag" ||
8266 test ! -s conftest.err
8267 } && test -s conftest.$ac_objext; then
8268 xorg_testset_unknown_warning_option=yes
8269 else
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8272
8273 xorg_testset_unknown_warning_option=no
8274 fi
8275
8276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8277 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8278 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8279 CFLAGS="$xorg_testset_save_CFLAGS"
8280 fi
8281
8282 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8283 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8285 fi
8286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8287 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8288 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8289 cat >conftest.$ac_ext <<_ACEOF
8290 /* confdefs.h. */
8291 _ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h. */
8295 int i;
8296 _ACEOF
8297 rm -f conftest.$ac_objext
8298 if { (ac_try="$ac_compile"
8299 case "(($ac_try" in
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8302 esac
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304 (eval "$ac_compile") 2>conftest.er1
8305 ac_status=$?
8306 grep -v '^ *+' conftest.er1 >conftest.err
8307 rm -f conftest.er1
8308 cat conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } && {
8311 test -z "$ac_c_werror_flag" ||
8312 test ! -s conftest.err
8313 } && test -s conftest.$ac_objext; then
8314 xorg_testset_unused_command_line_argument=yes
8315 else
8316 echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8318
8319 xorg_testset_unused_command_line_argument=no
8320 fi
8321
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8324 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8325 CFLAGS="$xorg_testset_save_CFLAGS"
8326 fi
8327
8328 found="no"
8329
8330 if test $found = "no" ; then
8331 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8333 fi
8334
8335 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8337 fi
8338
8339 CFLAGS="$CFLAGS -Werror=main"
8340
8341 { echo "$as_me:$LINENO: checking if $CC supports -Werror=main" >&5
8342 echo $ECHO_N "checking if $CC supports -Werror=main... $ECHO_C" >&6; }
8343 cat >conftest.$ac_ext <<_ACEOF
8344 /* confdefs.h. */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8349 int i;
8350 int
8351 main ()
8352 {
8353
8354 ;
8355 return 0;
8356 }
8357 _ACEOF
8358 rm -f conftest.$ac_objext conftest$ac_exeext
8359 if { (ac_try="$ac_link"
8360 case "(($ac_try" in
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8363 esac
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365 (eval "$ac_link") 2>conftest.er1
8366 ac_status=$?
8367 grep -v '^ *+' conftest.er1 >conftest.err
8368 rm -f conftest.er1
8369 cat conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } && {
8372 test -z "$ac_c_werror_flag" ||
8373 test ! -s conftest.err
8374 } && test -s conftest$ac_exeext &&
8375 $as_test_x conftest$ac_exeext; then
8376 supported=yes
8377 else
8378 echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8380
8381 supported=no
8382 fi
8383
8384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8385 conftest$ac_exeext conftest.$ac_ext
8386 { echo "$as_me:$LINENO: result: $supported" >&5
8387 echo "${ECHO_T}$supported" >&6; }
8388 CFLAGS="$xorg_testset_save_CFLAGS"
8389
8390 if test "$supported" = "yes" ; then
8391 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8392 found="yes"
8393 fi
8394 fi
8395
8396
8397
8398
8399
8400
8401
8402 xorg_testset_save_CFLAGS="$CFLAGS"
8403
8404 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8406 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8407 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8408 cat >conftest.$ac_ext <<_ACEOF
8409 /* confdefs.h. */
8410 _ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h. */
8414 int i;
8415 _ACEOF
8416 rm -f conftest.$ac_objext
8417 if { (ac_try="$ac_compile"
8418 case "(($ac_try" in
8419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8420 *) ac_try_echo=$ac_try;;
8421 esac
8422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8423 (eval "$ac_compile") 2>conftest.er1
8424 ac_status=$?
8425 grep -v '^ *+' conftest.er1 >conftest.err
8426 rm -f conftest.er1
8427 cat conftest.err >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } && {
8430 test -z "$ac_c_werror_flag" ||
8431 test ! -s conftest.err
8432 } && test -s conftest.$ac_objext; then
8433 xorg_testset_unknown_warning_option=yes
8434 else
8435 echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8437
8438 xorg_testset_unknown_warning_option=no
8439 fi
8440
8441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8442 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8443 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8444 CFLAGS="$xorg_testset_save_CFLAGS"
8445 fi
8446
8447 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8448 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8450 fi
8451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8452 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8453 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8454 cat >conftest.$ac_ext <<_ACEOF
8455 /* confdefs.h. */
8456 _ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h. */
8460 int i;
8461 _ACEOF
8462 rm -f conftest.$ac_objext
8463 if { (ac_try="$ac_compile"
8464 case "(($ac_try" in
8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8467 esac
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_compile") 2>conftest.er1
8470 ac_status=$?
8471 grep -v '^ *+' conftest.er1 >conftest.err
8472 rm -f conftest.er1
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } && {
8476 test -z "$ac_c_werror_flag" ||
8477 test ! -s conftest.err
8478 } && test -s conftest.$ac_objext; then
8479 xorg_testset_unused_command_line_argument=yes
8480 else
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8483
8484 xorg_testset_unused_command_line_argument=no
8485 fi
8486
8487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8489 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8490 CFLAGS="$xorg_testset_save_CFLAGS"
8491 fi
8492
8493 found="no"
8494
8495 if test $found = "no" ; then
8496 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8498 fi
8499
8500 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8502 fi
8503
8504 CFLAGS="$CFLAGS -Werror=missing-braces"
8505
8506 { echo "$as_me:$LINENO: checking if $CC supports -Werror=missing-braces" >&5
8507 echo $ECHO_N "checking if $CC supports -Werror=missing-braces... $ECHO_C" >&6; }
8508 cat >conftest.$ac_ext <<_ACEOF
8509 /* confdefs.h. */
8510 _ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8514 int i;
8515 int
8516 main ()
8517 {
8518
8519 ;
8520 return 0;
8521 }
8522 _ACEOF
8523 rm -f conftest.$ac_objext conftest$ac_exeext
8524 if { (ac_try="$ac_link"
8525 case "(($ac_try" in
8526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8528 esac
8529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530 (eval "$ac_link") 2>conftest.er1
8531 ac_status=$?
8532 grep -v '^ *+' conftest.er1 >conftest.err
8533 rm -f conftest.er1
8534 cat conftest.err >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } && {
8537 test -z "$ac_c_werror_flag" ||
8538 test ! -s conftest.err
8539 } && test -s conftest$ac_exeext &&
8540 $as_test_x conftest$ac_exeext; then
8541 supported=yes
8542 else
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8545
8546 supported=no
8547 fi
8548
8549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8550 conftest$ac_exeext conftest.$ac_ext
8551 { echo "$as_me:$LINENO: result: $supported" >&5
8552 echo "${ECHO_T}$supported" >&6; }
8553 CFLAGS="$xorg_testset_save_CFLAGS"
8554
8555 if test "$supported" = "yes" ; then
8556 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8557 found="yes"
8558 fi
8559 fi
8560
8561
8562
8563
8564
8565
8566
8567 xorg_testset_save_CFLAGS="$CFLAGS"
8568
8569 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8571 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8572 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8573 cat >conftest.$ac_ext <<_ACEOF
8574 /* confdefs.h. */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8579 int i;
8580 _ACEOF
8581 rm -f conftest.$ac_objext
8582 if { (ac_try="$ac_compile"
8583 case "(($ac_try" in
8584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585 *) ac_try_echo=$ac_try;;
8586 esac
8587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8588 (eval "$ac_compile") 2>conftest.er1
8589 ac_status=$?
8590 grep -v '^ *+' conftest.er1 >conftest.err
8591 rm -f conftest.er1
8592 cat conftest.err >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } && {
8595 test -z "$ac_c_werror_flag" ||
8596 test ! -s conftest.err
8597 } && test -s conftest.$ac_objext; then
8598 xorg_testset_unknown_warning_option=yes
8599 else
8600 echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8602
8603 xorg_testset_unknown_warning_option=no
8604 fi
8605
8606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8608 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8609 CFLAGS="$xorg_testset_save_CFLAGS"
8610 fi
8611
8612 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8613 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8615 fi
8616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8617 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8618 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8619 cat >conftest.$ac_ext <<_ACEOF
8620 /* confdefs.h. */
8621 _ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8625 int i;
8626 _ACEOF
8627 rm -f conftest.$ac_objext
8628 if { (ac_try="$ac_compile"
8629 case "(($ac_try" in
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8632 esac
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_compile") 2>conftest.er1
8635 ac_status=$?
8636 grep -v '^ *+' conftest.er1 >conftest.err
8637 rm -f conftest.er1
8638 cat conftest.err >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } && {
8641 test -z "$ac_c_werror_flag" ||
8642 test ! -s conftest.err
8643 } && test -s conftest.$ac_objext; then
8644 xorg_testset_unused_command_line_argument=yes
8645 else
8646 echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8648
8649 xorg_testset_unused_command_line_argument=no
8650 fi
8651
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8654 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8655 CFLAGS="$xorg_testset_save_CFLAGS"
8656 fi
8657
8658 found="no"
8659
8660 if test $found = "no" ; then
8661 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8663 fi
8664
8665 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8667 fi
8668
8669 CFLAGS="$CFLAGS -Werror=sequence-point"
8670
8671 { echo "$as_me:$LINENO: checking if $CC supports -Werror=sequence-point" >&5
8672 echo $ECHO_N "checking if $CC supports -Werror=sequence-point... $ECHO_C" >&6; }
8673 cat >conftest.$ac_ext <<_ACEOF
8674 /* confdefs.h. */
8675 _ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8679 int i;
8680 int
8681 main ()
8682 {
8683
8684 ;
8685 return 0;
8686 }
8687 _ACEOF
8688 rm -f conftest.$ac_objext conftest$ac_exeext
8689 if { (ac_try="$ac_link"
8690 case "(($ac_try" in
8691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692 *) ac_try_echo=$ac_try;;
8693 esac
8694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695 (eval "$ac_link") 2>conftest.er1
8696 ac_status=$?
8697 grep -v '^ *+' conftest.er1 >conftest.err
8698 rm -f conftest.er1
8699 cat conftest.err >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } && {
8702 test -z "$ac_c_werror_flag" ||
8703 test ! -s conftest.err
8704 } && test -s conftest$ac_exeext &&
8705 $as_test_x conftest$ac_exeext; then
8706 supported=yes
8707 else
8708 echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8710
8711 supported=no
8712 fi
8713
8714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8715 conftest$ac_exeext conftest.$ac_ext
8716 { echo "$as_me:$LINENO: result: $supported" >&5
8717 echo "${ECHO_T}$supported" >&6; }
8718 CFLAGS="$xorg_testset_save_CFLAGS"
8719
8720 if test "$supported" = "yes" ; then
8721 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8722 found="yes"
8723 fi
8724 fi
8725
8726
8727
8728
8729
8730
8731
8732 xorg_testset_save_CFLAGS="$CFLAGS"
8733
8734 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8736 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8737 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8738 cat >conftest.$ac_ext <<_ACEOF
8739 /* confdefs.h. */
8740 _ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8744 int i;
8745 _ACEOF
8746 rm -f conftest.$ac_objext
8747 if { (ac_try="$ac_compile"
8748 case "(($ac_try" in
8749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750 *) ac_try_echo=$ac_try;;
8751 esac
8752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8753 (eval "$ac_compile") 2>conftest.er1
8754 ac_status=$?
8755 grep -v '^ *+' conftest.er1 >conftest.err
8756 rm -f conftest.er1
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } && {
8760 test -z "$ac_c_werror_flag" ||
8761 test ! -s conftest.err
8762 } && test -s conftest.$ac_objext; then
8763 xorg_testset_unknown_warning_option=yes
8764 else
8765 echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8767
8768 xorg_testset_unknown_warning_option=no
8769 fi
8770
8771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8772 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8773 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8774 CFLAGS="$xorg_testset_save_CFLAGS"
8775 fi
8776
8777 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8778 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8780 fi
8781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8782 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8783 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8784 cat >conftest.$ac_ext <<_ACEOF
8785 /* confdefs.h. */
8786 _ACEOF
8787 cat confdefs.h >>conftest.$ac_ext
8788 cat >>conftest.$ac_ext <<_ACEOF
8789 /* end confdefs.h. */
8790 int i;
8791 _ACEOF
8792 rm -f conftest.$ac_objext
8793 if { (ac_try="$ac_compile"
8794 case "(($ac_try" in
8795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8796 *) ac_try_echo=$ac_try;;
8797 esac
8798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8799 (eval "$ac_compile") 2>conftest.er1
8800 ac_status=$?
8801 grep -v '^ *+' conftest.er1 >conftest.err
8802 rm -f conftest.er1
8803 cat conftest.err >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } && {
8806 test -z "$ac_c_werror_flag" ||
8807 test ! -s conftest.err
8808 } && test -s conftest.$ac_objext; then
8809 xorg_testset_unused_command_line_argument=yes
8810 else
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8813
8814 xorg_testset_unused_command_line_argument=no
8815 fi
8816
8817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8818 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8819 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8820 CFLAGS="$xorg_testset_save_CFLAGS"
8821 fi
8822
8823 found="no"
8824
8825 if test $found = "no" ; then
8826 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8828 fi
8829
8830 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8832 fi
8833
8834 CFLAGS="$CFLAGS -Werror=return-type"
8835
8836 { echo "$as_me:$LINENO: checking if $CC supports -Werror=return-type" >&5
8837 echo $ECHO_N "checking if $CC supports -Werror=return-type... $ECHO_C" >&6; }
8838 cat >conftest.$ac_ext <<_ACEOF
8839 /* confdefs.h. */
8840 _ACEOF
8841 cat confdefs.h >>conftest.$ac_ext
8842 cat >>conftest.$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8844 int i;
8845 int
8846 main ()
8847 {
8848
8849 ;
8850 return 0;
8851 }
8852 _ACEOF
8853 rm -f conftest.$ac_objext conftest$ac_exeext
8854 if { (ac_try="$ac_link"
8855 case "(($ac_try" in
8856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8857 *) ac_try_echo=$ac_try;;
8858 esac
8859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8860 (eval "$ac_link") 2>conftest.er1
8861 ac_status=$?
8862 grep -v '^ *+' conftest.er1 >conftest.err
8863 rm -f conftest.er1
8864 cat conftest.err >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); } && {
8867 test -z "$ac_c_werror_flag" ||
8868 test ! -s conftest.err
8869 } && test -s conftest$ac_exeext &&
8870 $as_test_x conftest$ac_exeext; then
8871 supported=yes
8872 else
8873 echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8875
8876 supported=no
8877 fi
8878
8879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8880 conftest$ac_exeext conftest.$ac_ext
8881 { echo "$as_me:$LINENO: result: $supported" >&5
8882 echo "${ECHO_T}$supported" >&6; }
8883 CFLAGS="$xorg_testset_save_CFLAGS"
8884
8885 if test "$supported" = "yes" ; then
8886 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8887 found="yes"
8888 fi
8889 fi
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 -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8901
8902 { echo "$as_me:$LINENO: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8903 echo $ECHO_N "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... $ECHO_C" >&6; }
8904 cat >conftest.$ac_ext <<_ACEOF
8905 /* confdefs.h. */
8906 _ACEOF
8907 cat confdefs.h >>conftest.$ac_ext
8908 cat >>conftest.$ac_ext <<_ACEOF
8909 /* end confdefs.h. */
8910 int i;
8911 int
8912 main ()
8913 {
8914
8915 ;
8916 return 0;
8917 }
8918 _ACEOF
8919 rm -f conftest.$ac_objext conftest$ac_exeext
8920 if { (ac_try="$ac_link"
8921 case "(($ac_try" in
8922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8923 *) ac_try_echo=$ac_try;;
8924 esac
8925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8926 (eval "$ac_link") 2>conftest.er1
8927 ac_status=$?
8928 grep -v '^ *+' conftest.er1 >conftest.err
8929 rm -f conftest.er1
8930 cat conftest.err >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } && {
8933 test -z "$ac_c_werror_flag" ||
8934 test ! -s conftest.err
8935 } && test -s conftest$ac_exeext &&
8936 $as_test_x conftest$ac_exeext; then
8937 supported=yes
8938 else
8939 echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8941
8942 supported=no
8943 fi
8944
8945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8946 conftest$ac_exeext conftest.$ac_ext
8947 { echo "$as_me:$LINENO: result: $supported" >&5
8948 echo "${ECHO_T}$supported" >&6; }
8949 CFLAGS="$xorg_testset_save_CFLAGS"
8950
8951 if test "$supported" = "yes" ; then
8952 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8953 found="yes"
8954 fi
8955 fi
8956
8957
8958
8959
8960
8961
8962
8963 xorg_testset_save_CFLAGS="$CFLAGS"
8964
8965 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8967 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8968 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8969 cat >conftest.$ac_ext <<_ACEOF
8970 /* confdefs.h. */
8971 _ACEOF
8972 cat confdefs.h >>conftest.$ac_ext
8973 cat >>conftest.$ac_ext <<_ACEOF
8974 /* end confdefs.h. */
8975 int i;
8976 _ACEOF
8977 rm -f conftest.$ac_objext
8978 if { (ac_try="$ac_compile"
8979 case "(($ac_try" in
8980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981 *) ac_try_echo=$ac_try;;
8982 esac
8983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8984 (eval "$ac_compile") 2>conftest.er1
8985 ac_status=$?
8986 grep -v '^ *+' conftest.er1 >conftest.err
8987 rm -f conftest.er1
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } && {
8991 test -z "$ac_c_werror_flag" ||
8992 test ! -s conftest.err
8993 } && test -s conftest.$ac_objext; then
8994 xorg_testset_unknown_warning_option=yes
8995 else
8996 echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8998
8999 xorg_testset_unknown_warning_option=no
9000 fi
9001
9002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9003 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9004 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9005 CFLAGS="$xorg_testset_save_CFLAGS"
9006 fi
9007
9008 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9009 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9011 fi
9012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9013 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9014 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9015 cat >conftest.$ac_ext <<_ACEOF
9016 /* confdefs.h. */
9017 _ACEOF
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h. */
9021 int i;
9022 _ACEOF
9023 rm -f conftest.$ac_objext
9024 if { (ac_try="$ac_compile"
9025 case "(($ac_try" in
9026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9027 *) ac_try_echo=$ac_try;;
9028 esac
9029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9030 (eval "$ac_compile") 2>conftest.er1
9031 ac_status=$?
9032 grep -v '^ *+' conftest.er1 >conftest.err
9033 rm -f conftest.er1
9034 cat conftest.err >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } && {
9037 test -z "$ac_c_werror_flag" ||
9038 test ! -s conftest.err
9039 } && test -s conftest.$ac_objext; then
9040 xorg_testset_unused_command_line_argument=yes
9041 else
9042 echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9044
9045 xorg_testset_unused_command_line_argument=no
9046 fi
9047
9048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9049 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9050 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9051 CFLAGS="$xorg_testset_save_CFLAGS"
9052 fi
9053
9054 found="no"
9055
9056 if test $found = "no" ; then
9057 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9059 fi
9060
9061 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9063 fi
9064
9065 CFLAGS="$CFLAGS -Werror=trigraphs"
9066
9067 { echo "$as_me:$LINENO: checking if $CC supports -Werror=trigraphs" >&5
9068 echo $ECHO_N "checking if $CC supports -Werror=trigraphs... $ECHO_C" >&6; }
9069 cat >conftest.$ac_ext <<_ACEOF
9070 /* confdefs.h. */
9071 _ACEOF
9072 cat confdefs.h >>conftest.$ac_ext
9073 cat >>conftest.$ac_ext <<_ACEOF
9074 /* end confdefs.h. */
9075 int i;
9076 int
9077 main ()
9078 {
9079
9080 ;
9081 return 0;
9082 }
9083 _ACEOF
9084 rm -f conftest.$ac_objext conftest$ac_exeext
9085 if { (ac_try="$ac_link"
9086 case "(($ac_try" in
9087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9088 *) ac_try_echo=$ac_try;;
9089 esac
9090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9091 (eval "$ac_link") 2>conftest.er1
9092 ac_status=$?
9093 grep -v '^ *+' conftest.er1 >conftest.err
9094 rm -f conftest.er1
9095 cat conftest.err >&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); } && {
9098 test -z "$ac_c_werror_flag" ||
9099 test ! -s conftest.err
9100 } && test -s conftest$ac_exeext &&
9101 $as_test_x conftest$ac_exeext; then
9102 supported=yes
9103 else
9104 echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9106
9107 supported=no
9108 fi
9109
9110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9111 conftest$ac_exeext conftest.$ac_ext
9112 { echo "$as_me:$LINENO: result: $supported" >&5
9113 echo "${ECHO_T}$supported" >&6; }
9114 CFLAGS="$xorg_testset_save_CFLAGS"
9115
9116 if test "$supported" = "yes" ; then
9117 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
9118 found="yes"
9119 fi
9120 fi
9121
9122
9123
9124
9125
9126
9127
9128 xorg_testset_save_CFLAGS="$CFLAGS"
9129
9130 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9132 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9133 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9134 cat >conftest.$ac_ext <<_ACEOF
9135 /* confdefs.h. */
9136 _ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9140 int i;
9141 _ACEOF
9142 rm -f conftest.$ac_objext
9143 if { (ac_try="$ac_compile"
9144 case "(($ac_try" in
9145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146 *) ac_try_echo=$ac_try;;
9147 esac
9148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9149 (eval "$ac_compile") 2>conftest.er1
9150 ac_status=$?
9151 grep -v '^ *+' conftest.er1 >conftest.err
9152 rm -f conftest.er1
9153 cat conftest.err >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); } && {
9156 test -z "$ac_c_werror_flag" ||
9157 test ! -s conftest.err
9158 } && test -s conftest.$ac_objext; then
9159 xorg_testset_unknown_warning_option=yes
9160 else
9161 echo "$as_me: failed program was:" >&5
9162 sed 's/^/| /' conftest.$ac_ext >&5
9163
9164 xorg_testset_unknown_warning_option=no
9165 fi
9166
9167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9168 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9169 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9170 CFLAGS="$xorg_testset_save_CFLAGS"
9171 fi
9172
9173 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9174 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9176 fi
9177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9178 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9179 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9180 cat >conftest.$ac_ext <<_ACEOF
9181 /* confdefs.h. */
9182 _ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9186 int i;
9187 _ACEOF
9188 rm -f conftest.$ac_objext
9189 if { (ac_try="$ac_compile"
9190 case "(($ac_try" in
9191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9192 *) ac_try_echo=$ac_try;;
9193 esac
9194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9195 (eval "$ac_compile") 2>conftest.er1
9196 ac_status=$?
9197 grep -v '^ *+' conftest.er1 >conftest.err
9198 rm -f conftest.er1
9199 cat conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } && {
9202 test -z "$ac_c_werror_flag" ||
9203 test ! -s conftest.err
9204 } && test -s conftest.$ac_objext; then
9205 xorg_testset_unused_command_line_argument=yes
9206 else
9207 echo "$as_me: failed program was:" >&5
9208 sed 's/^/| /' conftest.$ac_ext >&5
9209
9210 xorg_testset_unused_command_line_argument=no
9211 fi
9212
9213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9214 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9215 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9216 CFLAGS="$xorg_testset_save_CFLAGS"
9217 fi
9218
9219 found="no"
9220
9221 if test $found = "no" ; then
9222 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9224 fi
9225
9226 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9228 fi
9229
9230 CFLAGS="$CFLAGS -Werror=array-bounds"
9231
9232 { echo "$as_me:$LINENO: checking if $CC supports -Werror=array-bounds" >&5
9233 echo $ECHO_N "checking if $CC supports -Werror=array-bounds... $ECHO_C" >&6; }
9234 cat >conftest.$ac_ext <<_ACEOF
9235 /* confdefs.h. */
9236 _ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 int i;
9241 int
9242 main ()
9243 {
9244
9245 ;
9246 return 0;
9247 }
9248 _ACEOF
9249 rm -f conftest.$ac_objext conftest$ac_exeext
9250 if { (ac_try="$ac_link"
9251 case "(($ac_try" in
9252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9254 esac
9255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256 (eval "$ac_link") 2>conftest.er1
9257 ac_status=$?
9258 grep -v '^ *+' conftest.er1 >conftest.err
9259 rm -f conftest.er1
9260 cat conftest.err >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } && {
9263 test -z "$ac_c_werror_flag" ||
9264 test ! -s conftest.err
9265 } && test -s conftest$ac_exeext &&
9266 $as_test_x conftest$ac_exeext; then
9267 supported=yes
9268 else
9269 echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9271
9272 supported=no
9273 fi
9274
9275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9276 conftest$ac_exeext conftest.$ac_ext
9277 { echo "$as_me:$LINENO: result: $supported" >&5
9278 echo "${ECHO_T}$supported" >&6; }
9279 CFLAGS="$xorg_testset_save_CFLAGS"
9280
9281 if test "$supported" = "yes" ; then
9282 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
9283 found="yes"
9284 fi
9285 fi
9286
9287
9288
9289
9290
9291
9292
9293 xorg_testset_save_CFLAGS="$CFLAGS"
9294
9295 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9297 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9298 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9299 cat >conftest.$ac_ext <<_ACEOF
9300 /* confdefs.h. */
9301 _ACEOF
9302 cat confdefs.h >>conftest.$ac_ext
9303 cat >>conftest.$ac_ext <<_ACEOF
9304 /* end confdefs.h. */
9305 int i;
9306 _ACEOF
9307 rm -f conftest.$ac_objext
9308 if { (ac_try="$ac_compile"
9309 case "(($ac_try" in
9310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9311 *) ac_try_echo=$ac_try;;
9312 esac
9313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9314 (eval "$ac_compile") 2>conftest.er1
9315 ac_status=$?
9316 grep -v '^ *+' conftest.er1 >conftest.err
9317 rm -f conftest.er1
9318 cat conftest.err >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } && {
9321 test -z "$ac_c_werror_flag" ||
9322 test ! -s conftest.err
9323 } && test -s conftest.$ac_objext; then
9324 xorg_testset_unknown_warning_option=yes
9325 else
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9328
9329 xorg_testset_unknown_warning_option=no
9330 fi
9331
9332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9333 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9334 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9335 CFLAGS="$xorg_testset_save_CFLAGS"
9336 fi
9337
9338 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9339 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9341 fi
9342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9343 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9344 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9345 cat >conftest.$ac_ext <<_ACEOF
9346 /* confdefs.h. */
9347 _ACEOF
9348 cat confdefs.h >>conftest.$ac_ext
9349 cat >>conftest.$ac_ext <<_ACEOF
9350 /* end confdefs.h. */
9351 int i;
9352 _ACEOF
9353 rm -f conftest.$ac_objext
9354 if { (ac_try="$ac_compile"
9355 case "(($ac_try" in
9356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9357 *) ac_try_echo=$ac_try;;
9358 esac
9359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360 (eval "$ac_compile") 2>conftest.er1
9361 ac_status=$?
9362 grep -v '^ *+' conftest.er1 >conftest.err
9363 rm -f conftest.er1
9364 cat conftest.err >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } && {
9367 test -z "$ac_c_werror_flag" ||
9368 test ! -s conftest.err
9369 } && test -s conftest.$ac_objext; then
9370 xorg_testset_unused_command_line_argument=yes
9371 else
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9374
9375 xorg_testset_unused_command_line_argument=no
9376 fi
9377
9378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9379 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9380 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9381 CFLAGS="$xorg_testset_save_CFLAGS"
9382 fi
9383
9384 found="no"
9385
9386 if test $found = "no" ; then
9387 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9389 fi
9390
9391 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9393 fi
9394
9395 CFLAGS="$CFLAGS -Werror=write-strings"
9396
9397 { echo "$as_me:$LINENO: checking if $CC supports -Werror=write-strings" >&5
9398 echo $ECHO_N "checking if $CC supports -Werror=write-strings... $ECHO_C" >&6; }
9399 cat >conftest.$ac_ext <<_ACEOF
9400 /* confdefs.h. */
9401 _ACEOF
9402 cat confdefs.h >>conftest.$ac_ext
9403 cat >>conftest.$ac_ext <<_ACEOF
9404 /* end confdefs.h. */
9405 int i;
9406 int
9407 main ()
9408 {
9409
9410 ;
9411 return 0;
9412 }
9413 _ACEOF
9414 rm -f conftest.$ac_objext conftest$ac_exeext
9415 if { (ac_try="$ac_link"
9416 case "(($ac_try" in
9417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9418 *) ac_try_echo=$ac_try;;
9419 esac
9420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9421 (eval "$ac_link") 2>conftest.er1
9422 ac_status=$?
9423 grep -v '^ *+' conftest.er1 >conftest.err
9424 rm -f conftest.er1
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } && {
9428 test -z "$ac_c_werror_flag" ||
9429 test ! -s conftest.err
9430 } && test -s conftest$ac_exeext &&
9431 $as_test_x conftest$ac_exeext; then
9432 supported=yes
9433 else
9434 echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9436
9437 supported=no
9438 fi
9439
9440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9441 conftest$ac_exeext conftest.$ac_ext
9442 { echo "$as_me:$LINENO: result: $supported" >&5
9443 echo "${ECHO_T}$supported" >&6; }
9444 CFLAGS="$xorg_testset_save_CFLAGS"
9445
9446 if test "$supported" = "yes" ; then
9447 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
9448 found="yes"
9449 fi
9450 fi
9451
9452
9453
9454
9455
9456
9457
9458 xorg_testset_save_CFLAGS="$CFLAGS"
9459
9460 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9462 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9463 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9464 cat >conftest.$ac_ext <<_ACEOF
9465 /* confdefs.h. */
9466 _ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9470 int i;
9471 _ACEOF
9472 rm -f conftest.$ac_objext
9473 if { (ac_try="$ac_compile"
9474 case "(($ac_try" in
9475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9476 *) ac_try_echo=$ac_try;;
9477 esac
9478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9479 (eval "$ac_compile") 2>conftest.er1
9480 ac_status=$?
9481 grep -v '^ *+' conftest.er1 >conftest.err
9482 rm -f conftest.er1
9483 cat conftest.err >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); } && {
9486 test -z "$ac_c_werror_flag" ||
9487 test ! -s conftest.err
9488 } && test -s conftest.$ac_objext; then
9489 xorg_testset_unknown_warning_option=yes
9490 else
9491 echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9493
9494 xorg_testset_unknown_warning_option=no
9495 fi
9496
9497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9498 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9499 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9500 CFLAGS="$xorg_testset_save_CFLAGS"
9501 fi
9502
9503 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9504 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9506 fi
9507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9508 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9509 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9510 cat >conftest.$ac_ext <<_ACEOF
9511 /* confdefs.h. */
9512 _ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9516 int i;
9517 _ACEOF
9518 rm -f conftest.$ac_objext
9519 if { (ac_try="$ac_compile"
9520 case "(($ac_try" in
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9523 esac
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_compile") 2>conftest.er1
9526 ac_status=$?
9527 grep -v '^ *+' conftest.er1 >conftest.err
9528 rm -f conftest.er1
9529 cat conftest.err >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } && {
9532 test -z "$ac_c_werror_flag" ||
9533 test ! -s conftest.err
9534 } && test -s conftest.$ac_objext; then
9535 xorg_testset_unused_command_line_argument=yes
9536 else
9537 echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.$ac_ext >&5
9539
9540 xorg_testset_unused_command_line_argument=no
9541 fi
9542
9543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9544 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9545 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9546 CFLAGS="$xorg_testset_save_CFLAGS"
9547 fi
9548
9549 found="no"
9550
9551 if test $found = "no" ; then
9552 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9554 fi
9555
9556 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9558 fi
9559
9560 CFLAGS="$CFLAGS -Werror=address"
9561
9562 { echo "$as_me:$LINENO: checking if $CC supports -Werror=address" >&5
9563 echo $ECHO_N "checking if $CC supports -Werror=address... $ECHO_C" >&6; }
9564 cat >conftest.$ac_ext <<_ACEOF
9565 /* confdefs.h. */
9566 _ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9570 int i;
9571 int
9572 main ()
9573 {
9574
9575 ;
9576 return 0;
9577 }
9578 _ACEOF
9579 rm -f conftest.$ac_objext conftest$ac_exeext
9580 if { (ac_try="$ac_link"
9581 case "(($ac_try" in
9582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9583 *) ac_try_echo=$ac_try;;
9584 esac
9585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9586 (eval "$ac_link") 2>conftest.er1
9587 ac_status=$?
9588 grep -v '^ *+' conftest.er1 >conftest.err
9589 rm -f conftest.er1
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } && {
9593 test -z "$ac_c_werror_flag" ||
9594 test ! -s conftest.err
9595 } && test -s conftest$ac_exeext &&
9596 $as_test_x conftest$ac_exeext; then
9597 supported=yes
9598 else
9599 echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.$ac_ext >&5
9601
9602 supported=no
9603 fi
9604
9605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9606 conftest$ac_exeext conftest.$ac_ext
9607 { echo "$as_me:$LINENO: result: $supported" >&5
9608 echo "${ECHO_T}$supported" >&6; }
9609 CFLAGS="$xorg_testset_save_CFLAGS"
9610
9611 if test "$supported" = "yes" ; then
9612 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
9613 found="yes"
9614 fi
9615 fi
9616
9617
9618
9619
9620
9621
9622
9623 xorg_testset_save_CFLAGS="$CFLAGS"
9624
9625 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9627 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9628 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9629 cat >conftest.$ac_ext <<_ACEOF
9630 /* confdefs.h. */
9631 _ACEOF
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h. */
9635 int i;
9636 _ACEOF
9637 rm -f conftest.$ac_objext
9638 if { (ac_try="$ac_compile"
9639 case "(($ac_try" in
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9642 esac
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_compile") 2>conftest.er1
9645 ac_status=$?
9646 grep -v '^ *+' conftest.er1 >conftest.err
9647 rm -f conftest.er1
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } && {
9651 test -z "$ac_c_werror_flag" ||
9652 test ! -s conftest.err
9653 } && test -s conftest.$ac_objext; then
9654 xorg_testset_unknown_warning_option=yes
9655 else
9656 echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.$ac_ext >&5
9658
9659 xorg_testset_unknown_warning_option=no
9660 fi
9661
9662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9663 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9664 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9665 CFLAGS="$xorg_testset_save_CFLAGS"
9666 fi
9667
9668 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9669 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9671 fi
9672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9673 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9674 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9675 cat >conftest.$ac_ext <<_ACEOF
9676 /* confdefs.h. */
9677 _ACEOF
9678 cat confdefs.h >>conftest.$ac_ext
9679 cat >>conftest.$ac_ext <<_ACEOF
9680 /* end confdefs.h. */
9681 int i;
9682 _ACEOF
9683 rm -f conftest.$ac_objext
9684 if { (ac_try="$ac_compile"
9685 case "(($ac_try" in
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9688 esac
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_compile") 2>conftest.er1
9691 ac_status=$?
9692 grep -v '^ *+' conftest.er1 >conftest.err
9693 rm -f conftest.er1
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } && {
9697 test -z "$ac_c_werror_flag" ||
9698 test ! -s conftest.err
9699 } && test -s conftest.$ac_objext; then
9700 xorg_testset_unused_command_line_argument=yes
9701 else
9702 echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.$ac_ext >&5
9704
9705 xorg_testset_unused_command_line_argument=no
9706 fi
9707
9708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9710 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9711 CFLAGS="$xorg_testset_save_CFLAGS"
9712 fi
9713
9714 found="no"
9715
9716 if test $found = "no" ; then
9717 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9719 fi
9720
9721 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9723 fi
9724
9725 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9726
9727 { echo "$as_me:$LINENO: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9728 echo $ECHO_N "checking if $CC supports -Werror=int-to-pointer-cast... $ECHO_C" >&6; }
9729 cat >conftest.$ac_ext <<_ACEOF
9730 /* confdefs.h. */
9731 _ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9735 int i;
9736 int
9737 main ()
9738 {
9739
9740 ;
9741 return 0;
9742 }
9743 _ACEOF
9744 rm -f conftest.$ac_objext conftest$ac_exeext
9745 if { (ac_try="$ac_link"
9746 case "(($ac_try" in
9747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9748 *) ac_try_echo=$ac_try;;
9749 esac
9750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9751 (eval "$ac_link") 2>conftest.er1
9752 ac_status=$?
9753 grep -v '^ *+' conftest.er1 >conftest.err
9754 rm -f conftest.er1
9755 cat conftest.err >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } && {
9758 test -z "$ac_c_werror_flag" ||
9759 test ! -s conftest.err
9760 } && test -s conftest$ac_exeext &&
9761 $as_test_x conftest$ac_exeext; then
9762 supported=yes
9763 else
9764 echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9766
9767 supported=no
9768 fi
9769
9770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9771 conftest$ac_exeext conftest.$ac_ext
9772 { echo "$as_me:$LINENO: result: $supported" >&5
9773 echo "${ECHO_T}$supported" >&6; }
9774 CFLAGS="$xorg_testset_save_CFLAGS"
9775
9776 if test "$supported" = "yes" ; then
9777 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9778 found="yes"
9779 fi
9780 fi
9781
9782 if test $found = "no" ; then
9783 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9785 fi
9786
9787 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9789 fi
9790
9791 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9792
9793 { echo "$as_me:$LINENO: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9794 echo $ECHO_N "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... $ECHO_C" >&6; }
9795 cat >conftest.$ac_ext <<_ACEOF
9796 /* confdefs.h. */
9797 _ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9801 int i;
9802 int
9803 main ()
9804 {
9805
9806 ;
9807 return 0;
9808 }
9809 _ACEOF
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (ac_try="$ac_link"
9812 case "(($ac_try" in
9813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814 *) ac_try_echo=$ac_try;;
9815 esac
9816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817 (eval "$ac_link") 2>conftest.er1
9818 ac_status=$?
9819 grep -v '^ *+' conftest.er1 >conftest.err
9820 rm -f conftest.er1
9821 cat conftest.err >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } && {
9824 test -z "$ac_c_werror_flag" ||
9825 test ! -s conftest.err
9826 } && test -s conftest$ac_exeext &&
9827 $as_test_x conftest$ac_exeext; then
9828 supported=yes
9829 else
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9832
9833 supported=no
9834 fi
9835
9836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9837 conftest$ac_exeext conftest.$ac_ext
9838 { echo "$as_me:$LINENO: result: $supported" >&5
9839 echo "${ECHO_T}$supported" >&6; }
9840 CFLAGS="$xorg_testset_save_CFLAGS"
9841
9842 if test "$supported" = "yes" ; then
9843 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9844 found="yes"
9845 fi
9846 fi
9847
9848
9849
9850
9851
9852
9853
9854 xorg_testset_save_CFLAGS="$CFLAGS"
9855
9856 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9858 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9859 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9860 cat >conftest.$ac_ext <<_ACEOF
9861 /* confdefs.h. */
9862 _ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9866 int i;
9867 _ACEOF
9868 rm -f conftest.$ac_objext
9869 if { (ac_try="$ac_compile"
9870 case "(($ac_try" in
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9873 esac
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875 (eval "$ac_compile") 2>conftest.er1
9876 ac_status=$?
9877 grep -v '^ *+' conftest.er1 >conftest.err
9878 rm -f conftest.er1
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } && {
9882 test -z "$ac_c_werror_flag" ||
9883 test ! -s conftest.err
9884 } && test -s conftest.$ac_objext; then
9885 xorg_testset_unknown_warning_option=yes
9886 else
9887 echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9889
9890 xorg_testset_unknown_warning_option=no
9891 fi
9892
9893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9894 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9895 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9896 CFLAGS="$xorg_testset_save_CFLAGS"
9897 fi
9898
9899 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9900 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9902 fi
9903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9904 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9905 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9906 cat >conftest.$ac_ext <<_ACEOF
9907 /* confdefs.h. */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9912 int i;
9913 _ACEOF
9914 rm -f conftest.$ac_objext
9915 if { (ac_try="$ac_compile"
9916 case "(($ac_try" in
9917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918 *) ac_try_echo=$ac_try;;
9919 esac
9920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9921 (eval "$ac_compile") 2>conftest.er1
9922 ac_status=$?
9923 grep -v '^ *+' conftest.er1 >conftest.err
9924 rm -f conftest.er1
9925 cat conftest.err >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } && {
9928 test -z "$ac_c_werror_flag" ||
9929 test ! -s conftest.err
9930 } && test -s conftest.$ac_objext; then
9931 xorg_testset_unused_command_line_argument=yes
9932 else
9933 echo "$as_me: failed program was:" >&5
9934 sed 's/^/| /' conftest.$ac_ext >&5
9935
9936 xorg_testset_unused_command_line_argument=no
9937 fi
9938
9939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9940 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9941 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9942 CFLAGS="$xorg_testset_save_CFLAGS"
9943 fi
9944
9945 found="no"
9946
9947 if test $found = "no" ; then
9948 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9950 fi
9951
9952 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9954 fi
9955
9956 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9957
9958 { echo "$as_me:$LINENO: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9959 echo $ECHO_N "checking if $CC supports -Werror=pointer-to-int-cast... $ECHO_C" >&6; }
9960 cat >conftest.$ac_ext <<_ACEOF
9961 /* confdefs.h. */
9962 _ACEOF
9963 cat confdefs.h >>conftest.$ac_ext
9964 cat >>conftest.$ac_ext <<_ACEOF
9965 /* end confdefs.h. */
9966 int i;
9967 int
9968 main ()
9969 {
9970
9971 ;
9972 return 0;
9973 }
9974 _ACEOF
9975 rm -f conftest.$ac_objext conftest$ac_exeext
9976 if { (ac_try="$ac_link"
9977 case "(($ac_try" in
9978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979 *) ac_try_echo=$ac_try;;
9980 esac
9981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982 (eval "$ac_link") 2>conftest.er1
9983 ac_status=$?
9984 grep -v '^ *+' conftest.er1 >conftest.err
9985 rm -f conftest.er1
9986 cat conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } && {
9989 test -z "$ac_c_werror_flag" ||
9990 test ! -s conftest.err
9991 } && test -s conftest$ac_exeext &&
9992 $as_test_x conftest$ac_exeext; then
9993 supported=yes
9994 else
9995 echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
9997
9998 supported=no
9999 fi
10000
10001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10002 conftest$ac_exeext conftest.$ac_ext
10003 { echo "$as_me:$LINENO: result: $supported" >&5
10004 echo "${ECHO_T}$supported" >&6; }
10005 CFLAGS="$xorg_testset_save_CFLAGS"
10006
10007 if test "$supported" = "yes" ; then
10008 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
10009 found="yes"
10010 fi
10011 fi
10012
10013 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
10014 else
10015 { echo "$as_me:$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
10016 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;}
10017
10018
10019
10020
10021
10022 xorg_testset_save_CFLAGS="$CFLAGS"
10023
10024 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10026 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10027 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10028 cat >conftest.$ac_ext <<_ACEOF
10029 /* confdefs.h. */
10030 _ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10034 int i;
10035 _ACEOF
10036 rm -f conftest.$ac_objext
10037 if { (ac_try="$ac_compile"
10038 case "(($ac_try" in
10039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040 *) ac_try_echo=$ac_try;;
10041 esac
10042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043 (eval "$ac_compile") 2>conftest.er1
10044 ac_status=$?
10045 grep -v '^ *+' conftest.er1 >conftest.err
10046 rm -f conftest.er1
10047 cat conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } && {
10050 test -z "$ac_c_werror_flag" ||
10051 test ! -s conftest.err
10052 } && test -s conftest.$ac_objext; then
10053 xorg_testset_unknown_warning_option=yes
10054 else
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10057
10058 xorg_testset_unknown_warning_option=no
10059 fi
10060
10061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10062 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10063 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10064 CFLAGS="$xorg_testset_save_CFLAGS"
10065 fi
10066
10067 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10068 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10070 fi
10071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10072 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10073 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10074 cat >conftest.$ac_ext <<_ACEOF
10075 /* confdefs.h. */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10080 int i;
10081 _ACEOF
10082 rm -f conftest.$ac_objext
10083 if { (ac_try="$ac_compile"
10084 case "(($ac_try" in
10085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10086 *) ac_try_echo=$ac_try;;
10087 esac
10088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10089 (eval "$ac_compile") 2>conftest.er1
10090 ac_status=$?
10091 grep -v '^ *+' conftest.er1 >conftest.err
10092 rm -f conftest.er1
10093 cat conftest.err >&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } && {
10096 test -z "$ac_c_werror_flag" ||
10097 test ! -s conftest.err
10098 } && test -s conftest.$ac_objext; then
10099 xorg_testset_unused_command_line_argument=yes
10100 else
10101 echo "$as_me: failed program was:" >&5
10102 sed 's/^/| /' conftest.$ac_ext >&5
10103
10104 xorg_testset_unused_command_line_argument=no
10105 fi
10106
10107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10108 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10109 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10110 CFLAGS="$xorg_testset_save_CFLAGS"
10111 fi
10112
10113 found="no"
10114
10115 if test $found = "no" ; then
10116 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10118 fi
10119
10120 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10122 fi
10123
10124 CFLAGS="$CFLAGS -Wimplicit"
10125
10126 { echo "$as_me:$LINENO: checking if $CC supports -Wimplicit" >&5
10127 echo $ECHO_N "checking if $CC supports -Wimplicit... $ECHO_C" >&6; }
10128 cat >conftest.$ac_ext <<_ACEOF
10129 /* confdefs.h. */
10130 _ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10134 int i;
10135 int
10136 main ()
10137 {
10138
10139 ;
10140 return 0;
10141 }
10142 _ACEOF
10143 rm -f conftest.$ac_objext conftest$ac_exeext
10144 if { (ac_try="$ac_link"
10145 case "(($ac_try" in
10146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10147 *) ac_try_echo=$ac_try;;
10148 esac
10149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10150 (eval "$ac_link") 2>conftest.er1
10151 ac_status=$?
10152 grep -v '^ *+' conftest.er1 >conftest.err
10153 rm -f conftest.er1
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } && {
10157 test -z "$ac_c_werror_flag" ||
10158 test ! -s conftest.err
10159 } && test -s conftest$ac_exeext &&
10160 $as_test_x conftest$ac_exeext; then
10161 supported=yes
10162 else
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10165
10166 supported=no
10167 fi
10168
10169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10170 conftest$ac_exeext conftest.$ac_ext
10171 { echo "$as_me:$LINENO: result: $supported" >&5
10172 echo "${ECHO_T}$supported" >&6; }
10173 CFLAGS="$xorg_testset_save_CFLAGS"
10174
10175 if test "$supported" = "yes" ; then
10176 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
10177 found="yes"
10178 fi
10179 fi
10180
10181
10182
10183
10184
10185
10186
10187 xorg_testset_save_CFLAGS="$CFLAGS"
10188
10189 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10191 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10192 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10193 cat >conftest.$ac_ext <<_ACEOF
10194 /* confdefs.h. */
10195 _ACEOF
10196 cat confdefs.h >>conftest.$ac_ext
10197 cat >>conftest.$ac_ext <<_ACEOF
10198 /* end confdefs.h. */
10199 int i;
10200 _ACEOF
10201 rm -f conftest.$ac_objext
10202 if { (ac_try="$ac_compile"
10203 case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10206 esac
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208 (eval "$ac_compile") 2>conftest.er1
10209 ac_status=$?
10210 grep -v '^ *+' conftest.er1 >conftest.err
10211 rm -f conftest.er1
10212 cat conftest.err >&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } && {
10215 test -z "$ac_c_werror_flag" ||
10216 test ! -s conftest.err
10217 } && test -s conftest.$ac_objext; then
10218 xorg_testset_unknown_warning_option=yes
10219 else
10220 echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10222
10223 xorg_testset_unknown_warning_option=no
10224 fi
10225
10226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10227 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10228 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10229 CFLAGS="$xorg_testset_save_CFLAGS"
10230 fi
10231
10232 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10233 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10235 fi
10236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10237 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10238 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10239 cat >conftest.$ac_ext <<_ACEOF
10240 /* confdefs.h. */
10241 _ACEOF
10242 cat confdefs.h >>conftest.$ac_ext
10243 cat >>conftest.$ac_ext <<_ACEOF
10244 /* end confdefs.h. */
10245 int i;
10246 _ACEOF
10247 rm -f conftest.$ac_objext
10248 if { (ac_try="$ac_compile"
10249 case "(($ac_try" in
10250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251 *) ac_try_echo=$ac_try;;
10252 esac
10253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254 (eval "$ac_compile") 2>conftest.er1
10255 ac_status=$?
10256 grep -v '^ *+' conftest.er1 >conftest.err
10257 rm -f conftest.er1
10258 cat conftest.err >&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } && {
10261 test -z "$ac_c_werror_flag" ||
10262 test ! -s conftest.err
10263 } && test -s conftest.$ac_objext; then
10264 xorg_testset_unused_command_line_argument=yes
10265 else
10266 echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10268
10269 xorg_testset_unused_command_line_argument=no
10270 fi
10271
10272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10273 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10274 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10275 CFLAGS="$xorg_testset_save_CFLAGS"
10276 fi
10277
10278 found="no"
10279
10280 if test $found = "no" ; then
10281 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10283 fi
10284
10285 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10287 fi
10288
10289 CFLAGS="$CFLAGS -Wnonnull"
10290
10291 { echo "$as_me:$LINENO: checking if $CC supports -Wnonnull" >&5
10292 echo $ECHO_N "checking if $CC supports -Wnonnull... $ECHO_C" >&6; }
10293 cat >conftest.$ac_ext <<_ACEOF
10294 /* confdefs.h. */
10295 _ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h. */
10299 int i;
10300 int
10301 main ()
10302 {
10303
10304 ;
10305 return 0;
10306 }
10307 _ACEOF
10308 rm -f conftest.$ac_objext conftest$ac_exeext
10309 if { (ac_try="$ac_link"
10310 case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10313 esac
10314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315 (eval "$ac_link") 2>conftest.er1
10316 ac_status=$?
10317 grep -v '^ *+' conftest.er1 >conftest.err
10318 rm -f conftest.er1
10319 cat conftest.err >&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); } && {
10322 test -z "$ac_c_werror_flag" ||
10323 test ! -s conftest.err
10324 } && test -s conftest$ac_exeext &&
10325 $as_test_x conftest$ac_exeext; then
10326 supported=yes
10327 else
10328 echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10330
10331 supported=no
10332 fi
10333
10334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10335 conftest$ac_exeext conftest.$ac_ext
10336 { echo "$as_me:$LINENO: result: $supported" >&5
10337 echo "${ECHO_T}$supported" >&6; }
10338 CFLAGS="$xorg_testset_save_CFLAGS"
10339
10340 if test "$supported" = "yes" ; then
10341 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
10342 found="yes"
10343 fi
10344 fi
10345
10346
10347
10348
10349
10350
10351
10352 xorg_testset_save_CFLAGS="$CFLAGS"
10353
10354 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10356 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10357 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10358 cat >conftest.$ac_ext <<_ACEOF
10359 /* confdefs.h. */
10360 _ACEOF
10361 cat confdefs.h >>conftest.$ac_ext
10362 cat >>conftest.$ac_ext <<_ACEOF
10363 /* end confdefs.h. */
10364 int i;
10365 _ACEOF
10366 rm -f conftest.$ac_objext
10367 if { (ac_try="$ac_compile"
10368 case "(($ac_try" in
10369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370 *) ac_try_echo=$ac_try;;
10371 esac
10372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10373 (eval "$ac_compile") 2>conftest.er1
10374 ac_status=$?
10375 grep -v '^ *+' conftest.er1 >conftest.err
10376 rm -f conftest.er1
10377 cat conftest.err >&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } && {
10380 test -z "$ac_c_werror_flag" ||
10381 test ! -s conftest.err
10382 } && test -s conftest.$ac_objext; then
10383 xorg_testset_unknown_warning_option=yes
10384 else
10385 echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10387
10388 xorg_testset_unknown_warning_option=no
10389 fi
10390
10391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10392 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10393 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10394 CFLAGS="$xorg_testset_save_CFLAGS"
10395 fi
10396
10397 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10398 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10400 fi
10401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10402 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10403 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10404 cat >conftest.$ac_ext <<_ACEOF
10405 /* confdefs.h. */
10406 _ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10410 int i;
10411 _ACEOF
10412 rm -f conftest.$ac_objext
10413 if { (ac_try="$ac_compile"
10414 case "(($ac_try" in
10415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10416 *) ac_try_echo=$ac_try;;
10417 esac
10418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10419 (eval "$ac_compile") 2>conftest.er1
10420 ac_status=$?
10421 grep -v '^ *+' conftest.er1 >conftest.err
10422 rm -f conftest.er1
10423 cat conftest.err >&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } && {
10426 test -z "$ac_c_werror_flag" ||
10427 test ! -s conftest.err
10428 } && test -s conftest.$ac_objext; then
10429 xorg_testset_unused_command_line_argument=yes
10430 else
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10433
10434 xorg_testset_unused_command_line_argument=no
10435 fi
10436
10437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10438 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10439 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10440 CFLAGS="$xorg_testset_save_CFLAGS"
10441 fi
10442
10443 found="no"
10444
10445 if test $found = "no" ; then
10446 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10448 fi
10449
10450 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10452 fi
10453
10454 CFLAGS="$CFLAGS -Winit-self"
10455
10456 { echo "$as_me:$LINENO: checking if $CC supports -Winit-self" >&5
10457 echo $ECHO_N "checking if $CC supports -Winit-self... $ECHO_C" >&6; }
10458 cat >conftest.$ac_ext <<_ACEOF
10459 /* confdefs.h. */
10460 _ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10464 int i;
10465 int
10466 main ()
10467 {
10468
10469 ;
10470 return 0;
10471 }
10472 _ACEOF
10473 rm -f conftest.$ac_objext conftest$ac_exeext
10474 if { (ac_try="$ac_link"
10475 case "(($ac_try" in
10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10478 esac
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_link") 2>conftest.er1
10481 ac_status=$?
10482 grep -v '^ *+' conftest.er1 >conftest.err
10483 rm -f conftest.er1
10484 cat conftest.err >&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } && {
10487 test -z "$ac_c_werror_flag" ||
10488 test ! -s conftest.err
10489 } && test -s conftest$ac_exeext &&
10490 $as_test_x conftest$ac_exeext; then
10491 supported=yes
10492 else
10493 echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10495
10496 supported=no
10497 fi
10498
10499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10500 conftest$ac_exeext conftest.$ac_ext
10501 { echo "$as_me:$LINENO: result: $supported" >&5
10502 echo "${ECHO_T}$supported" >&6; }
10503 CFLAGS="$xorg_testset_save_CFLAGS"
10504
10505 if test "$supported" = "yes" ; then
10506 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
10507 found="yes"
10508 fi
10509 fi
10510
10511
10512
10513
10514
10515
10516
10517 xorg_testset_save_CFLAGS="$CFLAGS"
10518
10519 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10521 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10522 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10523 cat >conftest.$ac_ext <<_ACEOF
10524 /* confdefs.h. */
10525 _ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h. */
10529 int i;
10530 _ACEOF
10531 rm -f conftest.$ac_objext
10532 if { (ac_try="$ac_compile"
10533 case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10536 esac
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_compile") 2>conftest.er1
10539 ac_status=$?
10540 grep -v '^ *+' conftest.er1 >conftest.err
10541 rm -f conftest.er1
10542 cat conftest.err >&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } && {
10545 test -z "$ac_c_werror_flag" ||
10546 test ! -s conftest.err
10547 } && test -s conftest.$ac_objext; then
10548 xorg_testset_unknown_warning_option=yes
10549 else
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10552
10553 xorg_testset_unknown_warning_option=no
10554 fi
10555
10556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10557 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10558 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10559 CFLAGS="$xorg_testset_save_CFLAGS"
10560 fi
10561
10562 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10563 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10565 fi
10566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10567 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10568 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10569 cat >conftest.$ac_ext <<_ACEOF
10570 /* confdefs.h. */
10571 _ACEOF
10572 cat confdefs.h >>conftest.$ac_ext
10573 cat >>conftest.$ac_ext <<_ACEOF
10574 /* end confdefs.h. */
10575 int i;
10576 _ACEOF
10577 rm -f conftest.$ac_objext
10578 if { (ac_try="$ac_compile"
10579 case "(($ac_try" in
10580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10581 *) ac_try_echo=$ac_try;;
10582 esac
10583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584 (eval "$ac_compile") 2>conftest.er1
10585 ac_status=$?
10586 grep -v '^ *+' conftest.er1 >conftest.err
10587 rm -f conftest.er1
10588 cat conftest.err >&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } && {
10591 test -z "$ac_c_werror_flag" ||
10592 test ! -s conftest.err
10593 } && test -s conftest.$ac_objext; then
10594 xorg_testset_unused_command_line_argument=yes
10595 else
10596 echo "$as_me: failed program was:" >&5
10597 sed 's/^/| /' conftest.$ac_ext >&5
10598
10599 xorg_testset_unused_command_line_argument=no
10600 fi
10601
10602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10603 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10604 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10605 CFLAGS="$xorg_testset_save_CFLAGS"
10606 fi
10607
10608 found="no"
10609
10610 if test $found = "no" ; then
10611 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10613 fi
10614
10615 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10617 fi
10618
10619 CFLAGS="$CFLAGS -Wmain"
10620
10621 { echo "$as_me:$LINENO: checking if $CC supports -Wmain" >&5
10622 echo $ECHO_N "checking if $CC supports -Wmain... $ECHO_C" >&6; }
10623 cat >conftest.$ac_ext <<_ACEOF
10624 /* confdefs.h. */
10625 _ACEOF
10626 cat confdefs.h >>conftest.$ac_ext
10627 cat >>conftest.$ac_ext <<_ACEOF
10628 /* end confdefs.h. */
10629 int i;
10630 int
10631 main ()
10632 {
10633
10634 ;
10635 return 0;
10636 }
10637 _ACEOF
10638 rm -f conftest.$ac_objext conftest$ac_exeext
10639 if { (ac_try="$ac_link"
10640 case "(($ac_try" in
10641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10642 *) ac_try_echo=$ac_try;;
10643 esac
10644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10645 (eval "$ac_link") 2>conftest.er1
10646 ac_status=$?
10647 grep -v '^ *+' conftest.er1 >conftest.err
10648 rm -f conftest.er1
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } && {
10652 test -z "$ac_c_werror_flag" ||
10653 test ! -s conftest.err
10654 } && test -s conftest$ac_exeext &&
10655 $as_test_x conftest$ac_exeext; then
10656 supported=yes
10657 else
10658 echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10660
10661 supported=no
10662 fi
10663
10664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10665 conftest$ac_exeext conftest.$ac_ext
10666 { echo "$as_me:$LINENO: result: $supported" >&5
10667 echo "${ECHO_T}$supported" >&6; }
10668 CFLAGS="$xorg_testset_save_CFLAGS"
10669
10670 if test "$supported" = "yes" ; then
10671 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
10672 found="yes"
10673 fi
10674 fi
10675
10676
10677
10678
10679
10680
10681
10682 xorg_testset_save_CFLAGS="$CFLAGS"
10683
10684 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10686 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10687 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10688 cat >conftest.$ac_ext <<_ACEOF
10689 /* confdefs.h. */
10690 _ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h. */
10694 int i;
10695 _ACEOF
10696 rm -f conftest.$ac_objext
10697 if { (ac_try="$ac_compile"
10698 case "(($ac_try" in
10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10701 esac
10702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703 (eval "$ac_compile") 2>conftest.er1
10704 ac_status=$?
10705 grep -v '^ *+' conftest.er1 >conftest.err
10706 rm -f conftest.er1
10707 cat conftest.err >&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } && {
10710 test -z "$ac_c_werror_flag" ||
10711 test ! -s conftest.err
10712 } && test -s conftest.$ac_objext; then
10713 xorg_testset_unknown_warning_option=yes
10714 else
10715 echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.$ac_ext >&5
10717
10718 xorg_testset_unknown_warning_option=no
10719 fi
10720
10721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10722 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10723 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10724 CFLAGS="$xorg_testset_save_CFLAGS"
10725 fi
10726
10727 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10728 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10730 fi
10731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10732 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10733 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10734 cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h. */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740 int i;
10741 _ACEOF
10742 rm -f conftest.$ac_objext
10743 if { (ac_try="$ac_compile"
10744 case "(($ac_try" in
10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10747 esac
10748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10749 (eval "$ac_compile") 2>conftest.er1
10750 ac_status=$?
10751 grep -v '^ *+' conftest.er1 >conftest.err
10752 rm -f conftest.er1
10753 cat conftest.err >&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } && {
10756 test -z "$ac_c_werror_flag" ||
10757 test ! -s conftest.err
10758 } && test -s conftest.$ac_objext; then
10759 xorg_testset_unused_command_line_argument=yes
10760 else
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10763
10764 xorg_testset_unused_command_line_argument=no
10765 fi
10766
10767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10768 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10769 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10770 CFLAGS="$xorg_testset_save_CFLAGS"
10771 fi
10772
10773 found="no"
10774
10775 if test $found = "no" ; then
10776 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10778 fi
10779
10780 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10782 fi
10783
10784 CFLAGS="$CFLAGS -Wmissing-braces"
10785
10786 { echo "$as_me:$LINENO: checking if $CC supports -Wmissing-braces" >&5
10787 echo $ECHO_N "checking if $CC supports -Wmissing-braces... $ECHO_C" >&6; }
10788 cat >conftest.$ac_ext <<_ACEOF
10789 /* confdefs.h. */
10790 _ACEOF
10791 cat confdefs.h >>conftest.$ac_ext
10792 cat >>conftest.$ac_ext <<_ACEOF
10793 /* end confdefs.h. */
10794 int i;
10795 int
10796 main ()
10797 {
10798
10799 ;
10800 return 0;
10801 }
10802 _ACEOF
10803 rm -f conftest.$ac_objext conftest$ac_exeext
10804 if { (ac_try="$ac_link"
10805 case "(($ac_try" in
10806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807 *) ac_try_echo=$ac_try;;
10808 esac
10809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10810 (eval "$ac_link") 2>conftest.er1
10811 ac_status=$?
10812 grep -v '^ *+' conftest.er1 >conftest.err
10813 rm -f conftest.er1
10814 cat conftest.err >&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } && {
10817 test -z "$ac_c_werror_flag" ||
10818 test ! -s conftest.err
10819 } && test -s conftest$ac_exeext &&
10820 $as_test_x conftest$ac_exeext; then
10821 supported=yes
10822 else
10823 echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.$ac_ext >&5
10825
10826 supported=no
10827 fi
10828
10829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10830 conftest$ac_exeext conftest.$ac_ext
10831 { echo "$as_me:$LINENO: result: $supported" >&5
10832 echo "${ECHO_T}$supported" >&6; }
10833 CFLAGS="$xorg_testset_save_CFLAGS"
10834
10835 if test "$supported" = "yes" ; then
10836 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
10837 found="yes"
10838 fi
10839 fi
10840
10841
10842
10843
10844
10845
10846
10847 xorg_testset_save_CFLAGS="$CFLAGS"
10848
10849 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10851 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10852 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10853 cat >conftest.$ac_ext <<_ACEOF
10854 /* confdefs.h. */
10855 _ACEOF
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h. */
10859 int i;
10860 _ACEOF
10861 rm -f conftest.$ac_objext
10862 if { (ac_try="$ac_compile"
10863 case "(($ac_try" in
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10866 esac
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868 (eval "$ac_compile") 2>conftest.er1
10869 ac_status=$?
10870 grep -v '^ *+' conftest.er1 >conftest.err
10871 rm -f conftest.er1
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } && {
10875 test -z "$ac_c_werror_flag" ||
10876 test ! -s conftest.err
10877 } && test -s conftest.$ac_objext; then
10878 xorg_testset_unknown_warning_option=yes
10879 else
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10882
10883 xorg_testset_unknown_warning_option=no
10884 fi
10885
10886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10887 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10888 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10889 CFLAGS="$xorg_testset_save_CFLAGS"
10890 fi
10891
10892 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10893 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10895 fi
10896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10897 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10898 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10899 cat >conftest.$ac_ext <<_ACEOF
10900 /* confdefs.h. */
10901 _ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10905 int i;
10906 _ACEOF
10907 rm -f conftest.$ac_objext
10908 if { (ac_try="$ac_compile"
10909 case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10912 esac
10913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914 (eval "$ac_compile") 2>conftest.er1
10915 ac_status=$?
10916 grep -v '^ *+' conftest.er1 >conftest.err
10917 rm -f conftest.er1
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } && {
10921 test -z "$ac_c_werror_flag" ||
10922 test ! -s conftest.err
10923 } && test -s conftest.$ac_objext; then
10924 xorg_testset_unused_command_line_argument=yes
10925 else
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10928
10929 xorg_testset_unused_command_line_argument=no
10930 fi
10931
10932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10933 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10934 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10935 CFLAGS="$xorg_testset_save_CFLAGS"
10936 fi
10937
10938 found="no"
10939
10940 if test $found = "no" ; then
10941 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10943 fi
10944
10945 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10947 fi
10948
10949 CFLAGS="$CFLAGS -Wsequence-point"
10950
10951 { echo "$as_me:$LINENO: checking if $CC supports -Wsequence-point" >&5
10952 echo $ECHO_N "checking if $CC supports -Wsequence-point... $ECHO_C" >&6; }
10953 cat >conftest.$ac_ext <<_ACEOF
10954 /* confdefs.h. */
10955 _ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10959 int i;
10960 int
10961 main ()
10962 {
10963
10964 ;
10965 return 0;
10966 }
10967 _ACEOF
10968 rm -f conftest.$ac_objext conftest$ac_exeext
10969 if { (ac_try="$ac_link"
10970 case "(($ac_try" in
10971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972 *) ac_try_echo=$ac_try;;
10973 esac
10974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10975 (eval "$ac_link") 2>conftest.er1
10976 ac_status=$?
10977 grep -v '^ *+' conftest.er1 >conftest.err
10978 rm -f conftest.er1
10979 cat conftest.err >&5
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); } && {
10982 test -z "$ac_c_werror_flag" ||
10983 test ! -s conftest.err
10984 } && test -s conftest$ac_exeext &&
10985 $as_test_x conftest$ac_exeext; then
10986 supported=yes
10987 else
10988 echo "$as_me: failed program was:" >&5
10989 sed 's/^/| /' conftest.$ac_ext >&5
10990
10991 supported=no
10992 fi
10993
10994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10995 conftest$ac_exeext conftest.$ac_ext
10996 { echo "$as_me:$LINENO: result: $supported" >&5
10997 echo "${ECHO_T}$supported" >&6; }
10998 CFLAGS="$xorg_testset_save_CFLAGS"
10999
11000 if test "$supported" = "yes" ; then
11001 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
11002 found="yes"
11003 fi
11004 fi
11005
11006
11007
11008
11009
11010
11011
11012 xorg_testset_save_CFLAGS="$CFLAGS"
11013
11014 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11016 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11017 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11018 cat >conftest.$ac_ext <<_ACEOF
11019 /* confdefs.h. */
11020 _ACEOF
11021 cat confdefs.h >>conftest.$ac_ext
11022 cat >>conftest.$ac_ext <<_ACEOF
11023 /* end confdefs.h. */
11024 int i;
11025 _ACEOF
11026 rm -f conftest.$ac_objext
11027 if { (ac_try="$ac_compile"
11028 case "(($ac_try" in
11029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11030 *) ac_try_echo=$ac_try;;
11031 esac
11032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11033 (eval "$ac_compile") 2>conftest.er1
11034 ac_status=$?
11035 grep -v '^ *+' conftest.er1 >conftest.err
11036 rm -f conftest.er1
11037 cat conftest.err >&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } && {
11040 test -z "$ac_c_werror_flag" ||
11041 test ! -s conftest.err
11042 } && test -s conftest.$ac_objext; then
11043 xorg_testset_unknown_warning_option=yes
11044 else
11045 echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11047
11048 xorg_testset_unknown_warning_option=no
11049 fi
11050
11051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11052 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11053 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11054 CFLAGS="$xorg_testset_save_CFLAGS"
11055 fi
11056
11057 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11058 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11060 fi
11061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11062 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11063 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11064 cat >conftest.$ac_ext <<_ACEOF
11065 /* confdefs.h. */
11066 _ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 int i;
11071 _ACEOF
11072 rm -f conftest.$ac_objext
11073 if { (ac_try="$ac_compile"
11074 case "(($ac_try" in
11075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076 *) ac_try_echo=$ac_try;;
11077 esac
11078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079 (eval "$ac_compile") 2>conftest.er1
11080 ac_status=$?
11081 grep -v '^ *+' conftest.er1 >conftest.err
11082 rm -f conftest.er1
11083 cat conftest.err >&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); } && {
11086 test -z "$ac_c_werror_flag" ||
11087 test ! -s conftest.err
11088 } && test -s conftest.$ac_objext; then
11089 xorg_testset_unused_command_line_argument=yes
11090 else
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11093
11094 xorg_testset_unused_command_line_argument=no
11095 fi
11096
11097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11098 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11099 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11100 CFLAGS="$xorg_testset_save_CFLAGS"
11101 fi
11102
11103 found="no"
11104
11105 if test $found = "no" ; then
11106 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11108 fi
11109
11110 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11112 fi
11113
11114 CFLAGS="$CFLAGS -Wreturn-type"
11115
11116 { echo "$as_me:$LINENO: checking if $CC supports -Wreturn-type" >&5
11117 echo $ECHO_N "checking if $CC supports -Wreturn-type... $ECHO_C" >&6; }
11118 cat >conftest.$ac_ext <<_ACEOF
11119 /* confdefs.h. */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11124 int i;
11125 int
11126 main ()
11127 {
11128
11129 ;
11130 return 0;
11131 }
11132 _ACEOF
11133 rm -f conftest.$ac_objext conftest$ac_exeext
11134 if { (ac_try="$ac_link"
11135 case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11138 esac
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_link") 2>conftest.er1
11141 ac_status=$?
11142 grep -v '^ *+' conftest.er1 >conftest.err
11143 rm -f conftest.er1
11144 cat conftest.err >&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } && {
11147 test -z "$ac_c_werror_flag" ||
11148 test ! -s conftest.err
11149 } && test -s conftest$ac_exeext &&
11150 $as_test_x conftest$ac_exeext; then
11151 supported=yes
11152 else
11153 echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11155
11156 supported=no
11157 fi
11158
11159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11160 conftest$ac_exeext conftest.$ac_ext
11161 { echo "$as_me:$LINENO: result: $supported" >&5
11162 echo "${ECHO_T}$supported" >&6; }
11163 CFLAGS="$xorg_testset_save_CFLAGS"
11164
11165 if test "$supported" = "yes" ; then
11166 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
11167 found="yes"
11168 fi
11169 fi
11170
11171
11172
11173
11174
11175
11176
11177 xorg_testset_save_CFLAGS="$CFLAGS"
11178
11179 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11181 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11182 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11183 cat >conftest.$ac_ext <<_ACEOF
11184 /* confdefs.h. */
11185 _ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11189 int i;
11190 _ACEOF
11191 rm -f conftest.$ac_objext
11192 if { (ac_try="$ac_compile"
11193 case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11196 esac
11197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198 (eval "$ac_compile") 2>conftest.er1
11199 ac_status=$?
11200 grep -v '^ *+' conftest.er1 >conftest.err
11201 rm -f conftest.er1
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } && {
11205 test -z "$ac_c_werror_flag" ||
11206 test ! -s conftest.err
11207 } && test -s conftest.$ac_objext; then
11208 xorg_testset_unknown_warning_option=yes
11209 else
11210 echo "$as_me: failed program was:" >&5
11211 sed 's/^/| /' conftest.$ac_ext >&5
11212
11213 xorg_testset_unknown_warning_option=no
11214 fi
11215
11216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11217 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11218 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11219 CFLAGS="$xorg_testset_save_CFLAGS"
11220 fi
11221
11222 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11223 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11225 fi
11226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11227 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11228 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11229 cat >conftest.$ac_ext <<_ACEOF
11230 /* confdefs.h. */
11231 _ACEOF
11232 cat confdefs.h >>conftest.$ac_ext
11233 cat >>conftest.$ac_ext <<_ACEOF
11234 /* end confdefs.h. */
11235 int i;
11236 _ACEOF
11237 rm -f conftest.$ac_objext
11238 if { (ac_try="$ac_compile"
11239 case "(($ac_try" in
11240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11242 esac
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_compile") 2>conftest.er1
11245 ac_status=$?
11246 grep -v '^ *+' conftest.er1 >conftest.err
11247 rm -f conftest.er1
11248 cat conftest.err >&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } && {
11251 test -z "$ac_c_werror_flag" ||
11252 test ! -s conftest.err
11253 } && test -s conftest.$ac_objext; then
11254 xorg_testset_unused_command_line_argument=yes
11255 else
11256 echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11258
11259 xorg_testset_unused_command_line_argument=no
11260 fi
11261
11262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11263 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11264 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11265 CFLAGS="$xorg_testset_save_CFLAGS"
11266 fi
11267
11268 found="no"
11269
11270 if test $found = "no" ; then
11271 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11273 fi
11274
11275 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11277 fi
11278
11279 CFLAGS="$CFLAGS -Wtrigraphs"
11280
11281 { echo "$as_me:$LINENO: checking if $CC supports -Wtrigraphs" >&5
11282 echo $ECHO_N "checking if $CC supports -Wtrigraphs... $ECHO_C" >&6; }
11283 cat >conftest.$ac_ext <<_ACEOF
11284 /* confdefs.h. */
11285 _ACEOF
11286 cat confdefs.h >>conftest.$ac_ext
11287 cat >>conftest.$ac_ext <<_ACEOF
11288 /* end confdefs.h. */
11289 int i;
11290 int
11291 main ()
11292 {
11293
11294 ;
11295 return 0;
11296 }
11297 _ACEOF
11298 rm -f conftest.$ac_objext conftest$ac_exeext
11299 if { (ac_try="$ac_link"
11300 case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11303 esac
11304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_link") 2>conftest.er1
11306 ac_status=$?
11307 grep -v '^ *+' conftest.er1 >conftest.err
11308 rm -f conftest.er1
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } && {
11312 test -z "$ac_c_werror_flag" ||
11313 test ! -s conftest.err
11314 } && test -s conftest$ac_exeext &&
11315 $as_test_x conftest$ac_exeext; then
11316 supported=yes
11317 else
11318 echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11320
11321 supported=no
11322 fi
11323
11324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11325 conftest$ac_exeext conftest.$ac_ext
11326 { echo "$as_me:$LINENO: result: $supported" >&5
11327 echo "${ECHO_T}$supported" >&6; }
11328 CFLAGS="$xorg_testset_save_CFLAGS"
11329
11330 if test "$supported" = "yes" ; then
11331 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
11332 found="yes"
11333 fi
11334 fi
11335
11336
11337
11338
11339
11340
11341
11342 xorg_testset_save_CFLAGS="$CFLAGS"
11343
11344 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11346 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11347 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11348 cat >conftest.$ac_ext <<_ACEOF
11349 /* confdefs.h. */
11350 _ACEOF
11351 cat confdefs.h >>conftest.$ac_ext
11352 cat >>conftest.$ac_ext <<_ACEOF
11353 /* end confdefs.h. */
11354 int i;
11355 _ACEOF
11356 rm -f conftest.$ac_objext
11357 if { (ac_try="$ac_compile"
11358 case "(($ac_try" in
11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360 *) ac_try_echo=$ac_try;;
11361 esac
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_compile") 2>conftest.er1
11364 ac_status=$?
11365 grep -v '^ *+' conftest.er1 >conftest.err
11366 rm -f conftest.er1
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } && {
11370 test -z "$ac_c_werror_flag" ||
11371 test ! -s conftest.err
11372 } && test -s conftest.$ac_objext; then
11373 xorg_testset_unknown_warning_option=yes
11374 else
11375 echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.$ac_ext >&5
11377
11378 xorg_testset_unknown_warning_option=no
11379 fi
11380
11381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11382 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11383 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11384 CFLAGS="$xorg_testset_save_CFLAGS"
11385 fi
11386
11387 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11388 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11390 fi
11391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11392 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11393 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11394 cat >conftest.$ac_ext <<_ACEOF
11395 /* confdefs.h. */
11396 _ACEOF
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11400 int i;
11401 _ACEOF
11402 rm -f conftest.$ac_objext
11403 if { (ac_try="$ac_compile"
11404 case "(($ac_try" in
11405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406 *) ac_try_echo=$ac_try;;
11407 esac
11408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11409 (eval "$ac_compile") 2>conftest.er1
11410 ac_status=$?
11411 grep -v '^ *+' conftest.er1 >conftest.err
11412 rm -f conftest.er1
11413 cat conftest.err >&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } && {
11416 test -z "$ac_c_werror_flag" ||
11417 test ! -s conftest.err
11418 } && test -s conftest.$ac_objext; then
11419 xorg_testset_unused_command_line_argument=yes
11420 else
11421 echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.$ac_ext >&5
11423
11424 xorg_testset_unused_command_line_argument=no
11425 fi
11426
11427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11428 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11429 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11430 CFLAGS="$xorg_testset_save_CFLAGS"
11431 fi
11432
11433 found="no"
11434
11435 if test $found = "no" ; then
11436 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11438 fi
11439
11440 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11442 fi
11443
11444 CFLAGS="$CFLAGS -Warray-bounds"
11445
11446 { echo "$as_me:$LINENO: checking if $CC supports -Warray-bounds" >&5
11447 echo $ECHO_N "checking if $CC supports -Warray-bounds... $ECHO_C" >&6; }
11448 cat >conftest.$ac_ext <<_ACEOF
11449 /* confdefs.h. */
11450 _ACEOF
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h. */
11454 int i;
11455 int
11456 main ()
11457 {
11458
11459 ;
11460 return 0;
11461 }
11462 _ACEOF
11463 rm -f conftest.$ac_objext conftest$ac_exeext
11464 if { (ac_try="$ac_link"
11465 case "(($ac_try" in
11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467 *) ac_try_echo=$ac_try;;
11468 esac
11469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470 (eval "$ac_link") 2>conftest.er1
11471 ac_status=$?
11472 grep -v '^ *+' conftest.er1 >conftest.err
11473 rm -f conftest.er1
11474 cat conftest.err >&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } && {
11477 test -z "$ac_c_werror_flag" ||
11478 test ! -s conftest.err
11479 } && test -s conftest$ac_exeext &&
11480 $as_test_x conftest$ac_exeext; then
11481 supported=yes
11482 else
11483 echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11485
11486 supported=no
11487 fi
11488
11489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11490 conftest$ac_exeext conftest.$ac_ext
11491 { echo "$as_me:$LINENO: result: $supported" >&5
11492 echo "${ECHO_T}$supported" >&6; }
11493 CFLAGS="$xorg_testset_save_CFLAGS"
11494
11495 if test "$supported" = "yes" ; then
11496 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
11497 found="yes"
11498 fi
11499 fi
11500
11501
11502
11503
11504
11505
11506
11507 xorg_testset_save_CFLAGS="$CFLAGS"
11508
11509 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11511 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11512 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11513 cat >conftest.$ac_ext <<_ACEOF
11514 /* confdefs.h. */
11515 _ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h. */
11519 int i;
11520 _ACEOF
11521 rm -f conftest.$ac_objext
11522 if { (ac_try="$ac_compile"
11523 case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11526 esac
11527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528 (eval "$ac_compile") 2>conftest.er1
11529 ac_status=$?
11530 grep -v '^ *+' conftest.er1 >conftest.err
11531 rm -f conftest.er1
11532 cat conftest.err >&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); } && {
11535 test -z "$ac_c_werror_flag" ||
11536 test ! -s conftest.err
11537 } && test -s conftest.$ac_objext; then
11538 xorg_testset_unknown_warning_option=yes
11539 else
11540 echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11542
11543 xorg_testset_unknown_warning_option=no
11544 fi
11545
11546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11547 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11548 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11549 CFLAGS="$xorg_testset_save_CFLAGS"
11550 fi
11551
11552 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11553 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11555 fi
11556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11557 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11558 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11559 cat >conftest.$ac_ext <<_ACEOF
11560 /* confdefs.h. */
11561 _ACEOF
11562 cat confdefs.h >>conftest.$ac_ext
11563 cat >>conftest.$ac_ext <<_ACEOF
11564 /* end confdefs.h. */
11565 int i;
11566 _ACEOF
11567 rm -f conftest.$ac_objext
11568 if { (ac_try="$ac_compile"
11569 case "(($ac_try" in
11570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11571 *) ac_try_echo=$ac_try;;
11572 esac
11573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11574 (eval "$ac_compile") 2>conftest.er1
11575 ac_status=$?
11576 grep -v '^ *+' conftest.er1 >conftest.err
11577 rm -f conftest.er1
11578 cat conftest.err >&5
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); } && {
11581 test -z "$ac_c_werror_flag" ||
11582 test ! -s conftest.err
11583 } && test -s conftest.$ac_objext; then
11584 xorg_testset_unused_command_line_argument=yes
11585 else
11586 echo "$as_me: failed program was:" >&5
11587 sed 's/^/| /' conftest.$ac_ext >&5
11588
11589 xorg_testset_unused_command_line_argument=no
11590 fi
11591
11592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11593 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11594 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11595 CFLAGS="$xorg_testset_save_CFLAGS"
11596 fi
11597
11598 found="no"
11599
11600 if test $found = "no" ; then
11601 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11603 fi
11604
11605 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11607 fi
11608
11609 CFLAGS="$CFLAGS -Wwrite-strings"
11610
11611 { echo "$as_me:$LINENO: checking if $CC supports -Wwrite-strings" >&5
11612 echo $ECHO_N "checking if $CC supports -Wwrite-strings... $ECHO_C" >&6; }
11613 cat >conftest.$ac_ext <<_ACEOF
11614 /* confdefs.h. */
11615 _ACEOF
11616 cat confdefs.h >>conftest.$ac_ext
11617 cat >>conftest.$ac_ext <<_ACEOF
11618 /* end confdefs.h. */
11619 int i;
11620 int
11621 main ()
11622 {
11623
11624 ;
11625 return 0;
11626 }
11627 _ACEOF
11628 rm -f conftest.$ac_objext conftest$ac_exeext
11629 if { (ac_try="$ac_link"
11630 case "(($ac_try" in
11631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632 *) ac_try_echo=$ac_try;;
11633 esac
11634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11635 (eval "$ac_link") 2>conftest.er1
11636 ac_status=$?
11637 grep -v '^ *+' conftest.er1 >conftest.err
11638 rm -f conftest.er1
11639 cat conftest.err >&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } && {
11642 test -z "$ac_c_werror_flag" ||
11643 test ! -s conftest.err
11644 } && test -s conftest$ac_exeext &&
11645 $as_test_x conftest$ac_exeext; then
11646 supported=yes
11647 else
11648 echo "$as_me: failed program was:" >&5
11649 sed 's/^/| /' conftest.$ac_ext >&5
11650
11651 supported=no
11652 fi
11653
11654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11655 conftest$ac_exeext conftest.$ac_ext
11656 { echo "$as_me:$LINENO: result: $supported" >&5
11657 echo "${ECHO_T}$supported" >&6; }
11658 CFLAGS="$xorg_testset_save_CFLAGS"
11659
11660 if test "$supported" = "yes" ; then
11661 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
11662 found="yes"
11663 fi
11664 fi
11665
11666
11667
11668
11669
11670
11671
11672 xorg_testset_save_CFLAGS="$CFLAGS"
11673
11674 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11676 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11677 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11678 cat >conftest.$ac_ext <<_ACEOF
11679 /* confdefs.h. */
11680 _ACEOF
11681 cat confdefs.h >>conftest.$ac_ext
11682 cat >>conftest.$ac_ext <<_ACEOF
11683 /* end confdefs.h. */
11684 int i;
11685 _ACEOF
11686 rm -f conftest.$ac_objext
11687 if { (ac_try="$ac_compile"
11688 case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11691 esac
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_compile") 2>conftest.er1
11694 ac_status=$?
11695 grep -v '^ *+' conftest.er1 >conftest.err
11696 rm -f conftest.er1
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } && {
11700 test -z "$ac_c_werror_flag" ||
11701 test ! -s conftest.err
11702 } && test -s conftest.$ac_objext; then
11703 xorg_testset_unknown_warning_option=yes
11704 else
11705 echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11707
11708 xorg_testset_unknown_warning_option=no
11709 fi
11710
11711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11712 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11713 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11714 CFLAGS="$xorg_testset_save_CFLAGS"
11715 fi
11716
11717 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11718 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11720 fi
11721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11722 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11723 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11724 cat >conftest.$ac_ext <<_ACEOF
11725 /* confdefs.h. */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11730 int i;
11731 _ACEOF
11732 rm -f conftest.$ac_objext
11733 if { (ac_try="$ac_compile"
11734 case "(($ac_try" in
11735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736 *) ac_try_echo=$ac_try;;
11737 esac
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739 (eval "$ac_compile") 2>conftest.er1
11740 ac_status=$?
11741 grep -v '^ *+' conftest.er1 >conftest.err
11742 rm -f conftest.er1
11743 cat conftest.err >&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } && {
11746 test -z "$ac_c_werror_flag" ||
11747 test ! -s conftest.err
11748 } && test -s conftest.$ac_objext; then
11749 xorg_testset_unused_command_line_argument=yes
11750 else
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11753
11754 xorg_testset_unused_command_line_argument=no
11755 fi
11756
11757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11758 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11759 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11760 CFLAGS="$xorg_testset_save_CFLAGS"
11761 fi
11762
11763 found="no"
11764
11765 if test $found = "no" ; then
11766 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11768 fi
11769
11770 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11772 fi
11773
11774 CFLAGS="$CFLAGS -Waddress"
11775
11776 { echo "$as_me:$LINENO: checking if $CC supports -Waddress" >&5
11777 echo $ECHO_N "checking if $CC supports -Waddress... $ECHO_C" >&6; }
11778 cat >conftest.$ac_ext <<_ACEOF
11779 /* confdefs.h. */
11780 _ACEOF
11781 cat confdefs.h >>conftest.$ac_ext
11782 cat >>conftest.$ac_ext <<_ACEOF
11783 /* end confdefs.h. */
11784 int i;
11785 int
11786 main ()
11787 {
11788
11789 ;
11790 return 0;
11791 }
11792 _ACEOF
11793 rm -f conftest.$ac_objext conftest$ac_exeext
11794 if { (ac_try="$ac_link"
11795 case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11798 esac
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_link") 2>conftest.er1
11801 ac_status=$?
11802 grep -v '^ *+' conftest.er1 >conftest.err
11803 rm -f conftest.er1
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } && {
11807 test -z "$ac_c_werror_flag" ||
11808 test ! -s conftest.err
11809 } && test -s conftest$ac_exeext &&
11810 $as_test_x conftest$ac_exeext; then
11811 supported=yes
11812 else
11813 echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11815
11816 supported=no
11817 fi
11818
11819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11820 conftest$ac_exeext conftest.$ac_ext
11821 { echo "$as_me:$LINENO: result: $supported" >&5
11822 echo "${ECHO_T}$supported" >&6; }
11823 CFLAGS="$xorg_testset_save_CFLAGS"
11824
11825 if test "$supported" = "yes" ; then
11826 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
11827 found="yes"
11828 fi
11829 fi
11830
11831
11832
11833
11834
11835
11836
11837 xorg_testset_save_CFLAGS="$CFLAGS"
11838
11839 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11841 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11842 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11843 cat >conftest.$ac_ext <<_ACEOF
11844 /* confdefs.h. */
11845 _ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849 int i;
11850 _ACEOF
11851 rm -f conftest.$ac_objext
11852 if { (ac_try="$ac_compile"
11853 case "(($ac_try" in
11854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11855 *) ac_try_echo=$ac_try;;
11856 esac
11857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11858 (eval "$ac_compile") 2>conftest.er1
11859 ac_status=$?
11860 grep -v '^ *+' conftest.er1 >conftest.err
11861 rm -f conftest.er1
11862 cat conftest.err >&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); } && {
11865 test -z "$ac_c_werror_flag" ||
11866 test ! -s conftest.err
11867 } && test -s conftest.$ac_objext; then
11868 xorg_testset_unknown_warning_option=yes
11869 else
11870 echo "$as_me: failed program was:" >&5
11871 sed 's/^/| /' conftest.$ac_ext >&5
11872
11873 xorg_testset_unknown_warning_option=no
11874 fi
11875
11876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11877 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11878 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11879 CFLAGS="$xorg_testset_save_CFLAGS"
11880 fi
11881
11882 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11883 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11885 fi
11886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11887 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11888 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11889 cat >conftest.$ac_ext <<_ACEOF
11890 /* confdefs.h. */
11891 _ACEOF
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h. */
11895 int i;
11896 _ACEOF
11897 rm -f conftest.$ac_objext
11898 if { (ac_try="$ac_compile"
11899 case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11902 esac
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_compile") 2>conftest.er1
11905 ac_status=$?
11906 grep -v '^ *+' conftest.er1 >conftest.err
11907 rm -f conftest.er1
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } && {
11911 test -z "$ac_c_werror_flag" ||
11912 test ! -s conftest.err
11913 } && test -s conftest.$ac_objext; then
11914 xorg_testset_unused_command_line_argument=yes
11915 else
11916 echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11918
11919 xorg_testset_unused_command_line_argument=no
11920 fi
11921
11922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11923 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11924 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11925 CFLAGS="$xorg_testset_save_CFLAGS"
11926 fi
11927
11928 found="no"
11929
11930 if test $found = "no" ; then
11931 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11933 fi
11934
11935 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11937 fi
11938
11939 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
11940
11941 { echo "$as_me:$LINENO: checking if $CC supports -Wint-to-pointer-cast" >&5
11942 echo $ECHO_N "checking if $CC supports -Wint-to-pointer-cast... $ECHO_C" >&6; }
11943 cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h. */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11949 int i;
11950 int
11951 main ()
11952 {
11953
11954 ;
11955 return 0;
11956 }
11957 _ACEOF
11958 rm -f conftest.$ac_objext conftest$ac_exeext
11959 if { (ac_try="$ac_link"
11960 case "(($ac_try" in
11961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962 *) ac_try_echo=$ac_try;;
11963 esac
11964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11965 (eval "$ac_link") 2>conftest.er1
11966 ac_status=$?
11967 grep -v '^ *+' conftest.er1 >conftest.err
11968 rm -f conftest.er1
11969 cat conftest.err >&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } && {
11972 test -z "$ac_c_werror_flag" ||
11973 test ! -s conftest.err
11974 } && test -s conftest$ac_exeext &&
11975 $as_test_x conftest$ac_exeext; then
11976 supported=yes
11977 else
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11980
11981 supported=no
11982 fi
11983
11984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11985 conftest$ac_exeext conftest.$ac_ext
11986 { echo "$as_me:$LINENO: result: $supported" >&5
11987 echo "${ECHO_T}$supported" >&6; }
11988 CFLAGS="$xorg_testset_save_CFLAGS"
11989
11990 if test "$supported" = "yes" ; then
11991 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
11992 found="yes"
11993 fi
11994 fi
11995
11996
11997
11998
11999
12000
12001
12002 xorg_testset_save_CFLAGS="$CFLAGS"
12003
12004 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12006 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
12007 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
12008 cat >conftest.$ac_ext <<_ACEOF
12009 /* confdefs.h. */
12010 _ACEOF
12011 cat confdefs.h >>conftest.$ac_ext
12012 cat >>conftest.$ac_ext <<_ACEOF
12013 /* end confdefs.h. */
12014 int i;
12015 _ACEOF
12016 rm -f conftest.$ac_objext
12017 if { (ac_try="$ac_compile"
12018 case "(($ac_try" in
12019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020 *) ac_try_echo=$ac_try;;
12021 esac
12022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12023 (eval "$ac_compile") 2>conftest.er1
12024 ac_status=$?
12025 grep -v '^ *+' conftest.er1 >conftest.err
12026 rm -f conftest.er1
12027 cat conftest.err >&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } && {
12030 test -z "$ac_c_werror_flag" ||
12031 test ! -s conftest.err
12032 } && test -s conftest.$ac_objext; then
12033 xorg_testset_unknown_warning_option=yes
12034 else
12035 echo "$as_me: failed program was:" >&5
12036 sed 's/^/| /' conftest.$ac_ext >&5
12037
12038 xorg_testset_unknown_warning_option=no
12039 fi
12040
12041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12042 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
12043 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
12044 CFLAGS="$xorg_testset_save_CFLAGS"
12045 fi
12046
12047 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12048 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12050 fi
12051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12052 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12053 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12054 cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h. */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12060 int i;
12061 _ACEOF
12062 rm -f conftest.$ac_objext
12063 if { (ac_try="$ac_compile"
12064 case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12067 esac
12068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069 (eval "$ac_compile") 2>conftest.er1
12070 ac_status=$?
12071 grep -v '^ *+' conftest.er1 >conftest.err
12072 rm -f conftest.er1
12073 cat conftest.err >&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } && {
12076 test -z "$ac_c_werror_flag" ||
12077 test ! -s conftest.err
12078 } && test -s conftest.$ac_objext; then
12079 xorg_testset_unused_command_line_argument=yes
12080 else
12081 echo "$as_me: failed program was:" >&5
12082 sed 's/^/| /' conftest.$ac_ext >&5
12083
12084 xorg_testset_unused_command_line_argument=no
12085 fi
12086
12087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12088 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12089 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12090 CFLAGS="$xorg_testset_save_CFLAGS"
12091 fi
12092
12093 found="no"
12094
12095 if test $found = "no" ; then
12096 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12098 fi
12099
12100 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12102 fi
12103
12104 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
12105
12106 { echo "$as_me:$LINENO: checking if $CC supports -Wpointer-to-int-cast" >&5
12107 echo $ECHO_N "checking if $CC supports -Wpointer-to-int-cast... $ECHO_C" >&6; }
12108 cat >conftest.$ac_ext <<_ACEOF
12109 /* confdefs.h. */
12110 _ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 int i;
12115 int
12116 main ()
12117 {
12118
12119 ;
12120 return 0;
12121 }
12122 _ACEOF
12123 rm -f conftest.$ac_objext conftest$ac_exeext
12124 if { (ac_try="$ac_link"
12125 case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12128 esac
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_link") 2>conftest.er1
12131 ac_status=$?
12132 grep -v '^ *+' conftest.er1 >conftest.err
12133 rm -f conftest.er1
12134 cat conftest.err >&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } && {
12137 test -z "$ac_c_werror_flag" ||
12138 test ! -s conftest.err
12139 } && test -s conftest$ac_exeext &&
12140 $as_test_x conftest$ac_exeext; then
12141 supported=yes
12142 else
12143 echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12145
12146 supported=no
12147 fi
12148
12149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12150 conftest$ac_exeext conftest.$ac_ext
12151 { echo "$as_me:$LINENO: result: $supported" >&5
12152 echo "${ECHO_T}$supported" >&6; }
12153 CFLAGS="$xorg_testset_save_CFLAGS"
12154
12155 if test "$supported" = "yes" ; then
12156 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
12157 found="yes"
12158 fi
12159 fi
12160
12161
12162 fi
12163
12164
12165
12166
12167
12168
12169 CWARNFLAGS="$BASE_CFLAGS"
12170 if test "x$GCC" = xyes ; then
12171 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
12172 fi
12173
12174
12175
12176
12177
12178
12179 # Check whether --enable-strict-compilation was given.
12180 if test "${enable_strict_compilation+set}" = set; then
12181 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
12182 else
12183 STRICT_COMPILE=no
12184 fi
12185
12186
12187 STRICT_CFLAGS=""
12188
12189
12190
12191
12192
12193 xorg_testset_save_CFLAGS="$CFLAGS"
12194
12195 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12197 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
12198 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
12199 cat >conftest.$ac_ext <<_ACEOF
12200 /* confdefs.h. */
12201 _ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h. */
12205 int i;
12206 _ACEOF
12207 rm -f conftest.$ac_objext
12208 if { (ac_try="$ac_compile"
12209 case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12212 esac
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_compile") 2>conftest.er1
12215 ac_status=$?
12216 grep -v '^ *+' conftest.er1 >conftest.err
12217 rm -f conftest.er1
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } && {
12221 test -z "$ac_c_werror_flag" ||
12222 test ! -s conftest.err
12223 } && test -s conftest.$ac_objext; then
12224 xorg_testset_unknown_warning_option=yes
12225 else
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12228
12229 xorg_testset_unknown_warning_option=no
12230 fi
12231
12232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
12234 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
12235 CFLAGS="$xorg_testset_save_CFLAGS"
12236 fi
12237
12238 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12239 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12241 fi
12242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12243 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12244 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12245 cat >conftest.$ac_ext <<_ACEOF
12246 /* confdefs.h. */
12247 _ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12251 int i;
12252 _ACEOF
12253 rm -f conftest.$ac_objext
12254 if { (ac_try="$ac_compile"
12255 case "(($ac_try" in
12256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12257 *) ac_try_echo=$ac_try;;
12258 esac
12259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12260 (eval "$ac_compile") 2>conftest.er1
12261 ac_status=$?
12262 grep -v '^ *+' conftest.er1 >conftest.err
12263 rm -f conftest.er1
12264 cat conftest.err >&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); } && {
12267 test -z "$ac_c_werror_flag" ||
12268 test ! -s conftest.err
12269 } && test -s conftest.$ac_objext; then
12270 xorg_testset_unused_command_line_argument=yes
12271 else
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12274
12275 xorg_testset_unused_command_line_argument=no
12276 fi
12277
12278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12279 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12280 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12281 CFLAGS="$xorg_testset_save_CFLAGS"
12282 fi
12283
12284 found="no"
12285
12286 if test $found = "no" ; then
12287 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12289 fi
12290
12291 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12293 fi
12294
12295 CFLAGS="$CFLAGS -pedantic"
12296
12297 { echo "$as_me:$LINENO: checking if $CC supports -pedantic" >&5
12298 echo $ECHO_N "checking if $CC supports -pedantic... $ECHO_C" >&6; }
12299 cat >conftest.$ac_ext <<_ACEOF
12300 /* confdefs.h. */
12301 _ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h. */
12305 int i;
12306 int
12307 main ()
12308 {
12309
12310 ;
12311 return 0;
12312 }
12313 _ACEOF
12314 rm -f conftest.$ac_objext conftest$ac_exeext
12315 if { (ac_try="$ac_link"
12316 case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12319 esac
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_link") 2>conftest.er1
12322 ac_status=$?
12323 grep -v '^ *+' conftest.er1 >conftest.err
12324 rm -f conftest.er1
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } && {
12328 test -z "$ac_c_werror_flag" ||
12329 test ! -s conftest.err
12330 } && test -s conftest$ac_exeext &&
12331 $as_test_x conftest$ac_exeext; then
12332 supported=yes
12333 else
12334 echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12336
12337 supported=no
12338 fi
12339
12340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12341 conftest$ac_exeext conftest.$ac_ext
12342 { echo "$as_me:$LINENO: result: $supported" >&5
12343 echo "${ECHO_T}$supported" >&6; }
12344 CFLAGS="$xorg_testset_save_CFLAGS"
12345
12346 if test "$supported" = "yes" ; then
12347 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
12348 found="yes"
12349 fi
12350 fi
12351
12352
12353
12354
12355
12356
12357
12358 xorg_testset_save_CFLAGS="$CFLAGS"
12359
12360 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12362 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
12363 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
12364 cat >conftest.$ac_ext <<_ACEOF
12365 /* confdefs.h. */
12366 _ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h. */
12370 int i;
12371 _ACEOF
12372 rm -f conftest.$ac_objext
12373 if { (ac_try="$ac_compile"
12374 case "(($ac_try" in
12375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12376 *) ac_try_echo=$ac_try;;
12377 esac
12378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12379 (eval "$ac_compile") 2>conftest.er1
12380 ac_status=$?
12381 grep -v '^ *+' conftest.er1 >conftest.err
12382 rm -f conftest.er1
12383 cat conftest.err >&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } && {
12386 test -z "$ac_c_werror_flag" ||
12387 test ! -s conftest.err
12388 } && test -s conftest.$ac_objext; then
12389 xorg_testset_unknown_warning_option=yes
12390 else
12391 echo "$as_me: failed program was:" >&5
12392 sed 's/^/| /' conftest.$ac_ext >&5
12393
12394 xorg_testset_unknown_warning_option=no
12395 fi
12396
12397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12398 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
12399 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
12400 CFLAGS="$xorg_testset_save_CFLAGS"
12401 fi
12402
12403 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12404 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12406 fi
12407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12408 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12409 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12410 cat >conftest.$ac_ext <<_ACEOF
12411 /* confdefs.h. */
12412 _ACEOF
12413 cat confdefs.h >>conftest.$ac_ext
12414 cat >>conftest.$ac_ext <<_ACEOF
12415 /* end confdefs.h. */
12416 int i;
12417 _ACEOF
12418 rm -f conftest.$ac_objext
12419 if { (ac_try="$ac_compile"
12420 case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12423 esac
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_compile") 2>conftest.er1
12426 ac_status=$?
12427 grep -v '^ *+' conftest.er1 >conftest.err
12428 rm -f conftest.er1
12429 cat conftest.err >&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } && {
12432 test -z "$ac_c_werror_flag" ||
12433 test ! -s conftest.err
12434 } && test -s conftest.$ac_objext; then
12435 xorg_testset_unused_command_line_argument=yes
12436 else
12437 echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12439
12440 xorg_testset_unused_command_line_argument=no
12441 fi
12442
12443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12444 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12445 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12446 CFLAGS="$xorg_testset_save_CFLAGS"
12447 fi
12448
12449 found="no"
12450
12451 if test $found = "no" ; then
12452 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12454 fi
12455
12456 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12458 fi
12459
12460 CFLAGS="$CFLAGS -Werror"
12461
12462 { echo "$as_me:$LINENO: checking if $CC supports -Werror" >&5
12463 echo $ECHO_N "checking if $CC supports -Werror... $ECHO_C" >&6; }
12464 cat >conftest.$ac_ext <<_ACEOF
12465 /* confdefs.h. */
12466 _ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12470 int i;
12471 int
12472 main ()
12473 {
12474
12475 ;
12476 return 0;
12477 }
12478 _ACEOF
12479 rm -f conftest.$ac_objext conftest$ac_exeext
12480 if { (ac_try="$ac_link"
12481 case "(($ac_try" in
12482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483 *) ac_try_echo=$ac_try;;
12484 esac
12485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486 (eval "$ac_link") 2>conftest.er1
12487 ac_status=$?
12488 grep -v '^ *+' conftest.er1 >conftest.err
12489 rm -f conftest.er1
12490 cat conftest.err >&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } && {
12493 test -z "$ac_c_werror_flag" ||
12494 test ! -s conftest.err
12495 } && test -s conftest$ac_exeext &&
12496 $as_test_x conftest$ac_exeext; then
12497 supported=yes
12498 else
12499 echo "$as_me: failed program was:" >&5
12500 sed 's/^/| /' conftest.$ac_ext >&5
12501
12502 supported=no
12503 fi
12504
12505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12506 conftest$ac_exeext conftest.$ac_ext
12507 { echo "$as_me:$LINENO: result: $supported" >&5
12508 echo "${ECHO_T}$supported" >&6; }
12509 CFLAGS="$xorg_testset_save_CFLAGS"
12510
12511 if test "$supported" = "yes" ; then
12512 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
12513 found="yes"
12514 fi
12515 fi
12516
12517 if test $found = "no" ; then
12518 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12520 fi
12521
12522 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12524 fi
12525
12526 CFLAGS="$CFLAGS -errwarn"
12527
12528 { echo "$as_me:$LINENO: checking if $CC supports -errwarn" >&5
12529 echo $ECHO_N "checking if $CC supports -errwarn... $ECHO_C" >&6; }
12530 cat >conftest.$ac_ext <<_ACEOF
12531 /* confdefs.h. */
12532 _ACEOF
12533 cat confdefs.h >>conftest.$ac_ext
12534 cat >>conftest.$ac_ext <<_ACEOF
12535 /* end confdefs.h. */
12536 int i;
12537 int
12538 main ()
12539 {
12540
12541 ;
12542 return 0;
12543 }
12544 _ACEOF
12545 rm -f conftest.$ac_objext conftest$ac_exeext
12546 if { (ac_try="$ac_link"
12547 case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12550 esac
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_link") 2>conftest.er1
12553 ac_status=$?
12554 grep -v '^ *+' conftest.er1 >conftest.err
12555 rm -f conftest.er1
12556 cat conftest.err >&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } && {
12559 test -z "$ac_c_werror_flag" ||
12560 test ! -s conftest.err
12561 } && test -s conftest$ac_exeext &&
12562 $as_test_x conftest$ac_exeext; then
12563 supported=yes
12564 else
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12567
12568 supported=no
12569 fi
12570
12571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12572 conftest$ac_exeext conftest.$ac_ext
12573 { echo "$as_me:$LINENO: result: $supported" >&5
12574 echo "${ECHO_T}$supported" >&6; }
12575 CFLAGS="$xorg_testset_save_CFLAGS"
12576
12577 if test "$supported" = "yes" ; then
12578 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
12579 found="yes"
12580 fi
12581 fi
12582
12583
12584
12585 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
12586 # activate it with -Werror, so we add it here explicitly.
12587
12588
12589
12590
12591
12592 xorg_testset_save_CFLAGS="$CFLAGS"
12593
12594 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12596 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
12597 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
12598 cat >conftest.$ac_ext <<_ACEOF
12599 /* confdefs.h. */
12600 _ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12604 int i;
12605 _ACEOF
12606 rm -f conftest.$ac_objext
12607 if { (ac_try="$ac_compile"
12608 case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12611 esac
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_compile") 2>conftest.er1
12614 ac_status=$?
12615 grep -v '^ *+' conftest.er1 >conftest.err
12616 rm -f conftest.er1
12617 cat conftest.err >&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } && {
12620 test -z "$ac_c_werror_flag" ||
12621 test ! -s conftest.err
12622 } && test -s conftest.$ac_objext; then
12623 xorg_testset_unknown_warning_option=yes
12624 else
12625 echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12627
12628 xorg_testset_unknown_warning_option=no
12629 fi
12630
12631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12632 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
12633 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
12634 CFLAGS="$xorg_testset_save_CFLAGS"
12635 fi
12636
12637 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12638 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12640 fi
12641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12642 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12643 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12644 cat >conftest.$ac_ext <<_ACEOF
12645 /* confdefs.h. */
12646 _ACEOF
12647 cat confdefs.h >>conftest.$ac_ext
12648 cat >>conftest.$ac_ext <<_ACEOF
12649 /* end confdefs.h. */
12650 int i;
12651 _ACEOF
12652 rm -f conftest.$ac_objext
12653 if { (ac_try="$ac_compile"
12654 case "(($ac_try" in
12655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656 *) ac_try_echo=$ac_try;;
12657 esac
12658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659 (eval "$ac_compile") 2>conftest.er1
12660 ac_status=$?
12661 grep -v '^ *+' conftest.er1 >conftest.err
12662 rm -f conftest.er1
12663 cat conftest.err >&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } && {
12666 test -z "$ac_c_werror_flag" ||
12667 test ! -s conftest.err
12668 } && test -s conftest.$ac_objext; then
12669 xorg_testset_unused_command_line_argument=yes
12670 else
12671 echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12673
12674 xorg_testset_unused_command_line_argument=no
12675 fi
12676
12677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12678 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12679 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12680 CFLAGS="$xorg_testset_save_CFLAGS"
12681 fi
12682
12683 found="no"
12684
12685 if test $found = "no" ; then
12686 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12688 fi
12689
12690 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12692 fi
12693
12694 CFLAGS="$CFLAGS -Werror=attributes"
12695
12696 { echo "$as_me:$LINENO: checking if $CC supports -Werror=attributes" >&5
12697 echo $ECHO_N "checking if $CC supports -Werror=attributes... $ECHO_C" >&6; }
12698 cat >conftest.$ac_ext <<_ACEOF
12699 /* confdefs.h. */
12700 _ACEOF
12701 cat confdefs.h >>conftest.$ac_ext
12702 cat >>conftest.$ac_ext <<_ACEOF
12703 /* end confdefs.h. */
12704 int i;
12705 int
12706 main ()
12707 {
12708
12709 ;
12710 return 0;
12711 }
12712 _ACEOF
12713 rm -f conftest.$ac_objext conftest$ac_exeext
12714 if { (ac_try="$ac_link"
12715 case "(($ac_try" in
12716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12717 *) ac_try_echo=$ac_try;;
12718 esac
12719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12720 (eval "$ac_link") 2>conftest.er1
12721 ac_status=$?
12722 grep -v '^ *+' conftest.er1 >conftest.err
12723 rm -f conftest.er1
12724 cat conftest.err >&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); } && {
12727 test -z "$ac_c_werror_flag" ||
12728 test ! -s conftest.err
12729 } && test -s conftest$ac_exeext &&
12730 $as_test_x conftest$ac_exeext; then
12731 supported=yes
12732 else
12733 echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.$ac_ext >&5
12735
12736 supported=no
12737 fi
12738
12739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12740 conftest$ac_exeext conftest.$ac_ext
12741 { echo "$as_me:$LINENO: result: $supported" >&5
12742 echo "${ECHO_T}$supported" >&6; }
12743 CFLAGS="$xorg_testset_save_CFLAGS"
12744
12745 if test "$supported" = "yes" ; then
12746 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
12747 found="yes"
12748 fi
12749 fi
12750
12751
12752
12753 if test "x$STRICT_COMPILE" = "xyes"; then
12754 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
12755 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
12756 fi
12757
12758
12759
12760
12761
12762
12763 cat >>confdefs.h <<_ACEOF
12764 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
12765 _ACEOF
12766
12767 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
12768 if test "x$PVM" = "x"; then
12769 PVM="0"
12770 fi
12771
12772 cat >>confdefs.h <<_ACEOF
12773 #define PACKAGE_VERSION_MINOR $PVM
12774 _ACEOF
12775
12776 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
12777 if test "x$PVP" = "x"; then
12778 PVP="0"
12779 fi
12780
12781 cat >>confdefs.h <<_ACEOF
12782 #define PACKAGE_VERSION_PATCHLEVEL $PVP
12783 _ACEOF
12784
12785
12786
12787 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
12788 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
12789 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
12790 echo 'git directory not found: installing possibly empty changelog.' >&2)"
12791
12792
12793
12794
12795 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
12796 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
12797 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
12798 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
12799 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
12800
12801
12802
12803
12804
12805
12806 if test x$APP_MAN_SUFFIX = x ; then
12807 APP_MAN_SUFFIX=1
12808 fi
12809 if test x$APP_MAN_DIR = x ; then
12810 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12811 fi
12812
12813 if test x$LIB_MAN_SUFFIX = x ; then
12814 LIB_MAN_SUFFIX=3
12815 fi
12816 if test x$LIB_MAN_DIR = x ; then
12817 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12818 fi
12819
12820 if test x$FILE_MAN_SUFFIX = x ; then
12821 case $host_os in
12822 solaris*) FILE_MAN_SUFFIX=4 ;;
12823 *) FILE_MAN_SUFFIX=5 ;;
12824 esac
12825 fi
12826 if test x$FILE_MAN_DIR = x ; then
12827 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12828 fi
12829
12830 if test x$MISC_MAN_SUFFIX = x ; then
12831 case $host_os in
12832 solaris*) MISC_MAN_SUFFIX=5 ;;
12833 *) MISC_MAN_SUFFIX=7 ;;
12834 esac
12835 fi
12836 if test x$MISC_MAN_DIR = x ; then
12837 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
12838 fi
12839
12840 if test x$DRIVER_MAN_SUFFIX = x ; then
12841 case $host_os in
12842 solaris*) DRIVER_MAN_SUFFIX=7 ;;
12843 *) DRIVER_MAN_SUFFIX=4 ;;
12844 esac
12845 fi
12846 if test x$DRIVER_MAN_DIR = x ; then
12847 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12848 fi
12849
12850 if test x$ADMIN_MAN_SUFFIX = x ; then
12851 case $host_os in
12852 solaris*) ADMIN_MAN_SUFFIX=1m ;;
12853 *) ADMIN_MAN_SUFFIX=8 ;;
12854 esac
12855 fi
12856 if test x$ADMIN_MAN_DIR = x ; then
12857 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12858 fi
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874 XORG_MAN_PAGE="X Version 11"
12875
12876 MAN_SUBSTS="\
12877 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12878 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12879 -e 's|__xservername__|Xorg|g' \
12880 -e 's|__xconfigfile__|xorg.conf|g' \
12881 -e 's|__projectroot__|\$(prefix)|g' \
12882 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
12883 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
12884 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
12885 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
12886 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
12887 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
12888 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
12889
12890
12891
12892 AM_DEFAULT_VERBOSITY=1
12893
12894
12895
12896
12897
12898 for ac_prog in cpp
12899 do
12900 # Extract the first word of "$ac_prog", so it can be a program name with args.
12901 set dummy $ac_prog; ac_word=$2
12902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12904 if test "${ac_cv_path_RAWCPP+set}" = set; then
12905 echo $ECHO_N "(cached) $ECHO_C" >&6
12906 else
12907 case $RAWCPP in
12908 [\\/]* | ?:[\\/]*)
12909 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
12910 ;;
12911 *)
12912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12913 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
12914 for as_dir in $as_dummy
12915 do
12916 IFS=$as_save_IFS
12917 test -z "$as_dir" && as_dir=.
12918 for ac_exec_ext in '' $ac_executable_extensions; do
12919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12920 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
12921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12922 break 2
12923 fi
12924 done
12925 done
12926 IFS=$as_save_IFS
12927
12928 ;;
12929 esac
12930 fi
12931 RAWCPP=$ac_cv_path_RAWCPP
12932 if test -n "$RAWCPP"; then
12933 { echo "$as_me:$LINENO: result: $RAWCPP" >&5
12934 echo "${ECHO_T}$RAWCPP" >&6; }
12935 else
12936 { echo "$as_me:$LINENO: result: no" >&5
12937 echo "${ECHO_T}no" >&6; }
12938 fi
12939
12940
12941 test -n "$RAWCPP" && break
12942 done
12943 test -n "$RAWCPP" || RAWCPP="${CPP}"
12944
12945
12946 # Check for flag to avoid builtin definitions - assumes unix is predefined,
12947 # which is not the best choice for supporting other OS'es, but covers most
12948 # of the ones we need for now.
12949 { echo "$as_me:$LINENO: checking if $RAWCPP requires -undef" >&5
12950 echo $ECHO_N "checking if $RAWCPP requires -undef... $ECHO_C" >&6; }
12951 cat >conftest.$ac_ext <<_ACEOF
12952 /* confdefs.h. */
12953 _ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h. */
12957 Does cpp redefine unix ?
12958 _ACEOF
12959 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12960 { echo "$as_me:$LINENO: result: no" >&5
12961 echo "${ECHO_T}no" >&6; }
12962 else
12963 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12964 RAWCPPFLAGS=-undef
12965 { echo "$as_me:$LINENO: result: yes" >&5
12966 echo "${ECHO_T}yes" >&6; }
12967 # under Cygwin unix is still defined even with -undef
12968 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12969 RAWCPPFLAGS="-undef -ansi"
12970 { echo "$as_me:$LINENO: result: yes, with -ansi" >&5
12971 echo "${ECHO_T}yes, with -ansi" >&6; }
12972 else
12973 { { echo "$as_me:$LINENO: error: ${RAWCPP} defines unix with or without -undef. I don't know what to do." >&5
12974 echo "$as_me: error: ${RAWCPP} defines unix with or without -undef. I don't know what to do." >&2;}
12975 { (exit 1); exit 1; }; }
12976 fi
12977 fi
12978 rm -f conftest.$ac_ext
12979
12980 { echo "$as_me:$LINENO: checking if $RAWCPP requires -traditional" >&5
12981 echo $ECHO_N "checking if $RAWCPP requires -traditional... $ECHO_C" >&6; }
12982 cat >conftest.$ac_ext <<_ACEOF
12983 /* confdefs.h. */
12984 _ACEOF
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h. */
12988 Does cpp preserve "whitespace"?
12989 _ACEOF
12990 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
12991 { echo "$as_me:$LINENO: result: no" >&5
12992 echo "${ECHO_T}no" >&6; }
12993 else
12994 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
12995 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
12996 { echo "$as_me:$LINENO: result: yes" >&5
12997 echo "${ECHO_T}yes" >&6; }
12998 else
12999 { { echo "$as_me:$LINENO: error: ${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." >&5
13000 echo "$as_me: error: ${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." >&2;}
13001 { (exit 1); exit 1; }; }
13002 fi
13003 fi
13004 rm -f conftest.$ac_ext
13005
13006
13007 { echo "$as_me:$LINENO: checking host system type" >&5
13008 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
13009 if test "${ac_cv_host+set}" = set; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
13011 else
13012 if test "x$host_alias" = x; then
13013 ac_cv_host=$ac_cv_build
13014 else
13015 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13016 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
13017 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
13018 { (exit 1); exit 1; }; }
13019 fi
13020
13021 fi
13022 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
13023 echo "${ECHO_T}$ac_cv_host" >&6; }
13024 case $ac_cv_host in
13025 *-*-*) ;;
13026 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
13027 echo "$as_me: error: invalid value of canonical host" >&2;}
13028 { (exit 1); exit 1; }; };;
13029 esac
13030 host=$ac_cv_host
13031 ac_save_IFS=$IFS; IFS='-'
13032 set x $ac_cv_host
13033 shift
13034 host_cpu=$1
13035 host_vendor=$2
13036 shift; shift
13037 # Remember, the first character of IFS is used to create $*,
13038 # except with old shells:
13039 host_os=$*
13040 IFS=$ac_save_IFS
13041 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13042
13043
13044
13045 # Build options
13046 DEFAULT_XRDB=xrdb
13047 DEFAULT_XMODMAP=xmodmap
13048 DEFAULT_TWM=twm
13049 DEFAULT_XCLOCK=xclock
13050 DEFAULT_XTERM=xterm
13051 # You always want to specify the full path to the X server
13052 DEFAULT_XSERVER=${bindir}/X
13053 DEFAULT_XAUTH=xauth
13054 DEFAULT_XINIT=xinit
13055 DEFAULT_XINITDIR=${libdir}/X11/xinit
13056
13057
13058 # Check whether --with-xrdb was given.
13059 if test "${with_xrdb+set}" = set; then
13060 withval=$with_xrdb; XRDB="$withval"
13061 else
13062 XRDB="$DEFAULT_XRDB"
13063 fi
13064
13065
13066
13067 # Check whether --with-xmodmap was given.
13068 if test "${with_xmodmap+set}" = set; then
13069 withval=$with_xmodmap; XMODMAP="$withval"
13070 else
13071 XMODMAP="$DEFAULT_XMODMAP"
13072 fi
13073
13074
13075
13076 # Check whether --with-twm was given.
13077 if test "${with_twm+set}" = set; then
13078 withval=$with_twm; TWM="$withval"
13079 else
13080 TWM="$DEFAULT_TWM"
13081 fi
13082
13083
13084
13085 # Check whether --with-xclock was given.
13086 if test "${with_xclock+set}" = set; then
13087 withval=$with_xclock; XCLOCK="$withval"
13088 else
13089 XCLOCK="$DEFAULT_XCLOCK"
13090 fi
13091
13092
13093
13094 # Check whether --with-xterm was given.
13095 if test "${with_xterm+set}" = set; then
13096 withval=$with_xterm; XTERM="$withval"
13097 else
13098 XTERM="$DEFAULT_XTERM"
13099 fi
13100
13101
13102
13103 # Check whether --with-xserver was given.
13104 if test "${with_xserver+set}" = set; then
13105 withval=$with_xserver; XSERVER="$withval"
13106 else
13107 XSERVER="$DEFAULT_XSERVER"
13108 fi
13109
13110
13111
13112 # Check whether --with-xauth was given.
13113 if test "${with_xauth+set}" = set; then
13114 withval=$with_xauth; XAUTH="$withval"
13115 else
13116 XAUTH="$DEFAULT_XAUTH"
13117 fi
13118
13119
13120
13121 # Check whether --with-xinit was given.
13122 if test "${with_xinit+set}" = set; then
13123 withval=$with_xinit; XINIT="$withval"
13124 else
13125 XINIT="$DEFAULT_XINIT"
13126 fi
13127
13128
13129
13130 # Check whether --with-xinitdir was given.
13131 if test "${with_xinitdir+set}" = set; then
13132 withval=$with_xinitdir; XINITDIR="$withval"
13133 else
13134 XINITDIR="$DEFAULT_XINITDIR"
13135 fi
13136
13137
13138
13139 # Check whether --with-launchd was given.
13140 if test "${with_launchd+set}" = set; then
13141 withval=$with_launchd; LAUNCHD=$withval
13142 else
13143 LAUNCHD=auto
13144 fi
13145
13146
13147 # Check whether --with-launchagents-dir was given.
13148 if test "${with_launchagents_dir+set}" = set; then
13149 withval=$with_launchagents_dir; launchagentsdir="${withval}"
13150 else
13151 launchagentsdir="/Library/LaunchAgents"
13152 fi
13153
13154
13155 # Check whether --with-launchagent-xserver was given.
13156 if test "${with_launchagent_xserver+set}" = set; then
13157 withval=$with_launchagent_xserver; launchagentxserver="${withval}"
13158 else
13159 launchagentxserver="no"
13160 fi
13161
13162
13163 # Check whether --with-launchdaemons-dir was given.
13164 if test "${with_launchdaemons_dir+set}" = set; then
13165 withval=$with_launchdaemons_dir; launchdaemonsdir="${withval}"
13166 else
13167 launchdaemonsdir="/Library/LaunchDaemons"
13168 fi
13169
13170
13171 # Check whether --with-launchd-id-prefix was given.
13172 if test "${with_launchd_id_prefix+set}" = set; then
13173 withval=$with_launchd_id_prefix; bundleidprefix="${withval}"
13174 else
13175 bundleidprefix="org.x"
13176 fi
13177
13178
13179 # Check whether --with-bundle-id-prefix was given.
13180 if test "${with_bundle_id_prefix+set}" = set; then
13181 withval=$with_bundle_id_prefix; bundleidprefix="${withval}"
13182 fi
13183
13184
13185 if test "x$LAUNCHD" = "xauto"; then
13186 unset LAUNCHD
13187 # Extract the first word of "launchd", so it can be a program name with args.
13188 set dummy launchd; ac_word=$2
13189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13191 if test "${ac_cv_prog_LAUNCHD+set}" = set; then
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
13193 else
13194 if test -n "$LAUNCHD"; then
13195 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
13196 else
13197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13198 for as_dir in $PATH$PATH_SEPARATOR/sbin
13199 do
13200 IFS=$as_save_IFS
13201 test -z "$as_dir" && as_dir=.
13202 for ac_exec_ext in '' $ac_executable_extensions; do
13203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13204 ac_cv_prog_LAUNCHD="yes"
13205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13206 break 2
13207 fi
13208 done
13209 done
13210 IFS=$as_save_IFS
13211
13212 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
13213 fi
13214 fi
13215 LAUNCHD=$ac_cv_prog_LAUNCHD
13216 if test -n "$LAUNCHD"; then
13217 { echo "$as_me:$LINENO: result: $LAUNCHD" >&5
13218 echo "${ECHO_T}$LAUNCHD" >&6; }
13219 else
13220 { echo "$as_me:$LINENO: result: no" >&5
13221 echo "${ECHO_T}no" >&6; }
13222 fi
13223
13224
13225 fi
13226
13227 TIGER_LAUNCHD=no
13228 if test "x$LAUNCHD" = "xyes" ; then
13229
13230 cat >>confdefs.h <<\_ACEOF
13231 #define HAVE_LAUNCHD 1
13232 _ACEOF
13233
13234 case $host_os in
13235 darwin8*)
13236 TIGER_LAUNCHD=yes
13237 ;;
13238 esac
13239 { echo "$as_me:$LINENO: checking for dispatch_async" >&5
13240 echo $ECHO_N "checking for dispatch_async... $ECHO_C" >&6; }
13241 if test "${ac_cv_func_dispatch_async+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 else
13244 cat >conftest.$ac_ext <<_ACEOF
13245 /* confdefs.h. */
13246 _ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13250 /* Define dispatch_async to an innocuous variant, in case <limits.h> declares dispatch_async.
13251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13252 #define dispatch_async innocuous_dispatch_async
13253
13254 /* System header to define __stub macros and hopefully few prototypes,
13255 which can conflict with char dispatch_async (); below.
13256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13257 <limits.h> exists even on freestanding compilers. */
13258
13259 #ifdef __STDC__
13260 # include <limits.h>
13261 #else
13262 # include <assert.h>
13263 #endif
13264
13265 #undef dispatch_async
13266
13267 /* Override any GCC internal prototype to avoid an error.
13268 Use char because int might match the return type of a GCC
13269 builtin and then its argument prototype would still apply. */
13270 #ifdef __cplusplus
13271 extern "C"
13272 #endif
13273 char dispatch_async ();
13274 /* The GNU C library defines this for functions which it implements
13275 to always fail with ENOSYS. Some functions are actually named
13276 something starting with __ and the normal name is an alias. */
13277 #if defined __stub_dispatch_async || defined __stub___dispatch_async
13278 choke me
13279 #endif
13280
13281 int
13282 main ()
13283 {
13284 return dispatch_async ();
13285 ;
13286 return 0;
13287 }
13288 _ACEOF
13289 rm -f conftest.$ac_objext conftest$ac_exeext
13290 if { (ac_try="$ac_link"
13291 case "(($ac_try" in
13292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293 *) ac_try_echo=$ac_try;;
13294 esac
13295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296 (eval "$ac_link") 2>conftest.er1
13297 ac_status=$?
13298 grep -v '^ *+' conftest.er1 >conftest.err
13299 rm -f conftest.er1
13300 cat conftest.err >&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } && {
13303 test -z "$ac_c_werror_flag" ||
13304 test ! -s conftest.err
13305 } && test -s conftest$ac_exeext &&
13306 $as_test_x conftest$ac_exeext; then
13307 ac_cv_func_dispatch_async=yes
13308 else
13309 echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13311
13312 ac_cv_func_dispatch_async=no
13313 fi
13314
13315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13316 conftest$ac_exeext conftest.$ac_ext
13317 fi
13318 { echo "$as_me:$LINENO: result: $ac_cv_func_dispatch_async" >&5
13319 echo "${ECHO_T}$ac_cv_func_dispatch_async" >&6; }
13320 if test $ac_cv_func_dispatch_async = yes; then
13321
13322 cat >>confdefs.h <<\_ACEOF
13323 #define HAVE_LIBDISPATCH 1
13324 _ACEOF
13325
13326 fi
13327
13328 fi
13329
13330
13331 cat >>confdefs.h <<_ACEOF
13332 #define BUNDLE_ID_PREFIX "$bundleidprefix"
13333 _ACEOF
13334
13335
13336
13337
13338
13339 if test "x$LAUNCHD" = "xyes"; then
13340 LAUNCHD_TRUE=
13341 LAUNCHD_FALSE='#'
13342 else
13343 LAUNCHD_TRUE='#'
13344 LAUNCHD_FALSE=
13345 fi
13346
13347 if test "x$TIGER_LAUNCHD" = "xyes"; then
13348 TIGER_LAUNCHD_TRUE=
13349 TIGER_LAUNCHD_FALSE='#'
13350 else
13351 TIGER_LAUNCHD_TRUE='#'
13352 TIGER_LAUNCHD_FALSE=
13353 fi
13354
13355 if test "x$launchagentxserver" != "xno"; then
13356 LAUNCHAGENT_XSERVER_TRUE=
13357 LAUNCHAGENT_XSERVER_FALSE='#'
13358 else
13359 LAUNCHAGENT_XSERVER_TRUE='#'
13360 LAUNCHAGENT_XSERVER_FALSE=
13361 fi
13362
13363
13364 # Checks for pkg-config packages
13365
13366 pkg_failed=no
13367 { echo "$as_me:$LINENO: checking for XINIT" >&5
13368 echo $ECHO_N "checking for XINIT... $ECHO_C" >&6; }
13369
13370 if test -n "$XINIT_CFLAGS"; then
13371 pkg_cv_XINIT_CFLAGS="$XINIT_CFLAGS"
13372 elif test -n "$PKG_CONFIG"; then
13373 if test -n "$PKG_CONFIG" && \
13374 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
13375 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
13376 ac_status=$?
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); }; then
13379 pkg_cv_XINIT_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
13380 else
13381 pkg_failed=yes
13382 fi
13383 else
13384 pkg_failed=untried
13385 fi
13386 if test -n "$XINIT_LIBS"; then
13387 pkg_cv_XINIT_LIBS="$XINIT_LIBS"
13388 elif test -n "$PKG_CONFIG"; then
13389 if test -n "$PKG_CONFIG" && \
13390 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
13391 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
13392 ac_status=$?
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); }; then
13395 pkg_cv_XINIT_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
13396 else
13397 pkg_failed=yes
13398 fi
13399 else
13400 pkg_failed=untried
13401 fi
13402
13403
13404
13405 if test $pkg_failed = yes; then
13406 { echo "$as_me:$LINENO: result: no" >&5
13407 echo "${ECHO_T}no" >&6; }
13408
13409 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13410 _pkg_short_errors_supported=yes
13411 else
13412 _pkg_short_errors_supported=no
13413 fi
13414 if test $_pkg_short_errors_supported = yes; then
13415 XINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
13416 else
13417 XINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
13418 fi
13419 # Put the nasty error message in config.log where it belongs
13420 echo "$XINIT_PKG_ERRORS" >&5
13421
13422 { { echo "$as_me:$LINENO: error: Package requirements (x11) were not met:
13423
13424 $XINIT_PKG_ERRORS
13425
13426 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13427 installed software in a non-standard prefix.
13428
13429 Alternatively, you may set the environment variables XINIT_CFLAGS
13430 and XINIT_LIBS to avoid the need to call pkg-config.
13431 See the pkg-config man page for more details." >&5
13432 echo "$as_me: error: Package requirements (x11) were not met:
13433
13434 $XINIT_PKG_ERRORS
13435
13436 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13437 installed software in a non-standard prefix.
13438
13439 Alternatively, you may set the environment variables XINIT_CFLAGS
13440 and XINIT_LIBS to avoid the need to call pkg-config.
13441 See the pkg-config man page for more details." >&2;}
13442 { (exit 1); exit 1; }; }
13443 elif test $pkg_failed = untried; then
13444 { echo "$as_me:$LINENO: result: no" >&5
13445 echo "${ECHO_T}no" >&6; }
13446 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13447 is in your PATH or set the PKG_CONFIG environment variable to the full
13448 path to pkg-config.
13449
13450 Alternatively, you may set the environment variables XINIT_CFLAGS
13451 and XINIT_LIBS to avoid the need to call pkg-config.
13452 See the pkg-config man page for more details.
13453
13454 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13455 See \`config.log' for more details." >&5
13456 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13457 is in your PATH or set the PKG_CONFIG environment variable to the full
13458 path to pkg-config.
13459
13460 Alternatively, you may set the environment variables XINIT_CFLAGS
13461 and XINIT_LIBS to avoid the need to call pkg-config.
13462 See the pkg-config man page for more details.
13463
13464 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13465 See \`config.log' for more details." >&2;}
13466 { (exit 1); exit 1; }; }
13467 else
13468 XINIT_CFLAGS=$pkg_cv_XINIT_CFLAGS
13469 XINIT_LIBS=$pkg_cv_XINIT_LIBS
13470 { echo "$as_me:$LINENO: result: yes" >&5
13471 echo "${ECHO_T}yes" >&6; }
13472
13473 fi
13474
13475 case $host_os in
13476 *bsd*)
13477 XINIT_CFLAGS="$XINIT_CFLAGS -DCSRG_BASED"
13478 ;;
13479 esac
13480
13481
13482 for ac_prog in mcookie
13483 do
13484 # Extract the first word of "$ac_prog", so it can be a program name with args.
13485 set dummy $ac_prog; ac_word=$2
13486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13488 if test "${ac_cv_path_MCOOKIE+set}" = set; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 else
13491 case $MCOOKIE in
13492 [\\/]* | ?:[\\/]*)
13493 ac_cv_path_MCOOKIE="$MCOOKIE" # Let the user override the test with a path.
13494 ;;
13495 *)
13496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13497 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/local/bin"
13498 for as_dir in $as_dummy
13499 do
13500 IFS=$as_save_IFS
13501 test -z "$as_dir" && as_dir=.
13502 for ac_exec_ext in '' $ac_executable_extensions; do
13503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13504 ac_cv_path_MCOOKIE="$as_dir/$ac_word$ac_exec_ext"
13505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13506 break 2
13507 fi
13508 done
13509 done
13510 IFS=$as_save_IFS
13511
13512 ;;
13513 esac
13514 fi
13515 MCOOKIE=$ac_cv_path_MCOOKIE
13516 if test -n "$MCOOKIE"; then
13517 { echo "$as_me:$LINENO: result: $MCOOKIE" >&5
13518 echo "${ECHO_T}$MCOOKIE" >&6; }
13519 else
13520 { echo "$as_me:$LINENO: result: no" >&5
13521 echo "${ECHO_T}no" >&6; }
13522 fi
13523
13524
13525 test -n "$MCOOKIE" && break
13526 done
13527 test -n "$MCOOKIE" || MCOOKIE="$MCOOKIE"
13528
13529
13530 case $host_os in
13531 *openbsd*)
13532 MCOOKIE='/usr/sbin/openssl rand -hex 16'
13533 ;;
13534 *solaris*)
13535 MCOOKIE="/usr/bin/od -X -A n -N 16 /dev/urandom | /usr/bin/tr -d ' '"
13536 ;;
13537 esac
13538
13539 if test "x$MCOOKIE" != x ; then
13540 STARTX_COOKIE_FLAGS='-DHAS_COOKIE_MAKER -DMK_COOKIE="$(MCOOKIE)"'
13541 fi
13542
13543
13544 # Additional substitutions in startx, xinitrc & man pages
13545 SHELL_CMD="/bin/sh"
13546 XSERVERNAME="Xorg"
13547 XCONFIGFILE="xorg.conf"
13548 XCONFIGFILEMAN='${XCONFIGFILE} (${FILE_MAN_SUFFIX})'
13549 case $host_os in
13550 cygwin*)
13551 XSERVERNAME="XWin"
13552 XCONFIGFILE="XWinrc"
13553 ;;
13554 darwin*)
13555 XSERVERNAME="Xquartz"
13556 XCONFIGFILE="defaults"
13557 XCONFIGFILEMAN='defaults (1)'
13558 ;;
13559 *solaris*)
13560 SHELL_CMD="/bin/ksh"
13561 ;;
13562 *sco*)
13563 SHELL_CMD="/bin/ksh"
13564 SCOMAN=1
13565 ;;
13566 esac
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583 ac_config_files="$ac_config_files Makefile man/Makefile launchd/Makefile launchd/privileged_startx/Makefile launchd/user_startx/Makefile"
13584
13585 cat >confcache <<\_ACEOF
13586 # This file is a shell script that caches the results of configure
13587 # tests run on this system so they can be shared between configure
13588 # scripts and configure runs, see configure's option --config-cache.
13589 # It is not useful on other systems. If it contains results you don't
13590 # want to keep, you may remove or edit it.
13591 #
13592 # config.status only pays attention to the cache file if you give it
13593 # the --recheck option to rerun configure.
13594 #
13595 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13596 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13597 # following values.
13598
13599 _ACEOF
13600
13601 # The following way of writing the cache mishandles newlines in values,
13602 # but we know of no workaround that is simple, portable, and efficient.
13603 # So, we kill variables containing newlines.
13604 # Ultrix sh set writes to stderr and can't be redirected directly,
13605 # and sets the high bit in the cache file unless we assign to the vars.
13606 (
13607 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13608 eval ac_val=\$$ac_var
13609 case $ac_val in #(
13610 *${as_nl}*)
13611 case $ac_var in #(
13612 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13613 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13614 esac
13615 case $ac_var in #(
13616 _ | IFS | as_nl) ;; #(
13617 *) $as_unset $ac_var ;;
13618 esac ;;
13619 esac
13620 done
13621
13622 (set) 2>&1 |
13623 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13624 *${as_nl}ac_space=\ *)
13625 # `set' does not quote correctly, so add quotes (double-quote
13626 # substitution turns \\\\ into \\, and sed turns \\ into \).
13627 sed -n \
13628 "s/'/'\\\\''/g;
13629 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13630 ;; #(
13631 *)
13632 # `set' quotes correctly as required by POSIX, so do not add quotes.
13633 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13634 ;;
13635 esac |
13636 sort
13637 ) |
13638 sed '
13639 /^ac_cv_env_/b end
13640 t clear
13641 :clear
13642 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13643 t end
13644 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13645 :end' >>confcache
13646 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13647 if test -w "$cache_file"; then
13648 test "x$cache_file" != "x/dev/null" &&
13649 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13650 echo "$as_me: updating cache $cache_file" >&6;}
13651 cat confcache >$cache_file
13652 else
13653 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13654 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13655 fi
13656 fi
13657 rm -f confcache
13658
13659 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13660 # Let make expand exec_prefix.
13661 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13662
13663 DEFS=-DHAVE_CONFIG_H
13664
13665 ac_libobjs=
13666 ac_ltlibobjs=
13667 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13668 # 1. Remove the extension, and $U if already installed.
13669 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13670 ac_i=`echo "$ac_i" | sed "$ac_script"`
13671 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13672 # will be set to the directory where LIBOBJS objects are built.
13673 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13674 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13675 done
13676 LIBOBJS=$ac_libobjs
13677
13678 LTLIBOBJS=$ac_ltlibobjs
13679
13680
13681 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13682 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13683 Usually this means the macro was only invoked conditionally." >&5
13684 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13685 Usually this means the macro was only invoked conditionally." >&2;}
13686 { (exit 1); exit 1; }; }
13687 fi
13688 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13689 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13690 Usually this means the macro was only invoked conditionally." >&5
13691 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13692 Usually this means the macro was only invoked conditionally." >&2;}
13693 { (exit 1); exit 1; }; }
13694 fi
13695 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13696 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13697 Usually this means the macro was only invoked conditionally." >&5
13698 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13699 Usually this means the macro was only invoked conditionally." >&2;}
13700 { (exit 1); exit 1; }; }
13701 fi
13702 if test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then
13703 { { echo "$as_me:$LINENO: error: conditional \"LAUNCHD\" was never defined.
13704 Usually this means the macro was only invoked conditionally." >&5
13705 echo "$as_me: error: conditional \"LAUNCHD\" was never defined.
13706 Usually this means the macro was only invoked conditionally." >&2;}
13707 { (exit 1); exit 1; }; }
13708 fi
13709 if test -z "${TIGER_LAUNCHD_TRUE}" && test -z "${TIGER_LAUNCHD_FALSE}"; then
13710 { { echo "$as_me:$LINENO: error: conditional \"TIGER_LAUNCHD\" was never defined.
13711 Usually this means the macro was only invoked conditionally." >&5
13712 echo "$as_me: error: conditional \"TIGER_LAUNCHD\" was never defined.
13713 Usually this means the macro was only invoked conditionally." >&2;}
13714 { (exit 1); exit 1; }; }
13715 fi
13716 if test -z "${LAUNCHAGENT_XSERVER_TRUE}" && test -z "${LAUNCHAGENT_XSERVER_FALSE}"; then
13717 { { echo "$as_me:$LINENO: error: conditional \"LAUNCHAGENT_XSERVER\" was never defined.
13718 Usually this means the macro was only invoked conditionally." >&5
13719 echo "$as_me: error: conditional \"LAUNCHAGENT_XSERVER\" was never defined.
13720 Usually this means the macro was only invoked conditionally." >&2;}
13721 { (exit 1); exit 1; }; }
13722 fi
13723
13724 : ${CONFIG_STATUS=./config.status}
13725 ac_clean_files_save=$ac_clean_files
13726 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13727 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13728 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13729 cat >$CONFIG_STATUS <<_ACEOF
13730 #! $SHELL
13731 # Generated by $as_me.
13732 # Run this file to recreate the current configuration.
13733 # Compiler output produced by configure, useful for debugging
13734 # configure, is in config.log if it exists.
13735
13736 debug=false
13737 ac_cs_recheck=false
13738 ac_cs_silent=false
13739 SHELL=\${CONFIG_SHELL-$SHELL}
13740 _ACEOF
13741
13742 cat >>$CONFIG_STATUS <<\_ACEOF
13743 ## --------------------- ##
13744 ## M4sh Initialization. ##
13745 ## --------------------- ##
13746
13747 # Be more Bourne compatible
13748 DUALCASE=1; export DUALCASE # for MKS sh
13749 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13750 emulate sh
13751 NULLCMD=:
13752 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13753 # is contrary to our usage. Disable this feature.
13754 alias -g '${1+"$@"}'='"$@"'
13755 setopt NO_GLOB_SUBST
13756 else
13757 case `(set -o) 2>/dev/null` in
13758 *posix*) set -o posix ;;
13759 esac
13760
13761 fi
13762
13763
13764
13765
13766 # PATH needs CR
13767 # Avoid depending upon Character Ranges.
13768 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13769 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13770 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13771 as_cr_digits='0123456789'
13772 as_cr_alnum=$as_cr_Letters$as_cr_digits
13773
13774 # The user is always right.
13775 if test "${PATH_SEPARATOR+set}" != set; then
13776 echo "#! /bin/sh" >conf$$.sh
13777 echo "exit 0" >>conf$$.sh
13778 chmod +x conf$$.sh
13779 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13780 PATH_SEPARATOR=';'
13781 else
13782 PATH_SEPARATOR=:
13783 fi
13784 rm -f conf$$.sh
13785 fi
13786
13787 # Support unset when possible.
13788 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13789 as_unset=unset
13790 else
13791 as_unset=false
13792 fi
13793
13794
13795 # IFS
13796 # We need space, tab and new line, in precisely that order. Quoting is
13797 # there to prevent editors from complaining about space-tab.
13798 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13799 # splitting by setting IFS to empty value.)
13800 as_nl='
13801 '
13802 IFS=" "" $as_nl"
13803
13804 # Find who we are. Look in the path if we contain no directory separator.
13805 case $0 in
13806 *[\\/]* ) as_myself=$0 ;;
13807 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13808 for as_dir in $PATH
13809 do
13810 IFS=$as_save_IFS
13811 test -z "$as_dir" && as_dir=.
13812 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13813 done
13814 IFS=$as_save_IFS
13815
13816 ;;
13817 esac
13818 # We did not find ourselves, most probably we were run as `sh COMMAND'
13819 # in which case we are not to be found in the path.
13820 if test "x$as_myself" = x; then
13821 as_myself=$0
13822 fi
13823 if test ! -f "$as_myself"; then
13824 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13825 { (exit 1); exit 1; }
13826 fi
13827
13828 # Work around bugs in pre-3.0 UWIN ksh.
13829 for as_var in ENV MAIL MAILPATH
13830 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13831 done
13832 PS1='$ '
13833 PS2='> '
13834 PS4='+ '
13835
13836 # NLS nuisances.
13837 for as_var in \
13838 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13839 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13840 LC_TELEPHONE LC_TIME
13841 do
13842 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13843 eval $as_var=C; export $as_var
13844 else
13845 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13846 fi
13847 done
13848
13849 # Required to use basename.
13850 if expr a : '\(a\)' >/dev/null 2>&1 &&
13851 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13852 as_expr=expr
13853 else
13854 as_expr=false
13855 fi
13856
13857 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13858 as_basename=basename
13859 else
13860 as_basename=false
13861 fi
13862
13863
13864 # Name of the executable.
13865 as_me=`$as_basename -- "$0" ||
13866 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13867 X"$0" : 'X\(//\)$' \| \
13868 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13869 echo X/"$0" |
13870 sed '/^.*\/\([^/][^/]*\)\/*$/{
13871 s//\1/
13872 q
13873 }
13874 /^X\/\(\/\/\)$/{
13875 s//\1/
13876 q
13877 }
13878 /^X\/\(\/\).*/{
13879 s//\1/
13880 q
13881 }
13882 s/.*/./; q'`
13883
13884 # CDPATH.
13885 $as_unset CDPATH
13886
13887
13888
13889 as_lineno_1=$LINENO
13890 as_lineno_2=$LINENO
13891 test "x$as_lineno_1" != "x$as_lineno_2" &&
13892 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13893
13894 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13895 # uniformly replaced by the line number. The first 'sed' inserts a
13896 # line-number line after each line using $LINENO; the second 'sed'
13897 # does the real work. The second script uses 'N' to pair each
13898 # line-number line with the line containing $LINENO, and appends
13899 # trailing '-' during substitution so that $LINENO is not a special
13900 # case at line end.
13901 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13902 # scripts with optimization help from Paolo Bonzini. Blame Lee
13903 # E. McMahon (1931-1989) for sed's syntax. :-)
13904 sed -n '
13905 p
13906 /[$]LINENO/=
13907 ' <$as_myself |
13908 sed '
13909 s/[$]LINENO.*/&-/
13910 t lineno
13911 b
13912 :lineno
13913 N
13914 :loop
13915 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13916 t loop
13917 s/-\n.*//
13918 ' >$as_me.lineno &&
13919 chmod +x "$as_me.lineno" ||
13920 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13921 { (exit 1); exit 1; }; }
13922
13923 # Don't try to exec as it changes $[0], causing all sort of problems
13924 # (the dirname of $[0] is not the place where we might find the
13925 # original and so on. Autoconf is especially sensitive to this).
13926 . "./$as_me.lineno"
13927 # Exit status is that of the last command.
13928 exit
13929 }
13930
13931
13932 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13933 as_dirname=dirname
13934 else
13935 as_dirname=false
13936 fi
13937
13938 ECHO_C= ECHO_N= ECHO_T=
13939 case `echo -n x` in
13940 -n*)
13941 case `echo 'x\c'` in
13942 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13943 *) ECHO_C='\c';;
13944 esac;;
13945 *)
13946 ECHO_N='-n';;
13947 esac
13948
13949 if expr a : '\(a\)' >/dev/null 2>&1 &&
13950 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13951 as_expr=expr
13952 else
13953 as_expr=false
13954 fi
13955
13956 rm -f conf$$ conf$$.exe conf$$.file
13957 if test -d conf$$.dir; then
13958 rm -f conf$$.dir/conf$$.file
13959 else
13960 rm -f conf$$.dir
13961 mkdir conf$$.dir
13962 fi
13963 echo >conf$$.file
13964 if ln -s conf$$.file conf$$ 2>/dev/null; then
13965 as_ln_s='ln -s'
13966 # ... but there are two gotchas:
13967 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13968 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13969 # In both cases, we have to default to `cp -p'.
13970 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13971 as_ln_s='cp -p'
13972 elif ln conf$$.file conf$$ 2>/dev/null; then
13973 as_ln_s=ln
13974 else
13975 as_ln_s='cp -p'
13976 fi
13977 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13978 rmdir conf$$.dir 2>/dev/null
13979
13980 if mkdir -p . 2>/dev/null; then
13981 as_mkdir_p=:
13982 else
13983 test -d ./-p && rmdir ./-p
13984 as_mkdir_p=false
13985 fi
13986
13987 if test -x / >/dev/null 2>&1; then
13988 as_test_x='test -x'
13989 else
13990 if ls -dL / >/dev/null 2>&1; then
13991 as_ls_L_option=L
13992 else
13993 as_ls_L_option=
13994 fi
13995 as_test_x='
13996 eval sh -c '\''
13997 if test -d "$1"; then
13998 test -d "$1/.";
13999 else
14000 case $1 in
14001 -*)set "./$1";;
14002 esac;
14003 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14004 ???[sx]*):;;*)false;;esac;fi
14005 '\'' sh
14006 '
14007 fi
14008 as_executable_p=$as_test_x
14009
14010 # Sed expression to map a string onto a valid CPP name.
14011 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14012
14013 # Sed expression to map a string onto a valid variable name.
14014 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14015
14016
14017 exec 6>&1
14018
14019 # Save the log message, to keep $[0] and so on meaningful, and to
14020 # report actual input values of CONFIG_FILES etc. instead of their
14021 # values after options handling.
14022 ac_log="
14023 This file was extended by xinit $as_me 1.3.2, which was
14024 generated by GNU Autoconf 2.61. Invocation command line was
14025
14026 CONFIG_FILES = $CONFIG_FILES
14027 CONFIG_HEADERS = $CONFIG_HEADERS
14028 CONFIG_LINKS = $CONFIG_LINKS
14029 CONFIG_COMMANDS = $CONFIG_COMMANDS
14030 $ $0 $@
14031
14032 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14033 "
14034
14035 _ACEOF
14036
14037 cat >>$CONFIG_STATUS <<_ACEOF
14038 # Files that config.status was made for.
14039 config_files="$ac_config_files"
14040 config_headers="$ac_config_headers"
14041 config_commands="$ac_config_commands"
14042
14043 _ACEOF
14044
14045 cat >>$CONFIG_STATUS <<\_ACEOF
14046 ac_cs_usage="\
14047 \`$as_me' instantiates files from templates according to the
14048 current configuration.
14049
14050 Usage: $0 [OPTIONS] [FILE]...
14051
14052 -h, --help print this help, then exit
14053 -V, --version print version number and configuration settings, then exit
14054 -q, --quiet do not print progress messages
14055 -d, --debug don't remove temporary files
14056 --recheck update $as_me by reconfiguring in the same conditions
14057 --file=FILE[:TEMPLATE]
14058 instantiate the configuration file FILE
14059 --header=FILE[:TEMPLATE]
14060 instantiate the configuration header FILE
14061
14062 Configuration files:
14063 $config_files
14064
14065 Configuration headers:
14066 $config_headers
14067
14068 Configuration commands:
14069 $config_commands
14070
14071 Report bugs to <bug-autoconf (at] gnu.org>."
14072
14073 _ACEOF
14074 cat >>$CONFIG_STATUS <<_ACEOF
14075 ac_cs_version="\\
14076 xinit config.status 1.3.2
14077 configured by $0, generated by GNU Autoconf 2.61,
14078 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14079
14080 Copyright (C) 2006 Free Software Foundation, Inc.
14081 This config.status script is free software; the Free Software Foundation
14082 gives unlimited permission to copy, distribute and modify it."
14083
14084 ac_pwd='$ac_pwd'
14085 srcdir='$srcdir'
14086 INSTALL='$INSTALL'
14087 MKDIR_P='$MKDIR_P'
14088 _ACEOF
14089
14090 cat >>$CONFIG_STATUS <<\_ACEOF
14091 # If no file are specified by the user, then we need to provide default
14092 # value. By we need to know if files were specified by the user.
14093 ac_need_defaults=:
14094 while test $# != 0
14095 do
14096 case $1 in
14097 --*=*)
14098 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14099 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14100 ac_shift=:
14101 ;;
14102 *)
14103 ac_option=$1
14104 ac_optarg=$2
14105 ac_shift=shift
14106 ;;
14107 esac
14108
14109 case $ac_option in
14110 # Handling of the options.
14111 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14112 ac_cs_recheck=: ;;
14113 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14114 echo "$ac_cs_version"; exit ;;
14115 --debug | --debu | --deb | --de | --d | -d )
14116 debug=: ;;
14117 --file | --fil | --fi | --f )
14118 $ac_shift
14119 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14120 ac_need_defaults=false;;
14121 --header | --heade | --head | --hea )
14122 $ac_shift
14123 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14124 ac_need_defaults=false;;
14125 --he | --h)
14126 # Conflict between --help and --header
14127 { echo "$as_me: error: ambiguous option: $1
14128 Try \`$0 --help' for more information." >&2
14129 { (exit 1); exit 1; }; };;
14130 --help | --hel | -h )
14131 echo "$ac_cs_usage"; exit ;;
14132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14133 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14134 ac_cs_silent=: ;;
14135
14136 # This is an error.
14137 -*) { echo "$as_me: error: unrecognized option: $1
14138 Try \`$0 --help' for more information." >&2
14139 { (exit 1); exit 1; }; } ;;
14140
14141 *) ac_config_targets="$ac_config_targets $1"
14142 ac_need_defaults=false ;;
14143
14144 esac
14145 shift
14146 done
14147
14148 ac_configure_extra_args=
14149
14150 if $ac_cs_silent; then
14151 exec 6>/dev/null
14152 ac_configure_extra_args="$ac_configure_extra_args --silent"
14153 fi
14154
14155 _ACEOF
14156 cat >>$CONFIG_STATUS <<_ACEOF
14157 if \$ac_cs_recheck; then
14158 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14159 CONFIG_SHELL=$SHELL
14160 export CONFIG_SHELL
14161 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14162 fi
14163
14164 _ACEOF
14165 cat >>$CONFIG_STATUS <<\_ACEOF
14166 exec 5>>config.log
14167 {
14168 echo
14169 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14170 ## Running $as_me. ##
14171 _ASBOX
14172 echo "$ac_log"
14173 } >&5
14174
14175 _ACEOF
14176 cat >>$CONFIG_STATUS <<_ACEOF
14177 #
14178 # INIT-COMMANDS
14179 #
14180 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14181
14182 _ACEOF
14183
14184 cat >>$CONFIG_STATUS <<\_ACEOF
14185
14186 # Handling of arguments.
14187 for ac_config_target in $ac_config_targets
14188 do
14189 case $ac_config_target in
14190 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14191 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14192 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14193 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14194 "launchd/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/Makefile" ;;
14195 "launchd/privileged_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/privileged_startx/Makefile" ;;
14196 "launchd/user_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/user_startx/Makefile" ;;
14197
14198 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14199 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14200 { (exit 1); exit 1; }; };;
14201 esac
14202 done
14203
14204
14205 # If the user did not use the arguments to specify the items to instantiate,
14206 # then the envvar interface is used. Set only those that are not.
14207 # We use the long form for the default assignment because of an extremely
14208 # bizarre bug on SunOS 4.1.3.
14209 if $ac_need_defaults; then
14210 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14211 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14212 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14213 fi
14214
14215 # Have a temporary directory for convenience. Make it in the build tree
14216 # simply because there is no reason against having it here, and in addition,
14217 # creating and moving files from /tmp can sometimes cause problems.
14218 # Hook for its removal unless debugging.
14219 # Note that there is a small window in which the directory will not be cleaned:
14220 # after its creation but before its name has been assigned to `$tmp'.
14221 $debug ||
14222 {
14223 tmp=
14224 trap 'exit_status=$?
14225 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14226 ' 0
14227 trap '{ (exit 1); exit 1; }' 1 2 13 15
14228 }
14229 # Create a (secure) tmp directory for tmp files.
14230
14231 {
14232 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14233 test -n "$tmp" && test -d "$tmp"
14234 } ||
14235 {
14236 tmp=./conf$$-$RANDOM
14237 (umask 077 && mkdir "$tmp")
14238 } ||
14239 {
14240 echo "$me: cannot create a temporary directory in ." >&2
14241 { (exit 1); exit 1; }
14242 }
14243
14244 #
14245 # Set up the sed scripts for CONFIG_FILES section.
14246 #
14247
14248 # No need to generate the scripts if there are no CONFIG_FILES.
14249 # This happens for instance when ./config.status config.h
14250 if test -n "$CONFIG_FILES"; then
14251
14252 _ACEOF
14253
14254
14255
14256 ac_delim='%!_!# '
14257 for ac_last_try in false false false false false :; do
14258 cat >conf$$subs.sed <<_ACEOF
14259 SHELL!$SHELL$ac_delim
14260 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14261 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14262 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14263 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14264 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14265 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14266 exec_prefix!$exec_prefix$ac_delim
14267 prefix!$prefix$ac_delim
14268 program_transform_name!$program_transform_name$ac_delim
14269 bindir!$bindir$ac_delim
14270 sbindir!$sbindir$ac_delim
14271 libexecdir!$libexecdir$ac_delim
14272 datarootdir!$datarootdir$ac_delim
14273 datadir!$datadir$ac_delim
14274 sysconfdir!$sysconfdir$ac_delim
14275 sharedstatedir!$sharedstatedir$ac_delim
14276 localstatedir!$localstatedir$ac_delim
14277 includedir!$includedir$ac_delim
14278 oldincludedir!$oldincludedir$ac_delim
14279 docdir!$docdir$ac_delim
14280 infodir!$infodir$ac_delim
14281 htmldir!$htmldir$ac_delim
14282 dvidir!$dvidir$ac_delim
14283 pdfdir!$pdfdir$ac_delim
14284 psdir!$psdir$ac_delim
14285 libdir!$libdir$ac_delim
14286 localedir!$localedir$ac_delim
14287 mandir!$mandir$ac_delim
14288 DEFS!$DEFS$ac_delim
14289 ECHO_C!$ECHO_C$ac_delim
14290 ECHO_N!$ECHO_N$ac_delim
14291 ECHO_T!$ECHO_T$ac_delim
14292 LIBS!$LIBS$ac_delim
14293 build_alias!$build_alias$ac_delim
14294 host_alias!$host_alias$ac_delim
14295 target_alias!$target_alias$ac_delim
14296 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14297 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14298 INSTALL_DATA!$INSTALL_DATA$ac_delim
14299 am__isrc!$am__isrc$ac_delim
14300 CYGPATH_W!$CYGPATH_W$ac_delim
14301 PACKAGE!$PACKAGE$ac_delim
14302 VERSION!$VERSION$ac_delim
14303 ACLOCAL!$ACLOCAL$ac_delim
14304 AUTOCONF!$AUTOCONF$ac_delim
14305 AUTOMAKE!$AUTOMAKE$ac_delim
14306 AUTOHEADER!$AUTOHEADER$ac_delim
14307 MAKEINFO!$MAKEINFO$ac_delim
14308 install_sh!$install_sh$ac_delim
14309 STRIP!$STRIP$ac_delim
14310 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
14311 mkdir_p!$mkdir_p$ac_delim
14312 AWK!$AWK$ac_delim
14313 SET_MAKE!$SET_MAKE$ac_delim
14314 am__leading_dot!$am__leading_dot$ac_delim
14315 AMTAR!$AMTAR$ac_delim
14316 am__tar!$am__tar$ac_delim
14317 am__untar!$am__untar$ac_delim
14318 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
14319 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
14320 MAINT!$MAINT$ac_delim
14321 CC!$CC$ac_delim
14322 CFLAGS!$CFLAGS$ac_delim
14323 LDFLAGS!$LDFLAGS$ac_delim
14324 CPPFLAGS!$CPPFLAGS$ac_delim
14325 ac_ct_CC!$ac_ct_CC$ac_delim
14326 EXEEXT!$EXEEXT$ac_delim
14327 OBJEXT!$OBJEXT$ac_delim
14328 DEPDIR!$DEPDIR$ac_delim
14329 am__include!$am__include$ac_delim
14330 am__quote!$am__quote$ac_delim
14331 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
14332 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
14333 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
14334 CCDEPMODE!$CCDEPMODE$ac_delim
14335 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
14336 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
14337 CPP!$CPP$ac_delim
14338 GREP!$GREP$ac_delim
14339 EGREP!$EGREP$ac_delim
14340 BASE_CFLAGS!$BASE_CFLAGS$ac_delim
14341 CWARNFLAGS!$CWARNFLAGS$ac_delim
14342 STRICT_CFLAGS!$STRICT_CFLAGS$ac_delim
14343 CHANGELOG_CMD!$CHANGELOG_CMD$ac_delim
14344 PKG_CONFIG!$PKG_CONFIG$ac_delim
14345 PKG_CONFIG_PATH!$PKG_CONFIG_PATH$ac_delim
14346 PKG_CONFIG_LIBDIR!$PKG_CONFIG_LIBDIR$ac_delim
14347 INSTALL_CMD!$INSTALL_CMD$ac_delim
14348 build!$build$ac_delim
14349 build_cpu!$build_cpu$ac_delim
14350 build_vendor!$build_vendor$ac_delim
14351 build_os!$build_os$ac_delim
14352 host!$host$ac_delim
14353 host_cpu!$host_cpu$ac_delim
14354 host_vendor!$host_vendor$ac_delim
14355 host_os!$host_os$ac_delim
14356 _ACEOF
14357
14358 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14359 break
14360 elif $ac_last_try; then
14361 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14362 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14363 { (exit 1); exit 1; }; }
14364 else
14365 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14366 fi
14367 done
14368
14369 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14370 if test -n "$ac_eof"; then
14371 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14372 ac_eof=`expr $ac_eof + 1`
14373 fi
14374
14375 cat >>$CONFIG_STATUS <<_ACEOF
14376 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14378 _ACEOF
14379 sed '
14380 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14381 s/^/s,@/; s/!/@,|#_!!_#|/
14382 :n
14383 t n
14384 s/'"$ac_delim"'$/,g/; t
14385 s/$/\\/; p
14386 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14387 ' >>$CONFIG_STATUS <conf$$subs.sed
14388 rm -f conf$$subs.sed
14389 cat >>$CONFIG_STATUS <<_ACEOF
14390 CEOF$ac_eof
14391 _ACEOF
14392
14393
14394 ac_delim='%!_!# '
14395 for ac_last_try in false false false false false :; do
14396 cat >conf$$subs.sed <<_ACEOF
14397 SED!$SED$ac_delim
14398 APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
14399 LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
14400 FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
14401 MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
14402 DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
14403 ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
14404 APP_MAN_DIR!$APP_MAN_DIR$ac_delim
14405 LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
14406 FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
14407 MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
14408 DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
14409 ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
14410 XORG_MAN_PAGE!$XORG_MAN_PAGE$ac_delim
14411 MAN_SUBSTS!$MAN_SUBSTS$ac_delim
14412 AM_DEFAULT_VERBOSITY!$AM_DEFAULT_VERBOSITY$ac_delim
14413 RAWCPP!$RAWCPP$ac_delim
14414 RAWCPPFLAGS!$RAWCPPFLAGS$ac_delim
14415 LAUNCHD!$LAUNCHD$ac_delim
14416 launchagentsdir!$launchagentsdir$ac_delim
14417 launchdaemonsdir!$launchdaemonsdir$ac_delim
14418 bundleidprefix!$bundleidprefix$ac_delim
14419 launchagentxserver!$launchagentxserver$ac_delim
14420 LAUNCHD_TRUE!$LAUNCHD_TRUE$ac_delim
14421 LAUNCHD_FALSE!$LAUNCHD_FALSE$ac_delim
14422 TIGER_LAUNCHD_TRUE!$TIGER_LAUNCHD_TRUE$ac_delim
14423 TIGER_LAUNCHD_FALSE!$TIGER_LAUNCHD_FALSE$ac_delim
14424 LAUNCHAGENT_XSERVER_TRUE!$LAUNCHAGENT_XSERVER_TRUE$ac_delim
14425 LAUNCHAGENT_XSERVER_FALSE!$LAUNCHAGENT_XSERVER_FALSE$ac_delim
14426 XINIT_CFLAGS!$XINIT_CFLAGS$ac_delim
14427 XINIT_LIBS!$XINIT_LIBS$ac_delim
14428 MCOOKIE!$MCOOKIE$ac_delim
14429 STARTX_COOKIE_FLAGS!$STARTX_COOKIE_FLAGS$ac_delim
14430 SHELL_CMD!$SHELL_CMD$ac_delim
14431 SCOMAN!$SCOMAN$ac_delim
14432 XSERVERNAME!$XSERVERNAME$ac_delim
14433 XCONFIGFILE!$XCONFIGFILE$ac_delim
14434 XCONFIGFILEMAN!$XCONFIGFILEMAN$ac_delim
14435 XRDB!$XRDB$ac_delim
14436 XMODMAP!$XMODMAP$ac_delim
14437 TWM!$TWM$ac_delim
14438 XCLOCK!$XCLOCK$ac_delim
14439 XTERM!$XTERM$ac_delim
14440 XSERVER!$XSERVER$ac_delim
14441 XAUTH!$XAUTH$ac_delim
14442 XINIT!$XINIT$ac_delim
14443 XINITDIR!$XINITDIR$ac_delim
14444 LIBOBJS!$LIBOBJS$ac_delim
14445 LTLIBOBJS!$LTLIBOBJS$ac_delim
14446 _ACEOF
14447
14448 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 49; then
14449 break
14450 elif $ac_last_try; then
14451 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14452 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14453 { (exit 1); exit 1; }; }
14454 else
14455 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14456 fi
14457 done
14458
14459 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14460 if test -n "$ac_eof"; then
14461 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14462 ac_eof=`expr $ac_eof + 1`
14463 fi
14464
14465 cat >>$CONFIG_STATUS <<_ACEOF
14466 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14467 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14468 _ACEOF
14469 sed '
14470 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14471 s/^/s,@/; s/!/@,|#_!!_#|/
14472 :n
14473 t n
14474 s/'"$ac_delim"'$/,g/; t
14475 s/$/\\/; p
14476 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14477 ' >>$CONFIG_STATUS <conf$$subs.sed
14478 rm -f conf$$subs.sed
14479 cat >>$CONFIG_STATUS <<_ACEOF
14480 :end
14481 s/|#_!!_#|//g
14482 CEOF$ac_eof
14483 _ACEOF
14484
14485
14486 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14487 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14488 # trailing colons and then remove the whole line if VPATH becomes empty
14489 # (actually we leave an empty line to preserve line numbers).
14490 if test "x$srcdir" = x.; then
14491 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14492 s/:*\$(srcdir):*/:/
14493 s/:*\${srcdir}:*/:/
14494 s/:*@srcdir@:*/:/
14495 s/^\([^=]*=[ ]*\):*/\1/
14496 s/:*$//
14497 s/^[^=]*=[ ]*$//
14498 }'
14499 fi
14500
14501 cat >>$CONFIG_STATUS <<\_ACEOF
14502 fi # test -n "$CONFIG_FILES"
14503
14504
14505 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
14506 do
14507 case $ac_tag in
14508 :[FHLC]) ac_mode=$ac_tag; continue;;
14509 esac
14510 case $ac_mode$ac_tag in
14511 :[FHL]*:*);;
14512 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14513 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14514 { (exit 1); exit 1; }; };;
14515 :[FH]-) ac_tag=-:-;;
14516 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14517 esac
14518 ac_save_IFS=$IFS
14519 IFS=:
14520 set x $ac_tag
14521 IFS=$ac_save_IFS
14522 shift
14523 ac_file=$1
14524 shift
14525
14526 case $ac_mode in
14527 :L) ac_source=$1;;
14528 :[FH])
14529 ac_file_inputs=
14530 for ac_f
14531 do
14532 case $ac_f in
14533 -) ac_f="$tmp/stdin";;
14534 *) # Look for the file first in the build tree, then in the source tree
14535 # (if the path is not absolute). The absolute path cannot be DOS-style,
14536 # because $ac_f cannot contain `:'.
14537 test -f "$ac_f" ||
14538 case $ac_f in
14539 [\\/$]*) false;;
14540 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14541 esac ||
14542 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14543 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14544 { (exit 1); exit 1; }; };;
14545 esac
14546 ac_file_inputs="$ac_file_inputs $ac_f"
14547 done
14548
14549 # Let's still pretend it is `configure' which instantiates (i.e., don't
14550 # use $as_me), people would be surprised to read:
14551 # /* config.h. Generated by config.status. */
14552 configure_input="Generated from "`IFS=:
14553 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14554 if test x"$ac_file" != x-; then
14555 configure_input="$ac_file. $configure_input"
14556 { echo "$as_me:$LINENO: creating $ac_file" >&5
14557 echo "$as_me: creating $ac_file" >&6;}
14558 fi
14559
14560 case $ac_tag in
14561 *:-:* | *:-) cat >"$tmp/stdin";;
14562 esac
14563 ;;
14564 esac
14565
14566 ac_dir=`$as_dirname -- "$ac_file" ||
14567 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14568 X"$ac_file" : 'X\(//\)[^/]' \| \
14569 X"$ac_file" : 'X\(//\)$' \| \
14570 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14571 echo X"$ac_file" |
14572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14573 s//\1/
14574 q
14575 }
14576 /^X\(\/\/\)[^/].*/{
14577 s//\1/
14578 q
14579 }
14580 /^X\(\/\/\)$/{
14581 s//\1/
14582 q
14583 }
14584 /^X\(\/\).*/{
14585 s//\1/
14586 q
14587 }
14588 s/.*/./; q'`
14589 { as_dir="$ac_dir"
14590 case $as_dir in #(
14591 -*) as_dir=./$as_dir;;
14592 esac
14593 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14594 as_dirs=
14595 while :; do
14596 case $as_dir in #(
14597 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14598 *) as_qdir=$as_dir;;
14599 esac
14600 as_dirs="'$as_qdir' $as_dirs"
14601 as_dir=`$as_dirname -- "$as_dir" ||
14602 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14603 X"$as_dir" : 'X\(//\)[^/]' \| \
14604 X"$as_dir" : 'X\(//\)$' \| \
14605 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14606 echo X"$as_dir" |
14607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14608 s//\1/
14609 q
14610 }
14611 /^X\(\/\/\)[^/].*/{
14612 s//\1/
14613 q
14614 }
14615 /^X\(\/\/\)$/{
14616 s//\1/
14617 q
14618 }
14619 /^X\(\/\).*/{
14620 s//\1/
14621 q
14622 }
14623 s/.*/./; q'`
14624 test -d "$as_dir" && break
14625 done
14626 test -z "$as_dirs" || eval "mkdir $as_dirs"
14627 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14628 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14629 { (exit 1); exit 1; }; }; }
14630 ac_builddir=.
14631
14632 case "$ac_dir" in
14633 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14634 *)
14635 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14636 # A ".." for each directory in $ac_dir_suffix.
14637 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14638 case $ac_top_builddir_sub in
14639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14641 esac ;;
14642 esac
14643 ac_abs_top_builddir=$ac_pwd
14644 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14645 # for backward compatibility:
14646 ac_top_builddir=$ac_top_build_prefix
14647
14648 case $srcdir in
14649 .) # We are building in place.
14650 ac_srcdir=.
14651 ac_top_srcdir=$ac_top_builddir_sub
14652 ac_abs_top_srcdir=$ac_pwd ;;
14653 [\\/]* | ?:[\\/]* ) # Absolute name.
14654 ac_srcdir=$srcdir$ac_dir_suffix;
14655 ac_top_srcdir=$srcdir
14656 ac_abs_top_srcdir=$srcdir ;;
14657 *) # Relative name.
14658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14659 ac_top_srcdir=$ac_top_build_prefix$srcdir
14660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14661 esac
14662 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14663
14664
14665 case $ac_mode in
14666 :F)
14667 #
14668 # CONFIG_FILE
14669 #
14670
14671 case $INSTALL in
14672 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14673 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14674 esac
14675 ac_MKDIR_P=$MKDIR_P
14676 case $MKDIR_P in
14677 [\\/$]* | ?:[\\/]* ) ;;
14678 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14679 esac
14680 _ACEOF
14681
14682 cat >>$CONFIG_STATUS <<\_ACEOF
14683 # If the template does not know about datarootdir, expand it.
14684 # FIXME: This hack should be removed a few years after 2.60.
14685 ac_datarootdir_hack=; ac_datarootdir_seen=
14686
14687 case `sed -n '/datarootdir/ {
14688 p
14689 q
14690 }
14691 /@datadir@/p
14692 /@docdir@/p
14693 /@infodir@/p
14694 /@localedir@/p
14695 /@mandir@/p
14696 ' $ac_file_inputs` in
14697 *datarootdir*) ac_datarootdir_seen=yes;;
14698 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14699 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14700 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14701 _ACEOF
14702 cat >>$CONFIG_STATUS <<_ACEOF
14703 ac_datarootdir_hack='
14704 s&@datadir@&$datadir&g
14705 s&@docdir@&$docdir&g
14706 s&@infodir@&$infodir&g
14707 s&@localedir@&$localedir&g
14708 s&@mandir@&$mandir&g
14709 s&\\\${datarootdir}&$datarootdir&g' ;;
14710 esac
14711 _ACEOF
14712
14713 # Neutralize VPATH when `$srcdir' = `.'.
14714 # Shell code in configure.ac might set extrasub.
14715 # FIXME: do we really want to maintain this feature?
14716 cat >>$CONFIG_STATUS <<_ACEOF
14717 sed "$ac_vpsub
14718 $extrasub
14719 _ACEOF
14720 cat >>$CONFIG_STATUS <<\_ACEOF
14721 :t
14722 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14723 s&@configure_input@&$configure_input&;t t
14724 s&@top_builddir@&$ac_top_builddir_sub&;t t
14725 s&@srcdir@&$ac_srcdir&;t t
14726 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14727 s&@top_srcdir@&$ac_top_srcdir&;t t
14728 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14729 s&@builddir@&$ac_builddir&;t t
14730 s&@abs_builddir@&$ac_abs_builddir&;t t
14731 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14732 s&@INSTALL@&$ac_INSTALL&;t t
14733 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14734 $ac_datarootdir_hack
14735 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
14736
14737 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14738 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14739 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14740 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14741 which seems to be undefined. Please make sure it is defined." >&5
14742 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14743 which seems to be undefined. Please make sure it is defined." >&2;}
14744
14745 rm -f "$tmp/stdin"
14746 case $ac_file in
14747 -) cat "$tmp/out"; rm -f "$tmp/out";;
14748 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14749 esac
14750 ;;
14751 :H)
14752 #
14753 # CONFIG_HEADER
14754 #
14755 _ACEOF
14756
14757 # Transform confdefs.h into a sed script `conftest.defines', that
14758 # substitutes the proper values into config.h.in to produce config.h.
14759 rm -f conftest.defines conftest.tail
14760 # First, append a space to every undef/define line, to ease matching.
14761 echo 's/$/ /' >conftest.defines
14762 # Then, protect against being on the right side of a sed subst, or in
14763 # an unquoted here document, in config.status. If some macros were
14764 # called several times there might be several #defines for the same
14765 # symbol, which is useless. But do not sort them, since the last
14766 # AC_DEFINE must be honored.
14767 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14768 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14769 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14770 # PARAMS is the parameter list in the macro definition--in most cases, it's
14771 # just an empty string.
14772 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14773 ac_dB='\\)[ (].*,\\1define\\2'
14774 ac_dC=' '
14775 ac_dD=' ,'
14776
14777 uniq confdefs.h |
14778 sed -n '
14779 t rset
14780 :rset
14781 s/^[ ]*#[ ]*define[ ][ ]*//
14782 t ok
14783 d
14784 :ok
14785 s/[\\&,]/\\&/g
14786 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14787 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14788 ' >>conftest.defines
14789
14790 # Remove the space that was appended to ease matching.
14791 # Then replace #undef with comments. This is necessary, for
14792 # example, in the case of _POSIX_SOURCE, which is predefined and required
14793 # on some systems where configure will not decide to define it.
14794 # (The regexp can be short, since the line contains either #define or #undef.)
14795 echo 's/ $//
14796 s,^[ #]*u.*,/* & */,' >>conftest.defines
14797
14798 # Break up conftest.defines:
14799 ac_max_sed_lines=50
14800
14801 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14802 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14803 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14804 # et cetera.
14805 ac_in='$ac_file_inputs'
14806 ac_out='"$tmp/out1"'
14807 ac_nxt='"$tmp/out2"'
14808
14809 while :
14810 do
14811 # Write a here document:
14812 cat >>$CONFIG_STATUS <<_ACEOF
14813 # First, check the format of the line:
14814 cat >"\$tmp/defines.sed" <<\\CEOF
14815 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*/b def
14816 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14817 b
14818 :def
14819 _ACEOF
14820 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14821 echo 'CEOF
14822 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14823 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14824 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14825 grep . conftest.tail >/dev/null || break
14826 rm -f conftest.defines
14827 mv conftest.tail conftest.defines
14828 done
14829 rm -f conftest.defines conftest.tail
14830
14831 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14832 cat >>$CONFIG_STATUS <<\_ACEOF
14833 if test x"$ac_file" != x-; then
14834 echo "/* $configure_input */" >"$tmp/config.h"
14835 cat "$ac_result" >>"$tmp/config.h"
14836 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14837 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14838 echo "$as_me: $ac_file is unchanged" >&6;}
14839 else
14840 rm -f $ac_file
14841 mv "$tmp/config.h" $ac_file
14842 fi
14843 else
14844 echo "/* $configure_input */"
14845 cat "$ac_result"
14846 fi
14847 rm -f "$tmp/out12"
14848 # Compute $ac_file's index in $config_headers.
14849 _am_stamp_count=1
14850 for _am_header in $config_headers :; do
14851 case $_am_header in
14852 $ac_file | $ac_file:* )
14853 break ;;
14854 * )
14855 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14856 esac
14857 done
14858 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
14859 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14860 X$ac_file : 'X\(//\)[^/]' \| \
14861 X$ac_file : 'X\(//\)$' \| \
14862 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
14863 echo X$ac_file |
14864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14865 s//\1/
14866 q
14867 }
14868 /^X\(\/\/\)[^/].*/{
14869 s//\1/
14870 q
14871 }
14872 /^X\(\/\/\)$/{
14873 s//\1/
14874 q
14875 }
14876 /^X\(\/\).*/{
14877 s//\1/
14878 q
14879 }
14880 s/.*/./; q'`/stamp-h$_am_stamp_count
14881 ;;
14882
14883 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14884 echo "$as_me: executing $ac_file commands" >&6;}
14885 ;;
14886 esac
14887
14888
14889 case $ac_file$ac_mode in
14890 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14891 # Strip MF so we end up with the name of the file.
14892 mf=`echo "$mf" | sed -e 's/:.*$//'`
14893 # Check whether this is an Automake generated Makefile or not.
14894 # We used to match only the files named `Makefile.in', but
14895 # some people rename them; so instead we look at the file content.
14896 # Grep'ing the first line is not enough: some people post-process
14897 # each Makefile.in and add a new line on top of each file to say so.
14898 # Grep'ing the whole file is not good either: AIX grep has a line
14899 # limit of 2048, but all sed's we know have understand at least 4000.
14900 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
14901 dirpart=`$as_dirname -- "$mf" ||
14902 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14903 X"$mf" : 'X\(//\)[^/]' \| \
14904 X"$mf" : 'X\(//\)$' \| \
14905 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14906 echo X"$mf" |
14907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14908 s//\1/
14909 q
14910 }
14911 /^X\(\/\/\)[^/].*/{
14912 s//\1/
14913 q
14914 }
14915 /^X\(\/\/\)$/{
14916 s//\1/
14917 q
14918 }
14919 /^X\(\/\).*/{
14920 s//\1/
14921 q
14922 }
14923 s/.*/./; q'`
14924 else
14925 continue
14926 fi
14927 # Extract the definition of DEPDIR, am__include, and am__quote
14928 # from the Makefile without running `make'.
14929 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14930 test -z "$DEPDIR" && continue
14931 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14932 test -z "am__include" && continue
14933 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14934 # When using ansi2knr, U may be empty or an underscore; expand it
14935 U=`sed -n 's/^U = //p' < "$mf"`
14936 # Find all dependency output files, they are included files with
14937 # $(DEPDIR) in their names. We invoke sed twice because it is the
14938 # simplest approach to changing $(DEPDIR) to its actual value in the
14939 # expansion.
14940 for file in `sed -n "
14941 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14942 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14943 # Make sure the directory exists.
14944 test -f "$dirpart/$file" && continue
14945 fdir=`$as_dirname -- "$file" ||
14946 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14947 X"$file" : 'X\(//\)[^/]' \| \
14948 X"$file" : 'X\(//\)$' \| \
14949 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14950 echo X"$file" |
14951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14952 s//\1/
14953 q
14954 }
14955 /^X\(\/\/\)[^/].*/{
14956 s//\1/
14957 q
14958 }
14959 /^X\(\/\/\)$/{
14960 s//\1/
14961 q
14962 }
14963 /^X\(\/\).*/{
14964 s//\1/
14965 q
14966 }
14967 s/.*/./; q'`
14968 { as_dir=$dirpart/$fdir
14969 case $as_dir in #(
14970 -*) as_dir=./$as_dir;;
14971 esac
14972 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14973 as_dirs=
14974 while :; do
14975 case $as_dir in #(
14976 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14977 *) as_qdir=$as_dir;;
14978 esac
14979 as_dirs="'$as_qdir' $as_dirs"
14980 as_dir=`$as_dirname -- "$as_dir" ||
14981 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14982 X"$as_dir" : 'X\(//\)[^/]' \| \
14983 X"$as_dir" : 'X\(//\)$' \| \
14984 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14985 echo X"$as_dir" |
14986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14987 s//\1/
14988 q
14989 }
14990 /^X\(\/\/\)[^/].*/{
14991 s//\1/
14992 q
14993 }
14994 /^X\(\/\/\)$/{
14995 s//\1/
14996 q
14997 }
14998 /^X\(\/\).*/{
14999 s//\1/
15000 q
15001 }
15002 s/.*/./; q'`
15003 test -d "$as_dir" && break
15004 done
15005 test -z "$as_dirs" || eval "mkdir $as_dirs"
15006 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15007 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15008 { (exit 1); exit 1; }; }; }
15009 # echo "creating $dirpart/$file"
15010 echo '# dummy' > "$dirpart/$file"
15011 done
15012 done
15013 ;;
15014
15015 esac
15016 done # for ac_tag
15017
15018
15019 { (exit 0); exit 0; }
15020 _ACEOF
15021 chmod +x $CONFIG_STATUS
15022 ac_clean_files=$ac_clean_files_save
15023
15024
15025 # configure is writing to config.log, and then calls config.status.
15026 # config.status does its own redirection, appending to config.log.
15027 # Unfortunately, on DOS this fails, as config.log is still kept open
15028 # by configure, so config.status won't be able to write to it; its
15029 # output is simply discarded. So we exec the FD to /dev/null,
15030 # effectively closing config.log, so it can be properly (re)opened and
15031 # appended to by config.status. When coming back to configure, we
15032 # need to make the FD available again.
15033 if test "$no_create" != yes; then
15034 ac_cs_success=:
15035 ac_config_status_args=
15036 test "$silent" = yes &&
15037 ac_config_status_args="$ac_config_status_args --quiet"
15038 exec 5>/dev/null
15039 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15040 exec 5>>config.log
15041 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15042 # would make configure fail if this is the last instruction.
15043 $ac_cs_success || { (exit 1); exit 1; }
15044 fi
15045
15046