configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xeyes 1.2.0.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xeyes/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/xeyes/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='xeyes'
614 PACKAGE_TARNAME='xeyes'
615 PACKAGE_VERSION='1.2.0'
616 PACKAGE_STRING='xeyes 1.2.0'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xeyes/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 PRESENT_LIBS
658 PRESENT_CFLAGS
659 XRENDER_LIBS
660 XRENDER_CFLAGS
661 XEYES_LIBS
662 XEYES_CFLAGS
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 with_xrender
788 with_present
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 XEYES_CFLAGS
802 XEYES_LIBS
803 XRENDER_CFLAGS
804 XRENDER_LIBS
805 PRESENT_CFLAGS
806 PRESENT_LIBS'
807
808
809 # Initialize some variables set by options.
810 ac_init_help=
811 ac_init_version=false
812 ac_unrecognized_opts=
813 ac_unrecognized_sep=
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
816 cache_file=/dev/null
817 exec_prefix=NONE
818 no_create=
819 no_recursion=
820 prefix=NONE
821 program_prefix=NONE
822 program_suffix=NONE
823 program_transform_name=s,x,x,
824 silent=
825 site=
826 srcdir=
827 verbose=
828 x_includes=NONE
829 x_libraries=NONE
830
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir='${exec_prefix}/bin'
838 sbindir='${exec_prefix}/sbin'
839 libexecdir='${exec_prefix}/libexec'
840 datarootdir='${prefix}/share'
841 datadir='${datarootdir}'
842 sysconfdir='${prefix}/etc'
843 sharedstatedir='${prefix}/com'
844 localstatedir='${prefix}/var'
845 runstatedir='${localstatedir}/run'
846 includedir='${prefix}/include'
847 oldincludedir='/usr/include'
848 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849 infodir='${datarootdir}/info'
850 htmldir='${docdir}'
851 dvidir='${docdir}'
852 pdfdir='${docdir}'
853 psdir='${docdir}'
854 libdir='${exec_prefix}/lib'
855 localedir='${datarootdir}/locale'
856 mandir='${datarootdir}/man'
857
858 ac_prev=
859 ac_dashdash=
860 for ac_option
861 do
862 # If the previous option needs an argument, assign it.
863 if test -n "$ac_prev"; then
864 eval $ac_prev=\$ac_option
865 ac_prev=
866 continue
867 fi
868
869 case $ac_option in
870 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871 *=) ac_optarg= ;;
872 *) ac_optarg=yes ;;
873 esac
874
875 case $ac_dashdash$ac_option in
876 --)
877 ac_dashdash=yes ;;
878
879 -bindir | --bindir | --bindi | --bind | --bin | --bi)
880 ac_prev=bindir ;;
881 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
882 bindir=$ac_optarg ;;
883
884 -build | --build | --buil | --bui | --bu)
885 ac_prev=build_alias ;;
886 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
887 build_alias=$ac_optarg ;;
888
889 -cache-file | --cache-file | --cache-fil | --cache-fi \
890 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
891 ac_prev=cache_file ;;
892 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
893 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
894 cache_file=$ac_optarg ;;
895
896 --config-cache | -C)
897 cache_file=config.cache ;;
898
899 -datadir | --datadir | --datadi | --datad)
900 ac_prev=datadir ;;
901 -datadir=* | --datadir=* | --datadi=* | --datad=*)
902 datadir=$ac_optarg ;;
903
904 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
905 | --dataroo | --dataro | --datar)
906 ac_prev=datarootdir ;;
907 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
908 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
909 datarootdir=$ac_optarg ;;
910
911 -disable-* | --disable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error $? "invalid feature name: \`$ac_useropt'"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
919 *"
920 "enable_$ac_useropt"
921 "*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
924 esac
925 eval enable_$ac_useropt=no ;;
926
927 -docdir | --docdir | --docdi | --doc | --do)
928 ac_prev=docdir ;;
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 docdir=$ac_optarg ;;
931
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 ac_prev=dvidir ;;
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 dvidir=$ac_optarg ;;
936
937 -enable-* | --enable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: \`$ac_useropt'"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
945 *"
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=\$ac_optarg ;;
952
953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955 | --exec | --exe | --ex)
956 ac_prev=exec_prefix ;;
957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959 | --exec=* | --exe=* | --ex=*)
960 exec_prefix=$ac_optarg ;;
961
962 -gas | --gas | --ga | --g)
963 # Obsolete; use --with-gas.
964 with_gas=yes ;;
965
966 -help | --help | --hel | --he | -h)
967 ac_init_help=long ;;
968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969 ac_init_help=recursive ;;
970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971 ac_init_help=short ;;
972
973 -host | --host | --hos | --ho)
974 ac_prev=host_alias ;;
975 -host=* | --host=* | --hos=* | --ho=*)
976 host_alias=$ac_optarg ;;
977
978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979 ac_prev=htmldir ;;
980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981 | --ht=*)
982 htmldir=$ac_optarg ;;
983
984 -includedir | --includedir | --includedi | --included | --include \
985 | --includ | --inclu | --incl | --inc)
986 ac_prev=includedir ;;
987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988 | --includ=* | --inclu=* | --incl=* | --inc=*)
989 includedir=$ac_optarg ;;
990
991 -infodir | --infodir | --infodi | --infod | --info | --inf)
992 ac_prev=infodir ;;
993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994 infodir=$ac_optarg ;;
995
996 -libdir | --libdir | --libdi | --libd)
997 ac_prev=libdir ;;
998 -libdir=* | --libdir=* | --libdi=* | --libd=*)
999 libdir=$ac_optarg ;;
1000
1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002 | --libexe | --libex | --libe)
1003 ac_prev=libexecdir ;;
1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005 | --libexe=* | --libex=* | --libe=*)
1006 libexecdir=$ac_optarg ;;
1007
1008 -localedir | --localedir | --localedi | --localed | --locale)
1009 ac_prev=localedir ;;
1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011 localedir=$ac_optarg ;;
1012
1013 -localstatedir | --localstatedir | --localstatedi | --localstated \
1014 | --localstate | --localstat | --localsta | --localst | --locals)
1015 ac_prev=localstatedir ;;
1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018 localstatedir=$ac_optarg ;;
1019
1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021 ac_prev=mandir ;;
1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023 mandir=$ac_optarg ;;
1024
1025 -nfp | --nfp | --nf)
1026 # Obsolete; use --without-fp.
1027 with_fp=no ;;
1028
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n)
1031 no_create=yes ;;
1032
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 no_recursion=yes ;;
1036
1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039 | --oldin | --oldi | --old | --ol | --o)
1040 ac_prev=oldincludedir ;;
1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044 oldincludedir=$ac_optarg ;;
1045
1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047 ac_prev=prefix ;;
1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049 prefix=$ac_optarg ;;
1050
1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052 | --program-pre | --program-pr | --program-p)
1053 ac_prev=program_prefix ;;
1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056 program_prefix=$ac_optarg ;;
1057
1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059 | --program-suf | --program-su | --program-s)
1060 ac_prev=program_suffix ;;
1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063 program_suffix=$ac_optarg ;;
1064
1065 -program-transform-name | --program-transform-name \
1066 | --program-transform-nam | --program-transform-na \
1067 | --program-transform-n | --program-transform- \
1068 | --program-transform | --program-transfor \
1069 | --program-transfo | --program-transf \
1070 | --program-trans | --program-tran \
1071 | --progr-tra | --program-tr | --program-t)
1072 ac_prev=program_transform_name ;;
1073 -program-transform-name=* | --program-transform-name=* \
1074 | --program-transform-nam=* | --program-transform-na=* \
1075 | --program-transform-n=* | --program-transform-=* \
1076 | --program-transform=* | --program-transfor=* \
1077 | --program-transfo=* | --program-transf=* \
1078 | --program-trans=* | --program-tran=* \
1079 | --progr-tra=* | --program-tr=* | --program-t=*)
1080 program_transform_name=$ac_optarg ;;
1081
1082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083 ac_prev=pdfdir ;;
1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085 pdfdir=$ac_optarg ;;
1086
1087 -psdir | --psdir | --psdi | --psd | --ps)
1088 ac_prev=psdir ;;
1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090 psdir=$ac_optarg ;;
1091
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1094 silent=yes ;;
1095
1096 -runstatedir | --runstatedir | --runstatedi | --runstated \
1097 | --runstate | --runstat | --runsta | --runst | --runs \
1098 | --run | --ru | --r)
1099 ac_prev=runstatedir ;;
1100 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1101 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1102 | --run=* | --ru=* | --r=*)
1103 runstatedir=$ac_optarg ;;
1104
1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106 ac_prev=sbindir ;;
1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108 | --sbi=* | --sb=*)
1109 sbindir=$ac_optarg ;;
1110
1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113 | --sharedst | --shareds | --shared | --share | --shar \
1114 | --sha | --sh)
1115 ac_prev=sharedstatedir ;;
1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119 | --sha=* | --sh=*)
1120 sharedstatedir=$ac_optarg ;;
1121
1122 -site | --site | --sit)
1123 ac_prev=site ;;
1124 -site=* | --site=* | --sit=*)
1125 site=$ac_optarg ;;
1126
1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128 ac_prev=srcdir ;;
1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130 srcdir=$ac_optarg ;;
1131
1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133 | --syscon | --sysco | --sysc | --sys | --sy)
1134 ac_prev=sysconfdir ;;
1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137 sysconfdir=$ac_optarg ;;
1138
1139 -target | --target | --targe | --targ | --tar | --ta | --t)
1140 ac_prev=target_alias ;;
1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142 target_alias=$ac_optarg ;;
1143
1144 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 verbose=yes ;;
1146
1147 -version | --version | --versio | --versi | --vers | -V)
1148 ac_init_version=: ;;
1149
1150 -with-* | --with-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error $? "invalid package name: \`$ac_useropt'"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1158 *"
1159 "with_$ac_useropt"
1160 "*) ;;
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1163 esac
1164 eval with_$ac_useropt=\$ac_optarg ;;
1165
1166 -without-* | --without-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: \`$ac_useropt'"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=no ;;
1181
1182 --x)
1183 # Obsolete; use --with-x.
1184 with_x=yes ;;
1185
1186 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187 | --x-incl | --x-inc | --x-in | --x-i)
1188 ac_prev=x_includes ;;
1189 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191 x_includes=$ac_optarg ;;
1192
1193 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195 ac_prev=x_libraries ;;
1196 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198 x_libraries=$ac_optarg ;;
1199
1200 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1201 Try \`$0 --help' for more information"
1202 ;;
1203
1204 *=*)
1205 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1206 # Reject names that are not valid shell variable names.
1207 case $ac_envvar in #(
1208 '' | [0-9]* | *[!_$as_cr_alnum]* )
1209 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1210 esac
1211 eval $ac_envvar=\$ac_optarg
1212 export $ac_envvar ;;
1213
1214 *)
1215 # FIXME: should be removed in autoconf 3.0.
1216 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1217 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1219 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1220 ;;
1221
1222 esac
1223 done
1224
1225 if test -n "$ac_prev"; then
1226 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227 as_fn_error $? "missing argument to $ac_option"
1228 fi
1229
1230 if test -n "$ac_unrecognized_opts"; then
1231 case $enable_option_checking in
1232 no) ;;
1233 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1234 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1235 esac
1236 fi
1237
1238 # Check all directory arguments for consistency.
1239 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240 datadir sysconfdir sharedstatedir localstatedir includedir \
1241 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242 libdir localedir mandir runstatedir
1243 do
1244 eval ac_val=\$$ac_var
1245 # Remove trailing slashes.
1246 case $ac_val in
1247 */ )
1248 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249 eval $ac_var=\$ac_val;;
1250 esac
1251 # Be sure to have absolute directory names.
1252 case $ac_val in
1253 [\\/$]* | ?:[\\/]* ) continue;;
1254 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1255 esac
1256 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1257 done
1258
1259 # There might be people who depend on the old broken behavior: `$host'
1260 # used to hold the argument of --host etc.
1261 # FIXME: To remove some day.
1262 build=$build_alias
1263 host=$host_alias
1264 target=$target_alias
1265
1266 # FIXME: To remove some day.
1267 if test "x$host_alias" != x; then
1268 if test "x$build_alias" = x; then
1269 cross_compiling=maybe
1270 elif test "x$build_alias" != "x$host_alias"; then
1271 cross_compiling=yes
1272 fi
1273 fi
1274
1275 ac_tool_prefix=
1276 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277
1278 test "$silent" = yes && exec 6>/dev/null
1279
1280
1281 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282 ac_ls_di=`ls -di .` &&
1283 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284 as_fn_error $? "working directory cannot be determined"
1285 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286 as_fn_error $? "pwd does not report name of working directory"
1287
1288
1289 # Find the source files, if location was not specified.
1290 if test -z "$srcdir"; then
1291 ac_srcdir_defaulted=yes
1292 # Try the directory containing this script, then the parent directory.
1293 ac_confdir=`$as_dirname -- "$as_myself" ||
1294 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295 X"$as_myself" : 'X\(//\)[^/]' \| \
1296 X"$as_myself" : 'X\(//\)$' \| \
1297 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1298 printf "%s\n" X"$as_myself" |
1299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\/\)[^/].*/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\/\)$/{
1308 s//\1/
1309 q
1310 }
1311 /^X\(\/\).*/{
1312 s//\1/
1313 q
1314 }
1315 s/.*/./; q'`
1316 srcdir=$ac_confdir
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318 srcdir=..
1319 fi
1320 else
1321 ac_srcdir_defaulted=no
1322 fi
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1326 fi
1327 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328 ac_abs_confdir=`(
1329 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1330 pwd)`
1331 # When building in place, set srcdir=.
1332 if test "$ac_abs_confdir" = "$ac_pwd"; then
1333 srcdir=.
1334 fi
1335 # Remove unnecessary trailing slashes from srcdir.
1336 # Double slashes in file names in object file debugging info
1337 # mess up M-x gdb in Emacs.
1338 case $srcdir in
1339 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340 esac
1341 for ac_var in $ac_precious_vars; do
1342 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_env_${ac_var}_value=\$${ac_var}
1344 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346 done
1347
1348 #
1349 # Report the --help message.
1350 #
1351 if test "$ac_init_help" = "long"; then
1352 # Omit some internal or obsolete options to make the list less imposing.
1353 # This message is too long to be a string in the A/UX 3.1 sh.
1354 cat <<_ACEOF
1355 \`configure' configures xeyes 1.2.0 to adapt to many kinds of systems.
1356
1357 Usage: $0 [OPTION]... [VAR=VALUE]...
1358
1359 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360 VAR=VALUE. See below for descriptions of some of the useful variables.
1361
1362 Defaults for the options are specified in brackets.
1363
1364 Configuration:
1365 -h, --help display this help and exit
1366 --help=short display options specific to this package
1367 --help=recursive display the short help of all the included packages
1368 -V, --version display version information and exit
1369 -q, --quiet, --silent do not print \`checking ...' messages
1370 --cache-file=FILE cache test results in FILE [disabled]
1371 -C, --config-cache alias for \`--cache-file=config.cache'
1372 -n, --no-create do not create output files
1373 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1374
1375 Installation directories:
1376 --prefix=PREFIX install architecture-independent files in PREFIX
1377 [$ac_default_prefix]
1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1379 [PREFIX]
1380
1381 By default, \`make install' will install all the files in
1382 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1383 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384 for instance \`--prefix=\$HOME'.
1385
1386 For better control, use the options below.
1387
1388 Fine tuning of the installation directories:
1389 --bindir=DIR user executables [EPREFIX/bin]
1390 --sbindir=DIR system admin executables [EPREFIX/sbin]
1391 --libexecdir=DIR program executables [EPREFIX/libexec]
1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1395 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/xeyes]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
1409 _ACEOF
1410
1411 cat <<\_ACEOF
1412
1413 Program names:
1414 --program-prefix=PREFIX prepend PREFIX to installed program names
1415 --program-suffix=SUFFIX append SUFFIX to installed program names
1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1417
1418 System types:
1419 --build=BUILD configure for building on BUILD [guessed]
1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1421 _ACEOF
1422 fi
1423
1424 if test -n "$ac_init_help"; then
1425 case $ac_init_help in
1426 short | recursive ) echo "Configuration of xeyes 1.2.0:";;
1427 esac
1428 cat <<\_ACEOF
1429
1430 Optional Features:
1431 --disable-option-checking ignore unrecognized --enable/--with options
1432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1434 --enable-silent-rules less verbose build output (undo: "make V=1")
1435 --disable-silent-rules verbose build output (undo: "make V=0")
1436 --enable-dependency-tracking
1437 do not reject slow dependency extractors
1438 --disable-dependency-tracking
1439 speeds up one-time build
1440 --disable-selective-werror
1441 Turn off selective compiler errors. (default:
1442 enabled)
1443 --enable-strict-compilation
1444 Enable all warnings from compiler and make them
1445 errors (default: disabled)
1446
1447 Optional Packages:
1448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1450 --with-xrender Use Xrender for rendering (Default is YES)
1451 --with-present Use Present for updates (Default is AUTO)
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 XEYES_CFLAGS
1467 C compiler flags for XEYES, overriding pkg-config
1468 XEYES_LIBS linker flags for XEYES, overriding pkg-config
1469 XRENDER_CFLAGS
1470 C compiler flags for XRENDER, overriding pkg-config
1471 XRENDER_LIBS
1472 linker flags for XRENDER, overriding pkg-config
1473 PRESENT_CFLAGS
1474 C compiler flags for PRESENT, overriding pkg-config
1475 PRESENT_LIBS
1476 linker flags for PRESENT, overriding pkg-config
1477
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1480
1481 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xeyes/issues>.
1482 _ACEOF
1483 ac_status=$?
1484 fi
1485
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" ||
1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491 continue
1492 ac_builddir=.
1493
1494 case "$ac_dir" in
1495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *)
1497 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1498 # A ".." for each directory in $ac_dir_suffix.
1499 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500 case $ac_top_builddir_sub in
1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 esac ;;
1504 esac
1505 ac_abs_top_builddir=$ac_pwd
1506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507 # for backward compatibility:
1508 ac_top_builddir=$ac_top_build_prefix
1509
1510 case $srcdir in
1511 .) # We are building in place.
1512 ac_srcdir=.
1513 ac_top_srcdir=$ac_top_builddir_sub
1514 ac_abs_top_srcdir=$ac_pwd ;;
1515 [\\/]* | ?:[\\/]* ) # Absolute name.
1516 ac_srcdir=$srcdir$ac_dir_suffix;
1517 ac_top_srcdir=$srcdir
1518 ac_abs_top_srcdir=$srcdir ;;
1519 *) # Relative name.
1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521 ac_top_srcdir=$ac_top_build_prefix$srcdir
1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523 esac
1524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525
1526 cd "$ac_dir" || { ac_status=$?; continue; }
1527 # Check for configure.gnu first; this name is used for a wrapper for
1528 # Metaconfig's "Configure" on case-insensitive file systems.
1529 if test -f "$ac_srcdir/configure.gnu"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1532 elif test -f "$ac_srcdir/configure"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure" --help=recursive
1535 else
1536 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1537 fi || ac_status=$?
1538 cd "$ac_pwd" || { ac_status=$?; break; }
1539 done
1540 fi
1541
1542 test -n "$ac_init_help" && exit $ac_status
1543 if $ac_init_version; then
1544 cat <<\_ACEOF
1545 xeyes configure 1.2.0
1546 generated by GNU Autoconf 2.71
1547
1548 Copyright (C) 2021 Free Software Foundation, Inc.
1549 This configure script is free software; the Free Software Foundation
1550 gives unlimited permission to copy, distribute and modify it.
1551 _ACEOF
1552 exit
1553 fi
1554
1555 ## ------------------------ ##
1556 ## Autoconf initialization. ##
1557 ## ------------------------ ##
1558
1559 # ac_fn_c_try_compile LINENO
1560 # --------------------------
1561 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_compile ()
1563 {
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 rm -f conftest.$ac_objext conftest.beam
1566 if { { ac_try="$ac_compile"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 printf "%s\n" "$ac_try_echo"; } >&5
1573 (eval "$ac_compile") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1579 fi
1580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && {
1582 test -z "$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 } && test -s conftest.$ac_objext
1585 then :
1586 ac_retval=0
1587 else $as_nop
1588 printf "%s\n" "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1590
1591 ac_retval=1
1592 fi
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1595
1596 } # ac_fn_c_try_compile
1597
1598 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1599 # ------------------------------------------------------------------
1600 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1601 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1602 ac_fn_check_decl ()
1603 {
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 as_decl_name=`echo $2|sed 's/ *(.*//'`
1606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1607 printf %s "checking whether $as_decl_name is declared... " >&6; }
1608 if eval test \${$3+y}
1609 then :
1610 printf %s "(cached) " >&6
1611 else $as_nop
1612 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1613 eval ac_save_FLAGS=\$$6
1614 as_fn_append $6 " $5"
1615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616 /* end confdefs.h. */
1617 $4
1618 int
1619 main (void)
1620 {
1621 #ifndef $as_decl_name
1622 #ifdef __cplusplus
1623 (void) $as_decl_use;
1624 #else
1625 (void) $as_decl_name;
1626 #endif
1627 #endif
1628
1629 ;
1630 return 0;
1631 }
1632 _ACEOF
1633 if ac_fn_c_try_compile "$LINENO"
1634 then :
1635 eval "$3=yes"
1636 else $as_nop
1637 eval "$3=no"
1638 fi
1639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1640 eval $6=\$ac_save_FLAGS
1641
1642 fi
1643 eval ac_res=\$$3
1644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645 printf "%s\n" "$ac_res" >&6; }
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647
1648 } # ac_fn_check_decl
1649
1650 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1651 # -------------------------------------------------------
1652 # Tests whether HEADER exists and can be compiled using the include files in
1653 # INCLUDES, setting the cache variable VAR accordingly.
1654 ac_fn_c_check_header_compile ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1658 printf %s "checking for $2... " >&6; }
1659 if eval test \${$3+y}
1660 then :
1661 printf %s "(cached) " >&6
1662 else $as_nop
1663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664 /* end confdefs.h. */
1665 $4
1666 #include <$2>
1667 _ACEOF
1668 if ac_fn_c_try_compile "$LINENO"
1669 then :
1670 eval "$3=yes"
1671 else $as_nop
1672 eval "$3=no"
1673 fi
1674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1675 fi
1676 eval ac_res=\$$3
1677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 printf "%s\n" "$ac_res" >&6; }
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680
1681 } # ac_fn_c_check_header_compile
1682
1683 # ac_fn_c_try_link LINENO
1684 # -----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded.
1686 ac_fn_c_try_link ()
1687 {
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1690 if { { ac_try="$ac_link"
1691 case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 printf "%s\n" "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>conftest.err
1698 ac_status=$?
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1703 fi
1704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && {
1706 test -z "$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 } && test -s conftest$ac_exeext && {
1709 test "$cross_compiling" = yes ||
1710 test -x conftest$ac_exeext
1711 }
1712 then :
1713 ac_retval=0
1714 else $as_nop
1715 printf "%s\n" "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719 fi
1720 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1721 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1722 # interfere with the next link command; also delete a directory that is
1723 # left behind by Apple's compiler. We do this before executing the actions.
1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_try_link
1729 ac_configure_args_raw=
1730 for ac_arg
1731 do
1732 case $ac_arg in
1733 *\'*)
1734 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1735 esac
1736 as_fn_append ac_configure_args_raw " '$ac_arg'"
1737 done
1738
1739 case $ac_configure_args_raw in
1740 *$as_nl*)
1741 ac_safe_unquote= ;;
1742 *)
1743 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1744 ac_unsafe_a="$ac_unsafe_z#~"
1745 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1746 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1747 esac
1748
1749 cat >config.log <<_ACEOF
1750 This file contains any messages produced by compilers while
1751 running configure, to aid debugging if configure makes a mistake.
1752
1753 It was created by xeyes $as_me 1.2.0, which was
1754 generated by GNU Autoconf 2.71. Invocation command line was
1755
1756 $ $0$ac_configure_args_raw
1757
1758 _ACEOF
1759 exec 5>>config.log
1760 {
1761 cat <<_ASUNAME
1762 ## --------- ##
1763 ## Platform. ##
1764 ## --------- ##
1765
1766 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1767 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1768 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1769 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1770 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1771
1772 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1773 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1774
1775 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1776 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1777 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1778 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1779 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1780 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1781 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1782
1783 _ASUNAME
1784
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 for as_dir in $PATH
1787 do
1788 IFS=$as_save_IFS
1789 case $as_dir in #(((
1790 '') as_dir=./ ;;
1791 */) ;;
1792 *) as_dir=$as_dir/ ;;
1793 esac
1794 printf "%s\n" "PATH: $as_dir"
1795 done
1796 IFS=$as_save_IFS
1797
1798 } >&5
1799
1800 cat >&5 <<_ACEOF
1801
1802
1803 ## ----------- ##
1804 ## Core tests. ##
1805 ## ----------- ##
1806
1807 _ACEOF
1808
1809
1810 # Keep a trace of the command line.
1811 # Strip out --no-create and --no-recursion so they do not pile up.
1812 # Strip out --silent because we don't want to record it for future runs.
1813 # Also quote any args containing shell meta-characters.
1814 # Make two passes to allow for proper duplicate-argument suppression.
1815 ac_configure_args=
1816 ac_configure_args0=
1817 ac_configure_args1=
1818 ac_must_keep_next=false
1819 for ac_pass in 1 2
1820 do
1821 for ac_arg
1822 do
1823 case $ac_arg in
1824 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1825 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1826 | -silent | --silent | --silen | --sile | --sil)
1827 continue ;;
1828 *\'*)
1829 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1830 esac
1831 case $ac_pass in
1832 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1833 2)
1834 as_fn_append ac_configure_args1 " '$ac_arg'"
1835 if test $ac_must_keep_next = true; then
1836 ac_must_keep_next=false # Got value, back to normal.
1837 else
1838 case $ac_arg in
1839 *=* | --config-cache | -C | -disable-* | --disable-* \
1840 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1841 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1842 | -with-* | --with-* | -without-* | --without-* | --x)
1843 case "$ac_configure_args0 " in
1844 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1845 esac
1846 ;;
1847 -* ) ac_must_keep_next=true ;;
1848 esac
1849 fi
1850 as_fn_append ac_configure_args " '$ac_arg'"
1851 ;;
1852 esac
1853 done
1854 done
1855 { ac_configure_args0=; unset ac_configure_args0;}
1856 { ac_configure_args1=; unset ac_configure_args1;}
1857
1858 # When interrupted or exit'd, cleanup temporary files, and complete
1859 # config.log. We remove comments because anyway the quotes in there
1860 # would cause problems or look ugly.
1861 # WARNING: Use '\'' to represent an apostrophe within the trap.
1862 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1863 trap 'exit_status=$?
1864 # Sanitize IFS.
1865 IFS=" "" $as_nl"
1866 # Save into config.log some information that might help in debugging.
1867 {
1868 echo
1869
1870 printf "%s\n" "## ---------------- ##
1871 ## Cache variables. ##
1872 ## ---------------- ##"
1873 echo
1874 # The following way of writing the cache mishandles newlines in values,
1875 (
1876 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1877 eval ac_val=\$$ac_var
1878 case $ac_val in #(
1879 *${as_nl}*)
1880 case $ac_var in #(
1881 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1882 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1883 esac
1884 case $ac_var in #(
1885 _ | IFS | as_nl) ;; #(
1886 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1887 *) { eval $ac_var=; unset $ac_var;} ;;
1888 esac ;;
1889 esac
1890 done
1891 (set) 2>&1 |
1892 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1893 *${as_nl}ac_space=\ *)
1894 sed -n \
1895 "s/'\''/'\''\\\\'\'''\''/g;
1896 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1897 ;; #(
1898 *)
1899 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1900 ;;
1901 esac |
1902 sort
1903 )
1904 echo
1905
1906 printf "%s\n" "## ----------------- ##
1907 ## Output variables. ##
1908 ## ----------------- ##"
1909 echo
1910 for ac_var in $ac_subst_vars
1911 do
1912 eval ac_val=\$$ac_var
1913 case $ac_val in
1914 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1915 esac
1916 printf "%s\n" "$ac_var='\''$ac_val'\''"
1917 done | sort
1918 echo
1919
1920 if test -n "$ac_subst_files"; then
1921 printf "%s\n" "## ------------------- ##
1922 ## File substitutions. ##
1923 ## ------------------- ##"
1924 echo
1925 for ac_var in $ac_subst_files
1926 do
1927 eval ac_val=\$$ac_var
1928 case $ac_val in
1929 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1930 esac
1931 printf "%s\n" "$ac_var='\''$ac_val'\''"
1932 done | sort
1933 echo
1934 fi
1935
1936 if test -s confdefs.h; then
1937 printf "%s\n" "## ----------- ##
1938 ## confdefs.h. ##
1939 ## ----------- ##"
1940 echo
1941 cat confdefs.h
1942 echo
1943 fi
1944 test "$ac_signal" != 0 &&
1945 printf "%s\n" "$as_me: caught signal $ac_signal"
1946 printf "%s\n" "$as_me: exit $exit_status"
1947 } >&5
1948 rm -f core *.core core.conftest.* &&
1949 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1950 exit $exit_status
1951 ' 0
1952 for ac_signal in 1 2 13 15; do
1953 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1954 done
1955 ac_signal=0
1956
1957 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1958 rm -f -r conftest* confdefs.h
1959
1960 printf "%s\n" "/* confdefs.h */" > confdefs.h
1961
1962 # Predefined preprocessor variables.
1963
1964 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1965
1966 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1967
1968 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1969
1970 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1971
1972 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1973
1974 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1975
1976
1977 # Let the site file select an alternate cache file if it wants to.
1978 # Prefer an explicitly selected file to automatically selected ones.
1979 if test -n "$CONFIG_SITE"; then
1980 ac_site_files="$CONFIG_SITE"
1981 elif test "x$prefix" != xNONE; then
1982 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1983 else
1984 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1985 fi
1986
1987 for ac_site_file in $ac_site_files
1988 do
1989 case $ac_site_file in #(
1990 */*) :
1991 ;; #(
1992 *) :
1993 ac_site_file=./$ac_site_file ;;
1994 esac
1995 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1997 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1998 sed 's/^/| /' "$ac_site_file" >&5
1999 . "$ac_site_file" \
2000 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2001 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2002 as_fn_error $? "failed to load site script $ac_site_file
2003 See \`config.log' for more details" "$LINENO" 5; }
2004 fi
2005 done
2006
2007 if test -r "$cache_file"; then
2008 # Some versions of bash will fail to source /dev/null (special files
2009 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2010 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2012 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2013 case $cache_file in
2014 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2015 *) . "./$cache_file";;
2016 esac
2017 fi
2018 else
2019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2020 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2021 >$cache_file
2022 fi
2023
2024 # Test code for whether the C compiler supports C89 (global declarations)
2025 ac_c_conftest_c89_globals='
2026 /* Does the compiler advertise C89 conformance?
2027 Do not test the value of __STDC__, because some compilers set it to 0
2028 while being otherwise adequately conformant. */
2029 #if !defined __STDC__
2030 # error "Compiler does not advertise C89 conformance"
2031 #endif
2032
2033 #include <stddef.h>
2034 #include <stdarg.h>
2035 struct stat;
2036 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2037 struct buf { int x; };
2038 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2039 static char *e (p, i)
2040 char **p;
2041 int i;
2042 {
2043 return p[i];
2044 }
2045 static char *f (char * (*g) (char **, int), char **p, ...)
2046 {
2047 char *s;
2048 va_list v;
2049 va_start (v,p);
2050 s = g (p, va_arg (v,int));
2051 va_end (v);
2052 return s;
2053 }
2054
2055 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2056 function prototypes and stuff, but not \xHH hex character constants.
2057 These do not provoke an error unfortunately, instead are silently treated
2058 as an "x". The following induces an error, until -std is added to get
2059 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2060 array size at least. It is necessary to write \x00 == 0 to get something
2061 that is true only with -std. */
2062 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2063
2064 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2065 inside strings and character constants. */
2066 #define FOO(x) '\''x'\''
2067 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2068
2069 int test (int i, double x);
2070 struct s1 {int (*f) (int a);};
2071 struct s2 {int (*f) (double a);};
2072 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2073 int, int);'
2074
2075 # Test code for whether the C compiler supports C89 (body of main).
2076 ac_c_conftest_c89_main='
2077 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2078 '
2079
2080 # Test code for whether the C compiler supports C99 (global declarations)
2081 ac_c_conftest_c99_globals='
2082 // Does the compiler advertise C99 conformance?
2083 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2084 # error "Compiler does not advertise C99 conformance"
2085 #endif
2086
2087 #include <stdbool.h>
2088 extern int puts (const char *);
2089 extern int printf (const char *, ...);
2090 extern int dprintf (int, const char *, ...);
2091 extern void *malloc (size_t);
2092
2093 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2094 // dprintf is used instead of fprintf to avoid needing to declare
2095 // FILE and stderr.
2096 #define debug(...) dprintf (2, __VA_ARGS__)
2097 #define showlist(...) puts (#__VA_ARGS__)
2098 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2099 static void
2100 test_varargs_macros (void)
2101 {
2102 int x = 1234;
2103 int y = 5678;
2104 debug ("Flag");
2105 debug ("X = %d\n", x);
2106 showlist (The first, second, and third items.);
2107 report (x>y, "x is %d but y is %d", x, y);
2108 }
2109
2110 // Check long long types.
2111 #define BIG64 18446744073709551615ull
2112 #define BIG32 4294967295ul
2113 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2114 #if !BIG_OK
2115 #error "your preprocessor is broken"
2116 #endif
2117 #if BIG_OK
2118 #else
2119 #error "your preprocessor is broken"
2120 #endif
2121 static long long int bignum = -9223372036854775807LL;
2122 static unsigned long long int ubignum = BIG64;
2123
2124 struct incomplete_array
2125 {
2126 int datasize;
2127 double data[];
2128 };
2129
2130 struct named_init {
2131 int number;
2132 const wchar_t *name;
2133 double average;
2134 };
2135
2136 typedef const char *ccp;
2137
2138 static inline int
2139 test_restrict (ccp restrict text)
2140 {
2141 // See if C++-style comments work.
2142 // Iterate through items via the restricted pointer.
2143 // Also check for declarations in for loops.
2144 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2145 continue;
2146 return 0;
2147 }
2148
2149 // Check varargs and va_copy.
2150 static bool
2151 test_varargs (const char *format, ...)
2152 {
2153 va_list args;
2154 va_start (args, format);
2155 va_list args_copy;
2156 va_copy (args_copy, args);
2157
2158 const char *str = "";
2159 int number = 0;
2160 float fnumber = 0;
2161
2162 while (*format)
2163 {
2164 switch (*format++)
2165 {
2166 case '\''s'\'': // string
2167 str = va_arg (args_copy, const char *);
2168 break;
2169 case '\''d'\'': // int
2170 number = va_arg (args_copy, int);
2171 break;
2172 case '\''f'\'': // float
2173 fnumber = va_arg (args_copy, double);
2174 break;
2175 default:
2176 break;
2177 }
2178 }
2179 va_end (args_copy);
2180 va_end (args);
2181
2182 return *str && number && fnumber;
2183 }
2184 '
2185
2186 # Test code for whether the C compiler supports C99 (body of main).
2187 ac_c_conftest_c99_main='
2188 // Check bool.
2189 _Bool success = false;
2190 success |= (argc != 0);
2191
2192 // Check restrict.
2193 if (test_restrict ("String literal") == 0)
2194 success = true;
2195 char *restrict newvar = "Another string";
2196
2197 // Check varargs.
2198 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2199 test_varargs_macros ();
2200
2201 // Check flexible array members.
2202 struct incomplete_array *ia =
2203 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2204 ia->datasize = 10;
2205 for (int i = 0; i < ia->datasize; ++i)
2206 ia->data[i] = i * 1.234;
2207
2208 // Check named initializers.
2209 struct named_init ni = {
2210 .number = 34,
2211 .name = L"Test wide string",
2212 .average = 543.34343,
2213 };
2214
2215 ni.number = 58;
2216
2217 int dynamic_array[ni.number];
2218 dynamic_array[0] = argv[0][0];
2219 dynamic_array[ni.number - 1] = 543;
2220
2221 // work around unused variable warnings
2222 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2223 || dynamic_array[ni.number - 1] != 543);
2224 '
2225
2226 # Test code for whether the C compiler supports C11 (global declarations)
2227 ac_c_conftest_c11_globals='
2228 // Does the compiler advertise C11 conformance?
2229 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2230 # error "Compiler does not advertise C11 conformance"
2231 #endif
2232
2233 // Check _Alignas.
2234 char _Alignas (double) aligned_as_double;
2235 char _Alignas (0) no_special_alignment;
2236 extern char aligned_as_int;
2237 char _Alignas (0) _Alignas (int) aligned_as_int;
2238
2239 // Check _Alignof.
2240 enum
2241 {
2242 int_alignment = _Alignof (int),
2243 int_array_alignment = _Alignof (int[100]),
2244 char_alignment = _Alignof (char)
2245 };
2246 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2247
2248 // Check _Noreturn.
2249 int _Noreturn does_not_return (void) { for (;;) continue; }
2250
2251 // Check _Static_assert.
2252 struct test_static_assert
2253 {
2254 int x;
2255 _Static_assert (sizeof (int) <= sizeof (long int),
2256 "_Static_assert does not work in struct");
2257 long int y;
2258 };
2259
2260 // Check UTF-8 literals.
2261 #define u8 syntax error!
2262 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2263
2264 // Check duplicate typedefs.
2265 typedef long *long_ptr;
2266 typedef long int *long_ptr;
2267 typedef long_ptr long_ptr;
2268
2269 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2270 struct anonymous
2271 {
2272 union {
2273 struct { int i; int j; };
2274 struct { int k; long int l; } w;
2275 };
2276 int m;
2277 } v1;
2278 '
2279
2280 # Test code for whether the C compiler supports C11 (body of main).
2281 ac_c_conftest_c11_main='
2282 _Static_assert ((offsetof (struct anonymous, i)
2283 == offsetof (struct anonymous, w.k)),
2284 "Anonymous union alignment botch");
2285 v1.i = 2;
2286 v1.w.k = 5;
2287 ok |= v1.i != 5;
2288 '
2289
2290 # Test code for whether the C compiler supports C11 (complete).
2291 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2292 ${ac_c_conftest_c99_globals}
2293 ${ac_c_conftest_c11_globals}
2294
2295 int
2296 main (int argc, char **argv)
2297 {
2298 int ok = 0;
2299 ${ac_c_conftest_c89_main}
2300 ${ac_c_conftest_c99_main}
2301 ${ac_c_conftest_c11_main}
2302 return ok;
2303 }
2304 "
2305
2306 # Test code for whether the C compiler supports C99 (complete).
2307 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2308 ${ac_c_conftest_c99_globals}
2309
2310 int
2311 main (int argc, char **argv)
2312 {
2313 int ok = 0;
2314 ${ac_c_conftest_c89_main}
2315 ${ac_c_conftest_c99_main}
2316 return ok;
2317 }
2318 "
2319
2320 # Test code for whether the C compiler supports C89 (complete).
2321 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2322
2323 int
2324 main (int argc, char **argv)
2325 {
2326 int ok = 0;
2327 ${ac_c_conftest_c89_main}
2328 return ok;
2329 }
2330 "
2331
2332 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2333 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2334 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2335 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2336 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2337 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2338 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2339 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2340 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2341
2342 # Auxiliary files required by this configure script.
2343 ac_aux_files="config.guess config.sub compile missing install-sh"
2344
2345 # Locations in which to look for auxiliary files.
2346 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2347
2348 # Search for a directory containing all of the required auxiliary files,
2349 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2350 # If we don't find one directory that contains all the files we need,
2351 # we report the set of missing files from the *first* directory in
2352 # $ac_aux_dir_candidates and give up.
2353 ac_missing_aux_files=""
2354 ac_first_candidate=:
2355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 as_found=false
2358 for as_dir in $ac_aux_dir_candidates
2359 do
2360 IFS=$as_save_IFS
2361 case $as_dir in #(((
2362 '') as_dir=./ ;;
2363 */) ;;
2364 *) as_dir=$as_dir/ ;;
2365 esac
2366 as_found=:
2367
2368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2369 ac_aux_dir_found=yes
2370 ac_install_sh=
2371 for ac_aux in $ac_aux_files
2372 do
2373 # As a special case, if "install-sh" is required, that requirement
2374 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2375 # and $ac_install_sh is set appropriately for whichever one is found.
2376 if test x"$ac_aux" = x"install-sh"
2377 then
2378 if test -f "${as_dir}install-sh"; then
2379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2380 ac_install_sh="${as_dir}install-sh -c"
2381 elif test -f "${as_dir}install.sh"; then
2382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2383 ac_install_sh="${as_dir}install.sh -c"
2384 elif test -f "${as_dir}shtool"; then
2385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2386 ac_install_sh="${as_dir}shtool install -c"
2387 else
2388 ac_aux_dir_found=no
2389 if $ac_first_candidate; then
2390 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2391 else
2392 break
2393 fi
2394 fi
2395 else
2396 if test -f "${as_dir}${ac_aux}"; then
2397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2398 else
2399 ac_aux_dir_found=no
2400 if $ac_first_candidate; then
2401 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2402 else
2403 break
2404 fi
2405 fi
2406 fi
2407 done
2408 if test "$ac_aux_dir_found" = yes; then
2409 ac_aux_dir="$as_dir"
2410 break
2411 fi
2412 ac_first_candidate=false
2413
2414 as_found=false
2415 done
2416 IFS=$as_save_IFS
2417 if $as_found
2418 then :
2419
2420 else $as_nop
2421 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2422 fi
2423
2424
2425 # These three variables are undocumented and unsupported,
2426 # and are intended to be withdrawn in a future Autoconf release.
2427 # They can cause serious problems if a builder's source tree is in a directory
2428 # whose full name contains unusual characters.
2429 if test -f "${ac_aux_dir}config.guess"; then
2430 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2431 fi
2432 if test -f "${ac_aux_dir}config.sub"; then
2433 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2434 fi
2435 if test -f "$ac_aux_dir/configure"; then
2436 ac_configure="$SHELL ${ac_aux_dir}configure"
2437 fi
2438
2439 # Check that the precious variables saved in the cache have kept the same
2440 # value.
2441 ac_cache_corrupted=false
2442 for ac_var in $ac_precious_vars; do
2443 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2444 eval ac_new_set=\$ac_env_${ac_var}_set
2445 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2446 eval ac_new_val=\$ac_env_${ac_var}_value
2447 case $ac_old_set,$ac_new_set in
2448 set,)
2449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2450 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2451 ac_cache_corrupted=: ;;
2452 ,set)
2453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2454 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2455 ac_cache_corrupted=: ;;
2456 ,);;
2457 *)
2458 if test "x$ac_old_val" != "x$ac_new_val"; then
2459 # differences in whitespace do not lead to failure.
2460 ac_old_val_w=`echo x $ac_old_val`
2461 ac_new_val_w=`echo x $ac_new_val`
2462 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2464 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2465 ac_cache_corrupted=:
2466 else
2467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2468 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2469 eval $ac_var=\$ac_old_val
2470 fi
2471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2472 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2474 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2475 fi;;
2476 esac
2477 # Pass precious variables to config.status.
2478 if test "$ac_new_set" = set; then
2479 case $ac_new_val in
2480 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2481 *) ac_arg=$ac_var=$ac_new_val ;;
2482 esac
2483 case " $ac_configure_args " in
2484 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2485 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2486 esac
2487 fi
2488 done
2489 if $ac_cache_corrupted; then
2490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2491 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2493 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2494 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2495 and start over" "$LINENO" 5
2496 fi
2497 ## -------------------- ##
2498 ## Main body of script. ##
2499 ## -------------------- ##
2500
2501 ac_ext=c
2502 ac_cpp='$CPP $CPPFLAGS'
2503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2506
2507
2508
2509 ac_config_headers="$ac_config_headers config.h"
2510
2511
2512 # Initialize Automake
2513 am__api_version='1.16'
2514
2515
2516
2517 # Find a good install program. We prefer a C program (faster),
2518 # so one script is as good as another. But avoid the broken or
2519 # incompatible versions:
2520 # SysV /etc/install, /usr/sbin/install
2521 # SunOS /usr/etc/install
2522 # IRIX /sbin/install
2523 # AIX /bin/install
2524 # AmigaOS /C/install, which installs bootblocks on floppy discs
2525 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2526 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2527 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2528 # OS/2's system install, which has a completely different semantic
2529 # ./install, which can be erroneously created by make from ./install.sh.
2530 # Reject install programs that cannot install multiple files.
2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2532 printf %s "checking for a BSD-compatible install... " >&6; }
2533 if test -z "$INSTALL"; then
2534 if test ${ac_cv_path_install+y}
2535 then :
2536 printf %s "(cached) " >&6
2537 else $as_nop
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 for as_dir in $PATH
2540 do
2541 IFS=$as_save_IFS
2542 case $as_dir in #(((
2543 '') as_dir=./ ;;
2544 */) ;;
2545 *) as_dir=$as_dir/ ;;
2546 esac
2547 # Account for fact that we put trailing slashes in our PATH walk.
2548 case $as_dir in #((
2549 ./ | /[cC]/* | \
2550 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2551 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2552 /usr/ucb/* ) ;;
2553 *)
2554 # OSF1 and SCO ODT 3.0 have their own names for install.
2555 # Don't use installbsd from OSF since it installs stuff as root
2556 # by default.
2557 for ac_prog in ginstall scoinst install; do
2558 for ac_exec_ext in '' $ac_executable_extensions; do
2559 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2560 if test $ac_prog = install &&
2561 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2562 # AIX install. It has an incompatible calling convention.
2563 :
2564 elif test $ac_prog = install &&
2565 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2566 # program-specific install script used by HP pwplus--don't use.
2567 :
2568 else
2569 rm -rf conftest.one conftest.two conftest.dir
2570 echo one > conftest.one
2571 echo two > conftest.two
2572 mkdir conftest.dir
2573 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2574 test -s conftest.one && test -s conftest.two &&
2575 test -s conftest.dir/conftest.one &&
2576 test -s conftest.dir/conftest.two
2577 then
2578 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2579 break 3
2580 fi
2581 fi
2582 fi
2583 done
2584 done
2585 ;;
2586 esac
2587
2588 done
2589 IFS=$as_save_IFS
2590
2591 rm -rf conftest.one conftest.two conftest.dir
2592
2593 fi
2594 if test ${ac_cv_path_install+y}; then
2595 INSTALL=$ac_cv_path_install
2596 else
2597 # As a last resort, use the slow shell script. Don't cache a
2598 # value for INSTALL within a source directory, because that will
2599 # break other packages using the cache if that directory is
2600 # removed, or if the value is a relative name.
2601 INSTALL=$ac_install_sh
2602 fi
2603 fi
2604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2605 printf "%s\n" "$INSTALL" >&6; }
2606
2607 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2608 # It thinks the first close brace ends the variable substitution.
2609 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2610
2611 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2612
2613 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2614
2615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2616 printf %s "checking whether build environment is sane... " >&6; }
2617 # Reject unsafe characters in $srcdir or the absolute working directory
2618 # name. Accept space and tab only in the latter.
2619 am_lf='
2620 '
2621 case `pwd` in
2622 *[\\\"\#\$\&\'\`$am_lf]*)
2623 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2624 esac
2625 case $srcdir in
2626 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2627 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2628 esac
2629
2630 # Do 'set' in a subshell so we don't clobber the current shell's
2631 # arguments. Must try -L first in case configure is actually a
2632 # symlink; some systems play weird games with the mod time of symlinks
2633 # (eg FreeBSD returns the mod time of the symlink's containing
2634 # directory).
2635 if (
2636 am_has_slept=no
2637 for am_try in 1 2; do
2638 echo "timestamp, slept: $am_has_slept" > conftest.file
2639 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2640 if test "$*" = "X"; then
2641 # -L didn't work.
2642 set X `ls -t "$srcdir/configure" conftest.file`
2643 fi
2644 if test "$*" != "X $srcdir/configure conftest.file" \
2645 && test "$*" != "X conftest.file $srcdir/configure"; then
2646
2647 # If neither matched, then we have a broken ls. This can happen
2648 # if, for instance, CONFIG_SHELL is bash and it inherits a
2649 # broken ls alias from the environment. This has actually
2650 # happened. Such a system could not be considered "sane".
2651 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2652 alias in your environment" "$LINENO" 5
2653 fi
2654 if test "$2" = conftest.file || test $am_try -eq 2; then
2655 break
2656 fi
2657 # Just in case.
2658 sleep 1
2659 am_has_slept=yes
2660 done
2661 test "$2" = conftest.file
2662 )
2663 then
2664 # Ok.
2665 :
2666 else
2667 as_fn_error $? "newly created file is older than distributed files!
2668 Check your system clock" "$LINENO" 5
2669 fi
2670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2671 printf "%s\n" "yes" >&6; }
2672 # If we didn't sleep, we still need to ensure time stamps of config.status and
2673 # generated files are strictly newer.
2674 am_sleep_pid=
2675 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2676 ( sleep 1 ) &
2677 am_sleep_pid=$!
2678 fi
2679
2680 rm -f conftest.file
2681
2682 test "$program_prefix" != NONE &&
2683 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2684 # Use a double $ so make ignores it.
2685 test "$program_suffix" != NONE &&
2686 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2687 # Double any \ or $.
2688 # By default was `s,x,x', remove it if useless.
2689 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2690 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2691
2692
2693 # Expand $ac_aux_dir to an absolute path.
2694 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2695
2696
2697 if test x"${MISSING+set}" != xset; then
2698 MISSING="\${SHELL} '$am_aux_dir/missing'"
2699 fi
2700 # Use eval to expand $SHELL
2701 if eval "$MISSING --is-lightweight"; then
2702 am_missing_run="$MISSING "
2703 else
2704 am_missing_run=
2705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2706 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2707 fi
2708
2709 if test x"${install_sh+set}" != xset; then
2710 case $am_aux_dir in
2711 *\ * | *\ *)
2712 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2713 *)
2714 install_sh="\${SHELL} $am_aux_dir/install-sh"
2715 esac
2716 fi
2717
2718 # Installed binaries are usually stripped using 'strip' when the user
2719 # run "make install-strip". However 'strip' might not be the right
2720 # tool to use in cross-compilation environments, therefore Automake
2721 # will honor the 'STRIP' environment variable to overrule this program.
2722 if test "$cross_compiling" != no; then
2723 if test -n "$ac_tool_prefix"; then
2724 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2725 set dummy ${ac_tool_prefix}strip; ac_word=$2
2726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727 printf %s "checking for $ac_word... " >&6; }
2728 if test ${ac_cv_prog_STRIP+y}
2729 then :
2730 printf %s "(cached) " >&6
2731 else $as_nop
2732 if test -n "$STRIP"; then
2733 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2737 do
2738 IFS=$as_save_IFS
2739 case $as_dir in #(((
2740 '') as_dir=./ ;;
2741 */) ;;
2742 *) as_dir=$as_dir/ ;;
2743 esac
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2748 break 2
2749 fi
2750 done
2751 done
2752 IFS=$as_save_IFS
2753
2754 fi
2755 fi
2756 STRIP=$ac_cv_prog_STRIP
2757 if test -n "$STRIP"; then
2758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2759 printf "%s\n" "$STRIP" >&6; }
2760 else
2761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762 printf "%s\n" "no" >&6; }
2763 fi
2764
2765
2766 fi
2767 if test -z "$ac_cv_prog_STRIP"; then
2768 ac_ct_STRIP=$STRIP
2769 # Extract the first word of "strip", so it can be a program name with args.
2770 set dummy strip; ac_word=$2
2771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 printf %s "checking for $ac_word... " >&6; }
2773 if test ${ac_cv_prog_ac_ct_STRIP+y}
2774 then :
2775 printf %s "(cached) " >&6
2776 else $as_nop
2777 if test -n "$ac_ct_STRIP"; then
2778 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783 IFS=$as_save_IFS
2784 case $as_dir in #(((
2785 '') as_dir=./ ;;
2786 */) ;;
2787 *) as_dir=$as_dir/ ;;
2788 esac
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_ac_ct_STRIP="strip"
2792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2793 break 2
2794 fi
2795 done
2796 done
2797 IFS=$as_save_IFS
2798
2799 fi
2800 fi
2801 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2802 if test -n "$ac_ct_STRIP"; then
2803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2804 printf "%s\n" "$ac_ct_STRIP" >&6; }
2805 else
2806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807 printf "%s\n" "no" >&6; }
2808 fi
2809
2810 if test "x$ac_ct_STRIP" = x; then
2811 STRIP=":"
2812 else
2813 case $cross_compiling:$ac_tool_warned in
2814 yes:)
2815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2816 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2817 ac_tool_warned=yes ;;
2818 esac
2819 STRIP=$ac_ct_STRIP
2820 fi
2821 else
2822 STRIP="$ac_cv_prog_STRIP"
2823 fi
2824
2825 fi
2826 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2827
2828
2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2830 printf %s "checking for a race-free mkdir -p... " >&6; }
2831 if test -z "$MKDIR_P"; then
2832 if test ${ac_cv_path_mkdir+y}
2833 then :
2834 printf %s "(cached) " >&6
2835 else $as_nop
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2838 do
2839 IFS=$as_save_IFS
2840 case $as_dir in #(((
2841 '') as_dir=./ ;;
2842 */) ;;
2843 *) as_dir=$as_dir/ ;;
2844 esac
2845 for ac_prog in mkdir gmkdir; do
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2848 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2849 'mkdir ('*'coreutils) '* | \
2850 'BusyBox '* | \
2851 'mkdir (fileutils) '4.1*)
2852 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2853 break 3;;
2854 esac
2855 done
2856 done
2857 done
2858 IFS=$as_save_IFS
2859
2860 fi
2861
2862 test -d ./--version && rmdir ./--version
2863 if test ${ac_cv_path_mkdir+y}; then
2864 MKDIR_P="$ac_cv_path_mkdir -p"
2865 else
2866 # As a last resort, use the slow shell script. Don't cache a
2867 # value for MKDIR_P within a source directory, because that will
2868 # break other packages using the cache if that directory is
2869 # removed, or if the value is a relative name.
2870 MKDIR_P="$ac_install_sh -d"
2871 fi
2872 fi
2873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2874 printf "%s\n" "$MKDIR_P" >&6; }
2875
2876 for ac_prog in gawk mawk nawk awk
2877 do
2878 # Extract the first word of "$ac_prog", so it can be a program name with args.
2879 set dummy $ac_prog; ac_word=$2
2880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881 printf %s "checking for $ac_word... " >&6; }
2882 if test ${ac_cv_prog_AWK+y}
2883 then :
2884 printf %s "(cached) " >&6
2885 else $as_nop
2886 if test -n "$AWK"; then
2887 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2888 else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2891 do
2892 IFS=$as_save_IFS
2893 case $as_dir in #(((
2894 '') as_dir=./ ;;
2895 */) ;;
2896 *) as_dir=$as_dir/ ;;
2897 esac
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2900 ac_cv_prog_AWK="$ac_prog"
2901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2902 break 2
2903 fi
2904 done
2905 done
2906 IFS=$as_save_IFS
2907
2908 fi
2909 fi
2910 AWK=$ac_cv_prog_AWK
2911 if test -n "$AWK"; then
2912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2913 printf "%s\n" "$AWK" >&6; }
2914 else
2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916 printf "%s\n" "no" >&6; }
2917 fi
2918
2919
2920 test -n "$AWK" && break
2921 done
2922
2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2924 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2925 set x ${MAKE-make}
2926 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2927 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2928 then :
2929 printf %s "(cached) " >&6
2930 else $as_nop
2931 cat >conftest.make <<\_ACEOF
2932 SHELL = /bin/sh
2933 all:
2934 @echo '@@@%%%=$(MAKE)=@@@%%%'
2935 _ACEOF
2936 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2937 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2938 *@@@%%%=?*=@@@%%%*)
2939 eval ac_cv_prog_make_${ac_make}_set=yes;;
2940 *)
2941 eval ac_cv_prog_make_${ac_make}_set=no;;
2942 esac
2943 rm -f conftest.make
2944 fi
2945 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2947 printf "%s\n" "yes" >&6; }
2948 SET_MAKE=
2949 else
2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 printf "%s\n" "no" >&6; }
2952 SET_MAKE="MAKE=${MAKE-make}"
2953 fi
2954
2955 rm -rf .tst 2>/dev/null
2956 mkdir .tst 2>/dev/null
2957 if test -d .tst; then
2958 am__leading_dot=.
2959 else
2960 am__leading_dot=_
2961 fi
2962 rmdir .tst 2>/dev/null
2963
2964 # Check whether --enable-silent-rules was given.
2965 if test ${enable_silent_rules+y}
2966 then :
2967 enableval=$enable_silent_rules;
2968 fi
2969
2970 case $enable_silent_rules in # (((
2971 yes) AM_DEFAULT_VERBOSITY=0;;
2972 no) AM_DEFAULT_VERBOSITY=1;;
2973 *) AM_DEFAULT_VERBOSITY=1;;
2974 esac
2975 am_make=${MAKE-make}
2976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2977 printf %s "checking whether $am_make supports nested variables... " >&6; }
2978 if test ${am_cv_make_support_nested_variables+y}
2979 then :
2980 printf %s "(cached) " >&6
2981 else $as_nop
2982 if printf "%s\n" 'TRUE=$(BAR$(V))
2983 BAR0=false
2984 BAR1=true
2985 V=1
2986 am__doit:
2987 @$(TRUE)
2988 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2989 am_cv_make_support_nested_variables=yes
2990 else
2991 am_cv_make_support_nested_variables=no
2992 fi
2993 fi
2994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2995 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2996 if test $am_cv_make_support_nested_variables = yes; then
2997 AM_V='$(V)'
2998 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2999 else
3000 AM_V=$AM_DEFAULT_VERBOSITY
3001 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3002 fi
3003 AM_BACKSLASH='\'
3004
3005 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3006 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3007 # is not polluted with repeated "-I."
3008 am__isrc=' -I$(srcdir)'
3009 # test to see if srcdir already configured
3010 if test -f $srcdir/config.status; then
3011 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3012 fi
3013 fi
3014
3015 # test whether we have cygpath
3016 if test -z "$CYGPATH_W"; then
3017 if (cygpath --version) >/dev/null 2>/dev/null; then
3018 CYGPATH_W='cygpath -w'
3019 else
3020 CYGPATH_W=echo
3021 fi
3022 fi
3023
3024
3025 # Define the identity of the package.
3026 PACKAGE='xeyes'
3027 VERSION='1.2.0'
3028
3029
3030 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3031
3032
3033 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3034
3035 # Some tools Automake needs.
3036
3037 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3038
3039
3040 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3041
3042
3043 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3044
3045
3046 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3047
3048
3049 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3050
3051 # For better backward compatibility. To be removed once Automake 1.9.x
3052 # dies out for good. For more background, see:
3053 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3054 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3055 mkdir_p='$(MKDIR_P)'
3056
3057 # We need awk for the "check" target (and possibly the TAP driver). The
3058 # system "awk" is bad on some platforms.
3059 # Always define AMTAR for backward compatibility. Yes, it's still used
3060 # in the wild :-( We should find a proper way to deprecate it ...
3061 AMTAR='$${TAR-tar}'
3062
3063
3064 # We'll loop over all known methods to create a tar archive until one works.
3065 _am_tools='gnutar pax cpio none'
3066
3067 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3068
3069
3070
3071
3072
3073 # Variables for tags utilities; see am/tags.am
3074 if test -z "$CTAGS"; then
3075 CTAGS=ctags
3076 fi
3077
3078 if test -z "$ETAGS"; then
3079 ETAGS=etags
3080 fi
3081
3082 if test -z "$CSCOPE"; then
3083 CSCOPE=cscope
3084 fi
3085
3086
3087
3088 # POSIX will say in a future version that running "rm -f" with no argument
3089 # is OK; and we want to be able to make that assumption in our Makefile
3090 # recipes. So use an aggressive probe to check that the usage we want is
3091 # actually supported "in the wild" to an acceptable degree.
3092 # See automake bug#10828.
3093 # To make any issue more visible, cause the running configure to be aborted
3094 # by default if the 'rm' program in use doesn't match our expectations; the
3095 # user can still override this though.
3096 if rm -f && rm -fr && rm -rf; then : OK; else
3097 cat >&2 <<'END'
3098 Oops!
3099
3100 Your 'rm' program seems unable to run without file operands specified
3101 on the command line, even when the '-f' option is present. This is contrary
3102 to the behaviour of most rm programs out there, and not conforming with
3103 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3104
3105 Please tell bug-automake@gnu.org about your system, including the value
3106 of your $PATH and any error possibly output before this message. This
3107 can help us improve future automake versions.
3108
3109 END
3110 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3111 echo 'Configuration will proceed anyway, since you have set the' >&2
3112 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3113 echo >&2
3114 else
3115 cat >&2 <<'END'
3116 Aborting the configuration process, to ensure you take notice of the issue.
3117
3118 You can download and install GNU coreutils to get an 'rm' implementation
3119 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3120
3121 If you want to complete the configuration process using your problematic
3122 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3123 to "yes", and re-run configure.
3124
3125 END
3126 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3127 fi
3128 fi
3129
3130
3131 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152 DEPDIR="${am__leading_dot}deps"
3153
3154 ac_config_commands="$ac_config_commands depfiles"
3155
3156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3157 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3158 cat > confinc.mk << 'END'
3159 am__doit:
3160 @echo this is the am__doit target >confinc.out
3161 .PHONY: am__doit
3162 END
3163 am__include="#"
3164 am__quote=
3165 # BSD make does it like this.
3166 echo '.include "confinc.mk" # ignored' > confmf.BSD
3167 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3168 echo 'include confinc.mk # ignored' > confmf.GNU
3169 _am_result=no
3170 for s in GNU BSD; do
3171 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3172 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3173 ac_status=$?
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }
3176 case $?:`cat confinc.out 2>/dev/null` in #(
3177 '0:this is the am__doit target') :
3178 case $s in #(
3179 BSD) :
3180 am__include='.include' am__quote='"' ;; #(
3181 *) :
3182 am__include='include' am__quote='' ;;
3183 esac ;; #(
3184 *) :
3185 ;;
3186 esac
3187 if test "$am__include" != "#"; then
3188 _am_result="yes ($s style)"
3189 break
3190 fi
3191 done
3192 rm -f confinc.* confmf.*
3193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3194 printf "%s\n" "${_am_result}" >&6; }
3195
3196 # Check whether --enable-dependency-tracking was given.
3197 if test ${enable_dependency_tracking+y}
3198 then :
3199 enableval=$enable_dependency_tracking;
3200 fi
3201
3202 if test "x$enable_dependency_tracking" != xno; then
3203 am_depcomp="$ac_aux_dir/depcomp"
3204 AMDEPBACKSLASH='\'
3205 am__nodep='_no'
3206 fi
3207 if test "x$enable_dependency_tracking" != xno; then
3208 AMDEP_TRUE=
3209 AMDEP_FALSE='#'
3210 else
3211 AMDEP_TRUE='#'
3212 AMDEP_FALSE=
3213 fi
3214
3215
3216 ac_ext=c
3217 ac_cpp='$CPP $CPPFLAGS'
3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221 if test -n "$ac_tool_prefix"; then
3222 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3223 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225 printf %s "checking for $ac_word... " >&6; }
3226 if test ${ac_cv_prog_CC+y}
3227 then :
3228 printf %s "(cached) " >&6
3229 else $as_nop
3230 if test -n "$CC"; then
3231 ac_cv_prog_CC="$CC" # Let the user override the test.
3232 else
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 for as_dir in $PATH
3235 do
3236 IFS=$as_save_IFS
3237 case $as_dir in #(((
3238 '') as_dir=./ ;;
3239 */) ;;
3240 *) as_dir=$as_dir/ ;;
3241 esac
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3244 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3246 break 2
3247 fi
3248 done
3249 done
3250 IFS=$as_save_IFS
3251
3252 fi
3253 fi
3254 CC=$ac_cv_prog_CC
3255 if test -n "$CC"; then
3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3257 printf "%s\n" "$CC" >&6; }
3258 else
3259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 printf "%s\n" "no" >&6; }
3261 fi
3262
3263
3264 fi
3265 if test -z "$ac_cv_prog_CC"; then
3266 ac_ct_CC=$CC
3267 # Extract the first word of "gcc", so it can be a program name with args.
3268 set dummy gcc; ac_word=$2
3269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270 printf %s "checking for $ac_word... " >&6; }
3271 if test ${ac_cv_prog_ac_ct_CC+y}
3272 then :
3273 printf %s "(cached) " >&6
3274 else $as_nop
3275 if test -n "$ac_ct_CC"; then
3276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3277 else
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3280 do
3281 IFS=$as_save_IFS
3282 case $as_dir in #(((
3283 '') as_dir=./ ;;
3284 */) ;;
3285 *) as_dir=$as_dir/ ;;
3286 esac
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3289 ac_cv_prog_ac_ct_CC="gcc"
3290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3291 break 2
3292 fi
3293 done
3294 done
3295 IFS=$as_save_IFS
3296
3297 fi
3298 fi
3299 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3300 if test -n "$ac_ct_CC"; then
3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3302 printf "%s\n" "$ac_ct_CC" >&6; }
3303 else
3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 printf "%s\n" "no" >&6; }
3306 fi
3307
3308 if test "x$ac_ct_CC" = x; then
3309 CC=""
3310 else
3311 case $cross_compiling:$ac_tool_warned in
3312 yes:)
3313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3314 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3315 ac_tool_warned=yes ;;
3316 esac
3317 CC=$ac_ct_CC
3318 fi
3319 else
3320 CC="$ac_cv_prog_CC"
3321 fi
3322
3323 if test -z "$CC"; then
3324 if test -n "$ac_tool_prefix"; then
3325 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3326 set dummy ${ac_tool_prefix}cc; ac_word=$2
3327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 printf %s "checking for $ac_word... " >&6; }
3329 if test ${ac_cv_prog_CC+y}
3330 then :
3331 printf %s "(cached) " >&6
3332 else $as_nop
3333 if test -n "$CC"; then
3334 ac_cv_prog_CC="$CC" # Let the user override the test.
3335 else
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3338 do
3339 IFS=$as_save_IFS
3340 case $as_dir in #(((
3341 '') as_dir=./ ;;
3342 */) ;;
3343 *) as_dir=$as_dir/ ;;
3344 esac
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3347 ac_cv_prog_CC="${ac_tool_prefix}cc"
3348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3349 break 2
3350 fi
3351 done
3352 done
3353 IFS=$as_save_IFS
3354
3355 fi
3356 fi
3357 CC=$ac_cv_prog_CC
3358 if test -n "$CC"; then
3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360 printf "%s\n" "$CC" >&6; }
3361 else
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 printf "%s\n" "no" >&6; }
3364 fi
3365
3366
3367 fi
3368 fi
3369 if test -z "$CC"; then
3370 # Extract the first word of "cc", so it can be a program name with args.
3371 set dummy cc; ac_word=$2
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373 printf %s "checking for $ac_word... " >&6; }
3374 if test ${ac_cv_prog_CC+y}
3375 then :
3376 printf %s "(cached) " >&6
3377 else $as_nop
3378 if test -n "$CC"; then
3379 ac_cv_prog_CC="$CC" # Let the user override the test.
3380 else
3381 ac_prog_rejected=no
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 for as_dir in $PATH
3384 do
3385 IFS=$as_save_IFS
3386 case $as_dir in #(((
3387 '') as_dir=./ ;;
3388 */) ;;
3389 *) as_dir=$as_dir/ ;;
3390 esac
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3393 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3394 ac_prog_rejected=yes
3395 continue
3396 fi
3397 ac_cv_prog_CC="cc"
3398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3399 break 2
3400 fi
3401 done
3402 done
3403 IFS=$as_save_IFS
3404
3405 if test $ac_prog_rejected = yes; then
3406 # We found a bogon in the path, so make sure we never use it.
3407 set dummy $ac_cv_prog_CC
3408 shift
3409 if test $# != 0; then
3410 # We chose a different compiler from the bogus one.
3411 # However, it has the same basename, so the bogon will be chosen
3412 # first if we set CC to just the basename; use the full file name.
3413 shift
3414 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3415 fi
3416 fi
3417 fi
3418 fi
3419 CC=$ac_cv_prog_CC
3420 if test -n "$CC"; then
3421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3422 printf "%s\n" "$CC" >&6; }
3423 else
3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 printf "%s\n" "no" >&6; }
3426 fi
3427
3428
3429 fi
3430 if test -z "$CC"; then
3431 if test -n "$ac_tool_prefix"; then
3432 for ac_prog in cl.exe
3433 do
3434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3435 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437 printf %s "checking for $ac_word... " >&6; }
3438 if test ${ac_cv_prog_CC+y}
3439 then :
3440 printf %s "(cached) " >&6
3441 else $as_nop
3442 if test -n "$CC"; then
3443 ac_cv_prog_CC="$CC" # Let the user override the test.
3444 else
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3447 do
3448 IFS=$as_save_IFS
3449 case $as_dir in #(((
3450 '') as_dir=./ ;;
3451 */) ;;
3452 *) as_dir=$as_dir/ ;;
3453 esac
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3456 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3458 break 2
3459 fi
3460 done
3461 done
3462 IFS=$as_save_IFS
3463
3464 fi
3465 fi
3466 CC=$ac_cv_prog_CC
3467 if test -n "$CC"; then
3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3469 printf "%s\n" "$CC" >&6; }
3470 else
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 printf "%s\n" "no" >&6; }
3473 fi
3474
3475
3476 test -n "$CC" && break
3477 done
3478 fi
3479 if test -z "$CC"; then
3480 ac_ct_CC=$CC
3481 for ac_prog in cl.exe
3482 do
3483 # Extract the first word of "$ac_prog", so it can be a program name with args.
3484 set dummy $ac_prog; ac_word=$2
3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486 printf %s "checking for $ac_word... " >&6; }
3487 if test ${ac_cv_prog_ac_ct_CC+y}
3488 then :
3489 printf %s "(cached) " >&6
3490 else $as_nop
3491 if test -n "$ac_ct_CC"; then
3492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3493 else
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 for as_dir in $PATH
3496 do
3497 IFS=$as_save_IFS
3498 case $as_dir in #(((
3499 '') as_dir=./ ;;
3500 */) ;;
3501 *) as_dir=$as_dir/ ;;
3502 esac
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3505 ac_cv_prog_ac_ct_CC="$ac_prog"
3506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3507 break 2
3508 fi
3509 done
3510 done
3511 IFS=$as_save_IFS
3512
3513 fi
3514 fi
3515 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3516 if test -n "$ac_ct_CC"; then
3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3518 printf "%s\n" "$ac_ct_CC" >&6; }
3519 else
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 printf "%s\n" "no" >&6; }
3522 fi
3523
3524
3525 test -n "$ac_ct_CC" && break
3526 done
3527
3528 if test "x$ac_ct_CC" = x; then
3529 CC=""
3530 else
3531 case $cross_compiling:$ac_tool_warned in
3532 yes:)
3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3534 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3535 ac_tool_warned=yes ;;
3536 esac
3537 CC=$ac_ct_CC
3538 fi
3539 fi
3540
3541 fi
3542 if test -z "$CC"; then
3543 if test -n "$ac_tool_prefix"; then
3544 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3545 set dummy ${ac_tool_prefix}clang; 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_CC+y}
3549 then :
3550 printf %s "(cached) " >&6
3551 else $as_nop
3552 if test -n "$CC"; then
3553 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}clang"
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 CC=$ac_cv_prog_CC
3577 if test -n "$CC"; then
3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3579 printf "%s\n" "$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 fi
3587 if test -z "$ac_cv_prog_CC"; then
3588 ac_ct_CC=$CC
3589 # Extract the first word of "clang", so it can be a program name with args.
3590 set dummy clang; ac_word=$2
3591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592 printf %s "checking for $ac_word... " >&6; }
3593 if test ${ac_cv_prog_ac_ct_CC+y}
3594 then :
3595 printf %s "(cached) " >&6
3596 else $as_nop
3597 if test -n "$ac_ct_CC"; then
3598 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3599 else
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3602 do
3603 IFS=$as_save_IFS
3604 case $as_dir in #(((
3605 '') as_dir=./ ;;
3606 */) ;;
3607 *) as_dir=$as_dir/ ;;
3608 esac
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3611 ac_cv_prog_ac_ct_CC="clang"
3612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3613 break 2
3614 fi
3615 done
3616 done
3617 IFS=$as_save_IFS
3618
3619 fi
3620 fi
3621 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3622 if test -n "$ac_ct_CC"; then
3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3624 printf "%s\n" "$ac_ct_CC" >&6; }
3625 else
3626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 printf "%s\n" "no" >&6; }
3628 fi
3629
3630 if test "x$ac_ct_CC" = x; then
3631 CC=""
3632 else
3633 case $cross_compiling:$ac_tool_warned in
3634 yes:)
3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3636 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3637 ac_tool_warned=yes ;;
3638 esac
3639 CC=$ac_ct_CC
3640 fi
3641 else
3642 CC="$ac_cv_prog_CC"
3643 fi
3644
3645 fi
3646
3647
3648 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3649 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3650 as_fn_error $? "no acceptable C compiler found in \$PATH
3651 See \`config.log' for more details" "$LINENO" 5; }
3652
3653 # Provide some information about the compiler.
3654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3655 set X $ac_compile
3656 ac_compiler=$2
3657 for ac_option in --version -v -V -qversion -version; do
3658 { { ac_try="$ac_compiler $ac_option >&5"
3659 case "(($ac_try" in
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3662 esac
3663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664 printf "%s\n" "$ac_try_echo"; } >&5
3665 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3666 ac_status=$?
3667 if test -s conftest.err; then
3668 sed '10a\
3669 ... rest of stderr output deleted ...
3670 10q' conftest.err >conftest.er1
3671 cat conftest.er1 >&5
3672 fi
3673 rm -f conftest.er1 conftest.err
3674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3675 test $ac_status = 0; }
3676 done
3677
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3680
3681 int
3682 main (void)
3683 {
3684
3685 ;
3686 return 0;
3687 }
3688 _ACEOF
3689 ac_clean_files_save=$ac_clean_files
3690 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3691 # Try to create an executable without -o first, disregard a.out.
3692 # It will help us diagnose broken compilers, and finding out an intuition
3693 # of exeext.
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3695 printf %s "checking whether the C compiler works... " >&6; }
3696 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3697
3698 # The possible output files:
3699 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3700
3701 ac_rmfiles=
3702 for ac_file in $ac_files
3703 do
3704 case $ac_file in
3705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3706 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3707 esac
3708 done
3709 rm -f $ac_rmfiles
3710
3711 if { { ac_try="$ac_link_default"
3712 case "(($ac_try" in
3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714 *) ac_try_echo=$ac_try;;
3715 esac
3716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3717 printf "%s\n" "$ac_try_echo"; } >&5
3718 (eval "$ac_link_default") 2>&5
3719 ac_status=$?
3720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3721 test $ac_status = 0; }
3722 then :
3723 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3724 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3725 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3726 # so that the user can short-circuit this test for compilers unknown to
3727 # Autoconf.
3728 for ac_file in $ac_files ''
3729 do
3730 test -f "$ac_file" || continue
3731 case $ac_file in
3732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3733 ;;
3734 [ab].out )
3735 # We found the default executable, but exeext='' is most
3736 # certainly right.
3737 break;;
3738 *.* )
3739 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3740 then :; else
3741 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3742 fi
3743 # We set ac_cv_exeext here because the later test for it is not
3744 # safe: cross compilers may not add the suffix if given an `-o'
3745 # argument, so we may need to know it at that point already.
3746 # Even if this section looks crufty: it has the advantage of
3747 # actually working.
3748 break;;
3749 * )
3750 break;;
3751 esac
3752 done
3753 test "$ac_cv_exeext" = no && ac_cv_exeext=
3754
3755 else $as_nop
3756 ac_file=''
3757 fi
3758 if test -z "$ac_file"
3759 then :
3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761 printf "%s\n" "no" >&6; }
3762 printf "%s\n" "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3764
3765 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error 77 "C compiler cannot create executables
3768 See \`config.log' for more details" "$LINENO" 5; }
3769 else $as_nop
3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3771 printf "%s\n" "yes" >&6; }
3772 fi
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3774 printf %s "checking for C compiler default output file name... " >&6; }
3775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3776 printf "%s\n" "$ac_file" >&6; }
3777 ac_exeext=$ac_cv_exeext
3778
3779 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3780 ac_clean_files=$ac_clean_files_save
3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3782 printf %s "checking for suffix of executables... " >&6; }
3783 if { { ac_try="$ac_link"
3784 case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3787 esac
3788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3789 printf "%s\n" "$ac_try_echo"; } >&5
3790 (eval "$ac_link") 2>&5
3791 ac_status=$?
3792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3793 test $ac_status = 0; }
3794 then :
3795 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3796 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3797 # work properly (i.e., refer to `conftest.exe'), while it won't with
3798 # `rm'.
3799 for ac_file in conftest.exe conftest conftest.*; do
3800 test -f "$ac_file" || continue
3801 case $ac_file in
3802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3803 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3804 break;;
3805 * ) break;;
3806 esac
3807 done
3808 else $as_nop
3809 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3810 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3811 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3812 See \`config.log' for more details" "$LINENO" 5; }
3813 fi
3814 rm -f conftest conftest$ac_cv_exeext
3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3816 printf "%s\n" "$ac_cv_exeext" >&6; }
3817
3818 rm -f conftest.$ac_ext
3819 EXEEXT=$ac_cv_exeext
3820 ac_exeext=$EXEEXT
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3823 #include <stdio.h>
3824 int
3825 main (void)
3826 {
3827 FILE *f = fopen ("conftest.out", "w");
3828 return ferror (f) || fclose (f) != 0;
3829
3830 ;
3831 return 0;
3832 }
3833 _ACEOF
3834 ac_clean_files="$ac_clean_files conftest.out"
3835 # Check that the compiler produces executables we can run. If not, either
3836 # the compiler is broken, or we cross compile.
3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3838 printf %s "checking whether we are cross compiling... " >&6; }
3839 if test "$cross_compiling" != yes; then
3840 { { ac_try="$ac_link"
3841 case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844 esac
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 printf "%s\n" "$ac_try_echo"; } >&5
3847 (eval "$ac_link") 2>&5
3848 ac_status=$?
3849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3850 test $ac_status = 0; }
3851 if { ac_try='./conftest$ac_cv_exeext'
3852 { { case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855 esac
3856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857 printf "%s\n" "$ac_try_echo"; } >&5
3858 (eval "$ac_try") 2>&5
3859 ac_status=$?
3860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861 test $ac_status = 0; }; }; then
3862 cross_compiling=no
3863 else
3864 if test "$cross_compiling" = maybe; then
3865 cross_compiling=yes
3866 else
3867 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3868 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3869 as_fn_error 77 "cannot run C compiled programs.
3870 If you meant to cross compile, use \`--host'.
3871 See \`config.log' for more details" "$LINENO" 5; }
3872 fi
3873 fi
3874 fi
3875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3876 printf "%s\n" "$cross_compiling" >&6; }
3877
3878 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3879 ac_clean_files=$ac_clean_files_save
3880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3881 printf %s "checking for suffix of object files... " >&6; }
3882 if test ${ac_cv_objext+y}
3883 then :
3884 printf %s "(cached) " >&6
3885 else $as_nop
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3888
3889 int
3890 main (void)
3891 {
3892
3893 ;
3894 return 0;
3895 }
3896 _ACEOF
3897 rm -f conftest.o conftest.obj
3898 if { { ac_try="$ac_compile"
3899 case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3902 esac
3903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904 printf "%s\n" "$ac_try_echo"; } >&5
3905 (eval "$ac_compile") 2>&5
3906 ac_status=$?
3907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3908 test $ac_status = 0; }
3909 then :
3910 for ac_file in conftest.o conftest.obj conftest.*; do
3911 test -f "$ac_file" || continue;
3912 case $ac_file in
3913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3914 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3915 break;;
3916 esac
3917 done
3918 else $as_nop
3919 printf "%s\n" "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3921
3922 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3923 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3924 as_fn_error $? "cannot compute suffix of object files: cannot compile
3925 See \`config.log' for more details" "$LINENO" 5; }
3926 fi
3927 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3928 fi
3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3930 printf "%s\n" "$ac_cv_objext" >&6; }
3931 OBJEXT=$ac_cv_objext
3932 ac_objext=$OBJEXT
3933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3934 printf %s "checking whether the compiler supports GNU C... " >&6; }
3935 if test ${ac_cv_c_compiler_gnu+y}
3936 then :
3937 printf %s "(cached) " >&6
3938 else $as_nop
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3941
3942 int
3943 main (void)
3944 {
3945 #ifndef __GNUC__
3946 choke me
3947 #endif
3948
3949 ;
3950 return 0;
3951 }
3952 _ACEOF
3953 if ac_fn_c_try_compile "$LINENO"
3954 then :
3955 ac_compiler_gnu=yes
3956 else $as_nop
3957 ac_compiler_gnu=no
3958 fi
3959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3960 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3961
3962 fi
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3964 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3966
3967 if test $ac_compiler_gnu = yes; then
3968 GCC=yes
3969 else
3970 GCC=
3971 fi
3972 ac_test_CFLAGS=${CFLAGS+y}
3973 ac_save_CFLAGS=$CFLAGS
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3975 printf %s "checking whether $CC accepts -g... " >&6; }
3976 if test ${ac_cv_prog_cc_g+y}
3977 then :
3978 printf %s "(cached) " >&6
3979 else $as_nop
3980 ac_save_c_werror_flag=$ac_c_werror_flag
3981 ac_c_werror_flag=yes
3982 ac_cv_prog_cc_g=no
3983 CFLAGS="-g"
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3986
3987 int
3988 main (void)
3989 {
3990
3991 ;
3992 return 0;
3993 }
3994 _ACEOF
3995 if ac_fn_c_try_compile "$LINENO"
3996 then :
3997 ac_cv_prog_cc_g=yes
3998 else $as_nop
3999 CFLAGS=""
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4002
4003 int
4004 main (void)
4005 {
4006
4007 ;
4008 return 0;
4009 }
4010 _ACEOF
4011 if ac_fn_c_try_compile "$LINENO"
4012 then :
4013
4014 else $as_nop
4015 ac_c_werror_flag=$ac_save_c_werror_flag
4016 CFLAGS="-g"
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4019
4020 int
4021 main (void)
4022 {
4023
4024 ;
4025 return 0;
4026 }
4027 _ACEOF
4028 if ac_fn_c_try_compile "$LINENO"
4029 then :
4030 ac_cv_prog_cc_g=yes
4031 fi
4032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4033 fi
4034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4035 fi
4036 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4037 ac_c_werror_flag=$ac_save_c_werror_flag
4038 fi
4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4040 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4041 if test $ac_test_CFLAGS; then
4042 CFLAGS=$ac_save_CFLAGS
4043 elif test $ac_cv_prog_cc_g = yes; then
4044 if test "$GCC" = yes; then
4045 CFLAGS="-g -O2"
4046 else
4047 CFLAGS="-g"
4048 fi
4049 else
4050 if test "$GCC" = yes; then
4051 CFLAGS="-O2"
4052 else
4053 CFLAGS=
4054 fi
4055 fi
4056 ac_prog_cc_stdc=no
4057 if test x$ac_prog_cc_stdc = xno
4058 then :
4059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4060 printf %s "checking for $CC option to enable C11 features... " >&6; }
4061 if test ${ac_cv_prog_cc_c11+y}
4062 then :
4063 printf %s "(cached) " >&6
4064 else $as_nop
4065 ac_cv_prog_cc_c11=no
4066 ac_save_CC=$CC
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4069 $ac_c_conftest_c11_program
4070 _ACEOF
4071 for ac_arg in '' -std=gnu11
4072 do
4073 CC="$ac_save_CC $ac_arg"
4074 if ac_fn_c_try_compile "$LINENO"
4075 then :
4076 ac_cv_prog_cc_c11=$ac_arg
4077 fi
4078 rm -f core conftest.err conftest.$ac_objext conftest.beam
4079 test "x$ac_cv_prog_cc_c11" != "xno" && break
4080 done
4081 rm -f conftest.$ac_ext
4082 CC=$ac_save_CC
4083 fi
4084
4085 if test "x$ac_cv_prog_cc_c11" = xno
4086 then :
4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4088 printf "%s\n" "unsupported" >&6; }
4089 else $as_nop
4090 if test "x$ac_cv_prog_cc_c11" = x
4091 then :
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4093 printf "%s\n" "none needed" >&6; }
4094 else $as_nop
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4096 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4097 CC="$CC $ac_cv_prog_cc_c11"
4098 fi
4099 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4100 ac_prog_cc_stdc=c11
4101 fi
4102 fi
4103 if test x$ac_prog_cc_stdc = xno
4104 then :
4105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4106 printf %s "checking for $CC option to enable C99 features... " >&6; }
4107 if test ${ac_cv_prog_cc_c99+y}
4108 then :
4109 printf %s "(cached) " >&6
4110 else $as_nop
4111 ac_cv_prog_cc_c99=no
4112 ac_save_CC=$CC
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4115 $ac_c_conftest_c99_program
4116 _ACEOF
4117 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4118 do
4119 CC="$ac_save_CC $ac_arg"
4120 if ac_fn_c_try_compile "$LINENO"
4121 then :
4122 ac_cv_prog_cc_c99=$ac_arg
4123 fi
4124 rm -f core conftest.err conftest.$ac_objext conftest.beam
4125 test "x$ac_cv_prog_cc_c99" != "xno" && break
4126 done
4127 rm -f conftest.$ac_ext
4128 CC=$ac_save_CC
4129 fi
4130
4131 if test "x$ac_cv_prog_cc_c99" = xno
4132 then :
4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4134 printf "%s\n" "unsupported" >&6; }
4135 else $as_nop
4136 if test "x$ac_cv_prog_cc_c99" = x
4137 then :
4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4139 printf "%s\n" "none needed" >&6; }
4140 else $as_nop
4141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4142 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4143 CC="$CC $ac_cv_prog_cc_c99"
4144 fi
4145 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4146 ac_prog_cc_stdc=c99
4147 fi
4148 fi
4149 if test x$ac_prog_cc_stdc = xno
4150 then :
4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4152 printf %s "checking for $CC option to enable C89 features... " >&6; }
4153 if test ${ac_cv_prog_cc_c89+y}
4154 then :
4155 printf %s "(cached) " >&6
4156 else $as_nop
4157 ac_cv_prog_cc_c89=no
4158 ac_save_CC=$CC
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4161 $ac_c_conftest_c89_program
4162 _ACEOF
4163 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4164 do
4165 CC="$ac_save_CC $ac_arg"
4166 if ac_fn_c_try_compile "$LINENO"
4167 then :
4168 ac_cv_prog_cc_c89=$ac_arg
4169 fi
4170 rm -f core conftest.err conftest.$ac_objext conftest.beam
4171 test "x$ac_cv_prog_cc_c89" != "xno" && break
4172 done
4173 rm -f conftest.$ac_ext
4174 CC=$ac_save_CC
4175 fi
4176
4177 if test "x$ac_cv_prog_cc_c89" = xno
4178 then :
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4180 printf "%s\n" "unsupported" >&6; }
4181 else $as_nop
4182 if test "x$ac_cv_prog_cc_c89" = x
4183 then :
4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4185 printf "%s\n" "none needed" >&6; }
4186 else $as_nop
4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4188 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4189 CC="$CC $ac_cv_prog_cc_c89"
4190 fi
4191 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4192 ac_prog_cc_stdc=c89
4193 fi
4194 fi
4195
4196 ac_ext=c
4197 ac_cpp='$CPP $CPPFLAGS'
4198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201
4202
4203 ac_ext=c
4204 ac_cpp='$CPP $CPPFLAGS'
4205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4209 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4210 if test ${am_cv_prog_cc_c_o+y}
4211 then :
4212 printf %s "(cached) " >&6
4213 else $as_nop
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216
4217 int
4218 main (void)
4219 {
4220
4221 ;
4222 return 0;
4223 }
4224 _ACEOF
4225 # Make sure it works both with $CC and with simple cc.
4226 # Following AC_PROG_CC_C_O, we do the test twice because some
4227 # compilers refuse to overwrite an existing .o file with -o,
4228 # though they will create one.
4229 am_cv_prog_cc_c_o=yes
4230 for am_i in 1 2; do
4231 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4232 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } \
4236 && test -f conftest2.$ac_objext; then
4237 : OK
4238 else
4239 am_cv_prog_cc_c_o=no
4240 break
4241 fi
4242 done
4243 rm -f core conftest*
4244 unset am_i
4245 fi
4246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4247 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4248 if test "$am_cv_prog_cc_c_o" != yes; then
4249 # Losing compiler, so override with the script.
4250 # FIXME: It is wrong to rewrite CC.
4251 # But if we don't then we get into trouble of one sort or another.
4252 # A longer-term fix would be to have automake use am__CC in this case,
4253 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4254 CC="$am_aux_dir/compile $CC"
4255 fi
4256 ac_ext=c
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261
4262
4263 depcc="$CC" am_compiler_list=
4264
4265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4266 printf %s "checking dependency style of $depcc... " >&6; }
4267 if test ${am_cv_CC_dependencies_compiler_type+y}
4268 then :
4269 printf %s "(cached) " >&6
4270 else $as_nop
4271 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4272 # We make a subdir and do the tests there. Otherwise we can end up
4273 # making bogus files that we don't know about and never remove. For
4274 # instance it was reported that on HP-UX the gcc test will end up
4275 # making a dummy file named 'D' -- because '-MD' means "put the output
4276 # in D".
4277 rm -rf conftest.dir
4278 mkdir conftest.dir
4279 # Copy depcomp to subdir because otherwise we won't find it if we're
4280 # using a relative directory.
4281 cp "$am_depcomp" conftest.dir
4282 cd conftest.dir
4283 # We will build objects and dependencies in a subdirectory because
4284 # it helps to detect inapplicable dependency modes. For instance
4285 # both Tru64's cc and ICC support -MD to output dependencies as a
4286 # side effect of compilation, but ICC will put the dependencies in
4287 # the current directory while Tru64 will put them in the object
4288 # directory.
4289 mkdir sub
4290
4291 am_cv_CC_dependencies_compiler_type=none
4292 if test "$am_compiler_list" = ""; then
4293 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4294 fi
4295 am__universal=false
4296 case " $depcc " in #(
4297 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4298 esac
4299
4300 for depmode in $am_compiler_list; do
4301 # Setup a source with many dependencies, because some compilers
4302 # like to wrap large dependency lists on column 80 (with \), and
4303 # we should not choose a depcomp mode which is confused by this.
4304 #
4305 # We need to recreate these files for each test, as the compiler may
4306 # overwrite some of them when testing with obscure command lines.
4307 # This happens at least with the AIX C compiler.
4308 : > sub/conftest.c
4309 for i in 1 2 3 4 5 6; do
4310 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4311 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4312 # Solaris 10 /bin/sh.
4313 echo '/* dummy */' > sub/conftst$i.h
4314 done
4315 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4316
4317 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4318 # mode. It turns out that the SunPro C++ compiler does not properly
4319 # handle '-M -o', and we need to detect this. Also, some Intel
4320 # versions had trouble with output in subdirs.
4321 am__obj=sub/conftest.${OBJEXT-o}
4322 am__minus_obj="-o $am__obj"
4323 case $depmode in
4324 gcc)
4325 # This depmode causes a compiler race in universal mode.
4326 test "$am__universal" = false || continue
4327 ;;
4328 nosideeffect)
4329 # After this tag, mechanisms are not by side-effect, so they'll
4330 # only be used when explicitly requested.
4331 if test "x$enable_dependency_tracking" = xyes; then
4332 continue
4333 else
4334 break
4335 fi
4336 ;;
4337 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4338 # This compiler won't grok '-c -o', but also, the minuso test has
4339 # not run yet. These depmodes are late enough in the game, and
4340 # so weak that their functioning should not be impacted.
4341 am__obj=conftest.${OBJEXT-o}
4342 am__minus_obj=
4343 ;;
4344 none) break ;;
4345 esac
4346 if depmode=$depmode \
4347 source=sub/conftest.c object=$am__obj \
4348 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4349 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4350 >/dev/null 2>conftest.err &&
4351 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4352 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4353 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4354 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4355 # icc doesn't choke on unknown options, it will just issue warnings
4356 # or remarks (even with -Werror). So we grep stderr for any message
4357 # that says an option was ignored or not supported.
4358 # When given -MP, icc 7.0 and 7.1 complain thusly:
4359 # icc: Command line warning: ignoring option '-M'; no argument required
4360 # The diagnosis changed in icc 8.0:
4361 # icc: Command line remark: option '-MP' not supported
4362 if (grep 'ignoring option' conftest.err ||
4363 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4364 am_cv_CC_dependencies_compiler_type=$depmode
4365 break
4366 fi
4367 fi
4368 done
4369
4370 cd ..
4371 rm -rf conftest.dir
4372 else
4373 am_cv_CC_dependencies_compiler_type=none
4374 fi
4375
4376 fi
4377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4378 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4379 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4380
4381 if
4382 test "x$enable_dependency_tracking" != xno \
4383 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4384 am__fastdepCC_TRUE=
4385 am__fastdepCC_FALSE='#'
4386 else
4387 am__fastdepCC_TRUE='#'
4388 am__fastdepCC_FALSE=
4389 fi
4390
4391
4392
4393
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4395 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4396 if test ${ac_cv_c_undeclared_builtin_options+y}
4397 then :
4398 printf %s "(cached) " >&6
4399 else $as_nop
4400 ac_save_CFLAGS=$CFLAGS
4401 ac_cv_c_undeclared_builtin_options='cannot detect'
4402 for ac_arg in '' -fno-builtin; do
4403 CFLAGS="$ac_save_CFLAGS $ac_arg"
4404 # This test program should *not* compile successfully.
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h. */
4407
4408 int
4409 main (void)
4410 {
4411 (void) strchr;
4412 ;
4413 return 0;
4414 }
4415 _ACEOF
4416 if ac_fn_c_try_compile "$LINENO"
4417 then :
4418
4419 else $as_nop
4420 # This test program should compile successfully.
4421 # No library function is consistently available on
4422 # freestanding implementations, so test against a dummy
4423 # declaration. Include always-available headers on the
4424 # off chance that they somehow elicit warnings.
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4427 #include <float.h>
4428 #include <limits.h>
4429 #include <stdarg.h>
4430 #include <stddef.h>
4431 extern void ac_decl (int, char *);
4432
4433 int
4434 main (void)
4435 {
4436 (void) ac_decl (0, (char *) 0);
4437 (void) ac_decl;
4438
4439 ;
4440 return 0;
4441 }
4442 _ACEOF
4443 if ac_fn_c_try_compile "$LINENO"
4444 then :
4445 if test x"$ac_arg" = x
4446 then :
4447 ac_cv_c_undeclared_builtin_options='none needed'
4448 else $as_nop
4449 ac_cv_c_undeclared_builtin_options=$ac_arg
4450 fi
4451 break
4452 fi
4453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4454 fi
4455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4456 done
4457 CFLAGS=$ac_save_CFLAGS
4458
4459 fi
4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4461 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4462 case $ac_cv_c_undeclared_builtin_options in #(
4463 'cannot detect') :
4464 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4465 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4466 as_fn_error $? "cannot make $CC report undeclared builtins
4467 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4468 'none needed') :
4469 ac_c_undeclared_builtin_options='' ;; #(
4470 *) :
4471 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4472 esac
4473
4474 ac_header= ac_cache=
4475 for ac_item in $ac_header_c_list
4476 do
4477 if test $ac_cache; then
4478 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4479 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4480 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4481 fi
4482 ac_header= ac_cache=
4483 elif test $ac_header; then
4484 ac_cache=$ac_item
4485 else
4486 ac_header=$ac_item
4487 fi
4488 done
4489
4490
4491
4492
4493
4494
4495
4496
4497 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4498 then :
4499
4500 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4501
4502 fi
4503
4504
4505
4506
4507 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4508 if test "x$ac_cv_have_decl___clang__" = xyes
4509 then :
4510 CLANGCC="yes"
4511 else $as_nop
4512 CLANGCC="no"
4513 fi
4514 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4515 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4516 then :
4517 INTELCC="yes"
4518 else $as_nop
4519 INTELCC="no"
4520 fi
4521 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4522 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4523 then :
4524 SUNCC="yes"
4525 else $as_nop
4526 SUNCC="no"
4527 fi
4528
4529
4530
4531
4532
4533
4534
4535
4536 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4537 if test -n "$ac_tool_prefix"; then
4538 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4539 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 printf %s "checking for $ac_word... " >&6; }
4542 if test ${ac_cv_path_PKG_CONFIG+y}
4543 then :
4544 printf %s "(cached) " >&6
4545 else $as_nop
4546 case $PKG_CONFIG in
4547 [\\/]* | ?:[\\/]*)
4548 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4549 ;;
4550 *)
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4553 do
4554 IFS=$as_save_IFS
4555 case $as_dir in #(((
4556 '') as_dir=./ ;;
4557 */) ;;
4558 *) as_dir=$as_dir/ ;;
4559 esac
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4562 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4564 break 2
4565 fi
4566 done
4567 done
4568 IFS=$as_save_IFS
4569
4570 ;;
4571 esac
4572 fi
4573 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4574 if test -n "$PKG_CONFIG"; then
4575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4576 printf "%s\n" "$PKG_CONFIG" >&6; }
4577 else
4578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 printf "%s\n" "no" >&6; }
4580 fi
4581
4582
4583 fi
4584 if test -z "$ac_cv_path_PKG_CONFIG"; then
4585 ac_pt_PKG_CONFIG=$PKG_CONFIG
4586 # Extract the first word of "pkg-config", so it can be a program name with args.
4587 set dummy pkg-config; ac_word=$2
4588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4589 printf %s "checking for $ac_word... " >&6; }
4590 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4591 then :
4592 printf %s "(cached) " >&6
4593 else $as_nop
4594 case $ac_pt_PKG_CONFIG in
4595 [\\/]* | ?:[\\/]*)
4596 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4597 ;;
4598 *)
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4601 do
4602 IFS=$as_save_IFS
4603 case $as_dir in #(((
4604 '') as_dir=./ ;;
4605 */) ;;
4606 *) as_dir=$as_dir/ ;;
4607 esac
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4610 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4612 break 2
4613 fi
4614 done
4615 done
4616 IFS=$as_save_IFS
4617
4618 ;;
4619 esac
4620 fi
4621 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4622 if test -n "$ac_pt_PKG_CONFIG"; then
4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4624 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4625 else
4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 printf "%s\n" "no" >&6; }
4628 fi
4629
4630 if test "x$ac_pt_PKG_CONFIG" = x; then
4631 PKG_CONFIG=""
4632 else
4633 case $cross_compiling:$ac_tool_warned in
4634 yes:)
4635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4636 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4637 ac_tool_warned=yes ;;
4638 esac
4639 PKG_CONFIG=$ac_pt_PKG_CONFIG
4640 fi
4641 else
4642 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4643 fi
4644
4645 fi
4646 if test -n "$PKG_CONFIG"; then
4647 _pkg_min_version=0.9.0
4648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4649 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4650 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4652 printf "%s\n" "yes" >&6; }
4653 else
4654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4655 printf "%s\n" "no" >&6; }
4656 PKG_CONFIG=""
4657 fi
4658 fi
4659
4660
4661 # Make sure we can run config.sub.
4662 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4663 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4664
4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4666 printf %s "checking build system type... " >&6; }
4667 if test ${ac_cv_build+y}
4668 then :
4669 printf %s "(cached) " >&6
4670 else $as_nop
4671 ac_build_alias=$build_alias
4672 test "x$ac_build_alias" = x &&
4673 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4674 test "x$ac_build_alias" = x &&
4675 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4676 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4677 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4678
4679 fi
4680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4681 printf "%s\n" "$ac_cv_build" >&6; }
4682 case $ac_cv_build in
4683 *-*-*) ;;
4684 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4685 esac
4686 build=$ac_cv_build
4687 ac_save_IFS=$IFS; IFS='-'
4688 set x $ac_cv_build
4689 shift
4690 build_cpu=$1
4691 build_vendor=$2
4692 shift; shift
4693 # Remember, the first character of IFS is used to create $*,
4694 # except with old shells:
4695 build_os=$*
4696 IFS=$ac_save_IFS
4697 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4698
4699
4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4701 printf %s "checking host system type... " >&6; }
4702 if test ${ac_cv_host+y}
4703 then :
4704 printf %s "(cached) " >&6
4705 else $as_nop
4706 if test "x$host_alias" = x; then
4707 ac_cv_host=$ac_cv_build
4708 else
4709 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4710 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4711 fi
4712
4713 fi
4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4715 printf "%s\n" "$ac_cv_host" >&6; }
4716 case $ac_cv_host in
4717 *-*-*) ;;
4718 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4719 esac
4720 host=$ac_cv_host
4721 ac_save_IFS=$IFS; IFS='-'
4722 set x $ac_cv_host
4723 shift
4724 host_cpu=$1
4725 host_vendor=$2
4726 shift; shift
4727 # Remember, the first character of IFS is used to create $*,
4728 # except with old shells:
4729 host_os=$*
4730 IFS=$ac_save_IFS
4731 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4732
4733
4734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4735 printf %s "checking for a sed that does not truncate output... " >&6; }
4736 if test ${ac_cv_path_SED+y}
4737 then :
4738 printf %s "(cached) " >&6
4739 else $as_nop
4740 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4741 for ac_i in 1 2 3 4 5 6 7; do
4742 ac_script="$ac_script$as_nl$ac_script"
4743 done
4744 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4745 { ac_script=; unset ac_script;}
4746 if test -z "$SED"; then
4747 ac_path_SED_found=false
4748 # Loop through the user's path and test for each of PROGNAME-LIST
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752 IFS=$as_save_IFS
4753 case $as_dir in #(((
4754 '') as_dir=./ ;;
4755 */) ;;
4756 *) as_dir=$as_dir/ ;;
4757 esac
4758 for ac_prog in sed gsed
4759 do
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4762 as_fn_executable_p "$ac_path_SED" || continue
4763 # Check for GNU ac_path_SED and select it if it is found.
4764 # Check for GNU $ac_path_SED
4765 case `"$ac_path_SED" --version 2>&1` in
4766 *GNU*)
4767 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4768 *)
4769 ac_count=0
4770 printf %s 0123456789 >"conftest.in"
4771 while :
4772 do
4773 cat "conftest.in" "conftest.in" >"conftest.tmp"
4774 mv "conftest.tmp" "conftest.in"
4775 cp "conftest.in" "conftest.nl"
4776 printf "%s\n" '' >> "conftest.nl"
4777 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4779 as_fn_arith $ac_count + 1 && ac_count=$as_val
4780 if test $ac_count -gt ${ac_path_SED_max-0}; then
4781 # Best one so far, save it but keep looking for a better one
4782 ac_cv_path_SED="$ac_path_SED"
4783 ac_path_SED_max=$ac_count
4784 fi
4785 # 10*(2^10) chars as input seems more than enough
4786 test $ac_count -gt 10 && break
4787 done
4788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4789 esac
4790
4791 $ac_path_SED_found && break 3
4792 done
4793 done
4794 done
4795 IFS=$as_save_IFS
4796 if test -z "$ac_cv_path_SED"; then
4797 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4798 fi
4799 else
4800 ac_cv_path_SED=$SED
4801 fi
4802
4803 fi
4804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4805 printf "%s\n" "$ac_cv_path_SED" >&6; }
4806 SED="$ac_cv_path_SED"
4807 rm -f conftest.sed
4808
4809
4810
4811
4812
4813
4814 # Check whether --enable-selective-werror was given.
4815 if test ${enable_selective_werror+y}
4816 then :
4817 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4818 else $as_nop
4819 SELECTIVE_WERROR=yes
4820 fi
4821
4822
4823
4824
4825
4826 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4827 if test "x$SUNCC" = "xyes"; then
4828 BASE_CFLAGS="-v"
4829 else
4830 BASE_CFLAGS=""
4831 fi
4832
4833 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847 xorg_testset_save_CFLAGS="$CFLAGS"
4848
4849 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4852 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4853 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4854 then :
4855 printf %s "(cached) " >&6
4856 else $as_nop
4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h. */
4859 int i;
4860 _ACEOF
4861 if ac_fn_c_try_compile "$LINENO"
4862 then :
4863 xorg_cv_cc_flag_unknown_warning_option=yes
4864 else $as_nop
4865 xorg_cv_cc_flag_unknown_warning_option=no
4866 fi
4867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4868 fi
4869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4870 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4871 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4872 CFLAGS="$xorg_testset_save_CFLAGS"
4873 fi
4874
4875 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4878 fi
4879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4881 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4882 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4883 then :
4884 printf %s "(cached) " >&6
4885 else $as_nop
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4888 int i;
4889 _ACEOF
4890 if ac_fn_c_try_compile "$LINENO"
4891 then :
4892 xorg_cv_cc_flag_unused_command_line_argument=yes
4893 else $as_nop
4894 xorg_cv_cc_flag_unused_command_line_argument=no
4895 fi
4896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4897 fi
4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4899 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4901 CFLAGS="$xorg_testset_save_CFLAGS"
4902 fi
4903
4904 found="no"
4905
4906 if test $found = "no" ; then
4907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4909 fi
4910
4911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4913 fi
4914
4915 CFLAGS="$CFLAGS -Wall"
4916
4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4918 printf %s "checking if $CC supports -Wall... " >&6; }
4919 cacheid=xorg_cv_cc_flag__Wall
4920 if eval test \${$cacheid+y}
4921 then :
4922 printf %s "(cached) " >&6
4923 else $as_nop
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4926 int i;
4927 int
4928 main (void)
4929 {
4930
4931 ;
4932 return 0;
4933 }
4934 _ACEOF
4935 if ac_fn_c_try_link "$LINENO"
4936 then :
4937 eval $cacheid=yes
4938 else $as_nop
4939 eval $cacheid=no
4940 fi
4941 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4942 conftest$ac_exeext conftest.$ac_ext
4943 fi
4944
4945
4946 CFLAGS="$xorg_testset_save_CFLAGS"
4947
4948 eval supported=\$$cacheid
4949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4950 printf "%s\n" "$supported" >&6; }
4951 if test "$supported" = "yes" ; then
4952 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4953 found="yes"
4954 fi
4955 fi
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971 xorg_testset_save_CFLAGS="$CFLAGS"
4972
4973 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4976 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4977 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4978 then :
4979 printf %s "(cached) " >&6
4980 else $as_nop
4981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h. */
4983 int i;
4984 _ACEOF
4985 if ac_fn_c_try_compile "$LINENO"
4986 then :
4987 xorg_cv_cc_flag_unknown_warning_option=yes
4988 else $as_nop
4989 xorg_cv_cc_flag_unknown_warning_option=no
4990 fi
4991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4992 fi
4993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4994 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4996 CFLAGS="$xorg_testset_save_CFLAGS"
4997 fi
4998
4999 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5002 fi
5003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5005 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5006 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5007 then :
5008 printf %s "(cached) " >&6
5009 else $as_nop
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5012 int i;
5013 _ACEOF
5014 if ac_fn_c_try_compile "$LINENO"
5015 then :
5016 xorg_cv_cc_flag_unused_command_line_argument=yes
5017 else $as_nop
5018 xorg_cv_cc_flag_unused_command_line_argument=no
5019 fi
5020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5021 fi
5022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5023 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5024 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5025 CFLAGS="$xorg_testset_save_CFLAGS"
5026 fi
5027
5028 found="no"
5029
5030 if test $found = "no" ; then
5031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5033 fi
5034
5035 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5037 fi
5038
5039 CFLAGS="$CFLAGS -Wpointer-arith"
5040
5041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5042 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5043 cacheid=xorg_cv_cc_flag__Wpointer_arith
5044 if eval test \${$cacheid+y}
5045 then :
5046 printf %s "(cached) " >&6
5047 else $as_nop
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5050 int i;
5051 int
5052 main (void)
5053 {
5054
5055 ;
5056 return 0;
5057 }
5058 _ACEOF
5059 if ac_fn_c_try_link "$LINENO"
5060 then :
5061 eval $cacheid=yes
5062 else $as_nop
5063 eval $cacheid=no
5064 fi
5065 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5066 conftest$ac_exeext conftest.$ac_ext
5067 fi
5068
5069
5070 CFLAGS="$xorg_testset_save_CFLAGS"
5071
5072 eval supported=\$$cacheid
5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5074 printf "%s\n" "$supported" >&6; }
5075 if test "$supported" = "yes" ; then
5076 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5077 found="yes"
5078 fi
5079 fi
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095 xorg_testset_save_CFLAGS="$CFLAGS"
5096
5097 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5100 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5101 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5102 then :
5103 printf %s "(cached) " >&6
5104 else $as_nop
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5107 int i;
5108 _ACEOF
5109 if ac_fn_c_try_compile "$LINENO"
5110 then :
5111 xorg_cv_cc_flag_unknown_warning_option=yes
5112 else $as_nop
5113 xorg_cv_cc_flag_unknown_warning_option=no
5114 fi
5115 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5116 fi
5117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5118 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5119 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5120 CFLAGS="$xorg_testset_save_CFLAGS"
5121 fi
5122
5123 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5126 fi
5127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5129 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5130 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5131 then :
5132 printf %s "(cached) " >&6
5133 else $as_nop
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5136 int i;
5137 _ACEOF
5138 if ac_fn_c_try_compile "$LINENO"
5139 then :
5140 xorg_cv_cc_flag_unused_command_line_argument=yes
5141 else $as_nop
5142 xorg_cv_cc_flag_unused_command_line_argument=no
5143 fi
5144 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5145 fi
5146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5147 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5149 CFLAGS="$xorg_testset_save_CFLAGS"
5150 fi
5151
5152 found="no"
5153
5154 if test $found = "no" ; then
5155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5157 fi
5158
5159 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5161 fi
5162
5163 CFLAGS="$CFLAGS -Wmissing-declarations"
5164
5165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5166 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5167 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5168 if eval test \${$cacheid+y}
5169 then :
5170 printf %s "(cached) " >&6
5171 else $as_nop
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5174 int i;
5175 int
5176 main (void)
5177 {
5178
5179 ;
5180 return 0;
5181 }
5182 _ACEOF
5183 if ac_fn_c_try_link "$LINENO"
5184 then :
5185 eval $cacheid=yes
5186 else $as_nop
5187 eval $cacheid=no
5188 fi
5189 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5190 conftest$ac_exeext conftest.$ac_ext
5191 fi
5192
5193
5194 CFLAGS="$xorg_testset_save_CFLAGS"
5195
5196 eval supported=\$$cacheid
5197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5198 printf "%s\n" "$supported" >&6; }
5199 if test "$supported" = "yes" ; then
5200 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5201 found="yes"
5202 fi
5203 fi
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219 xorg_testset_save_CFLAGS="$CFLAGS"
5220
5221 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5224 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5225 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5226 then :
5227 printf %s "(cached) " >&6
5228 else $as_nop
5229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230 /* end confdefs.h. */
5231 int i;
5232 _ACEOF
5233 if ac_fn_c_try_compile "$LINENO"
5234 then :
5235 xorg_cv_cc_flag_unknown_warning_option=yes
5236 else $as_nop
5237 xorg_cv_cc_flag_unknown_warning_option=no
5238 fi
5239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5240 fi
5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5242 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5244 CFLAGS="$xorg_testset_save_CFLAGS"
5245 fi
5246
5247 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5250 fi
5251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5253 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5254 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5255 then :
5256 printf %s "(cached) " >&6
5257 else $as_nop
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5260 int i;
5261 _ACEOF
5262 if ac_fn_c_try_compile "$LINENO"
5263 then :
5264 xorg_cv_cc_flag_unused_command_line_argument=yes
5265 else $as_nop
5266 xorg_cv_cc_flag_unused_command_line_argument=no
5267 fi
5268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5269 fi
5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5271 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5272 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5273 CFLAGS="$xorg_testset_save_CFLAGS"
5274 fi
5275
5276 found="no"
5277
5278 if test $found = "no" ; then
5279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5281 fi
5282
5283 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5285 fi
5286
5287 CFLAGS="$CFLAGS -Wformat=2"
5288
5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5290 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5291 cacheid=xorg_cv_cc_flag__Wformat_2
5292 if eval test \${$cacheid+y}
5293 then :
5294 printf %s "(cached) " >&6
5295 else $as_nop
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5298 int i;
5299 int
5300 main (void)
5301 {
5302
5303 ;
5304 return 0;
5305 }
5306 _ACEOF
5307 if ac_fn_c_try_link "$LINENO"
5308 then :
5309 eval $cacheid=yes
5310 else $as_nop
5311 eval $cacheid=no
5312 fi
5313 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5314 conftest$ac_exeext conftest.$ac_ext
5315 fi
5316
5317
5318 CFLAGS="$xorg_testset_save_CFLAGS"
5319
5320 eval supported=\$$cacheid
5321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5322 printf "%s\n" "$supported" >&6; }
5323 if test "$supported" = "yes" ; then
5324 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5325 found="yes"
5326 fi
5327 fi
5328
5329 if test $found = "no" ; then
5330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5332 fi
5333
5334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5336 fi
5337
5338 CFLAGS="$CFLAGS -Wformat"
5339
5340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5341 printf %s "checking if $CC supports -Wformat... " >&6; }
5342 cacheid=xorg_cv_cc_flag__Wformat
5343 if eval test \${$cacheid+y}
5344 then :
5345 printf %s "(cached) " >&6
5346 else $as_nop
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5349 int i;
5350 int
5351 main (void)
5352 {
5353
5354 ;
5355 return 0;
5356 }
5357 _ACEOF
5358 if ac_fn_c_try_link "$LINENO"
5359 then :
5360 eval $cacheid=yes
5361 else $as_nop
5362 eval $cacheid=no
5363 fi
5364 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5365 conftest$ac_exeext conftest.$ac_ext
5366 fi
5367
5368
5369 CFLAGS="$xorg_testset_save_CFLAGS"
5370
5371 eval supported=\$$cacheid
5372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5373 printf "%s\n" "$supported" >&6; }
5374 if test "$supported" = "yes" ; then
5375 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5376 found="yes"
5377 fi
5378 fi
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396 xorg_testset_save_CFLAGS="$CFLAGS"
5397
5398 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5401 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5402 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5403 then :
5404 printf %s "(cached) " >&6
5405 else $as_nop
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5408 int i;
5409 _ACEOF
5410 if ac_fn_c_try_compile "$LINENO"
5411 then :
5412 xorg_cv_cc_flag_unknown_warning_option=yes
5413 else $as_nop
5414 xorg_cv_cc_flag_unknown_warning_option=no
5415 fi
5416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5417 fi
5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5419 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5420 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5421 CFLAGS="$xorg_testset_save_CFLAGS"
5422 fi
5423
5424 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5427 fi
5428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5430 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5431 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5432 then :
5433 printf %s "(cached) " >&6
5434 else $as_nop
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5437 int i;
5438 _ACEOF
5439 if ac_fn_c_try_compile "$LINENO"
5440 then :
5441 xorg_cv_cc_flag_unused_command_line_argument=yes
5442 else $as_nop
5443 xorg_cv_cc_flag_unused_command_line_argument=no
5444 fi
5445 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5446 fi
5447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5448 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5450 CFLAGS="$xorg_testset_save_CFLAGS"
5451 fi
5452
5453 found="no"
5454
5455 if test $found = "no" ; then
5456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5458 fi
5459
5460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5462 fi
5463
5464 CFLAGS="$CFLAGS -Wstrict-prototypes"
5465
5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5467 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5468 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5469 if eval test \${$cacheid+y}
5470 then :
5471 printf %s "(cached) " >&6
5472 else $as_nop
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5475 int i;
5476 int
5477 main (void)
5478 {
5479
5480 ;
5481 return 0;
5482 }
5483 _ACEOF
5484 if ac_fn_c_try_link "$LINENO"
5485 then :
5486 eval $cacheid=yes
5487 else $as_nop
5488 eval $cacheid=no
5489 fi
5490 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5491 conftest$ac_exeext conftest.$ac_ext
5492 fi
5493
5494
5495 CFLAGS="$xorg_testset_save_CFLAGS"
5496
5497 eval supported=\$$cacheid
5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5499 printf "%s\n" "$supported" >&6; }
5500 if test "$supported" = "yes" ; then
5501 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5502 found="yes"
5503 fi
5504 fi
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520 xorg_testset_save_CFLAGS="$CFLAGS"
5521
5522 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5525 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5526 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5527 then :
5528 printf %s "(cached) " >&6
5529 else $as_nop
5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h. */
5532 int i;
5533 _ACEOF
5534 if ac_fn_c_try_compile "$LINENO"
5535 then :
5536 xorg_cv_cc_flag_unknown_warning_option=yes
5537 else $as_nop
5538 xorg_cv_cc_flag_unknown_warning_option=no
5539 fi
5540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5541 fi
5542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5543 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5545 CFLAGS="$xorg_testset_save_CFLAGS"
5546 fi
5547
5548 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5551 fi
5552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5554 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5555 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5556 then :
5557 printf %s "(cached) " >&6
5558 else $as_nop
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5561 int i;
5562 _ACEOF
5563 if ac_fn_c_try_compile "$LINENO"
5564 then :
5565 xorg_cv_cc_flag_unused_command_line_argument=yes
5566 else $as_nop
5567 xorg_cv_cc_flag_unused_command_line_argument=no
5568 fi
5569 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5570 fi
5571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5572 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5574 CFLAGS="$xorg_testset_save_CFLAGS"
5575 fi
5576
5577 found="no"
5578
5579 if test $found = "no" ; then
5580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5582 fi
5583
5584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5586 fi
5587
5588 CFLAGS="$CFLAGS -Wmissing-prototypes"
5589
5590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5591 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5592 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5593 if eval test \${$cacheid+y}
5594 then :
5595 printf %s "(cached) " >&6
5596 else $as_nop
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5599 int i;
5600 int
5601 main (void)
5602 {
5603
5604 ;
5605 return 0;
5606 }
5607 _ACEOF
5608 if ac_fn_c_try_link "$LINENO"
5609 then :
5610 eval $cacheid=yes
5611 else $as_nop
5612 eval $cacheid=no
5613 fi
5614 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5615 conftest$ac_exeext conftest.$ac_ext
5616 fi
5617
5618
5619 CFLAGS="$xorg_testset_save_CFLAGS"
5620
5621 eval supported=\$$cacheid
5622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5623 printf "%s\n" "$supported" >&6; }
5624 if test "$supported" = "yes" ; then
5625 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5626 found="yes"
5627 fi
5628 fi
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644 xorg_testset_save_CFLAGS="$CFLAGS"
5645
5646 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5649 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5650 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5651 then :
5652 printf %s "(cached) " >&6
5653 else $as_nop
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5656 int i;
5657 _ACEOF
5658 if ac_fn_c_try_compile "$LINENO"
5659 then :
5660 xorg_cv_cc_flag_unknown_warning_option=yes
5661 else $as_nop
5662 xorg_cv_cc_flag_unknown_warning_option=no
5663 fi
5664 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5665 fi
5666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5667 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5669 CFLAGS="$xorg_testset_save_CFLAGS"
5670 fi
5671
5672 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5675 fi
5676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5678 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5679 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5680 then :
5681 printf %s "(cached) " >&6
5682 else $as_nop
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h. */
5685 int i;
5686 _ACEOF
5687 if ac_fn_c_try_compile "$LINENO"
5688 then :
5689 xorg_cv_cc_flag_unused_command_line_argument=yes
5690 else $as_nop
5691 xorg_cv_cc_flag_unused_command_line_argument=no
5692 fi
5693 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5694 fi
5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5696 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5697 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5698 CFLAGS="$xorg_testset_save_CFLAGS"
5699 fi
5700
5701 found="no"
5702
5703 if test $found = "no" ; then
5704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5706 fi
5707
5708 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5710 fi
5711
5712 CFLAGS="$CFLAGS -Wnested-externs"
5713
5714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5715 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5716 cacheid=xorg_cv_cc_flag__Wnested_externs
5717 if eval test \${$cacheid+y}
5718 then :
5719 printf %s "(cached) " >&6
5720 else $as_nop
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5723 int i;
5724 int
5725 main (void)
5726 {
5727
5728 ;
5729 return 0;
5730 }
5731 _ACEOF
5732 if ac_fn_c_try_link "$LINENO"
5733 then :
5734 eval $cacheid=yes
5735 else $as_nop
5736 eval $cacheid=no
5737 fi
5738 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5739 conftest$ac_exeext conftest.$ac_ext
5740 fi
5741
5742
5743 CFLAGS="$xorg_testset_save_CFLAGS"
5744
5745 eval supported=\$$cacheid
5746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5747 printf "%s\n" "$supported" >&6; }
5748 if test "$supported" = "yes" ; then
5749 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5750 found="yes"
5751 fi
5752 fi
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768 xorg_testset_save_CFLAGS="$CFLAGS"
5769
5770 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5773 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5774 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5775 then :
5776 printf %s "(cached) " >&6
5777 else $as_nop
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780 int i;
5781 _ACEOF
5782 if ac_fn_c_try_compile "$LINENO"
5783 then :
5784 xorg_cv_cc_flag_unknown_warning_option=yes
5785 else $as_nop
5786 xorg_cv_cc_flag_unknown_warning_option=no
5787 fi
5788 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5789 fi
5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5791 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5793 CFLAGS="$xorg_testset_save_CFLAGS"
5794 fi
5795
5796 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5799 fi
5800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5802 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5803 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5804 then :
5805 printf %s "(cached) " >&6
5806 else $as_nop
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5809 int i;
5810 _ACEOF
5811 if ac_fn_c_try_compile "$LINENO"
5812 then :
5813 xorg_cv_cc_flag_unused_command_line_argument=yes
5814 else $as_nop
5815 xorg_cv_cc_flag_unused_command_line_argument=no
5816 fi
5817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5818 fi
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5820 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5821 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5822 CFLAGS="$xorg_testset_save_CFLAGS"
5823 fi
5824
5825 found="no"
5826
5827 if test $found = "no" ; then
5828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5830 fi
5831
5832 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5834 fi
5835
5836 CFLAGS="$CFLAGS -Wbad-function-cast"
5837
5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5839 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5840 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5841 if eval test \${$cacheid+y}
5842 then :
5843 printf %s "(cached) " >&6
5844 else $as_nop
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5847 int i;
5848 int
5849 main (void)
5850 {
5851
5852 ;
5853 return 0;
5854 }
5855 _ACEOF
5856 if ac_fn_c_try_link "$LINENO"
5857 then :
5858 eval $cacheid=yes
5859 else $as_nop
5860 eval $cacheid=no
5861 fi
5862 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5863 conftest$ac_exeext conftest.$ac_ext
5864 fi
5865
5866
5867 CFLAGS="$xorg_testset_save_CFLAGS"
5868
5869 eval supported=\$$cacheid
5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5871 printf "%s\n" "$supported" >&6; }
5872 if test "$supported" = "yes" ; then
5873 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5874 found="yes"
5875 fi
5876 fi
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892 xorg_testset_save_CFLAGS="$CFLAGS"
5893
5894 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5897 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5898 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5899 then :
5900 printf %s "(cached) " >&6
5901 else $as_nop
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5904 int i;
5905 _ACEOF
5906 if ac_fn_c_try_compile "$LINENO"
5907 then :
5908 xorg_cv_cc_flag_unknown_warning_option=yes
5909 else $as_nop
5910 xorg_cv_cc_flag_unknown_warning_option=no
5911 fi
5912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5913 fi
5914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5915 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5916 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5917 CFLAGS="$xorg_testset_save_CFLAGS"
5918 fi
5919
5920 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5923 fi
5924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5926 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5927 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5928 then :
5929 printf %s "(cached) " >&6
5930 else $as_nop
5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5933 int i;
5934 _ACEOF
5935 if ac_fn_c_try_compile "$LINENO"
5936 then :
5937 xorg_cv_cc_flag_unused_command_line_argument=yes
5938 else $as_nop
5939 xorg_cv_cc_flag_unused_command_line_argument=no
5940 fi
5941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5942 fi
5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5944 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5945 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5946 CFLAGS="$xorg_testset_save_CFLAGS"
5947 fi
5948
5949 found="no"
5950
5951 if test $found = "no" ; then
5952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5954 fi
5955
5956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5958 fi
5959
5960 CFLAGS="$CFLAGS -Wold-style-definition"
5961
5962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5963 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5964 cacheid=xorg_cv_cc_flag__Wold_style_definition
5965 if eval test \${$cacheid+y}
5966 then :
5967 printf %s "(cached) " >&6
5968 else $as_nop
5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h. */
5971 int i;
5972 int
5973 main (void)
5974 {
5975
5976 ;
5977 return 0;
5978 }
5979 _ACEOF
5980 if ac_fn_c_try_link "$LINENO"
5981 then :
5982 eval $cacheid=yes
5983 else $as_nop
5984 eval $cacheid=no
5985 fi
5986 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5987 conftest$ac_exeext conftest.$ac_ext
5988 fi
5989
5990
5991 CFLAGS="$xorg_testset_save_CFLAGS"
5992
5993 eval supported=\$$cacheid
5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5995 printf "%s\n" "$supported" >&6; }
5996 if test "$supported" = "yes" ; then
5997 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5998 found="yes"
5999 fi
6000 fi
6001
6002 if test $found = "no" ; then
6003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6005 fi
6006
6007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6009 fi
6010
6011 CFLAGS="$CFLAGS -fd"
6012
6013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6014 printf %s "checking if $CC supports -fd... " >&6; }
6015 cacheid=xorg_cv_cc_flag__fd
6016 if eval test \${$cacheid+y}
6017 then :
6018 printf %s "(cached) " >&6
6019 else $as_nop
6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6022 int i;
6023 int
6024 main (void)
6025 {
6026
6027 ;
6028 return 0;
6029 }
6030 _ACEOF
6031 if ac_fn_c_try_link "$LINENO"
6032 then :
6033 eval $cacheid=yes
6034 else $as_nop
6035 eval $cacheid=no
6036 fi
6037 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6038 conftest$ac_exeext conftest.$ac_ext
6039 fi
6040
6041
6042 CFLAGS="$xorg_testset_save_CFLAGS"
6043
6044 eval supported=\$$cacheid
6045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6046 printf "%s\n" "$supported" >&6; }
6047 if test "$supported" = "yes" ; then
6048 BASE_CFLAGS="$BASE_CFLAGS -fd"
6049 found="yes"
6050 fi
6051 fi
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067 xorg_testset_save_CFLAGS="$CFLAGS"
6068
6069 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6072 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6073 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6074 then :
6075 printf %s "(cached) " >&6
6076 else $as_nop
6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h. */
6079 int i;
6080 _ACEOF
6081 if ac_fn_c_try_compile "$LINENO"
6082 then :
6083 xorg_cv_cc_flag_unknown_warning_option=yes
6084 else $as_nop
6085 xorg_cv_cc_flag_unknown_warning_option=no
6086 fi
6087 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6088 fi
6089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6090 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6092 CFLAGS="$xorg_testset_save_CFLAGS"
6093 fi
6094
6095 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6098 fi
6099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6101 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6102 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6103 then :
6104 printf %s "(cached) " >&6
6105 else $as_nop
6106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107 /* end confdefs.h. */
6108 int i;
6109 _ACEOF
6110 if ac_fn_c_try_compile "$LINENO"
6111 then :
6112 xorg_cv_cc_flag_unused_command_line_argument=yes
6113 else $as_nop
6114 xorg_cv_cc_flag_unused_command_line_argument=no
6115 fi
6116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6117 fi
6118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6119 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6121 CFLAGS="$xorg_testset_save_CFLAGS"
6122 fi
6123
6124 found="no"
6125
6126 if test $found = "no" ; then
6127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6129 fi
6130
6131 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6133 fi
6134
6135 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6136
6137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6138 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6139 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6140 if eval test \${$cacheid+y}
6141 then :
6142 printf %s "(cached) " >&6
6143 else $as_nop
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6146 int i;
6147 int
6148 main (void)
6149 {
6150
6151 ;
6152 return 0;
6153 }
6154 _ACEOF
6155 if ac_fn_c_try_link "$LINENO"
6156 then :
6157 eval $cacheid=yes
6158 else $as_nop
6159 eval $cacheid=no
6160 fi
6161 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6162 conftest$ac_exeext conftest.$ac_ext
6163 fi
6164
6165
6166 CFLAGS="$xorg_testset_save_CFLAGS"
6167
6168 eval supported=\$$cacheid
6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6170 printf "%s\n" "$supported" >&6; }
6171 if test "$supported" = "yes" ; then
6172 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6173 found="yes"
6174 fi
6175 fi
6176
6177
6178
6179
6180
6181 # This chunk adds additional warnings that could catch undesired effects.
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195 xorg_testset_save_CFLAGS="$CFLAGS"
6196
6197 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6200 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6201 if test ${xorg_cv_cc_flag_unknown_warning_option+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 _ACEOF
6209 if ac_fn_c_try_compile "$LINENO"
6210 then :
6211 xorg_cv_cc_flag_unknown_warning_option=yes
6212 else $as_nop
6213 xorg_cv_cc_flag_unknown_warning_option=no
6214 fi
6215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6216 fi
6217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6218 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6220 CFLAGS="$xorg_testset_save_CFLAGS"
6221 fi
6222
6223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6226 fi
6227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6229 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6230 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6231 then :
6232 printf %s "(cached) " >&6
6233 else $as_nop
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6236 int i;
6237 _ACEOF
6238 if ac_fn_c_try_compile "$LINENO"
6239 then :
6240 xorg_cv_cc_flag_unused_command_line_argument=yes
6241 else $as_nop
6242 xorg_cv_cc_flag_unused_command_line_argument=no
6243 fi
6244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6245 fi
6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6247 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6249 CFLAGS="$xorg_testset_save_CFLAGS"
6250 fi
6251
6252 found="no"
6253
6254 if test $found = "no" ; then
6255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6257 fi
6258
6259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6261 fi
6262
6263 CFLAGS="$CFLAGS -Wunused"
6264
6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6266 printf %s "checking if $CC supports -Wunused... " >&6; }
6267 cacheid=xorg_cv_cc_flag__Wunused
6268 if eval test \${$cacheid+y}
6269 then :
6270 printf %s "(cached) " >&6
6271 else $as_nop
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274 int i;
6275 int
6276 main (void)
6277 {
6278
6279 ;
6280 return 0;
6281 }
6282 _ACEOF
6283 if ac_fn_c_try_link "$LINENO"
6284 then :
6285 eval $cacheid=yes
6286 else $as_nop
6287 eval $cacheid=no
6288 fi
6289 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6290 conftest$ac_exeext conftest.$ac_ext
6291 fi
6292
6293
6294 CFLAGS="$xorg_testset_save_CFLAGS"
6295
6296 eval supported=\$$cacheid
6297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6298 printf "%s\n" "$supported" >&6; }
6299 if test "$supported" = "yes" ; then
6300 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6301 found="yes"
6302 fi
6303 fi
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319 xorg_testset_save_CFLAGS="$CFLAGS"
6320
6321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6324 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6325 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6326 then :
6327 printf %s "(cached) " >&6
6328 else $as_nop
6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6331 int i;
6332 _ACEOF
6333 if ac_fn_c_try_compile "$LINENO"
6334 then :
6335 xorg_cv_cc_flag_unknown_warning_option=yes
6336 else $as_nop
6337 xorg_cv_cc_flag_unknown_warning_option=no
6338 fi
6339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6340 fi
6341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6342 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6344 CFLAGS="$xorg_testset_save_CFLAGS"
6345 fi
6346
6347 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6350 fi
6351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6353 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6354 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6355 then :
6356 printf %s "(cached) " >&6
6357 else $as_nop
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6360 int i;
6361 _ACEOF
6362 if ac_fn_c_try_compile "$LINENO"
6363 then :
6364 xorg_cv_cc_flag_unused_command_line_argument=yes
6365 else $as_nop
6366 xorg_cv_cc_flag_unused_command_line_argument=no
6367 fi
6368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6369 fi
6370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6371 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6373 CFLAGS="$xorg_testset_save_CFLAGS"
6374 fi
6375
6376 found="no"
6377
6378 if test $found = "no" ; then
6379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6381 fi
6382
6383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6385 fi
6386
6387 CFLAGS="$CFLAGS -Wuninitialized"
6388
6389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6390 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6391 cacheid=xorg_cv_cc_flag__Wuninitialized
6392 if eval test \${$cacheid+y}
6393 then :
6394 printf %s "(cached) " >&6
6395 else $as_nop
6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h. */
6398 int i;
6399 int
6400 main (void)
6401 {
6402
6403 ;
6404 return 0;
6405 }
6406 _ACEOF
6407 if ac_fn_c_try_link "$LINENO"
6408 then :
6409 eval $cacheid=yes
6410 else $as_nop
6411 eval $cacheid=no
6412 fi
6413 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6414 conftest$ac_exeext conftest.$ac_ext
6415 fi
6416
6417
6418 CFLAGS="$xorg_testset_save_CFLAGS"
6419
6420 eval supported=\$$cacheid
6421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6422 printf "%s\n" "$supported" >&6; }
6423 if test "$supported" = "yes" ; then
6424 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6425 found="yes"
6426 fi
6427 fi
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443 xorg_testset_save_CFLAGS="$CFLAGS"
6444
6445 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6448 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6449 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6450 then :
6451 printf %s "(cached) " >&6
6452 else $as_nop
6453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454 /* end confdefs.h. */
6455 int i;
6456 _ACEOF
6457 if ac_fn_c_try_compile "$LINENO"
6458 then :
6459 xorg_cv_cc_flag_unknown_warning_option=yes
6460 else $as_nop
6461 xorg_cv_cc_flag_unknown_warning_option=no
6462 fi
6463 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6464 fi
6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6466 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6468 CFLAGS="$xorg_testset_save_CFLAGS"
6469 fi
6470
6471 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6474 fi
6475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6477 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6478 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6479 then :
6480 printf %s "(cached) " >&6
6481 else $as_nop
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6484 int i;
6485 _ACEOF
6486 if ac_fn_c_try_compile "$LINENO"
6487 then :
6488 xorg_cv_cc_flag_unused_command_line_argument=yes
6489 else $as_nop
6490 xorg_cv_cc_flag_unused_command_line_argument=no
6491 fi
6492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6493 fi
6494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6495 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6497 CFLAGS="$xorg_testset_save_CFLAGS"
6498 fi
6499
6500 found="no"
6501
6502 if test $found = "no" ; then
6503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6505 fi
6506
6507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6509 fi
6510
6511 CFLAGS="$CFLAGS -Wshadow"
6512
6513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6514 printf %s "checking if $CC supports -Wshadow... " >&6; }
6515 cacheid=xorg_cv_cc_flag__Wshadow
6516 if eval test \${$cacheid+y}
6517 then :
6518 printf %s "(cached) " >&6
6519 else $as_nop
6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6522 int i;
6523 int
6524 main (void)
6525 {
6526
6527 ;
6528 return 0;
6529 }
6530 _ACEOF
6531 if ac_fn_c_try_link "$LINENO"
6532 then :
6533 eval $cacheid=yes
6534 else $as_nop
6535 eval $cacheid=no
6536 fi
6537 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6538 conftest$ac_exeext conftest.$ac_ext
6539 fi
6540
6541
6542 CFLAGS="$xorg_testset_save_CFLAGS"
6543
6544 eval supported=\$$cacheid
6545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6546 printf "%s\n" "$supported" >&6; }
6547 if test "$supported" = "yes" ; then
6548 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6549 found="yes"
6550 fi
6551 fi
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567 xorg_testset_save_CFLAGS="$CFLAGS"
6568
6569 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6572 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6573 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6574 then :
6575 printf %s "(cached) " >&6
6576 else $as_nop
6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6579 int i;
6580 _ACEOF
6581 if ac_fn_c_try_compile "$LINENO"
6582 then :
6583 xorg_cv_cc_flag_unknown_warning_option=yes
6584 else $as_nop
6585 xorg_cv_cc_flag_unknown_warning_option=no
6586 fi
6587 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6588 fi
6589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6590 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6592 CFLAGS="$xorg_testset_save_CFLAGS"
6593 fi
6594
6595 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6598 fi
6599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6601 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6602 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6603 then :
6604 printf %s "(cached) " >&6
6605 else $as_nop
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6608 int i;
6609 _ACEOF
6610 if ac_fn_c_try_compile "$LINENO"
6611 then :
6612 xorg_cv_cc_flag_unused_command_line_argument=yes
6613 else $as_nop
6614 xorg_cv_cc_flag_unused_command_line_argument=no
6615 fi
6616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6617 fi
6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6619 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6620 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6621 CFLAGS="$xorg_testset_save_CFLAGS"
6622 fi
6623
6624 found="no"
6625
6626 if test $found = "no" ; then
6627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6629 fi
6630
6631 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6633 fi
6634
6635 CFLAGS="$CFLAGS -Wmissing-noreturn"
6636
6637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6638 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6639 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6640 if eval test \${$cacheid+y}
6641 then :
6642 printf %s "(cached) " >&6
6643 else $as_nop
6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h. */
6646 int i;
6647 int
6648 main (void)
6649 {
6650
6651 ;
6652 return 0;
6653 }
6654 _ACEOF
6655 if ac_fn_c_try_link "$LINENO"
6656 then :
6657 eval $cacheid=yes
6658 else $as_nop
6659 eval $cacheid=no
6660 fi
6661 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6662 conftest$ac_exeext conftest.$ac_ext
6663 fi
6664
6665
6666 CFLAGS="$xorg_testset_save_CFLAGS"
6667
6668 eval supported=\$$cacheid
6669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6670 printf "%s\n" "$supported" >&6; }
6671 if test "$supported" = "yes" ; then
6672 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6673 found="yes"
6674 fi
6675 fi
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691 xorg_testset_save_CFLAGS="$CFLAGS"
6692
6693 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6696 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6697 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6698 then :
6699 printf %s "(cached) " >&6
6700 else $as_nop
6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702 /* end confdefs.h. */
6703 int i;
6704 _ACEOF
6705 if ac_fn_c_try_compile "$LINENO"
6706 then :
6707 xorg_cv_cc_flag_unknown_warning_option=yes
6708 else $as_nop
6709 xorg_cv_cc_flag_unknown_warning_option=no
6710 fi
6711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6712 fi
6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6714 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6715 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6716 CFLAGS="$xorg_testset_save_CFLAGS"
6717 fi
6718
6719 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6722 fi
6723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6725 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6726 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6727 then :
6728 printf %s "(cached) " >&6
6729 else $as_nop
6730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731 /* end confdefs.h. */
6732 int i;
6733 _ACEOF
6734 if ac_fn_c_try_compile "$LINENO"
6735 then :
6736 xorg_cv_cc_flag_unused_command_line_argument=yes
6737 else $as_nop
6738 xorg_cv_cc_flag_unused_command_line_argument=no
6739 fi
6740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6741 fi
6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6743 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6745 CFLAGS="$xorg_testset_save_CFLAGS"
6746 fi
6747
6748 found="no"
6749
6750 if test $found = "no" ; then
6751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6753 fi
6754
6755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6757 fi
6758
6759 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6760
6761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6762 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6763 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6764 if eval test \${$cacheid+y}
6765 then :
6766 printf %s "(cached) " >&6
6767 else $as_nop
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6770 int i;
6771 int
6772 main (void)
6773 {
6774
6775 ;
6776 return 0;
6777 }
6778 _ACEOF
6779 if ac_fn_c_try_link "$LINENO"
6780 then :
6781 eval $cacheid=yes
6782 else $as_nop
6783 eval $cacheid=no
6784 fi
6785 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6786 conftest$ac_exeext conftest.$ac_ext
6787 fi
6788
6789
6790 CFLAGS="$xorg_testset_save_CFLAGS"
6791
6792 eval supported=\$$cacheid
6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6794 printf "%s\n" "$supported" >&6; }
6795 if test "$supported" = "yes" ; then
6796 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6797 found="yes"
6798 fi
6799 fi
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815 xorg_testset_save_CFLAGS="$CFLAGS"
6816
6817 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6820 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6821 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6822 then :
6823 printf %s "(cached) " >&6
6824 else $as_nop
6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6827 int i;
6828 _ACEOF
6829 if ac_fn_c_try_compile "$LINENO"
6830 then :
6831 xorg_cv_cc_flag_unknown_warning_option=yes
6832 else $as_nop
6833 xorg_cv_cc_flag_unknown_warning_option=no
6834 fi
6835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6836 fi
6837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6838 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6840 CFLAGS="$xorg_testset_save_CFLAGS"
6841 fi
6842
6843 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6846 fi
6847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6849 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6850 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6851 then :
6852 printf %s "(cached) " >&6
6853 else $as_nop
6854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h. */
6856 int i;
6857 _ACEOF
6858 if ac_fn_c_try_compile "$LINENO"
6859 then :
6860 xorg_cv_cc_flag_unused_command_line_argument=yes
6861 else $as_nop
6862 xorg_cv_cc_flag_unused_command_line_argument=no
6863 fi
6864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6865 fi
6866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6867 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6869 CFLAGS="$xorg_testset_save_CFLAGS"
6870 fi
6871
6872 found="no"
6873
6874 if test $found = "no" ; then
6875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6877 fi
6878
6879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6881 fi
6882
6883 CFLAGS="$CFLAGS -Wredundant-decls"
6884
6885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6886 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6887 cacheid=xorg_cv_cc_flag__Wredundant_decls
6888 if eval test \${$cacheid+y}
6889 then :
6890 printf %s "(cached) " >&6
6891 else $as_nop
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6894 int i;
6895 int
6896 main (void)
6897 {
6898
6899 ;
6900 return 0;
6901 }
6902 _ACEOF
6903 if ac_fn_c_try_link "$LINENO"
6904 then :
6905 eval $cacheid=yes
6906 else $as_nop
6907 eval $cacheid=no
6908 fi
6909 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6910 conftest$ac_exeext conftest.$ac_ext
6911 fi
6912
6913
6914 CFLAGS="$xorg_testset_save_CFLAGS"
6915
6916 eval supported=\$$cacheid
6917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6918 printf "%s\n" "$supported" >&6; }
6919 if test "$supported" = "yes" ; then
6920 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6921 found="yes"
6922 fi
6923 fi
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939 xorg_testset_save_CFLAGS="$CFLAGS"
6940
6941 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6944 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6945 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6946 then :
6947 printf %s "(cached) " >&6
6948 else $as_nop
6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h. */
6951 int i;
6952 _ACEOF
6953 if ac_fn_c_try_compile "$LINENO"
6954 then :
6955 xorg_cv_cc_flag_unknown_warning_option=yes
6956 else $as_nop
6957 xorg_cv_cc_flag_unknown_warning_option=no
6958 fi
6959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6960 fi
6961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6962 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6963 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6964 CFLAGS="$xorg_testset_save_CFLAGS"
6965 fi
6966
6967 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6970 fi
6971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6973 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6974 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6975 then :
6976 printf %s "(cached) " >&6
6977 else $as_nop
6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h. */
6980 int i;
6981 _ACEOF
6982 if ac_fn_c_try_compile "$LINENO"
6983 then :
6984 xorg_cv_cc_flag_unused_command_line_argument=yes
6985 else $as_nop
6986 xorg_cv_cc_flag_unused_command_line_argument=no
6987 fi
6988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6989 fi
6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6991 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6992 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6993 CFLAGS="$xorg_testset_save_CFLAGS"
6994 fi
6995
6996 found="no"
6997
6998 if test $found = "no" ; then
6999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7001 fi
7002
7003 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7005 fi
7006
7007 CFLAGS="$CFLAGS -Wlogical-op"
7008
7009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7010 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7011 cacheid=xorg_cv_cc_flag__Wlogical_op
7012 if eval test \${$cacheid+y}
7013 then :
7014 printf %s "(cached) " >&6
7015 else $as_nop
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7018 int i;
7019 int
7020 main (void)
7021 {
7022
7023 ;
7024 return 0;
7025 }
7026 _ACEOF
7027 if ac_fn_c_try_link "$LINENO"
7028 then :
7029 eval $cacheid=yes
7030 else $as_nop
7031 eval $cacheid=no
7032 fi
7033 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7034 conftest$ac_exeext conftest.$ac_ext
7035 fi
7036
7037
7038 CFLAGS="$xorg_testset_save_CFLAGS"
7039
7040 eval supported=\$$cacheid
7041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7042 printf "%s\n" "$supported" >&6; }
7043 if test "$supported" = "yes" ; then
7044 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7045 found="yes"
7046 fi
7047 fi
7048
7049
7050
7051 # These are currently disabled because they are noisy. They will be enabled
7052 # in the future once the codebase is sufficiently modernized to silence
7053 # them. For now, I don't want them to drown out the other warnings.
7054 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7055 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7056 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7057
7058 # Turn some warnings into errors, so we don't accidently get successful builds
7059 # when there are problems that should be fixed.
7060
7061 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075 xorg_testset_save_CFLAGS="$CFLAGS"
7076
7077 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7080 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7081 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7082 then :
7083 printf %s "(cached) " >&6
7084 else $as_nop
7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7087 int i;
7088 _ACEOF
7089 if ac_fn_c_try_compile "$LINENO"
7090 then :
7091 xorg_cv_cc_flag_unknown_warning_option=yes
7092 else $as_nop
7093 xorg_cv_cc_flag_unknown_warning_option=no
7094 fi
7095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7096 fi
7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7098 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7100 CFLAGS="$xorg_testset_save_CFLAGS"
7101 fi
7102
7103 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7106 fi
7107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7109 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7110 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7111 then :
7112 printf %s "(cached) " >&6
7113 else $as_nop
7114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h. */
7116 int i;
7117 _ACEOF
7118 if ac_fn_c_try_compile "$LINENO"
7119 then :
7120 xorg_cv_cc_flag_unused_command_line_argument=yes
7121 else $as_nop
7122 xorg_cv_cc_flag_unused_command_line_argument=no
7123 fi
7124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7125 fi
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7127 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7129 CFLAGS="$xorg_testset_save_CFLAGS"
7130 fi
7131
7132 found="no"
7133
7134 if test $found = "no" ; then
7135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7137 fi
7138
7139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7141 fi
7142
7143 CFLAGS="$CFLAGS -Werror=implicit"
7144
7145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7146 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7147 cacheid=xorg_cv_cc_flag__Werror_implicit
7148 if eval test \${$cacheid+y}
7149 then :
7150 printf %s "(cached) " >&6
7151 else $as_nop
7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153 /* end confdefs.h. */
7154 int i;
7155 int
7156 main (void)
7157 {
7158
7159 ;
7160 return 0;
7161 }
7162 _ACEOF
7163 if ac_fn_c_try_link "$LINENO"
7164 then :
7165 eval $cacheid=yes
7166 else $as_nop
7167 eval $cacheid=no
7168 fi
7169 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7170 conftest$ac_exeext conftest.$ac_ext
7171 fi
7172
7173
7174 CFLAGS="$xorg_testset_save_CFLAGS"
7175
7176 eval supported=\$$cacheid
7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7178 printf "%s\n" "$supported" >&6; }
7179 if test "$supported" = "yes" ; then
7180 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7181 found="yes"
7182 fi
7183 fi
7184
7185 if test $found = "no" ; then
7186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7188 fi
7189
7190 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7192 fi
7193
7194 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7195
7196 { 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
7197 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7198 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7199 if eval test \${$cacheid+y}
7200 then :
7201 printf %s "(cached) " >&6
7202 else $as_nop
7203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204 /* end confdefs.h. */
7205 int i;
7206 int
7207 main (void)
7208 {
7209
7210 ;
7211 return 0;
7212 }
7213 _ACEOF
7214 if ac_fn_c_try_link "$LINENO"
7215 then :
7216 eval $cacheid=yes
7217 else $as_nop
7218 eval $cacheid=no
7219 fi
7220 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7221 conftest$ac_exeext conftest.$ac_ext
7222 fi
7223
7224
7225 CFLAGS="$xorg_testset_save_CFLAGS"
7226
7227 eval supported=\$$cacheid
7228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7229 printf "%s\n" "$supported" >&6; }
7230 if test "$supported" = "yes" ; then
7231 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7232 found="yes"
7233 fi
7234 fi
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250 xorg_testset_save_CFLAGS="$CFLAGS"
7251
7252 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7255 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7256 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7257 then :
7258 printf %s "(cached) " >&6
7259 else $as_nop
7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h. */
7262 int i;
7263 _ACEOF
7264 if ac_fn_c_try_compile "$LINENO"
7265 then :
7266 xorg_cv_cc_flag_unknown_warning_option=yes
7267 else $as_nop
7268 xorg_cv_cc_flag_unknown_warning_option=no
7269 fi
7270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7271 fi
7272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7273 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7275 CFLAGS="$xorg_testset_save_CFLAGS"
7276 fi
7277
7278 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7281 fi
7282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7284 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7285 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7286 then :
7287 printf %s "(cached) " >&6
7288 else $as_nop
7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290 /* end confdefs.h. */
7291 int i;
7292 _ACEOF
7293 if ac_fn_c_try_compile "$LINENO"
7294 then :
7295 xorg_cv_cc_flag_unused_command_line_argument=yes
7296 else $as_nop
7297 xorg_cv_cc_flag_unused_command_line_argument=no
7298 fi
7299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7300 fi
7301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7302 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7304 CFLAGS="$xorg_testset_save_CFLAGS"
7305 fi
7306
7307 found="no"
7308
7309 if test $found = "no" ; then
7310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7312 fi
7313
7314 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7316 fi
7317
7318 CFLAGS="$CFLAGS -Werror=nonnull"
7319
7320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7321 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7322 cacheid=xorg_cv_cc_flag__Werror_nonnull
7323 if eval test \${$cacheid+y}
7324 then :
7325 printf %s "(cached) " >&6
7326 else $as_nop
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7329 int i;
7330 int
7331 main (void)
7332 {
7333
7334 ;
7335 return 0;
7336 }
7337 _ACEOF
7338 if ac_fn_c_try_link "$LINENO"
7339 then :
7340 eval $cacheid=yes
7341 else $as_nop
7342 eval $cacheid=no
7343 fi
7344 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7345 conftest$ac_exeext conftest.$ac_ext
7346 fi
7347
7348
7349 CFLAGS="$xorg_testset_save_CFLAGS"
7350
7351 eval supported=\$$cacheid
7352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7353 printf "%s\n" "$supported" >&6; }
7354 if test "$supported" = "yes" ; then
7355 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7356 found="yes"
7357 fi
7358 fi
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374 xorg_testset_save_CFLAGS="$CFLAGS"
7375
7376 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7379 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7380 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7381 then :
7382 printf %s "(cached) " >&6
7383 else $as_nop
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7386 int i;
7387 _ACEOF
7388 if ac_fn_c_try_compile "$LINENO"
7389 then :
7390 xorg_cv_cc_flag_unknown_warning_option=yes
7391 else $as_nop
7392 xorg_cv_cc_flag_unknown_warning_option=no
7393 fi
7394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7395 fi
7396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7397 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7398 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7399 CFLAGS="$xorg_testset_save_CFLAGS"
7400 fi
7401
7402 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7405 fi
7406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7408 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7409 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7410 then :
7411 printf %s "(cached) " >&6
7412 else $as_nop
7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h. */
7415 int i;
7416 _ACEOF
7417 if ac_fn_c_try_compile "$LINENO"
7418 then :
7419 xorg_cv_cc_flag_unused_command_line_argument=yes
7420 else $as_nop
7421 xorg_cv_cc_flag_unused_command_line_argument=no
7422 fi
7423 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7424 fi
7425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7426 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7427 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7428 CFLAGS="$xorg_testset_save_CFLAGS"
7429 fi
7430
7431 found="no"
7432
7433 if test $found = "no" ; then
7434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7436 fi
7437
7438 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7440 fi
7441
7442 CFLAGS="$CFLAGS -Werror=init-self"
7443
7444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7445 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7446 cacheid=xorg_cv_cc_flag__Werror_init_self
7447 if eval test \${$cacheid+y}
7448 then :
7449 printf %s "(cached) " >&6
7450 else $as_nop
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h. */
7453 int i;
7454 int
7455 main (void)
7456 {
7457
7458 ;
7459 return 0;
7460 }
7461 _ACEOF
7462 if ac_fn_c_try_link "$LINENO"
7463 then :
7464 eval $cacheid=yes
7465 else $as_nop
7466 eval $cacheid=no
7467 fi
7468 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7469 conftest$ac_exeext conftest.$ac_ext
7470 fi
7471
7472
7473 CFLAGS="$xorg_testset_save_CFLAGS"
7474
7475 eval supported=\$$cacheid
7476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7477 printf "%s\n" "$supported" >&6; }
7478 if test "$supported" = "yes" ; then
7479 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7480 found="yes"
7481 fi
7482 fi
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498 xorg_testset_save_CFLAGS="$CFLAGS"
7499
7500 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7503 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7504 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7505 then :
7506 printf %s "(cached) " >&6
7507 else $as_nop
7508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509 /* end confdefs.h. */
7510 int i;
7511 _ACEOF
7512 if ac_fn_c_try_compile "$LINENO"
7513 then :
7514 xorg_cv_cc_flag_unknown_warning_option=yes
7515 else $as_nop
7516 xorg_cv_cc_flag_unknown_warning_option=no
7517 fi
7518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7519 fi
7520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7521 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7523 CFLAGS="$xorg_testset_save_CFLAGS"
7524 fi
7525
7526 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7529 fi
7530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7532 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7533 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7534 then :
7535 printf %s "(cached) " >&6
7536 else $as_nop
7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h. */
7539 int i;
7540 _ACEOF
7541 if ac_fn_c_try_compile "$LINENO"
7542 then :
7543 xorg_cv_cc_flag_unused_command_line_argument=yes
7544 else $as_nop
7545 xorg_cv_cc_flag_unused_command_line_argument=no
7546 fi
7547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7548 fi
7549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7550 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7551 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7552 CFLAGS="$xorg_testset_save_CFLAGS"
7553 fi
7554
7555 found="no"
7556
7557 if test $found = "no" ; then
7558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7560 fi
7561
7562 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7564 fi
7565
7566 CFLAGS="$CFLAGS -Werror=main"
7567
7568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7569 printf %s "checking if $CC supports -Werror=main... " >&6; }
7570 cacheid=xorg_cv_cc_flag__Werror_main
7571 if eval test \${$cacheid+y}
7572 then :
7573 printf %s "(cached) " >&6
7574 else $as_nop
7575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576 /* end confdefs.h. */
7577 int i;
7578 int
7579 main (void)
7580 {
7581
7582 ;
7583 return 0;
7584 }
7585 _ACEOF
7586 if ac_fn_c_try_link "$LINENO"
7587 then :
7588 eval $cacheid=yes
7589 else $as_nop
7590 eval $cacheid=no
7591 fi
7592 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7593 conftest$ac_exeext conftest.$ac_ext
7594 fi
7595
7596
7597 CFLAGS="$xorg_testset_save_CFLAGS"
7598
7599 eval supported=\$$cacheid
7600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7601 printf "%s\n" "$supported" >&6; }
7602 if test "$supported" = "yes" ; then
7603 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7604 found="yes"
7605 fi
7606 fi
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622 xorg_testset_save_CFLAGS="$CFLAGS"
7623
7624 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7627 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7628 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7629 then :
7630 printf %s "(cached) " >&6
7631 else $as_nop
7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633 /* end confdefs.h. */
7634 int i;
7635 _ACEOF
7636 if ac_fn_c_try_compile "$LINENO"
7637 then :
7638 xorg_cv_cc_flag_unknown_warning_option=yes
7639 else $as_nop
7640 xorg_cv_cc_flag_unknown_warning_option=no
7641 fi
7642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7643 fi
7644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7645 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7646 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7647 CFLAGS="$xorg_testset_save_CFLAGS"
7648 fi
7649
7650 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7653 fi
7654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7656 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7657 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7658 then :
7659 printf %s "(cached) " >&6
7660 else $as_nop
7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h. */
7663 int i;
7664 _ACEOF
7665 if ac_fn_c_try_compile "$LINENO"
7666 then :
7667 xorg_cv_cc_flag_unused_command_line_argument=yes
7668 else $as_nop
7669 xorg_cv_cc_flag_unused_command_line_argument=no
7670 fi
7671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7672 fi
7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7674 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7676 CFLAGS="$xorg_testset_save_CFLAGS"
7677 fi
7678
7679 found="no"
7680
7681 if test $found = "no" ; then
7682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7684 fi
7685
7686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7688 fi
7689
7690 CFLAGS="$CFLAGS -Werror=missing-braces"
7691
7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7693 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7694 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7695 if eval test \${$cacheid+y}
7696 then :
7697 printf %s "(cached) " >&6
7698 else $as_nop
7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h. */
7701 int i;
7702 int
7703 main (void)
7704 {
7705
7706 ;
7707 return 0;
7708 }
7709 _ACEOF
7710 if ac_fn_c_try_link "$LINENO"
7711 then :
7712 eval $cacheid=yes
7713 else $as_nop
7714 eval $cacheid=no
7715 fi
7716 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7717 conftest$ac_exeext conftest.$ac_ext
7718 fi
7719
7720
7721 CFLAGS="$xorg_testset_save_CFLAGS"
7722
7723 eval supported=\$$cacheid
7724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7725 printf "%s\n" "$supported" >&6; }
7726 if test "$supported" = "yes" ; then
7727 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7728 found="yes"
7729 fi
7730 fi
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746 xorg_testset_save_CFLAGS="$CFLAGS"
7747
7748 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7751 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7752 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7753 then :
7754 printf %s "(cached) " >&6
7755 else $as_nop
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h. */
7758 int i;
7759 _ACEOF
7760 if ac_fn_c_try_compile "$LINENO"
7761 then :
7762 xorg_cv_cc_flag_unknown_warning_option=yes
7763 else $as_nop
7764 xorg_cv_cc_flag_unknown_warning_option=no
7765 fi
7766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7767 fi
7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7769 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7770 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7771 CFLAGS="$xorg_testset_save_CFLAGS"
7772 fi
7773
7774 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7777 fi
7778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7780 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7781 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7782 then :
7783 printf %s "(cached) " >&6
7784 else $as_nop
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7787 int i;
7788 _ACEOF
7789 if ac_fn_c_try_compile "$LINENO"
7790 then :
7791 xorg_cv_cc_flag_unused_command_line_argument=yes
7792 else $as_nop
7793 xorg_cv_cc_flag_unused_command_line_argument=no
7794 fi
7795 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7796 fi
7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7798 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7799 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7800 CFLAGS="$xorg_testset_save_CFLAGS"
7801 fi
7802
7803 found="no"
7804
7805 if test $found = "no" ; then
7806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7808 fi
7809
7810 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7812 fi
7813
7814 CFLAGS="$CFLAGS -Werror=sequence-point"
7815
7816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7817 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7818 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7819 if eval test \${$cacheid+y}
7820 then :
7821 printf %s "(cached) " >&6
7822 else $as_nop
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7825 int i;
7826 int
7827 main (void)
7828 {
7829
7830 ;
7831 return 0;
7832 }
7833 _ACEOF
7834 if ac_fn_c_try_link "$LINENO"
7835 then :
7836 eval $cacheid=yes
7837 else $as_nop
7838 eval $cacheid=no
7839 fi
7840 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7841 conftest$ac_exeext conftest.$ac_ext
7842 fi
7843
7844
7845 CFLAGS="$xorg_testset_save_CFLAGS"
7846
7847 eval supported=\$$cacheid
7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7849 printf "%s\n" "$supported" >&6; }
7850 if test "$supported" = "yes" ; then
7851 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7852 found="yes"
7853 fi
7854 fi
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870 xorg_testset_save_CFLAGS="$CFLAGS"
7871
7872 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7875 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7876 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7877 then :
7878 printf %s "(cached) " >&6
7879 else $as_nop
7880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7881 /* end confdefs.h. */
7882 int i;
7883 _ACEOF
7884 if ac_fn_c_try_compile "$LINENO"
7885 then :
7886 xorg_cv_cc_flag_unknown_warning_option=yes
7887 else $as_nop
7888 xorg_cv_cc_flag_unknown_warning_option=no
7889 fi
7890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7891 fi
7892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7893 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7894 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7895 CFLAGS="$xorg_testset_save_CFLAGS"
7896 fi
7897
7898 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7901 fi
7902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7904 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7905 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7906 then :
7907 printf %s "(cached) " >&6
7908 else $as_nop
7909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7910 /* end confdefs.h. */
7911 int i;
7912 _ACEOF
7913 if ac_fn_c_try_compile "$LINENO"
7914 then :
7915 xorg_cv_cc_flag_unused_command_line_argument=yes
7916 else $as_nop
7917 xorg_cv_cc_flag_unused_command_line_argument=no
7918 fi
7919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7920 fi
7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7922 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7924 CFLAGS="$xorg_testset_save_CFLAGS"
7925 fi
7926
7927 found="no"
7928
7929 if test $found = "no" ; then
7930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7932 fi
7933
7934 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7936 fi
7937
7938 CFLAGS="$CFLAGS -Werror=return-type"
7939
7940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7941 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7942 cacheid=xorg_cv_cc_flag__Werror_return_type
7943 if eval test \${$cacheid+y}
7944 then :
7945 printf %s "(cached) " >&6
7946 else $as_nop
7947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948 /* end confdefs.h. */
7949 int i;
7950 int
7951 main (void)
7952 {
7953
7954 ;
7955 return 0;
7956 }
7957 _ACEOF
7958 if ac_fn_c_try_link "$LINENO"
7959 then :
7960 eval $cacheid=yes
7961 else $as_nop
7962 eval $cacheid=no
7963 fi
7964 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7965 conftest$ac_exeext conftest.$ac_ext
7966 fi
7967
7968
7969 CFLAGS="$xorg_testset_save_CFLAGS"
7970
7971 eval supported=\$$cacheid
7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7973 printf "%s\n" "$supported" >&6; }
7974 if test "$supported" = "yes" ; then
7975 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7976 found="yes"
7977 fi
7978 fi
7979
7980 if test $found = "no" ; then
7981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7983 fi
7984
7985 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7987 fi
7988
7989 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7990
7991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7992 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7993 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7994 if eval test \${$cacheid+y}
7995 then :
7996 printf %s "(cached) " >&6
7997 else $as_nop
7998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999 /* end confdefs.h. */
8000 int i;
8001 int
8002 main (void)
8003 {
8004
8005 ;
8006 return 0;
8007 }
8008 _ACEOF
8009 if ac_fn_c_try_link "$LINENO"
8010 then :
8011 eval $cacheid=yes
8012 else $as_nop
8013 eval $cacheid=no
8014 fi
8015 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8016 conftest$ac_exeext conftest.$ac_ext
8017 fi
8018
8019
8020 CFLAGS="$xorg_testset_save_CFLAGS"
8021
8022 eval supported=\$$cacheid
8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8024 printf "%s\n" "$supported" >&6; }
8025 if test "$supported" = "yes" ; then
8026 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8027 found="yes"
8028 fi
8029 fi
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045 xorg_testset_save_CFLAGS="$CFLAGS"
8046
8047 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8050 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8051 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8052 then :
8053 printf %s "(cached) " >&6
8054 else $as_nop
8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h. */
8057 int i;
8058 _ACEOF
8059 if ac_fn_c_try_compile "$LINENO"
8060 then :
8061 xorg_cv_cc_flag_unknown_warning_option=yes
8062 else $as_nop
8063 xorg_cv_cc_flag_unknown_warning_option=no
8064 fi
8065 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8066 fi
8067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8068 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8070 CFLAGS="$xorg_testset_save_CFLAGS"
8071 fi
8072
8073 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8076 fi
8077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8079 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8080 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8081 then :
8082 printf %s "(cached) " >&6
8083 else $as_nop
8084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085 /* end confdefs.h. */
8086 int i;
8087 _ACEOF
8088 if ac_fn_c_try_compile "$LINENO"
8089 then :
8090 xorg_cv_cc_flag_unused_command_line_argument=yes
8091 else $as_nop
8092 xorg_cv_cc_flag_unused_command_line_argument=no
8093 fi
8094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8095 fi
8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8097 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8099 CFLAGS="$xorg_testset_save_CFLAGS"
8100 fi
8101
8102 found="no"
8103
8104 if test $found = "no" ; then
8105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8107 fi
8108
8109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8111 fi
8112
8113 CFLAGS="$CFLAGS -Werror=trigraphs"
8114
8115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8116 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8117 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8118 if eval test \${$cacheid+y}
8119 then :
8120 printf %s "(cached) " >&6
8121 else $as_nop
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8124 int i;
8125 int
8126 main (void)
8127 {
8128
8129 ;
8130 return 0;
8131 }
8132 _ACEOF
8133 if ac_fn_c_try_link "$LINENO"
8134 then :
8135 eval $cacheid=yes
8136 else $as_nop
8137 eval $cacheid=no
8138 fi
8139 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8140 conftest$ac_exeext conftest.$ac_ext
8141 fi
8142
8143
8144 CFLAGS="$xorg_testset_save_CFLAGS"
8145
8146 eval supported=\$$cacheid
8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8148 printf "%s\n" "$supported" >&6; }
8149 if test "$supported" = "yes" ; then
8150 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8151 found="yes"
8152 fi
8153 fi
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169 xorg_testset_save_CFLAGS="$CFLAGS"
8170
8171 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8174 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8175 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8176 then :
8177 printf %s "(cached) " >&6
8178 else $as_nop
8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8181 int i;
8182 _ACEOF
8183 if ac_fn_c_try_compile "$LINENO"
8184 then :
8185 xorg_cv_cc_flag_unknown_warning_option=yes
8186 else $as_nop
8187 xorg_cv_cc_flag_unknown_warning_option=no
8188 fi
8189 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8190 fi
8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8192 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8194 CFLAGS="$xorg_testset_save_CFLAGS"
8195 fi
8196
8197 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8200 fi
8201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8203 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8204 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8205 then :
8206 printf %s "(cached) " >&6
8207 else $as_nop
8208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8209 /* end confdefs.h. */
8210 int i;
8211 _ACEOF
8212 if ac_fn_c_try_compile "$LINENO"
8213 then :
8214 xorg_cv_cc_flag_unused_command_line_argument=yes
8215 else $as_nop
8216 xorg_cv_cc_flag_unused_command_line_argument=no
8217 fi
8218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8219 fi
8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8221 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8223 CFLAGS="$xorg_testset_save_CFLAGS"
8224 fi
8225
8226 found="no"
8227
8228 if test $found = "no" ; then
8229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8231 fi
8232
8233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8235 fi
8236
8237 CFLAGS="$CFLAGS -Werror=array-bounds"
8238
8239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8240 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8241 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8242 if eval test \${$cacheid+y}
8243 then :
8244 printf %s "(cached) " >&6
8245 else $as_nop
8246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247 /* end confdefs.h. */
8248 int i;
8249 int
8250 main (void)
8251 {
8252
8253 ;
8254 return 0;
8255 }
8256 _ACEOF
8257 if ac_fn_c_try_link "$LINENO"
8258 then :
8259 eval $cacheid=yes
8260 else $as_nop
8261 eval $cacheid=no
8262 fi
8263 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8264 conftest$ac_exeext conftest.$ac_ext
8265 fi
8266
8267
8268 CFLAGS="$xorg_testset_save_CFLAGS"
8269
8270 eval supported=\$$cacheid
8271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8272 printf "%s\n" "$supported" >&6; }
8273 if test "$supported" = "yes" ; then
8274 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8275 found="yes"
8276 fi
8277 fi
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293 xorg_testset_save_CFLAGS="$CFLAGS"
8294
8295 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8298 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8299 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8300 then :
8301 printf %s "(cached) " >&6
8302 else $as_nop
8303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h. */
8305 int i;
8306 _ACEOF
8307 if ac_fn_c_try_compile "$LINENO"
8308 then :
8309 xorg_cv_cc_flag_unknown_warning_option=yes
8310 else $as_nop
8311 xorg_cv_cc_flag_unknown_warning_option=no
8312 fi
8313 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8314 fi
8315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8316 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8317 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8318 CFLAGS="$xorg_testset_save_CFLAGS"
8319 fi
8320
8321 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8324 fi
8325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8327 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8328 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8329 then :
8330 printf %s "(cached) " >&6
8331 else $as_nop
8332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8333 /* end confdefs.h. */
8334 int i;
8335 _ACEOF
8336 if ac_fn_c_try_compile "$LINENO"
8337 then :
8338 xorg_cv_cc_flag_unused_command_line_argument=yes
8339 else $as_nop
8340 xorg_cv_cc_flag_unused_command_line_argument=no
8341 fi
8342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8343 fi
8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8345 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8346 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8347 CFLAGS="$xorg_testset_save_CFLAGS"
8348 fi
8349
8350 found="no"
8351
8352 if test $found = "no" ; then
8353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8355 fi
8356
8357 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8359 fi
8360
8361 CFLAGS="$CFLAGS -Werror=write-strings"
8362
8363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8364 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8365 cacheid=xorg_cv_cc_flag__Werror_write_strings
8366 if eval test \${$cacheid+y}
8367 then :
8368 printf %s "(cached) " >&6
8369 else $as_nop
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8372 int i;
8373 int
8374 main (void)
8375 {
8376
8377 ;
8378 return 0;
8379 }
8380 _ACEOF
8381 if ac_fn_c_try_link "$LINENO"
8382 then :
8383 eval $cacheid=yes
8384 else $as_nop
8385 eval $cacheid=no
8386 fi
8387 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8388 conftest$ac_exeext conftest.$ac_ext
8389 fi
8390
8391
8392 CFLAGS="$xorg_testset_save_CFLAGS"
8393
8394 eval supported=\$$cacheid
8395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8396 printf "%s\n" "$supported" >&6; }
8397 if test "$supported" = "yes" ; then
8398 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8399 found="yes"
8400 fi
8401 fi
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417 xorg_testset_save_CFLAGS="$CFLAGS"
8418
8419 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8422 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8423 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8424 then :
8425 printf %s "(cached) " >&6
8426 else $as_nop
8427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428 /* end confdefs.h. */
8429 int i;
8430 _ACEOF
8431 if ac_fn_c_try_compile "$LINENO"
8432 then :
8433 xorg_cv_cc_flag_unknown_warning_option=yes
8434 else $as_nop
8435 xorg_cv_cc_flag_unknown_warning_option=no
8436 fi
8437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8438 fi
8439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8440 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8441 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8442 CFLAGS="$xorg_testset_save_CFLAGS"
8443 fi
8444
8445 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8448 fi
8449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8451 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8452 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8453 then :
8454 printf %s "(cached) " >&6
8455 else $as_nop
8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h. */
8458 int i;
8459 _ACEOF
8460 if ac_fn_c_try_compile "$LINENO"
8461 then :
8462 xorg_cv_cc_flag_unused_command_line_argument=yes
8463 else $as_nop
8464 xorg_cv_cc_flag_unused_command_line_argument=no
8465 fi
8466 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8467 fi
8468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8469 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8470 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8471 CFLAGS="$xorg_testset_save_CFLAGS"
8472 fi
8473
8474 found="no"
8475
8476 if test $found = "no" ; then
8477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8479 fi
8480
8481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8483 fi
8484
8485 CFLAGS="$CFLAGS -Werror=address"
8486
8487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8488 printf %s "checking if $CC supports -Werror=address... " >&6; }
8489 cacheid=xorg_cv_cc_flag__Werror_address
8490 if eval test \${$cacheid+y}
8491 then :
8492 printf %s "(cached) " >&6
8493 else $as_nop
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8496 int i;
8497 int
8498 main (void)
8499 {
8500
8501 ;
8502 return 0;
8503 }
8504 _ACEOF
8505 if ac_fn_c_try_link "$LINENO"
8506 then :
8507 eval $cacheid=yes
8508 else $as_nop
8509 eval $cacheid=no
8510 fi
8511 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8512 conftest$ac_exeext conftest.$ac_ext
8513 fi
8514
8515
8516 CFLAGS="$xorg_testset_save_CFLAGS"
8517
8518 eval supported=\$$cacheid
8519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8520 printf "%s\n" "$supported" >&6; }
8521 if test "$supported" = "yes" ; then
8522 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8523 found="yes"
8524 fi
8525 fi
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541 xorg_testset_save_CFLAGS="$CFLAGS"
8542
8543 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8546 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8547 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8548 then :
8549 printf %s "(cached) " >&6
8550 else $as_nop
8551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552 /* end confdefs.h. */
8553 int i;
8554 _ACEOF
8555 if ac_fn_c_try_compile "$LINENO"
8556 then :
8557 xorg_cv_cc_flag_unknown_warning_option=yes
8558 else $as_nop
8559 xorg_cv_cc_flag_unknown_warning_option=no
8560 fi
8561 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8562 fi
8563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8564 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8566 CFLAGS="$xorg_testset_save_CFLAGS"
8567 fi
8568
8569 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8572 fi
8573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8575 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8576 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8577 then :
8578 printf %s "(cached) " >&6
8579 else $as_nop
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8582 int i;
8583 _ACEOF
8584 if ac_fn_c_try_compile "$LINENO"
8585 then :
8586 xorg_cv_cc_flag_unused_command_line_argument=yes
8587 else $as_nop
8588 xorg_cv_cc_flag_unused_command_line_argument=no
8589 fi
8590 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8591 fi
8592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8593 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8594 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8595 CFLAGS="$xorg_testset_save_CFLAGS"
8596 fi
8597
8598 found="no"
8599
8600 if test $found = "no" ; then
8601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8603 fi
8604
8605 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8607 fi
8608
8609 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8610
8611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8612 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8613 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8614 if eval test \${$cacheid+y}
8615 then :
8616 printf %s "(cached) " >&6
8617 else $as_nop
8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h. */
8620 int i;
8621 int
8622 main (void)
8623 {
8624
8625 ;
8626 return 0;
8627 }
8628 _ACEOF
8629 if ac_fn_c_try_link "$LINENO"
8630 then :
8631 eval $cacheid=yes
8632 else $as_nop
8633 eval $cacheid=no
8634 fi
8635 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8636 conftest$ac_exeext conftest.$ac_ext
8637 fi
8638
8639
8640 CFLAGS="$xorg_testset_save_CFLAGS"
8641
8642 eval supported=\$$cacheid
8643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8644 printf "%s\n" "$supported" >&6; }
8645 if test "$supported" = "yes" ; then
8646 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8647 found="yes"
8648 fi
8649 fi
8650
8651 if test $found = "no" ; then
8652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8654 fi
8655
8656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8658 fi
8659
8660 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8661
8662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8663 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8664 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8665 if eval test \${$cacheid+y}
8666 then :
8667 printf %s "(cached) " >&6
8668 else $as_nop
8669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8670 /* end confdefs.h. */
8671 int i;
8672 int
8673 main (void)
8674 {
8675
8676 ;
8677 return 0;
8678 }
8679 _ACEOF
8680 if ac_fn_c_try_link "$LINENO"
8681 then :
8682 eval $cacheid=yes
8683 else $as_nop
8684 eval $cacheid=no
8685 fi
8686 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8687 conftest$ac_exeext conftest.$ac_ext
8688 fi
8689
8690
8691 CFLAGS="$xorg_testset_save_CFLAGS"
8692
8693 eval supported=\$$cacheid
8694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8695 printf "%s\n" "$supported" >&6; }
8696 if test "$supported" = "yes" ; then
8697 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8698 found="yes"
8699 fi
8700 fi
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716 xorg_testset_save_CFLAGS="$CFLAGS"
8717
8718 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8721 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8722 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8723 then :
8724 printf %s "(cached) " >&6
8725 else $as_nop
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8728 int i;
8729 _ACEOF
8730 if ac_fn_c_try_compile "$LINENO"
8731 then :
8732 xorg_cv_cc_flag_unknown_warning_option=yes
8733 else $as_nop
8734 xorg_cv_cc_flag_unknown_warning_option=no
8735 fi
8736 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8737 fi
8738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8739 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8741 CFLAGS="$xorg_testset_save_CFLAGS"
8742 fi
8743
8744 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8747 fi
8748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8750 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8751 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8752 then :
8753 printf %s "(cached) " >&6
8754 else $as_nop
8755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756 /* end confdefs.h. */
8757 int i;
8758 _ACEOF
8759 if ac_fn_c_try_compile "$LINENO"
8760 then :
8761 xorg_cv_cc_flag_unused_command_line_argument=yes
8762 else $as_nop
8763 xorg_cv_cc_flag_unused_command_line_argument=no
8764 fi
8765 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8766 fi
8767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8768 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8770 CFLAGS="$xorg_testset_save_CFLAGS"
8771 fi
8772
8773 found="no"
8774
8775 if test $found = "no" ; then
8776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8778 fi
8779
8780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8782 fi
8783
8784 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8785
8786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8787 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8788 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8789 if eval test \${$cacheid+y}
8790 then :
8791 printf %s "(cached) " >&6
8792 else $as_nop
8793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794 /* end confdefs.h. */
8795 int i;
8796 int
8797 main (void)
8798 {
8799
8800 ;
8801 return 0;
8802 }
8803 _ACEOF
8804 if ac_fn_c_try_link "$LINENO"
8805 then :
8806 eval $cacheid=yes
8807 else $as_nop
8808 eval $cacheid=no
8809 fi
8810 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8811 conftest$ac_exeext conftest.$ac_ext
8812 fi
8813
8814
8815 CFLAGS="$xorg_testset_save_CFLAGS"
8816
8817 eval supported=\$$cacheid
8818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8819 printf "%s\n" "$supported" >&6; }
8820 if test "$supported" = "yes" ; then
8821 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8822 found="yes"
8823 fi
8824 fi
8825
8826 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8827 else
8828 { 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
8829 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;}
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843 xorg_testset_save_CFLAGS="$CFLAGS"
8844
8845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8848 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8849 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8850 then :
8851 printf %s "(cached) " >&6
8852 else $as_nop
8853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8854 /* end confdefs.h. */
8855 int i;
8856 _ACEOF
8857 if ac_fn_c_try_compile "$LINENO"
8858 then :
8859 xorg_cv_cc_flag_unknown_warning_option=yes
8860 else $as_nop
8861 xorg_cv_cc_flag_unknown_warning_option=no
8862 fi
8863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8864 fi
8865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8866 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8867 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8868 CFLAGS="$xorg_testset_save_CFLAGS"
8869 fi
8870
8871 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8874 fi
8875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8877 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8878 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8879 then :
8880 printf %s "(cached) " >&6
8881 else $as_nop
8882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883 /* end confdefs.h. */
8884 int i;
8885 _ACEOF
8886 if ac_fn_c_try_compile "$LINENO"
8887 then :
8888 xorg_cv_cc_flag_unused_command_line_argument=yes
8889 else $as_nop
8890 xorg_cv_cc_flag_unused_command_line_argument=no
8891 fi
8892 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8893 fi
8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8895 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8897 CFLAGS="$xorg_testset_save_CFLAGS"
8898 fi
8899
8900 found="no"
8901
8902 if test $found = "no" ; then
8903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8905 fi
8906
8907 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8909 fi
8910
8911 CFLAGS="$CFLAGS -Wimplicit"
8912
8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8914 printf %s "checking if $CC supports -Wimplicit... " >&6; }
8915 cacheid=xorg_cv_cc_flag__Wimplicit
8916 if eval test \${$cacheid+y}
8917 then :
8918 printf %s "(cached) " >&6
8919 else $as_nop
8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921 /* end confdefs.h. */
8922 int i;
8923 int
8924 main (void)
8925 {
8926
8927 ;
8928 return 0;
8929 }
8930 _ACEOF
8931 if ac_fn_c_try_link "$LINENO"
8932 then :
8933 eval $cacheid=yes
8934 else $as_nop
8935 eval $cacheid=no
8936 fi
8937 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8938 conftest$ac_exeext conftest.$ac_ext
8939 fi
8940
8941
8942 CFLAGS="$xorg_testset_save_CFLAGS"
8943
8944 eval supported=\$$cacheid
8945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8946 printf "%s\n" "$supported" >&6; }
8947 if test "$supported" = "yes" ; then
8948 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8949 found="yes"
8950 fi
8951 fi
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967 xorg_testset_save_CFLAGS="$CFLAGS"
8968
8969 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8972 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8973 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8974 then :
8975 printf %s "(cached) " >&6
8976 else $as_nop
8977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978 /* end confdefs.h. */
8979 int i;
8980 _ACEOF
8981 if ac_fn_c_try_compile "$LINENO"
8982 then :
8983 xorg_cv_cc_flag_unknown_warning_option=yes
8984 else $as_nop
8985 xorg_cv_cc_flag_unknown_warning_option=no
8986 fi
8987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8988 fi
8989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8990 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8991 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8992 CFLAGS="$xorg_testset_save_CFLAGS"
8993 fi
8994
8995 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8998 fi
8999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9001 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9002 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9003 then :
9004 printf %s "(cached) " >&6
9005 else $as_nop
9006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007 /* end confdefs.h. */
9008 int i;
9009 _ACEOF
9010 if ac_fn_c_try_compile "$LINENO"
9011 then :
9012 xorg_cv_cc_flag_unused_command_line_argument=yes
9013 else $as_nop
9014 xorg_cv_cc_flag_unused_command_line_argument=no
9015 fi
9016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9017 fi
9018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9019 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9021 CFLAGS="$xorg_testset_save_CFLAGS"
9022 fi
9023
9024 found="no"
9025
9026 if test $found = "no" ; then
9027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9029 fi
9030
9031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9033 fi
9034
9035 CFLAGS="$CFLAGS -Wnonnull"
9036
9037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9038 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9039 cacheid=xorg_cv_cc_flag__Wnonnull
9040 if eval test \${$cacheid+y}
9041 then :
9042 printf %s "(cached) " >&6
9043 else $as_nop
9044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9045 /* end confdefs.h. */
9046 int i;
9047 int
9048 main (void)
9049 {
9050
9051 ;
9052 return 0;
9053 }
9054 _ACEOF
9055 if ac_fn_c_try_link "$LINENO"
9056 then :
9057 eval $cacheid=yes
9058 else $as_nop
9059 eval $cacheid=no
9060 fi
9061 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9062 conftest$ac_exeext conftest.$ac_ext
9063 fi
9064
9065
9066 CFLAGS="$xorg_testset_save_CFLAGS"
9067
9068 eval supported=\$$cacheid
9069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9070 printf "%s\n" "$supported" >&6; }
9071 if test "$supported" = "yes" ; then
9072 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9073 found="yes"
9074 fi
9075 fi
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091 xorg_testset_save_CFLAGS="$CFLAGS"
9092
9093 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9096 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9097 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9098 then :
9099 printf %s "(cached) " >&6
9100 else $as_nop
9101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102 /* end confdefs.h. */
9103 int i;
9104 _ACEOF
9105 if ac_fn_c_try_compile "$LINENO"
9106 then :
9107 xorg_cv_cc_flag_unknown_warning_option=yes
9108 else $as_nop
9109 xorg_cv_cc_flag_unknown_warning_option=no
9110 fi
9111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9112 fi
9113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9114 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9116 CFLAGS="$xorg_testset_save_CFLAGS"
9117 fi
9118
9119 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9122 fi
9123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9125 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9126 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9127 then :
9128 printf %s "(cached) " >&6
9129 else $as_nop
9130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131 /* end confdefs.h. */
9132 int i;
9133 _ACEOF
9134 if ac_fn_c_try_compile "$LINENO"
9135 then :
9136 xorg_cv_cc_flag_unused_command_line_argument=yes
9137 else $as_nop
9138 xorg_cv_cc_flag_unused_command_line_argument=no
9139 fi
9140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9141 fi
9142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9143 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9145 CFLAGS="$xorg_testset_save_CFLAGS"
9146 fi
9147
9148 found="no"
9149
9150 if test $found = "no" ; then
9151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9153 fi
9154
9155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9157 fi
9158
9159 CFLAGS="$CFLAGS -Winit-self"
9160
9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9162 printf %s "checking if $CC supports -Winit-self... " >&6; }
9163 cacheid=xorg_cv_cc_flag__Winit_self
9164 if eval test \${$cacheid+y}
9165 then :
9166 printf %s "(cached) " >&6
9167 else $as_nop
9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169 /* end confdefs.h. */
9170 int i;
9171 int
9172 main (void)
9173 {
9174
9175 ;
9176 return 0;
9177 }
9178 _ACEOF
9179 if ac_fn_c_try_link "$LINENO"
9180 then :
9181 eval $cacheid=yes
9182 else $as_nop
9183 eval $cacheid=no
9184 fi
9185 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9186 conftest$ac_exeext conftest.$ac_ext
9187 fi
9188
9189
9190 CFLAGS="$xorg_testset_save_CFLAGS"
9191
9192 eval supported=\$$cacheid
9193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9194 printf "%s\n" "$supported" >&6; }
9195 if test "$supported" = "yes" ; then
9196 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9197 found="yes"
9198 fi
9199 fi
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215 xorg_testset_save_CFLAGS="$CFLAGS"
9216
9217 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9220 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9221 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9222 then :
9223 printf %s "(cached) " >&6
9224 else $as_nop
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9227 int i;
9228 _ACEOF
9229 if ac_fn_c_try_compile "$LINENO"
9230 then :
9231 xorg_cv_cc_flag_unknown_warning_option=yes
9232 else $as_nop
9233 xorg_cv_cc_flag_unknown_warning_option=no
9234 fi
9235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9236 fi
9237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9238 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9240 CFLAGS="$xorg_testset_save_CFLAGS"
9241 fi
9242
9243 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9246 fi
9247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9249 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9250 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9251 then :
9252 printf %s "(cached) " >&6
9253 else $as_nop
9254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9255 /* end confdefs.h. */
9256 int i;
9257 _ACEOF
9258 if ac_fn_c_try_compile "$LINENO"
9259 then :
9260 xorg_cv_cc_flag_unused_command_line_argument=yes
9261 else $as_nop
9262 xorg_cv_cc_flag_unused_command_line_argument=no
9263 fi
9264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9265 fi
9266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9267 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9269 CFLAGS="$xorg_testset_save_CFLAGS"
9270 fi
9271
9272 found="no"
9273
9274 if test $found = "no" ; then
9275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9277 fi
9278
9279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9281 fi
9282
9283 CFLAGS="$CFLAGS -Wmain"
9284
9285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9286 printf %s "checking if $CC supports -Wmain... " >&6; }
9287 cacheid=xorg_cv_cc_flag__Wmain
9288 if eval test \${$cacheid+y}
9289 then :
9290 printf %s "(cached) " >&6
9291 else $as_nop
9292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293 /* end confdefs.h. */
9294 int i;
9295 int
9296 main (void)
9297 {
9298
9299 ;
9300 return 0;
9301 }
9302 _ACEOF
9303 if ac_fn_c_try_link "$LINENO"
9304 then :
9305 eval $cacheid=yes
9306 else $as_nop
9307 eval $cacheid=no
9308 fi
9309 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9310 conftest$ac_exeext conftest.$ac_ext
9311 fi
9312
9313
9314 CFLAGS="$xorg_testset_save_CFLAGS"
9315
9316 eval supported=\$$cacheid
9317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9318 printf "%s\n" "$supported" >&6; }
9319 if test "$supported" = "yes" ; then
9320 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9321 found="yes"
9322 fi
9323 fi
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339 xorg_testset_save_CFLAGS="$CFLAGS"
9340
9341 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9344 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9345 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9346 then :
9347 printf %s "(cached) " >&6
9348 else $as_nop
9349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350 /* end confdefs.h. */
9351 int i;
9352 _ACEOF
9353 if ac_fn_c_try_compile "$LINENO"
9354 then :
9355 xorg_cv_cc_flag_unknown_warning_option=yes
9356 else $as_nop
9357 xorg_cv_cc_flag_unknown_warning_option=no
9358 fi
9359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9360 fi
9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9362 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9363 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9364 CFLAGS="$xorg_testset_save_CFLAGS"
9365 fi
9366
9367 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9370 fi
9371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9373 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9374 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9375 then :
9376 printf %s "(cached) " >&6
9377 else $as_nop
9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h. */
9380 int i;
9381 _ACEOF
9382 if ac_fn_c_try_compile "$LINENO"
9383 then :
9384 xorg_cv_cc_flag_unused_command_line_argument=yes
9385 else $as_nop
9386 xorg_cv_cc_flag_unused_command_line_argument=no
9387 fi
9388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9389 fi
9390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9391 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9393 CFLAGS="$xorg_testset_save_CFLAGS"
9394 fi
9395
9396 found="no"
9397
9398 if test $found = "no" ; then
9399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9401 fi
9402
9403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9405 fi
9406
9407 CFLAGS="$CFLAGS -Wmissing-braces"
9408
9409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9410 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9411 cacheid=xorg_cv_cc_flag__Wmissing_braces
9412 if eval test \${$cacheid+y}
9413 then :
9414 printf %s "(cached) " >&6
9415 else $as_nop
9416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9417 /* end confdefs.h. */
9418 int i;
9419 int
9420 main (void)
9421 {
9422
9423 ;
9424 return 0;
9425 }
9426 _ACEOF
9427 if ac_fn_c_try_link "$LINENO"
9428 then :
9429 eval $cacheid=yes
9430 else $as_nop
9431 eval $cacheid=no
9432 fi
9433 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9434 conftest$ac_exeext conftest.$ac_ext
9435 fi
9436
9437
9438 CFLAGS="$xorg_testset_save_CFLAGS"
9439
9440 eval supported=\$$cacheid
9441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9442 printf "%s\n" "$supported" >&6; }
9443 if test "$supported" = "yes" ; then
9444 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9445 found="yes"
9446 fi
9447 fi
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463 xorg_testset_save_CFLAGS="$CFLAGS"
9464
9465 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9468 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9469 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9470 then :
9471 printf %s "(cached) " >&6
9472 else $as_nop
9473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9474 /* end confdefs.h. */
9475 int i;
9476 _ACEOF
9477 if ac_fn_c_try_compile "$LINENO"
9478 then :
9479 xorg_cv_cc_flag_unknown_warning_option=yes
9480 else $as_nop
9481 xorg_cv_cc_flag_unknown_warning_option=no
9482 fi
9483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9484 fi
9485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9486 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9488 CFLAGS="$xorg_testset_save_CFLAGS"
9489 fi
9490
9491 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9494 fi
9495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9497 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9498 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9499 then :
9500 printf %s "(cached) " >&6
9501 else $as_nop
9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9504 int i;
9505 _ACEOF
9506 if ac_fn_c_try_compile "$LINENO"
9507 then :
9508 xorg_cv_cc_flag_unused_command_line_argument=yes
9509 else $as_nop
9510 xorg_cv_cc_flag_unused_command_line_argument=no
9511 fi
9512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9513 fi
9514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9515 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9517 CFLAGS="$xorg_testset_save_CFLAGS"
9518 fi
9519
9520 found="no"
9521
9522 if test $found = "no" ; then
9523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9525 fi
9526
9527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9529 fi
9530
9531 CFLAGS="$CFLAGS -Wsequence-point"
9532
9533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9534 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9535 cacheid=xorg_cv_cc_flag__Wsequence_point
9536 if eval test \${$cacheid+y}
9537 then :
9538 printf %s "(cached) " >&6
9539 else $as_nop
9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541 /* end confdefs.h. */
9542 int i;
9543 int
9544 main (void)
9545 {
9546
9547 ;
9548 return 0;
9549 }
9550 _ACEOF
9551 if ac_fn_c_try_link "$LINENO"
9552 then :
9553 eval $cacheid=yes
9554 else $as_nop
9555 eval $cacheid=no
9556 fi
9557 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9558 conftest$ac_exeext conftest.$ac_ext
9559 fi
9560
9561
9562 CFLAGS="$xorg_testset_save_CFLAGS"
9563
9564 eval supported=\$$cacheid
9565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9566 printf "%s\n" "$supported" >&6; }
9567 if test "$supported" = "yes" ; then
9568 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9569 found="yes"
9570 fi
9571 fi
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587 xorg_testset_save_CFLAGS="$CFLAGS"
9588
9589 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9592 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9593 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9594 then :
9595 printf %s "(cached) " >&6
9596 else $as_nop
9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9599 int i;
9600 _ACEOF
9601 if ac_fn_c_try_compile "$LINENO"
9602 then :
9603 xorg_cv_cc_flag_unknown_warning_option=yes
9604 else $as_nop
9605 xorg_cv_cc_flag_unknown_warning_option=no
9606 fi
9607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9608 fi
9609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9610 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9612 CFLAGS="$xorg_testset_save_CFLAGS"
9613 fi
9614
9615 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9618 fi
9619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9621 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9622 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9623 then :
9624 printf %s "(cached) " >&6
9625 else $as_nop
9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9628 int i;
9629 _ACEOF
9630 if ac_fn_c_try_compile "$LINENO"
9631 then :
9632 xorg_cv_cc_flag_unused_command_line_argument=yes
9633 else $as_nop
9634 xorg_cv_cc_flag_unused_command_line_argument=no
9635 fi
9636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9637 fi
9638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9639 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9641 CFLAGS="$xorg_testset_save_CFLAGS"
9642 fi
9643
9644 found="no"
9645
9646 if test $found = "no" ; then
9647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9649 fi
9650
9651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9653 fi
9654
9655 CFLAGS="$CFLAGS -Wreturn-type"
9656
9657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9658 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9659 cacheid=xorg_cv_cc_flag__Wreturn_type
9660 if eval test \${$cacheid+y}
9661 then :
9662 printf %s "(cached) " >&6
9663 else $as_nop
9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665 /* end confdefs.h. */
9666 int i;
9667 int
9668 main (void)
9669 {
9670
9671 ;
9672 return 0;
9673 }
9674 _ACEOF
9675 if ac_fn_c_try_link "$LINENO"
9676 then :
9677 eval $cacheid=yes
9678 else $as_nop
9679 eval $cacheid=no
9680 fi
9681 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9682 conftest$ac_exeext conftest.$ac_ext
9683 fi
9684
9685
9686 CFLAGS="$xorg_testset_save_CFLAGS"
9687
9688 eval supported=\$$cacheid
9689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9690 printf "%s\n" "$supported" >&6; }
9691 if test "$supported" = "yes" ; then
9692 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9693 found="yes"
9694 fi
9695 fi
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711 xorg_testset_save_CFLAGS="$CFLAGS"
9712
9713 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9716 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9717 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9718 then :
9719 printf %s "(cached) " >&6
9720 else $as_nop
9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h. */
9723 int i;
9724 _ACEOF
9725 if ac_fn_c_try_compile "$LINENO"
9726 then :
9727 xorg_cv_cc_flag_unknown_warning_option=yes
9728 else $as_nop
9729 xorg_cv_cc_flag_unknown_warning_option=no
9730 fi
9731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9732 fi
9733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9734 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9736 CFLAGS="$xorg_testset_save_CFLAGS"
9737 fi
9738
9739 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9742 fi
9743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9745 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9746 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9747 then :
9748 printf %s "(cached) " >&6
9749 else $as_nop
9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9752 int i;
9753 _ACEOF
9754 if ac_fn_c_try_compile "$LINENO"
9755 then :
9756 xorg_cv_cc_flag_unused_command_line_argument=yes
9757 else $as_nop
9758 xorg_cv_cc_flag_unused_command_line_argument=no
9759 fi
9760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9761 fi
9762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9763 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9765 CFLAGS="$xorg_testset_save_CFLAGS"
9766 fi
9767
9768 found="no"
9769
9770 if test $found = "no" ; then
9771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9773 fi
9774
9775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9777 fi
9778
9779 CFLAGS="$CFLAGS -Wtrigraphs"
9780
9781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9782 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9783 cacheid=xorg_cv_cc_flag__Wtrigraphs
9784 if eval test \${$cacheid+y}
9785 then :
9786 printf %s "(cached) " >&6
9787 else $as_nop
9788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9789 /* end confdefs.h. */
9790 int i;
9791 int
9792 main (void)
9793 {
9794
9795 ;
9796 return 0;
9797 }
9798 _ACEOF
9799 if ac_fn_c_try_link "$LINENO"
9800 then :
9801 eval $cacheid=yes
9802 else $as_nop
9803 eval $cacheid=no
9804 fi
9805 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9806 conftest$ac_exeext conftest.$ac_ext
9807 fi
9808
9809
9810 CFLAGS="$xorg_testset_save_CFLAGS"
9811
9812 eval supported=\$$cacheid
9813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9814 printf "%s\n" "$supported" >&6; }
9815 if test "$supported" = "yes" ; then
9816 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9817 found="yes"
9818 fi
9819 fi
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835 xorg_testset_save_CFLAGS="$CFLAGS"
9836
9837 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9840 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9841 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9842 then :
9843 printf %s "(cached) " >&6
9844 else $as_nop
9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846 /* end confdefs.h. */
9847 int i;
9848 _ACEOF
9849 if ac_fn_c_try_compile "$LINENO"
9850 then :
9851 xorg_cv_cc_flag_unknown_warning_option=yes
9852 else $as_nop
9853 xorg_cv_cc_flag_unknown_warning_option=no
9854 fi
9855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9856 fi
9857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9858 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9860 CFLAGS="$xorg_testset_save_CFLAGS"
9861 fi
9862
9863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9866 fi
9867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9869 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9870 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9871 then :
9872 printf %s "(cached) " >&6
9873 else $as_nop
9874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875 /* end confdefs.h. */
9876 int i;
9877 _ACEOF
9878 if ac_fn_c_try_compile "$LINENO"
9879 then :
9880 xorg_cv_cc_flag_unused_command_line_argument=yes
9881 else $as_nop
9882 xorg_cv_cc_flag_unused_command_line_argument=no
9883 fi
9884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9885 fi
9886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9887 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9889 CFLAGS="$xorg_testset_save_CFLAGS"
9890 fi
9891
9892 found="no"
9893
9894 if test $found = "no" ; then
9895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9897 fi
9898
9899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9901 fi
9902
9903 CFLAGS="$CFLAGS -Warray-bounds"
9904
9905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9906 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9907 cacheid=xorg_cv_cc_flag__Warray_bounds
9908 if eval test \${$cacheid+y}
9909 then :
9910 printf %s "(cached) " >&6
9911 else $as_nop
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9914 int i;
9915 int
9916 main (void)
9917 {
9918
9919 ;
9920 return 0;
9921 }
9922 _ACEOF
9923 if ac_fn_c_try_link "$LINENO"
9924 then :
9925 eval $cacheid=yes
9926 else $as_nop
9927 eval $cacheid=no
9928 fi
9929 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9930 conftest$ac_exeext conftest.$ac_ext
9931 fi
9932
9933
9934 CFLAGS="$xorg_testset_save_CFLAGS"
9935
9936 eval supported=\$$cacheid
9937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9938 printf "%s\n" "$supported" >&6; }
9939 if test "$supported" = "yes" ; then
9940 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9941 found="yes"
9942 fi
9943 fi
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959 xorg_testset_save_CFLAGS="$CFLAGS"
9960
9961 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9964 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9965 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9966 then :
9967 printf %s "(cached) " >&6
9968 else $as_nop
9969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9970 /* end confdefs.h. */
9971 int i;
9972 _ACEOF
9973 if ac_fn_c_try_compile "$LINENO"
9974 then :
9975 xorg_cv_cc_flag_unknown_warning_option=yes
9976 else $as_nop
9977 xorg_cv_cc_flag_unknown_warning_option=no
9978 fi
9979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9980 fi
9981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9982 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9984 CFLAGS="$xorg_testset_save_CFLAGS"
9985 fi
9986
9987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9990 fi
9991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9993 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9994 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9995 then :
9996 printf %s "(cached) " >&6
9997 else $as_nop
9998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9999 /* end confdefs.h. */
10000 int i;
10001 _ACEOF
10002 if ac_fn_c_try_compile "$LINENO"
10003 then :
10004 xorg_cv_cc_flag_unused_command_line_argument=yes
10005 else $as_nop
10006 xorg_cv_cc_flag_unused_command_line_argument=no
10007 fi
10008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10009 fi
10010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10011 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10013 CFLAGS="$xorg_testset_save_CFLAGS"
10014 fi
10015
10016 found="no"
10017
10018 if test $found = "no" ; then
10019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10021 fi
10022
10023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10025 fi
10026
10027 CFLAGS="$CFLAGS -Wwrite-strings"
10028
10029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10030 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10031 cacheid=xorg_cv_cc_flag__Wwrite_strings
10032 if eval test \${$cacheid+y}
10033 then :
10034 printf %s "(cached) " >&6
10035 else $as_nop
10036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037 /* end confdefs.h. */
10038 int i;
10039 int
10040 main (void)
10041 {
10042
10043 ;
10044 return 0;
10045 }
10046 _ACEOF
10047 if ac_fn_c_try_link "$LINENO"
10048 then :
10049 eval $cacheid=yes
10050 else $as_nop
10051 eval $cacheid=no
10052 fi
10053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10054 conftest$ac_exeext conftest.$ac_ext
10055 fi
10056
10057
10058 CFLAGS="$xorg_testset_save_CFLAGS"
10059
10060 eval supported=\$$cacheid
10061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10062 printf "%s\n" "$supported" >&6; }
10063 if test "$supported" = "yes" ; then
10064 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10065 found="yes"
10066 fi
10067 fi
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083 xorg_testset_save_CFLAGS="$CFLAGS"
10084
10085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10088 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10089 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10090 then :
10091 printf %s "(cached) " >&6
10092 else $as_nop
10093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094 /* end confdefs.h. */
10095 int i;
10096 _ACEOF
10097 if ac_fn_c_try_compile "$LINENO"
10098 then :
10099 xorg_cv_cc_flag_unknown_warning_option=yes
10100 else $as_nop
10101 xorg_cv_cc_flag_unknown_warning_option=no
10102 fi
10103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10104 fi
10105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10106 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10108 CFLAGS="$xorg_testset_save_CFLAGS"
10109 fi
10110
10111 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10114 fi
10115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10117 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10118 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10119 then :
10120 printf %s "(cached) " >&6
10121 else $as_nop
10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h. */
10124 int i;
10125 _ACEOF
10126 if ac_fn_c_try_compile "$LINENO"
10127 then :
10128 xorg_cv_cc_flag_unused_command_line_argument=yes
10129 else $as_nop
10130 xorg_cv_cc_flag_unused_command_line_argument=no
10131 fi
10132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10133 fi
10134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10135 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10137 CFLAGS="$xorg_testset_save_CFLAGS"
10138 fi
10139
10140 found="no"
10141
10142 if test $found = "no" ; then
10143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10145 fi
10146
10147 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10149 fi
10150
10151 CFLAGS="$CFLAGS -Waddress"
10152
10153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10154 printf %s "checking if $CC supports -Waddress... " >&6; }
10155 cacheid=xorg_cv_cc_flag__Waddress
10156 if eval test \${$cacheid+y}
10157 then :
10158 printf %s "(cached) " >&6
10159 else $as_nop
10160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10161 /* end confdefs.h. */
10162 int i;
10163 int
10164 main (void)
10165 {
10166
10167 ;
10168 return 0;
10169 }
10170 _ACEOF
10171 if ac_fn_c_try_link "$LINENO"
10172 then :
10173 eval $cacheid=yes
10174 else $as_nop
10175 eval $cacheid=no
10176 fi
10177 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10178 conftest$ac_exeext conftest.$ac_ext
10179 fi
10180
10181
10182 CFLAGS="$xorg_testset_save_CFLAGS"
10183
10184 eval supported=\$$cacheid
10185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10186 printf "%s\n" "$supported" >&6; }
10187 if test "$supported" = "yes" ; then
10188 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10189 found="yes"
10190 fi
10191 fi
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207 xorg_testset_save_CFLAGS="$CFLAGS"
10208
10209 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10212 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10213 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10214 then :
10215 printf %s "(cached) " >&6
10216 else $as_nop
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10219 int i;
10220 _ACEOF
10221 if ac_fn_c_try_compile "$LINENO"
10222 then :
10223 xorg_cv_cc_flag_unknown_warning_option=yes
10224 else $as_nop
10225 xorg_cv_cc_flag_unknown_warning_option=no
10226 fi
10227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10228 fi
10229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10230 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10232 CFLAGS="$xorg_testset_save_CFLAGS"
10233 fi
10234
10235 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10238 fi
10239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10241 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10242 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10243 then :
10244 printf %s "(cached) " >&6
10245 else $as_nop
10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247 /* end confdefs.h. */
10248 int i;
10249 _ACEOF
10250 if ac_fn_c_try_compile "$LINENO"
10251 then :
10252 xorg_cv_cc_flag_unused_command_line_argument=yes
10253 else $as_nop
10254 xorg_cv_cc_flag_unused_command_line_argument=no
10255 fi
10256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10257 fi
10258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10259 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10261 CFLAGS="$xorg_testset_save_CFLAGS"
10262 fi
10263
10264 found="no"
10265
10266 if test $found = "no" ; then
10267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10269 fi
10270
10271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10273 fi
10274
10275 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10276
10277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10278 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10279 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10280 if eval test \${$cacheid+y}
10281 then :
10282 printf %s "(cached) " >&6
10283 else $as_nop
10284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h. */
10286 int i;
10287 int
10288 main (void)
10289 {
10290
10291 ;
10292 return 0;
10293 }
10294 _ACEOF
10295 if ac_fn_c_try_link "$LINENO"
10296 then :
10297 eval $cacheid=yes
10298 else $as_nop
10299 eval $cacheid=no
10300 fi
10301 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10302 conftest$ac_exeext conftest.$ac_ext
10303 fi
10304
10305
10306 CFLAGS="$xorg_testset_save_CFLAGS"
10307
10308 eval supported=\$$cacheid
10309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10310 printf "%s\n" "$supported" >&6; }
10311 if test "$supported" = "yes" ; then
10312 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10313 found="yes"
10314 fi
10315 fi
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331 xorg_testset_save_CFLAGS="$CFLAGS"
10332
10333 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10336 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10337 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10338 then :
10339 printf %s "(cached) " >&6
10340 else $as_nop
10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h. */
10343 int i;
10344 _ACEOF
10345 if ac_fn_c_try_compile "$LINENO"
10346 then :
10347 xorg_cv_cc_flag_unknown_warning_option=yes
10348 else $as_nop
10349 xorg_cv_cc_flag_unknown_warning_option=no
10350 fi
10351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10352 fi
10353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10354 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10356 CFLAGS="$xorg_testset_save_CFLAGS"
10357 fi
10358
10359 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10362 fi
10363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10365 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10366 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10367 then :
10368 printf %s "(cached) " >&6
10369 else $as_nop
10370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10371 /* end confdefs.h. */
10372 int i;
10373 _ACEOF
10374 if ac_fn_c_try_compile "$LINENO"
10375 then :
10376 xorg_cv_cc_flag_unused_command_line_argument=yes
10377 else $as_nop
10378 xorg_cv_cc_flag_unused_command_line_argument=no
10379 fi
10380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10381 fi
10382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10383 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10385 CFLAGS="$xorg_testset_save_CFLAGS"
10386 fi
10387
10388 found="no"
10389
10390 if test $found = "no" ; then
10391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10393 fi
10394
10395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10397 fi
10398
10399 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10400
10401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10402 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10403 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10404 if eval test \${$cacheid+y}
10405 then :
10406 printf %s "(cached) " >&6
10407 else $as_nop
10408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h. */
10410 int i;
10411 int
10412 main (void)
10413 {
10414
10415 ;
10416 return 0;
10417 }
10418 _ACEOF
10419 if ac_fn_c_try_link "$LINENO"
10420 then :
10421 eval $cacheid=yes
10422 else $as_nop
10423 eval $cacheid=no
10424 fi
10425 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10426 conftest$ac_exeext conftest.$ac_ext
10427 fi
10428
10429
10430 CFLAGS="$xorg_testset_save_CFLAGS"
10431
10432 eval supported=\$$cacheid
10433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10434 printf "%s\n" "$supported" >&6; }
10435 if test "$supported" = "yes" ; then
10436 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10437 found="yes"
10438 fi
10439 fi
10440
10441
10442 fi
10443
10444
10445
10446
10447
10448
10449
10450 CWARNFLAGS="$BASE_CFLAGS"
10451 if test "x$GCC" = xyes ; then
10452 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10453 fi
10454
10455
10456
10457
10458
10459
10460
10461
10462 # Check whether --enable-strict-compilation was given.
10463 if test ${enable_strict_compilation+y}
10464 then :
10465 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10466 else $as_nop
10467 STRICT_COMPILE=no
10468 fi
10469
10470
10471
10472
10473
10474
10475 STRICT_CFLAGS=""
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489 xorg_testset_save_CFLAGS="$CFLAGS"
10490
10491 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10494 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10495 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10496 then :
10497 printf %s "(cached) " >&6
10498 else $as_nop
10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h. */
10501 int i;
10502 _ACEOF
10503 if ac_fn_c_try_compile "$LINENO"
10504 then :
10505 xorg_cv_cc_flag_unknown_warning_option=yes
10506 else $as_nop
10507 xorg_cv_cc_flag_unknown_warning_option=no
10508 fi
10509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10510 fi
10511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10512 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10514 CFLAGS="$xorg_testset_save_CFLAGS"
10515 fi
10516
10517 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10520 fi
10521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10523 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10524 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10525 then :
10526 printf %s "(cached) " >&6
10527 else $as_nop
10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10530 int i;
10531 _ACEOF
10532 if ac_fn_c_try_compile "$LINENO"
10533 then :
10534 xorg_cv_cc_flag_unused_command_line_argument=yes
10535 else $as_nop
10536 xorg_cv_cc_flag_unused_command_line_argument=no
10537 fi
10538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10539 fi
10540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10541 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10543 CFLAGS="$xorg_testset_save_CFLAGS"
10544 fi
10545
10546 found="no"
10547
10548 if test $found = "no" ; then
10549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10551 fi
10552
10553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10555 fi
10556
10557 CFLAGS="$CFLAGS -pedantic"
10558
10559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10560 printf %s "checking if $CC supports -pedantic... " >&6; }
10561 cacheid=xorg_cv_cc_flag__pedantic
10562 if eval test \${$cacheid+y}
10563 then :
10564 printf %s "(cached) " >&6
10565 else $as_nop
10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h. */
10568 int i;
10569 int
10570 main (void)
10571 {
10572
10573 ;
10574 return 0;
10575 }
10576 _ACEOF
10577 if ac_fn_c_try_link "$LINENO"
10578 then :
10579 eval $cacheid=yes
10580 else $as_nop
10581 eval $cacheid=no
10582 fi
10583 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10584 conftest$ac_exeext conftest.$ac_ext
10585 fi
10586
10587
10588 CFLAGS="$xorg_testset_save_CFLAGS"
10589
10590 eval supported=\$$cacheid
10591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10592 printf "%s\n" "$supported" >&6; }
10593 if test "$supported" = "yes" ; then
10594 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10595 found="yes"
10596 fi
10597 fi
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613 xorg_testset_save_CFLAGS="$CFLAGS"
10614
10615 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10618 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10619 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10620 then :
10621 printf %s "(cached) " >&6
10622 else $as_nop
10623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10624 /* end confdefs.h. */
10625 int i;
10626 _ACEOF
10627 if ac_fn_c_try_compile "$LINENO"
10628 then :
10629 xorg_cv_cc_flag_unknown_warning_option=yes
10630 else $as_nop
10631 xorg_cv_cc_flag_unknown_warning_option=no
10632 fi
10633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10634 fi
10635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10636 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10638 CFLAGS="$xorg_testset_save_CFLAGS"
10639 fi
10640
10641 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10644 fi
10645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10647 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10648 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10649 then :
10650 printf %s "(cached) " >&6
10651 else $as_nop
10652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10653 /* end confdefs.h. */
10654 int i;
10655 _ACEOF
10656 if ac_fn_c_try_compile "$LINENO"
10657 then :
10658 xorg_cv_cc_flag_unused_command_line_argument=yes
10659 else $as_nop
10660 xorg_cv_cc_flag_unused_command_line_argument=no
10661 fi
10662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10663 fi
10664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10665 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10667 CFLAGS="$xorg_testset_save_CFLAGS"
10668 fi
10669
10670 found="no"
10671
10672 if test $found = "no" ; then
10673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10675 fi
10676
10677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10679 fi
10680
10681 CFLAGS="$CFLAGS -Werror"
10682
10683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10684 printf %s "checking if $CC supports -Werror... " >&6; }
10685 cacheid=xorg_cv_cc_flag__Werror
10686 if eval test \${$cacheid+y}
10687 then :
10688 printf %s "(cached) " >&6
10689 else $as_nop
10690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10691 /* end confdefs.h. */
10692 int i;
10693 int
10694 main (void)
10695 {
10696
10697 ;
10698 return 0;
10699 }
10700 _ACEOF
10701 if ac_fn_c_try_link "$LINENO"
10702 then :
10703 eval $cacheid=yes
10704 else $as_nop
10705 eval $cacheid=no
10706 fi
10707 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10708 conftest$ac_exeext conftest.$ac_ext
10709 fi
10710
10711
10712 CFLAGS="$xorg_testset_save_CFLAGS"
10713
10714 eval supported=\$$cacheid
10715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10716 printf "%s\n" "$supported" >&6; }
10717 if test "$supported" = "yes" ; then
10718 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10719 found="yes"
10720 fi
10721 fi
10722
10723 if test $found = "no" ; then
10724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10726 fi
10727
10728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10730 fi
10731
10732 CFLAGS="$CFLAGS -errwarn"
10733
10734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10735 printf %s "checking if $CC supports -errwarn... " >&6; }
10736 cacheid=xorg_cv_cc_flag__errwarn
10737 if eval test \${$cacheid+y}
10738 then :
10739 printf %s "(cached) " >&6
10740 else $as_nop
10741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10742 /* end confdefs.h. */
10743 int i;
10744 int
10745 main (void)
10746 {
10747
10748 ;
10749 return 0;
10750 }
10751 _ACEOF
10752 if ac_fn_c_try_link "$LINENO"
10753 then :
10754 eval $cacheid=yes
10755 else $as_nop
10756 eval $cacheid=no
10757 fi
10758 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10759 conftest$ac_exeext conftest.$ac_ext
10760 fi
10761
10762
10763 CFLAGS="$xorg_testset_save_CFLAGS"
10764
10765 eval supported=\$$cacheid
10766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10767 printf "%s\n" "$supported" >&6; }
10768 if test "$supported" = "yes" ; then
10769 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10770 found="yes"
10771 fi
10772 fi
10773
10774
10775
10776 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10777 # activate it with -Werror, so we add it here explicitly.
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791 xorg_testset_save_CFLAGS="$CFLAGS"
10792
10793 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10796 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10797 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10798 then :
10799 printf %s "(cached) " >&6
10800 else $as_nop
10801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802 /* end confdefs.h. */
10803 int i;
10804 _ACEOF
10805 if ac_fn_c_try_compile "$LINENO"
10806 then :
10807 xorg_cv_cc_flag_unknown_warning_option=yes
10808 else $as_nop
10809 xorg_cv_cc_flag_unknown_warning_option=no
10810 fi
10811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10812 fi
10813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10814 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10816 CFLAGS="$xorg_testset_save_CFLAGS"
10817 fi
10818
10819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10822 fi
10823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10825 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10826 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10827 then :
10828 printf %s "(cached) " >&6
10829 else $as_nop
10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h. */
10832 int i;
10833 _ACEOF
10834 if ac_fn_c_try_compile "$LINENO"
10835 then :
10836 xorg_cv_cc_flag_unused_command_line_argument=yes
10837 else $as_nop
10838 xorg_cv_cc_flag_unused_command_line_argument=no
10839 fi
10840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10841 fi
10842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10843 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10845 CFLAGS="$xorg_testset_save_CFLAGS"
10846 fi
10847
10848 found="no"
10849
10850 if test $found = "no" ; then
10851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10853 fi
10854
10855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10857 fi
10858
10859 CFLAGS="$CFLAGS -Werror=attributes"
10860
10861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10862 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10863 cacheid=xorg_cv_cc_flag__Werror_attributes
10864 if eval test \${$cacheid+y}
10865 then :
10866 printf %s "(cached) " >&6
10867 else $as_nop
10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h. */
10870 int i;
10871 int
10872 main (void)
10873 {
10874
10875 ;
10876 return 0;
10877 }
10878 _ACEOF
10879 if ac_fn_c_try_link "$LINENO"
10880 then :
10881 eval $cacheid=yes
10882 else $as_nop
10883 eval $cacheid=no
10884 fi
10885 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10886 conftest$ac_exeext conftest.$ac_ext
10887 fi
10888
10889
10890 CFLAGS="$xorg_testset_save_CFLAGS"
10891
10892 eval supported=\$$cacheid
10893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10894 printf "%s\n" "$supported" >&6; }
10895 if test "$supported" = "yes" ; then
10896 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10897 found="yes"
10898 fi
10899 fi
10900
10901
10902
10903 if test "x$STRICT_COMPILE" = "xyes"; then
10904 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10905 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10906 fi
10907
10908
10909
10910
10911
10912
10913 cat >>confdefs.h <<_ACEOF
10914 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10915 _ACEOF
10916
10917 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10918 if test "x$PVM" = "x"; then
10919 PVM="0"
10920 fi
10921
10922 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10923
10924 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10925 if test "x$PVP" = "x"; then
10926 PVP="0"
10927 fi
10928
10929 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10930
10931
10932
10933 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10934 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10935 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10936 touch \$(top_srcdir)/ChangeLog; \
10937 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10938
10939
10940
10941
10942 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10943 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10944 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10945 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10946 touch \$(top_srcdir)/INSTALL; \
10947 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10948
10949
10950
10951
10952
10953
10954 case $host_os in
10955 solaris*)
10956 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10957 # check for a man page file found in later versions that use
10958 # traditional section numbers instead
10959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10960 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10961 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10962 then :
10963 printf %s "(cached) " >&6
10964 else $as_nop
10965 test "$cross_compiling" = yes &&
10966 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10967 if test -r "/usr/share/man/man7/attributes.7"; then
10968 ac_cv_file__usr_share_man_man7_attributes_7=yes
10969 else
10970 ac_cv_file__usr_share_man_man7_attributes_7=no
10971 fi
10972 fi
10973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10974 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10975 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10976 then :
10977 SYSV_MAN_SECTIONS=false
10978 else $as_nop
10979 SYSV_MAN_SECTIONS=true
10980 fi
10981
10982 ;;
10983 *) SYSV_MAN_SECTIONS=false ;;
10984 esac
10985
10986 if test x$APP_MAN_SUFFIX = x ; then
10987 APP_MAN_SUFFIX=1
10988 fi
10989 if test x$APP_MAN_DIR = x ; then
10990 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10991 fi
10992
10993 if test x$LIB_MAN_SUFFIX = x ; then
10994 LIB_MAN_SUFFIX=3
10995 fi
10996 if test x$LIB_MAN_DIR = x ; then
10997 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10998 fi
10999
11000 if test x$FILE_MAN_SUFFIX = x ; then
11001 case $SYSV_MAN_SECTIONS in
11002 true) FILE_MAN_SUFFIX=4 ;;
11003 *) FILE_MAN_SUFFIX=5 ;;
11004 esac
11005 fi
11006 if test x$FILE_MAN_DIR = x ; then
11007 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11008 fi
11009
11010 if test x$MISC_MAN_SUFFIX = x ; then
11011 case $SYSV_MAN_SECTIONS in
11012 true) MISC_MAN_SUFFIX=5 ;;
11013 *) MISC_MAN_SUFFIX=7 ;;
11014 esac
11015 fi
11016 if test x$MISC_MAN_DIR = x ; then
11017 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11018 fi
11019
11020 if test x$DRIVER_MAN_SUFFIX = x ; then
11021 case $SYSV_MAN_SECTIONS in
11022 true) DRIVER_MAN_SUFFIX=7 ;;
11023 *) DRIVER_MAN_SUFFIX=4 ;;
11024 esac
11025 fi
11026 if test x$DRIVER_MAN_DIR = x ; then
11027 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11028 fi
11029
11030 if test x$ADMIN_MAN_SUFFIX = x ; then
11031 case $SYSV_MAN_SECTIONS in
11032 true) ADMIN_MAN_SUFFIX=1m ;;
11033 *) ADMIN_MAN_SUFFIX=8 ;;
11034 esac
11035 fi
11036 if test x$ADMIN_MAN_DIR = x ; then
11037 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11038 fi
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054 XORG_MAN_PAGE="X Version 11"
11055
11056 MAN_SUBSTS="\
11057 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11058 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11059 -e 's|__xservername__|Xorg|g' \
11060 -e 's|__xconfigfile__|xorg.conf|g' \
11061 -e 's|__projectroot__|\$(prefix)|g' \
11062 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11063 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11064 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11065 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11066 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11067 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11068 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11069
11070
11071
11072 # Check whether --enable-silent-rules was given.
11073 if test ${enable_silent_rules+y}
11074 then :
11075 enableval=$enable_silent_rules;
11076 fi
11077
11078 case $enable_silent_rules in # (((
11079 yes) AM_DEFAULT_VERBOSITY=0;;
11080 no) AM_DEFAULT_VERBOSITY=1;;
11081 *) AM_DEFAULT_VERBOSITY=0;;
11082 esac
11083 am_make=${MAKE-make}
11084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11085 printf %s "checking whether $am_make supports nested variables... " >&6; }
11086 if test ${am_cv_make_support_nested_variables+y}
11087 then :
11088 printf %s "(cached) " >&6
11089 else $as_nop
11090 if printf "%s\n" 'TRUE=$(BAR$(V))
11091 BAR0=false
11092 BAR1=true
11093 V=1
11094 am__doit:
11095 @$(TRUE)
11096 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11097 am_cv_make_support_nested_variables=yes
11098 else
11099 am_cv_make_support_nested_variables=no
11100 fi
11101 fi
11102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11103 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11104 if test $am_cv_make_support_nested_variables = yes; then
11105 AM_V='$(V)'
11106 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11107 else
11108 AM_V=$AM_DEFAULT_VERBOSITY
11109 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11110 fi
11111 AM_BACKSLASH='\'
11112
11113
11114
11115 # Checks for pkg-config packages
11116
11117 pkg_failed=no
11118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEYES" >&5
11119 printf %s "checking for XEYES... " >&6; }
11120
11121 if test -n "$XEYES_CFLAGS"; then
11122 pkg_cv_XEYES_CFLAGS="$XEYES_CFLAGS"
11123 elif test -n "$PKG_CONFIG"; then
11124 if test -n "$PKG_CONFIG" && \
11125 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17\""; } >&5
11126 ($PKG_CONFIG --exists --print-errors "xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17") 2>&5
11127 ac_status=$?
11128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11129 test $ac_status = 0; }; then
11130 pkg_cv_XEYES_CFLAGS=`$PKG_CONFIG --cflags "xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17" 2>/dev/null`
11131 test "x$?" != "x0" && pkg_failed=yes
11132 else
11133 pkg_failed=yes
11134 fi
11135 else
11136 pkg_failed=untried
11137 fi
11138 if test -n "$XEYES_LIBS"; then
11139 pkg_cv_XEYES_LIBS="$XEYES_LIBS"
11140 elif test -n "$PKG_CONFIG"; then
11141 if test -n "$PKG_CONFIG" && \
11142 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17\""; } >&5
11143 ($PKG_CONFIG --exists --print-errors "xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17") 2>&5
11144 ac_status=$?
11145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11146 test $ac_status = 0; }; then
11147 pkg_cv_XEYES_LIBS=`$PKG_CONFIG --libs "xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17" 2>/dev/null`
11148 test "x$?" != "x0" && pkg_failed=yes
11149 else
11150 pkg_failed=yes
11151 fi
11152 else
11153 pkg_failed=untried
11154 fi
11155
11156
11157
11158 if test $pkg_failed = yes; then
11159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11160 printf "%s\n" "no" >&6; }
11161
11162 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11163 _pkg_short_errors_supported=yes
11164 else
11165 _pkg_short_errors_supported=no
11166 fi
11167 if test $_pkg_short_errors_supported = yes; then
11168 XEYES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17" 2>&1`
11169 else
11170 XEYES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17" 2>&1`
11171 fi
11172 # Put the nasty error message in config.log where it belongs
11173 echo "$XEYES_PKG_ERRORS" >&5
11174
11175 as_fn_error $? "Package requirements (xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17) were not met:
11176
11177 $XEYES_PKG_ERRORS
11178
11179 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11180 installed software in a non-standard prefix.
11181
11182 Alternatively, you may set the environment variables XEYES_CFLAGS
11183 and XEYES_LIBS to avoid the need to call pkg-config.
11184 See the pkg-config man page for more details." "$LINENO" 5
11185 elif test $pkg_failed = untried; then
11186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187 printf "%s\n" "no" >&6; }
11188 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11189 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11190 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11191 is in your PATH or set the PKG_CONFIG environment variable to the full
11192 path to pkg-config.
11193
11194 Alternatively, you may set the environment variables XEYES_CFLAGS
11195 and XEYES_LIBS to avoid the need to call pkg-config.
11196 See the pkg-config man page for more details.
11197
11198 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11199 See \`config.log' for more details" "$LINENO" 5; }
11200 else
11201 XEYES_CFLAGS=$pkg_cv_XEYES_CFLAGS
11202 XEYES_LIBS=$pkg_cv_XEYES_LIBS
11203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11204 printf "%s\n" "yes" >&6; }
11205
11206 fi
11207
11208
11209 # Check whether --with-xrender was given.
11210 if test ${with_xrender+y}
11211 then :
11212 withval=$with_xrender; use_xrender="$withval"
11213 else $as_nop
11214 use_xrender="try"
11215 fi
11216
11217 if test x$use_xrender != xno ; then
11218
11219 pkg_failed=no
11220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5
11221 printf %s "checking for XRENDER... " >&6; }
11222
11223 if test -n "$XRENDER_CFLAGS"; then
11224 pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
11225 elif test -n "$PKG_CONFIG"; then
11226 if test -n "$PKG_CONFIG" && \
11227 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.4\""; } >&5
11228 ($PKG_CONFIG --exists --print-errors "xrender >= 0.4") 2>&5
11229 ac_status=$?
11230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11231 test $ac_status = 0; }; then
11232 pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.4" 2>/dev/null`
11233 test "x$?" != "x0" && pkg_failed=yes
11234 else
11235 pkg_failed=yes
11236 fi
11237 else
11238 pkg_failed=untried
11239 fi
11240 if test -n "$XRENDER_LIBS"; then
11241 pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
11242 elif test -n "$PKG_CONFIG"; then
11243 if test -n "$PKG_CONFIG" && \
11244 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.4\""; } >&5
11245 ($PKG_CONFIG --exists --print-errors "xrender >= 0.4") 2>&5
11246 ac_status=$?
11247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11248 test $ac_status = 0; }; then
11249 pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0.4" 2>/dev/null`
11250 test "x$?" != "x0" && pkg_failed=yes
11251 else
11252 pkg_failed=yes
11253 fi
11254 else
11255 pkg_failed=untried
11256 fi
11257
11258
11259
11260 if test $pkg_failed = yes; then
11261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262 printf "%s\n" "no" >&6; }
11263
11264 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11265 _pkg_short_errors_supported=yes
11266 else
11267 _pkg_short_errors_supported=no
11268 fi
11269 if test $_pkg_short_errors_supported = yes; then
11270 XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender >= 0.4" 2>&1`
11271 else
11272 XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender >= 0.4" 2>&1`
11273 fi
11274 # Put the nasty error message in config.log where it belongs
11275 echo "$XRENDER_PKG_ERRORS" >&5
11276
11277 as_fn_error $? "Package requirements (xrender >= 0.4) were not met:
11278
11279 $XRENDER_PKG_ERRORS
11280
11281 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11282 installed software in a non-standard prefix.
11283
11284 Alternatively, you may set the environment variables XRENDER_CFLAGS
11285 and XRENDER_LIBS to avoid the need to call pkg-config.
11286 See the pkg-config man page for more details." "$LINENO" 5
11287 elif test $pkg_failed = untried; then
11288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11289 printf "%s\n" "no" >&6; }
11290 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11291 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11292 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11293 is in your PATH or set the PKG_CONFIG environment variable to the full
11294 path to pkg-config.
11295
11296 Alternatively, you may set the environment variables XRENDER_CFLAGS
11297 and XRENDER_LIBS to avoid the need to call pkg-config.
11298 See the pkg-config man page for more details.
11299
11300 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11301 See \`config.log' for more details" "$LINENO" 5; }
11302 else
11303 XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
11304 XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
11305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11306 printf "%s\n" "yes" >&6; }
11307
11308 fi
11309
11310 printf "%s\n" "#define XRENDER 1" >>confdefs.h
11311
11312 fi
11313
11314
11315 # Check whether --with-present was given.
11316 if test ${with_present+y}
11317 then :
11318 withval=$with_present; use_present="$withval"
11319 else $as_nop
11320 use_present="try"
11321 fi
11322
11323 if test x$use_present != xno ; then
11324
11325 pkg_failed=no
11326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PRESENT" >&5
11327 printf %s "checking for PRESENT... " >&6; }
11328
11329 if test -n "$PRESENT_CFLAGS"; then
11330 pkg_cv_PRESENT_CFLAGS="$PRESENT_CFLAGS"
11331 elif test -n "$PKG_CONFIG"; then
11332 if test -n "$PKG_CONFIG" && \
11333 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage\""; } >&5
11334 ($PKG_CONFIG --exists --print-errors "x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage") 2>&5
11335 ac_status=$?
11336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11337 test $ac_status = 0; }; then
11338 pkg_cv_PRESENT_CFLAGS=`$PKG_CONFIG --cflags "x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage" 2>/dev/null`
11339 test "x$?" != "x0" && pkg_failed=yes
11340 else
11341 pkg_failed=yes
11342 fi
11343 else
11344 pkg_failed=untried
11345 fi
11346 if test -n "$PRESENT_LIBS"; then
11347 pkg_cv_PRESENT_LIBS="$PRESENT_LIBS"
11348 elif test -n "$PKG_CONFIG"; then
11349 if test -n "$PKG_CONFIG" && \
11350 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage\""; } >&5
11351 ($PKG_CONFIG --exists --print-errors "x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage") 2>&5
11352 ac_status=$?
11353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11354 test $ac_status = 0; }; then
11355 pkg_cv_PRESENT_LIBS=`$PKG_CONFIG --libs "x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage" 2>/dev/null`
11356 test "x$?" != "x0" && pkg_failed=yes
11357 else
11358 pkg_failed=yes
11359 fi
11360 else
11361 pkg_failed=untried
11362 fi
11363
11364
11365
11366 if test $pkg_failed = yes; then
11367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11368 printf "%s\n" "no" >&6; }
11369
11370 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11371 _pkg_short_errors_supported=yes
11372 else
11373 _pkg_short_errors_supported=no
11374 fi
11375 if test $_pkg_short_errors_supported = yes; then
11376 PRESENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage" 2>&1`
11377 else
11378 PRESENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage" 2>&1`
11379 fi
11380 # Put the nasty error message in config.log where it belongs
11381 echo "$PRESENT_PKG_ERRORS" >&5
11382
11383 as_fn_error $? "Package requirements (x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage) were not met:
11384
11385 $PRESENT_PKG_ERRORS
11386
11387 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11388 installed software in a non-standard prefix.
11389
11390 Alternatively, you may set the environment variables PRESENT_CFLAGS
11391 and PRESENT_LIBS to avoid the need to call pkg-config.
11392 See the pkg-config man page for more details." "$LINENO" 5
11393 elif test $pkg_failed = untried; then
11394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11395 printf "%s\n" "no" >&6; }
11396 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11397 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11398 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11399 is in your PATH or set the PKG_CONFIG environment variable to the full
11400 path to pkg-config.
11401
11402 Alternatively, you may set the environment variables PRESENT_CFLAGS
11403 and PRESENT_LIBS to avoid the need to call pkg-config.
11404 See the pkg-config man page for more details.
11405
11406 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11407 See \`config.log' for more details" "$LINENO" 5; }
11408 else
11409 PRESENT_CFLAGS=$pkg_cv_PRESENT_CFLAGS
11410 PRESENT_LIBS=$pkg_cv_PRESENT_LIBS
11411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11412 printf "%s\n" "yes" >&6; }
11413
11414 fi
11415
11416 printf "%s\n" "#define PRESENT 1" >>confdefs.h
11417
11418 fi
11419
11420 ac_config_files="$ac_config_files Makefile man/Makefile"
11421
11422 cat >confcache <<\_ACEOF
11423 # This file is a shell script that caches the results of configure
11424 # tests run on this system so they can be shared between configure
11425 # scripts and configure runs, see configure's option --config-cache.
11426 # It is not useful on other systems. If it contains results you don't
11427 # want to keep, you may remove or edit it.
11428 #
11429 # config.status only pays attention to the cache file if you give it
11430 # the --recheck option to rerun configure.
11431 #
11432 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11433 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11434 # following values.
11435
11436 _ACEOF
11437
11438 # The following way of writing the cache mishandles newlines in values,
11439 # but we know of no workaround that is simple, portable, and efficient.
11440 # So, we kill variables containing newlines.
11441 # Ultrix sh set writes to stderr and can't be redirected directly,
11442 # and sets the high bit in the cache file unless we assign to the vars.
11443 (
11444 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11445 eval ac_val=\$$ac_var
11446 case $ac_val in #(
11447 *${as_nl}*)
11448 case $ac_var in #(
11449 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11450 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11451 esac
11452 case $ac_var in #(
11453 _ | IFS | as_nl) ;; #(
11454 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11455 *) { eval $ac_var=; unset $ac_var;} ;;
11456 esac ;;
11457 esac
11458 done
11459
11460 (set) 2>&1 |
11461 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11462 *${as_nl}ac_space=\ *)
11463 # `set' does not quote correctly, so add quotes: double-quote
11464 # substitution turns \\\\ into \\, and sed turns \\ into \.
11465 sed -n \
11466 "s/'/'\\\\''/g;
11467 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11468 ;; #(
11469 *)
11470 # `set' quotes correctly as required by POSIX, so do not add quotes.
11471 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11472 ;;
11473 esac |
11474 sort
11475 ) |
11476 sed '
11477 /^ac_cv_env_/b end
11478 t clear
11479 :clear
11480 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11481 t end
11482 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11483 :end' >>confcache
11484 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11485 if test -w "$cache_file"; then
11486 if test "x$cache_file" != "x/dev/null"; then
11487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11488 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11489 if test ! -f "$cache_file" || test -h "$cache_file"; then
11490 cat confcache >"$cache_file"
11491 else
11492 case $cache_file in #(
11493 */* | ?:*)
11494 mv -f confcache "$cache_file"$$ &&
11495 mv -f "$cache_file"$$ "$cache_file" ;; #(
11496 *)
11497 mv -f confcache "$cache_file" ;;
11498 esac
11499 fi
11500 fi
11501 else
11502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11503 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11504 fi
11505 fi
11506 rm -f confcache
11507
11508 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11509 # Let make expand exec_prefix.
11510 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11511
11512 DEFS=-DHAVE_CONFIG_H
11513
11514 ac_libobjs=
11515 ac_ltlibobjs=
11516 U=
11517 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11518 # 1. Remove the extension, and $U if already installed.
11519 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11520 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11521 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11522 # will be set to the directory where LIBOBJS objects are built.
11523 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11524 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11525 done
11526 LIBOBJS=$ac_libobjs
11527
11528 LTLIBOBJS=$ac_ltlibobjs
11529
11530
11531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11532 printf %s "checking that generated files are newer than configure... " >&6; }
11533 if test -n "$am_sleep_pid"; then
11534 # Hide warnings about reused PIDs.
11535 wait $am_sleep_pid 2>/dev/null
11536 fi
11537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11538 printf "%s\n" "done" >&6; }
11539 if test -n "$EXEEXT"; then
11540 am__EXEEXT_TRUE=
11541 am__EXEEXT_FALSE='#'
11542 else
11543 am__EXEEXT_TRUE='#'
11544 am__EXEEXT_FALSE=
11545 fi
11546
11547 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11548 as_fn_error $? "conditional \"AMDEP\" was never defined.
11549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11550 fi
11551 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11552 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11554 fi
11555
11556 : "${CONFIG_STATUS=./config.status}"
11557 ac_write_fail=0
11558 ac_clean_files_save=$ac_clean_files
11559 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11561 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11562 as_write_fail=0
11563 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11564 #! $SHELL
11565 # Generated by $as_me.
11566 # Run this file to recreate the current configuration.
11567 # Compiler output produced by configure, useful for debugging
11568 # configure, is in config.log if it exists.
11569
11570 debug=false
11571 ac_cs_recheck=false
11572 ac_cs_silent=false
11573
11574 SHELL=\${CONFIG_SHELL-$SHELL}
11575 export SHELL
11576 _ASEOF
11577 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11578 ## -------------------- ##
11579 ## M4sh Initialization. ##
11580 ## -------------------- ##
11581
11582 # Be more Bourne compatible
11583 DUALCASE=1; export DUALCASE # for MKS sh
11584 as_nop=:
11585 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11586 then :
11587 emulate sh
11588 NULLCMD=:
11589 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11590 # is contrary to our usage. Disable this feature.
11591 alias -g '${1+"$@"}'='"$@"'
11592 setopt NO_GLOB_SUBST
11593 else $as_nop
11594 case `(set -o) 2>/dev/null` in #(
11595 *posix*) :
11596 set -o posix ;; #(
11597 *) :
11598 ;;
11599 esac
11600 fi
11601
11602
11603
11604 # Reset variables that may have inherited troublesome values from
11605 # the environment.
11606
11607 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11608 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11609 # side effect of setting IFS to empty, thus disabling word splitting.)
11610 # Quoting is to prevent editors from complaining about space-tab.
11611 as_nl='
11612 '
11613 export as_nl
11614 IFS=" "" $as_nl"
11615
11616 PS1='$ '
11617 PS2='> '
11618 PS4='+ '
11619
11620 # Ensure predictable behavior from utilities with locale-dependent output.
11621 LC_ALL=C
11622 export LC_ALL
11623 LANGUAGE=C
11624 export LANGUAGE
11625
11626 # We cannot yet rely on "unset" to work, but we need these variables
11627 # to be unset--not just set to an empty or harmless value--now, to
11628 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11629 # also avoids known problems related to "unset" and subshell syntax
11630 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11631 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11632 do eval test \${$as_var+y} \
11633 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11634 done
11635
11636 # Ensure that fds 0, 1, and 2 are open.
11637 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11638 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11639 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11640
11641 # The user is always right.
11642 if ${PATH_SEPARATOR+false} :; then
11643 PATH_SEPARATOR=:
11644 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11645 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11646 PATH_SEPARATOR=';'
11647 }
11648 fi
11649
11650
11651 # Find who we are. Look in the path if we contain no directory separator.
11652 as_myself=
11653 case $0 in #((
11654 *[\\/]* ) as_myself=$0 ;;
11655 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11656 for as_dir in $PATH
11657 do
11658 IFS=$as_save_IFS
11659 case $as_dir in #(((
11660 '') as_dir=./ ;;
11661 */) ;;
11662 *) as_dir=$as_dir/ ;;
11663 esac
11664 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11665 done
11666 IFS=$as_save_IFS
11667
11668 ;;
11669 esac
11670 # We did not find ourselves, most probably we were run as `sh COMMAND'
11671 # in which case we are not to be found in the path.
11672 if test "x$as_myself" = x; then
11673 as_myself=$0
11674 fi
11675 if test ! -f "$as_myself"; then
11676 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11677 exit 1
11678 fi
11679
11680
11681
11682 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11683 # ----------------------------------------
11684 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11685 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11686 # script with STATUS, using 1 if that was 0.
11687 as_fn_error ()
11688 {
11689 as_status=$1; test $as_status -eq 0 && as_status=1
11690 if test "$4"; then
11691 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11693 fi
11694 printf "%s\n" "$as_me: error: $2" >&2
11695 as_fn_exit $as_status
11696 } # as_fn_error
11697
11698
11699
11700 # as_fn_set_status STATUS
11701 # -----------------------
11702 # Set $? to STATUS, without forking.
11703 as_fn_set_status ()
11704 {
11705 return $1
11706 } # as_fn_set_status
11707
11708 # as_fn_exit STATUS
11709 # -----------------
11710 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11711 as_fn_exit ()
11712 {
11713 set +e
11714 as_fn_set_status $1
11715 exit $1
11716 } # as_fn_exit
11717
11718 # as_fn_unset VAR
11719 # ---------------
11720 # Portably unset VAR.
11721 as_fn_unset ()
11722 {
11723 { eval $1=; unset $1;}
11724 }
11725 as_unset=as_fn_unset
11726
11727 # as_fn_append VAR VALUE
11728 # ----------------------
11729 # Append the text in VALUE to the end of the definition contained in VAR. Take
11730 # advantage of any shell optimizations that allow amortized linear growth over
11731 # repeated appends, instead of the typical quadratic growth present in naive
11732 # implementations.
11733 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11734 then :
11735 eval 'as_fn_append ()
11736 {
11737 eval $1+=\$2
11738 }'
11739 else $as_nop
11740 as_fn_append ()
11741 {
11742 eval $1=\$$1\$2
11743 }
11744 fi # as_fn_append
11745
11746 # as_fn_arith ARG...
11747 # ------------------
11748 # Perform arithmetic evaluation on the ARGs, and store the result in the
11749 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11750 # must be portable across $(()) and expr.
11751 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11752 then :
11753 eval 'as_fn_arith ()
11754 {
11755 as_val=$(( $* ))
11756 }'
11757 else $as_nop
11758 as_fn_arith ()
11759 {
11760 as_val=`expr "$@" || test $? -eq 1`
11761 }
11762 fi # as_fn_arith
11763
11764
11765 if expr a : '\(a\)' >/dev/null 2>&1 &&
11766 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11767 as_expr=expr
11768 else
11769 as_expr=false
11770 fi
11771
11772 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11773 as_basename=basename
11774 else
11775 as_basename=false
11776 fi
11777
11778 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11779 as_dirname=dirname
11780 else
11781 as_dirname=false
11782 fi
11783
11784 as_me=`$as_basename -- "$0" ||
11785 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11786 X"$0" : 'X\(//\)$' \| \
11787 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11788 printf "%s\n" X/"$0" |
11789 sed '/^.*\/\([^/][^/]*\)\/*$/{
11790 s//\1/
11791 q
11792 }
11793 /^X\/\(\/\/\)$/{
11794 s//\1/
11795 q
11796 }
11797 /^X\/\(\/\).*/{
11798 s//\1/
11799 q
11800 }
11801 s/.*/./; q'`
11802
11803 # Avoid depending upon Character Ranges.
11804 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11805 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11806 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11807 as_cr_digits='0123456789'
11808 as_cr_alnum=$as_cr_Letters$as_cr_digits
11809
11810
11811 # Determine whether it's possible to make 'echo' print without a newline.
11812 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11813 # for compatibility with existing Makefiles.
11814 ECHO_C= ECHO_N= ECHO_T=
11815 case `echo -n x` in #(((((
11816 -n*)
11817 case `echo 'xy\c'` in
11818 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11819 xy) ECHO_C='\c';;
11820 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11821 ECHO_T=' ';;
11822 esac;;
11823 *)
11824 ECHO_N='-n';;
11825 esac
11826
11827 # For backward compatibility with old third-party macros, we provide
11828 # the shell variables $as_echo and $as_echo_n. New code should use
11829 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11830 as_echo='printf %s\n'
11831 as_echo_n='printf %s'
11832
11833 rm -f conf$$ conf$$.exe conf$$.file
11834 if test -d conf$$.dir; then
11835 rm -f conf$$.dir/conf$$.file
11836 else
11837 rm -f conf$$.dir
11838 mkdir conf$$.dir 2>/dev/null
11839 fi
11840 if (echo >conf$$.file) 2>/dev/null; then
11841 if ln -s conf$$.file conf$$ 2>/dev/null; then
11842 as_ln_s='ln -s'
11843 # ... but there are two gotchas:
11844 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11845 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11846 # In both cases, we have to default to `cp -pR'.
11847 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11848 as_ln_s='cp -pR'
11849 elif ln conf$$.file conf$$ 2>/dev/null; then
11850 as_ln_s=ln
11851 else
11852 as_ln_s='cp -pR'
11853 fi
11854 else
11855 as_ln_s='cp -pR'
11856 fi
11857 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11858 rmdir conf$$.dir 2>/dev/null
11859
11860
11861 # as_fn_mkdir_p
11862 # -------------
11863 # Create "$as_dir" as a directory, including parents if necessary.
11864 as_fn_mkdir_p ()
11865 {
11866
11867 case $as_dir in #(
11868 -*) as_dir=./$as_dir;;
11869 esac
11870 test -d "$as_dir" || eval $as_mkdir_p || {
11871 as_dirs=
11872 while :; do
11873 case $as_dir in #(
11874 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11875 *) as_qdir=$as_dir;;
11876 esac
11877 as_dirs="'$as_qdir' $as_dirs"
11878 as_dir=`$as_dirname -- "$as_dir" ||
11879 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11880 X"$as_dir" : 'X\(//\)[^/]' \| \
11881 X"$as_dir" : 'X\(//\)$' \| \
11882 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11883 printf "%s\n" X"$as_dir" |
11884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11885 s//\1/
11886 q
11887 }
11888 /^X\(\/\/\)[^/].*/{
11889 s//\1/
11890 q
11891 }
11892 /^X\(\/\/\)$/{
11893 s//\1/
11894 q
11895 }
11896 /^X\(\/\).*/{
11897 s//\1/
11898 q
11899 }
11900 s/.*/./; q'`
11901 test -d "$as_dir" && break
11902 done
11903 test -z "$as_dirs" || eval "mkdir $as_dirs"
11904 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11905
11906
11907 } # as_fn_mkdir_p
11908 if mkdir -p . 2>/dev/null; then
11909 as_mkdir_p='mkdir -p "$as_dir"'
11910 else
11911 test -d ./-p && rmdir ./-p
11912 as_mkdir_p=false
11913 fi
11914
11915
11916 # as_fn_executable_p FILE
11917 # -----------------------
11918 # Test if FILE is an executable regular file.
11919 as_fn_executable_p ()
11920 {
11921 test -f "$1" && test -x "$1"
11922 } # as_fn_executable_p
11923 as_test_x='test -x'
11924 as_executable_p=as_fn_executable_p
11925
11926 # Sed expression to map a string onto a valid CPP name.
11927 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11928
11929 # Sed expression to map a string onto a valid variable name.
11930 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11931
11932
11933 exec 6>&1
11934 ## ----------------------------------- ##
11935 ## Main body of $CONFIG_STATUS script. ##
11936 ## ----------------------------------- ##
11937 _ASEOF
11938 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11939
11940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11941 # Save the log message, to keep $0 and so on meaningful, and to
11942 # report actual input values of CONFIG_FILES etc. instead of their
11943 # values after options handling.
11944 ac_log="
11945 This file was extended by xeyes $as_me 1.2.0, which was
11946 generated by GNU Autoconf 2.71. Invocation command line was
11947
11948 CONFIG_FILES = $CONFIG_FILES
11949 CONFIG_HEADERS = $CONFIG_HEADERS
11950 CONFIG_LINKS = $CONFIG_LINKS
11951 CONFIG_COMMANDS = $CONFIG_COMMANDS
11952 $ $0 $@
11953
11954 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11955 "
11956
11957 _ACEOF
11958
11959 case $ac_config_files in *"
11960 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11961 esac
11962
11963 case $ac_config_headers in *"
11964 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11965 esac
11966
11967
11968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11969 # Files that config.status was made for.
11970 config_files="$ac_config_files"
11971 config_headers="$ac_config_headers"
11972 config_commands="$ac_config_commands"
11973
11974 _ACEOF
11975
11976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11977 ac_cs_usage="\
11978 \`$as_me' instantiates files and other configuration actions
11979 from templates according to the current configuration. Unless the files
11980 and actions are specified as TAGs, all are instantiated by default.
11981
11982 Usage: $0 [OPTION]... [TAG]...
11983
11984 -h, --help print this help, then exit
11985 -V, --version print version number and configuration settings, then exit
11986 --config print configuration, then exit
11987 -q, --quiet, --silent
11988 do not print progress messages
11989 -d, --debug don't remove temporary files
11990 --recheck update $as_me by reconfiguring in the same conditions
11991 --file=FILE[:TEMPLATE]
11992 instantiate the configuration file FILE
11993 --header=FILE[:TEMPLATE]
11994 instantiate the configuration header FILE
11995
11996 Configuration files:
11997 $config_files
11998
11999 Configuration headers:
12000 $config_headers
12001
12002 Configuration commands:
12003 $config_commands
12004
12005 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xeyes/issues>."
12006
12007 _ACEOF
12008 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12009 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12011 ac_cs_config='$ac_cs_config_escaped'
12012 ac_cs_version="\\
12013 xeyes config.status 1.2.0
12014 configured by $0, generated by GNU Autoconf 2.71,
12015 with options \\"\$ac_cs_config\\"
12016
12017 Copyright (C) 2021 Free Software Foundation, Inc.
12018 This config.status script is free software; the Free Software Foundation
12019 gives unlimited permission to copy, distribute and modify it."
12020
12021 ac_pwd='$ac_pwd'
12022 srcdir='$srcdir'
12023 INSTALL='$INSTALL'
12024 MKDIR_P='$MKDIR_P'
12025 AWK='$AWK'
12026 test -n "\$AWK" || AWK=awk
12027 _ACEOF
12028
12029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12030 # The default lists apply if the user does not specify any file.
12031 ac_need_defaults=:
12032 while test $# != 0
12033 do
12034 case $1 in
12035 --*=?*)
12036 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12037 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12038 ac_shift=:
12039 ;;
12040 --*=)
12041 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12042 ac_optarg=
12043 ac_shift=:
12044 ;;
12045 *)
12046 ac_option=$1
12047 ac_optarg=$2
12048 ac_shift=shift
12049 ;;
12050 esac
12051
12052 case $ac_option in
12053 # Handling of the options.
12054 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12055 ac_cs_recheck=: ;;
12056 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12057 printf "%s\n" "$ac_cs_version"; exit ;;
12058 --config | --confi | --conf | --con | --co | --c )
12059 printf "%s\n" "$ac_cs_config"; exit ;;
12060 --debug | --debu | --deb | --de | --d | -d )
12061 debug=: ;;
12062 --file | --fil | --fi | --f )
12063 $ac_shift
12064 case $ac_optarg in
12065 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12066 '') as_fn_error $? "missing file argument" ;;
12067 esac
12068 as_fn_append CONFIG_FILES " '$ac_optarg'"
12069 ac_need_defaults=false;;
12070 --header | --heade | --head | --hea )
12071 $ac_shift
12072 case $ac_optarg in
12073 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12074 esac
12075 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12076 ac_need_defaults=false;;
12077 --he | --h)
12078 # Conflict between --help and --header
12079 as_fn_error $? "ambiguous option: \`$1'
12080 Try \`$0 --help' for more information.";;
12081 --help | --hel | -h )
12082 printf "%s\n" "$ac_cs_usage"; exit ;;
12083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12084 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12085 ac_cs_silent=: ;;
12086
12087 # This is an error.
12088 -*) as_fn_error $? "unrecognized option: \`$1'
12089 Try \`$0 --help' for more information." ;;
12090
12091 *) as_fn_append ac_config_targets " $1"
12092 ac_need_defaults=false ;;
12093
12094 esac
12095 shift
12096 done
12097
12098 ac_configure_extra_args=
12099
12100 if $ac_cs_silent; then
12101 exec 6>/dev/null
12102 ac_configure_extra_args="$ac_configure_extra_args --silent"
12103 fi
12104
12105 _ACEOF
12106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12107 if \$ac_cs_recheck; then
12108 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12109 shift
12110 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12111 CONFIG_SHELL='$SHELL'
12112 export CONFIG_SHELL
12113 exec "\$@"
12114 fi
12115
12116 _ACEOF
12117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12118 exec 5>>config.log
12119 {
12120 echo
12121 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12122 ## Running $as_me. ##
12123 _ASBOX
12124 printf "%s\n" "$ac_log"
12125 } >&5
12126
12127 _ACEOF
12128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12129 #
12130 # INIT-COMMANDS
12131 #
12132 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12133
12134 _ACEOF
12135
12136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12137
12138 # Handling of arguments.
12139 for ac_config_target in $ac_config_targets
12140 do
12141 case $ac_config_target in
12142 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12143 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12144 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12145 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12146
12147 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12148 esac
12149 done
12150
12151
12152 # If the user did not use the arguments to specify the items to instantiate,
12153 # then the envvar interface is used. Set only those that are not.
12154 # We use the long form for the default assignment because of an extremely
12155 # bizarre bug on SunOS 4.1.3.
12156 if $ac_need_defaults; then
12157 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12158 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12159 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12160 fi
12161
12162 # Have a temporary directory for convenience. Make it in the build tree
12163 # simply because there is no reason against having it here, and in addition,
12164 # creating and moving files from /tmp can sometimes cause problems.
12165 # Hook for its removal unless debugging.
12166 # Note that there is a small window in which the directory will not be cleaned:
12167 # after its creation but before its name has been assigned to `$tmp'.
12168 $debug ||
12169 {
12170 tmp= ac_tmp=
12171 trap 'exit_status=$?
12172 : "${ac_tmp:=$tmp}"
12173 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12174 ' 0
12175 trap 'as_fn_exit 1' 1 2 13 15
12176 }
12177 # Create a (secure) tmp directory for tmp files.
12178
12179 {
12180 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12181 test -d "$tmp"
12182 } ||
12183 {
12184 tmp=./conf$$-$RANDOM
12185 (umask 077 && mkdir "$tmp")
12186 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12187 ac_tmp=$tmp
12188
12189 # Set up the scripts for CONFIG_FILES section.
12190 # No need to generate them if there are no CONFIG_FILES.
12191 # This happens for instance with `./config.status config.h'.
12192 if test -n "$CONFIG_FILES"; then
12193
12194
12195 ac_cr=`echo X | tr X '\015'`
12196 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12197 # But we know of no other shell where ac_cr would be empty at this
12198 # point, so we can use a bashism as a fallback.
12199 if test "x$ac_cr" = x; then
12200 eval ac_cr=\$\'\\r\'
12201 fi
12202 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12203 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12204 ac_cs_awk_cr='\\r'
12205 else
12206 ac_cs_awk_cr=$ac_cr
12207 fi
12208
12209 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12210 _ACEOF
12211
12212
12213 {
12214 echo "cat >conf$$subs.awk <<_ACEOF" &&
12215 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12216 echo "_ACEOF"
12217 } >conf$$subs.sh ||
12218 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12219 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12220 ac_delim='%!_!# '
12221 for ac_last_try in false false false false false :; do
12222 . ./conf$$subs.sh ||
12223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12224
12225 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12226 if test $ac_delim_n = $ac_delim_num; then
12227 break
12228 elif $ac_last_try; then
12229 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12230 else
12231 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12232 fi
12233 done
12234 rm -f conf$$subs.sh
12235
12236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12237 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12238 _ACEOF
12239 sed -n '
12240 h
12241 s/^/S["/; s/!.*/"]=/
12242 p
12243 g
12244 s/^[^!]*!//
12245 :repl
12246 t repl
12247 s/'"$ac_delim"'$//
12248 t delim
12249 :nl
12250 h
12251 s/\(.\{148\}\)..*/\1/
12252 t more1
12253 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12254 p
12255 n
12256 b repl
12257 :more1
12258 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12259 p
12260 g
12261 s/.\{148\}//
12262 t nl
12263 :delim
12264 h
12265 s/\(.\{148\}\)..*/\1/
12266 t more2
12267 s/["\\]/\\&/g; s/^/"/; s/$/"/
12268 p
12269 b
12270 :more2
12271 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12272 p
12273 g
12274 s/.\{148\}//
12275 t delim
12276 ' <conf$$subs.awk | sed '
12277 /^[^""]/{
12278 N
12279 s/\n//
12280 }
12281 ' >>$CONFIG_STATUS || ac_write_fail=1
12282 rm -f conf$$subs.awk
12283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12284 _ACAWK
12285 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12286 for (key in S) S_is_set[key] = 1
12287 FS = ""
12288
12289 }
12290 {
12291 line = $ 0
12292 nfields = split(line, field, "@")
12293 substed = 0
12294 len = length(field[1])
12295 for (i = 2; i < nfields; i++) {
12296 key = field[i]
12297 keylen = length(key)
12298 if (S_is_set[key]) {
12299 value = S[key]
12300 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12301 len += length(value) + length(field[++i])
12302 substed = 1
12303 } else
12304 len += 1 + keylen
12305 }
12306
12307 print line
12308 }
12309
12310 _ACAWK
12311 _ACEOF
12312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12313 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12314 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12315 else
12316 cat
12317 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12318 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12319 _ACEOF
12320
12321 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12322 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12323 # trailing colons and then remove the whole line if VPATH becomes empty
12324 # (actually we leave an empty line to preserve line numbers).
12325 if test "x$srcdir" = x.; then
12326 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12327 h
12328 s///
12329 s/^/:/
12330 s/[ ]*$/:/
12331 s/:\$(srcdir):/:/g
12332 s/:\${srcdir}:/:/g
12333 s/:@srcdir@:/:/g
12334 s/^:*//
12335 s/:*$//
12336 x
12337 s/\(=[ ]*\).*/\1/
12338 G
12339 s/\n//
12340 s/^[^=]*=[ ]*$//
12341 }'
12342 fi
12343
12344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12345 fi # test -n "$CONFIG_FILES"
12346
12347 # Set up the scripts for CONFIG_HEADERS section.
12348 # No need to generate them if there are no CONFIG_HEADERS.
12349 # This happens for instance with `./config.status Makefile'.
12350 if test -n "$CONFIG_HEADERS"; then
12351 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12352 BEGIN {
12353 _ACEOF
12354
12355 # Transform confdefs.h into an awk script `defines.awk', embedded as
12356 # here-document in config.status, that substitutes the proper values into
12357 # config.h.in to produce config.h.
12358
12359 # Create a delimiter string that does not exist in confdefs.h, to ease
12360 # handling of long lines.
12361 ac_delim='%!_!# '
12362 for ac_last_try in false false :; do
12363 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12364 if test -z "$ac_tt"; then
12365 break
12366 elif $ac_last_try; then
12367 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12368 else
12369 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12370 fi
12371 done
12372
12373 # For the awk script, D is an array of macro values keyed by name,
12374 # likewise P contains macro parameters if any. Preserve backslash
12375 # newline sequences.
12376
12377 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12378 sed -n '
12379 s/.\{148\}/&'"$ac_delim"'/g
12380 t rset
12381 :rset
12382 s/^[ ]*#[ ]*define[ ][ ]*/ /
12383 t def
12384 d
12385 :def
12386 s/\\$//
12387 t bsnl
12388 s/["\\]/\\&/g
12389 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12390 D["\1"]=" \3"/p
12391 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12392 d
12393 :bsnl
12394 s/["\\]/\\&/g
12395 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12396 D["\1"]=" \3\\\\\\n"\\/p
12397 t cont
12398 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12399 t cont
12400 d
12401 :cont
12402 n
12403 s/.\{148\}/&'"$ac_delim"'/g
12404 t clear
12405 :clear
12406 s/\\$//
12407 t bsnlc
12408 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12409 d
12410 :bsnlc
12411 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12412 b cont
12413 ' <confdefs.h | sed '
12414 s/'"$ac_delim"'/"\\\
12415 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12416
12417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12418 for (key in D) D_is_set[key] = 1
12419 FS = ""
12420 }
12421 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12422 line = \$ 0
12423 split(line, arg, " ")
12424 if (arg[1] == "#") {
12425 defundef = arg[2]
12426 mac1 = arg[3]
12427 } else {
12428 defundef = substr(arg[1], 2)
12429 mac1 = arg[2]
12430 }
12431 split(mac1, mac2, "(") #)
12432 macro = mac2[1]
12433 prefix = substr(line, 1, index(line, defundef) - 1)
12434 if (D_is_set[macro]) {
12435 # Preserve the white space surrounding the "#".
12436 print prefix "define", macro P[macro] D[macro]
12437 next
12438 } else {
12439 # Replace #undef with comments. This is necessary, for example,
12440 # in the case of _POSIX_SOURCE, which is predefined and required
12441 # on some systems where configure will not decide to define it.
12442 if (defundef == "undef") {
12443 print "/*", prefix defundef, macro, "*/"
12444 next
12445 }
12446 }
12447 }
12448 { print }
12449 _ACAWK
12450 _ACEOF
12451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12452 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12453 fi # test -n "$CONFIG_HEADERS"
12454
12455
12456 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12457 shift
12458 for ac_tag
12459 do
12460 case $ac_tag in
12461 :[FHLC]) ac_mode=$ac_tag; continue;;
12462 esac
12463 case $ac_mode$ac_tag in
12464 :[FHL]*:*);;
12465 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12466 :[FH]-) ac_tag=-:-;;
12467 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12468 esac
12469 ac_save_IFS=$IFS
12470 IFS=:
12471 set x $ac_tag
12472 IFS=$ac_save_IFS
12473 shift
12474 ac_file=$1
12475 shift
12476
12477 case $ac_mode in
12478 :L) ac_source=$1;;
12479 :[FH])
12480 ac_file_inputs=
12481 for ac_f
12482 do
12483 case $ac_f in
12484 -) ac_f="$ac_tmp/stdin";;
12485 *) # Look for the file first in the build tree, then in the source tree
12486 # (if the path is not absolute). The absolute path cannot be DOS-style,
12487 # because $ac_f cannot contain `:'.
12488 test -f "$ac_f" ||
12489 case $ac_f in
12490 [\\/$]*) false;;
12491 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12492 esac ||
12493 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12494 esac
12495 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12496 as_fn_append ac_file_inputs " '$ac_f'"
12497 done
12498
12499 # Let's still pretend it is `configure' which instantiates (i.e., don't
12500 # use $as_me), people would be surprised to read:
12501 # /* config.h. Generated by config.status. */
12502 configure_input='Generated from '`
12503 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12504 `' by configure.'
12505 if test x"$ac_file" != x-; then
12506 configure_input="$ac_file. $configure_input"
12507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12508 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12509 fi
12510 # Neutralize special characters interpreted by sed in replacement strings.
12511 case $configure_input in #(
12512 *\&* | *\|* | *\\* )
12513 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12514 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12515 *) ac_sed_conf_input=$configure_input;;
12516 esac
12517
12518 case $ac_tag in
12519 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12520 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12521 esac
12522 ;;
12523 esac
12524
12525 ac_dir=`$as_dirname -- "$ac_file" ||
12526 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12527 X"$ac_file" : 'X\(//\)[^/]' \| \
12528 X"$ac_file" : 'X\(//\)$' \| \
12529 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12530 printf "%s\n" X"$ac_file" |
12531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12532 s//\1/
12533 q
12534 }
12535 /^X\(\/\/\)[^/].*/{
12536 s//\1/
12537 q
12538 }
12539 /^X\(\/\/\)$/{
12540 s//\1/
12541 q
12542 }
12543 /^X\(\/\).*/{
12544 s//\1/
12545 q
12546 }
12547 s/.*/./; q'`
12548 as_dir="$ac_dir"; as_fn_mkdir_p
12549 ac_builddir=.
12550
12551 case "$ac_dir" in
12552 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12553 *)
12554 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12555 # A ".." for each directory in $ac_dir_suffix.
12556 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12557 case $ac_top_builddir_sub in
12558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12560 esac ;;
12561 esac
12562 ac_abs_top_builddir=$ac_pwd
12563 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12564 # for backward compatibility:
12565 ac_top_builddir=$ac_top_build_prefix
12566
12567 case $srcdir in
12568 .) # We are building in place.
12569 ac_srcdir=.
12570 ac_top_srcdir=$ac_top_builddir_sub
12571 ac_abs_top_srcdir=$ac_pwd ;;
12572 [\\/]* | ?:[\\/]* ) # Absolute name.
12573 ac_srcdir=$srcdir$ac_dir_suffix;
12574 ac_top_srcdir=$srcdir
12575 ac_abs_top_srcdir=$srcdir ;;
12576 *) # Relative name.
12577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12578 ac_top_srcdir=$ac_top_build_prefix$srcdir
12579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12580 esac
12581 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12582
12583
12584 case $ac_mode in
12585 :F)
12586 #
12587 # CONFIG_FILE
12588 #
12589
12590 case $INSTALL in
12591 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12592 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12593 esac
12594 ac_MKDIR_P=$MKDIR_P
12595 case $MKDIR_P in
12596 [\\/$]* | ?:[\\/]* ) ;;
12597 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12598 esac
12599 _ACEOF
12600
12601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12602 # If the template does not know about datarootdir, expand it.
12603 # FIXME: This hack should be removed a few years after 2.60.
12604 ac_datarootdir_hack=; ac_datarootdir_seen=
12605 ac_sed_dataroot='
12606 /datarootdir/ {
12607 p
12608 q
12609 }
12610 /@datadir@/p
12611 /@docdir@/p
12612 /@infodir@/p
12613 /@localedir@/p
12614 /@mandir@/p'
12615 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12616 *datarootdir*) ac_datarootdir_seen=yes;;
12617 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12619 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12620 _ACEOF
12621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12622 ac_datarootdir_hack='
12623 s&@datadir@&$datadir&g
12624 s&@docdir@&$docdir&g
12625 s&@infodir@&$infodir&g
12626 s&@localedir@&$localedir&g
12627 s&@mandir@&$mandir&g
12628 s&\\\${datarootdir}&$datarootdir&g' ;;
12629 esac
12630 _ACEOF
12631
12632 # Neutralize VPATH when `$srcdir' = `.'.
12633 # Shell code in configure.ac might set extrasub.
12634 # FIXME: do we really want to maintain this feature?
12635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12636 ac_sed_extra="$ac_vpsub
12637 $extrasub
12638 _ACEOF
12639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12640 :t
12641 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12642 s|@configure_input@|$ac_sed_conf_input|;t t
12643 s&@top_builddir@&$ac_top_builddir_sub&;t t
12644 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12645 s&@srcdir@&$ac_srcdir&;t t
12646 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12647 s&@top_srcdir@&$ac_top_srcdir&;t t
12648 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12649 s&@builddir@&$ac_builddir&;t t
12650 s&@abs_builddir@&$ac_abs_builddir&;t t
12651 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12652 s&@INSTALL@&$ac_INSTALL&;t t
12653 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12654 $ac_datarootdir_hack
12655 "
12656 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12657 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12658
12659 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12660 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12661 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12662 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12664 which seems to be undefined. Please make sure it is defined" >&5
12665 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12666 which seems to be undefined. Please make sure it is defined" >&2;}
12667
12668 rm -f "$ac_tmp/stdin"
12669 case $ac_file in
12670 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12671 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12672 esac \
12673 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12674 ;;
12675 :H)
12676 #
12677 # CONFIG_HEADER
12678 #
12679 if test x"$ac_file" != x-; then
12680 {
12681 printf "%s\n" "/* $configure_input */" >&1 \
12682 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12683 } >"$ac_tmp/config.h" \
12684 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12685 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12687 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12688 else
12689 rm -f "$ac_file"
12690 mv "$ac_tmp/config.h" "$ac_file" \
12691 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12692 fi
12693 else
12694 printf "%s\n" "/* $configure_input */" >&1 \
12695 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12696 || as_fn_error $? "could not create -" "$LINENO" 5
12697 fi
12698 # Compute "$ac_file"'s index in $config_headers.
12699 _am_arg="$ac_file"
12700 _am_stamp_count=1
12701 for _am_header in $config_headers :; do
12702 case $_am_header in
12703 $_am_arg | $_am_arg:* )
12704 break ;;
12705 * )
12706 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12707 esac
12708 done
12709 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12710 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12711 X"$_am_arg" : 'X\(//\)[^/]' \| \
12712 X"$_am_arg" : 'X\(//\)$' \| \
12713 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12714 printf "%s\n" X"$_am_arg" |
12715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12716 s//\1/
12717 q
12718 }
12719 /^X\(\/\/\)[^/].*/{
12720 s//\1/
12721 q
12722 }
12723 /^X\(\/\/\)$/{
12724 s//\1/
12725 q
12726 }
12727 /^X\(\/\).*/{
12728 s//\1/
12729 q
12730 }
12731 s/.*/./; q'`/stamp-h$_am_stamp_count
12732 ;;
12733
12734 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12735 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12736 ;;
12737 esac
12738
12739
12740 case $ac_file$ac_mode in
12741 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12742 # Older Autoconf quotes --file arguments for eval, but not when files
12743 # are listed without --file. Let's play safe and only enable the eval
12744 # if we detect the quoting.
12745 # TODO: see whether this extra hack can be removed once we start
12746 # requiring Autoconf 2.70 or later.
12747 case $CONFIG_FILES in #(
12748 *\'*) :
12749 eval set x "$CONFIG_FILES" ;; #(
12750 *) :
12751 set x $CONFIG_FILES ;; #(
12752 *) :
12753 ;;
12754 esac
12755 shift
12756 # Used to flag and report bootstrapping failures.
12757 am_rc=0
12758 for am_mf
12759 do
12760 # Strip MF so we end up with the name of the file.
12761 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12762 # Check whether this is an Automake generated Makefile which includes
12763 # dependency-tracking related rules and includes.
12764 # Grep'ing the whole file directly is not great: AIX grep has a line
12765 # limit of 2048, but all sed's we know have understand at least 4000.
12766 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12767 || continue
12768 am_dirpart=`$as_dirname -- "$am_mf" ||
12769 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12770 X"$am_mf" : 'X\(//\)[^/]' \| \
12771 X"$am_mf" : 'X\(//\)$' \| \
12772 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12773 printf "%s\n" X"$am_mf" |
12774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12775 s//\1/
12776 q
12777 }
12778 /^X\(\/\/\)[^/].*/{
12779 s//\1/
12780 q
12781 }
12782 /^X\(\/\/\)$/{
12783 s//\1/
12784 q
12785 }
12786 /^X\(\/\).*/{
12787 s//\1/
12788 q
12789 }
12790 s/.*/./; q'`
12791 am_filepart=`$as_basename -- "$am_mf" ||
12792 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12793 X"$am_mf" : 'X\(//\)$' \| \
12794 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12795 printf "%s\n" X/"$am_mf" |
12796 sed '/^.*\/\([^/][^/]*\)\/*$/{
12797 s//\1/
12798 q
12799 }
12800 /^X\/\(\/\/\)$/{
12801 s//\1/
12802 q
12803 }
12804 /^X\/\(\/\).*/{
12805 s//\1/
12806 q
12807 }
12808 s/.*/./; q'`
12809 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12810 && sed -e '/# am--include-marker/d' "$am_filepart" \
12811 | $MAKE -f - am--depfiles" >&5
12812 (cd "$am_dirpart" \
12813 && sed -e '/# am--include-marker/d' "$am_filepart" \
12814 | $MAKE -f - am--depfiles) >&5 2>&5
12815 ac_status=$?
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); } || am_rc=$?
12818 done
12819 if test $am_rc -ne 0; then
12820 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12821 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12822 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12823 for automatic dependency tracking. If GNU make was not used, consider
12824 re-running the configure script with MAKE=\"gmake\" (or whatever is
12825 necessary). You can also try re-running configure with the
12826 '--disable-dependency-tracking' option to at least be able to build
12827 the package (albeit without support for automatic dependency tracking).
12828 See \`config.log' for more details" "$LINENO" 5; }
12829 fi
12830 { am_dirpart=; unset am_dirpart;}
12831 { am_filepart=; unset am_filepart;}
12832 { am_mf=; unset am_mf;}
12833 { am_rc=; unset am_rc;}
12834 rm -f conftest-deps.mk
12835 }
12836 ;;
12837
12838 esac
12839 done # for ac_tag
12840
12841
12842 as_fn_exit 0
12843 _ACEOF
12844 ac_clean_files=$ac_clean_files_save
12845
12846 test $ac_write_fail = 0 ||
12847 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12848
12849
12850 # configure is writing to config.log, and then calls config.status.
12851 # config.status does its own redirection, appending to config.log.
12852 # Unfortunately, on DOS this fails, as config.log is still kept open
12853 # by configure, so config.status won't be able to write to it; its
12854 # output is simply discarded. So we exec the FD to /dev/null,
12855 # effectively closing config.log, so it can be properly (re)opened and
12856 # appended to by config.status. When coming back to configure, we
12857 # need to make the FD available again.
12858 if test "$no_create" != yes; then
12859 ac_cs_success=:
12860 ac_config_status_args=
12861 test "$silent" = yes &&
12862 ac_config_status_args="$ac_config_status_args --quiet"
12863 exec 5>/dev/null
12864 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12865 exec 5>>config.log
12866 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12867 # would make configure fail if this is the last instruction.
12868 $ac_cs_success || as_fn_exit 1
12869 fi
12870 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12872 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12873 fi
12874
12875
12876