configure revision 1.1.1.14 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xkbcomp 1.4.6.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/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/app/xkbcomp/-/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
592 test -n "$DJDIR" || exec 7<&0 </dev/null
593 exec 6>&1
594
595 # Name of the host.
596 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597 # so uname gets run too.
598 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600 #
601 # Initializations.
602 #
603 ac_default_prefix=/usr/local
604 ac_clean_files=
605 ac_config_libobj_dir=.
606 LIBOBJS=
607 cross_compiling=no
608 subdirs=
609 MFLAGS=
610 MAKEFLAGS=
611
612 # Identity of this package.
613 PACKAGE_NAME='xkbcomp'
614 PACKAGE_TARNAME='xkbcomp'
615 PACKAGE_VERSION='1.4.6'
616 PACKAGE_STRING='xkbcomp 1.4.6'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/issues'
618 PACKAGE_URL=''
619
620 ac_unique_file="Makefile.am"
621 # Factoring default headers for most tests.
622 ac_includes_default="\
623 #include <stddef.h>
624 #ifdef HAVE_STDIO_H
625 # include <stdio.h>
626 #endif
627 #ifdef HAVE_STDLIB_H
628 # include <stdlib.h>
629 #endif
630 #ifdef HAVE_STRING_H
631 # include <string.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_STRINGS_H
640 # include <strings.h>
641 #endif
642 #ifdef HAVE_SYS_TYPES_H
643 # include <sys/types.h>
644 #endif
645 #ifdef HAVE_SYS_STAT_H
646 # include <sys/stat.h>
647 #endif
648 #ifdef HAVE_UNISTD_H
649 # include <unistd.h>
650 #endif"
651
652 ac_header_c_list=
653 ac_subst_vars='am__EXEEXT_FALSE
654 am__EXEEXT_TRUE
655 LTLIBOBJS
656 LIBOBJS
657 XKBCONFIGROOT
658 XKBCOMP_LIBS
659 XKBCOMP_CFLAGS
660 YACC_INST
661 YFLAGS
662 YACC
663 MAN_SUBSTS
664 XORG_MAN_PAGE
665 ADMIN_MAN_DIR
666 DRIVER_MAN_DIR
667 MISC_MAN_DIR
668 FILE_MAN_DIR
669 LIB_MAN_DIR
670 APP_MAN_DIR
671 ADMIN_MAN_SUFFIX
672 DRIVER_MAN_SUFFIX
673 MISC_MAN_SUFFIX
674 FILE_MAN_SUFFIX
675 LIB_MAN_SUFFIX
676 APP_MAN_SUFFIX
677 SED
678 host_os
679 host_vendor
680 host_cpu
681 host
682 build_os
683 build_vendor
684 build_cpu
685 build
686 INSTALL_CMD
687 PKG_CONFIG_LIBDIR
688 PKG_CONFIG_PATH
689 PKG_CONFIG
690 CHANGELOG_CMD
691 STRICT_CFLAGS
692 CWARNFLAGS
693 BASE_CFLAGS
694 am__fastdepCC_FALSE
695 am__fastdepCC_TRUE
696 CCDEPMODE
697 am__nodep
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__include
702 DEPDIR
703 OBJEXT
704 EXEEXT
705 ac_ct_CC
706 CPPFLAGS
707 LDFLAGS
708 CFLAGS
709 CC
710 AM_BACKSLASH
711 AM_DEFAULT_VERBOSITY
712 AM_DEFAULT_V
713 AM_V
714 CSCOPE
715 ETAGS
716 CTAGS
717 am__untar
718 am__tar
719 AMTAR
720 am__leading_dot
721 SET_MAKE
722 AWK
723 mkdir_p
724 MKDIR_P
725 INSTALL_STRIP_PROGRAM
726 STRIP
727 install_sh
728 MAKEINFO
729 AUTOHEADER
730 AUTOMAKE
731 AUTOCONF
732 ACLOCAL
733 VERSION
734 PACKAGE
735 CYGPATH_W
736 am__isrc
737 INSTALL_DATA
738 INSTALL_SCRIPT
739 INSTALL_PROGRAM
740 target_alias
741 host_alias
742 build_alias
743 LIBS
744 ECHO_T
745 ECHO_N
746 ECHO_C
747 DEFS
748 mandir
749 localedir
750 libdir
751 psdir
752 pdfdir
753 dvidir
754 htmldir
755 infodir
756 docdir
757 oldincludedir
758 includedir
759 runstatedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL
779 am__quote'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 enable_silent_rules
784 enable_dependency_tracking
785 enable_selective_werror
786 enable_strict_compilation
787 enable_largefile
788 with_xkb_config_root
789 '
790 ac_precious_vars='build_alias
791 host_alias
792 target_alias
793 CC
794 CFLAGS
795 LDFLAGS
796 LIBS
797 CPPFLAGS
798 PKG_CONFIG
799 PKG_CONFIG_PATH
800 PKG_CONFIG_LIBDIR
801 YACC
802 YFLAGS
803 XKBCOMP_CFLAGS
804 XKBCOMP_LIBS'
805
806
807 # Initialize some variables set by options.
808 ac_init_help=
809 ac_init_version=false
810 ac_unrecognized_opts=
811 ac_unrecognized_sep=
812 # The variables have the same names as the options, with
813 # dashes changed to underlines.
814 cache_file=/dev/null
815 exec_prefix=NONE
816 no_create=
817 no_recursion=
818 prefix=NONE
819 program_prefix=NONE
820 program_suffix=NONE
821 program_transform_name=s,x,x,
822 silent=
823 site=
824 srcdir=
825 verbose=
826 x_includes=NONE
827 x_libraries=NONE
828
829 # Installation directory options.
830 # These are left unexpanded so users can "make install exec_prefix=/foo"
831 # and all the variables that are supposed to be based on exec_prefix
832 # by default will actually change.
833 # Use braces instead of parens because sh, perl, etc. also accept them.
834 # (The list follows the same order as the GNU Coding Standards.)
835 bindir='${exec_prefix}/bin'
836 sbindir='${exec_prefix}/sbin'
837 libexecdir='${exec_prefix}/libexec'
838 datarootdir='${prefix}/share'
839 datadir='${datarootdir}'
840 sysconfdir='${prefix}/etc'
841 sharedstatedir='${prefix}/com'
842 localstatedir='${prefix}/var'
843 runstatedir='${localstatedir}/run'
844 includedir='${prefix}/include'
845 oldincludedir='/usr/include'
846 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
847 infodir='${datarootdir}/info'
848 htmldir='${docdir}'
849 dvidir='${docdir}'
850 pdfdir='${docdir}'
851 psdir='${docdir}'
852 libdir='${exec_prefix}/lib'
853 localedir='${datarootdir}/locale'
854 mandir='${datarootdir}/man'
855
856 ac_prev=
857 ac_dashdash=
858 for ac_option
859 do
860 # If the previous option needs an argument, assign it.
861 if test -n "$ac_prev"; then
862 eval $ac_prev=\$ac_option
863 ac_prev=
864 continue
865 fi
866
867 case $ac_option in
868 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
869 *=) ac_optarg= ;;
870 *) ac_optarg=yes ;;
871 esac
872
873 case $ac_dashdash$ac_option in
874 --)
875 ac_dashdash=yes ;;
876
877 -bindir | --bindir | --bindi | --bind | --bin | --bi)
878 ac_prev=bindir ;;
879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880 bindir=$ac_optarg ;;
881
882 -build | --build | --buil | --bui | --bu)
883 ac_prev=build_alias ;;
884 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885 build_alias=$ac_optarg ;;
886
887 -cache-file | --cache-file | --cache-fil | --cache-fi \
888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889 ac_prev=cache_file ;;
890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892 cache_file=$ac_optarg ;;
893
894 --config-cache | -C)
895 cache_file=config.cache ;;
896
897 -datadir | --datadir | --datadi | --datad)
898 ac_prev=datadir ;;
899 -datadir=* | --datadir=* | --datadi=* | --datad=*)
900 datadir=$ac_optarg ;;
901
902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903 | --dataroo | --dataro | --datar)
904 ac_prev=datarootdir ;;
905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907 datarootdir=$ac_optarg ;;
908
909 -disable-* | --disable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: \`$ac_useropt'"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=no ;;
924
925 -docdir | --docdir | --docdi | --doc | --do)
926 ac_prev=docdir ;;
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 docdir=$ac_optarg ;;
929
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 ac_prev=dvidir ;;
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 dvidir=$ac_optarg ;;
934
935 -enable-* | --enable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: \`$ac_useropt'"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944 "enable_$ac_useropt"
945 "*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=\$ac_optarg ;;
950
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
959
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
963
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
970
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
975
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
981
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
988
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
993
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
998
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1005
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1010
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1017
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1022
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1026
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1030
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1034
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1043
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1048
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1055
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1062
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1079
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1084
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1089
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1093
1094 -runstatedir | --runstatedir | --runstatedi | --runstated \
1095 | --runstate | --runstat | --runsta | --runst | --runs \
1096 | --run | --ru | --r)
1097 ac_prev=runstatedir ;;
1098 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1099 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1100 | --run=* | --ru=* | --r=*)
1101 runstatedir=$ac_optarg ;;
1102
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1108
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1119
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1124
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1129
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1136
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1141
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1144
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1147
1148 -with-* | --with-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: \`$ac_useropt'"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1156 *"
1157 "with_$ac_useropt"
1158 "*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval with_$ac_useropt=\$ac_optarg ;;
1163
1164 -without-* | --without-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: \`$ac_useropt'"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=no ;;
1179
1180 --x)
1181 # Obsolete; use --with-x.
1182 with_x=yes ;;
1183
1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185 | --x-incl | --x-inc | --x-in | --x-i)
1186 ac_prev=x_includes ;;
1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189 x_includes=$ac_optarg ;;
1190
1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193 ac_prev=x_libraries ;;
1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196 x_libraries=$ac_optarg ;;
1197
1198 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1199 Try \`$0 --help' for more information"
1200 ;;
1201
1202 *=*)
1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
1205 case $ac_envvar in #(
1206 '' | [0-9]* | *[!_$as_cr_alnum]* )
1207 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1208 esac
1209 eval $ac_envvar=\$ac_optarg
1210 export $ac_envvar ;;
1211
1212 *)
1213 # FIXME: should be removed in autoconf 3.0.
1214 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1218 ;;
1219
1220 esac
1221 done
1222
1223 if test -n "$ac_prev"; then
1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225 as_fn_error $? "missing argument to $ac_option"
1226 fi
1227
1228 if test -n "$ac_unrecognized_opts"; then
1229 case $enable_option_checking in
1230 no) ;;
1231 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1232 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233 esac
1234 fi
1235
1236 # Check all directory arguments for consistency.
1237 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238 datadir sysconfdir sharedstatedir localstatedir includedir \
1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240 libdir localedir mandir runstatedir
1241 do
1242 eval ac_val=\$$ac_var
1243 # Remove trailing slashes.
1244 case $ac_val in
1245 */ )
1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247 eval $ac_var=\$ac_val;;
1248 esac
1249 # Be sure to have absolute directory names.
1250 case $ac_val in
1251 [\\/$]* | ?:[\\/]* ) continue;;
1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253 esac
1254 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1255 done
1256
1257 # There might be people who depend on the old broken behavior: `$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1260 build=$build_alias
1261 host=$host_alias
1262 target=$target_alias
1263
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x; then
1266 if test "x$build_alias" = x; then
1267 cross_compiling=maybe
1268 elif test "x$build_alias" != "x$host_alias"; then
1269 cross_compiling=yes
1270 fi
1271 fi
1272
1273 ac_tool_prefix=
1274 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
1276 test "$silent" = yes && exec 6>/dev/null
1277
1278
1279 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280 ac_ls_di=`ls -di .` &&
1281 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282 as_fn_error $? "working directory cannot be determined"
1283 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 as_fn_error $? "pwd does not report name of working directory"
1285
1286
1287 # Find the source files, if location was not specified.
1288 if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$as_myself" ||
1292 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296 printf "%s\n" X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)[^/].*/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\).*/{
1310 s//\1/
1311 q
1312 }
1313 s/.*/./; q'`
1314 srcdir=$ac_confdir
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 srcdir=..
1317 fi
1318 else
1319 ac_srcdir_defaulted=no
1320 fi
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1324 fi
1325 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326 ac_abs_confdir=`(
1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1328 pwd)`
1329 # When building in place, set srcdir=.
1330 if test "$ac_abs_confdir" = "$ac_pwd"; then
1331 srcdir=.
1332 fi
1333 # Remove unnecessary trailing slashes from srcdir.
1334 # Double slashes in file names in object file debugging info
1335 # mess up M-x gdb in Emacs.
1336 case $srcdir in
1337 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338 esac
1339 for ac_var in $ac_precious_vars; do
1340 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_env_${ac_var}_value=\$${ac_var}
1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344 done
1345
1346 #
1347 # Report the --help message.
1348 #
1349 if test "$ac_init_help" = "long"; then
1350 # Omit some internal or obsolete options to make the list less imposing.
1351 # This message is too long to be a string in the A/UX 3.1 sh.
1352 cat <<_ACEOF
1353 \`configure' configures xkbcomp 1.4.6 to adapt to many kinds of systems.
1354
1355 Usage: $0 [OPTION]... [VAR=VALUE]...
1356
1357 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358 VAR=VALUE. See below for descriptions of some of the useful variables.
1359
1360 Defaults for the options are specified in brackets.
1361
1362 Configuration:
1363 -h, --help display this help and exit
1364 --help=short display options specific to this package
1365 --help=recursive display the short help of all the included packages
1366 -V, --version display version information and exit
1367 -q, --quiet, --silent do not print \`checking ...' messages
1368 --cache-file=FILE cache test results in FILE [disabled]
1369 -C, --config-cache alias for \`--cache-file=config.cache'
1370 -n, --no-create do not create output files
1371 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372
1373 Installation directories:
1374 --prefix=PREFIX install architecture-independent files in PREFIX
1375 [$ac_default_prefix]
1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1377 [PREFIX]
1378
1379 By default, \`make install' will install all the files in
1380 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1381 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382 for instance \`--prefix=\$HOME'.
1383
1384 For better control, use the options below.
1385
1386 Fine tuning of the installation directories:
1387 --bindir=DIR user executables [EPREFIX/bin]
1388 --sbindir=DIR system admin executables [EPREFIX/sbin]
1389 --libexecdir=DIR program executables [EPREFIX/libexec]
1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1393 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1394 --libdir=DIR object code libraries [EPREFIX/lib]
1395 --includedir=DIR C header files [PREFIX/include]
1396 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1399 --infodir=DIR info documentation [DATAROOTDIR/info]
1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1401 --mandir=DIR man documentation [DATAROOTDIR/man]
1402 --docdir=DIR documentation root [DATAROOTDIR/doc/xkbcomp]
1403 --htmldir=DIR html documentation [DOCDIR]
1404 --dvidir=DIR dvi documentation [DOCDIR]
1405 --pdfdir=DIR pdf documentation [DOCDIR]
1406 --psdir=DIR ps documentation [DOCDIR]
1407 _ACEOF
1408
1409 cat <<\_ACEOF
1410
1411 Program names:
1412 --program-prefix=PREFIX prepend PREFIX to installed program names
1413 --program-suffix=SUFFIX append SUFFIX to installed program names
1414 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1415
1416 System types:
1417 --build=BUILD configure for building on BUILD [guessed]
1418 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1419 _ACEOF
1420 fi
1421
1422 if test -n "$ac_init_help"; then
1423 case $ac_init_help in
1424 short | recursive ) echo "Configuration of xkbcomp 1.4.6:";;
1425 esac
1426 cat <<\_ACEOF
1427
1428 Optional Features:
1429 --disable-option-checking ignore unrecognized --enable/--with options
1430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1432 --enable-silent-rules less verbose build output (undo: "make V=1")
1433 --disable-silent-rules verbose build output (undo: "make V=0")
1434 --enable-dependency-tracking
1435 do not reject slow dependency extractors
1436 --disable-dependency-tracking
1437 speeds up one-time build
1438 --disable-selective-werror
1439 Turn off selective compiler errors. (default:
1440 enabled)
1441 --enable-strict-compilation
1442 Enable all warnings from compiler and make them
1443 errors (default: disabled)
1444 --disable-largefile omit support for large files
1445
1446 Optional Packages:
1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1449 --with-xkb-config-root=<paths>
1450 Set default XKB config root (default:
1451 ${datadir}/X11/xkb)
1452
1453 Some influential environment variables:
1454 CC C compiler command
1455 CFLAGS C compiler flags
1456 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1457 nonstandard directory <lib dir>
1458 LIBS libraries to pass to the linker, e.g. -l<library>
1459 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1460 you have headers in a nonstandard directory <include dir>
1461 PKG_CONFIG path to pkg-config utility
1462 PKG_CONFIG_PATH
1463 directories to add to pkg-config's search path
1464 PKG_CONFIG_LIBDIR
1465 path overriding pkg-config's built-in search path
1466 YACC The `Yet Another Compiler Compiler' implementation to use.
1467 Defaults to the first program found out of: `bison -y', `byacc',
1468 `yacc'.
1469 YFLAGS The list of arguments that will be passed by default to $YACC.
1470 This script will default YFLAGS to the empty string to avoid a
1471 default value of `-d' given by some make applications.
1472 XKBCOMP_CFLAGS
1473 C compiler flags for XKBCOMP, overriding pkg-config
1474 XKBCOMP_LIBS
1475 linker flags for XKBCOMP, overriding pkg-config
1476
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1479
1480 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/issues>.
1481 _ACEOF
1482 ac_status=$?
1483 fi
1484
1485 if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" ||
1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490 continue
1491 ac_builddir=.
1492
1493 case "$ac_dir" in
1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *)
1496 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1497 # A ".." for each directory in $ac_dir_suffix.
1498 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 esac ;;
1503 esac
1504 ac_abs_top_builddir=$ac_pwd
1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506 # for backward compatibility:
1507 ac_top_builddir=$ac_top_build_prefix
1508
1509 case $srcdir in
1510 .) # We are building in place.
1511 ac_srcdir=.
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
1515 ac_srcdir=$srcdir$ac_dir_suffix;
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1518 *) # Relative name.
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522 esac
1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for configure.gnu first; this name is used for a wrapper for
1527 # Metaconfig's "Configure" on case-insensitive file systems.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure" --help=recursive
1534 else
1535 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536 fi || ac_status=$?
1537 cd "$ac_pwd" || { ac_status=$?; break; }
1538 done
1539 fi
1540
1541 test -n "$ac_init_help" && exit $ac_status
1542 if $ac_init_version; then
1543 cat <<\_ACEOF
1544 xkbcomp configure 1.4.6
1545 generated by GNU Autoconf 2.71
1546
1547 Copyright (C) 2021 Free Software Foundation, Inc.
1548 This configure script is free software; the Free Software Foundation
1549 gives unlimited permission to copy, distribute and modify it.
1550 _ACEOF
1551 exit
1552 fi
1553
1554 ## ------------------------ ##
1555 ## Autoconf initialization. ##
1556 ## ------------------------ ##
1557
1558 # ac_fn_c_try_compile LINENO
1559 # --------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_c_try_compile ()
1562 {
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext conftest.beam
1565 if { { ac_try="$ac_compile"
1566 case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 printf "%s\n" "$ac_try_echo"; } >&5
1572 (eval "$ac_compile") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1578 fi
1579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest.$ac_objext
1584 then :
1585 ac_retval=0
1586 else $as_nop
1587 printf "%s\n" "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1589
1590 ac_retval=1
1591 fi
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status $ac_retval
1594
1595 } # ac_fn_c_try_compile
1596
1597 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1598 # ------------------------------------------------------------------
1599 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1600 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1601 ac_fn_check_decl ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 as_decl_name=`echo $2|sed 's/ *(.*//'`
1605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1606 printf %s "checking whether $as_decl_name is declared... " >&6; }
1607 if eval test \${$3+y}
1608 then :
1609 printf %s "(cached) " >&6
1610 else $as_nop
1611 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1612 eval ac_save_FLAGS=\$$6
1613 as_fn_append $6 " $5"
1614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615 /* end confdefs.h. */
1616 $4
1617 int
1618 main (void)
1619 {
1620 #ifndef $as_decl_name
1621 #ifdef __cplusplus
1622 (void) $as_decl_use;
1623 #else
1624 (void) $as_decl_name;
1625 #endif
1626 #endif
1627
1628 ;
1629 return 0;
1630 }
1631 _ACEOF
1632 if ac_fn_c_try_compile "$LINENO"
1633 then :
1634 eval "$3=yes"
1635 else $as_nop
1636 eval "$3=no"
1637 fi
1638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1639 eval $6=\$ac_save_FLAGS
1640
1641 fi
1642 eval ac_res=\$$3
1643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644 printf "%s\n" "$ac_res" >&6; }
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646
1647 } # ac_fn_check_decl
1648
1649 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1650 # -------------------------------------------------------
1651 # Tests whether HEADER exists and can be compiled using the include files in
1652 # INCLUDES, setting the cache variable VAR accordingly.
1653 ac_fn_c_check_header_compile ()
1654 {
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1657 printf %s "checking for $2... " >&6; }
1658 if eval test \${$3+y}
1659 then :
1660 printf %s "(cached) " >&6
1661 else $as_nop
1662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1663 /* end confdefs.h. */
1664 $4
1665 #include <$2>
1666 _ACEOF
1667 if ac_fn_c_try_compile "$LINENO"
1668 then :
1669 eval "$3=yes"
1670 else $as_nop
1671 eval "$3=no"
1672 fi
1673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1674 fi
1675 eval ac_res=\$$3
1676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 printf "%s\n" "$ac_res" >&6; }
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679
1680 } # ac_fn_c_check_header_compile
1681
1682 # ac_fn_c_try_link LINENO
1683 # -----------------------
1684 # Try to link conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_link ()
1686 {
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1689 if { { ac_try="$ac_link"
1690 case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 printf "%s\n" "$ac_try_echo"; } >&5
1696 (eval "$ac_link") 2>conftest.err
1697 ac_status=$?
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1702 fi
1703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && {
1705 test -z "$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 } && test -s conftest$ac_exeext && {
1708 test "$cross_compiling" = yes ||
1709 test -x conftest$ac_exeext
1710 }
1711 then :
1712 ac_retval=0
1713 else $as_nop
1714 printf "%s\n" "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=1
1718 fi
1719 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721 # interfere with the next link command; also delete a directory that is
1722 # left behind by Apple's compiler. We do this before executing the actions.
1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1726
1727 } # ac_fn_c_try_link
1728
1729 # ac_fn_c_check_func LINENO FUNC VAR
1730 # ----------------------------------
1731 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1732 ac_fn_c_check_func ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 printf %s "checking for $2... " >&6; }
1737 if eval test \${$3+y}
1738 then :
1739 printf %s "(cached) " >&6
1740 else $as_nop
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1743 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1745 #define $2 innocuous_$2
1746
1747 /* System header to define __stub macros and hopefully few prototypes,
1748 which can conflict with char $2 (); below. */
1749
1750 #include <limits.h>
1751 #undef $2
1752
1753 /* Override any GCC internal prototype to avoid an error.
1754 Use char because int might match the return type of a GCC
1755 builtin and then its argument prototype would still apply. */
1756 #ifdef __cplusplus
1757 extern "C"
1758 #endif
1759 char $2 ();
1760 /* The GNU C library defines this for functions which it implements
1761 to always fail with ENOSYS. Some functions are actually named
1762 something starting with __ and the normal name is an alias. */
1763 #if defined __stub_$2 || defined __stub___$2
1764 choke me
1765 #endif
1766
1767 int
1768 main (void)
1769 {
1770 return $2 ();
1771 ;
1772 return 0;
1773 }
1774 _ACEOF
1775 if ac_fn_c_try_link "$LINENO"
1776 then :
1777 eval "$3=yes"
1778 else $as_nop
1779 eval "$3=no"
1780 fi
1781 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1782 conftest$ac_exeext conftest.$ac_ext
1783 fi
1784 eval ac_res=\$$3
1785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 printf "%s\n" "$ac_res" >&6; }
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789 } # ac_fn_c_check_func
1790 ac_configure_args_raw=
1791 for ac_arg
1792 do
1793 case $ac_arg in
1794 *\'*)
1795 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1796 esac
1797 as_fn_append ac_configure_args_raw " '$ac_arg'"
1798 done
1799
1800 case $ac_configure_args_raw in
1801 *$as_nl*)
1802 ac_safe_unquote= ;;
1803 *)
1804 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1805 ac_unsafe_a="$ac_unsafe_z#~"
1806 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1807 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1808 esac
1809
1810 cat >config.log <<_ACEOF
1811 This file contains any messages produced by compilers while
1812 running configure, to aid debugging if configure makes a mistake.
1813
1814 It was created by xkbcomp $as_me 1.4.6, which was
1815 generated by GNU Autoconf 2.71. Invocation command line was
1816
1817 $ $0$ac_configure_args_raw
1818
1819 _ACEOF
1820 exec 5>>config.log
1821 {
1822 cat <<_ASUNAME
1823 ## --------- ##
1824 ## Platform. ##
1825 ## --------- ##
1826
1827 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1828 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1829 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1830 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1831 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1832
1833 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1834 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1835
1836 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1837 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1838 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1839 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1840 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1841 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1842 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1843
1844 _ASUNAME
1845
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 for as_dir in $PATH
1848 do
1849 IFS=$as_save_IFS
1850 case $as_dir in #(((
1851 '') as_dir=./ ;;
1852 */) ;;
1853 *) as_dir=$as_dir/ ;;
1854 esac
1855 printf "%s\n" "PATH: $as_dir"
1856 done
1857 IFS=$as_save_IFS
1858
1859 } >&5
1860
1861 cat >&5 <<_ACEOF
1862
1863
1864 ## ----------- ##
1865 ## Core tests. ##
1866 ## ----------- ##
1867
1868 _ACEOF
1869
1870
1871 # Keep a trace of the command line.
1872 # Strip out --no-create and --no-recursion so they do not pile up.
1873 # Strip out --silent because we don't want to record it for future runs.
1874 # Also quote any args containing shell meta-characters.
1875 # Make two passes to allow for proper duplicate-argument suppression.
1876 ac_configure_args=
1877 ac_configure_args0=
1878 ac_configure_args1=
1879 ac_must_keep_next=false
1880 for ac_pass in 1 2
1881 do
1882 for ac_arg
1883 do
1884 case $ac_arg in
1885 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1886 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1887 | -silent | --silent | --silen | --sile | --sil)
1888 continue ;;
1889 *\'*)
1890 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1891 esac
1892 case $ac_pass in
1893 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1894 2)
1895 as_fn_append ac_configure_args1 " '$ac_arg'"
1896 if test $ac_must_keep_next = true; then
1897 ac_must_keep_next=false # Got value, back to normal.
1898 else
1899 case $ac_arg in
1900 *=* | --config-cache | -C | -disable-* | --disable-* \
1901 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1902 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1903 | -with-* | --with-* | -without-* | --without-* | --x)
1904 case "$ac_configure_args0 " in
1905 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1906 esac
1907 ;;
1908 -* ) ac_must_keep_next=true ;;
1909 esac
1910 fi
1911 as_fn_append ac_configure_args " '$ac_arg'"
1912 ;;
1913 esac
1914 done
1915 done
1916 { ac_configure_args0=; unset ac_configure_args0;}
1917 { ac_configure_args1=; unset ac_configure_args1;}
1918
1919 # When interrupted or exit'd, cleanup temporary files, and complete
1920 # config.log. We remove comments because anyway the quotes in there
1921 # would cause problems or look ugly.
1922 # WARNING: Use '\'' to represent an apostrophe within the trap.
1923 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1924 trap 'exit_status=$?
1925 # Sanitize IFS.
1926 IFS=" "" $as_nl"
1927 # Save into config.log some information that might help in debugging.
1928 {
1929 echo
1930
1931 printf "%s\n" "## ---------------- ##
1932 ## Cache variables. ##
1933 ## ---------------- ##"
1934 echo
1935 # The following way of writing the cache mishandles newlines in values,
1936 (
1937 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1938 eval ac_val=\$$ac_var
1939 case $ac_val in #(
1940 *${as_nl}*)
1941 case $ac_var in #(
1942 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1943 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1944 esac
1945 case $ac_var in #(
1946 _ | IFS | as_nl) ;; #(
1947 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1948 *) { eval $ac_var=; unset $ac_var;} ;;
1949 esac ;;
1950 esac
1951 done
1952 (set) 2>&1 |
1953 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1954 *${as_nl}ac_space=\ *)
1955 sed -n \
1956 "s/'\''/'\''\\\\'\'''\''/g;
1957 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1958 ;; #(
1959 *)
1960 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1961 ;;
1962 esac |
1963 sort
1964 )
1965 echo
1966
1967 printf "%s\n" "## ----------------- ##
1968 ## Output variables. ##
1969 ## ----------------- ##"
1970 echo
1971 for ac_var in $ac_subst_vars
1972 do
1973 eval ac_val=\$$ac_var
1974 case $ac_val in
1975 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1976 esac
1977 printf "%s\n" "$ac_var='\''$ac_val'\''"
1978 done | sort
1979 echo
1980
1981 if test -n "$ac_subst_files"; then
1982 printf "%s\n" "## ------------------- ##
1983 ## File substitutions. ##
1984 ## ------------------- ##"
1985 echo
1986 for ac_var in $ac_subst_files
1987 do
1988 eval ac_val=\$$ac_var
1989 case $ac_val in
1990 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1991 esac
1992 printf "%s\n" "$ac_var='\''$ac_val'\''"
1993 done | sort
1994 echo
1995 fi
1996
1997 if test -s confdefs.h; then
1998 printf "%s\n" "## ----------- ##
1999 ## confdefs.h. ##
2000 ## ----------- ##"
2001 echo
2002 cat confdefs.h
2003 echo
2004 fi
2005 test "$ac_signal" != 0 &&
2006 printf "%s\n" "$as_me: caught signal $ac_signal"
2007 printf "%s\n" "$as_me: exit $exit_status"
2008 } >&5
2009 rm -f core *.core core.conftest.* &&
2010 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2011 exit $exit_status
2012 ' 0
2013 for ac_signal in 1 2 13 15; do
2014 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2015 done
2016 ac_signal=0
2017
2018 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2019 rm -f -r conftest* confdefs.h
2020
2021 printf "%s\n" "/* confdefs.h */" > confdefs.h
2022
2023 # Predefined preprocessor variables.
2024
2025 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2026
2027 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2028
2029 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2030
2031 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2032
2033 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2034
2035 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2036
2037
2038 # Let the site file select an alternate cache file if it wants to.
2039 # Prefer an explicitly selected file to automatically selected ones.
2040 if test -n "$CONFIG_SITE"; then
2041 ac_site_files="$CONFIG_SITE"
2042 elif test "x$prefix" != xNONE; then
2043 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2044 else
2045 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2046 fi
2047
2048 for ac_site_file in $ac_site_files
2049 do
2050 case $ac_site_file in #(
2051 */*) :
2052 ;; #(
2053 *) :
2054 ac_site_file=./$ac_site_file ;;
2055 esac
2056 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2058 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2059 sed 's/^/| /' "$ac_site_file" >&5
2060 . "$ac_site_file" \
2061 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2062 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2063 as_fn_error $? "failed to load site script $ac_site_file
2064 See \`config.log' for more details" "$LINENO" 5; }
2065 fi
2066 done
2067
2068 if test -r "$cache_file"; then
2069 # Some versions of bash will fail to source /dev/null (special files
2070 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2071 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2073 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2074 case $cache_file in
2075 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2076 *) . "./$cache_file";;
2077 esac
2078 fi
2079 else
2080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2081 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2082 >$cache_file
2083 fi
2084
2085 # Test code for whether the C compiler supports C89 (global declarations)
2086 ac_c_conftest_c89_globals='
2087 /* Does the compiler advertise C89 conformance?
2088 Do not test the value of __STDC__, because some compilers set it to 0
2089 while being otherwise adequately conformant. */
2090 #if !defined __STDC__
2091 # error "Compiler does not advertise C89 conformance"
2092 #endif
2093
2094 #include <stddef.h>
2095 #include <stdarg.h>
2096 struct stat;
2097 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2098 struct buf { int x; };
2099 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2100 static char *e (p, i)
2101 char **p;
2102 int i;
2103 {
2104 return p[i];
2105 }
2106 static char *f (char * (*g) (char **, int), char **p, ...)
2107 {
2108 char *s;
2109 va_list v;
2110 va_start (v,p);
2111 s = g (p, va_arg (v,int));
2112 va_end (v);
2113 return s;
2114 }
2115
2116 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2117 function prototypes and stuff, but not \xHH hex character constants.
2118 These do not provoke an error unfortunately, instead are silently treated
2119 as an "x". The following induces an error, until -std is added to get
2120 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2121 array size at least. It is necessary to write \x00 == 0 to get something
2122 that is true only with -std. */
2123 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2124
2125 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2126 inside strings and character constants. */
2127 #define FOO(x) '\''x'\''
2128 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2129
2130 int test (int i, double x);
2131 struct s1 {int (*f) (int a);};
2132 struct s2 {int (*f) (double a);};
2133 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2134 int, int);'
2135
2136 # Test code for whether the C compiler supports C89 (body of main).
2137 ac_c_conftest_c89_main='
2138 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2139 '
2140
2141 # Test code for whether the C compiler supports C99 (global declarations)
2142 ac_c_conftest_c99_globals='
2143 // Does the compiler advertise C99 conformance?
2144 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2145 # error "Compiler does not advertise C99 conformance"
2146 #endif
2147
2148 #include <stdbool.h>
2149 extern int puts (const char *);
2150 extern int printf (const char *, ...);
2151 extern int dprintf (int, const char *, ...);
2152 extern void *malloc (size_t);
2153
2154 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2155 // dprintf is used instead of fprintf to avoid needing to declare
2156 // FILE and stderr.
2157 #define debug(...) dprintf (2, __VA_ARGS__)
2158 #define showlist(...) puts (#__VA_ARGS__)
2159 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2160 static void
2161 test_varargs_macros (void)
2162 {
2163 int x = 1234;
2164 int y = 5678;
2165 debug ("Flag");
2166 debug ("X = %d\n", x);
2167 showlist (The first, second, and third items.);
2168 report (x>y, "x is %d but y is %d", x, y);
2169 }
2170
2171 // Check long long types.
2172 #define BIG64 18446744073709551615ull
2173 #define BIG32 4294967295ul
2174 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2175 #if !BIG_OK
2176 #error "your preprocessor is broken"
2177 #endif
2178 #if BIG_OK
2179 #else
2180 #error "your preprocessor is broken"
2181 #endif
2182 static long long int bignum = -9223372036854775807LL;
2183 static unsigned long long int ubignum = BIG64;
2184
2185 struct incomplete_array
2186 {
2187 int datasize;
2188 double data[];
2189 };
2190
2191 struct named_init {
2192 int number;
2193 const wchar_t *name;
2194 double average;
2195 };
2196
2197 typedef const char *ccp;
2198
2199 static inline int
2200 test_restrict (ccp restrict text)
2201 {
2202 // See if C++-style comments work.
2203 // Iterate through items via the restricted pointer.
2204 // Also check for declarations in for loops.
2205 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2206 continue;
2207 return 0;
2208 }
2209
2210 // Check varargs and va_copy.
2211 static bool
2212 test_varargs (const char *format, ...)
2213 {
2214 va_list args;
2215 va_start (args, format);
2216 va_list args_copy;
2217 va_copy (args_copy, args);
2218
2219 const char *str = "";
2220 int number = 0;
2221 float fnumber = 0;
2222
2223 while (*format)
2224 {
2225 switch (*format++)
2226 {
2227 case '\''s'\'': // string
2228 str = va_arg (args_copy, const char *);
2229 break;
2230 case '\''d'\'': // int
2231 number = va_arg (args_copy, int);
2232 break;
2233 case '\''f'\'': // float
2234 fnumber = va_arg (args_copy, double);
2235 break;
2236 default:
2237 break;
2238 }
2239 }
2240 va_end (args_copy);
2241 va_end (args);
2242
2243 return *str && number && fnumber;
2244 }
2245 '
2246
2247 # Test code for whether the C compiler supports C99 (body of main).
2248 ac_c_conftest_c99_main='
2249 // Check bool.
2250 _Bool success = false;
2251 success |= (argc != 0);
2252
2253 // Check restrict.
2254 if (test_restrict ("String literal") == 0)
2255 success = true;
2256 char *restrict newvar = "Another string";
2257
2258 // Check varargs.
2259 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2260 test_varargs_macros ();
2261
2262 // Check flexible array members.
2263 struct incomplete_array *ia =
2264 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2265 ia->datasize = 10;
2266 for (int i = 0; i < ia->datasize; ++i)
2267 ia->data[i] = i * 1.234;
2268
2269 // Check named initializers.
2270 struct named_init ni = {
2271 .number = 34,
2272 .name = L"Test wide string",
2273 .average = 543.34343,
2274 };
2275
2276 ni.number = 58;
2277
2278 int dynamic_array[ni.number];
2279 dynamic_array[0] = argv[0][0];
2280 dynamic_array[ni.number - 1] = 543;
2281
2282 // work around unused variable warnings
2283 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2284 || dynamic_array[ni.number - 1] != 543);
2285 '
2286
2287 # Test code for whether the C compiler supports C11 (global declarations)
2288 ac_c_conftest_c11_globals='
2289 // Does the compiler advertise C11 conformance?
2290 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2291 # error "Compiler does not advertise C11 conformance"
2292 #endif
2293
2294 // Check _Alignas.
2295 char _Alignas (double) aligned_as_double;
2296 char _Alignas (0) no_special_alignment;
2297 extern char aligned_as_int;
2298 char _Alignas (0) _Alignas (int) aligned_as_int;
2299
2300 // Check _Alignof.
2301 enum
2302 {
2303 int_alignment = _Alignof (int),
2304 int_array_alignment = _Alignof (int[100]),
2305 char_alignment = _Alignof (char)
2306 };
2307 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2308
2309 // Check _Noreturn.
2310 int _Noreturn does_not_return (void) { for (;;) continue; }
2311
2312 // Check _Static_assert.
2313 struct test_static_assert
2314 {
2315 int x;
2316 _Static_assert (sizeof (int) <= sizeof (long int),
2317 "_Static_assert does not work in struct");
2318 long int y;
2319 };
2320
2321 // Check UTF-8 literals.
2322 #define u8 syntax error!
2323 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2324
2325 // Check duplicate typedefs.
2326 typedef long *long_ptr;
2327 typedef long int *long_ptr;
2328 typedef long_ptr long_ptr;
2329
2330 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2331 struct anonymous
2332 {
2333 union {
2334 struct { int i; int j; };
2335 struct { int k; long int l; } w;
2336 };
2337 int m;
2338 } v1;
2339 '
2340
2341 # Test code for whether the C compiler supports C11 (body of main).
2342 ac_c_conftest_c11_main='
2343 _Static_assert ((offsetof (struct anonymous, i)
2344 == offsetof (struct anonymous, w.k)),
2345 "Anonymous union alignment botch");
2346 v1.i = 2;
2347 v1.w.k = 5;
2348 ok |= v1.i != 5;
2349 '
2350
2351 # Test code for whether the C compiler supports C11 (complete).
2352 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2353 ${ac_c_conftest_c99_globals}
2354 ${ac_c_conftest_c11_globals}
2355
2356 int
2357 main (int argc, char **argv)
2358 {
2359 int ok = 0;
2360 ${ac_c_conftest_c89_main}
2361 ${ac_c_conftest_c99_main}
2362 ${ac_c_conftest_c11_main}
2363 return ok;
2364 }
2365 "
2366
2367 # Test code for whether the C compiler supports C99 (complete).
2368 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2369 ${ac_c_conftest_c99_globals}
2370
2371 int
2372 main (int argc, char **argv)
2373 {
2374 int ok = 0;
2375 ${ac_c_conftest_c89_main}
2376 ${ac_c_conftest_c99_main}
2377 return ok;
2378 }
2379 "
2380
2381 # Test code for whether the C compiler supports C89 (complete).
2382 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2383
2384 int
2385 main (int argc, char **argv)
2386 {
2387 int ok = 0;
2388 ${ac_c_conftest_c89_main}
2389 return ok;
2390 }
2391 "
2392
2393 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2394 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2395 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2396 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2397 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2398 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2399 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2400 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2401 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2402
2403 # Auxiliary files required by this configure script.
2404 ac_aux_files="config.guess config.sub compile missing install-sh"
2405
2406 # Locations in which to look for auxiliary files.
2407 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2408
2409 # Search for a directory containing all of the required auxiliary files,
2410 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2411 # If we don't find one directory that contains all the files we need,
2412 # we report the set of missing files from the *first* directory in
2413 # $ac_aux_dir_candidates and give up.
2414 ac_missing_aux_files=""
2415 ac_first_candidate=:
2416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 as_found=false
2419 for as_dir in $ac_aux_dir_candidates
2420 do
2421 IFS=$as_save_IFS
2422 case $as_dir in #(((
2423 '') as_dir=./ ;;
2424 */) ;;
2425 *) as_dir=$as_dir/ ;;
2426 esac
2427 as_found=:
2428
2429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2430 ac_aux_dir_found=yes
2431 ac_install_sh=
2432 for ac_aux in $ac_aux_files
2433 do
2434 # As a special case, if "install-sh" is required, that requirement
2435 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2436 # and $ac_install_sh is set appropriately for whichever one is found.
2437 if test x"$ac_aux" = x"install-sh"
2438 then
2439 if test -f "${as_dir}install-sh"; then
2440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2441 ac_install_sh="${as_dir}install-sh -c"
2442 elif test -f "${as_dir}install.sh"; then
2443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2444 ac_install_sh="${as_dir}install.sh -c"
2445 elif test -f "${as_dir}shtool"; then
2446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2447 ac_install_sh="${as_dir}shtool install -c"
2448 else
2449 ac_aux_dir_found=no
2450 if $ac_first_candidate; then
2451 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2452 else
2453 break
2454 fi
2455 fi
2456 else
2457 if test -f "${as_dir}${ac_aux}"; then
2458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2459 else
2460 ac_aux_dir_found=no
2461 if $ac_first_candidate; then
2462 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2463 else
2464 break
2465 fi
2466 fi
2467 fi
2468 done
2469 if test "$ac_aux_dir_found" = yes; then
2470 ac_aux_dir="$as_dir"
2471 break
2472 fi
2473 ac_first_candidate=false
2474
2475 as_found=false
2476 done
2477 IFS=$as_save_IFS
2478 if $as_found
2479 then :
2480
2481 else $as_nop
2482 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2483 fi
2484
2485
2486 # These three variables are undocumented and unsupported,
2487 # and are intended to be withdrawn in a future Autoconf release.
2488 # They can cause serious problems if a builder's source tree is in a directory
2489 # whose full name contains unusual characters.
2490 if test -f "${ac_aux_dir}config.guess"; then
2491 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2492 fi
2493 if test -f "${ac_aux_dir}config.sub"; then
2494 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2495 fi
2496 if test -f "$ac_aux_dir/configure"; then
2497 ac_configure="$SHELL ${ac_aux_dir}configure"
2498 fi
2499
2500 # Check that the precious variables saved in the cache have kept the same
2501 # value.
2502 ac_cache_corrupted=false
2503 for ac_var in $ac_precious_vars; do
2504 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2505 eval ac_new_set=\$ac_env_${ac_var}_set
2506 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2507 eval ac_new_val=\$ac_env_${ac_var}_value
2508 case $ac_old_set,$ac_new_set in
2509 set,)
2510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2511 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2512 ac_cache_corrupted=: ;;
2513 ,set)
2514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2515 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2516 ac_cache_corrupted=: ;;
2517 ,);;
2518 *)
2519 if test "x$ac_old_val" != "x$ac_new_val"; then
2520 # differences in whitespace do not lead to failure.
2521 ac_old_val_w=`echo x $ac_old_val`
2522 ac_new_val_w=`echo x $ac_new_val`
2523 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2525 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2526 ac_cache_corrupted=:
2527 else
2528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2529 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2530 eval $ac_var=\$ac_old_val
2531 fi
2532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2533 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2535 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2536 fi;;
2537 esac
2538 # Pass precious variables to config.status.
2539 if test "$ac_new_set" = set; then
2540 case $ac_new_val in
2541 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2542 *) ac_arg=$ac_var=$ac_new_val ;;
2543 esac
2544 case " $ac_configure_args " in
2545 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2546 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2547 esac
2548 fi
2549 done
2550 if $ac_cache_corrupted; then
2551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2552 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2554 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2555 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2556 and start over" "$LINENO" 5
2557 fi
2558 ## -------------------- ##
2559 ## Main body of script. ##
2560 ## -------------------- ##
2561
2562 ac_ext=c
2563 ac_cpp='$CPP $CPPFLAGS'
2564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2567
2568
2569
2570 ac_config_headers="$ac_config_headers config.h"
2571
2572
2573 # Initialize Automake
2574 am__api_version='1.16'
2575
2576
2577
2578 # Find a good install program. We prefer a C program (faster),
2579 # so one script is as good as another. But avoid the broken or
2580 # incompatible versions:
2581 # SysV /etc/install, /usr/sbin/install
2582 # SunOS /usr/etc/install
2583 # IRIX /sbin/install
2584 # AIX /bin/install
2585 # AmigaOS /C/install, which installs bootblocks on floppy discs
2586 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2587 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2588 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2589 # OS/2's system install, which has a completely different semantic
2590 # ./install, which can be erroneously created by make from ./install.sh.
2591 # Reject install programs that cannot install multiple files.
2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2593 printf %s "checking for a BSD-compatible install... " >&6; }
2594 if test -z "$INSTALL"; then
2595 if test ${ac_cv_path_install+y}
2596 then :
2597 printf %s "(cached) " >&6
2598 else $as_nop
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2601 do
2602 IFS=$as_save_IFS
2603 case $as_dir in #(((
2604 '') as_dir=./ ;;
2605 */) ;;
2606 *) as_dir=$as_dir/ ;;
2607 esac
2608 # Account for fact that we put trailing slashes in our PATH walk.
2609 case $as_dir in #((
2610 ./ | /[cC]/* | \
2611 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2612 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2613 /usr/ucb/* ) ;;
2614 *)
2615 # OSF1 and SCO ODT 3.0 have their own names for install.
2616 # Don't use installbsd from OSF since it installs stuff as root
2617 # by default.
2618 for ac_prog in ginstall scoinst install; do
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2621 if test $ac_prog = install &&
2622 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2623 # AIX install. It has an incompatible calling convention.
2624 :
2625 elif test $ac_prog = install &&
2626 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2627 # program-specific install script used by HP pwplus--don't use.
2628 :
2629 else
2630 rm -rf conftest.one conftest.two conftest.dir
2631 echo one > conftest.one
2632 echo two > conftest.two
2633 mkdir conftest.dir
2634 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2635 test -s conftest.one && test -s conftest.two &&
2636 test -s conftest.dir/conftest.one &&
2637 test -s conftest.dir/conftest.two
2638 then
2639 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2640 break 3
2641 fi
2642 fi
2643 fi
2644 done
2645 done
2646 ;;
2647 esac
2648
2649 done
2650 IFS=$as_save_IFS
2651
2652 rm -rf conftest.one conftest.two conftest.dir
2653
2654 fi
2655 if test ${ac_cv_path_install+y}; then
2656 INSTALL=$ac_cv_path_install
2657 else
2658 # As a last resort, use the slow shell script. Don't cache a
2659 # value for INSTALL within a source directory, because that will
2660 # break other packages using the cache if that directory is
2661 # removed, or if the value is a relative name.
2662 INSTALL=$ac_install_sh
2663 fi
2664 fi
2665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2666 printf "%s\n" "$INSTALL" >&6; }
2667
2668 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2669 # It thinks the first close brace ends the variable substitution.
2670 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2671
2672 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2673
2674 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2675
2676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2677 printf %s "checking whether build environment is sane... " >&6; }
2678 # Reject unsafe characters in $srcdir or the absolute working directory
2679 # name. Accept space and tab only in the latter.
2680 am_lf='
2681 '
2682 case `pwd` in
2683 *[\\\"\#\$\&\'\`$am_lf]*)
2684 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2685 esac
2686 case $srcdir in
2687 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2688 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2689 esac
2690
2691 # Do 'set' in a subshell so we don't clobber the current shell's
2692 # arguments. Must try -L first in case configure is actually a
2693 # symlink; some systems play weird games with the mod time of symlinks
2694 # (eg FreeBSD returns the mod time of the symlink's containing
2695 # directory).
2696 if (
2697 am_has_slept=no
2698 for am_try in 1 2; do
2699 echo "timestamp, slept: $am_has_slept" > conftest.file
2700 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2701 if test "$*" = "X"; then
2702 # -L didn't work.
2703 set X `ls -t "$srcdir/configure" conftest.file`
2704 fi
2705 if test "$*" != "X $srcdir/configure conftest.file" \
2706 && test "$*" != "X conftest.file $srcdir/configure"; then
2707
2708 # If neither matched, then we have a broken ls. This can happen
2709 # if, for instance, CONFIG_SHELL is bash and it inherits a
2710 # broken ls alias from the environment. This has actually
2711 # happened. Such a system could not be considered "sane".
2712 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2713 alias in your environment" "$LINENO" 5
2714 fi
2715 if test "$2" = conftest.file || test $am_try -eq 2; then
2716 break
2717 fi
2718 # Just in case.
2719 sleep 1
2720 am_has_slept=yes
2721 done
2722 test "$2" = conftest.file
2723 )
2724 then
2725 # Ok.
2726 :
2727 else
2728 as_fn_error $? "newly created file is older than distributed files!
2729 Check your system clock" "$LINENO" 5
2730 fi
2731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2732 printf "%s\n" "yes" >&6; }
2733 # If we didn't sleep, we still need to ensure time stamps of config.status and
2734 # generated files are strictly newer.
2735 am_sleep_pid=
2736 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2737 ( sleep 1 ) &
2738 am_sleep_pid=$!
2739 fi
2740
2741 rm -f conftest.file
2742
2743 test "$program_prefix" != NONE &&
2744 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2745 # Use a double $ so make ignores it.
2746 test "$program_suffix" != NONE &&
2747 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2748 # Double any \ or $.
2749 # By default was `s,x,x', remove it if useless.
2750 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2751 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2752
2753
2754 # Expand $ac_aux_dir to an absolute path.
2755 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2756
2757
2758 if test x"${MISSING+set}" != xset; then
2759 MISSING="\${SHELL} '$am_aux_dir/missing'"
2760 fi
2761 # Use eval to expand $SHELL
2762 if eval "$MISSING --is-lightweight"; then
2763 am_missing_run="$MISSING "
2764 else
2765 am_missing_run=
2766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2767 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2768 fi
2769
2770 if test x"${install_sh+set}" != xset; then
2771 case $am_aux_dir in
2772 *\ * | *\ *)
2773 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2774 *)
2775 install_sh="\${SHELL} $am_aux_dir/install-sh"
2776 esac
2777 fi
2778
2779 # Installed binaries are usually stripped using 'strip' when the user
2780 # run "make install-strip". However 'strip' might not be the right
2781 # tool to use in cross-compilation environments, therefore Automake
2782 # will honor the 'STRIP' environment variable to overrule this program.
2783 if test "$cross_compiling" != no; then
2784 if test -n "$ac_tool_prefix"; then
2785 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2786 set dummy ${ac_tool_prefix}strip; ac_word=$2
2787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788 printf %s "checking for $ac_word... " >&6; }
2789 if test ${ac_cv_prog_STRIP+y}
2790 then :
2791 printf %s "(cached) " >&6
2792 else $as_nop
2793 if test -n "$STRIP"; then
2794 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799 IFS=$as_save_IFS
2800 case $as_dir in #(((
2801 '') as_dir=./ ;;
2802 */) ;;
2803 *) as_dir=$as_dir/ ;;
2804 esac
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2807 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2809 break 2
2810 fi
2811 done
2812 done
2813 IFS=$as_save_IFS
2814
2815 fi
2816 fi
2817 STRIP=$ac_cv_prog_STRIP
2818 if test -n "$STRIP"; then
2819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2820 printf "%s\n" "$STRIP" >&6; }
2821 else
2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 printf "%s\n" "no" >&6; }
2824 fi
2825
2826
2827 fi
2828 if test -z "$ac_cv_prog_STRIP"; then
2829 ac_ct_STRIP=$STRIP
2830 # Extract the first word of "strip", so it can be a program name with args.
2831 set dummy strip; ac_word=$2
2832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 printf %s "checking for $ac_word... " >&6; }
2834 if test ${ac_cv_prog_ac_ct_STRIP+y}
2835 then :
2836 printf %s "(cached) " >&6
2837 else $as_nop
2838 if test -n "$ac_ct_STRIP"; then
2839 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844 IFS=$as_save_IFS
2845 case $as_dir in #(((
2846 '') as_dir=./ ;;
2847 */) ;;
2848 *) as_dir=$as_dir/ ;;
2849 esac
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2852 ac_cv_prog_ac_ct_STRIP="strip"
2853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2854 break 2
2855 fi
2856 done
2857 done
2858 IFS=$as_save_IFS
2859
2860 fi
2861 fi
2862 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2863 if test -n "$ac_ct_STRIP"; then
2864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2865 printf "%s\n" "$ac_ct_STRIP" >&6; }
2866 else
2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 printf "%s\n" "no" >&6; }
2869 fi
2870
2871 if test "x$ac_ct_STRIP" = x; then
2872 STRIP=":"
2873 else
2874 case $cross_compiling:$ac_tool_warned in
2875 yes:)
2876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2877 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878 ac_tool_warned=yes ;;
2879 esac
2880 STRIP=$ac_ct_STRIP
2881 fi
2882 else
2883 STRIP="$ac_cv_prog_STRIP"
2884 fi
2885
2886 fi
2887 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2888
2889
2890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2891 printf %s "checking for a race-free mkdir -p... " >&6; }
2892 if test -z "$MKDIR_P"; then
2893 if test ${ac_cv_path_mkdir+y}
2894 then :
2895 printf %s "(cached) " >&6
2896 else $as_nop
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2899 do
2900 IFS=$as_save_IFS
2901 case $as_dir in #(((
2902 '') as_dir=./ ;;
2903 */) ;;
2904 *) as_dir=$as_dir/ ;;
2905 esac
2906 for ac_prog in mkdir gmkdir; do
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2909 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2910 'mkdir ('*'coreutils) '* | \
2911 'BusyBox '* | \
2912 'mkdir (fileutils) '4.1*)
2913 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2914 break 3;;
2915 esac
2916 done
2917 done
2918 done
2919 IFS=$as_save_IFS
2920
2921 fi
2922
2923 test -d ./--version && rmdir ./--version
2924 if test ${ac_cv_path_mkdir+y}; then
2925 MKDIR_P="$ac_cv_path_mkdir -p"
2926 else
2927 # As a last resort, use the slow shell script. Don't cache a
2928 # value for MKDIR_P within a source directory, because that will
2929 # break other packages using the cache if that directory is
2930 # removed, or if the value is a relative name.
2931 MKDIR_P="$ac_install_sh -d"
2932 fi
2933 fi
2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2935 printf "%s\n" "$MKDIR_P" >&6; }
2936
2937 for ac_prog in gawk mawk nawk awk
2938 do
2939 # Extract the first word of "$ac_prog", so it can be a program name with args.
2940 set dummy $ac_prog; ac_word=$2
2941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942 printf %s "checking for $ac_word... " >&6; }
2943 if test ${ac_cv_prog_AWK+y}
2944 then :
2945 printf %s "(cached) " >&6
2946 else $as_nop
2947 if test -n "$AWK"; then
2948 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2952 do
2953 IFS=$as_save_IFS
2954 case $as_dir in #(((
2955 '') as_dir=./ ;;
2956 */) ;;
2957 *) as_dir=$as_dir/ ;;
2958 esac
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2961 ac_cv_prog_AWK="$ac_prog"
2962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2963 break 2
2964 fi
2965 done
2966 done
2967 IFS=$as_save_IFS
2968
2969 fi
2970 fi
2971 AWK=$ac_cv_prog_AWK
2972 if test -n "$AWK"; then
2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2974 printf "%s\n" "$AWK" >&6; }
2975 else
2976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 printf "%s\n" "no" >&6; }
2978 fi
2979
2980
2981 test -n "$AWK" && break
2982 done
2983
2984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2985 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2986 set x ${MAKE-make}
2987 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2988 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2989 then :
2990 printf %s "(cached) " >&6
2991 else $as_nop
2992 cat >conftest.make <<\_ACEOF
2993 SHELL = /bin/sh
2994 all:
2995 @echo '@@@%%%=$(MAKE)=@@@%%%'
2996 _ACEOF
2997 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2998 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2999 *@@@%%%=?*=@@@%%%*)
3000 eval ac_cv_prog_make_${ac_make}_set=yes;;
3001 *)
3002 eval ac_cv_prog_make_${ac_make}_set=no;;
3003 esac
3004 rm -f conftest.make
3005 fi
3006 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3008 printf "%s\n" "yes" >&6; }
3009 SET_MAKE=
3010 else
3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 printf "%s\n" "no" >&6; }
3013 SET_MAKE="MAKE=${MAKE-make}"
3014 fi
3015
3016 rm -rf .tst 2>/dev/null
3017 mkdir .tst 2>/dev/null
3018 if test -d .tst; then
3019 am__leading_dot=.
3020 else
3021 am__leading_dot=_
3022 fi
3023 rmdir .tst 2>/dev/null
3024
3025 # Check whether --enable-silent-rules was given.
3026 if test ${enable_silent_rules+y}
3027 then :
3028 enableval=$enable_silent_rules;
3029 fi
3030
3031 case $enable_silent_rules in # (((
3032 yes) AM_DEFAULT_VERBOSITY=0;;
3033 no) AM_DEFAULT_VERBOSITY=1;;
3034 *) AM_DEFAULT_VERBOSITY=1;;
3035 esac
3036 am_make=${MAKE-make}
3037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3038 printf %s "checking whether $am_make supports nested variables... " >&6; }
3039 if test ${am_cv_make_support_nested_variables+y}
3040 then :
3041 printf %s "(cached) " >&6
3042 else $as_nop
3043 if printf "%s\n" 'TRUE=$(BAR$(V))
3044 BAR0=false
3045 BAR1=true
3046 V=1
3047 am__doit:
3048 @$(TRUE)
3049 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3050 am_cv_make_support_nested_variables=yes
3051 else
3052 am_cv_make_support_nested_variables=no
3053 fi
3054 fi
3055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3056 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3057 if test $am_cv_make_support_nested_variables = yes; then
3058 AM_V='$(V)'
3059 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3060 else
3061 AM_V=$AM_DEFAULT_VERBOSITY
3062 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3063 fi
3064 AM_BACKSLASH='\'
3065
3066 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3067 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3068 # is not polluted with repeated "-I."
3069 am__isrc=' -I$(srcdir)'
3070 # test to see if srcdir already configured
3071 if test -f $srcdir/config.status; then
3072 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3073 fi
3074 fi
3075
3076 # test whether we have cygpath
3077 if test -z "$CYGPATH_W"; then
3078 if (cygpath --version) >/dev/null 2>/dev/null; then
3079 CYGPATH_W='cygpath -w'
3080 else
3081 CYGPATH_W=echo
3082 fi
3083 fi
3084
3085
3086 # Define the identity of the package.
3087 PACKAGE='xkbcomp'
3088 VERSION='1.4.6'
3089
3090
3091 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3092
3093
3094 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3095
3096 # Some tools Automake needs.
3097
3098 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3099
3100
3101 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3102
3103
3104 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3105
3106
3107 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3108
3109
3110 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3111
3112 # For better backward compatibility. To be removed once Automake 1.9.x
3113 # dies out for good. For more background, see:
3114 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3115 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3116 mkdir_p='$(MKDIR_P)'
3117
3118 # We need awk for the "check" target (and possibly the TAP driver). The
3119 # system "awk" is bad on some platforms.
3120 # Always define AMTAR for backward compatibility. Yes, it's still used
3121 # in the wild :-( We should find a proper way to deprecate it ...
3122 AMTAR='$${TAR-tar}'
3123
3124
3125 # We'll loop over all known methods to create a tar archive until one works.
3126 _am_tools='gnutar pax cpio none'
3127
3128 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3129
3130
3131
3132
3133
3134 # Variables for tags utilities; see am/tags.am
3135 if test -z "$CTAGS"; then
3136 CTAGS=ctags
3137 fi
3138
3139 if test -z "$ETAGS"; then
3140 ETAGS=etags
3141 fi
3142
3143 if test -z "$CSCOPE"; then
3144 CSCOPE=cscope
3145 fi
3146
3147
3148
3149 # POSIX will say in a future version that running "rm -f" with no argument
3150 # is OK; and we want to be able to make that assumption in our Makefile
3151 # recipes. So use an aggressive probe to check that the usage we want is
3152 # actually supported "in the wild" to an acceptable degree.
3153 # See automake bug#10828.
3154 # To make any issue more visible, cause the running configure to be aborted
3155 # by default if the 'rm' program in use doesn't match our expectations; the
3156 # user can still override this though.
3157 if rm -f && rm -fr && rm -rf; then : OK; else
3158 cat >&2 <<'END'
3159 Oops!
3160
3161 Your 'rm' program seems unable to run without file operands specified
3162 on the command line, even when the '-f' option is present. This is contrary
3163 to the behaviour of most rm programs out there, and not conforming with
3164 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3165
3166 Please tell bug-automake@gnu.org about your system, including the value
3167 of your $PATH and any error possibly output before this message. This
3168 can help us improve future automake versions.
3169
3170 END
3171 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3172 echo 'Configuration will proceed anyway, since you have set the' >&2
3173 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3174 echo >&2
3175 else
3176 cat >&2 <<'END'
3177 Aborting the configuration process, to ensure you take notice of the issue.
3178
3179 You can download and install GNU coreutils to get an 'rm' implementation
3180 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3181
3182 If you want to complete the configuration process using your problematic
3183 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3184 to "yes", and re-run configure.
3185
3186 END
3187 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3188 fi
3189 fi
3190
3191
3192 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213 DEPDIR="${am__leading_dot}deps"
3214
3215 ac_config_commands="$ac_config_commands depfiles"
3216
3217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3218 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3219 cat > confinc.mk << 'END'
3220 am__doit:
3221 @echo this is the am__doit target >confinc.out
3222 .PHONY: am__doit
3223 END
3224 am__include="#"
3225 am__quote=
3226 # BSD make does it like this.
3227 echo '.include "confinc.mk" # ignored' > confmf.BSD
3228 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3229 echo 'include confinc.mk # ignored' > confmf.GNU
3230 _am_result=no
3231 for s in GNU BSD; do
3232 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3233 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }
3237 case $?:`cat confinc.out 2>/dev/null` in #(
3238 '0:this is the am__doit target') :
3239 case $s in #(
3240 BSD) :
3241 am__include='.include' am__quote='"' ;; #(
3242 *) :
3243 am__include='include' am__quote='' ;;
3244 esac ;; #(
3245 *) :
3246 ;;
3247 esac
3248 if test "$am__include" != "#"; then
3249 _am_result="yes ($s style)"
3250 break
3251 fi
3252 done
3253 rm -f confinc.* confmf.*
3254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3255 printf "%s\n" "${_am_result}" >&6; }
3256
3257 # Check whether --enable-dependency-tracking was given.
3258 if test ${enable_dependency_tracking+y}
3259 then :
3260 enableval=$enable_dependency_tracking;
3261 fi
3262
3263 if test "x$enable_dependency_tracking" != xno; then
3264 am_depcomp="$ac_aux_dir/depcomp"
3265 AMDEPBACKSLASH='\'
3266 am__nodep='_no'
3267 fi
3268 if test "x$enable_dependency_tracking" != xno; then
3269 AMDEP_TRUE=
3270 AMDEP_FALSE='#'
3271 else
3272 AMDEP_TRUE='#'
3273 AMDEP_FALSE=
3274 fi
3275
3276
3277 ac_ext=c
3278 ac_cpp='$CPP $CPPFLAGS'
3279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3282 if test -n "$ac_tool_prefix"; then
3283 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3284 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286 printf %s "checking for $ac_word... " >&6; }
3287 if test ${ac_cv_prog_CC+y}
3288 then :
3289 printf %s "(cached) " >&6
3290 else $as_nop
3291 if test -n "$CC"; then
3292 ac_cv_prog_CC="$CC" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297 IFS=$as_save_IFS
3298 case $as_dir in #(((
3299 '') as_dir=./ ;;
3300 */) ;;
3301 *) as_dir=$as_dir/ ;;
3302 esac
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3305 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3307 break 2
3308 fi
3309 done
3310 done
3311 IFS=$as_save_IFS
3312
3313 fi
3314 fi
3315 CC=$ac_cv_prog_CC
3316 if test -n "$CC"; then
3317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3318 printf "%s\n" "$CC" >&6; }
3319 else
3320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 printf "%s\n" "no" >&6; }
3322 fi
3323
3324
3325 fi
3326 if test -z "$ac_cv_prog_CC"; then
3327 ac_ct_CC=$CC
3328 # Extract the first word of "gcc", so it can be a program name with args.
3329 set dummy gcc; ac_word=$2
3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3331 printf %s "checking for $ac_word... " >&6; }
3332 if test ${ac_cv_prog_ac_ct_CC+y}
3333 then :
3334 printf %s "(cached) " >&6
3335 else $as_nop
3336 if test -n "$ac_ct_CC"; then
3337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3338 else
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3341 do
3342 IFS=$as_save_IFS
3343 case $as_dir in #(((
3344 '') as_dir=./ ;;
3345 */) ;;
3346 *) as_dir=$as_dir/ ;;
3347 esac
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3350 ac_cv_prog_ac_ct_CC="gcc"
3351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3352 break 2
3353 fi
3354 done
3355 done
3356 IFS=$as_save_IFS
3357
3358 fi
3359 fi
3360 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3361 if test -n "$ac_ct_CC"; then
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3363 printf "%s\n" "$ac_ct_CC" >&6; }
3364 else
3365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 printf "%s\n" "no" >&6; }
3367 fi
3368
3369 if test "x$ac_ct_CC" = x; then
3370 CC=""
3371 else
3372 case $cross_compiling:$ac_tool_warned in
3373 yes:)
3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3375 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3376 ac_tool_warned=yes ;;
3377 esac
3378 CC=$ac_ct_CC
3379 fi
3380 else
3381 CC="$ac_cv_prog_CC"
3382 fi
3383
3384 if test -z "$CC"; then
3385 if test -n "$ac_tool_prefix"; then
3386 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3387 set dummy ${ac_tool_prefix}cc; ac_word=$2
3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3389 printf %s "checking for $ac_word... " >&6; }
3390 if test ${ac_cv_prog_CC+y}
3391 then :
3392 printf %s "(cached) " >&6
3393 else $as_nop
3394 if test -n "$CC"; then
3395 ac_cv_prog_CC="$CC" # Let the user override the test.
3396 else
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3399 do
3400 IFS=$as_save_IFS
3401 case $as_dir in #(((
3402 '') as_dir=./ ;;
3403 */) ;;
3404 *) as_dir=$as_dir/ ;;
3405 esac
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3408 ac_cv_prog_CC="${ac_tool_prefix}cc"
3409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3410 break 2
3411 fi
3412 done
3413 done
3414 IFS=$as_save_IFS
3415
3416 fi
3417 fi
3418 CC=$ac_cv_prog_CC
3419 if test -n "$CC"; then
3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3421 printf "%s\n" "$CC" >&6; }
3422 else
3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 printf "%s\n" "no" >&6; }
3425 fi
3426
3427
3428 fi
3429 fi
3430 if test -z "$CC"; then
3431 # Extract the first word of "cc", so it can be a program name with args.
3432 set dummy cc; ac_word=$2
3433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 printf %s "checking for $ac_word... " >&6; }
3435 if test ${ac_cv_prog_CC+y}
3436 then :
3437 printf %s "(cached) " >&6
3438 else $as_nop
3439 if test -n "$CC"; then
3440 ac_cv_prog_CC="$CC" # Let the user override the test.
3441 else
3442 ac_prog_rejected=no
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3445 do
3446 IFS=$as_save_IFS
3447 case $as_dir in #(((
3448 '') as_dir=./ ;;
3449 */) ;;
3450 *) as_dir=$as_dir/ ;;
3451 esac
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3454 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3455 ac_prog_rejected=yes
3456 continue
3457 fi
3458 ac_cv_prog_CC="cc"
3459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3460 break 2
3461 fi
3462 done
3463 done
3464 IFS=$as_save_IFS
3465
3466 if test $ac_prog_rejected = yes; then
3467 # We found a bogon in the path, so make sure we never use it.
3468 set dummy $ac_cv_prog_CC
3469 shift
3470 if test $# != 0; then
3471 # We chose a different compiler from the bogus one.
3472 # However, it has the same basename, so the bogon will be chosen
3473 # first if we set CC to just the basename; use the full file name.
3474 shift
3475 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3476 fi
3477 fi
3478 fi
3479 fi
3480 CC=$ac_cv_prog_CC
3481 if test -n "$CC"; then
3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483 printf "%s\n" "$CC" >&6; }
3484 else
3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 printf "%s\n" "no" >&6; }
3487 fi
3488
3489
3490 fi
3491 if test -z "$CC"; then
3492 if test -n "$ac_tool_prefix"; then
3493 for ac_prog in cl.exe
3494 do
3495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 printf %s "checking for $ac_word... " >&6; }
3499 if test ${ac_cv_prog_CC+y}
3500 then :
3501 printf %s "(cached) " >&6
3502 else $as_nop
3503 if test -n "$CC"; then
3504 ac_cv_prog_CC="$CC" # Let the user override the test.
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509 IFS=$as_save_IFS
3510 case $as_dir in #(((
3511 '') as_dir=./ ;;
3512 */) ;;
3513 *) as_dir=$as_dir/ ;;
3514 esac
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3517 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3519 break 2
3520 fi
3521 done
3522 done
3523 IFS=$as_save_IFS
3524
3525 fi
3526 fi
3527 CC=$ac_cv_prog_CC
3528 if test -n "$CC"; then
3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3530 printf "%s\n" "$CC" >&6; }
3531 else
3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 printf "%s\n" "no" >&6; }
3534 fi
3535
3536
3537 test -n "$CC" && break
3538 done
3539 fi
3540 if test -z "$CC"; then
3541 ac_ct_CC=$CC
3542 for ac_prog in cl.exe
3543 do
3544 # Extract the first word of "$ac_prog", so it can be a program name with args.
3545 set dummy $ac_prog; ac_word=$2
3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3547 printf %s "checking for $ac_word... " >&6; }
3548 if test ${ac_cv_prog_ac_ct_CC+y}
3549 then :
3550 printf %s "(cached) " >&6
3551 else $as_nop
3552 if test -n "$ac_ct_CC"; then
3553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3554 else
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH
3557 do
3558 IFS=$as_save_IFS
3559 case $as_dir in #(((
3560 '') as_dir=./ ;;
3561 */) ;;
3562 *) as_dir=$as_dir/ ;;
3563 esac
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3566 ac_cv_prog_ac_ct_CC="$ac_prog"
3567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3568 break 2
3569 fi
3570 done
3571 done
3572 IFS=$as_save_IFS
3573
3574 fi
3575 fi
3576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3577 if test -n "$ac_ct_CC"; then
3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3579 printf "%s\n" "$ac_ct_CC" >&6; }
3580 else
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 printf "%s\n" "no" >&6; }
3583 fi
3584
3585
3586 test -n "$ac_ct_CC" && break
3587 done
3588
3589 if test "x$ac_ct_CC" = x; then
3590 CC=""
3591 else
3592 case $cross_compiling:$ac_tool_warned in
3593 yes:)
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3595 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3596 ac_tool_warned=yes ;;
3597 esac
3598 CC=$ac_ct_CC
3599 fi
3600 fi
3601
3602 fi
3603 if test -z "$CC"; then
3604 if test -n "$ac_tool_prefix"; then
3605 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3606 set dummy ${ac_tool_prefix}clang; ac_word=$2
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 printf %s "checking for $ac_word... " >&6; }
3609 if test ${ac_cv_prog_CC+y}
3610 then :
3611 printf %s "(cached) " >&6
3612 else $as_nop
3613 if test -n "$CC"; then
3614 ac_cv_prog_CC="$CC" # Let the user override the test.
3615 else
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH
3618 do
3619 IFS=$as_save_IFS
3620 case $as_dir in #(((
3621 '') as_dir=./ ;;
3622 */) ;;
3623 *) as_dir=$as_dir/ ;;
3624 esac
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3627 ac_cv_prog_CC="${ac_tool_prefix}clang"
3628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3629 break 2
3630 fi
3631 done
3632 done
3633 IFS=$as_save_IFS
3634
3635 fi
3636 fi
3637 CC=$ac_cv_prog_CC
3638 if test -n "$CC"; then
3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3640 printf "%s\n" "$CC" >&6; }
3641 else
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 printf "%s\n" "no" >&6; }
3644 fi
3645
3646
3647 fi
3648 if test -z "$ac_cv_prog_CC"; then
3649 ac_ct_CC=$CC
3650 # Extract the first word of "clang", so it can be a program name with args.
3651 set dummy clang; ac_word=$2
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 printf %s "checking for $ac_word... " >&6; }
3654 if test ${ac_cv_prog_ac_ct_CC+y}
3655 then :
3656 printf %s "(cached) " >&6
3657 else $as_nop
3658 if test -n "$ac_ct_CC"; then
3659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664 IFS=$as_save_IFS
3665 case $as_dir in #(((
3666 '') as_dir=./ ;;
3667 */) ;;
3668 *) as_dir=$as_dir/ ;;
3669 esac
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3672 ac_cv_prog_ac_ct_CC="clang"
3673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3674 break 2
3675 fi
3676 done
3677 done
3678 IFS=$as_save_IFS
3679
3680 fi
3681 fi
3682 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3683 if test -n "$ac_ct_CC"; then
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3685 printf "%s\n" "$ac_ct_CC" >&6; }
3686 else
3687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688 printf "%s\n" "no" >&6; }
3689 fi
3690
3691 if test "x$ac_ct_CC" = x; then
3692 CC=""
3693 else
3694 case $cross_compiling:$ac_tool_warned in
3695 yes:)
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3697 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3698 ac_tool_warned=yes ;;
3699 esac
3700 CC=$ac_ct_CC
3701 fi
3702 else
3703 CC="$ac_cv_prog_CC"
3704 fi
3705
3706 fi
3707
3708
3709 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3710 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3711 as_fn_error $? "no acceptable C compiler found in \$PATH
3712 See \`config.log' for more details" "$LINENO" 5; }
3713
3714 # Provide some information about the compiler.
3715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3716 set X $ac_compile
3717 ac_compiler=$2
3718 for ac_option in --version -v -V -qversion -version; do
3719 { { ac_try="$ac_compiler $ac_option >&5"
3720 case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3723 esac
3724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725 printf "%s\n" "$ac_try_echo"; } >&5
3726 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3727 ac_status=$?
3728 if test -s conftest.err; then
3729 sed '10a\
3730 ... rest of stderr output deleted ...
3731 10q' conftest.err >conftest.er1
3732 cat conftest.er1 >&5
3733 fi
3734 rm -f conftest.er1 conftest.err
3735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736 test $ac_status = 0; }
3737 done
3738
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3741
3742 int
3743 main (void)
3744 {
3745
3746 ;
3747 return 0;
3748 }
3749 _ACEOF
3750 ac_clean_files_save=$ac_clean_files
3751 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3752 # Try to create an executable without -o first, disregard a.out.
3753 # It will help us diagnose broken compilers, and finding out an intuition
3754 # of exeext.
3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3756 printf %s "checking whether the C compiler works... " >&6; }
3757 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3758
3759 # The possible output files:
3760 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3761
3762 ac_rmfiles=
3763 for ac_file in $ac_files
3764 do
3765 case $ac_file in
3766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3767 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3768 esac
3769 done
3770 rm -f $ac_rmfiles
3771
3772 if { { ac_try="$ac_link_default"
3773 case "(($ac_try" in
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3776 esac
3777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778 printf "%s\n" "$ac_try_echo"; } >&5
3779 (eval "$ac_link_default") 2>&5
3780 ac_status=$?
3781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782 test $ac_status = 0; }
3783 then :
3784 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3785 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3786 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3787 # so that the user can short-circuit this test for compilers unknown to
3788 # Autoconf.
3789 for ac_file in $ac_files ''
3790 do
3791 test -f "$ac_file" || continue
3792 case $ac_file in
3793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3794 ;;
3795 [ab].out )
3796 # We found the default executable, but exeext='' is most
3797 # certainly right.
3798 break;;
3799 *.* )
3800 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3801 then :; else
3802 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3803 fi
3804 # We set ac_cv_exeext here because the later test for it is not
3805 # safe: cross compilers may not add the suffix if given an `-o'
3806 # argument, so we may need to know it at that point already.
3807 # Even if this section looks crufty: it has the advantage of
3808 # actually working.
3809 break;;
3810 * )
3811 break;;
3812 esac
3813 done
3814 test "$ac_cv_exeext" = no && ac_cv_exeext=
3815
3816 else $as_nop
3817 ac_file=''
3818 fi
3819 if test -z "$ac_file"
3820 then :
3821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 printf "%s\n" "no" >&6; }
3823 printf "%s\n" "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3825
3826 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3828 as_fn_error 77 "C compiler cannot create executables
3829 See \`config.log' for more details" "$LINENO" 5; }
3830 else $as_nop
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3832 printf "%s\n" "yes" >&6; }
3833 fi
3834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3835 printf %s "checking for C compiler default output file name... " >&6; }
3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3837 printf "%s\n" "$ac_file" >&6; }
3838 ac_exeext=$ac_cv_exeext
3839
3840 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3841 ac_clean_files=$ac_clean_files_save
3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3843 printf %s "checking for suffix of executables... " >&6; }
3844 if { { ac_try="$ac_link"
3845 case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848 esac
3849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850 printf "%s\n" "$ac_try_echo"; } >&5
3851 (eval "$ac_link") 2>&5
3852 ac_status=$?
3853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }
3855 then :
3856 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3857 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3858 # work properly (i.e., refer to `conftest.exe'), while it won't with
3859 # `rm'.
3860 for ac_file in conftest.exe conftest conftest.*; do
3861 test -f "$ac_file" || continue
3862 case $ac_file in
3863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3864 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3865 break;;
3866 * ) break;;
3867 esac
3868 done
3869 else $as_nop
3870 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3872 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3873 See \`config.log' for more details" "$LINENO" 5; }
3874 fi
3875 rm -f conftest conftest$ac_cv_exeext
3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3877 printf "%s\n" "$ac_cv_exeext" >&6; }
3878
3879 rm -f conftest.$ac_ext
3880 EXEEXT=$ac_cv_exeext
3881 ac_exeext=$EXEEXT
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3884 #include <stdio.h>
3885 int
3886 main (void)
3887 {
3888 FILE *f = fopen ("conftest.out", "w");
3889 return ferror (f) || fclose (f) != 0;
3890
3891 ;
3892 return 0;
3893 }
3894 _ACEOF
3895 ac_clean_files="$ac_clean_files conftest.out"
3896 # Check that the compiler produces executables we can run. If not, either
3897 # the compiler is broken, or we cross compile.
3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3899 printf %s "checking whether we are cross compiling... " >&6; }
3900 if test "$cross_compiling" != yes; then
3901 { { ac_try="$ac_link"
3902 case "(($ac_try" in
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3905 esac
3906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907 printf "%s\n" "$ac_try_echo"; } >&5
3908 (eval "$ac_link") 2>&5
3909 ac_status=$?
3910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911 test $ac_status = 0; }
3912 if { ac_try='./conftest$ac_cv_exeext'
3913 { { case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3916 esac
3917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918 printf "%s\n" "$ac_try_echo"; } >&5
3919 (eval "$ac_try") 2>&5
3920 ac_status=$?
3921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922 test $ac_status = 0; }; }; then
3923 cross_compiling=no
3924 else
3925 if test "$cross_compiling" = maybe; then
3926 cross_compiling=yes
3927 else
3928 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3929 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3930 as_fn_error 77 "cannot run C compiled programs.
3931 If you meant to cross compile, use \`--host'.
3932 See \`config.log' for more details" "$LINENO" 5; }
3933 fi
3934 fi
3935 fi
3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3937 printf "%s\n" "$cross_compiling" >&6; }
3938
3939 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3940 ac_clean_files=$ac_clean_files_save
3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3942 printf %s "checking for suffix of object files... " >&6; }
3943 if test ${ac_cv_objext+y}
3944 then :
3945 printf %s "(cached) " >&6
3946 else $as_nop
3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h. */
3949
3950 int
3951 main (void)
3952 {
3953
3954 ;
3955 return 0;
3956 }
3957 _ACEOF
3958 rm -f conftest.o conftest.obj
3959 if { { ac_try="$ac_compile"
3960 case "(($ac_try" in
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3963 esac
3964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3965 printf "%s\n" "$ac_try_echo"; } >&5
3966 (eval "$ac_compile") 2>&5
3967 ac_status=$?
3968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3969 test $ac_status = 0; }
3970 then :
3971 for ac_file in conftest.o conftest.obj conftest.*; do
3972 test -f "$ac_file" || continue;
3973 case $ac_file in
3974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3975 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3976 break;;
3977 esac
3978 done
3979 else $as_nop
3980 printf "%s\n" "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3984 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3985 as_fn_error $? "cannot compute suffix of object files: cannot compile
3986 See \`config.log' for more details" "$LINENO" 5; }
3987 fi
3988 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3989 fi
3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3991 printf "%s\n" "$ac_cv_objext" >&6; }
3992 OBJEXT=$ac_cv_objext
3993 ac_objext=$OBJEXT
3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3995 printf %s "checking whether the compiler supports GNU C... " >&6; }
3996 if test ${ac_cv_c_compiler_gnu+y}
3997 then :
3998 printf %s "(cached) " >&6
3999 else $as_nop
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4002
4003 int
4004 main (void)
4005 {
4006 #ifndef __GNUC__
4007 choke me
4008 #endif
4009
4010 ;
4011 return 0;
4012 }
4013 _ACEOF
4014 if ac_fn_c_try_compile "$LINENO"
4015 then :
4016 ac_compiler_gnu=yes
4017 else $as_nop
4018 ac_compiler_gnu=no
4019 fi
4020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4021 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4022
4023 fi
4024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4025 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4027
4028 if test $ac_compiler_gnu = yes; then
4029 GCC=yes
4030 else
4031 GCC=
4032 fi
4033 ac_test_CFLAGS=${CFLAGS+y}
4034 ac_save_CFLAGS=$CFLAGS
4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4036 printf %s "checking whether $CC accepts -g... " >&6; }
4037 if test ${ac_cv_prog_cc_g+y}
4038 then :
4039 printf %s "(cached) " >&6
4040 else $as_nop
4041 ac_save_c_werror_flag=$ac_c_werror_flag
4042 ac_c_werror_flag=yes
4043 ac_cv_prog_cc_g=no
4044 CFLAGS="-g"
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047
4048 int
4049 main (void)
4050 {
4051
4052 ;
4053 return 0;
4054 }
4055 _ACEOF
4056 if ac_fn_c_try_compile "$LINENO"
4057 then :
4058 ac_cv_prog_cc_g=yes
4059 else $as_nop
4060 CFLAGS=""
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4063
4064 int
4065 main (void)
4066 {
4067
4068 ;
4069 return 0;
4070 }
4071 _ACEOF
4072 if ac_fn_c_try_compile "$LINENO"
4073 then :
4074
4075 else $as_nop
4076 ac_c_werror_flag=$ac_save_c_werror_flag
4077 CFLAGS="-g"
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4080
4081 int
4082 main (void)
4083 {
4084
4085 ;
4086 return 0;
4087 }
4088 _ACEOF
4089 if ac_fn_c_try_compile "$LINENO"
4090 then :
4091 ac_cv_prog_cc_g=yes
4092 fi
4093 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4094 fi
4095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4096 fi
4097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4098 ac_c_werror_flag=$ac_save_c_werror_flag
4099 fi
4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4101 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4102 if test $ac_test_CFLAGS; then
4103 CFLAGS=$ac_save_CFLAGS
4104 elif test $ac_cv_prog_cc_g = yes; then
4105 if test "$GCC" = yes; then
4106 CFLAGS="-g -O2"
4107 else
4108 CFLAGS="-g"
4109 fi
4110 else
4111 if test "$GCC" = yes; then
4112 CFLAGS="-O2"
4113 else
4114 CFLAGS=
4115 fi
4116 fi
4117 ac_prog_cc_stdc=no
4118 if test x$ac_prog_cc_stdc = xno
4119 then :
4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4121 printf %s "checking for $CC option to enable C11 features... " >&6; }
4122 if test ${ac_cv_prog_cc_c11+y}
4123 then :
4124 printf %s "(cached) " >&6
4125 else $as_nop
4126 ac_cv_prog_cc_c11=no
4127 ac_save_CC=$CC
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4130 $ac_c_conftest_c11_program
4131 _ACEOF
4132 for ac_arg in '' -std=gnu11
4133 do
4134 CC="$ac_save_CC $ac_arg"
4135 if ac_fn_c_try_compile "$LINENO"
4136 then :
4137 ac_cv_prog_cc_c11=$ac_arg
4138 fi
4139 rm -f core conftest.err conftest.$ac_objext conftest.beam
4140 test "x$ac_cv_prog_cc_c11" != "xno" && break
4141 done
4142 rm -f conftest.$ac_ext
4143 CC=$ac_save_CC
4144 fi
4145
4146 if test "x$ac_cv_prog_cc_c11" = xno
4147 then :
4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4149 printf "%s\n" "unsupported" >&6; }
4150 else $as_nop
4151 if test "x$ac_cv_prog_cc_c11" = x
4152 then :
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4154 printf "%s\n" "none needed" >&6; }
4155 else $as_nop
4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4157 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4158 CC="$CC $ac_cv_prog_cc_c11"
4159 fi
4160 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4161 ac_prog_cc_stdc=c11
4162 fi
4163 fi
4164 if test x$ac_prog_cc_stdc = xno
4165 then :
4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4167 printf %s "checking for $CC option to enable C99 features... " >&6; }
4168 if test ${ac_cv_prog_cc_c99+y}
4169 then :
4170 printf %s "(cached) " >&6
4171 else $as_nop
4172 ac_cv_prog_cc_c99=no
4173 ac_save_CC=$CC
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4176 $ac_c_conftest_c99_program
4177 _ACEOF
4178 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4179 do
4180 CC="$ac_save_CC $ac_arg"
4181 if ac_fn_c_try_compile "$LINENO"
4182 then :
4183 ac_cv_prog_cc_c99=$ac_arg
4184 fi
4185 rm -f core conftest.err conftest.$ac_objext conftest.beam
4186 test "x$ac_cv_prog_cc_c99" != "xno" && break
4187 done
4188 rm -f conftest.$ac_ext
4189 CC=$ac_save_CC
4190 fi
4191
4192 if test "x$ac_cv_prog_cc_c99" = xno
4193 then :
4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4195 printf "%s\n" "unsupported" >&6; }
4196 else $as_nop
4197 if test "x$ac_cv_prog_cc_c99" = x
4198 then :
4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4200 printf "%s\n" "none needed" >&6; }
4201 else $as_nop
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4203 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4204 CC="$CC $ac_cv_prog_cc_c99"
4205 fi
4206 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4207 ac_prog_cc_stdc=c99
4208 fi
4209 fi
4210 if test x$ac_prog_cc_stdc = xno
4211 then :
4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4213 printf %s "checking for $CC option to enable C89 features... " >&6; }
4214 if test ${ac_cv_prog_cc_c89+y}
4215 then :
4216 printf %s "(cached) " >&6
4217 else $as_nop
4218 ac_cv_prog_cc_c89=no
4219 ac_save_CC=$CC
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4222 $ac_c_conftest_c89_program
4223 _ACEOF
4224 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4225 do
4226 CC="$ac_save_CC $ac_arg"
4227 if ac_fn_c_try_compile "$LINENO"
4228 then :
4229 ac_cv_prog_cc_c89=$ac_arg
4230 fi
4231 rm -f core conftest.err conftest.$ac_objext conftest.beam
4232 test "x$ac_cv_prog_cc_c89" != "xno" && break
4233 done
4234 rm -f conftest.$ac_ext
4235 CC=$ac_save_CC
4236 fi
4237
4238 if test "x$ac_cv_prog_cc_c89" = xno
4239 then :
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4241 printf "%s\n" "unsupported" >&6; }
4242 else $as_nop
4243 if test "x$ac_cv_prog_cc_c89" = x
4244 then :
4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4246 printf "%s\n" "none needed" >&6; }
4247 else $as_nop
4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4249 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4250 CC="$CC $ac_cv_prog_cc_c89"
4251 fi
4252 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4253 ac_prog_cc_stdc=c89
4254 fi
4255 fi
4256
4257 ac_ext=c
4258 ac_cpp='$CPP $CPPFLAGS'
4259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262
4263
4264 ac_ext=c
4265 ac_cpp='$CPP $CPPFLAGS'
4266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4270 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4271 if test ${am_cv_prog_cc_c_o+y}
4272 then :
4273 printf %s "(cached) " >&6
4274 else $as_nop
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4277
4278 int
4279 main (void)
4280 {
4281
4282 ;
4283 return 0;
4284 }
4285 _ACEOF
4286 # Make sure it works both with $CC and with simple cc.
4287 # Following AC_PROG_CC_C_O, we do the test twice because some
4288 # compilers refuse to overwrite an existing .o file with -o,
4289 # though they will create one.
4290 am_cv_prog_cc_c_o=yes
4291 for am_i in 1 2; do
4292 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4293 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4294 ac_status=$?
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } \
4297 && test -f conftest2.$ac_objext; then
4298 : OK
4299 else
4300 am_cv_prog_cc_c_o=no
4301 break
4302 fi
4303 done
4304 rm -f core conftest*
4305 unset am_i
4306 fi
4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4308 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4309 if test "$am_cv_prog_cc_c_o" != yes; then
4310 # Losing compiler, so override with the script.
4311 # FIXME: It is wrong to rewrite CC.
4312 # But if we don't then we get into trouble of one sort or another.
4313 # A longer-term fix would be to have automake use am__CC in this case,
4314 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4315 CC="$am_aux_dir/compile $CC"
4316 fi
4317 ac_ext=c
4318 ac_cpp='$CPP $CPPFLAGS'
4319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4322
4323
4324 depcc="$CC" am_compiler_list=
4325
4326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4327 printf %s "checking dependency style of $depcc... " >&6; }
4328 if test ${am_cv_CC_dependencies_compiler_type+y}
4329 then :
4330 printf %s "(cached) " >&6
4331 else $as_nop
4332 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4333 # We make a subdir and do the tests there. Otherwise we can end up
4334 # making bogus files that we don't know about and never remove. For
4335 # instance it was reported that on HP-UX the gcc test will end up
4336 # making a dummy file named 'D' -- because '-MD' means "put the output
4337 # in D".
4338 rm -rf conftest.dir
4339 mkdir conftest.dir
4340 # Copy depcomp to subdir because otherwise we won't find it if we're
4341 # using a relative directory.
4342 cp "$am_depcomp" conftest.dir
4343 cd conftest.dir
4344 # We will build objects and dependencies in a subdirectory because
4345 # it helps to detect inapplicable dependency modes. For instance
4346 # both Tru64's cc and ICC support -MD to output dependencies as a
4347 # side effect of compilation, but ICC will put the dependencies in
4348 # the current directory while Tru64 will put them in the object
4349 # directory.
4350 mkdir sub
4351
4352 am_cv_CC_dependencies_compiler_type=none
4353 if test "$am_compiler_list" = ""; then
4354 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4355 fi
4356 am__universal=false
4357 case " $depcc " in #(
4358 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4359 esac
4360
4361 for depmode in $am_compiler_list; do
4362 # Setup a source with many dependencies, because some compilers
4363 # like to wrap large dependency lists on column 80 (with \), and
4364 # we should not choose a depcomp mode which is confused by this.
4365 #
4366 # We need to recreate these files for each test, as the compiler may
4367 # overwrite some of them when testing with obscure command lines.
4368 # This happens at least with the AIX C compiler.
4369 : > sub/conftest.c
4370 for i in 1 2 3 4 5 6; do
4371 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4372 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4373 # Solaris 10 /bin/sh.
4374 echo '/* dummy */' > sub/conftst$i.h
4375 done
4376 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4377
4378 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4379 # mode. It turns out that the SunPro C++ compiler does not properly
4380 # handle '-M -o', and we need to detect this. Also, some Intel
4381 # versions had trouble with output in subdirs.
4382 am__obj=sub/conftest.${OBJEXT-o}
4383 am__minus_obj="-o $am__obj"
4384 case $depmode in
4385 gcc)
4386 # This depmode causes a compiler race in universal mode.
4387 test "$am__universal" = false || continue
4388 ;;
4389 nosideeffect)
4390 # After this tag, mechanisms are not by side-effect, so they'll
4391 # only be used when explicitly requested.
4392 if test "x$enable_dependency_tracking" = xyes; then
4393 continue
4394 else
4395 break
4396 fi
4397 ;;
4398 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4399 # This compiler won't grok '-c -o', but also, the minuso test has
4400 # not run yet. These depmodes are late enough in the game, and
4401 # so weak that their functioning should not be impacted.
4402 am__obj=conftest.${OBJEXT-o}
4403 am__minus_obj=
4404 ;;
4405 none) break ;;
4406 esac
4407 if depmode=$depmode \
4408 source=sub/conftest.c object=$am__obj \
4409 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4410 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4411 >/dev/null 2>conftest.err &&
4412 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4413 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4414 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4415 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4416 # icc doesn't choke on unknown options, it will just issue warnings
4417 # or remarks (even with -Werror). So we grep stderr for any message
4418 # that says an option was ignored or not supported.
4419 # When given -MP, icc 7.0 and 7.1 complain thusly:
4420 # icc: Command line warning: ignoring option '-M'; no argument required
4421 # The diagnosis changed in icc 8.0:
4422 # icc: Command line remark: option '-MP' not supported
4423 if (grep 'ignoring option' conftest.err ||
4424 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4425 am_cv_CC_dependencies_compiler_type=$depmode
4426 break
4427 fi
4428 fi
4429 done
4430
4431 cd ..
4432 rm -rf conftest.dir
4433 else
4434 am_cv_CC_dependencies_compiler_type=none
4435 fi
4436
4437 fi
4438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4439 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4440 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4441
4442 if
4443 test "x$enable_dependency_tracking" != xno \
4444 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4445 am__fastdepCC_TRUE=
4446 am__fastdepCC_FALSE='#'
4447 else
4448 am__fastdepCC_TRUE='#'
4449 am__fastdepCC_FALSE=
4450 fi
4451
4452
4453
4454
4455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4456 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4457 if test ${ac_cv_c_undeclared_builtin_options+y}
4458 then :
4459 printf %s "(cached) " >&6
4460 else $as_nop
4461 ac_save_CFLAGS=$CFLAGS
4462 ac_cv_c_undeclared_builtin_options='cannot detect'
4463 for ac_arg in '' -fno-builtin; do
4464 CFLAGS="$ac_save_CFLAGS $ac_arg"
4465 # This test program should *not* compile successfully.
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4468
4469 int
4470 main (void)
4471 {
4472 (void) strchr;
4473 ;
4474 return 0;
4475 }
4476 _ACEOF
4477 if ac_fn_c_try_compile "$LINENO"
4478 then :
4479
4480 else $as_nop
4481 # This test program should compile successfully.
4482 # No library function is consistently available on
4483 # freestanding implementations, so test against a dummy
4484 # declaration. Include always-available headers on the
4485 # off chance that they somehow elicit warnings.
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4488 #include <float.h>
4489 #include <limits.h>
4490 #include <stdarg.h>
4491 #include <stddef.h>
4492 extern void ac_decl (int, char *);
4493
4494 int
4495 main (void)
4496 {
4497 (void) ac_decl (0, (char *) 0);
4498 (void) ac_decl;
4499
4500 ;
4501 return 0;
4502 }
4503 _ACEOF
4504 if ac_fn_c_try_compile "$LINENO"
4505 then :
4506 if test x"$ac_arg" = x
4507 then :
4508 ac_cv_c_undeclared_builtin_options='none needed'
4509 else $as_nop
4510 ac_cv_c_undeclared_builtin_options=$ac_arg
4511 fi
4512 break
4513 fi
4514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4515 fi
4516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4517 done
4518 CFLAGS=$ac_save_CFLAGS
4519
4520 fi
4521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4522 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4523 case $ac_cv_c_undeclared_builtin_options in #(
4524 'cannot detect') :
4525 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4526 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4527 as_fn_error $? "cannot make $CC report undeclared builtins
4528 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4529 'none needed') :
4530 ac_c_undeclared_builtin_options='' ;; #(
4531 *) :
4532 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4533 esac
4534
4535 ac_header= ac_cache=
4536 for ac_item in $ac_header_c_list
4537 do
4538 if test $ac_cache; then
4539 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4540 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4541 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4542 fi
4543 ac_header= ac_cache=
4544 elif test $ac_header; then
4545 ac_cache=$ac_item
4546 else
4547 ac_header=$ac_item
4548 fi
4549 done
4550
4551
4552
4553
4554
4555
4556
4557
4558 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4559 then :
4560
4561 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4562
4563 fi
4564
4565
4566
4567
4568 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4569 if test "x$ac_cv_have_decl___clang__" = xyes
4570 then :
4571 CLANGCC="yes"
4572 else $as_nop
4573 CLANGCC="no"
4574 fi
4575 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4576 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4577 then :
4578 INTELCC="yes"
4579 else $as_nop
4580 INTELCC="no"
4581 fi
4582 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4583 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4584 then :
4585 SUNCC="yes"
4586 else $as_nop
4587 SUNCC="no"
4588 fi
4589
4590
4591
4592
4593
4594
4595
4596
4597 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4598 if test -n "$ac_tool_prefix"; then
4599 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4600 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602 printf %s "checking for $ac_word... " >&6; }
4603 if test ${ac_cv_path_PKG_CONFIG+y}
4604 then :
4605 printf %s "(cached) " >&6
4606 else $as_nop
4607 case $PKG_CONFIG in
4608 [\\/]* | ?:[\\/]*)
4609 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4610 ;;
4611 *)
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4614 do
4615 IFS=$as_save_IFS
4616 case $as_dir in #(((
4617 '') as_dir=./ ;;
4618 */) ;;
4619 *) as_dir=$as_dir/ ;;
4620 esac
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4623 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4625 break 2
4626 fi
4627 done
4628 done
4629 IFS=$as_save_IFS
4630
4631 ;;
4632 esac
4633 fi
4634 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4635 if test -n "$PKG_CONFIG"; then
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4637 printf "%s\n" "$PKG_CONFIG" >&6; }
4638 else
4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 printf "%s\n" "no" >&6; }
4641 fi
4642
4643
4644 fi
4645 if test -z "$ac_cv_path_PKG_CONFIG"; then
4646 ac_pt_PKG_CONFIG=$PKG_CONFIG
4647 # Extract the first word of "pkg-config", so it can be a program name with args.
4648 set dummy pkg-config; ac_word=$2
4649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 printf %s "checking for $ac_word... " >&6; }
4651 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4652 then :
4653 printf %s "(cached) " >&6
4654 else $as_nop
4655 case $ac_pt_PKG_CONFIG in
4656 [\\/]* | ?:[\\/]*)
4657 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4658 ;;
4659 *)
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4662 do
4663 IFS=$as_save_IFS
4664 case $as_dir in #(((
4665 '') as_dir=./ ;;
4666 */) ;;
4667 *) as_dir=$as_dir/ ;;
4668 esac
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4671 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4673 break 2
4674 fi
4675 done
4676 done
4677 IFS=$as_save_IFS
4678
4679 ;;
4680 esac
4681 fi
4682 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4683 if test -n "$ac_pt_PKG_CONFIG"; then
4684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4685 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4686 else
4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688 printf "%s\n" "no" >&6; }
4689 fi
4690
4691 if test "x$ac_pt_PKG_CONFIG" = x; then
4692 PKG_CONFIG=""
4693 else
4694 case $cross_compiling:$ac_tool_warned in
4695 yes:)
4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4697 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4698 ac_tool_warned=yes ;;
4699 esac
4700 PKG_CONFIG=$ac_pt_PKG_CONFIG
4701 fi
4702 else
4703 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4704 fi
4705
4706 fi
4707 if test -n "$PKG_CONFIG"; then
4708 _pkg_min_version=0.9.0
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4710 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4711 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4713 printf "%s\n" "yes" >&6; }
4714 else
4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 printf "%s\n" "no" >&6; }
4717 PKG_CONFIG=""
4718 fi
4719 fi
4720
4721
4722 # Make sure we can run config.sub.
4723 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4724 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4725
4726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4727 printf %s "checking build system type... " >&6; }
4728 if test ${ac_cv_build+y}
4729 then :
4730 printf %s "(cached) " >&6
4731 else $as_nop
4732 ac_build_alias=$build_alias
4733 test "x$ac_build_alias" = x &&
4734 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4735 test "x$ac_build_alias" = x &&
4736 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4737 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4738 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4739
4740 fi
4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4742 printf "%s\n" "$ac_cv_build" >&6; }
4743 case $ac_cv_build in
4744 *-*-*) ;;
4745 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4746 esac
4747 build=$ac_cv_build
4748 ac_save_IFS=$IFS; IFS='-'
4749 set x $ac_cv_build
4750 shift
4751 build_cpu=$1
4752 build_vendor=$2
4753 shift; shift
4754 # Remember, the first character of IFS is used to create $*,
4755 # except with old shells:
4756 build_os=$*
4757 IFS=$ac_save_IFS
4758 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4759
4760
4761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4762 printf %s "checking host system type... " >&6; }
4763 if test ${ac_cv_host+y}
4764 then :
4765 printf %s "(cached) " >&6
4766 else $as_nop
4767 if test "x$host_alias" = x; then
4768 ac_cv_host=$ac_cv_build
4769 else
4770 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4771 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4772 fi
4773
4774 fi
4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4776 printf "%s\n" "$ac_cv_host" >&6; }
4777 case $ac_cv_host in
4778 *-*-*) ;;
4779 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4780 esac
4781 host=$ac_cv_host
4782 ac_save_IFS=$IFS; IFS='-'
4783 set x $ac_cv_host
4784 shift
4785 host_cpu=$1
4786 host_vendor=$2
4787 shift; shift
4788 # Remember, the first character of IFS is used to create $*,
4789 # except with old shells:
4790 host_os=$*
4791 IFS=$ac_save_IFS
4792 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4793
4794
4795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4796 printf %s "checking for a sed that does not truncate output... " >&6; }
4797 if test ${ac_cv_path_SED+y}
4798 then :
4799 printf %s "(cached) " >&6
4800 else $as_nop
4801 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4802 for ac_i in 1 2 3 4 5 6 7; do
4803 ac_script="$ac_script$as_nl$ac_script"
4804 done
4805 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4806 { ac_script=; unset ac_script;}
4807 if test -z "$SED"; then
4808 ac_path_SED_found=false
4809 # Loop through the user's path and test for each of PROGNAME-LIST
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH
4812 do
4813 IFS=$as_save_IFS
4814 case $as_dir in #(((
4815 '') as_dir=./ ;;
4816 */) ;;
4817 *) as_dir=$as_dir/ ;;
4818 esac
4819 for ac_prog in sed gsed
4820 do
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4823 as_fn_executable_p "$ac_path_SED" || continue
4824 # Check for GNU ac_path_SED and select it if it is found.
4825 # Check for GNU $ac_path_SED
4826 case `"$ac_path_SED" --version 2>&1` in
4827 *GNU*)
4828 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4829 *)
4830 ac_count=0
4831 printf %s 0123456789 >"conftest.in"
4832 while :
4833 do
4834 cat "conftest.in" "conftest.in" >"conftest.tmp"
4835 mv "conftest.tmp" "conftest.in"
4836 cp "conftest.in" "conftest.nl"
4837 printf "%s\n" '' >> "conftest.nl"
4838 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4839 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4840 as_fn_arith $ac_count + 1 && ac_count=$as_val
4841 if test $ac_count -gt ${ac_path_SED_max-0}; then
4842 # Best one so far, save it but keep looking for a better one
4843 ac_cv_path_SED="$ac_path_SED"
4844 ac_path_SED_max=$ac_count
4845 fi
4846 # 10*(2^10) chars as input seems more than enough
4847 test $ac_count -gt 10 && break
4848 done
4849 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4850 esac
4851
4852 $ac_path_SED_found && break 3
4853 done
4854 done
4855 done
4856 IFS=$as_save_IFS
4857 if test -z "$ac_cv_path_SED"; then
4858 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4859 fi
4860 else
4861 ac_cv_path_SED=$SED
4862 fi
4863
4864 fi
4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4866 printf "%s\n" "$ac_cv_path_SED" >&6; }
4867 SED="$ac_cv_path_SED"
4868 rm -f conftest.sed
4869
4870
4871
4872
4873
4874
4875 # Check whether --enable-selective-werror was given.
4876 if test ${enable_selective_werror+y}
4877 then :
4878 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4879 else $as_nop
4880 SELECTIVE_WERROR=yes
4881 fi
4882
4883
4884
4885
4886
4887 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4888 if test "x$SUNCC" = "xyes"; then
4889 BASE_CFLAGS="-v"
4890 else
4891 BASE_CFLAGS=""
4892 fi
4893
4894 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908 xorg_testset_save_CFLAGS="$CFLAGS"
4909
4910 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4913 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4914 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4915 then :
4916 printf %s "(cached) " >&6
4917 else $as_nop
4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919 /* end confdefs.h. */
4920 int i;
4921 _ACEOF
4922 if ac_fn_c_try_compile "$LINENO"
4923 then :
4924 xorg_cv_cc_flag_unknown_warning_option=yes
4925 else $as_nop
4926 xorg_cv_cc_flag_unknown_warning_option=no
4927 fi
4928 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4929 fi
4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4931 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4933 CFLAGS="$xorg_testset_save_CFLAGS"
4934 fi
4935
4936 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4939 fi
4940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4942 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4943 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4944 then :
4945 printf %s "(cached) " >&6
4946 else $as_nop
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4949 int i;
4950 _ACEOF
4951 if ac_fn_c_try_compile "$LINENO"
4952 then :
4953 xorg_cv_cc_flag_unused_command_line_argument=yes
4954 else $as_nop
4955 xorg_cv_cc_flag_unused_command_line_argument=no
4956 fi
4957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4958 fi
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4960 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4962 CFLAGS="$xorg_testset_save_CFLAGS"
4963 fi
4964
4965 found="no"
4966
4967 if test $found = "no" ; then
4968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4970 fi
4971
4972 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4974 fi
4975
4976 CFLAGS="$CFLAGS -Wall"
4977
4978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4979 printf %s "checking if $CC supports -Wall... " >&6; }
4980 cacheid=xorg_cv_cc_flag__Wall
4981 if eval test \${$cacheid+y}
4982 then :
4983 printf %s "(cached) " >&6
4984 else $as_nop
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4987 int i;
4988 int
4989 main (void)
4990 {
4991
4992 ;
4993 return 0;
4994 }
4995 _ACEOF
4996 if ac_fn_c_try_link "$LINENO"
4997 then :
4998 eval $cacheid=yes
4999 else $as_nop
5000 eval $cacheid=no
5001 fi
5002 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5003 conftest$ac_exeext conftest.$ac_ext
5004 fi
5005
5006
5007 CFLAGS="$xorg_testset_save_CFLAGS"
5008
5009 eval supported=\$$cacheid
5010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5011 printf "%s\n" "$supported" >&6; }
5012 if test "$supported" = "yes" ; then
5013 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5014 found="yes"
5015 fi
5016 fi
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032 xorg_testset_save_CFLAGS="$CFLAGS"
5033
5034 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5037 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5038 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5039 then :
5040 printf %s "(cached) " >&6
5041 else $as_nop
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h. */
5044 int i;
5045 _ACEOF
5046 if ac_fn_c_try_compile "$LINENO"
5047 then :
5048 xorg_cv_cc_flag_unknown_warning_option=yes
5049 else $as_nop
5050 xorg_cv_cc_flag_unknown_warning_option=no
5051 fi
5052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5053 fi
5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5055 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5057 CFLAGS="$xorg_testset_save_CFLAGS"
5058 fi
5059
5060 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5063 fi
5064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5066 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5067 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
5075 if ac_fn_c_try_compile "$LINENO"
5076 then :
5077 xorg_cv_cc_flag_unused_command_line_argument=yes
5078 else $as_nop
5079 xorg_cv_cc_flag_unused_command_line_argument=no
5080 fi
5081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5082 fi
5083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5084 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5086 CFLAGS="$xorg_testset_save_CFLAGS"
5087 fi
5088
5089 found="no"
5090
5091 if test $found = "no" ; then
5092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5094 fi
5095
5096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5098 fi
5099
5100 CFLAGS="$CFLAGS -Wpointer-arith"
5101
5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5103 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5104 cacheid=xorg_cv_cc_flag__Wpointer_arith
5105 if eval test \${$cacheid+y}
5106 then :
5107 printf %s "(cached) " >&6
5108 else $as_nop
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5111 int i;
5112 int
5113 main (void)
5114 {
5115
5116 ;
5117 return 0;
5118 }
5119 _ACEOF
5120 if ac_fn_c_try_link "$LINENO"
5121 then :
5122 eval $cacheid=yes
5123 else $as_nop
5124 eval $cacheid=no
5125 fi
5126 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5127 conftest$ac_exeext conftest.$ac_ext
5128 fi
5129
5130
5131 CFLAGS="$xorg_testset_save_CFLAGS"
5132
5133 eval supported=\$$cacheid
5134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5135 printf "%s\n" "$supported" >&6; }
5136 if test "$supported" = "yes" ; then
5137 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5138 found="yes"
5139 fi
5140 fi
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156 xorg_testset_save_CFLAGS="$CFLAGS"
5157
5158 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5161 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5162 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5163 then :
5164 printf %s "(cached) " >&6
5165 else $as_nop
5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h. */
5168 int i;
5169 _ACEOF
5170 if ac_fn_c_try_compile "$LINENO"
5171 then :
5172 xorg_cv_cc_flag_unknown_warning_option=yes
5173 else $as_nop
5174 xorg_cv_cc_flag_unknown_warning_option=no
5175 fi
5176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5177 fi
5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5179 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5181 CFLAGS="$xorg_testset_save_CFLAGS"
5182 fi
5183
5184 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5187 fi
5188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5190 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5191 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
5199 if ac_fn_c_try_compile "$LINENO"
5200 then :
5201 xorg_cv_cc_flag_unused_command_line_argument=yes
5202 else $as_nop
5203 xorg_cv_cc_flag_unused_command_line_argument=no
5204 fi
5205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5206 fi
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5208 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5210 CFLAGS="$xorg_testset_save_CFLAGS"
5211 fi
5212
5213 found="no"
5214
5215 if test $found = "no" ; then
5216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5218 fi
5219
5220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5222 fi
5223
5224 CFLAGS="$CFLAGS -Wmissing-declarations"
5225
5226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5227 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5228 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5229 if eval test \${$cacheid+y}
5230 then :
5231 printf %s "(cached) " >&6
5232 else $as_nop
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5235 int i;
5236 int
5237 main (void)
5238 {
5239
5240 ;
5241 return 0;
5242 }
5243 _ACEOF
5244 if ac_fn_c_try_link "$LINENO"
5245 then :
5246 eval $cacheid=yes
5247 else $as_nop
5248 eval $cacheid=no
5249 fi
5250 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5251 conftest$ac_exeext conftest.$ac_ext
5252 fi
5253
5254
5255 CFLAGS="$xorg_testset_save_CFLAGS"
5256
5257 eval supported=\$$cacheid
5258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5259 printf "%s\n" "$supported" >&6; }
5260 if test "$supported" = "yes" ; then
5261 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5262 found="yes"
5263 fi
5264 fi
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280 xorg_testset_save_CFLAGS="$CFLAGS"
5281
5282 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5285 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5286 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5287 then :
5288 printf %s "(cached) " >&6
5289 else $as_nop
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5292 int i;
5293 _ACEOF
5294 if ac_fn_c_try_compile "$LINENO"
5295 then :
5296 xorg_cv_cc_flag_unknown_warning_option=yes
5297 else $as_nop
5298 xorg_cv_cc_flag_unknown_warning_option=no
5299 fi
5300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5301 fi
5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5303 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5304 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5305 CFLAGS="$xorg_testset_save_CFLAGS"
5306 fi
5307
5308 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5311 fi
5312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5314 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5315 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
5323 if ac_fn_c_try_compile "$LINENO"
5324 then :
5325 xorg_cv_cc_flag_unused_command_line_argument=yes
5326 else $as_nop
5327 xorg_cv_cc_flag_unused_command_line_argument=no
5328 fi
5329 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5330 fi
5331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5332 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5334 CFLAGS="$xorg_testset_save_CFLAGS"
5335 fi
5336
5337 found="no"
5338
5339 if test $found = "no" ; then
5340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5342 fi
5343
5344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5346 fi
5347
5348 CFLAGS="$CFLAGS -Wformat=2"
5349
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5351 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5352 cacheid=xorg_cv_cc_flag__Wformat_2
5353 if eval test \${$cacheid+y}
5354 then :
5355 printf %s "(cached) " >&6
5356 else $as_nop
5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358 /* end confdefs.h. */
5359 int i;
5360 int
5361 main (void)
5362 {
5363
5364 ;
5365 return 0;
5366 }
5367 _ACEOF
5368 if ac_fn_c_try_link "$LINENO"
5369 then :
5370 eval $cacheid=yes
5371 else $as_nop
5372 eval $cacheid=no
5373 fi
5374 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5375 conftest$ac_exeext conftest.$ac_ext
5376 fi
5377
5378
5379 CFLAGS="$xorg_testset_save_CFLAGS"
5380
5381 eval supported=\$$cacheid
5382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5383 printf "%s\n" "$supported" >&6; }
5384 if test "$supported" = "yes" ; then
5385 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5386 found="yes"
5387 fi
5388 fi
5389
5390 if test $found = "no" ; then
5391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5393 fi
5394
5395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5397 fi
5398
5399 CFLAGS="$CFLAGS -Wformat"
5400
5401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5402 printf %s "checking if $CC supports -Wformat... " >&6; }
5403 cacheid=xorg_cv_cc_flag__Wformat
5404 if eval test \${$cacheid+y}
5405 then :
5406 printf %s "(cached) " >&6
5407 else $as_nop
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5410 int i;
5411 int
5412 main (void)
5413 {
5414
5415 ;
5416 return 0;
5417 }
5418 _ACEOF
5419 if ac_fn_c_try_link "$LINENO"
5420 then :
5421 eval $cacheid=yes
5422 else $as_nop
5423 eval $cacheid=no
5424 fi
5425 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5426 conftest$ac_exeext conftest.$ac_ext
5427 fi
5428
5429
5430 CFLAGS="$xorg_testset_save_CFLAGS"
5431
5432 eval supported=\$$cacheid
5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5434 printf "%s\n" "$supported" >&6; }
5435 if test "$supported" = "yes" ; then
5436 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5437 found="yes"
5438 fi
5439 fi
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457 xorg_testset_save_CFLAGS="$CFLAGS"
5458
5459 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5462 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5463 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5464 then :
5465 printf %s "(cached) " >&6
5466 else $as_nop
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469 int i;
5470 _ACEOF
5471 if ac_fn_c_try_compile "$LINENO"
5472 then :
5473 xorg_cv_cc_flag_unknown_warning_option=yes
5474 else $as_nop
5475 xorg_cv_cc_flag_unknown_warning_option=no
5476 fi
5477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5478 fi
5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5480 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5482 CFLAGS="$xorg_testset_save_CFLAGS"
5483 fi
5484
5485 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5488 fi
5489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5491 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5492 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5493 then :
5494 printf %s "(cached) " >&6
5495 else $as_nop
5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497 /* end confdefs.h. */
5498 int i;
5499 _ACEOF
5500 if ac_fn_c_try_compile "$LINENO"
5501 then :
5502 xorg_cv_cc_flag_unused_command_line_argument=yes
5503 else $as_nop
5504 xorg_cv_cc_flag_unused_command_line_argument=no
5505 fi
5506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5507 fi
5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5509 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5511 CFLAGS="$xorg_testset_save_CFLAGS"
5512 fi
5513
5514 found="no"
5515
5516 if test $found = "no" ; then
5517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5519 fi
5520
5521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5523 fi
5524
5525 CFLAGS="$CFLAGS -Wstrict-prototypes"
5526
5527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5528 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5529 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5530 if eval test \${$cacheid+y}
5531 then :
5532 printf %s "(cached) " >&6
5533 else $as_nop
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5536 int i;
5537 int
5538 main (void)
5539 {
5540
5541 ;
5542 return 0;
5543 }
5544 _ACEOF
5545 if ac_fn_c_try_link "$LINENO"
5546 then :
5547 eval $cacheid=yes
5548 else $as_nop
5549 eval $cacheid=no
5550 fi
5551 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5552 conftest$ac_exeext conftest.$ac_ext
5553 fi
5554
5555
5556 CFLAGS="$xorg_testset_save_CFLAGS"
5557
5558 eval supported=\$$cacheid
5559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5560 printf "%s\n" "$supported" >&6; }
5561 if test "$supported" = "yes" ; then
5562 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5563 found="yes"
5564 fi
5565 fi
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581 xorg_testset_save_CFLAGS="$CFLAGS"
5582
5583 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5586 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5587 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5588 then :
5589 printf %s "(cached) " >&6
5590 else $as_nop
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593 int i;
5594 _ACEOF
5595 if ac_fn_c_try_compile "$LINENO"
5596 then :
5597 xorg_cv_cc_flag_unknown_warning_option=yes
5598 else $as_nop
5599 xorg_cv_cc_flag_unknown_warning_option=no
5600 fi
5601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5602 fi
5603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5604 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5605 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5606 CFLAGS="$xorg_testset_save_CFLAGS"
5607 fi
5608
5609 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5612 fi
5613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5615 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5616 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
5624 if ac_fn_c_try_compile "$LINENO"
5625 then :
5626 xorg_cv_cc_flag_unused_command_line_argument=yes
5627 else $as_nop
5628 xorg_cv_cc_flag_unused_command_line_argument=no
5629 fi
5630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5631 fi
5632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5633 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5634 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5635 CFLAGS="$xorg_testset_save_CFLAGS"
5636 fi
5637
5638 found="no"
5639
5640 if test $found = "no" ; then
5641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5643 fi
5644
5645 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5647 fi
5648
5649 CFLAGS="$CFLAGS -Wmissing-prototypes"
5650
5651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5652 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5653 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5654 if eval test \${$cacheid+y}
5655 then :
5656 printf %s "(cached) " >&6
5657 else $as_nop
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660 int i;
5661 int
5662 main (void)
5663 {
5664
5665 ;
5666 return 0;
5667 }
5668 _ACEOF
5669 if ac_fn_c_try_link "$LINENO"
5670 then :
5671 eval $cacheid=yes
5672 else $as_nop
5673 eval $cacheid=no
5674 fi
5675 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5676 conftest$ac_exeext conftest.$ac_ext
5677 fi
5678
5679
5680 CFLAGS="$xorg_testset_save_CFLAGS"
5681
5682 eval supported=\$$cacheid
5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5684 printf "%s\n" "$supported" >&6; }
5685 if test "$supported" = "yes" ; then
5686 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5687 found="yes"
5688 fi
5689 fi
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705 xorg_testset_save_CFLAGS="$CFLAGS"
5706
5707 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5710 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5711 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5712 then :
5713 printf %s "(cached) " >&6
5714 else $as_nop
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5717 int i;
5718 _ACEOF
5719 if ac_fn_c_try_compile "$LINENO"
5720 then :
5721 xorg_cv_cc_flag_unknown_warning_option=yes
5722 else $as_nop
5723 xorg_cv_cc_flag_unknown_warning_option=no
5724 fi
5725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5726 fi
5727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5728 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5729 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5730 CFLAGS="$xorg_testset_save_CFLAGS"
5731 fi
5732
5733 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5736 fi
5737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5739 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5740 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
5748 if ac_fn_c_try_compile "$LINENO"
5749 then :
5750 xorg_cv_cc_flag_unused_command_line_argument=yes
5751 else $as_nop
5752 xorg_cv_cc_flag_unused_command_line_argument=no
5753 fi
5754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5755 fi
5756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5757 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5759 CFLAGS="$xorg_testset_save_CFLAGS"
5760 fi
5761
5762 found="no"
5763
5764 if test $found = "no" ; then
5765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5767 fi
5768
5769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5771 fi
5772
5773 CFLAGS="$CFLAGS -Wnested-externs"
5774
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5776 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5777 cacheid=xorg_cv_cc_flag__Wnested_externs
5778 if eval test \${$cacheid+y}
5779 then :
5780 printf %s "(cached) " >&6
5781 else $as_nop
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5784 int i;
5785 int
5786 main (void)
5787 {
5788
5789 ;
5790 return 0;
5791 }
5792 _ACEOF
5793 if ac_fn_c_try_link "$LINENO"
5794 then :
5795 eval $cacheid=yes
5796 else $as_nop
5797 eval $cacheid=no
5798 fi
5799 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5800 conftest$ac_exeext conftest.$ac_ext
5801 fi
5802
5803
5804 CFLAGS="$xorg_testset_save_CFLAGS"
5805
5806 eval supported=\$$cacheid
5807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5808 printf "%s\n" "$supported" >&6; }
5809 if test "$supported" = "yes" ; then
5810 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5811 found="yes"
5812 fi
5813 fi
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829 xorg_testset_save_CFLAGS="$CFLAGS"
5830
5831 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5834 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5835 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5836 then :
5837 printf %s "(cached) " >&6
5838 else $as_nop
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5841 int i;
5842 _ACEOF
5843 if ac_fn_c_try_compile "$LINENO"
5844 then :
5845 xorg_cv_cc_flag_unknown_warning_option=yes
5846 else $as_nop
5847 xorg_cv_cc_flag_unknown_warning_option=no
5848 fi
5849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5850 fi
5851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5852 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5854 CFLAGS="$xorg_testset_save_CFLAGS"
5855 fi
5856
5857 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5860 fi
5861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5863 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5864 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
5872 if ac_fn_c_try_compile "$LINENO"
5873 then :
5874 xorg_cv_cc_flag_unused_command_line_argument=yes
5875 else $as_nop
5876 xorg_cv_cc_flag_unused_command_line_argument=no
5877 fi
5878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5879 fi
5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5881 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5883 CFLAGS="$xorg_testset_save_CFLAGS"
5884 fi
5885
5886 found="no"
5887
5888 if test $found = "no" ; then
5889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5891 fi
5892
5893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5895 fi
5896
5897 CFLAGS="$CFLAGS -Wbad-function-cast"
5898
5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5900 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5901 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5902 if eval test \${$cacheid+y}
5903 then :
5904 printf %s "(cached) " >&6
5905 else $as_nop
5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907 /* end confdefs.h. */
5908 int i;
5909 int
5910 main (void)
5911 {
5912
5913 ;
5914 return 0;
5915 }
5916 _ACEOF
5917 if ac_fn_c_try_link "$LINENO"
5918 then :
5919 eval $cacheid=yes
5920 else $as_nop
5921 eval $cacheid=no
5922 fi
5923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5924 conftest$ac_exeext conftest.$ac_ext
5925 fi
5926
5927
5928 CFLAGS="$xorg_testset_save_CFLAGS"
5929
5930 eval supported=\$$cacheid
5931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5932 printf "%s\n" "$supported" >&6; }
5933 if test "$supported" = "yes" ; then
5934 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5935 found="yes"
5936 fi
5937 fi
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953 xorg_testset_save_CFLAGS="$CFLAGS"
5954
5955 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5958 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5959 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5960 then :
5961 printf %s "(cached) " >&6
5962 else $as_nop
5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h. */
5965 int i;
5966 _ACEOF
5967 if ac_fn_c_try_compile "$LINENO"
5968 then :
5969 xorg_cv_cc_flag_unknown_warning_option=yes
5970 else $as_nop
5971 xorg_cv_cc_flag_unknown_warning_option=no
5972 fi
5973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5974 fi
5975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5976 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5978 CFLAGS="$xorg_testset_save_CFLAGS"
5979 fi
5980
5981 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5984 fi
5985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5987 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5988 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
5996 if ac_fn_c_try_compile "$LINENO"
5997 then :
5998 xorg_cv_cc_flag_unused_command_line_argument=yes
5999 else $as_nop
6000 xorg_cv_cc_flag_unused_command_line_argument=no
6001 fi
6002 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6003 fi
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6005 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6007 CFLAGS="$xorg_testset_save_CFLAGS"
6008 fi
6009
6010 found="no"
6011
6012 if test $found = "no" ; then
6013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6015 fi
6016
6017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6019 fi
6020
6021 CFLAGS="$CFLAGS -Wold-style-definition"
6022
6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6024 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6025 cacheid=xorg_cv_cc_flag__Wold_style_definition
6026 if eval test \${$cacheid+y}
6027 then :
6028 printf %s "(cached) " >&6
6029 else $as_nop
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6032 int i;
6033 int
6034 main (void)
6035 {
6036
6037 ;
6038 return 0;
6039 }
6040 _ACEOF
6041 if ac_fn_c_try_link "$LINENO"
6042 then :
6043 eval $cacheid=yes
6044 else $as_nop
6045 eval $cacheid=no
6046 fi
6047 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6048 conftest$ac_exeext conftest.$ac_ext
6049 fi
6050
6051
6052 CFLAGS="$xorg_testset_save_CFLAGS"
6053
6054 eval supported=\$$cacheid
6055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6056 printf "%s\n" "$supported" >&6; }
6057 if test "$supported" = "yes" ; then
6058 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6059 found="yes"
6060 fi
6061 fi
6062
6063 if test $found = "no" ; then
6064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6066 fi
6067
6068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6070 fi
6071
6072 CFLAGS="$CFLAGS -fd"
6073
6074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6075 printf %s "checking if $CC supports -fd... " >&6; }
6076 cacheid=xorg_cv_cc_flag__fd
6077 if eval test \${$cacheid+y}
6078 then :
6079 printf %s "(cached) " >&6
6080 else $as_nop
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6083 int i;
6084 int
6085 main (void)
6086 {
6087
6088 ;
6089 return 0;
6090 }
6091 _ACEOF
6092 if ac_fn_c_try_link "$LINENO"
6093 then :
6094 eval $cacheid=yes
6095 else $as_nop
6096 eval $cacheid=no
6097 fi
6098 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6099 conftest$ac_exeext conftest.$ac_ext
6100 fi
6101
6102
6103 CFLAGS="$xorg_testset_save_CFLAGS"
6104
6105 eval supported=\$$cacheid
6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6107 printf "%s\n" "$supported" >&6; }
6108 if test "$supported" = "yes" ; then
6109 BASE_CFLAGS="$BASE_CFLAGS -fd"
6110 found="yes"
6111 fi
6112 fi
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128 xorg_testset_save_CFLAGS="$CFLAGS"
6129
6130 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6133 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6134 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6135 then :
6136 printf %s "(cached) " >&6
6137 else $as_nop
6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139 /* end confdefs.h. */
6140 int i;
6141 _ACEOF
6142 if ac_fn_c_try_compile "$LINENO"
6143 then :
6144 xorg_cv_cc_flag_unknown_warning_option=yes
6145 else $as_nop
6146 xorg_cv_cc_flag_unknown_warning_option=no
6147 fi
6148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6149 fi
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6151 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6153 CFLAGS="$xorg_testset_save_CFLAGS"
6154 fi
6155
6156 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6159 fi
6160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6162 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6163 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
6171 if ac_fn_c_try_compile "$LINENO"
6172 then :
6173 xorg_cv_cc_flag_unused_command_line_argument=yes
6174 else $as_nop
6175 xorg_cv_cc_flag_unused_command_line_argument=no
6176 fi
6177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6178 fi
6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6180 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6182 CFLAGS="$xorg_testset_save_CFLAGS"
6183 fi
6184
6185 found="no"
6186
6187 if test $found = "no" ; then
6188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6190 fi
6191
6192 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6194 fi
6195
6196 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6197
6198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6199 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6200 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6201 if eval test \${$cacheid+y}
6202 then :
6203 printf %s "(cached) " >&6
6204 else $as_nop
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6207 int i;
6208 int
6209 main (void)
6210 {
6211
6212 ;
6213 return 0;
6214 }
6215 _ACEOF
6216 if ac_fn_c_try_link "$LINENO"
6217 then :
6218 eval $cacheid=yes
6219 else $as_nop
6220 eval $cacheid=no
6221 fi
6222 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6223 conftest$ac_exeext conftest.$ac_ext
6224 fi
6225
6226
6227 CFLAGS="$xorg_testset_save_CFLAGS"
6228
6229 eval supported=\$$cacheid
6230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6231 printf "%s\n" "$supported" >&6; }
6232 if test "$supported" = "yes" ; then
6233 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6234 found="yes"
6235 fi
6236 fi
6237
6238
6239
6240
6241
6242 # This chunk adds additional warnings that could catch undesired effects.
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256 xorg_testset_save_CFLAGS="$CFLAGS"
6257
6258 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6261 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6262 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6263 then :
6264 printf %s "(cached) " >&6
6265 else $as_nop
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6268 int i;
6269 _ACEOF
6270 if ac_fn_c_try_compile "$LINENO"
6271 then :
6272 xorg_cv_cc_flag_unknown_warning_option=yes
6273 else $as_nop
6274 xorg_cv_cc_flag_unknown_warning_option=no
6275 fi
6276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6277 fi
6278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6279 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6281 CFLAGS="$xorg_testset_save_CFLAGS"
6282 fi
6283
6284 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6287 fi
6288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6290 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6291 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6292 then :
6293 printf %s "(cached) " >&6
6294 else $as_nop
6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h. */
6297 int i;
6298 _ACEOF
6299 if ac_fn_c_try_compile "$LINENO"
6300 then :
6301 xorg_cv_cc_flag_unused_command_line_argument=yes
6302 else $as_nop
6303 xorg_cv_cc_flag_unused_command_line_argument=no
6304 fi
6305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6306 fi
6307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6308 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6309 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6310 CFLAGS="$xorg_testset_save_CFLAGS"
6311 fi
6312
6313 found="no"
6314
6315 if test $found = "no" ; then
6316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6318 fi
6319
6320 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6322 fi
6323
6324 CFLAGS="$CFLAGS -Wunused"
6325
6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6327 printf %s "checking if $CC supports -Wunused... " >&6; }
6328 cacheid=xorg_cv_cc_flag__Wunused
6329 if eval test \${$cacheid+y}
6330 then :
6331 printf %s "(cached) " >&6
6332 else $as_nop
6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334 /* end confdefs.h. */
6335 int i;
6336 int
6337 main (void)
6338 {
6339
6340 ;
6341 return 0;
6342 }
6343 _ACEOF
6344 if ac_fn_c_try_link "$LINENO"
6345 then :
6346 eval $cacheid=yes
6347 else $as_nop
6348 eval $cacheid=no
6349 fi
6350 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6351 conftest$ac_exeext conftest.$ac_ext
6352 fi
6353
6354
6355 CFLAGS="$xorg_testset_save_CFLAGS"
6356
6357 eval supported=\$$cacheid
6358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6359 printf "%s\n" "$supported" >&6; }
6360 if test "$supported" = "yes" ; then
6361 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6362 found="yes"
6363 fi
6364 fi
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380 xorg_testset_save_CFLAGS="$CFLAGS"
6381
6382 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6385 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6386 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6387 then :
6388 printf %s "(cached) " >&6
6389 else $as_nop
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6392 int i;
6393 _ACEOF
6394 if ac_fn_c_try_compile "$LINENO"
6395 then :
6396 xorg_cv_cc_flag_unknown_warning_option=yes
6397 else $as_nop
6398 xorg_cv_cc_flag_unknown_warning_option=no
6399 fi
6400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6401 fi
6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6403 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6405 CFLAGS="$xorg_testset_save_CFLAGS"
6406 fi
6407
6408 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6411 fi
6412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6414 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6415 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
6423 if ac_fn_c_try_compile "$LINENO"
6424 then :
6425 xorg_cv_cc_flag_unused_command_line_argument=yes
6426 else $as_nop
6427 xorg_cv_cc_flag_unused_command_line_argument=no
6428 fi
6429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6430 fi
6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6432 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6433 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6434 CFLAGS="$xorg_testset_save_CFLAGS"
6435 fi
6436
6437 found="no"
6438
6439 if test $found = "no" ; then
6440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6442 fi
6443
6444 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6446 fi
6447
6448 CFLAGS="$CFLAGS -Wuninitialized"
6449
6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6451 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6452 cacheid=xorg_cv_cc_flag__Wuninitialized
6453 if eval test \${$cacheid+y}
6454 then :
6455 printf %s "(cached) " >&6
6456 else $as_nop
6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6459 int i;
6460 int
6461 main (void)
6462 {
6463
6464 ;
6465 return 0;
6466 }
6467 _ACEOF
6468 if ac_fn_c_try_link "$LINENO"
6469 then :
6470 eval $cacheid=yes
6471 else $as_nop
6472 eval $cacheid=no
6473 fi
6474 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6475 conftest$ac_exeext conftest.$ac_ext
6476 fi
6477
6478
6479 CFLAGS="$xorg_testset_save_CFLAGS"
6480
6481 eval supported=\$$cacheid
6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6483 printf "%s\n" "$supported" >&6; }
6484 if test "$supported" = "yes" ; then
6485 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6486 found="yes"
6487 fi
6488 fi
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504 xorg_testset_save_CFLAGS="$CFLAGS"
6505
6506 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6509 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6510 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6511 then :
6512 printf %s "(cached) " >&6
6513 else $as_nop
6514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515 /* end confdefs.h. */
6516 int i;
6517 _ACEOF
6518 if ac_fn_c_try_compile "$LINENO"
6519 then :
6520 xorg_cv_cc_flag_unknown_warning_option=yes
6521 else $as_nop
6522 xorg_cv_cc_flag_unknown_warning_option=no
6523 fi
6524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6525 fi
6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6527 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6528 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6529 CFLAGS="$xorg_testset_save_CFLAGS"
6530 fi
6531
6532 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6535 fi
6536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6538 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6539 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
6547 if ac_fn_c_try_compile "$LINENO"
6548 then :
6549 xorg_cv_cc_flag_unused_command_line_argument=yes
6550 else $as_nop
6551 xorg_cv_cc_flag_unused_command_line_argument=no
6552 fi
6553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6554 fi
6555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6556 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6557 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6558 CFLAGS="$xorg_testset_save_CFLAGS"
6559 fi
6560
6561 found="no"
6562
6563 if test $found = "no" ; then
6564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6566 fi
6567
6568 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6570 fi
6571
6572 CFLAGS="$CFLAGS -Wshadow"
6573
6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6575 printf %s "checking if $CC supports -Wshadow... " >&6; }
6576 cacheid=xorg_cv_cc_flag__Wshadow
6577 if eval test \${$cacheid+y}
6578 then :
6579 printf %s "(cached) " >&6
6580 else $as_nop
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6583 int i;
6584 int
6585 main (void)
6586 {
6587
6588 ;
6589 return 0;
6590 }
6591 _ACEOF
6592 if ac_fn_c_try_link "$LINENO"
6593 then :
6594 eval $cacheid=yes
6595 else $as_nop
6596 eval $cacheid=no
6597 fi
6598 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6599 conftest$ac_exeext conftest.$ac_ext
6600 fi
6601
6602
6603 CFLAGS="$xorg_testset_save_CFLAGS"
6604
6605 eval supported=\$$cacheid
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6607 printf "%s\n" "$supported" >&6; }
6608 if test "$supported" = "yes" ; then
6609 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6610 found="yes"
6611 fi
6612 fi
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628 xorg_testset_save_CFLAGS="$CFLAGS"
6629
6630 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6633 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6634 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6635 then :
6636 printf %s "(cached) " >&6
6637 else $as_nop
6638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639 /* end confdefs.h. */
6640 int i;
6641 _ACEOF
6642 if ac_fn_c_try_compile "$LINENO"
6643 then :
6644 xorg_cv_cc_flag_unknown_warning_option=yes
6645 else $as_nop
6646 xorg_cv_cc_flag_unknown_warning_option=no
6647 fi
6648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6649 fi
6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6651 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6652 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6653 CFLAGS="$xorg_testset_save_CFLAGS"
6654 fi
6655
6656 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6659 fi
6660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6662 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6663 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
6671 if ac_fn_c_try_compile "$LINENO"
6672 then :
6673 xorg_cv_cc_flag_unused_command_line_argument=yes
6674 else $as_nop
6675 xorg_cv_cc_flag_unused_command_line_argument=no
6676 fi
6677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6678 fi
6679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6680 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6681 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6682 CFLAGS="$xorg_testset_save_CFLAGS"
6683 fi
6684
6685 found="no"
6686
6687 if test $found = "no" ; then
6688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6690 fi
6691
6692 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6694 fi
6695
6696 CFLAGS="$CFLAGS -Wmissing-noreturn"
6697
6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6699 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6700 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6701 if eval test \${$cacheid+y}
6702 then :
6703 printf %s "(cached) " >&6
6704 else $as_nop
6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h. */
6707 int i;
6708 int
6709 main (void)
6710 {
6711
6712 ;
6713 return 0;
6714 }
6715 _ACEOF
6716 if ac_fn_c_try_link "$LINENO"
6717 then :
6718 eval $cacheid=yes
6719 else $as_nop
6720 eval $cacheid=no
6721 fi
6722 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6723 conftest$ac_exeext conftest.$ac_ext
6724 fi
6725
6726
6727 CFLAGS="$xorg_testset_save_CFLAGS"
6728
6729 eval supported=\$$cacheid
6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6731 printf "%s\n" "$supported" >&6; }
6732 if test "$supported" = "yes" ; then
6733 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6734 found="yes"
6735 fi
6736 fi
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752 xorg_testset_save_CFLAGS="$CFLAGS"
6753
6754 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6757 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6758 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6759 then :
6760 printf %s "(cached) " >&6
6761 else $as_nop
6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763 /* end confdefs.h. */
6764 int i;
6765 _ACEOF
6766 if ac_fn_c_try_compile "$LINENO"
6767 then :
6768 xorg_cv_cc_flag_unknown_warning_option=yes
6769 else $as_nop
6770 xorg_cv_cc_flag_unknown_warning_option=no
6771 fi
6772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6773 fi
6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6775 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6776 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6777 CFLAGS="$xorg_testset_save_CFLAGS"
6778 fi
6779
6780 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6783 fi
6784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6786 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6787 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
6795 if ac_fn_c_try_compile "$LINENO"
6796 then :
6797 xorg_cv_cc_flag_unused_command_line_argument=yes
6798 else $as_nop
6799 xorg_cv_cc_flag_unused_command_line_argument=no
6800 fi
6801 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6802 fi
6803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6804 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6806 CFLAGS="$xorg_testset_save_CFLAGS"
6807 fi
6808
6809 found="no"
6810
6811 if test $found = "no" ; then
6812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6814 fi
6815
6816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6818 fi
6819
6820 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6821
6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6823 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6824 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6825 if eval test \${$cacheid+y}
6826 then :
6827 printf %s "(cached) " >&6
6828 else $as_nop
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6831 int i;
6832 int
6833 main (void)
6834 {
6835
6836 ;
6837 return 0;
6838 }
6839 _ACEOF
6840 if ac_fn_c_try_link "$LINENO"
6841 then :
6842 eval $cacheid=yes
6843 else $as_nop
6844 eval $cacheid=no
6845 fi
6846 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6847 conftest$ac_exeext conftest.$ac_ext
6848 fi
6849
6850
6851 CFLAGS="$xorg_testset_save_CFLAGS"
6852
6853 eval supported=\$$cacheid
6854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6855 printf "%s\n" "$supported" >&6; }
6856 if test "$supported" = "yes" ; then
6857 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6858 found="yes"
6859 fi
6860 fi
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876 xorg_testset_save_CFLAGS="$CFLAGS"
6877
6878 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6881 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6882 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6883 then :
6884 printf %s "(cached) " >&6
6885 else $as_nop
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6888 int i;
6889 _ACEOF
6890 if ac_fn_c_try_compile "$LINENO"
6891 then :
6892 xorg_cv_cc_flag_unknown_warning_option=yes
6893 else $as_nop
6894 xorg_cv_cc_flag_unknown_warning_option=no
6895 fi
6896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6897 fi
6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6899 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6901 CFLAGS="$xorg_testset_save_CFLAGS"
6902 fi
6903
6904 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6907 fi
6908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6910 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6911 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
6919 if ac_fn_c_try_compile "$LINENO"
6920 then :
6921 xorg_cv_cc_flag_unused_command_line_argument=yes
6922 else $as_nop
6923 xorg_cv_cc_flag_unused_command_line_argument=no
6924 fi
6925 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6926 fi
6927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6928 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6930 CFLAGS="$xorg_testset_save_CFLAGS"
6931 fi
6932
6933 found="no"
6934
6935 if test $found = "no" ; then
6936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6938 fi
6939
6940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6942 fi
6943
6944 CFLAGS="$CFLAGS -Wredundant-decls"
6945
6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6947 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6948 cacheid=xorg_cv_cc_flag__Wredundant_decls
6949 if eval test \${$cacheid+y}
6950 then :
6951 printf %s "(cached) " >&6
6952 else $as_nop
6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954 /* end confdefs.h. */
6955 int i;
6956 int
6957 main (void)
6958 {
6959
6960 ;
6961 return 0;
6962 }
6963 _ACEOF
6964 if ac_fn_c_try_link "$LINENO"
6965 then :
6966 eval $cacheid=yes
6967 else $as_nop
6968 eval $cacheid=no
6969 fi
6970 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6971 conftest$ac_exeext conftest.$ac_ext
6972 fi
6973
6974
6975 CFLAGS="$xorg_testset_save_CFLAGS"
6976
6977 eval supported=\$$cacheid
6978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6979 printf "%s\n" "$supported" >&6; }
6980 if test "$supported" = "yes" ; then
6981 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6982 found="yes"
6983 fi
6984 fi
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000 xorg_testset_save_CFLAGS="$CFLAGS"
7001
7002 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7005 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7006 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7007 then :
7008 printf %s "(cached) " >&6
7009 else $as_nop
7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h. */
7012 int i;
7013 _ACEOF
7014 if ac_fn_c_try_compile "$LINENO"
7015 then :
7016 xorg_cv_cc_flag_unknown_warning_option=yes
7017 else $as_nop
7018 xorg_cv_cc_flag_unknown_warning_option=no
7019 fi
7020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7021 fi
7022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7023 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7024 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7025 CFLAGS="$xorg_testset_save_CFLAGS"
7026 fi
7027
7028 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7031 fi
7032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7034 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7035 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
7043 if ac_fn_c_try_compile "$LINENO"
7044 then :
7045 xorg_cv_cc_flag_unused_command_line_argument=yes
7046 else $as_nop
7047 xorg_cv_cc_flag_unused_command_line_argument=no
7048 fi
7049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7050 fi
7051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7052 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7053 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7054 CFLAGS="$xorg_testset_save_CFLAGS"
7055 fi
7056
7057 found="no"
7058
7059 if test $found = "no" ; then
7060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7062 fi
7063
7064 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7066 fi
7067
7068 CFLAGS="$CFLAGS -Wlogical-op"
7069
7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7071 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7072 cacheid=xorg_cv_cc_flag__Wlogical_op
7073 if eval test \${$cacheid+y}
7074 then :
7075 printf %s "(cached) " >&6
7076 else $as_nop
7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078 /* end confdefs.h. */
7079 int i;
7080 int
7081 main (void)
7082 {
7083
7084 ;
7085 return 0;
7086 }
7087 _ACEOF
7088 if ac_fn_c_try_link "$LINENO"
7089 then :
7090 eval $cacheid=yes
7091 else $as_nop
7092 eval $cacheid=no
7093 fi
7094 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7095 conftest$ac_exeext conftest.$ac_ext
7096 fi
7097
7098
7099 CFLAGS="$xorg_testset_save_CFLAGS"
7100
7101 eval supported=\$$cacheid
7102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7103 printf "%s\n" "$supported" >&6; }
7104 if test "$supported" = "yes" ; then
7105 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7106 found="yes"
7107 fi
7108 fi
7109
7110
7111
7112 # These are currently disabled because they are noisy. They will be enabled
7113 # in the future once the codebase is sufficiently modernized to silence
7114 # them. For now, I don't want them to drown out the other warnings.
7115 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7116 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7117 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7118
7119 # Turn some warnings into errors, so we don't accidently get successful builds
7120 # when there are problems that should be fixed.
7121
7122 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136 xorg_testset_save_CFLAGS="$CFLAGS"
7137
7138 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7141 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7142 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7143 then :
7144 printf %s "(cached) " >&6
7145 else $as_nop
7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147 /* end confdefs.h. */
7148 int i;
7149 _ACEOF
7150 if ac_fn_c_try_compile "$LINENO"
7151 then :
7152 xorg_cv_cc_flag_unknown_warning_option=yes
7153 else $as_nop
7154 xorg_cv_cc_flag_unknown_warning_option=no
7155 fi
7156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7157 fi
7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7159 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7160 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7161 CFLAGS="$xorg_testset_save_CFLAGS"
7162 fi
7163
7164 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7167 fi
7168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7170 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7171 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7172 then :
7173 printf %s "(cached) " >&6
7174 else $as_nop
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7177 int i;
7178 _ACEOF
7179 if ac_fn_c_try_compile "$LINENO"
7180 then :
7181 xorg_cv_cc_flag_unused_command_line_argument=yes
7182 else $as_nop
7183 xorg_cv_cc_flag_unused_command_line_argument=no
7184 fi
7185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7186 fi
7187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7188 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7190 CFLAGS="$xorg_testset_save_CFLAGS"
7191 fi
7192
7193 found="no"
7194
7195 if test $found = "no" ; then
7196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7198 fi
7199
7200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7202 fi
7203
7204 CFLAGS="$CFLAGS -Werror=implicit"
7205
7206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7207 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7208 cacheid=xorg_cv_cc_flag__Werror_implicit
7209 if eval test \${$cacheid+y}
7210 then :
7211 printf %s "(cached) " >&6
7212 else $as_nop
7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214 /* end confdefs.h. */
7215 int i;
7216 int
7217 main (void)
7218 {
7219
7220 ;
7221 return 0;
7222 }
7223 _ACEOF
7224 if ac_fn_c_try_link "$LINENO"
7225 then :
7226 eval $cacheid=yes
7227 else $as_nop
7228 eval $cacheid=no
7229 fi
7230 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7231 conftest$ac_exeext conftest.$ac_ext
7232 fi
7233
7234
7235 CFLAGS="$xorg_testset_save_CFLAGS"
7236
7237 eval supported=\$$cacheid
7238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7239 printf "%s\n" "$supported" >&6; }
7240 if test "$supported" = "yes" ; then
7241 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7242 found="yes"
7243 fi
7244 fi
7245
7246 if test $found = "no" ; then
7247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7249 fi
7250
7251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7253 fi
7254
7255 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7256
7257 { 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
7258 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7259 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7260 if eval test \${$cacheid+y}
7261 then :
7262 printf %s "(cached) " >&6
7263 else $as_nop
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7266 int i;
7267 int
7268 main (void)
7269 {
7270
7271 ;
7272 return 0;
7273 }
7274 _ACEOF
7275 if ac_fn_c_try_link "$LINENO"
7276 then :
7277 eval $cacheid=yes
7278 else $as_nop
7279 eval $cacheid=no
7280 fi
7281 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7282 conftest$ac_exeext conftest.$ac_ext
7283 fi
7284
7285
7286 CFLAGS="$xorg_testset_save_CFLAGS"
7287
7288 eval supported=\$$cacheid
7289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7290 printf "%s\n" "$supported" >&6; }
7291 if test "$supported" = "yes" ; then
7292 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7293 found="yes"
7294 fi
7295 fi
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311 xorg_testset_save_CFLAGS="$CFLAGS"
7312
7313 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7316 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7317 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7318 then :
7319 printf %s "(cached) " >&6
7320 else $as_nop
7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7323 int i;
7324 _ACEOF
7325 if ac_fn_c_try_compile "$LINENO"
7326 then :
7327 xorg_cv_cc_flag_unknown_warning_option=yes
7328 else $as_nop
7329 xorg_cv_cc_flag_unknown_warning_option=no
7330 fi
7331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7332 fi
7333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7334 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7336 CFLAGS="$xorg_testset_save_CFLAGS"
7337 fi
7338
7339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7342 fi
7343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7345 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7346 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
7354 if ac_fn_c_try_compile "$LINENO"
7355 then :
7356 xorg_cv_cc_flag_unused_command_line_argument=yes
7357 else $as_nop
7358 xorg_cv_cc_flag_unused_command_line_argument=no
7359 fi
7360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7361 fi
7362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7363 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7365 CFLAGS="$xorg_testset_save_CFLAGS"
7366 fi
7367
7368 found="no"
7369
7370 if test $found = "no" ; then
7371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7373 fi
7374
7375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7377 fi
7378
7379 CFLAGS="$CFLAGS -Werror=nonnull"
7380
7381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7382 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7383 cacheid=xorg_cv_cc_flag__Werror_nonnull
7384 if eval test \${$cacheid+y}
7385 then :
7386 printf %s "(cached) " >&6
7387 else $as_nop
7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389 /* end confdefs.h. */
7390 int i;
7391 int
7392 main (void)
7393 {
7394
7395 ;
7396 return 0;
7397 }
7398 _ACEOF
7399 if ac_fn_c_try_link "$LINENO"
7400 then :
7401 eval $cacheid=yes
7402 else $as_nop
7403 eval $cacheid=no
7404 fi
7405 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7406 conftest$ac_exeext conftest.$ac_ext
7407 fi
7408
7409
7410 CFLAGS="$xorg_testset_save_CFLAGS"
7411
7412 eval supported=\$$cacheid
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7414 printf "%s\n" "$supported" >&6; }
7415 if test "$supported" = "yes" ; then
7416 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7417 found="yes"
7418 fi
7419 fi
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435 xorg_testset_save_CFLAGS="$CFLAGS"
7436
7437 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7440 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7441 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7442 then :
7443 printf %s "(cached) " >&6
7444 else $as_nop
7445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h. */
7447 int i;
7448 _ACEOF
7449 if ac_fn_c_try_compile "$LINENO"
7450 then :
7451 xorg_cv_cc_flag_unknown_warning_option=yes
7452 else $as_nop
7453 xorg_cv_cc_flag_unknown_warning_option=no
7454 fi
7455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7456 fi
7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7458 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7460 CFLAGS="$xorg_testset_save_CFLAGS"
7461 fi
7462
7463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7466 fi
7467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7469 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7470 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
7478 if ac_fn_c_try_compile "$LINENO"
7479 then :
7480 xorg_cv_cc_flag_unused_command_line_argument=yes
7481 else $as_nop
7482 xorg_cv_cc_flag_unused_command_line_argument=no
7483 fi
7484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7485 fi
7486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7487 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7489 CFLAGS="$xorg_testset_save_CFLAGS"
7490 fi
7491
7492 found="no"
7493
7494 if test $found = "no" ; then
7495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7497 fi
7498
7499 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7501 fi
7502
7503 CFLAGS="$CFLAGS -Werror=init-self"
7504
7505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7506 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7507 cacheid=xorg_cv_cc_flag__Werror_init_self
7508 if eval test \${$cacheid+y}
7509 then :
7510 printf %s "(cached) " >&6
7511 else $as_nop
7512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513 /* end confdefs.h. */
7514 int i;
7515 int
7516 main (void)
7517 {
7518
7519 ;
7520 return 0;
7521 }
7522 _ACEOF
7523 if ac_fn_c_try_link "$LINENO"
7524 then :
7525 eval $cacheid=yes
7526 else $as_nop
7527 eval $cacheid=no
7528 fi
7529 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7530 conftest$ac_exeext conftest.$ac_ext
7531 fi
7532
7533
7534 CFLAGS="$xorg_testset_save_CFLAGS"
7535
7536 eval supported=\$$cacheid
7537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7538 printf "%s\n" "$supported" >&6; }
7539 if test "$supported" = "yes" ; then
7540 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7541 found="yes"
7542 fi
7543 fi
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559 xorg_testset_save_CFLAGS="$CFLAGS"
7560
7561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7564 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7565 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7566 then :
7567 printf %s "(cached) " >&6
7568 else $as_nop
7569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h. */
7571 int i;
7572 _ACEOF
7573 if ac_fn_c_try_compile "$LINENO"
7574 then :
7575 xorg_cv_cc_flag_unknown_warning_option=yes
7576 else $as_nop
7577 xorg_cv_cc_flag_unknown_warning_option=no
7578 fi
7579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7580 fi
7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7582 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7584 CFLAGS="$xorg_testset_save_CFLAGS"
7585 fi
7586
7587 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7590 fi
7591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7593 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7594 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
7602 if ac_fn_c_try_compile "$LINENO"
7603 then :
7604 xorg_cv_cc_flag_unused_command_line_argument=yes
7605 else $as_nop
7606 xorg_cv_cc_flag_unused_command_line_argument=no
7607 fi
7608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7609 fi
7610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7611 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7613 CFLAGS="$xorg_testset_save_CFLAGS"
7614 fi
7615
7616 found="no"
7617
7618 if test $found = "no" ; then
7619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7621 fi
7622
7623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7625 fi
7626
7627 CFLAGS="$CFLAGS -Werror=main"
7628
7629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7630 printf %s "checking if $CC supports -Werror=main... " >&6; }
7631 cacheid=xorg_cv_cc_flag__Werror_main
7632 if eval test \${$cacheid+y}
7633 then :
7634 printf %s "(cached) " >&6
7635 else $as_nop
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h. */
7638 int i;
7639 int
7640 main (void)
7641 {
7642
7643 ;
7644 return 0;
7645 }
7646 _ACEOF
7647 if ac_fn_c_try_link "$LINENO"
7648 then :
7649 eval $cacheid=yes
7650 else $as_nop
7651 eval $cacheid=no
7652 fi
7653 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7654 conftest$ac_exeext conftest.$ac_ext
7655 fi
7656
7657
7658 CFLAGS="$xorg_testset_save_CFLAGS"
7659
7660 eval supported=\$$cacheid
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7662 printf "%s\n" "$supported" >&6; }
7663 if test "$supported" = "yes" ; then
7664 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7665 found="yes"
7666 fi
7667 fi
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683 xorg_testset_save_CFLAGS="$CFLAGS"
7684
7685 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7688 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7689 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7690 then :
7691 printf %s "(cached) " >&6
7692 else $as_nop
7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7695 int i;
7696 _ACEOF
7697 if ac_fn_c_try_compile "$LINENO"
7698 then :
7699 xorg_cv_cc_flag_unknown_warning_option=yes
7700 else $as_nop
7701 xorg_cv_cc_flag_unknown_warning_option=no
7702 fi
7703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7704 fi
7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7706 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7708 CFLAGS="$xorg_testset_save_CFLAGS"
7709 fi
7710
7711 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7713 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7714 fi
7715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7717 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7718 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
7726 if ac_fn_c_try_compile "$LINENO"
7727 then :
7728 xorg_cv_cc_flag_unused_command_line_argument=yes
7729 else $as_nop
7730 xorg_cv_cc_flag_unused_command_line_argument=no
7731 fi
7732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7733 fi
7734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7735 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7737 CFLAGS="$xorg_testset_save_CFLAGS"
7738 fi
7739
7740 found="no"
7741
7742 if test $found = "no" ; then
7743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7745 fi
7746
7747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7749 fi
7750
7751 CFLAGS="$CFLAGS -Werror=missing-braces"
7752
7753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7754 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7755 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7756 if eval test \${$cacheid+y}
7757 then :
7758 printf %s "(cached) " >&6
7759 else $as_nop
7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h. */
7762 int i;
7763 int
7764 main (void)
7765 {
7766
7767 ;
7768 return 0;
7769 }
7770 _ACEOF
7771 if ac_fn_c_try_link "$LINENO"
7772 then :
7773 eval $cacheid=yes
7774 else $as_nop
7775 eval $cacheid=no
7776 fi
7777 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7778 conftest$ac_exeext conftest.$ac_ext
7779 fi
7780
7781
7782 CFLAGS="$xorg_testset_save_CFLAGS"
7783
7784 eval supported=\$$cacheid
7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7786 printf "%s\n" "$supported" >&6; }
7787 if test "$supported" = "yes" ; then
7788 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7789 found="yes"
7790 fi
7791 fi
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807 xorg_testset_save_CFLAGS="$CFLAGS"
7808
7809 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7812 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7813 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7814 then :
7815 printf %s "(cached) " >&6
7816 else $as_nop
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h. */
7819 int i;
7820 _ACEOF
7821 if ac_fn_c_try_compile "$LINENO"
7822 then :
7823 xorg_cv_cc_flag_unknown_warning_option=yes
7824 else $as_nop
7825 xorg_cv_cc_flag_unknown_warning_option=no
7826 fi
7827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7828 fi
7829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7830 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7832 CFLAGS="$xorg_testset_save_CFLAGS"
7833 fi
7834
7835 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7838 fi
7839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7841 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7842 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
7850 if ac_fn_c_try_compile "$LINENO"
7851 then :
7852 xorg_cv_cc_flag_unused_command_line_argument=yes
7853 else $as_nop
7854 xorg_cv_cc_flag_unused_command_line_argument=no
7855 fi
7856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7857 fi
7858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7859 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7860 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7861 CFLAGS="$xorg_testset_save_CFLAGS"
7862 fi
7863
7864 found="no"
7865
7866 if test $found = "no" ; then
7867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7869 fi
7870
7871 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7873 fi
7874
7875 CFLAGS="$CFLAGS -Werror=sequence-point"
7876
7877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7878 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7879 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7880 if eval test \${$cacheid+y}
7881 then :
7882 printf %s "(cached) " >&6
7883 else $as_nop
7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885 /* end confdefs.h. */
7886 int i;
7887 int
7888 main (void)
7889 {
7890
7891 ;
7892 return 0;
7893 }
7894 _ACEOF
7895 if ac_fn_c_try_link "$LINENO"
7896 then :
7897 eval $cacheid=yes
7898 else $as_nop
7899 eval $cacheid=no
7900 fi
7901 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7902 conftest$ac_exeext conftest.$ac_ext
7903 fi
7904
7905
7906 CFLAGS="$xorg_testset_save_CFLAGS"
7907
7908 eval supported=\$$cacheid
7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7910 printf "%s\n" "$supported" >&6; }
7911 if test "$supported" = "yes" ; then
7912 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7913 found="yes"
7914 fi
7915 fi
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931 xorg_testset_save_CFLAGS="$CFLAGS"
7932
7933 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7936 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7937 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7938 then :
7939 printf %s "(cached) " >&6
7940 else $as_nop
7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7943 int i;
7944 _ACEOF
7945 if ac_fn_c_try_compile "$LINENO"
7946 then :
7947 xorg_cv_cc_flag_unknown_warning_option=yes
7948 else $as_nop
7949 xorg_cv_cc_flag_unknown_warning_option=no
7950 fi
7951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7952 fi
7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7954 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7956 CFLAGS="$xorg_testset_save_CFLAGS"
7957 fi
7958
7959 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7962 fi
7963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7965 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7966 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
7974 if ac_fn_c_try_compile "$LINENO"
7975 then :
7976 xorg_cv_cc_flag_unused_command_line_argument=yes
7977 else $as_nop
7978 xorg_cv_cc_flag_unused_command_line_argument=no
7979 fi
7980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7981 fi
7982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7983 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7985 CFLAGS="$xorg_testset_save_CFLAGS"
7986 fi
7987
7988 found="no"
7989
7990 if test $found = "no" ; then
7991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7993 fi
7994
7995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7997 fi
7998
7999 CFLAGS="$CFLAGS -Werror=return-type"
8000
8001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8002 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8003 cacheid=xorg_cv_cc_flag__Werror_return_type
8004 if eval test \${$cacheid+y}
8005 then :
8006 printf %s "(cached) " >&6
8007 else $as_nop
8008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009 /* end confdefs.h. */
8010 int i;
8011 int
8012 main (void)
8013 {
8014
8015 ;
8016 return 0;
8017 }
8018 _ACEOF
8019 if ac_fn_c_try_link "$LINENO"
8020 then :
8021 eval $cacheid=yes
8022 else $as_nop
8023 eval $cacheid=no
8024 fi
8025 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8026 conftest$ac_exeext conftest.$ac_ext
8027 fi
8028
8029
8030 CFLAGS="$xorg_testset_save_CFLAGS"
8031
8032 eval supported=\$$cacheid
8033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8034 printf "%s\n" "$supported" >&6; }
8035 if test "$supported" = "yes" ; then
8036 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8037 found="yes"
8038 fi
8039 fi
8040
8041 if test $found = "no" ; then
8042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8044 fi
8045
8046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8048 fi
8049
8050 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8051
8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8053 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8054 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8055 if eval test \${$cacheid+y}
8056 then :
8057 printf %s "(cached) " >&6
8058 else $as_nop
8059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h. */
8061 int i;
8062 int
8063 main (void)
8064 {
8065
8066 ;
8067 return 0;
8068 }
8069 _ACEOF
8070 if ac_fn_c_try_link "$LINENO"
8071 then :
8072 eval $cacheid=yes
8073 else $as_nop
8074 eval $cacheid=no
8075 fi
8076 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8077 conftest$ac_exeext conftest.$ac_ext
8078 fi
8079
8080
8081 CFLAGS="$xorg_testset_save_CFLAGS"
8082
8083 eval supported=\$$cacheid
8084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8085 printf "%s\n" "$supported" >&6; }
8086 if test "$supported" = "yes" ; then
8087 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8088 found="yes"
8089 fi
8090 fi
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106 xorg_testset_save_CFLAGS="$CFLAGS"
8107
8108 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8111 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8112 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8113 then :
8114 printf %s "(cached) " >&6
8115 else $as_nop
8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h. */
8118 int i;
8119 _ACEOF
8120 if ac_fn_c_try_compile "$LINENO"
8121 then :
8122 xorg_cv_cc_flag_unknown_warning_option=yes
8123 else $as_nop
8124 xorg_cv_cc_flag_unknown_warning_option=no
8125 fi
8126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8127 fi
8128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8129 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8131 CFLAGS="$xorg_testset_save_CFLAGS"
8132 fi
8133
8134 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8137 fi
8138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8140 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8141 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
8149 if ac_fn_c_try_compile "$LINENO"
8150 then :
8151 xorg_cv_cc_flag_unused_command_line_argument=yes
8152 else $as_nop
8153 xorg_cv_cc_flag_unused_command_line_argument=no
8154 fi
8155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8156 fi
8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8158 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8160 CFLAGS="$xorg_testset_save_CFLAGS"
8161 fi
8162
8163 found="no"
8164
8165 if test $found = "no" ; then
8166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8168 fi
8169
8170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8172 fi
8173
8174 CFLAGS="$CFLAGS -Werror=trigraphs"
8175
8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8177 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8178 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8179 if eval test \${$cacheid+y}
8180 then :
8181 printf %s "(cached) " >&6
8182 else $as_nop
8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8185 int i;
8186 int
8187 main (void)
8188 {
8189
8190 ;
8191 return 0;
8192 }
8193 _ACEOF
8194 if ac_fn_c_try_link "$LINENO"
8195 then :
8196 eval $cacheid=yes
8197 else $as_nop
8198 eval $cacheid=no
8199 fi
8200 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8201 conftest$ac_exeext conftest.$ac_ext
8202 fi
8203
8204
8205 CFLAGS="$xorg_testset_save_CFLAGS"
8206
8207 eval supported=\$$cacheid
8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8209 printf "%s\n" "$supported" >&6; }
8210 if test "$supported" = "yes" ; then
8211 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8212 found="yes"
8213 fi
8214 fi
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230 xorg_testset_save_CFLAGS="$CFLAGS"
8231
8232 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8235 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8236 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8237 then :
8238 printf %s "(cached) " >&6
8239 else $as_nop
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8242 int i;
8243 _ACEOF
8244 if ac_fn_c_try_compile "$LINENO"
8245 then :
8246 xorg_cv_cc_flag_unknown_warning_option=yes
8247 else $as_nop
8248 xorg_cv_cc_flag_unknown_warning_option=no
8249 fi
8250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8251 fi
8252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8253 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8255 CFLAGS="$xorg_testset_save_CFLAGS"
8256 fi
8257
8258 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8261 fi
8262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8264 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8265 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
8273 if ac_fn_c_try_compile "$LINENO"
8274 then :
8275 xorg_cv_cc_flag_unused_command_line_argument=yes
8276 else $as_nop
8277 xorg_cv_cc_flag_unused_command_line_argument=no
8278 fi
8279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8280 fi
8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8282 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8284 CFLAGS="$xorg_testset_save_CFLAGS"
8285 fi
8286
8287 found="no"
8288
8289 if test $found = "no" ; then
8290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8292 fi
8293
8294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8296 fi
8297
8298 CFLAGS="$CFLAGS -Werror=array-bounds"
8299
8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8301 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8302 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8303 if eval test \${$cacheid+y}
8304 then :
8305 printf %s "(cached) " >&6
8306 else $as_nop
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h. */
8309 int i;
8310 int
8311 main (void)
8312 {
8313
8314 ;
8315 return 0;
8316 }
8317 _ACEOF
8318 if ac_fn_c_try_link "$LINENO"
8319 then :
8320 eval $cacheid=yes
8321 else $as_nop
8322 eval $cacheid=no
8323 fi
8324 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8325 conftest$ac_exeext conftest.$ac_ext
8326 fi
8327
8328
8329 CFLAGS="$xorg_testset_save_CFLAGS"
8330
8331 eval supported=\$$cacheid
8332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8333 printf "%s\n" "$supported" >&6; }
8334 if test "$supported" = "yes" ; then
8335 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8336 found="yes"
8337 fi
8338 fi
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354 xorg_testset_save_CFLAGS="$CFLAGS"
8355
8356 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8359 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8360 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8361 then :
8362 printf %s "(cached) " >&6
8363 else $as_nop
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8366 int i;
8367 _ACEOF
8368 if ac_fn_c_try_compile "$LINENO"
8369 then :
8370 xorg_cv_cc_flag_unknown_warning_option=yes
8371 else $as_nop
8372 xorg_cv_cc_flag_unknown_warning_option=no
8373 fi
8374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8375 fi
8376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8377 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8379 CFLAGS="$xorg_testset_save_CFLAGS"
8380 fi
8381
8382 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8385 fi
8386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8388 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8389 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
8397 if ac_fn_c_try_compile "$LINENO"
8398 then :
8399 xorg_cv_cc_flag_unused_command_line_argument=yes
8400 else $as_nop
8401 xorg_cv_cc_flag_unused_command_line_argument=no
8402 fi
8403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8404 fi
8405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8406 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8407 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8408 CFLAGS="$xorg_testset_save_CFLAGS"
8409 fi
8410
8411 found="no"
8412
8413 if test $found = "no" ; then
8414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8416 fi
8417
8418 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8420 fi
8421
8422 CFLAGS="$CFLAGS -Werror=write-strings"
8423
8424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8425 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8426 cacheid=xorg_cv_cc_flag__Werror_write_strings
8427 if eval test \${$cacheid+y}
8428 then :
8429 printf %s "(cached) " >&6
8430 else $as_nop
8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432 /* end confdefs.h. */
8433 int i;
8434 int
8435 main (void)
8436 {
8437
8438 ;
8439 return 0;
8440 }
8441 _ACEOF
8442 if ac_fn_c_try_link "$LINENO"
8443 then :
8444 eval $cacheid=yes
8445 else $as_nop
8446 eval $cacheid=no
8447 fi
8448 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8449 conftest$ac_exeext conftest.$ac_ext
8450 fi
8451
8452
8453 CFLAGS="$xorg_testset_save_CFLAGS"
8454
8455 eval supported=\$$cacheid
8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8457 printf "%s\n" "$supported" >&6; }
8458 if test "$supported" = "yes" ; then
8459 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8460 found="yes"
8461 fi
8462 fi
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478 xorg_testset_save_CFLAGS="$CFLAGS"
8479
8480 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8483 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8484 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8485 then :
8486 printf %s "(cached) " >&6
8487 else $as_nop
8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h. */
8490 int i;
8491 _ACEOF
8492 if ac_fn_c_try_compile "$LINENO"
8493 then :
8494 xorg_cv_cc_flag_unknown_warning_option=yes
8495 else $as_nop
8496 xorg_cv_cc_flag_unknown_warning_option=no
8497 fi
8498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8499 fi
8500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8501 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8503 CFLAGS="$xorg_testset_save_CFLAGS"
8504 fi
8505
8506 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8509 fi
8510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8512 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8513 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
8521 if ac_fn_c_try_compile "$LINENO"
8522 then :
8523 xorg_cv_cc_flag_unused_command_line_argument=yes
8524 else $as_nop
8525 xorg_cv_cc_flag_unused_command_line_argument=no
8526 fi
8527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8528 fi
8529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8530 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8531 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8532 CFLAGS="$xorg_testset_save_CFLAGS"
8533 fi
8534
8535 found="no"
8536
8537 if test $found = "no" ; then
8538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8540 fi
8541
8542 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8544 fi
8545
8546 CFLAGS="$CFLAGS -Werror=address"
8547
8548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8549 printf %s "checking if $CC supports -Werror=address... " >&6; }
8550 cacheid=xorg_cv_cc_flag__Werror_address
8551 if eval test \${$cacheid+y}
8552 then :
8553 printf %s "(cached) " >&6
8554 else $as_nop
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8557 int i;
8558 int
8559 main (void)
8560 {
8561
8562 ;
8563 return 0;
8564 }
8565 _ACEOF
8566 if ac_fn_c_try_link "$LINENO"
8567 then :
8568 eval $cacheid=yes
8569 else $as_nop
8570 eval $cacheid=no
8571 fi
8572 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8573 conftest$ac_exeext conftest.$ac_ext
8574 fi
8575
8576
8577 CFLAGS="$xorg_testset_save_CFLAGS"
8578
8579 eval supported=\$$cacheid
8580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8581 printf "%s\n" "$supported" >&6; }
8582 if test "$supported" = "yes" ; then
8583 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8584 found="yes"
8585 fi
8586 fi
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602 xorg_testset_save_CFLAGS="$CFLAGS"
8603
8604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8607 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8608 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8609 then :
8610 printf %s "(cached) " >&6
8611 else $as_nop
8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h. */
8614 int i;
8615 _ACEOF
8616 if ac_fn_c_try_compile "$LINENO"
8617 then :
8618 xorg_cv_cc_flag_unknown_warning_option=yes
8619 else $as_nop
8620 xorg_cv_cc_flag_unknown_warning_option=no
8621 fi
8622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8623 fi
8624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8625 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8627 CFLAGS="$xorg_testset_save_CFLAGS"
8628 fi
8629
8630 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8633 fi
8634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8636 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8637 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
8645 if ac_fn_c_try_compile "$LINENO"
8646 then :
8647 xorg_cv_cc_flag_unused_command_line_argument=yes
8648 else $as_nop
8649 xorg_cv_cc_flag_unused_command_line_argument=no
8650 fi
8651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8652 fi
8653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8654 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8656 CFLAGS="$xorg_testset_save_CFLAGS"
8657 fi
8658
8659 found="no"
8660
8661 if test $found = "no" ; then
8662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8664 fi
8665
8666 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8668 fi
8669
8670 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8671
8672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8673 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8674 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8675 if eval test \${$cacheid+y}
8676 then :
8677 printf %s "(cached) " >&6
8678 else $as_nop
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8681 int i;
8682 int
8683 main (void)
8684 {
8685
8686 ;
8687 return 0;
8688 }
8689 _ACEOF
8690 if ac_fn_c_try_link "$LINENO"
8691 then :
8692 eval $cacheid=yes
8693 else $as_nop
8694 eval $cacheid=no
8695 fi
8696 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8697 conftest$ac_exeext conftest.$ac_ext
8698 fi
8699
8700
8701 CFLAGS="$xorg_testset_save_CFLAGS"
8702
8703 eval supported=\$$cacheid
8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8705 printf "%s\n" "$supported" >&6; }
8706 if test "$supported" = "yes" ; then
8707 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8708 found="yes"
8709 fi
8710 fi
8711
8712 if test $found = "no" ; then
8713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8715 fi
8716
8717 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8719 fi
8720
8721 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8722
8723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8724 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8725 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8726 if eval test \${$cacheid+y}
8727 then :
8728 printf %s "(cached) " >&6
8729 else $as_nop
8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8732 int i;
8733 int
8734 main (void)
8735 {
8736
8737 ;
8738 return 0;
8739 }
8740 _ACEOF
8741 if ac_fn_c_try_link "$LINENO"
8742 then :
8743 eval $cacheid=yes
8744 else $as_nop
8745 eval $cacheid=no
8746 fi
8747 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8748 conftest$ac_exeext conftest.$ac_ext
8749 fi
8750
8751
8752 CFLAGS="$xorg_testset_save_CFLAGS"
8753
8754 eval supported=\$$cacheid
8755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8756 printf "%s\n" "$supported" >&6; }
8757 if test "$supported" = "yes" ; then
8758 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8759 found="yes"
8760 fi
8761 fi
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777 xorg_testset_save_CFLAGS="$CFLAGS"
8778
8779 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8782 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8783 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8784 then :
8785 printf %s "(cached) " >&6
8786 else $as_nop
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8789 int i;
8790 _ACEOF
8791 if ac_fn_c_try_compile "$LINENO"
8792 then :
8793 xorg_cv_cc_flag_unknown_warning_option=yes
8794 else $as_nop
8795 xorg_cv_cc_flag_unknown_warning_option=no
8796 fi
8797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8798 fi
8799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8800 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8802 CFLAGS="$xorg_testset_save_CFLAGS"
8803 fi
8804
8805 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8808 fi
8809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8811 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8812 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
8820 if ac_fn_c_try_compile "$LINENO"
8821 then :
8822 xorg_cv_cc_flag_unused_command_line_argument=yes
8823 else $as_nop
8824 xorg_cv_cc_flag_unused_command_line_argument=no
8825 fi
8826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8827 fi
8828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8829 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8830 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8831 CFLAGS="$xorg_testset_save_CFLAGS"
8832 fi
8833
8834 found="no"
8835
8836 if test $found = "no" ; then
8837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8839 fi
8840
8841 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8843 fi
8844
8845 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8846
8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8848 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8849 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8850 if eval test \${$cacheid+y}
8851 then :
8852 printf %s "(cached) " >&6
8853 else $as_nop
8854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855 /* end confdefs.h. */
8856 int i;
8857 int
8858 main (void)
8859 {
8860
8861 ;
8862 return 0;
8863 }
8864 _ACEOF
8865 if ac_fn_c_try_link "$LINENO"
8866 then :
8867 eval $cacheid=yes
8868 else $as_nop
8869 eval $cacheid=no
8870 fi
8871 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8872 conftest$ac_exeext conftest.$ac_ext
8873 fi
8874
8875
8876 CFLAGS="$xorg_testset_save_CFLAGS"
8877
8878 eval supported=\$$cacheid
8879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8880 printf "%s\n" "$supported" >&6; }
8881 if test "$supported" = "yes" ; then
8882 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8883 found="yes"
8884 fi
8885 fi
8886
8887 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8888 else
8889 { 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
8890 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;}
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904 xorg_testset_save_CFLAGS="$CFLAGS"
8905
8906 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8909 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8910 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8911 then :
8912 printf %s "(cached) " >&6
8913 else $as_nop
8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h. */
8916 int i;
8917 _ACEOF
8918 if ac_fn_c_try_compile "$LINENO"
8919 then :
8920 xorg_cv_cc_flag_unknown_warning_option=yes
8921 else $as_nop
8922 xorg_cv_cc_flag_unknown_warning_option=no
8923 fi
8924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8925 fi
8926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8927 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8928 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8929 CFLAGS="$xorg_testset_save_CFLAGS"
8930 fi
8931
8932 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8935 fi
8936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8938 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8939 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8940 then :
8941 printf %s "(cached) " >&6
8942 else $as_nop
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8945 int i;
8946 _ACEOF
8947 if ac_fn_c_try_compile "$LINENO"
8948 then :
8949 xorg_cv_cc_flag_unused_command_line_argument=yes
8950 else $as_nop
8951 xorg_cv_cc_flag_unused_command_line_argument=no
8952 fi
8953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8954 fi
8955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8956 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8957 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8958 CFLAGS="$xorg_testset_save_CFLAGS"
8959 fi
8960
8961 found="no"
8962
8963 if test $found = "no" ; then
8964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8966 fi
8967
8968 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8970 fi
8971
8972 CFLAGS="$CFLAGS -Wimplicit"
8973
8974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8975 printf %s "checking if $CC supports -Wimplicit... " >&6; }
8976 cacheid=xorg_cv_cc_flag__Wimplicit
8977 if eval test \${$cacheid+y}
8978 then :
8979 printf %s "(cached) " >&6
8980 else $as_nop
8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h. */
8983 int i;
8984 int
8985 main (void)
8986 {
8987
8988 ;
8989 return 0;
8990 }
8991 _ACEOF
8992 if ac_fn_c_try_link "$LINENO"
8993 then :
8994 eval $cacheid=yes
8995 else $as_nop
8996 eval $cacheid=no
8997 fi
8998 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8999 conftest$ac_exeext conftest.$ac_ext
9000 fi
9001
9002
9003 CFLAGS="$xorg_testset_save_CFLAGS"
9004
9005 eval supported=\$$cacheid
9006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9007 printf "%s\n" "$supported" >&6; }
9008 if test "$supported" = "yes" ; then
9009 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9010 found="yes"
9011 fi
9012 fi
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028 xorg_testset_save_CFLAGS="$CFLAGS"
9029
9030 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9033 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9034 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9035 then :
9036 printf %s "(cached) " >&6
9037 else $as_nop
9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9040 int i;
9041 _ACEOF
9042 if ac_fn_c_try_compile "$LINENO"
9043 then :
9044 xorg_cv_cc_flag_unknown_warning_option=yes
9045 else $as_nop
9046 xorg_cv_cc_flag_unknown_warning_option=no
9047 fi
9048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9049 fi
9050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9051 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9053 CFLAGS="$xorg_testset_save_CFLAGS"
9054 fi
9055
9056 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9059 fi
9060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9062 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9063 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
9071 if ac_fn_c_try_compile "$LINENO"
9072 then :
9073 xorg_cv_cc_flag_unused_command_line_argument=yes
9074 else $as_nop
9075 xorg_cv_cc_flag_unused_command_line_argument=no
9076 fi
9077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9078 fi
9079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9080 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9082 CFLAGS="$xorg_testset_save_CFLAGS"
9083 fi
9084
9085 found="no"
9086
9087 if test $found = "no" ; then
9088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9090 fi
9091
9092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9094 fi
9095
9096 CFLAGS="$CFLAGS -Wnonnull"
9097
9098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9099 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9100 cacheid=xorg_cv_cc_flag__Wnonnull
9101 if eval test \${$cacheid+y}
9102 then :
9103 printf %s "(cached) " >&6
9104 else $as_nop
9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h. */
9107 int i;
9108 int
9109 main (void)
9110 {
9111
9112 ;
9113 return 0;
9114 }
9115 _ACEOF
9116 if ac_fn_c_try_link "$LINENO"
9117 then :
9118 eval $cacheid=yes
9119 else $as_nop
9120 eval $cacheid=no
9121 fi
9122 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9123 conftest$ac_exeext conftest.$ac_ext
9124 fi
9125
9126
9127 CFLAGS="$xorg_testset_save_CFLAGS"
9128
9129 eval supported=\$$cacheid
9130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9131 printf "%s\n" "$supported" >&6; }
9132 if test "$supported" = "yes" ; then
9133 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9134 found="yes"
9135 fi
9136 fi
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152 xorg_testset_save_CFLAGS="$CFLAGS"
9153
9154 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9157 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9158 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9159 then :
9160 printf %s "(cached) " >&6
9161 else $as_nop
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9164 int i;
9165 _ACEOF
9166 if ac_fn_c_try_compile "$LINENO"
9167 then :
9168 xorg_cv_cc_flag_unknown_warning_option=yes
9169 else $as_nop
9170 xorg_cv_cc_flag_unknown_warning_option=no
9171 fi
9172 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9173 fi
9174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9175 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9177 CFLAGS="$xorg_testset_save_CFLAGS"
9178 fi
9179
9180 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9183 fi
9184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9186 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9187 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
9195 if ac_fn_c_try_compile "$LINENO"
9196 then :
9197 xorg_cv_cc_flag_unused_command_line_argument=yes
9198 else $as_nop
9199 xorg_cv_cc_flag_unused_command_line_argument=no
9200 fi
9201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9202 fi
9203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9204 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9205 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9206 CFLAGS="$xorg_testset_save_CFLAGS"
9207 fi
9208
9209 found="no"
9210
9211 if test $found = "no" ; then
9212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9214 fi
9215
9216 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9218 fi
9219
9220 CFLAGS="$CFLAGS -Winit-self"
9221
9222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9223 printf %s "checking if $CC supports -Winit-self... " >&6; }
9224 cacheid=xorg_cv_cc_flag__Winit_self
9225 if eval test \${$cacheid+y}
9226 then :
9227 printf %s "(cached) " >&6
9228 else $as_nop
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9231 int i;
9232 int
9233 main (void)
9234 {
9235
9236 ;
9237 return 0;
9238 }
9239 _ACEOF
9240 if ac_fn_c_try_link "$LINENO"
9241 then :
9242 eval $cacheid=yes
9243 else $as_nop
9244 eval $cacheid=no
9245 fi
9246 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9247 conftest$ac_exeext conftest.$ac_ext
9248 fi
9249
9250
9251 CFLAGS="$xorg_testset_save_CFLAGS"
9252
9253 eval supported=\$$cacheid
9254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9255 printf "%s\n" "$supported" >&6; }
9256 if test "$supported" = "yes" ; then
9257 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9258 found="yes"
9259 fi
9260 fi
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276 xorg_testset_save_CFLAGS="$CFLAGS"
9277
9278 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9281 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9282 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9283 then :
9284 printf %s "(cached) " >&6
9285 else $as_nop
9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287 /* end confdefs.h. */
9288 int i;
9289 _ACEOF
9290 if ac_fn_c_try_compile "$LINENO"
9291 then :
9292 xorg_cv_cc_flag_unknown_warning_option=yes
9293 else $as_nop
9294 xorg_cv_cc_flag_unknown_warning_option=no
9295 fi
9296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9297 fi
9298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9299 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9300 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9301 CFLAGS="$xorg_testset_save_CFLAGS"
9302 fi
9303
9304 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9307 fi
9308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9310 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9311 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
9319 if ac_fn_c_try_compile "$LINENO"
9320 then :
9321 xorg_cv_cc_flag_unused_command_line_argument=yes
9322 else $as_nop
9323 xorg_cv_cc_flag_unused_command_line_argument=no
9324 fi
9325 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9326 fi
9327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9328 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9329 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9330 CFLAGS="$xorg_testset_save_CFLAGS"
9331 fi
9332
9333 found="no"
9334
9335 if test $found = "no" ; then
9336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9338 fi
9339
9340 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9342 fi
9343
9344 CFLAGS="$CFLAGS -Wmain"
9345
9346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9347 printf %s "checking if $CC supports -Wmain... " >&6; }
9348 cacheid=xorg_cv_cc_flag__Wmain
9349 if eval test \${$cacheid+y}
9350 then :
9351 printf %s "(cached) " >&6
9352 else $as_nop
9353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354 /* end confdefs.h. */
9355 int i;
9356 int
9357 main (void)
9358 {
9359
9360 ;
9361 return 0;
9362 }
9363 _ACEOF
9364 if ac_fn_c_try_link "$LINENO"
9365 then :
9366 eval $cacheid=yes
9367 else $as_nop
9368 eval $cacheid=no
9369 fi
9370 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9371 conftest$ac_exeext conftest.$ac_ext
9372 fi
9373
9374
9375 CFLAGS="$xorg_testset_save_CFLAGS"
9376
9377 eval supported=\$$cacheid
9378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9379 printf "%s\n" "$supported" >&6; }
9380 if test "$supported" = "yes" ; then
9381 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9382 found="yes"
9383 fi
9384 fi
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400 xorg_testset_save_CFLAGS="$CFLAGS"
9401
9402 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9405 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9406 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9407 then :
9408 printf %s "(cached) " >&6
9409 else $as_nop
9410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9412 int i;
9413 _ACEOF
9414 if ac_fn_c_try_compile "$LINENO"
9415 then :
9416 xorg_cv_cc_flag_unknown_warning_option=yes
9417 else $as_nop
9418 xorg_cv_cc_flag_unknown_warning_option=no
9419 fi
9420 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9421 fi
9422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9423 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9425 CFLAGS="$xorg_testset_save_CFLAGS"
9426 fi
9427
9428 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9431 fi
9432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9434 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9435 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
9443 if ac_fn_c_try_compile "$LINENO"
9444 then :
9445 xorg_cv_cc_flag_unused_command_line_argument=yes
9446 else $as_nop
9447 xorg_cv_cc_flag_unused_command_line_argument=no
9448 fi
9449 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9450 fi
9451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9452 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9454 CFLAGS="$xorg_testset_save_CFLAGS"
9455 fi
9456
9457 found="no"
9458
9459 if test $found = "no" ; then
9460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9462 fi
9463
9464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9466 fi
9467
9468 CFLAGS="$CFLAGS -Wmissing-braces"
9469
9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9471 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9472 cacheid=xorg_cv_cc_flag__Wmissing_braces
9473 if eval test \${$cacheid+y}
9474 then :
9475 printf %s "(cached) " >&6
9476 else $as_nop
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9479 int i;
9480 int
9481 main (void)
9482 {
9483
9484 ;
9485 return 0;
9486 }
9487 _ACEOF
9488 if ac_fn_c_try_link "$LINENO"
9489 then :
9490 eval $cacheid=yes
9491 else $as_nop
9492 eval $cacheid=no
9493 fi
9494 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9495 conftest$ac_exeext conftest.$ac_ext
9496 fi
9497
9498
9499 CFLAGS="$xorg_testset_save_CFLAGS"
9500
9501 eval supported=\$$cacheid
9502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9503 printf "%s\n" "$supported" >&6; }
9504 if test "$supported" = "yes" ; then
9505 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9506 found="yes"
9507 fi
9508 fi
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524 xorg_testset_save_CFLAGS="$CFLAGS"
9525
9526 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9529 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9530 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9531 then :
9532 printf %s "(cached) " >&6
9533 else $as_nop
9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h. */
9536 int i;
9537 _ACEOF
9538 if ac_fn_c_try_compile "$LINENO"
9539 then :
9540 xorg_cv_cc_flag_unknown_warning_option=yes
9541 else $as_nop
9542 xorg_cv_cc_flag_unknown_warning_option=no
9543 fi
9544 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9545 fi
9546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9547 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9549 CFLAGS="$xorg_testset_save_CFLAGS"
9550 fi
9551
9552 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9555 fi
9556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9558 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9559 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
9567 if ac_fn_c_try_compile "$LINENO"
9568 then :
9569 xorg_cv_cc_flag_unused_command_line_argument=yes
9570 else $as_nop
9571 xorg_cv_cc_flag_unused_command_line_argument=no
9572 fi
9573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9574 fi
9575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9576 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9578 CFLAGS="$xorg_testset_save_CFLAGS"
9579 fi
9580
9581 found="no"
9582
9583 if test $found = "no" ; then
9584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9586 fi
9587
9588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9590 fi
9591
9592 CFLAGS="$CFLAGS -Wsequence-point"
9593
9594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9595 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9596 cacheid=xorg_cv_cc_flag__Wsequence_point
9597 if eval test \${$cacheid+y}
9598 then :
9599 printf %s "(cached) " >&6
9600 else $as_nop
9601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9602 /* end confdefs.h. */
9603 int i;
9604 int
9605 main (void)
9606 {
9607
9608 ;
9609 return 0;
9610 }
9611 _ACEOF
9612 if ac_fn_c_try_link "$LINENO"
9613 then :
9614 eval $cacheid=yes
9615 else $as_nop
9616 eval $cacheid=no
9617 fi
9618 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9619 conftest$ac_exeext conftest.$ac_ext
9620 fi
9621
9622
9623 CFLAGS="$xorg_testset_save_CFLAGS"
9624
9625 eval supported=\$$cacheid
9626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9627 printf "%s\n" "$supported" >&6; }
9628 if test "$supported" = "yes" ; then
9629 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9630 found="yes"
9631 fi
9632 fi
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648 xorg_testset_save_CFLAGS="$CFLAGS"
9649
9650 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9653 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9654 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9655 then :
9656 printf %s "(cached) " >&6
9657 else $as_nop
9658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9659 /* end confdefs.h. */
9660 int i;
9661 _ACEOF
9662 if ac_fn_c_try_compile "$LINENO"
9663 then :
9664 xorg_cv_cc_flag_unknown_warning_option=yes
9665 else $as_nop
9666 xorg_cv_cc_flag_unknown_warning_option=no
9667 fi
9668 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9669 fi
9670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9671 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9673 CFLAGS="$xorg_testset_save_CFLAGS"
9674 fi
9675
9676 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9679 fi
9680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9682 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9683 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
9691 if ac_fn_c_try_compile "$LINENO"
9692 then :
9693 xorg_cv_cc_flag_unused_command_line_argument=yes
9694 else $as_nop
9695 xorg_cv_cc_flag_unused_command_line_argument=no
9696 fi
9697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9698 fi
9699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9700 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9702 CFLAGS="$xorg_testset_save_CFLAGS"
9703 fi
9704
9705 found="no"
9706
9707 if test $found = "no" ; then
9708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9710 fi
9711
9712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9714 fi
9715
9716 CFLAGS="$CFLAGS -Wreturn-type"
9717
9718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9719 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9720 cacheid=xorg_cv_cc_flag__Wreturn_type
9721 if eval test \${$cacheid+y}
9722 then :
9723 printf %s "(cached) " >&6
9724 else $as_nop
9725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726 /* end confdefs.h. */
9727 int i;
9728 int
9729 main (void)
9730 {
9731
9732 ;
9733 return 0;
9734 }
9735 _ACEOF
9736 if ac_fn_c_try_link "$LINENO"
9737 then :
9738 eval $cacheid=yes
9739 else $as_nop
9740 eval $cacheid=no
9741 fi
9742 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9743 conftest$ac_exeext conftest.$ac_ext
9744 fi
9745
9746
9747 CFLAGS="$xorg_testset_save_CFLAGS"
9748
9749 eval supported=\$$cacheid
9750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9751 printf "%s\n" "$supported" >&6; }
9752 if test "$supported" = "yes" ; then
9753 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9754 found="yes"
9755 fi
9756 fi
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772 xorg_testset_save_CFLAGS="$CFLAGS"
9773
9774 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9777 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9778 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9779 then :
9780 printf %s "(cached) " >&6
9781 else $as_nop
9782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783 /* end confdefs.h. */
9784 int i;
9785 _ACEOF
9786 if ac_fn_c_try_compile "$LINENO"
9787 then :
9788 xorg_cv_cc_flag_unknown_warning_option=yes
9789 else $as_nop
9790 xorg_cv_cc_flag_unknown_warning_option=no
9791 fi
9792 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9793 fi
9794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9795 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9797 CFLAGS="$xorg_testset_save_CFLAGS"
9798 fi
9799
9800 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9803 fi
9804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9806 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9807 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
9815 if ac_fn_c_try_compile "$LINENO"
9816 then :
9817 xorg_cv_cc_flag_unused_command_line_argument=yes
9818 else $as_nop
9819 xorg_cv_cc_flag_unused_command_line_argument=no
9820 fi
9821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9822 fi
9823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9824 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9825 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9826 CFLAGS="$xorg_testset_save_CFLAGS"
9827 fi
9828
9829 found="no"
9830
9831 if test $found = "no" ; then
9832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9834 fi
9835
9836 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9838 fi
9839
9840 CFLAGS="$CFLAGS -Wtrigraphs"
9841
9842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9843 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9844 cacheid=xorg_cv_cc_flag__Wtrigraphs
9845 if eval test \${$cacheid+y}
9846 then :
9847 printf %s "(cached) " >&6
9848 else $as_nop
9849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9850 /* end confdefs.h. */
9851 int i;
9852 int
9853 main (void)
9854 {
9855
9856 ;
9857 return 0;
9858 }
9859 _ACEOF
9860 if ac_fn_c_try_link "$LINENO"
9861 then :
9862 eval $cacheid=yes
9863 else $as_nop
9864 eval $cacheid=no
9865 fi
9866 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9867 conftest$ac_exeext conftest.$ac_ext
9868 fi
9869
9870
9871 CFLAGS="$xorg_testset_save_CFLAGS"
9872
9873 eval supported=\$$cacheid
9874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9875 printf "%s\n" "$supported" >&6; }
9876 if test "$supported" = "yes" ; then
9877 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9878 found="yes"
9879 fi
9880 fi
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896 xorg_testset_save_CFLAGS="$CFLAGS"
9897
9898 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9901 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9902 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9903 then :
9904 printf %s "(cached) " >&6
9905 else $as_nop
9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9908 int i;
9909 _ACEOF
9910 if ac_fn_c_try_compile "$LINENO"
9911 then :
9912 xorg_cv_cc_flag_unknown_warning_option=yes
9913 else $as_nop
9914 xorg_cv_cc_flag_unknown_warning_option=no
9915 fi
9916 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9917 fi
9918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9919 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9921 CFLAGS="$xorg_testset_save_CFLAGS"
9922 fi
9923
9924 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9927 fi
9928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9930 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9931 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
9939 if ac_fn_c_try_compile "$LINENO"
9940 then :
9941 xorg_cv_cc_flag_unused_command_line_argument=yes
9942 else $as_nop
9943 xorg_cv_cc_flag_unused_command_line_argument=no
9944 fi
9945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9946 fi
9947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9948 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9950 CFLAGS="$xorg_testset_save_CFLAGS"
9951 fi
9952
9953 found="no"
9954
9955 if test $found = "no" ; then
9956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9958 fi
9959
9960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9962 fi
9963
9964 CFLAGS="$CFLAGS -Warray-bounds"
9965
9966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9967 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9968 cacheid=xorg_cv_cc_flag__Warray_bounds
9969 if eval test \${$cacheid+y}
9970 then :
9971 printf %s "(cached) " >&6
9972 else $as_nop
9973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974 /* end confdefs.h. */
9975 int i;
9976 int
9977 main (void)
9978 {
9979
9980 ;
9981 return 0;
9982 }
9983 _ACEOF
9984 if ac_fn_c_try_link "$LINENO"
9985 then :
9986 eval $cacheid=yes
9987 else $as_nop
9988 eval $cacheid=no
9989 fi
9990 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9991 conftest$ac_exeext conftest.$ac_ext
9992 fi
9993
9994
9995 CFLAGS="$xorg_testset_save_CFLAGS"
9996
9997 eval supported=\$$cacheid
9998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9999 printf "%s\n" "$supported" >&6; }
10000 if test "$supported" = "yes" ; then
10001 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10002 found="yes"
10003 fi
10004 fi
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020 xorg_testset_save_CFLAGS="$CFLAGS"
10021
10022 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10025 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10026 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10027 then :
10028 printf %s "(cached) " >&6
10029 else $as_nop
10030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031 /* end confdefs.h. */
10032 int i;
10033 _ACEOF
10034 if ac_fn_c_try_compile "$LINENO"
10035 then :
10036 xorg_cv_cc_flag_unknown_warning_option=yes
10037 else $as_nop
10038 xorg_cv_cc_flag_unknown_warning_option=no
10039 fi
10040 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10041 fi
10042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10043 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10045 CFLAGS="$xorg_testset_save_CFLAGS"
10046 fi
10047
10048 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10051 fi
10052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10054 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10055 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
10063 if ac_fn_c_try_compile "$LINENO"
10064 then :
10065 xorg_cv_cc_flag_unused_command_line_argument=yes
10066 else $as_nop
10067 xorg_cv_cc_flag_unused_command_line_argument=no
10068 fi
10069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10070 fi
10071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10072 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10073 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10074 CFLAGS="$xorg_testset_save_CFLAGS"
10075 fi
10076
10077 found="no"
10078
10079 if test $found = "no" ; then
10080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10082 fi
10083
10084 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10086 fi
10087
10088 CFLAGS="$CFLAGS -Wwrite-strings"
10089
10090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10091 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10092 cacheid=xorg_cv_cc_flag__Wwrite_strings
10093 if eval test \${$cacheid+y}
10094 then :
10095 printf %s "(cached) " >&6
10096 else $as_nop
10097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10098 /* end confdefs.h. */
10099 int i;
10100 int
10101 main (void)
10102 {
10103
10104 ;
10105 return 0;
10106 }
10107 _ACEOF
10108 if ac_fn_c_try_link "$LINENO"
10109 then :
10110 eval $cacheid=yes
10111 else $as_nop
10112 eval $cacheid=no
10113 fi
10114 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10115 conftest$ac_exeext conftest.$ac_ext
10116 fi
10117
10118
10119 CFLAGS="$xorg_testset_save_CFLAGS"
10120
10121 eval supported=\$$cacheid
10122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10123 printf "%s\n" "$supported" >&6; }
10124 if test "$supported" = "yes" ; then
10125 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10126 found="yes"
10127 fi
10128 fi
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144 xorg_testset_save_CFLAGS="$CFLAGS"
10145
10146 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10149 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10150 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10151 then :
10152 printf %s "(cached) " >&6
10153 else $as_nop
10154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10155 /* end confdefs.h. */
10156 int i;
10157 _ACEOF
10158 if ac_fn_c_try_compile "$LINENO"
10159 then :
10160 xorg_cv_cc_flag_unknown_warning_option=yes
10161 else $as_nop
10162 xorg_cv_cc_flag_unknown_warning_option=no
10163 fi
10164 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10165 fi
10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10167 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10169 CFLAGS="$xorg_testset_save_CFLAGS"
10170 fi
10171
10172 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10175 fi
10176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10178 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10179 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
10187 if ac_fn_c_try_compile "$LINENO"
10188 then :
10189 xorg_cv_cc_flag_unused_command_line_argument=yes
10190 else $as_nop
10191 xorg_cv_cc_flag_unused_command_line_argument=no
10192 fi
10193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10194 fi
10195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10196 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10198 CFLAGS="$xorg_testset_save_CFLAGS"
10199 fi
10200
10201 found="no"
10202
10203 if test $found = "no" ; then
10204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10206 fi
10207
10208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10210 fi
10211
10212 CFLAGS="$CFLAGS -Waddress"
10213
10214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10215 printf %s "checking if $CC supports -Waddress... " >&6; }
10216 cacheid=xorg_cv_cc_flag__Waddress
10217 if eval test \${$cacheid+y}
10218 then :
10219 printf %s "(cached) " >&6
10220 else $as_nop
10221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222 /* end confdefs.h. */
10223 int i;
10224 int
10225 main (void)
10226 {
10227
10228 ;
10229 return 0;
10230 }
10231 _ACEOF
10232 if ac_fn_c_try_link "$LINENO"
10233 then :
10234 eval $cacheid=yes
10235 else $as_nop
10236 eval $cacheid=no
10237 fi
10238 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10239 conftest$ac_exeext conftest.$ac_ext
10240 fi
10241
10242
10243 CFLAGS="$xorg_testset_save_CFLAGS"
10244
10245 eval supported=\$$cacheid
10246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10247 printf "%s\n" "$supported" >&6; }
10248 if test "$supported" = "yes" ; then
10249 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10250 found="yes"
10251 fi
10252 fi
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268 xorg_testset_save_CFLAGS="$CFLAGS"
10269
10270 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10273 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10274 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10275 then :
10276 printf %s "(cached) " >&6
10277 else $as_nop
10278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279 /* end confdefs.h. */
10280 int i;
10281 _ACEOF
10282 if ac_fn_c_try_compile "$LINENO"
10283 then :
10284 xorg_cv_cc_flag_unknown_warning_option=yes
10285 else $as_nop
10286 xorg_cv_cc_flag_unknown_warning_option=no
10287 fi
10288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10289 fi
10290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10291 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10293 CFLAGS="$xorg_testset_save_CFLAGS"
10294 fi
10295
10296 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10299 fi
10300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10302 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10303 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
10311 if ac_fn_c_try_compile "$LINENO"
10312 then :
10313 xorg_cv_cc_flag_unused_command_line_argument=yes
10314 else $as_nop
10315 xorg_cv_cc_flag_unused_command_line_argument=no
10316 fi
10317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10318 fi
10319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10320 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10321 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10322 CFLAGS="$xorg_testset_save_CFLAGS"
10323 fi
10324
10325 found="no"
10326
10327 if test $found = "no" ; then
10328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10330 fi
10331
10332 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10334 fi
10335
10336 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10337
10338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10339 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10340 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10341 if eval test \${$cacheid+y}
10342 then :
10343 printf %s "(cached) " >&6
10344 else $as_nop
10345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10346 /* end confdefs.h. */
10347 int i;
10348 int
10349 main (void)
10350 {
10351
10352 ;
10353 return 0;
10354 }
10355 _ACEOF
10356 if ac_fn_c_try_link "$LINENO"
10357 then :
10358 eval $cacheid=yes
10359 else $as_nop
10360 eval $cacheid=no
10361 fi
10362 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10363 conftest$ac_exeext conftest.$ac_ext
10364 fi
10365
10366
10367 CFLAGS="$xorg_testset_save_CFLAGS"
10368
10369 eval supported=\$$cacheid
10370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10371 printf "%s\n" "$supported" >&6; }
10372 if test "$supported" = "yes" ; then
10373 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10374 found="yes"
10375 fi
10376 fi
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392 xorg_testset_save_CFLAGS="$CFLAGS"
10393
10394 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10397 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10398 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10399 then :
10400 printf %s "(cached) " >&6
10401 else $as_nop
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10404 int i;
10405 _ACEOF
10406 if ac_fn_c_try_compile "$LINENO"
10407 then :
10408 xorg_cv_cc_flag_unknown_warning_option=yes
10409 else $as_nop
10410 xorg_cv_cc_flag_unknown_warning_option=no
10411 fi
10412 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10413 fi
10414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10415 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10416 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10417 CFLAGS="$xorg_testset_save_CFLAGS"
10418 fi
10419
10420 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10423 fi
10424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10426 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10427 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
10435 if ac_fn_c_try_compile "$LINENO"
10436 then :
10437 xorg_cv_cc_flag_unused_command_line_argument=yes
10438 else $as_nop
10439 xorg_cv_cc_flag_unused_command_line_argument=no
10440 fi
10441 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10442 fi
10443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10444 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10445 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10446 CFLAGS="$xorg_testset_save_CFLAGS"
10447 fi
10448
10449 found="no"
10450
10451 if test $found = "no" ; then
10452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10454 fi
10455
10456 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10458 fi
10459
10460 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10461
10462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10463 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10464 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10465 if eval test \${$cacheid+y}
10466 then :
10467 printf %s "(cached) " >&6
10468 else $as_nop
10469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470 /* end confdefs.h. */
10471 int i;
10472 int
10473 main (void)
10474 {
10475
10476 ;
10477 return 0;
10478 }
10479 _ACEOF
10480 if ac_fn_c_try_link "$LINENO"
10481 then :
10482 eval $cacheid=yes
10483 else $as_nop
10484 eval $cacheid=no
10485 fi
10486 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10487 conftest$ac_exeext conftest.$ac_ext
10488 fi
10489
10490
10491 CFLAGS="$xorg_testset_save_CFLAGS"
10492
10493 eval supported=\$$cacheid
10494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10495 printf "%s\n" "$supported" >&6; }
10496 if test "$supported" = "yes" ; then
10497 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10498 found="yes"
10499 fi
10500 fi
10501
10502
10503 fi
10504
10505
10506
10507
10508
10509
10510
10511 CWARNFLAGS="$BASE_CFLAGS"
10512 if test "x$GCC" = xyes ; then
10513 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10514 fi
10515
10516
10517
10518
10519
10520
10521
10522
10523 # Check whether --enable-strict-compilation was given.
10524 if test ${enable_strict_compilation+y}
10525 then :
10526 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10527 else $as_nop
10528 STRICT_COMPILE=no
10529 fi
10530
10531
10532
10533
10534
10535
10536 STRICT_CFLAGS=""
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550 xorg_testset_save_CFLAGS="$CFLAGS"
10551
10552 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10555 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10556 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10557 then :
10558 printf %s "(cached) " >&6
10559 else $as_nop
10560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10561 /* end confdefs.h. */
10562 int i;
10563 _ACEOF
10564 if ac_fn_c_try_compile "$LINENO"
10565 then :
10566 xorg_cv_cc_flag_unknown_warning_option=yes
10567 else $as_nop
10568 xorg_cv_cc_flag_unknown_warning_option=no
10569 fi
10570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10571 fi
10572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10573 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10574 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10575 CFLAGS="$xorg_testset_save_CFLAGS"
10576 fi
10577
10578 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10581 fi
10582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10584 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10585 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10586 then :
10587 printf %s "(cached) " >&6
10588 else $as_nop
10589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h. */
10591 int i;
10592 _ACEOF
10593 if ac_fn_c_try_compile "$LINENO"
10594 then :
10595 xorg_cv_cc_flag_unused_command_line_argument=yes
10596 else $as_nop
10597 xorg_cv_cc_flag_unused_command_line_argument=no
10598 fi
10599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10600 fi
10601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10602 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10604 CFLAGS="$xorg_testset_save_CFLAGS"
10605 fi
10606
10607 found="no"
10608
10609 if test $found = "no" ; then
10610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10612 fi
10613
10614 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10616 fi
10617
10618 CFLAGS="$CFLAGS -pedantic"
10619
10620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10621 printf %s "checking if $CC supports -pedantic... " >&6; }
10622 cacheid=xorg_cv_cc_flag__pedantic
10623 if eval test \${$cacheid+y}
10624 then :
10625 printf %s "(cached) " >&6
10626 else $as_nop
10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h. */
10629 int i;
10630 int
10631 main (void)
10632 {
10633
10634 ;
10635 return 0;
10636 }
10637 _ACEOF
10638 if ac_fn_c_try_link "$LINENO"
10639 then :
10640 eval $cacheid=yes
10641 else $as_nop
10642 eval $cacheid=no
10643 fi
10644 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10645 conftest$ac_exeext conftest.$ac_ext
10646 fi
10647
10648
10649 CFLAGS="$xorg_testset_save_CFLAGS"
10650
10651 eval supported=\$$cacheid
10652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10653 printf "%s\n" "$supported" >&6; }
10654 if test "$supported" = "yes" ; then
10655 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10656 found="yes"
10657 fi
10658 fi
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674 xorg_testset_save_CFLAGS="$CFLAGS"
10675
10676 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10679 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10680 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10681 then :
10682 printf %s "(cached) " >&6
10683 else $as_nop
10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685 /* end confdefs.h. */
10686 int i;
10687 _ACEOF
10688 if ac_fn_c_try_compile "$LINENO"
10689 then :
10690 xorg_cv_cc_flag_unknown_warning_option=yes
10691 else $as_nop
10692 xorg_cv_cc_flag_unknown_warning_option=no
10693 fi
10694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10695 fi
10696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10697 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10698 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10699 CFLAGS="$xorg_testset_save_CFLAGS"
10700 fi
10701
10702 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10705 fi
10706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10708 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10709 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
10717 if ac_fn_c_try_compile "$LINENO"
10718 then :
10719 xorg_cv_cc_flag_unused_command_line_argument=yes
10720 else $as_nop
10721 xorg_cv_cc_flag_unused_command_line_argument=no
10722 fi
10723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10724 fi
10725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10726 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10728 CFLAGS="$xorg_testset_save_CFLAGS"
10729 fi
10730
10731 found="no"
10732
10733 if test $found = "no" ; then
10734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10736 fi
10737
10738 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10740 fi
10741
10742 CFLAGS="$CFLAGS -Werror"
10743
10744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10745 printf %s "checking if $CC supports -Werror... " >&6; }
10746 cacheid=xorg_cv_cc_flag__Werror
10747 if eval test \${$cacheid+y}
10748 then :
10749 printf %s "(cached) " >&6
10750 else $as_nop
10751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h. */
10753 int i;
10754 int
10755 main (void)
10756 {
10757
10758 ;
10759 return 0;
10760 }
10761 _ACEOF
10762 if ac_fn_c_try_link "$LINENO"
10763 then :
10764 eval $cacheid=yes
10765 else $as_nop
10766 eval $cacheid=no
10767 fi
10768 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10769 conftest$ac_exeext conftest.$ac_ext
10770 fi
10771
10772
10773 CFLAGS="$xorg_testset_save_CFLAGS"
10774
10775 eval supported=\$$cacheid
10776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10777 printf "%s\n" "$supported" >&6; }
10778 if test "$supported" = "yes" ; then
10779 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10780 found="yes"
10781 fi
10782 fi
10783
10784 if test $found = "no" ; then
10785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10787 fi
10788
10789 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10791 fi
10792
10793 CFLAGS="$CFLAGS -errwarn"
10794
10795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10796 printf %s "checking if $CC supports -errwarn... " >&6; }
10797 cacheid=xorg_cv_cc_flag__errwarn
10798 if eval test \${$cacheid+y}
10799 then :
10800 printf %s "(cached) " >&6
10801 else $as_nop
10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h. */
10804 int i;
10805 int
10806 main (void)
10807 {
10808
10809 ;
10810 return 0;
10811 }
10812 _ACEOF
10813 if ac_fn_c_try_link "$LINENO"
10814 then :
10815 eval $cacheid=yes
10816 else $as_nop
10817 eval $cacheid=no
10818 fi
10819 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10820 conftest$ac_exeext conftest.$ac_ext
10821 fi
10822
10823
10824 CFLAGS="$xorg_testset_save_CFLAGS"
10825
10826 eval supported=\$$cacheid
10827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10828 printf "%s\n" "$supported" >&6; }
10829 if test "$supported" = "yes" ; then
10830 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10831 found="yes"
10832 fi
10833 fi
10834
10835
10836
10837 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10838 # activate it with -Werror, so we add it here explicitly.
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852 xorg_testset_save_CFLAGS="$CFLAGS"
10853
10854 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10857 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10858 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10859 then :
10860 printf %s "(cached) " >&6
10861 else $as_nop
10862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h. */
10864 int i;
10865 _ACEOF
10866 if ac_fn_c_try_compile "$LINENO"
10867 then :
10868 xorg_cv_cc_flag_unknown_warning_option=yes
10869 else $as_nop
10870 xorg_cv_cc_flag_unknown_warning_option=no
10871 fi
10872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10873 fi
10874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10875 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10876 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10877 CFLAGS="$xorg_testset_save_CFLAGS"
10878 fi
10879
10880 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10883 fi
10884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10886 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10887 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10888 then :
10889 printf %s "(cached) " >&6
10890 else $as_nop
10891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892 /* end confdefs.h. */
10893 int i;
10894 _ACEOF
10895 if ac_fn_c_try_compile "$LINENO"
10896 then :
10897 xorg_cv_cc_flag_unused_command_line_argument=yes
10898 else $as_nop
10899 xorg_cv_cc_flag_unused_command_line_argument=no
10900 fi
10901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10902 fi
10903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10904 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10906 CFLAGS="$xorg_testset_save_CFLAGS"
10907 fi
10908
10909 found="no"
10910
10911 if test $found = "no" ; then
10912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10914 fi
10915
10916 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10918 fi
10919
10920 CFLAGS="$CFLAGS -Werror=attributes"
10921
10922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10923 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10924 cacheid=xorg_cv_cc_flag__Werror_attributes
10925 if eval test \${$cacheid+y}
10926 then :
10927 printf %s "(cached) " >&6
10928 else $as_nop
10929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930 /* end confdefs.h. */
10931 int i;
10932 int
10933 main (void)
10934 {
10935
10936 ;
10937 return 0;
10938 }
10939 _ACEOF
10940 if ac_fn_c_try_link "$LINENO"
10941 then :
10942 eval $cacheid=yes
10943 else $as_nop
10944 eval $cacheid=no
10945 fi
10946 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10947 conftest$ac_exeext conftest.$ac_ext
10948 fi
10949
10950
10951 CFLAGS="$xorg_testset_save_CFLAGS"
10952
10953 eval supported=\$$cacheid
10954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10955 printf "%s\n" "$supported" >&6; }
10956 if test "$supported" = "yes" ; then
10957 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10958 found="yes"
10959 fi
10960 fi
10961
10962
10963
10964 if test "x$STRICT_COMPILE" = "xyes"; then
10965 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10966 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10967 fi
10968
10969
10970
10971
10972
10973
10974 cat >>confdefs.h <<_ACEOF
10975 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10976 _ACEOF
10977
10978 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10979 if test "x$PVM" = "x"; then
10980 PVM="0"
10981 fi
10982
10983 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10984
10985 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10986 if test "x$PVP" = "x"; then
10987 PVP="0"
10988 fi
10989
10990 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10991
10992
10993
10994 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10995 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10996 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10997 touch \$(top_srcdir)/ChangeLog; \
10998 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10999
11000
11001
11002
11003 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11004 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11005 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11006 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11007 touch \$(top_srcdir)/INSTALL; \
11008 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11009
11010
11011
11012
11013
11014
11015 case $host_os in
11016 solaris*)
11017 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11018 # check for a man page file found in later versions that use
11019 # traditional section numbers instead
11020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11021 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11022 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11023 then :
11024 printf %s "(cached) " >&6
11025 else $as_nop
11026 test "$cross_compiling" = yes &&
11027 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11028 if test -r "/usr/share/man/man7/attributes.7"; then
11029 ac_cv_file__usr_share_man_man7_attributes_7=yes
11030 else
11031 ac_cv_file__usr_share_man_man7_attributes_7=no
11032 fi
11033 fi
11034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11035 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11036 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11037 then :
11038 SYSV_MAN_SECTIONS=false
11039 else $as_nop
11040 SYSV_MAN_SECTIONS=true
11041 fi
11042
11043 ;;
11044 *) SYSV_MAN_SECTIONS=false ;;
11045 esac
11046
11047 if test x$APP_MAN_SUFFIX = x ; then
11048 APP_MAN_SUFFIX=1
11049 fi
11050 if test x$APP_MAN_DIR = x ; then
11051 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11052 fi
11053
11054 if test x$LIB_MAN_SUFFIX = x ; then
11055 LIB_MAN_SUFFIX=3
11056 fi
11057 if test x$LIB_MAN_DIR = x ; then
11058 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11059 fi
11060
11061 if test x$FILE_MAN_SUFFIX = x ; then
11062 case $SYSV_MAN_SECTIONS in
11063 true) FILE_MAN_SUFFIX=4 ;;
11064 *) FILE_MAN_SUFFIX=5 ;;
11065 esac
11066 fi
11067 if test x$FILE_MAN_DIR = x ; then
11068 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11069 fi
11070
11071 if test x$MISC_MAN_SUFFIX = x ; then
11072 case $SYSV_MAN_SECTIONS in
11073 true) MISC_MAN_SUFFIX=5 ;;
11074 *) MISC_MAN_SUFFIX=7 ;;
11075 esac
11076 fi
11077 if test x$MISC_MAN_DIR = x ; then
11078 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11079 fi
11080
11081 if test x$DRIVER_MAN_SUFFIX = x ; then
11082 case $SYSV_MAN_SECTIONS in
11083 true) DRIVER_MAN_SUFFIX=7 ;;
11084 *) DRIVER_MAN_SUFFIX=4 ;;
11085 esac
11086 fi
11087 if test x$DRIVER_MAN_DIR = x ; then
11088 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11089 fi
11090
11091 if test x$ADMIN_MAN_SUFFIX = x ; then
11092 case $SYSV_MAN_SECTIONS in
11093 true) ADMIN_MAN_SUFFIX=1m ;;
11094 *) ADMIN_MAN_SUFFIX=8 ;;
11095 esac
11096 fi
11097 if test x$ADMIN_MAN_DIR = x ; then
11098 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11099 fi
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115 XORG_MAN_PAGE="X Version 11"
11116
11117 MAN_SUBSTS="\
11118 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11119 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11120 -e 's|__xservername__|Xorg|g' \
11121 -e 's|__xconfigfile__|xorg.conf|g' \
11122 -e 's|__projectroot__|\$(prefix)|g' \
11123 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11124 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11125 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11126 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11127 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11128 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11129 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11130
11131
11132
11133 # Check whether --enable-silent-rules was given.
11134 if test ${enable_silent_rules+y}
11135 then :
11136 enableval=$enable_silent_rules;
11137 fi
11138
11139 case $enable_silent_rules in # (((
11140 yes) AM_DEFAULT_VERBOSITY=0;;
11141 no) AM_DEFAULT_VERBOSITY=1;;
11142 *) AM_DEFAULT_VERBOSITY=0;;
11143 esac
11144 am_make=${MAKE-make}
11145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11146 printf %s "checking whether $am_make supports nested variables... " >&6; }
11147 if test ${am_cv_make_support_nested_variables+y}
11148 then :
11149 printf %s "(cached) " >&6
11150 else $as_nop
11151 if printf "%s\n" 'TRUE=$(BAR$(V))
11152 BAR0=false
11153 BAR1=true
11154 V=1
11155 am__doit:
11156 @$(TRUE)
11157 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11158 am_cv_make_support_nested_variables=yes
11159 else
11160 am_cv_make_support_nested_variables=no
11161 fi
11162 fi
11163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11164 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11165 if test $am_cv_make_support_nested_variables = yes; then
11166 AM_V='$(V)'
11167 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11168 else
11169 AM_V=$AM_DEFAULT_VERBOSITY
11170 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11171 fi
11172 AM_BACKSLASH='\'
11173
11174
11175
11176 # If both the C file and YACC are missing, the package cannot be build.
11177 for ac_prog in 'bison -y' byacc
11178 do
11179 # Extract the first word of "$ac_prog", so it can be a program name with args.
11180 set dummy $ac_prog; ac_word=$2
11181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11182 printf %s "checking for $ac_word... " >&6; }
11183 if test ${ac_cv_prog_YACC+y}
11184 then :
11185 printf %s "(cached) " >&6
11186 else $as_nop
11187 if test -n "$YACC"; then
11188 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11189 else
11190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11191 for as_dir in $PATH
11192 do
11193 IFS=$as_save_IFS
11194 case $as_dir in #(((
11195 '') as_dir=./ ;;
11196 */) ;;
11197 *) as_dir=$as_dir/ ;;
11198 esac
11199 for ac_exec_ext in '' $ac_executable_extensions; do
11200 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11201 ac_cv_prog_YACC="$ac_prog"
11202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11203 break 2
11204 fi
11205 done
11206 done
11207 IFS=$as_save_IFS
11208
11209 fi
11210 fi
11211 YACC=$ac_cv_prog_YACC
11212 if test -n "$YACC"; then
11213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11214 printf "%s\n" "$YACC" >&6; }
11215 else
11216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11217 printf "%s\n" "no" >&6; }
11218 fi
11219
11220
11221 test -n "$YACC" && break
11222 done
11223 test -n "$YACC" || YACC="yacc"
11224
11225 # Extract the first word of "$YACC", so it can be a program name with args.
11226 set dummy $YACC; ac_word=$2
11227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11228 printf %s "checking for $ac_word... " >&6; }
11229 if test ${ac_cv_path_YACC_INST+y}
11230 then :
11231 printf %s "(cached) " >&6
11232 else $as_nop
11233 case $YACC_INST in
11234 [\\/]* | ?:[\\/]*)
11235 ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
11236 ;;
11237 *)
11238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11239 for as_dir in $PATH
11240 do
11241 IFS=$as_save_IFS
11242 case $as_dir in #(((
11243 '') as_dir=./ ;;
11244 */) ;;
11245 *) as_dir=$as_dir/ ;;
11246 esac
11247 for ac_exec_ext in '' $ac_executable_extensions; do
11248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11249 ac_cv_path_YACC_INST="$as_dir$ac_word$ac_exec_ext"
11250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11251 break 2
11252 fi
11253 done
11254 done
11255 IFS=$as_save_IFS
11256
11257 ;;
11258 esac
11259 fi
11260 YACC_INST=$ac_cv_path_YACC_INST
11261 if test -n "$YACC_INST"; then
11262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
11263 printf "%s\n" "$YACC_INST" >&6; }
11264 else
11265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11266 printf "%s\n" "no" >&6; }
11267 fi
11268
11269
11270 if test ! -f "$srcdir/xkbparse.c"; then
11271 if test -z "$YACC_INST"; then
11272 as_fn_error $? "yacc not found - unable to compile xkbparse.y" "$LINENO" 5
11273 fi
11274 fi
11275
11276 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
11277 if test "x$ac_cv_func_strdup" = xyes
11278 then :
11279 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
11280
11281 fi
11282 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
11283 if test "x$ac_cv_func_strcasecmp" = xyes
11284 then :
11285 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
11286
11287 fi
11288
11289
11290 # Checks for pkg-config packages
11291
11292 pkg_failed=no
11293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBCOMP" >&5
11294 printf %s "checking for XKBCOMP... " >&6; }
11295
11296 if test -n "$XKBCOMP_CFLAGS"; then
11297 pkg_cv_XKBCOMP_CFLAGS="$XKBCOMP_CFLAGS"
11298 elif test -n "$PKG_CONFIG"; then
11299 if test -n "$PKG_CONFIG" && \
11300 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xkbfile xproto >= 7.0.17\""; } >&5
11301 ($PKG_CONFIG --exists --print-errors "x11 xkbfile xproto >= 7.0.17") 2>&5
11302 ac_status=$?
11303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11304 test $ac_status = 0; }; then
11305 pkg_cv_XKBCOMP_CFLAGS=`$PKG_CONFIG --cflags "x11 xkbfile xproto >= 7.0.17" 2>/dev/null`
11306 test "x$?" != "x0" && pkg_failed=yes
11307 else
11308 pkg_failed=yes
11309 fi
11310 else
11311 pkg_failed=untried
11312 fi
11313 if test -n "$XKBCOMP_LIBS"; then
11314 pkg_cv_XKBCOMP_LIBS="$XKBCOMP_LIBS"
11315 elif test -n "$PKG_CONFIG"; then
11316 if test -n "$PKG_CONFIG" && \
11317 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xkbfile xproto >= 7.0.17\""; } >&5
11318 ($PKG_CONFIG --exists --print-errors "x11 xkbfile xproto >= 7.0.17") 2>&5
11319 ac_status=$?
11320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11321 test $ac_status = 0; }; then
11322 pkg_cv_XKBCOMP_LIBS=`$PKG_CONFIG --libs "x11 xkbfile xproto >= 7.0.17" 2>/dev/null`
11323 test "x$?" != "x0" && pkg_failed=yes
11324 else
11325 pkg_failed=yes
11326 fi
11327 else
11328 pkg_failed=untried
11329 fi
11330
11331
11332
11333 if test $pkg_failed = yes; then
11334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335 printf "%s\n" "no" >&6; }
11336
11337 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11338 _pkg_short_errors_supported=yes
11339 else
11340 _pkg_short_errors_supported=no
11341 fi
11342 if test $_pkg_short_errors_supported = yes; then
11343 XKBCOMP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xkbfile xproto >= 7.0.17" 2>&1`
11344 else
11345 XKBCOMP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xkbfile xproto >= 7.0.17" 2>&1`
11346 fi
11347 # Put the nasty error message in config.log where it belongs
11348 echo "$XKBCOMP_PKG_ERRORS" >&5
11349
11350 as_fn_error $? "Package requirements (x11 xkbfile xproto >= 7.0.17) were not met:
11351
11352 $XKBCOMP_PKG_ERRORS
11353
11354 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11355 installed software in a non-standard prefix.
11356
11357 Alternatively, you may set the environment variables XKBCOMP_CFLAGS
11358 and XKBCOMP_LIBS to avoid the need to call pkg-config.
11359 See the pkg-config man page for more details." "$LINENO" 5
11360 elif test $pkg_failed = untried; then
11361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362 printf "%s\n" "no" >&6; }
11363 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11364 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11365 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11366 is in your PATH or set the PKG_CONFIG environment variable to the full
11367 path to pkg-config.
11368
11369 Alternatively, you may set the environment variables XKBCOMP_CFLAGS
11370 and XKBCOMP_LIBS to avoid the need to call pkg-config.
11371 See the pkg-config man page for more details.
11372
11373 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11374 See \`config.log' for more details" "$LINENO" 5; }
11375 else
11376 XKBCOMP_CFLAGS=$pkg_cv_XKBCOMP_CFLAGS
11377 XKBCOMP_LIBS=$pkg_cv_XKBCOMP_LIBS
11378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11379 printf "%s\n" "yes" >&6; }
11380
11381 fi
11382
11383 # Checks for typedefs, structures, and compiler characteristics.
11384 # Check whether --enable-largefile was given.
11385 if test ${enable_largefile+y}
11386 then :
11387 enableval=$enable_largefile;
11388 fi
11389
11390 if test "$enable_largefile" != no; then
11391
11392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11393 printf %s "checking for special C compiler options needed for large files... " >&6; }
11394 if test ${ac_cv_sys_largefile_CC+y}
11395 then :
11396 printf %s "(cached) " >&6
11397 else $as_nop
11398 ac_cv_sys_largefile_CC=no
11399 if test "$GCC" != yes; then
11400 ac_save_CC=$CC
11401 while :; do
11402 # IRIX 6.2 and later do not support large files by default,
11403 # so use the C compiler's -n32 option if that helps.
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11406 #include <sys/types.h>
11407 /* Check that off_t can represent 2**63 - 1 correctly.
11408 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11409 since some C++ compilers masquerading as C compilers
11410 incorrectly reject 9223372036854775807. */
11411 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11412 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11413 && LARGE_OFF_T % 2147483647 == 1)
11414 ? 1 : -1];
11415 int
11416 main (void)
11417 {
11418
11419 ;
11420 return 0;
11421 }
11422 _ACEOF
11423 if ac_fn_c_try_compile "$LINENO"
11424 then :
11425 break
11426 fi
11427 rm -f core conftest.err conftest.$ac_objext conftest.beam
11428 CC="$CC -n32"
11429 if ac_fn_c_try_compile "$LINENO"
11430 then :
11431 ac_cv_sys_largefile_CC=' -n32'; break
11432 fi
11433 rm -f core conftest.err conftest.$ac_objext conftest.beam
11434 break
11435 done
11436 CC=$ac_save_CC
11437 rm -f conftest.$ac_ext
11438 fi
11439 fi
11440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11441 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
11442 if test "$ac_cv_sys_largefile_CC" != no; then
11443 CC=$CC$ac_cv_sys_largefile_CC
11444 fi
11445
11446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11447 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11448 if test ${ac_cv_sys_file_offset_bits+y}
11449 then :
11450 printf %s "(cached) " >&6
11451 else $as_nop
11452 while :; do
11453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454 /* end confdefs.h. */
11455 #include <sys/types.h>
11456 /* Check that off_t can represent 2**63 - 1 correctly.
11457 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11458 since some C++ compilers masquerading as C compilers
11459 incorrectly reject 9223372036854775807. */
11460 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11461 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11462 && LARGE_OFF_T % 2147483647 == 1)
11463 ? 1 : -1];
11464 int
11465 main (void)
11466 {
11467
11468 ;
11469 return 0;
11470 }
11471 _ACEOF
11472 if ac_fn_c_try_compile "$LINENO"
11473 then :
11474 ac_cv_sys_file_offset_bits=no; break
11475 fi
11476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h. */
11479 #define _FILE_OFFSET_BITS 64
11480 #include <sys/types.h>
11481 /* Check that off_t can represent 2**63 - 1 correctly.
11482 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11483 since some C++ compilers masquerading as C compilers
11484 incorrectly reject 9223372036854775807. */
11485 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11486 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11487 && LARGE_OFF_T % 2147483647 == 1)
11488 ? 1 : -1];
11489 int
11490 main (void)
11491 {
11492
11493 ;
11494 return 0;
11495 }
11496 _ACEOF
11497 if ac_fn_c_try_compile "$LINENO"
11498 then :
11499 ac_cv_sys_file_offset_bits=64; break
11500 fi
11501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11502 ac_cv_sys_file_offset_bits=unknown
11503 break
11504 done
11505 fi
11506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11507 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
11508 case $ac_cv_sys_file_offset_bits in #(
11509 no | unknown) ;;
11510 *)
11511 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
11512 ;;
11513 esac
11514 rm -rf conftest*
11515 if test $ac_cv_sys_file_offset_bits = unknown; then
11516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11517 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
11518 if test ${ac_cv_sys_large_files+y}
11519 then :
11520 printf %s "(cached) " >&6
11521 else $as_nop
11522 while :; do
11523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11524 /* end confdefs.h. */
11525 #include <sys/types.h>
11526 /* Check that off_t can represent 2**63 - 1 correctly.
11527 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11528 since some C++ compilers masquerading as C compilers
11529 incorrectly reject 9223372036854775807. */
11530 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11531 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11532 && LARGE_OFF_T % 2147483647 == 1)
11533 ? 1 : -1];
11534 int
11535 main (void)
11536 {
11537
11538 ;
11539 return 0;
11540 }
11541 _ACEOF
11542 if ac_fn_c_try_compile "$LINENO"
11543 then :
11544 ac_cv_sys_large_files=no; break
11545 fi
11546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11548 /* end confdefs.h. */
11549 #define _LARGE_FILES 1
11550 #include <sys/types.h>
11551 /* Check that off_t can represent 2**63 - 1 correctly.
11552 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11553 since some C++ compilers masquerading as C compilers
11554 incorrectly reject 9223372036854775807. */
11555 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11556 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11557 && LARGE_OFF_T % 2147483647 == 1)
11558 ? 1 : -1];
11559 int
11560 main (void)
11561 {
11562
11563 ;
11564 return 0;
11565 }
11566 _ACEOF
11567 if ac_fn_c_try_compile "$LINENO"
11568 then :
11569 ac_cv_sys_large_files=1; break
11570 fi
11571 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11572 ac_cv_sys_large_files=unknown
11573 break
11574 done
11575 fi
11576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11577 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
11578 case $ac_cv_sys_large_files in #(
11579 no | unknown) ;;
11580 *)
11581 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
11582 ;;
11583 esac
11584 rm -rf conftest*
11585 fi
11586 fi
11587
11588
11589
11590 # Check whether --with-xkb_config_root was given.
11591 if test ${with_xkb_config_root+y}
11592 then :
11593 withval=$with_xkb_config_root; XKBCONFIGROOT="$withval"
11594 else $as_nop
11595 XKBCONFIGROOT='${datadir}/X11/xkb'
11596 fi
11597
11598
11599
11600
11601 ac_config_files="$ac_config_files Makefile man/Makefile xkbcomp.pc"
11602
11603 cat >confcache <<\_ACEOF
11604 # This file is a shell script that caches the results of configure
11605 # tests run on this system so they can be shared between configure
11606 # scripts and configure runs, see configure's option --config-cache.
11607 # It is not useful on other systems. If it contains results you don't
11608 # want to keep, you may remove or edit it.
11609 #
11610 # config.status only pays attention to the cache file if you give it
11611 # the --recheck option to rerun configure.
11612 #
11613 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11614 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11615 # following values.
11616
11617 _ACEOF
11618
11619 # The following way of writing the cache mishandles newlines in values,
11620 # but we know of no workaround that is simple, portable, and efficient.
11621 # So, we kill variables containing newlines.
11622 # Ultrix sh set writes to stderr and can't be redirected directly,
11623 # and sets the high bit in the cache file unless we assign to the vars.
11624 (
11625 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11626 eval ac_val=\$$ac_var
11627 case $ac_val in #(
11628 *${as_nl}*)
11629 case $ac_var in #(
11630 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11631 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11632 esac
11633 case $ac_var in #(
11634 _ | IFS | as_nl) ;; #(
11635 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11636 *) { eval $ac_var=; unset $ac_var;} ;;
11637 esac ;;
11638 esac
11639 done
11640
11641 (set) 2>&1 |
11642 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11643 *${as_nl}ac_space=\ *)
11644 # `set' does not quote correctly, so add quotes: double-quote
11645 # substitution turns \\\\ into \\, and sed turns \\ into \.
11646 sed -n \
11647 "s/'/'\\\\''/g;
11648 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11649 ;; #(
11650 *)
11651 # `set' quotes correctly as required by POSIX, so do not add quotes.
11652 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11653 ;;
11654 esac |
11655 sort
11656 ) |
11657 sed '
11658 /^ac_cv_env_/b end
11659 t clear
11660 :clear
11661 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11662 t end
11663 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11664 :end' >>confcache
11665 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11666 if test -w "$cache_file"; then
11667 if test "x$cache_file" != "x/dev/null"; then
11668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11669 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11670 if test ! -f "$cache_file" || test -h "$cache_file"; then
11671 cat confcache >"$cache_file"
11672 else
11673 case $cache_file in #(
11674 */* | ?:*)
11675 mv -f confcache "$cache_file"$$ &&
11676 mv -f "$cache_file"$$ "$cache_file" ;; #(
11677 *)
11678 mv -f confcache "$cache_file" ;;
11679 esac
11680 fi
11681 fi
11682 else
11683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11684 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11685 fi
11686 fi
11687 rm -f confcache
11688
11689 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11690 # Let make expand exec_prefix.
11691 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11692
11693 DEFS=-DHAVE_CONFIG_H
11694
11695 ac_libobjs=
11696 ac_ltlibobjs=
11697 U=
11698 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11699 # 1. Remove the extension, and $U if already installed.
11700 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11701 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11702 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11703 # will be set to the directory where LIBOBJS objects are built.
11704 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11705 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11706 done
11707 LIBOBJS=$ac_libobjs
11708
11709 LTLIBOBJS=$ac_ltlibobjs
11710
11711
11712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11713 printf %s "checking that generated files are newer than configure... " >&6; }
11714 if test -n "$am_sleep_pid"; then
11715 # Hide warnings about reused PIDs.
11716 wait $am_sleep_pid 2>/dev/null
11717 fi
11718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11719 printf "%s\n" "done" >&6; }
11720 if test -n "$EXEEXT"; then
11721 am__EXEEXT_TRUE=
11722 am__EXEEXT_FALSE='#'
11723 else
11724 am__EXEEXT_TRUE='#'
11725 am__EXEEXT_FALSE=
11726 fi
11727
11728 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11729 as_fn_error $? "conditional \"AMDEP\" was never defined.
11730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11731 fi
11732 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11733 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11735 fi
11736
11737 : "${CONFIG_STATUS=./config.status}"
11738 ac_write_fail=0
11739 ac_clean_files_save=$ac_clean_files
11740 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11742 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11743 as_write_fail=0
11744 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11745 #! $SHELL
11746 # Generated by $as_me.
11747 # Run this file to recreate the current configuration.
11748 # Compiler output produced by configure, useful for debugging
11749 # configure, is in config.log if it exists.
11750
11751 debug=false
11752 ac_cs_recheck=false
11753 ac_cs_silent=false
11754
11755 SHELL=\${CONFIG_SHELL-$SHELL}
11756 export SHELL
11757 _ASEOF
11758 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11759 ## -------------------- ##
11760 ## M4sh Initialization. ##
11761 ## -------------------- ##
11762
11763 # Be more Bourne compatible
11764 DUALCASE=1; export DUALCASE # for MKS sh
11765 as_nop=:
11766 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11767 then :
11768 emulate sh
11769 NULLCMD=:
11770 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11771 # is contrary to our usage. Disable this feature.
11772 alias -g '${1+"$@"}'='"$@"'
11773 setopt NO_GLOB_SUBST
11774 else $as_nop
11775 case `(set -o) 2>/dev/null` in #(
11776 *posix*) :
11777 set -o posix ;; #(
11778 *) :
11779 ;;
11780 esac
11781 fi
11782
11783
11784
11785 # Reset variables that may have inherited troublesome values from
11786 # the environment.
11787
11788 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11789 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11790 # side effect of setting IFS to empty, thus disabling word splitting.)
11791 # Quoting is to prevent editors from complaining about space-tab.
11792 as_nl='
11793 '
11794 export as_nl
11795 IFS=" "" $as_nl"
11796
11797 PS1='$ '
11798 PS2='> '
11799 PS4='+ '
11800
11801 # Ensure predictable behavior from utilities with locale-dependent output.
11802 LC_ALL=C
11803 export LC_ALL
11804 LANGUAGE=C
11805 export LANGUAGE
11806
11807 # We cannot yet rely on "unset" to work, but we need these variables
11808 # to be unset--not just set to an empty or harmless value--now, to
11809 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11810 # also avoids known problems related to "unset" and subshell syntax
11811 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11812 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11813 do eval test \${$as_var+y} \
11814 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11815 done
11816
11817 # Ensure that fds 0, 1, and 2 are open.
11818 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11819 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11820 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11821
11822 # The user is always right.
11823 if ${PATH_SEPARATOR+false} :; then
11824 PATH_SEPARATOR=:
11825 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11826 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11827 PATH_SEPARATOR=';'
11828 }
11829 fi
11830
11831
11832 # Find who we are. Look in the path if we contain no directory separator.
11833 as_myself=
11834 case $0 in #((
11835 *[\\/]* ) as_myself=$0 ;;
11836 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11837 for as_dir in $PATH
11838 do
11839 IFS=$as_save_IFS
11840 case $as_dir in #(((
11841 '') as_dir=./ ;;
11842 */) ;;
11843 *) as_dir=$as_dir/ ;;
11844 esac
11845 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11846 done
11847 IFS=$as_save_IFS
11848
11849 ;;
11850 esac
11851 # We did not find ourselves, most probably we were run as `sh COMMAND'
11852 # in which case we are not to be found in the path.
11853 if test "x$as_myself" = x; then
11854 as_myself=$0
11855 fi
11856 if test ! -f "$as_myself"; then
11857 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11858 exit 1
11859 fi
11860
11861
11862
11863 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11864 # ----------------------------------------
11865 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11866 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11867 # script with STATUS, using 1 if that was 0.
11868 as_fn_error ()
11869 {
11870 as_status=$1; test $as_status -eq 0 && as_status=1
11871 if test "$4"; then
11872 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11874 fi
11875 printf "%s\n" "$as_me: error: $2" >&2
11876 as_fn_exit $as_status
11877 } # as_fn_error
11878
11879
11880
11881 # as_fn_set_status STATUS
11882 # -----------------------
11883 # Set $? to STATUS, without forking.
11884 as_fn_set_status ()
11885 {
11886 return $1
11887 } # as_fn_set_status
11888
11889 # as_fn_exit STATUS
11890 # -----------------
11891 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11892 as_fn_exit ()
11893 {
11894 set +e
11895 as_fn_set_status $1
11896 exit $1
11897 } # as_fn_exit
11898
11899 # as_fn_unset VAR
11900 # ---------------
11901 # Portably unset VAR.
11902 as_fn_unset ()
11903 {
11904 { eval $1=; unset $1;}
11905 }
11906 as_unset=as_fn_unset
11907
11908 # as_fn_append VAR VALUE
11909 # ----------------------
11910 # Append the text in VALUE to the end of the definition contained in VAR. Take
11911 # advantage of any shell optimizations that allow amortized linear growth over
11912 # repeated appends, instead of the typical quadratic growth present in naive
11913 # implementations.
11914 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11915 then :
11916 eval 'as_fn_append ()
11917 {
11918 eval $1+=\$2
11919 }'
11920 else $as_nop
11921 as_fn_append ()
11922 {
11923 eval $1=\$$1\$2
11924 }
11925 fi # as_fn_append
11926
11927 # as_fn_arith ARG...
11928 # ------------------
11929 # Perform arithmetic evaluation on the ARGs, and store the result in the
11930 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11931 # must be portable across $(()) and expr.
11932 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11933 then :
11934 eval 'as_fn_arith ()
11935 {
11936 as_val=$(( $* ))
11937 }'
11938 else $as_nop
11939 as_fn_arith ()
11940 {
11941 as_val=`expr "$@" || test $? -eq 1`
11942 }
11943 fi # as_fn_arith
11944
11945
11946 if expr a : '\(a\)' >/dev/null 2>&1 &&
11947 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11948 as_expr=expr
11949 else
11950 as_expr=false
11951 fi
11952
11953 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11954 as_basename=basename
11955 else
11956 as_basename=false
11957 fi
11958
11959 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11960 as_dirname=dirname
11961 else
11962 as_dirname=false
11963 fi
11964
11965 as_me=`$as_basename -- "$0" ||
11966 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11967 X"$0" : 'X\(//\)$' \| \
11968 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11969 printf "%s\n" X/"$0" |
11970 sed '/^.*\/\([^/][^/]*\)\/*$/{
11971 s//\1/
11972 q
11973 }
11974 /^X\/\(\/\/\)$/{
11975 s//\1/
11976 q
11977 }
11978 /^X\/\(\/\).*/{
11979 s//\1/
11980 q
11981 }
11982 s/.*/./; q'`
11983
11984 # Avoid depending upon Character Ranges.
11985 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11986 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11987 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11988 as_cr_digits='0123456789'
11989 as_cr_alnum=$as_cr_Letters$as_cr_digits
11990
11991
11992 # Determine whether it's possible to make 'echo' print without a newline.
11993 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11994 # for compatibility with existing Makefiles.
11995 ECHO_C= ECHO_N= ECHO_T=
11996 case `echo -n x` in #(((((
11997 -n*)
11998 case `echo 'xy\c'` in
11999 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12000 xy) ECHO_C='\c';;
12001 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12002 ECHO_T=' ';;
12003 esac;;
12004 *)
12005 ECHO_N='-n';;
12006 esac
12007
12008 # For backward compatibility with old third-party macros, we provide
12009 # the shell variables $as_echo and $as_echo_n. New code should use
12010 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12011 as_echo='printf %s\n'
12012 as_echo_n='printf %s'
12013
12014 rm -f conf$$ conf$$.exe conf$$.file
12015 if test -d conf$$.dir; then
12016 rm -f conf$$.dir/conf$$.file
12017 else
12018 rm -f conf$$.dir
12019 mkdir conf$$.dir 2>/dev/null
12020 fi
12021 if (echo >conf$$.file) 2>/dev/null; then
12022 if ln -s conf$$.file conf$$ 2>/dev/null; then
12023 as_ln_s='ln -s'
12024 # ... but there are two gotchas:
12025 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12026 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12027 # In both cases, we have to default to `cp -pR'.
12028 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12029 as_ln_s='cp -pR'
12030 elif ln conf$$.file conf$$ 2>/dev/null; then
12031 as_ln_s=ln
12032 else
12033 as_ln_s='cp -pR'
12034 fi
12035 else
12036 as_ln_s='cp -pR'
12037 fi
12038 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12039 rmdir conf$$.dir 2>/dev/null
12040
12041
12042 # as_fn_mkdir_p
12043 # -------------
12044 # Create "$as_dir" as a directory, including parents if necessary.
12045 as_fn_mkdir_p ()
12046 {
12047
12048 case $as_dir in #(
12049 -*) as_dir=./$as_dir;;
12050 esac
12051 test -d "$as_dir" || eval $as_mkdir_p || {
12052 as_dirs=
12053 while :; do
12054 case $as_dir in #(
12055 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12056 *) as_qdir=$as_dir;;
12057 esac
12058 as_dirs="'$as_qdir' $as_dirs"
12059 as_dir=`$as_dirname -- "$as_dir" ||
12060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12061 X"$as_dir" : 'X\(//\)[^/]' \| \
12062 X"$as_dir" : 'X\(//\)$' \| \
12063 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12064 printf "%s\n" X"$as_dir" |
12065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12066 s//\1/
12067 q
12068 }
12069 /^X\(\/\/\)[^/].*/{
12070 s//\1/
12071 q
12072 }
12073 /^X\(\/\/\)$/{
12074 s//\1/
12075 q
12076 }
12077 /^X\(\/\).*/{
12078 s//\1/
12079 q
12080 }
12081 s/.*/./; q'`
12082 test -d "$as_dir" && break
12083 done
12084 test -z "$as_dirs" || eval "mkdir $as_dirs"
12085 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12086
12087
12088 } # as_fn_mkdir_p
12089 if mkdir -p . 2>/dev/null; then
12090 as_mkdir_p='mkdir -p "$as_dir"'
12091 else
12092 test -d ./-p && rmdir ./-p
12093 as_mkdir_p=false
12094 fi
12095
12096
12097 # as_fn_executable_p FILE
12098 # -----------------------
12099 # Test if FILE is an executable regular file.
12100 as_fn_executable_p ()
12101 {
12102 test -f "$1" && test -x "$1"
12103 } # as_fn_executable_p
12104 as_test_x='test -x'
12105 as_executable_p=as_fn_executable_p
12106
12107 # Sed expression to map a string onto a valid CPP name.
12108 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12109
12110 # Sed expression to map a string onto a valid variable name.
12111 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12112
12113
12114 exec 6>&1
12115 ## ----------------------------------- ##
12116 ## Main body of $CONFIG_STATUS script. ##
12117 ## ----------------------------------- ##
12118 _ASEOF
12119 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12120
12121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12122 # Save the log message, to keep $0 and so on meaningful, and to
12123 # report actual input values of CONFIG_FILES etc. instead of their
12124 # values after options handling.
12125 ac_log="
12126 This file was extended by xkbcomp $as_me 1.4.6, which was
12127 generated by GNU Autoconf 2.71. Invocation command line was
12128
12129 CONFIG_FILES = $CONFIG_FILES
12130 CONFIG_HEADERS = $CONFIG_HEADERS
12131 CONFIG_LINKS = $CONFIG_LINKS
12132 CONFIG_COMMANDS = $CONFIG_COMMANDS
12133 $ $0 $@
12134
12135 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12136 "
12137
12138 _ACEOF
12139
12140 case $ac_config_files in *"
12141 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12142 esac
12143
12144 case $ac_config_headers in *"
12145 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12146 esac
12147
12148
12149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12150 # Files that config.status was made for.
12151 config_files="$ac_config_files"
12152 config_headers="$ac_config_headers"
12153 config_commands="$ac_config_commands"
12154
12155 _ACEOF
12156
12157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12158 ac_cs_usage="\
12159 \`$as_me' instantiates files and other configuration actions
12160 from templates according to the current configuration. Unless the files
12161 and actions are specified as TAGs, all are instantiated by default.
12162
12163 Usage: $0 [OPTION]... [TAG]...
12164
12165 -h, --help print this help, then exit
12166 -V, --version print version number and configuration settings, then exit
12167 --config print configuration, then exit
12168 -q, --quiet, --silent
12169 do not print progress messages
12170 -d, --debug don't remove temporary files
12171 --recheck update $as_me by reconfiguring in the same conditions
12172 --file=FILE[:TEMPLATE]
12173 instantiate the configuration file FILE
12174 --header=FILE[:TEMPLATE]
12175 instantiate the configuration header FILE
12176
12177 Configuration files:
12178 $config_files
12179
12180 Configuration headers:
12181 $config_headers
12182
12183 Configuration commands:
12184 $config_commands
12185
12186 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/issues>."
12187
12188 _ACEOF
12189 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12190 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12192 ac_cs_config='$ac_cs_config_escaped'
12193 ac_cs_version="\\
12194 xkbcomp config.status 1.4.6
12195 configured by $0, generated by GNU Autoconf 2.71,
12196 with options \\"\$ac_cs_config\\"
12197
12198 Copyright (C) 2021 Free Software Foundation, Inc.
12199 This config.status script is free software; the Free Software Foundation
12200 gives unlimited permission to copy, distribute and modify it."
12201
12202 ac_pwd='$ac_pwd'
12203 srcdir='$srcdir'
12204 INSTALL='$INSTALL'
12205 MKDIR_P='$MKDIR_P'
12206 AWK='$AWK'
12207 test -n "\$AWK" || AWK=awk
12208 _ACEOF
12209
12210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12211 # The default lists apply if the user does not specify any file.
12212 ac_need_defaults=:
12213 while test $# != 0
12214 do
12215 case $1 in
12216 --*=?*)
12217 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12218 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12219 ac_shift=:
12220 ;;
12221 --*=)
12222 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12223 ac_optarg=
12224 ac_shift=:
12225 ;;
12226 *)
12227 ac_option=$1
12228 ac_optarg=$2
12229 ac_shift=shift
12230 ;;
12231 esac
12232
12233 case $ac_option in
12234 # Handling of the options.
12235 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12236 ac_cs_recheck=: ;;
12237 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12238 printf "%s\n" "$ac_cs_version"; exit ;;
12239 --config | --confi | --conf | --con | --co | --c )
12240 printf "%s\n" "$ac_cs_config"; exit ;;
12241 --debug | --debu | --deb | --de | --d | -d )
12242 debug=: ;;
12243 --file | --fil | --fi | --f )
12244 $ac_shift
12245 case $ac_optarg in
12246 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12247 '') as_fn_error $? "missing file argument" ;;
12248 esac
12249 as_fn_append CONFIG_FILES " '$ac_optarg'"
12250 ac_need_defaults=false;;
12251 --header | --heade | --head | --hea )
12252 $ac_shift
12253 case $ac_optarg in
12254 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12255 esac
12256 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12257 ac_need_defaults=false;;
12258 --he | --h)
12259 # Conflict between --help and --header
12260 as_fn_error $? "ambiguous option: \`$1'
12261 Try \`$0 --help' for more information.";;
12262 --help | --hel | -h )
12263 printf "%s\n" "$ac_cs_usage"; exit ;;
12264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12265 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12266 ac_cs_silent=: ;;
12267
12268 # This is an error.
12269 -*) as_fn_error $? "unrecognized option: \`$1'
12270 Try \`$0 --help' for more information." ;;
12271
12272 *) as_fn_append ac_config_targets " $1"
12273 ac_need_defaults=false ;;
12274
12275 esac
12276 shift
12277 done
12278
12279 ac_configure_extra_args=
12280
12281 if $ac_cs_silent; then
12282 exec 6>/dev/null
12283 ac_configure_extra_args="$ac_configure_extra_args --silent"
12284 fi
12285
12286 _ACEOF
12287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12288 if \$ac_cs_recheck; then
12289 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12290 shift
12291 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12292 CONFIG_SHELL='$SHELL'
12293 export CONFIG_SHELL
12294 exec "\$@"
12295 fi
12296
12297 _ACEOF
12298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12299 exec 5>>config.log
12300 {
12301 echo
12302 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12303 ## Running $as_me. ##
12304 _ASBOX
12305 printf "%s\n" "$ac_log"
12306 } >&5
12307
12308 _ACEOF
12309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12310 #
12311 # INIT-COMMANDS
12312 #
12313 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12314
12315 _ACEOF
12316
12317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12318
12319 # Handling of arguments.
12320 for ac_config_target in $ac_config_targets
12321 do
12322 case $ac_config_target in
12323 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12324 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12325 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12326 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12327 "xkbcomp.pc") CONFIG_FILES="$CONFIG_FILES xkbcomp.pc" ;;
12328
12329 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12330 esac
12331 done
12332
12333
12334 # If the user did not use the arguments to specify the items to instantiate,
12335 # then the envvar interface is used. Set only those that are not.
12336 # We use the long form for the default assignment because of an extremely
12337 # bizarre bug on SunOS 4.1.3.
12338 if $ac_need_defaults; then
12339 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12340 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12341 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12342 fi
12343
12344 # Have a temporary directory for convenience. Make it in the build tree
12345 # simply because there is no reason against having it here, and in addition,
12346 # creating and moving files from /tmp can sometimes cause problems.
12347 # Hook for its removal unless debugging.
12348 # Note that there is a small window in which the directory will not be cleaned:
12349 # after its creation but before its name has been assigned to `$tmp'.
12350 $debug ||
12351 {
12352 tmp= ac_tmp=
12353 trap 'exit_status=$?
12354 : "${ac_tmp:=$tmp}"
12355 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12356 ' 0
12357 trap 'as_fn_exit 1' 1 2 13 15
12358 }
12359 # Create a (secure) tmp directory for tmp files.
12360
12361 {
12362 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12363 test -d "$tmp"
12364 } ||
12365 {
12366 tmp=./conf$$-$RANDOM
12367 (umask 077 && mkdir "$tmp")
12368 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12369 ac_tmp=$tmp
12370
12371 # Set up the scripts for CONFIG_FILES section.
12372 # No need to generate them if there are no CONFIG_FILES.
12373 # This happens for instance with `./config.status config.h'.
12374 if test -n "$CONFIG_FILES"; then
12375
12376
12377 ac_cr=`echo X | tr X '\015'`
12378 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12379 # But we know of no other shell where ac_cr would be empty at this
12380 # point, so we can use a bashism as a fallback.
12381 if test "x$ac_cr" = x; then
12382 eval ac_cr=\$\'\\r\'
12383 fi
12384 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12385 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12386 ac_cs_awk_cr='\\r'
12387 else
12388 ac_cs_awk_cr=$ac_cr
12389 fi
12390
12391 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12392 _ACEOF
12393
12394
12395 {
12396 echo "cat >conf$$subs.awk <<_ACEOF" &&
12397 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12398 echo "_ACEOF"
12399 } >conf$$subs.sh ||
12400 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12401 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12402 ac_delim='%!_!# '
12403 for ac_last_try in false false false false false :; do
12404 . ./conf$$subs.sh ||
12405 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12406
12407 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12408 if test $ac_delim_n = $ac_delim_num; then
12409 break
12410 elif $ac_last_try; then
12411 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12412 else
12413 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12414 fi
12415 done
12416 rm -f conf$$subs.sh
12417
12418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12419 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12420 _ACEOF
12421 sed -n '
12422 h
12423 s/^/S["/; s/!.*/"]=/
12424 p
12425 g
12426 s/^[^!]*!//
12427 :repl
12428 t repl
12429 s/'"$ac_delim"'$//
12430 t delim
12431 :nl
12432 h
12433 s/\(.\{148\}\)..*/\1/
12434 t more1
12435 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12436 p
12437 n
12438 b repl
12439 :more1
12440 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12441 p
12442 g
12443 s/.\{148\}//
12444 t nl
12445 :delim
12446 h
12447 s/\(.\{148\}\)..*/\1/
12448 t more2
12449 s/["\\]/\\&/g; s/^/"/; s/$/"/
12450 p
12451 b
12452 :more2
12453 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12454 p
12455 g
12456 s/.\{148\}//
12457 t delim
12458 ' <conf$$subs.awk | sed '
12459 /^[^""]/{
12460 N
12461 s/\n//
12462 }
12463 ' >>$CONFIG_STATUS || ac_write_fail=1
12464 rm -f conf$$subs.awk
12465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12466 _ACAWK
12467 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12468 for (key in S) S_is_set[key] = 1
12469 FS = ""
12470
12471 }
12472 {
12473 line = $ 0
12474 nfields = split(line, field, "@")
12475 substed = 0
12476 len = length(field[1])
12477 for (i = 2; i < nfields; i++) {
12478 key = field[i]
12479 keylen = length(key)
12480 if (S_is_set[key]) {
12481 value = S[key]
12482 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12483 len += length(value) + length(field[++i])
12484 substed = 1
12485 } else
12486 len += 1 + keylen
12487 }
12488
12489 print line
12490 }
12491
12492 _ACAWK
12493 _ACEOF
12494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12495 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12496 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12497 else
12498 cat
12499 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12500 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12501 _ACEOF
12502
12503 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12504 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12505 # trailing colons and then remove the whole line if VPATH becomes empty
12506 # (actually we leave an empty line to preserve line numbers).
12507 if test "x$srcdir" = x.; then
12508 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12509 h
12510 s///
12511 s/^/:/
12512 s/[ ]*$/:/
12513 s/:\$(srcdir):/:/g
12514 s/:\${srcdir}:/:/g
12515 s/:@srcdir@:/:/g
12516 s/^:*//
12517 s/:*$//
12518 x
12519 s/\(=[ ]*\).*/\1/
12520 G
12521 s/\n//
12522 s/^[^=]*=[ ]*$//
12523 }'
12524 fi
12525
12526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12527 fi # test -n "$CONFIG_FILES"
12528
12529 # Set up the scripts for CONFIG_HEADERS section.
12530 # No need to generate them if there are no CONFIG_HEADERS.
12531 # This happens for instance with `./config.status Makefile'.
12532 if test -n "$CONFIG_HEADERS"; then
12533 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12534 BEGIN {
12535 _ACEOF
12536
12537 # Transform confdefs.h into an awk script `defines.awk', embedded as
12538 # here-document in config.status, that substitutes the proper values into
12539 # config.h.in to produce config.h.
12540
12541 # Create a delimiter string that does not exist in confdefs.h, to ease
12542 # handling of long lines.
12543 ac_delim='%!_!# '
12544 for ac_last_try in false false :; do
12545 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12546 if test -z "$ac_tt"; then
12547 break
12548 elif $ac_last_try; then
12549 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12550 else
12551 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12552 fi
12553 done
12554
12555 # For the awk script, D is an array of macro values keyed by name,
12556 # likewise P contains macro parameters if any. Preserve backslash
12557 # newline sequences.
12558
12559 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12560 sed -n '
12561 s/.\{148\}/&'"$ac_delim"'/g
12562 t rset
12563 :rset
12564 s/^[ ]*#[ ]*define[ ][ ]*/ /
12565 t def
12566 d
12567 :def
12568 s/\\$//
12569 t bsnl
12570 s/["\\]/\\&/g
12571 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12572 D["\1"]=" \3"/p
12573 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12574 d
12575 :bsnl
12576 s/["\\]/\\&/g
12577 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12578 D["\1"]=" \3\\\\\\n"\\/p
12579 t cont
12580 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12581 t cont
12582 d
12583 :cont
12584 n
12585 s/.\{148\}/&'"$ac_delim"'/g
12586 t clear
12587 :clear
12588 s/\\$//
12589 t bsnlc
12590 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12591 d
12592 :bsnlc
12593 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12594 b cont
12595 ' <confdefs.h | sed '
12596 s/'"$ac_delim"'/"\\\
12597 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12598
12599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12600 for (key in D) D_is_set[key] = 1
12601 FS = ""
12602 }
12603 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12604 line = \$ 0
12605 split(line, arg, " ")
12606 if (arg[1] == "#") {
12607 defundef = arg[2]
12608 mac1 = arg[3]
12609 } else {
12610 defundef = substr(arg[1], 2)
12611 mac1 = arg[2]
12612 }
12613 split(mac1, mac2, "(") #)
12614 macro = mac2[1]
12615 prefix = substr(line, 1, index(line, defundef) - 1)
12616 if (D_is_set[macro]) {
12617 # Preserve the white space surrounding the "#".
12618 print prefix "define", macro P[macro] D[macro]
12619 next
12620 } else {
12621 # Replace #undef with comments. This is necessary, for example,
12622 # in the case of _POSIX_SOURCE, which is predefined and required
12623 # on some systems where configure will not decide to define it.
12624 if (defundef == "undef") {
12625 print "/*", prefix defundef, macro, "*/"
12626 next
12627 }
12628 }
12629 }
12630 { print }
12631 _ACAWK
12632 _ACEOF
12633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12634 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12635 fi # test -n "$CONFIG_HEADERS"
12636
12637
12638 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12639 shift
12640 for ac_tag
12641 do
12642 case $ac_tag in
12643 :[FHLC]) ac_mode=$ac_tag; continue;;
12644 esac
12645 case $ac_mode$ac_tag in
12646 :[FHL]*:*);;
12647 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12648 :[FH]-) ac_tag=-:-;;
12649 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12650 esac
12651 ac_save_IFS=$IFS
12652 IFS=:
12653 set x $ac_tag
12654 IFS=$ac_save_IFS
12655 shift
12656 ac_file=$1
12657 shift
12658
12659 case $ac_mode in
12660 :L) ac_source=$1;;
12661 :[FH])
12662 ac_file_inputs=
12663 for ac_f
12664 do
12665 case $ac_f in
12666 -) ac_f="$ac_tmp/stdin";;
12667 *) # Look for the file first in the build tree, then in the source tree
12668 # (if the path is not absolute). The absolute path cannot be DOS-style,
12669 # because $ac_f cannot contain `:'.
12670 test -f "$ac_f" ||
12671 case $ac_f in
12672 [\\/$]*) false;;
12673 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12674 esac ||
12675 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12676 esac
12677 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12678 as_fn_append ac_file_inputs " '$ac_f'"
12679 done
12680
12681 # Let's still pretend it is `configure' which instantiates (i.e., don't
12682 # use $as_me), people would be surprised to read:
12683 # /* config.h. Generated by config.status. */
12684 configure_input='Generated from '`
12685 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12686 `' by configure.'
12687 if test x"$ac_file" != x-; then
12688 configure_input="$ac_file. $configure_input"
12689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12690 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12691 fi
12692 # Neutralize special characters interpreted by sed in replacement strings.
12693 case $configure_input in #(
12694 *\&* | *\|* | *\\* )
12695 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12696 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12697 *) ac_sed_conf_input=$configure_input;;
12698 esac
12699
12700 case $ac_tag in
12701 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12702 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12703 esac
12704 ;;
12705 esac
12706
12707 ac_dir=`$as_dirname -- "$ac_file" ||
12708 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12709 X"$ac_file" : 'X\(//\)[^/]' \| \
12710 X"$ac_file" : 'X\(//\)$' \| \
12711 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12712 printf "%s\n" X"$ac_file" |
12713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12714 s//\1/
12715 q
12716 }
12717 /^X\(\/\/\)[^/].*/{
12718 s//\1/
12719 q
12720 }
12721 /^X\(\/\/\)$/{
12722 s//\1/
12723 q
12724 }
12725 /^X\(\/\).*/{
12726 s//\1/
12727 q
12728 }
12729 s/.*/./; q'`
12730 as_dir="$ac_dir"; as_fn_mkdir_p
12731 ac_builddir=.
12732
12733 case "$ac_dir" in
12734 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12735 *)
12736 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12737 # A ".." for each directory in $ac_dir_suffix.
12738 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12739 case $ac_top_builddir_sub in
12740 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12741 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12742 esac ;;
12743 esac
12744 ac_abs_top_builddir=$ac_pwd
12745 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12746 # for backward compatibility:
12747 ac_top_builddir=$ac_top_build_prefix
12748
12749 case $srcdir in
12750 .) # We are building in place.
12751 ac_srcdir=.
12752 ac_top_srcdir=$ac_top_builddir_sub
12753 ac_abs_top_srcdir=$ac_pwd ;;
12754 [\\/]* | ?:[\\/]* ) # Absolute name.
12755 ac_srcdir=$srcdir$ac_dir_suffix;
12756 ac_top_srcdir=$srcdir
12757 ac_abs_top_srcdir=$srcdir ;;
12758 *) # Relative name.
12759 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12760 ac_top_srcdir=$ac_top_build_prefix$srcdir
12761 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12762 esac
12763 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12764
12765
12766 case $ac_mode in
12767 :F)
12768 #
12769 # CONFIG_FILE
12770 #
12771
12772 case $INSTALL in
12773 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12774 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12775 esac
12776 ac_MKDIR_P=$MKDIR_P
12777 case $MKDIR_P in
12778 [\\/$]* | ?:[\\/]* ) ;;
12779 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12780 esac
12781 _ACEOF
12782
12783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12784 # If the template does not know about datarootdir, expand it.
12785 # FIXME: This hack should be removed a few years after 2.60.
12786 ac_datarootdir_hack=; ac_datarootdir_seen=
12787 ac_sed_dataroot='
12788 /datarootdir/ {
12789 p
12790 q
12791 }
12792 /@datadir@/p
12793 /@docdir@/p
12794 /@infodir@/p
12795 /@localedir@/p
12796 /@mandir@/p'
12797 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12798 *datarootdir*) ac_datarootdir_seen=yes;;
12799 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12801 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12802 _ACEOF
12803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12804 ac_datarootdir_hack='
12805 s&@datadir@&$datadir&g
12806 s&@docdir@&$docdir&g
12807 s&@infodir@&$infodir&g
12808 s&@localedir@&$localedir&g
12809 s&@mandir@&$mandir&g
12810 s&\\\${datarootdir}&$datarootdir&g' ;;
12811 esac
12812 _ACEOF
12813
12814 # Neutralize VPATH when `$srcdir' = `.'.
12815 # Shell code in configure.ac might set extrasub.
12816 # FIXME: do we really want to maintain this feature?
12817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12818 ac_sed_extra="$ac_vpsub
12819 $extrasub
12820 _ACEOF
12821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12822 :t
12823 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12824 s|@configure_input@|$ac_sed_conf_input|;t t
12825 s&@top_builddir@&$ac_top_builddir_sub&;t t
12826 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12827 s&@srcdir@&$ac_srcdir&;t t
12828 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12829 s&@top_srcdir@&$ac_top_srcdir&;t t
12830 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12831 s&@builddir@&$ac_builddir&;t t
12832 s&@abs_builddir@&$ac_abs_builddir&;t t
12833 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12834 s&@INSTALL@&$ac_INSTALL&;t t
12835 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12836 $ac_datarootdir_hack
12837 "
12838 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12839 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12840
12841 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12842 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12843 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12844 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12846 which seems to be undefined. Please make sure it is defined" >&5
12847 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12848 which seems to be undefined. Please make sure it is defined" >&2;}
12849
12850 rm -f "$ac_tmp/stdin"
12851 case $ac_file in
12852 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12853 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12854 esac \
12855 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12856 ;;
12857 :H)
12858 #
12859 # CONFIG_HEADER
12860 #
12861 if test x"$ac_file" != x-; then
12862 {
12863 printf "%s\n" "/* $configure_input */" >&1 \
12864 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12865 } >"$ac_tmp/config.h" \
12866 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12867 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12869 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12870 else
12871 rm -f "$ac_file"
12872 mv "$ac_tmp/config.h" "$ac_file" \
12873 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12874 fi
12875 else
12876 printf "%s\n" "/* $configure_input */" >&1 \
12877 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12878 || as_fn_error $? "could not create -" "$LINENO" 5
12879 fi
12880 # Compute "$ac_file"'s index in $config_headers.
12881 _am_arg="$ac_file"
12882 _am_stamp_count=1
12883 for _am_header in $config_headers :; do
12884 case $_am_header in
12885 $_am_arg | $_am_arg:* )
12886 break ;;
12887 * )
12888 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12889 esac
12890 done
12891 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12892 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12893 X"$_am_arg" : 'X\(//\)[^/]' \| \
12894 X"$_am_arg" : 'X\(//\)$' \| \
12895 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12896 printf "%s\n" X"$_am_arg" |
12897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12898 s//\1/
12899 q
12900 }
12901 /^X\(\/\/\)[^/].*/{
12902 s//\1/
12903 q
12904 }
12905 /^X\(\/\/\)$/{
12906 s//\1/
12907 q
12908 }
12909 /^X\(\/\).*/{
12910 s//\1/
12911 q
12912 }
12913 s/.*/./; q'`/stamp-h$_am_stamp_count
12914 ;;
12915
12916 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12917 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12918 ;;
12919 esac
12920
12921
12922 case $ac_file$ac_mode in
12923 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12924 # Older Autoconf quotes --file arguments for eval, but not when files
12925 # are listed without --file. Let's play safe and only enable the eval
12926 # if we detect the quoting.
12927 # TODO: see whether this extra hack can be removed once we start
12928 # requiring Autoconf 2.70 or later.
12929 case $CONFIG_FILES in #(
12930 *\'*) :
12931 eval set x "$CONFIG_FILES" ;; #(
12932 *) :
12933 set x $CONFIG_FILES ;; #(
12934 *) :
12935 ;;
12936 esac
12937 shift
12938 # Used to flag and report bootstrapping failures.
12939 am_rc=0
12940 for am_mf
12941 do
12942 # Strip MF so we end up with the name of the file.
12943 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12944 # Check whether this is an Automake generated Makefile which includes
12945 # dependency-tracking related rules and includes.
12946 # Grep'ing the whole file directly is not great: AIX grep has a line
12947 # limit of 2048, but all sed's we know have understand at least 4000.
12948 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12949 || continue
12950 am_dirpart=`$as_dirname -- "$am_mf" ||
12951 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12952 X"$am_mf" : 'X\(//\)[^/]' \| \
12953 X"$am_mf" : 'X\(//\)$' \| \
12954 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12955 printf "%s\n" X"$am_mf" |
12956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12957 s//\1/
12958 q
12959 }
12960 /^X\(\/\/\)[^/].*/{
12961 s//\1/
12962 q
12963 }
12964 /^X\(\/\/\)$/{
12965 s//\1/
12966 q
12967 }
12968 /^X\(\/\).*/{
12969 s//\1/
12970 q
12971 }
12972 s/.*/./; q'`
12973 am_filepart=`$as_basename -- "$am_mf" ||
12974 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12975 X"$am_mf" : 'X\(//\)$' \| \
12976 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12977 printf "%s\n" X/"$am_mf" |
12978 sed '/^.*\/\([^/][^/]*\)\/*$/{
12979 s//\1/
12980 q
12981 }
12982 /^X\/\(\/\/\)$/{
12983 s//\1/
12984 q
12985 }
12986 /^X\/\(\/\).*/{
12987 s//\1/
12988 q
12989 }
12990 s/.*/./; q'`
12991 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12992 && sed -e '/# am--include-marker/d' "$am_filepart" \
12993 | $MAKE -f - am--depfiles" >&5
12994 (cd "$am_dirpart" \
12995 && sed -e '/# am--include-marker/d' "$am_filepart" \
12996 | $MAKE -f - am--depfiles) >&5 2>&5
12997 ac_status=$?
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); } || am_rc=$?
13000 done
13001 if test $am_rc -ne 0; then
13002 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13003 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13004 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13005 for automatic dependency tracking. If GNU make was not used, consider
13006 re-running the configure script with MAKE=\"gmake\" (or whatever is
13007 necessary). You can also try re-running configure with the
13008 '--disable-dependency-tracking' option to at least be able to build
13009 the package (albeit without support for automatic dependency tracking).
13010 See \`config.log' for more details" "$LINENO" 5; }
13011 fi
13012 { am_dirpart=; unset am_dirpart;}
13013 { am_filepart=; unset am_filepart;}
13014 { am_mf=; unset am_mf;}
13015 { am_rc=; unset am_rc;}
13016 rm -f conftest-deps.mk
13017 }
13018 ;;
13019
13020 esac
13021 done # for ac_tag
13022
13023
13024 as_fn_exit 0
13025 _ACEOF
13026 ac_clean_files=$ac_clean_files_save
13027
13028 test $ac_write_fail = 0 ||
13029 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13030
13031
13032 # configure is writing to config.log, and then calls config.status.
13033 # config.status does its own redirection, appending to config.log.
13034 # Unfortunately, on DOS this fails, as config.log is still kept open
13035 # by configure, so config.status won't be able to write to it; its
13036 # output is simply discarded. So we exec the FD to /dev/null,
13037 # effectively closing config.log, so it can be properly (re)opened and
13038 # appended to by config.status. When coming back to configure, we
13039 # need to make the FD available again.
13040 if test "$no_create" != yes; then
13041 ac_cs_success=:
13042 ac_config_status_args=
13043 test "$silent" = yes &&
13044 ac_config_status_args="$ac_config_status_args --quiet"
13045 exec 5>/dev/null
13046 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13047 exec 5>>config.log
13048 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13049 # would make configure fail if this is the last instruction.
13050 $ac_cs_success || as_fn_exit 1
13051 fi
13052 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13054 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13055 fi
13056
13057
13058