configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xorgproto 2022.1.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
271 $0: https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues
272 $0: about your system, including any error possibly output
273 $0: before this message. Then install a modern shell, or
274 $0: manually run the script under such a shell if you do
275 $0: have one."
276 fi
277 exit 1
278 fi
279 fi
280 fi
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
286
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
294 {
295 { eval $1=; unset $1;}
296 }
297 as_unset=as_fn_unset
298
299
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
303 as_fn_set_status ()
304 {
305 return $1
306 } # as_fn_set_status
307
308 # as_fn_exit STATUS
309 # -----------------
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311 as_fn_exit ()
312 {
313 set +e
314 as_fn_set_status $1
315 exit $1
316 } # as_fn_exit
317 # as_fn_nop
318 # ---------
319 # Do nothing but, unlike ":", preserve the value of $?.
320 as_fn_nop ()
321 {
322 return $?
323 }
324 as_nop=as_fn_nop
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else $as_nop
394 as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 }
398 fi # as_fn_append
399
400 # as_fn_arith ARG...
401 # ------------------
402 # Perform arithmetic evaluation on the ARGs, and store the result in the
403 # global $as_val. Take advantage of shells that can avoid forks. The arguments
404 # must be portable across $(()) and expr.
405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406 then :
407 eval 'as_fn_arith ()
408 {
409 as_val=$(( $* ))
410 }'
411 else $as_nop
412 as_fn_arith ()
413 {
414 as_val=`expr "$@" || test $? -eq 1`
415 }
416 fi # as_fn_arith
417
418 # as_fn_nop
419 # ---------
420 # Do nothing but, unlike ":", preserve the value of $?.
421 as_fn_nop ()
422 {
423 return $?
424 }
425 as_nop=as_fn_nop
426
427 # as_fn_error STATUS ERROR [LINENO LOG_FD]
428 # ----------------------------------------
429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431 # script with STATUS, using 1 if that was 0.
432 as_fn_error ()
433 {
434 as_status=$1; test $as_status -eq 0 && as_status=1
435 if test "$4"; then
436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 fi
439 printf "%s\n" "$as_me: error: $2" >&2
440 as_fn_exit $as_status
441 } # as_fn_error
442
443 if expr a : '\(a\)' >/dev/null 2>&1 &&
444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
445 as_expr=expr
446 else
447 as_expr=false
448 fi
449
450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451 as_basename=basename
452 else
453 as_basename=false
454 fi
455
456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457 as_dirname=dirname
458 else
459 as_dirname=false
460 fi
461
462 as_me=`$as_basename -- "$0" ||
463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464 X"$0" : 'X\(//\)$' \| \
465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466 printf "%s\n" X/"$0" |
467 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\/\)$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\).*/{
476 s//\1/
477 q
478 }
479 s/.*/./; q'`
480
481 # Avoid depending upon Character Ranges.
482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485 as_cr_digits='0123456789'
486 as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489 as_lineno_1=$LINENO as_lineno_1a=$LINENO
490 as_lineno_2=$LINENO as_lineno_2a=$LINENO
491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
494 sed -n '
495 p
496 /[$]LINENO/=
497 ' <$as_myself |
498 sed '
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547
548 rm -f conf$$ conf$$.exe conf$$.file
549 if test -d conf$$.dir; then
550 rm -f conf$$.dir/conf$$.file
551 else
552 rm -f conf$$.dir
553 mkdir conf$$.dir 2>/dev/null
554 fi
555 if (echo >conf$$.file) 2>/dev/null; then
556 if ln -s conf$$.file conf$$ 2>/dev/null; then
557 as_ln_s='ln -s'
558 # ... but there are two gotchas:
559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561 # In both cases, we have to default to `cp -pR'.
562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563 as_ln_s='cp -pR'
564 elif ln conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s=ln
566 else
567 as_ln_s='cp -pR'
568 fi
569 else
570 as_ln_s='cp -pR'
571 fi
572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573 rmdir conf$$.dir 2>/dev/null
574
575 if mkdir -p . 2>/dev/null; then
576 as_mkdir_p='mkdir -p "$as_dir"'
577 else
578 test -d ./-p && rmdir ./-p
579 as_mkdir_p=false
580 fi
581
582 as_test_x='test -x'
583 as_executable_p=as_fn_executable_p
584
585 # Sed expression to map a string onto a valid CPP name.
586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588 # Sed expression to map a string onto a valid variable name.
589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591 as_awk_strverscmp='
592 # Use only awk features that work with 7th edition Unix awk (1978).
593 # My, what an old awk you have, Mr. Solaris!
594 END {
595 while (length(v1) && length(v2)) {
596 # Set d1 to be the next thing to compare from v1, and likewise for d2.
597 # Normally this is a single character, but if v1 and v2 contain digits,
598 # compare them as integers and fractions as strverscmp does.
599 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
600 # Split v1 and v2 into their leading digit string components d1 and d2,
601 # and advance v1 and v2 past the leading digit strings.
602 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
603 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
604 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
605 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
606 if (d1 ~ /^0/) {
607 if (d2 ~ /^0/) {
608 # Compare two fractions.
609 while (d1 ~ /^0/ && d2 ~ /^0/) {
610 d1 = substr(d1, 2); len1--
611 d2 = substr(d2, 2); len2--
612 }
613 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
614 # The two components differ in length, and the common prefix
615 # contains only leading zeros. Consider the longer to be less.
616 d1 = -len1
617 d2 = -len2
618 } else {
619 # Otherwise, compare as strings.
620 d1 = "x" d1
621 d2 = "x" d2
622 }
623 } else {
624 # A fraction is less than an integer.
625 exit 1
626 }
627 } else {
628 if (d2 ~ /^0/) {
629 # An integer is greater than a fraction.
630 exit 2
631 } else {
632 # Compare two integers.
633 d1 += 0
634 d2 += 0
635 }
636 }
637 } else {
638 # The normal case, without worrying about digits.
639 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
640 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
641 }
642 if (d1 < d2) exit 1
643 if (d1 > d2) exit 2
644 }
645 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
646 # which mishandles some comparisons of empty strings to integers.
647 if (length(v2)) exit 1
648 if (length(v1)) exit 2
649 }
650 '
651
652 test -n "$DJDIR" || exec 7<&0 </dev/null
653 exec 6>&1
654
655 # Name of the host.
656 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
657 # so uname gets run too.
658 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
659
660 #
661 # Initializations.
662 #
663 ac_default_prefix=/usr/local
664 ac_clean_files=
665 ac_config_libobj_dir=.
666 LIBOBJS=
667 cross_compiling=no
668 subdirs=
669 MFLAGS=
670 MAKEFLAGS=
671
672 # Identity of this package.
673 PACKAGE_NAME='xorgproto'
674 PACKAGE_TARNAME='xorgproto'
675 PACKAGE_VERSION='2022.1'
676 PACKAGE_STRING='xorgproto 2022.1'
677 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues'
678 PACKAGE_URL=''
679
680 # Factoring default headers for most tests.
681 ac_includes_default="\
682 #include <stddef.h>
683 #ifdef HAVE_STDIO_H
684 # include <stdio.h>
685 #endif
686 #ifdef HAVE_STDLIB_H
687 # include <stdlib.h>
688 #endif
689 #ifdef HAVE_STRING_H
690 # include <string.h>
691 #endif
692 #ifdef HAVE_INTTYPES_H
693 # include <inttypes.h>
694 #endif
695 #ifdef HAVE_STDINT_H
696 # include <stdint.h>
697 #endif
698 #ifdef HAVE_STRINGS_H
699 # include <strings.h>
700 #endif
701 #ifdef HAVE_SYS_TYPES_H
702 # include <sys/types.h>
703 #endif
704 #ifdef HAVE_SYS_STAT_H
705 # include <sys/stat.h>
706 #endif
707 #ifdef HAVE_UNISTD_H
708 # include <unistd.h>
709 #endif"
710
711 ac_header_c_list=
712 ac_subst_vars='am__EXEEXT_FALSE
713 am__EXEEXT_TRUE
714 LTLIBOBJS
715 LIBOBJS
716 USE_FDS_BITS
717 LEGACY_FALSE
718 LEGACY_TRUE
719 HAVE_PYTHON_FALSE
720 HAVE_PYTHON_TRUE
721 pkgpyexecdir
722 pyexecdir
723 pkgpythondir
724 pythondir
725 PYTHON_EXEC_PREFIX
726 PYTHON_PREFIX
727 PYTHON_PLATFORM
728 PYTHON_VERSION
729 PYTHON
730 HAVE_STYLESHEETS_FALSE
731 HAVE_STYLESHEETS_TRUE
732 XSL_STYLESHEET
733 STYLESHEET_SRCDIR
734 XORG_SGML_PATH
735 HAVE_XSLTPROC_FALSE
736 HAVE_XSLTPROC_TRUE
737 XSLTPROC
738 HAVE_FOP_FALSE
739 HAVE_FOP_TRUE
740 FOP
741 HAVE_XMLTO_FALSE
742 HAVE_XMLTO_TRUE
743 HAVE_XMLTO_TEXT_FALSE
744 HAVE_XMLTO_TEXT_TRUE
745 XMLTO
746 ENABLE_SPECS_FALSE
747 ENABLE_SPECS_TRUE
748 MAN_SUBSTS
749 XORG_MAN_PAGE
750 ADMIN_MAN_DIR
751 DRIVER_MAN_DIR
752 MISC_MAN_DIR
753 FILE_MAN_DIR
754 LIB_MAN_DIR
755 APP_MAN_DIR
756 ADMIN_MAN_SUFFIX
757 DRIVER_MAN_SUFFIX
758 MISC_MAN_SUFFIX
759 FILE_MAN_SUFFIX
760 LIB_MAN_SUFFIX
761 APP_MAN_SUFFIX
762 SED
763 host_os
764 host_vendor
765 host_cpu
766 host
767 build_os
768 build_vendor
769 build_cpu
770 build
771 INSTALL_CMD
772 PKG_CONFIG_LIBDIR
773 PKG_CONFIG_PATH
774 PKG_CONFIG
775 CHANGELOG_CMD
776 STRICT_CFLAGS
777 CWARNFLAGS
778 BASE_CFLAGS
779 am__fastdepCC_FALSE
780 am__fastdepCC_TRUE
781 CCDEPMODE
782 am__nodep
783 AMDEPBACKSLASH
784 AMDEP_FALSE
785 AMDEP_TRUE
786 am__include
787 DEPDIR
788 OBJEXT
789 EXEEXT
790 ac_ct_CC
791 CPPFLAGS
792 LDFLAGS
793 CFLAGS
794 CC
795 AM_BACKSLASH
796 AM_DEFAULT_VERBOSITY
797 AM_DEFAULT_V
798 AM_V
799 CSCOPE
800 ETAGS
801 CTAGS
802 am__untar
803 am__tar
804 AMTAR
805 am__leading_dot
806 SET_MAKE
807 AWK
808 mkdir_p
809 MKDIR_P
810 INSTALL_STRIP_PROGRAM
811 STRIP
812 install_sh
813 MAKEINFO
814 AUTOHEADER
815 AUTOMAKE
816 AUTOCONF
817 ACLOCAL
818 VERSION
819 PACKAGE
820 CYGPATH_W
821 am__isrc
822 INSTALL_DATA
823 INSTALL_SCRIPT
824 INSTALL_PROGRAM
825 target_alias
826 host_alias
827 build_alias
828 LIBS
829 ECHO_T
830 ECHO_N
831 ECHO_C
832 DEFS
833 mandir
834 localedir
835 libdir
836 psdir
837 pdfdir
838 dvidir
839 htmldir
840 infodir
841 docdir
842 oldincludedir
843 includedir
844 runstatedir
845 localstatedir
846 sharedstatedir
847 sysconfdir
848 datadir
849 datarootdir
850 libexecdir
851 sbindir
852 bindir
853 program_transform_name
854 prefix
855 exec_prefix
856 PACKAGE_URL
857 PACKAGE_BUGREPORT
858 PACKAGE_STRING
859 PACKAGE_VERSION
860 PACKAGE_TARNAME
861 PACKAGE_NAME
862 PATH_SEPARATOR
863 SHELL
864 am__quote'
865 ac_subst_files=''
866 ac_user_opts='
867 enable_option_checking
868 enable_silent_rules
869 enable_dependency_tracking
870 enable_selective_werror
871 enable_strict_compilation
872 enable_specs
873 with_xmlto
874 with_fop
875 with_xsltproc
876 with_python_sys_prefix
877 with_python_prefix
878 with_python_exec_prefix
879 enable_legacy
880 '
881 ac_precious_vars='build_alias
882 host_alias
883 target_alias
884 CC
885 CFLAGS
886 LDFLAGS
887 LIBS
888 CPPFLAGS
889 PKG_CONFIG
890 PKG_CONFIG_PATH
891 PKG_CONFIG_LIBDIR
892 XMLTO
893 FOP
894 XSLTPROC
895 PYTHON'
896
897
898 # Initialize some variables set by options.
899 ac_init_help=
900 ac_init_version=false
901 ac_unrecognized_opts=
902 ac_unrecognized_sep=
903 # The variables have the same names as the options, with
904 # dashes changed to underlines.
905 cache_file=/dev/null
906 exec_prefix=NONE
907 no_create=
908 no_recursion=
909 prefix=NONE
910 program_prefix=NONE
911 program_suffix=NONE
912 program_transform_name=s,x,x,
913 silent=
914 site=
915 srcdir=
916 verbose=
917 x_includes=NONE
918 x_libraries=NONE
919
920 # Installation directory options.
921 # These are left unexpanded so users can "make install exec_prefix=/foo"
922 # and all the variables that are supposed to be based on exec_prefix
923 # by default will actually change.
924 # Use braces instead of parens because sh, perl, etc. also accept them.
925 # (The list follows the same order as the GNU Coding Standards.)
926 bindir='${exec_prefix}/bin'
927 sbindir='${exec_prefix}/sbin'
928 libexecdir='${exec_prefix}/libexec'
929 datarootdir='${prefix}/share'
930 datadir='${datarootdir}'
931 sysconfdir='${prefix}/etc'
932 sharedstatedir='${prefix}/com'
933 localstatedir='${prefix}/var'
934 runstatedir='${localstatedir}/run'
935 includedir='${prefix}/include'
936 oldincludedir='/usr/include'
937 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
938 infodir='${datarootdir}/info'
939 htmldir='${docdir}'
940 dvidir='${docdir}'
941 pdfdir='${docdir}'
942 psdir='${docdir}'
943 libdir='${exec_prefix}/lib'
944 localedir='${datarootdir}/locale'
945 mandir='${datarootdir}/man'
946
947 ac_prev=
948 ac_dashdash=
949 for ac_option
950 do
951 # If the previous option needs an argument, assign it.
952 if test -n "$ac_prev"; then
953 eval $ac_prev=\$ac_option
954 ac_prev=
955 continue
956 fi
957
958 case $ac_option in
959 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 *=) ac_optarg= ;;
961 *) ac_optarg=yes ;;
962 esac
963
964 case $ac_dashdash$ac_option in
965 --)
966 ac_dashdash=yes ;;
967
968 -bindir | --bindir | --bindi | --bind | --bin | --bi)
969 ac_prev=bindir ;;
970 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971 bindir=$ac_optarg ;;
972
973 -build | --build | --buil | --bui | --bu)
974 ac_prev=build_alias ;;
975 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
976 build_alias=$ac_optarg ;;
977
978 -cache-file | --cache-file | --cache-fil | --cache-fi \
979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
980 ac_prev=cache_file ;;
981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
983 cache_file=$ac_optarg ;;
984
985 --config-cache | -C)
986 cache_file=config.cache ;;
987
988 -datadir | --datadir | --datadi | --datad)
989 ac_prev=datadir ;;
990 -datadir=* | --datadir=* | --datadi=* | --datad=*)
991 datadir=$ac_optarg ;;
992
993 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
994 | --dataroo | --dataro | --datar)
995 ac_prev=datarootdir ;;
996 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
997 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
998 datarootdir=$ac_optarg ;;
999
1000 -disable-* | --disable-*)
1001 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1005 ac_useropt_orig=$ac_useropt
1006 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1007 case $ac_user_opts in
1008 *"
1009 "enable_$ac_useropt"
1010 "*) ;;
1011 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1012 ac_unrecognized_sep=', ';;
1013 esac
1014 eval enable_$ac_useropt=no ;;
1015
1016 -docdir | --docdir | --docdi | --doc | --do)
1017 ac_prev=docdir ;;
1018 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019 docdir=$ac_optarg ;;
1020
1021 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1022 ac_prev=dvidir ;;
1023 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024 dvidir=$ac_optarg ;;
1025
1026 -enable-* | --enable-*)
1027 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1034 *"
1035 "enable_$ac_useropt"
1036 "*) ;;
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1039 esac
1040 eval enable_$ac_useropt=\$ac_optarg ;;
1041
1042 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044 | --exec | --exe | --ex)
1045 ac_prev=exec_prefix ;;
1046 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048 | --exec=* | --exe=* | --ex=*)
1049 exec_prefix=$ac_optarg ;;
1050
1051 -gas | --gas | --ga | --g)
1052 # Obsolete; use --with-gas.
1053 with_gas=yes ;;
1054
1055 -help | --help | --hel | --he | -h)
1056 ac_init_help=long ;;
1057 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058 ac_init_help=recursive ;;
1059 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060 ac_init_help=short ;;
1061
1062 -host | --host | --hos | --ho)
1063 ac_prev=host_alias ;;
1064 -host=* | --host=* | --hos=* | --ho=*)
1065 host_alias=$ac_optarg ;;
1066
1067 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068 ac_prev=htmldir ;;
1069 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070 | --ht=*)
1071 htmldir=$ac_optarg ;;
1072
1073 -includedir | --includedir | --includedi | --included | --include \
1074 | --includ | --inclu | --incl | --inc)
1075 ac_prev=includedir ;;
1076 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077 | --includ=* | --inclu=* | --incl=* | --inc=*)
1078 includedir=$ac_optarg ;;
1079
1080 -infodir | --infodir | --infodi | --infod | --info | --inf)
1081 ac_prev=infodir ;;
1082 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1083 infodir=$ac_optarg ;;
1084
1085 -libdir | --libdir | --libdi | --libd)
1086 ac_prev=libdir ;;
1087 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1088 libdir=$ac_optarg ;;
1089
1090 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091 | --libexe | --libex | --libe)
1092 ac_prev=libexecdir ;;
1093 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094 | --libexe=* | --libex=* | --libe=*)
1095 libexecdir=$ac_optarg ;;
1096
1097 -localedir | --localedir | --localedi | --localed | --locale)
1098 ac_prev=localedir ;;
1099 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100 localedir=$ac_optarg ;;
1101
1102 -localstatedir | --localstatedir | --localstatedi | --localstated \
1103 | --localstate | --localstat | --localsta | --localst | --locals)
1104 ac_prev=localstatedir ;;
1105 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1106 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1107 localstatedir=$ac_optarg ;;
1108
1109 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110 ac_prev=mandir ;;
1111 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1112 mandir=$ac_optarg ;;
1113
1114 -nfp | --nfp | --nf)
1115 # Obsolete; use --without-fp.
1116 with_fp=no ;;
1117
1118 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1119 | --no-cr | --no-c | -n)
1120 no_create=yes ;;
1121
1122 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124 no_recursion=yes ;;
1125
1126 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128 | --oldin | --oldi | --old | --ol | --o)
1129 ac_prev=oldincludedir ;;
1130 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1133 oldincludedir=$ac_optarg ;;
1134
1135 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136 ac_prev=prefix ;;
1137 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1138 prefix=$ac_optarg ;;
1139
1140 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141 | --program-pre | --program-pr | --program-p)
1142 ac_prev=program_prefix ;;
1143 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1145 program_prefix=$ac_optarg ;;
1146
1147 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148 | --program-suf | --program-su | --program-s)
1149 ac_prev=program_suffix ;;
1150 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1152 program_suffix=$ac_optarg ;;
1153
1154 -program-transform-name | --program-transform-name \
1155 | --program-transform-nam | --program-transform-na \
1156 | --program-transform-n | --program-transform- \
1157 | --program-transform | --program-transfor \
1158 | --program-transfo | --program-transf \
1159 | --program-trans | --program-tran \
1160 | --progr-tra | --program-tr | --program-t)
1161 ac_prev=program_transform_name ;;
1162 -program-transform-name=* | --program-transform-name=* \
1163 | --program-transform-nam=* | --program-transform-na=* \
1164 | --program-transform-n=* | --program-transform-=* \
1165 | --program-transform=* | --program-transfor=* \
1166 | --program-transfo=* | --program-transf=* \
1167 | --program-trans=* | --program-tran=* \
1168 | --progr-tra=* | --program-tr=* | --program-t=*)
1169 program_transform_name=$ac_optarg ;;
1170
1171 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172 ac_prev=pdfdir ;;
1173 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174 pdfdir=$ac_optarg ;;
1175
1176 -psdir | --psdir | --psdi | --psd | --ps)
1177 ac_prev=psdir ;;
1178 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179 psdir=$ac_optarg ;;
1180
1181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182 | -silent | --silent | --silen | --sile | --sil)
1183 silent=yes ;;
1184
1185 -runstatedir | --runstatedir | --runstatedi | --runstated \
1186 | --runstate | --runstat | --runsta | --runst | --runs \
1187 | --run | --ru | --r)
1188 ac_prev=runstatedir ;;
1189 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1190 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1191 | --run=* | --ru=* | --r=*)
1192 runstatedir=$ac_optarg ;;
1193
1194 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1195 ac_prev=sbindir ;;
1196 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1197 | --sbi=* | --sb=*)
1198 sbindir=$ac_optarg ;;
1199
1200 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1201 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1202 | --sharedst | --shareds | --shared | --share | --shar \
1203 | --sha | --sh)
1204 ac_prev=sharedstatedir ;;
1205 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1206 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1207 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1208 | --sha=* | --sh=*)
1209 sharedstatedir=$ac_optarg ;;
1210
1211 -site | --site | --sit)
1212 ac_prev=site ;;
1213 -site=* | --site=* | --sit=*)
1214 site=$ac_optarg ;;
1215
1216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1217 ac_prev=srcdir ;;
1218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1219 srcdir=$ac_optarg ;;
1220
1221 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1222 | --syscon | --sysco | --sysc | --sys | --sy)
1223 ac_prev=sysconfdir ;;
1224 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1225 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1226 sysconfdir=$ac_optarg ;;
1227
1228 -target | --target | --targe | --targ | --tar | --ta | --t)
1229 ac_prev=target_alias ;;
1230 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1231 target_alias=$ac_optarg ;;
1232
1233 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1234 verbose=yes ;;
1235
1236 -version | --version | --versio | --versi | --vers | -V)
1237 ac_init_version=: ;;
1238
1239 -with-* | --with-*)
1240 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243 as_fn_error $? "invalid package name: \`$ac_useropt'"
1244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1247 *"
1248 "with_$ac_useropt"
1249 "*) ;;
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1252 esac
1253 eval with_$ac_useropt=\$ac_optarg ;;
1254
1255 -without-* | --without-*)
1256 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259 as_fn_error $? "invalid package name: \`$ac_useropt'"
1260 ac_useropt_orig=$ac_useropt
1261 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1263 *"
1264 "with_$ac_useropt"
1265 "*) ;;
1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1267 ac_unrecognized_sep=', ';;
1268 esac
1269 eval with_$ac_useropt=no ;;
1270
1271 --x)
1272 # Obsolete; use --with-x.
1273 with_x=yes ;;
1274
1275 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1276 | --x-incl | --x-inc | --x-in | --x-i)
1277 ac_prev=x_includes ;;
1278 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1279 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1280 x_includes=$ac_optarg ;;
1281
1282 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1283 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1284 ac_prev=x_libraries ;;
1285 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1286 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1287 x_libraries=$ac_optarg ;;
1288
1289 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1290 Try \`$0 --help' for more information"
1291 ;;
1292
1293 *=*)
1294 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1295 # Reject names that are not valid shell variable names.
1296 case $ac_envvar in #(
1297 '' | [0-9]* | *[!_$as_cr_alnum]* )
1298 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1299 esac
1300 eval $ac_envvar=\$ac_optarg
1301 export $ac_envvar ;;
1302
1303 *)
1304 # FIXME: should be removed in autoconf 3.0.
1305 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1306 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1307 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1308 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1309 ;;
1310
1311 esac
1312 done
1313
1314 if test -n "$ac_prev"; then
1315 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1316 as_fn_error $? "missing argument to $ac_option"
1317 fi
1318
1319 if test -n "$ac_unrecognized_opts"; then
1320 case $enable_option_checking in
1321 no) ;;
1322 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1323 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1324 esac
1325 fi
1326
1327 # Check all directory arguments for consistency.
1328 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1329 datadir sysconfdir sharedstatedir localstatedir includedir \
1330 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1331 libdir localedir mandir runstatedir
1332 do
1333 eval ac_val=\$$ac_var
1334 # Remove trailing slashes.
1335 case $ac_val in
1336 */ )
1337 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1338 eval $ac_var=\$ac_val;;
1339 esac
1340 # Be sure to have absolute directory names.
1341 case $ac_val in
1342 [\\/$]* | ?:[\\/]* ) continue;;
1343 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1344 esac
1345 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1346 done
1347
1348 # There might be people who depend on the old broken behavior: `$host'
1349 # used to hold the argument of --host etc.
1350 # FIXME: To remove some day.
1351 build=$build_alias
1352 host=$host_alias
1353 target=$target_alias
1354
1355 # FIXME: To remove some day.
1356 if test "x$host_alias" != x; then
1357 if test "x$build_alias" = x; then
1358 cross_compiling=maybe
1359 elif test "x$build_alias" != "x$host_alias"; then
1360 cross_compiling=yes
1361 fi
1362 fi
1363
1364 ac_tool_prefix=
1365 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1366
1367 test "$silent" = yes && exec 6>/dev/null
1368
1369
1370 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1371 ac_ls_di=`ls -di .` &&
1372 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1373 as_fn_error $? "working directory cannot be determined"
1374 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1375 as_fn_error $? "pwd does not report name of working directory"
1376
1377
1378 # Find the source files, if location was not specified.
1379 if test -z "$srcdir"; then
1380 ac_srcdir_defaulted=yes
1381 # Try the directory containing this script, then the parent directory.
1382 ac_confdir=`$as_dirname -- "$as_myself" ||
1383 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1384 X"$as_myself" : 'X\(//\)[^/]' \| \
1385 X"$as_myself" : 'X\(//\)$' \| \
1386 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1387 printf "%s\n" X"$as_myself" |
1388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1389 s//\1/
1390 q
1391 }
1392 /^X\(\/\/\)[^/].*/{
1393 s//\1/
1394 q
1395 }
1396 /^X\(\/\/\)$/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\).*/{
1401 s//\1/
1402 q
1403 }
1404 s/.*/./; q'`
1405 srcdir=$ac_confdir
1406 if test ! -r "$srcdir/$ac_unique_file"; then
1407 srcdir=..
1408 fi
1409 else
1410 ac_srcdir_defaulted=no
1411 fi
1412 if test ! -r "$srcdir/$ac_unique_file"; then
1413 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1414 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1415 fi
1416 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1417 ac_abs_confdir=`(
1418 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1419 pwd)`
1420 # When building in place, set srcdir=.
1421 if test "$ac_abs_confdir" = "$ac_pwd"; then
1422 srcdir=.
1423 fi
1424 # Remove unnecessary trailing slashes from srcdir.
1425 # Double slashes in file names in object file debugging info
1426 # mess up M-x gdb in Emacs.
1427 case $srcdir in
1428 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1429 esac
1430 for ac_var in $ac_precious_vars; do
1431 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1432 eval ac_env_${ac_var}_value=\$${ac_var}
1433 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1435 done
1436
1437 #
1438 # Report the --help message.
1439 #
1440 if test "$ac_init_help" = "long"; then
1441 # Omit some internal or obsolete options to make the list less imposing.
1442 # This message is too long to be a string in the A/UX 3.1 sh.
1443 cat <<_ACEOF
1444 \`configure' configures xorgproto 2022.1 to adapt to many kinds of systems.
1445
1446 Usage: $0 [OPTION]... [VAR=VALUE]...
1447
1448 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1449 VAR=VALUE. See below for descriptions of some of the useful variables.
1450
1451 Defaults for the options are specified in brackets.
1452
1453 Configuration:
1454 -h, --help display this help and exit
1455 --help=short display options specific to this package
1456 --help=recursive display the short help of all the included packages
1457 -V, --version display version information and exit
1458 -q, --quiet, --silent do not print \`checking ...' messages
1459 --cache-file=FILE cache test results in FILE [disabled]
1460 -C, --config-cache alias for \`--cache-file=config.cache'
1461 -n, --no-create do not create output files
1462 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1463
1464 Installation directories:
1465 --prefix=PREFIX install architecture-independent files in PREFIX
1466 [$ac_default_prefix]
1467 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1468 [PREFIX]
1469
1470 By default, \`make install' will install all the files in
1471 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1472 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1473 for instance \`--prefix=\$HOME'.
1474
1475 For better control, use the options below.
1476
1477 Fine tuning of the installation directories:
1478 --bindir=DIR user executables [EPREFIX/bin]
1479 --sbindir=DIR system admin executables [EPREFIX/sbin]
1480 --libexecdir=DIR program executables [EPREFIX/libexec]
1481 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1482 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1483 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1484 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1485 --libdir=DIR object code libraries [EPREFIX/lib]
1486 --includedir=DIR C header files [PREFIX/include]
1487 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1488 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1489 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1490 --infodir=DIR info documentation [DATAROOTDIR/info]
1491 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1492 --mandir=DIR man documentation [DATAROOTDIR/man]
1493 --docdir=DIR documentation root [DATAROOTDIR/doc/xorgproto]
1494 --htmldir=DIR html documentation [DOCDIR]
1495 --dvidir=DIR dvi documentation [DOCDIR]
1496 --pdfdir=DIR pdf documentation [DOCDIR]
1497 --psdir=DIR ps documentation [DOCDIR]
1498 _ACEOF
1499
1500 cat <<\_ACEOF
1501
1502 Program names:
1503 --program-prefix=PREFIX prepend PREFIX to installed program names
1504 --program-suffix=SUFFIX append SUFFIX to installed program names
1505 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1506
1507 System types:
1508 --build=BUILD configure for building on BUILD [guessed]
1509 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1510 _ACEOF
1511 fi
1512
1513 if test -n "$ac_init_help"; then
1514 case $ac_init_help in
1515 short | recursive ) echo "Configuration of xorgproto 2022.1:";;
1516 esac
1517 cat <<\_ACEOF
1518
1519 Optional Features:
1520 --disable-option-checking ignore unrecognized --enable/--with options
1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1523 --enable-silent-rules less verbose build output (undo: "make V=1")
1524 --disable-silent-rules verbose build output (undo: "make V=0")
1525 --enable-dependency-tracking
1526 do not reject slow dependency extractors
1527 --disable-dependency-tracking
1528 speeds up one-time build
1529 --disable-selective-werror
1530 Turn off selective compiler errors. (default:
1531 enabled)
1532 --enable-strict-compilation
1533 Enable all warnings from compiler and make them
1534 errors (default: disabled)
1535 --enable-specs Enable building the specs (default: yes)
1536 --enable-legacy Install legacy protocol headers (default: false)
1537
1538 Optional Packages:
1539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1541 --with-xmlto Use xmlto to regenerate documentation (default:
1542 auto)
1543 --with-fop Use fop to regenerate documentation (default: auto)
1544 --with-xsltproc Use xsltproc for the transformation of XML documents
1545 (default: auto)
1546 --with-python-sys-prefix
1547 use Python's sys.prefix and sys.exec_prefix values
1548 --with-python_prefix override the default PYTHON_PREFIX
1549 --with-python_exec_prefix
1550 override the default PYTHON_EXEC_PREFIX
1551
1552 Some influential environment variables:
1553 CC C compiler command
1554 CFLAGS C compiler flags
1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1556 nonstandard directory <lib dir>
1557 LIBS libraries to pass to the linker, e.g. -l<library>
1558 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1559 you have headers in a nonstandard directory <include dir>
1560 PKG_CONFIG path to pkg-config utility
1561 PKG_CONFIG_PATH
1562 directories to add to pkg-config's search path
1563 PKG_CONFIG_LIBDIR
1564 path overriding pkg-config's built-in search path
1565 XMLTO Path to xmlto command
1566 FOP Path to fop command
1567 XSLTPROC Path to xsltproc command
1568 PYTHON the Python interpreter
1569
1570 Use these variables to override the choices made by `configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1572
1573 Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>.
1574 _ACEOF
1575 ac_status=$?
1576 fi
1577
1578 if test "$ac_init_help" = "recursive"; then
1579 # If there are subdirs, report their specific --help.
1580 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581 test -d "$ac_dir" ||
1582 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1583 continue
1584 ac_builddir=.
1585
1586 case "$ac_dir" in
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *)
1589 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1590 # A ".." for each directory in $ac_dir_suffix.
1591 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592 case $ac_top_builddir_sub in
1593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595 esac ;;
1596 esac
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1601
1602 case $srcdir in
1603 .) # We are building in place.
1604 ac_srcdir=.
1605 ac_top_srcdir=$ac_top_builddir_sub
1606 ac_abs_top_srcdir=$ac_pwd ;;
1607 [\\/]* | ?:[\\/]* ) # Absolute name.
1608 ac_srcdir=$srcdir$ac_dir_suffix;
1609 ac_top_srcdir=$srcdir
1610 ac_abs_top_srcdir=$srcdir ;;
1611 *) # Relative name.
1612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613 ac_top_srcdir=$ac_top_build_prefix$srcdir
1614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615 esac
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617
1618 cd "$ac_dir" || { ac_status=$?; continue; }
1619 # Check for configure.gnu first; this name is used for a wrapper for
1620 # Metaconfig's "Configure" on case-insensitive file systems.
1621 if test -f "$ac_srcdir/configure.gnu"; then
1622 echo &&
1623 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624 elif test -f "$ac_srcdir/configure"; then
1625 echo &&
1626 $SHELL "$ac_srcdir/configure" --help=recursive
1627 else
1628 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629 fi || ac_status=$?
1630 cd "$ac_pwd" || { ac_status=$?; break; }
1631 done
1632 fi
1633
1634 test -n "$ac_init_help" && exit $ac_status
1635 if $ac_init_version; then
1636 cat <<\_ACEOF
1637 xorgproto configure 2022.1
1638 generated by GNU Autoconf 2.71
1639
1640 Copyright (C) 2021 Free Software Foundation, Inc.
1641 This configure script is free software; the Free Software Foundation
1642 gives unlimited permission to copy, distribute and modify it.
1643 _ACEOF
1644 exit
1645 fi
1646
1647 ## ------------------------ ##
1648 ## Autoconf initialization. ##
1649 ## ------------------------ ##
1650
1651 # ac_fn_c_try_compile LINENO
1652 # --------------------------
1653 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_compile ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 rm -f conftest.$ac_objext conftest.beam
1658 if { { ac_try="$ac_compile"
1659 case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 printf "%s\n" "$ac_try_echo"; } >&5
1665 (eval "$ac_compile") 2>conftest.err
1666 ac_status=$?
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1671 fi
1672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } && {
1674 test -z "$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1676 } && test -s conftest.$ac_objext
1677 then :
1678 ac_retval=0
1679 else $as_nop
1680 printf "%s\n" "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=1
1684 fi
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
1687
1688 } # ac_fn_c_try_compile
1689
1690 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1691 # ------------------------------------------------------------------
1692 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1693 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1694 ac_fn_check_decl ()
1695 {
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 as_decl_name=`echo $2|sed 's/ *(.*//'`
1698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1699 printf %s "checking whether $as_decl_name is declared... " >&6; }
1700 if eval test \${$3+y}
1701 then :
1702 printf %s "(cached) " >&6
1703 else $as_nop
1704 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1705 eval ac_save_FLAGS=\$$6
1706 as_fn_append $6 " $5"
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h. */
1709 $4
1710 int
1711 main (void)
1712 {
1713 #ifndef $as_decl_name
1714 #ifdef __cplusplus
1715 (void) $as_decl_use;
1716 #else
1717 (void) $as_decl_name;
1718 #endif
1719 #endif
1720
1721 ;
1722 return 0;
1723 }
1724 _ACEOF
1725 if ac_fn_c_try_compile "$LINENO"
1726 then :
1727 eval "$3=yes"
1728 else $as_nop
1729 eval "$3=no"
1730 fi
1731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1732 eval $6=\$ac_save_FLAGS
1733
1734 fi
1735 eval ac_res=\$$3
1736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 printf "%s\n" "$ac_res" >&6; }
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739
1740 } # ac_fn_check_decl
1741
1742 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1743 # -------------------------------------------------------
1744 # Tests whether HEADER exists and can be compiled using the include files in
1745 # INCLUDES, setting the cache variable VAR accordingly.
1746 ac_fn_c_check_header_compile ()
1747 {
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 printf %s "checking for $2... " >&6; }
1751 if eval test \${$3+y}
1752 then :
1753 printf %s "(cached) " >&6
1754 else $as_nop
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1757 $4
1758 #include <$2>
1759 _ACEOF
1760 if ac_fn_c_try_compile "$LINENO"
1761 then :
1762 eval "$3=yes"
1763 else $as_nop
1764 eval "$3=no"
1765 fi
1766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1767 fi
1768 eval ac_res=\$$3
1769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 printf "%s\n" "$ac_res" >&6; }
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772
1773 } # ac_fn_c_check_header_compile
1774
1775 # ac_fn_c_try_link LINENO
1776 # -----------------------
1777 # Try to link conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_c_try_link ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1782 if { { ac_try="$ac_link"
1783 case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 printf "%s\n" "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1795 fi
1796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest$ac_exeext && {
1801 test "$cross_compiling" = yes ||
1802 test -x conftest$ac_exeext
1803 }
1804 then :
1805 ac_retval=0
1806 else $as_nop
1807 printf "%s\n" "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1809
1810 ac_retval=1
1811 fi
1812 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1813 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1814 # interfere with the next link command; also delete a directory that is
1815 # left behind by Apple's compiler. We do this before executing the actions.
1816 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 as_fn_set_status $ac_retval
1819
1820 } # ac_fn_c_try_link
1821
1822 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1823 # ----------------------------------------------------
1824 # Tries to find if the field MEMBER exists in type AGGR, after including
1825 # INCLUDES, setting cache variable VAR accordingly.
1826 ac_fn_c_check_member ()
1827 {
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1830 printf %s "checking for $2.$3... " >&6; }
1831 if eval test \${$4+y}
1832 then :
1833 printf %s "(cached) " >&6
1834 else $as_nop
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1837 $5
1838 int
1839 main (void)
1840 {
1841 static $2 ac_aggr;
1842 if (ac_aggr.$3)
1843 return 0;
1844 ;
1845 return 0;
1846 }
1847 _ACEOF
1848 if ac_fn_c_try_compile "$LINENO"
1849 then :
1850 eval "$4=yes"
1851 else $as_nop
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1854 $5
1855 int
1856 main (void)
1857 {
1858 static $2 ac_aggr;
1859 if (sizeof ac_aggr.$3)
1860 return 0;
1861 ;
1862 return 0;
1863 }
1864 _ACEOF
1865 if ac_fn_c_try_compile "$LINENO"
1866 then :
1867 eval "$4=yes"
1868 else $as_nop
1869 eval "$4=no"
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1872 fi
1873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1874 fi
1875 eval ac_res=\$$4
1876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 printf "%s\n" "$ac_res" >&6; }
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879
1880 } # ac_fn_c_check_member
1881 ac_configure_args_raw=
1882 for ac_arg
1883 do
1884 case $ac_arg in
1885 *\'*)
1886 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1887 esac
1888 as_fn_append ac_configure_args_raw " '$ac_arg'"
1889 done
1890
1891 case $ac_configure_args_raw in
1892 *$as_nl*)
1893 ac_safe_unquote= ;;
1894 *)
1895 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1896 ac_unsafe_a="$ac_unsafe_z#~"
1897 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1898 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1899 esac
1900
1901 cat >config.log <<_ACEOF
1902 This file contains any messages produced by compilers while
1903 running configure, to aid debugging if configure makes a mistake.
1904
1905 It was created by xorgproto $as_me 2022.1, which was
1906 generated by GNU Autoconf 2.71. Invocation command line was
1907
1908 $ $0$ac_configure_args_raw
1909
1910 _ACEOF
1911 exec 5>>config.log
1912 {
1913 cat <<_ASUNAME
1914 ## --------- ##
1915 ## Platform. ##
1916 ## --------- ##
1917
1918 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1919 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1920 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1921 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1922 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1923
1924 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1925 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1926
1927 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1928 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1929 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1930 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1931 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1932 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1933 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1934
1935 _ASUNAME
1936
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1939 do
1940 IFS=$as_save_IFS
1941 case $as_dir in #(((
1942 '') as_dir=./ ;;
1943 */) ;;
1944 *) as_dir=$as_dir/ ;;
1945 esac
1946 printf "%s\n" "PATH: $as_dir"
1947 done
1948 IFS=$as_save_IFS
1949
1950 } >&5
1951
1952 cat >&5 <<_ACEOF
1953
1954
1955 ## ----------- ##
1956 ## Core tests. ##
1957 ## ----------- ##
1958
1959 _ACEOF
1960
1961
1962 # Keep a trace of the command line.
1963 # Strip out --no-create and --no-recursion so they do not pile up.
1964 # Strip out --silent because we don't want to record it for future runs.
1965 # Also quote any args containing shell meta-characters.
1966 # Make two passes to allow for proper duplicate-argument suppression.
1967 ac_configure_args=
1968 ac_configure_args0=
1969 ac_configure_args1=
1970 ac_must_keep_next=false
1971 for ac_pass in 1 2
1972 do
1973 for ac_arg
1974 do
1975 case $ac_arg in
1976 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1977 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1978 | -silent | --silent | --silen | --sile | --sil)
1979 continue ;;
1980 *\'*)
1981 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1982 esac
1983 case $ac_pass in
1984 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1985 2)
1986 as_fn_append ac_configure_args1 " '$ac_arg'"
1987 if test $ac_must_keep_next = true; then
1988 ac_must_keep_next=false # Got value, back to normal.
1989 else
1990 case $ac_arg in
1991 *=* | --config-cache | -C | -disable-* | --disable-* \
1992 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1993 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1994 | -with-* | --with-* | -without-* | --without-* | --x)
1995 case "$ac_configure_args0 " in
1996 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1997 esac
1998 ;;
1999 -* ) ac_must_keep_next=true ;;
2000 esac
2001 fi
2002 as_fn_append ac_configure_args " '$ac_arg'"
2003 ;;
2004 esac
2005 done
2006 done
2007 { ac_configure_args0=; unset ac_configure_args0;}
2008 { ac_configure_args1=; unset ac_configure_args1;}
2009
2010 # When interrupted or exit'd, cleanup temporary files, and complete
2011 # config.log. We remove comments because anyway the quotes in there
2012 # would cause problems or look ugly.
2013 # WARNING: Use '\'' to represent an apostrophe within the trap.
2014 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2015 trap 'exit_status=$?
2016 # Sanitize IFS.
2017 IFS=" "" $as_nl"
2018 # Save into config.log some information that might help in debugging.
2019 {
2020 echo
2021
2022 printf "%s\n" "## ---------------- ##
2023 ## Cache variables. ##
2024 ## ---------------- ##"
2025 echo
2026 # The following way of writing the cache mishandles newlines in values,
2027 (
2028 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2029 eval ac_val=\$$ac_var
2030 case $ac_val in #(
2031 *${as_nl}*)
2032 case $ac_var in #(
2033 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2034 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2035 esac
2036 case $ac_var in #(
2037 _ | IFS | as_nl) ;; #(
2038 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2039 *) { eval $ac_var=; unset $ac_var;} ;;
2040 esac ;;
2041 esac
2042 done
2043 (set) 2>&1 |
2044 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2045 *${as_nl}ac_space=\ *)
2046 sed -n \
2047 "s/'\''/'\''\\\\'\'''\''/g;
2048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2049 ;; #(
2050 *)
2051 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2052 ;;
2053 esac |
2054 sort
2055 )
2056 echo
2057
2058 printf "%s\n" "## ----------------- ##
2059 ## Output variables. ##
2060 ## ----------------- ##"
2061 echo
2062 for ac_var in $ac_subst_vars
2063 do
2064 eval ac_val=\$$ac_var
2065 case $ac_val in
2066 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067 esac
2068 printf "%s\n" "$ac_var='\''$ac_val'\''"
2069 done | sort
2070 echo
2071
2072 if test -n "$ac_subst_files"; then
2073 printf "%s\n" "## ------------------- ##
2074 ## File substitutions. ##
2075 ## ------------------- ##"
2076 echo
2077 for ac_var in $ac_subst_files
2078 do
2079 eval ac_val=\$$ac_var
2080 case $ac_val in
2081 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2082 esac
2083 printf "%s\n" "$ac_var='\''$ac_val'\''"
2084 done | sort
2085 echo
2086 fi
2087
2088 if test -s confdefs.h; then
2089 printf "%s\n" "## ----------- ##
2090 ## confdefs.h. ##
2091 ## ----------- ##"
2092 echo
2093 cat confdefs.h
2094 echo
2095 fi
2096 test "$ac_signal" != 0 &&
2097 printf "%s\n" "$as_me: caught signal $ac_signal"
2098 printf "%s\n" "$as_me: exit $exit_status"
2099 } >&5
2100 rm -f core *.core core.conftest.* &&
2101 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2102 exit $exit_status
2103 ' 0
2104 for ac_signal in 1 2 13 15; do
2105 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2106 done
2107 ac_signal=0
2108
2109 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2110 rm -f -r conftest* confdefs.h
2111
2112 printf "%s\n" "/* confdefs.h */" > confdefs.h
2113
2114 # Predefined preprocessor variables.
2115
2116 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2117
2118 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2119
2120 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2121
2122 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2123
2124 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2125
2126 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2127
2128
2129 # Let the site file select an alternate cache file if it wants to.
2130 # Prefer an explicitly selected file to automatically selected ones.
2131 if test -n "$CONFIG_SITE"; then
2132 ac_site_files="$CONFIG_SITE"
2133 elif test "x$prefix" != xNONE; then
2134 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2135 else
2136 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2137 fi
2138
2139 for ac_site_file in $ac_site_files
2140 do
2141 case $ac_site_file in #(
2142 */*) :
2143 ;; #(
2144 *) :
2145 ac_site_file=./$ac_site_file ;;
2146 esac
2147 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2149 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2150 sed 's/^/| /' "$ac_site_file" >&5
2151 . "$ac_site_file" \
2152 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2153 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2154 as_fn_error $? "failed to load site script $ac_site_file
2155 See \`config.log' for more details" "$LINENO" 5; }
2156 fi
2157 done
2158
2159 if test -r "$cache_file"; then
2160 # Some versions of bash will fail to source /dev/null (special files
2161 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2162 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2164 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2165 case $cache_file in
2166 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2167 *) . "./$cache_file";;
2168 esac
2169 fi
2170 else
2171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2172 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2173 >$cache_file
2174 fi
2175
2176 # Test code for whether the C compiler supports C89 (global declarations)
2177 ac_c_conftest_c89_globals='
2178 /* Does the compiler advertise C89 conformance?
2179 Do not test the value of __STDC__, because some compilers set it to 0
2180 while being otherwise adequately conformant. */
2181 #if !defined __STDC__
2182 # error "Compiler does not advertise C89 conformance"
2183 #endif
2184
2185 #include <stddef.h>
2186 #include <stdarg.h>
2187 struct stat;
2188 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2189 struct buf { int x; };
2190 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2191 static char *e (p, i)
2192 char **p;
2193 int i;
2194 {
2195 return p[i];
2196 }
2197 static char *f (char * (*g) (char **, int), char **p, ...)
2198 {
2199 char *s;
2200 va_list v;
2201 va_start (v,p);
2202 s = g (p, va_arg (v,int));
2203 va_end (v);
2204 return s;
2205 }
2206
2207 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2208 function prototypes and stuff, but not \xHH hex character constants.
2209 These do not provoke an error unfortunately, instead are silently treated
2210 as an "x". The following induces an error, until -std is added to get
2211 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2212 array size at least. It is necessary to write \x00 == 0 to get something
2213 that is true only with -std. */
2214 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2215
2216 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2217 inside strings and character constants. */
2218 #define FOO(x) '\''x'\''
2219 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2220
2221 int test (int i, double x);
2222 struct s1 {int (*f) (int a);};
2223 struct s2 {int (*f) (double a);};
2224 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2225 int, int);'
2226
2227 # Test code for whether the C compiler supports C89 (body of main).
2228 ac_c_conftest_c89_main='
2229 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2230 '
2231
2232 # Test code for whether the C compiler supports C99 (global declarations)
2233 ac_c_conftest_c99_globals='
2234 // Does the compiler advertise C99 conformance?
2235 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2236 # error "Compiler does not advertise C99 conformance"
2237 #endif
2238
2239 #include <stdbool.h>
2240 extern int puts (const char *);
2241 extern int printf (const char *, ...);
2242 extern int dprintf (int, const char *, ...);
2243 extern void *malloc (size_t);
2244
2245 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2246 // dprintf is used instead of fprintf to avoid needing to declare
2247 // FILE and stderr.
2248 #define debug(...) dprintf (2, __VA_ARGS__)
2249 #define showlist(...) puts (#__VA_ARGS__)
2250 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2251 static void
2252 test_varargs_macros (void)
2253 {
2254 int x = 1234;
2255 int y = 5678;
2256 debug ("Flag");
2257 debug ("X = %d\n", x);
2258 showlist (The first, second, and third items.);
2259 report (x>y, "x is %d but y is %d", x, y);
2260 }
2261
2262 // Check long long types.
2263 #define BIG64 18446744073709551615ull
2264 #define BIG32 4294967295ul
2265 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2266 #if !BIG_OK
2267 #error "your preprocessor is broken"
2268 #endif
2269 #if BIG_OK
2270 #else
2271 #error "your preprocessor is broken"
2272 #endif
2273 static long long int bignum = -9223372036854775807LL;
2274 static unsigned long long int ubignum = BIG64;
2275
2276 struct incomplete_array
2277 {
2278 int datasize;
2279 double data[];
2280 };
2281
2282 struct named_init {
2283 int number;
2284 const wchar_t *name;
2285 double average;
2286 };
2287
2288 typedef const char *ccp;
2289
2290 static inline int
2291 test_restrict (ccp restrict text)
2292 {
2293 // See if C++-style comments work.
2294 // Iterate through items via the restricted pointer.
2295 // Also check for declarations in for loops.
2296 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2297 continue;
2298 return 0;
2299 }
2300
2301 // Check varargs and va_copy.
2302 static bool
2303 test_varargs (const char *format, ...)
2304 {
2305 va_list args;
2306 va_start (args, format);
2307 va_list args_copy;
2308 va_copy (args_copy, args);
2309
2310 const char *str = "";
2311 int number = 0;
2312 float fnumber = 0;
2313
2314 while (*format)
2315 {
2316 switch (*format++)
2317 {
2318 case '\''s'\'': // string
2319 str = va_arg (args_copy, const char *);
2320 break;
2321 case '\''d'\'': // int
2322 number = va_arg (args_copy, int);
2323 break;
2324 case '\''f'\'': // float
2325 fnumber = va_arg (args_copy, double);
2326 break;
2327 default:
2328 break;
2329 }
2330 }
2331 va_end (args_copy);
2332 va_end (args);
2333
2334 return *str && number && fnumber;
2335 }
2336 '
2337
2338 # Test code for whether the C compiler supports C99 (body of main).
2339 ac_c_conftest_c99_main='
2340 // Check bool.
2341 _Bool success = false;
2342 success |= (argc != 0);
2343
2344 // Check restrict.
2345 if (test_restrict ("String literal") == 0)
2346 success = true;
2347 char *restrict newvar = "Another string";
2348
2349 // Check varargs.
2350 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2351 test_varargs_macros ();
2352
2353 // Check flexible array members.
2354 struct incomplete_array *ia =
2355 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2356 ia->datasize = 10;
2357 for (int i = 0; i < ia->datasize; ++i)
2358 ia->data[i] = i * 1.234;
2359
2360 // Check named initializers.
2361 struct named_init ni = {
2362 .number = 34,
2363 .name = L"Test wide string",
2364 .average = 543.34343,
2365 };
2366
2367 ni.number = 58;
2368
2369 int dynamic_array[ni.number];
2370 dynamic_array[0] = argv[0][0];
2371 dynamic_array[ni.number - 1] = 543;
2372
2373 // work around unused variable warnings
2374 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2375 || dynamic_array[ni.number - 1] != 543);
2376 '
2377
2378 # Test code for whether the C compiler supports C11 (global declarations)
2379 ac_c_conftest_c11_globals='
2380 // Does the compiler advertise C11 conformance?
2381 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2382 # error "Compiler does not advertise C11 conformance"
2383 #endif
2384
2385 // Check _Alignas.
2386 char _Alignas (double) aligned_as_double;
2387 char _Alignas (0) no_special_alignment;
2388 extern char aligned_as_int;
2389 char _Alignas (0) _Alignas (int) aligned_as_int;
2390
2391 // Check _Alignof.
2392 enum
2393 {
2394 int_alignment = _Alignof (int),
2395 int_array_alignment = _Alignof (int[100]),
2396 char_alignment = _Alignof (char)
2397 };
2398 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2399
2400 // Check _Noreturn.
2401 int _Noreturn does_not_return (void) { for (;;) continue; }
2402
2403 // Check _Static_assert.
2404 struct test_static_assert
2405 {
2406 int x;
2407 _Static_assert (sizeof (int) <= sizeof (long int),
2408 "_Static_assert does not work in struct");
2409 long int y;
2410 };
2411
2412 // Check UTF-8 literals.
2413 #define u8 syntax error!
2414 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2415
2416 // Check duplicate typedefs.
2417 typedef long *long_ptr;
2418 typedef long int *long_ptr;
2419 typedef long_ptr long_ptr;
2420
2421 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2422 struct anonymous
2423 {
2424 union {
2425 struct { int i; int j; };
2426 struct { int k; long int l; } w;
2427 };
2428 int m;
2429 } v1;
2430 '
2431
2432 # Test code for whether the C compiler supports C11 (body of main).
2433 ac_c_conftest_c11_main='
2434 _Static_assert ((offsetof (struct anonymous, i)
2435 == offsetof (struct anonymous, w.k)),
2436 "Anonymous union alignment botch");
2437 v1.i = 2;
2438 v1.w.k = 5;
2439 ok |= v1.i != 5;
2440 '
2441
2442 # Test code for whether the C compiler supports C11 (complete).
2443 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2444 ${ac_c_conftest_c99_globals}
2445 ${ac_c_conftest_c11_globals}
2446
2447 int
2448 main (int argc, char **argv)
2449 {
2450 int ok = 0;
2451 ${ac_c_conftest_c89_main}
2452 ${ac_c_conftest_c99_main}
2453 ${ac_c_conftest_c11_main}
2454 return ok;
2455 }
2456 "
2457
2458 # Test code for whether the C compiler supports C99 (complete).
2459 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2460 ${ac_c_conftest_c99_globals}
2461
2462 int
2463 main (int argc, char **argv)
2464 {
2465 int ok = 0;
2466 ${ac_c_conftest_c89_main}
2467 ${ac_c_conftest_c99_main}
2468 return ok;
2469 }
2470 "
2471
2472 # Test code for whether the C compiler supports C89 (complete).
2473 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2474
2475 int
2476 main (int argc, char **argv)
2477 {
2478 int ok = 0;
2479 ${ac_c_conftest_c89_main}
2480 return ok;
2481 }
2482 "
2483
2484 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2485 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2486 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2487 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2488 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2489 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2490 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2491 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2492 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2493
2494 # Auxiliary files required by this configure script.
2495 ac_aux_files="config.guess config.sub compile missing install-sh"
2496
2497 # Locations in which to look for auxiliary files.
2498 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2499
2500 # Search for a directory containing all of the required auxiliary files,
2501 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2502 # If we don't find one directory that contains all the files we need,
2503 # we report the set of missing files from the *first* directory in
2504 # $ac_aux_dir_candidates and give up.
2505 ac_missing_aux_files=""
2506 ac_first_candidate=:
2507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 as_found=false
2510 for as_dir in $ac_aux_dir_candidates
2511 do
2512 IFS=$as_save_IFS
2513 case $as_dir in #(((
2514 '') as_dir=./ ;;
2515 */) ;;
2516 *) as_dir=$as_dir/ ;;
2517 esac
2518 as_found=:
2519
2520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2521 ac_aux_dir_found=yes
2522 ac_install_sh=
2523 for ac_aux in $ac_aux_files
2524 do
2525 # As a special case, if "install-sh" is required, that requirement
2526 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2527 # and $ac_install_sh is set appropriately for whichever one is found.
2528 if test x"$ac_aux" = x"install-sh"
2529 then
2530 if test -f "${as_dir}install-sh"; then
2531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2532 ac_install_sh="${as_dir}install-sh -c"
2533 elif test -f "${as_dir}install.sh"; then
2534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2535 ac_install_sh="${as_dir}install.sh -c"
2536 elif test -f "${as_dir}shtool"; then
2537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2538 ac_install_sh="${as_dir}shtool install -c"
2539 else
2540 ac_aux_dir_found=no
2541 if $ac_first_candidate; then
2542 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2543 else
2544 break
2545 fi
2546 fi
2547 else
2548 if test -f "${as_dir}${ac_aux}"; then
2549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2550 else
2551 ac_aux_dir_found=no
2552 if $ac_first_candidate; then
2553 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2554 else
2555 break
2556 fi
2557 fi
2558 fi
2559 done
2560 if test "$ac_aux_dir_found" = yes; then
2561 ac_aux_dir="$as_dir"
2562 break
2563 fi
2564 ac_first_candidate=false
2565
2566 as_found=false
2567 done
2568 IFS=$as_save_IFS
2569 if $as_found
2570 then :
2571
2572 else $as_nop
2573 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2574 fi
2575
2576
2577 # These three variables are undocumented and unsupported,
2578 # and are intended to be withdrawn in a future Autoconf release.
2579 # They can cause serious problems if a builder's source tree is in a directory
2580 # whose full name contains unusual characters.
2581 if test -f "${ac_aux_dir}config.guess"; then
2582 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2583 fi
2584 if test -f "${ac_aux_dir}config.sub"; then
2585 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2586 fi
2587 if test -f "$ac_aux_dir/configure"; then
2588 ac_configure="$SHELL ${ac_aux_dir}configure"
2589 fi
2590
2591 # Check that the precious variables saved in the cache have kept the same
2592 # value.
2593 ac_cache_corrupted=false
2594 for ac_var in $ac_precious_vars; do
2595 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2596 eval ac_new_set=\$ac_env_${ac_var}_set
2597 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2598 eval ac_new_val=\$ac_env_${ac_var}_value
2599 case $ac_old_set,$ac_new_set in
2600 set,)
2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2602 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2603 ac_cache_corrupted=: ;;
2604 ,set)
2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2606 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2607 ac_cache_corrupted=: ;;
2608 ,);;
2609 *)
2610 if test "x$ac_old_val" != "x$ac_new_val"; then
2611 # differences in whitespace do not lead to failure.
2612 ac_old_val_w=`echo x $ac_old_val`
2613 ac_new_val_w=`echo x $ac_new_val`
2614 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2616 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2617 ac_cache_corrupted=:
2618 else
2619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2620 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2621 eval $ac_var=\$ac_old_val
2622 fi
2623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2624 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2626 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2627 fi;;
2628 esac
2629 # Pass precious variables to config.status.
2630 if test "$ac_new_set" = set; then
2631 case $ac_new_val in
2632 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2633 *) ac_arg=$ac_var=$ac_new_val ;;
2634 esac
2635 case " $ac_configure_args " in
2636 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2637 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2638 esac
2639 fi
2640 done
2641 if $ac_cache_corrupted; then
2642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2643 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2645 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2646 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2647 and start over" "$LINENO" 5
2648 fi
2649 ## -------------------- ##
2650 ## Main body of script. ##
2651 ## -------------------- ##
2652
2653 ac_ext=c
2654 ac_cpp='$CPP $CPPFLAGS'
2655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2658
2659
2660 am__api_version='1.16'
2661
2662
2663
2664 # Find a good install program. We prefer a C program (faster),
2665 # so one script is as good as another. But avoid the broken or
2666 # incompatible versions:
2667 # SysV /etc/install, /usr/sbin/install
2668 # SunOS /usr/etc/install
2669 # IRIX /sbin/install
2670 # AIX /bin/install
2671 # AmigaOS /C/install, which installs bootblocks on floppy discs
2672 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2673 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2674 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2675 # OS/2's system install, which has a completely different semantic
2676 # ./install, which can be erroneously created by make from ./install.sh.
2677 # Reject install programs that cannot install multiple files.
2678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2679 printf %s "checking for a BSD-compatible install... " >&6; }
2680 if test -z "$INSTALL"; then
2681 if test ${ac_cv_path_install+y}
2682 then :
2683 printf %s "(cached) " >&6
2684 else $as_nop
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2687 do
2688 IFS=$as_save_IFS
2689 case $as_dir in #(((
2690 '') as_dir=./ ;;
2691 */) ;;
2692 *) as_dir=$as_dir/ ;;
2693 esac
2694 # Account for fact that we put trailing slashes in our PATH walk.
2695 case $as_dir in #((
2696 ./ | /[cC]/* | \
2697 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2698 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2699 /usr/ucb/* ) ;;
2700 *)
2701 # OSF1 and SCO ODT 3.0 have their own names for install.
2702 # Don't use installbsd from OSF since it installs stuff as root
2703 # by default.
2704 for ac_prog in ginstall scoinst install; do
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2707 if test $ac_prog = install &&
2708 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2709 # AIX install. It has an incompatible calling convention.
2710 :
2711 elif test $ac_prog = install &&
2712 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2713 # program-specific install script used by HP pwplus--don't use.
2714 :
2715 else
2716 rm -rf conftest.one conftest.two conftest.dir
2717 echo one > conftest.one
2718 echo two > conftest.two
2719 mkdir conftest.dir
2720 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2721 test -s conftest.one && test -s conftest.two &&
2722 test -s conftest.dir/conftest.one &&
2723 test -s conftest.dir/conftest.two
2724 then
2725 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2726 break 3
2727 fi
2728 fi
2729 fi
2730 done
2731 done
2732 ;;
2733 esac
2734
2735 done
2736 IFS=$as_save_IFS
2737
2738 rm -rf conftest.one conftest.two conftest.dir
2739
2740 fi
2741 if test ${ac_cv_path_install+y}; then
2742 INSTALL=$ac_cv_path_install
2743 else
2744 # As a last resort, use the slow shell script. Don't cache a
2745 # value for INSTALL within a source directory, because that will
2746 # break other packages using the cache if that directory is
2747 # removed, or if the value is a relative name.
2748 INSTALL=$ac_install_sh
2749 fi
2750 fi
2751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2752 printf "%s\n" "$INSTALL" >&6; }
2753
2754 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2755 # It thinks the first close brace ends the variable substitution.
2756 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2757
2758 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2759
2760 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2761
2762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2763 printf %s "checking whether build environment is sane... " >&6; }
2764 # Reject unsafe characters in $srcdir or the absolute working directory
2765 # name. Accept space and tab only in the latter.
2766 am_lf='
2767 '
2768 case `pwd` in
2769 *[\\\"\#\$\&\'\`$am_lf]*)
2770 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2771 esac
2772 case $srcdir in
2773 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2774 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2775 esac
2776
2777 # Do 'set' in a subshell so we don't clobber the current shell's
2778 # arguments. Must try -L first in case configure is actually a
2779 # symlink; some systems play weird games with the mod time of symlinks
2780 # (eg FreeBSD returns the mod time of the symlink's containing
2781 # directory).
2782 if (
2783 am_has_slept=no
2784 for am_try in 1 2; do
2785 echo "timestamp, slept: $am_has_slept" > conftest.file
2786 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2787 if test "$*" = "X"; then
2788 # -L didn't work.
2789 set X `ls -t "$srcdir/configure" conftest.file`
2790 fi
2791 if test "$*" != "X $srcdir/configure conftest.file" \
2792 && test "$*" != "X conftest.file $srcdir/configure"; then
2793
2794 # If neither matched, then we have a broken ls. This can happen
2795 # if, for instance, CONFIG_SHELL is bash and it inherits a
2796 # broken ls alias from the environment. This has actually
2797 # happened. Such a system could not be considered "sane".
2798 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2799 alias in your environment" "$LINENO" 5
2800 fi
2801 if test "$2" = conftest.file || test $am_try -eq 2; then
2802 break
2803 fi
2804 # Just in case.
2805 sleep 1
2806 am_has_slept=yes
2807 done
2808 test "$2" = conftest.file
2809 )
2810 then
2811 # Ok.
2812 :
2813 else
2814 as_fn_error $? "newly created file is older than distributed files!
2815 Check your system clock" "$LINENO" 5
2816 fi
2817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2818 printf "%s\n" "yes" >&6; }
2819 # If we didn't sleep, we still need to ensure time stamps of config.status and
2820 # generated files are strictly newer.
2821 am_sleep_pid=
2822 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2823 ( sleep 1 ) &
2824 am_sleep_pid=$!
2825 fi
2826
2827 rm -f conftest.file
2828
2829 test "$program_prefix" != NONE &&
2830 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2831 # Use a double $ so make ignores it.
2832 test "$program_suffix" != NONE &&
2833 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2834 # Double any \ or $.
2835 # By default was `s,x,x', remove it if useless.
2836 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2837 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2838
2839
2840 # Expand $ac_aux_dir to an absolute path.
2841 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2842
2843
2844 if test x"${MISSING+set}" != xset; then
2845 MISSING="\${SHELL} '$am_aux_dir/missing'"
2846 fi
2847 # Use eval to expand $SHELL
2848 if eval "$MISSING --is-lightweight"; then
2849 am_missing_run="$MISSING "
2850 else
2851 am_missing_run=
2852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2853 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2854 fi
2855
2856 if test x"${install_sh+set}" != xset; then
2857 case $am_aux_dir in
2858 *\ * | *\ *)
2859 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2860 *)
2861 install_sh="\${SHELL} $am_aux_dir/install-sh"
2862 esac
2863 fi
2864
2865 # Installed binaries are usually stripped using 'strip' when the user
2866 # run "make install-strip". However 'strip' might not be the right
2867 # tool to use in cross-compilation environments, therefore Automake
2868 # will honor the 'STRIP' environment variable to overrule this program.
2869 if test "$cross_compiling" != no; then
2870 if test -n "$ac_tool_prefix"; then
2871 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2872 set dummy ${ac_tool_prefix}strip; ac_word=$2
2873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 printf %s "checking for $ac_word... " >&6; }
2875 if test ${ac_cv_prog_STRIP+y}
2876 then :
2877 printf %s "(cached) " >&6
2878 else $as_nop
2879 if test -n "$STRIP"; then
2880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2884 do
2885 IFS=$as_save_IFS
2886 case $as_dir in #(((
2887 '') as_dir=./ ;;
2888 */) ;;
2889 *) as_dir=$as_dir/ ;;
2890 esac
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2893 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2895 break 2
2896 fi
2897 done
2898 done
2899 IFS=$as_save_IFS
2900
2901 fi
2902 fi
2903 STRIP=$ac_cv_prog_STRIP
2904 if test -n "$STRIP"; then
2905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2906 printf "%s\n" "$STRIP" >&6; }
2907 else
2908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 printf "%s\n" "no" >&6; }
2910 fi
2911
2912
2913 fi
2914 if test -z "$ac_cv_prog_STRIP"; then
2915 ac_ct_STRIP=$STRIP
2916 # Extract the first word of "strip", so it can be a program name with args.
2917 set dummy strip; ac_word=$2
2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919 printf %s "checking for $ac_word... " >&6; }
2920 if test ${ac_cv_prog_ac_ct_STRIP+y}
2921 then :
2922 printf %s "(cached) " >&6
2923 else $as_nop
2924 if test -n "$ac_ct_STRIP"; then
2925 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2926 else
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2929 do
2930 IFS=$as_save_IFS
2931 case $as_dir in #(((
2932 '') as_dir=./ ;;
2933 */) ;;
2934 *) as_dir=$as_dir/ ;;
2935 esac
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2938 ac_cv_prog_ac_ct_STRIP="strip"
2939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2940 break 2
2941 fi
2942 done
2943 done
2944 IFS=$as_save_IFS
2945
2946 fi
2947 fi
2948 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2949 if test -n "$ac_ct_STRIP"; then
2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2951 printf "%s\n" "$ac_ct_STRIP" >&6; }
2952 else
2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 printf "%s\n" "no" >&6; }
2955 fi
2956
2957 if test "x$ac_ct_STRIP" = x; then
2958 STRIP=":"
2959 else
2960 case $cross_compiling:$ac_tool_warned in
2961 yes:)
2962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2963 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2964 ac_tool_warned=yes ;;
2965 esac
2966 STRIP=$ac_ct_STRIP
2967 fi
2968 else
2969 STRIP="$ac_cv_prog_STRIP"
2970 fi
2971
2972 fi
2973 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2974
2975
2976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2977 printf %s "checking for a race-free mkdir -p... " >&6; }
2978 if test -z "$MKDIR_P"; then
2979 if test ${ac_cv_path_mkdir+y}
2980 then :
2981 printf %s "(cached) " >&6
2982 else $as_nop
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2985 do
2986 IFS=$as_save_IFS
2987 case $as_dir in #(((
2988 '') as_dir=./ ;;
2989 */) ;;
2990 *) as_dir=$as_dir/ ;;
2991 esac
2992 for ac_prog in mkdir gmkdir; do
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2995 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2996 'mkdir ('*'coreutils) '* | \
2997 'BusyBox '* | \
2998 'mkdir (fileutils) '4.1*)
2999 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3000 break 3;;
3001 esac
3002 done
3003 done
3004 done
3005 IFS=$as_save_IFS
3006
3007 fi
3008
3009 test -d ./--version && rmdir ./--version
3010 if test ${ac_cv_path_mkdir+y}; then
3011 MKDIR_P="$ac_cv_path_mkdir -p"
3012 else
3013 # As a last resort, use the slow shell script. Don't cache a
3014 # value for MKDIR_P within a source directory, because that will
3015 # break other packages using the cache if that directory is
3016 # removed, or if the value is a relative name.
3017 MKDIR_P="$ac_install_sh -d"
3018 fi
3019 fi
3020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3021 printf "%s\n" "$MKDIR_P" >&6; }
3022
3023 for ac_prog in gawk mawk nawk awk
3024 do
3025 # Extract the first word of "$ac_prog", so it can be a program name with args.
3026 set dummy $ac_prog; ac_word=$2
3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 printf %s "checking for $ac_word... " >&6; }
3029 if test ${ac_cv_prog_AWK+y}
3030 then :
3031 printf %s "(cached) " >&6
3032 else $as_nop
3033 if test -n "$AWK"; then
3034 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039 IFS=$as_save_IFS
3040 case $as_dir in #(((
3041 '') as_dir=./ ;;
3042 */) ;;
3043 *) as_dir=$as_dir/ ;;
3044 esac
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_AWK="$ac_prog"
3048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3049 break 2
3050 fi
3051 done
3052 done
3053 IFS=$as_save_IFS
3054
3055 fi
3056 fi
3057 AWK=$ac_cv_prog_AWK
3058 if test -n "$AWK"; then
3059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3060 printf "%s\n" "$AWK" >&6; }
3061 else
3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 printf "%s\n" "no" >&6; }
3064 fi
3065
3066
3067 test -n "$AWK" && break
3068 done
3069
3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3071 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3072 set x ${MAKE-make}
3073 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3074 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3075 then :
3076 printf %s "(cached) " >&6
3077 else $as_nop
3078 cat >conftest.make <<\_ACEOF
3079 SHELL = /bin/sh
3080 all:
3081 @echo '@@@%%%=$(MAKE)=@@@%%%'
3082 _ACEOF
3083 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3084 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3085 *@@@%%%=?*=@@@%%%*)
3086 eval ac_cv_prog_make_${ac_make}_set=yes;;
3087 *)
3088 eval ac_cv_prog_make_${ac_make}_set=no;;
3089 esac
3090 rm -f conftest.make
3091 fi
3092 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3094 printf "%s\n" "yes" >&6; }
3095 SET_MAKE=
3096 else
3097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 printf "%s\n" "no" >&6; }
3099 SET_MAKE="MAKE=${MAKE-make}"
3100 fi
3101
3102 rm -rf .tst 2>/dev/null
3103 mkdir .tst 2>/dev/null
3104 if test -d .tst; then
3105 am__leading_dot=.
3106 else
3107 am__leading_dot=_
3108 fi
3109 rmdir .tst 2>/dev/null
3110
3111 # Check whether --enable-silent-rules was given.
3112 if test ${enable_silent_rules+y}
3113 then :
3114 enableval=$enable_silent_rules;
3115 fi
3116
3117 case $enable_silent_rules in # (((
3118 yes) AM_DEFAULT_VERBOSITY=0;;
3119 no) AM_DEFAULT_VERBOSITY=1;;
3120 *) AM_DEFAULT_VERBOSITY=1;;
3121 esac
3122 am_make=${MAKE-make}
3123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3124 printf %s "checking whether $am_make supports nested variables... " >&6; }
3125 if test ${am_cv_make_support_nested_variables+y}
3126 then :
3127 printf %s "(cached) " >&6
3128 else $as_nop
3129 if printf "%s\n" 'TRUE=$(BAR$(V))
3130 BAR0=false
3131 BAR1=true
3132 V=1
3133 am__doit:
3134 @$(TRUE)
3135 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3136 am_cv_make_support_nested_variables=yes
3137 else
3138 am_cv_make_support_nested_variables=no
3139 fi
3140 fi
3141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3142 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3143 if test $am_cv_make_support_nested_variables = yes; then
3144 AM_V='$(V)'
3145 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3146 else
3147 AM_V=$AM_DEFAULT_VERBOSITY
3148 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3149 fi
3150 AM_BACKSLASH='\'
3151
3152 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3153 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3154 # is not polluted with repeated "-I."
3155 am__isrc=' -I$(srcdir)'
3156 # test to see if srcdir already configured
3157 if test -f $srcdir/config.status; then
3158 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3159 fi
3160 fi
3161
3162 # test whether we have cygpath
3163 if test -z "$CYGPATH_W"; then
3164 if (cygpath --version) >/dev/null 2>/dev/null; then
3165 CYGPATH_W='cygpath -w'
3166 else
3167 CYGPATH_W=echo
3168 fi
3169 fi
3170
3171
3172 # Define the identity of the package.
3173 PACKAGE='xorgproto'
3174 VERSION='2022.1'
3175
3176
3177 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3178
3179
3180 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3181
3182 # Some tools Automake needs.
3183
3184 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3185
3186
3187 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3188
3189
3190 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3191
3192
3193 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3194
3195
3196 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3197
3198 # For better backward compatibility. To be removed once Automake 1.9.x
3199 # dies out for good. For more background, see:
3200 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3201 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3202 mkdir_p='$(MKDIR_P)'
3203
3204 # We need awk for the "check" target (and possibly the TAP driver). The
3205 # system "awk" is bad on some platforms.
3206 # Always define AMTAR for backward compatibility. Yes, it's still used
3207 # in the wild :-( We should find a proper way to deprecate it ...
3208 AMTAR='$${TAR-tar}'
3209
3210
3211 # We'll loop over all known methods to create a tar archive until one works.
3212 _am_tools='gnutar pax cpio none'
3213
3214 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3215
3216
3217
3218
3219
3220 # Variables for tags utilities; see am/tags.am
3221 if test -z "$CTAGS"; then
3222 CTAGS=ctags
3223 fi
3224
3225 if test -z "$ETAGS"; then
3226 ETAGS=etags
3227 fi
3228
3229 if test -z "$CSCOPE"; then
3230 CSCOPE=cscope
3231 fi
3232
3233
3234
3235 # POSIX will say in a future version that running "rm -f" with no argument
3236 # is OK; and we want to be able to make that assumption in our Makefile
3237 # recipes. So use an aggressive probe to check that the usage we want is
3238 # actually supported "in the wild" to an acceptable degree.
3239 # See automake bug#10828.
3240 # To make any issue more visible, cause the running configure to be aborted
3241 # by default if the 'rm' program in use doesn't match our expectations; the
3242 # user can still override this though.
3243 if rm -f && rm -fr && rm -rf; then : OK; else
3244 cat >&2 <<'END'
3245 Oops!
3246
3247 Your 'rm' program seems unable to run without file operands specified
3248 on the command line, even when the '-f' option is present. This is contrary
3249 to the behaviour of most rm programs out there, and not conforming with
3250 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3251
3252 Please tell bug-automake@gnu.org about your system, including the value
3253 of your $PATH and any error possibly output before this message. This
3254 can help us improve future automake versions.
3255
3256 END
3257 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3258 echo 'Configuration will proceed anyway, since you have set the' >&2
3259 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3260 echo >&2
3261 else
3262 cat >&2 <<'END'
3263 Aborting the configuration process, to ensure you take notice of the issue.
3264
3265 You can download and install GNU coreutils to get an 'rm' implementation
3266 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3267
3268 If you want to complete the configuration process using your problematic
3269 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3270 to "yes", and re-run configure.
3271
3272 END
3273 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3274 fi
3275 fi
3276
3277
3278 # Require xorg-macros: XORG_DEFAULT_OPTIONS
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299 DEPDIR="${am__leading_dot}deps"
3300
3301 ac_config_commands="$ac_config_commands depfiles"
3302
3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3304 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3305 cat > confinc.mk << 'END'
3306 am__doit:
3307 @echo this is the am__doit target >confinc.out
3308 .PHONY: am__doit
3309 END
3310 am__include="#"
3311 am__quote=
3312 # BSD make does it like this.
3313 echo '.include "confinc.mk" # ignored' > confmf.BSD
3314 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3315 echo 'include confinc.mk # ignored' > confmf.GNU
3316 _am_result=no
3317 for s in GNU BSD; do
3318 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3319 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }
3323 case $?:`cat confinc.out 2>/dev/null` in #(
3324 '0:this is the am__doit target') :
3325 case $s in #(
3326 BSD) :
3327 am__include='.include' am__quote='"' ;; #(
3328 *) :
3329 am__include='include' am__quote='' ;;
3330 esac ;; #(
3331 *) :
3332 ;;
3333 esac
3334 if test "$am__include" != "#"; then
3335 _am_result="yes ($s style)"
3336 break
3337 fi
3338 done
3339 rm -f confinc.* confmf.*
3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3341 printf "%s\n" "${_am_result}" >&6; }
3342
3343 # Check whether --enable-dependency-tracking was given.
3344 if test ${enable_dependency_tracking+y}
3345 then :
3346 enableval=$enable_dependency_tracking;
3347 fi
3348
3349 if test "x$enable_dependency_tracking" != xno; then
3350 am_depcomp="$ac_aux_dir/depcomp"
3351 AMDEPBACKSLASH='\'
3352 am__nodep='_no'
3353 fi
3354 if test "x$enable_dependency_tracking" != xno; then
3355 AMDEP_TRUE=
3356 AMDEP_FALSE='#'
3357 else
3358 AMDEP_TRUE='#'
3359 AMDEP_FALSE=
3360 fi
3361
3362
3363 ac_ext=c
3364 ac_cpp='$CPP $CPPFLAGS'
3365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3368 if test -n "$ac_tool_prefix"; then
3369 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3370 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 printf %s "checking for $ac_word... " >&6; }
3373 if test ${ac_cv_prog_CC+y}
3374 then :
3375 printf %s "(cached) " >&6
3376 else $as_nop
3377 if test -n "$CC"; then
3378 ac_cv_prog_CC="$CC" # Let the user override the test.
3379 else
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH
3382 do
3383 IFS=$as_save_IFS
3384 case $as_dir in #(((
3385 '') as_dir=./ ;;
3386 */) ;;
3387 *) as_dir=$as_dir/ ;;
3388 esac
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3391 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3393 break 2
3394 fi
3395 done
3396 done
3397 IFS=$as_save_IFS
3398
3399 fi
3400 fi
3401 CC=$ac_cv_prog_CC
3402 if test -n "$CC"; then
3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3404 printf "%s\n" "$CC" >&6; }
3405 else
3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 printf "%s\n" "no" >&6; }
3408 fi
3409
3410
3411 fi
3412 if test -z "$ac_cv_prog_CC"; then
3413 ac_ct_CC=$CC
3414 # Extract the first word of "gcc", so it can be a program name with args.
3415 set dummy gcc; ac_word=$2
3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417 printf %s "checking for $ac_word... " >&6; }
3418 if test ${ac_cv_prog_ac_ct_CC+y}
3419 then :
3420 printf %s "(cached) " >&6
3421 else $as_nop
3422 if test -n "$ac_ct_CC"; then
3423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3424 else
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 for as_dir in $PATH
3427 do
3428 IFS=$as_save_IFS
3429 case $as_dir in #(((
3430 '') as_dir=./ ;;
3431 */) ;;
3432 *) as_dir=$as_dir/ ;;
3433 esac
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3436 ac_cv_prog_ac_ct_CC="gcc"
3437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3438 break 2
3439 fi
3440 done
3441 done
3442 IFS=$as_save_IFS
3443
3444 fi
3445 fi
3446 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3447 if test -n "$ac_ct_CC"; then
3448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3449 printf "%s\n" "$ac_ct_CC" >&6; }
3450 else
3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 printf "%s\n" "no" >&6; }
3453 fi
3454
3455 if test "x$ac_ct_CC" = x; then
3456 CC=""
3457 else
3458 case $cross_compiling:$ac_tool_warned in
3459 yes:)
3460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3461 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3462 ac_tool_warned=yes ;;
3463 esac
3464 CC=$ac_ct_CC
3465 fi
3466 else
3467 CC="$ac_cv_prog_CC"
3468 fi
3469
3470 if test -z "$CC"; then
3471 if test -n "$ac_tool_prefix"; then
3472 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3473 set dummy ${ac_tool_prefix}cc; ac_word=$2
3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 printf %s "checking for $ac_word... " >&6; }
3476 if test ${ac_cv_prog_CC+y}
3477 then :
3478 printf %s "(cached) " >&6
3479 else $as_nop
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC="$CC" # Let the user override the test.
3482 else
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3485 do
3486 IFS=$as_save_IFS
3487 case $as_dir in #(((
3488 '') as_dir=./ ;;
3489 */) ;;
3490 *) as_dir=$as_dir/ ;;
3491 esac
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3494 ac_cv_prog_CC="${ac_tool_prefix}cc"
3495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3496 break 2
3497 fi
3498 done
3499 done
3500 IFS=$as_save_IFS
3501
3502 fi
3503 fi
3504 CC=$ac_cv_prog_CC
3505 if test -n "$CC"; then
3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507 printf "%s\n" "$CC" >&6; }
3508 else
3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 printf "%s\n" "no" >&6; }
3511 fi
3512
3513
3514 fi
3515 fi
3516 if test -z "$CC"; then
3517 # Extract the first word of "cc", so it can be a program name with args.
3518 set dummy cc; ac_word=$2
3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520 printf %s "checking for $ac_word... " >&6; }
3521 if test ${ac_cv_prog_CC+y}
3522 then :
3523 printf %s "(cached) " >&6
3524 else $as_nop
3525 if test -n "$CC"; then
3526 ac_cv_prog_CC="$CC" # Let the user override the test.
3527 else
3528 ac_prog_rejected=no
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3531 do
3532 IFS=$as_save_IFS
3533 case $as_dir in #(((
3534 '') as_dir=./ ;;
3535 */) ;;
3536 *) as_dir=$as_dir/ ;;
3537 esac
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3540 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3541 ac_prog_rejected=yes
3542 continue
3543 fi
3544 ac_cv_prog_CC="cc"
3545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3546 break 2
3547 fi
3548 done
3549 done
3550 IFS=$as_save_IFS
3551
3552 if test $ac_prog_rejected = yes; then
3553 # We found a bogon in the path, so make sure we never use it.
3554 set dummy $ac_cv_prog_CC
3555 shift
3556 if test $# != 0; then
3557 # We chose a different compiler from the bogus one.
3558 # However, it has the same basename, so the bogon will be chosen
3559 # first if we set CC to just the basename; use the full file name.
3560 shift
3561 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3562 fi
3563 fi
3564 fi
3565 fi
3566 CC=$ac_cv_prog_CC
3567 if test -n "$CC"; then
3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3569 printf "%s\n" "$CC" >&6; }
3570 else
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 printf "%s\n" "no" >&6; }
3573 fi
3574
3575
3576 fi
3577 if test -z "$CC"; then
3578 if test -n "$ac_tool_prefix"; then
3579 for ac_prog in cl.exe
3580 do
3581 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 printf %s "checking for $ac_word... " >&6; }
3585 if test ${ac_cv_prog_CC+y}
3586 then :
3587 printf %s "(cached) " >&6
3588 else $as_nop
3589 if test -n "$CC"; then
3590 ac_cv_prog_CC="$CC" # Let the user override the test.
3591 else
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3594 do
3595 IFS=$as_save_IFS
3596 case $as_dir in #(((
3597 '') as_dir=./ ;;
3598 */) ;;
3599 *) as_dir=$as_dir/ ;;
3600 esac
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3603 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3605 break 2
3606 fi
3607 done
3608 done
3609 IFS=$as_save_IFS
3610
3611 fi
3612 fi
3613 CC=$ac_cv_prog_CC
3614 if test -n "$CC"; then
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3616 printf "%s\n" "$CC" >&6; }
3617 else
3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 printf "%s\n" "no" >&6; }
3620 fi
3621
3622
3623 test -n "$CC" && break
3624 done
3625 fi
3626 if test -z "$CC"; then
3627 ac_ct_CC=$CC
3628 for ac_prog in cl.exe
3629 do
3630 # Extract the first word of "$ac_prog", so it can be a program name with args.
3631 set dummy $ac_prog; ac_word=$2
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633 printf %s "checking for $ac_word... " >&6; }
3634 if test ${ac_cv_prog_ac_ct_CC+y}
3635 then :
3636 printf %s "(cached) " >&6
3637 else $as_nop
3638 if test -n "$ac_ct_CC"; then
3639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3640 else
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644 IFS=$as_save_IFS
3645 case $as_dir in #(((
3646 '') as_dir=./ ;;
3647 */) ;;
3648 *) as_dir=$as_dir/ ;;
3649 esac
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3652 ac_cv_prog_ac_ct_CC="$ac_prog"
3653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3654 break 2
3655 fi
3656 done
3657 done
3658 IFS=$as_save_IFS
3659
3660 fi
3661 fi
3662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3663 if test -n "$ac_ct_CC"; then
3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3665 printf "%s\n" "$ac_ct_CC" >&6; }
3666 else
3667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668 printf "%s\n" "no" >&6; }
3669 fi
3670
3671
3672 test -n "$ac_ct_CC" && break
3673 done
3674
3675 if test "x$ac_ct_CC" = x; then
3676 CC=""
3677 else
3678 case $cross_compiling:$ac_tool_warned in
3679 yes:)
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3681 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3682 ac_tool_warned=yes ;;
3683 esac
3684 CC=$ac_ct_CC
3685 fi
3686 fi
3687
3688 fi
3689 if test -z "$CC"; then
3690 if test -n "$ac_tool_prefix"; then
3691 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3692 set dummy ${ac_tool_prefix}clang; ac_word=$2
3693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694 printf %s "checking for $ac_word... " >&6; }
3695 if test ${ac_cv_prog_CC+y}
3696 then :
3697 printf %s "(cached) " >&6
3698 else $as_nop
3699 if test -n "$CC"; then
3700 ac_cv_prog_CC="$CC" # Let the user override the test.
3701 else
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH
3704 do
3705 IFS=$as_save_IFS
3706 case $as_dir in #(((
3707 '') as_dir=./ ;;
3708 */) ;;
3709 *) as_dir=$as_dir/ ;;
3710 esac
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3713 ac_cv_prog_CC="${ac_tool_prefix}clang"
3714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3715 break 2
3716 fi
3717 done
3718 done
3719 IFS=$as_save_IFS
3720
3721 fi
3722 fi
3723 CC=$ac_cv_prog_CC
3724 if test -n "$CC"; then
3725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3726 printf "%s\n" "$CC" >&6; }
3727 else
3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 printf "%s\n" "no" >&6; }
3730 fi
3731
3732
3733 fi
3734 if test -z "$ac_cv_prog_CC"; then
3735 ac_ct_CC=$CC
3736 # Extract the first word of "clang", so it can be a program name with args.
3737 set dummy clang; ac_word=$2
3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739 printf %s "checking for $ac_word... " >&6; }
3740 if test ${ac_cv_prog_ac_ct_CC+y}
3741 then :
3742 printf %s "(cached) " >&6
3743 else $as_nop
3744 if test -n "$ac_ct_CC"; then
3745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3746 else
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH
3749 do
3750 IFS=$as_save_IFS
3751 case $as_dir in #(((
3752 '') as_dir=./ ;;
3753 */) ;;
3754 *) as_dir=$as_dir/ ;;
3755 esac
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3758 ac_cv_prog_ac_ct_CC="clang"
3759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3760 break 2
3761 fi
3762 done
3763 done
3764 IFS=$as_save_IFS
3765
3766 fi
3767 fi
3768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3769 if test -n "$ac_ct_CC"; then
3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3771 printf "%s\n" "$ac_ct_CC" >&6; }
3772 else
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774 printf "%s\n" "no" >&6; }
3775 fi
3776
3777 if test "x$ac_ct_CC" = x; then
3778 CC=""
3779 else
3780 case $cross_compiling:$ac_tool_warned in
3781 yes:)
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3783 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3784 ac_tool_warned=yes ;;
3785 esac
3786 CC=$ac_ct_CC
3787 fi
3788 else
3789 CC="$ac_cv_prog_CC"
3790 fi
3791
3792 fi
3793
3794
3795 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3797 as_fn_error $? "no acceptable C compiler found in \$PATH
3798 See \`config.log' for more details" "$LINENO" 5; }
3799
3800 # Provide some information about the compiler.
3801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3802 set X $ac_compile
3803 ac_compiler=$2
3804 for ac_option in --version -v -V -qversion -version; do
3805 { { ac_try="$ac_compiler $ac_option >&5"
3806 case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809 esac
3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 printf "%s\n" "$ac_try_echo"; } >&5
3812 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3813 ac_status=$?
3814 if test -s conftest.err; then
3815 sed '10a\
3816 ... rest of stderr output deleted ...
3817 10q' conftest.err >conftest.er1
3818 cat conftest.er1 >&5
3819 fi
3820 rm -f conftest.er1 conftest.err
3821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822 test $ac_status = 0; }
3823 done
3824
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3827
3828 int
3829 main (void)
3830 {
3831
3832 ;
3833 return 0;
3834 }
3835 _ACEOF
3836 ac_clean_files_save=$ac_clean_files
3837 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3838 # Try to create an executable without -o first, disregard a.out.
3839 # It will help us diagnose broken compilers, and finding out an intuition
3840 # of exeext.
3841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3842 printf %s "checking whether the C compiler works... " >&6; }
3843 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3844
3845 # The possible output files:
3846 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3847
3848 ac_rmfiles=
3849 for ac_file in $ac_files
3850 do
3851 case $ac_file in
3852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3853 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3854 esac
3855 done
3856 rm -f $ac_rmfiles
3857
3858 if { { ac_try="$ac_link_default"
3859 case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3862 esac
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 printf "%s\n" "$ac_try_echo"; } >&5
3865 (eval "$ac_link_default") 2>&5
3866 ac_status=$?
3867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868 test $ac_status = 0; }
3869 then :
3870 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3871 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3872 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3873 # so that the user can short-circuit this test for compilers unknown to
3874 # Autoconf.
3875 for ac_file in $ac_files ''
3876 do
3877 test -f "$ac_file" || continue
3878 case $ac_file in
3879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3880 ;;
3881 [ab].out )
3882 # We found the default executable, but exeext='' is most
3883 # certainly right.
3884 break;;
3885 *.* )
3886 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3887 then :; else
3888 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3889 fi
3890 # We set ac_cv_exeext here because the later test for it is not
3891 # safe: cross compilers may not add the suffix if given an `-o'
3892 # argument, so we may need to know it at that point already.
3893 # Even if this section looks crufty: it has the advantage of
3894 # actually working.
3895 break;;
3896 * )
3897 break;;
3898 esac
3899 done
3900 test "$ac_cv_exeext" = no && ac_cv_exeext=
3901
3902 else $as_nop
3903 ac_file=''
3904 fi
3905 if test -z "$ac_file"
3906 then :
3907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908 printf "%s\n" "no" >&6; }
3909 printf "%s\n" "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3911
3912 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3913 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3914 as_fn_error 77 "C compiler cannot create executables
3915 See \`config.log' for more details" "$LINENO" 5; }
3916 else $as_nop
3917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3918 printf "%s\n" "yes" >&6; }
3919 fi
3920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3921 printf %s "checking for C compiler default output file name... " >&6; }
3922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3923 printf "%s\n" "$ac_file" >&6; }
3924 ac_exeext=$ac_cv_exeext
3925
3926 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3927 ac_clean_files=$ac_clean_files_save
3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3929 printf %s "checking for suffix of executables... " >&6; }
3930 if { { ac_try="$ac_link"
3931 case "(($ac_try" in
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3934 esac
3935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936 printf "%s\n" "$ac_try_echo"; } >&5
3937 (eval "$ac_link") 2>&5
3938 ac_status=$?
3939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940 test $ac_status = 0; }
3941 then :
3942 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3943 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3944 # work properly (i.e., refer to `conftest.exe'), while it won't with
3945 # `rm'.
3946 for ac_file in conftest.exe conftest conftest.*; do
3947 test -f "$ac_file" || continue
3948 case $ac_file in
3949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3950 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3951 break;;
3952 * ) break;;
3953 esac
3954 done
3955 else $as_nop
3956 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3957 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3958 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3959 See \`config.log' for more details" "$LINENO" 5; }
3960 fi
3961 rm -f conftest conftest$ac_cv_exeext
3962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3963 printf "%s\n" "$ac_cv_exeext" >&6; }
3964
3965 rm -f conftest.$ac_ext
3966 EXEEXT=$ac_cv_exeext
3967 ac_exeext=$EXEEXT
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3970 #include <stdio.h>
3971 int
3972 main (void)
3973 {
3974 FILE *f = fopen ("conftest.out", "w");
3975 return ferror (f) || fclose (f) != 0;
3976
3977 ;
3978 return 0;
3979 }
3980 _ACEOF
3981 ac_clean_files="$ac_clean_files conftest.out"
3982 # Check that the compiler produces executables we can run. If not, either
3983 # the compiler is broken, or we cross compile.
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3985 printf %s "checking whether we are cross compiling... " >&6; }
3986 if test "$cross_compiling" != yes; then
3987 { { ac_try="$ac_link"
3988 case "(($ac_try" in
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3991 esac
3992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3993 printf "%s\n" "$ac_try_echo"; } >&5
3994 (eval "$ac_link") 2>&5
3995 ac_status=$?
3996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3997 test $ac_status = 0; }
3998 if { ac_try='./conftest$ac_cv_exeext'
3999 { { case "(($ac_try" in
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4002 esac
4003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4004 printf "%s\n" "$ac_try_echo"; } >&5
4005 (eval "$ac_try") 2>&5
4006 ac_status=$?
4007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4008 test $ac_status = 0; }; }; then
4009 cross_compiling=no
4010 else
4011 if test "$cross_compiling" = maybe; then
4012 cross_compiling=yes
4013 else
4014 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4016 as_fn_error 77 "cannot run C compiled programs.
4017 If you meant to cross compile, use \`--host'.
4018 See \`config.log' for more details" "$LINENO" 5; }
4019 fi
4020 fi
4021 fi
4022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4023 printf "%s\n" "$cross_compiling" >&6; }
4024
4025 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4026 ac_clean_files=$ac_clean_files_save
4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4028 printf %s "checking for suffix of object files... " >&6; }
4029 if test ${ac_cv_objext+y}
4030 then :
4031 printf %s "(cached) " >&6
4032 else $as_nop
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4035
4036 int
4037 main (void)
4038 {
4039
4040 ;
4041 return 0;
4042 }
4043 _ACEOF
4044 rm -f conftest.o conftest.obj
4045 if { { ac_try="$ac_compile"
4046 case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049 esac
4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051 printf "%s\n" "$ac_try_echo"; } >&5
4052 (eval "$ac_compile") 2>&5
4053 ac_status=$?
4054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055 test $ac_status = 0; }
4056 then :
4057 for ac_file in conftest.o conftest.obj conftest.*; do
4058 test -f "$ac_file" || continue;
4059 case $ac_file in
4060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4061 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4062 break;;
4063 esac
4064 done
4065 else $as_nop
4066 printf "%s\n" "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4068
4069 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4071 as_fn_error $? "cannot compute suffix of object files: cannot compile
4072 See \`config.log' for more details" "$LINENO" 5; }
4073 fi
4074 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4075 fi
4076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4077 printf "%s\n" "$ac_cv_objext" >&6; }
4078 OBJEXT=$ac_cv_objext
4079 ac_objext=$OBJEXT
4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4081 printf %s "checking whether the compiler supports GNU C... " >&6; }
4082 if test ${ac_cv_c_compiler_gnu+y}
4083 then :
4084 printf %s "(cached) " >&6
4085 else $as_nop
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4088
4089 int
4090 main (void)
4091 {
4092 #ifndef __GNUC__
4093 choke me
4094 #endif
4095
4096 ;
4097 return 0;
4098 }
4099 _ACEOF
4100 if ac_fn_c_try_compile "$LINENO"
4101 then :
4102 ac_compiler_gnu=yes
4103 else $as_nop
4104 ac_compiler_gnu=no
4105 fi
4106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4107 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4108
4109 fi
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4111 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4113
4114 if test $ac_compiler_gnu = yes; then
4115 GCC=yes
4116 else
4117 GCC=
4118 fi
4119 ac_test_CFLAGS=${CFLAGS+y}
4120 ac_save_CFLAGS=$CFLAGS
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4122 printf %s "checking whether $CC accepts -g... " >&6; }
4123 if test ${ac_cv_prog_cc_g+y}
4124 then :
4125 printf %s "(cached) " >&6
4126 else $as_nop
4127 ac_save_c_werror_flag=$ac_c_werror_flag
4128 ac_c_werror_flag=yes
4129 ac_cv_prog_cc_g=no
4130 CFLAGS="-g"
4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h. */
4133
4134 int
4135 main (void)
4136 {
4137
4138 ;
4139 return 0;
4140 }
4141 _ACEOF
4142 if ac_fn_c_try_compile "$LINENO"
4143 then :
4144 ac_cv_prog_cc_g=yes
4145 else $as_nop
4146 CFLAGS=""
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149
4150 int
4151 main (void)
4152 {
4153
4154 ;
4155 return 0;
4156 }
4157 _ACEOF
4158 if ac_fn_c_try_compile "$LINENO"
4159 then :
4160
4161 else $as_nop
4162 ac_c_werror_flag=$ac_save_c_werror_flag
4163 CFLAGS="-g"
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4166
4167 int
4168 main (void)
4169 {
4170
4171 ;
4172 return 0;
4173 }
4174 _ACEOF
4175 if ac_fn_c_try_compile "$LINENO"
4176 then :
4177 ac_cv_prog_cc_g=yes
4178 fi
4179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4180 fi
4181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4182 fi
4183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4184 ac_c_werror_flag=$ac_save_c_werror_flag
4185 fi
4186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4187 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4188 if test $ac_test_CFLAGS; then
4189 CFLAGS=$ac_save_CFLAGS
4190 elif test $ac_cv_prog_cc_g = yes; then
4191 if test "$GCC" = yes; then
4192 CFLAGS="-g -O2"
4193 else
4194 CFLAGS="-g"
4195 fi
4196 else
4197 if test "$GCC" = yes; then
4198 CFLAGS="-O2"
4199 else
4200 CFLAGS=
4201 fi
4202 fi
4203 ac_prog_cc_stdc=no
4204 if test x$ac_prog_cc_stdc = xno
4205 then :
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4207 printf %s "checking for $CC option to enable C11 features... " >&6; }
4208 if test ${ac_cv_prog_cc_c11+y}
4209 then :
4210 printf %s "(cached) " >&6
4211 else $as_nop
4212 ac_cv_prog_cc_c11=no
4213 ac_save_CC=$CC
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216 $ac_c_conftest_c11_program
4217 _ACEOF
4218 for ac_arg in '' -std=gnu11
4219 do
4220 CC="$ac_save_CC $ac_arg"
4221 if ac_fn_c_try_compile "$LINENO"
4222 then :
4223 ac_cv_prog_cc_c11=$ac_arg
4224 fi
4225 rm -f core conftest.err conftest.$ac_objext conftest.beam
4226 test "x$ac_cv_prog_cc_c11" != "xno" && break
4227 done
4228 rm -f conftest.$ac_ext
4229 CC=$ac_save_CC
4230 fi
4231
4232 if test "x$ac_cv_prog_cc_c11" = xno
4233 then :
4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4235 printf "%s\n" "unsupported" >&6; }
4236 else $as_nop
4237 if test "x$ac_cv_prog_cc_c11" = x
4238 then :
4239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4240 printf "%s\n" "none needed" >&6; }
4241 else $as_nop
4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4243 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4244 CC="$CC $ac_cv_prog_cc_c11"
4245 fi
4246 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4247 ac_prog_cc_stdc=c11
4248 fi
4249 fi
4250 if test x$ac_prog_cc_stdc = xno
4251 then :
4252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4253 printf %s "checking for $CC option to enable C99 features... " >&6; }
4254 if test ${ac_cv_prog_cc_c99+y}
4255 then :
4256 printf %s "(cached) " >&6
4257 else $as_nop
4258 ac_cv_prog_cc_c99=no
4259 ac_save_CC=$CC
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4262 $ac_c_conftest_c99_program
4263 _ACEOF
4264 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4265 do
4266 CC="$ac_save_CC $ac_arg"
4267 if ac_fn_c_try_compile "$LINENO"
4268 then :
4269 ac_cv_prog_cc_c99=$ac_arg
4270 fi
4271 rm -f core conftest.err conftest.$ac_objext conftest.beam
4272 test "x$ac_cv_prog_cc_c99" != "xno" && break
4273 done
4274 rm -f conftest.$ac_ext
4275 CC=$ac_save_CC
4276 fi
4277
4278 if test "x$ac_cv_prog_cc_c99" = xno
4279 then :
4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4281 printf "%s\n" "unsupported" >&6; }
4282 else $as_nop
4283 if test "x$ac_cv_prog_cc_c99" = x
4284 then :
4285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4286 printf "%s\n" "none needed" >&6; }
4287 else $as_nop
4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4289 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4290 CC="$CC $ac_cv_prog_cc_c99"
4291 fi
4292 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4293 ac_prog_cc_stdc=c99
4294 fi
4295 fi
4296 if test x$ac_prog_cc_stdc = xno
4297 then :
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4299 printf %s "checking for $CC option to enable C89 features... " >&6; }
4300 if test ${ac_cv_prog_cc_c89+y}
4301 then :
4302 printf %s "(cached) " >&6
4303 else $as_nop
4304 ac_cv_prog_cc_c89=no
4305 ac_save_CC=$CC
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4308 $ac_c_conftest_c89_program
4309 _ACEOF
4310 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4311 do
4312 CC="$ac_save_CC $ac_arg"
4313 if ac_fn_c_try_compile "$LINENO"
4314 then :
4315 ac_cv_prog_cc_c89=$ac_arg
4316 fi
4317 rm -f core conftest.err conftest.$ac_objext conftest.beam
4318 test "x$ac_cv_prog_cc_c89" != "xno" && break
4319 done
4320 rm -f conftest.$ac_ext
4321 CC=$ac_save_CC
4322 fi
4323
4324 if test "x$ac_cv_prog_cc_c89" = xno
4325 then :
4326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4327 printf "%s\n" "unsupported" >&6; }
4328 else $as_nop
4329 if test "x$ac_cv_prog_cc_c89" = x
4330 then :
4331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4332 printf "%s\n" "none needed" >&6; }
4333 else $as_nop
4334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4335 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4336 CC="$CC $ac_cv_prog_cc_c89"
4337 fi
4338 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4339 ac_prog_cc_stdc=c89
4340 fi
4341 fi
4342
4343 ac_ext=c
4344 ac_cpp='$CPP $CPPFLAGS'
4345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4348
4349
4350 ac_ext=c
4351 ac_cpp='$CPP $CPPFLAGS'
4352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4356 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4357 if test ${am_cv_prog_cc_c_o+y}
4358 then :
4359 printf %s "(cached) " >&6
4360 else $as_nop
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4363
4364 int
4365 main (void)
4366 {
4367
4368 ;
4369 return 0;
4370 }
4371 _ACEOF
4372 # Make sure it works both with $CC and with simple cc.
4373 # Following AC_PROG_CC_C_O, we do the test twice because some
4374 # compilers refuse to overwrite an existing .o file with -o,
4375 # though they will create one.
4376 am_cv_prog_cc_c_o=yes
4377 for am_i in 1 2; do
4378 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4379 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } \
4383 && test -f conftest2.$ac_objext; then
4384 : OK
4385 else
4386 am_cv_prog_cc_c_o=no
4387 break
4388 fi
4389 done
4390 rm -f core conftest*
4391 unset am_i
4392 fi
4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4394 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4395 if test "$am_cv_prog_cc_c_o" != yes; then
4396 # Losing compiler, so override with the script.
4397 # FIXME: It is wrong to rewrite CC.
4398 # But if we don't then we get into trouble of one sort or another.
4399 # A longer-term fix would be to have automake use am__CC in this case,
4400 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4401 CC="$am_aux_dir/compile $CC"
4402 fi
4403 ac_ext=c
4404 ac_cpp='$CPP $CPPFLAGS'
4405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4408
4409
4410 depcc="$CC" am_compiler_list=
4411
4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4413 printf %s "checking dependency style of $depcc... " >&6; }
4414 if test ${am_cv_CC_dependencies_compiler_type+y}
4415 then :
4416 printf %s "(cached) " >&6
4417 else $as_nop
4418 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4419 # We make a subdir and do the tests there. Otherwise we can end up
4420 # making bogus files that we don't know about and never remove. For
4421 # instance it was reported that on HP-UX the gcc test will end up
4422 # making a dummy file named 'D' -- because '-MD' means "put the output
4423 # in D".
4424 rm -rf conftest.dir
4425 mkdir conftest.dir
4426 # Copy depcomp to subdir because otherwise we won't find it if we're
4427 # using a relative directory.
4428 cp "$am_depcomp" conftest.dir
4429 cd conftest.dir
4430 # We will build objects and dependencies in a subdirectory because
4431 # it helps to detect inapplicable dependency modes. For instance
4432 # both Tru64's cc and ICC support -MD to output dependencies as a
4433 # side effect of compilation, but ICC will put the dependencies in
4434 # the current directory while Tru64 will put them in the object
4435 # directory.
4436 mkdir sub
4437
4438 am_cv_CC_dependencies_compiler_type=none
4439 if test "$am_compiler_list" = ""; then
4440 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4441 fi
4442 am__universal=false
4443 case " $depcc " in #(
4444 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4445 esac
4446
4447 for depmode in $am_compiler_list; do
4448 # Setup a source with many dependencies, because some compilers
4449 # like to wrap large dependency lists on column 80 (with \), and
4450 # we should not choose a depcomp mode which is confused by this.
4451 #
4452 # We need to recreate these files for each test, as the compiler may
4453 # overwrite some of them when testing with obscure command lines.
4454 # This happens at least with the AIX C compiler.
4455 : > sub/conftest.c
4456 for i in 1 2 3 4 5 6; do
4457 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4458 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4459 # Solaris 10 /bin/sh.
4460 echo '/* dummy */' > sub/conftst$i.h
4461 done
4462 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4463
4464 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4465 # mode. It turns out that the SunPro C++ compiler does not properly
4466 # handle '-M -o', and we need to detect this. Also, some Intel
4467 # versions had trouble with output in subdirs.
4468 am__obj=sub/conftest.${OBJEXT-o}
4469 am__minus_obj="-o $am__obj"
4470 case $depmode in
4471 gcc)
4472 # This depmode causes a compiler race in universal mode.
4473 test "$am__universal" = false || continue
4474 ;;
4475 nosideeffect)
4476 # After this tag, mechanisms are not by side-effect, so they'll
4477 # only be used when explicitly requested.
4478 if test "x$enable_dependency_tracking" = xyes; then
4479 continue
4480 else
4481 break
4482 fi
4483 ;;
4484 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4485 # This compiler won't grok '-c -o', but also, the minuso test has
4486 # not run yet. These depmodes are late enough in the game, and
4487 # so weak that their functioning should not be impacted.
4488 am__obj=conftest.${OBJEXT-o}
4489 am__minus_obj=
4490 ;;
4491 none) break ;;
4492 esac
4493 if depmode=$depmode \
4494 source=sub/conftest.c object=$am__obj \
4495 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4496 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4497 >/dev/null 2>conftest.err &&
4498 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4499 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4500 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4501 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4502 # icc doesn't choke on unknown options, it will just issue warnings
4503 # or remarks (even with -Werror). So we grep stderr for any message
4504 # that says an option was ignored or not supported.
4505 # When given -MP, icc 7.0 and 7.1 complain thusly:
4506 # icc: Command line warning: ignoring option '-M'; no argument required
4507 # The diagnosis changed in icc 8.0:
4508 # icc: Command line remark: option '-MP' not supported
4509 if (grep 'ignoring option' conftest.err ||
4510 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4511 am_cv_CC_dependencies_compiler_type=$depmode
4512 break
4513 fi
4514 fi
4515 done
4516
4517 cd ..
4518 rm -rf conftest.dir
4519 else
4520 am_cv_CC_dependencies_compiler_type=none
4521 fi
4522
4523 fi
4524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4525 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4526 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4527
4528 if
4529 test "x$enable_dependency_tracking" != xno \
4530 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4531 am__fastdepCC_TRUE=
4532 am__fastdepCC_FALSE='#'
4533 else
4534 am__fastdepCC_TRUE='#'
4535 am__fastdepCC_FALSE=
4536 fi
4537
4538
4539
4540
4541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4542 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4543 if test ${ac_cv_c_undeclared_builtin_options+y}
4544 then :
4545 printf %s "(cached) " >&6
4546 else $as_nop
4547 ac_save_CFLAGS=$CFLAGS
4548 ac_cv_c_undeclared_builtin_options='cannot detect'
4549 for ac_arg in '' -fno-builtin; do
4550 CFLAGS="$ac_save_CFLAGS $ac_arg"
4551 # This test program should *not* compile successfully.
4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h. */
4554
4555 int
4556 main (void)
4557 {
4558 (void) strchr;
4559 ;
4560 return 0;
4561 }
4562 _ACEOF
4563 if ac_fn_c_try_compile "$LINENO"
4564 then :
4565
4566 else $as_nop
4567 # This test program should compile successfully.
4568 # No library function is consistently available on
4569 # freestanding implementations, so test against a dummy
4570 # declaration. Include always-available headers on the
4571 # off chance that they somehow elicit warnings.
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4574 #include <float.h>
4575 #include <limits.h>
4576 #include <stdarg.h>
4577 #include <stddef.h>
4578 extern void ac_decl (int, char *);
4579
4580 int
4581 main (void)
4582 {
4583 (void) ac_decl (0, (char *) 0);
4584 (void) ac_decl;
4585
4586 ;
4587 return 0;
4588 }
4589 _ACEOF
4590 if ac_fn_c_try_compile "$LINENO"
4591 then :
4592 if test x"$ac_arg" = x
4593 then :
4594 ac_cv_c_undeclared_builtin_options='none needed'
4595 else $as_nop
4596 ac_cv_c_undeclared_builtin_options=$ac_arg
4597 fi
4598 break
4599 fi
4600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4601 fi
4602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4603 done
4604 CFLAGS=$ac_save_CFLAGS
4605
4606 fi
4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4608 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4609 case $ac_cv_c_undeclared_builtin_options in #(
4610 'cannot detect') :
4611 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4612 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4613 as_fn_error $? "cannot make $CC report undeclared builtins
4614 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4615 'none needed') :
4616 ac_c_undeclared_builtin_options='' ;; #(
4617 *) :
4618 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4619 esac
4620
4621 ac_header= ac_cache=
4622 for ac_item in $ac_header_c_list
4623 do
4624 if test $ac_cache; then
4625 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4626 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4627 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4628 fi
4629 ac_header= ac_cache=
4630 elif test $ac_header; then
4631 ac_cache=$ac_item
4632 else
4633 ac_header=$ac_item
4634 fi
4635 done
4636
4637
4638
4639
4640
4641
4642
4643
4644 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4645 then :
4646
4647 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4648
4649 fi
4650
4651
4652
4653
4654 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4655 if test "x$ac_cv_have_decl___clang__" = xyes
4656 then :
4657 CLANGCC="yes"
4658 else $as_nop
4659 CLANGCC="no"
4660 fi
4661 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4662 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4663 then :
4664 INTELCC="yes"
4665 else $as_nop
4666 INTELCC="no"
4667 fi
4668 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4669 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4670 then :
4671 SUNCC="yes"
4672 else $as_nop
4673 SUNCC="no"
4674 fi
4675
4676
4677
4678
4679
4680
4681
4682
4683 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4684 if test -n "$ac_tool_prefix"; then
4685 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4686 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688 printf %s "checking for $ac_word... " >&6; }
4689 if test ${ac_cv_path_PKG_CONFIG+y}
4690 then :
4691 printf %s "(cached) " >&6
4692 else $as_nop
4693 case $PKG_CONFIG in
4694 [\\/]* | ?:[\\/]*)
4695 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4696 ;;
4697 *)
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4700 do
4701 IFS=$as_save_IFS
4702 case $as_dir in #(((
4703 '') as_dir=./ ;;
4704 */) ;;
4705 *) as_dir=$as_dir/ ;;
4706 esac
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4709 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4711 break 2
4712 fi
4713 done
4714 done
4715 IFS=$as_save_IFS
4716
4717 ;;
4718 esac
4719 fi
4720 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4721 if test -n "$PKG_CONFIG"; then
4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4723 printf "%s\n" "$PKG_CONFIG" >&6; }
4724 else
4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726 printf "%s\n" "no" >&6; }
4727 fi
4728
4729
4730 fi
4731 if test -z "$ac_cv_path_PKG_CONFIG"; then
4732 ac_pt_PKG_CONFIG=$PKG_CONFIG
4733 # Extract the first word of "pkg-config", so it can be a program name with args.
4734 set dummy pkg-config; ac_word=$2
4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736 printf %s "checking for $ac_word... " >&6; }
4737 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4738 then :
4739 printf %s "(cached) " >&6
4740 else $as_nop
4741 case $ac_pt_PKG_CONFIG in
4742 [\\/]* | ?:[\\/]*)
4743 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4744 ;;
4745 *)
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749 IFS=$as_save_IFS
4750 case $as_dir in #(((
4751 '') as_dir=./ ;;
4752 */) ;;
4753 *) as_dir=$as_dir/ ;;
4754 esac
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4757 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4759 break 2
4760 fi
4761 done
4762 done
4763 IFS=$as_save_IFS
4764
4765 ;;
4766 esac
4767 fi
4768 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4769 if test -n "$ac_pt_PKG_CONFIG"; then
4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4771 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4772 else
4773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 printf "%s\n" "no" >&6; }
4775 fi
4776
4777 if test "x$ac_pt_PKG_CONFIG" = x; then
4778 PKG_CONFIG=""
4779 else
4780 case $cross_compiling:$ac_tool_warned in
4781 yes:)
4782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4783 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4784 ac_tool_warned=yes ;;
4785 esac
4786 PKG_CONFIG=$ac_pt_PKG_CONFIG
4787 fi
4788 else
4789 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4790 fi
4791
4792 fi
4793 if test -n "$PKG_CONFIG"; then
4794 _pkg_min_version=0.9.0
4795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4796 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4797 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4799 printf "%s\n" "yes" >&6; }
4800 else
4801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 printf "%s\n" "no" >&6; }
4803 PKG_CONFIG=""
4804 fi
4805 fi
4806
4807
4808 # Make sure we can run config.sub.
4809 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4810 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4811
4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4813 printf %s "checking build system type... " >&6; }
4814 if test ${ac_cv_build+y}
4815 then :
4816 printf %s "(cached) " >&6
4817 else $as_nop
4818 ac_build_alias=$build_alias
4819 test "x$ac_build_alias" = x &&
4820 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4821 test "x$ac_build_alias" = x &&
4822 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4823 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4824 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4825
4826 fi
4827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4828 printf "%s\n" "$ac_cv_build" >&6; }
4829 case $ac_cv_build in
4830 *-*-*) ;;
4831 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4832 esac
4833 build=$ac_cv_build
4834 ac_save_IFS=$IFS; IFS='-'
4835 set x $ac_cv_build
4836 shift
4837 build_cpu=$1
4838 build_vendor=$2
4839 shift; shift
4840 # Remember, the first character of IFS is used to create $*,
4841 # except with old shells:
4842 build_os=$*
4843 IFS=$ac_save_IFS
4844 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4845
4846
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4848 printf %s "checking host system type... " >&6; }
4849 if test ${ac_cv_host+y}
4850 then :
4851 printf %s "(cached) " >&6
4852 else $as_nop
4853 if test "x$host_alias" = x; then
4854 ac_cv_host=$ac_cv_build
4855 else
4856 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4857 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4858 fi
4859
4860 fi
4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4862 printf "%s\n" "$ac_cv_host" >&6; }
4863 case $ac_cv_host in
4864 *-*-*) ;;
4865 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4866 esac
4867 host=$ac_cv_host
4868 ac_save_IFS=$IFS; IFS='-'
4869 set x $ac_cv_host
4870 shift
4871 host_cpu=$1
4872 host_vendor=$2
4873 shift; shift
4874 # Remember, the first character of IFS is used to create $*,
4875 # except with old shells:
4876 host_os=$*
4877 IFS=$ac_save_IFS
4878 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4879
4880
4881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4882 printf %s "checking for a sed that does not truncate output... " >&6; }
4883 if test ${ac_cv_path_SED+y}
4884 then :
4885 printf %s "(cached) " >&6
4886 else $as_nop
4887 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4888 for ac_i in 1 2 3 4 5 6 7; do
4889 ac_script="$ac_script$as_nl$ac_script"
4890 done
4891 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4892 { ac_script=; unset ac_script;}
4893 if test -z "$SED"; then
4894 ac_path_SED_found=false
4895 # Loop through the user's path and test for each of PROGNAME-LIST
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4898 do
4899 IFS=$as_save_IFS
4900 case $as_dir in #(((
4901 '') as_dir=./ ;;
4902 */) ;;
4903 *) as_dir=$as_dir/ ;;
4904 esac
4905 for ac_prog in sed gsed
4906 do
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4909 as_fn_executable_p "$ac_path_SED" || continue
4910 # Check for GNU ac_path_SED and select it if it is found.
4911 # Check for GNU $ac_path_SED
4912 case `"$ac_path_SED" --version 2>&1` in
4913 *GNU*)
4914 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4915 *)
4916 ac_count=0
4917 printf %s 0123456789 >"conftest.in"
4918 while :
4919 do
4920 cat "conftest.in" "conftest.in" >"conftest.tmp"
4921 mv "conftest.tmp" "conftest.in"
4922 cp "conftest.in" "conftest.nl"
4923 printf "%s\n" '' >> "conftest.nl"
4924 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4925 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4926 as_fn_arith $ac_count + 1 && ac_count=$as_val
4927 if test $ac_count -gt ${ac_path_SED_max-0}; then
4928 # Best one so far, save it but keep looking for a better one
4929 ac_cv_path_SED="$ac_path_SED"
4930 ac_path_SED_max=$ac_count
4931 fi
4932 # 10*(2^10) chars as input seems more than enough
4933 test $ac_count -gt 10 && break
4934 done
4935 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4936 esac
4937
4938 $ac_path_SED_found && break 3
4939 done
4940 done
4941 done
4942 IFS=$as_save_IFS
4943 if test -z "$ac_cv_path_SED"; then
4944 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4945 fi
4946 else
4947 ac_cv_path_SED=$SED
4948 fi
4949
4950 fi
4951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4952 printf "%s\n" "$ac_cv_path_SED" >&6; }
4953 SED="$ac_cv_path_SED"
4954 rm -f conftest.sed
4955
4956
4957
4958
4959
4960
4961 # Check whether --enable-selective-werror was given.
4962 if test ${enable_selective_werror+y}
4963 then :
4964 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4965 else $as_nop
4966 SELECTIVE_WERROR=yes
4967 fi
4968
4969
4970
4971
4972
4973 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4974 if test "x$SUNCC" = "xyes"; then
4975 BASE_CFLAGS="-v"
4976 else
4977 BASE_CFLAGS=""
4978 fi
4979
4980 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994 xorg_testset_save_CFLAGS="$CFLAGS"
4995
4996 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4999 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5000 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5001 then :
5002 printf %s "(cached) " >&6
5003 else $as_nop
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5006 int i;
5007 _ACEOF
5008 if ac_fn_c_try_compile "$LINENO"
5009 then :
5010 xorg_cv_cc_flag_unknown_warning_option=yes
5011 else $as_nop
5012 xorg_cv_cc_flag_unknown_warning_option=no
5013 fi
5014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5015 fi
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5017 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5018 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5019 CFLAGS="$xorg_testset_save_CFLAGS"
5020 fi
5021
5022 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5025 fi
5026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5028 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5029 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5030 then :
5031 printf %s "(cached) " >&6
5032 else $as_nop
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5035 int i;
5036 _ACEOF
5037 if ac_fn_c_try_compile "$LINENO"
5038 then :
5039 xorg_cv_cc_flag_unused_command_line_argument=yes
5040 else $as_nop
5041 xorg_cv_cc_flag_unused_command_line_argument=no
5042 fi
5043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5044 fi
5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5046 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5047 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5048 CFLAGS="$xorg_testset_save_CFLAGS"
5049 fi
5050
5051 found="no"
5052
5053 if test $found = "no" ; then
5054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5056 fi
5057
5058 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5060 fi
5061
5062 CFLAGS="$CFLAGS -Wall"
5063
5064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5065 printf %s "checking if $CC supports -Wall... " >&6; }
5066 cacheid=xorg_cv_cc_flag__Wall
5067 if eval test \${$cacheid+y}
5068 then :
5069 printf %s "(cached) " >&6
5070 else $as_nop
5071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072 /* end confdefs.h. */
5073 int i;
5074 int
5075 main (void)
5076 {
5077
5078 ;
5079 return 0;
5080 }
5081 _ACEOF
5082 if ac_fn_c_try_link "$LINENO"
5083 then :
5084 eval $cacheid=yes
5085 else $as_nop
5086 eval $cacheid=no
5087 fi
5088 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5089 conftest$ac_exeext conftest.$ac_ext
5090 fi
5091
5092
5093 CFLAGS="$xorg_testset_save_CFLAGS"
5094
5095 eval supported=\$$cacheid
5096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5097 printf "%s\n" "$supported" >&6; }
5098 if test "$supported" = "yes" ; then
5099 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5100 found="yes"
5101 fi
5102 fi
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118 xorg_testset_save_CFLAGS="$CFLAGS"
5119
5120 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5123 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5124 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5125 then :
5126 printf %s "(cached) " >&6
5127 else $as_nop
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5130 int i;
5131 _ACEOF
5132 if ac_fn_c_try_compile "$LINENO"
5133 then :
5134 xorg_cv_cc_flag_unknown_warning_option=yes
5135 else $as_nop
5136 xorg_cv_cc_flag_unknown_warning_option=no
5137 fi
5138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5139 fi
5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5141 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5142 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5143 CFLAGS="$xorg_testset_save_CFLAGS"
5144 fi
5145
5146 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5149 fi
5150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5152 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5153 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5154 then :
5155 printf %s "(cached) " >&6
5156 else $as_nop
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5159 int i;
5160 _ACEOF
5161 if ac_fn_c_try_compile "$LINENO"
5162 then :
5163 xorg_cv_cc_flag_unused_command_line_argument=yes
5164 else $as_nop
5165 xorg_cv_cc_flag_unused_command_line_argument=no
5166 fi
5167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5168 fi
5169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5170 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5171 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5172 CFLAGS="$xorg_testset_save_CFLAGS"
5173 fi
5174
5175 found="no"
5176
5177 if test $found = "no" ; then
5178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5180 fi
5181
5182 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5184 fi
5185
5186 CFLAGS="$CFLAGS -Wpointer-arith"
5187
5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5189 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5190 cacheid=xorg_cv_cc_flag__Wpointer_arith
5191 if eval test \${$cacheid+y}
5192 then :
5193 printf %s "(cached) " >&6
5194 else $as_nop
5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5197 int i;
5198 int
5199 main (void)
5200 {
5201
5202 ;
5203 return 0;
5204 }
5205 _ACEOF
5206 if ac_fn_c_try_link "$LINENO"
5207 then :
5208 eval $cacheid=yes
5209 else $as_nop
5210 eval $cacheid=no
5211 fi
5212 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5213 conftest$ac_exeext conftest.$ac_ext
5214 fi
5215
5216
5217 CFLAGS="$xorg_testset_save_CFLAGS"
5218
5219 eval supported=\$$cacheid
5220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5221 printf "%s\n" "$supported" >&6; }
5222 if test "$supported" = "yes" ; then
5223 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5224 found="yes"
5225 fi
5226 fi
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242 xorg_testset_save_CFLAGS="$CFLAGS"
5243
5244 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5247 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5248 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5249 then :
5250 printf %s "(cached) " >&6
5251 else $as_nop
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5254 int i;
5255 _ACEOF
5256 if ac_fn_c_try_compile "$LINENO"
5257 then :
5258 xorg_cv_cc_flag_unknown_warning_option=yes
5259 else $as_nop
5260 xorg_cv_cc_flag_unknown_warning_option=no
5261 fi
5262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5263 fi
5264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5265 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5266 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5267 CFLAGS="$xorg_testset_save_CFLAGS"
5268 fi
5269
5270 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5273 fi
5274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5276 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5277 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5278 then :
5279 printf %s "(cached) " >&6
5280 else $as_nop
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"
5286 then :
5287 xorg_cv_cc_flag_unused_command_line_argument=yes
5288 else $as_nop
5289 xorg_cv_cc_flag_unused_command_line_argument=no
5290 fi
5291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5292 fi
5293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5294 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5296 CFLAGS="$xorg_testset_save_CFLAGS"
5297 fi
5298
5299 found="no"
5300
5301 if test $found = "no" ; then
5302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5304 fi
5305
5306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5308 fi
5309
5310 CFLAGS="$CFLAGS -Wmissing-declarations"
5311
5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5313 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5314 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5315 if eval test \${$cacheid+y}
5316 then :
5317 printf %s "(cached) " >&6
5318 else $as_nop
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5321 int i;
5322 int
5323 main (void)
5324 {
5325
5326 ;
5327 return 0;
5328 }
5329 _ACEOF
5330 if ac_fn_c_try_link "$LINENO"
5331 then :
5332 eval $cacheid=yes
5333 else $as_nop
5334 eval $cacheid=no
5335 fi
5336 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5337 conftest$ac_exeext conftest.$ac_ext
5338 fi
5339
5340
5341 CFLAGS="$xorg_testset_save_CFLAGS"
5342
5343 eval supported=\$$cacheid
5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5345 printf "%s\n" "$supported" >&6; }
5346 if test "$supported" = "yes" ; then
5347 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5348 found="yes"
5349 fi
5350 fi
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366 xorg_testset_save_CFLAGS="$CFLAGS"
5367
5368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5371 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5372 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5373 then :
5374 printf %s "(cached) " >&6
5375 else $as_nop
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5378 int i;
5379 _ACEOF
5380 if ac_fn_c_try_compile "$LINENO"
5381 then :
5382 xorg_cv_cc_flag_unknown_warning_option=yes
5383 else $as_nop
5384 xorg_cv_cc_flag_unknown_warning_option=no
5385 fi
5386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5387 fi
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5389 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5391 CFLAGS="$xorg_testset_save_CFLAGS"
5392 fi
5393
5394 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5397 fi
5398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5400 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5401 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5402 then :
5403 printf %s "(cached) " >&6
5404 else $as_nop
5405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h. */
5407 int i;
5408 _ACEOF
5409 if ac_fn_c_try_compile "$LINENO"
5410 then :
5411 xorg_cv_cc_flag_unused_command_line_argument=yes
5412 else $as_nop
5413 xorg_cv_cc_flag_unused_command_line_argument=no
5414 fi
5415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5416 fi
5417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5418 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5420 CFLAGS="$xorg_testset_save_CFLAGS"
5421 fi
5422
5423 found="no"
5424
5425 if test $found = "no" ; then
5426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5428 fi
5429
5430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5432 fi
5433
5434 CFLAGS="$CFLAGS -Wformat=2"
5435
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5437 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5438 cacheid=xorg_cv_cc_flag__Wformat_2
5439 if eval test \${$cacheid+y}
5440 then :
5441 printf %s "(cached) " >&6
5442 else $as_nop
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5445 int i;
5446 int
5447 main (void)
5448 {
5449
5450 ;
5451 return 0;
5452 }
5453 _ACEOF
5454 if ac_fn_c_try_link "$LINENO"
5455 then :
5456 eval $cacheid=yes
5457 else $as_nop
5458 eval $cacheid=no
5459 fi
5460 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5461 conftest$ac_exeext conftest.$ac_ext
5462 fi
5463
5464
5465 CFLAGS="$xorg_testset_save_CFLAGS"
5466
5467 eval supported=\$$cacheid
5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5469 printf "%s\n" "$supported" >&6; }
5470 if test "$supported" = "yes" ; then
5471 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5472 found="yes"
5473 fi
5474 fi
5475
5476 if test $found = "no" ; then
5477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5479 fi
5480
5481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5483 fi
5484
5485 CFLAGS="$CFLAGS -Wformat"
5486
5487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5488 printf %s "checking if $CC supports -Wformat... " >&6; }
5489 cacheid=xorg_cv_cc_flag__Wformat
5490 if eval test \${$cacheid+y}
5491 then :
5492 printf %s "(cached) " >&6
5493 else $as_nop
5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495 /* end confdefs.h. */
5496 int i;
5497 int
5498 main (void)
5499 {
5500
5501 ;
5502 return 0;
5503 }
5504 _ACEOF
5505 if ac_fn_c_try_link "$LINENO"
5506 then :
5507 eval $cacheid=yes
5508 else $as_nop
5509 eval $cacheid=no
5510 fi
5511 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5512 conftest$ac_exeext conftest.$ac_ext
5513 fi
5514
5515
5516 CFLAGS="$xorg_testset_save_CFLAGS"
5517
5518 eval supported=\$$cacheid
5519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5520 printf "%s\n" "$supported" >&6; }
5521 if test "$supported" = "yes" ; then
5522 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5523 found="yes"
5524 fi
5525 fi
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543 xorg_testset_save_CFLAGS="$CFLAGS"
5544
5545 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5548 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5549 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5550 then :
5551 printf %s "(cached) " >&6
5552 else $as_nop
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5555 int i;
5556 _ACEOF
5557 if ac_fn_c_try_compile "$LINENO"
5558 then :
5559 xorg_cv_cc_flag_unknown_warning_option=yes
5560 else $as_nop
5561 xorg_cv_cc_flag_unknown_warning_option=no
5562 fi
5563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5564 fi
5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5566 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5568 CFLAGS="$xorg_testset_save_CFLAGS"
5569 fi
5570
5571 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5574 fi
5575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5577 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5578 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5579 then :
5580 printf %s "(cached) " >&6
5581 else $as_nop
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 int i;
5585 _ACEOF
5586 if ac_fn_c_try_compile "$LINENO"
5587 then :
5588 xorg_cv_cc_flag_unused_command_line_argument=yes
5589 else $as_nop
5590 xorg_cv_cc_flag_unused_command_line_argument=no
5591 fi
5592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5593 fi
5594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5595 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5597 CFLAGS="$xorg_testset_save_CFLAGS"
5598 fi
5599
5600 found="no"
5601
5602 if test $found = "no" ; then
5603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5605 fi
5606
5607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5609 fi
5610
5611 CFLAGS="$CFLAGS -Wstrict-prototypes"
5612
5613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5614 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5615 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5616 if eval test \${$cacheid+y}
5617 then :
5618 printf %s "(cached) " >&6
5619 else $as_nop
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5622 int i;
5623 int
5624 main (void)
5625 {
5626
5627 ;
5628 return 0;
5629 }
5630 _ACEOF
5631 if ac_fn_c_try_link "$LINENO"
5632 then :
5633 eval $cacheid=yes
5634 else $as_nop
5635 eval $cacheid=no
5636 fi
5637 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5638 conftest$ac_exeext conftest.$ac_ext
5639 fi
5640
5641
5642 CFLAGS="$xorg_testset_save_CFLAGS"
5643
5644 eval supported=\$$cacheid
5645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5646 printf "%s\n" "$supported" >&6; }
5647 if test "$supported" = "yes" ; then
5648 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5649 found="yes"
5650 fi
5651 fi
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667 xorg_testset_save_CFLAGS="$CFLAGS"
5668
5669 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5672 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5673 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5674 then :
5675 printf %s "(cached) " >&6
5676 else $as_nop
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5679 int i;
5680 _ACEOF
5681 if ac_fn_c_try_compile "$LINENO"
5682 then :
5683 xorg_cv_cc_flag_unknown_warning_option=yes
5684 else $as_nop
5685 xorg_cv_cc_flag_unknown_warning_option=no
5686 fi
5687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5688 fi
5689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5690 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5692 CFLAGS="$xorg_testset_save_CFLAGS"
5693 fi
5694
5695 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5698 fi
5699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5701 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5702 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5703 then :
5704 printf %s "(cached) " >&6
5705 else $as_nop
5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5708 int i;
5709 _ACEOF
5710 if ac_fn_c_try_compile "$LINENO"
5711 then :
5712 xorg_cv_cc_flag_unused_command_line_argument=yes
5713 else $as_nop
5714 xorg_cv_cc_flag_unused_command_line_argument=no
5715 fi
5716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5717 fi
5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5719 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5721 CFLAGS="$xorg_testset_save_CFLAGS"
5722 fi
5723
5724 found="no"
5725
5726 if test $found = "no" ; then
5727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5729 fi
5730
5731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5733 fi
5734
5735 CFLAGS="$CFLAGS -Wmissing-prototypes"
5736
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5738 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5739 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5740 if eval test \${$cacheid+y}
5741 then :
5742 printf %s "(cached) " >&6
5743 else $as_nop
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746 int i;
5747 int
5748 main (void)
5749 {
5750
5751 ;
5752 return 0;
5753 }
5754 _ACEOF
5755 if ac_fn_c_try_link "$LINENO"
5756 then :
5757 eval $cacheid=yes
5758 else $as_nop
5759 eval $cacheid=no
5760 fi
5761 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5762 conftest$ac_exeext conftest.$ac_ext
5763 fi
5764
5765
5766 CFLAGS="$xorg_testset_save_CFLAGS"
5767
5768 eval supported=\$$cacheid
5769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5770 printf "%s\n" "$supported" >&6; }
5771 if test "$supported" = "yes" ; then
5772 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5773 found="yes"
5774 fi
5775 fi
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791 xorg_testset_save_CFLAGS="$CFLAGS"
5792
5793 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5796 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5797 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5798 then :
5799 printf %s "(cached) " >&6
5800 else $as_nop
5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802 /* end confdefs.h. */
5803 int i;
5804 _ACEOF
5805 if ac_fn_c_try_compile "$LINENO"
5806 then :
5807 xorg_cv_cc_flag_unknown_warning_option=yes
5808 else $as_nop
5809 xorg_cv_cc_flag_unknown_warning_option=no
5810 fi
5811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5812 fi
5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5814 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5816 CFLAGS="$xorg_testset_save_CFLAGS"
5817 fi
5818
5819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5822 fi
5823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5825 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5826 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5827 then :
5828 printf %s "(cached) " >&6
5829 else $as_nop
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5832 int i;
5833 _ACEOF
5834 if ac_fn_c_try_compile "$LINENO"
5835 then :
5836 xorg_cv_cc_flag_unused_command_line_argument=yes
5837 else $as_nop
5838 xorg_cv_cc_flag_unused_command_line_argument=no
5839 fi
5840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5841 fi
5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5843 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5845 CFLAGS="$xorg_testset_save_CFLAGS"
5846 fi
5847
5848 found="no"
5849
5850 if test $found = "no" ; then
5851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5853 fi
5854
5855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5857 fi
5858
5859 CFLAGS="$CFLAGS -Wnested-externs"
5860
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5862 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5863 cacheid=xorg_cv_cc_flag__Wnested_externs
5864 if eval test \${$cacheid+y}
5865 then :
5866 printf %s "(cached) " >&6
5867 else $as_nop
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5870 int i;
5871 int
5872 main (void)
5873 {
5874
5875 ;
5876 return 0;
5877 }
5878 _ACEOF
5879 if ac_fn_c_try_link "$LINENO"
5880 then :
5881 eval $cacheid=yes
5882 else $as_nop
5883 eval $cacheid=no
5884 fi
5885 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5886 conftest$ac_exeext conftest.$ac_ext
5887 fi
5888
5889
5890 CFLAGS="$xorg_testset_save_CFLAGS"
5891
5892 eval supported=\$$cacheid
5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5894 printf "%s\n" "$supported" >&6; }
5895 if test "$supported" = "yes" ; then
5896 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5897 found="yes"
5898 fi
5899 fi
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915 xorg_testset_save_CFLAGS="$CFLAGS"
5916
5917 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5920 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5921 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5922 then :
5923 printf %s "(cached) " >&6
5924 else $as_nop
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5927 int i;
5928 _ACEOF
5929 if ac_fn_c_try_compile "$LINENO"
5930 then :
5931 xorg_cv_cc_flag_unknown_warning_option=yes
5932 else $as_nop
5933 xorg_cv_cc_flag_unknown_warning_option=no
5934 fi
5935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5936 fi
5937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5938 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5940 CFLAGS="$xorg_testset_save_CFLAGS"
5941 fi
5942
5943 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5946 fi
5947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5949 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5950 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5951 then :
5952 printf %s "(cached) " >&6
5953 else $as_nop
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5956 int i;
5957 _ACEOF
5958 if ac_fn_c_try_compile "$LINENO"
5959 then :
5960 xorg_cv_cc_flag_unused_command_line_argument=yes
5961 else $as_nop
5962 xorg_cv_cc_flag_unused_command_line_argument=no
5963 fi
5964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5965 fi
5966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5967 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5968 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5969 CFLAGS="$xorg_testset_save_CFLAGS"
5970 fi
5971
5972 found="no"
5973
5974 if test $found = "no" ; then
5975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5977 fi
5978
5979 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5981 fi
5982
5983 CFLAGS="$CFLAGS -Wbad-function-cast"
5984
5985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5986 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5987 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5988 if eval test \${$cacheid+y}
5989 then :
5990 printf %s "(cached) " >&6
5991 else $as_nop
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5994 int i;
5995 int
5996 main (void)
5997 {
5998
5999 ;
6000 return 0;
6001 }
6002 _ACEOF
6003 if ac_fn_c_try_link "$LINENO"
6004 then :
6005 eval $cacheid=yes
6006 else $as_nop
6007 eval $cacheid=no
6008 fi
6009 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6010 conftest$ac_exeext conftest.$ac_ext
6011 fi
6012
6013
6014 CFLAGS="$xorg_testset_save_CFLAGS"
6015
6016 eval supported=\$$cacheid
6017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6018 printf "%s\n" "$supported" >&6; }
6019 if test "$supported" = "yes" ; then
6020 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6021 found="yes"
6022 fi
6023 fi
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039 xorg_testset_save_CFLAGS="$CFLAGS"
6040
6041 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6044 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6045 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6046 then :
6047 printf %s "(cached) " >&6
6048 else $as_nop
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051 int i;
6052 _ACEOF
6053 if ac_fn_c_try_compile "$LINENO"
6054 then :
6055 xorg_cv_cc_flag_unknown_warning_option=yes
6056 else $as_nop
6057 xorg_cv_cc_flag_unknown_warning_option=no
6058 fi
6059 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6060 fi
6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6062 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6064 CFLAGS="$xorg_testset_save_CFLAGS"
6065 fi
6066
6067 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6070 fi
6071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6073 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6074 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6075 then :
6076 printf %s "(cached) " >&6
6077 else $as_nop
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080 int i;
6081 _ACEOF
6082 if ac_fn_c_try_compile "$LINENO"
6083 then :
6084 xorg_cv_cc_flag_unused_command_line_argument=yes
6085 else $as_nop
6086 xorg_cv_cc_flag_unused_command_line_argument=no
6087 fi
6088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6089 fi
6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6091 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6093 CFLAGS="$xorg_testset_save_CFLAGS"
6094 fi
6095
6096 found="no"
6097
6098 if test $found = "no" ; then
6099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6101 fi
6102
6103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6105 fi
6106
6107 CFLAGS="$CFLAGS -Wold-style-definition"
6108
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6110 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6111 cacheid=xorg_cv_cc_flag__Wold_style_definition
6112 if eval test \${$cacheid+y}
6113 then :
6114 printf %s "(cached) " >&6
6115 else $as_nop
6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117 /* end confdefs.h. */
6118 int i;
6119 int
6120 main (void)
6121 {
6122
6123 ;
6124 return 0;
6125 }
6126 _ACEOF
6127 if ac_fn_c_try_link "$LINENO"
6128 then :
6129 eval $cacheid=yes
6130 else $as_nop
6131 eval $cacheid=no
6132 fi
6133 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6134 conftest$ac_exeext conftest.$ac_ext
6135 fi
6136
6137
6138 CFLAGS="$xorg_testset_save_CFLAGS"
6139
6140 eval supported=\$$cacheid
6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6142 printf "%s\n" "$supported" >&6; }
6143 if test "$supported" = "yes" ; then
6144 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6145 found="yes"
6146 fi
6147 fi
6148
6149 if test $found = "no" ; then
6150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6152 fi
6153
6154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6156 fi
6157
6158 CFLAGS="$CFLAGS -fd"
6159
6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6161 printf %s "checking if $CC supports -fd... " >&6; }
6162 cacheid=xorg_cv_cc_flag__fd
6163 if eval test \${$cacheid+y}
6164 then :
6165 printf %s "(cached) " >&6
6166 else $as_nop
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h. */
6169 int i;
6170 int
6171 main (void)
6172 {
6173
6174 ;
6175 return 0;
6176 }
6177 _ACEOF
6178 if ac_fn_c_try_link "$LINENO"
6179 then :
6180 eval $cacheid=yes
6181 else $as_nop
6182 eval $cacheid=no
6183 fi
6184 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6185 conftest$ac_exeext conftest.$ac_ext
6186 fi
6187
6188
6189 CFLAGS="$xorg_testset_save_CFLAGS"
6190
6191 eval supported=\$$cacheid
6192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6193 printf "%s\n" "$supported" >&6; }
6194 if test "$supported" = "yes" ; then
6195 BASE_CFLAGS="$BASE_CFLAGS -fd"
6196 found="yes"
6197 fi
6198 fi
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214 xorg_testset_save_CFLAGS="$CFLAGS"
6215
6216 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6219 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6220 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6221 then :
6222 printf %s "(cached) " >&6
6223 else $as_nop
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6226 int i;
6227 _ACEOF
6228 if ac_fn_c_try_compile "$LINENO"
6229 then :
6230 xorg_cv_cc_flag_unknown_warning_option=yes
6231 else $as_nop
6232 xorg_cv_cc_flag_unknown_warning_option=no
6233 fi
6234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6235 fi
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6237 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6239 CFLAGS="$xorg_testset_save_CFLAGS"
6240 fi
6241
6242 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6245 fi
6246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6248 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6249 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6250 then :
6251 printf %s "(cached) " >&6
6252 else $as_nop
6253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254 /* end confdefs.h. */
6255 int i;
6256 _ACEOF
6257 if ac_fn_c_try_compile "$LINENO"
6258 then :
6259 xorg_cv_cc_flag_unused_command_line_argument=yes
6260 else $as_nop
6261 xorg_cv_cc_flag_unused_command_line_argument=no
6262 fi
6263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6264 fi
6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6266 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6268 CFLAGS="$xorg_testset_save_CFLAGS"
6269 fi
6270
6271 found="no"
6272
6273 if test $found = "no" ; then
6274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6276 fi
6277
6278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6280 fi
6281
6282 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6283
6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6285 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6286 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6287 if eval test \${$cacheid+y}
6288 then :
6289 printf %s "(cached) " >&6
6290 else $as_nop
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6293 int i;
6294 int
6295 main (void)
6296 {
6297
6298 ;
6299 return 0;
6300 }
6301 _ACEOF
6302 if ac_fn_c_try_link "$LINENO"
6303 then :
6304 eval $cacheid=yes
6305 else $as_nop
6306 eval $cacheid=no
6307 fi
6308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6309 conftest$ac_exeext conftest.$ac_ext
6310 fi
6311
6312
6313 CFLAGS="$xorg_testset_save_CFLAGS"
6314
6315 eval supported=\$$cacheid
6316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6317 printf "%s\n" "$supported" >&6; }
6318 if test "$supported" = "yes" ; then
6319 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6320 found="yes"
6321 fi
6322 fi
6323
6324
6325
6326
6327
6328 # This chunk adds additional warnings that could catch undesired effects.
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342 xorg_testset_save_CFLAGS="$CFLAGS"
6343
6344 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6347 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6348 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6349 then :
6350 printf %s "(cached) " >&6
6351 else $as_nop
6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353 /* end confdefs.h. */
6354 int i;
6355 _ACEOF
6356 if ac_fn_c_try_compile "$LINENO"
6357 then :
6358 xorg_cv_cc_flag_unknown_warning_option=yes
6359 else $as_nop
6360 xorg_cv_cc_flag_unknown_warning_option=no
6361 fi
6362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6363 fi
6364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6365 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6366 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6367 CFLAGS="$xorg_testset_save_CFLAGS"
6368 fi
6369
6370 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6373 fi
6374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6376 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6377 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6378 then :
6379 printf %s "(cached) " >&6
6380 else $as_nop
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6383 int i;
6384 _ACEOF
6385 if ac_fn_c_try_compile "$LINENO"
6386 then :
6387 xorg_cv_cc_flag_unused_command_line_argument=yes
6388 else $as_nop
6389 xorg_cv_cc_flag_unused_command_line_argument=no
6390 fi
6391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6392 fi
6393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6394 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6396 CFLAGS="$xorg_testset_save_CFLAGS"
6397 fi
6398
6399 found="no"
6400
6401 if test $found = "no" ; then
6402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6404 fi
6405
6406 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6408 fi
6409
6410 CFLAGS="$CFLAGS -Wunused"
6411
6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6413 printf %s "checking if $CC supports -Wunused... " >&6; }
6414 cacheid=xorg_cv_cc_flag__Wunused
6415 if eval test \${$cacheid+y}
6416 then :
6417 printf %s "(cached) " >&6
6418 else $as_nop
6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6421 int i;
6422 int
6423 main (void)
6424 {
6425
6426 ;
6427 return 0;
6428 }
6429 _ACEOF
6430 if ac_fn_c_try_link "$LINENO"
6431 then :
6432 eval $cacheid=yes
6433 else $as_nop
6434 eval $cacheid=no
6435 fi
6436 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6437 conftest$ac_exeext conftest.$ac_ext
6438 fi
6439
6440
6441 CFLAGS="$xorg_testset_save_CFLAGS"
6442
6443 eval supported=\$$cacheid
6444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6445 printf "%s\n" "$supported" >&6; }
6446 if test "$supported" = "yes" ; then
6447 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6448 found="yes"
6449 fi
6450 fi
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466 xorg_testset_save_CFLAGS="$CFLAGS"
6467
6468 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6471 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6472 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6473 then :
6474 printf %s "(cached) " >&6
6475 else $as_nop
6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h. */
6478 int i;
6479 _ACEOF
6480 if ac_fn_c_try_compile "$LINENO"
6481 then :
6482 xorg_cv_cc_flag_unknown_warning_option=yes
6483 else $as_nop
6484 xorg_cv_cc_flag_unknown_warning_option=no
6485 fi
6486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6487 fi
6488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6489 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6491 CFLAGS="$xorg_testset_save_CFLAGS"
6492 fi
6493
6494 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6497 fi
6498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6500 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6501 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6502 then :
6503 printf %s "(cached) " >&6
6504 else $as_nop
6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506 /* end confdefs.h. */
6507 int i;
6508 _ACEOF
6509 if ac_fn_c_try_compile "$LINENO"
6510 then :
6511 xorg_cv_cc_flag_unused_command_line_argument=yes
6512 else $as_nop
6513 xorg_cv_cc_flag_unused_command_line_argument=no
6514 fi
6515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6516 fi
6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6518 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6520 CFLAGS="$xorg_testset_save_CFLAGS"
6521 fi
6522
6523 found="no"
6524
6525 if test $found = "no" ; then
6526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6528 fi
6529
6530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6532 fi
6533
6534 CFLAGS="$CFLAGS -Wuninitialized"
6535
6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6537 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6538 cacheid=xorg_cv_cc_flag__Wuninitialized
6539 if eval test \${$cacheid+y}
6540 then :
6541 printf %s "(cached) " >&6
6542 else $as_nop
6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h. */
6545 int i;
6546 int
6547 main (void)
6548 {
6549
6550 ;
6551 return 0;
6552 }
6553 _ACEOF
6554 if ac_fn_c_try_link "$LINENO"
6555 then :
6556 eval $cacheid=yes
6557 else $as_nop
6558 eval $cacheid=no
6559 fi
6560 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6561 conftest$ac_exeext conftest.$ac_ext
6562 fi
6563
6564
6565 CFLAGS="$xorg_testset_save_CFLAGS"
6566
6567 eval supported=\$$cacheid
6568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6569 printf "%s\n" "$supported" >&6; }
6570 if test "$supported" = "yes" ; then
6571 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6572 found="yes"
6573 fi
6574 fi
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590 xorg_testset_save_CFLAGS="$CFLAGS"
6591
6592 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6595 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6596 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6597 then :
6598 printf %s "(cached) " >&6
6599 else $as_nop
6600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6602 int i;
6603 _ACEOF
6604 if ac_fn_c_try_compile "$LINENO"
6605 then :
6606 xorg_cv_cc_flag_unknown_warning_option=yes
6607 else $as_nop
6608 xorg_cv_cc_flag_unknown_warning_option=no
6609 fi
6610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6611 fi
6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6613 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6615 CFLAGS="$xorg_testset_save_CFLAGS"
6616 fi
6617
6618 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6621 fi
6622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6624 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6625 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6626 then :
6627 printf %s "(cached) " >&6
6628 else $as_nop
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6631 int i;
6632 _ACEOF
6633 if ac_fn_c_try_compile "$LINENO"
6634 then :
6635 xorg_cv_cc_flag_unused_command_line_argument=yes
6636 else $as_nop
6637 xorg_cv_cc_flag_unused_command_line_argument=no
6638 fi
6639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6640 fi
6641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6642 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6643 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6644 CFLAGS="$xorg_testset_save_CFLAGS"
6645 fi
6646
6647 found="no"
6648
6649 if test $found = "no" ; then
6650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6652 fi
6653
6654 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6656 fi
6657
6658 CFLAGS="$CFLAGS -Wshadow"
6659
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6661 printf %s "checking if $CC supports -Wshadow... " >&6; }
6662 cacheid=xorg_cv_cc_flag__Wshadow
6663 if eval test \${$cacheid+y}
6664 then :
6665 printf %s "(cached) " >&6
6666 else $as_nop
6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h. */
6669 int i;
6670 int
6671 main (void)
6672 {
6673
6674 ;
6675 return 0;
6676 }
6677 _ACEOF
6678 if ac_fn_c_try_link "$LINENO"
6679 then :
6680 eval $cacheid=yes
6681 else $as_nop
6682 eval $cacheid=no
6683 fi
6684 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6685 conftest$ac_exeext conftest.$ac_ext
6686 fi
6687
6688
6689 CFLAGS="$xorg_testset_save_CFLAGS"
6690
6691 eval supported=\$$cacheid
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6693 printf "%s\n" "$supported" >&6; }
6694 if test "$supported" = "yes" ; then
6695 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6696 found="yes"
6697 fi
6698 fi
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714 xorg_testset_save_CFLAGS="$CFLAGS"
6715
6716 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6719 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6720 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6721 then :
6722 printf %s "(cached) " >&6
6723 else $as_nop
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6726 int i;
6727 _ACEOF
6728 if ac_fn_c_try_compile "$LINENO"
6729 then :
6730 xorg_cv_cc_flag_unknown_warning_option=yes
6731 else $as_nop
6732 xorg_cv_cc_flag_unknown_warning_option=no
6733 fi
6734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6735 fi
6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6737 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6739 CFLAGS="$xorg_testset_save_CFLAGS"
6740 fi
6741
6742 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6745 fi
6746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6748 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6749 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6750 then :
6751 printf %s "(cached) " >&6
6752 else $as_nop
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755 int i;
6756 _ACEOF
6757 if ac_fn_c_try_compile "$LINENO"
6758 then :
6759 xorg_cv_cc_flag_unused_command_line_argument=yes
6760 else $as_nop
6761 xorg_cv_cc_flag_unused_command_line_argument=no
6762 fi
6763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6764 fi
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6766 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6767 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6768 CFLAGS="$xorg_testset_save_CFLAGS"
6769 fi
6770
6771 found="no"
6772
6773 if test $found = "no" ; then
6774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6776 fi
6777
6778 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6780 fi
6781
6782 CFLAGS="$CFLAGS -Wmissing-noreturn"
6783
6784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6785 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6786 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6787 if eval test \${$cacheid+y}
6788 then :
6789 printf %s "(cached) " >&6
6790 else $as_nop
6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6793 int i;
6794 int
6795 main (void)
6796 {
6797
6798 ;
6799 return 0;
6800 }
6801 _ACEOF
6802 if ac_fn_c_try_link "$LINENO"
6803 then :
6804 eval $cacheid=yes
6805 else $as_nop
6806 eval $cacheid=no
6807 fi
6808 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6809 conftest$ac_exeext conftest.$ac_ext
6810 fi
6811
6812
6813 CFLAGS="$xorg_testset_save_CFLAGS"
6814
6815 eval supported=\$$cacheid
6816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6817 printf "%s\n" "$supported" >&6; }
6818 if test "$supported" = "yes" ; then
6819 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6820 found="yes"
6821 fi
6822 fi
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838 xorg_testset_save_CFLAGS="$CFLAGS"
6839
6840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6843 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6844 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6845 then :
6846 printf %s "(cached) " >&6
6847 else $as_nop
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 int i;
6851 _ACEOF
6852 if ac_fn_c_try_compile "$LINENO"
6853 then :
6854 xorg_cv_cc_flag_unknown_warning_option=yes
6855 else $as_nop
6856 xorg_cv_cc_flag_unknown_warning_option=no
6857 fi
6858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6859 fi
6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6861 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6863 CFLAGS="$xorg_testset_save_CFLAGS"
6864 fi
6865
6866 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6869 fi
6870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6872 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6873 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6874 then :
6875 printf %s "(cached) " >&6
6876 else $as_nop
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6879 int i;
6880 _ACEOF
6881 if ac_fn_c_try_compile "$LINENO"
6882 then :
6883 xorg_cv_cc_flag_unused_command_line_argument=yes
6884 else $as_nop
6885 xorg_cv_cc_flag_unused_command_line_argument=no
6886 fi
6887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6888 fi
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6890 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6892 CFLAGS="$xorg_testset_save_CFLAGS"
6893 fi
6894
6895 found="no"
6896
6897 if test $found = "no" ; then
6898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6900 fi
6901
6902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6904 fi
6905
6906 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6907
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6909 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6910 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6911 if eval test \${$cacheid+y}
6912 then :
6913 printf %s "(cached) " >&6
6914 else $as_nop
6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916 /* end confdefs.h. */
6917 int i;
6918 int
6919 main (void)
6920 {
6921
6922 ;
6923 return 0;
6924 }
6925 _ACEOF
6926 if ac_fn_c_try_link "$LINENO"
6927 then :
6928 eval $cacheid=yes
6929 else $as_nop
6930 eval $cacheid=no
6931 fi
6932 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6933 conftest$ac_exeext conftest.$ac_ext
6934 fi
6935
6936
6937 CFLAGS="$xorg_testset_save_CFLAGS"
6938
6939 eval supported=\$$cacheid
6940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6941 printf "%s\n" "$supported" >&6; }
6942 if test "$supported" = "yes" ; then
6943 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6944 found="yes"
6945 fi
6946 fi
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962 xorg_testset_save_CFLAGS="$CFLAGS"
6963
6964 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6967 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6968 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6969 then :
6970 printf %s "(cached) " >&6
6971 else $as_nop
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6974 int i;
6975 _ACEOF
6976 if ac_fn_c_try_compile "$LINENO"
6977 then :
6978 xorg_cv_cc_flag_unknown_warning_option=yes
6979 else $as_nop
6980 xorg_cv_cc_flag_unknown_warning_option=no
6981 fi
6982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6983 fi
6984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6985 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6987 CFLAGS="$xorg_testset_save_CFLAGS"
6988 fi
6989
6990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6993 fi
6994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6996 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6997 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6998 then :
6999 printf %s "(cached) " >&6
7000 else $as_nop
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7003 int i;
7004 _ACEOF
7005 if ac_fn_c_try_compile "$LINENO"
7006 then :
7007 xorg_cv_cc_flag_unused_command_line_argument=yes
7008 else $as_nop
7009 xorg_cv_cc_flag_unused_command_line_argument=no
7010 fi
7011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7012 fi
7013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7014 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7016 CFLAGS="$xorg_testset_save_CFLAGS"
7017 fi
7018
7019 found="no"
7020
7021 if test $found = "no" ; then
7022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7024 fi
7025
7026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7028 fi
7029
7030 CFLAGS="$CFLAGS -Wredundant-decls"
7031
7032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7033 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7034 cacheid=xorg_cv_cc_flag__Wredundant_decls
7035 if eval test \${$cacheid+y}
7036 then :
7037 printf %s "(cached) " >&6
7038 else $as_nop
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7041 int i;
7042 int
7043 main (void)
7044 {
7045
7046 ;
7047 return 0;
7048 }
7049 _ACEOF
7050 if ac_fn_c_try_link "$LINENO"
7051 then :
7052 eval $cacheid=yes
7053 else $as_nop
7054 eval $cacheid=no
7055 fi
7056 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7057 conftest$ac_exeext conftest.$ac_ext
7058 fi
7059
7060
7061 CFLAGS="$xorg_testset_save_CFLAGS"
7062
7063 eval supported=\$$cacheid
7064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7065 printf "%s\n" "$supported" >&6; }
7066 if test "$supported" = "yes" ; then
7067 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7068 found="yes"
7069 fi
7070 fi
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086 xorg_testset_save_CFLAGS="$CFLAGS"
7087
7088 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7091 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7092 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7093 then :
7094 printf %s "(cached) " >&6
7095 else $as_nop
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h. */
7098 int i;
7099 _ACEOF
7100 if ac_fn_c_try_compile "$LINENO"
7101 then :
7102 xorg_cv_cc_flag_unknown_warning_option=yes
7103 else $as_nop
7104 xorg_cv_cc_flag_unknown_warning_option=no
7105 fi
7106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7107 fi
7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7109 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7111 CFLAGS="$xorg_testset_save_CFLAGS"
7112 fi
7113
7114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7117 fi
7118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7120 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7121 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7122 then :
7123 printf %s "(cached) " >&6
7124 else $as_nop
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7127 int i;
7128 _ACEOF
7129 if ac_fn_c_try_compile "$LINENO"
7130 then :
7131 xorg_cv_cc_flag_unused_command_line_argument=yes
7132 else $as_nop
7133 xorg_cv_cc_flag_unused_command_line_argument=no
7134 fi
7135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7136 fi
7137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7138 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7140 CFLAGS="$xorg_testset_save_CFLAGS"
7141 fi
7142
7143 found="no"
7144
7145 if test $found = "no" ; then
7146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7148 fi
7149
7150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7152 fi
7153
7154 CFLAGS="$CFLAGS -Wlogical-op"
7155
7156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7157 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7158 cacheid=xorg_cv_cc_flag__Wlogical_op
7159 if eval test \${$cacheid+y}
7160 then :
7161 printf %s "(cached) " >&6
7162 else $as_nop
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7165 int i;
7166 int
7167 main (void)
7168 {
7169
7170 ;
7171 return 0;
7172 }
7173 _ACEOF
7174 if ac_fn_c_try_link "$LINENO"
7175 then :
7176 eval $cacheid=yes
7177 else $as_nop
7178 eval $cacheid=no
7179 fi
7180 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7181 conftest$ac_exeext conftest.$ac_ext
7182 fi
7183
7184
7185 CFLAGS="$xorg_testset_save_CFLAGS"
7186
7187 eval supported=\$$cacheid
7188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7189 printf "%s\n" "$supported" >&6; }
7190 if test "$supported" = "yes" ; then
7191 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7192 found="yes"
7193 fi
7194 fi
7195
7196
7197
7198 # These are currently disabled because they are noisy. They will be enabled
7199 # in the future once the codebase is sufficiently modernized to silence
7200 # them. For now, I don't want them to drown out the other warnings.
7201 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7202 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7203 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7204
7205 # Turn some warnings into errors, so we don't accidently get successful builds
7206 # when there are problems that should be fixed.
7207
7208 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222 xorg_testset_save_CFLAGS="$CFLAGS"
7223
7224 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7227 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7228 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7229 then :
7230 printf %s "(cached) " >&6
7231 else $as_nop
7232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h. */
7234 int i;
7235 _ACEOF
7236 if ac_fn_c_try_compile "$LINENO"
7237 then :
7238 xorg_cv_cc_flag_unknown_warning_option=yes
7239 else $as_nop
7240 xorg_cv_cc_flag_unknown_warning_option=no
7241 fi
7242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7243 fi
7244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7245 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7247 CFLAGS="$xorg_testset_save_CFLAGS"
7248 fi
7249
7250 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7253 fi
7254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7256 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7257 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7258 then :
7259 printf %s "(cached) " >&6
7260 else $as_nop
7261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7262 /* end confdefs.h. */
7263 int i;
7264 _ACEOF
7265 if ac_fn_c_try_compile "$LINENO"
7266 then :
7267 xorg_cv_cc_flag_unused_command_line_argument=yes
7268 else $as_nop
7269 xorg_cv_cc_flag_unused_command_line_argument=no
7270 fi
7271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7272 fi
7273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7274 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7275 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7276 CFLAGS="$xorg_testset_save_CFLAGS"
7277 fi
7278
7279 found="no"
7280
7281 if test $found = "no" ; then
7282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7284 fi
7285
7286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7288 fi
7289
7290 CFLAGS="$CFLAGS -Werror=implicit"
7291
7292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7293 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7294 cacheid=xorg_cv_cc_flag__Werror_implicit
7295 if eval test \${$cacheid+y}
7296 then :
7297 printf %s "(cached) " >&6
7298 else $as_nop
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7301 int i;
7302 int
7303 main (void)
7304 {
7305
7306 ;
7307 return 0;
7308 }
7309 _ACEOF
7310 if ac_fn_c_try_link "$LINENO"
7311 then :
7312 eval $cacheid=yes
7313 else $as_nop
7314 eval $cacheid=no
7315 fi
7316 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7317 conftest$ac_exeext conftest.$ac_ext
7318 fi
7319
7320
7321 CFLAGS="$xorg_testset_save_CFLAGS"
7322
7323 eval supported=\$$cacheid
7324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7325 printf "%s\n" "$supported" >&6; }
7326 if test "$supported" = "yes" ; then
7327 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7328 found="yes"
7329 fi
7330 fi
7331
7332 if test $found = "no" ; then
7333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7335 fi
7336
7337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7339 fi
7340
7341 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7342
7343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7344 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7345 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7346 if eval test \${$cacheid+y}
7347 then :
7348 printf %s "(cached) " >&6
7349 else $as_nop
7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351 /* end confdefs.h. */
7352 int i;
7353 int
7354 main (void)
7355 {
7356
7357 ;
7358 return 0;
7359 }
7360 _ACEOF
7361 if ac_fn_c_try_link "$LINENO"
7362 then :
7363 eval $cacheid=yes
7364 else $as_nop
7365 eval $cacheid=no
7366 fi
7367 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7368 conftest$ac_exeext conftest.$ac_ext
7369 fi
7370
7371
7372 CFLAGS="$xorg_testset_save_CFLAGS"
7373
7374 eval supported=\$$cacheid
7375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7376 printf "%s\n" "$supported" >&6; }
7377 if test "$supported" = "yes" ; then
7378 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7379 found="yes"
7380 fi
7381 fi
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397 xorg_testset_save_CFLAGS="$CFLAGS"
7398
7399 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7402 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7403 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7404 then :
7405 printf %s "(cached) " >&6
7406 else $as_nop
7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408 /* end confdefs.h. */
7409 int i;
7410 _ACEOF
7411 if ac_fn_c_try_compile "$LINENO"
7412 then :
7413 xorg_cv_cc_flag_unknown_warning_option=yes
7414 else $as_nop
7415 xorg_cv_cc_flag_unknown_warning_option=no
7416 fi
7417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7418 fi
7419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7420 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7422 CFLAGS="$xorg_testset_save_CFLAGS"
7423 fi
7424
7425 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7428 fi
7429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7431 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7432 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7433 then :
7434 printf %s "(cached) " >&6
7435 else $as_nop
7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h. */
7438 int i;
7439 _ACEOF
7440 if ac_fn_c_try_compile "$LINENO"
7441 then :
7442 xorg_cv_cc_flag_unused_command_line_argument=yes
7443 else $as_nop
7444 xorg_cv_cc_flag_unused_command_line_argument=no
7445 fi
7446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7447 fi
7448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7449 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7451 CFLAGS="$xorg_testset_save_CFLAGS"
7452 fi
7453
7454 found="no"
7455
7456 if test $found = "no" ; then
7457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7459 fi
7460
7461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7463 fi
7464
7465 CFLAGS="$CFLAGS -Werror=nonnull"
7466
7467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7468 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7469 cacheid=xorg_cv_cc_flag__Werror_nonnull
7470 if eval test \${$cacheid+y}
7471 then :
7472 printf %s "(cached) " >&6
7473 else $as_nop
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7476 int i;
7477 int
7478 main (void)
7479 {
7480
7481 ;
7482 return 0;
7483 }
7484 _ACEOF
7485 if ac_fn_c_try_link "$LINENO"
7486 then :
7487 eval $cacheid=yes
7488 else $as_nop
7489 eval $cacheid=no
7490 fi
7491 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7492 conftest$ac_exeext conftest.$ac_ext
7493 fi
7494
7495
7496 CFLAGS="$xorg_testset_save_CFLAGS"
7497
7498 eval supported=\$$cacheid
7499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7500 printf "%s\n" "$supported" >&6; }
7501 if test "$supported" = "yes" ; then
7502 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7503 found="yes"
7504 fi
7505 fi
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521 xorg_testset_save_CFLAGS="$CFLAGS"
7522
7523 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7526 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7527 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7528 then :
7529 printf %s "(cached) " >&6
7530 else $as_nop
7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7533 int i;
7534 _ACEOF
7535 if ac_fn_c_try_compile "$LINENO"
7536 then :
7537 xorg_cv_cc_flag_unknown_warning_option=yes
7538 else $as_nop
7539 xorg_cv_cc_flag_unknown_warning_option=no
7540 fi
7541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7542 fi
7543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7544 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7546 CFLAGS="$xorg_testset_save_CFLAGS"
7547 fi
7548
7549 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7552 fi
7553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7555 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7556 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7557 then :
7558 printf %s "(cached) " >&6
7559 else $as_nop
7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561 /* end confdefs.h. */
7562 int i;
7563 _ACEOF
7564 if ac_fn_c_try_compile "$LINENO"
7565 then :
7566 xorg_cv_cc_flag_unused_command_line_argument=yes
7567 else $as_nop
7568 xorg_cv_cc_flag_unused_command_line_argument=no
7569 fi
7570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7571 fi
7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7573 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7575 CFLAGS="$xorg_testset_save_CFLAGS"
7576 fi
7577
7578 found="no"
7579
7580 if test $found = "no" ; then
7581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7583 fi
7584
7585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7587 fi
7588
7589 CFLAGS="$CFLAGS -Werror=init-self"
7590
7591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7592 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7593 cacheid=xorg_cv_cc_flag__Werror_init_self
7594 if eval test \${$cacheid+y}
7595 then :
7596 printf %s "(cached) " >&6
7597 else $as_nop
7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599 /* end confdefs.h. */
7600 int i;
7601 int
7602 main (void)
7603 {
7604
7605 ;
7606 return 0;
7607 }
7608 _ACEOF
7609 if ac_fn_c_try_link "$LINENO"
7610 then :
7611 eval $cacheid=yes
7612 else $as_nop
7613 eval $cacheid=no
7614 fi
7615 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7616 conftest$ac_exeext conftest.$ac_ext
7617 fi
7618
7619
7620 CFLAGS="$xorg_testset_save_CFLAGS"
7621
7622 eval supported=\$$cacheid
7623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7624 printf "%s\n" "$supported" >&6; }
7625 if test "$supported" = "yes" ; then
7626 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7627 found="yes"
7628 fi
7629 fi
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645 xorg_testset_save_CFLAGS="$CFLAGS"
7646
7647 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7650 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7651 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7652 then :
7653 printf %s "(cached) " >&6
7654 else $as_nop
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7657 int i;
7658 _ACEOF
7659 if ac_fn_c_try_compile "$LINENO"
7660 then :
7661 xorg_cv_cc_flag_unknown_warning_option=yes
7662 else $as_nop
7663 xorg_cv_cc_flag_unknown_warning_option=no
7664 fi
7665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7666 fi
7667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7668 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7670 CFLAGS="$xorg_testset_save_CFLAGS"
7671 fi
7672
7673 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7676 fi
7677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7679 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7680 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7681 then :
7682 printf %s "(cached) " >&6
7683 else $as_nop
7684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h. */
7686 int i;
7687 _ACEOF
7688 if ac_fn_c_try_compile "$LINENO"
7689 then :
7690 xorg_cv_cc_flag_unused_command_line_argument=yes
7691 else $as_nop
7692 xorg_cv_cc_flag_unused_command_line_argument=no
7693 fi
7694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7695 fi
7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7697 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7699 CFLAGS="$xorg_testset_save_CFLAGS"
7700 fi
7701
7702 found="no"
7703
7704 if test $found = "no" ; then
7705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7707 fi
7708
7709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7711 fi
7712
7713 CFLAGS="$CFLAGS -Werror=main"
7714
7715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7716 printf %s "checking if $CC supports -Werror=main... " >&6; }
7717 cacheid=xorg_cv_cc_flag__Werror_main
7718 if eval test \${$cacheid+y}
7719 then :
7720 printf %s "(cached) " >&6
7721 else $as_nop
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7724 int i;
7725 int
7726 main (void)
7727 {
7728
7729 ;
7730 return 0;
7731 }
7732 _ACEOF
7733 if ac_fn_c_try_link "$LINENO"
7734 then :
7735 eval $cacheid=yes
7736 else $as_nop
7737 eval $cacheid=no
7738 fi
7739 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7740 conftest$ac_exeext conftest.$ac_ext
7741 fi
7742
7743
7744 CFLAGS="$xorg_testset_save_CFLAGS"
7745
7746 eval supported=\$$cacheid
7747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7748 printf "%s\n" "$supported" >&6; }
7749 if test "$supported" = "yes" ; then
7750 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7751 found="yes"
7752 fi
7753 fi
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769 xorg_testset_save_CFLAGS="$CFLAGS"
7770
7771 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7774 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7775 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7776 then :
7777 printf %s "(cached) " >&6
7778 else $as_nop
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"
7784 then :
7785 xorg_cv_cc_flag_unknown_warning_option=yes
7786 else $as_nop
7787 xorg_cv_cc_flag_unknown_warning_option=no
7788 fi
7789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7790 fi
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7792 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7794 CFLAGS="$xorg_testset_save_CFLAGS"
7795 fi
7796
7797 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7800 fi
7801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7803 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7804 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7805 then :
7806 printf %s "(cached) " >&6
7807 else $as_nop
7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h. */
7810 int i;
7811 _ACEOF
7812 if ac_fn_c_try_compile "$LINENO"
7813 then :
7814 xorg_cv_cc_flag_unused_command_line_argument=yes
7815 else $as_nop
7816 xorg_cv_cc_flag_unused_command_line_argument=no
7817 fi
7818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7819 fi
7820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7821 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7823 CFLAGS="$xorg_testset_save_CFLAGS"
7824 fi
7825
7826 found="no"
7827
7828 if test $found = "no" ; then
7829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7831 fi
7832
7833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7835 fi
7836
7837 CFLAGS="$CFLAGS -Werror=missing-braces"
7838
7839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7840 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7841 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7842 if eval test \${$cacheid+y}
7843 then :
7844 printf %s "(cached) " >&6
7845 else $as_nop
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7848 int i;
7849 int
7850 main (void)
7851 {
7852
7853 ;
7854 return 0;
7855 }
7856 _ACEOF
7857 if ac_fn_c_try_link "$LINENO"
7858 then :
7859 eval $cacheid=yes
7860 else $as_nop
7861 eval $cacheid=no
7862 fi
7863 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7864 conftest$ac_exeext conftest.$ac_ext
7865 fi
7866
7867
7868 CFLAGS="$xorg_testset_save_CFLAGS"
7869
7870 eval supported=\$$cacheid
7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7872 printf "%s\n" "$supported" >&6; }
7873 if test "$supported" = "yes" ; then
7874 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7875 found="yes"
7876 fi
7877 fi
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893 xorg_testset_save_CFLAGS="$CFLAGS"
7894
7895 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7898 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7899 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7900 then :
7901 printf %s "(cached) " >&6
7902 else $as_nop
7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h. */
7905 int i;
7906 _ACEOF
7907 if ac_fn_c_try_compile "$LINENO"
7908 then :
7909 xorg_cv_cc_flag_unknown_warning_option=yes
7910 else $as_nop
7911 xorg_cv_cc_flag_unknown_warning_option=no
7912 fi
7913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7914 fi
7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7916 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7918 CFLAGS="$xorg_testset_save_CFLAGS"
7919 fi
7920
7921 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7924 fi
7925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7927 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7928 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7929 then :
7930 printf %s "(cached) " >&6
7931 else $as_nop
7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h. */
7934 int i;
7935 _ACEOF
7936 if ac_fn_c_try_compile "$LINENO"
7937 then :
7938 xorg_cv_cc_flag_unused_command_line_argument=yes
7939 else $as_nop
7940 xorg_cv_cc_flag_unused_command_line_argument=no
7941 fi
7942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7943 fi
7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7945 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7947 CFLAGS="$xorg_testset_save_CFLAGS"
7948 fi
7949
7950 found="no"
7951
7952 if test $found = "no" ; then
7953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7955 fi
7956
7957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7959 fi
7960
7961 CFLAGS="$CFLAGS -Werror=sequence-point"
7962
7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7964 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7965 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7966 if eval test \${$cacheid+y}
7967 then :
7968 printf %s "(cached) " >&6
7969 else $as_nop
7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971 /* end confdefs.h. */
7972 int i;
7973 int
7974 main (void)
7975 {
7976
7977 ;
7978 return 0;
7979 }
7980 _ACEOF
7981 if ac_fn_c_try_link "$LINENO"
7982 then :
7983 eval $cacheid=yes
7984 else $as_nop
7985 eval $cacheid=no
7986 fi
7987 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7988 conftest$ac_exeext conftest.$ac_ext
7989 fi
7990
7991
7992 CFLAGS="$xorg_testset_save_CFLAGS"
7993
7994 eval supported=\$$cacheid
7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7996 printf "%s\n" "$supported" >&6; }
7997 if test "$supported" = "yes" ; then
7998 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7999 found="yes"
8000 fi
8001 fi
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017 xorg_testset_save_CFLAGS="$CFLAGS"
8018
8019 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8022 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8023 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8024 then :
8025 printf %s "(cached) " >&6
8026 else $as_nop
8027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028 /* end confdefs.h. */
8029 int i;
8030 _ACEOF
8031 if ac_fn_c_try_compile "$LINENO"
8032 then :
8033 xorg_cv_cc_flag_unknown_warning_option=yes
8034 else $as_nop
8035 xorg_cv_cc_flag_unknown_warning_option=no
8036 fi
8037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8038 fi
8039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8040 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8042 CFLAGS="$xorg_testset_save_CFLAGS"
8043 fi
8044
8045 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8048 fi
8049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8051 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8052 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8053 then :
8054 printf %s "(cached) " >&6
8055 else $as_nop
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8058 int i;
8059 _ACEOF
8060 if ac_fn_c_try_compile "$LINENO"
8061 then :
8062 xorg_cv_cc_flag_unused_command_line_argument=yes
8063 else $as_nop
8064 xorg_cv_cc_flag_unused_command_line_argument=no
8065 fi
8066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8067 fi
8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8069 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8071 CFLAGS="$xorg_testset_save_CFLAGS"
8072 fi
8073
8074 found="no"
8075
8076 if test $found = "no" ; then
8077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8079 fi
8080
8081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8083 fi
8084
8085 CFLAGS="$CFLAGS -Werror=return-type"
8086
8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8088 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8089 cacheid=xorg_cv_cc_flag__Werror_return_type
8090 if eval test \${$cacheid+y}
8091 then :
8092 printf %s "(cached) " >&6
8093 else $as_nop
8094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095 /* end confdefs.h. */
8096 int i;
8097 int
8098 main (void)
8099 {
8100
8101 ;
8102 return 0;
8103 }
8104 _ACEOF
8105 if ac_fn_c_try_link "$LINENO"
8106 then :
8107 eval $cacheid=yes
8108 else $as_nop
8109 eval $cacheid=no
8110 fi
8111 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8112 conftest$ac_exeext conftest.$ac_ext
8113 fi
8114
8115
8116 CFLAGS="$xorg_testset_save_CFLAGS"
8117
8118 eval supported=\$$cacheid
8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8120 printf "%s\n" "$supported" >&6; }
8121 if test "$supported" = "yes" ; then
8122 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8123 found="yes"
8124 fi
8125 fi
8126
8127 if test $found = "no" ; then
8128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8130 fi
8131
8132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8134 fi
8135
8136 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8137
8138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8139 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8140 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8141 if eval test \${$cacheid+y}
8142 then :
8143 printf %s "(cached) " >&6
8144 else $as_nop
8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8147 int i;
8148 int
8149 main (void)
8150 {
8151
8152 ;
8153 return 0;
8154 }
8155 _ACEOF
8156 if ac_fn_c_try_link "$LINENO"
8157 then :
8158 eval $cacheid=yes
8159 else $as_nop
8160 eval $cacheid=no
8161 fi
8162 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8163 conftest$ac_exeext conftest.$ac_ext
8164 fi
8165
8166
8167 CFLAGS="$xorg_testset_save_CFLAGS"
8168
8169 eval supported=\$$cacheid
8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8171 printf "%s\n" "$supported" >&6; }
8172 if test "$supported" = "yes" ; then
8173 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8174 found="yes"
8175 fi
8176 fi
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192 xorg_testset_save_CFLAGS="$CFLAGS"
8193
8194 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8197 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8198 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8199 then :
8200 printf %s "(cached) " >&6
8201 else $as_nop
8202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h. */
8204 int i;
8205 _ACEOF
8206 if ac_fn_c_try_compile "$LINENO"
8207 then :
8208 xorg_cv_cc_flag_unknown_warning_option=yes
8209 else $as_nop
8210 xorg_cv_cc_flag_unknown_warning_option=no
8211 fi
8212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8213 fi
8214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8215 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8217 CFLAGS="$xorg_testset_save_CFLAGS"
8218 fi
8219
8220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8223 fi
8224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8226 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8227 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8228 then :
8229 printf %s "(cached) " >&6
8230 else $as_nop
8231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h. */
8233 int i;
8234 _ACEOF
8235 if ac_fn_c_try_compile "$LINENO"
8236 then :
8237 xorg_cv_cc_flag_unused_command_line_argument=yes
8238 else $as_nop
8239 xorg_cv_cc_flag_unused_command_line_argument=no
8240 fi
8241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8242 fi
8243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8244 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8246 CFLAGS="$xorg_testset_save_CFLAGS"
8247 fi
8248
8249 found="no"
8250
8251 if test $found = "no" ; then
8252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8254 fi
8255
8256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8258 fi
8259
8260 CFLAGS="$CFLAGS -Werror=trigraphs"
8261
8262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8263 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8264 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8265 if eval test \${$cacheid+y}
8266 then :
8267 printf %s "(cached) " >&6
8268 else $as_nop
8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270 /* end confdefs.h. */
8271 int i;
8272 int
8273 main (void)
8274 {
8275
8276 ;
8277 return 0;
8278 }
8279 _ACEOF
8280 if ac_fn_c_try_link "$LINENO"
8281 then :
8282 eval $cacheid=yes
8283 else $as_nop
8284 eval $cacheid=no
8285 fi
8286 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8287 conftest$ac_exeext conftest.$ac_ext
8288 fi
8289
8290
8291 CFLAGS="$xorg_testset_save_CFLAGS"
8292
8293 eval supported=\$$cacheid
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8295 printf "%s\n" "$supported" >&6; }
8296 if test "$supported" = "yes" ; then
8297 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8298 found="yes"
8299 fi
8300 fi
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316 xorg_testset_save_CFLAGS="$CFLAGS"
8317
8318 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8321 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8322 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8323 then :
8324 printf %s "(cached) " >&6
8325 else $as_nop
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8328 int i;
8329 _ACEOF
8330 if ac_fn_c_try_compile "$LINENO"
8331 then :
8332 xorg_cv_cc_flag_unknown_warning_option=yes
8333 else $as_nop
8334 xorg_cv_cc_flag_unknown_warning_option=no
8335 fi
8336 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8337 fi
8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8339 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8341 CFLAGS="$xorg_testset_save_CFLAGS"
8342 fi
8343
8344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8347 fi
8348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8350 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8351 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8352 then :
8353 printf %s "(cached) " >&6
8354 else $as_nop
8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8357 int i;
8358 _ACEOF
8359 if ac_fn_c_try_compile "$LINENO"
8360 then :
8361 xorg_cv_cc_flag_unused_command_line_argument=yes
8362 else $as_nop
8363 xorg_cv_cc_flag_unused_command_line_argument=no
8364 fi
8365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8366 fi
8367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8368 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8370 CFLAGS="$xorg_testset_save_CFLAGS"
8371 fi
8372
8373 found="no"
8374
8375 if test $found = "no" ; then
8376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8378 fi
8379
8380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8382 fi
8383
8384 CFLAGS="$CFLAGS -Werror=array-bounds"
8385
8386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8387 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8388 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8389 if eval test \${$cacheid+y}
8390 then :
8391 printf %s "(cached) " >&6
8392 else $as_nop
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8395 int i;
8396 int
8397 main (void)
8398 {
8399
8400 ;
8401 return 0;
8402 }
8403 _ACEOF
8404 if ac_fn_c_try_link "$LINENO"
8405 then :
8406 eval $cacheid=yes
8407 else $as_nop
8408 eval $cacheid=no
8409 fi
8410 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8411 conftest$ac_exeext conftest.$ac_ext
8412 fi
8413
8414
8415 CFLAGS="$xorg_testset_save_CFLAGS"
8416
8417 eval supported=\$$cacheid
8418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8419 printf "%s\n" "$supported" >&6; }
8420 if test "$supported" = "yes" ; then
8421 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8422 found="yes"
8423 fi
8424 fi
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440 xorg_testset_save_CFLAGS="$CFLAGS"
8441
8442 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8445 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8446 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8447 then :
8448 printf %s "(cached) " >&6
8449 else $as_nop
8450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8452 int i;
8453 _ACEOF
8454 if ac_fn_c_try_compile "$LINENO"
8455 then :
8456 xorg_cv_cc_flag_unknown_warning_option=yes
8457 else $as_nop
8458 xorg_cv_cc_flag_unknown_warning_option=no
8459 fi
8460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8461 fi
8462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8463 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8465 CFLAGS="$xorg_testset_save_CFLAGS"
8466 fi
8467
8468 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8471 fi
8472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8474 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8475 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8476 then :
8477 printf %s "(cached) " >&6
8478 else $as_nop
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8481 int i;
8482 _ACEOF
8483 if ac_fn_c_try_compile "$LINENO"
8484 then :
8485 xorg_cv_cc_flag_unused_command_line_argument=yes
8486 else $as_nop
8487 xorg_cv_cc_flag_unused_command_line_argument=no
8488 fi
8489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8490 fi
8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8492 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8494 CFLAGS="$xorg_testset_save_CFLAGS"
8495 fi
8496
8497 found="no"
8498
8499 if test $found = "no" ; then
8500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8502 fi
8503
8504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8506 fi
8507
8508 CFLAGS="$CFLAGS -Werror=write-strings"
8509
8510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8511 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8512 cacheid=xorg_cv_cc_flag__Werror_write_strings
8513 if eval test \${$cacheid+y}
8514 then :
8515 printf %s "(cached) " >&6
8516 else $as_nop
8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8519 int i;
8520 int
8521 main (void)
8522 {
8523
8524 ;
8525 return 0;
8526 }
8527 _ACEOF
8528 if ac_fn_c_try_link "$LINENO"
8529 then :
8530 eval $cacheid=yes
8531 else $as_nop
8532 eval $cacheid=no
8533 fi
8534 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8535 conftest$ac_exeext conftest.$ac_ext
8536 fi
8537
8538
8539 CFLAGS="$xorg_testset_save_CFLAGS"
8540
8541 eval supported=\$$cacheid
8542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8543 printf "%s\n" "$supported" >&6; }
8544 if test "$supported" = "yes" ; then
8545 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8546 found="yes"
8547 fi
8548 fi
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564 xorg_testset_save_CFLAGS="$CFLAGS"
8565
8566 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8569 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8570 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8571 then :
8572 printf %s "(cached) " >&6
8573 else $as_nop
8574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h. */
8576 int i;
8577 _ACEOF
8578 if ac_fn_c_try_compile "$LINENO"
8579 then :
8580 xorg_cv_cc_flag_unknown_warning_option=yes
8581 else $as_nop
8582 xorg_cv_cc_flag_unknown_warning_option=no
8583 fi
8584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8585 fi
8586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8587 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8589 CFLAGS="$xorg_testset_save_CFLAGS"
8590 fi
8591
8592 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8595 fi
8596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8598 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8599 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8600 then :
8601 printf %s "(cached) " >&6
8602 else $as_nop
8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8605 int i;
8606 _ACEOF
8607 if ac_fn_c_try_compile "$LINENO"
8608 then :
8609 xorg_cv_cc_flag_unused_command_line_argument=yes
8610 else $as_nop
8611 xorg_cv_cc_flag_unused_command_line_argument=no
8612 fi
8613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8614 fi
8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8616 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8618 CFLAGS="$xorg_testset_save_CFLAGS"
8619 fi
8620
8621 found="no"
8622
8623 if test $found = "no" ; then
8624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8626 fi
8627
8628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8630 fi
8631
8632 CFLAGS="$CFLAGS -Werror=address"
8633
8634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8635 printf %s "checking if $CC supports -Werror=address... " >&6; }
8636 cacheid=xorg_cv_cc_flag__Werror_address
8637 if eval test \${$cacheid+y}
8638 then :
8639 printf %s "(cached) " >&6
8640 else $as_nop
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8643 int i;
8644 int
8645 main (void)
8646 {
8647
8648 ;
8649 return 0;
8650 }
8651 _ACEOF
8652 if ac_fn_c_try_link "$LINENO"
8653 then :
8654 eval $cacheid=yes
8655 else $as_nop
8656 eval $cacheid=no
8657 fi
8658 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8659 conftest$ac_exeext conftest.$ac_ext
8660 fi
8661
8662
8663 CFLAGS="$xorg_testset_save_CFLAGS"
8664
8665 eval supported=\$$cacheid
8666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8667 printf "%s\n" "$supported" >&6; }
8668 if test "$supported" = "yes" ; then
8669 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8670 found="yes"
8671 fi
8672 fi
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688 xorg_testset_save_CFLAGS="$CFLAGS"
8689
8690 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8693 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8694 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8695 then :
8696 printf %s "(cached) " >&6
8697 else $as_nop
8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8700 int i;
8701 _ACEOF
8702 if ac_fn_c_try_compile "$LINENO"
8703 then :
8704 xorg_cv_cc_flag_unknown_warning_option=yes
8705 else $as_nop
8706 xorg_cv_cc_flag_unknown_warning_option=no
8707 fi
8708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8709 fi
8710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8711 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8713 CFLAGS="$xorg_testset_save_CFLAGS"
8714 fi
8715
8716 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8719 fi
8720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8722 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8723 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8724 then :
8725 printf %s "(cached) " >&6
8726 else $as_nop
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729 int i;
8730 _ACEOF
8731 if ac_fn_c_try_compile "$LINENO"
8732 then :
8733 xorg_cv_cc_flag_unused_command_line_argument=yes
8734 else $as_nop
8735 xorg_cv_cc_flag_unused_command_line_argument=no
8736 fi
8737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8738 fi
8739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8740 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8742 CFLAGS="$xorg_testset_save_CFLAGS"
8743 fi
8744
8745 found="no"
8746
8747 if test $found = "no" ; then
8748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8750 fi
8751
8752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8754 fi
8755
8756 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8757
8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8759 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8760 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8761 if eval test \${$cacheid+y}
8762 then :
8763 printf %s "(cached) " >&6
8764 else $as_nop
8765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8766 /* end confdefs.h. */
8767 int i;
8768 int
8769 main (void)
8770 {
8771
8772 ;
8773 return 0;
8774 }
8775 _ACEOF
8776 if ac_fn_c_try_link "$LINENO"
8777 then :
8778 eval $cacheid=yes
8779 else $as_nop
8780 eval $cacheid=no
8781 fi
8782 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8783 conftest$ac_exeext conftest.$ac_ext
8784 fi
8785
8786
8787 CFLAGS="$xorg_testset_save_CFLAGS"
8788
8789 eval supported=\$$cacheid
8790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8791 printf "%s\n" "$supported" >&6; }
8792 if test "$supported" = "yes" ; then
8793 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8794 found="yes"
8795 fi
8796 fi
8797
8798 if test $found = "no" ; then
8799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8801 fi
8802
8803 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8805 fi
8806
8807 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8808
8809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8810 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8811 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8812 if eval test \${$cacheid+y}
8813 then :
8814 printf %s "(cached) " >&6
8815 else $as_nop
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8818 int i;
8819 int
8820 main (void)
8821 {
8822
8823 ;
8824 return 0;
8825 }
8826 _ACEOF
8827 if ac_fn_c_try_link "$LINENO"
8828 then :
8829 eval $cacheid=yes
8830 else $as_nop
8831 eval $cacheid=no
8832 fi
8833 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8834 conftest$ac_exeext conftest.$ac_ext
8835 fi
8836
8837
8838 CFLAGS="$xorg_testset_save_CFLAGS"
8839
8840 eval supported=\$$cacheid
8841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8842 printf "%s\n" "$supported" >&6; }
8843 if test "$supported" = "yes" ; then
8844 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8845 found="yes"
8846 fi
8847 fi
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863 xorg_testset_save_CFLAGS="$CFLAGS"
8864
8865 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8868 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8869 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8870 then :
8871 printf %s "(cached) " >&6
8872 else $as_nop
8873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874 /* end confdefs.h. */
8875 int i;
8876 _ACEOF
8877 if ac_fn_c_try_compile "$LINENO"
8878 then :
8879 xorg_cv_cc_flag_unknown_warning_option=yes
8880 else $as_nop
8881 xorg_cv_cc_flag_unknown_warning_option=no
8882 fi
8883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8884 fi
8885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8886 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8888 CFLAGS="$xorg_testset_save_CFLAGS"
8889 fi
8890
8891 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8894 fi
8895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8897 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8898 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8899 then :
8900 printf %s "(cached) " >&6
8901 else $as_nop
8902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8903 /* end confdefs.h. */
8904 int i;
8905 _ACEOF
8906 if ac_fn_c_try_compile "$LINENO"
8907 then :
8908 xorg_cv_cc_flag_unused_command_line_argument=yes
8909 else $as_nop
8910 xorg_cv_cc_flag_unused_command_line_argument=no
8911 fi
8912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8913 fi
8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8915 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8916 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8917 CFLAGS="$xorg_testset_save_CFLAGS"
8918 fi
8919
8920 found="no"
8921
8922 if test $found = "no" ; then
8923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8925 fi
8926
8927 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8929 fi
8930
8931 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8932
8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8934 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8935 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8936 if eval test \${$cacheid+y}
8937 then :
8938 printf %s "(cached) " >&6
8939 else $as_nop
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8942 int i;
8943 int
8944 main (void)
8945 {
8946
8947 ;
8948 return 0;
8949 }
8950 _ACEOF
8951 if ac_fn_c_try_link "$LINENO"
8952 then :
8953 eval $cacheid=yes
8954 else $as_nop
8955 eval $cacheid=no
8956 fi
8957 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8958 conftest$ac_exeext conftest.$ac_ext
8959 fi
8960
8961
8962 CFLAGS="$xorg_testset_save_CFLAGS"
8963
8964 eval supported=\$$cacheid
8965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8966 printf "%s\n" "$supported" >&6; }
8967 if test "$supported" = "yes" ; then
8968 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8969 found="yes"
8970 fi
8971 fi
8972
8973 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8974 else
8975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
8976 printf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990 xorg_testset_save_CFLAGS="$CFLAGS"
8991
8992 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8995 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8996 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8997 then :
8998 printf %s "(cached) " >&6
8999 else $as_nop
9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h. */
9002 int i;
9003 _ACEOF
9004 if ac_fn_c_try_compile "$LINENO"
9005 then :
9006 xorg_cv_cc_flag_unknown_warning_option=yes
9007 else $as_nop
9008 xorg_cv_cc_flag_unknown_warning_option=no
9009 fi
9010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9011 fi
9012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9013 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9015 CFLAGS="$xorg_testset_save_CFLAGS"
9016 fi
9017
9018 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9021 fi
9022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9024 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9025 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9026 then :
9027 printf %s "(cached) " >&6
9028 else $as_nop
9029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9030 /* end confdefs.h. */
9031 int i;
9032 _ACEOF
9033 if ac_fn_c_try_compile "$LINENO"
9034 then :
9035 xorg_cv_cc_flag_unused_command_line_argument=yes
9036 else $as_nop
9037 xorg_cv_cc_flag_unused_command_line_argument=no
9038 fi
9039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9040 fi
9041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9042 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9044 CFLAGS="$xorg_testset_save_CFLAGS"
9045 fi
9046
9047 found="no"
9048
9049 if test $found = "no" ; then
9050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9052 fi
9053
9054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9056 fi
9057
9058 CFLAGS="$CFLAGS -Wimplicit"
9059
9060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9061 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9062 cacheid=xorg_cv_cc_flag__Wimplicit
9063 if eval test \${$cacheid+y}
9064 then :
9065 printf %s "(cached) " >&6
9066 else $as_nop
9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9069 int i;
9070 int
9071 main (void)
9072 {
9073
9074 ;
9075 return 0;
9076 }
9077 _ACEOF
9078 if ac_fn_c_try_link "$LINENO"
9079 then :
9080 eval $cacheid=yes
9081 else $as_nop
9082 eval $cacheid=no
9083 fi
9084 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9085 conftest$ac_exeext conftest.$ac_ext
9086 fi
9087
9088
9089 CFLAGS="$xorg_testset_save_CFLAGS"
9090
9091 eval supported=\$$cacheid
9092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9093 printf "%s\n" "$supported" >&6; }
9094 if test "$supported" = "yes" ; then
9095 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9096 found="yes"
9097 fi
9098 fi
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114 xorg_testset_save_CFLAGS="$CFLAGS"
9115
9116 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9119 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9120 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9121 then :
9122 printf %s "(cached) " >&6
9123 else $as_nop
9124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125 /* end confdefs.h. */
9126 int i;
9127 _ACEOF
9128 if ac_fn_c_try_compile "$LINENO"
9129 then :
9130 xorg_cv_cc_flag_unknown_warning_option=yes
9131 else $as_nop
9132 xorg_cv_cc_flag_unknown_warning_option=no
9133 fi
9134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9135 fi
9136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9137 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9138 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9139 CFLAGS="$xorg_testset_save_CFLAGS"
9140 fi
9141
9142 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9145 fi
9146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9148 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9149 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9150 then :
9151 printf %s "(cached) " >&6
9152 else $as_nop
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155 int i;
9156 _ACEOF
9157 if ac_fn_c_try_compile "$LINENO"
9158 then :
9159 xorg_cv_cc_flag_unused_command_line_argument=yes
9160 else $as_nop
9161 xorg_cv_cc_flag_unused_command_line_argument=no
9162 fi
9163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9164 fi
9165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9166 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9168 CFLAGS="$xorg_testset_save_CFLAGS"
9169 fi
9170
9171 found="no"
9172
9173 if test $found = "no" ; then
9174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9176 fi
9177
9178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9180 fi
9181
9182 CFLAGS="$CFLAGS -Wnonnull"
9183
9184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9185 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9186 cacheid=xorg_cv_cc_flag__Wnonnull
9187 if eval test \${$cacheid+y}
9188 then :
9189 printf %s "(cached) " >&6
9190 else $as_nop
9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h. */
9193 int i;
9194 int
9195 main (void)
9196 {
9197
9198 ;
9199 return 0;
9200 }
9201 _ACEOF
9202 if ac_fn_c_try_link "$LINENO"
9203 then :
9204 eval $cacheid=yes
9205 else $as_nop
9206 eval $cacheid=no
9207 fi
9208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9209 conftest$ac_exeext conftest.$ac_ext
9210 fi
9211
9212
9213 CFLAGS="$xorg_testset_save_CFLAGS"
9214
9215 eval supported=\$$cacheid
9216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9217 printf "%s\n" "$supported" >&6; }
9218 if test "$supported" = "yes" ; then
9219 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9220 found="yes"
9221 fi
9222 fi
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238 xorg_testset_save_CFLAGS="$CFLAGS"
9239
9240 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9243 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9244 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9245 then :
9246 printf %s "(cached) " >&6
9247 else $as_nop
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9250 int i;
9251 _ACEOF
9252 if ac_fn_c_try_compile "$LINENO"
9253 then :
9254 xorg_cv_cc_flag_unknown_warning_option=yes
9255 else $as_nop
9256 xorg_cv_cc_flag_unknown_warning_option=no
9257 fi
9258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9259 fi
9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9261 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9263 CFLAGS="$xorg_testset_save_CFLAGS"
9264 fi
9265
9266 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9269 fi
9270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9272 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9273 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9274 then :
9275 printf %s "(cached) " >&6
9276 else $as_nop
9277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278 /* end confdefs.h. */
9279 int i;
9280 _ACEOF
9281 if ac_fn_c_try_compile "$LINENO"
9282 then :
9283 xorg_cv_cc_flag_unused_command_line_argument=yes
9284 else $as_nop
9285 xorg_cv_cc_flag_unused_command_line_argument=no
9286 fi
9287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9288 fi
9289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9290 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9292 CFLAGS="$xorg_testset_save_CFLAGS"
9293 fi
9294
9295 found="no"
9296
9297 if test $found = "no" ; then
9298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9300 fi
9301
9302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9304 fi
9305
9306 CFLAGS="$CFLAGS -Winit-self"
9307
9308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9309 printf %s "checking if $CC supports -Winit-self... " >&6; }
9310 cacheid=xorg_cv_cc_flag__Winit_self
9311 if eval test \${$cacheid+y}
9312 then :
9313 printf %s "(cached) " >&6
9314 else $as_nop
9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316 /* end confdefs.h. */
9317 int i;
9318 int
9319 main (void)
9320 {
9321
9322 ;
9323 return 0;
9324 }
9325 _ACEOF
9326 if ac_fn_c_try_link "$LINENO"
9327 then :
9328 eval $cacheid=yes
9329 else $as_nop
9330 eval $cacheid=no
9331 fi
9332 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9333 conftest$ac_exeext conftest.$ac_ext
9334 fi
9335
9336
9337 CFLAGS="$xorg_testset_save_CFLAGS"
9338
9339 eval supported=\$$cacheid
9340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9341 printf "%s\n" "$supported" >&6; }
9342 if test "$supported" = "yes" ; then
9343 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9344 found="yes"
9345 fi
9346 fi
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362 xorg_testset_save_CFLAGS="$CFLAGS"
9363
9364 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9367 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9368 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9369 then :
9370 printf %s "(cached) " >&6
9371 else $as_nop
9372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373 /* end confdefs.h. */
9374 int i;
9375 _ACEOF
9376 if ac_fn_c_try_compile "$LINENO"
9377 then :
9378 xorg_cv_cc_flag_unknown_warning_option=yes
9379 else $as_nop
9380 xorg_cv_cc_flag_unknown_warning_option=no
9381 fi
9382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9383 fi
9384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9385 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9386 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9387 CFLAGS="$xorg_testset_save_CFLAGS"
9388 fi
9389
9390 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9393 fi
9394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9396 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9397 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9398 then :
9399 printf %s "(cached) " >&6
9400 else $as_nop
9401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9402 /* end confdefs.h. */
9403 int i;
9404 _ACEOF
9405 if ac_fn_c_try_compile "$LINENO"
9406 then :
9407 xorg_cv_cc_flag_unused_command_line_argument=yes
9408 else $as_nop
9409 xorg_cv_cc_flag_unused_command_line_argument=no
9410 fi
9411 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9412 fi
9413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9414 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9416 CFLAGS="$xorg_testset_save_CFLAGS"
9417 fi
9418
9419 found="no"
9420
9421 if test $found = "no" ; then
9422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9424 fi
9425
9426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9428 fi
9429
9430 CFLAGS="$CFLAGS -Wmain"
9431
9432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9433 printf %s "checking if $CC supports -Wmain... " >&6; }
9434 cacheid=xorg_cv_cc_flag__Wmain
9435 if eval test \${$cacheid+y}
9436 then :
9437 printf %s "(cached) " >&6
9438 else $as_nop
9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440 /* end confdefs.h. */
9441 int i;
9442 int
9443 main (void)
9444 {
9445
9446 ;
9447 return 0;
9448 }
9449 _ACEOF
9450 if ac_fn_c_try_link "$LINENO"
9451 then :
9452 eval $cacheid=yes
9453 else $as_nop
9454 eval $cacheid=no
9455 fi
9456 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9457 conftest$ac_exeext conftest.$ac_ext
9458 fi
9459
9460
9461 CFLAGS="$xorg_testset_save_CFLAGS"
9462
9463 eval supported=\$$cacheid
9464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9465 printf "%s\n" "$supported" >&6; }
9466 if test "$supported" = "yes" ; then
9467 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9468 found="yes"
9469 fi
9470 fi
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486 xorg_testset_save_CFLAGS="$CFLAGS"
9487
9488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9491 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9492 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9493 then :
9494 printf %s "(cached) " >&6
9495 else $as_nop
9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9498 int i;
9499 _ACEOF
9500 if ac_fn_c_try_compile "$LINENO"
9501 then :
9502 xorg_cv_cc_flag_unknown_warning_option=yes
9503 else $as_nop
9504 xorg_cv_cc_flag_unknown_warning_option=no
9505 fi
9506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9507 fi
9508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9509 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9511 CFLAGS="$xorg_testset_save_CFLAGS"
9512 fi
9513
9514 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9517 fi
9518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9520 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9521 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9522 then :
9523 printf %s "(cached) " >&6
9524 else $as_nop
9525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9527 int i;
9528 _ACEOF
9529 if ac_fn_c_try_compile "$LINENO"
9530 then :
9531 xorg_cv_cc_flag_unused_command_line_argument=yes
9532 else $as_nop
9533 xorg_cv_cc_flag_unused_command_line_argument=no
9534 fi
9535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9536 fi
9537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9538 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9540 CFLAGS="$xorg_testset_save_CFLAGS"
9541 fi
9542
9543 found="no"
9544
9545 if test $found = "no" ; then
9546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9548 fi
9549
9550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9552 fi
9553
9554 CFLAGS="$CFLAGS -Wmissing-braces"
9555
9556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9557 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9558 cacheid=xorg_cv_cc_flag__Wmissing_braces
9559 if eval test \${$cacheid+y}
9560 then :
9561 printf %s "(cached) " >&6
9562 else $as_nop
9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564 /* end confdefs.h. */
9565 int i;
9566 int
9567 main (void)
9568 {
9569
9570 ;
9571 return 0;
9572 }
9573 _ACEOF
9574 if ac_fn_c_try_link "$LINENO"
9575 then :
9576 eval $cacheid=yes
9577 else $as_nop
9578 eval $cacheid=no
9579 fi
9580 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9581 conftest$ac_exeext conftest.$ac_ext
9582 fi
9583
9584
9585 CFLAGS="$xorg_testset_save_CFLAGS"
9586
9587 eval supported=\$$cacheid
9588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9589 printf "%s\n" "$supported" >&6; }
9590 if test "$supported" = "yes" ; then
9591 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9592 found="yes"
9593 fi
9594 fi
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610 xorg_testset_save_CFLAGS="$CFLAGS"
9611
9612 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9615 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9616 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9617 then :
9618 printf %s "(cached) " >&6
9619 else $as_nop
9620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9622 int i;
9623 _ACEOF
9624 if ac_fn_c_try_compile "$LINENO"
9625 then :
9626 xorg_cv_cc_flag_unknown_warning_option=yes
9627 else $as_nop
9628 xorg_cv_cc_flag_unknown_warning_option=no
9629 fi
9630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9631 fi
9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9633 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9635 CFLAGS="$xorg_testset_save_CFLAGS"
9636 fi
9637
9638 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9641 fi
9642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9644 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9645 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9646 then :
9647 printf %s "(cached) " >&6
9648 else $as_nop
9649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h. */
9651 int i;
9652 _ACEOF
9653 if ac_fn_c_try_compile "$LINENO"
9654 then :
9655 xorg_cv_cc_flag_unused_command_line_argument=yes
9656 else $as_nop
9657 xorg_cv_cc_flag_unused_command_line_argument=no
9658 fi
9659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9660 fi
9661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9662 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9664 CFLAGS="$xorg_testset_save_CFLAGS"
9665 fi
9666
9667 found="no"
9668
9669 if test $found = "no" ; then
9670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9672 fi
9673
9674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9676 fi
9677
9678 CFLAGS="$CFLAGS -Wsequence-point"
9679
9680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9681 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9682 cacheid=xorg_cv_cc_flag__Wsequence_point
9683 if eval test \${$cacheid+y}
9684 then :
9685 printf %s "(cached) " >&6
9686 else $as_nop
9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688 /* end confdefs.h. */
9689 int i;
9690 int
9691 main (void)
9692 {
9693
9694 ;
9695 return 0;
9696 }
9697 _ACEOF
9698 if ac_fn_c_try_link "$LINENO"
9699 then :
9700 eval $cacheid=yes
9701 else $as_nop
9702 eval $cacheid=no
9703 fi
9704 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9705 conftest$ac_exeext conftest.$ac_ext
9706 fi
9707
9708
9709 CFLAGS="$xorg_testset_save_CFLAGS"
9710
9711 eval supported=\$$cacheid
9712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9713 printf "%s\n" "$supported" >&6; }
9714 if test "$supported" = "yes" ; then
9715 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9716 found="yes"
9717 fi
9718 fi
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734 xorg_testset_save_CFLAGS="$CFLAGS"
9735
9736 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9739 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9740 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9741 then :
9742 printf %s "(cached) " >&6
9743 else $as_nop
9744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h. */
9746 int i;
9747 _ACEOF
9748 if ac_fn_c_try_compile "$LINENO"
9749 then :
9750 xorg_cv_cc_flag_unknown_warning_option=yes
9751 else $as_nop
9752 xorg_cv_cc_flag_unknown_warning_option=no
9753 fi
9754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9755 fi
9756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9757 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9758 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9759 CFLAGS="$xorg_testset_save_CFLAGS"
9760 fi
9761
9762 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9765 fi
9766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9768 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9769 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9770 then :
9771 printf %s "(cached) " >&6
9772 else $as_nop
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9775 int i;
9776 _ACEOF
9777 if ac_fn_c_try_compile "$LINENO"
9778 then :
9779 xorg_cv_cc_flag_unused_command_line_argument=yes
9780 else $as_nop
9781 xorg_cv_cc_flag_unused_command_line_argument=no
9782 fi
9783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9784 fi
9785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9786 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9788 CFLAGS="$xorg_testset_save_CFLAGS"
9789 fi
9790
9791 found="no"
9792
9793 if test $found = "no" ; then
9794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9796 fi
9797
9798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9800 fi
9801
9802 CFLAGS="$CFLAGS -Wreturn-type"
9803
9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9805 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9806 cacheid=xorg_cv_cc_flag__Wreturn_type
9807 if eval test \${$cacheid+y}
9808 then :
9809 printf %s "(cached) " >&6
9810 else $as_nop
9811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812 /* end confdefs.h. */
9813 int i;
9814 int
9815 main (void)
9816 {
9817
9818 ;
9819 return 0;
9820 }
9821 _ACEOF
9822 if ac_fn_c_try_link "$LINENO"
9823 then :
9824 eval $cacheid=yes
9825 else $as_nop
9826 eval $cacheid=no
9827 fi
9828 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9829 conftest$ac_exeext conftest.$ac_ext
9830 fi
9831
9832
9833 CFLAGS="$xorg_testset_save_CFLAGS"
9834
9835 eval supported=\$$cacheid
9836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9837 printf "%s\n" "$supported" >&6; }
9838 if test "$supported" = "yes" ; then
9839 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9840 found="yes"
9841 fi
9842 fi
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858 xorg_testset_save_CFLAGS="$CFLAGS"
9859
9860 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9863 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9864 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9865 then :
9866 printf %s "(cached) " >&6
9867 else $as_nop
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9870 int i;
9871 _ACEOF
9872 if ac_fn_c_try_compile "$LINENO"
9873 then :
9874 xorg_cv_cc_flag_unknown_warning_option=yes
9875 else $as_nop
9876 xorg_cv_cc_flag_unknown_warning_option=no
9877 fi
9878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9879 fi
9880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9881 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9883 CFLAGS="$xorg_testset_save_CFLAGS"
9884 fi
9885
9886 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9889 fi
9890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9892 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9893 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9894 then :
9895 printf %s "(cached) " >&6
9896 else $as_nop
9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h. */
9899 int i;
9900 _ACEOF
9901 if ac_fn_c_try_compile "$LINENO"
9902 then :
9903 xorg_cv_cc_flag_unused_command_line_argument=yes
9904 else $as_nop
9905 xorg_cv_cc_flag_unused_command_line_argument=no
9906 fi
9907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9908 fi
9909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9910 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9912 CFLAGS="$xorg_testset_save_CFLAGS"
9913 fi
9914
9915 found="no"
9916
9917 if test $found = "no" ; then
9918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9920 fi
9921
9922 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9924 fi
9925
9926 CFLAGS="$CFLAGS -Wtrigraphs"
9927
9928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9929 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9930 cacheid=xorg_cv_cc_flag__Wtrigraphs
9931 if eval test \${$cacheid+y}
9932 then :
9933 printf %s "(cached) " >&6
9934 else $as_nop
9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h. */
9937 int i;
9938 int
9939 main (void)
9940 {
9941
9942 ;
9943 return 0;
9944 }
9945 _ACEOF
9946 if ac_fn_c_try_link "$LINENO"
9947 then :
9948 eval $cacheid=yes
9949 else $as_nop
9950 eval $cacheid=no
9951 fi
9952 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9953 conftest$ac_exeext conftest.$ac_ext
9954 fi
9955
9956
9957 CFLAGS="$xorg_testset_save_CFLAGS"
9958
9959 eval supported=\$$cacheid
9960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9961 printf "%s\n" "$supported" >&6; }
9962 if test "$supported" = "yes" ; then
9963 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9964 found="yes"
9965 fi
9966 fi
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982 xorg_testset_save_CFLAGS="$CFLAGS"
9983
9984 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9987 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9988 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9989 then :
9990 printf %s "(cached) " >&6
9991 else $as_nop
9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h. */
9994 int i;
9995 _ACEOF
9996 if ac_fn_c_try_compile "$LINENO"
9997 then :
9998 xorg_cv_cc_flag_unknown_warning_option=yes
9999 else $as_nop
10000 xorg_cv_cc_flag_unknown_warning_option=no
10001 fi
10002 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10003 fi
10004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10005 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10007 CFLAGS="$xorg_testset_save_CFLAGS"
10008 fi
10009
10010 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10013 fi
10014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10016 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10017 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10018 then :
10019 printf %s "(cached) " >&6
10020 else $as_nop
10021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022 /* end confdefs.h. */
10023 int i;
10024 _ACEOF
10025 if ac_fn_c_try_compile "$LINENO"
10026 then :
10027 xorg_cv_cc_flag_unused_command_line_argument=yes
10028 else $as_nop
10029 xorg_cv_cc_flag_unused_command_line_argument=no
10030 fi
10031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10032 fi
10033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10034 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10036 CFLAGS="$xorg_testset_save_CFLAGS"
10037 fi
10038
10039 found="no"
10040
10041 if test $found = "no" ; then
10042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10044 fi
10045
10046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10048 fi
10049
10050 CFLAGS="$CFLAGS -Warray-bounds"
10051
10052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10053 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10054 cacheid=xorg_cv_cc_flag__Warray_bounds
10055 if eval test \${$cacheid+y}
10056 then :
10057 printf %s "(cached) " >&6
10058 else $as_nop
10059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060 /* end confdefs.h. */
10061 int i;
10062 int
10063 main (void)
10064 {
10065
10066 ;
10067 return 0;
10068 }
10069 _ACEOF
10070 if ac_fn_c_try_link "$LINENO"
10071 then :
10072 eval $cacheid=yes
10073 else $as_nop
10074 eval $cacheid=no
10075 fi
10076 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10077 conftest$ac_exeext conftest.$ac_ext
10078 fi
10079
10080
10081 CFLAGS="$xorg_testset_save_CFLAGS"
10082
10083 eval supported=\$$cacheid
10084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10085 printf "%s\n" "$supported" >&6; }
10086 if test "$supported" = "yes" ; then
10087 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10088 found="yes"
10089 fi
10090 fi
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106 xorg_testset_save_CFLAGS="$CFLAGS"
10107
10108 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10111 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10112 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10113 then :
10114 printf %s "(cached) " >&6
10115 else $as_nop
10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h. */
10118 int i;
10119 _ACEOF
10120 if ac_fn_c_try_compile "$LINENO"
10121 then :
10122 xorg_cv_cc_flag_unknown_warning_option=yes
10123 else $as_nop
10124 xorg_cv_cc_flag_unknown_warning_option=no
10125 fi
10126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10127 fi
10128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10129 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10131 CFLAGS="$xorg_testset_save_CFLAGS"
10132 fi
10133
10134 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10137 fi
10138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10140 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10141 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10142 then :
10143 printf %s "(cached) " >&6
10144 else $as_nop
10145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h. */
10147 int i;
10148 _ACEOF
10149 if ac_fn_c_try_compile "$LINENO"
10150 then :
10151 xorg_cv_cc_flag_unused_command_line_argument=yes
10152 else $as_nop
10153 xorg_cv_cc_flag_unused_command_line_argument=no
10154 fi
10155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10156 fi
10157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10158 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10160 CFLAGS="$xorg_testset_save_CFLAGS"
10161 fi
10162
10163 found="no"
10164
10165 if test $found = "no" ; then
10166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10168 fi
10169
10170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10172 fi
10173
10174 CFLAGS="$CFLAGS -Wwrite-strings"
10175
10176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10177 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10178 cacheid=xorg_cv_cc_flag__Wwrite_strings
10179 if eval test \${$cacheid+y}
10180 then :
10181 printf %s "(cached) " >&6
10182 else $as_nop
10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h. */
10185 int i;
10186 int
10187 main (void)
10188 {
10189
10190 ;
10191 return 0;
10192 }
10193 _ACEOF
10194 if ac_fn_c_try_link "$LINENO"
10195 then :
10196 eval $cacheid=yes
10197 else $as_nop
10198 eval $cacheid=no
10199 fi
10200 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10201 conftest$ac_exeext conftest.$ac_ext
10202 fi
10203
10204
10205 CFLAGS="$xorg_testset_save_CFLAGS"
10206
10207 eval supported=\$$cacheid
10208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10209 printf "%s\n" "$supported" >&6; }
10210 if test "$supported" = "yes" ; then
10211 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10212 found="yes"
10213 fi
10214 fi
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230 xorg_testset_save_CFLAGS="$CFLAGS"
10231
10232 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10235 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10236 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10237 then :
10238 printf %s "(cached) " >&6
10239 else $as_nop
10240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241 /* end confdefs.h. */
10242 int i;
10243 _ACEOF
10244 if ac_fn_c_try_compile "$LINENO"
10245 then :
10246 xorg_cv_cc_flag_unknown_warning_option=yes
10247 else $as_nop
10248 xorg_cv_cc_flag_unknown_warning_option=no
10249 fi
10250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10251 fi
10252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10253 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10255 CFLAGS="$xorg_testset_save_CFLAGS"
10256 fi
10257
10258 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10261 fi
10262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10264 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10265 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10266 then :
10267 printf %s "(cached) " >&6
10268 else $as_nop
10269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h. */
10271 int i;
10272 _ACEOF
10273 if ac_fn_c_try_compile "$LINENO"
10274 then :
10275 xorg_cv_cc_flag_unused_command_line_argument=yes
10276 else $as_nop
10277 xorg_cv_cc_flag_unused_command_line_argument=no
10278 fi
10279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10280 fi
10281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10282 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10284 CFLAGS="$xorg_testset_save_CFLAGS"
10285 fi
10286
10287 found="no"
10288
10289 if test $found = "no" ; then
10290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10292 fi
10293
10294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10296 fi
10297
10298 CFLAGS="$CFLAGS -Waddress"
10299
10300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10301 printf %s "checking if $CC supports -Waddress... " >&6; }
10302 cacheid=xorg_cv_cc_flag__Waddress
10303 if eval test \${$cacheid+y}
10304 then :
10305 printf %s "(cached) " >&6
10306 else $as_nop
10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h. */
10309 int i;
10310 int
10311 main (void)
10312 {
10313
10314 ;
10315 return 0;
10316 }
10317 _ACEOF
10318 if ac_fn_c_try_link "$LINENO"
10319 then :
10320 eval $cacheid=yes
10321 else $as_nop
10322 eval $cacheid=no
10323 fi
10324 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10325 conftest$ac_exeext conftest.$ac_ext
10326 fi
10327
10328
10329 CFLAGS="$xorg_testset_save_CFLAGS"
10330
10331 eval supported=\$$cacheid
10332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10333 printf "%s\n" "$supported" >&6; }
10334 if test "$supported" = "yes" ; then
10335 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10336 found="yes"
10337 fi
10338 fi
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354 xorg_testset_save_CFLAGS="$CFLAGS"
10355
10356 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10359 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10360 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10361 then :
10362 printf %s "(cached) " >&6
10363 else $as_nop
10364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365 /* end confdefs.h. */
10366 int i;
10367 _ACEOF
10368 if ac_fn_c_try_compile "$LINENO"
10369 then :
10370 xorg_cv_cc_flag_unknown_warning_option=yes
10371 else $as_nop
10372 xorg_cv_cc_flag_unknown_warning_option=no
10373 fi
10374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10375 fi
10376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10377 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10379 CFLAGS="$xorg_testset_save_CFLAGS"
10380 fi
10381
10382 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10385 fi
10386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10388 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10389 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10390 then :
10391 printf %s "(cached) " >&6
10392 else $as_nop
10393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10395 int i;
10396 _ACEOF
10397 if ac_fn_c_try_compile "$LINENO"
10398 then :
10399 xorg_cv_cc_flag_unused_command_line_argument=yes
10400 else $as_nop
10401 xorg_cv_cc_flag_unused_command_line_argument=no
10402 fi
10403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10404 fi
10405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10406 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10407 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10408 CFLAGS="$xorg_testset_save_CFLAGS"
10409 fi
10410
10411 found="no"
10412
10413 if test $found = "no" ; then
10414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10416 fi
10417
10418 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10420 fi
10421
10422 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10423
10424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10425 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10426 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10427 if eval test \${$cacheid+y}
10428 then :
10429 printf %s "(cached) " >&6
10430 else $as_nop
10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h. */
10433 int i;
10434 int
10435 main (void)
10436 {
10437
10438 ;
10439 return 0;
10440 }
10441 _ACEOF
10442 if ac_fn_c_try_link "$LINENO"
10443 then :
10444 eval $cacheid=yes
10445 else $as_nop
10446 eval $cacheid=no
10447 fi
10448 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10449 conftest$ac_exeext conftest.$ac_ext
10450 fi
10451
10452
10453 CFLAGS="$xorg_testset_save_CFLAGS"
10454
10455 eval supported=\$$cacheid
10456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10457 printf "%s\n" "$supported" >&6; }
10458 if test "$supported" = "yes" ; then
10459 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10460 found="yes"
10461 fi
10462 fi
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478 xorg_testset_save_CFLAGS="$CFLAGS"
10479
10480 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10483 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10484 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10485 then :
10486 printf %s "(cached) " >&6
10487 else $as_nop
10488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489 /* end confdefs.h. */
10490 int i;
10491 _ACEOF
10492 if ac_fn_c_try_compile "$LINENO"
10493 then :
10494 xorg_cv_cc_flag_unknown_warning_option=yes
10495 else $as_nop
10496 xorg_cv_cc_flag_unknown_warning_option=no
10497 fi
10498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10499 fi
10500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10501 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10503 CFLAGS="$xorg_testset_save_CFLAGS"
10504 fi
10505
10506 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10509 fi
10510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10512 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10513 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10514 then :
10515 printf %s "(cached) " >&6
10516 else $as_nop
10517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518 /* end confdefs.h. */
10519 int i;
10520 _ACEOF
10521 if ac_fn_c_try_compile "$LINENO"
10522 then :
10523 xorg_cv_cc_flag_unused_command_line_argument=yes
10524 else $as_nop
10525 xorg_cv_cc_flag_unused_command_line_argument=no
10526 fi
10527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10528 fi
10529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10530 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10531 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10532 CFLAGS="$xorg_testset_save_CFLAGS"
10533 fi
10534
10535 found="no"
10536
10537 if test $found = "no" ; then
10538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10540 fi
10541
10542 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10544 fi
10545
10546 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10547
10548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10549 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10550 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10551 if eval test \${$cacheid+y}
10552 then :
10553 printf %s "(cached) " >&6
10554 else $as_nop
10555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556 /* end confdefs.h. */
10557 int i;
10558 int
10559 main (void)
10560 {
10561
10562 ;
10563 return 0;
10564 }
10565 _ACEOF
10566 if ac_fn_c_try_link "$LINENO"
10567 then :
10568 eval $cacheid=yes
10569 else $as_nop
10570 eval $cacheid=no
10571 fi
10572 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10573 conftest$ac_exeext conftest.$ac_ext
10574 fi
10575
10576
10577 CFLAGS="$xorg_testset_save_CFLAGS"
10578
10579 eval supported=\$$cacheid
10580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10581 printf "%s\n" "$supported" >&6; }
10582 if test "$supported" = "yes" ; then
10583 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10584 found="yes"
10585 fi
10586 fi
10587
10588
10589 fi
10590
10591
10592
10593
10594
10595
10596
10597 CWARNFLAGS="$BASE_CFLAGS"
10598 if test "x$GCC" = xyes ; then
10599 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10600 fi
10601
10602
10603
10604
10605
10606
10607
10608
10609 # Check whether --enable-strict-compilation was given.
10610 if test ${enable_strict_compilation+y}
10611 then :
10612 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10613 else $as_nop
10614 STRICT_COMPILE=no
10615 fi
10616
10617
10618
10619
10620
10621
10622 STRICT_CFLAGS=""
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636 xorg_testset_save_CFLAGS="$CFLAGS"
10637
10638 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10641 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10642 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10643 then :
10644 printf %s "(cached) " >&6
10645 else $as_nop
10646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647 /* end confdefs.h. */
10648 int i;
10649 _ACEOF
10650 if ac_fn_c_try_compile "$LINENO"
10651 then :
10652 xorg_cv_cc_flag_unknown_warning_option=yes
10653 else $as_nop
10654 xorg_cv_cc_flag_unknown_warning_option=no
10655 fi
10656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10657 fi
10658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10659 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10661 CFLAGS="$xorg_testset_save_CFLAGS"
10662 fi
10663
10664 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10667 fi
10668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10670 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10671 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10672 then :
10673 printf %s "(cached) " >&6
10674 else $as_nop
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10677 int i;
10678 _ACEOF
10679 if ac_fn_c_try_compile "$LINENO"
10680 then :
10681 xorg_cv_cc_flag_unused_command_line_argument=yes
10682 else $as_nop
10683 xorg_cv_cc_flag_unused_command_line_argument=no
10684 fi
10685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10686 fi
10687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10688 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10690 CFLAGS="$xorg_testset_save_CFLAGS"
10691 fi
10692
10693 found="no"
10694
10695 if test $found = "no" ; then
10696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10698 fi
10699
10700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10702 fi
10703
10704 CFLAGS="$CFLAGS -pedantic"
10705
10706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10707 printf %s "checking if $CC supports -pedantic... " >&6; }
10708 cacheid=xorg_cv_cc_flag__pedantic
10709 if eval test \${$cacheid+y}
10710 then :
10711 printf %s "(cached) " >&6
10712 else $as_nop
10713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714 /* end confdefs.h. */
10715 int i;
10716 int
10717 main (void)
10718 {
10719
10720 ;
10721 return 0;
10722 }
10723 _ACEOF
10724 if ac_fn_c_try_link "$LINENO"
10725 then :
10726 eval $cacheid=yes
10727 else $as_nop
10728 eval $cacheid=no
10729 fi
10730 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10731 conftest$ac_exeext conftest.$ac_ext
10732 fi
10733
10734
10735 CFLAGS="$xorg_testset_save_CFLAGS"
10736
10737 eval supported=\$$cacheid
10738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10739 printf "%s\n" "$supported" >&6; }
10740 if test "$supported" = "yes" ; then
10741 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10742 found="yes"
10743 fi
10744 fi
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760 xorg_testset_save_CFLAGS="$CFLAGS"
10761
10762 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10765 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10766 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10767 then :
10768 printf %s "(cached) " >&6
10769 else $as_nop
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h. */
10772 int i;
10773 _ACEOF
10774 if ac_fn_c_try_compile "$LINENO"
10775 then :
10776 xorg_cv_cc_flag_unknown_warning_option=yes
10777 else $as_nop
10778 xorg_cv_cc_flag_unknown_warning_option=no
10779 fi
10780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10781 fi
10782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10783 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10785 CFLAGS="$xorg_testset_save_CFLAGS"
10786 fi
10787
10788 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10791 fi
10792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10794 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10795 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10796 then :
10797 printf %s "(cached) " >&6
10798 else $as_nop
10799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h. */
10801 int i;
10802 _ACEOF
10803 if ac_fn_c_try_compile "$LINENO"
10804 then :
10805 xorg_cv_cc_flag_unused_command_line_argument=yes
10806 else $as_nop
10807 xorg_cv_cc_flag_unused_command_line_argument=no
10808 fi
10809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10810 fi
10811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10812 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10814 CFLAGS="$xorg_testset_save_CFLAGS"
10815 fi
10816
10817 found="no"
10818
10819 if test $found = "no" ; then
10820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10822 fi
10823
10824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10826 fi
10827
10828 CFLAGS="$CFLAGS -Werror"
10829
10830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10831 printf %s "checking if $CC supports -Werror... " >&6; }
10832 cacheid=xorg_cv_cc_flag__Werror
10833 if eval test \${$cacheid+y}
10834 then :
10835 printf %s "(cached) " >&6
10836 else $as_nop
10837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10838 /* end confdefs.h. */
10839 int i;
10840 int
10841 main (void)
10842 {
10843
10844 ;
10845 return 0;
10846 }
10847 _ACEOF
10848 if ac_fn_c_try_link "$LINENO"
10849 then :
10850 eval $cacheid=yes
10851 else $as_nop
10852 eval $cacheid=no
10853 fi
10854 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10855 conftest$ac_exeext conftest.$ac_ext
10856 fi
10857
10858
10859 CFLAGS="$xorg_testset_save_CFLAGS"
10860
10861 eval supported=\$$cacheid
10862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10863 printf "%s\n" "$supported" >&6; }
10864 if test "$supported" = "yes" ; then
10865 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10866 found="yes"
10867 fi
10868 fi
10869
10870 if test $found = "no" ; then
10871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10873 fi
10874
10875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10877 fi
10878
10879 CFLAGS="$CFLAGS -errwarn"
10880
10881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10882 printf %s "checking if $CC supports -errwarn... " >&6; }
10883 cacheid=xorg_cv_cc_flag__errwarn
10884 if eval test \${$cacheid+y}
10885 then :
10886 printf %s "(cached) " >&6
10887 else $as_nop
10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h. */
10890 int i;
10891 int
10892 main (void)
10893 {
10894
10895 ;
10896 return 0;
10897 }
10898 _ACEOF
10899 if ac_fn_c_try_link "$LINENO"
10900 then :
10901 eval $cacheid=yes
10902 else $as_nop
10903 eval $cacheid=no
10904 fi
10905 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10906 conftest$ac_exeext conftest.$ac_ext
10907 fi
10908
10909
10910 CFLAGS="$xorg_testset_save_CFLAGS"
10911
10912 eval supported=\$$cacheid
10913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10914 printf "%s\n" "$supported" >&6; }
10915 if test "$supported" = "yes" ; then
10916 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10917 found="yes"
10918 fi
10919 fi
10920
10921
10922
10923 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10924 # activate it with -Werror, so we add it here explicitly.
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938 xorg_testset_save_CFLAGS="$CFLAGS"
10939
10940 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10943 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10944 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10945 then :
10946 printf %s "(cached) " >&6
10947 else $as_nop
10948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h. */
10950 int i;
10951 _ACEOF
10952 if ac_fn_c_try_compile "$LINENO"
10953 then :
10954 xorg_cv_cc_flag_unknown_warning_option=yes
10955 else $as_nop
10956 xorg_cv_cc_flag_unknown_warning_option=no
10957 fi
10958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10959 fi
10960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10961 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10963 CFLAGS="$xorg_testset_save_CFLAGS"
10964 fi
10965
10966 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10969 fi
10970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10972 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10973 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10974 then :
10975 printf %s "(cached) " >&6
10976 else $as_nop
10977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978 /* end confdefs.h. */
10979 int i;
10980 _ACEOF
10981 if ac_fn_c_try_compile "$LINENO"
10982 then :
10983 xorg_cv_cc_flag_unused_command_line_argument=yes
10984 else $as_nop
10985 xorg_cv_cc_flag_unused_command_line_argument=no
10986 fi
10987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10988 fi
10989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10990 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10992 CFLAGS="$xorg_testset_save_CFLAGS"
10993 fi
10994
10995 found="no"
10996
10997 if test $found = "no" ; then
10998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11000 fi
11001
11002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11004 fi
11005
11006 CFLAGS="$CFLAGS -Werror=attributes"
11007
11008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11009 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11010 cacheid=xorg_cv_cc_flag__Werror_attributes
11011 if eval test \${$cacheid+y}
11012 then :
11013 printf %s "(cached) " >&6
11014 else $as_nop
11015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016 /* end confdefs.h. */
11017 int i;
11018 int
11019 main (void)
11020 {
11021
11022 ;
11023 return 0;
11024 }
11025 _ACEOF
11026 if ac_fn_c_try_link "$LINENO"
11027 then :
11028 eval $cacheid=yes
11029 else $as_nop
11030 eval $cacheid=no
11031 fi
11032 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11033 conftest$ac_exeext conftest.$ac_ext
11034 fi
11035
11036
11037 CFLAGS="$xorg_testset_save_CFLAGS"
11038
11039 eval supported=\$$cacheid
11040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11041 printf "%s\n" "$supported" >&6; }
11042 if test "$supported" = "yes" ; then
11043 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11044 found="yes"
11045 fi
11046 fi
11047
11048
11049
11050 if test "x$STRICT_COMPILE" = "xyes"; then
11051 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11052 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11053 fi
11054
11055
11056
11057
11058
11059
11060 cat >>confdefs.h <<_ACEOF
11061 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11062 _ACEOF
11063
11064 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11065 if test "x$PVM" = "x"; then
11066 PVM="0"
11067 fi
11068
11069 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11070
11071 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11072 if test "x$PVP" = "x"; then
11073 PVP="0"
11074 fi
11075
11076 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11077
11078
11079
11080 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11081 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11082 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11083 touch \$(top_srcdir)/ChangeLog; \
11084 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11085
11086
11087
11088
11089 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11090 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11091 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11092 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11093 touch \$(top_srcdir)/INSTALL; \
11094 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11095
11096
11097
11098
11099
11100
11101 case $host_os in
11102 solaris*)
11103 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11104 # check for a man page file found in later versions that use
11105 # traditional section numbers instead
11106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11107 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11108 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11109 then :
11110 printf %s "(cached) " >&6
11111 else $as_nop
11112 test "$cross_compiling" = yes &&
11113 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11114 if test -r "/usr/share/man/man7/attributes.7"; then
11115 ac_cv_file__usr_share_man_man7_attributes_7=yes
11116 else
11117 ac_cv_file__usr_share_man_man7_attributes_7=no
11118 fi
11119 fi
11120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11121 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11122 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11123 then :
11124 SYSV_MAN_SECTIONS=false
11125 else $as_nop
11126 SYSV_MAN_SECTIONS=true
11127 fi
11128
11129 ;;
11130 *) SYSV_MAN_SECTIONS=false ;;
11131 esac
11132
11133 if test x$APP_MAN_SUFFIX = x ; then
11134 APP_MAN_SUFFIX=1
11135 fi
11136 if test x$APP_MAN_DIR = x ; then
11137 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11138 fi
11139
11140 if test x$LIB_MAN_SUFFIX = x ; then
11141 LIB_MAN_SUFFIX=3
11142 fi
11143 if test x$LIB_MAN_DIR = x ; then
11144 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11145 fi
11146
11147 if test x$FILE_MAN_SUFFIX = x ; then
11148 case $SYSV_MAN_SECTIONS in
11149 true) FILE_MAN_SUFFIX=4 ;;
11150 *) FILE_MAN_SUFFIX=5 ;;
11151 esac
11152 fi
11153 if test x$FILE_MAN_DIR = x ; then
11154 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11155 fi
11156
11157 if test x$MISC_MAN_SUFFIX = x ; then
11158 case $SYSV_MAN_SECTIONS in
11159 true) MISC_MAN_SUFFIX=5 ;;
11160 *) MISC_MAN_SUFFIX=7 ;;
11161 esac
11162 fi
11163 if test x$MISC_MAN_DIR = x ; then
11164 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11165 fi
11166
11167 if test x$DRIVER_MAN_SUFFIX = x ; then
11168 case $SYSV_MAN_SECTIONS in
11169 true) DRIVER_MAN_SUFFIX=7 ;;
11170 *) DRIVER_MAN_SUFFIX=4 ;;
11171 esac
11172 fi
11173 if test x$DRIVER_MAN_DIR = x ; then
11174 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11175 fi
11176
11177 if test x$ADMIN_MAN_SUFFIX = x ; then
11178 case $SYSV_MAN_SECTIONS in
11179 true) ADMIN_MAN_SUFFIX=1m ;;
11180 *) ADMIN_MAN_SUFFIX=8 ;;
11181 esac
11182 fi
11183 if test x$ADMIN_MAN_DIR = x ; then
11184 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11185 fi
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201 XORG_MAN_PAGE="X Version 11"
11202
11203 MAN_SUBSTS="\
11204 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11205 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11206 -e 's|__xservername__|Xorg|g' \
11207 -e 's|__xconfigfile__|xorg.conf|g' \
11208 -e 's|__projectroot__|\$(prefix)|g' \
11209 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11210 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11211 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11212 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11213 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11214 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11215 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11216
11217
11218
11219 # Check whether --enable-silent-rules was given.
11220 if test ${enable_silent_rules+y}
11221 then :
11222 enableval=$enable_silent_rules;
11223 fi
11224
11225 case $enable_silent_rules in # (((
11226 yes) AM_DEFAULT_VERBOSITY=0;;
11227 no) AM_DEFAULT_VERBOSITY=1;;
11228 *) AM_DEFAULT_VERBOSITY=0;;
11229 esac
11230 am_make=${MAKE-make}
11231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11232 printf %s "checking whether $am_make supports nested variables... " >&6; }
11233 if test ${am_cv_make_support_nested_variables+y}
11234 then :
11235 printf %s "(cached) " >&6
11236 else $as_nop
11237 if printf "%s\n" 'TRUE=$(BAR$(V))
11238 BAR0=false
11239 BAR1=true
11240 V=1
11241 am__doit:
11242 @$(TRUE)
11243 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11244 am_cv_make_support_nested_variables=yes
11245 else
11246 am_cv_make_support_nested_variables=no
11247 fi
11248 fi
11249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11250 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11251 if test $am_cv_make_support_nested_variables = yes; then
11252 AM_V='$(V)'
11253 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11254 else
11255 AM_V=$AM_DEFAULT_VERBOSITY
11256 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11257 fi
11258 AM_BACKSLASH='\'
11259
11260
11261
11262
11263 # Check whether --enable-specs was given.
11264 if test ${enable_specs+y}
11265 then :
11266 enableval=$enable_specs; build_specs=$enableval
11267 else $as_nop
11268 build_specs=yes
11269 fi
11270
11271
11272 if test x$build_specs = xyes; then
11273 ENABLE_SPECS_TRUE=
11274 ENABLE_SPECS_FALSE='#'
11275 else
11276 ENABLE_SPECS_TRUE='#'
11277 ENABLE_SPECS_FALSE=
11278 fi
11279
11280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
11281 printf %s "checking whether to build functional specifications... " >&6; }
11282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
11283 printf "%s\n" "$build_specs" >&6; }
11284
11285
11286
11287
11288
11289 # Check whether --with-xmlto was given.
11290 if test ${with_xmlto+y}
11291 then :
11292 withval=$with_xmlto; use_xmlto=$withval
11293 else $as_nop
11294 use_xmlto=auto
11295 fi
11296
11297
11298
11299 if test "x$use_xmlto" = x"auto"; then
11300 # Extract the first word of "xmlto", so it can be a program name with args.
11301 set dummy xmlto; ac_word=$2
11302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11303 printf %s "checking for $ac_word... " >&6; }
11304 if test ${ac_cv_path_XMLTO+y}
11305 then :
11306 printf %s "(cached) " >&6
11307 else $as_nop
11308 case $XMLTO in
11309 [\\/]* | ?:[\\/]*)
11310 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
11311 ;;
11312 *)
11313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314 for as_dir in $PATH
11315 do
11316 IFS=$as_save_IFS
11317 case $as_dir in #(((
11318 '') as_dir=./ ;;
11319 */) ;;
11320 *) as_dir=$as_dir/ ;;
11321 esac
11322 for ac_exec_ext in '' $ac_executable_extensions; do
11323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11324 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
11325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11326 break 2
11327 fi
11328 done
11329 done
11330 IFS=$as_save_IFS
11331
11332 ;;
11333 esac
11334 fi
11335 XMLTO=$ac_cv_path_XMLTO
11336 if test -n "$XMLTO"; then
11337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
11338 printf "%s\n" "$XMLTO" >&6; }
11339 else
11340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341 printf "%s\n" "no" >&6; }
11342 fi
11343
11344
11345 if test "x$XMLTO" = "x"; then
11346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
11347 printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
11348 have_xmlto=no
11349 else
11350 have_xmlto=yes
11351 fi
11352 elif test "x$use_xmlto" = x"yes" ; then
11353 # Extract the first word of "xmlto", so it can be a program name with args.
11354 set dummy xmlto; ac_word=$2
11355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11356 printf %s "checking for $ac_word... " >&6; }
11357 if test ${ac_cv_path_XMLTO+y}
11358 then :
11359 printf %s "(cached) " >&6
11360 else $as_nop
11361 case $XMLTO in
11362 [\\/]* | ?:[\\/]*)
11363 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
11364 ;;
11365 *)
11366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11367 for as_dir in $PATH
11368 do
11369 IFS=$as_save_IFS
11370 case $as_dir in #(((
11371 '') as_dir=./ ;;
11372 */) ;;
11373 *) as_dir=$as_dir/ ;;
11374 esac
11375 for ac_exec_ext in '' $ac_executable_extensions; do
11376 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11377 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
11378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11379 break 2
11380 fi
11381 done
11382 done
11383 IFS=$as_save_IFS
11384
11385 ;;
11386 esac
11387 fi
11388 XMLTO=$ac_cv_path_XMLTO
11389 if test -n "$XMLTO"; then
11390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
11391 printf "%s\n" "$XMLTO" >&6; }
11392 else
11393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11394 printf "%s\n" "no" >&6; }
11395 fi
11396
11397
11398 if test "x$XMLTO" = "x"; then
11399 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
11400 fi
11401 have_xmlto=yes
11402 elif test "x$use_xmlto" = x"no" ; then
11403 if test "x$XMLTO" != "x"; then
11404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
11405 printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
11406 fi
11407 have_xmlto=no
11408 else
11409 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
11410 fi
11411
11412 # Test for a minimum version of xmlto, if provided.
11413 if test "$have_xmlto" = yes; then
11414 # scrape the xmlto version
11415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
11416 printf %s "checking the xmlto version... " >&6; }
11417 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
11418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
11419 printf "%s\n" "$xmlto_version" >&6; }
11420 as_arg_v1=$xmlto_version
11421 as_arg_v2=0.0.22
11422 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11423 case $? in #(
11424 1) :
11425 if test "x$use_xmlto" = xauto; then
11426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
11427 printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
11428 have_xmlto=no
11429 else
11430 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
11431 fi ;; #(
11432 0) :
11433 ;; #(
11434 2) :
11435 ;; #(
11436 *) :
11437 ;;
11438 esac
11439 fi
11440
11441 # Test for the ability of xmlto to generate a text target
11442 #
11443 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
11444 # following test for empty XML docbook files.
11445 # For compatibility reasons use the following empty XML docbook file and if
11446 # it fails try it again with a non-empty XML file.
11447 have_xmlto_text=no
11448 cat > conftest.xml << "EOF"
11449 EOF
11450 if test "$have_xmlto" = yes
11451 then :
11452 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
11453 then :
11454 have_xmlto_text=yes
11455 else $as_nop
11456 # Try it again with a non-empty XML file.
11457 cat > conftest.xml << "EOF"
11458 <x></x>
11459 EOF
11460 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
11461 then :
11462 have_xmlto_text=yes
11463 else $as_nop
11464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
11465 printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
11466 fi
11467 fi
11468 fi
11469 rm -f conftest.xml
11470 if test $have_xmlto_text = yes; then
11471 HAVE_XMLTO_TEXT_TRUE=
11472 HAVE_XMLTO_TEXT_FALSE='#'
11473 else
11474 HAVE_XMLTO_TEXT_TRUE='#'
11475 HAVE_XMLTO_TEXT_FALSE=
11476 fi
11477
11478 if test "$have_xmlto" = yes; then
11479 HAVE_XMLTO_TRUE=
11480 HAVE_XMLTO_FALSE='#'
11481 else
11482 HAVE_XMLTO_TRUE='#'
11483 HAVE_XMLTO_FALSE=
11484 fi
11485
11486
11487
11488
11489
11490
11491 # Check whether --with-fop was given.
11492 if test ${with_fop+y}
11493 then :
11494 withval=$with_fop; use_fop=$withval
11495 else $as_nop
11496 use_fop=auto
11497 fi
11498
11499
11500
11501 if test "x$use_fop" = x"auto"; then
11502 # Extract the first word of "fop", so it can be a program name with args.
11503 set dummy fop; ac_word=$2
11504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505 printf %s "checking for $ac_word... " >&6; }
11506 if test ${ac_cv_path_FOP+y}
11507 then :
11508 printf %s "(cached) " >&6
11509 else $as_nop
11510 case $FOP in
11511 [\\/]* | ?:[\\/]*)
11512 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11513 ;;
11514 *)
11515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516 for as_dir in $PATH
11517 do
11518 IFS=$as_save_IFS
11519 case $as_dir in #(((
11520 '') as_dir=./ ;;
11521 */) ;;
11522 *) as_dir=$as_dir/ ;;
11523 esac
11524 for ac_exec_ext in '' $ac_executable_extensions; do
11525 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11526 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
11527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11528 break 2
11529 fi
11530 done
11531 done
11532 IFS=$as_save_IFS
11533
11534 ;;
11535 esac
11536 fi
11537 FOP=$ac_cv_path_FOP
11538 if test -n "$FOP"; then
11539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11540 printf "%s\n" "$FOP" >&6; }
11541 else
11542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543 printf "%s\n" "no" >&6; }
11544 fi
11545
11546
11547 if test "x$FOP" = "x"; then
11548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
11549 printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
11550 have_fop=no
11551 else
11552 have_fop=yes
11553 fi
11554 elif test "x$use_fop" = x"yes" ; then
11555 # Extract the first word of "fop", so it can be a program name with args.
11556 set dummy fop; ac_word=$2
11557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11558 printf %s "checking for $ac_word... " >&6; }
11559 if test ${ac_cv_path_FOP+y}
11560 then :
11561 printf %s "(cached) " >&6
11562 else $as_nop
11563 case $FOP in
11564 [\\/]* | ?:[\\/]*)
11565 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11566 ;;
11567 *)
11568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569 for as_dir in $PATH
11570 do
11571 IFS=$as_save_IFS
11572 case $as_dir in #(((
11573 '') as_dir=./ ;;
11574 */) ;;
11575 *) as_dir=$as_dir/ ;;
11576 esac
11577 for ac_exec_ext in '' $ac_executable_extensions; do
11578 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11579 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
11580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11581 break 2
11582 fi
11583 done
11584 done
11585 IFS=$as_save_IFS
11586
11587 ;;
11588 esac
11589 fi
11590 FOP=$ac_cv_path_FOP
11591 if test -n "$FOP"; then
11592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11593 printf "%s\n" "$FOP" >&6; }
11594 else
11595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11596 printf "%s\n" "no" >&6; }
11597 fi
11598
11599
11600 if test "x$FOP" = "x"; then
11601 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
11602 fi
11603 have_fop=yes
11604 elif test "x$use_fop" = x"no" ; then
11605 if test "x$FOP" != "x"; then
11606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
11607 printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
11608 fi
11609 have_fop=no
11610 else
11611 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
11612 fi
11613
11614 # Test for a minimum version of fop, if provided.
11615
11616 if test "$have_fop" = yes; then
11617 HAVE_FOP_TRUE=
11618 HAVE_FOP_FALSE='#'
11619 else
11620 HAVE_FOP_TRUE='#'
11621 HAVE_FOP_FALSE=
11622 fi
11623
11624
11625
11626
11627 # Preserves the interface, should it be implemented later
11628
11629
11630
11631 # Check whether --with-xsltproc was given.
11632 if test ${with_xsltproc+y}
11633 then :
11634 withval=$with_xsltproc; use_xsltproc=$withval
11635 else $as_nop
11636 use_xsltproc=auto
11637 fi
11638
11639
11640
11641 if test "x$use_xsltproc" = x"auto"; then
11642 # Extract the first word of "xsltproc", so it can be a program name with args.
11643 set dummy xsltproc; ac_word=$2
11644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11645 printf %s "checking for $ac_word... " >&6; }
11646 if test ${ac_cv_path_XSLTPROC+y}
11647 then :
11648 printf %s "(cached) " >&6
11649 else $as_nop
11650 case $XSLTPROC in
11651 [\\/]* | ?:[\\/]*)
11652 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
11653 ;;
11654 *)
11655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11656 for as_dir in $PATH
11657 do
11658 IFS=$as_save_IFS
11659 case $as_dir in #(((
11660 '') as_dir=./ ;;
11661 */) ;;
11662 *) as_dir=$as_dir/ ;;
11663 esac
11664 for ac_exec_ext in '' $ac_executable_extensions; do
11665 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11666 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
11667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11668 break 2
11669 fi
11670 done
11671 done
11672 IFS=$as_save_IFS
11673
11674 ;;
11675 esac
11676 fi
11677 XSLTPROC=$ac_cv_path_XSLTPROC
11678 if test -n "$XSLTPROC"; then
11679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
11680 printf "%s\n" "$XSLTPROC" >&6; }
11681 else
11682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683 printf "%s\n" "no" >&6; }
11684 fi
11685
11686
11687 if test "x$XSLTPROC" = "x"; then
11688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
11689 printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
11690 have_xsltproc=no
11691 else
11692 have_xsltproc=yes
11693 fi
11694 elif test "x$use_xsltproc" = x"yes" ; then
11695 # Extract the first word of "xsltproc", so it can be a program name with args.
11696 set dummy xsltproc; ac_word=$2
11697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11698 printf %s "checking for $ac_word... " >&6; }
11699 if test ${ac_cv_path_XSLTPROC+y}
11700 then :
11701 printf %s "(cached) " >&6
11702 else $as_nop
11703 case $XSLTPROC in
11704 [\\/]* | ?:[\\/]*)
11705 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
11706 ;;
11707 *)
11708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709 for as_dir in $PATH
11710 do
11711 IFS=$as_save_IFS
11712 case $as_dir in #(((
11713 '') as_dir=./ ;;
11714 */) ;;
11715 *) as_dir=$as_dir/ ;;
11716 esac
11717 for ac_exec_ext in '' $ac_executable_extensions; do
11718 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11719 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
11720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11721 break 2
11722 fi
11723 done
11724 done
11725 IFS=$as_save_IFS
11726
11727 ;;
11728 esac
11729 fi
11730 XSLTPROC=$ac_cv_path_XSLTPROC
11731 if test -n "$XSLTPROC"; then
11732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
11733 printf "%s\n" "$XSLTPROC" >&6; }
11734 else
11735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736 printf "%s\n" "no" >&6; }
11737 fi
11738
11739
11740 if test "x$XSLTPROC" = "x"; then
11741 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
11742 fi
11743 have_xsltproc=yes
11744 elif test "x$use_xsltproc" = x"no" ; then
11745 if test "x$XSLTPROC" != "x"; then
11746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
11747 printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
11748 fi
11749 have_xsltproc=no
11750 else
11751 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
11752 fi
11753
11754 if test "$have_xsltproc" = yes; then
11755 HAVE_XSLTPROC_TRUE=
11756 HAVE_XSLTPROC_FALSE='#'
11757 else
11758 HAVE_XSLTPROC_TRUE='#'
11759 HAVE_XSLTPROC_FALSE=
11760 fi
11761
11762
11763
11764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
11765 printf %s "checking for X.Org SGML entities >= 1.8... " >&6; }
11766 XORG_SGML_PATH=
11767 if test -n "$PKG_CONFIG" && \
11768 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
11769 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
11770 ac_status=$?
11771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11772 test $ac_status = 0; }; then
11773 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
11774 else
11775 :
11776
11777 fi
11778
11779 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
11780 # the path and the name of the doc stylesheet
11781 if test "x$XORG_SGML_PATH" != "x" ; then
11782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
11783 printf "%s\n" "$XORG_SGML_PATH" >&6; }
11784 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
11785 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
11786 else
11787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11788 printf "%s\n" "no" >&6; }
11789 fi
11790
11791
11792
11793
11794 if test "x$XSL_STYLESHEET" != "x"; then
11795 HAVE_STYLESHEETS_TRUE=
11796 HAVE_STYLESHEETS_FALSE='#'
11797 else
11798 HAVE_STYLESHEETS_TRUE='#'
11799 HAVE_STYLESHEETS_FALSE=
11800 fi
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810 if test -n "$PYTHON"; then
11811 # If the user set $PYTHON, use it and don't search something else.
11812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.6" >&5
11813 printf %s "checking whether $PYTHON version is >= 3.6... " >&6; }
11814 prog="import sys
11815 # split strings by '.' and convert to numeric. Append some zeros
11816 # because we need at least 4 digits for the hex conversion.
11817 # map returns an iterator in Python 3.0 and a list in 2.x
11818 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
11819 minverhex = 0
11820 # xrange is not present in Python 3.0 and range returns an iterator
11821 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
11822 sys.exit(sys.hexversion < minverhex)"
11823 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
11824 ($PYTHON -c "$prog") >&5 2>&5
11825 ac_status=$?
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }
11828 then :
11829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11830 printf "%s\n" "yes" >&6; }
11831 else $as_nop
11832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833 printf "%s\n" "no" >&6; }
11834 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
11835 fi
11836 am_display_PYTHON=$PYTHON
11837 else
11838 # Otherwise, try each interpreter until we find one that satisfies
11839 # VERSION.
11840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.6" >&5
11841 printf %s "checking for a Python interpreter with version >= 3.6... " >&6; }
11842 if test ${am_cv_pathless_PYTHON+y}
11843 then :
11844 printf %s "(cached) " >&6
11845 else $as_nop
11846
11847 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
11848 test "$am_cv_pathless_PYTHON" = none && break
11849 prog="import sys
11850 # split strings by '.' and convert to numeric. Append some zeros
11851 # because we need at least 4 digits for the hex conversion.
11852 # map returns an iterator in Python 3.0 and a list in 2.x
11853 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
11854 minverhex = 0
11855 # xrange is not present in Python 3.0 and range returns an iterator
11856 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
11857 sys.exit(sys.hexversion < minverhex)"
11858 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
11859 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
11860 ac_status=$?
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); }
11863 then :
11864 break
11865 fi
11866 done
11867 fi
11868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
11869 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
11870 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
11871 if test "$am_cv_pathless_PYTHON" = none; then
11872 PYTHON=:
11873 else
11874 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
11875 set dummy $am_cv_pathless_PYTHON; ac_word=$2
11876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11877 printf %s "checking for $ac_word... " >&6; }
11878 if test ${ac_cv_path_PYTHON+y}
11879 then :
11880 printf %s "(cached) " >&6
11881 else $as_nop
11882 case $PYTHON in
11883 [\\/]* | ?:[\\/]*)
11884 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11885 ;;
11886 *)
11887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11888 for as_dir in $PATH
11889 do
11890 IFS=$as_save_IFS
11891 case $as_dir in #(((
11892 '') as_dir=./ ;;
11893 */) ;;
11894 *) as_dir=$as_dir/ ;;
11895 esac
11896 for ac_exec_ext in '' $ac_executable_extensions; do
11897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11898 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
11899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11900 break 2
11901 fi
11902 done
11903 done
11904 IFS=$as_save_IFS
11905
11906 ;;
11907 esac
11908 fi
11909 PYTHON=$ac_cv_path_PYTHON
11910 if test -n "$PYTHON"; then
11911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
11912 printf "%s\n" "$PYTHON" >&6; }
11913 else
11914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 printf "%s\n" "no" >&6; }
11916 fi
11917
11918
11919 fi
11920 am_display_PYTHON=$am_cv_pathless_PYTHON
11921 fi
11922
11923
11924 if test "$PYTHON" = :; then
11925 :
11926 else
11927
11928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
11929 printf %s "checking for $am_display_PYTHON version... " >&6; }
11930 if test ${am_cv_python_version+y}
11931 then :
11932 printf %s "(cached) " >&6
11933 else $as_nop
11934 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
11935 fi
11936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
11937 printf "%s\n" "$am_cv_python_version" >&6; }
11938 PYTHON_VERSION=$am_cv_python_version
11939
11940
11941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
11942 printf %s "checking for $am_display_PYTHON platform... " >&6; }
11943 if test ${am_cv_python_platform+y}
11944 then :
11945 printf %s "(cached) " >&6
11946 else $as_nop
11947 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
11948 fi
11949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
11950 printf "%s\n" "$am_cv_python_platform" >&6; }
11951 PYTHON_PLATFORM=$am_cv_python_platform
11952
11953
11954 if test "x$prefix" = xNONE; then
11955 am__usable_prefix=$ac_default_prefix
11956 else
11957 am__usable_prefix=$prefix
11958 fi
11959
11960 # Allow user to request using sys.* values from Python,
11961 # instead of the GNU $prefix values.
11962
11963 # Check whether --with-python-sys-prefix was given.
11964 if test ${with_python_sys_prefix+y}
11965 then :
11966 withval=$with_python_sys_prefix; am_use_python_sys=:
11967 else $as_nop
11968 am_use_python_sys=false
11969 fi
11970
11971
11972 # Allow user to override whatever the default Python prefix is.
11973
11974 # Check whether --with-python_prefix was given.
11975 if test ${with_python_prefix+y}
11976 then :
11977 withval=$with_python_prefix; am_python_prefix_subst=$withval
11978 am_cv_python_prefix=$withval
11979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
11980 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
11981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
11982 printf "%s\n" "$am_cv_python_prefix" >&6; }
11983 else $as_nop
11984
11985 if $am_use_python_sys; then
11986 # using python sys.prefix value, not GNU
11987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
11988 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
11989 if test ${am_cv_python_prefix+y}
11990 then :
11991 printf %s "(cached) " >&6
11992 else $as_nop
11993 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
11994 fi
11995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
11996 printf "%s\n" "$am_cv_python_prefix" >&6; }
11997
11998 case $am_cv_python_prefix in
11999 $am__usable_prefix*)
12000 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
12001 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
12002 ;;
12003 *)
12004 am_python_prefix_subst=$am_cv_python_prefix
12005 ;;
12006 esac
12007 else # using GNU prefix value, not python sys.prefix
12008 am_python_prefix_subst='${prefix}'
12009 am_python_prefix=$am_python_prefix_subst
12010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
12011 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
12012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
12013 printf "%s\n" "$am_python_prefix" >&6; }
12014 fi
12015 fi
12016
12017 # Substituting python_prefix_subst value.
12018 PYTHON_PREFIX=$am_python_prefix_subst
12019
12020
12021 # emacs-page Now do it all over again for Python exec_prefix, but with yet
12022 # another conditional: fall back to regular prefix if that was specified.
12023
12024 # Check whether --with-python_exec_prefix was given.
12025 if test ${with_python_exec_prefix+y}
12026 then :
12027 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
12028 am_cv_python_exec_prefix=$withval
12029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
12030 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
12031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
12032 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
12033 else $as_nop
12034
12035 # no explicit --with-python_exec_prefix, but if
12036 # --with-python_prefix was given, use its value for python_exec_prefix too.
12037 if test -n "$with_python_prefix"
12038 then :
12039 am_python_exec_prefix_subst=$with_python_prefix
12040 am_cv_python_exec_prefix=$with_python_prefix
12041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
12042 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
12043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
12044 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
12045 else $as_nop
12046
12047 # Set am__usable_exec_prefix whether using GNU or Python values,
12048 # since we use that variable for pyexecdir.
12049 if test "x$exec_prefix" = xNONE; then
12050 am__usable_exec_prefix=$am__usable_prefix
12051 else
12052 am__usable_exec_prefix=$exec_prefix
12053 fi
12054 #
12055 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
12056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
12057 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
12058 if test ${am_cv_python_exec_prefix+y}
12059 then :
12060 printf %s "(cached) " >&6
12061 else $as_nop
12062 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
12063 fi
12064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
12065 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
12066 case $am_cv_python_exec_prefix in
12067 $am__usable_exec_prefix*)
12068 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
12069 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
12070 ;;
12071 *)
12072 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
12073 ;;
12074 esac
12075 else # using GNU $exec_prefix, not python sys.exec_prefix
12076 am_python_exec_prefix_subst='${exec_prefix}'
12077 am_python_exec_prefix=$am_python_exec_prefix_subst
12078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
12079 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
12080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
12081 printf "%s\n" "$am_python_exec_prefix" >&6; }
12082 fi
12083 fi
12084 fi
12085
12086 # Substituting python_exec_prefix_subst.
12087 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
12088
12089
12090 # Factor out some code duplication into this shell variable.
12091 am_python_setup_sysconfig="\
12092 import sys
12093 # Prefer sysconfig over distutils.sysconfig, for better compatibility
12094 # with python 3.x. See automake bug#10227.
12095 try:
12096 import sysconfig
12097 except ImportError:
12098 can_use_sysconfig = 0
12099 else:
12100 can_use_sysconfig = 1
12101 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
12102 # <https://github.com/pypa/virtualenv/issues/118>
12103 try:
12104 from platform import python_implementation
12105 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
12106 can_use_sysconfig = 0
12107 except ImportError:
12108 pass"
12109
12110
12111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
12112 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
12113 if test ${am_cv_python_pythondir+y}
12114 then :
12115 printf %s "(cached) " >&6
12116 else $as_nop
12117 if test "x$am_cv_python_prefix" = x; then
12118 am_py_prefix=$am__usable_prefix
12119 else
12120 am_py_prefix=$am_cv_python_prefix
12121 fi
12122 am_cv_python_pythondir=`$PYTHON -c "
12123 $am_python_setup_sysconfig
12124 if can_use_sysconfig:
12125 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
12126 else:
12127 from distutils import sysconfig
12128 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
12129 sys.stdout.write(sitedir)"`
12130 #
12131 case $am_cv_python_pythondir in
12132 $am_py_prefix*)
12133 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
12134 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
12135 ;;
12136 *)
12137 case $am_py_prefix in
12138 /usr|/System*) ;;
12139 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
12140 ;;
12141 esac
12142 ;;
12143 esac
12144
12145 fi
12146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12147 printf "%s\n" "$am_cv_python_pythondir" >&6; }
12148 pythondir=$am_cv_python_pythondir
12149
12150
12151 pkgpythondir=\${pythondir}/$PACKAGE
12152
12153
12154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
12155 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
12156 if test ${am_cv_python_pyexecdir+y}
12157 then :
12158 printf %s "(cached) " >&6
12159 else $as_nop
12160 if test "x$am_cv_python_exec_prefix" = x; then
12161 am_py_exec_prefix=$am__usable_exec_prefix
12162 else
12163 am_py_exec_prefix=$am_cv_python_exec_prefix
12164 fi
12165 am_cv_python_pyexecdir=`$PYTHON -c "
12166 $am_python_setup_sysconfig
12167 if can_use_sysconfig:
12168 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
12169 else:
12170 from distutils import sysconfig
12171 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
12172 sys.stdout.write(sitedir)"`
12173 #
12174 case $am_cv_python_pyexecdir in
12175 $am_py_exec_prefix*)
12176 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
12177 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
12178 ;;
12179 *)
12180 case $am_py_exec_prefix in
12181 /usr|/System*) ;;
12182 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
12183 ;;
12184 esac
12185 ;;
12186 esac
12187
12188 fi
12189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12190 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
12191 pyexecdir=$am_cv_python_pyexecdir
12192
12193
12194 pkgpyexecdir=\${pyexecdir}/$PACKAGE
12195
12196
12197
12198 fi
12199
12200 if test "$PYTHON" != :; then
12201 HAVE_PYTHON_TRUE=
12202 HAVE_PYTHON_FALSE='#'
12203 else
12204 HAVE_PYTHON_TRUE='#'
12205 HAVE_PYTHON_FALSE=
12206 fi
12207
12208
12209
12210
12211 # Check whether --enable-legacy was given.
12212 if test ${enable_legacy+y}
12213 then :
12214 enableval=$enable_legacy; LEGACY=$enableval
12215 else $as_nop
12216 LEGACY=no
12217 fi
12218
12219 if test "x$LEGACY" = "xyes"; then
12220 LEGACY_TRUE=
12221 LEGACY_FALSE='#'
12222 else
12223 LEGACY_TRUE='#'
12224 LEGACY_FALSE=
12225 fi
12226
12227
12228 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12229 if test "x$ac_cv_header_sys_select_h" = xyes
12230 then :
12231 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
12232
12233 fi
12234 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
12235 if test "x$ac_cv_header_sys_param_h" = xyes
12236 then :
12237 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
12238
12239 fi
12240 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12241 if test "x$ac_cv_header_sys_types_h" = xyes
12242 then :
12243 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12244
12245 fi
12246 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12247 if test "x$ac_cv_header_sys_time_h" = xyes
12248 then :
12249 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
12250
12251 fi
12252
12253
12254 # Handle Xpoll.h.in
12255 # Avoid determining fds_bits on WIN32 hosts (not including cygwin)
12256 case $host_os in
12257 mingw*) fds_bits_found=true;;
12258 *) fds_bits_found=false;;
12259 esac
12260
12261 if test "x$fds_bits_found" = xfalse ; then
12262 ac_fn_c_check_member "$LINENO" "fd_set" "fds_bits" "ac_cv_member_fd_set_fds_bits" "
12263 #ifdef HAVE_SYS_PARAM_H
12264 #include <sys/param.h>
12265 #endif
12266 #ifdef HAVE_SYS_TYPES_H
12267 #include <sys/types.h>
12268 #endif
12269 #ifdef HAVE_SYS_TIME_H
12270 #include <sys/time.h>
12271 #endif
12272 #ifdef HAVE_SYS_SELECT_H
12273 #include <sys/select.h>
12274 #endif
12275
12276 "
12277 if test "x$ac_cv_member_fd_set_fds_bits" = xyes
12278 then :
12279
12280 fds_bits_found=plain
12281 USE_FDS_BITS="fds_bits"
12282
12283 fi
12284
12285 fi
12286
12287 if test "x$fds_bits_found" = xfalse ; then
12288 ac_fn_c_check_member "$LINENO" "fd_set" "__fds_bits" "ac_cv_member_fd_set___fds_bits" "
12289 #ifdef HAVE_SYS_PARAM_H
12290 #include <sys/param.h>
12291 #endif
12292 #ifdef HAVE_SYS_TYPES_H
12293 #include <sys/types.h>
12294 #endif
12295 #ifdef HAVE_SYS_TIME_H
12296 #include <sys/time.h>
12297 #endif
12298 #ifdef HAVE_SYS_SELECT_H
12299 #include <sys/select.h>
12300 #endif
12301
12302 "
12303 if test "x$ac_cv_member_fd_set___fds_bits" = xyes
12304 then :
12305
12306 fds_bits_found=underscores
12307 USE_FDS_BITS="__fds_bits"
12308
12309 fi
12310
12311 fi
12312
12313 if test "x$fds_bits_found" = xfalse ; then
12314 as_fn_error $? "Could not determine how to access the fds_bits or equivalent
12315 structure in fd_set on your platform." "$LINENO" 5
12316 fi
12317
12318
12319
12320 ac_config_files="$ac_config_files applewmproto.pc bigreqsproto.pc compositeproto.pc damageproto.pc dmxproto.pc dpmsproto.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"
12321
12322
12323 cat >confcache <<\_ACEOF
12324 # This file is a shell script that caches the results of configure
12325 # tests run on this system so they can be shared between configure
12326 # scripts and configure runs, see configure's option --config-cache.
12327 # It is not useful on other systems. If it contains results you don't
12328 # want to keep, you may remove or edit it.
12329 #
12330 # config.status only pays attention to the cache file if you give it
12331 # the --recheck option to rerun configure.
12332 #
12333 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12334 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12335 # following values.
12336
12337 _ACEOF
12338
12339 # The following way of writing the cache mishandles newlines in values,
12340 # but we know of no workaround that is simple, portable, and efficient.
12341 # So, we kill variables containing newlines.
12342 # Ultrix sh set writes to stderr and can't be redirected directly,
12343 # and sets the high bit in the cache file unless we assign to the vars.
12344 (
12345 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12346 eval ac_val=\$$ac_var
12347 case $ac_val in #(
12348 *${as_nl}*)
12349 case $ac_var in #(
12350 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12351 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12352 esac
12353 case $ac_var in #(
12354 _ | IFS | as_nl) ;; #(
12355 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12356 *) { eval $ac_var=; unset $ac_var;} ;;
12357 esac ;;
12358 esac
12359 done
12360
12361 (set) 2>&1 |
12362 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12363 *${as_nl}ac_space=\ *)
12364 # `set' does not quote correctly, so add quotes: double-quote
12365 # substitution turns \\\\ into \\, and sed turns \\ into \.
12366 sed -n \
12367 "s/'/'\\\\''/g;
12368 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12369 ;; #(
12370 *)
12371 # `set' quotes correctly as required by POSIX, so do not add quotes.
12372 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12373 ;;
12374 esac |
12375 sort
12376 ) |
12377 sed '
12378 /^ac_cv_env_/b end
12379 t clear
12380 :clear
12381 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12382 t end
12383 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12384 :end' >>confcache
12385 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12386 if test -w "$cache_file"; then
12387 if test "x$cache_file" != "x/dev/null"; then
12388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12389 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12390 if test ! -f "$cache_file" || test -h "$cache_file"; then
12391 cat confcache >"$cache_file"
12392 else
12393 case $cache_file in #(
12394 */* | ?:*)
12395 mv -f confcache "$cache_file"$$ &&
12396 mv -f "$cache_file"$$ "$cache_file" ;; #(
12397 *)
12398 mv -f confcache "$cache_file" ;;
12399 esac
12400 fi
12401 fi
12402 else
12403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12404 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12405 fi
12406 fi
12407 rm -f confcache
12408
12409 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12410 # Let make expand exec_prefix.
12411 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12412
12413 # Transform confdefs.h into DEFS.
12414 # Protect against shell expansion while executing Makefile rules.
12415 # Protect against Makefile macro expansion.
12416 #
12417 # If the first sed substitution is executed (which looks for macros that
12418 # take arguments), then branch to the quote section. Otherwise,
12419 # look for a macro that doesn't take arguments.
12420 ac_script='
12421 :mline
12422 /\\$/{
12423 N
12424 s,\\\n,,
12425 b mline
12426 }
12427 t clear
12428 :clear
12429 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
12430 t quote
12431 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
12432 t quote
12433 b any
12434 :quote
12435 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12436 s/\[/\\&/g
12437 s/\]/\\&/g
12438 s/\$/$$/g
12439 H
12440 :any
12441 ${
12442 g
12443 s/^\n//
12444 s/\n/ /g
12445 p
12446 }
12447 '
12448 DEFS=`sed -n "$ac_script" confdefs.h`
12449
12450
12451 ac_libobjs=
12452 ac_ltlibobjs=
12453 U=
12454 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12455 # 1. Remove the extension, and $U if already installed.
12456 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12457 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12458 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12459 # will be set to the directory where LIBOBJS objects are built.
12460 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12461 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12462 done
12463 LIBOBJS=$ac_libobjs
12464
12465 LTLIBOBJS=$ac_ltlibobjs
12466
12467
12468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12469 printf %s "checking that generated files are newer than configure... " >&6; }
12470 if test -n "$am_sleep_pid"; then
12471 # Hide warnings about reused PIDs.
12472 wait $am_sleep_pid 2>/dev/null
12473 fi
12474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12475 printf "%s\n" "done" >&6; }
12476 if test -n "$EXEEXT"; then
12477 am__EXEEXT_TRUE=
12478 am__EXEEXT_FALSE='#'
12479 else
12480 am__EXEEXT_TRUE='#'
12481 am__EXEEXT_FALSE=
12482 fi
12483
12484 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12485 as_fn_error $? "conditional \"AMDEP\" was never defined.
12486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12487 fi
12488 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12489 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12491 fi
12492 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
12493 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
12494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12495 fi
12496 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
12497 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
12498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12499 fi
12500 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
12501 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
12502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12503 fi
12504 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
12505 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
12506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12507 fi
12508 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
12509 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
12510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12511 fi
12512 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
12513 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
12514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12515 fi
12516 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
12517 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
12518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12519 fi
12520 if test -z "${LEGACY_TRUE}" && test -z "${LEGACY_FALSE}"; then
12521 as_fn_error $? "conditional \"LEGACY\" was never defined.
12522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12523 fi
12524
12525 : "${CONFIG_STATUS=./config.status}"
12526 ac_write_fail=0
12527 ac_clean_files_save=$ac_clean_files
12528 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12530 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12531 as_write_fail=0
12532 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12533 #! $SHELL
12534 # Generated by $as_me.
12535 # Run this file to recreate the current configuration.
12536 # Compiler output produced by configure, useful for debugging
12537 # configure, is in config.log if it exists.
12538
12539 debug=false
12540 ac_cs_recheck=false
12541 ac_cs_silent=false
12542
12543 SHELL=\${CONFIG_SHELL-$SHELL}
12544 export SHELL
12545 _ASEOF
12546 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12547 ## -------------------- ##
12548 ## M4sh Initialization. ##
12549 ## -------------------- ##
12550
12551 # Be more Bourne compatible
12552 DUALCASE=1; export DUALCASE # for MKS sh
12553 as_nop=:
12554 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12555 then :
12556 emulate sh
12557 NULLCMD=:
12558 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12559 # is contrary to our usage. Disable this feature.
12560 alias -g '${1+"$@"}'='"$@"'
12561 setopt NO_GLOB_SUBST
12562 else $as_nop
12563 case `(set -o) 2>/dev/null` in #(
12564 *posix*) :
12565 set -o posix ;; #(
12566 *) :
12567 ;;
12568 esac
12569 fi
12570
12571
12572
12573 # Reset variables that may have inherited troublesome values from
12574 # the environment.
12575
12576 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12577 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12578 # side effect of setting IFS to empty, thus disabling word splitting.)
12579 # Quoting is to prevent editors from complaining about space-tab.
12580 as_nl='
12581 '
12582 export as_nl
12583 IFS=" "" $as_nl"
12584
12585 PS1='$ '
12586 PS2='> '
12587 PS4='+ '
12588
12589 # Ensure predictable behavior from utilities with locale-dependent output.
12590 LC_ALL=C
12591 export LC_ALL
12592 LANGUAGE=C
12593 export LANGUAGE
12594
12595 # We cannot yet rely on "unset" to work, but we need these variables
12596 # to be unset--not just set to an empty or harmless value--now, to
12597 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12598 # also avoids known problems related to "unset" and subshell syntax
12599 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12600 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12601 do eval test \${$as_var+y} \
12602 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12603 done
12604
12605 # Ensure that fds 0, 1, and 2 are open.
12606 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12607 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12608 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12609
12610 # The user is always right.
12611 if ${PATH_SEPARATOR+false} :; then
12612 PATH_SEPARATOR=:
12613 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12614 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12615 PATH_SEPARATOR=';'
12616 }
12617 fi
12618
12619
12620 # Find who we are. Look in the path if we contain no directory separator.
12621 as_myself=
12622 case $0 in #((
12623 *[\\/]* ) as_myself=$0 ;;
12624 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625 for as_dir in $PATH
12626 do
12627 IFS=$as_save_IFS
12628 case $as_dir in #(((
12629 '') as_dir=./ ;;
12630 */) ;;
12631 *) as_dir=$as_dir/ ;;
12632 esac
12633 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12634 done
12635 IFS=$as_save_IFS
12636
12637 ;;
12638 esac
12639 # We did not find ourselves, most probably we were run as `sh COMMAND'
12640 # in which case we are not to be found in the path.
12641 if test "x$as_myself" = x; then
12642 as_myself=$0
12643 fi
12644 if test ! -f "$as_myself"; then
12645 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12646 exit 1
12647 fi
12648
12649
12650
12651 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12652 # ----------------------------------------
12653 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12654 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12655 # script with STATUS, using 1 if that was 0.
12656 as_fn_error ()
12657 {
12658 as_status=$1; test $as_status -eq 0 && as_status=1
12659 if test "$4"; then
12660 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12662 fi
12663 printf "%s\n" "$as_me: error: $2" >&2
12664 as_fn_exit $as_status
12665 } # as_fn_error
12666
12667
12668
12669 # as_fn_set_status STATUS
12670 # -----------------------
12671 # Set $? to STATUS, without forking.
12672 as_fn_set_status ()
12673 {
12674 return $1
12675 } # as_fn_set_status
12676
12677 # as_fn_exit STATUS
12678 # -----------------
12679 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12680 as_fn_exit ()
12681 {
12682 set +e
12683 as_fn_set_status $1
12684 exit $1
12685 } # as_fn_exit
12686
12687 # as_fn_unset VAR
12688 # ---------------
12689 # Portably unset VAR.
12690 as_fn_unset ()
12691 {
12692 { eval $1=; unset $1;}
12693 }
12694 as_unset=as_fn_unset
12695
12696 # as_fn_append VAR VALUE
12697 # ----------------------
12698 # Append the text in VALUE to the end of the definition contained in VAR. Take
12699 # advantage of any shell optimizations that allow amortized linear growth over
12700 # repeated appends, instead of the typical quadratic growth present in naive
12701 # implementations.
12702 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12703 then :
12704 eval 'as_fn_append ()
12705 {
12706 eval $1+=\$2
12707 }'
12708 else $as_nop
12709 as_fn_append ()
12710 {
12711 eval $1=\$$1\$2
12712 }
12713 fi # as_fn_append
12714
12715 # as_fn_arith ARG...
12716 # ------------------
12717 # Perform arithmetic evaluation on the ARGs, and store the result in the
12718 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12719 # must be portable across $(()) and expr.
12720 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12721 then :
12722 eval 'as_fn_arith ()
12723 {
12724 as_val=$(( $* ))
12725 }'
12726 else $as_nop
12727 as_fn_arith ()
12728 {
12729 as_val=`expr "$@" || test $? -eq 1`
12730 }
12731 fi # as_fn_arith
12732
12733
12734 if expr a : '\(a\)' >/dev/null 2>&1 &&
12735 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12736 as_expr=expr
12737 else
12738 as_expr=false
12739 fi
12740
12741 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12742 as_basename=basename
12743 else
12744 as_basename=false
12745 fi
12746
12747 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12748 as_dirname=dirname
12749 else
12750 as_dirname=false
12751 fi
12752
12753 as_me=`$as_basename -- "$0" ||
12754 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12755 X"$0" : 'X\(//\)$' \| \
12756 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12757 printf "%s\n" X/"$0" |
12758 sed '/^.*\/\([^/][^/]*\)\/*$/{
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
12772 # Avoid depending upon Character Ranges.
12773 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12774 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12775 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12776 as_cr_digits='0123456789'
12777 as_cr_alnum=$as_cr_Letters$as_cr_digits
12778
12779
12780 # Determine whether it's possible to make 'echo' print without a newline.
12781 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12782 # for compatibility with existing Makefiles.
12783 ECHO_C= ECHO_N= ECHO_T=
12784 case `echo -n x` in #(((((
12785 -n*)
12786 case `echo 'xy\c'` in
12787 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12788 xy) ECHO_C='\c';;
12789 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12790 ECHO_T=' ';;
12791 esac;;
12792 *)
12793 ECHO_N='-n';;
12794 esac
12795
12796 # For backward compatibility with old third-party macros, we provide
12797 # the shell variables $as_echo and $as_echo_n. New code should use
12798 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12799 as_echo='printf %s\n'
12800 as_echo_n='printf %s'
12801
12802 rm -f conf$$ conf$$.exe conf$$.file
12803 if test -d conf$$.dir; then
12804 rm -f conf$$.dir/conf$$.file
12805 else
12806 rm -f conf$$.dir
12807 mkdir conf$$.dir 2>/dev/null
12808 fi
12809 if (echo >conf$$.file) 2>/dev/null; then
12810 if ln -s conf$$.file conf$$ 2>/dev/null; then
12811 as_ln_s='ln -s'
12812 # ... but there are two gotchas:
12813 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12814 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12815 # In both cases, we have to default to `cp -pR'.
12816 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12817 as_ln_s='cp -pR'
12818 elif ln conf$$.file conf$$ 2>/dev/null; then
12819 as_ln_s=ln
12820 else
12821 as_ln_s='cp -pR'
12822 fi
12823 else
12824 as_ln_s='cp -pR'
12825 fi
12826 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12827 rmdir conf$$.dir 2>/dev/null
12828
12829
12830 # as_fn_mkdir_p
12831 # -------------
12832 # Create "$as_dir" as a directory, including parents if necessary.
12833 as_fn_mkdir_p ()
12834 {
12835
12836 case $as_dir in #(
12837 -*) as_dir=./$as_dir;;
12838 esac
12839 test -d "$as_dir" || eval $as_mkdir_p || {
12840 as_dirs=
12841 while :; do
12842 case $as_dir in #(
12843 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12844 *) as_qdir=$as_dir;;
12845 esac
12846 as_dirs="'$as_qdir' $as_dirs"
12847 as_dir=`$as_dirname -- "$as_dir" ||
12848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12849 X"$as_dir" : 'X\(//\)[^/]' \| \
12850 X"$as_dir" : 'X\(//\)$' \| \
12851 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12852 printf "%s\n" X"$as_dir" |
12853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12854 s//\1/
12855 q
12856 }
12857 /^X\(\/\/\)[^/].*/{
12858 s//\1/
12859 q
12860 }
12861 /^X\(\/\/\)$/{
12862 s//\1/
12863 q
12864 }
12865 /^X\(\/\).*/{
12866 s//\1/
12867 q
12868 }
12869 s/.*/./; q'`
12870 test -d "$as_dir" && break
12871 done
12872 test -z "$as_dirs" || eval "mkdir $as_dirs"
12873 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12874
12875
12876 } # as_fn_mkdir_p
12877 if mkdir -p . 2>/dev/null; then
12878 as_mkdir_p='mkdir -p "$as_dir"'
12879 else
12880 test -d ./-p && rmdir ./-p
12881 as_mkdir_p=false
12882 fi
12883
12884
12885 # as_fn_executable_p FILE
12886 # -----------------------
12887 # Test if FILE is an executable regular file.
12888 as_fn_executable_p ()
12889 {
12890 test -f "$1" && test -x "$1"
12891 } # as_fn_executable_p
12892 as_test_x='test -x'
12893 as_executable_p=as_fn_executable_p
12894
12895 # Sed expression to map a string onto a valid CPP name.
12896 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12897
12898 # Sed expression to map a string onto a valid variable name.
12899 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12900
12901
12902 exec 6>&1
12903 ## ----------------------------------- ##
12904 ## Main body of $CONFIG_STATUS script. ##
12905 ## ----------------------------------- ##
12906 _ASEOF
12907 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12908
12909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12910 # Save the log message, to keep $0 and so on meaningful, and to
12911 # report actual input values of CONFIG_FILES etc. instead of their
12912 # values after options handling.
12913 ac_log="
12914 This file was extended by xorgproto $as_me 2022.1, which was
12915 generated by GNU Autoconf 2.71. Invocation command line was
12916
12917 CONFIG_FILES = $CONFIG_FILES
12918 CONFIG_HEADERS = $CONFIG_HEADERS
12919 CONFIG_LINKS = $CONFIG_LINKS
12920 CONFIG_COMMANDS = $CONFIG_COMMANDS
12921 $ $0 $@
12922
12923 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12924 "
12925
12926 _ACEOF
12927
12928 case $ac_config_files in *"
12929 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12930 esac
12931
12932
12933
12934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12935 # Files that config.status was made for.
12936 config_files="$ac_config_files"
12937 config_commands="$ac_config_commands"
12938
12939 _ACEOF
12940
12941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12942 ac_cs_usage="\
12943 \`$as_me' instantiates files and other configuration actions
12944 from templates according to the current configuration. Unless the files
12945 and actions are specified as TAGs, all are instantiated by default.
12946
12947 Usage: $0 [OPTION]... [TAG]...
12948
12949 -h, --help print this help, then exit
12950 -V, --version print version number and configuration settings, then exit
12951 --config print configuration, then exit
12952 -q, --quiet, --silent
12953 do not print progress messages
12954 -d, --debug don't remove temporary files
12955 --recheck update $as_me by reconfiguring in the same conditions
12956 --file=FILE[:TEMPLATE]
12957 instantiate the configuration file FILE
12958
12959 Configuration files:
12960 $config_files
12961
12962 Configuration commands:
12963 $config_commands
12964
12965 Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>."
12966
12967 _ACEOF
12968 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12969 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12971 ac_cs_config='$ac_cs_config_escaped'
12972 ac_cs_version="\\
12973 xorgproto config.status 2022.1
12974 configured by $0, generated by GNU Autoconf 2.71,
12975 with options \\"\$ac_cs_config\\"
12976
12977 Copyright (C) 2021 Free Software Foundation, Inc.
12978 This config.status script is free software; the Free Software Foundation
12979 gives unlimited permission to copy, distribute and modify it."
12980
12981 ac_pwd='$ac_pwd'
12982 srcdir='$srcdir'
12983 INSTALL='$INSTALL'
12984 MKDIR_P='$MKDIR_P'
12985 AWK='$AWK'
12986 test -n "\$AWK" || AWK=awk
12987 _ACEOF
12988
12989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12990 # The default lists apply if the user does not specify any file.
12991 ac_need_defaults=:
12992 while test $# != 0
12993 do
12994 case $1 in
12995 --*=?*)
12996 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12997 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12998 ac_shift=:
12999 ;;
13000 --*=)
13001 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13002 ac_optarg=
13003 ac_shift=:
13004 ;;
13005 *)
13006 ac_option=$1
13007 ac_optarg=$2
13008 ac_shift=shift
13009 ;;
13010 esac
13011
13012 case $ac_option in
13013 # Handling of the options.
13014 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13015 ac_cs_recheck=: ;;
13016 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13017 printf "%s\n" "$ac_cs_version"; exit ;;
13018 --config | --confi | --conf | --con | --co | --c )
13019 printf "%s\n" "$ac_cs_config"; exit ;;
13020 --debug | --debu | --deb | --de | --d | -d )
13021 debug=: ;;
13022 --file | --fil | --fi | --f )
13023 $ac_shift
13024 case $ac_optarg in
13025 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13026 '') as_fn_error $? "missing file argument" ;;
13027 esac
13028 as_fn_append CONFIG_FILES " '$ac_optarg'"
13029 ac_need_defaults=false;;
13030 --he | --h | --help | --hel | -h )
13031 printf "%s\n" "$ac_cs_usage"; exit ;;
13032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13033 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13034 ac_cs_silent=: ;;
13035
13036 # This is an error.
13037 -*) as_fn_error $? "unrecognized option: \`$1'
13038 Try \`$0 --help' for more information." ;;
13039
13040 *) as_fn_append ac_config_targets " $1"
13041 ac_need_defaults=false ;;
13042
13043 esac
13044 shift
13045 done
13046
13047 ac_configure_extra_args=
13048
13049 if $ac_cs_silent; then
13050 exec 6>/dev/null
13051 ac_configure_extra_args="$ac_configure_extra_args --silent"
13052 fi
13053
13054 _ACEOF
13055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13056 if \$ac_cs_recheck; then
13057 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13058 shift
13059 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
13060 CONFIG_SHELL='$SHELL'
13061 export CONFIG_SHELL
13062 exec "\$@"
13063 fi
13064
13065 _ACEOF
13066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13067 exec 5>>config.log
13068 {
13069 echo
13070 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13071 ## Running $as_me. ##
13072 _ASBOX
13073 printf "%s\n" "$ac_log"
13074 } >&5
13075
13076 _ACEOF
13077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13078 #
13079 # INIT-COMMANDS
13080 #
13081 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13082
13083 _ACEOF
13084
13085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13086
13087 # Handling of arguments.
13088 for ac_config_target in $ac_config_targets
13089 do
13090 case $ac_config_target in
13091 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13092 "applewmproto.pc") CONFIG_FILES="$CONFIG_FILES applewmproto.pc" ;;
13093 "bigreqsproto.pc") CONFIG_FILES="$CONFIG_FILES bigreqsproto.pc" ;;
13094 "compositeproto.pc") CONFIG_FILES="$CONFIG_FILES compositeproto.pc" ;;
13095 "damageproto.pc") CONFIG_FILES="$CONFIG_FILES damageproto.pc" ;;
13096 "dmxproto.pc") CONFIG_FILES="$CONFIG_FILES dmxproto.pc" ;;
13097 "dpmsproto.pc") CONFIG_FILES="$CONFIG_FILES dpmsproto.pc" ;;
13098 "dri2proto.pc") CONFIG_FILES="$CONFIG_FILES dri2proto.pc" ;;
13099 "dri3proto.pc") CONFIG_FILES="$CONFIG_FILES dri3proto.pc" ;;
13100 "evieproto.pc") CONFIG_FILES="$CONFIG_FILES evieproto.pc" ;;
13101 "fixesproto.pc") CONFIG_FILES="$CONFIG_FILES fixesproto.pc" ;;
13102 "fontcacheproto.pc") CONFIG_FILES="$CONFIG_FILES fontcacheproto.pc" ;;
13103 "fontsproto.pc") CONFIG_FILES="$CONFIG_FILES fontsproto.pc" ;;
13104 "glproto.pc") CONFIG_FILES="$CONFIG_FILES glproto.pc" ;;
13105 "include/X11/Xpoll.h") CONFIG_FILES="$CONFIG_FILES include/X11/Xpoll.h" ;;
13106 "inputproto.pc") CONFIG_FILES="$CONFIG_FILES inputproto.pc" ;;
13107 "kbproto.pc") CONFIG_FILES="$CONFIG_FILES kbproto.pc" ;;
13108 "lg3dproto.pc") CONFIG_FILES="$CONFIG_FILES lg3dproto.pc" ;;
13109 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13110 "presentproto.pc") CONFIG_FILES="$CONFIG_FILES presentproto.pc" ;;
13111 "printproto.pc") CONFIG_FILES="$CONFIG_FILES printproto.pc" ;;
13112 "randrproto.pc") CONFIG_FILES="$CONFIG_FILES randrproto.pc" ;;
13113 "recordproto.pc") CONFIG_FILES="$CONFIG_FILES recordproto.pc" ;;
13114 "renderproto.pc") CONFIG_FILES="$CONFIG_FILES renderproto.pc" ;;
13115 "resourceproto.pc") CONFIG_FILES="$CONFIG_FILES resourceproto.pc" ;;
13116 "scrnsaverproto.pc") CONFIG_FILES="$CONFIG_FILES scrnsaverproto.pc" ;;
13117 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
13118 "specs/bigreqsproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/bigreqsproto/Makefile" ;;
13119 "specs/fontsproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/fontsproto/Makefile" ;;
13120 "specs/kbproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/kbproto/Makefile" ;;
13121 "specs/recordproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/recordproto/Makefile" ;;
13122 "specs/scrnsaverproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/scrnsaverproto/Makefile" ;;
13123 "specs/xcmiscproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xcmiscproto/Makefile" ;;
13124 "specs/xextproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xextproto/Makefile" ;;
13125 "specs/xproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xproto/Makefile" ;;
13126 "trapproto.pc") CONFIG_FILES="$CONFIG_FILES trapproto.pc" ;;
13127 "videoproto.pc") CONFIG_FILES="$CONFIG_FILES videoproto.pc" ;;
13128 "windowswmproto.pc") CONFIG_FILES="$CONFIG_FILES windowswmproto.pc" ;;
13129 "xcalibrateproto.pc") CONFIG_FILES="$CONFIG_FILES xcalibrateproto.pc" ;;
13130 "xcmiscproto.pc") CONFIG_FILES="$CONFIG_FILES xcmiscproto.pc" ;;
13131 "xextproto.pc") CONFIG_FILES="$CONFIG_FILES xextproto.pc" ;;
13132 "xf86bigfontproto.pc") CONFIG_FILES="$CONFIG_FILES xf86bigfontproto.pc" ;;
13133 "xf86dgaproto.pc") CONFIG_FILES="$CONFIG_FILES xf86dgaproto.pc" ;;
13134 "xf86driproto.pc") CONFIG_FILES="$CONFIG_FILES xf86driproto.pc" ;;
13135 "xf86miscproto.pc") CONFIG_FILES="$CONFIG_FILES xf86miscproto.pc" ;;
13136 "xf86rushproto.pc") CONFIG_FILES="$CONFIG_FILES xf86rushproto.pc" ;;
13137 "xf86vidmodeproto.pc") CONFIG_FILES="$CONFIG_FILES xf86vidmodeproto.pc" ;;
13138 "xineramaproto.pc") CONFIG_FILES="$CONFIG_FILES xineramaproto.pc" ;;
13139 "xproto.pc") CONFIG_FILES="$CONFIG_FILES xproto.pc" ;;
13140 "xproxymngproto.pc") CONFIG_FILES="$CONFIG_FILES xproxymngproto.pc" ;;
13141
13142 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13143 esac
13144 done
13145
13146
13147 # If the user did not use the arguments to specify the items to instantiate,
13148 # then the envvar interface is used. Set only those that are not.
13149 # We use the long form for the default assignment because of an extremely
13150 # bizarre bug on SunOS 4.1.3.
13151 if $ac_need_defaults; then
13152 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
13153 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
13154 fi
13155
13156 # Have a temporary directory for convenience. Make it in the build tree
13157 # simply because there is no reason against having it here, and in addition,
13158 # creating and moving files from /tmp can sometimes cause problems.
13159 # Hook for its removal unless debugging.
13160 # Note that there is a small window in which the directory will not be cleaned:
13161 # after its creation but before its name has been assigned to `$tmp'.
13162 $debug ||
13163 {
13164 tmp= ac_tmp=
13165 trap 'exit_status=$?
13166 : "${ac_tmp:=$tmp}"
13167 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13168 ' 0
13169 trap 'as_fn_exit 1' 1 2 13 15
13170 }
13171 # Create a (secure) tmp directory for tmp files.
13172
13173 {
13174 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13175 test -d "$tmp"
13176 } ||
13177 {
13178 tmp=./conf$$-$RANDOM
13179 (umask 077 && mkdir "$tmp")
13180 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13181 ac_tmp=$tmp
13182
13183 # Set up the scripts for CONFIG_FILES section.
13184 # No need to generate them if there are no CONFIG_FILES.
13185 # This happens for instance with `./config.status config.h'.
13186 if test -n "$CONFIG_FILES"; then
13187
13188
13189 ac_cr=`echo X | tr X '\015'`
13190 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13191 # But we know of no other shell where ac_cr would be empty at this
13192 # point, so we can use a bashism as a fallback.
13193 if test "x$ac_cr" = x; then
13194 eval ac_cr=\$\'\\r\'
13195 fi
13196 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13197 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13198 ac_cs_awk_cr='\\r'
13199 else
13200 ac_cs_awk_cr=$ac_cr
13201 fi
13202
13203 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13204 _ACEOF
13205
13206
13207 {
13208 echo "cat >conf$$subs.awk <<_ACEOF" &&
13209 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13210 echo "_ACEOF"
13211 } >conf$$subs.sh ||
13212 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13213 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13214 ac_delim='%!_!# '
13215 for ac_last_try in false false false false false :; do
13216 . ./conf$$subs.sh ||
13217 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13218
13219 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13220 if test $ac_delim_n = $ac_delim_num; then
13221 break
13222 elif $ac_last_try; then
13223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13224 else
13225 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13226 fi
13227 done
13228 rm -f conf$$subs.sh
13229
13230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13231 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13232 _ACEOF
13233 sed -n '
13234 h
13235 s/^/S["/; s/!.*/"]=/
13236 p
13237 g
13238 s/^[^!]*!//
13239 :repl
13240 t repl
13241 s/'"$ac_delim"'$//
13242 t delim
13243 :nl
13244 h
13245 s/\(.\{148\}\)..*/\1/
13246 t more1
13247 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13248 p
13249 n
13250 b repl
13251 :more1
13252 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13253 p
13254 g
13255 s/.\{148\}//
13256 t nl
13257 :delim
13258 h
13259 s/\(.\{148\}\)..*/\1/
13260 t more2
13261 s/["\\]/\\&/g; s/^/"/; s/$/"/
13262 p
13263 b
13264 :more2
13265 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13266 p
13267 g
13268 s/.\{148\}//
13269 t delim
13270 ' <conf$$subs.awk | sed '
13271 /^[^""]/{
13272 N
13273 s/\n//
13274 }
13275 ' >>$CONFIG_STATUS || ac_write_fail=1
13276 rm -f conf$$subs.awk
13277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13278 _ACAWK
13279 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13280 for (key in S) S_is_set[key] = 1
13281 FS = ""
13282
13283 }
13284 {
13285 line = $ 0
13286 nfields = split(line, field, "@")
13287 substed = 0
13288 len = length(field[1])
13289 for (i = 2; i < nfields; i++) {
13290 key = field[i]
13291 keylen = length(key)
13292 if (S_is_set[key]) {
13293 value = S[key]
13294 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13295 len += length(value) + length(field[++i])
13296 substed = 1
13297 } else
13298 len += 1 + keylen
13299 }
13300
13301 print line
13302 }
13303
13304 _ACAWK
13305 _ACEOF
13306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13307 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13308 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13309 else
13310 cat
13311 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13312 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13313 _ACEOF
13314
13315 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13316 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13317 # trailing colons and then remove the whole line if VPATH becomes empty
13318 # (actually we leave an empty line to preserve line numbers).
13319 if test "x$srcdir" = x.; then
13320 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13321 h
13322 s///
13323 s/^/:/
13324 s/[ ]*$/:/
13325 s/:\$(srcdir):/:/g
13326 s/:\${srcdir}:/:/g
13327 s/:@srcdir@:/:/g
13328 s/^:*//
13329 s/:*$//
13330 x
13331 s/\(=[ ]*\).*/\1/
13332 G
13333 s/\n//
13334 s/^[^=]*=[ ]*$//
13335 }'
13336 fi
13337
13338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13339 fi # test -n "$CONFIG_FILES"
13340
13341
13342 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
13343 shift
13344 for ac_tag
13345 do
13346 case $ac_tag in
13347 :[FHLC]) ac_mode=$ac_tag; continue;;
13348 esac
13349 case $ac_mode$ac_tag in
13350 :[FHL]*:*);;
13351 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13352 :[FH]-) ac_tag=-:-;;
13353 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13354 esac
13355 ac_save_IFS=$IFS
13356 IFS=:
13357 set x $ac_tag
13358 IFS=$ac_save_IFS
13359 shift
13360 ac_file=$1
13361 shift
13362
13363 case $ac_mode in
13364 :L) ac_source=$1;;
13365 :[FH])
13366 ac_file_inputs=
13367 for ac_f
13368 do
13369 case $ac_f in
13370 -) ac_f="$ac_tmp/stdin";;
13371 *) # Look for the file first in the build tree, then in the source tree
13372 # (if the path is not absolute). The absolute path cannot be DOS-style,
13373 # because $ac_f cannot contain `:'.
13374 test -f "$ac_f" ||
13375 case $ac_f in
13376 [\\/$]*) false;;
13377 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13378 esac ||
13379 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13380 esac
13381 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13382 as_fn_append ac_file_inputs " '$ac_f'"
13383 done
13384
13385 # Let's still pretend it is `configure' which instantiates (i.e., don't
13386 # use $as_me), people would be surprised to read:
13387 # /* config.h. Generated by config.status. */
13388 configure_input='Generated from '`
13389 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13390 `' by configure.'
13391 if test x"$ac_file" != x-; then
13392 configure_input="$ac_file. $configure_input"
13393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13394 printf "%s\n" "$as_me: creating $ac_file" >&6;}
13395 fi
13396 # Neutralize special characters interpreted by sed in replacement strings.
13397 case $configure_input in #(
13398 *\&* | *\|* | *\\* )
13399 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13400 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13401 *) ac_sed_conf_input=$configure_input;;
13402 esac
13403
13404 case $ac_tag in
13405 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13406 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13407 esac
13408 ;;
13409 esac
13410
13411 ac_dir=`$as_dirname -- "$ac_file" ||
13412 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13413 X"$ac_file" : 'X\(//\)[^/]' \| \
13414 X"$ac_file" : 'X\(//\)$' \| \
13415 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13416 printf "%s\n" X"$ac_file" |
13417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13418 s//\1/
13419 q
13420 }
13421 /^X\(\/\/\)[^/].*/{
13422 s//\1/
13423 q
13424 }
13425 /^X\(\/\/\)$/{
13426 s//\1/
13427 q
13428 }
13429 /^X\(\/\).*/{
13430 s//\1/
13431 q
13432 }
13433 s/.*/./; q'`
13434 as_dir="$ac_dir"; as_fn_mkdir_p
13435 ac_builddir=.
13436
13437 case "$ac_dir" in
13438 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13439 *)
13440 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13441 # A ".." for each directory in $ac_dir_suffix.
13442 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13443 case $ac_top_builddir_sub in
13444 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13445 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13446 esac ;;
13447 esac
13448 ac_abs_top_builddir=$ac_pwd
13449 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13450 # for backward compatibility:
13451 ac_top_builddir=$ac_top_build_prefix
13452
13453 case $srcdir in
13454 .) # We are building in place.
13455 ac_srcdir=.
13456 ac_top_srcdir=$ac_top_builddir_sub
13457 ac_abs_top_srcdir=$ac_pwd ;;
13458 [\\/]* | ?:[\\/]* ) # Absolute name.
13459 ac_srcdir=$srcdir$ac_dir_suffix;
13460 ac_top_srcdir=$srcdir
13461 ac_abs_top_srcdir=$srcdir ;;
13462 *) # Relative name.
13463 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13464 ac_top_srcdir=$ac_top_build_prefix$srcdir
13465 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13466 esac
13467 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13468
13469
13470 case $ac_mode in
13471 :F)
13472 #
13473 # CONFIG_FILE
13474 #
13475
13476 case $INSTALL in
13477 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13478 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13479 esac
13480 ac_MKDIR_P=$MKDIR_P
13481 case $MKDIR_P in
13482 [\\/$]* | ?:[\\/]* ) ;;
13483 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13484 esac
13485 _ACEOF
13486
13487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13488 # If the template does not know about datarootdir, expand it.
13489 # FIXME: This hack should be removed a few years after 2.60.
13490 ac_datarootdir_hack=; ac_datarootdir_seen=
13491 ac_sed_dataroot='
13492 /datarootdir/ {
13493 p
13494 q
13495 }
13496 /@datadir@/p
13497 /@docdir@/p
13498 /@infodir@/p
13499 /@localedir@/p
13500 /@mandir@/p'
13501 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13502 *datarootdir*) ac_datarootdir_seen=yes;;
13503 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13505 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13506 _ACEOF
13507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13508 ac_datarootdir_hack='
13509 s&@datadir@&$datadir&g
13510 s&@docdir@&$docdir&g
13511 s&@infodir@&$infodir&g
13512 s&@localedir@&$localedir&g
13513 s&@mandir@&$mandir&g
13514 s&\\\${datarootdir}&$datarootdir&g' ;;
13515 esac
13516 _ACEOF
13517
13518 # Neutralize VPATH when `$srcdir' = `.'.
13519 # Shell code in configure.ac might set extrasub.
13520 # FIXME: do we really want to maintain this feature?
13521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13522 ac_sed_extra="$ac_vpsub
13523 $extrasub
13524 _ACEOF
13525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13526 :t
13527 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13528 s|@configure_input@|$ac_sed_conf_input|;t t
13529 s&@top_builddir@&$ac_top_builddir_sub&;t t
13530 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13531 s&@srcdir@&$ac_srcdir&;t t
13532 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13533 s&@top_srcdir@&$ac_top_srcdir&;t t
13534 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13535 s&@builddir@&$ac_builddir&;t t
13536 s&@abs_builddir@&$ac_abs_builddir&;t t
13537 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13538 s&@INSTALL@&$ac_INSTALL&;t t
13539 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13540 $ac_datarootdir_hack
13541 "
13542 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13543 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13544
13545 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13546 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13547 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13548 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13550 which seems to be undefined. Please make sure it is defined" >&5
13551 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13552 which seems to be undefined. Please make sure it is defined" >&2;}
13553
13554 rm -f "$ac_tmp/stdin"
13555 case $ac_file in
13556 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13557 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13558 esac \
13559 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13560 ;;
13561
13562
13563 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13564 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13565 ;;
13566 esac
13567
13568
13569 case $ac_file$ac_mode in
13570 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13571 # Older Autoconf quotes --file arguments for eval, but not when files
13572 # are listed without --file. Let's play safe and only enable the eval
13573 # if we detect the quoting.
13574 # TODO: see whether this extra hack can be removed once we start
13575 # requiring Autoconf 2.70 or later.
13576 case $CONFIG_FILES in #(
13577 *\'*) :
13578 eval set x "$CONFIG_FILES" ;; #(
13579 *) :
13580 set x $CONFIG_FILES ;; #(
13581 *) :
13582 ;;
13583 esac
13584 shift
13585 # Used to flag and report bootstrapping failures.
13586 am_rc=0
13587 for am_mf
13588 do
13589 # Strip MF so we end up with the name of the file.
13590 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13591 # Check whether this is an Automake generated Makefile which includes
13592 # dependency-tracking related rules and includes.
13593 # Grep'ing the whole file directly is not great: AIX grep has a line
13594 # limit of 2048, but all sed's we know have understand at least 4000.
13595 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13596 || continue
13597 am_dirpart=`$as_dirname -- "$am_mf" ||
13598 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13599 X"$am_mf" : 'X\(//\)[^/]' \| \
13600 X"$am_mf" : 'X\(//\)$' \| \
13601 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13602 printf "%s\n" X"$am_mf" |
13603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13604 s//\1/
13605 q
13606 }
13607 /^X\(\/\/\)[^/].*/{
13608 s//\1/
13609 q
13610 }
13611 /^X\(\/\/\)$/{
13612 s//\1/
13613 q
13614 }
13615 /^X\(\/\).*/{
13616 s//\1/
13617 q
13618 }
13619 s/.*/./; q'`
13620 am_filepart=`$as_basename -- "$am_mf" ||
13621 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13622 X"$am_mf" : 'X\(//\)$' \| \
13623 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13624 printf "%s\n" X/"$am_mf" |
13625 sed '/^.*\/\([^/][^/]*\)\/*$/{
13626 s//\1/
13627 q
13628 }
13629 /^X\/\(\/\/\)$/{
13630 s//\1/
13631 q
13632 }
13633 /^X\/\(\/\).*/{
13634 s//\1/
13635 q
13636 }
13637 s/.*/./; q'`
13638 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13639 && sed -e '/# am--include-marker/d' "$am_filepart" \
13640 | $MAKE -f - am--depfiles" >&5
13641 (cd "$am_dirpart" \
13642 && sed -e '/# am--include-marker/d' "$am_filepart" \
13643 | $MAKE -f - am--depfiles) >&5 2>&5
13644 ac_status=$?
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } || am_rc=$?
13647 done
13648 if test $am_rc -ne 0; then
13649 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13650 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13651 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13652 for automatic dependency tracking. If GNU make was not used, consider
13653 re-running the configure script with MAKE=\"gmake\" (or whatever is
13654 necessary). You can also try re-running configure with the
13655 '--disable-dependency-tracking' option to at least be able to build
13656 the package (albeit without support for automatic dependency tracking).
13657 See \`config.log' for more details" "$LINENO" 5; }
13658 fi
13659 { am_dirpart=; unset am_dirpart;}
13660 { am_filepart=; unset am_filepart;}
13661 { am_mf=; unset am_mf;}
13662 { am_rc=; unset am_rc;}
13663 rm -f conftest-deps.mk
13664 }
13665 ;;
13666
13667 esac
13668 done # for ac_tag
13669
13670
13671 as_fn_exit 0
13672 _ACEOF
13673 ac_clean_files=$ac_clean_files_save
13674
13675 test $ac_write_fail = 0 ||
13676 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13677
13678
13679 # configure is writing to config.log, and then calls config.status.
13680 # config.status does its own redirection, appending to config.log.
13681 # Unfortunately, on DOS this fails, as config.log is still kept open
13682 # by configure, so config.status won't be able to write to it; its
13683 # output is simply discarded. So we exec the FD to /dev/null,
13684 # effectively closing config.log, so it can be properly (re)opened and
13685 # appended to by config.status. When coming back to configure, we
13686 # need to make the FD available again.
13687 if test "$no_create" != yes; then
13688 ac_cs_success=:
13689 ac_config_status_args=
13690 test "$silent" = yes &&
13691 ac_config_status_args="$ac_config_status_args --quiet"
13692 exec 5>/dev/null
13693 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13694 exec 5>>config.log
13695 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13696 # would make configure fail if this is the last instruction.
13697 $ac_cs_success || as_fn_exit 1
13698 fi
13699 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13701 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13702 fi
13703
13704
13705