configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xprop 1.2.5.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xprop/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://gitlab.freedesktop.org/xorg/app/xprop/issues
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='xprop'
583 PACKAGE_TARNAME='xprop'
584 PACKAGE_VERSION='1.2.5'
585 PACKAGE_STRING='xprop 1.2.5'
586 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xprop/issues'
587 PACKAGE_URL=''
588
589 ac_unique_file="Makefile.am"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 LINT_FALSE
631 LINT_TRUE
632 LINT_FLAGS
633 LINT
634 XPROP_LIBS
635 XPROP_CFLAGS
636 MAN_SUBSTS
637 XORG_MAN_PAGE
638 ADMIN_MAN_DIR
639 DRIVER_MAN_DIR
640 MISC_MAN_DIR
641 FILE_MAN_DIR
642 LIB_MAN_DIR
643 APP_MAN_DIR
644 ADMIN_MAN_SUFFIX
645 DRIVER_MAN_SUFFIX
646 MISC_MAN_SUFFIX
647 FILE_MAN_SUFFIX
648 LIB_MAN_SUFFIX
649 APP_MAN_SUFFIX
650 SED
651 host_os
652 host_vendor
653 host_cpu
654 host
655 build_os
656 build_vendor
657 build_cpu
658 build
659 INSTALL_CMD
660 PKG_CONFIG_LIBDIR
661 PKG_CONFIG_PATH
662 PKG_CONFIG
663 CHANGELOG_CMD
664 STRICT_CFLAGS
665 CWARNFLAGS
666 BASE_CFLAGS
667 EGREP
668 GREP
669 CPP
670 am__fastdepCC_FALSE
671 am__fastdepCC_TRUE
672 CCDEPMODE
673 am__nodep
674 AMDEPBACKSLASH
675 AMDEP_FALSE
676 AMDEP_TRUE
677 am__include
678 DEPDIR
679 OBJEXT
680 EXEEXT
681 ac_ct_CC
682 CPPFLAGS
683 LDFLAGS
684 CFLAGS
685 CC
686 AM_BACKSLASH
687 AM_DEFAULT_VERBOSITY
688 AM_DEFAULT_V
689 AM_V
690 am__untar
691 am__tar
692 AMTAR
693 am__leading_dot
694 SET_MAKE
695 AWK
696 mkdir_p
697 MKDIR_P
698 INSTALL_STRIP_PROGRAM
699 STRIP
700 install_sh
701 MAKEINFO
702 AUTOHEADER
703 AUTOMAKE
704 AUTOCONF
705 ACLOCAL
706 VERSION
707 PACKAGE
708 CYGPATH_W
709 am__isrc
710 INSTALL_DATA
711 INSTALL_SCRIPT
712 INSTALL_PROGRAM
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 runstatedir
733 localstatedir
734 sharedstatedir
735 sysconfdir
736 datadir
737 datarootdir
738 libexecdir
739 sbindir
740 bindir
741 program_transform_name
742 prefix
743 exec_prefix
744 PACKAGE_URL
745 PACKAGE_BUGREPORT
746 PACKAGE_STRING
747 PACKAGE_VERSION
748 PACKAGE_TARNAME
749 PACKAGE_NAME
750 PATH_SEPARATOR
751 SHELL
752 am__quote'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_silent_rules
757 enable_dependency_tracking
758 enable_selective_werror
759 enable_strict_compilation
760 with_lint
761 '
762 ac_precious_vars='build_alias
763 host_alias
764 target_alias
765 CC
766 CFLAGS
767 LDFLAGS
768 LIBS
769 CPPFLAGS
770 CPP
771 PKG_CONFIG
772 PKG_CONFIG_PATH
773 PKG_CONFIG_LIBDIR
774 XPROP_CFLAGS
775 XPROP_LIBS
776 LINT
777 LINT_FLAGS'
778
779
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 ac_unrecognized_opts=
784 ac_unrecognized_sep=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
787 cache_file=/dev/null
788 exec_prefix=NONE
789 no_create=
790 no_recursion=
791 prefix=NONE
792 program_prefix=NONE
793 program_suffix=NONE
794 program_transform_name=s,x,x,
795 silent=
796 site=
797 srcdir=
798 verbose=
799 x_includes=NONE
800 x_libraries=NONE
801
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 runstatedir='${localstatedir}/run'
817 includedir='${prefix}/include'
818 oldincludedir='/usr/include'
819 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820 infodir='${datarootdir}/info'
821 htmldir='${docdir}'
822 dvidir='${docdir}'
823 pdfdir='${docdir}'
824 psdir='${docdir}'
825 libdir='${exec_prefix}/lib'
826 localedir='${datarootdir}/locale'
827 mandir='${datarootdir}/man'
828
829 ac_prev=
830 ac_dashdash=
831 for ac_option
832 do
833 # If the previous option needs an argument, assign it.
834 if test -n "$ac_prev"; then
835 eval $ac_prev=\$ac_option
836 ac_prev=
837 continue
838 fi
839
840 case $ac_option in
841 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 *=) ac_optarg= ;;
843 *) ac_optarg=yes ;;
844 esac
845
846 # Accept the important Cygnus configure options, so we can diagnose typos.
847
848 case $ac_dashdash$ac_option in
849 --)
850 ac_dashdash=yes ;;
851
852 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 ac_prev=bindir ;;
854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855 bindir=$ac_optarg ;;
856
857 -build | --build | --buil | --bui | --bu)
858 ac_prev=build_alias ;;
859 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860 build_alias=$ac_optarg ;;
861
862 -cache-file | --cache-file | --cache-fil | --cache-fi \
863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864 ac_prev=cache_file ;;
865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867 cache_file=$ac_optarg ;;
868
869 --config-cache | -C)
870 cache_file=config.cache ;;
871
872 -datadir | --datadir | --datadi | --datad)
873 ac_prev=datadir ;;
874 -datadir=* | --datadir=* | --datadi=* | --datad=*)
875 datadir=$ac_optarg ;;
876
877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878 | --dataroo | --dataro | --datar)
879 ac_prev=datarootdir ;;
880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882 datarootdir=$ac_optarg ;;
883
884 -disable-* | --disable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error $? "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
892 *"
893 "enable_$ac_useropt"
894 "*) ;;
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
897 esac
898 eval enable_$ac_useropt=no ;;
899
900 -docdir | --docdir | --docdi | --doc | --do)
901 ac_prev=docdir ;;
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903 docdir=$ac_optarg ;;
904
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 ac_prev=dvidir ;;
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908 dvidir=$ac_optarg ;;
909
910 -enable-* | --enable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error $? "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
918 *"
919 "enable_$ac_useropt"
920 "*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=\$ac_optarg ;;
925
926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928 | --exec | --exe | --ex)
929 ac_prev=exec_prefix ;;
930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932 | --exec=* | --exe=* | --ex=*)
933 exec_prefix=$ac_optarg ;;
934
935 -gas | --gas | --ga | --g)
936 # Obsolete; use --with-gas.
937 with_gas=yes ;;
938
939 -help | --help | --hel | --he | -h)
940 ac_init_help=long ;;
941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942 ac_init_help=recursive ;;
943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944 ac_init_help=short ;;
945
946 -host | --host | --hos | --ho)
947 ac_prev=host_alias ;;
948 -host=* | --host=* | --hos=* | --ho=*)
949 host_alias=$ac_optarg ;;
950
951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952 ac_prev=htmldir ;;
953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954 | --ht=*)
955 htmldir=$ac_optarg ;;
956
957 -includedir | --includedir | --includedi | --included | --include \
958 | --includ | --inclu | --incl | --inc)
959 ac_prev=includedir ;;
960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961 | --includ=* | --inclu=* | --incl=* | --inc=*)
962 includedir=$ac_optarg ;;
963
964 -infodir | --infodir | --infodi | --infod | --info | --inf)
965 ac_prev=infodir ;;
966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967 infodir=$ac_optarg ;;
968
969 -libdir | --libdir | --libdi | --libd)
970 ac_prev=libdir ;;
971 -libdir=* | --libdir=* | --libdi=* | --libd=*)
972 libdir=$ac_optarg ;;
973
974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975 | --libexe | --libex | --libe)
976 ac_prev=libexecdir ;;
977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978 | --libexe=* | --libex=* | --libe=*)
979 libexecdir=$ac_optarg ;;
980
981 -localedir | --localedir | --localedi | --localed | --locale)
982 ac_prev=localedir ;;
983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984 localedir=$ac_optarg ;;
985
986 -localstatedir | --localstatedir | --localstatedi | --localstated \
987 | --localstate | --localstat | --localsta | --localst | --locals)
988 ac_prev=localstatedir ;;
989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991 localstatedir=$ac_optarg ;;
992
993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994 ac_prev=mandir ;;
995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 mandir=$ac_optarg ;;
997
998 -nfp | --nfp | --nf)
999 # Obsolete; use --without-fp.
1000 with_fp=no ;;
1001
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003 | --no-cr | --no-c | -n)
1004 no_create=yes ;;
1005
1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008 no_recursion=yes ;;
1009
1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012 | --oldin | --oldi | --old | --ol | --o)
1013 ac_prev=oldincludedir ;;
1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017 oldincludedir=$ac_optarg ;;
1018
1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020 ac_prev=prefix ;;
1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022 prefix=$ac_optarg ;;
1023
1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025 | --program-pre | --program-pr | --program-p)
1026 ac_prev=program_prefix ;;
1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029 program_prefix=$ac_optarg ;;
1030
1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032 | --program-suf | --program-su | --program-s)
1033 ac_prev=program_suffix ;;
1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036 program_suffix=$ac_optarg ;;
1037
1038 -program-transform-name | --program-transform-name \
1039 | --program-transform-nam | --program-transform-na \
1040 | --program-transform-n | --program-transform- \
1041 | --program-transform | --program-transfor \
1042 | --program-transfo | --program-transf \
1043 | --program-trans | --program-tran \
1044 | --progr-tra | --program-tr | --program-t)
1045 ac_prev=program_transform_name ;;
1046 -program-transform-name=* | --program-transform-name=* \
1047 | --program-transform-nam=* | --program-transform-na=* \
1048 | --program-transform-n=* | --program-transform-=* \
1049 | --program-transform=* | --program-transfor=* \
1050 | --program-transfo=* | --program-transf=* \
1051 | --program-trans=* | --program-tran=* \
1052 | --progr-tra=* | --program-tr=* | --program-t=*)
1053 program_transform_name=$ac_optarg ;;
1054
1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056 ac_prev=pdfdir ;;
1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058 pdfdir=$ac_optarg ;;
1059
1060 -psdir | --psdir | --psdi | --psd | --ps)
1061 ac_prev=psdir ;;
1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063 psdir=$ac_optarg ;;
1064
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 silent=yes ;;
1068
1069 -runstatedir | --runstatedir | --runstatedi | --runstated \
1070 | --runstate | --runstat | --runsta | --runst | --runs \
1071 | --run | --ru | --r)
1072 ac_prev=runstatedir ;;
1073 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1074 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1075 | --run=* | --ru=* | --r=*)
1076 runstatedir=$ac_optarg ;;
1077
1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079 ac_prev=sbindir ;;
1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081 | --sbi=* | --sb=*)
1082 sbindir=$ac_optarg ;;
1083
1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086 | --sharedst | --shareds | --shared | --share | --shar \
1087 | --sha | --sh)
1088 ac_prev=sharedstatedir ;;
1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092 | --sha=* | --sh=*)
1093 sharedstatedir=$ac_optarg ;;
1094
1095 -site | --site | --sit)
1096 ac_prev=site ;;
1097 -site=* | --site=* | --sit=*)
1098 site=$ac_optarg ;;
1099
1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101 ac_prev=srcdir ;;
1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103 srcdir=$ac_optarg ;;
1104
1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106 | --syscon | --sysco | --sysc | --sys | --sy)
1107 ac_prev=sysconfdir ;;
1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110 sysconfdir=$ac_optarg ;;
1111
1112 -target | --target | --targe | --targ | --tar | --ta | --t)
1113 ac_prev=target_alias ;;
1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115 target_alias=$ac_optarg ;;
1116
1117 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 verbose=yes ;;
1119
1120 -version | --version | --versio | --versi | --vers | -V)
1121 ac_init_version=: ;;
1122
1123 -with-* | --with-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error $? "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1131 *"
1132 "with_$ac_useropt"
1133 "*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval with_$ac_useropt=\$ac_optarg ;;
1138
1139 -without-* | --without-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=no ;;
1154
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1158
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1165
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1172
1173 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1174 Try \`$0 --help' for more information"
1175 ;;
1176
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 case $ac_envvar in #(
1181 '' | [0-9]* | *[!_$as_cr_alnum]* )
1182 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1183 esac
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1186
1187 *)
1188 # FIXME: should be removed in autoconf 3.0.
1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1193 ;;
1194
1195 esac
1196 done
1197
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 as_fn_error $? "missing argument to $ac_option"
1201 fi
1202
1203 if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1205 no) ;;
1206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208 esac
1209 fi
1210
1211 # Check all directory arguments for consistency.
1212 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir runstatedir
1216 do
1217 eval ac_val=\$$ac_var
1218 # Remove trailing slashes.
1219 case $ac_val in
1220 */ )
1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\$ac_val;;
1223 esac
1224 # Be sure to have absolute directory names.
1225 case $ac_val in
1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 esac
1229 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1230 done
1231
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1238
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error $? "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error $? "pwd does not report name of working directory"
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)[^/].*/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\).*/{
1285 s//\1/
1286 q
1287 }
1288 s/.*/./; q'`
1289 srcdir=$ac_confdir
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 srcdir=..
1292 fi
1293 else
1294 ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1299 fi
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1303 pwd)`
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 srcdir=.
1307 fi
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1311 case $srcdir in
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 esac
1314 for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 done
1320
1321 #
1322 # Report the --help message.
1323 #
1324 if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1327 cat <<_ACEOF
1328 \`configure' configures xprop 1.2.5 to adapt to many kinds of systems.
1329
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE. See below for descriptions of some of the useful variables.
1334
1335 Defaults for the options are specified in brackets.
1336
1337 Configuration:
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking ...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347
1348 Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 [PREFIX]
1353
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1358
1359 For better control, use the options below.
1360
1361 Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/xprop]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1382 _ACEOF
1383
1384 cat <<\_ACEOF
1385
1386 Program names:
1387 --program-prefix=PREFIX prepend PREFIX to installed program names
1388 --program-suffix=SUFFIX append SUFFIX to installed program names
1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1390
1391 System types:
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 _ACEOF
1395 fi
1396
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of xprop 1.2.5:";;
1400 esac
1401 cat <<\_ACEOF
1402
1403 Optional Features:
1404 --disable-option-checking ignore unrecognized --enable/--with options
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --enable-silent-rules less verbose build output (undo: "make V=1")
1408 --disable-silent-rules verbose build output (undo: "make V=0")
1409 --enable-dependency-tracking
1410 do not reject slow dependency extractors
1411 --disable-dependency-tracking
1412 speeds up one-time build
1413 --disable-selective-werror
1414 Turn off selective compiler errors. (default:
1415 enabled)
1416 --enable-strict-compilation
1417 Enable all warnings from compiler and make them
1418 errors (default: disabled)
1419
1420 Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-lint Use a lint-style source code checker (default:
1424 disabled)
1425
1426 Some influential environment variables:
1427 CC C compiler command
1428 CFLAGS C compiler flags
1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1430 nonstandard directory <lib dir>
1431 LIBS libraries to pass to the linker, e.g. -l<library>
1432 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1433 you have headers in a nonstandard directory <include dir>
1434 CPP C preprocessor
1435 PKG_CONFIG path to pkg-config utility
1436 PKG_CONFIG_PATH
1437 directories to add to pkg-config's search path
1438 PKG_CONFIG_LIBDIR
1439 path overriding pkg-config's built-in search path
1440 XPROP_CFLAGS
1441 C compiler flags for XPROP, overriding pkg-config
1442 XPROP_LIBS linker flags for XPROP, overriding pkg-config
1443 LINT Path to a lint-style command
1444 LINT_FLAGS Flags for the lint-style command
1445
1446 Use these variables to override the choices made by `configure' or to help
1447 it to find libraries and programs with nonstandard names/locations.
1448
1449 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xprop/issues>.
1450 _ACEOF
1451 ac_status=$?
1452 fi
1453
1454 if test "$ac_init_help" = "recursive"; then
1455 # If there are subdirs, report their specific --help.
1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1457 test -d "$ac_dir" ||
1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 continue
1460 ac_builddir=.
1461
1462 case "$ac_dir" in
1463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464 *)
1465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466 # A ".." for each directory in $ac_dir_suffix.
1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 esac ;;
1472 esac
1473 ac_abs_top_builddir=$ac_pwd
1474 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475 # for backward compatibility:
1476 ac_top_builddir=$ac_top_build_prefix
1477
1478 case $srcdir in
1479 .) # We are building in place.
1480 ac_srcdir=.
1481 ac_top_srcdir=$ac_top_builddir_sub
1482 ac_abs_top_srcdir=$ac_pwd ;;
1483 [\\/]* | ?:[\\/]* ) # Absolute name.
1484 ac_srcdir=$srcdir$ac_dir_suffix;
1485 ac_top_srcdir=$srcdir
1486 ac_abs_top_srcdir=$srcdir ;;
1487 *) # Relative name.
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1491 esac
1492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493
1494 cd "$ac_dir" || { ac_status=$?; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure" --help=recursive
1502 else
1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504 fi || ac_status=$?
1505 cd "$ac_pwd" || { ac_status=$?; break; }
1506 done
1507 fi
1508
1509 test -n "$ac_init_help" && exit $ac_status
1510 if $ac_init_version; then
1511 cat <<\_ACEOF
1512 xprop configure 1.2.5
1513 generated by GNU Autoconf 2.69
1514
1515 Copyright (C) 2012 Free Software Foundation, Inc.
1516 This configure script is free software; the Free Software Foundation
1517 gives unlimited permission to copy, distribute and modify it.
1518 _ACEOF
1519 exit
1520 fi
1521
1522 ## ------------------------ ##
1523 ## Autoconf initialization. ##
1524 ## ------------------------ ##
1525
1526 # ac_fn_c_try_compile LINENO
1527 # --------------------------
1528 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1529 ac_fn_c_try_compile ()
1530 {
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 rm -f conftest.$ac_objext
1533 if { { ac_try="$ac_compile"
1534 case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537 esac
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_compile") 2>conftest.err
1541 ac_status=$?
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1546 fi
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } && {
1549 test -z "$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 } && test -s conftest.$ac_objext; then :
1552 ac_retval=0
1553 else
1554 $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1556
1557 ac_retval=1
1558 fi
1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560 as_fn_set_status $ac_retval
1561
1562 } # ac_fn_c_try_compile
1563
1564 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1565 # ---------------------------------------------
1566 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1567 # accordingly.
1568 ac_fn_c_check_decl ()
1569 {
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 as_decl_name=`echo $2|sed 's/ *(.*//'`
1572 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1574 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1575 if eval \${$3+:} false; then :
1576 $as_echo_n "(cached) " >&6
1577 else
1578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1579 /* end confdefs.h. */
1580 $4
1581 int
1582 main ()
1583 {
1584 #ifndef $as_decl_name
1585 #ifdef __cplusplus
1586 (void) $as_decl_use;
1587 #else
1588 (void) $as_decl_name;
1589 #endif
1590 #endif
1591
1592 ;
1593 return 0;
1594 }
1595 _ACEOF
1596 if ac_fn_c_try_compile "$LINENO"; then :
1597 eval "$3=yes"
1598 else
1599 eval "$3=no"
1600 fi
1601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1602 fi
1603 eval ac_res=\$$3
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1605 $as_echo "$ac_res" >&6; }
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607
1608 } # ac_fn_c_check_decl
1609
1610 # ac_fn_c_try_cpp LINENO
1611 # ----------------------
1612 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_cpp ()
1614 {
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 if { { ac_try="$ac_cpp conftest.$ac_ext"
1617 case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1629 fi
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } > conftest.i && {
1632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 }; then :
1635 ac_retval=0
1636 else
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=1
1641 fi
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1644
1645 } # ac_fn_c_try_cpp
1646
1647 # ac_fn_c_try_run LINENO
1648 # ----------------------
1649 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1650 # that executables *can* be run.
1651 ac_fn_c_try_run ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { { ac_try="$ac_link"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_link") 2>&5
1662 ac_status=$?
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1665 { { case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_try") 2>&5
1672 ac_status=$?
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; }; }; then :
1675 ac_retval=0
1676 else
1677 $as_echo "$as_me: program exited with status $ac_status" >&5
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=$ac_status
1682 fi
1683 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1686
1687 } # ac_fn_c_try_run
1688
1689 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1690 # -------------------------------------------------------
1691 # Tests whether HEADER exists and can be compiled using the include files in
1692 # INCLUDES, setting the cache variable VAR accordingly.
1693 ac_fn_c_check_header_compile ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697 $as_echo_n "checking for $2... " >&6; }
1698 if eval \${$3+:} false; then :
1699 $as_echo_n "(cached) " >&6
1700 else
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h. */
1703 $4
1704 #include <$2>
1705 _ACEOF
1706 if ac_fn_c_try_compile "$LINENO"; then :
1707 eval "$3=yes"
1708 else
1709 eval "$3=no"
1710 fi
1711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1712 fi
1713 eval ac_res=\$$3
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715 $as_echo "$ac_res" >&6; }
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717
1718 } # ac_fn_c_check_header_compile
1719
1720 # ac_fn_c_try_link LINENO
1721 # -----------------------
1722 # Try to link conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_c_try_link ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext conftest$ac_exeext
1727 if { { ac_try="$ac_link"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1740 fi
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest$ac_exeext && {
1746 test "$cross_compiling" = yes ||
1747 test -x conftest$ac_exeext
1748 }; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 ac_retval=1
1755 fi
1756 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1757 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1758 # interfere with the next link command; also delete a directory that is
1759 # left behind by Apple's compiler. We do this before executing the actions.
1760 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status $ac_retval
1763
1764 } # ac_fn_c_try_link
1765
1766 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1767 # -------------------------------------------------------
1768 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1769 # the include files in INCLUDES and setting the cache variable VAR
1770 # accordingly.
1771 ac_fn_c_check_header_mongrel ()
1772 {
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 if eval \${$3+:} false; then :
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778 $as_echo_n "(cached) " >&6
1779 fi
1780 eval ac_res=\$$3
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783 else
1784 # Is the header compilable?
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1786 $as_echo_n "checking $2 usability... " >&6; }
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1789 $4
1790 #include <$2>
1791 _ACEOF
1792 if ac_fn_c_try_compile "$LINENO"; then :
1793 ac_header_compiler=yes
1794 else
1795 ac_header_compiler=no
1796 fi
1797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1799 $as_echo "$ac_header_compiler" >&6; }
1800
1801 # Is the header present?
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1803 $as_echo_n "checking $2 presence... " >&6; }
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1806 #include <$2>
1807 _ACEOF
1808 if ac_fn_c_try_cpp "$LINENO"; then :
1809 ac_header_preproc=yes
1810 else
1811 ac_header_preproc=no
1812 fi
1813 rm -f conftest.err conftest.i conftest.$ac_ext
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1815 $as_echo "$ac_header_preproc" >&6; }
1816
1817 # So? What about this header?
1818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1819 yes:no: )
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1821 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1823 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1824 ;;
1825 no:yes:* )
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1827 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1829 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1831 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1833 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1835 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1836 ( $as_echo "## ------------------------------------------------------------------- ##
1837 ## Report this to https://gitlab.freedesktop.org/xorg/app/xprop/issues ##
1838 ## ------------------------------------------------------------------- ##"
1839 ) | sed "s/^/$as_me: WARNING: /" >&2
1840 ;;
1841 esac
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if eval \${$3+:} false; then :
1845 $as_echo_n "(cached) " >&6
1846 else
1847 eval "$3=\$ac_header_compiler"
1848 fi
1849 eval ac_res=\$$3
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 fi
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854
1855 } # ac_fn_c_check_header_mongrel
1856 cat >config.log <<_ACEOF
1857 This file contains any messages produced by compilers while
1858 running configure, to aid debugging if configure makes a mistake.
1859
1860 It was created by xprop $as_me 1.2.5, which was
1861 generated by GNU Autoconf 2.69. Invocation command line was
1862
1863 $ $0 $@
1864
1865 _ACEOF
1866 exec 5>>config.log
1867 {
1868 cat <<_ASUNAME
1869 ## --------- ##
1870 ## Platform. ##
1871 ## --------- ##
1872
1873 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1874 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1875 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1876 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1877 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1878
1879 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1880 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1881
1882 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1883 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1884 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1885 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1886 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1887 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1888 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1889
1890 _ASUNAME
1891
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1894 do
1895 IFS=$as_save_IFS
1896 test -z "$as_dir" && as_dir=.
1897 $as_echo "PATH: $as_dir"
1898 done
1899 IFS=$as_save_IFS
1900
1901 } >&5
1902
1903 cat >&5 <<_ACEOF
1904
1905
1906 ## ----------- ##
1907 ## Core tests. ##
1908 ## ----------- ##
1909
1910 _ACEOF
1911
1912
1913 # Keep a trace of the command line.
1914 # Strip out --no-create and --no-recursion so they do not pile up.
1915 # Strip out --silent because we don't want to record it for future runs.
1916 # Also quote any args containing shell meta-characters.
1917 # Make two passes to allow for proper duplicate-argument suppression.
1918 ac_configure_args=
1919 ac_configure_args0=
1920 ac_configure_args1=
1921 ac_must_keep_next=false
1922 for ac_pass in 1 2
1923 do
1924 for ac_arg
1925 do
1926 case $ac_arg in
1927 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1928 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1929 | -silent | --silent | --silen | --sile | --sil)
1930 continue ;;
1931 *\'*)
1932 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1933 esac
1934 case $ac_pass in
1935 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1936 2)
1937 as_fn_append ac_configure_args1 " '$ac_arg'"
1938 if test $ac_must_keep_next = true; then
1939 ac_must_keep_next=false # Got value, back to normal.
1940 else
1941 case $ac_arg in
1942 *=* | --config-cache | -C | -disable-* | --disable-* \
1943 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1944 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1945 | -with-* | --with-* | -without-* | --without-* | --x)
1946 case "$ac_configure_args0 " in
1947 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1948 esac
1949 ;;
1950 -* ) ac_must_keep_next=true ;;
1951 esac
1952 fi
1953 as_fn_append ac_configure_args " '$ac_arg'"
1954 ;;
1955 esac
1956 done
1957 done
1958 { ac_configure_args0=; unset ac_configure_args0;}
1959 { ac_configure_args1=; unset ac_configure_args1;}
1960
1961 # When interrupted or exit'd, cleanup temporary files, and complete
1962 # config.log. We remove comments because anyway the quotes in there
1963 # would cause problems or look ugly.
1964 # WARNING: Use '\'' to represent an apostrophe within the trap.
1965 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1966 trap 'exit_status=$?
1967 # Save into config.log some information that might help in debugging.
1968 {
1969 echo
1970
1971 $as_echo "## ---------------- ##
1972 ## Cache variables. ##
1973 ## ---------------- ##"
1974 echo
1975 # The following way of writing the cache mishandles newlines in values,
1976 (
1977 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1978 eval ac_val=\$$ac_var
1979 case $ac_val in #(
1980 *${as_nl}*)
1981 case $ac_var in #(
1982 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1983 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1984 esac
1985 case $ac_var in #(
1986 _ | IFS | as_nl) ;; #(
1987 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1988 *) { eval $ac_var=; unset $ac_var;} ;;
1989 esac ;;
1990 esac
1991 done
1992 (set) 2>&1 |
1993 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1994 *${as_nl}ac_space=\ *)
1995 sed -n \
1996 "s/'\''/'\''\\\\'\'''\''/g;
1997 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1998 ;; #(
1999 *)
2000 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2001 ;;
2002 esac |
2003 sort
2004 )
2005 echo
2006
2007 $as_echo "## ----------------- ##
2008 ## Output variables. ##
2009 ## ----------------- ##"
2010 echo
2011 for ac_var in $ac_subst_vars
2012 do
2013 eval ac_val=\$$ac_var
2014 case $ac_val in
2015 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2016 esac
2017 $as_echo "$ac_var='\''$ac_val'\''"
2018 done | sort
2019 echo
2020
2021 if test -n "$ac_subst_files"; then
2022 $as_echo "## ------------------- ##
2023 ## File substitutions. ##
2024 ## ------------------- ##"
2025 echo
2026 for ac_var in $ac_subst_files
2027 do
2028 eval ac_val=\$$ac_var
2029 case $ac_val in
2030 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031 esac
2032 $as_echo "$ac_var='\''$ac_val'\''"
2033 done | sort
2034 echo
2035 fi
2036
2037 if test -s confdefs.h; then
2038 $as_echo "## ----------- ##
2039 ## confdefs.h. ##
2040 ## ----------- ##"
2041 echo
2042 cat confdefs.h
2043 echo
2044 fi
2045 test "$ac_signal" != 0 &&
2046 $as_echo "$as_me: caught signal $ac_signal"
2047 $as_echo "$as_me: exit $exit_status"
2048 } >&5
2049 rm -f core *.core core.conftest.* &&
2050 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2051 exit $exit_status
2052 ' 0
2053 for ac_signal in 1 2 13 15; do
2054 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2055 done
2056 ac_signal=0
2057
2058 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2059 rm -f -r conftest* confdefs.h
2060
2061 $as_echo "/* confdefs.h */" > confdefs.h
2062
2063 # Predefined preprocessor variables.
2064
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_NAME "$PACKAGE_NAME"
2067 _ACEOF
2068
2069 cat >>confdefs.h <<_ACEOF
2070 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2071 _ACEOF
2072
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2075 _ACEOF
2076
2077 cat >>confdefs.h <<_ACEOF
2078 #define PACKAGE_STRING "$PACKAGE_STRING"
2079 _ACEOF
2080
2081 cat >>confdefs.h <<_ACEOF
2082 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2083 _ACEOF
2084
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_URL "$PACKAGE_URL"
2087 _ACEOF
2088
2089
2090 # Let the site file select an alternate cache file if it wants to.
2091 # Prefer an explicitly selected file to automatically selected ones.
2092 ac_site_file1=NONE
2093 ac_site_file2=NONE
2094 if test -n "$CONFIG_SITE"; then
2095 # We do not want a PATH search for config.site.
2096 case $CONFIG_SITE in #((
2097 -*) ac_site_file1=./$CONFIG_SITE;;
2098 */*) ac_site_file1=$CONFIG_SITE;;
2099 *) ac_site_file1=./$CONFIG_SITE;;
2100 esac
2101 elif test "x$prefix" != xNONE; then
2102 ac_site_file1=$prefix/share/config.site
2103 ac_site_file2=$prefix/etc/config.site
2104 else
2105 ac_site_file1=$ac_default_prefix/share/config.site
2106 ac_site_file2=$ac_default_prefix/etc/config.site
2107 fi
2108 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2109 do
2110 test "x$ac_site_file" = xNONE && continue
2111 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2113 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2114 sed 's/^/| /' "$ac_site_file" >&5
2115 . "$ac_site_file" \
2116 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2118 as_fn_error $? "failed to load site script $ac_site_file
2119 See \`config.log' for more details" "$LINENO" 5; }
2120 fi
2121 done
2122
2123 if test -r "$cache_file"; then
2124 # Some versions of bash will fail to source /dev/null (special files
2125 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2126 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2128 $as_echo "$as_me: loading cache $cache_file" >&6;}
2129 case $cache_file in
2130 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2131 *) . "./$cache_file";;
2132 esac
2133 fi
2134 else
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2136 $as_echo "$as_me: creating cache $cache_file" >&6;}
2137 >$cache_file
2138 fi
2139
2140 # Check that the precious variables saved in the cache have kept the same
2141 # value.
2142 ac_cache_corrupted=false
2143 for ac_var in $ac_precious_vars; do
2144 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2145 eval ac_new_set=\$ac_env_${ac_var}_set
2146 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2147 eval ac_new_val=\$ac_env_${ac_var}_value
2148 case $ac_old_set,$ac_new_set in
2149 set,)
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2151 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2152 ac_cache_corrupted=: ;;
2153 ,set)
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2155 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2156 ac_cache_corrupted=: ;;
2157 ,);;
2158 *)
2159 if test "x$ac_old_val" != "x$ac_new_val"; then
2160 # differences in whitespace do not lead to failure.
2161 ac_old_val_w=`echo x $ac_old_val`
2162 ac_new_val_w=`echo x $ac_new_val`
2163 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2165 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2166 ac_cache_corrupted=:
2167 else
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2169 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2170 eval $ac_var=\$ac_old_val
2171 fi
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2173 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2175 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2176 fi;;
2177 esac
2178 # Pass precious variables to config.status.
2179 if test "$ac_new_set" = set; then
2180 case $ac_new_val in
2181 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2182 *) ac_arg=$ac_var=$ac_new_val ;;
2183 esac
2184 case " $ac_configure_args " in
2185 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2186 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2187 esac
2188 fi
2189 done
2190 if $ac_cache_corrupted; then
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2194 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2195 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2196 fi
2197 ## -------------------- ##
2198 ## Main body of script. ##
2199 ## -------------------- ##
2200
2201 ac_ext=c
2202 ac_cpp='$CPP $CPPFLAGS'
2203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2206
2207
2208
2209 ac_config_headers="$ac_config_headers config.h"
2210
2211
2212 # Initialize Automake
2213 am__api_version='1.16'
2214
2215 ac_aux_dir=
2216 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2217 if test -f "$ac_dir/install-sh"; then
2218 ac_aux_dir=$ac_dir
2219 ac_install_sh="$ac_aux_dir/install-sh -c"
2220 break
2221 elif test -f "$ac_dir/install.sh"; then
2222 ac_aux_dir=$ac_dir
2223 ac_install_sh="$ac_aux_dir/install.sh -c"
2224 break
2225 elif test -f "$ac_dir/shtool"; then
2226 ac_aux_dir=$ac_dir
2227 ac_install_sh="$ac_aux_dir/shtool install -c"
2228 break
2229 fi
2230 done
2231 if test -z "$ac_aux_dir"; then
2232 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2233 fi
2234
2235 # These three variables are undocumented and unsupported,
2236 # and are intended to be withdrawn in a future Autoconf release.
2237 # They can cause serious problems if a builder's source tree is in a directory
2238 # whose full name contains unusual characters.
2239 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2240 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2241 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2242
2243
2244 # Find a good install program. We prefer a C program (faster),
2245 # so one script is as good as another. But avoid the broken or
2246 # incompatible versions:
2247 # SysV /etc/install, /usr/sbin/install
2248 # SunOS /usr/etc/install
2249 # IRIX /sbin/install
2250 # AIX /bin/install
2251 # AmigaOS /C/install, which installs bootblocks on floppy discs
2252 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2253 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2254 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2255 # OS/2's system install, which has a completely different semantic
2256 # ./install, which can be erroneously created by make from ./install.sh.
2257 # Reject install programs that cannot install multiple files.
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2259 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2260 if test -z "$INSTALL"; then
2261 if ${ac_cv_path_install+:} false; then :
2262 $as_echo_n "(cached) " >&6
2263 else
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 for as_dir in $PATH
2266 do
2267 IFS=$as_save_IFS
2268 test -z "$as_dir" && as_dir=.
2269 # Account for people who put trailing slashes in PATH elements.
2270 case $as_dir/ in #((
2271 ./ | .// | /[cC]/* | \
2272 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2273 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2274 /usr/ucb/* ) ;;
2275 *)
2276 # OSF1 and SCO ODT 3.0 have their own names for install.
2277 # Don't use installbsd from OSF since it installs stuff as root
2278 # by default.
2279 for ac_prog in ginstall scoinst install; do
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2282 if test $ac_prog = install &&
2283 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2284 # AIX install. It has an incompatible calling convention.
2285 :
2286 elif test $ac_prog = install &&
2287 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2288 # program-specific install script used by HP pwplus--don't use.
2289 :
2290 else
2291 rm -rf conftest.one conftest.two conftest.dir
2292 echo one > conftest.one
2293 echo two > conftest.two
2294 mkdir conftest.dir
2295 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2296 test -s conftest.one && test -s conftest.two &&
2297 test -s conftest.dir/conftest.one &&
2298 test -s conftest.dir/conftest.two
2299 then
2300 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2301 break 3
2302 fi
2303 fi
2304 fi
2305 done
2306 done
2307 ;;
2308 esac
2309
2310 done
2311 IFS=$as_save_IFS
2312
2313 rm -rf conftest.one conftest.two conftest.dir
2314
2315 fi
2316 if test "${ac_cv_path_install+set}" = set; then
2317 INSTALL=$ac_cv_path_install
2318 else
2319 # As a last resort, use the slow shell script. Don't cache a
2320 # value for INSTALL within a source directory, because that will
2321 # break other packages using the cache if that directory is
2322 # removed, or if the value is a relative name.
2323 INSTALL=$ac_install_sh
2324 fi
2325 fi
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2327 $as_echo "$INSTALL" >&6; }
2328
2329 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2330 # It thinks the first close brace ends the variable substitution.
2331 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2332
2333 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2334
2335 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2336
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2338 $as_echo_n "checking whether build environment is sane... " >&6; }
2339 # Reject unsafe characters in $srcdir or the absolute working directory
2340 # name. Accept space and tab only in the latter.
2341 am_lf='
2342 '
2343 case `pwd` in
2344 *[\\\"\#\$\&\'\`$am_lf]*)
2345 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2346 esac
2347 case $srcdir in
2348 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2349 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2350 esac
2351
2352 # Do 'set' in a subshell so we don't clobber the current shell's
2353 # arguments. Must try -L first in case configure is actually a
2354 # symlink; some systems play weird games with the mod time of symlinks
2355 # (eg FreeBSD returns the mod time of the symlink's containing
2356 # directory).
2357 if (
2358 am_has_slept=no
2359 for am_try in 1 2; do
2360 echo "timestamp, slept: $am_has_slept" > conftest.file
2361 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2362 if test "$*" = "X"; then
2363 # -L didn't work.
2364 set X `ls -t "$srcdir/configure" conftest.file`
2365 fi
2366 if test "$*" != "X $srcdir/configure conftest.file" \
2367 && test "$*" != "X conftest.file $srcdir/configure"; then
2368
2369 # If neither matched, then we have a broken ls. This can happen
2370 # if, for instance, CONFIG_SHELL is bash and it inherits a
2371 # broken ls alias from the environment. This has actually
2372 # happened. Such a system could not be considered "sane".
2373 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2374 alias in your environment" "$LINENO" 5
2375 fi
2376 if test "$2" = conftest.file || test $am_try -eq 2; then
2377 break
2378 fi
2379 # Just in case.
2380 sleep 1
2381 am_has_slept=yes
2382 done
2383 test "$2" = conftest.file
2384 )
2385 then
2386 # Ok.
2387 :
2388 else
2389 as_fn_error $? "newly created file is older than distributed files!
2390 Check your system clock" "$LINENO" 5
2391 fi
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2393 $as_echo "yes" >&6; }
2394 # If we didn't sleep, we still need to ensure time stamps of config.status and
2395 # generated files are strictly newer.
2396 am_sleep_pid=
2397 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2398 ( sleep 1 ) &
2399 am_sleep_pid=$!
2400 fi
2401
2402 rm -f conftest.file
2403
2404 test "$program_prefix" != NONE &&
2405 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2406 # Use a double $ so make ignores it.
2407 test "$program_suffix" != NONE &&
2408 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2409 # Double any \ or $.
2410 # By default was `s,x,x', remove it if useless.
2411 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2412 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2413
2414 # Expand $ac_aux_dir to an absolute path.
2415 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2416
2417 if test x"${MISSING+set}" != xset; then
2418 case $am_aux_dir in
2419 *\ * | *\ *)
2420 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2421 *)
2422 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2423 esac
2424 fi
2425 # Use eval to expand $SHELL
2426 if eval "$MISSING --is-lightweight"; then
2427 am_missing_run="$MISSING "
2428 else
2429 am_missing_run=
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2431 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2432 fi
2433
2434 if test x"${install_sh+set}" != xset; then
2435 case $am_aux_dir in
2436 *\ * | *\ *)
2437 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2438 *)
2439 install_sh="\${SHELL} $am_aux_dir/install-sh"
2440 esac
2441 fi
2442
2443 # Installed binaries are usually stripped using 'strip' when the user
2444 # run "make install-strip". However 'strip' might not be the right
2445 # tool to use in cross-compilation environments, therefore Automake
2446 # will honor the 'STRIP' environment variable to overrule this program.
2447 if test "$cross_compiling" != no; then
2448 if test -n "$ac_tool_prefix"; then
2449 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2450 set dummy ${ac_tool_prefix}strip; ac_word=$2
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2452 $as_echo_n "checking for $ac_word... " >&6; }
2453 if ${ac_cv_prog_STRIP+:} false; then :
2454 $as_echo_n "(cached) " >&6
2455 else
2456 if test -n "$STRIP"; then
2457 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2458 else
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH
2461 do
2462 IFS=$as_save_IFS
2463 test -z "$as_dir" && as_dir=.
2464 for ac_exec_ext in '' $ac_executable_extensions; do
2465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2466 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 break 2
2469 fi
2470 done
2471 done
2472 IFS=$as_save_IFS
2473
2474 fi
2475 fi
2476 STRIP=$ac_cv_prog_STRIP
2477 if test -n "$STRIP"; then
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2479 $as_echo "$STRIP" >&6; }
2480 else
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2482 $as_echo "no" >&6; }
2483 fi
2484
2485
2486 fi
2487 if test -z "$ac_cv_prog_STRIP"; then
2488 ac_ct_STRIP=$STRIP
2489 # Extract the first word of "strip", so it can be a program name with args.
2490 set dummy strip; ac_word=$2
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2492 $as_echo_n "checking for $ac_word... " >&6; }
2493 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2494 $as_echo_n "(cached) " >&6
2495 else
2496 if test -n "$ac_ct_STRIP"; then
2497 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2498 else
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH
2501 do
2502 IFS=$as_save_IFS
2503 test -z "$as_dir" && as_dir=.
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2506 ac_cv_prog_ac_ct_STRIP="strip"
2507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 break 2
2509 fi
2510 done
2511 done
2512 IFS=$as_save_IFS
2513
2514 fi
2515 fi
2516 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2517 if test -n "$ac_ct_STRIP"; then
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2519 $as_echo "$ac_ct_STRIP" >&6; }
2520 else
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2522 $as_echo "no" >&6; }
2523 fi
2524
2525 if test "x$ac_ct_STRIP" = x; then
2526 STRIP=":"
2527 else
2528 case $cross_compiling:$ac_tool_warned in
2529 yes:)
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2532 ac_tool_warned=yes ;;
2533 esac
2534 STRIP=$ac_ct_STRIP
2535 fi
2536 else
2537 STRIP="$ac_cv_prog_STRIP"
2538 fi
2539
2540 fi
2541 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2542
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2544 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2545 if test -z "$MKDIR_P"; then
2546 if ${ac_cv_path_mkdir+:} false; then :
2547 $as_echo_n "(cached) " >&6
2548 else
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2551 do
2552 IFS=$as_save_IFS
2553 test -z "$as_dir" && as_dir=.
2554 for ac_prog in mkdir gmkdir; do
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2557 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2558 'mkdir (GNU coreutils) '* | \
2559 'mkdir (coreutils) '* | \
2560 'mkdir (fileutils) '4.1*)
2561 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2562 break 3;;
2563 esac
2564 done
2565 done
2566 done
2567 IFS=$as_save_IFS
2568
2569 fi
2570
2571 test -d ./--version && rmdir ./--version
2572 if test "${ac_cv_path_mkdir+set}" = set; then
2573 MKDIR_P="$ac_cv_path_mkdir -p"
2574 else
2575 # As a last resort, use the slow shell script. Don't cache a
2576 # value for MKDIR_P within a source directory, because that will
2577 # break other packages using the cache if that directory is
2578 # removed, or if the value is a relative name.
2579 MKDIR_P="$ac_install_sh -d"
2580 fi
2581 fi
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2583 $as_echo "$MKDIR_P" >&6; }
2584
2585 for ac_prog in gawk mawk nawk awk
2586 do
2587 # Extract the first word of "$ac_prog", so it can be a program name with args.
2588 set dummy $ac_prog; ac_word=$2
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590 $as_echo_n "checking for $ac_word... " >&6; }
2591 if ${ac_cv_prog_AWK+:} false; then :
2592 $as_echo_n "(cached) " >&6
2593 else
2594 if test -n "$AWK"; then
2595 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2599 do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2604 ac_cv_prog_AWK="$ac_prog"
2605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 break 2
2607 fi
2608 done
2609 done
2610 IFS=$as_save_IFS
2611
2612 fi
2613 fi
2614 AWK=$ac_cv_prog_AWK
2615 if test -n "$AWK"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2617 $as_echo "$AWK" >&6; }
2618 else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620 $as_echo "no" >&6; }
2621 fi
2622
2623
2624 test -n "$AWK" && break
2625 done
2626
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2628 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2629 set x ${MAKE-make}
2630 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2631 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2632 $as_echo_n "(cached) " >&6
2633 else
2634 cat >conftest.make <<\_ACEOF
2635 SHELL = /bin/sh
2636 all:
2637 @echo '@@@%%%=$(MAKE)=@@@%%%'
2638 _ACEOF
2639 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2640 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2641 *@@@%%%=?*=@@@%%%*)
2642 eval ac_cv_prog_make_${ac_make}_set=yes;;
2643 *)
2644 eval ac_cv_prog_make_${ac_make}_set=no;;
2645 esac
2646 rm -f conftest.make
2647 fi
2648 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2650 $as_echo "yes" >&6; }
2651 SET_MAKE=
2652 else
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654 $as_echo "no" >&6; }
2655 SET_MAKE="MAKE=${MAKE-make}"
2656 fi
2657
2658 rm -rf .tst 2>/dev/null
2659 mkdir .tst 2>/dev/null
2660 if test -d .tst; then
2661 am__leading_dot=.
2662 else
2663 am__leading_dot=_
2664 fi
2665 rmdir .tst 2>/dev/null
2666
2667 # Check whether --enable-silent-rules was given.
2668 if test "${enable_silent_rules+set}" = set; then :
2669 enableval=$enable_silent_rules;
2670 fi
2671
2672 case $enable_silent_rules in # (((
2673 yes) AM_DEFAULT_VERBOSITY=0;;
2674 no) AM_DEFAULT_VERBOSITY=1;;
2675 *) AM_DEFAULT_VERBOSITY=1;;
2676 esac
2677 am_make=${MAKE-make}
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2679 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2680 if ${am_cv_make_support_nested_variables+:} false; then :
2681 $as_echo_n "(cached) " >&6
2682 else
2683 if $as_echo 'TRUE=$(BAR$(V))
2684 BAR0=false
2685 BAR1=true
2686 V=1
2687 am__doit:
2688 @$(TRUE)
2689 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2690 am_cv_make_support_nested_variables=yes
2691 else
2692 am_cv_make_support_nested_variables=no
2693 fi
2694 fi
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2696 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2697 if test $am_cv_make_support_nested_variables = yes; then
2698 AM_V='$(V)'
2699 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2700 else
2701 AM_V=$AM_DEFAULT_VERBOSITY
2702 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2703 fi
2704 AM_BACKSLASH='\'
2705
2706 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2707 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2708 # is not polluted with repeated "-I."
2709 am__isrc=' -I$(srcdir)'
2710 # test to see if srcdir already configured
2711 if test -f $srcdir/config.status; then
2712 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2713 fi
2714 fi
2715
2716 # test whether we have cygpath
2717 if test -z "$CYGPATH_W"; then
2718 if (cygpath --version) >/dev/null 2>/dev/null; then
2719 CYGPATH_W='cygpath -w'
2720 else
2721 CYGPATH_W=echo
2722 fi
2723 fi
2724
2725
2726 # Define the identity of the package.
2727 PACKAGE='xprop'
2728 VERSION='1.2.5'
2729
2730
2731 cat >>confdefs.h <<_ACEOF
2732 #define PACKAGE "$PACKAGE"
2733 _ACEOF
2734
2735
2736 cat >>confdefs.h <<_ACEOF
2737 #define VERSION "$VERSION"
2738 _ACEOF
2739
2740 # Some tools Automake needs.
2741
2742 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2743
2744
2745 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2746
2747
2748 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2749
2750
2751 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2752
2753
2754 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2755
2756 # For better backward compatibility. To be removed once Automake 1.9.x
2757 # dies out for good. For more background, see:
2758 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2759 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2760 mkdir_p='$(MKDIR_P)'
2761
2762 # We need awk for the "check" target (and possibly the TAP driver). The
2763 # system "awk" is bad on some platforms.
2764 # Always define AMTAR for backward compatibility. Yes, it's still used
2765 # in the wild :-( We should find a proper way to deprecate it ...
2766 AMTAR='$${TAR-tar}'
2767
2768
2769 # We'll loop over all known methods to create a tar archive until one works.
2770 _am_tools='gnutar pax cpio none'
2771
2772 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2773
2774
2775
2776
2777
2778
2779 # POSIX will say in a future version that running "rm -f" with no argument
2780 # is OK; and we want to be able to make that assumption in our Makefile
2781 # recipes. So use an aggressive probe to check that the usage we want is
2782 # actually supported "in the wild" to an acceptable degree.
2783 # See automake bug#10828.
2784 # To make any issue more visible, cause the running configure to be aborted
2785 # by default if the 'rm' program in use doesn't match our expectations; the
2786 # user can still override this though.
2787 if rm -f && rm -fr && rm -rf; then : OK; else
2788 cat >&2 <<'END'
2789 Oops!
2790
2791 Your 'rm' program seems unable to run without file operands specified
2792 on the command line, even when the '-f' option is present. This is contrary
2793 to the behaviour of most rm programs out there, and not conforming with
2794 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2795
2796 Please tell bug-automake@gnu.org about your system, including the value
2797 of your $PATH and any error possibly output before this message. This
2798 can help us improve future automake versions.
2799
2800 END
2801 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2802 echo 'Configuration will proceed anyway, since you have set the' >&2
2803 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2804 echo >&2
2805 else
2806 cat >&2 <<'END'
2807 Aborting the configuration process, to ensure you take notice of the issue.
2808
2809 You can download and install GNU coreutils to get an 'rm' implementation
2810 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2811
2812 If you want to complete the configuration process using your problematic
2813 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2814 to "yes", and re-run configure.
2815
2816 END
2817 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2818 fi
2819 fi
2820
2821
2822 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834 DEPDIR="${am__leading_dot}deps"
2835
2836 ac_config_commands="$ac_config_commands depfiles"
2837
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2839 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2840 cat > confinc.mk << 'END'
2841 am__doit:
2842 @echo this is the am__doit target >confinc.out
2843 .PHONY: am__doit
2844 END
2845 am__include="#"
2846 am__quote=
2847 # BSD make does it like this.
2848 echo '.include "confinc.mk" # ignored' > confmf.BSD
2849 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
2850 echo 'include confinc.mk # ignored' > confmf.GNU
2851 _am_result=no
2852 for s in GNU BSD; do
2853 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
2854 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
2855 ac_status=$?
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }
2858 case $?:`cat confinc.out 2>/dev/null` in #(
2859 '0:this is the am__doit target') :
2860 case $s in #(
2861 BSD) :
2862 am__include='.include' am__quote='"' ;; #(
2863 *) :
2864 am__include='include' am__quote='' ;;
2865 esac ;; #(
2866 *) :
2867 ;;
2868 esac
2869 if test "$am__include" != "#"; then
2870 _am_result="yes ($s style)"
2871 break
2872 fi
2873 done
2874 rm -f confinc.* confmf.*
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
2876 $as_echo "${_am_result}" >&6; }
2877
2878 # Check whether --enable-dependency-tracking was given.
2879 if test "${enable_dependency_tracking+set}" = set; then :
2880 enableval=$enable_dependency_tracking;
2881 fi
2882
2883 if test "x$enable_dependency_tracking" != xno; then
2884 am_depcomp="$ac_aux_dir/depcomp"
2885 AMDEPBACKSLASH='\'
2886 am__nodep='_no'
2887 fi
2888 if test "x$enable_dependency_tracking" != xno; then
2889 AMDEP_TRUE=
2890 AMDEP_FALSE='#'
2891 else
2892 AMDEP_TRUE='#'
2893 AMDEP_FALSE=
2894 fi
2895
2896
2897 ac_ext=c
2898 ac_cpp='$CPP $CPPFLAGS'
2899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2902 if test -n "$ac_tool_prefix"; then
2903 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2904 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if ${ac_cv_prog_CC+:} false; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 if test -n "$CC"; then
2911 ac_cv_prog_CC="$CC" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2923 fi
2924 done
2925 done
2926 IFS=$as_save_IFS
2927
2928 fi
2929 fi
2930 CC=$ac_cv_prog_CC
2931 if test -n "$CC"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933 $as_echo "$CC" >&6; }
2934 else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2937 fi
2938
2939
2940 fi
2941 if test -z "$ac_cv_prog_CC"; then
2942 ac_ct_CC=$CC
2943 # Extract the first word of "gcc", so it can be a program name with args.
2944 set dummy gcc; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2948 $as_echo_n "(cached) " >&6
2949 else
2950 if test -n "$ac_ct_CC"; then
2951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2955 do
2956 IFS=$as_save_IFS
2957 test -z "$as_dir" && as_dir=.
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2960 ac_cv_prog_ac_ct_CC="gcc"
2961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 break 2
2963 fi
2964 done
2965 done
2966 IFS=$as_save_IFS
2967
2968 fi
2969 fi
2970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2971 if test -n "$ac_ct_CC"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2973 $as_echo "$ac_ct_CC" >&6; }
2974 else
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977 fi
2978
2979 if test "x$ac_ct_CC" = x; then
2980 CC=""
2981 else
2982 case $cross_compiling:$ac_tool_warned in
2983 yes:)
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2986 ac_tool_warned=yes ;;
2987 esac
2988 CC=$ac_ct_CC
2989 fi
2990 else
2991 CC="$ac_cv_prog_CC"
2992 fi
2993
2994 if test -z "$CC"; then
2995 if test -n "$ac_tool_prefix"; then
2996 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2997 set dummy ${ac_tool_prefix}cc; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if ${ac_cv_prog_CC+:} false; then :
3001 $as_echo_n "(cached) " >&6
3002 else
3003 if test -n "$CC"; then
3004 ac_cv_prog_CC="$CC" # Let the user override the test.
3005 else
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3008 do
3009 IFS=$as_save_IFS
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3013 ac_cv_prog_CC="${ac_tool_prefix}cc"
3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 break 2
3016 fi
3017 done
3018 done
3019 IFS=$as_save_IFS
3020
3021 fi
3022 fi
3023 CC=$ac_cv_prog_CC
3024 if test -n "$CC"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026 $as_echo "$CC" >&6; }
3027 else
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3030 fi
3031
3032
3033 fi
3034 fi
3035 if test -z "$CC"; then
3036 # Extract the first word of "cc", so it can be a program name with args.
3037 set dummy cc; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if ${ac_cv_prog_CC+:} false; then :
3041 $as_echo_n "(cached) " >&6
3042 else
3043 if test -n "$CC"; then
3044 ac_cv_prog_CC="$CC" # Let the user override the test.
3045 else
3046 ac_prog_rejected=no
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3054 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3055 ac_prog_rejected=yes
3056 continue
3057 fi
3058 ac_cv_prog_CC="cc"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 break 2
3061 fi
3062 done
3063 done
3064 IFS=$as_save_IFS
3065
3066 if test $ac_prog_rejected = yes; then
3067 # We found a bogon in the path, so make sure we never use it.
3068 set dummy $ac_cv_prog_CC
3069 shift
3070 if test $# != 0; then
3071 # We chose a different compiler from the bogus one.
3072 # However, it has the same basename, so the bogon will be chosen
3073 # first if we set CC to just the basename; use the full file name.
3074 shift
3075 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3076 fi
3077 fi
3078 fi
3079 fi
3080 CC=$ac_cv_prog_CC
3081 if test -n "$CC"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3083 $as_echo "$CC" >&6; }
3084 else
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3087 fi
3088
3089
3090 fi
3091 if test -z "$CC"; then
3092 if test -n "$ac_tool_prefix"; then
3093 for ac_prog in cl.exe
3094 do
3095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if ${ac_cv_prog_CC+:} false; then :
3100 $as_echo_n "(cached) " >&6
3101 else
3102 if test -n "$CC"; then
3103 ac_cv_prog_CC="$CC" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3107 do
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 break 2
3115 fi
3116 done
3117 done
3118 IFS=$as_save_IFS
3119
3120 fi
3121 fi
3122 CC=$ac_cv_prog_CC
3123 if test -n "$CC"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3125 $as_echo "$CC" >&6; }
3126 else
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3129 fi
3130
3131
3132 test -n "$CC" && break
3133 done
3134 fi
3135 if test -z "$CC"; then
3136 ac_ct_CC=$CC
3137 for ac_prog in cl.exe
3138 do
3139 # Extract the first word of "$ac_prog", so it can be a program name with args.
3140 set dummy $ac_prog; ac_word=$2
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 $as_echo_n "checking for $ac_word... " >&6; }
3143 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3144 $as_echo_n "(cached) " >&6
3145 else
3146 if test -n "$ac_ct_CC"; then
3147 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3151 do
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156 ac_cv_prog_ac_ct_CC="$ac_prog"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 break 2
3159 fi
3160 done
3161 done
3162 IFS=$as_save_IFS
3163
3164 fi
3165 fi
3166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3167 if test -n "$ac_ct_CC"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3169 $as_echo "$ac_ct_CC" >&6; }
3170 else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3173 fi
3174
3175
3176 test -n "$ac_ct_CC" && break
3177 done
3178
3179 if test "x$ac_ct_CC" = x; then
3180 CC=""
3181 else
3182 case $cross_compiling:$ac_tool_warned in
3183 yes:)
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3186 ac_tool_warned=yes ;;
3187 esac
3188 CC=$ac_ct_CC
3189 fi
3190 fi
3191
3192 fi
3193
3194
3195 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197 as_fn_error $? "no acceptable C compiler found in \$PATH
3198 See \`config.log' for more details" "$LINENO" 5; }
3199
3200 # Provide some information about the compiler.
3201 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3202 set X $ac_compile
3203 ac_compiler=$2
3204 for ac_option in --version -v -V -qversion; do
3205 { { ac_try="$ac_compiler $ac_option >&5"
3206 case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211 $as_echo "$ac_try_echo"; } >&5
3212 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3213 ac_status=$?
3214 if test -s conftest.err; then
3215 sed '10a\
3216 ... rest of stderr output deleted ...
3217 10q' conftest.err >conftest.er1
3218 cat conftest.er1 >&5
3219 fi
3220 rm -f conftest.er1 conftest.err
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }
3223 done
3224
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226 /* end confdefs.h. */
3227
3228 int
3229 main ()
3230 {
3231
3232 ;
3233 return 0;
3234 }
3235 _ACEOF
3236 ac_clean_files_save=$ac_clean_files
3237 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3238 # Try to create an executable without -o first, disregard a.out.
3239 # It will help us diagnose broken compilers, and finding out an intuition
3240 # of exeext.
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3242 $as_echo_n "checking whether the C compiler works... " >&6; }
3243 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3244
3245 # The possible output files:
3246 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3247
3248 ac_rmfiles=
3249 for ac_file in $ac_files
3250 do
3251 case $ac_file in
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3253 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3254 esac
3255 done
3256 rm -f $ac_rmfiles
3257
3258 if { { ac_try="$ac_link_default"
3259 case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_link_default") 2>&5
3266 ac_status=$?
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; then :
3269 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3270 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3271 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3272 # so that the user can short-circuit this test for compilers unknown to
3273 # Autoconf.
3274 for ac_file in $ac_files ''
3275 do
3276 test -f "$ac_file" || continue
3277 case $ac_file in
3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3279 ;;
3280 [ab].out )
3281 # We found the default executable, but exeext='' is most
3282 # certainly right.
3283 break;;
3284 *.* )
3285 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3286 then :; else
3287 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3288 fi
3289 # We set ac_cv_exeext here because the later test for it is not
3290 # safe: cross compilers may not add the suffix if given an `-o'
3291 # argument, so we may need to know it at that point already.
3292 # Even if this section looks crufty: it has the advantage of
3293 # actually working.
3294 break;;
3295 * )
3296 break;;
3297 esac
3298 done
3299 test "$ac_cv_exeext" = no && ac_cv_exeext=
3300
3301 else
3302 ac_file=''
3303 fi
3304 if test -z "$ac_file"; then :
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 $as_echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3309
3310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 as_fn_error 77 "C compiler cannot create executables
3313 See \`config.log' for more details" "$LINENO" 5; }
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3317 fi
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3319 $as_echo_n "checking for C compiler default output file name... " >&6; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3321 $as_echo "$ac_file" >&6; }
3322 ac_exeext=$ac_cv_exeext
3323
3324 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3325 ac_clean_files=$ac_clean_files_save
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3327 $as_echo_n "checking for suffix of executables... " >&6; }
3328 if { { ac_try="$ac_link"
3329 case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332 esac
3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334 $as_echo "$ac_try_echo"; } >&5
3335 (eval "$ac_link") 2>&5
3336 ac_status=$?
3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338 test $ac_status = 0; }; then :
3339 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3340 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3341 # work properly (i.e., refer to `conftest.exe'), while it won't with
3342 # `rm'.
3343 for ac_file in conftest.exe conftest conftest.*; do
3344 test -f "$ac_file" || continue
3345 case $ac_file in
3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3347 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348 break;;
3349 * ) break;;
3350 esac
3351 done
3352 else
3353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3356 See \`config.log' for more details" "$LINENO" 5; }
3357 fi
3358 rm -f conftest conftest$ac_cv_exeext
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3360 $as_echo "$ac_cv_exeext" >&6; }
3361
3362 rm -f conftest.$ac_ext
3363 EXEEXT=$ac_cv_exeext
3364 ac_exeext=$EXEEXT
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367 #include <stdio.h>
3368 int
3369 main ()
3370 {
3371 FILE *f = fopen ("conftest.out", "w");
3372 return ferror (f) || fclose (f) != 0;
3373
3374 ;
3375 return 0;
3376 }
3377 _ACEOF
3378 ac_clean_files="$ac_clean_files conftest.out"
3379 # Check that the compiler produces executables we can run. If not, either
3380 # the compiler is broken, or we cross compile.
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3382 $as_echo_n "checking whether we are cross compiling... " >&6; }
3383 if test "$cross_compiling" != yes; then
3384 { { ac_try="$ac_link"
3385 case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_link") 2>&5
3392 ac_status=$?
3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394 test $ac_status = 0; }
3395 if { ac_try='./conftest$ac_cv_exeext'
3396 { { case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399 esac
3400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401 $as_echo "$ac_try_echo"; } >&5
3402 (eval "$ac_try") 2>&5
3403 ac_status=$?
3404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3405 test $ac_status = 0; }; }; then
3406 cross_compiling=no
3407 else
3408 if test "$cross_compiling" = maybe; then
3409 cross_compiling=yes
3410 else
3411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error $? "cannot run C compiled programs.
3414 If you meant to cross compile, use \`--host'.
3415 See \`config.log' for more details" "$LINENO" 5; }
3416 fi
3417 fi
3418 fi
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3420 $as_echo "$cross_compiling" >&6; }
3421
3422 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3423 ac_clean_files=$ac_clean_files_save
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3425 $as_echo_n "checking for suffix of object files... " >&6; }
3426 if ${ac_cv_objext+:} false; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h. */
3431
3432 int
3433 main ()
3434 {
3435
3436 ;
3437 return 0;
3438 }
3439 _ACEOF
3440 rm -f conftest.o conftest.obj
3441 if { { ac_try="$ac_compile"
3442 case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445 esac
3446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447 $as_echo "$ac_try_echo"; } >&5
3448 (eval "$ac_compile") 2>&5
3449 ac_status=$?
3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451 test $ac_status = 0; }; then :
3452 for ac_file in conftest.o conftest.obj conftest.*; do
3453 test -f "$ac_file" || continue;
3454 case $ac_file in
3455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3456 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3457 break;;
3458 esac
3459 done
3460 else
3461 $as_echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3463
3464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 as_fn_error $? "cannot compute suffix of object files: cannot compile
3467 See \`config.log' for more details" "$LINENO" 5; }
3468 fi
3469 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3470 fi
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3472 $as_echo "$ac_cv_objext" >&6; }
3473 OBJEXT=$ac_cv_objext
3474 ac_objext=$OBJEXT
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3476 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3477 if ${ac_cv_c_compiler_gnu+:} false; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3482
3483 int
3484 main ()
3485 {
3486 #ifndef __GNUC__
3487 choke me
3488 #endif
3489
3490 ;
3491 return 0;
3492 }
3493 _ACEOF
3494 if ac_fn_c_try_compile "$LINENO"; then :
3495 ac_compiler_gnu=yes
3496 else
3497 ac_compiler_gnu=no
3498 fi
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3501
3502 fi
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3504 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3505 if test $ac_compiler_gnu = yes; then
3506 GCC=yes
3507 else
3508 GCC=
3509 fi
3510 ac_test_CFLAGS=${CFLAGS+set}
3511 ac_save_CFLAGS=$CFLAGS
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3513 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3514 if ${ac_cv_prog_cc_g+:} false; then :
3515 $as_echo_n "(cached) " >&6
3516 else
3517 ac_save_c_werror_flag=$ac_c_werror_flag
3518 ac_c_werror_flag=yes
3519 ac_cv_prog_cc_g=no
3520 CFLAGS="-g"
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3523
3524 int
3525 main ()
3526 {
3527
3528 ;
3529 return 0;
3530 }
3531 _ACEOF
3532 if ac_fn_c_try_compile "$LINENO"; then :
3533 ac_cv_prog_cc_g=yes
3534 else
3535 CFLAGS=""
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3538
3539 int
3540 main ()
3541 {
3542
3543 ;
3544 return 0;
3545 }
3546 _ACEOF
3547 if ac_fn_c_try_compile "$LINENO"; then :
3548
3549 else
3550 ac_c_werror_flag=$ac_save_c_werror_flag
3551 CFLAGS="-g"
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3554
3555 int
3556 main ()
3557 {
3558
3559 ;
3560 return 0;
3561 }
3562 _ACEOF
3563 if ac_fn_c_try_compile "$LINENO"; then :
3564 ac_cv_prog_cc_g=yes
3565 fi
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 fi
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 fi
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 ac_c_werror_flag=$ac_save_c_werror_flag
3572 fi
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3574 $as_echo "$ac_cv_prog_cc_g" >&6; }
3575 if test "$ac_test_CFLAGS" = set; then
3576 CFLAGS=$ac_save_CFLAGS
3577 elif test $ac_cv_prog_cc_g = yes; then
3578 if test "$GCC" = yes; then
3579 CFLAGS="-g -O2"
3580 else
3581 CFLAGS="-g"
3582 fi
3583 else
3584 if test "$GCC" = yes; then
3585 CFLAGS="-O2"
3586 else
3587 CFLAGS=
3588 fi
3589 fi
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3591 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3592 if ${ac_cv_prog_cc_c89+:} false; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 ac_cv_prog_cc_c89=no
3596 ac_save_CC=$CC
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3599 #include <stdarg.h>
3600 #include <stdio.h>
3601 struct stat;
3602 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3603 struct buf { int x; };
3604 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3605 static char *e (p, i)
3606 char **p;
3607 int i;
3608 {
3609 return p[i];
3610 }
3611 static char *f (char * (*g) (char **, int), char **p, ...)
3612 {
3613 char *s;
3614 va_list v;
3615 va_start (v,p);
3616 s = g (p, va_arg (v,int));
3617 va_end (v);
3618 return s;
3619 }
3620
3621 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3622 function prototypes and stuff, but not '\xHH' hex character constants.
3623 These don't provoke an error unfortunately, instead are silently treated
3624 as 'x'. The following induces an error, until -std is added to get
3625 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3626 array size at least. It's necessary to write '\x00'==0 to get something
3627 that's true only with -std. */
3628 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3629
3630 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3631 inside strings and character constants. */
3632 #define FOO(x) 'x'
3633 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3634
3635 int test (int i, double x);
3636 struct s1 {int (*f) (int a);};
3637 struct s2 {int (*f) (double a);};
3638 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3639 int argc;
3640 char **argv;
3641 int
3642 main ()
3643 {
3644 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3645 ;
3646 return 0;
3647 }
3648 _ACEOF
3649 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3650 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3651 do
3652 CC="$ac_save_CC $ac_arg"
3653 if ac_fn_c_try_compile "$LINENO"; then :
3654 ac_cv_prog_cc_c89=$ac_arg
3655 fi
3656 rm -f core conftest.err conftest.$ac_objext
3657 test "x$ac_cv_prog_cc_c89" != "xno" && break
3658 done
3659 rm -f conftest.$ac_ext
3660 CC=$ac_save_CC
3661
3662 fi
3663 # AC_CACHE_VAL
3664 case "x$ac_cv_prog_cc_c89" in
3665 x)
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3667 $as_echo "none needed" >&6; } ;;
3668 xno)
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3670 $as_echo "unsupported" >&6; } ;;
3671 *)
3672 CC="$CC $ac_cv_prog_cc_c89"
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3674 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3675 esac
3676 if test "x$ac_cv_prog_cc_c89" != xno; then :
3677
3678 fi
3679
3680 ac_ext=c
3681 ac_cpp='$CPP $CPPFLAGS'
3682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685
3686 ac_ext=c
3687 ac_cpp='$CPP $CPPFLAGS'
3688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3692 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3693 if ${am_cv_prog_cc_c_o+:} false; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3698
3699 int
3700 main ()
3701 {
3702
3703 ;
3704 return 0;
3705 }
3706 _ACEOF
3707 # Make sure it works both with $CC and with simple cc.
3708 # Following AC_PROG_CC_C_O, we do the test twice because some
3709 # compilers refuse to overwrite an existing .o file with -o,
3710 # though they will create one.
3711 am_cv_prog_cc_c_o=yes
3712 for am_i in 1 2; do
3713 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3714 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } \
3718 && test -f conftest2.$ac_objext; then
3719 : OK
3720 else
3721 am_cv_prog_cc_c_o=no
3722 break
3723 fi
3724 done
3725 rm -f core conftest*
3726 unset am_i
3727 fi
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3729 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3730 if test "$am_cv_prog_cc_c_o" != yes; then
3731 # Losing compiler, so override with the script.
3732 # FIXME: It is wrong to rewrite CC.
3733 # But if we don't then we get into trouble of one sort or another.
3734 # A longer-term fix would be to have automake use am__CC in this case,
3735 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3736 CC="$am_aux_dir/compile $CC"
3737 fi
3738 ac_ext=c
3739 ac_cpp='$CPP $CPPFLAGS'
3740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743
3744
3745 depcc="$CC" am_compiler_list=
3746
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3748 $as_echo_n "checking dependency style of $depcc... " >&6; }
3749 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3750 $as_echo_n "(cached) " >&6
3751 else
3752 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3753 # We make a subdir and do the tests there. Otherwise we can end up
3754 # making bogus files that we don't know about and never remove. For
3755 # instance it was reported that on HP-UX the gcc test will end up
3756 # making a dummy file named 'D' -- because '-MD' means "put the output
3757 # in D".
3758 rm -rf conftest.dir
3759 mkdir conftest.dir
3760 # Copy depcomp to subdir because otherwise we won't find it if we're
3761 # using a relative directory.
3762 cp "$am_depcomp" conftest.dir
3763 cd conftest.dir
3764 # We will build objects and dependencies in a subdirectory because
3765 # it helps to detect inapplicable dependency modes. For instance
3766 # both Tru64's cc and ICC support -MD to output dependencies as a
3767 # side effect of compilation, but ICC will put the dependencies in
3768 # the current directory while Tru64 will put them in the object
3769 # directory.
3770 mkdir sub
3771
3772 am_cv_CC_dependencies_compiler_type=none
3773 if test "$am_compiler_list" = ""; then
3774 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3775 fi
3776 am__universal=false
3777 case " $depcc " in #(
3778 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3779 esac
3780
3781 for depmode in $am_compiler_list; do
3782 # Setup a source with many dependencies, because some compilers
3783 # like to wrap large dependency lists on column 80 (with \), and
3784 # we should not choose a depcomp mode which is confused by this.
3785 #
3786 # We need to recreate these files for each test, as the compiler may
3787 # overwrite some of them when testing with obscure command lines.
3788 # This happens at least with the AIX C compiler.
3789 : > sub/conftest.c
3790 for i in 1 2 3 4 5 6; do
3791 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3792 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3793 # Solaris 10 /bin/sh.
3794 echo '/* dummy */' > sub/conftst$i.h
3795 done
3796 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3797
3798 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3799 # mode. It turns out that the SunPro C++ compiler does not properly
3800 # handle '-M -o', and we need to detect this. Also, some Intel
3801 # versions had trouble with output in subdirs.
3802 am__obj=sub/conftest.${OBJEXT-o}
3803 am__minus_obj="-o $am__obj"
3804 case $depmode in
3805 gcc)
3806 # This depmode causes a compiler race in universal mode.
3807 test "$am__universal" = false || continue
3808 ;;
3809 nosideeffect)
3810 # After this tag, mechanisms are not by side-effect, so they'll
3811 # only be used when explicitly requested.
3812 if test "x$enable_dependency_tracking" = xyes; then
3813 continue
3814 else
3815 break
3816 fi
3817 ;;
3818 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3819 # This compiler won't grok '-c -o', but also, the minuso test has
3820 # not run yet. These depmodes are late enough in the game, and
3821 # so weak that their functioning should not be impacted.
3822 am__obj=conftest.${OBJEXT-o}
3823 am__minus_obj=
3824 ;;
3825 none) break ;;
3826 esac
3827 if depmode=$depmode \
3828 source=sub/conftest.c object=$am__obj \
3829 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3830 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3831 >/dev/null 2>conftest.err &&
3832 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3833 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3834 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3835 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3836 # icc doesn't choke on unknown options, it will just issue warnings
3837 # or remarks (even with -Werror). So we grep stderr for any message
3838 # that says an option was ignored or not supported.
3839 # When given -MP, icc 7.0 and 7.1 complain thusly:
3840 # icc: Command line warning: ignoring option '-M'; no argument required
3841 # The diagnosis changed in icc 8.0:
3842 # icc: Command line remark: option '-MP' not supported
3843 if (grep 'ignoring option' conftest.err ||
3844 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3845 am_cv_CC_dependencies_compiler_type=$depmode
3846 break
3847 fi
3848 fi
3849 done
3850
3851 cd ..
3852 rm -rf conftest.dir
3853 else
3854 am_cv_CC_dependencies_compiler_type=none
3855 fi
3856
3857 fi
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3859 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3860 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3861
3862 if
3863 test "x$enable_dependency_tracking" != xno \
3864 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3865 am__fastdepCC_TRUE=
3866 am__fastdepCC_FALSE='#'
3867 else
3868 am__fastdepCC_TRUE='#'
3869 am__fastdepCC_FALSE=
3870 fi
3871
3872
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3874 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3875 if ${ac_cv_prog_cc_c99+:} false; then :
3876 $as_echo_n "(cached) " >&6
3877 else
3878 ac_cv_prog_cc_c99=no
3879 ac_save_CC=$CC
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3882 #include <stdarg.h>
3883 #include <stdbool.h>
3884 #include <stdlib.h>
3885 #include <wchar.h>
3886 #include <stdio.h>
3887
3888 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3889 #define debug(...) fprintf (stderr, __VA_ARGS__)
3890 #define showlist(...) puts (#__VA_ARGS__)
3891 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3892 static void
3893 test_varargs_macros (void)
3894 {
3895 int x = 1234;
3896 int y = 5678;
3897 debug ("Flag");
3898 debug ("X = %d\n", x);
3899 showlist (The first, second, and third items.);
3900 report (x>y, "x is %d but y is %d", x, y);
3901 }
3902
3903 // Check long long types.
3904 #define BIG64 18446744073709551615ull
3905 #define BIG32 4294967295ul
3906 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3907 #if !BIG_OK
3908 your preprocessor is broken;
3909 #endif
3910 #if BIG_OK
3911 #else
3912 your preprocessor is broken;
3913 #endif
3914 static long long int bignum = -9223372036854775807LL;
3915 static unsigned long long int ubignum = BIG64;
3916
3917 struct incomplete_array
3918 {
3919 int datasize;
3920 double data[];
3921 };
3922
3923 struct named_init {
3924 int number;
3925 const wchar_t *name;
3926 double average;
3927 };
3928
3929 typedef const char *ccp;
3930
3931 static inline int
3932 test_restrict (ccp restrict text)
3933 {
3934 // See if C++-style comments work.
3935 // Iterate through items via the restricted pointer.
3936 // Also check for declarations in for loops.
3937 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3938 continue;
3939 return 0;
3940 }
3941
3942 // Check varargs and va_copy.
3943 static void
3944 test_varargs (const char *format, ...)
3945 {
3946 va_list args;
3947 va_start (args, format);
3948 va_list args_copy;
3949 va_copy (args_copy, args);
3950
3951 const char *str;
3952 int number;
3953 float fnumber;
3954
3955 while (*format)
3956 {
3957 switch (*format++)
3958 {
3959 case 's': // string
3960 str = va_arg (args_copy, const char *);
3961 break;
3962 case 'd': // int
3963 number = va_arg (args_copy, int);
3964 break;
3965 case 'f': // float
3966 fnumber = va_arg (args_copy, double);
3967 break;
3968 default:
3969 break;
3970 }
3971 }
3972 va_end (args_copy);
3973 va_end (args);
3974 }
3975
3976 int
3977 main ()
3978 {
3979
3980 // Check bool.
3981 _Bool success = false;
3982
3983 // Check restrict.
3984 if (test_restrict ("String literal") == 0)
3985 success = true;
3986 char *restrict newvar = "Another string";
3987
3988 // Check varargs.
3989 test_varargs ("s, d' f .", "string", 65, 34.234);
3990 test_varargs_macros ();
3991
3992 // Check flexible array members.
3993 struct incomplete_array *ia =
3994 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3995 ia->datasize = 10;
3996 for (int i = 0; i < ia->datasize; ++i)
3997 ia->data[i] = i * 1.234;
3998
3999 // Check named initializers.
4000 struct named_init ni = {
4001 .number = 34,
4002 .name = L"Test wide string",
4003 .average = 543.34343,
4004 };
4005
4006 ni.number = 58;
4007
4008 int dynamic_array[ni.number];
4009 dynamic_array[ni.number - 1] = 543;
4010
4011 // work around unused variable warnings
4012 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4013 || dynamic_array[ni.number - 1] != 543);
4014
4015 ;
4016 return 0;
4017 }
4018 _ACEOF
4019 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4020 do
4021 CC="$ac_save_CC $ac_arg"
4022 if ac_fn_c_try_compile "$LINENO"; then :
4023 ac_cv_prog_cc_c99=$ac_arg
4024 fi
4025 rm -f core conftest.err conftest.$ac_objext
4026 test "x$ac_cv_prog_cc_c99" != "xno" && break
4027 done
4028 rm -f conftest.$ac_ext
4029 CC=$ac_save_CC
4030
4031 fi
4032 # AC_CACHE_VAL
4033 case "x$ac_cv_prog_cc_c99" in
4034 x)
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4036 $as_echo "none needed" >&6; } ;;
4037 xno)
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4039 $as_echo "unsupported" >&6; } ;;
4040 *)
4041 CC="$CC $ac_cv_prog_cc_c99"
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4043 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4044 esac
4045 if test "x$ac_cv_prog_cc_c99" != xno; then :
4046
4047 fi
4048
4049
4050
4051 ac_ext=c
4052 ac_cpp='$CPP $CPPFLAGS'
4053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4057 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4058 # On Suns, sometimes $CPP names a directory.
4059 if test -n "$CPP" && test -d "$CPP"; then
4060 CPP=
4061 fi
4062 if test -z "$CPP"; then
4063 if ${ac_cv_prog_CPP+:} false; then :
4064 $as_echo_n "(cached) " >&6
4065 else
4066 # Double quotes because CPP needs to be expanded
4067 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4068 do
4069 ac_preproc_ok=false
4070 for ac_c_preproc_warn_flag in '' yes
4071 do
4072 # Use a header file that comes with gcc, so configuring glibc
4073 # with a fresh cross-compiler works.
4074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4075 # <limits.h> exists even on freestanding compilers.
4076 # On the NeXT, cc -E runs the code through the compiler's parser,
4077 # not just through cpp. "Syntax error" is here to catch this case.
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4080 #ifdef __STDC__
4081 # include <limits.h>
4082 #else
4083 # include <assert.h>
4084 #endif
4085 Syntax error
4086 _ACEOF
4087 if ac_fn_c_try_cpp "$LINENO"; then :
4088
4089 else
4090 # Broken: fails on valid input.
4091 continue
4092 fi
4093 rm -f conftest.err conftest.i conftest.$ac_ext
4094
4095 # OK, works on sane cases. Now check whether nonexistent headers
4096 # can be detected and how.
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4099 #include <ac_nonexistent.h>
4100 _ACEOF
4101 if ac_fn_c_try_cpp "$LINENO"; then :
4102 # Broken: success on invalid input.
4103 continue
4104 else
4105 # Passes both tests.
4106 ac_preproc_ok=:
4107 break
4108 fi
4109 rm -f conftest.err conftest.i conftest.$ac_ext
4110
4111 done
4112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4113 rm -f conftest.i conftest.err conftest.$ac_ext
4114 if $ac_preproc_ok; then :
4115 break
4116 fi
4117
4118 done
4119 ac_cv_prog_CPP=$CPP
4120
4121 fi
4122 CPP=$ac_cv_prog_CPP
4123 else
4124 ac_cv_prog_CPP=$CPP
4125 fi
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4127 $as_echo "$CPP" >&6; }
4128 ac_preproc_ok=false
4129 for ac_c_preproc_warn_flag in '' yes
4130 do
4131 # Use a header file that comes with gcc, so configuring glibc
4132 # with a fresh cross-compiler works.
4133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4134 # <limits.h> exists even on freestanding compilers.
4135 # On the NeXT, cc -E runs the code through the compiler's parser,
4136 # not just through cpp. "Syntax error" is here to catch this case.
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4139 #ifdef __STDC__
4140 # include <limits.h>
4141 #else
4142 # include <assert.h>
4143 #endif
4144 Syntax error
4145 _ACEOF
4146 if ac_fn_c_try_cpp "$LINENO"; then :
4147
4148 else
4149 # Broken: fails on valid input.
4150 continue
4151 fi
4152 rm -f conftest.err conftest.i conftest.$ac_ext
4153
4154 # OK, works on sane cases. Now check whether nonexistent headers
4155 # can be detected and how.
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4158 #include <ac_nonexistent.h>
4159 _ACEOF
4160 if ac_fn_c_try_cpp "$LINENO"; then :
4161 # Broken: success on invalid input.
4162 continue
4163 else
4164 # Passes both tests.
4165 ac_preproc_ok=:
4166 break
4167 fi
4168 rm -f conftest.err conftest.i conftest.$ac_ext
4169
4170 done
4171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4172 rm -f conftest.i conftest.err conftest.$ac_ext
4173 if $ac_preproc_ok; then :
4174
4175 else
4176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4178 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4179 See \`config.log' for more details" "$LINENO" 5; }
4180 fi
4181
4182 ac_ext=c
4183 ac_cpp='$CPP $CPPFLAGS'
4184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4187
4188
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4190 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4191 if ${ac_cv_path_GREP+:} false; then :
4192 $as_echo_n "(cached) " >&6
4193 else
4194 if test -z "$GREP"; then
4195 ac_path_GREP_found=false
4196 # Loop through the user's path and test for each of PROGNAME-LIST
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4199 do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_prog in grep ggrep; do
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4205 as_fn_executable_p "$ac_path_GREP" || continue
4206 # Check for GNU ac_path_GREP and select it if it is found.
4207 # Check for GNU $ac_path_GREP
4208 case `"$ac_path_GREP" --version 2>&1` in
4209 *GNU*)
4210 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4211 *)
4212 ac_count=0
4213 $as_echo_n 0123456789 >"conftest.in"
4214 while :
4215 do
4216 cat "conftest.in" "conftest.in" >"conftest.tmp"
4217 mv "conftest.tmp" "conftest.in"
4218 cp "conftest.in" "conftest.nl"
4219 $as_echo 'GREP' >> "conftest.nl"
4220 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4221 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4222 as_fn_arith $ac_count + 1 && ac_count=$as_val
4223 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4224 # Best one so far, save it but keep looking for a better one
4225 ac_cv_path_GREP="$ac_path_GREP"
4226 ac_path_GREP_max=$ac_count
4227 fi
4228 # 10*(2^10) chars as input seems more than enough
4229 test $ac_count -gt 10 && break
4230 done
4231 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4232 esac
4233
4234 $ac_path_GREP_found && break 3
4235 done
4236 done
4237 done
4238 IFS=$as_save_IFS
4239 if test -z "$ac_cv_path_GREP"; then
4240 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4241 fi
4242 else
4243 ac_cv_path_GREP=$GREP
4244 fi
4245
4246 fi
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4248 $as_echo "$ac_cv_path_GREP" >&6; }
4249 GREP="$ac_cv_path_GREP"
4250
4251
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4253 $as_echo_n "checking for egrep... " >&6; }
4254 if ${ac_cv_path_EGREP+:} false; then :
4255 $as_echo_n "(cached) " >&6
4256 else
4257 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4258 then ac_cv_path_EGREP="$GREP -E"
4259 else
4260 if test -z "$EGREP"; then
4261 ac_path_EGREP_found=false
4262 # Loop through the user's path and test for each of PROGNAME-LIST
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4265 do
4266 IFS=$as_save_IFS
4267 test -z "$as_dir" && as_dir=.
4268 for ac_prog in egrep; do
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4271 as_fn_executable_p "$ac_path_EGREP" || continue
4272 # Check for GNU ac_path_EGREP and select it if it is found.
4273 # Check for GNU $ac_path_EGREP
4274 case `"$ac_path_EGREP" --version 2>&1` in
4275 *GNU*)
4276 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4277 *)
4278 ac_count=0
4279 $as_echo_n 0123456789 >"conftest.in"
4280 while :
4281 do
4282 cat "conftest.in" "conftest.in" >"conftest.tmp"
4283 mv "conftest.tmp" "conftest.in"
4284 cp "conftest.in" "conftest.nl"
4285 $as_echo 'EGREP' >> "conftest.nl"
4286 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4288 as_fn_arith $ac_count + 1 && ac_count=$as_val
4289 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4290 # Best one so far, save it but keep looking for a better one
4291 ac_cv_path_EGREP="$ac_path_EGREP"
4292 ac_path_EGREP_max=$ac_count
4293 fi
4294 # 10*(2^10) chars as input seems more than enough
4295 test $ac_count -gt 10 && break
4296 done
4297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4298 esac
4299
4300 $ac_path_EGREP_found && break 3
4301 done
4302 done
4303 done
4304 IFS=$as_save_IFS
4305 if test -z "$ac_cv_path_EGREP"; then
4306 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4307 fi
4308 else
4309 ac_cv_path_EGREP=$EGREP
4310 fi
4311
4312 fi
4313 fi
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4315 $as_echo "$ac_cv_path_EGREP" >&6; }
4316 EGREP="$ac_cv_path_EGREP"
4317
4318
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4320 $as_echo_n "checking for ANSI C header files... " >&6; }
4321 if ${ac_cv_header_stdc+:} false; then :
4322 $as_echo_n "(cached) " >&6
4323 else
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4326 #include <stdlib.h>
4327 #include <stdarg.h>
4328 #include <string.h>
4329 #include <float.h>
4330
4331 int
4332 main ()
4333 {
4334
4335 ;
4336 return 0;
4337 }
4338 _ACEOF
4339 if ac_fn_c_try_compile "$LINENO"; then :
4340 ac_cv_header_stdc=yes
4341 else
4342 ac_cv_header_stdc=no
4343 fi
4344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345
4346 if test $ac_cv_header_stdc = yes; then
4347 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4350 #include <string.h>
4351
4352 _ACEOF
4353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4354 $EGREP "memchr" >/dev/null 2>&1; then :
4355
4356 else
4357 ac_cv_header_stdc=no
4358 fi
4359 rm -f conftest*
4360
4361 fi
4362
4363 if test $ac_cv_header_stdc = yes; then
4364 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4367 #include <stdlib.h>
4368
4369 _ACEOF
4370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4371 $EGREP "free" >/dev/null 2>&1; then :
4372
4373 else
4374 ac_cv_header_stdc=no
4375 fi
4376 rm -f conftest*
4377
4378 fi
4379
4380 if test $ac_cv_header_stdc = yes; then
4381 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4382 if test "$cross_compiling" = yes; then :
4383 :
4384 else
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4387 #include <ctype.h>
4388 #include <stdlib.h>
4389 #if ((' ' & 0x0FF) == 0x020)
4390 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4391 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4392 #else
4393 # define ISLOWER(c) \
4394 (('a' <= (c) && (c) <= 'i') \
4395 || ('j' <= (c) && (c) <= 'r') \
4396 || ('s' <= (c) && (c) <= 'z'))
4397 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4398 #endif
4399
4400 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4401 int
4402 main ()
4403 {
4404 int i;
4405 for (i = 0; i < 256; i++)
4406 if (XOR (islower (i), ISLOWER (i))
4407 || toupper (i) != TOUPPER (i))
4408 return 2;
4409 return 0;
4410 }
4411 _ACEOF
4412 if ac_fn_c_try_run "$LINENO"; then :
4413
4414 else
4415 ac_cv_header_stdc=no
4416 fi
4417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4418 conftest.$ac_objext conftest.beam conftest.$ac_ext
4419 fi
4420
4421 fi
4422 fi
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4424 $as_echo "$ac_cv_header_stdc" >&6; }
4425 if test $ac_cv_header_stdc = yes; then
4426
4427 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4428
4429 fi
4430
4431 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4432 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4433 inttypes.h stdint.h unistd.h
4434 do :
4435 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4436 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4437 "
4438 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4439 cat >>confdefs.h <<_ACEOF
4440 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4441 _ACEOF
4442
4443 fi
4444
4445 done
4446
4447
4448
4449
4450
4451
4452 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4453 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4454 CLANGCC="yes"
4455 else
4456 CLANGCC="no"
4457 fi
4458
4459 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4460 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4461 INTELCC="yes"
4462 else
4463 INTELCC="no"
4464 fi
4465
4466 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4467 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4468 SUNCC="yes"
4469 else
4470 SUNCC="no"
4471 fi
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4482 if test -n "$ac_tool_prefix"; then
4483 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4484 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4486 $as_echo_n "checking for $ac_word... " >&6; }
4487 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 case $PKG_CONFIG in
4491 [\\/]* | ?:[\\/]*)
4492 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4493 ;;
4494 *)
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4497 do
4498 IFS=$as_save_IFS
4499 test -z "$as_dir" && as_dir=.
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4502 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4504 break 2
4505 fi
4506 done
4507 done
4508 IFS=$as_save_IFS
4509
4510 ;;
4511 esac
4512 fi
4513 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4514 if test -n "$PKG_CONFIG"; then
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4516 $as_echo "$PKG_CONFIG" >&6; }
4517 else
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4519 $as_echo "no" >&6; }
4520 fi
4521
4522
4523 fi
4524 if test -z "$ac_cv_path_PKG_CONFIG"; then
4525 ac_pt_PKG_CONFIG=$PKG_CONFIG
4526 # Extract the first word of "pkg-config", so it can be a program name with args.
4527 set dummy pkg-config; ac_word=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 case $ac_pt_PKG_CONFIG in
4534 [\\/]* | ?:[\\/]*)
4535 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4536 ;;
4537 *)
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH
4540 do
4541 IFS=$as_save_IFS
4542 test -z "$as_dir" && as_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4545 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 break 2
4548 fi
4549 done
4550 done
4551 IFS=$as_save_IFS
4552
4553 ;;
4554 esac
4555 fi
4556 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4557 if test -n "$ac_pt_PKG_CONFIG"; then
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4559 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4560 else
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562 $as_echo "no" >&6; }
4563 fi
4564
4565 if test "x$ac_pt_PKG_CONFIG" = x; then
4566 PKG_CONFIG=""
4567 else
4568 case $cross_compiling:$ac_tool_warned in
4569 yes:)
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4572 ac_tool_warned=yes ;;
4573 esac
4574 PKG_CONFIG=$ac_pt_PKG_CONFIG
4575 fi
4576 else
4577 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4578 fi
4579
4580 fi
4581 if test -n "$PKG_CONFIG"; then
4582 _pkg_min_version=0.9.0
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4584 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4585 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4587 $as_echo "yes" >&6; }
4588 else
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 $as_echo "no" >&6; }
4591 PKG_CONFIG=""
4592 fi
4593 fi
4594 # Make sure we can run config.sub.
4595 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4596 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4597
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4599 $as_echo_n "checking build system type... " >&6; }
4600 if ${ac_cv_build+:} false; then :
4601 $as_echo_n "(cached) " >&6
4602 else
4603 ac_build_alias=$build_alias
4604 test "x$ac_build_alias" = x &&
4605 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4606 test "x$ac_build_alias" = x &&
4607 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4608 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4609 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4610
4611 fi
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4613 $as_echo "$ac_cv_build" >&6; }
4614 case $ac_cv_build in
4615 *-*-*) ;;
4616 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4617 esac
4618 build=$ac_cv_build
4619 ac_save_IFS=$IFS; IFS='-'
4620 set x $ac_cv_build
4621 shift
4622 build_cpu=$1
4623 build_vendor=$2
4624 shift; shift
4625 # Remember, the first character of IFS is used to create $*,
4626 # except with old shells:
4627 build_os=$*
4628 IFS=$ac_save_IFS
4629 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4630
4631
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4633 $as_echo_n "checking host system type... " >&6; }
4634 if ${ac_cv_host+:} false; then :
4635 $as_echo_n "(cached) " >&6
4636 else
4637 if test "x$host_alias" = x; then
4638 ac_cv_host=$ac_cv_build
4639 else
4640 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4641 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4642 fi
4643
4644 fi
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4646 $as_echo "$ac_cv_host" >&6; }
4647 case $ac_cv_host in
4648 *-*-*) ;;
4649 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4650 esac
4651 host=$ac_cv_host
4652 ac_save_IFS=$IFS; IFS='-'
4653 set x $ac_cv_host
4654 shift
4655 host_cpu=$1
4656 host_vendor=$2
4657 shift; shift
4658 # Remember, the first character of IFS is used to create $*,
4659 # except with old shells:
4660 host_os=$*
4661 IFS=$ac_save_IFS
4662 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4663
4664
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4666 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4667 if ${ac_cv_path_SED+:} false; then :
4668 $as_echo_n "(cached) " >&6
4669 else
4670 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4671 for ac_i in 1 2 3 4 5 6 7; do
4672 ac_script="$ac_script$as_nl$ac_script"
4673 done
4674 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4675 { ac_script=; unset ac_script;}
4676 if test -z "$SED"; then
4677 ac_path_SED_found=false
4678 # Loop through the user's path and test for each of PROGNAME-LIST
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 for as_dir in $PATH
4681 do
4682 IFS=$as_save_IFS
4683 test -z "$as_dir" && as_dir=.
4684 for ac_prog in sed gsed; do
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4687 as_fn_executable_p "$ac_path_SED" || continue
4688 # Check for GNU ac_path_SED and select it if it is found.
4689 # Check for GNU $ac_path_SED
4690 case `"$ac_path_SED" --version 2>&1` in
4691 *GNU*)
4692 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4693 *)
4694 ac_count=0
4695 $as_echo_n 0123456789 >"conftest.in"
4696 while :
4697 do
4698 cat "conftest.in" "conftest.in" >"conftest.tmp"
4699 mv "conftest.tmp" "conftest.in"
4700 cp "conftest.in" "conftest.nl"
4701 $as_echo '' >> "conftest.nl"
4702 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4704 as_fn_arith $ac_count + 1 && ac_count=$as_val
4705 if test $ac_count -gt ${ac_path_SED_max-0}; then
4706 # Best one so far, save it but keep looking for a better one
4707 ac_cv_path_SED="$ac_path_SED"
4708 ac_path_SED_max=$ac_count
4709 fi
4710 # 10*(2^10) chars as input seems more than enough
4711 test $ac_count -gt 10 && break
4712 done
4713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4714 esac
4715
4716 $ac_path_SED_found && break 3
4717 done
4718 done
4719 done
4720 IFS=$as_save_IFS
4721 if test -z "$ac_cv_path_SED"; then
4722 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4723 fi
4724 else
4725 ac_cv_path_SED=$SED
4726 fi
4727
4728 fi
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4730 $as_echo "$ac_cv_path_SED" >&6; }
4731 SED="$ac_cv_path_SED"
4732 rm -f conftest.sed
4733
4734
4735
4736
4737
4738
4739 # Check whether --enable-selective-werror was given.
4740 if test "${enable_selective_werror+set}" = set; then :
4741 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4742 else
4743 SELECTIVE_WERROR=yes
4744 fi
4745
4746
4747
4748
4749
4750 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4751 if test "x$SUNCC" = "xyes"; then
4752 BASE_CFLAGS="-v"
4753 else
4754 BASE_CFLAGS=""
4755 fi
4756
4757 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771 xorg_testset_save_CFLAGS="$CFLAGS"
4772
4773 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4776 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4777 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h. */
4782 int i;
4783 _ACEOF
4784 if ac_fn_c_try_compile "$LINENO"; then :
4785 xorg_cv_cc_flag_unknown_warning_option=yes
4786 else
4787 xorg_cv_cc_flag_unknown_warning_option=no
4788 fi
4789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790 fi
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4792 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4794 CFLAGS="$xorg_testset_save_CFLAGS"
4795 fi
4796
4797 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4800 fi
4801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4803 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4804 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4809 int i;
4810 _ACEOF
4811 if ac_fn_c_try_compile "$LINENO"; then :
4812 xorg_cv_cc_flag_unused_command_line_argument=yes
4813 else
4814 xorg_cv_cc_flag_unused_command_line_argument=no
4815 fi
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817 fi
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4819 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4820 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4821 CFLAGS="$xorg_testset_save_CFLAGS"
4822 fi
4823
4824 found="no"
4825
4826 if test $found = "no" ; then
4827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4829 fi
4830
4831 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4833 fi
4834
4835 CFLAGS="$CFLAGS -Wall"
4836
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4838 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4839 cacheid=xorg_cv_cc_flag__Wall
4840 if eval \${$cacheid+:} false; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4845 int i;
4846 int
4847 main ()
4848 {
4849
4850 ;
4851 return 0;
4852 }
4853 _ACEOF
4854 if ac_fn_c_try_link "$LINENO"; then :
4855 eval $cacheid=yes
4856 else
4857 eval $cacheid=no
4858 fi
4859 rm -f core conftest.err conftest.$ac_objext \
4860 conftest$ac_exeext conftest.$ac_ext
4861 fi
4862
4863
4864 CFLAGS="$xorg_testset_save_CFLAGS"
4865
4866 eval supported=\$$cacheid
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4868 $as_echo "$supported" >&6; }
4869 if test "$supported" = "yes" ; then
4870 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4871 found="yes"
4872 fi
4873 fi
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889 xorg_testset_save_CFLAGS="$CFLAGS"
4890
4891 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4894 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4895 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899 /* end confdefs.h. */
4900 int i;
4901 _ACEOF
4902 if ac_fn_c_try_compile "$LINENO"; then :
4903 xorg_cv_cc_flag_unknown_warning_option=yes
4904 else
4905 xorg_cv_cc_flag_unknown_warning_option=no
4906 fi
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 fi
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4910 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4912 CFLAGS="$xorg_testset_save_CFLAGS"
4913 fi
4914
4915 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4918 fi
4919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4921 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4922 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4927 int i;
4928 _ACEOF
4929 if ac_fn_c_try_compile "$LINENO"; then :
4930 xorg_cv_cc_flag_unused_command_line_argument=yes
4931 else
4932 xorg_cv_cc_flag_unused_command_line_argument=no
4933 fi
4934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4935 fi
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4937 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4939 CFLAGS="$xorg_testset_save_CFLAGS"
4940 fi
4941
4942 found="no"
4943
4944 if test $found = "no" ; then
4945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4947 fi
4948
4949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4951 fi
4952
4953 CFLAGS="$CFLAGS -Wpointer-arith"
4954
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4956 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4957 cacheid=xorg_cv_cc_flag__Wpointer_arith
4958 if eval \${$cacheid+:} false; then :
4959 $as_echo_n "(cached) " >&6
4960 else
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4963 int i;
4964 int
4965 main ()
4966 {
4967
4968 ;
4969 return 0;
4970 }
4971 _ACEOF
4972 if ac_fn_c_try_link "$LINENO"; then :
4973 eval $cacheid=yes
4974 else
4975 eval $cacheid=no
4976 fi
4977 rm -f core conftest.err conftest.$ac_objext \
4978 conftest$ac_exeext conftest.$ac_ext
4979 fi
4980
4981
4982 CFLAGS="$xorg_testset_save_CFLAGS"
4983
4984 eval supported=\$$cacheid
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4986 $as_echo "$supported" >&6; }
4987 if test "$supported" = "yes" ; then
4988 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4989 found="yes"
4990 fi
4991 fi
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007 xorg_testset_save_CFLAGS="$CFLAGS"
5008
5009 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5012 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5013 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5018 int i;
5019 _ACEOF
5020 if ac_fn_c_try_compile "$LINENO"; then :
5021 xorg_cv_cc_flag_unknown_warning_option=yes
5022 else
5023 xorg_cv_cc_flag_unknown_warning_option=no
5024 fi
5025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026 fi
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5028 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5030 CFLAGS="$xorg_testset_save_CFLAGS"
5031 fi
5032
5033 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5036 fi
5037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5039 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5040 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5045 int i;
5046 _ACEOF
5047 if ac_fn_c_try_compile "$LINENO"; then :
5048 xorg_cv_cc_flag_unused_command_line_argument=yes
5049 else
5050 xorg_cv_cc_flag_unused_command_line_argument=no
5051 fi
5052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5053 fi
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5055 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5057 CFLAGS="$xorg_testset_save_CFLAGS"
5058 fi
5059
5060 found="no"
5061
5062 if test $found = "no" ; then
5063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5065 fi
5066
5067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5069 fi
5070
5071 CFLAGS="$CFLAGS -Wmissing-declarations"
5072
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5074 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5075 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5076 if eval \${$cacheid+:} false; then :
5077 $as_echo_n "(cached) " >&6
5078 else
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080 /* end confdefs.h. */
5081 int i;
5082 int
5083 main ()
5084 {
5085
5086 ;
5087 return 0;
5088 }
5089 _ACEOF
5090 if ac_fn_c_try_link "$LINENO"; then :
5091 eval $cacheid=yes
5092 else
5093 eval $cacheid=no
5094 fi
5095 rm -f core conftest.err conftest.$ac_objext \
5096 conftest$ac_exeext conftest.$ac_ext
5097 fi
5098
5099
5100 CFLAGS="$xorg_testset_save_CFLAGS"
5101
5102 eval supported=\$$cacheid
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5104 $as_echo "$supported" >&6; }
5105 if test "$supported" = "yes" ; then
5106 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5107 found="yes"
5108 fi
5109 fi
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125 xorg_testset_save_CFLAGS="$CFLAGS"
5126
5127 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5130 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5131 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5132 $as_echo_n "(cached) " >&6
5133 else
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"; then :
5139 xorg_cv_cc_flag_unknown_warning_option=yes
5140 else
5141 xorg_cv_cc_flag_unknown_warning_option=no
5142 fi
5143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144 fi
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5146 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5148 CFLAGS="$xorg_testset_save_CFLAGS"
5149 fi
5150
5151 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5154 fi
5155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5157 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5158 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 int i;
5164 _ACEOF
5165 if ac_fn_c_try_compile "$LINENO"; then :
5166 xorg_cv_cc_flag_unused_command_line_argument=yes
5167 else
5168 xorg_cv_cc_flag_unused_command_line_argument=no
5169 fi
5170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171 fi
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5173 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5175 CFLAGS="$xorg_testset_save_CFLAGS"
5176 fi
5177
5178 found="no"
5179
5180 if test $found = "no" ; then
5181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5183 fi
5184
5185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5187 fi
5188
5189 CFLAGS="$CFLAGS -Wformat=2"
5190
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5192 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5193 cacheid=xorg_cv_cc_flag__Wformat_2
5194 if eval \${$cacheid+:} false; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199 int i;
5200 int
5201 main ()
5202 {
5203
5204 ;
5205 return 0;
5206 }
5207 _ACEOF
5208 if ac_fn_c_try_link "$LINENO"; then :
5209 eval $cacheid=yes
5210 else
5211 eval $cacheid=no
5212 fi
5213 rm -f core conftest.err conftest.$ac_objext \
5214 conftest$ac_exeext conftest.$ac_ext
5215 fi
5216
5217
5218 CFLAGS="$xorg_testset_save_CFLAGS"
5219
5220 eval supported=\$$cacheid
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5222 $as_echo "$supported" >&6; }
5223 if test "$supported" = "yes" ; then
5224 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5225 found="yes"
5226 fi
5227 fi
5228
5229 if test $found = "no" ; then
5230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5232 fi
5233
5234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5236 fi
5237
5238 CFLAGS="$CFLAGS -Wformat"
5239
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5241 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5242 cacheid=xorg_cv_cc_flag__Wformat
5243 if eval \${$cacheid+:} false; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5248 int i;
5249 int
5250 main ()
5251 {
5252
5253 ;
5254 return 0;
5255 }
5256 _ACEOF
5257 if ac_fn_c_try_link "$LINENO"; then :
5258 eval $cacheid=yes
5259 else
5260 eval $cacheid=no
5261 fi
5262 rm -f core conftest.err conftest.$ac_objext \
5263 conftest$ac_exeext conftest.$ac_ext
5264 fi
5265
5266
5267 CFLAGS="$xorg_testset_save_CFLAGS"
5268
5269 eval supported=\$$cacheid
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5271 $as_echo "$supported" >&6; }
5272 if test "$supported" = "yes" ; then
5273 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5274 found="yes"
5275 fi
5276 fi
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294 xorg_testset_save_CFLAGS="$CFLAGS"
5295
5296 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5299 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5300 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5305 int i;
5306 _ACEOF
5307 if ac_fn_c_try_compile "$LINENO"; then :
5308 xorg_cv_cc_flag_unknown_warning_option=yes
5309 else
5310 xorg_cv_cc_flag_unknown_warning_option=no
5311 fi
5312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5313 fi
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5315 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5317 CFLAGS="$xorg_testset_save_CFLAGS"
5318 fi
5319
5320 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5323 fi
5324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5326 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5327 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332 int i;
5333 _ACEOF
5334 if ac_fn_c_try_compile "$LINENO"; then :
5335 xorg_cv_cc_flag_unused_command_line_argument=yes
5336 else
5337 xorg_cv_cc_flag_unused_command_line_argument=no
5338 fi
5339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5340 fi
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5342 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5344 CFLAGS="$xorg_testset_save_CFLAGS"
5345 fi
5346
5347 found="no"
5348
5349 if test $found = "no" ; then
5350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5352 fi
5353
5354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5356 fi
5357
5358 CFLAGS="$CFLAGS -Wstrict-prototypes"
5359
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5361 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5362 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5363 if eval \${$cacheid+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5368 int i;
5369 int
5370 main ()
5371 {
5372
5373 ;
5374 return 0;
5375 }
5376 _ACEOF
5377 if ac_fn_c_try_link "$LINENO"; then :
5378 eval $cacheid=yes
5379 else
5380 eval $cacheid=no
5381 fi
5382 rm -f core conftest.err conftest.$ac_objext \
5383 conftest$ac_exeext conftest.$ac_ext
5384 fi
5385
5386
5387 CFLAGS="$xorg_testset_save_CFLAGS"
5388
5389 eval supported=\$$cacheid
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5391 $as_echo "$supported" >&6; }
5392 if test "$supported" = "yes" ; then
5393 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5394 found="yes"
5395 fi
5396 fi
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412 xorg_testset_save_CFLAGS="$CFLAGS"
5413
5414 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5417 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5418 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5423 int i;
5424 _ACEOF
5425 if ac_fn_c_try_compile "$LINENO"; then :
5426 xorg_cv_cc_flag_unknown_warning_option=yes
5427 else
5428 xorg_cv_cc_flag_unknown_warning_option=no
5429 fi
5430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431 fi
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5433 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5434 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5435 CFLAGS="$xorg_testset_save_CFLAGS"
5436 fi
5437
5438 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5441 fi
5442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5444 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5445 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5450 int i;
5451 _ACEOF
5452 if ac_fn_c_try_compile "$LINENO"; then :
5453 xorg_cv_cc_flag_unused_command_line_argument=yes
5454 else
5455 xorg_cv_cc_flag_unused_command_line_argument=no
5456 fi
5457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458 fi
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5460 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5462 CFLAGS="$xorg_testset_save_CFLAGS"
5463 fi
5464
5465 found="no"
5466
5467 if test $found = "no" ; then
5468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5470 fi
5471
5472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5474 fi
5475
5476 CFLAGS="$CFLAGS -Wmissing-prototypes"
5477
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5479 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5480 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5481 if eval \${$cacheid+:} false; then :
5482 $as_echo_n "(cached) " >&6
5483 else
5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5486 int i;
5487 int
5488 main ()
5489 {
5490
5491 ;
5492 return 0;
5493 }
5494 _ACEOF
5495 if ac_fn_c_try_link "$LINENO"; then :
5496 eval $cacheid=yes
5497 else
5498 eval $cacheid=no
5499 fi
5500 rm -f core conftest.err conftest.$ac_objext \
5501 conftest$ac_exeext conftest.$ac_ext
5502 fi
5503
5504
5505 CFLAGS="$xorg_testset_save_CFLAGS"
5506
5507 eval supported=\$$cacheid
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5509 $as_echo "$supported" >&6; }
5510 if test "$supported" = "yes" ; then
5511 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5512 found="yes"
5513 fi
5514 fi
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530 xorg_testset_save_CFLAGS="$CFLAGS"
5531
5532 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5535 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5536 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5537 $as_echo_n "(cached) " >&6
5538 else
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5541 int i;
5542 _ACEOF
5543 if ac_fn_c_try_compile "$LINENO"; then :
5544 xorg_cv_cc_flag_unknown_warning_option=yes
5545 else
5546 xorg_cv_cc_flag_unknown_warning_option=no
5547 fi
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 fi
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5551 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5553 CFLAGS="$xorg_testset_save_CFLAGS"
5554 fi
5555
5556 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5559 fi
5560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5562 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5563 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5568 int i;
5569 _ACEOF
5570 if ac_fn_c_try_compile "$LINENO"; then :
5571 xorg_cv_cc_flag_unused_command_line_argument=yes
5572 else
5573 xorg_cv_cc_flag_unused_command_line_argument=no
5574 fi
5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5578 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5580 CFLAGS="$xorg_testset_save_CFLAGS"
5581 fi
5582
5583 found="no"
5584
5585 if test $found = "no" ; then
5586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5588 fi
5589
5590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5592 fi
5593
5594 CFLAGS="$CFLAGS -Wnested-externs"
5595
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5597 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5598 cacheid=xorg_cv_cc_flag__Wnested_externs
5599 if eval \${$cacheid+:} false; then :
5600 $as_echo_n "(cached) " >&6
5601 else
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5604 int i;
5605 int
5606 main ()
5607 {
5608
5609 ;
5610 return 0;
5611 }
5612 _ACEOF
5613 if ac_fn_c_try_link "$LINENO"; then :
5614 eval $cacheid=yes
5615 else
5616 eval $cacheid=no
5617 fi
5618 rm -f core conftest.err conftest.$ac_objext \
5619 conftest$ac_exeext conftest.$ac_ext
5620 fi
5621
5622
5623 CFLAGS="$xorg_testset_save_CFLAGS"
5624
5625 eval supported=\$$cacheid
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5627 $as_echo "$supported" >&6; }
5628 if test "$supported" = "yes" ; then
5629 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5630 found="yes"
5631 fi
5632 fi
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648 xorg_testset_save_CFLAGS="$CFLAGS"
5649
5650 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5653 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5654 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5659 int i;
5660 _ACEOF
5661 if ac_fn_c_try_compile "$LINENO"; then :
5662 xorg_cv_cc_flag_unknown_warning_option=yes
5663 else
5664 xorg_cv_cc_flag_unknown_warning_option=no
5665 fi
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667 fi
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5669 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5670 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5671 CFLAGS="$xorg_testset_save_CFLAGS"
5672 fi
5673
5674 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5677 fi
5678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5680 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5681 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5686 int i;
5687 _ACEOF
5688 if ac_fn_c_try_compile "$LINENO"; then :
5689 xorg_cv_cc_flag_unused_command_line_argument=yes
5690 else
5691 xorg_cv_cc_flag_unused_command_line_argument=no
5692 fi
5693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694 fi
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5696 $as_echo "$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 -Wbad-function-cast"
5713
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5715 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5716 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5717 if eval \${$cacheid+:} false; then :
5718 $as_echo_n "(cached) " >&6
5719 else
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5722 int i;
5723 int
5724 main ()
5725 {
5726
5727 ;
5728 return 0;
5729 }
5730 _ACEOF
5731 if ac_fn_c_try_link "$LINENO"; then :
5732 eval $cacheid=yes
5733 else
5734 eval $cacheid=no
5735 fi
5736 rm -f core conftest.err conftest.$ac_objext \
5737 conftest$ac_exeext conftest.$ac_ext
5738 fi
5739
5740
5741 CFLAGS="$xorg_testset_save_CFLAGS"
5742
5743 eval supported=\$$cacheid
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5745 $as_echo "$supported" >&6; }
5746 if test "$supported" = "yes" ; then
5747 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5748 found="yes"
5749 fi
5750 fi
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766 xorg_testset_save_CFLAGS="$CFLAGS"
5767
5768 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5771 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5772 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5773 $as_echo_n "(cached) " >&6
5774 else
5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h. */
5777 int i;
5778 _ACEOF
5779 if ac_fn_c_try_compile "$LINENO"; then :
5780 xorg_cv_cc_flag_unknown_warning_option=yes
5781 else
5782 xorg_cv_cc_flag_unknown_warning_option=no
5783 fi
5784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5785 fi
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5787 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5788 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5789 CFLAGS="$xorg_testset_save_CFLAGS"
5790 fi
5791
5792 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5795 fi
5796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5798 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5799 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5800 $as_echo_n "(cached) " >&6
5801 else
5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h. */
5804 int i;
5805 _ACEOF
5806 if ac_fn_c_try_compile "$LINENO"; then :
5807 xorg_cv_cc_flag_unused_command_line_argument=yes
5808 else
5809 xorg_cv_cc_flag_unused_command_line_argument=no
5810 fi
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 fi
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5814 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5816 CFLAGS="$xorg_testset_save_CFLAGS"
5817 fi
5818
5819 found="no"
5820
5821 if test $found = "no" ; then
5822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5824 fi
5825
5826 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5828 fi
5829
5830 CFLAGS="$CFLAGS -Wold-style-definition"
5831
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5833 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5834 cacheid=xorg_cv_cc_flag__Wold_style_definition
5835 if eval \${$cacheid+:} false; then :
5836 $as_echo_n "(cached) " >&6
5837 else
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h. */
5840 int i;
5841 int
5842 main ()
5843 {
5844
5845 ;
5846 return 0;
5847 }
5848 _ACEOF
5849 if ac_fn_c_try_link "$LINENO"; then :
5850 eval $cacheid=yes
5851 else
5852 eval $cacheid=no
5853 fi
5854 rm -f core conftest.err conftest.$ac_objext \
5855 conftest$ac_exeext conftest.$ac_ext
5856 fi
5857
5858
5859 CFLAGS="$xorg_testset_save_CFLAGS"
5860
5861 eval supported=\$$cacheid
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5863 $as_echo "$supported" >&6; }
5864 if test "$supported" = "yes" ; then
5865 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5866 found="yes"
5867 fi
5868 fi
5869
5870 if test $found = "no" ; then
5871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5873 fi
5874
5875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5877 fi
5878
5879 CFLAGS="$CFLAGS -fd"
5880
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5882 $as_echo_n "checking if $CC supports -fd... " >&6; }
5883 cacheid=xorg_cv_cc_flag__fd
5884 if eval \${$cacheid+:} false; then :
5885 $as_echo_n "(cached) " >&6
5886 else
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5889 int i;
5890 int
5891 main ()
5892 {
5893
5894 ;
5895 return 0;
5896 }
5897 _ACEOF
5898 if ac_fn_c_try_link "$LINENO"; then :
5899 eval $cacheid=yes
5900 else
5901 eval $cacheid=no
5902 fi
5903 rm -f core conftest.err conftest.$ac_objext \
5904 conftest$ac_exeext conftest.$ac_ext
5905 fi
5906
5907
5908 CFLAGS="$xorg_testset_save_CFLAGS"
5909
5910 eval supported=\$$cacheid
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5912 $as_echo "$supported" >&6; }
5913 if test "$supported" = "yes" ; then
5914 BASE_CFLAGS="$BASE_CFLAGS -fd"
5915 found="yes"
5916 fi
5917 fi
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933 xorg_testset_save_CFLAGS="$CFLAGS"
5934
5935 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5938 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5939 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5944 int i;
5945 _ACEOF
5946 if ac_fn_c_try_compile "$LINENO"; then :
5947 xorg_cv_cc_flag_unknown_warning_option=yes
5948 else
5949 xorg_cv_cc_flag_unknown_warning_option=no
5950 fi
5951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952 fi
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5954 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5956 CFLAGS="$xorg_testset_save_CFLAGS"
5957 fi
5958
5959 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5962 fi
5963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5965 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5966 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5967 $as_echo_n "(cached) " >&6
5968 else
5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h. */
5971 int i;
5972 _ACEOF
5973 if ac_fn_c_try_compile "$LINENO"; then :
5974 xorg_cv_cc_flag_unused_command_line_argument=yes
5975 else
5976 xorg_cv_cc_flag_unused_command_line_argument=no
5977 fi
5978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979 fi
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5981 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5983 CFLAGS="$xorg_testset_save_CFLAGS"
5984 fi
5985
5986 found="no"
5987
5988 if test $found = "no" ; then
5989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5991 fi
5992
5993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5995 fi
5996
5997 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5998
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6000 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6001 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6002 if eval \${$cacheid+:} false; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006 /* end confdefs.h. */
6007 int i;
6008 int
6009 main ()
6010 {
6011
6012 ;
6013 return 0;
6014 }
6015 _ACEOF
6016 if ac_fn_c_try_link "$LINENO"; then :
6017 eval $cacheid=yes
6018 else
6019 eval $cacheid=no
6020 fi
6021 rm -f core conftest.err conftest.$ac_objext \
6022 conftest$ac_exeext conftest.$ac_ext
6023 fi
6024
6025
6026 CFLAGS="$xorg_testset_save_CFLAGS"
6027
6028 eval supported=\$$cacheid
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6030 $as_echo "$supported" >&6; }
6031 if test "$supported" = "yes" ; then
6032 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6033 found="yes"
6034 fi
6035 fi
6036
6037
6038
6039
6040
6041 # This chunk adds additional warnings that could catch undesired effects.
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055 xorg_testset_save_CFLAGS="$CFLAGS"
6056
6057 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6060 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6061 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6062 $as_echo_n "(cached) " >&6
6063 else
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h. */
6066 int i;
6067 _ACEOF
6068 if ac_fn_c_try_compile "$LINENO"; then :
6069 xorg_cv_cc_flag_unknown_warning_option=yes
6070 else
6071 xorg_cv_cc_flag_unknown_warning_option=no
6072 fi
6073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6074 fi
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6076 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6078 CFLAGS="$xorg_testset_save_CFLAGS"
6079 fi
6080
6081 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6084 fi
6085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6087 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6088 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6089 $as_echo_n "(cached) " >&6
6090 else
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6093 int i;
6094 _ACEOF
6095 if ac_fn_c_try_compile "$LINENO"; then :
6096 xorg_cv_cc_flag_unused_command_line_argument=yes
6097 else
6098 xorg_cv_cc_flag_unused_command_line_argument=no
6099 fi
6100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101 fi
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6103 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6105 CFLAGS="$xorg_testset_save_CFLAGS"
6106 fi
6107
6108 found="no"
6109
6110 if test $found = "no" ; then
6111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6113 fi
6114
6115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6117 fi
6118
6119 CFLAGS="$CFLAGS -Wunused"
6120
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6122 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6123 cacheid=xorg_cv_cc_flag__Wunused
6124 if eval \${$cacheid+:} false; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6129 int i;
6130 int
6131 main ()
6132 {
6133
6134 ;
6135 return 0;
6136 }
6137 _ACEOF
6138 if ac_fn_c_try_link "$LINENO"; then :
6139 eval $cacheid=yes
6140 else
6141 eval $cacheid=no
6142 fi
6143 rm -f core conftest.err conftest.$ac_objext \
6144 conftest$ac_exeext conftest.$ac_ext
6145 fi
6146
6147
6148 CFLAGS="$xorg_testset_save_CFLAGS"
6149
6150 eval supported=\$$cacheid
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6152 $as_echo "$supported" >&6; }
6153 if test "$supported" = "yes" ; then
6154 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6155 found="yes"
6156 fi
6157 fi
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173 xorg_testset_save_CFLAGS="$CFLAGS"
6174
6175 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6178 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6179 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6180 $as_echo_n "(cached) " >&6
6181 else
6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6184 int i;
6185 _ACEOF
6186 if ac_fn_c_try_compile "$LINENO"; then :
6187 xorg_cv_cc_flag_unknown_warning_option=yes
6188 else
6189 xorg_cv_cc_flag_unknown_warning_option=no
6190 fi
6191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192 fi
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6194 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6196 CFLAGS="$xorg_testset_save_CFLAGS"
6197 fi
6198
6199 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6202 fi
6203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6205 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6206 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6211 int i;
6212 _ACEOF
6213 if ac_fn_c_try_compile "$LINENO"; then :
6214 xorg_cv_cc_flag_unused_command_line_argument=yes
6215 else
6216 xorg_cv_cc_flag_unused_command_line_argument=no
6217 fi
6218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219 fi
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6221 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6223 CFLAGS="$xorg_testset_save_CFLAGS"
6224 fi
6225
6226 found="no"
6227
6228 if test $found = "no" ; then
6229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6231 fi
6232
6233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6235 fi
6236
6237 CFLAGS="$CFLAGS -Wuninitialized"
6238
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6240 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6241 cacheid=xorg_cv_cc_flag__Wuninitialized
6242 if eval \${$cacheid+:} false; then :
6243 $as_echo_n "(cached) " >&6
6244 else
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6247 int i;
6248 int
6249 main ()
6250 {
6251
6252 ;
6253 return 0;
6254 }
6255 _ACEOF
6256 if ac_fn_c_try_link "$LINENO"; then :
6257 eval $cacheid=yes
6258 else
6259 eval $cacheid=no
6260 fi
6261 rm -f core conftest.err conftest.$ac_objext \
6262 conftest$ac_exeext conftest.$ac_ext
6263 fi
6264
6265
6266 CFLAGS="$xorg_testset_save_CFLAGS"
6267
6268 eval supported=\$$cacheid
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6270 $as_echo "$supported" >&6; }
6271 if test "$supported" = "yes" ; then
6272 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6273 found="yes"
6274 fi
6275 fi
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291 xorg_testset_save_CFLAGS="$CFLAGS"
6292
6293 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6296 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6297 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6302 int i;
6303 _ACEOF
6304 if ac_fn_c_try_compile "$LINENO"; then :
6305 xorg_cv_cc_flag_unknown_warning_option=yes
6306 else
6307 xorg_cv_cc_flag_unknown_warning_option=no
6308 fi
6309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6310 fi
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6312 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6314 CFLAGS="$xorg_testset_save_CFLAGS"
6315 fi
6316
6317 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6320 fi
6321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6323 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6324 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6325 $as_echo_n "(cached) " >&6
6326 else
6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6329 int i;
6330 _ACEOF
6331 if ac_fn_c_try_compile "$LINENO"; then :
6332 xorg_cv_cc_flag_unused_command_line_argument=yes
6333 else
6334 xorg_cv_cc_flag_unused_command_line_argument=no
6335 fi
6336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337 fi
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6339 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6341 CFLAGS="$xorg_testset_save_CFLAGS"
6342 fi
6343
6344 found="no"
6345
6346 if test $found = "no" ; then
6347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6349 fi
6350
6351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6353 fi
6354
6355 CFLAGS="$CFLAGS -Wshadow"
6356
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6358 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6359 cacheid=xorg_cv_cc_flag__Wshadow
6360 if eval \${$cacheid+:} false; then :
6361 $as_echo_n "(cached) " >&6
6362 else
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6365 int i;
6366 int
6367 main ()
6368 {
6369
6370 ;
6371 return 0;
6372 }
6373 _ACEOF
6374 if ac_fn_c_try_link "$LINENO"; then :
6375 eval $cacheid=yes
6376 else
6377 eval $cacheid=no
6378 fi
6379 rm -f core conftest.err conftest.$ac_objext \
6380 conftest$ac_exeext conftest.$ac_ext
6381 fi
6382
6383
6384 CFLAGS="$xorg_testset_save_CFLAGS"
6385
6386 eval supported=\$$cacheid
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6388 $as_echo "$supported" >&6; }
6389 if test "$supported" = "yes" ; then
6390 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6391 found="yes"
6392 fi
6393 fi
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409 xorg_testset_save_CFLAGS="$CFLAGS"
6410
6411 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6414 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6415 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6416 $as_echo_n "(cached) " >&6
6417 else
6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6420 int i;
6421 _ACEOF
6422 if ac_fn_c_try_compile "$LINENO"; then :
6423 xorg_cv_cc_flag_unknown_warning_option=yes
6424 else
6425 xorg_cv_cc_flag_unknown_warning_option=no
6426 fi
6427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6428 fi
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6430 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6432 CFLAGS="$xorg_testset_save_CFLAGS"
6433 fi
6434
6435 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6438 fi
6439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6441 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6442 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446 /* end confdefs.h. */
6447 int i;
6448 _ACEOF
6449 if ac_fn_c_try_compile "$LINENO"; then :
6450 xorg_cv_cc_flag_unused_command_line_argument=yes
6451 else
6452 xorg_cv_cc_flag_unused_command_line_argument=no
6453 fi
6454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455 fi
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6457 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6459 CFLAGS="$xorg_testset_save_CFLAGS"
6460 fi
6461
6462 found="no"
6463
6464 if test $found = "no" ; then
6465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6467 fi
6468
6469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6471 fi
6472
6473 CFLAGS="$CFLAGS -Wmissing-noreturn"
6474
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6476 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6477 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6478 if eval \${$cacheid+:} false; then :
6479 $as_echo_n "(cached) " >&6
6480 else
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6483 int i;
6484 int
6485 main ()
6486 {
6487
6488 ;
6489 return 0;
6490 }
6491 _ACEOF
6492 if ac_fn_c_try_link "$LINENO"; then :
6493 eval $cacheid=yes
6494 else
6495 eval $cacheid=no
6496 fi
6497 rm -f core conftest.err conftest.$ac_objext \
6498 conftest$ac_exeext conftest.$ac_ext
6499 fi
6500
6501
6502 CFLAGS="$xorg_testset_save_CFLAGS"
6503
6504 eval supported=\$$cacheid
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6506 $as_echo "$supported" >&6; }
6507 if test "$supported" = "yes" ; then
6508 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6509 found="yes"
6510 fi
6511 fi
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527 xorg_testset_save_CFLAGS="$CFLAGS"
6528
6529 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6532 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6533 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6534 $as_echo_n "(cached) " >&6
6535 else
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6538 int i;
6539 _ACEOF
6540 if ac_fn_c_try_compile "$LINENO"; then :
6541 xorg_cv_cc_flag_unknown_warning_option=yes
6542 else
6543 xorg_cv_cc_flag_unknown_warning_option=no
6544 fi
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546 fi
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6548 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6550 CFLAGS="$xorg_testset_save_CFLAGS"
6551 fi
6552
6553 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6556 fi
6557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6559 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6560 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6565 int i;
6566 _ACEOF
6567 if ac_fn_c_try_compile "$LINENO"; then :
6568 xorg_cv_cc_flag_unused_command_line_argument=yes
6569 else
6570 xorg_cv_cc_flag_unused_command_line_argument=no
6571 fi
6572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 fi
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6575 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6576 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6577 CFLAGS="$xorg_testset_save_CFLAGS"
6578 fi
6579
6580 found="no"
6581
6582 if test $found = "no" ; then
6583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6585 fi
6586
6587 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6589 fi
6590
6591 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6592
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6594 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6595 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6596 if eval \${$cacheid+:} false; then :
6597 $as_echo_n "(cached) " >&6
6598 else
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6601 int i;
6602 int
6603 main ()
6604 {
6605
6606 ;
6607 return 0;
6608 }
6609 _ACEOF
6610 if ac_fn_c_try_link "$LINENO"; then :
6611 eval $cacheid=yes
6612 else
6613 eval $cacheid=no
6614 fi
6615 rm -f core conftest.err conftest.$ac_objext \
6616 conftest$ac_exeext conftest.$ac_ext
6617 fi
6618
6619
6620 CFLAGS="$xorg_testset_save_CFLAGS"
6621
6622 eval supported=\$$cacheid
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6624 $as_echo "$supported" >&6; }
6625 if test "$supported" = "yes" ; then
6626 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6627 found="yes"
6628 fi
6629 fi
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645 xorg_testset_save_CFLAGS="$CFLAGS"
6646
6647 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6650 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6651 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6656 int i;
6657 _ACEOF
6658 if ac_fn_c_try_compile "$LINENO"; then :
6659 xorg_cv_cc_flag_unknown_warning_option=yes
6660 else
6661 xorg_cv_cc_flag_unknown_warning_option=no
6662 fi
6663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664 fi
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6666 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6667 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6668 CFLAGS="$xorg_testset_save_CFLAGS"
6669 fi
6670
6671 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6674 fi
6675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6677 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6678 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6683 int i;
6684 _ACEOF
6685 if ac_fn_c_try_compile "$LINENO"; then :
6686 xorg_cv_cc_flag_unused_command_line_argument=yes
6687 else
6688 xorg_cv_cc_flag_unused_command_line_argument=no
6689 fi
6690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691 fi
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6693 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6694 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6695 CFLAGS="$xorg_testset_save_CFLAGS"
6696 fi
6697
6698 found="no"
6699
6700 if test $found = "no" ; then
6701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6703 fi
6704
6705 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6707 fi
6708
6709 CFLAGS="$CFLAGS -Wredundant-decls"
6710
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6712 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6713 cacheid=xorg_cv_cc_flag__Wredundant_decls
6714 if eval \${$cacheid+:} false; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6719 int i;
6720 int
6721 main ()
6722 {
6723
6724 ;
6725 return 0;
6726 }
6727 _ACEOF
6728 if ac_fn_c_try_link "$LINENO"; then :
6729 eval $cacheid=yes
6730 else
6731 eval $cacheid=no
6732 fi
6733 rm -f core conftest.err conftest.$ac_objext \
6734 conftest$ac_exeext conftest.$ac_ext
6735 fi
6736
6737
6738 CFLAGS="$xorg_testset_save_CFLAGS"
6739
6740 eval supported=\$$cacheid
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6742 $as_echo "$supported" >&6; }
6743 if test "$supported" = "yes" ; then
6744 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6745 found="yes"
6746 fi
6747 fi
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763 xorg_testset_save_CFLAGS="$CFLAGS"
6764
6765 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6768 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6769 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6770 $as_echo_n "(cached) " >&6
6771 else
6772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773 /* end confdefs.h. */
6774 int i;
6775 _ACEOF
6776 if ac_fn_c_try_compile "$LINENO"; then :
6777 xorg_cv_cc_flag_unknown_warning_option=yes
6778 else
6779 xorg_cv_cc_flag_unknown_warning_option=no
6780 fi
6781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782 fi
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6784 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6786 CFLAGS="$xorg_testset_save_CFLAGS"
6787 fi
6788
6789 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6792 fi
6793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6795 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6796 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6797 $as_echo_n "(cached) " >&6
6798 else
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6801 int i;
6802 _ACEOF
6803 if ac_fn_c_try_compile "$LINENO"; then :
6804 xorg_cv_cc_flag_unused_command_line_argument=yes
6805 else
6806 xorg_cv_cc_flag_unused_command_line_argument=no
6807 fi
6808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6809 fi
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6811 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6813 CFLAGS="$xorg_testset_save_CFLAGS"
6814 fi
6815
6816 found="no"
6817
6818 if test $found = "no" ; then
6819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6821 fi
6822
6823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6825 fi
6826
6827 CFLAGS="$CFLAGS -Wlogical-op"
6828
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6830 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6831 cacheid=xorg_cv_cc_flag__Wlogical_op
6832 if eval \${$cacheid+:} false; then :
6833 $as_echo_n "(cached) " >&6
6834 else
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6837 int i;
6838 int
6839 main ()
6840 {
6841
6842 ;
6843 return 0;
6844 }
6845 _ACEOF
6846 if ac_fn_c_try_link "$LINENO"; then :
6847 eval $cacheid=yes
6848 else
6849 eval $cacheid=no
6850 fi
6851 rm -f core conftest.err conftest.$ac_objext \
6852 conftest$ac_exeext conftest.$ac_ext
6853 fi
6854
6855
6856 CFLAGS="$xorg_testset_save_CFLAGS"
6857
6858 eval supported=\$$cacheid
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6860 $as_echo "$supported" >&6; }
6861 if test "$supported" = "yes" ; then
6862 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6863 found="yes"
6864 fi
6865 fi
6866
6867
6868
6869 # These are currently disabled because they are noisy. They will be enabled
6870 # in the future once the codebase is sufficiently modernized to silence
6871 # them. For now, I don't want them to drown out the other warnings.
6872 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6873 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6874 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6875
6876 # Turn some warnings into errors, so we don't accidently get successful builds
6877 # when there are problems that should be fixed.
6878
6879 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893 xorg_testset_save_CFLAGS="$CFLAGS"
6894
6895 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6898 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6899 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6904 int i;
6905 _ACEOF
6906 if ac_fn_c_try_compile "$LINENO"; then :
6907 xorg_cv_cc_flag_unknown_warning_option=yes
6908 else
6909 xorg_cv_cc_flag_unknown_warning_option=no
6910 fi
6911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 fi
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6914 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6916 CFLAGS="$xorg_testset_save_CFLAGS"
6917 fi
6918
6919 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6922 fi
6923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6925 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6926 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6927 $as_echo_n "(cached) " >&6
6928 else
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6931 int i;
6932 _ACEOF
6933 if ac_fn_c_try_compile "$LINENO"; then :
6934 xorg_cv_cc_flag_unused_command_line_argument=yes
6935 else
6936 xorg_cv_cc_flag_unused_command_line_argument=no
6937 fi
6938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939 fi
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6941 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6943 CFLAGS="$xorg_testset_save_CFLAGS"
6944 fi
6945
6946 found="no"
6947
6948 if test $found = "no" ; then
6949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6951 fi
6952
6953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6955 fi
6956
6957 CFLAGS="$CFLAGS -Werror=implicit"
6958
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6960 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6961 cacheid=xorg_cv_cc_flag__Werror_implicit
6962 if eval \${$cacheid+:} false; then :
6963 $as_echo_n "(cached) " >&6
6964 else
6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h. */
6967 int i;
6968 int
6969 main ()
6970 {
6971
6972 ;
6973 return 0;
6974 }
6975 _ACEOF
6976 if ac_fn_c_try_link "$LINENO"; then :
6977 eval $cacheid=yes
6978 else
6979 eval $cacheid=no
6980 fi
6981 rm -f core conftest.err conftest.$ac_objext \
6982 conftest$ac_exeext conftest.$ac_ext
6983 fi
6984
6985
6986 CFLAGS="$xorg_testset_save_CFLAGS"
6987
6988 eval supported=\$$cacheid
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6990 $as_echo "$supported" >&6; }
6991 if test "$supported" = "yes" ; then
6992 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6993 found="yes"
6994 fi
6995 fi
6996
6997 if test $found = "no" ; then
6998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7000 fi
7001
7002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7004 fi
7005
7006 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7007
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7009 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7010 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7011 if eval \${$cacheid+:} false; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015 /* end confdefs.h. */
7016 int i;
7017 int
7018 main ()
7019 {
7020
7021 ;
7022 return 0;
7023 }
7024 _ACEOF
7025 if ac_fn_c_try_link "$LINENO"; then :
7026 eval $cacheid=yes
7027 else
7028 eval $cacheid=no
7029 fi
7030 rm -f core conftest.err conftest.$ac_objext \
7031 conftest$ac_exeext conftest.$ac_ext
7032 fi
7033
7034
7035 CFLAGS="$xorg_testset_save_CFLAGS"
7036
7037 eval supported=\$$cacheid
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7039 $as_echo "$supported" >&6; }
7040 if test "$supported" = "yes" ; then
7041 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7042 found="yes"
7043 fi
7044 fi
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060 xorg_testset_save_CFLAGS="$CFLAGS"
7061
7062 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7065 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7066 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7067 $as_echo_n "(cached) " >&6
7068 else
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7071 int i;
7072 _ACEOF
7073 if ac_fn_c_try_compile "$LINENO"; then :
7074 xorg_cv_cc_flag_unknown_warning_option=yes
7075 else
7076 xorg_cv_cc_flag_unknown_warning_option=no
7077 fi
7078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7079 fi
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7081 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7082 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7083 CFLAGS="$xorg_testset_save_CFLAGS"
7084 fi
7085
7086 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7089 fi
7090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7092 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7093 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h. */
7098 int i;
7099 _ACEOF
7100 if ac_fn_c_try_compile "$LINENO"; then :
7101 xorg_cv_cc_flag_unused_command_line_argument=yes
7102 else
7103 xorg_cv_cc_flag_unused_command_line_argument=no
7104 fi
7105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7106 fi
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7108 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7110 CFLAGS="$xorg_testset_save_CFLAGS"
7111 fi
7112
7113 found="no"
7114
7115 if test $found = "no" ; then
7116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7118 fi
7119
7120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7122 fi
7123
7124 CFLAGS="$CFLAGS -Werror=nonnull"
7125
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7127 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7128 cacheid=xorg_cv_cc_flag__Werror_nonnull
7129 if eval \${$cacheid+:} false; then :
7130 $as_echo_n "(cached) " >&6
7131 else
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7134 int i;
7135 int
7136 main ()
7137 {
7138
7139 ;
7140 return 0;
7141 }
7142 _ACEOF
7143 if ac_fn_c_try_link "$LINENO"; then :
7144 eval $cacheid=yes
7145 else
7146 eval $cacheid=no
7147 fi
7148 rm -f core conftest.err conftest.$ac_objext \
7149 conftest$ac_exeext conftest.$ac_ext
7150 fi
7151
7152
7153 CFLAGS="$xorg_testset_save_CFLAGS"
7154
7155 eval supported=\$$cacheid
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7157 $as_echo "$supported" >&6; }
7158 if test "$supported" = "yes" ; then
7159 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7160 found="yes"
7161 fi
7162 fi
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178 xorg_testset_save_CFLAGS="$CFLAGS"
7179
7180 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7183 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7184 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7185 $as_echo_n "(cached) " >&6
7186 else
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7189 int i;
7190 _ACEOF
7191 if ac_fn_c_try_compile "$LINENO"; then :
7192 xorg_cv_cc_flag_unknown_warning_option=yes
7193 else
7194 xorg_cv_cc_flag_unknown_warning_option=no
7195 fi
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197 fi
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7199 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7201 CFLAGS="$xorg_testset_save_CFLAGS"
7202 fi
7203
7204 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7207 fi
7208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7210 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7211 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7212 $as_echo_n "(cached) " >&6
7213 else
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h. */
7216 int i;
7217 _ACEOF
7218 if ac_fn_c_try_compile "$LINENO"; then :
7219 xorg_cv_cc_flag_unused_command_line_argument=yes
7220 else
7221 xorg_cv_cc_flag_unused_command_line_argument=no
7222 fi
7223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224 fi
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7226 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7228 CFLAGS="$xorg_testset_save_CFLAGS"
7229 fi
7230
7231 found="no"
7232
7233 if test $found = "no" ; then
7234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7236 fi
7237
7238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7240 fi
7241
7242 CFLAGS="$CFLAGS -Werror=init-self"
7243
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7245 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7246 cacheid=xorg_cv_cc_flag__Werror_init_self
7247 if eval \${$cacheid+:} false; then :
7248 $as_echo_n "(cached) " >&6
7249 else
7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h. */
7252 int i;
7253 int
7254 main ()
7255 {
7256
7257 ;
7258 return 0;
7259 }
7260 _ACEOF
7261 if ac_fn_c_try_link "$LINENO"; then :
7262 eval $cacheid=yes
7263 else
7264 eval $cacheid=no
7265 fi
7266 rm -f core conftest.err conftest.$ac_objext \
7267 conftest$ac_exeext conftest.$ac_ext
7268 fi
7269
7270
7271 CFLAGS="$xorg_testset_save_CFLAGS"
7272
7273 eval supported=\$$cacheid
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7275 $as_echo "$supported" >&6; }
7276 if test "$supported" = "yes" ; then
7277 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7278 found="yes"
7279 fi
7280 fi
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296 xorg_testset_save_CFLAGS="$CFLAGS"
7297
7298 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7301 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7302 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7303 $as_echo_n "(cached) " >&6
7304 else
7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7307 int i;
7308 _ACEOF
7309 if ac_fn_c_try_compile "$LINENO"; then :
7310 xorg_cv_cc_flag_unknown_warning_option=yes
7311 else
7312 xorg_cv_cc_flag_unknown_warning_option=no
7313 fi
7314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315 fi
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7317 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7319 CFLAGS="$xorg_testset_save_CFLAGS"
7320 fi
7321
7322 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7325 fi
7326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7328 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7329 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7330 $as_echo_n "(cached) " >&6
7331 else
7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333 /* end confdefs.h. */
7334 int i;
7335 _ACEOF
7336 if ac_fn_c_try_compile "$LINENO"; then :
7337 xorg_cv_cc_flag_unused_command_line_argument=yes
7338 else
7339 xorg_cv_cc_flag_unused_command_line_argument=no
7340 fi
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342 fi
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7344 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7346 CFLAGS="$xorg_testset_save_CFLAGS"
7347 fi
7348
7349 found="no"
7350
7351 if test $found = "no" ; then
7352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7354 fi
7355
7356 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7358 fi
7359
7360 CFLAGS="$CFLAGS -Werror=main"
7361
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7363 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7364 cacheid=xorg_cv_cc_flag__Werror_main
7365 if eval \${$cacheid+:} false; then :
7366 $as_echo_n "(cached) " >&6
7367 else
7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h. */
7370 int i;
7371 int
7372 main ()
7373 {
7374
7375 ;
7376 return 0;
7377 }
7378 _ACEOF
7379 if ac_fn_c_try_link "$LINENO"; then :
7380 eval $cacheid=yes
7381 else
7382 eval $cacheid=no
7383 fi
7384 rm -f core conftest.err conftest.$ac_objext \
7385 conftest$ac_exeext conftest.$ac_ext
7386 fi
7387
7388
7389 CFLAGS="$xorg_testset_save_CFLAGS"
7390
7391 eval supported=\$$cacheid
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7393 $as_echo "$supported" >&6; }
7394 if test "$supported" = "yes" ; then
7395 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7396 found="yes"
7397 fi
7398 fi
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414 xorg_testset_save_CFLAGS="$CFLAGS"
7415
7416 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7419 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7420 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7421 $as_echo_n "(cached) " >&6
7422 else
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h. */
7425 int i;
7426 _ACEOF
7427 if ac_fn_c_try_compile "$LINENO"; then :
7428 xorg_cv_cc_flag_unknown_warning_option=yes
7429 else
7430 xorg_cv_cc_flag_unknown_warning_option=no
7431 fi
7432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433 fi
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7435 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7437 CFLAGS="$xorg_testset_save_CFLAGS"
7438 fi
7439
7440 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7443 fi
7444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7446 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7447 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7448 $as_echo_n "(cached) " >&6
7449 else
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7452 int i;
7453 _ACEOF
7454 if ac_fn_c_try_compile "$LINENO"; then :
7455 xorg_cv_cc_flag_unused_command_line_argument=yes
7456 else
7457 xorg_cv_cc_flag_unused_command_line_argument=no
7458 fi
7459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460 fi
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7462 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7464 CFLAGS="$xorg_testset_save_CFLAGS"
7465 fi
7466
7467 found="no"
7468
7469 if test $found = "no" ; then
7470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7472 fi
7473
7474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7476 fi
7477
7478 CFLAGS="$CFLAGS -Werror=missing-braces"
7479
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7481 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7482 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7483 if eval \${$cacheid+:} false; then :
7484 $as_echo_n "(cached) " >&6
7485 else
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h. */
7488 int i;
7489 int
7490 main ()
7491 {
7492
7493 ;
7494 return 0;
7495 }
7496 _ACEOF
7497 if ac_fn_c_try_link "$LINENO"; then :
7498 eval $cacheid=yes
7499 else
7500 eval $cacheid=no
7501 fi
7502 rm -f core conftest.err conftest.$ac_objext \
7503 conftest$ac_exeext conftest.$ac_ext
7504 fi
7505
7506
7507 CFLAGS="$xorg_testset_save_CFLAGS"
7508
7509 eval supported=\$$cacheid
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7511 $as_echo "$supported" >&6; }
7512 if test "$supported" = "yes" ; then
7513 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7514 found="yes"
7515 fi
7516 fi
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532 xorg_testset_save_CFLAGS="$CFLAGS"
7533
7534 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7537 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7538 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7539 $as_echo_n "(cached) " >&6
7540 else
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7543 int i;
7544 _ACEOF
7545 if ac_fn_c_try_compile "$LINENO"; then :
7546 xorg_cv_cc_flag_unknown_warning_option=yes
7547 else
7548 xorg_cv_cc_flag_unknown_warning_option=no
7549 fi
7550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7551 fi
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7553 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7555 CFLAGS="$xorg_testset_save_CFLAGS"
7556 fi
7557
7558 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7561 fi
7562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7564 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7565 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7566 $as_echo_n "(cached) " >&6
7567 else
7568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569 /* end confdefs.h. */
7570 int i;
7571 _ACEOF
7572 if ac_fn_c_try_compile "$LINENO"; then :
7573 xorg_cv_cc_flag_unused_command_line_argument=yes
7574 else
7575 xorg_cv_cc_flag_unused_command_line_argument=no
7576 fi
7577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578 fi
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7580 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7581 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7582 CFLAGS="$xorg_testset_save_CFLAGS"
7583 fi
7584
7585 found="no"
7586
7587 if test $found = "no" ; then
7588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7590 fi
7591
7592 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7594 fi
7595
7596 CFLAGS="$CFLAGS -Werror=sequence-point"
7597
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7599 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7600 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7601 if eval \${$cacheid+:} false; then :
7602 $as_echo_n "(cached) " >&6
7603 else
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7606 int i;
7607 int
7608 main ()
7609 {
7610
7611 ;
7612 return 0;
7613 }
7614 _ACEOF
7615 if ac_fn_c_try_link "$LINENO"; then :
7616 eval $cacheid=yes
7617 else
7618 eval $cacheid=no
7619 fi
7620 rm -f core conftest.err conftest.$ac_objext \
7621 conftest$ac_exeext conftest.$ac_ext
7622 fi
7623
7624
7625 CFLAGS="$xorg_testset_save_CFLAGS"
7626
7627 eval supported=\$$cacheid
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7629 $as_echo "$supported" >&6; }
7630 if test "$supported" = "yes" ; then
7631 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7632 found="yes"
7633 fi
7634 fi
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650 xorg_testset_save_CFLAGS="$CFLAGS"
7651
7652 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7655 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7656 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7657 $as_echo_n "(cached) " >&6
7658 else
7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660 /* end confdefs.h. */
7661 int i;
7662 _ACEOF
7663 if ac_fn_c_try_compile "$LINENO"; then :
7664 xorg_cv_cc_flag_unknown_warning_option=yes
7665 else
7666 xorg_cv_cc_flag_unknown_warning_option=no
7667 fi
7668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7669 fi
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7671 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7673 CFLAGS="$xorg_testset_save_CFLAGS"
7674 fi
7675
7676 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7679 fi
7680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7682 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7683 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7684 $as_echo_n "(cached) " >&6
7685 else
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7688 int i;
7689 _ACEOF
7690 if ac_fn_c_try_compile "$LINENO"; then :
7691 xorg_cv_cc_flag_unused_command_line_argument=yes
7692 else
7693 xorg_cv_cc_flag_unused_command_line_argument=no
7694 fi
7695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7696 fi
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7698 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7699 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7700 CFLAGS="$xorg_testset_save_CFLAGS"
7701 fi
7702
7703 found="no"
7704
7705 if test $found = "no" ; then
7706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7708 fi
7709
7710 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7712 fi
7713
7714 CFLAGS="$CFLAGS -Werror=return-type"
7715
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7717 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7718 cacheid=xorg_cv_cc_flag__Werror_return_type
7719 if eval \${$cacheid+:} false; then :
7720 $as_echo_n "(cached) " >&6
7721 else
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7724 int i;
7725 int
7726 main ()
7727 {
7728
7729 ;
7730 return 0;
7731 }
7732 _ACEOF
7733 if ac_fn_c_try_link "$LINENO"; then :
7734 eval $cacheid=yes
7735 else
7736 eval $cacheid=no
7737 fi
7738 rm -f core conftest.err conftest.$ac_objext \
7739 conftest$ac_exeext conftest.$ac_ext
7740 fi
7741
7742
7743 CFLAGS="$xorg_testset_save_CFLAGS"
7744
7745 eval supported=\$$cacheid
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7747 $as_echo "$supported" >&6; }
7748 if test "$supported" = "yes" ; then
7749 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7750 found="yes"
7751 fi
7752 fi
7753
7754 if test $found = "no" ; then
7755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7757 fi
7758
7759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7761 fi
7762
7763 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7764
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7766 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7767 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7768 if eval \${$cacheid+:} false; then :
7769 $as_echo_n "(cached) " >&6
7770 else
7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772 /* end confdefs.h. */
7773 int i;
7774 int
7775 main ()
7776 {
7777
7778 ;
7779 return 0;
7780 }
7781 _ACEOF
7782 if ac_fn_c_try_link "$LINENO"; then :
7783 eval $cacheid=yes
7784 else
7785 eval $cacheid=no
7786 fi
7787 rm -f core conftest.err conftest.$ac_objext \
7788 conftest$ac_exeext conftest.$ac_ext
7789 fi
7790
7791
7792 CFLAGS="$xorg_testset_save_CFLAGS"
7793
7794 eval supported=\$$cacheid
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7796 $as_echo "$supported" >&6; }
7797 if test "$supported" = "yes" ; then
7798 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7799 found="yes"
7800 fi
7801 fi
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817 xorg_testset_save_CFLAGS="$CFLAGS"
7818
7819 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7822 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7823 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7824 $as_echo_n "(cached) " >&6
7825 else
7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827 /* end confdefs.h. */
7828 int i;
7829 _ACEOF
7830 if ac_fn_c_try_compile "$LINENO"; then :
7831 xorg_cv_cc_flag_unknown_warning_option=yes
7832 else
7833 xorg_cv_cc_flag_unknown_warning_option=no
7834 fi
7835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7836 fi
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7838 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7840 CFLAGS="$xorg_testset_save_CFLAGS"
7841 fi
7842
7843 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7846 fi
7847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7849 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7850 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7851 $as_echo_n "(cached) " >&6
7852 else
7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h. */
7855 int i;
7856 _ACEOF
7857 if ac_fn_c_try_compile "$LINENO"; then :
7858 xorg_cv_cc_flag_unused_command_line_argument=yes
7859 else
7860 xorg_cv_cc_flag_unused_command_line_argument=no
7861 fi
7862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7863 fi
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7865 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7867 CFLAGS="$xorg_testset_save_CFLAGS"
7868 fi
7869
7870 found="no"
7871
7872 if test $found = "no" ; then
7873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7875 fi
7876
7877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7879 fi
7880
7881 CFLAGS="$CFLAGS -Werror=trigraphs"
7882
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7884 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7885 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7886 if eval \${$cacheid+:} false; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7891 int i;
7892 int
7893 main ()
7894 {
7895
7896 ;
7897 return 0;
7898 }
7899 _ACEOF
7900 if ac_fn_c_try_link "$LINENO"; then :
7901 eval $cacheid=yes
7902 else
7903 eval $cacheid=no
7904 fi
7905 rm -f core conftest.err conftest.$ac_objext \
7906 conftest$ac_exeext conftest.$ac_ext
7907 fi
7908
7909
7910 CFLAGS="$xorg_testset_save_CFLAGS"
7911
7912 eval supported=\$$cacheid
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7914 $as_echo "$supported" >&6; }
7915 if test "$supported" = "yes" ; then
7916 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7917 found="yes"
7918 fi
7919 fi
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935 xorg_testset_save_CFLAGS="$CFLAGS"
7936
7937 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7940 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7941 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7942 $as_echo_n "(cached) " >&6
7943 else
7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h. */
7946 int i;
7947 _ACEOF
7948 if ac_fn_c_try_compile "$LINENO"; then :
7949 xorg_cv_cc_flag_unknown_warning_option=yes
7950 else
7951 xorg_cv_cc_flag_unknown_warning_option=no
7952 fi
7953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7954 fi
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7956 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7958 CFLAGS="$xorg_testset_save_CFLAGS"
7959 fi
7960
7961 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7964 fi
7965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7967 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7968 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972 /* end confdefs.h. */
7973 int i;
7974 _ACEOF
7975 if ac_fn_c_try_compile "$LINENO"; then :
7976 xorg_cv_cc_flag_unused_command_line_argument=yes
7977 else
7978 xorg_cv_cc_flag_unused_command_line_argument=no
7979 fi
7980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981 fi
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7983 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7985 CFLAGS="$xorg_testset_save_CFLAGS"
7986 fi
7987
7988 found="no"
7989
7990 if test $found = "no" ; then
7991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7993 fi
7994
7995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7997 fi
7998
7999 CFLAGS="$CFLAGS -Werror=array-bounds"
8000
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8002 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8003 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8004 if eval \${$cacheid+:} false; then :
8005 $as_echo_n "(cached) " >&6
8006 else
8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h. */
8009 int i;
8010 int
8011 main ()
8012 {
8013
8014 ;
8015 return 0;
8016 }
8017 _ACEOF
8018 if ac_fn_c_try_link "$LINENO"; then :
8019 eval $cacheid=yes
8020 else
8021 eval $cacheid=no
8022 fi
8023 rm -f core conftest.err conftest.$ac_objext \
8024 conftest$ac_exeext conftest.$ac_ext
8025 fi
8026
8027
8028 CFLAGS="$xorg_testset_save_CFLAGS"
8029
8030 eval supported=\$$cacheid
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8032 $as_echo "$supported" >&6; }
8033 if test "$supported" = "yes" ; then
8034 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8035 found="yes"
8036 fi
8037 fi
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053 xorg_testset_save_CFLAGS="$CFLAGS"
8054
8055 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8058 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8059 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8060 $as_echo_n "(cached) " >&6
8061 else
8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h. */
8064 int i;
8065 _ACEOF
8066 if ac_fn_c_try_compile "$LINENO"; then :
8067 xorg_cv_cc_flag_unknown_warning_option=yes
8068 else
8069 xorg_cv_cc_flag_unknown_warning_option=no
8070 fi
8071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072 fi
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8074 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8076 CFLAGS="$xorg_testset_save_CFLAGS"
8077 fi
8078
8079 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8082 fi
8083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8085 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8086 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8087 $as_echo_n "(cached) " >&6
8088 else
8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8091 int i;
8092 _ACEOF
8093 if ac_fn_c_try_compile "$LINENO"; then :
8094 xorg_cv_cc_flag_unused_command_line_argument=yes
8095 else
8096 xorg_cv_cc_flag_unused_command_line_argument=no
8097 fi
8098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099 fi
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8101 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8103 CFLAGS="$xorg_testset_save_CFLAGS"
8104 fi
8105
8106 found="no"
8107
8108 if test $found = "no" ; then
8109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8111 fi
8112
8113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8115 fi
8116
8117 CFLAGS="$CFLAGS -Werror=write-strings"
8118
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8120 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8121 cacheid=xorg_cv_cc_flag__Werror_write_strings
8122 if eval \${$cacheid+:} false; then :
8123 $as_echo_n "(cached) " >&6
8124 else
8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126 /* end confdefs.h. */
8127 int i;
8128 int
8129 main ()
8130 {
8131
8132 ;
8133 return 0;
8134 }
8135 _ACEOF
8136 if ac_fn_c_try_link "$LINENO"; then :
8137 eval $cacheid=yes
8138 else
8139 eval $cacheid=no
8140 fi
8141 rm -f core conftest.err conftest.$ac_objext \
8142 conftest$ac_exeext conftest.$ac_ext
8143 fi
8144
8145
8146 CFLAGS="$xorg_testset_save_CFLAGS"
8147
8148 eval supported=\$$cacheid
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8150 $as_echo "$supported" >&6; }
8151 if test "$supported" = "yes" ; then
8152 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8153 found="yes"
8154 fi
8155 fi
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171 xorg_testset_save_CFLAGS="$CFLAGS"
8172
8173 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8176 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8177 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8178 $as_echo_n "(cached) " >&6
8179 else
8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h. */
8182 int i;
8183 _ACEOF
8184 if ac_fn_c_try_compile "$LINENO"; then :
8185 xorg_cv_cc_flag_unknown_warning_option=yes
8186 else
8187 xorg_cv_cc_flag_unknown_warning_option=no
8188 fi
8189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8190 fi
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8192 $as_echo "$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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8203 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8204 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8209 int i;
8210 _ACEOF
8211 if ac_fn_c_try_compile "$LINENO"; then :
8212 xorg_cv_cc_flag_unused_command_line_argument=yes
8213 else
8214 xorg_cv_cc_flag_unused_command_line_argument=no
8215 fi
8216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217 fi
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8219 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8221 CFLAGS="$xorg_testset_save_CFLAGS"
8222 fi
8223
8224 found="no"
8225
8226 if test $found = "no" ; then
8227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8229 fi
8230
8231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8233 fi
8234
8235 CFLAGS="$CFLAGS -Werror=address"
8236
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8238 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8239 cacheid=xorg_cv_cc_flag__Werror_address
8240 if eval \${$cacheid+:} false; then :
8241 $as_echo_n "(cached) " >&6
8242 else
8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244 /* end confdefs.h. */
8245 int i;
8246 int
8247 main ()
8248 {
8249
8250 ;
8251 return 0;
8252 }
8253 _ACEOF
8254 if ac_fn_c_try_link "$LINENO"; then :
8255 eval $cacheid=yes
8256 else
8257 eval $cacheid=no
8258 fi
8259 rm -f core conftest.err conftest.$ac_objext \
8260 conftest$ac_exeext conftest.$ac_ext
8261 fi
8262
8263
8264 CFLAGS="$xorg_testset_save_CFLAGS"
8265
8266 eval supported=\$$cacheid
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8268 $as_echo "$supported" >&6; }
8269 if test "$supported" = "yes" ; then
8270 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8271 found="yes"
8272 fi
8273 fi
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289 xorg_testset_save_CFLAGS="$CFLAGS"
8290
8291 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8294 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8295 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8296 $as_echo_n "(cached) " >&6
8297 else
8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8300 int i;
8301 _ACEOF
8302 if ac_fn_c_try_compile "$LINENO"; then :
8303 xorg_cv_cc_flag_unknown_warning_option=yes
8304 else
8305 xorg_cv_cc_flag_unknown_warning_option=no
8306 fi
8307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308 fi
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8310 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8311 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8312 CFLAGS="$xorg_testset_save_CFLAGS"
8313 fi
8314
8315 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8318 fi
8319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8321 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8322 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8323 $as_echo_n "(cached) " >&6
8324 else
8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h. */
8327 int i;
8328 _ACEOF
8329 if ac_fn_c_try_compile "$LINENO"; then :
8330 xorg_cv_cc_flag_unused_command_line_argument=yes
8331 else
8332 xorg_cv_cc_flag_unused_command_line_argument=no
8333 fi
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335 fi
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8337 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8338 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8339 CFLAGS="$xorg_testset_save_CFLAGS"
8340 fi
8341
8342 found="no"
8343
8344 if test $found = "no" ; then
8345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8347 fi
8348
8349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8351 fi
8352
8353 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8354
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8356 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8357 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8358 if eval \${$cacheid+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8363 int i;
8364 int
8365 main ()
8366 {
8367
8368 ;
8369 return 0;
8370 }
8371 _ACEOF
8372 if ac_fn_c_try_link "$LINENO"; then :
8373 eval $cacheid=yes
8374 else
8375 eval $cacheid=no
8376 fi
8377 rm -f core conftest.err conftest.$ac_objext \
8378 conftest$ac_exeext conftest.$ac_ext
8379 fi
8380
8381
8382 CFLAGS="$xorg_testset_save_CFLAGS"
8383
8384 eval supported=\$$cacheid
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8386 $as_echo "$supported" >&6; }
8387 if test "$supported" = "yes" ; then
8388 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8389 found="yes"
8390 fi
8391 fi
8392
8393 if test $found = "no" ; then
8394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8396 fi
8397
8398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8400 fi
8401
8402 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8403
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8405 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8406 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8407 if eval \${$cacheid+:} false; then :
8408 $as_echo_n "(cached) " >&6
8409 else
8410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8412 int i;
8413 int
8414 main ()
8415 {
8416
8417 ;
8418 return 0;
8419 }
8420 _ACEOF
8421 if ac_fn_c_try_link "$LINENO"; then :
8422 eval $cacheid=yes
8423 else
8424 eval $cacheid=no
8425 fi
8426 rm -f core conftest.err conftest.$ac_objext \
8427 conftest$ac_exeext conftest.$ac_ext
8428 fi
8429
8430
8431 CFLAGS="$xorg_testset_save_CFLAGS"
8432
8433 eval supported=\$$cacheid
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8435 $as_echo "$supported" >&6; }
8436 if test "$supported" = "yes" ; then
8437 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8438 found="yes"
8439 fi
8440 fi
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456 xorg_testset_save_CFLAGS="$CFLAGS"
8457
8458 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8461 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8462 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8463 $as_echo_n "(cached) " >&6
8464 else
8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8467 int i;
8468 _ACEOF
8469 if ac_fn_c_try_compile "$LINENO"; then :
8470 xorg_cv_cc_flag_unknown_warning_option=yes
8471 else
8472 xorg_cv_cc_flag_unknown_warning_option=no
8473 fi
8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 fi
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8477 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8479 CFLAGS="$xorg_testset_save_CFLAGS"
8480 fi
8481
8482 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8485 fi
8486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8488 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8489 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493 /* end confdefs.h. */
8494 int i;
8495 _ACEOF
8496 if ac_fn_c_try_compile "$LINENO"; then :
8497 xorg_cv_cc_flag_unused_command_line_argument=yes
8498 else
8499 xorg_cv_cc_flag_unused_command_line_argument=no
8500 fi
8501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8502 fi
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8504 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8506 CFLAGS="$xorg_testset_save_CFLAGS"
8507 fi
8508
8509 found="no"
8510
8511 if test $found = "no" ; then
8512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8514 fi
8515
8516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8518 fi
8519
8520 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8521
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8523 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8524 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8525 if eval \${$cacheid+:} false; then :
8526 $as_echo_n "(cached) " >&6
8527 else
8528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h. */
8530 int i;
8531 int
8532 main ()
8533 {
8534
8535 ;
8536 return 0;
8537 }
8538 _ACEOF
8539 if ac_fn_c_try_link "$LINENO"; then :
8540 eval $cacheid=yes
8541 else
8542 eval $cacheid=no
8543 fi
8544 rm -f core conftest.err conftest.$ac_objext \
8545 conftest$ac_exeext conftest.$ac_ext
8546 fi
8547
8548
8549 CFLAGS="$xorg_testset_save_CFLAGS"
8550
8551 eval supported=\$$cacheid
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8553 $as_echo "$supported" >&6; }
8554 if test "$supported" = "yes" ; then
8555 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8556 found="yes"
8557 fi
8558 fi
8559
8560 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8561 else
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
8563 $as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577 xorg_testset_save_CFLAGS="$CFLAGS"
8578
8579 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8582 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8583 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8584 $as_echo_n "(cached) " >&6
8585 else
8586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8587 /* end confdefs.h. */
8588 int i;
8589 _ACEOF
8590 if ac_fn_c_try_compile "$LINENO"; then :
8591 xorg_cv_cc_flag_unknown_warning_option=yes
8592 else
8593 xorg_cv_cc_flag_unknown_warning_option=no
8594 fi
8595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8596 fi
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8598 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8600 CFLAGS="$xorg_testset_save_CFLAGS"
8601 fi
8602
8603 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8606 fi
8607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8609 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8610 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8611 $as_echo_n "(cached) " >&6
8612 else
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8615 int i;
8616 _ACEOF
8617 if ac_fn_c_try_compile "$LINENO"; then :
8618 xorg_cv_cc_flag_unused_command_line_argument=yes
8619 else
8620 xorg_cv_cc_flag_unused_command_line_argument=no
8621 fi
8622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623 fi
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8625 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8627 CFLAGS="$xorg_testset_save_CFLAGS"
8628 fi
8629
8630 found="no"
8631
8632 if test $found = "no" ; then
8633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8635 fi
8636
8637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8639 fi
8640
8641 CFLAGS="$CFLAGS -Wimplicit"
8642
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8644 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8645 cacheid=xorg_cv_cc_flag__Wimplicit
8646 if eval \${$cacheid+:} false; then :
8647 $as_echo_n "(cached) " >&6
8648 else
8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8651 int i;
8652 int
8653 main ()
8654 {
8655
8656 ;
8657 return 0;
8658 }
8659 _ACEOF
8660 if ac_fn_c_try_link "$LINENO"; then :
8661 eval $cacheid=yes
8662 else
8663 eval $cacheid=no
8664 fi
8665 rm -f core conftest.err conftest.$ac_objext \
8666 conftest$ac_exeext conftest.$ac_ext
8667 fi
8668
8669
8670 CFLAGS="$xorg_testset_save_CFLAGS"
8671
8672 eval supported=\$$cacheid
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8674 $as_echo "$supported" >&6; }
8675 if test "$supported" = "yes" ; then
8676 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8677 found="yes"
8678 fi
8679 fi
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695 xorg_testset_save_CFLAGS="$CFLAGS"
8696
8697 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8700 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8701 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8702 $as_echo_n "(cached) " >&6
8703 else
8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h. */
8706 int i;
8707 _ACEOF
8708 if ac_fn_c_try_compile "$LINENO"; then :
8709 xorg_cv_cc_flag_unknown_warning_option=yes
8710 else
8711 xorg_cv_cc_flag_unknown_warning_option=no
8712 fi
8713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8714 fi
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8716 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8718 CFLAGS="$xorg_testset_save_CFLAGS"
8719 fi
8720
8721 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8724 fi
8725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8727 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8728 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8729 $as_echo_n "(cached) " >&6
8730 else
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8733 int i;
8734 _ACEOF
8735 if ac_fn_c_try_compile "$LINENO"; then :
8736 xorg_cv_cc_flag_unused_command_line_argument=yes
8737 else
8738 xorg_cv_cc_flag_unused_command_line_argument=no
8739 fi
8740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741 fi
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8743 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8745 CFLAGS="$xorg_testset_save_CFLAGS"
8746 fi
8747
8748 found="no"
8749
8750 if test $found = "no" ; then
8751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8753 fi
8754
8755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8757 fi
8758
8759 CFLAGS="$CFLAGS -Wnonnull"
8760
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8762 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8763 cacheid=xorg_cv_cc_flag__Wnonnull
8764 if eval \${$cacheid+:} false; then :
8765 $as_echo_n "(cached) " >&6
8766 else
8767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768 /* end confdefs.h. */
8769 int i;
8770 int
8771 main ()
8772 {
8773
8774 ;
8775 return 0;
8776 }
8777 _ACEOF
8778 if ac_fn_c_try_link "$LINENO"; then :
8779 eval $cacheid=yes
8780 else
8781 eval $cacheid=no
8782 fi
8783 rm -f core conftest.err conftest.$ac_objext \
8784 conftest$ac_exeext conftest.$ac_ext
8785 fi
8786
8787
8788 CFLAGS="$xorg_testset_save_CFLAGS"
8789
8790 eval supported=\$$cacheid
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8792 $as_echo "$supported" >&6; }
8793 if test "$supported" = "yes" ; then
8794 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8795 found="yes"
8796 fi
8797 fi
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813 xorg_testset_save_CFLAGS="$CFLAGS"
8814
8815 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8818 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8819 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8820 $as_echo_n "(cached) " >&6
8821 else
8822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823 /* end confdefs.h. */
8824 int i;
8825 _ACEOF
8826 if ac_fn_c_try_compile "$LINENO"; then :
8827 xorg_cv_cc_flag_unknown_warning_option=yes
8828 else
8829 xorg_cv_cc_flag_unknown_warning_option=no
8830 fi
8831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8832 fi
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8834 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8836 CFLAGS="$xorg_testset_save_CFLAGS"
8837 fi
8838
8839 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8842 fi
8843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8845 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8846 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8847 $as_echo_n "(cached) " >&6
8848 else
8849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850 /* end confdefs.h. */
8851 int i;
8852 _ACEOF
8853 if ac_fn_c_try_compile "$LINENO"; then :
8854 xorg_cv_cc_flag_unused_command_line_argument=yes
8855 else
8856 xorg_cv_cc_flag_unused_command_line_argument=no
8857 fi
8858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8859 fi
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8861 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8863 CFLAGS="$xorg_testset_save_CFLAGS"
8864 fi
8865
8866 found="no"
8867
8868 if test $found = "no" ; then
8869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8871 fi
8872
8873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8875 fi
8876
8877 CFLAGS="$CFLAGS -Winit-self"
8878
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8880 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8881 cacheid=xorg_cv_cc_flag__Winit_self
8882 if eval \${$cacheid+:} false; then :
8883 $as_echo_n "(cached) " >&6
8884 else
8885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8886 /* end confdefs.h. */
8887 int i;
8888 int
8889 main ()
8890 {
8891
8892 ;
8893 return 0;
8894 }
8895 _ACEOF
8896 if ac_fn_c_try_link "$LINENO"; then :
8897 eval $cacheid=yes
8898 else
8899 eval $cacheid=no
8900 fi
8901 rm -f core conftest.err conftest.$ac_objext \
8902 conftest$ac_exeext conftest.$ac_ext
8903 fi
8904
8905
8906 CFLAGS="$xorg_testset_save_CFLAGS"
8907
8908 eval supported=\$$cacheid
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8910 $as_echo "$supported" >&6; }
8911 if test "$supported" = "yes" ; then
8912 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8913 found="yes"
8914 fi
8915 fi
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931 xorg_testset_save_CFLAGS="$CFLAGS"
8932
8933 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8936 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8937 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8938 $as_echo_n "(cached) " >&6
8939 else
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8942 int i;
8943 _ACEOF
8944 if ac_fn_c_try_compile "$LINENO"; then :
8945 xorg_cv_cc_flag_unknown_warning_option=yes
8946 else
8947 xorg_cv_cc_flag_unknown_warning_option=no
8948 fi
8949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8950 fi
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8952 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8954 CFLAGS="$xorg_testset_save_CFLAGS"
8955 fi
8956
8957 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8960 fi
8961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8963 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8964 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8965 $as_echo_n "(cached) " >&6
8966 else
8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968 /* end confdefs.h. */
8969 int i;
8970 _ACEOF
8971 if ac_fn_c_try_compile "$LINENO"; then :
8972 xorg_cv_cc_flag_unused_command_line_argument=yes
8973 else
8974 xorg_cv_cc_flag_unused_command_line_argument=no
8975 fi
8976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8977 fi
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8979 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8981 CFLAGS="$xorg_testset_save_CFLAGS"
8982 fi
8983
8984 found="no"
8985
8986 if test $found = "no" ; then
8987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8989 fi
8990
8991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8993 fi
8994
8995 CFLAGS="$CFLAGS -Wmain"
8996
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8998 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8999 cacheid=xorg_cv_cc_flag__Wmain
9000 if eval \${$cacheid+:} false; then :
9001 $as_echo_n "(cached) " >&6
9002 else
9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004 /* end confdefs.h. */
9005 int i;
9006 int
9007 main ()
9008 {
9009
9010 ;
9011 return 0;
9012 }
9013 _ACEOF
9014 if ac_fn_c_try_link "$LINENO"; then :
9015 eval $cacheid=yes
9016 else
9017 eval $cacheid=no
9018 fi
9019 rm -f core conftest.err conftest.$ac_objext \
9020 conftest$ac_exeext conftest.$ac_ext
9021 fi
9022
9023
9024 CFLAGS="$xorg_testset_save_CFLAGS"
9025
9026 eval supported=\$$cacheid
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9028 $as_echo "$supported" >&6; }
9029 if test "$supported" = "yes" ; then
9030 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9031 found="yes"
9032 fi
9033 fi
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049 xorg_testset_save_CFLAGS="$CFLAGS"
9050
9051 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9054 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9055 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9056 $as_echo_n "(cached) " >&6
9057 else
9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9060 int i;
9061 _ACEOF
9062 if ac_fn_c_try_compile "$LINENO"; then :
9063 xorg_cv_cc_flag_unknown_warning_option=yes
9064 else
9065 xorg_cv_cc_flag_unknown_warning_option=no
9066 fi
9067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9068 fi
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9070 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9072 CFLAGS="$xorg_testset_save_CFLAGS"
9073 fi
9074
9075 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9078 fi
9079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9081 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9082 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9083 $as_echo_n "(cached) " >&6
9084 else
9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9087 int i;
9088 _ACEOF
9089 if ac_fn_c_try_compile "$LINENO"; then :
9090 xorg_cv_cc_flag_unused_command_line_argument=yes
9091 else
9092 xorg_cv_cc_flag_unused_command_line_argument=no
9093 fi
9094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9095 fi
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9097 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9099 CFLAGS="$xorg_testset_save_CFLAGS"
9100 fi
9101
9102 found="no"
9103
9104 if test $found = "no" ; then
9105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9107 fi
9108
9109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9111 fi
9112
9113 CFLAGS="$CFLAGS -Wmissing-braces"
9114
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9116 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9117 cacheid=xorg_cv_cc_flag__Wmissing_braces
9118 if eval \${$cacheid+:} false; then :
9119 $as_echo_n "(cached) " >&6
9120 else
9121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9122 /* end confdefs.h. */
9123 int i;
9124 int
9125 main ()
9126 {
9127
9128 ;
9129 return 0;
9130 }
9131 _ACEOF
9132 if ac_fn_c_try_link "$LINENO"; then :
9133 eval $cacheid=yes
9134 else
9135 eval $cacheid=no
9136 fi
9137 rm -f core conftest.err conftest.$ac_objext \
9138 conftest$ac_exeext conftest.$ac_ext
9139 fi
9140
9141
9142 CFLAGS="$xorg_testset_save_CFLAGS"
9143
9144 eval supported=\$$cacheid
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9146 $as_echo "$supported" >&6; }
9147 if test "$supported" = "yes" ; then
9148 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9149 found="yes"
9150 fi
9151 fi
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167 xorg_testset_save_CFLAGS="$CFLAGS"
9168
9169 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9172 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9173 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9174 $as_echo_n "(cached) " >&6
9175 else
9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h. */
9178 int i;
9179 _ACEOF
9180 if ac_fn_c_try_compile "$LINENO"; then :
9181 xorg_cv_cc_flag_unknown_warning_option=yes
9182 else
9183 xorg_cv_cc_flag_unknown_warning_option=no
9184 fi
9185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9186 fi
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9188 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9190 CFLAGS="$xorg_testset_save_CFLAGS"
9191 fi
9192
9193 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9196 fi
9197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9199 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9200 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9201 $as_echo_n "(cached) " >&6
9202 else
9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h. */
9205 int i;
9206 _ACEOF
9207 if ac_fn_c_try_compile "$LINENO"; then :
9208 xorg_cv_cc_flag_unused_command_line_argument=yes
9209 else
9210 xorg_cv_cc_flag_unused_command_line_argument=no
9211 fi
9212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9213 fi
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9215 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9217 CFLAGS="$xorg_testset_save_CFLAGS"
9218 fi
9219
9220 found="no"
9221
9222 if test $found = "no" ; then
9223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9225 fi
9226
9227 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9229 fi
9230
9231 CFLAGS="$CFLAGS -Wsequence-point"
9232
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9234 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9235 cacheid=xorg_cv_cc_flag__Wsequence_point
9236 if eval \${$cacheid+:} false; then :
9237 $as_echo_n "(cached) " >&6
9238 else
9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240 /* end confdefs.h. */
9241 int i;
9242 int
9243 main ()
9244 {
9245
9246 ;
9247 return 0;
9248 }
9249 _ACEOF
9250 if ac_fn_c_try_link "$LINENO"; then :
9251 eval $cacheid=yes
9252 else
9253 eval $cacheid=no
9254 fi
9255 rm -f core conftest.err conftest.$ac_objext \
9256 conftest$ac_exeext conftest.$ac_ext
9257 fi
9258
9259
9260 CFLAGS="$xorg_testset_save_CFLAGS"
9261
9262 eval supported=\$$cacheid
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9264 $as_echo "$supported" >&6; }
9265 if test "$supported" = "yes" ; then
9266 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9267 found="yes"
9268 fi
9269 fi
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285 xorg_testset_save_CFLAGS="$CFLAGS"
9286
9287 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9290 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9291 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9292 $as_echo_n "(cached) " >&6
9293 else
9294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9295 /* end confdefs.h. */
9296 int i;
9297 _ACEOF
9298 if ac_fn_c_try_compile "$LINENO"; then :
9299 xorg_cv_cc_flag_unknown_warning_option=yes
9300 else
9301 xorg_cv_cc_flag_unknown_warning_option=no
9302 fi
9303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9304 fi
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9306 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9307 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9308 CFLAGS="$xorg_testset_save_CFLAGS"
9309 fi
9310
9311 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9314 fi
9315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9317 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9318 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9319 $as_echo_n "(cached) " >&6
9320 else
9321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322 /* end confdefs.h. */
9323 int i;
9324 _ACEOF
9325 if ac_fn_c_try_compile "$LINENO"; then :
9326 xorg_cv_cc_flag_unused_command_line_argument=yes
9327 else
9328 xorg_cv_cc_flag_unused_command_line_argument=no
9329 fi
9330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331 fi
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9333 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9335 CFLAGS="$xorg_testset_save_CFLAGS"
9336 fi
9337
9338 found="no"
9339
9340 if test $found = "no" ; then
9341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9343 fi
9344
9345 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9347 fi
9348
9349 CFLAGS="$CFLAGS -Wreturn-type"
9350
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9352 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9353 cacheid=xorg_cv_cc_flag__Wreturn_type
9354 if eval \${$cacheid+:} false; then :
9355 $as_echo_n "(cached) " >&6
9356 else
9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9359 int i;
9360 int
9361 main ()
9362 {
9363
9364 ;
9365 return 0;
9366 }
9367 _ACEOF
9368 if ac_fn_c_try_link "$LINENO"; then :
9369 eval $cacheid=yes
9370 else
9371 eval $cacheid=no
9372 fi
9373 rm -f core conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext conftest.$ac_ext
9375 fi
9376
9377
9378 CFLAGS="$xorg_testset_save_CFLAGS"
9379
9380 eval supported=\$$cacheid
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9382 $as_echo "$supported" >&6; }
9383 if test "$supported" = "yes" ; then
9384 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9385 found="yes"
9386 fi
9387 fi
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403 xorg_testset_save_CFLAGS="$CFLAGS"
9404
9405 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9408 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9409 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9410 $as_echo_n "(cached) " >&6
9411 else
9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413 /* end confdefs.h. */
9414 int i;
9415 _ACEOF
9416 if ac_fn_c_try_compile "$LINENO"; then :
9417 xorg_cv_cc_flag_unknown_warning_option=yes
9418 else
9419 xorg_cv_cc_flag_unknown_warning_option=no
9420 fi
9421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9422 fi
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9424 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9426 CFLAGS="$xorg_testset_save_CFLAGS"
9427 fi
9428
9429 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9432 fi
9433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9435 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9436 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9437 $as_echo_n "(cached) " >&6
9438 else
9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440 /* end confdefs.h. */
9441 int i;
9442 _ACEOF
9443 if ac_fn_c_try_compile "$LINENO"; then :
9444 xorg_cv_cc_flag_unused_command_line_argument=yes
9445 else
9446 xorg_cv_cc_flag_unused_command_line_argument=no
9447 fi
9448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9449 fi
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9451 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9453 CFLAGS="$xorg_testset_save_CFLAGS"
9454 fi
9455
9456 found="no"
9457
9458 if test $found = "no" ; then
9459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9461 fi
9462
9463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9465 fi
9466
9467 CFLAGS="$CFLAGS -Wtrigraphs"
9468
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9470 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9471 cacheid=xorg_cv_cc_flag__Wtrigraphs
9472 if eval \${$cacheid+:} false; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h. */
9477 int i;
9478 int
9479 main ()
9480 {
9481
9482 ;
9483 return 0;
9484 }
9485 _ACEOF
9486 if ac_fn_c_try_link "$LINENO"; then :
9487 eval $cacheid=yes
9488 else
9489 eval $cacheid=no
9490 fi
9491 rm -f core conftest.err conftest.$ac_objext \
9492 conftest$ac_exeext conftest.$ac_ext
9493 fi
9494
9495
9496 CFLAGS="$xorg_testset_save_CFLAGS"
9497
9498 eval supported=\$$cacheid
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9500 $as_echo "$supported" >&6; }
9501 if test "$supported" = "yes" ; then
9502 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9503 found="yes"
9504 fi
9505 fi
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521 xorg_testset_save_CFLAGS="$CFLAGS"
9522
9523 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9526 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9527 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9528 $as_echo_n "(cached) " >&6
9529 else
9530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531 /* end confdefs.h. */
9532 int i;
9533 _ACEOF
9534 if ac_fn_c_try_compile "$LINENO"; then :
9535 xorg_cv_cc_flag_unknown_warning_option=yes
9536 else
9537 xorg_cv_cc_flag_unknown_warning_option=no
9538 fi
9539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9540 fi
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9542 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9543 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9544 CFLAGS="$xorg_testset_save_CFLAGS"
9545 fi
9546
9547 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9550 fi
9551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9553 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9554 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9555 $as_echo_n "(cached) " >&6
9556 else
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9559 int i;
9560 _ACEOF
9561 if ac_fn_c_try_compile "$LINENO"; then :
9562 xorg_cv_cc_flag_unused_command_line_argument=yes
9563 else
9564 xorg_cv_cc_flag_unused_command_line_argument=no
9565 fi
9566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9567 fi
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9569 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9571 CFLAGS="$xorg_testset_save_CFLAGS"
9572 fi
9573
9574 found="no"
9575
9576 if test $found = "no" ; then
9577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9579 fi
9580
9581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9583 fi
9584
9585 CFLAGS="$CFLAGS -Warray-bounds"
9586
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9588 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9589 cacheid=xorg_cv_cc_flag__Warray_bounds
9590 if eval \${$cacheid+:} false; then :
9591 $as_echo_n "(cached) " >&6
9592 else
9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594 /* end confdefs.h. */
9595 int i;
9596 int
9597 main ()
9598 {
9599
9600 ;
9601 return 0;
9602 }
9603 _ACEOF
9604 if ac_fn_c_try_link "$LINENO"; then :
9605 eval $cacheid=yes
9606 else
9607 eval $cacheid=no
9608 fi
9609 rm -f core conftest.err conftest.$ac_objext \
9610 conftest$ac_exeext conftest.$ac_ext
9611 fi
9612
9613
9614 CFLAGS="$xorg_testset_save_CFLAGS"
9615
9616 eval supported=\$$cacheid
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9618 $as_echo "$supported" >&6; }
9619 if test "$supported" = "yes" ; then
9620 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9621 found="yes"
9622 fi
9623 fi
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639 xorg_testset_save_CFLAGS="$CFLAGS"
9640
9641 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9644 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9645 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9646 $as_echo_n "(cached) " >&6
9647 else
9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9650 int i;
9651 _ACEOF
9652 if ac_fn_c_try_compile "$LINENO"; then :
9653 xorg_cv_cc_flag_unknown_warning_option=yes
9654 else
9655 xorg_cv_cc_flag_unknown_warning_option=no
9656 fi
9657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9658 fi
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9660 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9661 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9662 CFLAGS="$xorg_testset_save_CFLAGS"
9663 fi
9664
9665 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9668 fi
9669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9671 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9672 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9673 $as_echo_n "(cached) " >&6
9674 else
9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h. */
9677 int i;
9678 _ACEOF
9679 if ac_fn_c_try_compile "$LINENO"; then :
9680 xorg_cv_cc_flag_unused_command_line_argument=yes
9681 else
9682 xorg_cv_cc_flag_unused_command_line_argument=no
9683 fi
9684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9685 fi
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9687 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9688 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9689 CFLAGS="$xorg_testset_save_CFLAGS"
9690 fi
9691
9692 found="no"
9693
9694 if test $found = "no" ; then
9695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9697 fi
9698
9699 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9701 fi
9702
9703 CFLAGS="$CFLAGS -Wwrite-strings"
9704
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9706 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9707 cacheid=xorg_cv_cc_flag__Wwrite_strings
9708 if eval \${$cacheid+:} false; then :
9709 $as_echo_n "(cached) " >&6
9710 else
9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712 /* end confdefs.h. */
9713 int i;
9714 int
9715 main ()
9716 {
9717
9718 ;
9719 return 0;
9720 }
9721 _ACEOF
9722 if ac_fn_c_try_link "$LINENO"; then :
9723 eval $cacheid=yes
9724 else
9725 eval $cacheid=no
9726 fi
9727 rm -f core conftest.err conftest.$ac_objext \
9728 conftest$ac_exeext conftest.$ac_ext
9729 fi
9730
9731
9732 CFLAGS="$xorg_testset_save_CFLAGS"
9733
9734 eval supported=\$$cacheid
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9736 $as_echo "$supported" >&6; }
9737 if test "$supported" = "yes" ; then
9738 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9739 found="yes"
9740 fi
9741 fi
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757 xorg_testset_save_CFLAGS="$CFLAGS"
9758
9759 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9762 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9763 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9764 $as_echo_n "(cached) " >&6
9765 else
9766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767 /* end confdefs.h. */
9768 int i;
9769 _ACEOF
9770 if ac_fn_c_try_compile "$LINENO"; then :
9771 xorg_cv_cc_flag_unknown_warning_option=yes
9772 else
9773 xorg_cv_cc_flag_unknown_warning_option=no
9774 fi
9775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9776 fi
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9778 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9780 CFLAGS="$xorg_testset_save_CFLAGS"
9781 fi
9782
9783 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9786 fi
9787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9789 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9790 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9791 $as_echo_n "(cached) " >&6
9792 else
9793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9794 /* end confdefs.h. */
9795 int i;
9796 _ACEOF
9797 if ac_fn_c_try_compile "$LINENO"; then :
9798 xorg_cv_cc_flag_unused_command_line_argument=yes
9799 else
9800 xorg_cv_cc_flag_unused_command_line_argument=no
9801 fi
9802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803 fi
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9805 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9806 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9807 CFLAGS="$xorg_testset_save_CFLAGS"
9808 fi
9809
9810 found="no"
9811
9812 if test $found = "no" ; then
9813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9815 fi
9816
9817 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9819 fi
9820
9821 CFLAGS="$CFLAGS -Waddress"
9822
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9824 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9825 cacheid=xorg_cv_cc_flag__Waddress
9826 if eval \${$cacheid+:} false; then :
9827 $as_echo_n "(cached) " >&6
9828 else
9829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830 /* end confdefs.h. */
9831 int i;
9832 int
9833 main ()
9834 {
9835
9836 ;
9837 return 0;
9838 }
9839 _ACEOF
9840 if ac_fn_c_try_link "$LINENO"; then :
9841 eval $cacheid=yes
9842 else
9843 eval $cacheid=no
9844 fi
9845 rm -f core conftest.err conftest.$ac_objext \
9846 conftest$ac_exeext conftest.$ac_ext
9847 fi
9848
9849
9850 CFLAGS="$xorg_testset_save_CFLAGS"
9851
9852 eval supported=\$$cacheid
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9854 $as_echo "$supported" >&6; }
9855 if test "$supported" = "yes" ; then
9856 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9857 found="yes"
9858 fi
9859 fi
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875 xorg_testset_save_CFLAGS="$CFLAGS"
9876
9877 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9880 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9881 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9882 $as_echo_n "(cached) " >&6
9883 else
9884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885 /* end confdefs.h. */
9886 int i;
9887 _ACEOF
9888 if ac_fn_c_try_compile "$LINENO"; then :
9889 xorg_cv_cc_flag_unknown_warning_option=yes
9890 else
9891 xorg_cv_cc_flag_unknown_warning_option=no
9892 fi
9893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9894 fi
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9896 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9898 CFLAGS="$xorg_testset_save_CFLAGS"
9899 fi
9900
9901 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9904 fi
9905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9907 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9908 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9909 $as_echo_n "(cached) " >&6
9910 else
9911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912 /* end confdefs.h. */
9913 int i;
9914 _ACEOF
9915 if ac_fn_c_try_compile "$LINENO"; then :
9916 xorg_cv_cc_flag_unused_command_line_argument=yes
9917 else
9918 xorg_cv_cc_flag_unused_command_line_argument=no
9919 fi
9920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9921 fi
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9923 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9924 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9925 CFLAGS="$xorg_testset_save_CFLAGS"
9926 fi
9927
9928 found="no"
9929
9930 if test $found = "no" ; then
9931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9933 fi
9934
9935 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9937 fi
9938
9939 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9940
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9942 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9943 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9944 if eval \${$cacheid+:} false; then :
9945 $as_echo_n "(cached) " >&6
9946 else
9947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948 /* end confdefs.h. */
9949 int i;
9950 int
9951 main ()
9952 {
9953
9954 ;
9955 return 0;
9956 }
9957 _ACEOF
9958 if ac_fn_c_try_link "$LINENO"; then :
9959 eval $cacheid=yes
9960 else
9961 eval $cacheid=no
9962 fi
9963 rm -f core conftest.err conftest.$ac_objext \
9964 conftest$ac_exeext conftest.$ac_ext
9965 fi
9966
9967
9968 CFLAGS="$xorg_testset_save_CFLAGS"
9969
9970 eval supported=\$$cacheid
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9972 $as_echo "$supported" >&6; }
9973 if test "$supported" = "yes" ; then
9974 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9975 found="yes"
9976 fi
9977 fi
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993 xorg_testset_save_CFLAGS="$CFLAGS"
9994
9995 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9998 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9999 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10000 $as_echo_n "(cached) " >&6
10001 else
10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10003 /* end confdefs.h. */
10004 int i;
10005 _ACEOF
10006 if ac_fn_c_try_compile "$LINENO"; then :
10007 xorg_cv_cc_flag_unknown_warning_option=yes
10008 else
10009 xorg_cv_cc_flag_unknown_warning_option=no
10010 fi
10011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10012 fi
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10014 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10015 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10016 CFLAGS="$xorg_testset_save_CFLAGS"
10017 fi
10018
10019 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10022 fi
10023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10025 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10026 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10027 $as_echo_n "(cached) " >&6
10028 else
10029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030 /* end confdefs.h. */
10031 int i;
10032 _ACEOF
10033 if ac_fn_c_try_compile "$LINENO"; then :
10034 xorg_cv_cc_flag_unused_command_line_argument=yes
10035 else
10036 xorg_cv_cc_flag_unused_command_line_argument=no
10037 fi
10038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10039 fi
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10041 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10042 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10043 CFLAGS="$xorg_testset_save_CFLAGS"
10044 fi
10045
10046 found="no"
10047
10048 if test $found = "no" ; then
10049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10051 fi
10052
10053 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10055 fi
10056
10057 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10058
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10060 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10061 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10062 if eval \${$cacheid+:} false; then :
10063 $as_echo_n "(cached) " >&6
10064 else
10065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10066 /* end confdefs.h. */
10067 int i;
10068 int
10069 main ()
10070 {
10071
10072 ;
10073 return 0;
10074 }
10075 _ACEOF
10076 if ac_fn_c_try_link "$LINENO"; then :
10077 eval $cacheid=yes
10078 else
10079 eval $cacheid=no
10080 fi
10081 rm -f core conftest.err conftest.$ac_objext \
10082 conftest$ac_exeext conftest.$ac_ext
10083 fi
10084
10085
10086 CFLAGS="$xorg_testset_save_CFLAGS"
10087
10088 eval supported=\$$cacheid
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10090 $as_echo "$supported" >&6; }
10091 if test "$supported" = "yes" ; then
10092 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10093 found="yes"
10094 fi
10095 fi
10096
10097
10098 fi
10099
10100
10101
10102
10103
10104
10105
10106 CWARNFLAGS="$BASE_CFLAGS"
10107 if test "x$GCC" = xyes ; then
10108 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10109 fi
10110
10111
10112
10113
10114
10115
10116
10117
10118 # Check whether --enable-strict-compilation was given.
10119 if test "${enable_strict_compilation+set}" = set; then :
10120 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10121 else
10122 STRICT_COMPILE=no
10123 fi
10124
10125
10126
10127
10128
10129
10130 STRICT_CFLAGS=""
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144 xorg_testset_save_CFLAGS="$CFLAGS"
10145
10146 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10149 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10150 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10151 $as_echo_n "(cached) " >&6
10152 else
10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154 /* end confdefs.h. */
10155 int i;
10156 _ACEOF
10157 if ac_fn_c_try_compile "$LINENO"; then :
10158 xorg_cv_cc_flag_unknown_warning_option=yes
10159 else
10160 xorg_cv_cc_flag_unknown_warning_option=no
10161 fi
10162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163 fi
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10165 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10166 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10167 CFLAGS="$xorg_testset_save_CFLAGS"
10168 fi
10169
10170 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10173 fi
10174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10176 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10177 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10178 $as_echo_n "(cached) " >&6
10179 else
10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181 /* end confdefs.h. */
10182 int i;
10183 _ACEOF
10184 if ac_fn_c_try_compile "$LINENO"; then :
10185 xorg_cv_cc_flag_unused_command_line_argument=yes
10186 else
10187 xorg_cv_cc_flag_unused_command_line_argument=no
10188 fi
10189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10190 fi
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10192 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10193 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10194 CFLAGS="$xorg_testset_save_CFLAGS"
10195 fi
10196
10197 found="no"
10198
10199 if test $found = "no" ; then
10200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10202 fi
10203
10204 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10206 fi
10207
10208 CFLAGS="$CFLAGS -pedantic"
10209
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10211 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10212 cacheid=xorg_cv_cc_flag__pedantic
10213 if eval \${$cacheid+:} false; then :
10214 $as_echo_n "(cached) " >&6
10215 else
10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10218 int i;
10219 int
10220 main ()
10221 {
10222
10223 ;
10224 return 0;
10225 }
10226 _ACEOF
10227 if ac_fn_c_try_link "$LINENO"; then :
10228 eval $cacheid=yes
10229 else
10230 eval $cacheid=no
10231 fi
10232 rm -f core conftest.err conftest.$ac_objext \
10233 conftest$ac_exeext conftest.$ac_ext
10234 fi
10235
10236
10237 CFLAGS="$xorg_testset_save_CFLAGS"
10238
10239 eval supported=\$$cacheid
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10241 $as_echo "$supported" >&6; }
10242 if test "$supported" = "yes" ; then
10243 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10244 found="yes"
10245 fi
10246 fi
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262 xorg_testset_save_CFLAGS="$CFLAGS"
10263
10264 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10267 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10268 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10269 $as_echo_n "(cached) " >&6
10270 else
10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272 /* end confdefs.h. */
10273 int i;
10274 _ACEOF
10275 if ac_fn_c_try_compile "$LINENO"; then :
10276 xorg_cv_cc_flag_unknown_warning_option=yes
10277 else
10278 xorg_cv_cc_flag_unknown_warning_option=no
10279 fi
10280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10281 fi
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10283 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10284 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10285 CFLAGS="$xorg_testset_save_CFLAGS"
10286 fi
10287
10288 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10291 fi
10292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10294 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10295 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10296 $as_echo_n "(cached) " >&6
10297 else
10298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10299 /* end confdefs.h. */
10300 int i;
10301 _ACEOF
10302 if ac_fn_c_try_compile "$LINENO"; then :
10303 xorg_cv_cc_flag_unused_command_line_argument=yes
10304 else
10305 xorg_cv_cc_flag_unused_command_line_argument=no
10306 fi
10307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10308 fi
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10310 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10312 CFLAGS="$xorg_testset_save_CFLAGS"
10313 fi
10314
10315 found="no"
10316
10317 if test $found = "no" ; then
10318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10320 fi
10321
10322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10324 fi
10325
10326 CFLAGS="$CFLAGS -Werror"
10327
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10329 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10330 cacheid=xorg_cv_cc_flag__Werror
10331 if eval \${$cacheid+:} false; then :
10332 $as_echo_n "(cached) " >&6
10333 else
10334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10335 /* end confdefs.h. */
10336 int i;
10337 int
10338 main ()
10339 {
10340
10341 ;
10342 return 0;
10343 }
10344 _ACEOF
10345 if ac_fn_c_try_link "$LINENO"; then :
10346 eval $cacheid=yes
10347 else
10348 eval $cacheid=no
10349 fi
10350 rm -f core conftest.err conftest.$ac_objext \
10351 conftest$ac_exeext conftest.$ac_ext
10352 fi
10353
10354
10355 CFLAGS="$xorg_testset_save_CFLAGS"
10356
10357 eval supported=\$$cacheid
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10359 $as_echo "$supported" >&6; }
10360 if test "$supported" = "yes" ; then
10361 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10362 found="yes"
10363 fi
10364 fi
10365
10366 if test $found = "no" ; then
10367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10369 fi
10370
10371 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10373 fi
10374
10375 CFLAGS="$CFLAGS -errwarn"
10376
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10378 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10379 cacheid=xorg_cv_cc_flag__errwarn
10380 if eval \${$cacheid+:} false; then :
10381 $as_echo_n "(cached) " >&6
10382 else
10383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384 /* end confdefs.h. */
10385 int i;
10386 int
10387 main ()
10388 {
10389
10390 ;
10391 return 0;
10392 }
10393 _ACEOF
10394 if ac_fn_c_try_link "$LINENO"; then :
10395 eval $cacheid=yes
10396 else
10397 eval $cacheid=no
10398 fi
10399 rm -f core conftest.err conftest.$ac_objext \
10400 conftest$ac_exeext conftest.$ac_ext
10401 fi
10402
10403
10404 CFLAGS="$xorg_testset_save_CFLAGS"
10405
10406 eval supported=\$$cacheid
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10408 $as_echo "$supported" >&6; }
10409 if test "$supported" = "yes" ; then
10410 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10411 found="yes"
10412 fi
10413 fi
10414
10415
10416
10417 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10418 # activate it with -Werror, so we add it here explicitly.
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432 xorg_testset_save_CFLAGS="$CFLAGS"
10433
10434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10437 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10438 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10439 $as_echo_n "(cached) " >&6
10440 else
10441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10442 /* end confdefs.h. */
10443 int i;
10444 _ACEOF
10445 if ac_fn_c_try_compile "$LINENO"; then :
10446 xorg_cv_cc_flag_unknown_warning_option=yes
10447 else
10448 xorg_cv_cc_flag_unknown_warning_option=no
10449 fi
10450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10451 fi
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10453 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10454 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10455 CFLAGS="$xorg_testset_save_CFLAGS"
10456 fi
10457
10458 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10461 fi
10462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10464 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10465 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10466 $as_echo_n "(cached) " >&6
10467 else
10468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10469 /* end confdefs.h. */
10470 int i;
10471 _ACEOF
10472 if ac_fn_c_try_compile "$LINENO"; then :
10473 xorg_cv_cc_flag_unused_command_line_argument=yes
10474 else
10475 xorg_cv_cc_flag_unused_command_line_argument=no
10476 fi
10477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10478 fi
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10480 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10482 CFLAGS="$xorg_testset_save_CFLAGS"
10483 fi
10484
10485 found="no"
10486
10487 if test $found = "no" ; then
10488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10490 fi
10491
10492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10494 fi
10495
10496 CFLAGS="$CFLAGS -Werror=attributes"
10497
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10499 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10500 cacheid=xorg_cv_cc_flag__Werror_attributes
10501 if eval \${$cacheid+:} false; then :
10502 $as_echo_n "(cached) " >&6
10503 else
10504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h. */
10506 int i;
10507 int
10508 main ()
10509 {
10510
10511 ;
10512 return 0;
10513 }
10514 _ACEOF
10515 if ac_fn_c_try_link "$LINENO"; then :
10516 eval $cacheid=yes
10517 else
10518 eval $cacheid=no
10519 fi
10520 rm -f core conftest.err conftest.$ac_objext \
10521 conftest$ac_exeext conftest.$ac_ext
10522 fi
10523
10524
10525 CFLAGS="$xorg_testset_save_CFLAGS"
10526
10527 eval supported=\$$cacheid
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10529 $as_echo "$supported" >&6; }
10530 if test "$supported" = "yes" ; then
10531 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10532 found="yes"
10533 fi
10534 fi
10535
10536
10537
10538 if test "x$STRICT_COMPILE" = "xyes"; then
10539 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10540 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10541 fi
10542
10543
10544
10545
10546
10547
10548 cat >>confdefs.h <<_ACEOF
10549 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10550 _ACEOF
10551
10552 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10553 if test "x$PVM" = "x"; then
10554 PVM="0"
10555 fi
10556
10557 cat >>confdefs.h <<_ACEOF
10558 #define PACKAGE_VERSION_MINOR $PVM
10559 _ACEOF
10560
10561 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10562 if test "x$PVP" = "x"; then
10563 PVP="0"
10564 fi
10565
10566 cat >>confdefs.h <<_ACEOF
10567 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10568 _ACEOF
10569
10570
10571
10572 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10573 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10574 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10575 touch \$(top_srcdir)/ChangeLog; \
10576 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10577
10578
10579
10580
10581 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10582 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10583 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10584 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10585 touch \$(top_srcdir)/INSTALL; \
10586 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10587
10588
10589
10590
10591
10592
10593 case $host_os in
10594 solaris*)
10595 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10596 # check for a man page file found in later versions that use
10597 # traditional section numbers instead
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10599 $as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
10600 if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
10601 $as_echo_n "(cached) " >&6
10602 else
10603 test "$cross_compiling" = yes &&
10604 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10605 if test -r "/usr/share/man/man7/attributes.7"; then
10606 ac_cv_file__usr_share_man_man7_attributes_7=yes
10607 else
10608 ac_cv_file__usr_share_man_man7_attributes_7=no
10609 fi
10610 fi
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10612 $as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10613 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
10614 SYSV_MAN_SECTIONS=false
10615 else
10616 SYSV_MAN_SECTIONS=true
10617 fi
10618
10619 ;;
10620 *) SYSV_MAN_SECTIONS=false ;;
10621 esac
10622
10623 if test x$APP_MAN_SUFFIX = x ; then
10624 APP_MAN_SUFFIX=1
10625 fi
10626 if test x$APP_MAN_DIR = x ; then
10627 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10628 fi
10629
10630 if test x$LIB_MAN_SUFFIX = x ; then
10631 LIB_MAN_SUFFIX=3
10632 fi
10633 if test x$LIB_MAN_DIR = x ; then
10634 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10635 fi
10636
10637 if test x$FILE_MAN_SUFFIX = x ; then
10638 case $SYSV_MAN_SECTIONS in
10639 true) FILE_MAN_SUFFIX=4 ;;
10640 *) FILE_MAN_SUFFIX=5 ;;
10641 esac
10642 fi
10643 if test x$FILE_MAN_DIR = x ; then
10644 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10645 fi
10646
10647 if test x$MISC_MAN_SUFFIX = x ; then
10648 case $SYSV_MAN_SECTIONS in
10649 true) MISC_MAN_SUFFIX=5 ;;
10650 *) MISC_MAN_SUFFIX=7 ;;
10651 esac
10652 fi
10653 if test x$MISC_MAN_DIR = x ; then
10654 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10655 fi
10656
10657 if test x$DRIVER_MAN_SUFFIX = x ; then
10658 case $SYSV_MAN_SECTIONS in
10659 true) DRIVER_MAN_SUFFIX=7 ;;
10660 *) DRIVER_MAN_SUFFIX=4 ;;
10661 esac
10662 fi
10663 if test x$DRIVER_MAN_DIR = x ; then
10664 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10665 fi
10666
10667 if test x$ADMIN_MAN_SUFFIX = x ; then
10668 case $SYSV_MAN_SECTIONS in
10669 true) ADMIN_MAN_SUFFIX=1m ;;
10670 *) ADMIN_MAN_SUFFIX=8 ;;
10671 esac
10672 fi
10673 if test x$ADMIN_MAN_DIR = x ; then
10674 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10675 fi
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691 XORG_MAN_PAGE="X Version 11"
10692
10693 MAN_SUBSTS="\
10694 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10695 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10696 -e 's|__xservername__|Xorg|g' \
10697 -e 's|__xconfigfile__|xorg.conf|g' \
10698 -e 's|__projectroot__|\$(prefix)|g' \
10699 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10700 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10701 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10702 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10703 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10704 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10705 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10706
10707
10708
10709 # Check whether --enable-silent-rules was given.
10710 if test "${enable_silent_rules+set}" = set; then :
10711 enableval=$enable_silent_rules;
10712 fi
10713
10714 case $enable_silent_rules in # (((
10715 yes) AM_DEFAULT_VERBOSITY=0;;
10716 no) AM_DEFAULT_VERBOSITY=1;;
10717 *) AM_DEFAULT_VERBOSITY=0;;
10718 esac
10719 am_make=${MAKE-make}
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10721 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10722 if ${am_cv_make_support_nested_variables+:} false; then :
10723 $as_echo_n "(cached) " >&6
10724 else
10725 if $as_echo 'TRUE=$(BAR$(V))
10726 BAR0=false
10727 BAR1=true
10728 V=1
10729 am__doit:
10730 @$(TRUE)
10731 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10732 am_cv_make_support_nested_variables=yes
10733 else
10734 am_cv_make_support_nested_variables=no
10735 fi
10736 fi
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10738 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10739 if test $am_cv_make_support_nested_variables = yes; then
10740 AM_V='$(V)'
10741 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10742 else
10743 AM_V=$AM_DEFAULT_VERBOSITY
10744 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10745 fi
10746 AM_BACKSLASH='\'
10747
10748
10749
10750 for ac_header in wchar.h wctype.h langinfo.h
10751 do :
10752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10753 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10754 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10755 cat >>confdefs.h <<_ACEOF
10756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10757 _ACEOF
10758
10759 fi
10760
10761 done
10762
10763
10764 # Checks for pkg-config packages
10765
10766 pkg_failed=no
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPROP" >&5
10768 $as_echo_n "checking for XPROP... " >&6; }
10769
10770 if test -n "$XPROP_CFLAGS"; then
10771 pkg_cv_XPROP_CFLAGS="$XPROP_CFLAGS"
10772 elif test -n "$PKG_CONFIG"; then
10773 if test -n "$PKG_CONFIG" && \
10774 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
10775 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
10776 ac_status=$?
10777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10778 test $ac_status = 0; }; then
10779 pkg_cv_XPROP_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25" 2>/dev/null`
10780 test "x$?" != "x0" && pkg_failed=yes
10781 else
10782 pkg_failed=yes
10783 fi
10784 else
10785 pkg_failed=untried
10786 fi
10787 if test -n "$XPROP_LIBS"; then
10788 pkg_cv_XPROP_LIBS="$XPROP_LIBS"
10789 elif test -n "$PKG_CONFIG"; then
10790 if test -n "$PKG_CONFIG" && \
10791 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
10792 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
10793 ac_status=$?
10794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10795 test $ac_status = 0; }; then
10796 pkg_cv_XPROP_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25" 2>/dev/null`
10797 test "x$?" != "x0" && pkg_failed=yes
10798 else
10799 pkg_failed=yes
10800 fi
10801 else
10802 pkg_failed=untried
10803 fi
10804
10805
10806
10807 if test $pkg_failed = yes; then
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10809 $as_echo "no" >&6; }
10810
10811 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10812 _pkg_short_errors_supported=yes
10813 else
10814 _pkg_short_errors_supported=no
10815 fi
10816 if test $_pkg_short_errors_supported = yes; then
10817 XPROP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
10818 else
10819 XPROP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
10820 fi
10821 # Put the nasty error message in config.log where it belongs
10822 echo "$XPROP_PKG_ERRORS" >&5
10823
10824 as_fn_error $? "Package requirements (x11 xproto >= 7.0.25) were not met:
10825
10826 $XPROP_PKG_ERRORS
10827
10828 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10829 installed software in a non-standard prefix.
10830
10831 Alternatively, you may set the environment variables XPROP_CFLAGS
10832 and XPROP_LIBS to avoid the need to call pkg-config.
10833 See the pkg-config man page for more details." "$LINENO" 5
10834 elif test $pkg_failed = untried; then
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10836 $as_echo "no" >&6; }
10837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10839 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10840 is in your PATH or set the PKG_CONFIG environment variable to the full
10841 path to pkg-config.
10842
10843 Alternatively, you may set the environment variables XPROP_CFLAGS
10844 and XPROP_LIBS to avoid the need to call pkg-config.
10845 See the pkg-config man page for more details.
10846
10847 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10848 See \`config.log' for more details" "$LINENO" 5; }
10849 else
10850 XPROP_CFLAGS=$pkg_cv_XPROP_CFLAGS
10851 XPROP_LIBS=$pkg_cv_XPROP_LIBS
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10853 $as_echo "yes" >&6; }
10854
10855 fi
10856
10857
10858
10859
10860
10861
10862 # Check whether --with-lint was given.
10863 if test "${with_lint+set}" = set; then :
10864 withval=$with_lint; use_lint=$withval
10865 else
10866 use_lint=no
10867 fi
10868
10869
10870 # Obtain platform specific info like program name and options
10871 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
10872 case $host_os in
10873 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
10874 lint_name=splint
10875 lint_options="-badflag"
10876 ;;
10877 *freebsd* | *netbsd*)
10878 lint_name=lint
10879 lint_options="-u -b"
10880 ;;
10881 *solaris*)
10882 lint_name=lint
10883 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
10884 ;;
10885 esac
10886
10887 # Test for the presence of the program (either guessed by the code or spelled out by the user)
10888 if test "x$use_lint" = x"yes" ; then
10889 # Extract the first word of "$lint_name", so it can be a program name with args.
10890 set dummy $lint_name; ac_word=$2
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10892 $as_echo_n "checking for $ac_word... " >&6; }
10893 if ${ac_cv_path_LINT+:} false; then :
10894 $as_echo_n "(cached) " >&6
10895 else
10896 case $LINT in
10897 [\\/]* | ?:[\\/]*)
10898 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
10899 ;;
10900 *)
10901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10902 for as_dir in $PATH
10903 do
10904 IFS=$as_save_IFS
10905 test -z "$as_dir" && as_dir=.
10906 for ac_exec_ext in '' $ac_executable_extensions; do
10907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10908 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
10909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10910 break 2
10911 fi
10912 done
10913 done
10914 IFS=$as_save_IFS
10915
10916 ;;
10917 esac
10918 fi
10919 LINT=$ac_cv_path_LINT
10920 if test -n "$LINT"; then
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
10922 $as_echo "$LINT" >&6; }
10923 else
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10925 $as_echo "no" >&6; }
10926 fi
10927
10928
10929 if test "x$LINT" = "x"; then
10930 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
10931 fi
10932 elif test "x$use_lint" = x"no" ; then
10933 if test "x$LINT" != "x"; then
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
10935 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
10936 fi
10937 else
10938 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
10939 fi
10940
10941 # User supplied flags override default flags
10942 if test "x$LINT_FLAGS" != "x"; then
10943 lint_options=$LINT_FLAGS
10944 fi
10945
10946 LINT_FLAGS=$lint_options
10947
10948 if test "x$LINT" != x; then
10949 LINT_TRUE=
10950 LINT_FALSE='#'
10951 else
10952 LINT_TRUE='#'
10953 LINT_FALSE=
10954 fi
10955
10956
10957
10958
10959 ac_config_files="$ac_config_files Makefile man/Makefile"
10960
10961 cat >confcache <<\_ACEOF
10962 # This file is a shell script that caches the results of configure
10963 # tests run on this system so they can be shared between configure
10964 # scripts and configure runs, see configure's option --config-cache.
10965 # It is not useful on other systems. If it contains results you don't
10966 # want to keep, you may remove or edit it.
10967 #
10968 # config.status only pays attention to the cache file if you give it
10969 # the --recheck option to rerun configure.
10970 #
10971 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10972 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10973 # following values.
10974
10975 _ACEOF
10976
10977 # The following way of writing the cache mishandles newlines in values,
10978 # but we know of no workaround that is simple, portable, and efficient.
10979 # So, we kill variables containing newlines.
10980 # Ultrix sh set writes to stderr and can't be redirected directly,
10981 # and sets the high bit in the cache file unless we assign to the vars.
10982 (
10983 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10984 eval ac_val=\$$ac_var
10985 case $ac_val in #(
10986 *${as_nl}*)
10987 case $ac_var in #(
10988 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10989 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10990 esac
10991 case $ac_var in #(
10992 _ | IFS | as_nl) ;; #(
10993 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10994 *) { eval $ac_var=; unset $ac_var;} ;;
10995 esac ;;
10996 esac
10997 done
10998
10999 (set) 2>&1 |
11000 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11001 *${as_nl}ac_space=\ *)
11002 # `set' does not quote correctly, so add quotes: double-quote
11003 # substitution turns \\\\ into \\, and sed turns \\ into \.
11004 sed -n \
11005 "s/'/'\\\\''/g;
11006 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11007 ;; #(
11008 *)
11009 # `set' quotes correctly as required by POSIX, so do not add quotes.
11010 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11011 ;;
11012 esac |
11013 sort
11014 ) |
11015 sed '
11016 /^ac_cv_env_/b end
11017 t clear
11018 :clear
11019 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11020 t end
11021 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11022 :end' >>confcache
11023 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11024 if test -w "$cache_file"; then
11025 if test "x$cache_file" != "x/dev/null"; then
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11027 $as_echo "$as_me: updating cache $cache_file" >&6;}
11028 if test ! -f "$cache_file" || test -h "$cache_file"; then
11029 cat confcache >"$cache_file"
11030 else
11031 case $cache_file in #(
11032 */* | ?:*)
11033 mv -f confcache "$cache_file"$$ &&
11034 mv -f "$cache_file"$$ "$cache_file" ;; #(
11035 *)
11036 mv -f confcache "$cache_file" ;;
11037 esac
11038 fi
11039 fi
11040 else
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11042 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11043 fi
11044 fi
11045 rm -f confcache
11046
11047 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11048 # Let make expand exec_prefix.
11049 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11050
11051 DEFS=-DHAVE_CONFIG_H
11052
11053 ac_libobjs=
11054 ac_ltlibobjs=
11055 U=
11056 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11057 # 1. Remove the extension, and $U if already installed.
11058 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11059 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11060 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11061 # will be set to the directory where LIBOBJS objects are built.
11062 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11063 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11064 done
11065 LIBOBJS=$ac_libobjs
11066
11067 LTLIBOBJS=$ac_ltlibobjs
11068
11069
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11071 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11072 if test -n "$am_sleep_pid"; then
11073 # Hide warnings about reused PIDs.
11074 wait $am_sleep_pid 2>/dev/null
11075 fi
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11077 $as_echo "done" >&6; }
11078 if test -n "$EXEEXT"; then
11079 am__EXEEXT_TRUE=
11080 am__EXEEXT_FALSE='#'
11081 else
11082 am__EXEEXT_TRUE='#'
11083 am__EXEEXT_FALSE=
11084 fi
11085
11086 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11087 as_fn_error $? "conditional \"AMDEP\" was never defined.
11088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11089 fi
11090 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11091 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11093 fi
11094 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
11095 as_fn_error $? "conditional \"LINT\" was never defined.
11096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11097 fi
11098
11099 : "${CONFIG_STATUS=./config.status}"
11100 ac_write_fail=0
11101 ac_clean_files_save=$ac_clean_files
11102 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11104 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11105 as_write_fail=0
11106 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11107 #! $SHELL
11108 # Generated by $as_me.
11109 # Run this file to recreate the current configuration.
11110 # Compiler output produced by configure, useful for debugging
11111 # configure, is in config.log if it exists.
11112
11113 debug=false
11114 ac_cs_recheck=false
11115 ac_cs_silent=false
11116
11117 SHELL=\${CONFIG_SHELL-$SHELL}
11118 export SHELL
11119 _ASEOF
11120 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11121 ## -------------------- ##
11122 ## M4sh Initialization. ##
11123 ## -------------------- ##
11124
11125 # Be more Bourne compatible
11126 DUALCASE=1; export DUALCASE # for MKS sh
11127 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11128 emulate sh
11129 NULLCMD=:
11130 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11131 # is contrary to our usage. Disable this feature.
11132 alias -g '${1+"$@"}'='"$@"'
11133 setopt NO_GLOB_SUBST
11134 else
11135 case `(set -o) 2>/dev/null` in #(
11136 *posix*) :
11137 set -o posix ;; #(
11138 *) :
11139 ;;
11140 esac
11141 fi
11142
11143
11144 as_nl='
11145 '
11146 export as_nl
11147 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11148 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11149 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11150 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11151 # Prefer a ksh shell builtin over an external printf program on Solaris,
11152 # but without wasting forks for bash or zsh.
11153 if test -z "$BASH_VERSION$ZSH_VERSION" \
11154 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11155 as_echo='print -r --'
11156 as_echo_n='print -rn --'
11157 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11158 as_echo='printf %s\n'
11159 as_echo_n='printf %s'
11160 else
11161 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11162 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11163 as_echo_n='/usr/ucb/echo -n'
11164 else
11165 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11166 as_echo_n_body='eval
11167 arg=$1;
11168 case $arg in #(
11169 *"$as_nl"*)
11170 expr "X$arg" : "X\\(.*\\)$as_nl";
11171 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11172 esac;
11173 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11174 '
11175 export as_echo_n_body
11176 as_echo_n='sh -c $as_echo_n_body as_echo'
11177 fi
11178 export as_echo_body
11179 as_echo='sh -c $as_echo_body as_echo'
11180 fi
11181
11182 # The user is always right.
11183 if test "${PATH_SEPARATOR+set}" != set; then
11184 PATH_SEPARATOR=:
11185 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11186 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11187 PATH_SEPARATOR=';'
11188 }
11189 fi
11190
11191
11192 # IFS
11193 # We need space, tab and new line, in precisely that order. Quoting is
11194 # there to prevent editors from complaining about space-tab.
11195 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11196 # splitting by setting IFS to empty value.)
11197 IFS=" "" $as_nl"
11198
11199 # Find who we are. Look in the path if we contain no directory separator.
11200 as_myself=
11201 case $0 in #((
11202 *[\\/]* ) as_myself=$0 ;;
11203 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11204 for as_dir in $PATH
11205 do
11206 IFS=$as_save_IFS
11207 test -z "$as_dir" && as_dir=.
11208 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11209 done
11210 IFS=$as_save_IFS
11211
11212 ;;
11213 esac
11214 # We did not find ourselves, most probably we were run as `sh COMMAND'
11215 # in which case we are not to be found in the path.
11216 if test "x$as_myself" = x; then
11217 as_myself=$0
11218 fi
11219 if test ! -f "$as_myself"; then
11220 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11221 exit 1
11222 fi
11223
11224 # Unset variables that we do not need and which cause bugs (e.g. in
11225 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11226 # suppresses any "Segmentation fault" message there. '((' could
11227 # trigger a bug in pdksh 5.2.14.
11228 for as_var in BASH_ENV ENV MAIL MAILPATH
11229 do eval test x\${$as_var+set} = xset \
11230 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11231 done
11232 PS1='$ '
11233 PS2='> '
11234 PS4='+ '
11235
11236 # NLS nuisances.
11237 LC_ALL=C
11238 export LC_ALL
11239 LANGUAGE=C
11240 export LANGUAGE
11241
11242 # CDPATH.
11243 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11244
11245
11246 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11247 # ----------------------------------------
11248 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11249 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11250 # script with STATUS, using 1 if that was 0.
11251 as_fn_error ()
11252 {
11253 as_status=$1; test $as_status -eq 0 && as_status=1
11254 if test "$4"; then
11255 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11256 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11257 fi
11258 $as_echo "$as_me: error: $2" >&2
11259 as_fn_exit $as_status
11260 } # as_fn_error
11261
11262
11263 # as_fn_set_status STATUS
11264 # -----------------------
11265 # Set $? to STATUS, without forking.
11266 as_fn_set_status ()
11267 {
11268 return $1
11269 } # as_fn_set_status
11270
11271 # as_fn_exit STATUS
11272 # -----------------
11273 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11274 as_fn_exit ()
11275 {
11276 set +e
11277 as_fn_set_status $1
11278 exit $1
11279 } # as_fn_exit
11280
11281 # as_fn_unset VAR
11282 # ---------------
11283 # Portably unset VAR.
11284 as_fn_unset ()
11285 {
11286 { eval $1=; unset $1;}
11287 }
11288 as_unset=as_fn_unset
11289 # as_fn_append VAR VALUE
11290 # ----------------------
11291 # Append the text in VALUE to the end of the definition contained in VAR. Take
11292 # advantage of any shell optimizations that allow amortized linear growth over
11293 # repeated appends, instead of the typical quadratic growth present in naive
11294 # implementations.
11295 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11296 eval 'as_fn_append ()
11297 {
11298 eval $1+=\$2
11299 }'
11300 else
11301 as_fn_append ()
11302 {
11303 eval $1=\$$1\$2
11304 }
11305 fi # as_fn_append
11306
11307 # as_fn_arith ARG...
11308 # ------------------
11309 # Perform arithmetic evaluation on the ARGs, and store the result in the
11310 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11311 # must be portable across $(()) and expr.
11312 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11313 eval 'as_fn_arith ()
11314 {
11315 as_val=$(( $* ))
11316 }'
11317 else
11318 as_fn_arith ()
11319 {
11320 as_val=`expr "$@" || test $? -eq 1`
11321 }
11322 fi # as_fn_arith
11323
11324
11325 if expr a : '\(a\)' >/dev/null 2>&1 &&
11326 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11327 as_expr=expr
11328 else
11329 as_expr=false
11330 fi
11331
11332 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11333 as_basename=basename
11334 else
11335 as_basename=false
11336 fi
11337
11338 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11339 as_dirname=dirname
11340 else
11341 as_dirname=false
11342 fi
11343
11344 as_me=`$as_basename -- "$0" ||
11345 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11346 X"$0" : 'X\(//\)$' \| \
11347 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11348 $as_echo X/"$0" |
11349 sed '/^.*\/\([^/][^/]*\)\/*$/{
11350 s//\1/
11351 q
11352 }
11353 /^X\/\(\/\/\)$/{
11354 s//\1/
11355 q
11356 }
11357 /^X\/\(\/\).*/{
11358 s//\1/
11359 q
11360 }
11361 s/.*/./; q'`
11362
11363 # Avoid depending upon Character Ranges.
11364 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11365 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11366 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11367 as_cr_digits='0123456789'
11368 as_cr_alnum=$as_cr_Letters$as_cr_digits
11369
11370 ECHO_C= ECHO_N= ECHO_T=
11371 case `echo -n x` in #(((((
11372 -n*)
11373 case `echo 'xy\c'` in
11374 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11375 xy) ECHO_C='\c';;
11376 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11377 ECHO_T=' ';;
11378 esac;;
11379 *)
11380 ECHO_N='-n';;
11381 esac
11382
11383 rm -f conf$$ conf$$.exe conf$$.file
11384 if test -d conf$$.dir; then
11385 rm -f conf$$.dir/conf$$.file
11386 else
11387 rm -f conf$$.dir
11388 mkdir conf$$.dir 2>/dev/null
11389 fi
11390 if (echo >conf$$.file) 2>/dev/null; then
11391 if ln -s conf$$.file conf$$ 2>/dev/null; then
11392 as_ln_s='ln -s'
11393 # ... but there are two gotchas:
11394 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11395 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11396 # In both cases, we have to default to `cp -pR'.
11397 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11398 as_ln_s='cp -pR'
11399 elif ln conf$$.file conf$$ 2>/dev/null; then
11400 as_ln_s=ln
11401 else
11402 as_ln_s='cp -pR'
11403 fi
11404 else
11405 as_ln_s='cp -pR'
11406 fi
11407 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11408 rmdir conf$$.dir 2>/dev/null
11409
11410
11411 # as_fn_mkdir_p
11412 # -------------
11413 # Create "$as_dir" as a directory, including parents if necessary.
11414 as_fn_mkdir_p ()
11415 {
11416
11417 case $as_dir in #(
11418 -*) as_dir=./$as_dir;;
11419 esac
11420 test -d "$as_dir" || eval $as_mkdir_p || {
11421 as_dirs=
11422 while :; do
11423 case $as_dir in #(
11424 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11425 *) as_qdir=$as_dir;;
11426 esac
11427 as_dirs="'$as_qdir' $as_dirs"
11428 as_dir=`$as_dirname -- "$as_dir" ||
11429 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11430 X"$as_dir" : 'X\(//\)[^/]' \| \
11431 X"$as_dir" : 'X\(//\)$' \| \
11432 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11433 $as_echo X"$as_dir" |
11434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11435 s//\1/
11436 q
11437 }
11438 /^X\(\/\/\)[^/].*/{
11439 s//\1/
11440 q
11441 }
11442 /^X\(\/\/\)$/{
11443 s//\1/
11444 q
11445 }
11446 /^X\(\/\).*/{
11447 s//\1/
11448 q
11449 }
11450 s/.*/./; q'`
11451 test -d "$as_dir" && break
11452 done
11453 test -z "$as_dirs" || eval "mkdir $as_dirs"
11454 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11455
11456
11457 } # as_fn_mkdir_p
11458 if mkdir -p . 2>/dev/null; then
11459 as_mkdir_p='mkdir -p "$as_dir"'
11460 else
11461 test -d ./-p && rmdir ./-p
11462 as_mkdir_p=false
11463 fi
11464
11465
11466 # as_fn_executable_p FILE
11467 # -----------------------
11468 # Test if FILE is an executable regular file.
11469 as_fn_executable_p ()
11470 {
11471 test -f "$1" && test -x "$1"
11472 } # as_fn_executable_p
11473 as_test_x='test -x'
11474 as_executable_p=as_fn_executable_p
11475
11476 # Sed expression to map a string onto a valid CPP name.
11477 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11478
11479 # Sed expression to map a string onto a valid variable name.
11480 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11481
11482
11483 exec 6>&1
11484 ## ----------------------------------- ##
11485 ## Main body of $CONFIG_STATUS script. ##
11486 ## ----------------------------------- ##
11487 _ASEOF
11488 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11489
11490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11491 # Save the log message, to keep $0 and so on meaningful, and to
11492 # report actual input values of CONFIG_FILES etc. instead of their
11493 # values after options handling.
11494 ac_log="
11495 This file was extended by xprop $as_me 1.2.5, which was
11496 generated by GNU Autoconf 2.69. Invocation command line was
11497
11498 CONFIG_FILES = $CONFIG_FILES
11499 CONFIG_HEADERS = $CONFIG_HEADERS
11500 CONFIG_LINKS = $CONFIG_LINKS
11501 CONFIG_COMMANDS = $CONFIG_COMMANDS
11502 $ $0 $@
11503
11504 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11505 "
11506
11507 _ACEOF
11508
11509 case $ac_config_files in *"
11510 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11511 esac
11512
11513 case $ac_config_headers in *"
11514 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11515 esac
11516
11517
11518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11519 # Files that config.status was made for.
11520 config_files="$ac_config_files"
11521 config_headers="$ac_config_headers"
11522 config_commands="$ac_config_commands"
11523
11524 _ACEOF
11525
11526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11527 ac_cs_usage="\
11528 \`$as_me' instantiates files and other configuration actions
11529 from templates according to the current configuration. Unless the files
11530 and actions are specified as TAGs, all are instantiated by default.
11531
11532 Usage: $0 [OPTION]... [TAG]...
11533
11534 -h, --help print this help, then exit
11535 -V, --version print version number and configuration settings, then exit
11536 --config print configuration, then exit
11537 -q, --quiet, --silent
11538 do not print progress messages
11539 -d, --debug don't remove temporary files
11540 --recheck update $as_me by reconfiguring in the same conditions
11541 --file=FILE[:TEMPLATE]
11542 instantiate the configuration file FILE
11543 --header=FILE[:TEMPLATE]
11544 instantiate the configuration header FILE
11545
11546 Configuration files:
11547 $config_files
11548
11549 Configuration headers:
11550 $config_headers
11551
11552 Configuration commands:
11553 $config_commands
11554
11555 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xprop/issues>."
11556
11557 _ACEOF
11558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11559 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11560 ac_cs_version="\\
11561 xprop config.status 1.2.5
11562 configured by $0, generated by GNU Autoconf 2.69,
11563 with options \\"\$ac_cs_config\\"
11564
11565 Copyright (C) 2012 Free Software Foundation, Inc.
11566 This config.status script is free software; the Free Software Foundation
11567 gives unlimited permission to copy, distribute and modify it."
11568
11569 ac_pwd='$ac_pwd'
11570 srcdir='$srcdir'
11571 INSTALL='$INSTALL'
11572 MKDIR_P='$MKDIR_P'
11573 AWK='$AWK'
11574 test -n "\$AWK" || AWK=awk
11575 _ACEOF
11576
11577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11578 # The default lists apply if the user does not specify any file.
11579 ac_need_defaults=:
11580 while test $# != 0
11581 do
11582 case $1 in
11583 --*=?*)
11584 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11585 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11586 ac_shift=:
11587 ;;
11588 --*=)
11589 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11590 ac_optarg=
11591 ac_shift=:
11592 ;;
11593 *)
11594 ac_option=$1
11595 ac_optarg=$2
11596 ac_shift=shift
11597 ;;
11598 esac
11599
11600 case $ac_option in
11601 # Handling of the options.
11602 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11603 ac_cs_recheck=: ;;
11604 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11605 $as_echo "$ac_cs_version"; exit ;;
11606 --config | --confi | --conf | --con | --co | --c )
11607 $as_echo "$ac_cs_config"; exit ;;
11608 --debug | --debu | --deb | --de | --d | -d )
11609 debug=: ;;
11610 --file | --fil | --fi | --f )
11611 $ac_shift
11612 case $ac_optarg in
11613 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11614 '') as_fn_error $? "missing file argument" ;;
11615 esac
11616 as_fn_append CONFIG_FILES " '$ac_optarg'"
11617 ac_need_defaults=false;;
11618 --header | --heade | --head | --hea )
11619 $ac_shift
11620 case $ac_optarg in
11621 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11622 esac
11623 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11624 ac_need_defaults=false;;
11625 --he | --h)
11626 # Conflict between --help and --header
11627 as_fn_error $? "ambiguous option: \`$1'
11628 Try \`$0 --help' for more information.";;
11629 --help | --hel | -h )
11630 $as_echo "$ac_cs_usage"; exit ;;
11631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11632 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11633 ac_cs_silent=: ;;
11634
11635 # This is an error.
11636 -*) as_fn_error $? "unrecognized option: \`$1'
11637 Try \`$0 --help' for more information." ;;
11638
11639 *) as_fn_append ac_config_targets " $1"
11640 ac_need_defaults=false ;;
11641
11642 esac
11643 shift
11644 done
11645
11646 ac_configure_extra_args=
11647
11648 if $ac_cs_silent; then
11649 exec 6>/dev/null
11650 ac_configure_extra_args="$ac_configure_extra_args --silent"
11651 fi
11652
11653 _ACEOF
11654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11655 if \$ac_cs_recheck; then
11656 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11657 shift
11658 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11659 CONFIG_SHELL='$SHELL'
11660 export CONFIG_SHELL
11661 exec "\$@"
11662 fi
11663
11664 _ACEOF
11665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11666 exec 5>>config.log
11667 {
11668 echo
11669 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11670 ## Running $as_me. ##
11671 _ASBOX
11672 $as_echo "$ac_log"
11673 } >&5
11674
11675 _ACEOF
11676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11677 #
11678 # INIT-COMMANDS
11679 #
11680 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
11681
11682 _ACEOF
11683
11684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11685
11686 # Handling of arguments.
11687 for ac_config_target in $ac_config_targets
11688 do
11689 case $ac_config_target in
11690 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11691 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11692 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11693 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11694
11695 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11696 esac
11697 done
11698
11699
11700 # If the user did not use the arguments to specify the items to instantiate,
11701 # then the envvar interface is used. Set only those that are not.
11702 # We use the long form for the default assignment because of an extremely
11703 # bizarre bug on SunOS 4.1.3.
11704 if $ac_need_defaults; then
11705 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11706 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11707 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11708 fi
11709
11710 # Have a temporary directory for convenience. Make it in the build tree
11711 # simply because there is no reason against having it here, and in addition,
11712 # creating and moving files from /tmp can sometimes cause problems.
11713 # Hook for its removal unless debugging.
11714 # Note that there is a small window in which the directory will not be cleaned:
11715 # after its creation but before its name has been assigned to `$tmp'.
11716 $debug ||
11717 {
11718 tmp= ac_tmp=
11719 trap 'exit_status=$?
11720 : "${ac_tmp:=$tmp}"
11721 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11722 ' 0
11723 trap 'as_fn_exit 1' 1 2 13 15
11724 }
11725 # Create a (secure) tmp directory for tmp files.
11726
11727 {
11728 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11729 test -d "$tmp"
11730 } ||
11731 {
11732 tmp=./conf$$-$RANDOM
11733 (umask 077 && mkdir "$tmp")
11734 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11735 ac_tmp=$tmp
11736
11737 # Set up the scripts for CONFIG_FILES section.
11738 # No need to generate them if there are no CONFIG_FILES.
11739 # This happens for instance with `./config.status config.h'.
11740 if test -n "$CONFIG_FILES"; then
11741
11742
11743 ac_cr=`echo X | tr X '\015'`
11744 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11745 # But we know of no other shell where ac_cr would be empty at this
11746 # point, so we can use a bashism as a fallback.
11747 if test "x$ac_cr" = x; then
11748 eval ac_cr=\$\'\\r\'
11749 fi
11750 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11751 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11752 ac_cs_awk_cr='\\r'
11753 else
11754 ac_cs_awk_cr=$ac_cr
11755 fi
11756
11757 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11758 _ACEOF
11759
11760
11761 {
11762 echo "cat >conf$$subs.awk <<_ACEOF" &&
11763 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11764 echo "_ACEOF"
11765 } >conf$$subs.sh ||
11766 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11767 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11768 ac_delim='%!_!# '
11769 for ac_last_try in false false false false false :; do
11770 . ./conf$$subs.sh ||
11771 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11772
11773 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11774 if test $ac_delim_n = $ac_delim_num; then
11775 break
11776 elif $ac_last_try; then
11777 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11778 else
11779 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11780 fi
11781 done
11782 rm -f conf$$subs.sh
11783
11784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11785 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11786 _ACEOF
11787 sed -n '
11788 h
11789 s/^/S["/; s/!.*/"]=/
11790 p
11791 g
11792 s/^[^!]*!//
11793 :repl
11794 t repl
11795 s/'"$ac_delim"'$//
11796 t delim
11797 :nl
11798 h
11799 s/\(.\{148\}\)..*/\1/
11800 t more1
11801 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11802 p
11803 n
11804 b repl
11805 :more1
11806 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11807 p
11808 g
11809 s/.\{148\}//
11810 t nl
11811 :delim
11812 h
11813 s/\(.\{148\}\)..*/\1/
11814 t more2
11815 s/["\\]/\\&/g; s/^/"/; s/$/"/
11816 p
11817 b
11818 :more2
11819 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11820 p
11821 g
11822 s/.\{148\}//
11823 t delim
11824 ' <conf$$subs.awk | sed '
11825 /^[^""]/{
11826 N
11827 s/\n//
11828 }
11829 ' >>$CONFIG_STATUS || ac_write_fail=1
11830 rm -f conf$$subs.awk
11831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11832 _ACAWK
11833 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11834 for (key in S) S_is_set[key] = 1
11835 FS = ""
11836
11837 }
11838 {
11839 line = $ 0
11840 nfields = split(line, field, "@")
11841 substed = 0
11842 len = length(field[1])
11843 for (i = 2; i < nfields; i++) {
11844 key = field[i]
11845 keylen = length(key)
11846 if (S_is_set[key]) {
11847 value = S[key]
11848 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11849 len += length(value) + length(field[++i])
11850 substed = 1
11851 } else
11852 len += 1 + keylen
11853 }
11854
11855 print line
11856 }
11857
11858 _ACAWK
11859 _ACEOF
11860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11861 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11862 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11863 else
11864 cat
11865 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11866 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11867 _ACEOF
11868
11869 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11870 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11871 # trailing colons and then remove the whole line if VPATH becomes empty
11872 # (actually we leave an empty line to preserve line numbers).
11873 if test "x$srcdir" = x.; then
11874 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11875 h
11876 s///
11877 s/^/:/
11878 s/[ ]*$/:/
11879 s/:\$(srcdir):/:/g
11880 s/:\${srcdir}:/:/g
11881 s/:@srcdir@:/:/g
11882 s/^:*//
11883 s/:*$//
11884 x
11885 s/\(=[ ]*\).*/\1/
11886 G
11887 s/\n//
11888 s/^[^=]*=[ ]*$//
11889 }'
11890 fi
11891
11892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11893 fi # test -n "$CONFIG_FILES"
11894
11895 # Set up the scripts for CONFIG_HEADERS section.
11896 # No need to generate them if there are no CONFIG_HEADERS.
11897 # This happens for instance with `./config.status Makefile'.
11898 if test -n "$CONFIG_HEADERS"; then
11899 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11900 BEGIN {
11901 _ACEOF
11902
11903 # Transform confdefs.h into an awk script `defines.awk', embedded as
11904 # here-document in config.status, that substitutes the proper values into
11905 # config.h.in to produce config.h.
11906
11907 # Create a delimiter string that does not exist in confdefs.h, to ease
11908 # handling of long lines.
11909 ac_delim='%!_!# '
11910 for ac_last_try in false false :; do
11911 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11912 if test -z "$ac_tt"; then
11913 break
11914 elif $ac_last_try; then
11915 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11916 else
11917 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11918 fi
11919 done
11920
11921 # For the awk script, D is an array of macro values keyed by name,
11922 # likewise P contains macro parameters if any. Preserve backslash
11923 # newline sequences.
11924
11925 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11926 sed -n '
11927 s/.\{148\}/&'"$ac_delim"'/g
11928 t rset
11929 :rset
11930 s/^[ ]*#[ ]*define[ ][ ]*/ /
11931 t def
11932 d
11933 :def
11934 s/\\$//
11935 t bsnl
11936 s/["\\]/\\&/g
11937 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11938 D["\1"]=" \3"/p
11939 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11940 d
11941 :bsnl
11942 s/["\\]/\\&/g
11943 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11944 D["\1"]=" \3\\\\\\n"\\/p
11945 t cont
11946 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11947 t cont
11948 d
11949 :cont
11950 n
11951 s/.\{148\}/&'"$ac_delim"'/g
11952 t clear
11953 :clear
11954 s/\\$//
11955 t bsnlc
11956 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11957 d
11958 :bsnlc
11959 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11960 b cont
11961 ' <confdefs.h | sed '
11962 s/'"$ac_delim"'/"\\\
11963 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11964
11965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11966 for (key in D) D_is_set[key] = 1
11967 FS = ""
11968 }
11969 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11970 line = \$ 0
11971 split(line, arg, " ")
11972 if (arg[1] == "#") {
11973 defundef = arg[2]
11974 mac1 = arg[3]
11975 } else {
11976 defundef = substr(arg[1], 2)
11977 mac1 = arg[2]
11978 }
11979 split(mac1, mac2, "(") #)
11980 macro = mac2[1]
11981 prefix = substr(line, 1, index(line, defundef) - 1)
11982 if (D_is_set[macro]) {
11983 # Preserve the white space surrounding the "#".
11984 print prefix "define", macro P[macro] D[macro]
11985 next
11986 } else {
11987 # Replace #undef with comments. This is necessary, for example,
11988 # in the case of _POSIX_SOURCE, which is predefined and required
11989 # on some systems where configure will not decide to define it.
11990 if (defundef == "undef") {
11991 print "/*", prefix defundef, macro, "*/"
11992 next
11993 }
11994 }
11995 }
11996 { print }
11997 _ACAWK
11998 _ACEOF
11999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12000 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12001 fi # test -n "$CONFIG_HEADERS"
12002
12003
12004 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12005 shift
12006 for ac_tag
12007 do
12008 case $ac_tag in
12009 :[FHLC]) ac_mode=$ac_tag; continue;;
12010 esac
12011 case $ac_mode$ac_tag in
12012 :[FHL]*:*);;
12013 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12014 :[FH]-) ac_tag=-:-;;
12015 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12016 esac
12017 ac_save_IFS=$IFS
12018 IFS=:
12019 set x $ac_tag
12020 IFS=$ac_save_IFS
12021 shift
12022 ac_file=$1
12023 shift
12024
12025 case $ac_mode in
12026 :L) ac_source=$1;;
12027 :[FH])
12028 ac_file_inputs=
12029 for ac_f
12030 do
12031 case $ac_f in
12032 -) ac_f="$ac_tmp/stdin";;
12033 *) # Look for the file first in the build tree, then in the source tree
12034 # (if the path is not absolute). The absolute path cannot be DOS-style,
12035 # because $ac_f cannot contain `:'.
12036 test -f "$ac_f" ||
12037 case $ac_f in
12038 [\\/$]*) false;;
12039 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12040 esac ||
12041 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12042 esac
12043 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12044 as_fn_append ac_file_inputs " '$ac_f'"
12045 done
12046
12047 # Let's still pretend it is `configure' which instantiates (i.e., don't
12048 # use $as_me), people would be surprised to read:
12049 # /* config.h. Generated by config.status. */
12050 configure_input='Generated from '`
12051 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12052 `' by configure.'
12053 if test x"$ac_file" != x-; then
12054 configure_input="$ac_file. $configure_input"
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12056 $as_echo "$as_me: creating $ac_file" >&6;}
12057 fi
12058 # Neutralize special characters interpreted by sed in replacement strings.
12059 case $configure_input in #(
12060 *\&* | *\|* | *\\* )
12061 ac_sed_conf_input=`$as_echo "$configure_input" |
12062 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12063 *) ac_sed_conf_input=$configure_input;;
12064 esac
12065
12066 case $ac_tag in
12067 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12068 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12069 esac
12070 ;;
12071 esac
12072
12073 ac_dir=`$as_dirname -- "$ac_file" ||
12074 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12075 X"$ac_file" : 'X\(//\)[^/]' \| \
12076 X"$ac_file" : 'X\(//\)$' \| \
12077 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12078 $as_echo X"$ac_file" |
12079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12080 s//\1/
12081 q
12082 }
12083 /^X\(\/\/\)[^/].*/{
12084 s//\1/
12085 q
12086 }
12087 /^X\(\/\/\)$/{
12088 s//\1/
12089 q
12090 }
12091 /^X\(\/\).*/{
12092 s//\1/
12093 q
12094 }
12095 s/.*/./; q'`
12096 as_dir="$ac_dir"; as_fn_mkdir_p
12097 ac_builddir=.
12098
12099 case "$ac_dir" in
12100 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12101 *)
12102 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12103 # A ".." for each directory in $ac_dir_suffix.
12104 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12105 case $ac_top_builddir_sub in
12106 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12107 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12108 esac ;;
12109 esac
12110 ac_abs_top_builddir=$ac_pwd
12111 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12112 # for backward compatibility:
12113 ac_top_builddir=$ac_top_build_prefix
12114
12115 case $srcdir in
12116 .) # We are building in place.
12117 ac_srcdir=.
12118 ac_top_srcdir=$ac_top_builddir_sub
12119 ac_abs_top_srcdir=$ac_pwd ;;
12120 [\\/]* | ?:[\\/]* ) # Absolute name.
12121 ac_srcdir=$srcdir$ac_dir_suffix;
12122 ac_top_srcdir=$srcdir
12123 ac_abs_top_srcdir=$srcdir ;;
12124 *) # Relative name.
12125 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12126 ac_top_srcdir=$ac_top_build_prefix$srcdir
12127 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12128 esac
12129 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12130
12131
12132 case $ac_mode in
12133 :F)
12134 #
12135 # CONFIG_FILE
12136 #
12137
12138 case $INSTALL in
12139 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12140 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12141 esac
12142 ac_MKDIR_P=$MKDIR_P
12143 case $MKDIR_P in
12144 [\\/$]* | ?:[\\/]* ) ;;
12145 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12146 esac
12147 _ACEOF
12148
12149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12150 # If the template does not know about datarootdir, expand it.
12151 # FIXME: This hack should be removed a few years after 2.60.
12152 ac_datarootdir_hack=; ac_datarootdir_seen=
12153 ac_sed_dataroot='
12154 /datarootdir/ {
12155 p
12156 q
12157 }
12158 /@datadir@/p
12159 /@docdir@/p
12160 /@infodir@/p
12161 /@localedir@/p
12162 /@mandir@/p'
12163 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12164 *datarootdir*) ac_datarootdir_seen=yes;;
12165 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12167 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12168 _ACEOF
12169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12170 ac_datarootdir_hack='
12171 s&@datadir@&$datadir&g
12172 s&@docdir@&$docdir&g
12173 s&@infodir@&$infodir&g
12174 s&@localedir@&$localedir&g
12175 s&@mandir@&$mandir&g
12176 s&\\\${datarootdir}&$datarootdir&g' ;;
12177 esac
12178 _ACEOF
12179
12180 # Neutralize VPATH when `$srcdir' = `.'.
12181 # Shell code in configure.ac might set extrasub.
12182 # FIXME: do we really want to maintain this feature?
12183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12184 ac_sed_extra="$ac_vpsub
12185 $extrasub
12186 _ACEOF
12187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12188 :t
12189 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12190 s|@configure_input@|$ac_sed_conf_input|;t t
12191 s&@top_builddir@&$ac_top_builddir_sub&;t t
12192 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12193 s&@srcdir@&$ac_srcdir&;t t
12194 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12195 s&@top_srcdir@&$ac_top_srcdir&;t t
12196 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12197 s&@builddir@&$ac_builddir&;t t
12198 s&@abs_builddir@&$ac_abs_builddir&;t t
12199 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12200 s&@INSTALL@&$ac_INSTALL&;t t
12201 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12202 $ac_datarootdir_hack
12203 "
12204 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12205 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12206
12207 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12208 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12209 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12210 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12212 which seems to be undefined. Please make sure it is defined" >&5
12213 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12214 which seems to be undefined. Please make sure it is defined" >&2;}
12215
12216 rm -f "$ac_tmp/stdin"
12217 case $ac_file in
12218 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12219 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12220 esac \
12221 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12222 ;;
12223 :H)
12224 #
12225 # CONFIG_HEADER
12226 #
12227 if test x"$ac_file" != x-; then
12228 {
12229 $as_echo "/* $configure_input */" \
12230 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12231 } >"$ac_tmp/config.h" \
12232 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12233 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12235 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12236 else
12237 rm -f "$ac_file"
12238 mv "$ac_tmp/config.h" "$ac_file" \
12239 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12240 fi
12241 else
12242 $as_echo "/* $configure_input */" \
12243 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12244 || as_fn_error $? "could not create -" "$LINENO" 5
12245 fi
12246 # Compute "$ac_file"'s index in $config_headers.
12247 _am_arg="$ac_file"
12248 _am_stamp_count=1
12249 for _am_header in $config_headers :; do
12250 case $_am_header in
12251 $_am_arg | $_am_arg:* )
12252 break ;;
12253 * )
12254 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12255 esac
12256 done
12257 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12258 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12259 X"$_am_arg" : 'X\(//\)[^/]' \| \
12260 X"$_am_arg" : 'X\(//\)$' \| \
12261 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12262 $as_echo X"$_am_arg" |
12263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12264 s//\1/
12265 q
12266 }
12267 /^X\(\/\/\)[^/].*/{
12268 s//\1/
12269 q
12270 }
12271 /^X\(\/\/\)$/{
12272 s//\1/
12273 q
12274 }
12275 /^X\(\/\).*/{
12276 s//\1/
12277 q
12278 }
12279 s/.*/./; q'`/stamp-h$_am_stamp_count
12280 ;;
12281
12282 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12283 $as_echo "$as_me: executing $ac_file commands" >&6;}
12284 ;;
12285 esac
12286
12287
12288 case $ac_file$ac_mode in
12289 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12290 # Older Autoconf quotes --file arguments for eval, but not when files
12291 # are listed without --file. Let's play safe and only enable the eval
12292 # if we detect the quoting.
12293 # TODO: see whether this extra hack can be removed once we start
12294 # requiring Autoconf 2.70 or later.
12295 case $CONFIG_FILES in #(
12296 *\'*) :
12297 eval set x "$CONFIG_FILES" ;; #(
12298 *) :
12299 set x $CONFIG_FILES ;; #(
12300 *) :
12301 ;;
12302 esac
12303 shift
12304 # Used to flag and report bootstrapping failures.
12305 am_rc=0
12306 for am_mf
12307 do
12308 # Strip MF so we end up with the name of the file.
12309 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
12310 # Check whether this is an Automake generated Makefile which includes
12311 # dependency-tracking related rules and includes.
12312 # Grep'ing the whole file directly is not great: AIX grep has a line
12313 # limit of 2048, but all sed's we know have understand at least 4000.
12314 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12315 || continue
12316 am_dirpart=`$as_dirname -- "$am_mf" ||
12317 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12318 X"$am_mf" : 'X\(//\)[^/]' \| \
12319 X"$am_mf" : 'X\(//\)$' \| \
12320 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12321 $as_echo X"$am_mf" |
12322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12323 s//\1/
12324 q
12325 }
12326 /^X\(\/\/\)[^/].*/{
12327 s//\1/
12328 q
12329 }
12330 /^X\(\/\/\)$/{
12331 s//\1/
12332 q
12333 }
12334 /^X\(\/\).*/{
12335 s//\1/
12336 q
12337 }
12338 s/.*/./; q'`
12339 am_filepart=`$as_basename -- "$am_mf" ||
12340 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12341 X"$am_mf" : 'X\(//\)$' \| \
12342 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12343 $as_echo X/"$am_mf" |
12344 sed '/^.*\/\([^/][^/]*\)\/*$/{
12345 s//\1/
12346 q
12347 }
12348 /^X\/\(\/\/\)$/{
12349 s//\1/
12350 q
12351 }
12352 /^X\/\(\/\).*/{
12353 s//\1/
12354 q
12355 }
12356 s/.*/./; q'`
12357 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12358 && sed -e '/# am--include-marker/d' "$am_filepart" \
12359 | $MAKE -f - am--depfiles" >&5
12360 (cd "$am_dirpart" \
12361 && sed -e '/# am--include-marker/d' "$am_filepart" \
12362 | $MAKE -f - am--depfiles) >&5 2>&5
12363 ac_status=$?
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } || am_rc=$?
12366 done
12367 if test $am_rc -ne 0; then
12368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12370 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12371 for automatic dependency tracking. If GNU make was not used, consider
12372 re-running the configure script with MAKE=\"gmake\" (or whatever is
12373 necessary). You can also try re-running configure with the
12374 '--disable-dependency-tracking' option to at least be able to build
12375 the package (albeit without support for automatic dependency tracking).
12376 See \`config.log' for more details" "$LINENO" 5; }
12377 fi
12378 { am_dirpart=; unset am_dirpart;}
12379 { am_filepart=; unset am_filepart;}
12380 { am_mf=; unset am_mf;}
12381 { am_rc=; unset am_rc;}
12382 rm -f conftest-deps.mk
12383 }
12384 ;;
12385
12386 esac
12387 done # for ac_tag
12388
12389
12390 as_fn_exit 0
12391 _ACEOF
12392 ac_clean_files=$ac_clean_files_save
12393
12394 test $ac_write_fail = 0 ||
12395 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12396
12397
12398 # configure is writing to config.log, and then calls config.status.
12399 # config.status does its own redirection, appending to config.log.
12400 # Unfortunately, on DOS this fails, as config.log is still kept open
12401 # by configure, so config.status won't be able to write to it; its
12402 # output is simply discarded. So we exec the FD to /dev/null,
12403 # effectively closing config.log, so it can be properly (re)opened and
12404 # appended to by config.status. When coming back to configure, we
12405 # need to make the FD available again.
12406 if test "$no_create" != yes; then
12407 ac_cs_success=:
12408 ac_config_status_args=
12409 test "$silent" = yes &&
12410 ac_config_status_args="$ac_config_status_args --quiet"
12411 exec 5>/dev/null
12412 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12413 exec 5>>config.log
12414 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12415 # would make configure fail if this is the last instruction.
12416 $ac_cs_success || as_fn_exit 1
12417 fi
12418 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12420 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12421 fi
12422
12423