configure revision 1.1.1.2 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xorgproto 2019.1.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560 as_awk_strverscmp='
561 # Use only awk features that work with 7th edition Unix awk (1978).
562 # My, what an old awk you have, Mr. Solaris!
563 END {
564 while (length(v1) && length(v2)) {
565 # Set d1 to be the next thing to compare from v1, and likewise for d2.
566 # Normally this is a single character, but if v1 and v2 contain digits,
567 # compare them as integers and fractions as strverscmp does.
568 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
569 # Split v1 and v2 into their leading digit string components d1 and d2,
570 # and advance v1 and v2 past the leading digit strings.
571 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
572 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
573 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
574 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
575 if (d1 ~ /^0/) {
576 if (d2 ~ /^0/) {
577 # Compare two fractions.
578 while (d1 ~ /^0/ && d2 ~ /^0/) {
579 d1 = substr(d1, 2); len1--
580 d2 = substr(d2, 2); len2--
581 }
582 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
583 # The two components differ in length, and the common prefix
584 # contains only leading zeros. Consider the longer to be less.
585 d1 = -len1
586 d2 = -len2
587 } else {
588 # Otherwise, compare as strings.
589 d1 = "x" d1
590 d2 = "x" d2
591 }
592 } else {
593 # A fraction is less than an integer.
594 exit 1
595 }
596 } else {
597 if (d2 ~ /^0/) {
598 # An integer is greater than a fraction.
599 exit 2
600 } else {
601 # Compare two integers.
602 d1 += 0
603 d2 += 0
604 }
605 }
606 } else {
607 # The normal case, without worrying about digits.
608 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
609 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
610 }
611 if (d1 < d2) exit 1
612 if (d1 > d2) exit 2
613 }
614 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
615 # which mishandles some comparisons of empty strings to integers.
616 if (length(v2)) exit 1
617 if (length(v1)) exit 2
618 }
619 '
620
621 test -n "$DJDIR" || exec 7<&0 </dev/null
622 exec 6>&1
623
624 # Name of the host.
625 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
626 # so uname gets run too.
627 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
628
629 #
630 # Initializations.
631 #
632 ac_default_prefix=/usr/local
633 ac_clean_files=
634 ac_config_libobj_dir=.
635 LIBOBJS=
636 cross_compiling=no
637 subdirs=
638 MFLAGS=
639 MAKEFLAGS=
640
641 # Identity of this package.
642 PACKAGE_NAME='xorgproto'
643 PACKAGE_TARNAME='xorgproto'
644 PACKAGE_VERSION='2019.1'
645 PACKAGE_STRING='xorgproto 2019.1'
646 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues'
647 PACKAGE_URL=''
648
649 # Factoring default headers for most tests.
650 ac_includes_default="\
651 #include <stdio.h>
652 #ifdef HAVE_SYS_TYPES_H
653 # include <sys/types.h>
654 #endif
655 #ifdef HAVE_SYS_STAT_H
656 # include <sys/stat.h>
657 #endif
658 #ifdef STDC_HEADERS
659 # include <stdlib.h>
660 # include <stddef.h>
661 #else
662 # ifdef HAVE_STDLIB_H
663 # include <stdlib.h>
664 # endif
665 #endif
666 #ifdef HAVE_STRING_H
667 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
668 # include <memory.h>
669 # endif
670 # include <string.h>
671 #endif
672 #ifdef HAVE_STRINGS_H
673 # include <strings.h>
674 #endif
675 #ifdef HAVE_INTTYPES_H
676 # include <inttypes.h>
677 #endif
678 #ifdef HAVE_STDINT_H
679 # include <stdint.h>
680 #endif
681 #ifdef HAVE_UNISTD_H
682 # include <unistd.h>
683 #endif"
684
685 ac_subst_vars='am__EXEEXT_FALSE
686 am__EXEEXT_TRUE
687 LTLIBOBJS
688 LIBOBJS
689 USE_FDS_BITS
690 LEGACY_FALSE
691 LEGACY_TRUE
692 HAVE_STYLESHEETS_FALSE
693 HAVE_STYLESHEETS_TRUE
694 XSL_STYLESHEET
695 STYLESHEET_SRCDIR
696 XORG_SGML_PATH
697 HAVE_XSLTPROC_FALSE
698 HAVE_XSLTPROC_TRUE
699 XSLTPROC
700 HAVE_FOP_FALSE
701 HAVE_FOP_TRUE
702 FOP
703 HAVE_XMLTO_FALSE
704 HAVE_XMLTO_TRUE
705 HAVE_XMLTO_TEXT_FALSE
706 HAVE_XMLTO_TEXT_TRUE
707 XMLTO
708 ENABLE_SPECS_FALSE
709 ENABLE_SPECS_TRUE
710 MAN_SUBSTS
711 XORG_MAN_PAGE
712 ADMIN_MAN_DIR
713 DRIVER_MAN_DIR
714 MISC_MAN_DIR
715 FILE_MAN_DIR
716 LIB_MAN_DIR
717 APP_MAN_DIR
718 ADMIN_MAN_SUFFIX
719 DRIVER_MAN_SUFFIX
720 MISC_MAN_SUFFIX
721 FILE_MAN_SUFFIX
722 LIB_MAN_SUFFIX
723 APP_MAN_SUFFIX
724 SED
725 host_os
726 host_vendor
727 host_cpu
728 host
729 build_os
730 build_vendor
731 build_cpu
732 build
733 INSTALL_CMD
734 PKG_CONFIG_LIBDIR
735 PKG_CONFIG_PATH
736 PKG_CONFIG
737 CHANGELOG_CMD
738 STRICT_CFLAGS
739 CWARNFLAGS
740 BASE_CFLAGS
741 EGREP
742 GREP
743 CPP
744 am__fastdepCC_FALSE
745 am__fastdepCC_TRUE
746 CCDEPMODE
747 am__nodep
748 AMDEPBACKSLASH
749 AMDEP_FALSE
750 AMDEP_TRUE
751 am__include
752 DEPDIR
753 OBJEXT
754 EXEEXT
755 ac_ct_CC
756 CPPFLAGS
757 LDFLAGS
758 CFLAGS
759 CC
760 AM_BACKSLASH
761 AM_DEFAULT_VERBOSITY
762 AM_DEFAULT_V
763 AM_V
764 am__untar
765 am__tar
766 AMTAR
767 am__leading_dot
768 SET_MAKE
769 AWK
770 mkdir_p
771 MKDIR_P
772 INSTALL_STRIP_PROGRAM
773 STRIP
774 install_sh
775 MAKEINFO
776 AUTOHEADER
777 AUTOMAKE
778 AUTOCONF
779 ACLOCAL
780 VERSION
781 PACKAGE
782 CYGPATH_W
783 am__isrc
784 INSTALL_DATA
785 INSTALL_SCRIPT
786 INSTALL_PROGRAM
787 target_alias
788 host_alias
789 build_alias
790 LIBS
791 ECHO_T
792 ECHO_N
793 ECHO_C
794 DEFS
795 mandir
796 localedir
797 libdir
798 psdir
799 pdfdir
800 dvidir
801 htmldir
802 infodir
803 docdir
804 oldincludedir
805 includedir
806 localstatedir
807 sharedstatedir
808 sysconfdir
809 datadir
810 datarootdir
811 libexecdir
812 sbindir
813 bindir
814 program_transform_name
815 prefix
816 exec_prefix
817 PACKAGE_URL
818 PACKAGE_BUGREPORT
819 PACKAGE_STRING
820 PACKAGE_VERSION
821 PACKAGE_TARNAME
822 PACKAGE_NAME
823 PATH_SEPARATOR
824 SHELL
825 am__quote'
826 ac_subst_files=''
827 ac_user_opts='
828 enable_option_checking
829 enable_silent_rules
830 enable_dependency_tracking
831 enable_selective_werror
832 enable_strict_compilation
833 enable_specs
834 with_xmlto
835 with_fop
836 with_xsltproc
837 enable_legacy
838 '
839 ac_precious_vars='build_alias
840 host_alias
841 target_alias
842 CC
843 CFLAGS
844 LDFLAGS
845 LIBS
846 CPPFLAGS
847 CPP
848 PKG_CONFIG
849 PKG_CONFIG_PATH
850 PKG_CONFIG_LIBDIR
851 XMLTO
852 FOP
853 XSLTPROC'
854
855
856 # Initialize some variables set by options.
857 ac_init_help=
858 ac_init_version=false
859 ac_unrecognized_opts=
860 ac_unrecognized_sep=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
863 cache_file=/dev/null
864 exec_prefix=NONE
865 no_create=
866 no_recursion=
867 prefix=NONE
868 program_prefix=NONE
869 program_suffix=NONE
870 program_transform_name=s,x,x,
871 silent=
872 site=
873 srcdir=
874 verbose=
875 x_includes=NONE
876 x_libraries=NONE
877
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir='${datarootdir}/info'
896 htmldir='${docdir}'
897 dvidir='${docdir}'
898 pdfdir='${docdir}'
899 psdir='${docdir}'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
903
904 ac_prev=
905 ac_dashdash=
906 for ac_option
907 do
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\$ac_option
911 ac_prev=
912 continue
913 fi
914
915 case $ac_option in
916 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917 *=) ac_optarg= ;;
918 *) ac_optarg=yes ;;
919 esac
920
921 # Accept the important Cygnus configure options, so we can diagnose typos.
922
923 case $ac_dashdash$ac_option in
924 --)
925 ac_dashdash=yes ;;
926
927 -bindir | --bindir | --bindi | --bind | --bin | --bi)
928 ac_prev=bindir ;;
929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930 bindir=$ac_optarg ;;
931
932 -build | --build | --buil | --bui | --bu)
933 ac_prev=build_alias ;;
934 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935 build_alias=$ac_optarg ;;
936
937 -cache-file | --cache-file | --cache-fil | --cache-fi \
938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939 ac_prev=cache_file ;;
940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942 cache_file=$ac_optarg ;;
943
944 --config-cache | -C)
945 cache_file=config.cache ;;
946
947 -datadir | --datadir | --datadi | --datad)
948 ac_prev=datadir ;;
949 -datadir=* | --datadir=* | --datadi=* | --datad=*)
950 datadir=$ac_optarg ;;
951
952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953 | --dataroo | --dataro | --datar)
954 ac_prev=datarootdir ;;
955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957 datarootdir=$ac_optarg ;;
958
959 -disable-* | --disable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error $? "invalid feature name: $ac_useropt"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
967 *"
968 "enable_$ac_useropt"
969 "*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
972 esac
973 eval enable_$ac_useropt=no ;;
974
975 -docdir | --docdir | --docdi | --doc | --do)
976 ac_prev=docdir ;;
977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978 docdir=$ac_optarg ;;
979
980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
981 ac_prev=dvidir ;;
982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983 dvidir=$ac_optarg ;;
984
985 -enable-* | --enable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error $? "invalid feature name: $ac_useropt"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
993 *"
994 "enable_$ac_useropt"
995 "*) ;;
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
998 esac
999 eval enable_$ac_useropt=\$ac_optarg ;;
1000
1001 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003 | --exec | --exe | --ex)
1004 ac_prev=exec_prefix ;;
1005 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007 | --exec=* | --exe=* | --ex=*)
1008 exec_prefix=$ac_optarg ;;
1009
1010 -gas | --gas | --ga | --g)
1011 # Obsolete; use --with-gas.
1012 with_gas=yes ;;
1013
1014 -help | --help | --hel | --he | -h)
1015 ac_init_help=long ;;
1016 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017 ac_init_help=recursive ;;
1018 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019 ac_init_help=short ;;
1020
1021 -host | --host | --hos | --ho)
1022 ac_prev=host_alias ;;
1023 -host=* | --host=* | --hos=* | --ho=*)
1024 host_alias=$ac_optarg ;;
1025
1026 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027 ac_prev=htmldir ;;
1028 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029 | --ht=*)
1030 htmldir=$ac_optarg ;;
1031
1032 -includedir | --includedir | --includedi | --included | --include \
1033 | --includ | --inclu | --incl | --inc)
1034 ac_prev=includedir ;;
1035 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036 | --includ=* | --inclu=* | --incl=* | --inc=*)
1037 includedir=$ac_optarg ;;
1038
1039 -infodir | --infodir | --infodi | --infod | --info | --inf)
1040 ac_prev=infodir ;;
1041 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042 infodir=$ac_optarg ;;
1043
1044 -libdir | --libdir | --libdi | --libd)
1045 ac_prev=libdir ;;
1046 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047 libdir=$ac_optarg ;;
1048
1049 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050 | --libexe | --libex | --libe)
1051 ac_prev=libexecdir ;;
1052 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053 | --libexe=* | --libex=* | --libe=*)
1054 libexecdir=$ac_optarg ;;
1055
1056 -localedir | --localedir | --localedi | --localed | --locale)
1057 ac_prev=localedir ;;
1058 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059 localedir=$ac_optarg ;;
1060
1061 -localstatedir | --localstatedir | --localstatedi | --localstated \
1062 | --localstate | --localstat | --localsta | --localst | --locals)
1063 ac_prev=localstatedir ;;
1064 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066 localstatedir=$ac_optarg ;;
1067
1068 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069 ac_prev=mandir ;;
1070 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071 mandir=$ac_optarg ;;
1072
1073 -nfp | --nfp | --nf)
1074 # Obsolete; use --without-fp.
1075 with_fp=no ;;
1076
1077 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078 | --no-cr | --no-c | -n)
1079 no_create=yes ;;
1080
1081 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083 no_recursion=yes ;;
1084
1085 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087 | --oldin | --oldi | --old | --ol | --o)
1088 ac_prev=oldincludedir ;;
1089 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092 oldincludedir=$ac_optarg ;;
1093
1094 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095 ac_prev=prefix ;;
1096 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097 prefix=$ac_optarg ;;
1098
1099 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100 | --program-pre | --program-pr | --program-p)
1101 ac_prev=program_prefix ;;
1102 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104 program_prefix=$ac_optarg ;;
1105
1106 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107 | --program-suf | --program-su | --program-s)
1108 ac_prev=program_suffix ;;
1109 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111 program_suffix=$ac_optarg ;;
1112
1113 -program-transform-name | --program-transform-name \
1114 | --program-transform-nam | --program-transform-na \
1115 | --program-transform-n | --program-transform- \
1116 | --program-transform | --program-transfor \
1117 | --program-transfo | --program-transf \
1118 | --program-trans | --program-tran \
1119 | --progr-tra | --program-tr | --program-t)
1120 ac_prev=program_transform_name ;;
1121 -program-transform-name=* | --program-transform-name=* \
1122 | --program-transform-nam=* | --program-transform-na=* \
1123 | --program-transform-n=* | --program-transform-=* \
1124 | --program-transform=* | --program-transfor=* \
1125 | --program-transfo=* | --program-transf=* \
1126 | --program-trans=* | --program-tran=* \
1127 | --progr-tra=* | --program-tr=* | --program-t=*)
1128 program_transform_name=$ac_optarg ;;
1129
1130 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131 ac_prev=pdfdir ;;
1132 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133 pdfdir=$ac_optarg ;;
1134
1135 -psdir | --psdir | --psdi | --psd | --ps)
1136 ac_prev=psdir ;;
1137 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138 psdir=$ac_optarg ;;
1139
1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141 | -silent | --silent | --silen | --sile | --sil)
1142 silent=yes ;;
1143
1144 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1145 ac_prev=sbindir ;;
1146 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1147 | --sbi=* | --sb=*)
1148 sbindir=$ac_optarg ;;
1149
1150 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1151 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1152 | --sharedst | --shareds | --shared | --share | --shar \
1153 | --sha | --sh)
1154 ac_prev=sharedstatedir ;;
1155 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1156 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1157 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1158 | --sha=* | --sh=*)
1159 sharedstatedir=$ac_optarg ;;
1160
1161 -site | --site | --sit)
1162 ac_prev=site ;;
1163 -site=* | --site=* | --sit=*)
1164 site=$ac_optarg ;;
1165
1166 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1167 ac_prev=srcdir ;;
1168 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1169 srcdir=$ac_optarg ;;
1170
1171 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1172 | --syscon | --sysco | --sysc | --sys | --sy)
1173 ac_prev=sysconfdir ;;
1174 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1175 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1176 sysconfdir=$ac_optarg ;;
1177
1178 -target | --target | --targe | --targ | --tar | --ta | --t)
1179 ac_prev=target_alias ;;
1180 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1181 target_alias=$ac_optarg ;;
1182
1183 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1184 verbose=yes ;;
1185
1186 -version | --version | --versio | --versi | --vers | -V)
1187 ac_init_version=: ;;
1188
1189 -with-* | --with-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1197 *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=\$ac_optarg ;;
1204
1205 -without-* | --without-*)
1206 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209 as_fn_error $? "invalid package name: $ac_useropt"
1210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1213 *"
1214 "with_$ac_useropt"
1215 "*) ;;
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
1218 esac
1219 eval with_$ac_useropt=no ;;
1220
1221 --x)
1222 # Obsolete; use --with-x.
1223 with_x=yes ;;
1224
1225 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1226 | --x-incl | --x-inc | --x-in | --x-i)
1227 ac_prev=x_includes ;;
1228 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1229 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1230 x_includes=$ac_optarg ;;
1231
1232 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1233 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1234 ac_prev=x_libraries ;;
1235 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1236 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1237 x_libraries=$ac_optarg ;;
1238
1239 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1240 Try \`$0 --help' for more information"
1241 ;;
1242
1243 *=*)
1244 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1245 # Reject names that are not valid shell variable names.
1246 case $ac_envvar in #(
1247 '' | [0-9]* | *[!_$as_cr_alnum]* )
1248 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1249 esac
1250 eval $ac_envvar=\$ac_optarg
1251 export $ac_envvar ;;
1252
1253 *)
1254 # FIXME: should be removed in autoconf 3.0.
1255 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1258 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1259 ;;
1260
1261 esac
1262 done
1263
1264 if test -n "$ac_prev"; then
1265 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1266 as_fn_error $? "missing argument to $ac_option"
1267 fi
1268
1269 if test -n "$ac_unrecognized_opts"; then
1270 case $enable_option_checking in
1271 no) ;;
1272 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1273 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1274 esac
1275 fi
1276
1277 # Check all directory arguments for consistency.
1278 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279 datadir sysconfdir sharedstatedir localstatedir includedir \
1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281 libdir localedir mandir
1282 do
1283 eval ac_val=\$$ac_var
1284 # Remove trailing slashes.
1285 case $ac_val in
1286 */ )
1287 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1288 eval $ac_var=\$ac_val;;
1289 esac
1290 # Be sure to have absolute directory names.
1291 case $ac_val in
1292 [\\/$]* | ?:[\\/]* ) continue;;
1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1294 esac
1295 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1296 done
1297
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1301 build=$build_alias
1302 host=$host_alias
1303 target=$target_alias
1304
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x; then
1307 if test "x$build_alias" = x; then
1308 cross_compiling=maybe
1309 elif test "x$build_alias" != "x$host_alias"; then
1310 cross_compiling=yes
1311 fi
1312 fi
1313
1314 ac_tool_prefix=
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316
1317 test "$silent" = yes && exec 6>/dev/null
1318
1319
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 as_fn_error $? "working directory cannot be determined"
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 as_fn_error $? "pwd does not report name of working directory"
1326
1327
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$as_myself" ||
1333 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$as_myself" : 'X\(//\)[^/]' \| \
1335 X"$as_myself" : 'X\(//\)$' \| \
1336 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337 $as_echo X"$as_myself" |
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)[^/].*/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\).*/{
1351 s//\1/
1352 q
1353 }
1354 s/.*/./; q'`
1355 srcdir=$ac_confdir
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 srcdir=..
1358 fi
1359 else
1360 ac_srcdir_defaulted=no
1361 fi
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1365 fi
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367 ac_abs_confdir=`(
1368 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1369 pwd)`
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 srcdir=.
1373 fi
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1377 case $srcdir in
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 esac
1380 for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 done
1386
1387 #
1388 # Report the --help message.
1389 #
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1393 cat <<_ACEOF
1394 \`configure' configures xorgproto 2019.1 to adapt to many kinds of systems.
1395
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1400
1401 Defaults for the options are specified in brackets.
1402
1403 Configuration:
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking ...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 [PREFIX]
1419
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1424
1425 For better control, use the options below.
1426
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/xorgproto]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1447 _ACEOF
1448
1449 cat <<\_ACEOF
1450
1451 Program names:
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455
1456 System types:
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459 _ACEOF
1460 fi
1461
1462 if test -n "$ac_init_help"; then
1463 case $ac_init_help in
1464 short | recursive ) echo "Configuration of xorgproto 2019.1:";;
1465 esac
1466 cat <<\_ACEOF
1467
1468 Optional Features:
1469 --disable-option-checking ignore unrecognized --enable/--with options
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --enable-silent-rules less verbose build output (undo: "make V=1")
1473 --disable-silent-rules verbose build output (undo: "make V=0")
1474 --enable-dependency-tracking
1475 do not reject slow dependency extractors
1476 --disable-dependency-tracking
1477 speeds up one-time build
1478 --disable-selective-werror
1479 Turn off selective compiler errors. (default:
1480 enabled)
1481 --enable-strict-compilation
1482 Enable all warnings from compiler and make them
1483 errors (default: disabled)
1484 --enable-specs Enable building the specs (default: yes)
1485 --enable-legacy Install legacy protocol headers (default: false)
1486
1487 Optional Packages:
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1490 --with-xmlto Use xmlto to regenerate documentation (default:
1491 auto)
1492 --with-fop Use fop to regenerate documentation (default: auto)
1493 --with-xsltproc Use xsltproc for the transformation of XML documents
1494 (default: auto)
1495
1496 Some influential environment variables:
1497 CC C compiler command
1498 CFLAGS C compiler flags
1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1500 nonstandard directory <lib dir>
1501 LIBS libraries to pass to the linker, e.g. -l<library>
1502 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1503 you have headers in a nonstandard directory <include dir>
1504 CPP C preprocessor
1505 PKG_CONFIG path to pkg-config utility
1506 PKG_CONFIG_PATH
1507 directories to add to pkg-config's search path
1508 PKG_CONFIG_LIBDIR
1509 path overriding pkg-config's built-in search path
1510 XMLTO Path to xmlto command
1511 FOP Path to fop command
1512 XSLTPROC Path to xsltproc command
1513
1514 Use these variables to override the choices made by `configure' or to help
1515 it to find libraries and programs with nonstandard names/locations.
1516
1517 Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>.
1518 _ACEOF
1519 ac_status=$?
1520 fi
1521
1522 if test "$ac_init_help" = "recursive"; then
1523 # If there are subdirs, report their specific --help.
1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525 test -d "$ac_dir" ||
1526 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1527 continue
1528 ac_builddir=.
1529
1530 case "$ac_dir" in
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *)
1533 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1534 # A ".." for each directory in $ac_dir_suffix.
1535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 esac ;;
1540 esac
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1545
1546 case $srcdir in
1547 .) # We are building in place.
1548 ac_srcdir=.
1549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
1552 ac_srcdir=$srcdir$ac_dir_suffix;
1553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1555 *) # Relative name.
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559 esac
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561
1562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for guested configure.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1570 else
1571 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572 fi || ac_status=$?
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1574 done
1575 fi
1576
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1579 cat <<\_ACEOF
1580 xorgproto configure 2019.1
1581 generated by GNU Autoconf 2.69
1582
1583 Copyright (C) 2012 Free Software Foundation, Inc.
1584 This configure script is free software; the Free Software Foundation
1585 gives unlimited permission to copy, distribute and modify it.
1586 _ACEOF
1587 exit
1588 fi
1589
1590 ## ------------------------ ##
1591 ## Autoconf initialization. ##
1592 ## ------------------------ ##
1593
1594 # ac_fn_c_try_compile LINENO
1595 # --------------------------
1596 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_compile ()
1598 {
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext
1601 if { { ac_try="$ac_compile"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_compile") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest.$ac_objext; then :
1620 ac_retval=0
1621 else
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1624
1625 ac_retval=1
1626 fi
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1629
1630 } # ac_fn_c_try_compile
1631
1632 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1633 # ---------------------------------------------
1634 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1635 # accordingly.
1636 ac_fn_c_check_decl ()
1637 {
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 as_decl_name=`echo $2|sed 's/ *(.*//'`
1640 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1642 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1643 if eval \${$3+:} false; then :
1644 $as_echo_n "(cached) " >&6
1645 else
1646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647 /* end confdefs.h. */
1648 $4
1649 int
1650 main ()
1651 {
1652 #ifndef $as_decl_name
1653 #ifdef __cplusplus
1654 (void) $as_decl_use;
1655 #else
1656 (void) $as_decl_name;
1657 #endif
1658 #endif
1659
1660 ;
1661 return 0;
1662 }
1663 _ACEOF
1664 if ac_fn_c_try_compile "$LINENO"; then :
1665 eval "$3=yes"
1666 else
1667 eval "$3=no"
1668 fi
1669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1670 fi
1671 eval ac_res=\$$3
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673 $as_echo "$ac_res" >&6; }
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675
1676 } # ac_fn_c_check_decl
1677
1678 # ac_fn_c_try_cpp LINENO
1679 # ----------------------
1680 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_cpp ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 if { { ac_try="$ac_cpp conftest.$ac_ext"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1692 ac_status=$?
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1697 fi
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } > conftest.i && {
1700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1702 }; then :
1703 ac_retval=0
1704 else
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 ac_retval=1
1709 fi
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1712
1713 } # ac_fn_c_try_cpp
1714
1715 # ac_fn_c_try_run LINENO
1716 # ----------------------
1717 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1718 # that executables *can* be run.
1719 ac_fn_c_try_run ()
1720 {
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 if { { ac_try="$ac_link"
1723 case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_link") 2>&5
1730 ac_status=$?
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1733 { { case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_try") 2>&5
1740 ac_status=$?
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; }; }; then :
1743 ac_retval=0
1744 else
1745 $as_echo "$as_me: program exited with status $ac_status" >&5
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=$ac_status
1750 fi
1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 as_fn_set_status $ac_retval
1754
1755 } # ac_fn_c_try_run
1756
1757 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1758 # -------------------------------------------------------
1759 # Tests whether HEADER exists and can be compiled using the include files in
1760 # INCLUDES, setting the cache variable VAR accordingly.
1761 ac_fn_c_check_header_compile ()
1762 {
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if eval \${$3+:} false; then :
1767 $as_echo_n "(cached) " >&6
1768 else
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1771 $4
1772 #include <$2>
1773 _ACEOF
1774 if ac_fn_c_try_compile "$LINENO"; then :
1775 eval "$3=yes"
1776 else
1777 eval "$3=no"
1778 fi
1779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780 fi
1781 eval ac_res=\$$3
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783 $as_echo "$ac_res" >&6; }
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785
1786 } # ac_fn_c_check_header_compile
1787
1788 # ac_fn_c_try_link LINENO
1789 # -----------------------
1790 # Try to link conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_c_try_link ()
1792 {
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 rm -f conftest.$ac_objext conftest$ac_exeext
1795 if { { ac_try="$ac_link"
1796 case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>conftest.err
1803 ac_status=$?
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1808 fi
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && {
1811 test -z "$ac_c_werror_flag" ||
1812 test ! -s conftest.err
1813 } && test -s conftest$ac_exeext && {
1814 test "$cross_compiling" = yes ||
1815 test -x conftest$ac_exeext
1816 }; then :
1817 ac_retval=0
1818 else
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=1
1823 fi
1824 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1825 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1826 # interfere with the next link command; also delete a directory that is
1827 # left behind by Apple's compiler. We do this before executing the actions.
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1831
1832 } # ac_fn_c_try_link
1833
1834 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1835 # -------------------------------------------------------
1836 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1837 # the include files in INCLUDES and setting the cache variable VAR
1838 # accordingly.
1839 ac_fn_c_check_header_mongrel ()
1840 {
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 if eval \${$3+:} false; then :
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if eval \${$3+:} false; then :
1846 $as_echo_n "(cached) " >&6
1847 fi
1848 eval ac_res=\$$3
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1851 else
1852 # Is the header compilable?
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1854 $as_echo_n "checking $2 usability... " >&6; }
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1857 $4
1858 #include <$2>
1859 _ACEOF
1860 if ac_fn_c_try_compile "$LINENO"; then :
1861 ac_header_compiler=yes
1862 else
1863 ac_header_compiler=no
1864 fi
1865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1867 $as_echo "$ac_header_compiler" >&6; }
1868
1869 # Is the header present?
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1871 $as_echo_n "checking $2 presence... " >&6; }
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h. */
1874 #include <$2>
1875 _ACEOF
1876 if ac_fn_c_try_cpp "$LINENO"; then :
1877 ac_header_preproc=yes
1878 else
1879 ac_header_preproc=no
1880 fi
1881 rm -f conftest.err conftest.i conftest.$ac_ext
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1883 $as_echo "$ac_header_preproc" >&6; }
1884
1885 # So? What about this header?
1886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1887 yes:no: )
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1889 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1891 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1892 ;;
1893 no:yes:* )
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1895 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1897 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1899 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1901 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1903 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1904 ( $as_echo "## ------------------------------------------------------------------------- ##
1905 ## Report this to https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues ##
1906 ## ------------------------------------------------------------------------- ##"
1907 ) | sed "s/^/$as_me: WARNING: /" >&2
1908 ;;
1909 esac
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval \${$3+:} false; then :
1913 $as_echo_n "(cached) " >&6
1914 else
1915 eval "$3=\$ac_header_compiler"
1916 fi
1917 eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1920 fi
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922
1923 } # ac_fn_c_check_header_mongrel
1924
1925 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1926 # ----------------------------------------------------
1927 # Tries to find if the field MEMBER exists in type AGGR, after including
1928 # INCLUDES, setting cache variable VAR accordingly.
1929 ac_fn_c_check_member ()
1930 {
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1933 $as_echo_n "checking for $2.$3... " >&6; }
1934 if eval \${$4+:} false; then :
1935 $as_echo_n "(cached) " >&6
1936 else
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1939 $5
1940 int
1941 main ()
1942 {
1943 static $2 ac_aggr;
1944 if (ac_aggr.$3)
1945 return 0;
1946 ;
1947 return 0;
1948 }
1949 _ACEOF
1950 if ac_fn_c_try_compile "$LINENO"; then :
1951 eval "$4=yes"
1952 else
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1955 $5
1956 int
1957 main ()
1958 {
1959 static $2 ac_aggr;
1960 if (sizeof ac_aggr.$3)
1961 return 0;
1962 ;
1963 return 0;
1964 }
1965 _ACEOF
1966 if ac_fn_c_try_compile "$LINENO"; then :
1967 eval "$4=yes"
1968 else
1969 eval "$4=no"
1970 fi
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 fi
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 fi
1975 eval ac_res=\$$4
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977 $as_echo "$ac_res" >&6; }
1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979
1980 } # ac_fn_c_check_member
1981 cat >config.log <<_ACEOF
1982 This file contains any messages produced by compilers while
1983 running configure, to aid debugging if configure makes a mistake.
1984
1985 It was created by xorgproto $as_me 2019.1, which was
1986 generated by GNU Autoconf 2.69. Invocation command line was
1987
1988 $ $0 $@
1989
1990 _ACEOF
1991 exec 5>>config.log
1992 {
1993 cat <<_ASUNAME
1994 ## --------- ##
1995 ## Platform. ##
1996 ## --------- ##
1997
1998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2003
2004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2005 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2006
2007 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2008 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2010 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2011 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2012 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2013 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2014
2015 _ASUNAME
2016
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 for as_dir in $PATH
2019 do
2020 IFS=$as_save_IFS
2021 test -z "$as_dir" && as_dir=.
2022 $as_echo "PATH: $as_dir"
2023 done
2024 IFS=$as_save_IFS
2025
2026 } >&5
2027
2028 cat >&5 <<_ACEOF
2029
2030
2031 ## ----------- ##
2032 ## Core tests. ##
2033 ## ----------- ##
2034
2035 _ACEOF
2036
2037
2038 # Keep a trace of the command line.
2039 # Strip out --no-create and --no-recursion so they do not pile up.
2040 # Strip out --silent because we don't want to record it for future runs.
2041 # Also quote any args containing shell meta-characters.
2042 # Make two passes to allow for proper duplicate-argument suppression.
2043 ac_configure_args=
2044 ac_configure_args0=
2045 ac_configure_args1=
2046 ac_must_keep_next=false
2047 for ac_pass in 1 2
2048 do
2049 for ac_arg
2050 do
2051 case $ac_arg in
2052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2054 | -silent | --silent | --silen | --sile | --sil)
2055 continue ;;
2056 *\'*)
2057 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2058 esac
2059 case $ac_pass in
2060 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2061 2)
2062 as_fn_append ac_configure_args1 " '$ac_arg'"
2063 if test $ac_must_keep_next = true; then
2064 ac_must_keep_next=false # Got value, back to normal.
2065 else
2066 case $ac_arg in
2067 *=* | --config-cache | -C | -disable-* | --disable-* \
2068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2070 | -with-* | --with-* | -without-* | --without-* | --x)
2071 case "$ac_configure_args0 " in
2072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2073 esac
2074 ;;
2075 -* ) ac_must_keep_next=true ;;
2076 esac
2077 fi
2078 as_fn_append ac_configure_args " '$ac_arg'"
2079 ;;
2080 esac
2081 done
2082 done
2083 { ac_configure_args0=; unset ac_configure_args0;}
2084 { ac_configure_args1=; unset ac_configure_args1;}
2085
2086 # When interrupted or exit'd, cleanup temporary files, and complete
2087 # config.log. We remove comments because anyway the quotes in there
2088 # would cause problems or look ugly.
2089 # WARNING: Use '\'' to represent an apostrophe within the trap.
2090 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2091 trap 'exit_status=$?
2092 # Save into config.log some information that might help in debugging.
2093 {
2094 echo
2095
2096 $as_echo "## ---------------- ##
2097 ## Cache variables. ##
2098 ## ---------------- ##"
2099 echo
2100 # The following way of writing the cache mishandles newlines in values,
2101 (
2102 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2103 eval ac_val=\$$ac_var
2104 case $ac_val in #(
2105 *${as_nl}*)
2106 case $ac_var in #(
2107 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2108 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2109 esac
2110 case $ac_var in #(
2111 _ | IFS | as_nl) ;; #(
2112 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2113 *) { eval $ac_var=; unset $ac_var;} ;;
2114 esac ;;
2115 esac
2116 done
2117 (set) 2>&1 |
2118 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2119 *${as_nl}ac_space=\ *)
2120 sed -n \
2121 "s/'\''/'\''\\\\'\'''\''/g;
2122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2123 ;; #(
2124 *)
2125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2126 ;;
2127 esac |
2128 sort
2129 )
2130 echo
2131
2132 $as_echo "## ----------------- ##
2133 ## Output variables. ##
2134 ## ----------------- ##"
2135 echo
2136 for ac_var in $ac_subst_vars
2137 do
2138 eval ac_val=\$$ac_var
2139 case $ac_val in
2140 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2141 esac
2142 $as_echo "$ac_var='\''$ac_val'\''"
2143 done | sort
2144 echo
2145
2146 if test -n "$ac_subst_files"; then
2147 $as_echo "## ------------------- ##
2148 ## File substitutions. ##
2149 ## ------------------- ##"
2150 echo
2151 for ac_var in $ac_subst_files
2152 do
2153 eval ac_val=\$$ac_var
2154 case $ac_val in
2155 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2156 esac
2157 $as_echo "$ac_var='\''$ac_val'\''"
2158 done | sort
2159 echo
2160 fi
2161
2162 if test -s confdefs.h; then
2163 $as_echo "## ----------- ##
2164 ## confdefs.h. ##
2165 ## ----------- ##"
2166 echo
2167 cat confdefs.h
2168 echo
2169 fi
2170 test "$ac_signal" != 0 &&
2171 $as_echo "$as_me: caught signal $ac_signal"
2172 $as_echo "$as_me: exit $exit_status"
2173 } >&5
2174 rm -f core *.core core.conftest.* &&
2175 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2176 exit $exit_status
2177 ' 0
2178 for ac_signal in 1 2 13 15; do
2179 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2180 done
2181 ac_signal=0
2182
2183 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2184 rm -f -r conftest* confdefs.h
2185
2186 $as_echo "/* confdefs.h */" > confdefs.h
2187
2188 # Predefined preprocessor variables.
2189
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_NAME "$PACKAGE_NAME"
2192 _ACEOF
2193
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2196 _ACEOF
2197
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2200 _ACEOF
2201
2202 cat >>confdefs.h <<_ACEOF
2203 #define PACKAGE_STRING "$PACKAGE_STRING"
2204 _ACEOF
2205
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2208 _ACEOF
2209
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_URL "$PACKAGE_URL"
2212 _ACEOF
2213
2214
2215 # Let the site file select an alternate cache file if it wants to.
2216 # Prefer an explicitly selected file to automatically selected ones.
2217 ac_site_file1=NONE
2218 ac_site_file2=NONE
2219 if test -n "$CONFIG_SITE"; then
2220 # We do not want a PATH search for config.site.
2221 case $CONFIG_SITE in #((
2222 -*) ac_site_file1=./$CONFIG_SITE;;
2223 */*) ac_site_file1=$CONFIG_SITE;;
2224 *) ac_site_file1=./$CONFIG_SITE;;
2225 esac
2226 elif test "x$prefix" != xNONE; then
2227 ac_site_file1=$prefix/share/config.site
2228 ac_site_file2=$prefix/etc/config.site
2229 else
2230 ac_site_file1=$ac_default_prefix/share/config.site
2231 ac_site_file2=$ac_default_prefix/etc/config.site
2232 fi
2233 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2234 do
2235 test "x$ac_site_file" = xNONE && continue
2236 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2238 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2239 sed 's/^/| /' "$ac_site_file" >&5
2240 . "$ac_site_file" \
2241 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2243 as_fn_error $? "failed to load site script $ac_site_file
2244 See \`config.log' for more details" "$LINENO" 5; }
2245 fi
2246 done
2247
2248 if test -r "$cache_file"; then
2249 # Some versions of bash will fail to source /dev/null (special files
2250 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2251 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2253 $as_echo "$as_me: loading cache $cache_file" >&6;}
2254 case $cache_file in
2255 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2256 *) . "./$cache_file";;
2257 esac
2258 fi
2259 else
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2261 $as_echo "$as_me: creating cache $cache_file" >&6;}
2262 >$cache_file
2263 fi
2264
2265 # Check that the precious variables saved in the cache have kept the same
2266 # value.
2267 ac_cache_corrupted=false
2268 for ac_var in $ac_precious_vars; do
2269 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2270 eval ac_new_set=\$ac_env_${ac_var}_set
2271 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2272 eval ac_new_val=\$ac_env_${ac_var}_value
2273 case $ac_old_set,$ac_new_set in
2274 set,)
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2276 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2277 ac_cache_corrupted=: ;;
2278 ,set)
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2280 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2281 ac_cache_corrupted=: ;;
2282 ,);;
2283 *)
2284 if test "x$ac_old_val" != "x$ac_new_val"; then
2285 # differences in whitespace do not lead to failure.
2286 ac_old_val_w=`echo x $ac_old_val`
2287 ac_new_val_w=`echo x $ac_new_val`
2288 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2290 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2291 ac_cache_corrupted=:
2292 else
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2294 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2295 eval $ac_var=\$ac_old_val
2296 fi
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2298 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2300 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2301 fi;;
2302 esac
2303 # Pass precious variables to config.status.
2304 if test "$ac_new_set" = set; then
2305 case $ac_new_val in
2306 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2307 *) ac_arg=$ac_var=$ac_new_val ;;
2308 esac
2309 case " $ac_configure_args " in
2310 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2311 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2312 esac
2313 fi
2314 done
2315 if $ac_cache_corrupted; then
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2319 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2320 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2321 fi
2322 ## -------------------- ##
2323 ## Main body of script. ##
2324 ## -------------------- ##
2325
2326 ac_ext=c
2327 ac_cpp='$CPP $CPPFLAGS'
2328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2331
2332
2333 am__api_version='1.16'
2334
2335 ac_aux_dir=
2336 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2337 if test -f "$ac_dir/install-sh"; then
2338 ac_aux_dir=$ac_dir
2339 ac_install_sh="$ac_aux_dir/install-sh -c"
2340 break
2341 elif test -f "$ac_dir/install.sh"; then
2342 ac_aux_dir=$ac_dir
2343 ac_install_sh="$ac_aux_dir/install.sh -c"
2344 break
2345 elif test -f "$ac_dir/shtool"; then
2346 ac_aux_dir=$ac_dir
2347 ac_install_sh="$ac_aux_dir/shtool install -c"
2348 break
2349 fi
2350 done
2351 if test -z "$ac_aux_dir"; then
2352 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2353 fi
2354
2355 # These three variables are undocumented and unsupported,
2356 # and are intended to be withdrawn in a future Autoconf release.
2357 # They can cause serious problems if a builder's source tree is in a directory
2358 # whose full name contains unusual characters.
2359 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2360 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2361 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2362
2363
2364 # Find a good install program. We prefer a C program (faster),
2365 # so one script is as good as another. But avoid the broken or
2366 # incompatible versions:
2367 # SysV /etc/install, /usr/sbin/install
2368 # SunOS /usr/etc/install
2369 # IRIX /sbin/install
2370 # AIX /bin/install
2371 # AmigaOS /C/install, which installs bootblocks on floppy discs
2372 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2373 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2374 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2375 # OS/2's system install, which has a completely different semantic
2376 # ./install, which can be erroneously created by make from ./install.sh.
2377 # Reject install programs that cannot install multiple files.
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2379 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2380 if test -z "$INSTALL"; then
2381 if ${ac_cv_path_install+:} false; then :
2382 $as_echo_n "(cached) " >&6
2383 else
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 for as_dir in $PATH
2386 do
2387 IFS=$as_save_IFS
2388 test -z "$as_dir" && as_dir=.
2389 # Account for people who put trailing slashes in PATH elements.
2390 case $as_dir/ in #((
2391 ./ | .// | /[cC]/* | \
2392 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2393 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2394 /usr/ucb/* ) ;;
2395 *)
2396 # OSF1 and SCO ODT 3.0 have their own names for install.
2397 # Don't use installbsd from OSF since it installs stuff as root
2398 # by default.
2399 for ac_prog in ginstall scoinst install; do
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2402 if test $ac_prog = install &&
2403 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2404 # AIX install. It has an incompatible calling convention.
2405 :
2406 elif test $ac_prog = install &&
2407 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2408 # program-specific install script used by HP pwplus--don't use.
2409 :
2410 else
2411 rm -rf conftest.one conftest.two conftest.dir
2412 echo one > conftest.one
2413 echo two > conftest.two
2414 mkdir conftest.dir
2415 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2416 test -s conftest.one && test -s conftest.two &&
2417 test -s conftest.dir/conftest.one &&
2418 test -s conftest.dir/conftest.two
2419 then
2420 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2421 break 3
2422 fi
2423 fi
2424 fi
2425 done
2426 done
2427 ;;
2428 esac
2429
2430 done
2431 IFS=$as_save_IFS
2432
2433 rm -rf conftest.one conftest.two conftest.dir
2434
2435 fi
2436 if test "${ac_cv_path_install+set}" = set; then
2437 INSTALL=$ac_cv_path_install
2438 else
2439 # As a last resort, use the slow shell script. Don't cache a
2440 # value for INSTALL within a source directory, because that will
2441 # break other packages using the cache if that directory is
2442 # removed, or if the value is a relative name.
2443 INSTALL=$ac_install_sh
2444 fi
2445 fi
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2447 $as_echo "$INSTALL" >&6; }
2448
2449 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2450 # It thinks the first close brace ends the variable substitution.
2451 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2452
2453 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2454
2455 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2456
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2458 $as_echo_n "checking whether build environment is sane... " >&6; }
2459 # Reject unsafe characters in $srcdir or the absolute working directory
2460 # name. Accept space and tab only in the latter.
2461 am_lf='
2462 '
2463 case `pwd` in
2464 *[\\\"\#\$\&\'\`$am_lf]*)
2465 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2466 esac
2467 case $srcdir in
2468 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2469 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2470 esac
2471
2472 # Do 'set' in a subshell so we don't clobber the current shell's
2473 # arguments. Must try -L first in case configure is actually a
2474 # symlink; some systems play weird games with the mod time of symlinks
2475 # (eg FreeBSD returns the mod time of the symlink's containing
2476 # directory).
2477 if (
2478 am_has_slept=no
2479 for am_try in 1 2; do
2480 echo "timestamp, slept: $am_has_slept" > conftest.file
2481 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2482 if test "$*" = "X"; then
2483 # -L didn't work.
2484 set X `ls -t "$srcdir/configure" conftest.file`
2485 fi
2486 if test "$*" != "X $srcdir/configure conftest.file" \
2487 && test "$*" != "X conftest.file $srcdir/configure"; then
2488
2489 # If neither matched, then we have a broken ls. This can happen
2490 # if, for instance, CONFIG_SHELL is bash and it inherits a
2491 # broken ls alias from the environment. This has actually
2492 # happened. Such a system could not be considered "sane".
2493 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2494 alias in your environment" "$LINENO" 5
2495 fi
2496 if test "$2" = conftest.file || test $am_try -eq 2; then
2497 break
2498 fi
2499 # Just in case.
2500 sleep 1
2501 am_has_slept=yes
2502 done
2503 test "$2" = conftest.file
2504 )
2505 then
2506 # Ok.
2507 :
2508 else
2509 as_fn_error $? "newly created file is older than distributed files!
2510 Check your system clock" "$LINENO" 5
2511 fi
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2513 $as_echo "yes" >&6; }
2514 # If we didn't sleep, we still need to ensure time stamps of config.status and
2515 # generated files are strictly newer.
2516 am_sleep_pid=
2517 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2518 ( sleep 1 ) &
2519 am_sleep_pid=$!
2520 fi
2521
2522 rm -f conftest.file
2523
2524 test "$program_prefix" != NONE &&
2525 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2526 # Use a double $ so make ignores it.
2527 test "$program_suffix" != NONE &&
2528 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2529 # Double any \ or $.
2530 # By default was `s,x,x', remove it if useless.
2531 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2532 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2533
2534 # Expand $ac_aux_dir to an absolute path.
2535 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2536
2537 if test x"${MISSING+set}" != xset; then
2538 case $am_aux_dir in
2539 *\ * | *\ *)
2540 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2541 *)
2542 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2543 esac
2544 fi
2545 # Use eval to expand $SHELL
2546 if eval "$MISSING --is-lightweight"; then
2547 am_missing_run="$MISSING "
2548 else
2549 am_missing_run=
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2551 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2552 fi
2553
2554 if test x"${install_sh+set}" != xset; then
2555 case $am_aux_dir in
2556 *\ * | *\ *)
2557 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2558 *)
2559 install_sh="\${SHELL} $am_aux_dir/install-sh"
2560 esac
2561 fi
2562
2563 # Installed binaries are usually stripped using 'strip' when the user
2564 # run "make install-strip". However 'strip' might not be the right
2565 # tool to use in cross-compilation environments, therefore Automake
2566 # will honor the 'STRIP' environment variable to overrule this program.
2567 if test "$cross_compiling" != no; then
2568 if test -n "$ac_tool_prefix"; then
2569 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2570 set dummy ${ac_tool_prefix}strip; ac_word=$2
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if ${ac_cv_prog_STRIP+:} false; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 if test -n "$STRIP"; then
2577 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2586 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590 done
2591 done
2592 IFS=$as_save_IFS
2593
2594 fi
2595 fi
2596 STRIP=$ac_cv_prog_STRIP
2597 if test -n "$STRIP"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2599 $as_echo "$STRIP" >&6; }
2600 else
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602 $as_echo "no" >&6; }
2603 fi
2604
2605
2606 fi
2607 if test -z "$ac_cv_prog_STRIP"; then
2608 ac_ct_STRIP=$STRIP
2609 # Extract the first word of "strip", so it can be a program name with args.
2610 set dummy strip; ac_word=$2
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2612 $as_echo_n "checking for $ac_word... " >&6; }
2613 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2614 $as_echo_n "(cached) " >&6
2615 else
2616 if test -n "$ac_ct_STRIP"; then
2617 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2621 do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626 ac_cv_prog_ac_ct_STRIP="strip"
2627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2629 fi
2630 done
2631 done
2632 IFS=$as_save_IFS
2633
2634 fi
2635 fi
2636 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2637 if test -n "$ac_ct_STRIP"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2639 $as_echo "$ac_ct_STRIP" >&6; }
2640 else
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642 $as_echo "no" >&6; }
2643 fi
2644
2645 if test "x$ac_ct_STRIP" = x; then
2646 STRIP=":"
2647 else
2648 case $cross_compiling:$ac_tool_warned in
2649 yes:)
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2652 ac_tool_warned=yes ;;
2653 esac
2654 STRIP=$ac_ct_STRIP
2655 fi
2656 else
2657 STRIP="$ac_cv_prog_STRIP"
2658 fi
2659
2660 fi
2661 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2662
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2664 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2665 if test -z "$MKDIR_P"; then
2666 if ${ac_cv_path_mkdir+:} false; then :
2667 $as_echo_n "(cached) " >&6
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2671 do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_prog in mkdir gmkdir; do
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2677 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2678 'mkdir (GNU coreutils) '* | \
2679 'mkdir (coreutils) '* | \
2680 'mkdir (fileutils) '4.1*)
2681 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2682 break 3;;
2683 esac
2684 done
2685 done
2686 done
2687 IFS=$as_save_IFS
2688
2689 fi
2690
2691 test -d ./--version && rmdir ./--version
2692 if test "${ac_cv_path_mkdir+set}" = set; then
2693 MKDIR_P="$ac_cv_path_mkdir -p"
2694 else
2695 # As a last resort, use the slow shell script. Don't cache a
2696 # value for MKDIR_P within a source directory, because that will
2697 # break other packages using the cache if that directory is
2698 # removed, or if the value is a relative name.
2699 MKDIR_P="$ac_install_sh -d"
2700 fi
2701 fi
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2703 $as_echo "$MKDIR_P" >&6; }
2704
2705 for ac_prog in gawk mawk nawk awk
2706 do
2707 # Extract the first word of "$ac_prog", so it can be a program name with args.
2708 set dummy $ac_prog; ac_word=$2
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if ${ac_cv_prog_AWK+:} false; then :
2712 $as_echo_n "(cached) " >&6
2713 else
2714 if test -n "$AWK"; then
2715 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2719 do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2724 ac_cv_prog_AWK="$ac_prog"
2725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2727 fi
2728 done
2729 done
2730 IFS=$as_save_IFS
2731
2732 fi
2733 fi
2734 AWK=$ac_cv_prog_AWK
2735 if test -n "$AWK"; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2737 $as_echo "$AWK" >&6; }
2738 else
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740 $as_echo "no" >&6; }
2741 fi
2742
2743
2744 test -n "$AWK" && break
2745 done
2746
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2748 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2749 set x ${MAKE-make}
2750 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2751 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2752 $as_echo_n "(cached) " >&6
2753 else
2754 cat >conftest.make <<\_ACEOF
2755 SHELL = /bin/sh
2756 all:
2757 @echo '@@@%%%=$(MAKE)=@@@%%%'
2758 _ACEOF
2759 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2760 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2761 *@@@%%%=?*=@@@%%%*)
2762 eval ac_cv_prog_make_${ac_make}_set=yes;;
2763 *)
2764 eval ac_cv_prog_make_${ac_make}_set=no;;
2765 esac
2766 rm -f conftest.make
2767 fi
2768 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2770 $as_echo "yes" >&6; }
2771 SET_MAKE=
2772 else
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774 $as_echo "no" >&6; }
2775 SET_MAKE="MAKE=${MAKE-make}"
2776 fi
2777
2778 rm -rf .tst 2>/dev/null
2779 mkdir .tst 2>/dev/null
2780 if test -d .tst; then
2781 am__leading_dot=.
2782 else
2783 am__leading_dot=_
2784 fi
2785 rmdir .tst 2>/dev/null
2786
2787 # Check whether --enable-silent-rules was given.
2788 if test "${enable_silent_rules+set}" = set; then :
2789 enableval=$enable_silent_rules;
2790 fi
2791
2792 case $enable_silent_rules in # (((
2793 yes) AM_DEFAULT_VERBOSITY=0;;
2794 no) AM_DEFAULT_VERBOSITY=1;;
2795 *) AM_DEFAULT_VERBOSITY=1;;
2796 esac
2797 am_make=${MAKE-make}
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2799 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2800 if ${am_cv_make_support_nested_variables+:} false; then :
2801 $as_echo_n "(cached) " >&6
2802 else
2803 if $as_echo 'TRUE=$(BAR$(V))
2804 BAR0=false
2805 BAR1=true
2806 V=1
2807 am__doit:
2808 @$(TRUE)
2809 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2810 am_cv_make_support_nested_variables=yes
2811 else
2812 am_cv_make_support_nested_variables=no
2813 fi
2814 fi
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2816 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2817 if test $am_cv_make_support_nested_variables = yes; then
2818 AM_V='$(V)'
2819 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2820 else
2821 AM_V=$AM_DEFAULT_VERBOSITY
2822 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2823 fi
2824 AM_BACKSLASH='\'
2825
2826 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2827 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2828 # is not polluted with repeated "-I."
2829 am__isrc=' -I$(srcdir)'
2830 # test to see if srcdir already configured
2831 if test -f $srcdir/config.status; then
2832 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2833 fi
2834 fi
2835
2836 # test whether we have cygpath
2837 if test -z "$CYGPATH_W"; then
2838 if (cygpath --version) >/dev/null 2>/dev/null; then
2839 CYGPATH_W='cygpath -w'
2840 else
2841 CYGPATH_W=echo
2842 fi
2843 fi
2844
2845
2846 # Define the identity of the package.
2847 PACKAGE='xorgproto'
2848 VERSION='2019.1'
2849
2850
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE "$PACKAGE"
2853 _ACEOF
2854
2855
2856 cat >>confdefs.h <<_ACEOF
2857 #define VERSION "$VERSION"
2858 _ACEOF
2859
2860 # Some tools Automake needs.
2861
2862 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2863
2864
2865 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2866
2867
2868 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2869
2870
2871 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2872
2873
2874 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2875
2876 # For better backward compatibility. To be removed once Automake 1.9.x
2877 # dies out for good. For more background, see:
2878 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2879 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2880 mkdir_p='$(MKDIR_P)'
2881
2882 # We need awk for the "check" target (and possibly the TAP driver). The
2883 # system "awk" is bad on some platforms.
2884 # Always define AMTAR for backward compatibility. Yes, it's still used
2885 # in the wild :-( We should find a proper way to deprecate it ...
2886 AMTAR='$${TAR-tar}'
2887
2888
2889 # We'll loop over all known methods to create a tar archive until one works.
2890 _am_tools='gnutar pax cpio none'
2891
2892 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2893
2894
2895
2896
2897
2898
2899 # POSIX will say in a future version that running "rm -f" with no argument
2900 # is OK; and we want to be able to make that assumption in our Makefile
2901 # recipes. So use an aggressive probe to check that the usage we want is
2902 # actually supported "in the wild" to an acceptable degree.
2903 # See automake bug#10828.
2904 # To make any issue more visible, cause the running configure to be aborted
2905 # by default if the 'rm' program in use doesn't match our expectations; the
2906 # user can still override this though.
2907 if rm -f && rm -fr && rm -rf; then : OK; else
2908 cat >&2 <<'END'
2909 Oops!
2910
2911 Your 'rm' program seems unable to run without file operands specified
2912 on the command line, even when the '-f' option is present. This is contrary
2913 to the behaviour of most rm programs out there, and not conforming with
2914 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2915
2916 Please tell bug-automake@gnu.org about your system, including the value
2917 of your $PATH and any error possibly output before this message. This
2918 can help us improve future automake versions.
2919
2920 END
2921 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2922 echo 'Configuration will proceed anyway, since you have set the' >&2
2923 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2924 echo >&2
2925 else
2926 cat >&2 <<'END'
2927 Aborting the configuration process, to ensure you take notice of the issue.
2928
2929 You can download and install GNU coreutils to get an 'rm' implementation
2930 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2931
2932 If you want to complete the configuration process using your problematic
2933 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2934 to "yes", and re-run configure.
2935
2936 END
2937 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2938 fi
2939 fi
2940
2941
2942 # Require xorg-macros: XORG_DEFAULT_OPTIONS
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954 DEPDIR="${am__leading_dot}deps"
2955
2956 ac_config_commands="$ac_config_commands depfiles"
2957
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2959 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2960 cat > confinc.mk << 'END'
2961 am__doit:
2962 @echo this is the am__doit target >confinc.out
2963 .PHONY: am__doit
2964 END
2965 am__include="#"
2966 am__quote=
2967 # BSD make does it like this.
2968 echo '.include "confinc.mk" # ignored' > confmf.BSD
2969 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
2970 echo 'include confinc.mk # ignored' > confmf.GNU
2971 _am_result=no
2972 for s in GNU BSD; do
2973 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
2974 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
2975 ac_status=$?
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }
2978 case $?:`cat confinc.out 2>/dev/null` in #(
2979 '0:this is the am__doit target') :
2980 case $s in #(
2981 BSD) :
2982 am__include='.include' am__quote='"' ;; #(
2983 *) :
2984 am__include='include' am__quote='' ;;
2985 esac ;; #(
2986 *) :
2987 ;;
2988 esac
2989 if test "$am__include" != "#"; then
2990 _am_result="yes ($s style)"
2991 break
2992 fi
2993 done
2994 rm -f confinc.* confmf.*
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
2996 $as_echo "${_am_result}" >&6; }
2997
2998 # Check whether --enable-dependency-tracking was given.
2999 if test "${enable_dependency_tracking+set}" = set; then :
3000 enableval=$enable_dependency_tracking;
3001 fi
3002
3003 if test "x$enable_dependency_tracking" != xno; then
3004 am_depcomp="$ac_aux_dir/depcomp"
3005 AMDEPBACKSLASH='\'
3006 am__nodep='_no'
3007 fi
3008 if test "x$enable_dependency_tracking" != xno; then
3009 AMDEP_TRUE=
3010 AMDEP_FALSE='#'
3011 else
3012 AMDEP_TRUE='#'
3013 AMDEP_FALSE=
3014 fi
3015
3016
3017 ac_ext=c
3018 ac_cpp='$CPP $CPPFLAGS'
3019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3022 if test -n "$ac_tool_prefix"; then
3023 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3024 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if ${ac_cv_prog_CC+:} false; then :
3028 $as_echo_n "(cached) " >&6
3029 else
3030 if test -n "$CC"; then
3031 ac_cv_prog_CC="$CC" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3035 do
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3043 fi
3044 done
3045 done
3046 IFS=$as_save_IFS
3047
3048 fi
3049 fi
3050 CC=$ac_cv_prog_CC
3051 if test -n "$CC"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3053 $as_echo "$CC" >&6; }
3054 else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3057 fi
3058
3059
3060 fi
3061 if test -z "$ac_cv_prog_CC"; then
3062 ac_ct_CC=$CC
3063 # Extract the first word of "gcc", so it can be a program name with args.
3064 set dummy gcc; ac_word=$2
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066 $as_echo_n "checking for $ac_word... " >&6; }
3067 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3068 $as_echo_n "(cached) " >&6
3069 else
3070 if test -n "$ac_ct_CC"; then
3071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3075 do
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080 ac_cv_prog_ac_ct_CC="gcc"
3081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3083 fi
3084 done
3085 done
3086 IFS=$as_save_IFS
3087
3088 fi
3089 fi
3090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3091 if test -n "$ac_ct_CC"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3093 $as_echo "$ac_ct_CC" >&6; }
3094 else
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096 $as_echo "no" >&6; }
3097 fi
3098
3099 if test "x$ac_ct_CC" = x; then
3100 CC=""
3101 else
3102 case $cross_compiling:$ac_tool_warned in
3103 yes:)
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3106 ac_tool_warned=yes ;;
3107 esac
3108 CC=$ac_ct_CC
3109 fi
3110 else
3111 CC="$ac_cv_prog_CC"
3112 fi
3113
3114 if test -z "$CC"; then
3115 if test -n "$ac_tool_prefix"; then
3116 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3117 set dummy ${ac_tool_prefix}cc; ac_word=$2
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119 $as_echo_n "checking for $ac_word... " >&6; }
3120 if ${ac_cv_prog_CC+:} false; then :
3121 $as_echo_n "(cached) " >&6
3122 else
3123 if test -n "$CC"; then
3124 ac_cv_prog_CC="$CC" # Let the user override the test.
3125 else
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133 ac_cv_prog_CC="${ac_tool_prefix}cc"
3134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 break 2
3136 fi
3137 done
3138 done
3139 IFS=$as_save_IFS
3140
3141 fi
3142 fi
3143 CC=$ac_cv_prog_CC
3144 if test -n "$CC"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3146 $as_echo "$CC" >&6; }
3147 else
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 fi
3151
3152
3153 fi
3154 fi
3155 if test -z "$CC"; then
3156 # Extract the first word of "cc", so it can be a program name with args.
3157 set dummy cc; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if ${ac_cv_prog_CC+:} false; then :
3161 $as_echo_n "(cached) " >&6
3162 else
3163 if test -n "$CC"; then
3164 ac_cv_prog_CC="$CC" # Let the user override the test.
3165 else
3166 ac_prog_rejected=no
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3169 do
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3174 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3175 ac_prog_rejected=yes
3176 continue
3177 fi
3178 ac_cv_prog_CC="cc"
3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3181 fi
3182 done
3183 done
3184 IFS=$as_save_IFS
3185
3186 if test $ac_prog_rejected = yes; then
3187 # We found a bogon in the path, so make sure we never use it.
3188 set dummy $ac_cv_prog_CC
3189 shift
3190 if test $# != 0; then
3191 # We chose a different compiler from the bogus one.
3192 # However, it has the same basename, so the bogon will be chosen
3193 # first if we set CC to just the basename; use the full file name.
3194 shift
3195 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3196 fi
3197 fi
3198 fi
3199 fi
3200 CC=$ac_cv_prog_CC
3201 if test -n "$CC"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3203 $as_echo "$CC" >&6; }
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3207 fi
3208
3209
3210 fi
3211 if test -z "$CC"; then
3212 if test -n "$ac_tool_prefix"; then
3213 for ac_prog in cl.exe
3214 do
3215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3216 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218 $as_echo_n "checking for $ac_word... " >&6; }
3219 if ${ac_cv_prog_CC+:} false; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 if test -n "$CC"; then
3223 ac_cv_prog_CC="$CC" # Let the user override the test.
3224 else
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3227 do
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 break 2
3235 fi
3236 done
3237 done
3238 IFS=$as_save_IFS
3239
3240 fi
3241 fi
3242 CC=$ac_cv_prog_CC
3243 if test -n "$CC"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3245 $as_echo "$CC" >&6; }
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 fi
3250
3251
3252 test -n "$CC" && break
3253 done
3254 fi
3255 if test -z "$CC"; then
3256 ac_ct_CC=$CC
3257 for ac_prog in cl.exe
3258 do
3259 # Extract the first word of "$ac_prog", so it can be a program name with args.
3260 set dummy $ac_prog; ac_word=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3264 $as_echo_n "(cached) " >&6
3265 else
3266 if test -n "$ac_ct_CC"; then
3267 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3268 else
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 for as_dir in $PATH
3271 do
3272 IFS=$as_save_IFS
3273 test -z "$as_dir" && as_dir=.
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3276 ac_cv_prog_ac_ct_CC="$ac_prog"
3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 break 2
3279 fi
3280 done
3281 done
3282 IFS=$as_save_IFS
3283
3284 fi
3285 fi
3286 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3287 if test -n "$ac_ct_CC"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3289 $as_echo "$ac_ct_CC" >&6; }
3290 else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3293 fi
3294
3295
3296 test -n "$ac_ct_CC" && break
3297 done
3298
3299 if test "x$ac_ct_CC" = x; then
3300 CC=""
3301 else
3302 case $cross_compiling:$ac_tool_warned in
3303 yes:)
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3306 ac_tool_warned=yes ;;
3307 esac
3308 CC=$ac_ct_CC
3309 fi
3310 fi
3311
3312 fi
3313
3314
3315 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317 as_fn_error $? "no acceptable C compiler found in \$PATH
3318 See \`config.log' for more details" "$LINENO" 5; }
3319
3320 # Provide some information about the compiler.
3321 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3322 set X $ac_compile
3323 ac_compiler=$2
3324 for ac_option in --version -v -V -qversion; do
3325 { { ac_try="$ac_compiler $ac_option >&5"
3326 case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329 esac
3330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331 $as_echo "$ac_try_echo"; } >&5
3332 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3333 ac_status=$?
3334 if test -s conftest.err; then
3335 sed '10a\
3336 ... rest of stderr output deleted ...
3337 10q' conftest.err >conftest.er1
3338 cat conftest.er1 >&5
3339 fi
3340 rm -f conftest.er1 conftest.err
3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3342 test $ac_status = 0; }
3343 done
3344
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3347
3348 int
3349 main ()
3350 {
3351
3352 ;
3353 return 0;
3354 }
3355 _ACEOF
3356 ac_clean_files_save=$ac_clean_files
3357 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3358 # Try to create an executable without -o first, disregard a.out.
3359 # It will help us diagnose broken compilers, and finding out an intuition
3360 # of exeext.
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3362 $as_echo_n "checking whether the C compiler works... " >&6; }
3363 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3364
3365 # The possible output files:
3366 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3367
3368 ac_rmfiles=
3369 for ac_file in $ac_files
3370 do
3371 case $ac_file in
3372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3373 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3374 esac
3375 done
3376 rm -f $ac_rmfiles
3377
3378 if { { ac_try="$ac_link_default"
3379 case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382 esac
3383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384 $as_echo "$ac_try_echo"; } >&5
3385 (eval "$ac_link_default") 2>&5
3386 ac_status=$?
3387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388 test $ac_status = 0; }; then :
3389 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3390 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3391 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3392 # so that the user can short-circuit this test for compilers unknown to
3393 # Autoconf.
3394 for ac_file in $ac_files ''
3395 do
3396 test -f "$ac_file" || continue
3397 case $ac_file in
3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3399 ;;
3400 [ab].out )
3401 # We found the default executable, but exeext='' is most
3402 # certainly right.
3403 break;;
3404 *.* )
3405 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3406 then :; else
3407 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3408 fi
3409 # We set ac_cv_exeext here because the later test for it is not
3410 # safe: cross compilers may not add the suffix if given an `-o'
3411 # argument, so we may need to know it at that point already.
3412 # Even if this section looks crufty: it has the advantage of
3413 # actually working.
3414 break;;
3415 * )
3416 break;;
3417 esac
3418 done
3419 test "$ac_cv_exeext" = no && ac_cv_exeext=
3420
3421 else
3422 ac_file=''
3423 fi
3424 if test -z "$ac_file"; then :
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 $as_echo "no" >&6; }
3427 $as_echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error 77 "C compiler cannot create executables
3433 See \`config.log' for more details" "$LINENO" 5; }
3434 else
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3436 $as_echo "yes" >&6; }
3437 fi
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3439 $as_echo_n "checking for C compiler default output file name... " >&6; }
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3441 $as_echo "$ac_file" >&6; }
3442 ac_exeext=$ac_cv_exeext
3443
3444 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3445 ac_clean_files=$ac_clean_files_save
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3447 $as_echo_n "checking for suffix of executables... " >&6; }
3448 if { { ac_try="$ac_link"
3449 case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_link") 2>&5
3456 ac_status=$?
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }; then :
3459 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3460 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3461 # work properly (i.e., refer to `conftest.exe'), while it won't with
3462 # `rm'.
3463 for ac_file in conftest.exe conftest conftest.*; do
3464 test -f "$ac_file" || continue
3465 case $ac_file in
3466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3467 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3468 break;;
3469 * ) break;;
3470 esac
3471 done
3472 else
3473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3476 See \`config.log' for more details" "$LINENO" 5; }
3477 fi
3478 rm -f conftest conftest$ac_cv_exeext
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3480 $as_echo "$ac_cv_exeext" >&6; }
3481
3482 rm -f conftest.$ac_ext
3483 EXEEXT=$ac_cv_exeext
3484 ac_exeext=$EXEEXT
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3487 #include <stdio.h>
3488 int
3489 main ()
3490 {
3491 FILE *f = fopen ("conftest.out", "w");
3492 return ferror (f) || fclose (f) != 0;
3493
3494 ;
3495 return 0;
3496 }
3497 _ACEOF
3498 ac_clean_files="$ac_clean_files conftest.out"
3499 # Check that the compiler produces executables we can run. If not, either
3500 # the compiler is broken, or we cross compile.
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3502 $as_echo_n "checking whether we are cross compiling... " >&6; }
3503 if test "$cross_compiling" != yes; then
3504 { { ac_try="$ac_link"
3505 case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508 esac
3509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510 $as_echo "$ac_try_echo"; } >&5
3511 (eval "$ac_link") 2>&5
3512 ac_status=$?
3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514 test $ac_status = 0; }
3515 if { ac_try='./conftest$ac_cv_exeext'
3516 { { case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3521 $as_echo "$ac_try_echo"; } >&5
3522 (eval "$ac_try") 2>&5
3523 ac_status=$?
3524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3525 test $ac_status = 0; }; }; then
3526 cross_compiling=no
3527 else
3528 if test "$cross_compiling" = maybe; then
3529 cross_compiling=yes
3530 else
3531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533 as_fn_error $? "cannot run C compiled programs.
3534 If you meant to cross compile, use \`--host'.
3535 See \`config.log' for more details" "$LINENO" 5; }
3536 fi
3537 fi
3538 fi
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3540 $as_echo "$cross_compiling" >&6; }
3541
3542 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3543 ac_clean_files=$ac_clean_files_save
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3545 $as_echo_n "checking for suffix of object files... " >&6; }
3546 if ${ac_cv_objext+:} false; then :
3547 $as_echo_n "(cached) " >&6
3548 else
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3551
3552 int
3553 main ()
3554 {
3555
3556 ;
3557 return 0;
3558 }
3559 _ACEOF
3560 rm -f conftest.o conftest.obj
3561 if { { ac_try="$ac_compile"
3562 case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3565 esac
3566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567 $as_echo "$ac_try_echo"; } >&5
3568 (eval "$ac_compile") 2>&5
3569 ac_status=$?
3570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3571 test $ac_status = 0; }; then :
3572 for ac_file in conftest.o conftest.obj conftest.*; do
3573 test -f "$ac_file" || continue;
3574 case $ac_file in
3575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3576 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3577 break;;
3578 esac
3579 done
3580 else
3581 $as_echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3583
3584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3586 as_fn_error $? "cannot compute suffix of object files: cannot compile
3587 See \`config.log' for more details" "$LINENO" 5; }
3588 fi
3589 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3590 fi
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3592 $as_echo "$ac_cv_objext" >&6; }
3593 OBJEXT=$ac_cv_objext
3594 ac_objext=$OBJEXT
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3596 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3597 if ${ac_cv_c_compiler_gnu+:} false; then :
3598 $as_echo_n "(cached) " >&6
3599 else
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3602
3603 int
3604 main ()
3605 {
3606 #ifndef __GNUC__
3607 choke me
3608 #endif
3609
3610 ;
3611 return 0;
3612 }
3613 _ACEOF
3614 if ac_fn_c_try_compile "$LINENO"; then :
3615 ac_compiler_gnu=yes
3616 else
3617 ac_compiler_gnu=no
3618 fi
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3621
3622 fi
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3624 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3625 if test $ac_compiler_gnu = yes; then
3626 GCC=yes
3627 else
3628 GCC=
3629 fi
3630 ac_test_CFLAGS=${CFLAGS+set}
3631 ac_save_CFLAGS=$CFLAGS
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3633 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3634 if ${ac_cv_prog_cc_g+:} false; then :
3635 $as_echo_n "(cached) " >&6
3636 else
3637 ac_save_c_werror_flag=$ac_c_werror_flag
3638 ac_c_werror_flag=yes
3639 ac_cv_prog_cc_g=no
3640 CFLAGS="-g"
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3643
3644 int
3645 main ()
3646 {
3647
3648 ;
3649 return 0;
3650 }
3651 _ACEOF
3652 if ac_fn_c_try_compile "$LINENO"; then :
3653 ac_cv_prog_cc_g=yes
3654 else
3655 CFLAGS=""
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3658
3659 int
3660 main ()
3661 {
3662
3663 ;
3664 return 0;
3665 }
3666 _ACEOF
3667 if ac_fn_c_try_compile "$LINENO"; then :
3668
3669 else
3670 ac_c_werror_flag=$ac_save_c_werror_flag
3671 CFLAGS="-g"
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3674
3675 int
3676 main ()
3677 {
3678
3679 ;
3680 return 0;
3681 }
3682 _ACEOF
3683 if ac_fn_c_try_compile "$LINENO"; then :
3684 ac_cv_prog_cc_g=yes
3685 fi
3686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687 fi
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 fi
3690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691 ac_c_werror_flag=$ac_save_c_werror_flag
3692 fi
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3694 $as_echo "$ac_cv_prog_cc_g" >&6; }
3695 if test "$ac_test_CFLAGS" = set; then
3696 CFLAGS=$ac_save_CFLAGS
3697 elif test $ac_cv_prog_cc_g = yes; then
3698 if test "$GCC" = yes; then
3699 CFLAGS="-g -O2"
3700 else
3701 CFLAGS="-g"
3702 fi
3703 else
3704 if test "$GCC" = yes; then
3705 CFLAGS="-O2"
3706 else
3707 CFLAGS=
3708 fi
3709 fi
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3711 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3712 if ${ac_cv_prog_cc_c89+:} false; then :
3713 $as_echo_n "(cached) " >&6
3714 else
3715 ac_cv_prog_cc_c89=no
3716 ac_save_CC=$CC
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3719 #include <stdarg.h>
3720 #include <stdio.h>
3721 struct stat;
3722 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3723 struct buf { int x; };
3724 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3725 static char *e (p, i)
3726 char **p;
3727 int i;
3728 {
3729 return p[i];
3730 }
3731 static char *f (char * (*g) (char **, int), char **p, ...)
3732 {
3733 char *s;
3734 va_list v;
3735 va_start (v,p);
3736 s = g (p, va_arg (v,int));
3737 va_end (v);
3738 return s;
3739 }
3740
3741 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3742 function prototypes and stuff, but not '\xHH' hex character constants.
3743 These don't provoke an error unfortunately, instead are silently treated
3744 as 'x'. The following induces an error, until -std is added to get
3745 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3746 array size at least. It's necessary to write '\x00'==0 to get something
3747 that's true only with -std. */
3748 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3749
3750 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3751 inside strings and character constants. */
3752 #define FOO(x) 'x'
3753 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3754
3755 int test (int i, double x);
3756 struct s1 {int (*f) (int a);};
3757 struct s2 {int (*f) (double a);};
3758 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3759 int argc;
3760 char **argv;
3761 int
3762 main ()
3763 {
3764 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3765 ;
3766 return 0;
3767 }
3768 _ACEOF
3769 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3770 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3771 do
3772 CC="$ac_save_CC $ac_arg"
3773 if ac_fn_c_try_compile "$LINENO"; then :
3774 ac_cv_prog_cc_c89=$ac_arg
3775 fi
3776 rm -f core conftest.err conftest.$ac_objext
3777 test "x$ac_cv_prog_cc_c89" != "xno" && break
3778 done
3779 rm -f conftest.$ac_ext
3780 CC=$ac_save_CC
3781
3782 fi
3783 # AC_CACHE_VAL
3784 case "x$ac_cv_prog_cc_c89" in
3785 x)
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3787 $as_echo "none needed" >&6; } ;;
3788 xno)
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3790 $as_echo "unsupported" >&6; } ;;
3791 *)
3792 CC="$CC $ac_cv_prog_cc_c89"
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3794 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3795 esac
3796 if test "x$ac_cv_prog_cc_c89" != xno; then :
3797
3798 fi
3799
3800 ac_ext=c
3801 ac_cpp='$CPP $CPPFLAGS'
3802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3805
3806 ac_ext=c
3807 ac_cpp='$CPP $CPPFLAGS'
3808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3812 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3813 if ${am_cv_prog_cc_c_o+:} false; then :
3814 $as_echo_n "(cached) " >&6
3815 else
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3818
3819 int
3820 main ()
3821 {
3822
3823 ;
3824 return 0;
3825 }
3826 _ACEOF
3827 # Make sure it works both with $CC and with simple cc.
3828 # Following AC_PROG_CC_C_O, we do the test twice because some
3829 # compilers refuse to overwrite an existing .o file with -o,
3830 # though they will create one.
3831 am_cv_prog_cc_c_o=yes
3832 for am_i in 1 2; do
3833 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3834 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3835 ac_status=$?
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } \
3838 && test -f conftest2.$ac_objext; then
3839 : OK
3840 else
3841 am_cv_prog_cc_c_o=no
3842 break
3843 fi
3844 done
3845 rm -f core conftest*
3846 unset am_i
3847 fi
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3849 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3850 if test "$am_cv_prog_cc_c_o" != yes; then
3851 # Losing compiler, so override with the script.
3852 # FIXME: It is wrong to rewrite CC.
3853 # But if we don't then we get into trouble of one sort or another.
3854 # A longer-term fix would be to have automake use am__CC in this case,
3855 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3856 CC="$am_aux_dir/compile $CC"
3857 fi
3858 ac_ext=c
3859 ac_cpp='$CPP $CPPFLAGS'
3860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863
3864
3865 depcc="$CC" am_compiler_list=
3866
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3868 $as_echo_n "checking dependency style of $depcc... " >&6; }
3869 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3873 # We make a subdir and do the tests there. Otherwise we can end up
3874 # making bogus files that we don't know about and never remove. For
3875 # instance it was reported that on HP-UX the gcc test will end up
3876 # making a dummy file named 'D' -- because '-MD' means "put the output
3877 # in D".
3878 rm -rf conftest.dir
3879 mkdir conftest.dir
3880 # Copy depcomp to subdir because otherwise we won't find it if we're
3881 # using a relative directory.
3882 cp "$am_depcomp" conftest.dir
3883 cd conftest.dir
3884 # We will build objects and dependencies in a subdirectory because
3885 # it helps to detect inapplicable dependency modes. For instance
3886 # both Tru64's cc and ICC support -MD to output dependencies as a
3887 # side effect of compilation, but ICC will put the dependencies in
3888 # the current directory while Tru64 will put them in the object
3889 # directory.
3890 mkdir sub
3891
3892 am_cv_CC_dependencies_compiler_type=none
3893 if test "$am_compiler_list" = ""; then
3894 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3895 fi
3896 am__universal=false
3897 case " $depcc " in #(
3898 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3899 esac
3900
3901 for depmode in $am_compiler_list; do
3902 # Setup a source with many dependencies, because some compilers
3903 # like to wrap large dependency lists on column 80 (with \), and
3904 # we should not choose a depcomp mode which is confused by this.
3905 #
3906 # We need to recreate these files for each test, as the compiler may
3907 # overwrite some of them when testing with obscure command lines.
3908 # This happens at least with the AIX C compiler.
3909 : > sub/conftest.c
3910 for i in 1 2 3 4 5 6; do
3911 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3912 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3913 # Solaris 10 /bin/sh.
3914 echo '/* dummy */' > sub/conftst$i.h
3915 done
3916 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3917
3918 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3919 # mode. It turns out that the SunPro C++ compiler does not properly
3920 # handle '-M -o', and we need to detect this. Also, some Intel
3921 # versions had trouble with output in subdirs.
3922 am__obj=sub/conftest.${OBJEXT-o}
3923 am__minus_obj="-o $am__obj"
3924 case $depmode in
3925 gcc)
3926 # This depmode causes a compiler race in universal mode.
3927 test "$am__universal" = false || continue
3928 ;;
3929 nosideeffect)
3930 # After this tag, mechanisms are not by side-effect, so they'll
3931 # only be used when explicitly requested.
3932 if test "x$enable_dependency_tracking" = xyes; then
3933 continue
3934 else
3935 break
3936 fi
3937 ;;
3938 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3939 # This compiler won't grok '-c -o', but also, the minuso test has
3940 # not run yet. These depmodes are late enough in the game, and
3941 # so weak that their functioning should not be impacted.
3942 am__obj=conftest.${OBJEXT-o}
3943 am__minus_obj=
3944 ;;
3945 none) break ;;
3946 esac
3947 if depmode=$depmode \
3948 source=sub/conftest.c object=$am__obj \
3949 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3950 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3951 >/dev/null 2>conftest.err &&
3952 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3953 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3954 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3955 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3956 # icc doesn't choke on unknown options, it will just issue warnings
3957 # or remarks (even with -Werror). So we grep stderr for any message
3958 # that says an option was ignored or not supported.
3959 # When given -MP, icc 7.0 and 7.1 complain thusly:
3960 # icc: Command line warning: ignoring option '-M'; no argument required
3961 # The diagnosis changed in icc 8.0:
3962 # icc: Command line remark: option '-MP' not supported
3963 if (grep 'ignoring option' conftest.err ||
3964 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3965 am_cv_CC_dependencies_compiler_type=$depmode
3966 break
3967 fi
3968 fi
3969 done
3970
3971 cd ..
3972 rm -rf conftest.dir
3973 else
3974 am_cv_CC_dependencies_compiler_type=none
3975 fi
3976
3977 fi
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3979 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3980 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3981
3982 if
3983 test "x$enable_dependency_tracking" != xno \
3984 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3985 am__fastdepCC_TRUE=
3986 am__fastdepCC_FALSE='#'
3987 else
3988 am__fastdepCC_TRUE='#'
3989 am__fastdepCC_FALSE=
3990 fi
3991
3992
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3994 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3995 if ${ac_cv_prog_cc_c99+:} false; then :
3996 $as_echo_n "(cached) " >&6
3997 else
3998 ac_cv_prog_cc_c99=no
3999 ac_save_CC=$CC
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4002 #include <stdarg.h>
4003 #include <stdbool.h>
4004 #include <stdlib.h>
4005 #include <wchar.h>
4006 #include <stdio.h>
4007
4008 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4009 #define debug(...) fprintf (stderr, __VA_ARGS__)
4010 #define showlist(...) puts (#__VA_ARGS__)
4011 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4012 static void
4013 test_varargs_macros (void)
4014 {
4015 int x = 1234;
4016 int y = 5678;
4017 debug ("Flag");
4018 debug ("X = %d\n", x);
4019 showlist (The first, second, and third items.);
4020 report (x>y, "x is %d but y is %d", x, y);
4021 }
4022
4023 // Check long long types.
4024 #define BIG64 18446744073709551615ull
4025 #define BIG32 4294967295ul
4026 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4027 #if !BIG_OK
4028 your preprocessor is broken;
4029 #endif
4030 #if BIG_OK
4031 #else
4032 your preprocessor is broken;
4033 #endif
4034 static long long int bignum = -9223372036854775807LL;
4035 static unsigned long long int ubignum = BIG64;
4036
4037 struct incomplete_array
4038 {
4039 int datasize;
4040 double data[];
4041 };
4042
4043 struct named_init {
4044 int number;
4045 const wchar_t *name;
4046 double average;
4047 };
4048
4049 typedef const char *ccp;
4050
4051 static inline int
4052 test_restrict (ccp restrict text)
4053 {
4054 // See if C++-style comments work.
4055 // Iterate through items via the restricted pointer.
4056 // Also check for declarations in for loops.
4057 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4058 continue;
4059 return 0;
4060 }
4061
4062 // Check varargs and va_copy.
4063 static void
4064 test_varargs (const char *format, ...)
4065 {
4066 va_list args;
4067 va_start (args, format);
4068 va_list args_copy;
4069 va_copy (args_copy, args);
4070
4071 const char *str;
4072 int number;
4073 float fnumber;
4074
4075 while (*format)
4076 {
4077 switch (*format++)
4078 {
4079 case 's': // string
4080 str = va_arg (args_copy, const char *);
4081 break;
4082 case 'd': // int
4083 number = va_arg (args_copy, int);
4084 break;
4085 case 'f': // float
4086 fnumber = va_arg (args_copy, double);
4087 break;
4088 default:
4089 break;
4090 }
4091 }
4092 va_end (args_copy);
4093 va_end (args);
4094 }
4095
4096 int
4097 main ()
4098 {
4099
4100 // Check bool.
4101 _Bool success = false;
4102
4103 // Check restrict.
4104 if (test_restrict ("String literal") == 0)
4105 success = true;
4106 char *restrict newvar = "Another string";
4107
4108 // Check varargs.
4109 test_varargs ("s, d' f .", "string", 65, 34.234);
4110 test_varargs_macros ();
4111
4112 // Check flexible array members.
4113 struct incomplete_array *ia =
4114 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4115 ia->datasize = 10;
4116 for (int i = 0; i < ia->datasize; ++i)
4117 ia->data[i] = i * 1.234;
4118
4119 // Check named initializers.
4120 struct named_init ni = {
4121 .number = 34,
4122 .name = L"Test wide string",
4123 .average = 543.34343,
4124 };
4125
4126 ni.number = 58;
4127
4128 int dynamic_array[ni.number];
4129 dynamic_array[ni.number - 1] = 543;
4130
4131 // work around unused variable warnings
4132 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4133 || dynamic_array[ni.number - 1] != 543);
4134
4135 ;
4136 return 0;
4137 }
4138 _ACEOF
4139 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4140 do
4141 CC="$ac_save_CC $ac_arg"
4142 if ac_fn_c_try_compile "$LINENO"; then :
4143 ac_cv_prog_cc_c99=$ac_arg
4144 fi
4145 rm -f core conftest.err conftest.$ac_objext
4146 test "x$ac_cv_prog_cc_c99" != "xno" && break
4147 done
4148 rm -f conftest.$ac_ext
4149 CC=$ac_save_CC
4150
4151 fi
4152 # AC_CACHE_VAL
4153 case "x$ac_cv_prog_cc_c99" in
4154 x)
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4156 $as_echo "none needed" >&6; } ;;
4157 xno)
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4159 $as_echo "unsupported" >&6; } ;;
4160 *)
4161 CC="$CC $ac_cv_prog_cc_c99"
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4163 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4164 esac
4165 if test "x$ac_cv_prog_cc_c99" != xno; then :
4166
4167 fi
4168
4169
4170
4171 ac_ext=c
4172 ac_cpp='$CPP $CPPFLAGS'
4173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4177 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4178 # On Suns, sometimes $CPP names a directory.
4179 if test -n "$CPP" && test -d "$CPP"; then
4180 CPP=
4181 fi
4182 if test -z "$CPP"; then
4183 if ${ac_cv_prog_CPP+:} false; then :
4184 $as_echo_n "(cached) " >&6
4185 else
4186 # Double quotes because CPP needs to be expanded
4187 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4188 do
4189 ac_preproc_ok=false
4190 for ac_c_preproc_warn_flag in '' yes
4191 do
4192 # Use a header file that comes with gcc, so configuring glibc
4193 # with a fresh cross-compiler works.
4194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4195 # <limits.h> exists even on freestanding compilers.
4196 # On the NeXT, cc -E runs the code through the compiler's parser,
4197 # not just through cpp. "Syntax error" is here to catch this case.
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4200 #ifdef __STDC__
4201 # include <limits.h>
4202 #else
4203 # include <assert.h>
4204 #endif
4205 Syntax error
4206 _ACEOF
4207 if ac_fn_c_try_cpp "$LINENO"; then :
4208
4209 else
4210 # Broken: fails on valid input.
4211 continue
4212 fi
4213 rm -f conftest.err conftest.i conftest.$ac_ext
4214
4215 # OK, works on sane cases. Now check whether nonexistent headers
4216 # can be detected and how.
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4219 #include <ac_nonexistent.h>
4220 _ACEOF
4221 if ac_fn_c_try_cpp "$LINENO"; then :
4222 # Broken: success on invalid input.
4223 continue
4224 else
4225 # Passes both tests.
4226 ac_preproc_ok=:
4227 break
4228 fi
4229 rm -f conftest.err conftest.i conftest.$ac_ext
4230
4231 done
4232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4233 rm -f conftest.i conftest.err conftest.$ac_ext
4234 if $ac_preproc_ok; then :
4235 break
4236 fi
4237
4238 done
4239 ac_cv_prog_CPP=$CPP
4240
4241 fi
4242 CPP=$ac_cv_prog_CPP
4243 else
4244 ac_cv_prog_CPP=$CPP
4245 fi
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4247 $as_echo "$CPP" >&6; }
4248 ac_preproc_ok=false
4249 for ac_c_preproc_warn_flag in '' yes
4250 do
4251 # Use a header file that comes with gcc, so configuring glibc
4252 # with a fresh cross-compiler works.
4253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4254 # <limits.h> exists even on freestanding compilers.
4255 # On the NeXT, cc -E runs the code through the compiler's parser,
4256 # not just through cpp. "Syntax error" is here to catch this case.
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4259 #ifdef __STDC__
4260 # include <limits.h>
4261 #else
4262 # include <assert.h>
4263 #endif
4264 Syntax error
4265 _ACEOF
4266 if ac_fn_c_try_cpp "$LINENO"; then :
4267
4268 else
4269 # Broken: fails on valid input.
4270 continue
4271 fi
4272 rm -f conftest.err conftest.i conftest.$ac_ext
4273
4274 # OK, works on sane cases. Now check whether nonexistent headers
4275 # can be detected and how.
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4278 #include <ac_nonexistent.h>
4279 _ACEOF
4280 if ac_fn_c_try_cpp "$LINENO"; then :
4281 # Broken: success on invalid input.
4282 continue
4283 else
4284 # Passes both tests.
4285 ac_preproc_ok=:
4286 break
4287 fi
4288 rm -f conftest.err conftest.i conftest.$ac_ext
4289
4290 done
4291 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4292 rm -f conftest.i conftest.err conftest.$ac_ext
4293 if $ac_preproc_ok; then :
4294
4295 else
4296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4298 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4299 See \`config.log' for more details" "$LINENO" 5; }
4300 fi
4301
4302 ac_ext=c
4303 ac_cpp='$CPP $CPPFLAGS'
4304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307
4308
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4310 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4311 if ${ac_cv_path_GREP+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 if test -z "$GREP"; then
4315 ac_path_GREP_found=false
4316 # Loop through the user's path and test for each of PROGNAME-LIST
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4319 do
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_prog in grep ggrep; do
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4325 as_fn_executable_p "$ac_path_GREP" || continue
4326 # Check for GNU ac_path_GREP and select it if it is found.
4327 # Check for GNU $ac_path_GREP
4328 case `"$ac_path_GREP" --version 2>&1` in
4329 *GNU*)
4330 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4331 *)
4332 ac_count=0
4333 $as_echo_n 0123456789 >"conftest.in"
4334 while :
4335 do
4336 cat "conftest.in" "conftest.in" >"conftest.tmp"
4337 mv "conftest.tmp" "conftest.in"
4338 cp "conftest.in" "conftest.nl"
4339 $as_echo 'GREP' >> "conftest.nl"
4340 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4342 as_fn_arith $ac_count + 1 && ac_count=$as_val
4343 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4344 # Best one so far, save it but keep looking for a better one
4345 ac_cv_path_GREP="$ac_path_GREP"
4346 ac_path_GREP_max=$ac_count
4347 fi
4348 # 10*(2^10) chars as input seems more than enough
4349 test $ac_count -gt 10 && break
4350 done
4351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4352 esac
4353
4354 $ac_path_GREP_found && break 3
4355 done
4356 done
4357 done
4358 IFS=$as_save_IFS
4359 if test -z "$ac_cv_path_GREP"; then
4360 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4361 fi
4362 else
4363 ac_cv_path_GREP=$GREP
4364 fi
4365
4366 fi
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4368 $as_echo "$ac_cv_path_GREP" >&6; }
4369 GREP="$ac_cv_path_GREP"
4370
4371
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4373 $as_echo_n "checking for egrep... " >&6; }
4374 if ${ac_cv_path_EGREP+:} false; then :
4375 $as_echo_n "(cached) " >&6
4376 else
4377 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4378 then ac_cv_path_EGREP="$GREP -E"
4379 else
4380 if test -z "$EGREP"; then
4381 ac_path_EGREP_found=false
4382 # Loop through the user's path and test for each of PROGNAME-LIST
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4385 do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_prog in egrep; do
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4391 as_fn_executable_p "$ac_path_EGREP" || continue
4392 # Check for GNU ac_path_EGREP and select it if it is found.
4393 # Check for GNU $ac_path_EGREP
4394 case `"$ac_path_EGREP" --version 2>&1` in
4395 *GNU*)
4396 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4397 *)
4398 ac_count=0
4399 $as_echo_n 0123456789 >"conftest.in"
4400 while :
4401 do
4402 cat "conftest.in" "conftest.in" >"conftest.tmp"
4403 mv "conftest.tmp" "conftest.in"
4404 cp "conftest.in" "conftest.nl"
4405 $as_echo 'EGREP' >> "conftest.nl"
4406 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4408 as_fn_arith $ac_count + 1 && ac_count=$as_val
4409 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4410 # Best one so far, save it but keep looking for a better one
4411 ac_cv_path_EGREP="$ac_path_EGREP"
4412 ac_path_EGREP_max=$ac_count
4413 fi
4414 # 10*(2^10) chars as input seems more than enough
4415 test $ac_count -gt 10 && break
4416 done
4417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4418 esac
4419
4420 $ac_path_EGREP_found && break 3
4421 done
4422 done
4423 done
4424 IFS=$as_save_IFS
4425 if test -z "$ac_cv_path_EGREP"; then
4426 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4427 fi
4428 else
4429 ac_cv_path_EGREP=$EGREP
4430 fi
4431
4432 fi
4433 fi
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4435 $as_echo "$ac_cv_path_EGREP" >&6; }
4436 EGREP="$ac_cv_path_EGREP"
4437
4438
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4440 $as_echo_n "checking for ANSI C header files... " >&6; }
4441 if ${ac_cv_header_stdc+:} false; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446 #include <stdlib.h>
4447 #include <stdarg.h>
4448 #include <string.h>
4449 #include <float.h>
4450
4451 int
4452 main ()
4453 {
4454
4455 ;
4456 return 0;
4457 }
4458 _ACEOF
4459 if ac_fn_c_try_compile "$LINENO"; then :
4460 ac_cv_header_stdc=yes
4461 else
4462 ac_cv_header_stdc=no
4463 fi
4464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4465
4466 if test $ac_cv_header_stdc = yes; then
4467 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4470 #include <string.h>
4471
4472 _ACEOF
4473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4474 $EGREP "memchr" >/dev/null 2>&1; then :
4475
4476 else
4477 ac_cv_header_stdc=no
4478 fi
4479 rm -f conftest*
4480
4481 fi
4482
4483 if test $ac_cv_header_stdc = yes; then
4484 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4487 #include <stdlib.h>
4488
4489 _ACEOF
4490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491 $EGREP "free" >/dev/null 2>&1; then :
4492
4493 else
4494 ac_cv_header_stdc=no
4495 fi
4496 rm -f conftest*
4497
4498 fi
4499
4500 if test $ac_cv_header_stdc = yes; then
4501 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4502 if test "$cross_compiling" = yes; then :
4503 :
4504 else
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4507 #include <ctype.h>
4508 #include <stdlib.h>
4509 #if ((' ' & 0x0FF) == 0x020)
4510 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4511 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4512 #else
4513 # define ISLOWER(c) \
4514 (('a' <= (c) && (c) <= 'i') \
4515 || ('j' <= (c) && (c) <= 'r') \
4516 || ('s' <= (c) && (c) <= 'z'))
4517 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4518 #endif
4519
4520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4521 int
4522 main ()
4523 {
4524 int i;
4525 for (i = 0; i < 256; i++)
4526 if (XOR (islower (i), ISLOWER (i))
4527 || toupper (i) != TOUPPER (i))
4528 return 2;
4529 return 0;
4530 }
4531 _ACEOF
4532 if ac_fn_c_try_run "$LINENO"; then :
4533
4534 else
4535 ac_cv_header_stdc=no
4536 fi
4537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4538 conftest.$ac_objext conftest.beam conftest.$ac_ext
4539 fi
4540
4541 fi
4542 fi
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4544 $as_echo "$ac_cv_header_stdc" >&6; }
4545 if test $ac_cv_header_stdc = yes; then
4546
4547 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4548
4549 fi
4550
4551 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4552 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4553 inttypes.h stdint.h unistd.h
4554 do :
4555 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4556 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4557 "
4558 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4559 cat >>confdefs.h <<_ACEOF
4560 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4561 _ACEOF
4562
4563 fi
4564
4565 done
4566
4567
4568
4569
4570
4571
4572 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4573 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4574 CLANGCC="yes"
4575 else
4576 CLANGCC="no"
4577 fi
4578
4579 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4580 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4581 INTELCC="yes"
4582 else
4583 INTELCC="no"
4584 fi
4585
4586 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4587 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4588 SUNCC="yes"
4589 else
4590 SUNCC="no"
4591 fi
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4602 if test -n "$ac_tool_prefix"; then
4603 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4604 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 case $PKG_CONFIG in
4611 [\\/]* | ?:[\\/]*)
4612 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4613 ;;
4614 *)
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4617 do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4622 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 break 2
4625 fi
4626 done
4627 done
4628 IFS=$as_save_IFS
4629
4630 ;;
4631 esac
4632 fi
4633 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4634 if test -n "$PKG_CONFIG"; then
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4636 $as_echo "$PKG_CONFIG" >&6; }
4637 else
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639 $as_echo "no" >&6; }
4640 fi
4641
4642
4643 fi
4644 if test -z "$ac_cv_path_PKG_CONFIG"; then
4645 ac_pt_PKG_CONFIG=$PKG_CONFIG
4646 # Extract the first word of "pkg-config", so it can be a program name with args.
4647 set dummy pkg-config; ac_word=$2
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 case $ac_pt_PKG_CONFIG in
4654 [\\/]* | ?:[\\/]*)
4655 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4656 ;;
4657 *)
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4660 do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4668 fi
4669 done
4670 done
4671 IFS=$as_save_IFS
4672
4673 ;;
4674 esac
4675 fi
4676 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4677 if test -n "$ac_pt_PKG_CONFIG"; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4679 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4680 else
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 $as_echo "no" >&6; }
4683 fi
4684
4685 if test "x$ac_pt_PKG_CONFIG" = x; then
4686 PKG_CONFIG=""
4687 else
4688 case $cross_compiling:$ac_tool_warned in
4689 yes:)
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4692 ac_tool_warned=yes ;;
4693 esac
4694 PKG_CONFIG=$ac_pt_PKG_CONFIG
4695 fi
4696 else
4697 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4698 fi
4699
4700 fi
4701 if test -n "$PKG_CONFIG"; then
4702 _pkg_min_version=0.9.0
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4704 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4705 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4707 $as_echo "yes" >&6; }
4708 else
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4711 PKG_CONFIG=""
4712 fi
4713 fi
4714 # Make sure we can run config.sub.
4715 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4716 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4717
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4719 $as_echo_n "checking build system type... " >&6; }
4720 if ${ac_cv_build+:} false; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 ac_build_alias=$build_alias
4724 test "x$ac_build_alias" = x &&
4725 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4726 test "x$ac_build_alias" = x &&
4727 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4728 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4729 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4730
4731 fi
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4733 $as_echo "$ac_cv_build" >&6; }
4734 case $ac_cv_build in
4735 *-*-*) ;;
4736 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4737 esac
4738 build=$ac_cv_build
4739 ac_save_IFS=$IFS; IFS='-'
4740 set x $ac_cv_build
4741 shift
4742 build_cpu=$1
4743 build_vendor=$2
4744 shift; shift
4745 # Remember, the first character of IFS is used to create $*,
4746 # except with old shells:
4747 build_os=$*
4748 IFS=$ac_save_IFS
4749 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4750
4751
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4753 $as_echo_n "checking host system type... " >&6; }
4754 if ${ac_cv_host+:} false; then :
4755 $as_echo_n "(cached) " >&6
4756 else
4757 if test "x$host_alias" = x; then
4758 ac_cv_host=$ac_cv_build
4759 else
4760 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4761 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4762 fi
4763
4764 fi
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4766 $as_echo "$ac_cv_host" >&6; }
4767 case $ac_cv_host in
4768 *-*-*) ;;
4769 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4770 esac
4771 host=$ac_cv_host
4772 ac_save_IFS=$IFS; IFS='-'
4773 set x $ac_cv_host
4774 shift
4775 host_cpu=$1
4776 host_vendor=$2
4777 shift; shift
4778 # Remember, the first character of IFS is used to create $*,
4779 # except with old shells:
4780 host_os=$*
4781 IFS=$ac_save_IFS
4782 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4783
4784
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4786 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4787 if ${ac_cv_path_SED+:} false; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4791 for ac_i in 1 2 3 4 5 6 7; do
4792 ac_script="$ac_script$as_nl$ac_script"
4793 done
4794 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4795 { ac_script=; unset ac_script;}
4796 if test -z "$SED"; then
4797 ac_path_SED_found=false
4798 # Loop through the user's path and test for each of PROGNAME-LIST
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 for as_dir in $PATH
4801 do
4802 IFS=$as_save_IFS
4803 test -z "$as_dir" && as_dir=.
4804 for ac_prog in sed gsed; do
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4807 as_fn_executable_p "$ac_path_SED" || continue
4808 # Check for GNU ac_path_SED and select it if it is found.
4809 # Check for GNU $ac_path_SED
4810 case `"$ac_path_SED" --version 2>&1` in
4811 *GNU*)
4812 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4813 *)
4814 ac_count=0
4815 $as_echo_n 0123456789 >"conftest.in"
4816 while :
4817 do
4818 cat "conftest.in" "conftest.in" >"conftest.tmp"
4819 mv "conftest.tmp" "conftest.in"
4820 cp "conftest.in" "conftest.nl"
4821 $as_echo '' >> "conftest.nl"
4822 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4824 as_fn_arith $ac_count + 1 && ac_count=$as_val
4825 if test $ac_count -gt ${ac_path_SED_max-0}; then
4826 # Best one so far, save it but keep looking for a better one
4827 ac_cv_path_SED="$ac_path_SED"
4828 ac_path_SED_max=$ac_count
4829 fi
4830 # 10*(2^10) chars as input seems more than enough
4831 test $ac_count -gt 10 && break
4832 done
4833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4834 esac
4835
4836 $ac_path_SED_found && break 3
4837 done
4838 done
4839 done
4840 IFS=$as_save_IFS
4841 if test -z "$ac_cv_path_SED"; then
4842 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4843 fi
4844 else
4845 ac_cv_path_SED=$SED
4846 fi
4847
4848 fi
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4850 $as_echo "$ac_cv_path_SED" >&6; }
4851 SED="$ac_cv_path_SED"
4852 rm -f conftest.sed
4853
4854
4855
4856
4857
4858
4859 # Check whether --enable-selective-werror was given.
4860 if test "${enable_selective_werror+set}" = set; then :
4861 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4862 else
4863 SELECTIVE_WERROR=yes
4864 fi
4865
4866
4867
4868
4869
4870 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4871 if test "x$SUNCC" = "xyes"; then
4872 BASE_CFLAGS="-v"
4873 else
4874 BASE_CFLAGS=""
4875 fi
4876
4877 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891 xorg_testset_save_CFLAGS="$CFLAGS"
4892
4893 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4896 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4897 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4902 int i;
4903 _ACEOF
4904 if ac_fn_c_try_compile "$LINENO"; then :
4905 xorg_cv_cc_flag_unknown_warning_option=yes
4906 else
4907 xorg_cv_cc_flag_unknown_warning_option=no
4908 fi
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910 fi
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4912 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4914 CFLAGS="$xorg_testset_save_CFLAGS"
4915 fi
4916
4917 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4920 fi
4921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4923 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4924 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929 int i;
4930 _ACEOF
4931 if ac_fn_c_try_compile "$LINENO"; then :
4932 xorg_cv_cc_flag_unused_command_line_argument=yes
4933 else
4934 xorg_cv_cc_flag_unused_command_line_argument=no
4935 fi
4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937 fi
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4939 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4941 CFLAGS="$xorg_testset_save_CFLAGS"
4942 fi
4943
4944 found="no"
4945
4946 if test $found = "no" ; then
4947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4949 fi
4950
4951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4953 fi
4954
4955 CFLAGS="$CFLAGS -Wall"
4956
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4958 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4959 cacheid=xorg_cv_cc_flag__Wall
4960 if eval \${$cacheid+:} false; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964 /* end confdefs.h. */
4965 int i;
4966 int
4967 main ()
4968 {
4969
4970 ;
4971 return 0;
4972 }
4973 _ACEOF
4974 if ac_fn_c_try_link "$LINENO"; then :
4975 eval $cacheid=yes
4976 else
4977 eval $cacheid=no
4978 fi
4979 rm -f core conftest.err conftest.$ac_objext \
4980 conftest$ac_exeext conftest.$ac_ext
4981 fi
4982
4983
4984 CFLAGS="$xorg_testset_save_CFLAGS"
4985
4986 eval supported=\$$cacheid
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4988 $as_echo "$supported" >&6; }
4989 if test "$supported" = "yes" ; then
4990 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4991 found="yes"
4992 fi
4993 fi
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009 xorg_testset_save_CFLAGS="$CFLAGS"
5010
5011 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5014 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5015 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5020 int i;
5021 _ACEOF
5022 if ac_fn_c_try_compile "$LINENO"; then :
5023 xorg_cv_cc_flag_unknown_warning_option=yes
5024 else
5025 xorg_cv_cc_flag_unknown_warning_option=no
5026 fi
5027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028 fi
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5030 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5032 CFLAGS="$xorg_testset_save_CFLAGS"
5033 fi
5034
5035 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5038 fi
5039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5041 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5042 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5047 int i;
5048 _ACEOF
5049 if ac_fn_c_try_compile "$LINENO"; then :
5050 xorg_cv_cc_flag_unused_command_line_argument=yes
5051 else
5052 xorg_cv_cc_flag_unused_command_line_argument=no
5053 fi
5054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5055 fi
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5057 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5059 CFLAGS="$xorg_testset_save_CFLAGS"
5060 fi
5061
5062 found="no"
5063
5064 if test $found = "no" ; then
5065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5067 fi
5068
5069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5071 fi
5072
5073 CFLAGS="$CFLAGS -Wpointer-arith"
5074
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5076 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5077 cacheid=xorg_cv_cc_flag__Wpointer_arith
5078 if eval \${$cacheid+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5083 int i;
5084 int
5085 main ()
5086 {
5087
5088 ;
5089 return 0;
5090 }
5091 _ACEOF
5092 if ac_fn_c_try_link "$LINENO"; then :
5093 eval $cacheid=yes
5094 else
5095 eval $cacheid=no
5096 fi
5097 rm -f core conftest.err conftest.$ac_objext \
5098 conftest$ac_exeext conftest.$ac_ext
5099 fi
5100
5101
5102 CFLAGS="$xorg_testset_save_CFLAGS"
5103
5104 eval supported=\$$cacheid
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5106 $as_echo "$supported" >&6; }
5107 if test "$supported" = "yes" ; then
5108 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5109 found="yes"
5110 fi
5111 fi
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127 xorg_testset_save_CFLAGS="$CFLAGS"
5128
5129 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5132 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5133 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5138 int i;
5139 _ACEOF
5140 if ac_fn_c_try_compile "$LINENO"; then :
5141 xorg_cv_cc_flag_unknown_warning_option=yes
5142 else
5143 xorg_cv_cc_flag_unknown_warning_option=no
5144 fi
5145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5146 fi
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5148 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5149 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5150 CFLAGS="$xorg_testset_save_CFLAGS"
5151 fi
5152
5153 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5156 fi
5157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5159 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5160 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164 /* end confdefs.h. */
5165 int i;
5166 _ACEOF
5167 if ac_fn_c_try_compile "$LINENO"; then :
5168 xorg_cv_cc_flag_unused_command_line_argument=yes
5169 else
5170 xorg_cv_cc_flag_unused_command_line_argument=no
5171 fi
5172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5173 fi
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5175 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5177 CFLAGS="$xorg_testset_save_CFLAGS"
5178 fi
5179
5180 found="no"
5181
5182 if test $found = "no" ; then
5183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5185 fi
5186
5187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5189 fi
5190
5191 CFLAGS="$CFLAGS -Wmissing-declarations"
5192
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5194 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5195 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5196 if eval \${$cacheid+:} false; then :
5197 $as_echo_n "(cached) " >&6
5198 else
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h. */
5201 int i;
5202 int
5203 main ()
5204 {
5205
5206 ;
5207 return 0;
5208 }
5209 _ACEOF
5210 if ac_fn_c_try_link "$LINENO"; then :
5211 eval $cacheid=yes
5212 else
5213 eval $cacheid=no
5214 fi
5215 rm -f core conftest.err conftest.$ac_objext \
5216 conftest$ac_exeext conftest.$ac_ext
5217 fi
5218
5219
5220 CFLAGS="$xorg_testset_save_CFLAGS"
5221
5222 eval supported=\$$cacheid
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5224 $as_echo "$supported" >&6; }
5225 if test "$supported" = "yes" ; then
5226 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5227 found="yes"
5228 fi
5229 fi
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245 xorg_testset_save_CFLAGS="$CFLAGS"
5246
5247 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5250 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5251 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5252 $as_echo_n "(cached) " >&6
5253 else
5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5256 int i;
5257 _ACEOF
5258 if ac_fn_c_try_compile "$LINENO"; then :
5259 xorg_cv_cc_flag_unknown_warning_option=yes
5260 else
5261 xorg_cv_cc_flag_unknown_warning_option=no
5262 fi
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 fi
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5266 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5267 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5268 CFLAGS="$xorg_testset_save_CFLAGS"
5269 fi
5270
5271 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5274 fi
5275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5277 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5278 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282 /* end confdefs.h. */
5283 int i;
5284 _ACEOF
5285 if ac_fn_c_try_compile "$LINENO"; then :
5286 xorg_cv_cc_flag_unused_command_line_argument=yes
5287 else
5288 xorg_cv_cc_flag_unused_command_line_argument=no
5289 fi
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291 fi
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5293 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5294 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5295 CFLAGS="$xorg_testset_save_CFLAGS"
5296 fi
5297
5298 found="no"
5299
5300 if test $found = "no" ; then
5301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5303 fi
5304
5305 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5307 fi
5308
5309 CFLAGS="$CFLAGS -Wformat=2"
5310
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5312 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5313 cacheid=xorg_cv_cc_flag__Wformat_2
5314 if eval \${$cacheid+:} false; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318 /* end confdefs.h. */
5319 int i;
5320 int
5321 main ()
5322 {
5323
5324 ;
5325 return 0;
5326 }
5327 _ACEOF
5328 if ac_fn_c_try_link "$LINENO"; then :
5329 eval $cacheid=yes
5330 else
5331 eval $cacheid=no
5332 fi
5333 rm -f core conftest.err conftest.$ac_objext \
5334 conftest$ac_exeext conftest.$ac_ext
5335 fi
5336
5337
5338 CFLAGS="$xorg_testset_save_CFLAGS"
5339
5340 eval supported=\$$cacheid
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5342 $as_echo "$supported" >&6; }
5343 if test "$supported" = "yes" ; then
5344 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5345 found="yes"
5346 fi
5347 fi
5348
5349 if test $found = "no" ; then
5350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5352 fi
5353
5354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5356 fi
5357
5358 CFLAGS="$CFLAGS -Wformat"
5359
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5361 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5362 cacheid=xorg_cv_cc_flag__Wformat
5363 if eval \${$cacheid+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5368 int i;
5369 int
5370 main ()
5371 {
5372
5373 ;
5374 return 0;
5375 }
5376 _ACEOF
5377 if ac_fn_c_try_link "$LINENO"; then :
5378 eval $cacheid=yes
5379 else
5380 eval $cacheid=no
5381 fi
5382 rm -f core conftest.err conftest.$ac_objext \
5383 conftest$ac_exeext conftest.$ac_ext
5384 fi
5385
5386
5387 CFLAGS="$xorg_testset_save_CFLAGS"
5388
5389 eval supported=\$$cacheid
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5391 $as_echo "$supported" >&6; }
5392 if test "$supported" = "yes" ; then
5393 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5394 found="yes"
5395 fi
5396 fi
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414 xorg_testset_save_CFLAGS="$CFLAGS"
5415
5416 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5419 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5420 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5425 int i;
5426 _ACEOF
5427 if ac_fn_c_try_compile "$LINENO"; then :
5428 xorg_cv_cc_flag_unknown_warning_option=yes
5429 else
5430 xorg_cv_cc_flag_unknown_warning_option=no
5431 fi
5432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433 fi
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5435 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5437 CFLAGS="$xorg_testset_save_CFLAGS"
5438 fi
5439
5440 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5443 fi
5444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5446 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5447 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5448 $as_echo_n "(cached) " >&6
5449 else
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 int i;
5453 _ACEOF
5454 if ac_fn_c_try_compile "$LINENO"; then :
5455 xorg_cv_cc_flag_unused_command_line_argument=yes
5456 else
5457 xorg_cv_cc_flag_unused_command_line_argument=no
5458 fi
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 fi
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5462 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5464 CFLAGS="$xorg_testset_save_CFLAGS"
5465 fi
5466
5467 found="no"
5468
5469 if test $found = "no" ; then
5470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5472 fi
5473
5474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5476 fi
5477
5478 CFLAGS="$CFLAGS -Wstrict-prototypes"
5479
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5481 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5482 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5483 if eval \${$cacheid+:} false; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5488 int i;
5489 int
5490 main ()
5491 {
5492
5493 ;
5494 return 0;
5495 }
5496 _ACEOF
5497 if ac_fn_c_try_link "$LINENO"; then :
5498 eval $cacheid=yes
5499 else
5500 eval $cacheid=no
5501 fi
5502 rm -f core conftest.err conftest.$ac_objext \
5503 conftest$ac_exeext conftest.$ac_ext
5504 fi
5505
5506
5507 CFLAGS="$xorg_testset_save_CFLAGS"
5508
5509 eval supported=\$$cacheid
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5511 $as_echo "$supported" >&6; }
5512 if test "$supported" = "yes" ; then
5513 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5514 found="yes"
5515 fi
5516 fi
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532 xorg_testset_save_CFLAGS="$CFLAGS"
5533
5534 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5537 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5538 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542 /* end confdefs.h. */
5543 int i;
5544 _ACEOF
5545 if ac_fn_c_try_compile "$LINENO"; then :
5546 xorg_cv_cc_flag_unknown_warning_option=yes
5547 else
5548 xorg_cv_cc_flag_unknown_warning_option=no
5549 fi
5550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 fi
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5553 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5555 CFLAGS="$xorg_testset_save_CFLAGS"
5556 fi
5557
5558 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5561 fi
5562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5564 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5565 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5570 int i;
5571 _ACEOF
5572 if ac_fn_c_try_compile "$LINENO"; then :
5573 xorg_cv_cc_flag_unused_command_line_argument=yes
5574 else
5575 xorg_cv_cc_flag_unused_command_line_argument=no
5576 fi
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 fi
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5580 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5581 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5582 CFLAGS="$xorg_testset_save_CFLAGS"
5583 fi
5584
5585 found="no"
5586
5587 if test $found = "no" ; then
5588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5590 fi
5591
5592 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5594 fi
5595
5596 CFLAGS="$CFLAGS -Wmissing-prototypes"
5597
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5599 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5600 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5601 if eval \${$cacheid+:} false; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5606 int i;
5607 int
5608 main ()
5609 {
5610
5611 ;
5612 return 0;
5613 }
5614 _ACEOF
5615 if ac_fn_c_try_link "$LINENO"; then :
5616 eval $cacheid=yes
5617 else
5618 eval $cacheid=no
5619 fi
5620 rm -f core conftest.err conftest.$ac_objext \
5621 conftest$ac_exeext conftest.$ac_ext
5622 fi
5623
5624
5625 CFLAGS="$xorg_testset_save_CFLAGS"
5626
5627 eval supported=\$$cacheid
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5629 $as_echo "$supported" >&6; }
5630 if test "$supported" = "yes" ; then
5631 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5632 found="yes"
5633 fi
5634 fi
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650 xorg_testset_save_CFLAGS="$CFLAGS"
5651
5652 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5655 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5656 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 int i;
5662 _ACEOF
5663 if ac_fn_c_try_compile "$LINENO"; then :
5664 xorg_cv_cc_flag_unknown_warning_option=yes
5665 else
5666 xorg_cv_cc_flag_unknown_warning_option=no
5667 fi
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669 fi
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5671 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5673 CFLAGS="$xorg_testset_save_CFLAGS"
5674 fi
5675
5676 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5679 fi
5680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5682 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5683 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5688 int i;
5689 _ACEOF
5690 if ac_fn_c_try_compile "$LINENO"; then :
5691 xorg_cv_cc_flag_unused_command_line_argument=yes
5692 else
5693 xorg_cv_cc_flag_unused_command_line_argument=no
5694 fi
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5696 fi
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5698 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5699 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5700 CFLAGS="$xorg_testset_save_CFLAGS"
5701 fi
5702
5703 found="no"
5704
5705 if test $found = "no" ; then
5706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5708 fi
5709
5710 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5712 fi
5713
5714 CFLAGS="$CFLAGS -Wnested-externs"
5715
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5717 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5718 cacheid=xorg_cv_cc_flag__Wnested_externs
5719 if eval \${$cacheid+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5724 int i;
5725 int
5726 main ()
5727 {
5728
5729 ;
5730 return 0;
5731 }
5732 _ACEOF
5733 if ac_fn_c_try_link "$LINENO"; then :
5734 eval $cacheid=yes
5735 else
5736 eval $cacheid=no
5737 fi
5738 rm -f core conftest.err conftest.$ac_objext \
5739 conftest$ac_exeext conftest.$ac_ext
5740 fi
5741
5742
5743 CFLAGS="$xorg_testset_save_CFLAGS"
5744
5745 eval supported=\$$cacheid
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5747 $as_echo "$supported" >&6; }
5748 if test "$supported" = "yes" ; then
5749 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5750 found="yes"
5751 fi
5752 fi
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768 xorg_testset_save_CFLAGS="$CFLAGS"
5769
5770 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5773 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5774 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5775 $as_echo_n "(cached) " >&6
5776 else
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779 int i;
5780 _ACEOF
5781 if ac_fn_c_try_compile "$LINENO"; then :
5782 xorg_cv_cc_flag_unknown_warning_option=yes
5783 else
5784 xorg_cv_cc_flag_unknown_warning_option=no
5785 fi
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 fi
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5789 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5790 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5791 CFLAGS="$xorg_testset_save_CFLAGS"
5792 fi
5793
5794 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5797 fi
5798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5800 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5801 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5806 int i;
5807 _ACEOF
5808 if ac_fn_c_try_compile "$LINENO"; then :
5809 xorg_cv_cc_flag_unused_command_line_argument=yes
5810 else
5811 xorg_cv_cc_flag_unused_command_line_argument=no
5812 fi
5813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5814 fi
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5816 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5817 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5818 CFLAGS="$xorg_testset_save_CFLAGS"
5819 fi
5820
5821 found="no"
5822
5823 if test $found = "no" ; then
5824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5826 fi
5827
5828 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5830 fi
5831
5832 CFLAGS="$CFLAGS -Wbad-function-cast"
5833
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5835 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5836 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5837 if eval \${$cacheid+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 int i;
5843 int
5844 main ()
5845 {
5846
5847 ;
5848 return 0;
5849 }
5850 _ACEOF
5851 if ac_fn_c_try_link "$LINENO"; then :
5852 eval $cacheid=yes
5853 else
5854 eval $cacheid=no
5855 fi
5856 rm -f core conftest.err conftest.$ac_objext \
5857 conftest$ac_exeext conftest.$ac_ext
5858 fi
5859
5860
5861 CFLAGS="$xorg_testset_save_CFLAGS"
5862
5863 eval supported=\$$cacheid
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5865 $as_echo "$supported" >&6; }
5866 if test "$supported" = "yes" ; then
5867 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5868 found="yes"
5869 fi
5870 fi
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886 xorg_testset_save_CFLAGS="$CFLAGS"
5887
5888 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5891 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5892 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5893 $as_echo_n "(cached) " >&6
5894 else
5895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5896 /* end confdefs.h. */
5897 int i;
5898 _ACEOF
5899 if ac_fn_c_try_compile "$LINENO"; then :
5900 xorg_cv_cc_flag_unknown_warning_option=yes
5901 else
5902 xorg_cv_cc_flag_unknown_warning_option=no
5903 fi
5904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 fi
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5907 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5909 CFLAGS="$xorg_testset_save_CFLAGS"
5910 fi
5911
5912 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5915 fi
5916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5918 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5919 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h. */
5924 int i;
5925 _ACEOF
5926 if ac_fn_c_try_compile "$LINENO"; then :
5927 xorg_cv_cc_flag_unused_command_line_argument=yes
5928 else
5929 xorg_cv_cc_flag_unused_command_line_argument=no
5930 fi
5931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5932 fi
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5934 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5936 CFLAGS="$xorg_testset_save_CFLAGS"
5937 fi
5938
5939 found="no"
5940
5941 if test $found = "no" ; then
5942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5944 fi
5945
5946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5948 fi
5949
5950 CFLAGS="$CFLAGS -Wold-style-definition"
5951
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5953 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5954 cacheid=xorg_cv_cc_flag__Wold_style_definition
5955 if eval \${$cacheid+:} false; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5960 int i;
5961 int
5962 main ()
5963 {
5964
5965 ;
5966 return 0;
5967 }
5968 _ACEOF
5969 if ac_fn_c_try_link "$LINENO"; then :
5970 eval $cacheid=yes
5971 else
5972 eval $cacheid=no
5973 fi
5974 rm -f core conftest.err conftest.$ac_objext \
5975 conftest$ac_exeext conftest.$ac_ext
5976 fi
5977
5978
5979 CFLAGS="$xorg_testset_save_CFLAGS"
5980
5981 eval supported=\$$cacheid
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5983 $as_echo "$supported" >&6; }
5984 if test "$supported" = "yes" ; then
5985 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5986 found="yes"
5987 fi
5988 fi
5989
5990 if test $found = "no" ; then
5991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5993 fi
5994
5995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5997 fi
5998
5999 CFLAGS="$CFLAGS -fd"
6000
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6002 $as_echo_n "checking if $CC supports -fd... " >&6; }
6003 cacheid=xorg_cv_cc_flag__fd
6004 if eval \${$cacheid+:} false; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6009 int i;
6010 int
6011 main ()
6012 {
6013
6014 ;
6015 return 0;
6016 }
6017 _ACEOF
6018 if ac_fn_c_try_link "$LINENO"; then :
6019 eval $cacheid=yes
6020 else
6021 eval $cacheid=no
6022 fi
6023 rm -f core conftest.err conftest.$ac_objext \
6024 conftest$ac_exeext conftest.$ac_ext
6025 fi
6026
6027
6028 CFLAGS="$xorg_testset_save_CFLAGS"
6029
6030 eval supported=\$$cacheid
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6032 $as_echo "$supported" >&6; }
6033 if test "$supported" = "yes" ; then
6034 BASE_CFLAGS="$BASE_CFLAGS -fd"
6035 found="yes"
6036 fi
6037 fi
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053 xorg_testset_save_CFLAGS="$CFLAGS"
6054
6055 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6058 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6059 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h. */
6064 int i;
6065 _ACEOF
6066 if ac_fn_c_try_compile "$LINENO"; then :
6067 xorg_cv_cc_flag_unknown_warning_option=yes
6068 else
6069 xorg_cv_cc_flag_unknown_warning_option=no
6070 fi
6071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072 fi
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6074 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6076 CFLAGS="$xorg_testset_save_CFLAGS"
6077 fi
6078
6079 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6082 fi
6083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6085 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6086 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6087 $as_echo_n "(cached) " >&6
6088 else
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6091 int i;
6092 _ACEOF
6093 if ac_fn_c_try_compile "$LINENO"; then :
6094 xorg_cv_cc_flag_unused_command_line_argument=yes
6095 else
6096 xorg_cv_cc_flag_unused_command_line_argument=no
6097 fi
6098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099 fi
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6101 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6103 CFLAGS="$xorg_testset_save_CFLAGS"
6104 fi
6105
6106 found="no"
6107
6108 if test $found = "no" ; then
6109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6111 fi
6112
6113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6115 fi
6116
6117 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6118
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6120 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6121 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6122 if eval \${$cacheid+:} false; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6127 int i;
6128 int
6129 main ()
6130 {
6131
6132 ;
6133 return 0;
6134 }
6135 _ACEOF
6136 if ac_fn_c_try_link "$LINENO"; then :
6137 eval $cacheid=yes
6138 else
6139 eval $cacheid=no
6140 fi
6141 rm -f core conftest.err conftest.$ac_objext \
6142 conftest$ac_exeext conftest.$ac_ext
6143 fi
6144
6145
6146 CFLAGS="$xorg_testset_save_CFLAGS"
6147
6148 eval supported=\$$cacheid
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6150 $as_echo "$supported" >&6; }
6151 if test "$supported" = "yes" ; then
6152 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6153 found="yes"
6154 fi
6155 fi
6156
6157
6158
6159
6160
6161 # This chunk adds additional warnings that could catch undesired effects.
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175 xorg_testset_save_CFLAGS="$CFLAGS"
6176
6177 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6180 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6181 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6182 $as_echo_n "(cached) " >&6
6183 else
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6186 int i;
6187 _ACEOF
6188 if ac_fn_c_try_compile "$LINENO"; then :
6189 xorg_cv_cc_flag_unknown_warning_option=yes
6190 else
6191 xorg_cv_cc_flag_unknown_warning_option=no
6192 fi
6193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194 fi
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6196 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6198 CFLAGS="$xorg_testset_save_CFLAGS"
6199 fi
6200
6201 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6204 fi
6205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6207 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6208 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6213 int i;
6214 _ACEOF
6215 if ac_fn_c_try_compile "$LINENO"; then :
6216 xorg_cv_cc_flag_unused_command_line_argument=yes
6217 else
6218 xorg_cv_cc_flag_unused_command_line_argument=no
6219 fi
6220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6221 fi
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6223 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6225 CFLAGS="$xorg_testset_save_CFLAGS"
6226 fi
6227
6228 found="no"
6229
6230 if test $found = "no" ; then
6231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6233 fi
6234
6235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6237 fi
6238
6239 CFLAGS="$CFLAGS -Wunused"
6240
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6242 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6243 cacheid=xorg_cv_cc_flag__Wunused
6244 if eval \${$cacheid+:} false; then :
6245 $as_echo_n "(cached) " >&6
6246 else
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6249 int i;
6250 int
6251 main ()
6252 {
6253
6254 ;
6255 return 0;
6256 }
6257 _ACEOF
6258 if ac_fn_c_try_link "$LINENO"; then :
6259 eval $cacheid=yes
6260 else
6261 eval $cacheid=no
6262 fi
6263 rm -f core conftest.err conftest.$ac_objext \
6264 conftest$ac_exeext conftest.$ac_ext
6265 fi
6266
6267
6268 CFLAGS="$xorg_testset_save_CFLAGS"
6269
6270 eval supported=\$$cacheid
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6272 $as_echo "$supported" >&6; }
6273 if test "$supported" = "yes" ; then
6274 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6275 found="yes"
6276 fi
6277 fi
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293 xorg_testset_save_CFLAGS="$CFLAGS"
6294
6295 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6298 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6299 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6300 $as_echo_n "(cached) " >&6
6301 else
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6304 int i;
6305 _ACEOF
6306 if ac_fn_c_try_compile "$LINENO"; then :
6307 xorg_cv_cc_flag_unknown_warning_option=yes
6308 else
6309 xorg_cv_cc_flag_unknown_warning_option=no
6310 fi
6311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 fi
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6314 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6316 CFLAGS="$xorg_testset_save_CFLAGS"
6317 fi
6318
6319 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6322 fi
6323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6325 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6326 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6331 int i;
6332 _ACEOF
6333 if ac_fn_c_try_compile "$LINENO"; then :
6334 xorg_cv_cc_flag_unused_command_line_argument=yes
6335 else
6336 xorg_cv_cc_flag_unused_command_line_argument=no
6337 fi
6338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339 fi
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6341 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6343 CFLAGS="$xorg_testset_save_CFLAGS"
6344 fi
6345
6346 found="no"
6347
6348 if test $found = "no" ; then
6349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6351 fi
6352
6353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6355 fi
6356
6357 CFLAGS="$CFLAGS -Wuninitialized"
6358
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6360 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6361 cacheid=xorg_cv_cc_flag__Wuninitialized
6362 if eval \${$cacheid+:} false; then :
6363 $as_echo_n "(cached) " >&6
6364 else
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6367 int i;
6368 int
6369 main ()
6370 {
6371
6372 ;
6373 return 0;
6374 }
6375 _ACEOF
6376 if ac_fn_c_try_link "$LINENO"; then :
6377 eval $cacheid=yes
6378 else
6379 eval $cacheid=no
6380 fi
6381 rm -f core conftest.err conftest.$ac_objext \
6382 conftest$ac_exeext conftest.$ac_ext
6383 fi
6384
6385
6386 CFLAGS="$xorg_testset_save_CFLAGS"
6387
6388 eval supported=\$$cacheid
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6390 $as_echo "$supported" >&6; }
6391 if test "$supported" = "yes" ; then
6392 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6393 found="yes"
6394 fi
6395 fi
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411 xorg_testset_save_CFLAGS="$CFLAGS"
6412
6413 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6416 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6417 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6418 $as_echo_n "(cached) " >&6
6419 else
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6422 int i;
6423 _ACEOF
6424 if ac_fn_c_try_compile "$LINENO"; then :
6425 xorg_cv_cc_flag_unknown_warning_option=yes
6426 else
6427 xorg_cv_cc_flag_unknown_warning_option=no
6428 fi
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 fi
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6432 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6434 CFLAGS="$xorg_testset_save_CFLAGS"
6435 fi
6436
6437 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6440 fi
6441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6443 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6444 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6445 $as_echo_n "(cached) " >&6
6446 else
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6449 int i;
6450 _ACEOF
6451 if ac_fn_c_try_compile "$LINENO"; then :
6452 xorg_cv_cc_flag_unused_command_line_argument=yes
6453 else
6454 xorg_cv_cc_flag_unused_command_line_argument=no
6455 fi
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457 fi
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6459 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6461 CFLAGS="$xorg_testset_save_CFLAGS"
6462 fi
6463
6464 found="no"
6465
6466 if test $found = "no" ; then
6467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6469 fi
6470
6471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6473 fi
6474
6475 CFLAGS="$CFLAGS -Wshadow"
6476
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6478 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6479 cacheid=xorg_cv_cc_flag__Wshadow
6480 if eval \${$cacheid+:} false; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6485 int i;
6486 int
6487 main ()
6488 {
6489
6490 ;
6491 return 0;
6492 }
6493 _ACEOF
6494 if ac_fn_c_try_link "$LINENO"; then :
6495 eval $cacheid=yes
6496 else
6497 eval $cacheid=no
6498 fi
6499 rm -f core conftest.err conftest.$ac_objext \
6500 conftest$ac_exeext conftest.$ac_ext
6501 fi
6502
6503
6504 CFLAGS="$xorg_testset_save_CFLAGS"
6505
6506 eval supported=\$$cacheid
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6508 $as_echo "$supported" >&6; }
6509 if test "$supported" = "yes" ; then
6510 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6511 found="yes"
6512 fi
6513 fi
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529 xorg_testset_save_CFLAGS="$CFLAGS"
6530
6531 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6534 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6535 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6536 $as_echo_n "(cached) " >&6
6537 else
6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h. */
6540 int i;
6541 _ACEOF
6542 if ac_fn_c_try_compile "$LINENO"; then :
6543 xorg_cv_cc_flag_unknown_warning_option=yes
6544 else
6545 xorg_cv_cc_flag_unknown_warning_option=no
6546 fi
6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548 fi
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6550 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6552 CFLAGS="$xorg_testset_save_CFLAGS"
6553 fi
6554
6555 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6558 fi
6559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6561 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6562 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6567 int i;
6568 _ACEOF
6569 if ac_fn_c_try_compile "$LINENO"; then :
6570 xorg_cv_cc_flag_unused_command_line_argument=yes
6571 else
6572 xorg_cv_cc_flag_unused_command_line_argument=no
6573 fi
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575 fi
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6577 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6579 CFLAGS="$xorg_testset_save_CFLAGS"
6580 fi
6581
6582 found="no"
6583
6584 if test $found = "no" ; then
6585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6587 fi
6588
6589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6591 fi
6592
6593 CFLAGS="$CFLAGS -Wmissing-noreturn"
6594
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6596 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6597 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6598 if eval \${$cacheid+:} false; then :
6599 $as_echo_n "(cached) " >&6
6600 else
6601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602 /* end confdefs.h. */
6603 int i;
6604 int
6605 main ()
6606 {
6607
6608 ;
6609 return 0;
6610 }
6611 _ACEOF
6612 if ac_fn_c_try_link "$LINENO"; then :
6613 eval $cacheid=yes
6614 else
6615 eval $cacheid=no
6616 fi
6617 rm -f core conftest.err conftest.$ac_objext \
6618 conftest$ac_exeext conftest.$ac_ext
6619 fi
6620
6621
6622 CFLAGS="$xorg_testset_save_CFLAGS"
6623
6624 eval supported=\$$cacheid
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6626 $as_echo "$supported" >&6; }
6627 if test "$supported" = "yes" ; then
6628 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6629 found="yes"
6630 fi
6631 fi
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647 xorg_testset_save_CFLAGS="$CFLAGS"
6648
6649 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6652 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6653 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6654 $as_echo_n "(cached) " >&6
6655 else
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6658 int i;
6659 _ACEOF
6660 if ac_fn_c_try_compile "$LINENO"; then :
6661 xorg_cv_cc_flag_unknown_warning_option=yes
6662 else
6663 xorg_cv_cc_flag_unknown_warning_option=no
6664 fi
6665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666 fi
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6668 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6670 CFLAGS="$xorg_testset_save_CFLAGS"
6671 fi
6672
6673 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6676 fi
6677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6679 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6680 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6685 int i;
6686 _ACEOF
6687 if ac_fn_c_try_compile "$LINENO"; then :
6688 xorg_cv_cc_flag_unused_command_line_argument=yes
6689 else
6690 xorg_cv_cc_flag_unused_command_line_argument=no
6691 fi
6692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6693 fi
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6695 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6697 CFLAGS="$xorg_testset_save_CFLAGS"
6698 fi
6699
6700 found="no"
6701
6702 if test $found = "no" ; then
6703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6705 fi
6706
6707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6709 fi
6710
6711 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6712
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6714 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6715 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6716 if eval \${$cacheid+:} false; then :
6717 $as_echo_n "(cached) " >&6
6718 else
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6721 int i;
6722 int
6723 main ()
6724 {
6725
6726 ;
6727 return 0;
6728 }
6729 _ACEOF
6730 if ac_fn_c_try_link "$LINENO"; then :
6731 eval $cacheid=yes
6732 else
6733 eval $cacheid=no
6734 fi
6735 rm -f core conftest.err conftest.$ac_objext \
6736 conftest$ac_exeext conftest.$ac_ext
6737 fi
6738
6739
6740 CFLAGS="$xorg_testset_save_CFLAGS"
6741
6742 eval supported=\$$cacheid
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6744 $as_echo "$supported" >&6; }
6745 if test "$supported" = "yes" ; then
6746 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6747 found="yes"
6748 fi
6749 fi
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765 xorg_testset_save_CFLAGS="$CFLAGS"
6766
6767 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6770 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6771 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775 /* end confdefs.h. */
6776 int i;
6777 _ACEOF
6778 if ac_fn_c_try_compile "$LINENO"; then :
6779 xorg_cv_cc_flag_unknown_warning_option=yes
6780 else
6781 xorg_cv_cc_flag_unknown_warning_option=no
6782 fi
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784 fi
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6786 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6788 CFLAGS="$xorg_testset_save_CFLAGS"
6789 fi
6790
6791 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6794 fi
6795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6797 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6798 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6803 int i;
6804 _ACEOF
6805 if ac_fn_c_try_compile "$LINENO"; then :
6806 xorg_cv_cc_flag_unused_command_line_argument=yes
6807 else
6808 xorg_cv_cc_flag_unused_command_line_argument=no
6809 fi
6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811 fi
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6813 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6814 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6815 CFLAGS="$xorg_testset_save_CFLAGS"
6816 fi
6817
6818 found="no"
6819
6820 if test $found = "no" ; then
6821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6823 fi
6824
6825 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6827 fi
6828
6829 CFLAGS="$CFLAGS -Wredundant-decls"
6830
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6832 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6833 cacheid=xorg_cv_cc_flag__Wredundant_decls
6834 if eval \${$cacheid+:} false; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6839 int i;
6840 int
6841 main ()
6842 {
6843
6844 ;
6845 return 0;
6846 }
6847 _ACEOF
6848 if ac_fn_c_try_link "$LINENO"; then :
6849 eval $cacheid=yes
6850 else
6851 eval $cacheid=no
6852 fi
6853 rm -f core conftest.err conftest.$ac_objext \
6854 conftest$ac_exeext conftest.$ac_ext
6855 fi
6856
6857
6858 CFLAGS="$xorg_testset_save_CFLAGS"
6859
6860 eval supported=\$$cacheid
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6862 $as_echo "$supported" >&6; }
6863 if test "$supported" = "yes" ; then
6864 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6865 found="yes"
6866 fi
6867 fi
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883 xorg_testset_save_CFLAGS="$CFLAGS"
6884
6885 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6888 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6889 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6894 int i;
6895 _ACEOF
6896 if ac_fn_c_try_compile "$LINENO"; then :
6897 xorg_cv_cc_flag_unknown_warning_option=yes
6898 else
6899 xorg_cv_cc_flag_unknown_warning_option=no
6900 fi
6901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 fi
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6904 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6906 CFLAGS="$xorg_testset_save_CFLAGS"
6907 fi
6908
6909 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6912 fi
6913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6915 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6916 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6917 $as_echo_n "(cached) " >&6
6918 else
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6921 int i;
6922 _ACEOF
6923 if ac_fn_c_try_compile "$LINENO"; then :
6924 xorg_cv_cc_flag_unused_command_line_argument=yes
6925 else
6926 xorg_cv_cc_flag_unused_command_line_argument=no
6927 fi
6928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6929 fi
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6931 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6932 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6933 CFLAGS="$xorg_testset_save_CFLAGS"
6934 fi
6935
6936 found="no"
6937
6938 if test $found = "no" ; then
6939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6941 fi
6942
6943 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6945 fi
6946
6947 CFLAGS="$CFLAGS -Wlogical-op"
6948
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6950 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6951 cacheid=xorg_cv_cc_flag__Wlogical_op
6952 if eval \${$cacheid+:} false; then :
6953 $as_echo_n "(cached) " >&6
6954 else
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6957 int i;
6958 int
6959 main ()
6960 {
6961
6962 ;
6963 return 0;
6964 }
6965 _ACEOF
6966 if ac_fn_c_try_link "$LINENO"; then :
6967 eval $cacheid=yes
6968 else
6969 eval $cacheid=no
6970 fi
6971 rm -f core conftest.err conftest.$ac_objext \
6972 conftest$ac_exeext conftest.$ac_ext
6973 fi
6974
6975
6976 CFLAGS="$xorg_testset_save_CFLAGS"
6977
6978 eval supported=\$$cacheid
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6980 $as_echo "$supported" >&6; }
6981 if test "$supported" = "yes" ; then
6982 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6983 found="yes"
6984 fi
6985 fi
6986
6987
6988
6989 # These are currently disabled because they are noisy. They will be enabled
6990 # in the future once the codebase is sufficiently modernized to silence
6991 # them. For now, I don't want them to drown out the other warnings.
6992 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6993 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6994 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6995
6996 # Turn some warnings into errors, so we don't accidently get successful builds
6997 # when there are problems that should be fixed.
6998
6999 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013 xorg_testset_save_CFLAGS="$CFLAGS"
7014
7015 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7018 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7019 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7024 int i;
7025 _ACEOF
7026 if ac_fn_c_try_compile "$LINENO"; then :
7027 xorg_cv_cc_flag_unknown_warning_option=yes
7028 else
7029 xorg_cv_cc_flag_unknown_warning_option=no
7030 fi
7031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7032 fi
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7034 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7035 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7036 CFLAGS="$xorg_testset_save_CFLAGS"
7037 fi
7038
7039 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7042 fi
7043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7045 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7046 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7047 $as_echo_n "(cached) " >&6
7048 else
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7051 int i;
7052 _ACEOF
7053 if ac_fn_c_try_compile "$LINENO"; then :
7054 xorg_cv_cc_flag_unused_command_line_argument=yes
7055 else
7056 xorg_cv_cc_flag_unused_command_line_argument=no
7057 fi
7058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7059 fi
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7061 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7062 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7063 CFLAGS="$xorg_testset_save_CFLAGS"
7064 fi
7065
7066 found="no"
7067
7068 if test $found = "no" ; then
7069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7071 fi
7072
7073 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7075 fi
7076
7077 CFLAGS="$CFLAGS -Werror=implicit"
7078
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7080 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7081 cacheid=xorg_cv_cc_flag__Werror_implicit
7082 if eval \${$cacheid+:} false; then :
7083 $as_echo_n "(cached) " >&6
7084 else
7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7087 int i;
7088 int
7089 main ()
7090 {
7091
7092 ;
7093 return 0;
7094 }
7095 _ACEOF
7096 if ac_fn_c_try_link "$LINENO"; then :
7097 eval $cacheid=yes
7098 else
7099 eval $cacheid=no
7100 fi
7101 rm -f core conftest.err conftest.$ac_objext \
7102 conftest$ac_exeext conftest.$ac_ext
7103 fi
7104
7105
7106 CFLAGS="$xorg_testset_save_CFLAGS"
7107
7108 eval supported=\$$cacheid
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7110 $as_echo "$supported" >&6; }
7111 if test "$supported" = "yes" ; then
7112 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7113 found="yes"
7114 fi
7115 fi
7116
7117 if test $found = "no" ; then
7118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7120 fi
7121
7122 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7124 fi
7125
7126 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7127
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7129 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7130 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7131 if eval \${$cacheid+:} false; then :
7132 $as_echo_n "(cached) " >&6
7133 else
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7136 int i;
7137 int
7138 main ()
7139 {
7140
7141 ;
7142 return 0;
7143 }
7144 _ACEOF
7145 if ac_fn_c_try_link "$LINENO"; then :
7146 eval $cacheid=yes
7147 else
7148 eval $cacheid=no
7149 fi
7150 rm -f core conftest.err conftest.$ac_objext \
7151 conftest$ac_exeext conftest.$ac_ext
7152 fi
7153
7154
7155 CFLAGS="$xorg_testset_save_CFLAGS"
7156
7157 eval supported=\$$cacheid
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7159 $as_echo "$supported" >&6; }
7160 if test "$supported" = "yes" ; then
7161 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7162 found="yes"
7163 fi
7164 fi
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180 xorg_testset_save_CFLAGS="$CFLAGS"
7181
7182 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7185 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7186 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7187 $as_echo_n "(cached) " >&6
7188 else
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7191 int i;
7192 _ACEOF
7193 if ac_fn_c_try_compile "$LINENO"; then :
7194 xorg_cv_cc_flag_unknown_warning_option=yes
7195 else
7196 xorg_cv_cc_flag_unknown_warning_option=no
7197 fi
7198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7199 fi
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7201 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7203 CFLAGS="$xorg_testset_save_CFLAGS"
7204 fi
7205
7206 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7209 fi
7210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7212 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7213 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7214 $as_echo_n "(cached) " >&6
7215 else
7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h. */
7218 int i;
7219 _ACEOF
7220 if ac_fn_c_try_compile "$LINENO"; then :
7221 xorg_cv_cc_flag_unused_command_line_argument=yes
7222 else
7223 xorg_cv_cc_flag_unused_command_line_argument=no
7224 fi
7225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7226 fi
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7228 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7230 CFLAGS="$xorg_testset_save_CFLAGS"
7231 fi
7232
7233 found="no"
7234
7235 if test $found = "no" ; then
7236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7238 fi
7239
7240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7242 fi
7243
7244 CFLAGS="$CFLAGS -Werror=nonnull"
7245
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7247 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7248 cacheid=xorg_cv_cc_flag__Werror_nonnull
7249 if eval \${$cacheid+:} false; then :
7250 $as_echo_n "(cached) " >&6
7251 else
7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7254 int i;
7255 int
7256 main ()
7257 {
7258
7259 ;
7260 return 0;
7261 }
7262 _ACEOF
7263 if ac_fn_c_try_link "$LINENO"; then :
7264 eval $cacheid=yes
7265 else
7266 eval $cacheid=no
7267 fi
7268 rm -f core conftest.err conftest.$ac_objext \
7269 conftest$ac_exeext conftest.$ac_ext
7270 fi
7271
7272
7273 CFLAGS="$xorg_testset_save_CFLAGS"
7274
7275 eval supported=\$$cacheid
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7277 $as_echo "$supported" >&6; }
7278 if test "$supported" = "yes" ; then
7279 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7280 found="yes"
7281 fi
7282 fi
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298 xorg_testset_save_CFLAGS="$CFLAGS"
7299
7300 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7303 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7304 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7309 int i;
7310 _ACEOF
7311 if ac_fn_c_try_compile "$LINENO"; then :
7312 xorg_cv_cc_flag_unknown_warning_option=yes
7313 else
7314 xorg_cv_cc_flag_unknown_warning_option=no
7315 fi
7316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7317 fi
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7319 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7321 CFLAGS="$xorg_testset_save_CFLAGS"
7322 fi
7323
7324 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7327 fi
7328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7330 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7331 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7332 $as_echo_n "(cached) " >&6
7333 else
7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335 /* end confdefs.h. */
7336 int i;
7337 _ACEOF
7338 if ac_fn_c_try_compile "$LINENO"; then :
7339 xorg_cv_cc_flag_unused_command_line_argument=yes
7340 else
7341 xorg_cv_cc_flag_unused_command_line_argument=no
7342 fi
7343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 fi
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7346 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7348 CFLAGS="$xorg_testset_save_CFLAGS"
7349 fi
7350
7351 found="no"
7352
7353 if test $found = "no" ; then
7354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7356 fi
7357
7358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7360 fi
7361
7362 CFLAGS="$CFLAGS -Werror=init-self"
7363
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7365 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7366 cacheid=xorg_cv_cc_flag__Werror_init_self
7367 if eval \${$cacheid+:} false; then :
7368 $as_echo_n "(cached) " >&6
7369 else
7370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371 /* end confdefs.h. */
7372 int i;
7373 int
7374 main ()
7375 {
7376
7377 ;
7378 return 0;
7379 }
7380 _ACEOF
7381 if ac_fn_c_try_link "$LINENO"; then :
7382 eval $cacheid=yes
7383 else
7384 eval $cacheid=no
7385 fi
7386 rm -f core conftest.err conftest.$ac_objext \
7387 conftest$ac_exeext conftest.$ac_ext
7388 fi
7389
7390
7391 CFLAGS="$xorg_testset_save_CFLAGS"
7392
7393 eval supported=\$$cacheid
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7395 $as_echo "$supported" >&6; }
7396 if test "$supported" = "yes" ; then
7397 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7398 found="yes"
7399 fi
7400 fi
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416 xorg_testset_save_CFLAGS="$CFLAGS"
7417
7418 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7421 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7422 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7423 $as_echo_n "(cached) " >&6
7424 else
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7427 int i;
7428 _ACEOF
7429 if ac_fn_c_try_compile "$LINENO"; then :
7430 xorg_cv_cc_flag_unknown_warning_option=yes
7431 else
7432 xorg_cv_cc_flag_unknown_warning_option=no
7433 fi
7434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7435 fi
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7437 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7439 CFLAGS="$xorg_testset_save_CFLAGS"
7440 fi
7441
7442 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7445 fi
7446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7448 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7449 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7450 $as_echo_n "(cached) " >&6
7451 else
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7454 int i;
7455 _ACEOF
7456 if ac_fn_c_try_compile "$LINENO"; then :
7457 xorg_cv_cc_flag_unused_command_line_argument=yes
7458 else
7459 xorg_cv_cc_flag_unused_command_line_argument=no
7460 fi
7461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462 fi
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7464 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7466 CFLAGS="$xorg_testset_save_CFLAGS"
7467 fi
7468
7469 found="no"
7470
7471 if test $found = "no" ; then
7472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7474 fi
7475
7476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7478 fi
7479
7480 CFLAGS="$CFLAGS -Werror=main"
7481
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7483 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7484 cacheid=xorg_cv_cc_flag__Werror_main
7485 if eval \${$cacheid+:} false; then :
7486 $as_echo_n "(cached) " >&6
7487 else
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7490 int i;
7491 int
7492 main ()
7493 {
7494
7495 ;
7496 return 0;
7497 }
7498 _ACEOF
7499 if ac_fn_c_try_link "$LINENO"; then :
7500 eval $cacheid=yes
7501 else
7502 eval $cacheid=no
7503 fi
7504 rm -f core conftest.err conftest.$ac_objext \
7505 conftest$ac_exeext conftest.$ac_ext
7506 fi
7507
7508
7509 CFLAGS="$xorg_testset_save_CFLAGS"
7510
7511 eval supported=\$$cacheid
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7513 $as_echo "$supported" >&6; }
7514 if test "$supported" = "yes" ; then
7515 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7516 found="yes"
7517 fi
7518 fi
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534 xorg_testset_save_CFLAGS="$CFLAGS"
7535
7536 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7539 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7540 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7541 $as_echo_n "(cached) " >&6
7542 else
7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544 /* end confdefs.h. */
7545 int i;
7546 _ACEOF
7547 if ac_fn_c_try_compile "$LINENO"; then :
7548 xorg_cv_cc_flag_unknown_warning_option=yes
7549 else
7550 xorg_cv_cc_flag_unknown_warning_option=no
7551 fi
7552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7553 fi
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7555 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7557 CFLAGS="$xorg_testset_save_CFLAGS"
7558 fi
7559
7560 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7563 fi
7564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7566 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7567 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7568 $as_echo_n "(cached) " >&6
7569 else
7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7572 int i;
7573 _ACEOF
7574 if ac_fn_c_try_compile "$LINENO"; then :
7575 xorg_cv_cc_flag_unused_command_line_argument=yes
7576 else
7577 xorg_cv_cc_flag_unused_command_line_argument=no
7578 fi
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 fi
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7582 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7584 CFLAGS="$xorg_testset_save_CFLAGS"
7585 fi
7586
7587 found="no"
7588
7589 if test $found = "no" ; then
7590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7592 fi
7593
7594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7596 fi
7597
7598 CFLAGS="$CFLAGS -Werror=missing-braces"
7599
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7601 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7602 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7603 if eval \${$cacheid+:} false; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h. */
7608 int i;
7609 int
7610 main ()
7611 {
7612
7613 ;
7614 return 0;
7615 }
7616 _ACEOF
7617 if ac_fn_c_try_link "$LINENO"; then :
7618 eval $cacheid=yes
7619 else
7620 eval $cacheid=no
7621 fi
7622 rm -f core conftest.err conftest.$ac_objext \
7623 conftest$ac_exeext conftest.$ac_ext
7624 fi
7625
7626
7627 CFLAGS="$xorg_testset_save_CFLAGS"
7628
7629 eval supported=\$$cacheid
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7631 $as_echo "$supported" >&6; }
7632 if test "$supported" = "yes" ; then
7633 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7634 found="yes"
7635 fi
7636 fi
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652 xorg_testset_save_CFLAGS="$CFLAGS"
7653
7654 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7657 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7658 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h. */
7663 int i;
7664 _ACEOF
7665 if ac_fn_c_try_compile "$LINENO"; then :
7666 xorg_cv_cc_flag_unknown_warning_option=yes
7667 else
7668 xorg_cv_cc_flag_unknown_warning_option=no
7669 fi
7670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7671 fi
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7673 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7675 CFLAGS="$xorg_testset_save_CFLAGS"
7676 fi
7677
7678 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7681 fi
7682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7684 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7685 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7686 $as_echo_n "(cached) " >&6
7687 else
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7690 int i;
7691 _ACEOF
7692 if ac_fn_c_try_compile "$LINENO"; then :
7693 xorg_cv_cc_flag_unused_command_line_argument=yes
7694 else
7695 xorg_cv_cc_flag_unused_command_line_argument=no
7696 fi
7697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7698 fi
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7700 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7702 CFLAGS="$xorg_testset_save_CFLAGS"
7703 fi
7704
7705 found="no"
7706
7707 if test $found = "no" ; then
7708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7710 fi
7711
7712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7714 fi
7715
7716 CFLAGS="$CFLAGS -Werror=sequence-point"
7717
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7719 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7720 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7721 if eval \${$cacheid+:} false; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7726 int i;
7727 int
7728 main ()
7729 {
7730
7731 ;
7732 return 0;
7733 }
7734 _ACEOF
7735 if ac_fn_c_try_link "$LINENO"; then :
7736 eval $cacheid=yes
7737 else
7738 eval $cacheid=no
7739 fi
7740 rm -f core conftest.err conftest.$ac_objext \
7741 conftest$ac_exeext conftest.$ac_ext
7742 fi
7743
7744
7745 CFLAGS="$xorg_testset_save_CFLAGS"
7746
7747 eval supported=\$$cacheid
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7749 $as_echo "$supported" >&6; }
7750 if test "$supported" = "yes" ; then
7751 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7752 found="yes"
7753 fi
7754 fi
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770 xorg_testset_save_CFLAGS="$CFLAGS"
7771
7772 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7775 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7776 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7777 $as_echo_n "(cached) " >&6
7778 else
7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h. */
7781 int i;
7782 _ACEOF
7783 if ac_fn_c_try_compile "$LINENO"; then :
7784 xorg_cv_cc_flag_unknown_warning_option=yes
7785 else
7786 xorg_cv_cc_flag_unknown_warning_option=no
7787 fi
7788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 fi
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7791 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7793 CFLAGS="$xorg_testset_save_CFLAGS"
7794 fi
7795
7796 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7799 fi
7800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7802 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7803 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7804 $as_echo_n "(cached) " >&6
7805 else
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7808 int i;
7809 _ACEOF
7810 if ac_fn_c_try_compile "$LINENO"; then :
7811 xorg_cv_cc_flag_unused_command_line_argument=yes
7812 else
7813 xorg_cv_cc_flag_unused_command_line_argument=no
7814 fi
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816 fi
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7818 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7820 CFLAGS="$xorg_testset_save_CFLAGS"
7821 fi
7822
7823 found="no"
7824
7825 if test $found = "no" ; then
7826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7828 fi
7829
7830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7832 fi
7833
7834 CFLAGS="$CFLAGS -Werror=return-type"
7835
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7837 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7838 cacheid=xorg_cv_cc_flag__Werror_return_type
7839 if eval \${$cacheid+:} false; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7844 int i;
7845 int
7846 main ()
7847 {
7848
7849 ;
7850 return 0;
7851 }
7852 _ACEOF
7853 if ac_fn_c_try_link "$LINENO"; then :
7854 eval $cacheid=yes
7855 else
7856 eval $cacheid=no
7857 fi
7858 rm -f core conftest.err conftest.$ac_objext \
7859 conftest$ac_exeext conftest.$ac_ext
7860 fi
7861
7862
7863 CFLAGS="$xorg_testset_save_CFLAGS"
7864
7865 eval supported=\$$cacheid
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7867 $as_echo "$supported" >&6; }
7868 if test "$supported" = "yes" ; then
7869 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7870 found="yes"
7871 fi
7872 fi
7873
7874 if test $found = "no" ; then
7875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7877 fi
7878
7879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7881 fi
7882
7883 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7884
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7886 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7887 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7888 if eval \${$cacheid+:} false; then :
7889 $as_echo_n "(cached) " >&6
7890 else
7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7893 int i;
7894 int
7895 main ()
7896 {
7897
7898 ;
7899 return 0;
7900 }
7901 _ACEOF
7902 if ac_fn_c_try_link "$LINENO"; then :
7903 eval $cacheid=yes
7904 else
7905 eval $cacheid=no
7906 fi
7907 rm -f core conftest.err conftest.$ac_objext \
7908 conftest$ac_exeext conftest.$ac_ext
7909 fi
7910
7911
7912 CFLAGS="$xorg_testset_save_CFLAGS"
7913
7914 eval supported=\$$cacheid
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7916 $as_echo "$supported" >&6; }
7917 if test "$supported" = "yes" ; then
7918 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7919 found="yes"
7920 fi
7921 fi
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937 xorg_testset_save_CFLAGS="$CFLAGS"
7938
7939 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7942 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7943 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947 /* end confdefs.h. */
7948 int i;
7949 _ACEOF
7950 if ac_fn_c_try_compile "$LINENO"; then :
7951 xorg_cv_cc_flag_unknown_warning_option=yes
7952 else
7953 xorg_cv_cc_flag_unknown_warning_option=no
7954 fi
7955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7956 fi
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7958 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7960 CFLAGS="$xorg_testset_save_CFLAGS"
7961 fi
7962
7963 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7966 fi
7967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7969 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7970 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7975 int i;
7976 _ACEOF
7977 if ac_fn_c_try_compile "$LINENO"; then :
7978 xorg_cv_cc_flag_unused_command_line_argument=yes
7979 else
7980 xorg_cv_cc_flag_unused_command_line_argument=no
7981 fi
7982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7983 fi
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7985 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7987 CFLAGS="$xorg_testset_save_CFLAGS"
7988 fi
7989
7990 found="no"
7991
7992 if test $found = "no" ; then
7993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7995 fi
7996
7997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7999 fi
8000
8001 CFLAGS="$CFLAGS -Werror=trigraphs"
8002
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8004 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8005 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8006 if eval \${$cacheid+:} false; then :
8007 $as_echo_n "(cached) " >&6
8008 else
8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8011 int i;
8012 int
8013 main ()
8014 {
8015
8016 ;
8017 return 0;
8018 }
8019 _ACEOF
8020 if ac_fn_c_try_link "$LINENO"; then :
8021 eval $cacheid=yes
8022 else
8023 eval $cacheid=no
8024 fi
8025 rm -f core conftest.err conftest.$ac_objext \
8026 conftest$ac_exeext conftest.$ac_ext
8027 fi
8028
8029
8030 CFLAGS="$xorg_testset_save_CFLAGS"
8031
8032 eval supported=\$$cacheid
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8034 $as_echo "$supported" >&6; }
8035 if test "$supported" = "yes" ; then
8036 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8037 found="yes"
8038 fi
8039 fi
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055 xorg_testset_save_CFLAGS="$CFLAGS"
8056
8057 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8060 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8061 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8062 $as_echo_n "(cached) " >&6
8063 else
8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8066 int i;
8067 _ACEOF
8068 if ac_fn_c_try_compile "$LINENO"; then :
8069 xorg_cv_cc_flag_unknown_warning_option=yes
8070 else
8071 xorg_cv_cc_flag_unknown_warning_option=no
8072 fi
8073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 fi
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8076 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8078 CFLAGS="$xorg_testset_save_CFLAGS"
8079 fi
8080
8081 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8084 fi
8085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8087 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8088 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8089 $as_echo_n "(cached) " >&6
8090 else
8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8093 int i;
8094 _ACEOF
8095 if ac_fn_c_try_compile "$LINENO"; then :
8096 xorg_cv_cc_flag_unused_command_line_argument=yes
8097 else
8098 xorg_cv_cc_flag_unused_command_line_argument=no
8099 fi
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101 fi
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8103 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8105 CFLAGS="$xorg_testset_save_CFLAGS"
8106 fi
8107
8108 found="no"
8109
8110 if test $found = "no" ; then
8111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8113 fi
8114
8115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8117 fi
8118
8119 CFLAGS="$CFLAGS -Werror=array-bounds"
8120
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8122 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8123 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8124 if eval \${$cacheid+:} false; then :
8125 $as_echo_n "(cached) " >&6
8126 else
8127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128 /* end confdefs.h. */
8129 int i;
8130 int
8131 main ()
8132 {
8133
8134 ;
8135 return 0;
8136 }
8137 _ACEOF
8138 if ac_fn_c_try_link "$LINENO"; then :
8139 eval $cacheid=yes
8140 else
8141 eval $cacheid=no
8142 fi
8143 rm -f core conftest.err conftest.$ac_objext \
8144 conftest$ac_exeext conftest.$ac_ext
8145 fi
8146
8147
8148 CFLAGS="$xorg_testset_save_CFLAGS"
8149
8150 eval supported=\$$cacheid
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8152 $as_echo "$supported" >&6; }
8153 if test "$supported" = "yes" ; then
8154 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8155 found="yes"
8156 fi
8157 fi
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173 xorg_testset_save_CFLAGS="$CFLAGS"
8174
8175 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8178 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8179 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8184 int i;
8185 _ACEOF
8186 if ac_fn_c_try_compile "$LINENO"; then :
8187 xorg_cv_cc_flag_unknown_warning_option=yes
8188 else
8189 xorg_cv_cc_flag_unknown_warning_option=no
8190 fi
8191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8192 fi
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8194 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8196 CFLAGS="$xorg_testset_save_CFLAGS"
8197 fi
8198
8199 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8202 fi
8203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8205 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8206 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8207 $as_echo_n "(cached) " >&6
8208 else
8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h. */
8211 int i;
8212 _ACEOF
8213 if ac_fn_c_try_compile "$LINENO"; then :
8214 xorg_cv_cc_flag_unused_command_line_argument=yes
8215 else
8216 xorg_cv_cc_flag_unused_command_line_argument=no
8217 fi
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219 fi
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8221 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8223 CFLAGS="$xorg_testset_save_CFLAGS"
8224 fi
8225
8226 found="no"
8227
8228 if test $found = "no" ; then
8229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8231 fi
8232
8233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8235 fi
8236
8237 CFLAGS="$CFLAGS -Werror=write-strings"
8238
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8240 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8241 cacheid=xorg_cv_cc_flag__Werror_write_strings
8242 if eval \${$cacheid+:} false; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h. */
8247 int i;
8248 int
8249 main ()
8250 {
8251
8252 ;
8253 return 0;
8254 }
8255 _ACEOF
8256 if ac_fn_c_try_link "$LINENO"; then :
8257 eval $cacheid=yes
8258 else
8259 eval $cacheid=no
8260 fi
8261 rm -f core conftest.err conftest.$ac_objext \
8262 conftest$ac_exeext conftest.$ac_ext
8263 fi
8264
8265
8266 CFLAGS="$xorg_testset_save_CFLAGS"
8267
8268 eval supported=\$$cacheid
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8270 $as_echo "$supported" >&6; }
8271 if test "$supported" = "yes" ; then
8272 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8273 found="yes"
8274 fi
8275 fi
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291 xorg_testset_save_CFLAGS="$CFLAGS"
8292
8293 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8296 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8297 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8298 $as_echo_n "(cached) " >&6
8299 else
8300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8301 /* end confdefs.h. */
8302 int i;
8303 _ACEOF
8304 if ac_fn_c_try_compile "$LINENO"; then :
8305 xorg_cv_cc_flag_unknown_warning_option=yes
8306 else
8307 xorg_cv_cc_flag_unknown_warning_option=no
8308 fi
8309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8310 fi
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8312 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8314 CFLAGS="$xorg_testset_save_CFLAGS"
8315 fi
8316
8317 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8320 fi
8321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8323 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8324 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8325 $as_echo_n "(cached) " >&6
8326 else
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8329 int i;
8330 _ACEOF
8331 if ac_fn_c_try_compile "$LINENO"; then :
8332 xorg_cv_cc_flag_unused_command_line_argument=yes
8333 else
8334 xorg_cv_cc_flag_unused_command_line_argument=no
8335 fi
8336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8337 fi
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8339 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8341 CFLAGS="$xorg_testset_save_CFLAGS"
8342 fi
8343
8344 found="no"
8345
8346 if test $found = "no" ; then
8347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8349 fi
8350
8351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8353 fi
8354
8355 CFLAGS="$CFLAGS -Werror=address"
8356
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8358 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8359 cacheid=xorg_cv_cc_flag__Werror_address
8360 if eval \${$cacheid+:} false; then :
8361 $as_echo_n "(cached) " >&6
8362 else
8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364 /* end confdefs.h. */
8365 int i;
8366 int
8367 main ()
8368 {
8369
8370 ;
8371 return 0;
8372 }
8373 _ACEOF
8374 if ac_fn_c_try_link "$LINENO"; then :
8375 eval $cacheid=yes
8376 else
8377 eval $cacheid=no
8378 fi
8379 rm -f core conftest.err conftest.$ac_objext \
8380 conftest$ac_exeext conftest.$ac_ext
8381 fi
8382
8383
8384 CFLAGS="$xorg_testset_save_CFLAGS"
8385
8386 eval supported=\$$cacheid
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8388 $as_echo "$supported" >&6; }
8389 if test "$supported" = "yes" ; then
8390 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8391 found="yes"
8392 fi
8393 fi
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409 xorg_testset_save_CFLAGS="$CFLAGS"
8410
8411 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8414 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8415 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8416 $as_echo_n "(cached) " >&6
8417 else
8418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419 /* end confdefs.h. */
8420 int i;
8421 _ACEOF
8422 if ac_fn_c_try_compile "$LINENO"; then :
8423 xorg_cv_cc_flag_unknown_warning_option=yes
8424 else
8425 xorg_cv_cc_flag_unknown_warning_option=no
8426 fi
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428 fi
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8430 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8432 CFLAGS="$xorg_testset_save_CFLAGS"
8433 fi
8434
8435 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8438 fi
8439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8441 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8442 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8443 $as_echo_n "(cached) " >&6
8444 else
8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h. */
8447 int i;
8448 _ACEOF
8449 if ac_fn_c_try_compile "$LINENO"; then :
8450 xorg_cv_cc_flag_unused_command_line_argument=yes
8451 else
8452 xorg_cv_cc_flag_unused_command_line_argument=no
8453 fi
8454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8455 fi
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8457 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8459 CFLAGS="$xorg_testset_save_CFLAGS"
8460 fi
8461
8462 found="no"
8463
8464 if test $found = "no" ; then
8465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8467 fi
8468
8469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8471 fi
8472
8473 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8474
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8476 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8477 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8478 if eval \${$cacheid+:} false; then :
8479 $as_echo_n "(cached) " >&6
8480 else
8481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8482 /* end confdefs.h. */
8483 int i;
8484 int
8485 main ()
8486 {
8487
8488 ;
8489 return 0;
8490 }
8491 _ACEOF
8492 if ac_fn_c_try_link "$LINENO"; then :
8493 eval $cacheid=yes
8494 else
8495 eval $cacheid=no
8496 fi
8497 rm -f core conftest.err conftest.$ac_objext \
8498 conftest$ac_exeext conftest.$ac_ext
8499 fi
8500
8501
8502 CFLAGS="$xorg_testset_save_CFLAGS"
8503
8504 eval supported=\$$cacheid
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8506 $as_echo "$supported" >&6; }
8507 if test "$supported" = "yes" ; then
8508 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8509 found="yes"
8510 fi
8511 fi
8512
8513 if test $found = "no" ; then
8514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8516 fi
8517
8518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8520 fi
8521
8522 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8523
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8525 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8526 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8527 if eval \${$cacheid+:} false; then :
8528 $as_echo_n "(cached) " >&6
8529 else
8530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531 /* end confdefs.h. */
8532 int i;
8533 int
8534 main ()
8535 {
8536
8537 ;
8538 return 0;
8539 }
8540 _ACEOF
8541 if ac_fn_c_try_link "$LINENO"; then :
8542 eval $cacheid=yes
8543 else
8544 eval $cacheid=no
8545 fi
8546 rm -f core conftest.err conftest.$ac_objext \
8547 conftest$ac_exeext conftest.$ac_ext
8548 fi
8549
8550
8551 CFLAGS="$xorg_testset_save_CFLAGS"
8552
8553 eval supported=\$$cacheid
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8555 $as_echo "$supported" >&6; }
8556 if test "$supported" = "yes" ; then
8557 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8558 found="yes"
8559 fi
8560 fi
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576 xorg_testset_save_CFLAGS="$CFLAGS"
8577
8578 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8581 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8582 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8583 $as_echo_n "(cached) " >&6
8584 else
8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8587 int i;
8588 _ACEOF
8589 if ac_fn_c_try_compile "$LINENO"; then :
8590 xorg_cv_cc_flag_unknown_warning_option=yes
8591 else
8592 xorg_cv_cc_flag_unknown_warning_option=no
8593 fi
8594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8595 fi
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8597 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8598 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8599 CFLAGS="$xorg_testset_save_CFLAGS"
8600 fi
8601
8602 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8605 fi
8606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8608 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8609 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8610 $as_echo_n "(cached) " >&6
8611 else
8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h. */
8614 int i;
8615 _ACEOF
8616 if ac_fn_c_try_compile "$LINENO"; then :
8617 xorg_cv_cc_flag_unused_command_line_argument=yes
8618 else
8619 xorg_cv_cc_flag_unused_command_line_argument=no
8620 fi
8621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8622 fi
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8624 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8625 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8626 CFLAGS="$xorg_testset_save_CFLAGS"
8627 fi
8628
8629 found="no"
8630
8631 if test $found = "no" ; then
8632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8634 fi
8635
8636 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8638 fi
8639
8640 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8641
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8643 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8644 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8645 if eval \${$cacheid+:} false; then :
8646 $as_echo_n "(cached) " >&6
8647 else
8648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649 /* end confdefs.h. */
8650 int i;
8651 int
8652 main ()
8653 {
8654
8655 ;
8656 return 0;
8657 }
8658 _ACEOF
8659 if ac_fn_c_try_link "$LINENO"; then :
8660 eval $cacheid=yes
8661 else
8662 eval $cacheid=no
8663 fi
8664 rm -f core conftest.err conftest.$ac_objext \
8665 conftest$ac_exeext conftest.$ac_ext
8666 fi
8667
8668
8669 CFLAGS="$xorg_testset_save_CFLAGS"
8670
8671 eval supported=\$$cacheid
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8673 $as_echo "$supported" >&6; }
8674 if test "$supported" = "yes" ; then
8675 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8676 found="yes"
8677 fi
8678 fi
8679
8680 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8681 else
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
8683 $as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697 xorg_testset_save_CFLAGS="$CFLAGS"
8698
8699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8702 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8703 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8704 $as_echo_n "(cached) " >&6
8705 else
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8708 int i;
8709 _ACEOF
8710 if ac_fn_c_try_compile "$LINENO"; then :
8711 xorg_cv_cc_flag_unknown_warning_option=yes
8712 else
8713 xorg_cv_cc_flag_unknown_warning_option=no
8714 fi
8715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716 fi
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8718 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8720 CFLAGS="$xorg_testset_save_CFLAGS"
8721 fi
8722
8723 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8726 fi
8727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8729 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8730 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8735 int i;
8736 _ACEOF
8737 if ac_fn_c_try_compile "$LINENO"; then :
8738 xorg_cv_cc_flag_unused_command_line_argument=yes
8739 else
8740 xorg_cv_cc_flag_unused_command_line_argument=no
8741 fi
8742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8743 fi
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8745 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8747 CFLAGS="$xorg_testset_save_CFLAGS"
8748 fi
8749
8750 found="no"
8751
8752 if test $found = "no" ; then
8753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8755 fi
8756
8757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8759 fi
8760
8761 CFLAGS="$CFLAGS -Wimplicit"
8762
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8764 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8765 cacheid=xorg_cv_cc_flag__Wimplicit
8766 if eval \${$cacheid+:} false; then :
8767 $as_echo_n "(cached) " >&6
8768 else
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8771 int i;
8772 int
8773 main ()
8774 {
8775
8776 ;
8777 return 0;
8778 }
8779 _ACEOF
8780 if ac_fn_c_try_link "$LINENO"; then :
8781 eval $cacheid=yes
8782 else
8783 eval $cacheid=no
8784 fi
8785 rm -f core conftest.err conftest.$ac_objext \
8786 conftest$ac_exeext conftest.$ac_ext
8787 fi
8788
8789
8790 CFLAGS="$xorg_testset_save_CFLAGS"
8791
8792 eval supported=\$$cacheid
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8794 $as_echo "$supported" >&6; }
8795 if test "$supported" = "yes" ; then
8796 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8797 found="yes"
8798 fi
8799 fi
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815 xorg_testset_save_CFLAGS="$CFLAGS"
8816
8817 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8820 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8821 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8822 $as_echo_n "(cached) " >&6
8823 else
8824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8825 /* end confdefs.h. */
8826 int i;
8827 _ACEOF
8828 if ac_fn_c_try_compile "$LINENO"; then :
8829 xorg_cv_cc_flag_unknown_warning_option=yes
8830 else
8831 xorg_cv_cc_flag_unknown_warning_option=no
8832 fi
8833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8834 fi
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8836 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8838 CFLAGS="$xorg_testset_save_CFLAGS"
8839 fi
8840
8841 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8844 fi
8845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8847 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8848 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8849 $as_echo_n "(cached) " >&6
8850 else
8851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852 /* end confdefs.h. */
8853 int i;
8854 _ACEOF
8855 if ac_fn_c_try_compile "$LINENO"; then :
8856 xorg_cv_cc_flag_unused_command_line_argument=yes
8857 else
8858 xorg_cv_cc_flag_unused_command_line_argument=no
8859 fi
8860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8861 fi
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8863 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8865 CFLAGS="$xorg_testset_save_CFLAGS"
8866 fi
8867
8868 found="no"
8869
8870 if test $found = "no" ; then
8871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8873 fi
8874
8875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8877 fi
8878
8879 CFLAGS="$CFLAGS -Wnonnull"
8880
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8882 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8883 cacheid=xorg_cv_cc_flag__Wnonnull
8884 if eval \${$cacheid+:} false; then :
8885 $as_echo_n "(cached) " >&6
8886 else
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8889 int i;
8890 int
8891 main ()
8892 {
8893
8894 ;
8895 return 0;
8896 }
8897 _ACEOF
8898 if ac_fn_c_try_link "$LINENO"; then :
8899 eval $cacheid=yes
8900 else
8901 eval $cacheid=no
8902 fi
8903 rm -f core conftest.err conftest.$ac_objext \
8904 conftest$ac_exeext conftest.$ac_ext
8905 fi
8906
8907
8908 CFLAGS="$xorg_testset_save_CFLAGS"
8909
8910 eval supported=\$$cacheid
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8912 $as_echo "$supported" >&6; }
8913 if test "$supported" = "yes" ; then
8914 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8915 found="yes"
8916 fi
8917 fi
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933 xorg_testset_save_CFLAGS="$CFLAGS"
8934
8935 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8938 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8939 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8940 $as_echo_n "(cached) " >&6
8941 else
8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943 /* end confdefs.h. */
8944 int i;
8945 _ACEOF
8946 if ac_fn_c_try_compile "$LINENO"; then :
8947 xorg_cv_cc_flag_unknown_warning_option=yes
8948 else
8949 xorg_cv_cc_flag_unknown_warning_option=no
8950 fi
8951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8952 fi
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8954 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8956 CFLAGS="$xorg_testset_save_CFLAGS"
8957 fi
8958
8959 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8962 fi
8963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8965 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8966 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8967 $as_echo_n "(cached) " >&6
8968 else
8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8971 int i;
8972 _ACEOF
8973 if ac_fn_c_try_compile "$LINENO"; then :
8974 xorg_cv_cc_flag_unused_command_line_argument=yes
8975 else
8976 xorg_cv_cc_flag_unused_command_line_argument=no
8977 fi
8978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8979 fi
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8981 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8983 CFLAGS="$xorg_testset_save_CFLAGS"
8984 fi
8985
8986 found="no"
8987
8988 if test $found = "no" ; then
8989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8991 fi
8992
8993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8995 fi
8996
8997 CFLAGS="$CFLAGS -Winit-self"
8998
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9000 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9001 cacheid=xorg_cv_cc_flag__Winit_self
9002 if eval \${$cacheid+:} false; then :
9003 $as_echo_n "(cached) " >&6
9004 else
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h. */
9007 int i;
9008 int
9009 main ()
9010 {
9011
9012 ;
9013 return 0;
9014 }
9015 _ACEOF
9016 if ac_fn_c_try_link "$LINENO"; then :
9017 eval $cacheid=yes
9018 else
9019 eval $cacheid=no
9020 fi
9021 rm -f core conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext conftest.$ac_ext
9023 fi
9024
9025
9026 CFLAGS="$xorg_testset_save_CFLAGS"
9027
9028 eval supported=\$$cacheid
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9030 $as_echo "$supported" >&6; }
9031 if test "$supported" = "yes" ; then
9032 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9033 found="yes"
9034 fi
9035 fi
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051 xorg_testset_save_CFLAGS="$CFLAGS"
9052
9053 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9056 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9057 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9058 $as_echo_n "(cached) " >&6
9059 else
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9062 int i;
9063 _ACEOF
9064 if ac_fn_c_try_compile "$LINENO"; then :
9065 xorg_cv_cc_flag_unknown_warning_option=yes
9066 else
9067 xorg_cv_cc_flag_unknown_warning_option=no
9068 fi
9069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070 fi
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9072 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9074 CFLAGS="$xorg_testset_save_CFLAGS"
9075 fi
9076
9077 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9080 fi
9081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9083 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9084 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9085 $as_echo_n "(cached) " >&6
9086 else
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9089 int i;
9090 _ACEOF
9091 if ac_fn_c_try_compile "$LINENO"; then :
9092 xorg_cv_cc_flag_unused_command_line_argument=yes
9093 else
9094 xorg_cv_cc_flag_unused_command_line_argument=no
9095 fi
9096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9097 fi
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9099 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9101 CFLAGS="$xorg_testset_save_CFLAGS"
9102 fi
9103
9104 found="no"
9105
9106 if test $found = "no" ; then
9107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9109 fi
9110
9111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9113 fi
9114
9115 CFLAGS="$CFLAGS -Wmain"
9116
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9118 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9119 cacheid=xorg_cv_cc_flag__Wmain
9120 if eval \${$cacheid+:} false; then :
9121 $as_echo_n "(cached) " >&6
9122 else
9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h. */
9125 int i;
9126 int
9127 main ()
9128 {
9129
9130 ;
9131 return 0;
9132 }
9133 _ACEOF
9134 if ac_fn_c_try_link "$LINENO"; then :
9135 eval $cacheid=yes
9136 else
9137 eval $cacheid=no
9138 fi
9139 rm -f core conftest.err conftest.$ac_objext \
9140 conftest$ac_exeext conftest.$ac_ext
9141 fi
9142
9143
9144 CFLAGS="$xorg_testset_save_CFLAGS"
9145
9146 eval supported=\$$cacheid
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9148 $as_echo "$supported" >&6; }
9149 if test "$supported" = "yes" ; then
9150 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9151 found="yes"
9152 fi
9153 fi
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169 xorg_testset_save_CFLAGS="$CFLAGS"
9170
9171 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9174 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9175 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9176 $as_echo_n "(cached) " >&6
9177 else
9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h. */
9180 int i;
9181 _ACEOF
9182 if ac_fn_c_try_compile "$LINENO"; then :
9183 xorg_cv_cc_flag_unknown_warning_option=yes
9184 else
9185 xorg_cv_cc_flag_unknown_warning_option=no
9186 fi
9187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9188 fi
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9190 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9192 CFLAGS="$xorg_testset_save_CFLAGS"
9193 fi
9194
9195 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9198 fi
9199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9201 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9202 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9203 $as_echo_n "(cached) " >&6
9204 else
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9207 int i;
9208 _ACEOF
9209 if ac_fn_c_try_compile "$LINENO"; then :
9210 xorg_cv_cc_flag_unused_command_line_argument=yes
9211 else
9212 xorg_cv_cc_flag_unused_command_line_argument=no
9213 fi
9214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9215 fi
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9217 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9219 CFLAGS="$xorg_testset_save_CFLAGS"
9220 fi
9221
9222 found="no"
9223
9224 if test $found = "no" ; then
9225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9227 fi
9228
9229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9231 fi
9232
9233 CFLAGS="$CFLAGS -Wmissing-braces"
9234
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9236 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9237 cacheid=xorg_cv_cc_flag__Wmissing_braces
9238 if eval \${$cacheid+:} false; then :
9239 $as_echo_n "(cached) " >&6
9240 else
9241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242 /* end confdefs.h. */
9243 int i;
9244 int
9245 main ()
9246 {
9247
9248 ;
9249 return 0;
9250 }
9251 _ACEOF
9252 if ac_fn_c_try_link "$LINENO"; then :
9253 eval $cacheid=yes
9254 else
9255 eval $cacheid=no
9256 fi
9257 rm -f core conftest.err conftest.$ac_objext \
9258 conftest$ac_exeext conftest.$ac_ext
9259 fi
9260
9261
9262 CFLAGS="$xorg_testset_save_CFLAGS"
9263
9264 eval supported=\$$cacheid
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9266 $as_echo "$supported" >&6; }
9267 if test "$supported" = "yes" ; then
9268 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9269 found="yes"
9270 fi
9271 fi
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287 xorg_testset_save_CFLAGS="$CFLAGS"
9288
9289 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9292 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9293 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9294 $as_echo_n "(cached) " >&6
9295 else
9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h. */
9298 int i;
9299 _ACEOF
9300 if ac_fn_c_try_compile "$LINENO"; then :
9301 xorg_cv_cc_flag_unknown_warning_option=yes
9302 else
9303 xorg_cv_cc_flag_unknown_warning_option=no
9304 fi
9305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9306 fi
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9308 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9310 CFLAGS="$xorg_testset_save_CFLAGS"
9311 fi
9312
9313 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9316 fi
9317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9319 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9320 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9321 $as_echo_n "(cached) " >&6
9322 else
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9325 int i;
9326 _ACEOF
9327 if ac_fn_c_try_compile "$LINENO"; then :
9328 xorg_cv_cc_flag_unused_command_line_argument=yes
9329 else
9330 xorg_cv_cc_flag_unused_command_line_argument=no
9331 fi
9332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9333 fi
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9335 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9337 CFLAGS="$xorg_testset_save_CFLAGS"
9338 fi
9339
9340 found="no"
9341
9342 if test $found = "no" ; then
9343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9345 fi
9346
9347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9349 fi
9350
9351 CFLAGS="$CFLAGS -Wsequence-point"
9352
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9354 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9355 cacheid=xorg_cv_cc_flag__Wsequence_point
9356 if eval \${$cacheid+:} false; then :
9357 $as_echo_n "(cached) " >&6
9358 else
9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h. */
9361 int i;
9362 int
9363 main ()
9364 {
9365
9366 ;
9367 return 0;
9368 }
9369 _ACEOF
9370 if ac_fn_c_try_link "$LINENO"; then :
9371 eval $cacheid=yes
9372 else
9373 eval $cacheid=no
9374 fi
9375 rm -f core conftest.err conftest.$ac_objext \
9376 conftest$ac_exeext conftest.$ac_ext
9377 fi
9378
9379
9380 CFLAGS="$xorg_testset_save_CFLAGS"
9381
9382 eval supported=\$$cacheid
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9384 $as_echo "$supported" >&6; }
9385 if test "$supported" = "yes" ; then
9386 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9387 found="yes"
9388 fi
9389 fi
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405 xorg_testset_save_CFLAGS="$CFLAGS"
9406
9407 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9410 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9411 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9412 $as_echo_n "(cached) " >&6
9413 else
9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9415 /* end confdefs.h. */
9416 int i;
9417 _ACEOF
9418 if ac_fn_c_try_compile "$LINENO"; then :
9419 xorg_cv_cc_flag_unknown_warning_option=yes
9420 else
9421 xorg_cv_cc_flag_unknown_warning_option=no
9422 fi
9423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9424 fi
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9426 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9428 CFLAGS="$xorg_testset_save_CFLAGS"
9429 fi
9430
9431 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9434 fi
9435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9437 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9438 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9443 int i;
9444 _ACEOF
9445 if ac_fn_c_try_compile "$LINENO"; then :
9446 xorg_cv_cc_flag_unused_command_line_argument=yes
9447 else
9448 xorg_cv_cc_flag_unused_command_line_argument=no
9449 fi
9450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9451 fi
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9453 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9455 CFLAGS="$xorg_testset_save_CFLAGS"
9456 fi
9457
9458 found="no"
9459
9460 if test $found = "no" ; then
9461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9463 fi
9464
9465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9467 fi
9468
9469 CFLAGS="$CFLAGS -Wreturn-type"
9470
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9472 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9473 cacheid=xorg_cv_cc_flag__Wreturn_type
9474 if eval \${$cacheid+:} false; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9479 int i;
9480 int
9481 main ()
9482 {
9483
9484 ;
9485 return 0;
9486 }
9487 _ACEOF
9488 if ac_fn_c_try_link "$LINENO"; then :
9489 eval $cacheid=yes
9490 else
9491 eval $cacheid=no
9492 fi
9493 rm -f core conftest.err conftest.$ac_objext \
9494 conftest$ac_exeext conftest.$ac_ext
9495 fi
9496
9497
9498 CFLAGS="$xorg_testset_save_CFLAGS"
9499
9500 eval supported=\$$cacheid
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9502 $as_echo "$supported" >&6; }
9503 if test "$supported" = "yes" ; then
9504 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9505 found="yes"
9506 fi
9507 fi
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523 xorg_testset_save_CFLAGS="$CFLAGS"
9524
9525 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9528 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9529 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9534 int i;
9535 _ACEOF
9536 if ac_fn_c_try_compile "$LINENO"; then :
9537 xorg_cv_cc_flag_unknown_warning_option=yes
9538 else
9539 xorg_cv_cc_flag_unknown_warning_option=no
9540 fi
9541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9542 fi
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9544 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9546 CFLAGS="$xorg_testset_save_CFLAGS"
9547 fi
9548
9549 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9552 fi
9553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9555 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9556 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9561 int i;
9562 _ACEOF
9563 if ac_fn_c_try_compile "$LINENO"; then :
9564 xorg_cv_cc_flag_unused_command_line_argument=yes
9565 else
9566 xorg_cv_cc_flag_unused_command_line_argument=no
9567 fi
9568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9569 fi
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9571 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9573 CFLAGS="$xorg_testset_save_CFLAGS"
9574 fi
9575
9576 found="no"
9577
9578 if test $found = "no" ; then
9579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9581 fi
9582
9583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9585 fi
9586
9587 CFLAGS="$CFLAGS -Wtrigraphs"
9588
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9590 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9591 cacheid=xorg_cv_cc_flag__Wtrigraphs
9592 if eval \${$cacheid+:} false; then :
9593 $as_echo_n "(cached) " >&6
9594 else
9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596 /* end confdefs.h. */
9597 int i;
9598 int
9599 main ()
9600 {
9601
9602 ;
9603 return 0;
9604 }
9605 _ACEOF
9606 if ac_fn_c_try_link "$LINENO"; then :
9607 eval $cacheid=yes
9608 else
9609 eval $cacheid=no
9610 fi
9611 rm -f core conftest.err conftest.$ac_objext \
9612 conftest$ac_exeext conftest.$ac_ext
9613 fi
9614
9615
9616 CFLAGS="$xorg_testset_save_CFLAGS"
9617
9618 eval supported=\$$cacheid
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9620 $as_echo "$supported" >&6; }
9621 if test "$supported" = "yes" ; then
9622 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9623 found="yes"
9624 fi
9625 fi
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641 xorg_testset_save_CFLAGS="$CFLAGS"
9642
9643 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9646 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9647 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9648 $as_echo_n "(cached) " >&6
9649 else
9650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651 /* end confdefs.h. */
9652 int i;
9653 _ACEOF
9654 if ac_fn_c_try_compile "$LINENO"; then :
9655 xorg_cv_cc_flag_unknown_warning_option=yes
9656 else
9657 xorg_cv_cc_flag_unknown_warning_option=no
9658 fi
9659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9660 fi
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9662 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9664 CFLAGS="$xorg_testset_save_CFLAGS"
9665 fi
9666
9667 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9670 fi
9671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9673 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9674 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9675 $as_echo_n "(cached) " >&6
9676 else
9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678 /* end confdefs.h. */
9679 int i;
9680 _ACEOF
9681 if ac_fn_c_try_compile "$LINENO"; then :
9682 xorg_cv_cc_flag_unused_command_line_argument=yes
9683 else
9684 xorg_cv_cc_flag_unused_command_line_argument=no
9685 fi
9686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9687 fi
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9689 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9691 CFLAGS="$xorg_testset_save_CFLAGS"
9692 fi
9693
9694 found="no"
9695
9696 if test $found = "no" ; then
9697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9699 fi
9700
9701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9703 fi
9704
9705 CFLAGS="$CFLAGS -Warray-bounds"
9706
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9708 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9709 cacheid=xorg_cv_cc_flag__Warray_bounds
9710 if eval \${$cacheid+:} false; then :
9711 $as_echo_n "(cached) " >&6
9712 else
9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9715 int i;
9716 int
9717 main ()
9718 {
9719
9720 ;
9721 return 0;
9722 }
9723 _ACEOF
9724 if ac_fn_c_try_link "$LINENO"; then :
9725 eval $cacheid=yes
9726 else
9727 eval $cacheid=no
9728 fi
9729 rm -f core conftest.err conftest.$ac_objext \
9730 conftest$ac_exeext conftest.$ac_ext
9731 fi
9732
9733
9734 CFLAGS="$xorg_testset_save_CFLAGS"
9735
9736 eval supported=\$$cacheid
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9738 $as_echo "$supported" >&6; }
9739 if test "$supported" = "yes" ; then
9740 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9741 found="yes"
9742 fi
9743 fi
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759 xorg_testset_save_CFLAGS="$CFLAGS"
9760
9761 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9764 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9765 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9766 $as_echo_n "(cached) " >&6
9767 else
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9770 int i;
9771 _ACEOF
9772 if ac_fn_c_try_compile "$LINENO"; then :
9773 xorg_cv_cc_flag_unknown_warning_option=yes
9774 else
9775 xorg_cv_cc_flag_unknown_warning_option=no
9776 fi
9777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9778 fi
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9780 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9782 CFLAGS="$xorg_testset_save_CFLAGS"
9783 fi
9784
9785 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9788 fi
9789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9791 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9792 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9793 $as_echo_n "(cached) " >&6
9794 else
9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796 /* end confdefs.h. */
9797 int i;
9798 _ACEOF
9799 if ac_fn_c_try_compile "$LINENO"; then :
9800 xorg_cv_cc_flag_unused_command_line_argument=yes
9801 else
9802 xorg_cv_cc_flag_unused_command_line_argument=no
9803 fi
9804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9805 fi
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9807 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9809 CFLAGS="$xorg_testset_save_CFLAGS"
9810 fi
9811
9812 found="no"
9813
9814 if test $found = "no" ; then
9815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9817 fi
9818
9819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9821 fi
9822
9823 CFLAGS="$CFLAGS -Wwrite-strings"
9824
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9826 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9827 cacheid=xorg_cv_cc_flag__Wwrite_strings
9828 if eval \${$cacheid+:} false; then :
9829 $as_echo_n "(cached) " >&6
9830 else
9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832 /* end confdefs.h. */
9833 int i;
9834 int
9835 main ()
9836 {
9837
9838 ;
9839 return 0;
9840 }
9841 _ACEOF
9842 if ac_fn_c_try_link "$LINENO"; then :
9843 eval $cacheid=yes
9844 else
9845 eval $cacheid=no
9846 fi
9847 rm -f core conftest.err conftest.$ac_objext \
9848 conftest$ac_exeext conftest.$ac_ext
9849 fi
9850
9851
9852 CFLAGS="$xorg_testset_save_CFLAGS"
9853
9854 eval supported=\$$cacheid
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9856 $as_echo "$supported" >&6; }
9857 if test "$supported" = "yes" ; then
9858 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9859 found="yes"
9860 fi
9861 fi
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877 xorg_testset_save_CFLAGS="$CFLAGS"
9878
9879 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9882 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9883 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9884 $as_echo_n "(cached) " >&6
9885 else
9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887 /* end confdefs.h. */
9888 int i;
9889 _ACEOF
9890 if ac_fn_c_try_compile "$LINENO"; then :
9891 xorg_cv_cc_flag_unknown_warning_option=yes
9892 else
9893 xorg_cv_cc_flag_unknown_warning_option=no
9894 fi
9895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9896 fi
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9898 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9900 CFLAGS="$xorg_testset_save_CFLAGS"
9901 fi
9902
9903 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9906 fi
9907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9909 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9910 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9911 $as_echo_n "(cached) " >&6
9912 else
9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914 /* end confdefs.h. */
9915 int i;
9916 _ACEOF
9917 if ac_fn_c_try_compile "$LINENO"; then :
9918 xorg_cv_cc_flag_unused_command_line_argument=yes
9919 else
9920 xorg_cv_cc_flag_unused_command_line_argument=no
9921 fi
9922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9923 fi
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9925 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9927 CFLAGS="$xorg_testset_save_CFLAGS"
9928 fi
9929
9930 found="no"
9931
9932 if test $found = "no" ; then
9933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9935 fi
9936
9937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9939 fi
9940
9941 CFLAGS="$CFLAGS -Waddress"
9942
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9944 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9945 cacheid=xorg_cv_cc_flag__Waddress
9946 if eval \${$cacheid+:} false; then :
9947 $as_echo_n "(cached) " >&6
9948 else
9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h. */
9951 int i;
9952 int
9953 main ()
9954 {
9955
9956 ;
9957 return 0;
9958 }
9959 _ACEOF
9960 if ac_fn_c_try_link "$LINENO"; then :
9961 eval $cacheid=yes
9962 else
9963 eval $cacheid=no
9964 fi
9965 rm -f core conftest.err conftest.$ac_objext \
9966 conftest$ac_exeext conftest.$ac_ext
9967 fi
9968
9969
9970 CFLAGS="$xorg_testset_save_CFLAGS"
9971
9972 eval supported=\$$cacheid
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9974 $as_echo "$supported" >&6; }
9975 if test "$supported" = "yes" ; then
9976 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9977 found="yes"
9978 fi
9979 fi
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995 xorg_testset_save_CFLAGS="$CFLAGS"
9996
9997 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10000 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10001 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10002 $as_echo_n "(cached) " >&6
10003 else
10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005 /* end confdefs.h. */
10006 int i;
10007 _ACEOF
10008 if ac_fn_c_try_compile "$LINENO"; then :
10009 xorg_cv_cc_flag_unknown_warning_option=yes
10010 else
10011 xorg_cv_cc_flag_unknown_warning_option=no
10012 fi
10013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10014 fi
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10016 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10018 CFLAGS="$xorg_testset_save_CFLAGS"
10019 fi
10020
10021 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10024 fi
10025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10027 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10028 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10029 $as_echo_n "(cached) " >&6
10030 else
10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032 /* end confdefs.h. */
10033 int i;
10034 _ACEOF
10035 if ac_fn_c_try_compile "$LINENO"; then :
10036 xorg_cv_cc_flag_unused_command_line_argument=yes
10037 else
10038 xorg_cv_cc_flag_unused_command_line_argument=no
10039 fi
10040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10041 fi
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10043 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10044 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10045 CFLAGS="$xorg_testset_save_CFLAGS"
10046 fi
10047
10048 found="no"
10049
10050 if test $found = "no" ; then
10051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10053 fi
10054
10055 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10057 fi
10058
10059 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10060
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10062 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10063 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10064 if eval \${$cacheid+:} false; then :
10065 $as_echo_n "(cached) " >&6
10066 else
10067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068 /* end confdefs.h. */
10069 int i;
10070 int
10071 main ()
10072 {
10073
10074 ;
10075 return 0;
10076 }
10077 _ACEOF
10078 if ac_fn_c_try_link "$LINENO"; then :
10079 eval $cacheid=yes
10080 else
10081 eval $cacheid=no
10082 fi
10083 rm -f core conftest.err conftest.$ac_objext \
10084 conftest$ac_exeext conftest.$ac_ext
10085 fi
10086
10087
10088 CFLAGS="$xorg_testset_save_CFLAGS"
10089
10090 eval supported=\$$cacheid
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10092 $as_echo "$supported" >&6; }
10093 if test "$supported" = "yes" ; then
10094 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10095 found="yes"
10096 fi
10097 fi
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113 xorg_testset_save_CFLAGS="$CFLAGS"
10114
10115 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10118 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10119 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10120 $as_echo_n "(cached) " >&6
10121 else
10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h. */
10124 int i;
10125 _ACEOF
10126 if ac_fn_c_try_compile "$LINENO"; then :
10127 xorg_cv_cc_flag_unknown_warning_option=yes
10128 else
10129 xorg_cv_cc_flag_unknown_warning_option=no
10130 fi
10131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10132 fi
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10134 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10136 CFLAGS="$xorg_testset_save_CFLAGS"
10137 fi
10138
10139 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10142 fi
10143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10145 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10146 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10147 $as_echo_n "(cached) " >&6
10148 else
10149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150 /* end confdefs.h. */
10151 int i;
10152 _ACEOF
10153 if ac_fn_c_try_compile "$LINENO"; then :
10154 xorg_cv_cc_flag_unused_command_line_argument=yes
10155 else
10156 xorg_cv_cc_flag_unused_command_line_argument=no
10157 fi
10158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10159 fi
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10161 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10163 CFLAGS="$xorg_testset_save_CFLAGS"
10164 fi
10165
10166 found="no"
10167
10168 if test $found = "no" ; then
10169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10171 fi
10172
10173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10175 fi
10176
10177 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10178
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10180 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10181 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10182 if eval \${$cacheid+:} false; then :
10183 $as_echo_n "(cached) " >&6
10184 else
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10187 int i;
10188 int
10189 main ()
10190 {
10191
10192 ;
10193 return 0;
10194 }
10195 _ACEOF
10196 if ac_fn_c_try_link "$LINENO"; then :
10197 eval $cacheid=yes
10198 else
10199 eval $cacheid=no
10200 fi
10201 rm -f core conftest.err conftest.$ac_objext \
10202 conftest$ac_exeext conftest.$ac_ext
10203 fi
10204
10205
10206 CFLAGS="$xorg_testset_save_CFLAGS"
10207
10208 eval supported=\$$cacheid
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10210 $as_echo "$supported" >&6; }
10211 if test "$supported" = "yes" ; then
10212 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10213 found="yes"
10214 fi
10215 fi
10216
10217
10218 fi
10219
10220
10221
10222
10223
10224
10225
10226 CWARNFLAGS="$BASE_CFLAGS"
10227 if test "x$GCC" = xyes ; then
10228 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10229 fi
10230
10231
10232
10233
10234
10235
10236
10237
10238 # Check whether --enable-strict-compilation was given.
10239 if test "${enable_strict_compilation+set}" = set; then :
10240 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10241 else
10242 STRICT_COMPILE=no
10243 fi
10244
10245
10246
10247
10248
10249
10250 STRICT_CFLAGS=""
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264 xorg_testset_save_CFLAGS="$CFLAGS"
10265
10266 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10269 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10270 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10271 $as_echo_n "(cached) " >&6
10272 else
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10275 int i;
10276 _ACEOF
10277 if ac_fn_c_try_compile "$LINENO"; then :
10278 xorg_cv_cc_flag_unknown_warning_option=yes
10279 else
10280 xorg_cv_cc_flag_unknown_warning_option=no
10281 fi
10282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10283 fi
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10285 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10287 CFLAGS="$xorg_testset_save_CFLAGS"
10288 fi
10289
10290 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10293 fi
10294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10296 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10297 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10298 $as_echo_n "(cached) " >&6
10299 else
10300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301 /* end confdefs.h. */
10302 int i;
10303 _ACEOF
10304 if ac_fn_c_try_compile "$LINENO"; then :
10305 xorg_cv_cc_flag_unused_command_line_argument=yes
10306 else
10307 xorg_cv_cc_flag_unused_command_line_argument=no
10308 fi
10309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10310 fi
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10312 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10314 CFLAGS="$xorg_testset_save_CFLAGS"
10315 fi
10316
10317 found="no"
10318
10319 if test $found = "no" ; then
10320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10322 fi
10323
10324 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10326 fi
10327
10328 CFLAGS="$CFLAGS -pedantic"
10329
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10331 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10332 cacheid=xorg_cv_cc_flag__pedantic
10333 if eval \${$cacheid+:} false; then :
10334 $as_echo_n "(cached) " >&6
10335 else
10336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337 /* end confdefs.h. */
10338 int i;
10339 int
10340 main ()
10341 {
10342
10343 ;
10344 return 0;
10345 }
10346 _ACEOF
10347 if ac_fn_c_try_link "$LINENO"; then :
10348 eval $cacheid=yes
10349 else
10350 eval $cacheid=no
10351 fi
10352 rm -f core conftest.err conftest.$ac_objext \
10353 conftest$ac_exeext conftest.$ac_ext
10354 fi
10355
10356
10357 CFLAGS="$xorg_testset_save_CFLAGS"
10358
10359 eval supported=\$$cacheid
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10361 $as_echo "$supported" >&6; }
10362 if test "$supported" = "yes" ; then
10363 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10364 found="yes"
10365 fi
10366 fi
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382 xorg_testset_save_CFLAGS="$CFLAGS"
10383
10384 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10387 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10388 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10389 $as_echo_n "(cached) " >&6
10390 else
10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392 /* end confdefs.h. */
10393 int i;
10394 _ACEOF
10395 if ac_fn_c_try_compile "$LINENO"; then :
10396 xorg_cv_cc_flag_unknown_warning_option=yes
10397 else
10398 xorg_cv_cc_flag_unknown_warning_option=no
10399 fi
10400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10401 fi
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10403 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10405 CFLAGS="$xorg_testset_save_CFLAGS"
10406 fi
10407
10408 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10411 fi
10412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10414 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10415 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10416 $as_echo_n "(cached) " >&6
10417 else
10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419 /* end confdefs.h. */
10420 int i;
10421 _ACEOF
10422 if ac_fn_c_try_compile "$LINENO"; then :
10423 xorg_cv_cc_flag_unused_command_line_argument=yes
10424 else
10425 xorg_cv_cc_flag_unused_command_line_argument=no
10426 fi
10427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10428 fi
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10430 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10432 CFLAGS="$xorg_testset_save_CFLAGS"
10433 fi
10434
10435 found="no"
10436
10437 if test $found = "no" ; then
10438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10440 fi
10441
10442 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10444 fi
10445
10446 CFLAGS="$CFLAGS -Werror"
10447
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10449 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10450 cacheid=xorg_cv_cc_flag__Werror
10451 if eval \${$cacheid+:} false; then :
10452 $as_echo_n "(cached) " >&6
10453 else
10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h. */
10456 int i;
10457 int
10458 main ()
10459 {
10460
10461 ;
10462 return 0;
10463 }
10464 _ACEOF
10465 if ac_fn_c_try_link "$LINENO"; then :
10466 eval $cacheid=yes
10467 else
10468 eval $cacheid=no
10469 fi
10470 rm -f core conftest.err conftest.$ac_objext \
10471 conftest$ac_exeext conftest.$ac_ext
10472 fi
10473
10474
10475 CFLAGS="$xorg_testset_save_CFLAGS"
10476
10477 eval supported=\$$cacheid
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10479 $as_echo "$supported" >&6; }
10480 if test "$supported" = "yes" ; then
10481 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10482 found="yes"
10483 fi
10484 fi
10485
10486 if test $found = "no" ; then
10487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10489 fi
10490
10491 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10493 fi
10494
10495 CFLAGS="$CFLAGS -errwarn"
10496
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10498 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10499 cacheid=xorg_cv_cc_flag__errwarn
10500 if eval \${$cacheid+:} false; then :
10501 $as_echo_n "(cached) " >&6
10502 else
10503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10504 /* end confdefs.h. */
10505 int i;
10506 int
10507 main ()
10508 {
10509
10510 ;
10511 return 0;
10512 }
10513 _ACEOF
10514 if ac_fn_c_try_link "$LINENO"; then :
10515 eval $cacheid=yes
10516 else
10517 eval $cacheid=no
10518 fi
10519 rm -f core conftest.err conftest.$ac_objext \
10520 conftest$ac_exeext conftest.$ac_ext
10521 fi
10522
10523
10524 CFLAGS="$xorg_testset_save_CFLAGS"
10525
10526 eval supported=\$$cacheid
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10528 $as_echo "$supported" >&6; }
10529 if test "$supported" = "yes" ; then
10530 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10531 found="yes"
10532 fi
10533 fi
10534
10535
10536
10537 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10538 # activate it with -Werror, so we add it here explicitly.
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552 xorg_testset_save_CFLAGS="$CFLAGS"
10553
10554 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10557 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10558 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10559 $as_echo_n "(cached) " >&6
10560 else
10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10563 int i;
10564 _ACEOF
10565 if ac_fn_c_try_compile "$LINENO"; then :
10566 xorg_cv_cc_flag_unknown_warning_option=yes
10567 else
10568 xorg_cv_cc_flag_unknown_warning_option=no
10569 fi
10570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10571 fi
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10573 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10574 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10575 CFLAGS="$xorg_testset_save_CFLAGS"
10576 fi
10577
10578 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10581 fi
10582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10584 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10585 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10586 $as_echo_n "(cached) " >&6
10587 else
10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589 /* end confdefs.h. */
10590 int i;
10591 _ACEOF
10592 if ac_fn_c_try_compile "$LINENO"; then :
10593 xorg_cv_cc_flag_unused_command_line_argument=yes
10594 else
10595 xorg_cv_cc_flag_unused_command_line_argument=no
10596 fi
10597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10598 fi
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10600 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10601 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10602 CFLAGS="$xorg_testset_save_CFLAGS"
10603 fi
10604
10605 found="no"
10606
10607 if test $found = "no" ; then
10608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10610 fi
10611
10612 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10614 fi
10615
10616 CFLAGS="$CFLAGS -Werror=attributes"
10617
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10619 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10620 cacheid=xorg_cv_cc_flag__Werror_attributes
10621 if eval \${$cacheid+:} false; then :
10622 $as_echo_n "(cached) " >&6
10623 else
10624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h. */
10626 int i;
10627 int
10628 main ()
10629 {
10630
10631 ;
10632 return 0;
10633 }
10634 _ACEOF
10635 if ac_fn_c_try_link "$LINENO"; then :
10636 eval $cacheid=yes
10637 else
10638 eval $cacheid=no
10639 fi
10640 rm -f core conftest.err conftest.$ac_objext \
10641 conftest$ac_exeext conftest.$ac_ext
10642 fi
10643
10644
10645 CFLAGS="$xorg_testset_save_CFLAGS"
10646
10647 eval supported=\$$cacheid
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10649 $as_echo "$supported" >&6; }
10650 if test "$supported" = "yes" ; then
10651 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10652 found="yes"
10653 fi
10654 fi
10655
10656
10657
10658 if test "x$STRICT_COMPILE" = "xyes"; then
10659 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10660 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10661 fi
10662
10663
10664
10665
10666
10667
10668 cat >>confdefs.h <<_ACEOF
10669 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10670 _ACEOF
10671
10672 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10673 if test "x$PVM" = "x"; then
10674 PVM="0"
10675 fi
10676
10677 cat >>confdefs.h <<_ACEOF
10678 #define PACKAGE_VERSION_MINOR $PVM
10679 _ACEOF
10680
10681 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10682 if test "x$PVP" = "x"; then
10683 PVP="0"
10684 fi
10685
10686 cat >>confdefs.h <<_ACEOF
10687 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10688 _ACEOF
10689
10690
10691
10692 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10693 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10694 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10695 touch \$(top_srcdir)/ChangeLog; \
10696 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10697
10698
10699
10700
10701 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10702 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10703 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10704 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10705 touch \$(top_srcdir)/INSTALL; \
10706 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10707
10708
10709
10710
10711
10712
10713 case $host_os in
10714 solaris*)
10715 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10716 # check for a man page file found in later versions that use
10717 # traditional section numbers instead
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10719 $as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
10720 if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
10721 $as_echo_n "(cached) " >&6
10722 else
10723 test "$cross_compiling" = yes &&
10724 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10725 if test -r "/usr/share/man/man7/attributes.7"; then
10726 ac_cv_file__usr_share_man_man7_attributes_7=yes
10727 else
10728 ac_cv_file__usr_share_man_man7_attributes_7=no
10729 fi
10730 fi
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10732 $as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10733 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
10734 SYSV_MAN_SECTIONS=false
10735 else
10736 SYSV_MAN_SECTIONS=true
10737 fi
10738
10739 ;;
10740 *) SYSV_MAN_SECTIONS=false ;;
10741 esac
10742
10743 if test x$APP_MAN_SUFFIX = x ; then
10744 APP_MAN_SUFFIX=1
10745 fi
10746 if test x$APP_MAN_DIR = x ; then
10747 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10748 fi
10749
10750 if test x$LIB_MAN_SUFFIX = x ; then
10751 LIB_MAN_SUFFIX=3
10752 fi
10753 if test x$LIB_MAN_DIR = x ; then
10754 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10755 fi
10756
10757 if test x$FILE_MAN_SUFFIX = x ; then
10758 case $SYSV_MAN_SECTIONS in
10759 true) FILE_MAN_SUFFIX=4 ;;
10760 *) FILE_MAN_SUFFIX=5 ;;
10761 esac
10762 fi
10763 if test x$FILE_MAN_DIR = x ; then
10764 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10765 fi
10766
10767 if test x$MISC_MAN_SUFFIX = x ; then
10768 case $SYSV_MAN_SECTIONS in
10769 true) MISC_MAN_SUFFIX=5 ;;
10770 *) MISC_MAN_SUFFIX=7 ;;
10771 esac
10772 fi
10773 if test x$MISC_MAN_DIR = x ; then
10774 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10775 fi
10776
10777 if test x$DRIVER_MAN_SUFFIX = x ; then
10778 case $SYSV_MAN_SECTIONS in
10779 true) DRIVER_MAN_SUFFIX=7 ;;
10780 *) DRIVER_MAN_SUFFIX=4 ;;
10781 esac
10782 fi
10783 if test x$DRIVER_MAN_DIR = x ; then
10784 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10785 fi
10786
10787 if test x$ADMIN_MAN_SUFFIX = x ; then
10788 case $SYSV_MAN_SECTIONS in
10789 true) ADMIN_MAN_SUFFIX=1m ;;
10790 *) ADMIN_MAN_SUFFIX=8 ;;
10791 esac
10792 fi
10793 if test x$ADMIN_MAN_DIR = x ; then
10794 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10795 fi
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811 XORG_MAN_PAGE="X Version 11"
10812
10813 MAN_SUBSTS="\
10814 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10815 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10816 -e 's|__xservername__|Xorg|g' \
10817 -e 's|__xconfigfile__|xorg.conf|g' \
10818 -e 's|__projectroot__|\$(prefix)|g' \
10819 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10820 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10821 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10822 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10823 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10824 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10825 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10826
10827
10828
10829 # Check whether --enable-silent-rules was given.
10830 if test "${enable_silent_rules+set}" = set; then :
10831 enableval=$enable_silent_rules;
10832 fi
10833
10834 case $enable_silent_rules in # (((
10835 yes) AM_DEFAULT_VERBOSITY=0;;
10836 no) AM_DEFAULT_VERBOSITY=1;;
10837 *) AM_DEFAULT_VERBOSITY=0;;
10838 esac
10839 am_make=${MAKE-make}
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10841 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10842 if ${am_cv_make_support_nested_variables+:} false; then :
10843 $as_echo_n "(cached) " >&6
10844 else
10845 if $as_echo 'TRUE=$(BAR$(V))
10846 BAR0=false
10847 BAR1=true
10848 V=1
10849 am__doit:
10850 @$(TRUE)
10851 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10852 am_cv_make_support_nested_variables=yes
10853 else
10854 am_cv_make_support_nested_variables=no
10855 fi
10856 fi
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10858 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10859 if test $am_cv_make_support_nested_variables = yes; then
10860 AM_V='$(V)'
10861 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10862 else
10863 AM_V=$AM_DEFAULT_VERBOSITY
10864 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10865 fi
10866 AM_BACKSLASH='\'
10867
10868
10869
10870
10871 # Check whether --enable-specs was given.
10872 if test "${enable_specs+set}" = set; then :
10873 enableval=$enable_specs; build_specs=$enableval
10874 else
10875 build_specs=yes
10876 fi
10877
10878
10879 if test x$build_specs = xyes; then
10880 ENABLE_SPECS_TRUE=
10881 ENABLE_SPECS_FALSE='#'
10882 else
10883 ENABLE_SPECS_TRUE='#'
10884 ENABLE_SPECS_FALSE=
10885 fi
10886
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
10888 $as_echo_n "checking whether to build functional specifications... " >&6; }
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
10890 $as_echo "$build_specs" >&6; }
10891
10892
10893
10894
10895
10896 # Check whether --with-xmlto was given.
10897 if test "${with_xmlto+set}" = set; then :
10898 withval=$with_xmlto; use_xmlto=$withval
10899 else
10900 use_xmlto=auto
10901 fi
10902
10903
10904
10905 if test "x$use_xmlto" = x"auto"; then
10906 # Extract the first word of "xmlto", so it can be a program name with args.
10907 set dummy xmlto; ac_word=$2
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10909 $as_echo_n "checking for $ac_word... " >&6; }
10910 if ${ac_cv_path_XMLTO+:} false; then :
10911 $as_echo_n "(cached) " >&6
10912 else
10913 case $XMLTO in
10914 [\\/]* | ?:[\\/]*)
10915 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10916 ;;
10917 *)
10918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919 for as_dir in $PATH
10920 do
10921 IFS=$as_save_IFS
10922 test -z "$as_dir" && as_dir=.
10923 for ac_exec_ext in '' $ac_executable_extensions; do
10924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10925 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10927 break 2
10928 fi
10929 done
10930 done
10931 IFS=$as_save_IFS
10932
10933 ;;
10934 esac
10935 fi
10936 XMLTO=$ac_cv_path_XMLTO
10937 if test -n "$XMLTO"; then
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10939 $as_echo "$XMLTO" >&6; }
10940 else
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10942 $as_echo "no" >&6; }
10943 fi
10944
10945
10946 if test "x$XMLTO" = "x"; then
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
10948 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
10949 have_xmlto=no
10950 else
10951 have_xmlto=yes
10952 fi
10953 elif test "x$use_xmlto" = x"yes" ; then
10954 # Extract the first word of "xmlto", so it can be a program name with args.
10955 set dummy xmlto; ac_word=$2
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10957 $as_echo_n "checking for $ac_word... " >&6; }
10958 if ${ac_cv_path_XMLTO+:} false; then :
10959 $as_echo_n "(cached) " >&6
10960 else
10961 case $XMLTO in
10962 [\\/]* | ?:[\\/]*)
10963 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10964 ;;
10965 *)
10966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10967 for as_dir in $PATH
10968 do
10969 IFS=$as_save_IFS
10970 test -z "$as_dir" && as_dir=.
10971 for ac_exec_ext in '' $ac_executable_extensions; do
10972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10973 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10975 break 2
10976 fi
10977 done
10978 done
10979 IFS=$as_save_IFS
10980
10981 ;;
10982 esac
10983 fi
10984 XMLTO=$ac_cv_path_XMLTO
10985 if test -n "$XMLTO"; then
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10987 $as_echo "$XMLTO" >&6; }
10988 else
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10990 $as_echo "no" >&6; }
10991 fi
10992
10993
10994 if test "x$XMLTO" = "x"; then
10995 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
10996 fi
10997 have_xmlto=yes
10998 elif test "x$use_xmlto" = x"no" ; then
10999 if test "x$XMLTO" != "x"; then
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
11001 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
11002 fi
11003 have_xmlto=no
11004 else
11005 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
11006 fi
11007
11008 # Test for a minimum version of xmlto, if provided.
11009 if test "$have_xmlto" = yes; then
11010 # scrape the xmlto version
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
11012 $as_echo_n "checking the xmlto version... " >&6; }
11013 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
11015 $as_echo "$xmlto_version" >&6; }
11016 as_arg_v1=$xmlto_version
11017 as_arg_v2=0.0.22
11018 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11019 case $? in #(
11020 1) :
11021 if test "x$use_xmlto" = xauto; then
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
11023 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
11024 have_xmlto=no
11025 else
11026 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
11027 fi ;; #(
11028 0) :
11029 ;; #(
11030 2) :
11031 ;; #(
11032 *) :
11033 ;;
11034 esac
11035 fi
11036
11037 # Test for the ability of xmlto to generate a text target
11038 #
11039 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
11040 # following test for empty XML docbook files.
11041 # For compatibility reasons use the following empty XML docbook file and if
11042 # it fails try it again with a non-empty XML file.
11043 have_xmlto_text=no
11044 cat > conftest.xml << "EOF"
11045 EOF
11046 if test "$have_xmlto" = yes; then :
11047 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
11048 have_xmlto_text=yes
11049 else
11050 # Try it again with a non-empty XML file.
11051 cat > conftest.xml << "EOF"
11052 <x></x>
11053 EOF
11054 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
11055 have_xmlto_text=yes
11056 else
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
11058 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
11059 fi
11060 fi
11061 fi
11062 rm -f conftest.xml
11063 if test $have_xmlto_text = yes; then
11064 HAVE_XMLTO_TEXT_TRUE=
11065 HAVE_XMLTO_TEXT_FALSE='#'
11066 else
11067 HAVE_XMLTO_TEXT_TRUE='#'
11068 HAVE_XMLTO_TEXT_FALSE=
11069 fi
11070
11071 if test "$have_xmlto" = yes; then
11072 HAVE_XMLTO_TRUE=
11073 HAVE_XMLTO_FALSE='#'
11074 else
11075 HAVE_XMLTO_TRUE='#'
11076 HAVE_XMLTO_FALSE=
11077 fi
11078
11079
11080
11081
11082
11083
11084 # Check whether --with-fop was given.
11085 if test "${with_fop+set}" = set; then :
11086 withval=$with_fop; use_fop=$withval
11087 else
11088 use_fop=auto
11089 fi
11090
11091
11092
11093 if test "x$use_fop" = x"auto"; then
11094 # Extract the first word of "fop", so it can be a program name with args.
11095 set dummy fop; ac_word=$2
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11097 $as_echo_n "checking for $ac_word... " >&6; }
11098 if ${ac_cv_path_FOP+:} false; then :
11099 $as_echo_n "(cached) " >&6
11100 else
11101 case $FOP in
11102 [\\/]* | ?:[\\/]*)
11103 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11104 ;;
11105 *)
11106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107 for as_dir in $PATH
11108 do
11109 IFS=$as_save_IFS
11110 test -z "$as_dir" && as_dir=.
11111 for ac_exec_ext in '' $ac_executable_extensions; do
11112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11113 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
11114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11115 break 2
11116 fi
11117 done
11118 done
11119 IFS=$as_save_IFS
11120
11121 ;;
11122 esac
11123 fi
11124 FOP=$ac_cv_path_FOP
11125 if test -n "$FOP"; then
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11127 $as_echo "$FOP" >&6; }
11128 else
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130 $as_echo "no" >&6; }
11131 fi
11132
11133
11134 if test "x$FOP" = "x"; then
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
11136 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
11137 have_fop=no
11138 else
11139 have_fop=yes
11140 fi
11141 elif test "x$use_fop" = x"yes" ; then
11142 # Extract the first word of "fop", so it can be a program name with args.
11143 set dummy fop; ac_word=$2
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11145 $as_echo_n "checking for $ac_word... " >&6; }
11146 if ${ac_cv_path_FOP+:} false; then :
11147 $as_echo_n "(cached) " >&6
11148 else
11149 case $FOP in
11150 [\\/]* | ?:[\\/]*)
11151 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11152 ;;
11153 *)
11154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11155 for as_dir in $PATH
11156 do
11157 IFS=$as_save_IFS
11158 test -z "$as_dir" && as_dir=.
11159 for ac_exec_ext in '' $ac_executable_extensions; do
11160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11161 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
11162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11163 break 2
11164 fi
11165 done
11166 done
11167 IFS=$as_save_IFS
11168
11169 ;;
11170 esac
11171 fi
11172 FOP=$ac_cv_path_FOP
11173 if test -n "$FOP"; then
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11175 $as_echo "$FOP" >&6; }
11176 else
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178 $as_echo "no" >&6; }
11179 fi
11180
11181
11182 if test "x$FOP" = "x"; then
11183 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
11184 fi
11185 have_fop=yes
11186 elif test "x$use_fop" = x"no" ; then
11187 if test "x$FOP" != "x"; then
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
11189 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
11190 fi
11191 have_fop=no
11192 else
11193 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
11194 fi
11195
11196 # Test for a minimum version of fop, if provided.
11197
11198 if test "$have_fop" = yes; then
11199 HAVE_FOP_TRUE=
11200 HAVE_FOP_FALSE='#'
11201 else
11202 HAVE_FOP_TRUE='#'
11203 HAVE_FOP_FALSE=
11204 fi
11205
11206
11207
11208
11209 # Preserves the interface, should it be implemented later
11210
11211
11212
11213 # Check whether --with-xsltproc was given.
11214 if test "${with_xsltproc+set}" = set; then :
11215 withval=$with_xsltproc; use_xsltproc=$withval
11216 else
11217 use_xsltproc=auto
11218 fi
11219
11220
11221
11222 if test "x$use_xsltproc" = x"auto"; then
11223 # Extract the first word of "xsltproc", so it can be a program name with args.
11224 set dummy xsltproc; ac_word=$2
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11226 $as_echo_n "checking for $ac_word... " >&6; }
11227 if ${ac_cv_path_XSLTPROC+:} false; then :
11228 $as_echo_n "(cached) " >&6
11229 else
11230 case $XSLTPROC in
11231 [\\/]* | ?:[\\/]*)
11232 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
11233 ;;
11234 *)
11235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11236 for as_dir in $PATH
11237 do
11238 IFS=$as_save_IFS
11239 test -z "$as_dir" && as_dir=.
11240 for ac_exec_ext in '' $ac_executable_extensions; do
11241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11242 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
11243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11244 break 2
11245 fi
11246 done
11247 done
11248 IFS=$as_save_IFS
11249
11250 ;;
11251 esac
11252 fi
11253 XSLTPROC=$ac_cv_path_XSLTPROC
11254 if test -n "$XSLTPROC"; then
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
11256 $as_echo "$XSLTPROC" >&6; }
11257 else
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11259 $as_echo "no" >&6; }
11260 fi
11261
11262
11263 if test "x$XSLTPROC" = "x"; then
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
11265 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
11266 have_xsltproc=no
11267 else
11268 have_xsltproc=yes
11269 fi
11270 elif test "x$use_xsltproc" = x"yes" ; then
11271 # Extract the first word of "xsltproc", so it can be a program name with args.
11272 set dummy xsltproc; ac_word=$2
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11274 $as_echo_n "checking for $ac_word... " >&6; }
11275 if ${ac_cv_path_XSLTPROC+:} false; then :
11276 $as_echo_n "(cached) " >&6
11277 else
11278 case $XSLTPROC in
11279 [\\/]* | ?:[\\/]*)
11280 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
11281 ;;
11282 *)
11283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11284 for as_dir in $PATH
11285 do
11286 IFS=$as_save_IFS
11287 test -z "$as_dir" && as_dir=.
11288 for ac_exec_ext in '' $ac_executable_extensions; do
11289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11290 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
11291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11292 break 2
11293 fi
11294 done
11295 done
11296 IFS=$as_save_IFS
11297
11298 ;;
11299 esac
11300 fi
11301 XSLTPROC=$ac_cv_path_XSLTPROC
11302 if test -n "$XSLTPROC"; then
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
11304 $as_echo "$XSLTPROC" >&6; }
11305 else
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307 $as_echo "no" >&6; }
11308 fi
11309
11310
11311 if test "x$XSLTPROC" = "x"; then
11312 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
11313 fi
11314 have_xsltproc=yes
11315 elif test "x$use_xsltproc" = x"no" ; then
11316 if test "x$XSLTPROC" != "x"; then
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
11318 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
11319 fi
11320 have_xsltproc=no
11321 else
11322 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
11323 fi
11324
11325 if test "$have_xsltproc" = yes; then
11326 HAVE_XSLTPROC_TRUE=
11327 HAVE_XSLTPROC_FALSE='#'
11328 else
11329 HAVE_XSLTPROC_TRUE='#'
11330 HAVE_XSLTPROC_FALSE=
11331 fi
11332
11333
11334
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
11336 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
11337 XORG_SGML_PATH=
11338 if test -n "$PKG_CONFIG" && \
11339 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
11340 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
11341 ac_status=$?
11342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11343 test $ac_status = 0; }; then
11344 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
11345 else
11346 :
11347
11348 fi
11349
11350 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
11351 # the path and the name of the doc stylesheet
11352 if test "x$XORG_SGML_PATH" != "x" ; then
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
11354 $as_echo "$XORG_SGML_PATH" >&6; }
11355 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
11356 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
11357 else
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11359 $as_echo "no" >&6; }
11360 fi
11361
11362
11363
11364
11365 if test "x$XSL_STYLESHEET" != "x"; then
11366 HAVE_STYLESHEETS_TRUE=
11367 HAVE_STYLESHEETS_FALSE='#'
11368 else
11369 HAVE_STYLESHEETS_TRUE='#'
11370 HAVE_STYLESHEETS_FALSE=
11371 fi
11372
11373
11374
11375
11376
11377 # Check whether --enable-legacy was given.
11378 if test "${enable_legacy+set}" = set; then :
11379 enableval=$enable_legacy; LEGACY=$enableval
11380 else
11381 LEGACY=no
11382 fi
11383
11384 if test "x$LEGACY" = "xyes"; then
11385 LEGACY_TRUE=
11386 LEGACY_FALSE='#'
11387 else
11388 LEGACY_TRUE='#'
11389 LEGACY_FALSE=
11390 fi
11391
11392
11393 for ac_header in sys/select.h sys/param.h sys/types.h sys/time.h
11394 do :
11395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11396 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11397 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11398 cat >>confdefs.h <<_ACEOF
11399 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11400 _ACEOF
11401
11402 fi
11403
11404 done
11405
11406
11407 # Handle Xpoll.h.in
11408 # Avoid determining fds_bits on WIN32 hosts (not including cygwin)
11409 case $host_os in
11410 mingw*) fds_bits_found=true;;
11411 *) fds_bits_found=false;;
11412 esac
11413
11414 if test "x$fds_bits_found" = xfalse ; then
11415 ac_fn_c_check_member "$LINENO" "fd_set" "fds_bits" "ac_cv_member_fd_set_fds_bits" "
11416 #ifdef HAVE_SYS_PARAM_H
11417 #include <sys/param.h>
11418 #endif
11419 #ifdef HAVE_SYS_TYPES_H
11420 #include <sys/types.h>
11421 #endif
11422 #ifdef HAVE_SYS_TIME_H
11423 #include <sys/time.h>
11424 #endif
11425 #ifdef HAVE_SYS_SELECT_H
11426 #include <sys/select.h>
11427 #endif
11428
11429 "
11430 if test "x$ac_cv_member_fd_set_fds_bits" = xyes; then :
11431
11432 fds_bits_found=plain
11433 USE_FDS_BITS="fds_bits"
11434
11435 fi
11436
11437 fi
11438
11439 if test "x$fds_bits_found" = xfalse ; then
11440 ac_fn_c_check_member "$LINENO" "fd_set" "__fds_bits" "ac_cv_member_fd_set___fds_bits" "
11441 #ifdef HAVE_SYS_PARAM_H
11442 #include <sys/param.h>
11443 #endif
11444 #ifdef HAVE_SYS_TYPES_H
11445 #include <sys/types.h>
11446 #endif
11447 #ifdef HAVE_SYS_TIME_H
11448 #include <sys/time.h>
11449 #endif
11450 #ifdef HAVE_SYS_SELECT_H
11451 #include <sys/select.h>
11452 #endif
11453
11454 "
11455 if test "x$ac_cv_member_fd_set___fds_bits" = xyes; then :
11456
11457 fds_bits_found=underscores
11458 USE_FDS_BITS="__fds_bits"
11459
11460 fi
11461
11462 fi
11463
11464 if test "x$fds_bits_found" = xfalse ; then
11465 as_fn_error $? "Could not determine how to access the fds_bits or equivalent
11466 structure in fd_set on your platform." "$LINENO" 5
11467 fi
11468
11469
11470
11471 ac_config_files="$ac_config_files applewmproto.pc bigreqsproto.pc compositeproto.pc damageproto.pc dmxproto.pc dri2proto.pc dri3proto.pc evieproto.pc fixesproto.pc fontcacheproto.pc fontsproto.pc glproto.pc include/X11/Xpoll.h inputproto.pc kbproto.pc lg3dproto.pc Makefile presentproto.pc printproto.pc randrproto.pc recordproto.pc renderproto.pc resourceproto.pc scrnsaverproto.pc specs/Makefile specs/bigreqsproto/Makefile specs/fontsproto/Makefile specs/kbproto/Makefile specs/recordproto/Makefile specs/scrnsaverproto/Makefile specs/xcmiscproto/Makefile specs/xextproto/Makefile specs/xproto/Makefile trapproto.pc videoproto.pc windowswmproto.pc xcalibrateproto.pc xcmiscproto.pc xextproto.pc xf86bigfontproto.pc xf86dgaproto.pc xf86driproto.pc xf86miscproto.pc xf86rushproto.pc xf86vidmodeproto.pc xineramaproto.pc xproto.pc xproxymngproto.pc"
11472
11473
11474 cat >confcache <<\_ACEOF
11475 # This file is a shell script that caches the results of configure
11476 # tests run on this system so they can be shared between configure
11477 # scripts and configure runs, see configure's option --config-cache.
11478 # It is not useful on other systems. If it contains results you don't
11479 # want to keep, you may remove or edit it.
11480 #
11481 # config.status only pays attention to the cache file if you give it
11482 # the --recheck option to rerun configure.
11483 #
11484 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11485 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11486 # following values.
11487
11488 _ACEOF
11489
11490 # The following way of writing the cache mishandles newlines in values,
11491 # but we know of no workaround that is simple, portable, and efficient.
11492 # So, we kill variables containing newlines.
11493 # Ultrix sh set writes to stderr and can't be redirected directly,
11494 # and sets the high bit in the cache file unless we assign to the vars.
11495 (
11496 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11497 eval ac_val=\$$ac_var
11498 case $ac_val in #(
11499 *${as_nl}*)
11500 case $ac_var in #(
11501 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11502 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11503 esac
11504 case $ac_var in #(
11505 _ | IFS | as_nl) ;; #(
11506 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11507 *) { eval $ac_var=; unset $ac_var;} ;;
11508 esac ;;
11509 esac
11510 done
11511
11512 (set) 2>&1 |
11513 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11514 *${as_nl}ac_space=\ *)
11515 # `set' does not quote correctly, so add quotes: double-quote
11516 # substitution turns \\\\ into \\, and sed turns \\ into \.
11517 sed -n \
11518 "s/'/'\\\\''/g;
11519 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11520 ;; #(
11521 *)
11522 # `set' quotes correctly as required by POSIX, so do not add quotes.
11523 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11524 ;;
11525 esac |
11526 sort
11527 ) |
11528 sed '
11529 /^ac_cv_env_/b end
11530 t clear
11531 :clear
11532 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11533 t end
11534 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11535 :end' >>confcache
11536 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11537 if test -w "$cache_file"; then
11538 if test "x$cache_file" != "x/dev/null"; then
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11540 $as_echo "$as_me: updating cache $cache_file" >&6;}
11541 if test ! -f "$cache_file" || test -h "$cache_file"; then
11542 cat confcache >"$cache_file"
11543 else
11544 case $cache_file in #(
11545 */* | ?:*)
11546 mv -f confcache "$cache_file"$$ &&
11547 mv -f "$cache_file"$$ "$cache_file" ;; #(
11548 *)
11549 mv -f confcache "$cache_file" ;;
11550 esac
11551 fi
11552 fi
11553 else
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11555 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11556 fi
11557 fi
11558 rm -f confcache
11559
11560 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11561 # Let make expand exec_prefix.
11562 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11563
11564 # Transform confdefs.h into DEFS.
11565 # Protect against shell expansion while executing Makefile rules.
11566 # Protect against Makefile macro expansion.
11567 #
11568 # If the first sed substitution is executed (which looks for macros that
11569 # take arguments), then branch to the quote section. Otherwise,
11570 # look for a macro that doesn't take arguments.
11571 ac_script='
11572 :mline
11573 /\\$/{
11574 N
11575 s,\\\n,,
11576 b mline
11577 }
11578 t clear
11579 :clear
11580 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11581 t quote
11582 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11583 t quote
11584 b any
11585 :quote
11586 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11587 s/\[/\\&/g
11588 s/\]/\\&/g
11589 s/\$/$$/g
11590 H
11591 :any
11592 ${
11593 g
11594 s/^\n//
11595 s/\n/ /g
11596 p
11597 }
11598 '
11599 DEFS=`sed -n "$ac_script" confdefs.h`
11600
11601
11602 ac_libobjs=
11603 ac_ltlibobjs=
11604 U=
11605 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11606 # 1. Remove the extension, and $U if already installed.
11607 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11608 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11609 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11610 # will be set to the directory where LIBOBJS objects are built.
11611 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11612 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11613 done
11614 LIBOBJS=$ac_libobjs
11615
11616 LTLIBOBJS=$ac_ltlibobjs
11617
11618
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11620 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11621 if test -n "$am_sleep_pid"; then
11622 # Hide warnings about reused PIDs.
11623 wait $am_sleep_pid 2>/dev/null
11624 fi
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11626 $as_echo "done" >&6; }
11627 if test -n "$EXEEXT"; then
11628 am__EXEEXT_TRUE=
11629 am__EXEEXT_FALSE='#'
11630 else
11631 am__EXEEXT_TRUE='#'
11632 am__EXEEXT_FALSE=
11633 fi
11634
11635 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11636 as_fn_error $? "conditional \"AMDEP\" was never defined.
11637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11638 fi
11639 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11640 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11642 fi
11643 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
11644 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
11645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11646 fi
11647 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
11648 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
11649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11650 fi
11651 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
11652 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
11653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11654 fi
11655 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
11656 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
11657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11658 fi
11659 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
11660 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
11661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11662 fi
11663 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
11664 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
11665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11666 fi
11667 if test -z "${LEGACY_TRUE}" && test -z "${LEGACY_FALSE}"; then
11668 as_fn_error $? "conditional \"LEGACY\" was never defined.
11669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11670 fi
11671
11672 : "${CONFIG_STATUS=./config.status}"
11673 ac_write_fail=0
11674 ac_clean_files_save=$ac_clean_files
11675 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11677 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11678 as_write_fail=0
11679 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11680 #! $SHELL
11681 # Generated by $as_me.
11682 # Run this file to recreate the current configuration.
11683 # Compiler output produced by configure, useful for debugging
11684 # configure, is in config.log if it exists.
11685
11686 debug=false
11687 ac_cs_recheck=false
11688 ac_cs_silent=false
11689
11690 SHELL=\${CONFIG_SHELL-$SHELL}
11691 export SHELL
11692 _ASEOF
11693 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11694 ## -------------------- ##
11695 ## M4sh Initialization. ##
11696 ## -------------------- ##
11697
11698 # Be more Bourne compatible
11699 DUALCASE=1; export DUALCASE # for MKS sh
11700 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11701 emulate sh
11702 NULLCMD=:
11703 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11704 # is contrary to our usage. Disable this feature.
11705 alias -g '${1+"$@"}'='"$@"'
11706 setopt NO_GLOB_SUBST
11707 else
11708 case `(set -o) 2>/dev/null` in #(
11709 *posix*) :
11710 set -o posix ;; #(
11711 *) :
11712 ;;
11713 esac
11714 fi
11715
11716
11717 as_nl='
11718 '
11719 export as_nl
11720 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11721 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11722 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11723 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11724 # Prefer a ksh shell builtin over an external printf program on Solaris,
11725 # but without wasting forks for bash or zsh.
11726 if test -z "$BASH_VERSION$ZSH_VERSION" \
11727 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11728 as_echo='print -r --'
11729 as_echo_n='print -rn --'
11730 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11731 as_echo='printf %s\n'
11732 as_echo_n='printf %s'
11733 else
11734 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11735 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11736 as_echo_n='/usr/ucb/echo -n'
11737 else
11738 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11739 as_echo_n_body='eval
11740 arg=$1;
11741 case $arg in #(
11742 *"$as_nl"*)
11743 expr "X$arg" : "X\\(.*\\)$as_nl";
11744 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11745 esac;
11746 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11747 '
11748 export as_echo_n_body
11749 as_echo_n='sh -c $as_echo_n_body as_echo'
11750 fi
11751 export as_echo_body
11752 as_echo='sh -c $as_echo_body as_echo'
11753 fi
11754
11755 # The user is always right.
11756 if test "${PATH_SEPARATOR+set}" != set; then
11757 PATH_SEPARATOR=:
11758 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11759 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11760 PATH_SEPARATOR=';'
11761 }
11762 fi
11763
11764
11765 # IFS
11766 # We need space, tab and new line, in precisely that order. Quoting is
11767 # there to prevent editors from complaining about space-tab.
11768 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11769 # splitting by setting IFS to empty value.)
11770 IFS=" "" $as_nl"
11771
11772 # Find who we are. Look in the path if we contain no directory separator.
11773 as_myself=
11774 case $0 in #((
11775 *[\\/]* ) as_myself=$0 ;;
11776 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777 for as_dir in $PATH
11778 do
11779 IFS=$as_save_IFS
11780 test -z "$as_dir" && as_dir=.
11781 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11782 done
11783 IFS=$as_save_IFS
11784
11785 ;;
11786 esac
11787 # We did not find ourselves, most probably we were run as `sh COMMAND'
11788 # in which case we are not to be found in the path.
11789 if test "x$as_myself" = x; then
11790 as_myself=$0
11791 fi
11792 if test ! -f "$as_myself"; then
11793 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11794 exit 1
11795 fi
11796
11797 # Unset variables that we do not need and which cause bugs (e.g. in
11798 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11799 # suppresses any "Segmentation fault" message there. '((' could
11800 # trigger a bug in pdksh 5.2.14.
11801 for as_var in BASH_ENV ENV MAIL MAILPATH
11802 do eval test x\${$as_var+set} = xset \
11803 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11804 done
11805 PS1='$ '
11806 PS2='> '
11807 PS4='+ '
11808
11809 # NLS nuisances.
11810 LC_ALL=C
11811 export LC_ALL
11812 LANGUAGE=C
11813 export LANGUAGE
11814
11815 # CDPATH.
11816 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11817
11818
11819 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11820 # ----------------------------------------
11821 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11822 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11823 # script with STATUS, using 1 if that was 0.
11824 as_fn_error ()
11825 {
11826 as_status=$1; test $as_status -eq 0 && as_status=1
11827 if test "$4"; then
11828 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11829 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11830 fi
11831 $as_echo "$as_me: error: $2" >&2
11832 as_fn_exit $as_status
11833 } # as_fn_error
11834
11835
11836 # as_fn_set_status STATUS
11837 # -----------------------
11838 # Set $? to STATUS, without forking.
11839 as_fn_set_status ()
11840 {
11841 return $1
11842 } # as_fn_set_status
11843
11844 # as_fn_exit STATUS
11845 # -----------------
11846 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11847 as_fn_exit ()
11848 {
11849 set +e
11850 as_fn_set_status $1
11851 exit $1
11852 } # as_fn_exit
11853
11854 # as_fn_unset VAR
11855 # ---------------
11856 # Portably unset VAR.
11857 as_fn_unset ()
11858 {
11859 { eval $1=; unset $1;}
11860 }
11861 as_unset=as_fn_unset
11862 # as_fn_append VAR VALUE
11863 # ----------------------
11864 # Append the text in VALUE to the end of the definition contained in VAR. Take
11865 # advantage of any shell optimizations that allow amortized linear growth over
11866 # repeated appends, instead of the typical quadratic growth present in naive
11867 # implementations.
11868 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11869 eval 'as_fn_append ()
11870 {
11871 eval $1+=\$2
11872 }'
11873 else
11874 as_fn_append ()
11875 {
11876 eval $1=\$$1\$2
11877 }
11878 fi # as_fn_append
11879
11880 # as_fn_arith ARG...
11881 # ------------------
11882 # Perform arithmetic evaluation on the ARGs, and store the result in the
11883 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11884 # must be portable across $(()) and expr.
11885 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11886 eval 'as_fn_arith ()
11887 {
11888 as_val=$(( $* ))
11889 }'
11890 else
11891 as_fn_arith ()
11892 {
11893 as_val=`expr "$@" || test $? -eq 1`
11894 }
11895 fi # as_fn_arith
11896
11897
11898 if expr a : '\(a\)' >/dev/null 2>&1 &&
11899 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11900 as_expr=expr
11901 else
11902 as_expr=false
11903 fi
11904
11905 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11906 as_basename=basename
11907 else
11908 as_basename=false
11909 fi
11910
11911 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11912 as_dirname=dirname
11913 else
11914 as_dirname=false
11915 fi
11916
11917 as_me=`$as_basename -- "$0" ||
11918 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11919 X"$0" : 'X\(//\)$' \| \
11920 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11921 $as_echo X/"$0" |
11922 sed '/^.*\/\([^/][^/]*\)\/*$/{
11923 s//\1/
11924 q
11925 }
11926 /^X\/\(\/\/\)$/{
11927 s//\1/
11928 q
11929 }
11930 /^X\/\(\/\).*/{
11931 s//\1/
11932 q
11933 }
11934 s/.*/./; q'`
11935
11936 # Avoid depending upon Character Ranges.
11937 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11938 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11939 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11940 as_cr_digits='0123456789'
11941 as_cr_alnum=$as_cr_Letters$as_cr_digits
11942
11943 ECHO_C= ECHO_N= ECHO_T=
11944 case `echo -n x` in #(((((
11945 -n*)
11946 case `echo 'xy\c'` in
11947 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11948 xy) ECHO_C='\c';;
11949 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11950 ECHO_T=' ';;
11951 esac;;
11952 *)
11953 ECHO_N='-n';;
11954 esac
11955
11956 rm -f conf$$ conf$$.exe conf$$.file
11957 if test -d conf$$.dir; then
11958 rm -f conf$$.dir/conf$$.file
11959 else
11960 rm -f conf$$.dir
11961 mkdir conf$$.dir 2>/dev/null
11962 fi
11963 if (echo >conf$$.file) 2>/dev/null; then
11964 if ln -s conf$$.file conf$$ 2>/dev/null; then
11965 as_ln_s='ln -s'
11966 # ... but there are two gotchas:
11967 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11968 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11969 # In both cases, we have to default to `cp -pR'.
11970 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11971 as_ln_s='cp -pR'
11972 elif ln conf$$.file conf$$ 2>/dev/null; then
11973 as_ln_s=ln
11974 else
11975 as_ln_s='cp -pR'
11976 fi
11977 else
11978 as_ln_s='cp -pR'
11979 fi
11980 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11981 rmdir conf$$.dir 2>/dev/null
11982
11983
11984 # as_fn_mkdir_p
11985 # -------------
11986 # Create "$as_dir" as a directory, including parents if necessary.
11987 as_fn_mkdir_p ()
11988 {
11989
11990 case $as_dir in #(
11991 -*) as_dir=./$as_dir;;
11992 esac
11993 test -d "$as_dir" || eval $as_mkdir_p || {
11994 as_dirs=
11995 while :; do
11996 case $as_dir in #(
11997 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11998 *) as_qdir=$as_dir;;
11999 esac
12000 as_dirs="'$as_qdir' $as_dirs"
12001 as_dir=`$as_dirname -- "$as_dir" ||
12002 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12003 X"$as_dir" : 'X\(//\)[^/]' \| \
12004 X"$as_dir" : 'X\(//\)$' \| \
12005 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12006 $as_echo X"$as_dir" |
12007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12008 s//\1/
12009 q
12010 }
12011 /^X\(\/\/\)[^/].*/{
12012 s//\1/
12013 q
12014 }
12015 /^X\(\/\/\)$/{
12016 s//\1/
12017 q
12018 }
12019 /^X\(\/\).*/{
12020 s//\1/
12021 q
12022 }
12023 s/.*/./; q'`
12024 test -d "$as_dir" && break
12025 done
12026 test -z "$as_dirs" || eval "mkdir $as_dirs"
12027 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12028
12029
12030 } # as_fn_mkdir_p
12031 if mkdir -p . 2>/dev/null; then
12032 as_mkdir_p='mkdir -p "$as_dir"'
12033 else
12034 test -d ./-p && rmdir ./-p
12035 as_mkdir_p=false
12036 fi
12037
12038
12039 # as_fn_executable_p FILE
12040 # -----------------------
12041 # Test if FILE is an executable regular file.
12042 as_fn_executable_p ()
12043 {
12044 test -f "$1" && test -x "$1"
12045 } # as_fn_executable_p
12046 as_test_x='test -x'
12047 as_executable_p=as_fn_executable_p
12048
12049 # Sed expression to map a string onto a valid CPP name.
12050 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12051
12052 # Sed expression to map a string onto a valid variable name.
12053 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12054
12055
12056 exec 6>&1
12057 ## ----------------------------------- ##
12058 ## Main body of $CONFIG_STATUS script. ##
12059 ## ----------------------------------- ##
12060 _ASEOF
12061 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12062
12063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12064 # Save the log message, to keep $0 and so on meaningful, and to
12065 # report actual input values of CONFIG_FILES etc. instead of their
12066 # values after options handling.
12067 ac_log="
12068 This file was extended by xorgproto $as_me 2019.1, which was
12069 generated by GNU Autoconf 2.69. Invocation command line was
12070
12071 CONFIG_FILES = $CONFIG_FILES
12072 CONFIG_HEADERS = $CONFIG_HEADERS
12073 CONFIG_LINKS = $CONFIG_LINKS
12074 CONFIG_COMMANDS = $CONFIG_COMMANDS
12075 $ $0 $@
12076
12077 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12078 "
12079
12080 _ACEOF
12081
12082 case $ac_config_files in *"
12083 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12084 esac
12085
12086
12087
12088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12089 # Files that config.status was made for.
12090 config_files="$ac_config_files"
12091 config_commands="$ac_config_commands"
12092
12093 _ACEOF
12094
12095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12096 ac_cs_usage="\
12097 \`$as_me' instantiates files and other configuration actions
12098 from templates according to the current configuration. Unless the files
12099 and actions are specified as TAGs, all are instantiated by default.
12100
12101 Usage: $0 [OPTION]... [TAG]...
12102
12103 -h, --help print this help, then exit
12104 -V, --version print version number and configuration settings, then exit
12105 --config print configuration, then exit
12106 -q, --quiet, --silent
12107 do not print progress messages
12108 -d, --debug don't remove temporary files
12109 --recheck update $as_me by reconfiguring in the same conditions
12110 --file=FILE[:TEMPLATE]
12111 instantiate the configuration file FILE
12112
12113 Configuration files:
12114 $config_files
12115
12116 Configuration commands:
12117 $config_commands
12118
12119 Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>."
12120
12121 _ACEOF
12122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12123 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12124 ac_cs_version="\\
12125 xorgproto config.status 2019.1
12126 configured by $0, generated by GNU Autoconf 2.69,
12127 with options \\"\$ac_cs_config\\"
12128
12129 Copyright (C) 2012 Free Software Foundation, Inc.
12130 This config.status script is free software; the Free Software Foundation
12131 gives unlimited permission to copy, distribute and modify it."
12132
12133 ac_pwd='$ac_pwd'
12134 srcdir='$srcdir'
12135 INSTALL='$INSTALL'
12136 MKDIR_P='$MKDIR_P'
12137 AWK='$AWK'
12138 test -n "\$AWK" || AWK=awk
12139 _ACEOF
12140
12141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12142 # The default lists apply if the user does not specify any file.
12143 ac_need_defaults=:
12144 while test $# != 0
12145 do
12146 case $1 in
12147 --*=?*)
12148 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12149 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12150 ac_shift=:
12151 ;;
12152 --*=)
12153 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12154 ac_optarg=
12155 ac_shift=:
12156 ;;
12157 *)
12158 ac_option=$1
12159 ac_optarg=$2
12160 ac_shift=shift
12161 ;;
12162 esac
12163
12164 case $ac_option in
12165 # Handling of the options.
12166 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12167 ac_cs_recheck=: ;;
12168 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12169 $as_echo "$ac_cs_version"; exit ;;
12170 --config | --confi | --conf | --con | --co | --c )
12171 $as_echo "$ac_cs_config"; exit ;;
12172 --debug | --debu | --deb | --de | --d | -d )
12173 debug=: ;;
12174 --file | --fil | --fi | --f )
12175 $ac_shift
12176 case $ac_optarg in
12177 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12178 '') as_fn_error $? "missing file argument" ;;
12179 esac
12180 as_fn_append CONFIG_FILES " '$ac_optarg'"
12181 ac_need_defaults=false;;
12182 --he | --h | --help | --hel | -h )
12183 $as_echo "$ac_cs_usage"; exit ;;
12184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12185 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12186 ac_cs_silent=: ;;
12187
12188 # This is an error.
12189 -*) as_fn_error $? "unrecognized option: \`$1'
12190 Try \`$0 --help' for more information." ;;
12191
12192 *) as_fn_append ac_config_targets " $1"
12193 ac_need_defaults=false ;;
12194
12195 esac
12196 shift
12197 done
12198
12199 ac_configure_extra_args=
12200
12201 if $ac_cs_silent; then
12202 exec 6>/dev/null
12203 ac_configure_extra_args="$ac_configure_extra_args --silent"
12204 fi
12205
12206 _ACEOF
12207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12208 if \$ac_cs_recheck; then
12209 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12210 shift
12211 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12212 CONFIG_SHELL='$SHELL'
12213 export CONFIG_SHELL
12214 exec "\$@"
12215 fi
12216
12217 _ACEOF
12218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12219 exec 5>>config.log
12220 {
12221 echo
12222 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12223 ## Running $as_me. ##
12224 _ASBOX
12225 $as_echo "$ac_log"
12226 } >&5
12227
12228 _ACEOF
12229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12230 #
12231 # INIT-COMMANDS
12232 #
12233 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12234
12235 _ACEOF
12236
12237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12238
12239 # Handling of arguments.
12240 for ac_config_target in $ac_config_targets
12241 do
12242 case $ac_config_target in
12243 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12244 "applewmproto.pc") CONFIG_FILES="$CONFIG_FILES applewmproto.pc" ;;
12245 "bigreqsproto.pc") CONFIG_FILES="$CONFIG_FILES bigreqsproto.pc" ;;
12246 "compositeproto.pc") CONFIG_FILES="$CONFIG_FILES compositeproto.pc" ;;
12247 "damageproto.pc") CONFIG_FILES="$CONFIG_FILES damageproto.pc" ;;
12248 "dmxproto.pc") CONFIG_FILES="$CONFIG_FILES dmxproto.pc" ;;
12249 "dri2proto.pc") CONFIG_FILES="$CONFIG_FILES dri2proto.pc" ;;
12250 "dri3proto.pc") CONFIG_FILES="$CONFIG_FILES dri3proto.pc" ;;
12251 "evieproto.pc") CONFIG_FILES="$CONFIG_FILES evieproto.pc" ;;
12252 "fixesproto.pc") CONFIG_FILES="$CONFIG_FILES fixesproto.pc" ;;
12253 "fontcacheproto.pc") CONFIG_FILES="$CONFIG_FILES fontcacheproto.pc" ;;
12254 "fontsproto.pc") CONFIG_FILES="$CONFIG_FILES fontsproto.pc" ;;
12255 "glproto.pc") CONFIG_FILES="$CONFIG_FILES glproto.pc" ;;
12256 "include/X11/Xpoll.h") CONFIG_FILES="$CONFIG_FILES include/X11/Xpoll.h" ;;
12257 "inputproto.pc") CONFIG_FILES="$CONFIG_FILES inputproto.pc" ;;
12258 "kbproto.pc") CONFIG_FILES="$CONFIG_FILES kbproto.pc" ;;
12259 "lg3dproto.pc") CONFIG_FILES="$CONFIG_FILES lg3dproto.pc" ;;
12260 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12261 "presentproto.pc") CONFIG_FILES="$CONFIG_FILES presentproto.pc" ;;
12262 "printproto.pc") CONFIG_FILES="$CONFIG_FILES printproto.pc" ;;
12263 "randrproto.pc") CONFIG_FILES="$CONFIG_FILES randrproto.pc" ;;
12264 "recordproto.pc") CONFIG_FILES="$CONFIG_FILES recordproto.pc" ;;
12265 "renderproto.pc") CONFIG_FILES="$CONFIG_FILES renderproto.pc" ;;
12266 "resourceproto.pc") CONFIG_FILES="$CONFIG_FILES resourceproto.pc" ;;
12267 "scrnsaverproto.pc") CONFIG_FILES="$CONFIG_FILES scrnsaverproto.pc" ;;
12268 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
12269 "specs/bigreqsproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/bigreqsproto/Makefile" ;;
12270 "specs/fontsproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/fontsproto/Makefile" ;;
12271 "specs/kbproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/kbproto/Makefile" ;;
12272 "specs/recordproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/recordproto/Makefile" ;;
12273 "specs/scrnsaverproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/scrnsaverproto/Makefile" ;;
12274 "specs/xcmiscproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xcmiscproto/Makefile" ;;
12275 "specs/xextproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xextproto/Makefile" ;;
12276 "specs/xproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xproto/Makefile" ;;
12277 "trapproto.pc") CONFIG_FILES="$CONFIG_FILES trapproto.pc" ;;
12278 "videoproto.pc") CONFIG_FILES="$CONFIG_FILES videoproto.pc" ;;
12279 "windowswmproto.pc") CONFIG_FILES="$CONFIG_FILES windowswmproto.pc" ;;
12280 "xcalibrateproto.pc") CONFIG_FILES="$CONFIG_FILES xcalibrateproto.pc" ;;
12281 "xcmiscproto.pc") CONFIG_FILES="$CONFIG_FILES xcmiscproto.pc" ;;
12282 "xextproto.pc") CONFIG_FILES="$CONFIG_FILES xextproto.pc" ;;
12283 "xf86bigfontproto.pc") CONFIG_FILES="$CONFIG_FILES xf86bigfontproto.pc" ;;
12284 "xf86dgaproto.pc") CONFIG_FILES="$CONFIG_FILES xf86dgaproto.pc" ;;
12285 "xf86driproto.pc") CONFIG_FILES="$CONFIG_FILES xf86driproto.pc" ;;
12286 "xf86miscproto.pc") CONFIG_FILES="$CONFIG_FILES xf86miscproto.pc" ;;
12287 "xf86rushproto.pc") CONFIG_FILES="$CONFIG_FILES xf86rushproto.pc" ;;
12288 "xf86vidmodeproto.pc") CONFIG_FILES="$CONFIG_FILES xf86vidmodeproto.pc" ;;
12289 "xineramaproto.pc") CONFIG_FILES="$CONFIG_FILES xineramaproto.pc" ;;
12290 "xproto.pc") CONFIG_FILES="$CONFIG_FILES xproto.pc" ;;
12291 "xproxymngproto.pc") CONFIG_FILES="$CONFIG_FILES xproxymngproto.pc" ;;
12292
12293 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12294 esac
12295 done
12296
12297
12298 # If the user did not use the arguments to specify the items to instantiate,
12299 # then the envvar interface is used. Set only those that are not.
12300 # We use the long form for the default assignment because of an extremely
12301 # bizarre bug on SunOS 4.1.3.
12302 if $ac_need_defaults; then
12303 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12304 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12305 fi
12306
12307 # Have a temporary directory for convenience. Make it in the build tree
12308 # simply because there is no reason against having it here, and in addition,
12309 # creating and moving files from /tmp can sometimes cause problems.
12310 # Hook for its removal unless debugging.
12311 # Note that there is a small window in which the directory will not be cleaned:
12312 # after its creation but before its name has been assigned to `$tmp'.
12313 $debug ||
12314 {
12315 tmp= ac_tmp=
12316 trap 'exit_status=$?
12317 : "${ac_tmp:=$tmp}"
12318 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12319 ' 0
12320 trap 'as_fn_exit 1' 1 2 13 15
12321 }
12322 # Create a (secure) tmp directory for tmp files.
12323
12324 {
12325 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12326 test -d "$tmp"
12327 } ||
12328 {
12329 tmp=./conf$$-$RANDOM
12330 (umask 077 && mkdir "$tmp")
12331 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12332 ac_tmp=$tmp
12333
12334 # Set up the scripts for CONFIG_FILES section.
12335 # No need to generate them if there are no CONFIG_FILES.
12336 # This happens for instance with `./config.status config.h'.
12337 if test -n "$CONFIG_FILES"; then
12338
12339
12340 ac_cr=`echo X | tr X '\015'`
12341 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12342 # But we know of no other shell where ac_cr would be empty at this
12343 # point, so we can use a bashism as a fallback.
12344 if test "x$ac_cr" = x; then
12345 eval ac_cr=\$\'\\r\'
12346 fi
12347 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12348 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12349 ac_cs_awk_cr='\\r'
12350 else
12351 ac_cs_awk_cr=$ac_cr
12352 fi
12353
12354 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12355 _ACEOF
12356
12357
12358 {
12359 echo "cat >conf$$subs.awk <<_ACEOF" &&
12360 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12361 echo "_ACEOF"
12362 } >conf$$subs.sh ||
12363 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12364 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12365 ac_delim='%!_!# '
12366 for ac_last_try in false false false false false :; do
12367 . ./conf$$subs.sh ||
12368 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12369
12370 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12371 if test $ac_delim_n = $ac_delim_num; then
12372 break
12373 elif $ac_last_try; then
12374 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12375 else
12376 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12377 fi
12378 done
12379 rm -f conf$$subs.sh
12380
12381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12382 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12383 _ACEOF
12384 sed -n '
12385 h
12386 s/^/S["/; s/!.*/"]=/
12387 p
12388 g
12389 s/^[^!]*!//
12390 :repl
12391 t repl
12392 s/'"$ac_delim"'$//
12393 t delim
12394 :nl
12395 h
12396 s/\(.\{148\}\)..*/\1/
12397 t more1
12398 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12399 p
12400 n
12401 b repl
12402 :more1
12403 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12404 p
12405 g
12406 s/.\{148\}//
12407 t nl
12408 :delim
12409 h
12410 s/\(.\{148\}\)..*/\1/
12411 t more2
12412 s/["\\]/\\&/g; s/^/"/; s/$/"/
12413 p
12414 b
12415 :more2
12416 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12417 p
12418 g
12419 s/.\{148\}//
12420 t delim
12421 ' <conf$$subs.awk | sed '
12422 /^[^""]/{
12423 N
12424 s/\n//
12425 }
12426 ' >>$CONFIG_STATUS || ac_write_fail=1
12427 rm -f conf$$subs.awk
12428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12429 _ACAWK
12430 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12431 for (key in S) S_is_set[key] = 1
12432 FS = ""
12433
12434 }
12435 {
12436 line = $ 0
12437 nfields = split(line, field, "@")
12438 substed = 0
12439 len = length(field[1])
12440 for (i = 2; i < nfields; i++) {
12441 key = field[i]
12442 keylen = length(key)
12443 if (S_is_set[key]) {
12444 value = S[key]
12445 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12446 len += length(value) + length(field[++i])
12447 substed = 1
12448 } else
12449 len += 1 + keylen
12450 }
12451
12452 print line
12453 }
12454
12455 _ACAWK
12456 _ACEOF
12457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12458 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12459 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12460 else
12461 cat
12462 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12463 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12464 _ACEOF
12465
12466 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12467 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12468 # trailing colons and then remove the whole line if VPATH becomes empty
12469 # (actually we leave an empty line to preserve line numbers).
12470 if test "x$srcdir" = x.; then
12471 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12472 h
12473 s///
12474 s/^/:/
12475 s/[ ]*$/:/
12476 s/:\$(srcdir):/:/g
12477 s/:\${srcdir}:/:/g
12478 s/:@srcdir@:/:/g
12479 s/^:*//
12480 s/:*$//
12481 x
12482 s/\(=[ ]*\).*/\1/
12483 G
12484 s/\n//
12485 s/^[^=]*=[ ]*$//
12486 }'
12487 fi
12488
12489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12490 fi # test -n "$CONFIG_FILES"
12491
12492
12493 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12494 shift
12495 for ac_tag
12496 do
12497 case $ac_tag in
12498 :[FHLC]) ac_mode=$ac_tag; continue;;
12499 esac
12500 case $ac_mode$ac_tag in
12501 :[FHL]*:*);;
12502 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12503 :[FH]-) ac_tag=-:-;;
12504 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12505 esac
12506 ac_save_IFS=$IFS
12507 IFS=:
12508 set x $ac_tag
12509 IFS=$ac_save_IFS
12510 shift
12511 ac_file=$1
12512 shift
12513
12514 case $ac_mode in
12515 :L) ac_source=$1;;
12516 :[FH])
12517 ac_file_inputs=
12518 for ac_f
12519 do
12520 case $ac_f in
12521 -) ac_f="$ac_tmp/stdin";;
12522 *) # Look for the file first in the build tree, then in the source tree
12523 # (if the path is not absolute). The absolute path cannot be DOS-style,
12524 # because $ac_f cannot contain `:'.
12525 test -f "$ac_f" ||
12526 case $ac_f in
12527 [\\/$]*) false;;
12528 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12529 esac ||
12530 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12531 esac
12532 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12533 as_fn_append ac_file_inputs " '$ac_f'"
12534 done
12535
12536 # Let's still pretend it is `configure' which instantiates (i.e., don't
12537 # use $as_me), people would be surprised to read:
12538 # /* config.h. Generated by config.status. */
12539 configure_input='Generated from '`
12540 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12541 `' by configure.'
12542 if test x"$ac_file" != x-; then
12543 configure_input="$ac_file. $configure_input"
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12545 $as_echo "$as_me: creating $ac_file" >&6;}
12546 fi
12547 # Neutralize special characters interpreted by sed in replacement strings.
12548 case $configure_input in #(
12549 *\&* | *\|* | *\\* )
12550 ac_sed_conf_input=`$as_echo "$configure_input" |
12551 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12552 *) ac_sed_conf_input=$configure_input;;
12553 esac
12554
12555 case $ac_tag in
12556 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12557 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12558 esac
12559 ;;
12560 esac
12561
12562 ac_dir=`$as_dirname -- "$ac_file" ||
12563 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12564 X"$ac_file" : 'X\(//\)[^/]' \| \
12565 X"$ac_file" : 'X\(//\)$' \| \
12566 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12567 $as_echo X"$ac_file" |
12568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12569 s//\1/
12570 q
12571 }
12572 /^X\(\/\/\)[^/].*/{
12573 s//\1/
12574 q
12575 }
12576 /^X\(\/\/\)$/{
12577 s//\1/
12578 q
12579 }
12580 /^X\(\/\).*/{
12581 s//\1/
12582 q
12583 }
12584 s/.*/./; q'`
12585 as_dir="$ac_dir"; as_fn_mkdir_p
12586 ac_builddir=.
12587
12588 case "$ac_dir" in
12589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12590 *)
12591 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12592 # A ".." for each directory in $ac_dir_suffix.
12593 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12594 case $ac_top_builddir_sub in
12595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12597 esac ;;
12598 esac
12599 ac_abs_top_builddir=$ac_pwd
12600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12601 # for backward compatibility:
12602 ac_top_builddir=$ac_top_build_prefix
12603
12604 case $srcdir in
12605 .) # We are building in place.
12606 ac_srcdir=.
12607 ac_top_srcdir=$ac_top_builddir_sub
12608 ac_abs_top_srcdir=$ac_pwd ;;
12609 [\\/]* | ?:[\\/]* ) # Absolute name.
12610 ac_srcdir=$srcdir$ac_dir_suffix;
12611 ac_top_srcdir=$srcdir
12612 ac_abs_top_srcdir=$srcdir ;;
12613 *) # Relative name.
12614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12615 ac_top_srcdir=$ac_top_build_prefix$srcdir
12616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12617 esac
12618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12619
12620
12621 case $ac_mode in
12622 :F)
12623 #
12624 # CONFIG_FILE
12625 #
12626
12627 case $INSTALL in
12628 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12629 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12630 esac
12631 ac_MKDIR_P=$MKDIR_P
12632 case $MKDIR_P in
12633 [\\/$]* | ?:[\\/]* ) ;;
12634 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12635 esac
12636 _ACEOF
12637
12638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12639 # If the template does not know about datarootdir, expand it.
12640 # FIXME: This hack should be removed a few years after 2.60.
12641 ac_datarootdir_hack=; ac_datarootdir_seen=
12642 ac_sed_dataroot='
12643 /datarootdir/ {
12644 p
12645 q
12646 }
12647 /@datadir@/p
12648 /@docdir@/p
12649 /@infodir@/p
12650 /@localedir@/p
12651 /@mandir@/p'
12652 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12653 *datarootdir*) ac_datarootdir_seen=yes;;
12654 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12656 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12657 _ACEOF
12658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12659 ac_datarootdir_hack='
12660 s&@datadir@&$datadir&g
12661 s&@docdir@&$docdir&g
12662 s&@infodir@&$infodir&g
12663 s&@localedir@&$localedir&g
12664 s&@mandir@&$mandir&g
12665 s&\\\${datarootdir}&$datarootdir&g' ;;
12666 esac
12667 _ACEOF
12668
12669 # Neutralize VPATH when `$srcdir' = `.'.
12670 # Shell code in configure.ac might set extrasub.
12671 # FIXME: do we really want to maintain this feature?
12672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12673 ac_sed_extra="$ac_vpsub
12674 $extrasub
12675 _ACEOF
12676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12677 :t
12678 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12679 s|@configure_input@|$ac_sed_conf_input|;t t
12680 s&@top_builddir@&$ac_top_builddir_sub&;t t
12681 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12682 s&@srcdir@&$ac_srcdir&;t t
12683 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12684 s&@top_srcdir@&$ac_top_srcdir&;t t
12685 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12686 s&@builddir@&$ac_builddir&;t t
12687 s&@abs_builddir@&$ac_abs_builddir&;t t
12688 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12689 s&@INSTALL@&$ac_INSTALL&;t t
12690 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12691 $ac_datarootdir_hack
12692 "
12693 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12694 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12695
12696 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12697 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12698 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12699 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12701 which seems to be undefined. Please make sure it is defined" >&5
12702 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12703 which seems to be undefined. Please make sure it is defined" >&2;}
12704
12705 rm -f "$ac_tmp/stdin"
12706 case $ac_file in
12707 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12708 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12709 esac \
12710 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12711 ;;
12712
12713
12714 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12715 $as_echo "$as_me: executing $ac_file commands" >&6;}
12716 ;;
12717 esac
12718
12719
12720 case $ac_file$ac_mode in
12721 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12722 # Older Autoconf quotes --file arguments for eval, but not when files
12723 # are listed without --file. Let's play safe and only enable the eval
12724 # if we detect the quoting.
12725 # TODO: see whether this extra hack can be removed once we start
12726 # requiring Autoconf 2.70 or later.
12727 case $CONFIG_FILES in #(
12728 *\'*) :
12729 eval set x "$CONFIG_FILES" ;; #(
12730 *) :
12731 set x $CONFIG_FILES ;; #(
12732 *) :
12733 ;;
12734 esac
12735 shift
12736 # Used to flag and report bootstrapping failures.
12737 am_rc=0
12738 for am_mf
12739 do
12740 # Strip MF so we end up with the name of the file.
12741 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
12742 # Check whether this is an Automake generated Makefile which includes
12743 # dependency-tracking related rules and includes.
12744 # Grep'ing the whole file directly is not great: AIX grep has a line
12745 # limit of 2048, but all sed's we know have understand at least 4000.
12746 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12747 || continue
12748 am_dirpart=`$as_dirname -- "$am_mf" ||
12749 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12750 X"$am_mf" : 'X\(//\)[^/]' \| \
12751 X"$am_mf" : 'X\(//\)$' \| \
12752 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12753 $as_echo X"$am_mf" |
12754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12755 s//\1/
12756 q
12757 }
12758 /^X\(\/\/\)[^/].*/{
12759 s//\1/
12760 q
12761 }
12762 /^X\(\/\/\)$/{
12763 s//\1/
12764 q
12765 }
12766 /^X\(\/\).*/{
12767 s//\1/
12768 q
12769 }
12770 s/.*/./; q'`
12771 am_filepart=`$as_basename -- "$am_mf" ||
12772 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12773 X"$am_mf" : 'X\(//\)$' \| \
12774 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12775 $as_echo X/"$am_mf" |
12776 sed '/^.*\/\([^/][^/]*\)\/*$/{
12777 s//\1/
12778 q
12779 }
12780 /^X\/\(\/\/\)$/{
12781 s//\1/
12782 q
12783 }
12784 /^X\/\(\/\).*/{
12785 s//\1/
12786 q
12787 }
12788 s/.*/./; q'`
12789 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12790 && sed -e '/# am--include-marker/d' "$am_filepart" \
12791 | $MAKE -f - am--depfiles" >&5
12792 (cd "$am_dirpart" \
12793 && sed -e '/# am--include-marker/d' "$am_filepart" \
12794 | $MAKE -f - am--depfiles) >&5 2>&5
12795 ac_status=$?
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } || am_rc=$?
12798 done
12799 if test $am_rc -ne 0; then
12800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12802 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12803 for automatic dependency tracking. Try re-running configure with the
12804 '--disable-dependency-tracking' option to at least be able to build
12805 the package (albeit without support for automatic dependency tracking).
12806 See \`config.log' for more details" "$LINENO" 5; }
12807 fi
12808 { am_dirpart=; unset am_dirpart;}
12809 { am_filepart=; unset am_filepart;}
12810 { am_mf=; unset am_mf;}
12811 { am_rc=; unset am_rc;}
12812 rm -f conftest-deps.mk
12813 }
12814 ;;
12815
12816 esac
12817 done # for ac_tag
12818
12819
12820 as_fn_exit 0
12821 _ACEOF
12822 ac_clean_files=$ac_clean_files_save
12823
12824 test $ac_write_fail = 0 ||
12825 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12826
12827
12828 # configure is writing to config.log, and then calls config.status.
12829 # config.status does its own redirection, appending to config.log.
12830 # Unfortunately, on DOS this fails, as config.log is still kept open
12831 # by configure, so config.status won't be able to write to it; its
12832 # output is simply discarded. So we exec the FD to /dev/null,
12833 # effectively closing config.log, so it can be properly (re)opened and
12834 # appended to by config.status. When coming back to configure, we
12835 # need to make the FD available again.
12836 if test "$no_create" != yes; then
12837 ac_cs_success=:
12838 ac_config_status_args=
12839 test "$silent" = yes &&
12840 ac_config_status_args="$ac_config_status_args --quiet"
12841 exec 5>/dev/null
12842 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12843 exec 5>>config.log
12844 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12845 # would make configure fail if this is the last instruction.
12846 $ac_cs_success || as_fn_exit 1
12847 fi
12848 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12850 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12851 fi
12852
12853
12854