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 xinput 1.6.1.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
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://bugs.freedesktop.org/enter_bug.cgi?product=xorg
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='xinput'
583 PACKAGE_TARNAME='xinput'
584 PACKAGE_VERSION='1.6.1'
585 PACKAGE_STRING='xinput 1.6.1'
586 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
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 XI22_LIBS
631 XI22_CFLAGS
632 XI21_LIBS
633 XI21_CFLAGS
634 HAVE_XI2
635 HAVE_XI2_FALSE
636 HAVE_XI2_TRUE
637 XI2_LIBS
638 XI2_CFLAGS
639 XINPUT_LIBS
640 XINPUT_CFLAGS
641 MAN_SUBSTS
642 XORG_MAN_PAGE
643 ADMIN_MAN_DIR
644 DRIVER_MAN_DIR
645 MISC_MAN_DIR
646 FILE_MAN_DIR
647 LIB_MAN_DIR
648 APP_MAN_DIR
649 ADMIN_MAN_SUFFIX
650 DRIVER_MAN_SUFFIX
651 MISC_MAN_SUFFIX
652 FILE_MAN_SUFFIX
653 LIB_MAN_SUFFIX
654 APP_MAN_SUFFIX
655 SED
656 host_os
657 host_vendor
658 host_cpu
659 host
660 build_os
661 build_vendor
662 build_cpu
663 build
664 INSTALL_CMD
665 PKG_CONFIG_LIBDIR
666 PKG_CONFIG_PATH
667 PKG_CONFIG
668 CHANGELOG_CMD
669 STRICT_CFLAGS
670 CWARNFLAGS
671 BASE_CFLAGS
672 EGREP
673 GREP
674 CPP
675 am__fastdepCC_FALSE
676 am__fastdepCC_TRUE
677 CCDEPMODE
678 am__nodep
679 AMDEPBACKSLASH
680 AMDEP_FALSE
681 AMDEP_TRUE
682 am__quote
683 am__include
684 DEPDIR
685 OBJEXT
686 EXEEXT
687 ac_ct_CC
688 CPPFLAGS
689 LDFLAGS
690 CFLAGS
691 CC
692 MAINT
693 MAINTAINER_MODE_FALSE
694 MAINTAINER_MODE_TRUE
695 AM_BACKSLASH
696 AM_DEFAULT_VERBOSITY
697 AM_DEFAULT_V
698 AM_V
699 am__untar
700 am__tar
701 AMTAR
702 am__leading_dot
703 SET_MAKE
704 AWK
705 mkdir_p
706 MKDIR_P
707 INSTALL_STRIP_PROGRAM
708 STRIP
709 install_sh
710 MAKEINFO
711 AUTOHEADER
712 AUTOMAKE
713 AUTOCONF
714 ACLOCAL
715 VERSION
716 PACKAGE
717 CYGPATH_W
718 am__isrc
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 target_alias
723 host_alias
724 build_alias
725 LIBS
726 ECHO_T
727 ECHO_N
728 ECHO_C
729 DEFS
730 mandir
731 localedir
732 libdir
733 psdir
734 pdfdir
735 dvidir
736 htmldir
737 infodir
738 docdir
739 oldincludedir
740 includedir
741 localstatedir
742 sharedstatedir
743 sysconfdir
744 datadir
745 datarootdir
746 libexecdir
747 sbindir
748 bindir
749 program_transform_name
750 prefix
751 exec_prefix
752 PACKAGE_URL
753 PACKAGE_BUGREPORT
754 PACKAGE_STRING
755 PACKAGE_VERSION
756 PACKAGE_TARNAME
757 PACKAGE_NAME
758 PATH_SEPARATOR
759 SHELL'
760 ac_subst_files=''
761 ac_user_opts='
762 enable_option_checking
763 enable_silent_rules
764 enable_maintainer_mode
765 enable_dependency_tracking
766 enable_selective_werror
767 enable_strict_compilation
768 '
769 ac_precious_vars='build_alias
770 host_alias
771 target_alias
772 CC
773 CFLAGS
774 LDFLAGS
775 LIBS
776 CPPFLAGS
777 CPP
778 PKG_CONFIG
779 PKG_CONFIG_PATH
780 PKG_CONFIG_LIBDIR
781 XINPUT_CFLAGS
782 XINPUT_LIBS
783 XI2_CFLAGS
784 XI2_LIBS
785 XI21_CFLAGS
786 XI21_LIBS
787 XI22_CFLAGS
788 XI22_LIBS'
789
790
791 # Initialize some variables set by options.
792 ac_init_help=
793 ac_init_version=false
794 ac_unrecognized_opts=
795 ac_unrecognized_sep=
796 # The variables have the same names as the options, with
797 # dashes changed to underlines.
798 cache_file=/dev/null
799 exec_prefix=NONE
800 no_create=
801 no_recursion=
802 prefix=NONE
803 program_prefix=NONE
804 program_suffix=NONE
805 program_transform_name=s,x,x,
806 silent=
807 site=
808 srcdir=
809 verbose=
810 x_includes=NONE
811 x_libraries=NONE
812
813 # Installation directory options.
814 # These are left unexpanded so users can "make install exec_prefix=/foo"
815 # and all the variables that are supposed to be based on exec_prefix
816 # by default will actually change.
817 # Use braces instead of parens because sh, perl, etc. also accept them.
818 # (The list follows the same order as the GNU Coding Standards.)
819 bindir='${exec_prefix}/bin'
820 sbindir='${exec_prefix}/sbin'
821 libexecdir='${exec_prefix}/libexec'
822 datarootdir='${prefix}/share'
823 datadir='${datarootdir}'
824 sysconfdir='${prefix}/etc'
825 sharedstatedir='${prefix}/com'
826 localstatedir='${prefix}/var'
827 includedir='${prefix}/include'
828 oldincludedir='/usr/include'
829 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
830 infodir='${datarootdir}/info'
831 htmldir='${docdir}'
832 dvidir='${docdir}'
833 pdfdir='${docdir}'
834 psdir='${docdir}'
835 libdir='${exec_prefix}/lib'
836 localedir='${datarootdir}/locale'
837 mandir='${datarootdir}/man'
838
839 ac_prev=
840 ac_dashdash=
841 for ac_option
842 do
843 # If the previous option needs an argument, assign it.
844 if test -n "$ac_prev"; then
845 eval $ac_prev=\$ac_option
846 ac_prev=
847 continue
848 fi
849
850 case $ac_option in
851 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 *=) ac_optarg= ;;
853 *) ac_optarg=yes ;;
854 esac
855
856 # Accept the important Cygnus configure options, so we can diagnose typos.
857
858 case $ac_dashdash$ac_option in
859 --)
860 ac_dashdash=yes ;;
861
862 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 ac_prev=bindir ;;
864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 bindir=$ac_optarg ;;
866
867 -build | --build | --buil | --bui | --bu)
868 ac_prev=build_alias ;;
869 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870 build_alias=$ac_optarg ;;
871
872 -cache-file | --cache-file | --cache-fil | --cache-fi \
873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874 ac_prev=cache_file ;;
875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877 cache_file=$ac_optarg ;;
878
879 --config-cache | -C)
880 cache_file=config.cache ;;
881
882 -datadir | --datadir | --datadi | --datad)
883 ac_prev=datadir ;;
884 -datadir=* | --datadir=* | --datadi=* | --datad=*)
885 datadir=$ac_optarg ;;
886
887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888 | --dataroo | --dataro | --datar)
889 ac_prev=datarootdir ;;
890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892 datarootdir=$ac_optarg ;;
893
894 -disable-* | --disable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error $? "invalid feature name: $ac_useropt"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
902 *"
903 "enable_$ac_useropt"
904 "*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=no ;;
909
910 -docdir | --docdir | --docdi | --doc | --do)
911 ac_prev=docdir ;;
912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 docdir=$ac_optarg ;;
914
915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 ac_prev=dvidir ;;
917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 dvidir=$ac_optarg ;;
919
920 -enable-* | --enable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error $? "invalid feature name: $ac_useropt"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
928 *"
929 "enable_$ac_useropt"
930 "*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=\$ac_optarg ;;
935
936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938 | --exec | --exe | --ex)
939 ac_prev=exec_prefix ;;
940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942 | --exec=* | --exe=* | --ex=*)
943 exec_prefix=$ac_optarg ;;
944
945 -gas | --gas | --ga | --g)
946 # Obsolete; use --with-gas.
947 with_gas=yes ;;
948
949 -help | --help | --hel | --he | -h)
950 ac_init_help=long ;;
951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952 ac_init_help=recursive ;;
953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954 ac_init_help=short ;;
955
956 -host | --host | --hos | --ho)
957 ac_prev=host_alias ;;
958 -host=* | --host=* | --hos=* | --ho=*)
959 host_alias=$ac_optarg ;;
960
961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962 ac_prev=htmldir ;;
963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964 | --ht=*)
965 htmldir=$ac_optarg ;;
966
967 -includedir | --includedir | --includedi | --included | --include \
968 | --includ | --inclu | --incl | --inc)
969 ac_prev=includedir ;;
970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971 | --includ=* | --inclu=* | --incl=* | --inc=*)
972 includedir=$ac_optarg ;;
973
974 -infodir | --infodir | --infodi | --infod | --info | --inf)
975 ac_prev=infodir ;;
976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977 infodir=$ac_optarg ;;
978
979 -libdir | --libdir | --libdi | --libd)
980 ac_prev=libdir ;;
981 -libdir=* | --libdir=* | --libdi=* | --libd=*)
982 libdir=$ac_optarg ;;
983
984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985 | --libexe | --libex | --libe)
986 ac_prev=libexecdir ;;
987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988 | --libexe=* | --libex=* | --libe=*)
989 libexecdir=$ac_optarg ;;
990
991 -localedir | --localedir | --localedi | --localed | --locale)
992 ac_prev=localedir ;;
993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994 localedir=$ac_optarg ;;
995
996 -localstatedir | --localstatedir | --localstatedi | --localstated \
997 | --localstate | --localstat | --localsta | --localst | --locals)
998 ac_prev=localstatedir ;;
999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001 localstatedir=$ac_optarg ;;
1002
1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004 ac_prev=mandir ;;
1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006 mandir=$ac_optarg ;;
1007
1008 -nfp | --nfp | --nf)
1009 # Obsolete; use --without-fp.
1010 with_fp=no ;;
1011
1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013 | --no-cr | --no-c | -n)
1014 no_create=yes ;;
1015
1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018 no_recursion=yes ;;
1019
1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022 | --oldin | --oldi | --old | --ol | --o)
1023 ac_prev=oldincludedir ;;
1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027 oldincludedir=$ac_optarg ;;
1028
1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030 ac_prev=prefix ;;
1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032 prefix=$ac_optarg ;;
1033
1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035 | --program-pre | --program-pr | --program-p)
1036 ac_prev=program_prefix ;;
1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039 program_prefix=$ac_optarg ;;
1040
1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042 | --program-suf | --program-su | --program-s)
1043 ac_prev=program_suffix ;;
1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046 program_suffix=$ac_optarg ;;
1047
1048 -program-transform-name | --program-transform-name \
1049 | --program-transform-nam | --program-transform-na \
1050 | --program-transform-n | --program-transform- \
1051 | --program-transform | --program-transfor \
1052 | --program-transfo | --program-transf \
1053 | --program-trans | --program-tran \
1054 | --progr-tra | --program-tr | --program-t)
1055 ac_prev=program_transform_name ;;
1056 -program-transform-name=* | --program-transform-name=* \
1057 | --program-transform-nam=* | --program-transform-na=* \
1058 | --program-transform-n=* | --program-transform-=* \
1059 | --program-transform=* | --program-transfor=* \
1060 | --program-transfo=* | --program-transf=* \
1061 | --program-trans=* | --program-tran=* \
1062 | --progr-tra=* | --program-tr=* | --program-t=*)
1063 program_transform_name=$ac_optarg ;;
1064
1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066 ac_prev=pdfdir ;;
1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068 pdfdir=$ac_optarg ;;
1069
1070 -psdir | --psdir | --psdi | --psd | --ps)
1071 ac_prev=psdir ;;
1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073 psdir=$ac_optarg ;;
1074
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 silent=yes ;;
1078
1079 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1080 ac_prev=sbindir ;;
1081 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1082 | --sbi=* | --sb=*)
1083 sbindir=$ac_optarg ;;
1084
1085 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1086 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1087 | --sharedst | --shareds | --shared | --share | --shar \
1088 | --sha | --sh)
1089 ac_prev=sharedstatedir ;;
1090 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1091 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1092 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1093 | --sha=* | --sh=*)
1094 sharedstatedir=$ac_optarg ;;
1095
1096 -site | --site | --sit)
1097 ac_prev=site ;;
1098 -site=* | --site=* | --sit=*)
1099 site=$ac_optarg ;;
1100
1101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102 ac_prev=srcdir ;;
1103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1104 srcdir=$ac_optarg ;;
1105
1106 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1107 | --syscon | --sysco | --sysc | --sys | --sy)
1108 ac_prev=sysconfdir ;;
1109 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1110 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1111 sysconfdir=$ac_optarg ;;
1112
1113 -target | --target | --targe | --targ | --tar | --ta | --t)
1114 ac_prev=target_alias ;;
1115 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1116 target_alias=$ac_optarg ;;
1117
1118 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119 verbose=yes ;;
1120
1121 -version | --version | --versio | --versi | --vers | -V)
1122 ac_init_version=: ;;
1123
1124 -with-* | --with-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error $? "invalid package name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1132 *"
1133 "with_$ac_useropt"
1134 "*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval with_$ac_useropt=\$ac_optarg ;;
1139
1140 -without-* | --without-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid package name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1148 *"
1149 "with_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=no ;;
1155
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1159
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1166
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1173
1174 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1175 Try \`$0 --help' for more information"
1176 ;;
1177
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 case $ac_envvar in #(
1182 '' | [0-9]* | *[!_$as_cr_alnum]* )
1183 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1184 esac
1185 eval $ac_envvar=\$ac_optarg
1186 export $ac_envvar ;;
1187
1188 *)
1189 # FIXME: should be removed in autoconf 3.0.
1190 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1194 ;;
1195
1196 esac
1197 done
1198
1199 if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201 as_fn_error $? "missing argument to $ac_option"
1202 fi
1203
1204 if test -n "$ac_unrecognized_opts"; then
1205 case $enable_option_checking in
1206 no) ;;
1207 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1208 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209 esac
1210 fi
1211
1212 # Check all directory arguments for consistency.
1213 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214 datadir sysconfdir sharedstatedir localstatedir includedir \
1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216 libdir localedir mandir
1217 do
1218 eval ac_val=\$$ac_var
1219 # Remove trailing slashes.
1220 case $ac_val in
1221 */ )
1222 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1223 eval $ac_var=\$ac_val;;
1224 esac
1225 # Be sure to have absolute directory names.
1226 case $ac_val in
1227 [\\/$]* | ?:[\\/]* ) continue;;
1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229 esac
1230 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1231 done
1232
1233 # There might be people who depend on the old broken behavior: `$host'
1234 # used to hold the argument of --host etc.
1235 # FIXME: To remove some day.
1236 build=$build_alias
1237 host=$host_alias
1238 target=$target_alias
1239
1240 # FIXME: To remove some day.
1241 if test "x$host_alias" != x; then
1242 if test "x$build_alias" = x; then
1243 cross_compiling=maybe
1244 elif test "x$build_alias" != "x$host_alias"; then
1245 cross_compiling=yes
1246 fi
1247 fi
1248
1249 ac_tool_prefix=
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251
1252 test "$silent" = yes && exec 6>/dev/null
1253
1254
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 as_fn_error $? "working directory cannot be determined"
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 as_fn_error $? "pwd does not report name of working directory"
1261
1262
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir=`$as_dirname -- "$as_myself" ||
1268 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$as_myself" : 'X\(//\)[^/]' \| \
1270 X"$as_myself" : 'X\(//\)$' \| \
1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272 $as_echo X"$as_myself" |
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)[^/].*/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)$/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\).*/{
1286 s//\1/
1287 q
1288 }
1289 s/.*/./; q'`
1290 srcdir=$ac_confdir
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 srcdir=..
1293 fi
1294 else
1295 ac_srcdir_defaulted=no
1296 fi
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1300 fi
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 ac_abs_confdir=`(
1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1304 pwd)`
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 srcdir=.
1308 fi
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1312 case $srcdir in
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 esac
1315 for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 done
1321
1322 #
1323 # Report the --help message.
1324 #
1325 if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1328 cat <<_ACEOF
1329 \`configure' configures xinput 1.6.1 to adapt to many kinds of systems.
1330
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE. See below for descriptions of some of the useful variables.
1335
1336 Defaults for the options are specified in brackets.
1337
1338 Configuration:
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking ...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348
1349 Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
1351 [$ac_default_prefix]
1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 [PREFIX]
1354
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1359
1360 For better control, use the options below.
1361
1362 Fine tuning of the installation directories:
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
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/xinput]
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 xinput 1.6.1:";;
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-maintainer-mode
1410 enable make rules and dependencies not useful (and
1411 sometimes confusing) to the casual installer
1412 --enable-dependency-tracking
1413 do not reject slow dependency extractors
1414 --disable-dependency-tracking
1415 speeds up one-time build
1416 --disable-selective-werror
1417 Turn off selective compiler errors. (default:
1418 enabled)
1419 --enable-strict-compilation
1420 Enable all warnings from compiler and make them
1421 errors (default: disabled)
1422
1423 Some influential environment variables:
1424 CC C compiler command
1425 CFLAGS C compiler flags
1426 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1427 nonstandard directory <lib dir>
1428 LIBS libraries to pass to the linker, e.g. -l<library>
1429 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1430 you have headers in a nonstandard directory <include dir>
1431 CPP C preprocessor
1432 PKG_CONFIG path to pkg-config utility
1433 PKG_CONFIG_PATH
1434 directories to add to pkg-config's search path
1435 PKG_CONFIG_LIBDIR
1436 path overriding pkg-config's built-in search path
1437 XINPUT_CFLAGS
1438 C compiler flags for XINPUT, overriding pkg-config
1439 XINPUT_LIBS linker flags for XINPUT, overriding pkg-config
1440 XI2_CFLAGS C compiler flags for XI2, overriding pkg-config
1441 XI2_LIBS linker flags for XI2, overriding pkg-config
1442 XI21_CFLAGS C compiler flags for XI21, overriding pkg-config
1443 XI21_LIBS linker flags for XI21, overriding pkg-config
1444 XI22_CFLAGS C compiler flags for XI22, overriding pkg-config
1445 XI22_LIBS linker flags for XI22, overriding pkg-config
1446
1447 Use these variables to override the choices made by `configure' or to help
1448 it to find libraries and programs with nonstandard names/locations.
1449
1450 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1451 _ACEOF
1452 ac_status=$?
1453 fi
1454
1455 if test "$ac_init_help" = "recursive"; then
1456 # If there are subdirs, report their specific --help.
1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458 test -d "$ac_dir" ||
1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460 continue
1461 ac_builddir=.
1462
1463 case "$ac_dir" in
1464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *)
1466 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467 # A ".." for each directory in $ac_dir_suffix.
1468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469 case $ac_top_builddir_sub in
1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472 esac ;;
1473 esac
1474 ac_abs_top_builddir=$ac_pwd
1475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476 # for backward compatibility:
1477 ac_top_builddir=$ac_top_build_prefix
1478
1479 case $srcdir in
1480 .) # We are building in place.
1481 ac_srcdir=.
1482 ac_top_srcdir=$ac_top_builddir_sub
1483 ac_abs_top_srcdir=$ac_pwd ;;
1484 [\\/]* | ?:[\\/]* ) # Absolute name.
1485 ac_srcdir=$srcdir$ac_dir_suffix;
1486 ac_top_srcdir=$srcdir
1487 ac_abs_top_srcdir=$srcdir ;;
1488 *) # Relative name.
1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490 ac_top_srcdir=$ac_top_build_prefix$srcdir
1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492 esac
1493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494
1495 cd "$ac_dir" || { ac_status=$?; continue; }
1496 # Check for guested configure.
1497 if test -f "$ac_srcdir/configure.gnu"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500 elif test -f "$ac_srcdir/configure"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure" --help=recursive
1503 else
1504 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505 fi || ac_status=$?
1506 cd "$ac_pwd" || { ac_status=$?; break; }
1507 done
1508 fi
1509
1510 test -n "$ac_init_help" && exit $ac_status
1511 if $ac_init_version; then
1512 cat <<\_ACEOF
1513 xinput configure 1.6.1
1514 generated by GNU Autoconf 2.69
1515
1516 Copyright (C) 2012 Free Software Foundation, Inc.
1517 This configure script is free software; the Free Software Foundation
1518 gives unlimited permission to copy, distribute and modify it.
1519 _ACEOF
1520 exit
1521 fi
1522
1523 ## ------------------------ ##
1524 ## Autoconf initialization. ##
1525 ## ------------------------ ##
1526
1527 # ac_fn_c_try_compile LINENO
1528 # --------------------------
1529 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_c_try_compile ()
1531 {
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 rm -f conftest.$ac_objext
1534 if { { ac_try="$ac_compile"
1535 case "(($ac_try" in
1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1538 esac
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_compile") 2>conftest.err
1542 ac_status=$?
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1547 fi
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && {
1550 test -z "$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1552 } && test -s conftest.$ac_objext; then :
1553 ac_retval=0
1554 else
1555 $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.$ac_ext >&5
1557
1558 ac_retval=1
1559 fi
1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561 as_fn_set_status $ac_retval
1562
1563 } # ac_fn_c_try_compile
1564
1565 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1566 # ---------------------------------------------
1567 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1568 # accordingly.
1569 ac_fn_c_check_decl ()
1570 {
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 as_decl_name=`echo $2|sed 's/ *(.*//'`
1573 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1575 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1576 if eval \${$3+:} false; then :
1577 $as_echo_n "(cached) " >&6
1578 else
1579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1580 /* end confdefs.h. */
1581 $4
1582 int
1583 main ()
1584 {
1585 #ifndef $as_decl_name
1586 #ifdef __cplusplus
1587 (void) $as_decl_use;
1588 #else
1589 (void) $as_decl_name;
1590 #endif
1591 #endif
1592
1593 ;
1594 return 0;
1595 }
1596 _ACEOF
1597 if ac_fn_c_try_compile "$LINENO"; then :
1598 eval "$3=yes"
1599 else
1600 eval "$3=no"
1601 fi
1602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1603 fi
1604 eval ac_res=\$$3
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1606 $as_echo "$ac_res" >&6; }
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608
1609 } # ac_fn_c_check_decl
1610
1611 # ac_fn_c_try_cpp LINENO
1612 # ----------------------
1613 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_cpp ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 if { { ac_try="$ac_cpp conftest.$ac_ext"
1618 case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1625 ac_status=$?
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1630 fi
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } > conftest.i && {
1633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 }; then :
1636 ac_retval=0
1637 else
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1640
1641 ac_retval=1
1642 fi
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
1645
1646 } # ac_fn_c_try_cpp
1647
1648 # ac_fn_c_try_run LINENO
1649 # ----------------------
1650 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1651 # that executables *can* be run.
1652 ac_fn_c_try_run ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { { ac_try="$ac_link"
1656 case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_link") 2>&5
1663 ac_status=$?
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1666 { { case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_try") 2>&5
1673 ac_status=$?
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; }; }; then :
1676 ac_retval=0
1677 else
1678 $as_echo "$as_me: program exited with status $ac_status" >&5
1679 $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1681
1682 ac_retval=$ac_status
1683 fi
1684 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
1687
1688 } # ac_fn_c_try_run
1689
1690 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1691 # -------------------------------------------------------
1692 # Tests whether HEADER exists and can be compiled using the include files in
1693 # INCLUDES, setting the cache variable VAR accordingly.
1694 ac_fn_c_check_header_compile ()
1695 {
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698 $as_echo_n "checking for $2... " >&6; }
1699 if eval \${$3+:} false; then :
1700 $as_echo_n "(cached) " >&6
1701 else
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h. */
1704 $4
1705 #include <$2>
1706 _ACEOF
1707 if ac_fn_c_try_compile "$LINENO"; then :
1708 eval "$3=yes"
1709 else
1710 eval "$3=no"
1711 fi
1712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713 fi
1714 eval ac_res=\$$3
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716 $as_echo "$ac_res" >&6; }
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718
1719 } # ac_fn_c_check_header_compile
1720
1721 # ac_fn_c_try_link LINENO
1722 # -----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded.
1724 ac_fn_c_try_link ()
1725 {
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 rm -f conftest.$ac_objext conftest$ac_exeext
1728 if { { ac_try="$ac_link"
1729 case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>conftest.err
1736 ac_status=$?
1737 if test -s conftest.err; then
1738 grep -v '^ *+' conftest.err >conftest.er1
1739 cat conftest.er1 >&5
1740 mv -f conftest.er1 conftest.err
1741 fi
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && {
1744 test -z "$ac_c_werror_flag" ||
1745 test ! -s conftest.err
1746 } && test -s conftest$ac_exeext && {
1747 test "$cross_compiling" = yes ||
1748 test -x conftest$ac_exeext
1749 }; then :
1750 ac_retval=0
1751 else
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=1
1756 fi
1757 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1758 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1759 # interfere with the next link command; also delete a directory that is
1760 # left behind by Apple's compiler. We do this before executing the actions.
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1764
1765 } # ac_fn_c_try_link
1766 cat >config.log <<_ACEOF
1767 This file contains any messages produced by compilers while
1768 running configure, to aid debugging if configure makes a mistake.
1769
1770 It was created by xinput $as_me 1.6.1, which was
1771 generated by GNU Autoconf 2.69. Invocation command line was
1772
1773 $ $0 $@
1774
1775 _ACEOF
1776 exec 5>>config.log
1777 {
1778 cat <<_ASUNAME
1779 ## --------- ##
1780 ## Platform. ##
1781 ## --------- ##
1782
1783 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1784 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1785 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1786 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1787 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1788
1789 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1790 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1791
1792 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1793 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1794 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1795 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1796 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1797 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1798 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1799
1800 _ASUNAME
1801
1802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1803 for as_dir in $PATH
1804 do
1805 IFS=$as_save_IFS
1806 test -z "$as_dir" && as_dir=.
1807 $as_echo "PATH: $as_dir"
1808 done
1809 IFS=$as_save_IFS
1810
1811 } >&5
1812
1813 cat >&5 <<_ACEOF
1814
1815
1816 ## ----------- ##
1817 ## Core tests. ##
1818 ## ----------- ##
1819
1820 _ACEOF
1821
1822
1823 # Keep a trace of the command line.
1824 # Strip out --no-create and --no-recursion so they do not pile up.
1825 # Strip out --silent because we don't want to record it for future runs.
1826 # Also quote any args containing shell meta-characters.
1827 # Make two passes to allow for proper duplicate-argument suppression.
1828 ac_configure_args=
1829 ac_configure_args0=
1830 ac_configure_args1=
1831 ac_must_keep_next=false
1832 for ac_pass in 1 2
1833 do
1834 for ac_arg
1835 do
1836 case $ac_arg in
1837 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1838 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1839 | -silent | --silent | --silen | --sile | --sil)
1840 continue ;;
1841 *\'*)
1842 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1843 esac
1844 case $ac_pass in
1845 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1846 2)
1847 as_fn_append ac_configure_args1 " '$ac_arg'"
1848 if test $ac_must_keep_next = true; then
1849 ac_must_keep_next=false # Got value, back to normal.
1850 else
1851 case $ac_arg in
1852 *=* | --config-cache | -C | -disable-* | --disable-* \
1853 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1854 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1855 | -with-* | --with-* | -without-* | --without-* | --x)
1856 case "$ac_configure_args0 " in
1857 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1858 esac
1859 ;;
1860 -* ) ac_must_keep_next=true ;;
1861 esac
1862 fi
1863 as_fn_append ac_configure_args " '$ac_arg'"
1864 ;;
1865 esac
1866 done
1867 done
1868 { ac_configure_args0=; unset ac_configure_args0;}
1869 { ac_configure_args1=; unset ac_configure_args1;}
1870
1871 # When interrupted or exit'd, cleanup temporary files, and complete
1872 # config.log. We remove comments because anyway the quotes in there
1873 # would cause problems or look ugly.
1874 # WARNING: Use '\'' to represent an apostrophe within the trap.
1875 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1876 trap 'exit_status=$?
1877 # Save into config.log some information that might help in debugging.
1878 {
1879 echo
1880
1881 $as_echo "## ---------------- ##
1882 ## Cache variables. ##
1883 ## ---------------- ##"
1884 echo
1885 # The following way of writing the cache mishandles newlines in values,
1886 (
1887 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1888 eval ac_val=\$$ac_var
1889 case $ac_val in #(
1890 *${as_nl}*)
1891 case $ac_var in #(
1892 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1893 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1894 esac
1895 case $ac_var in #(
1896 _ | IFS | as_nl) ;; #(
1897 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1898 *) { eval $ac_var=; unset $ac_var;} ;;
1899 esac ;;
1900 esac
1901 done
1902 (set) 2>&1 |
1903 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1904 *${as_nl}ac_space=\ *)
1905 sed -n \
1906 "s/'\''/'\''\\\\'\'''\''/g;
1907 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1908 ;; #(
1909 *)
1910 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1911 ;;
1912 esac |
1913 sort
1914 )
1915 echo
1916
1917 $as_echo "## ----------------- ##
1918 ## Output variables. ##
1919 ## ----------------- ##"
1920 echo
1921 for ac_var in $ac_subst_vars
1922 do
1923 eval ac_val=\$$ac_var
1924 case $ac_val in
1925 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1926 esac
1927 $as_echo "$ac_var='\''$ac_val'\''"
1928 done | sort
1929 echo
1930
1931 if test -n "$ac_subst_files"; then
1932 $as_echo "## ------------------- ##
1933 ## File substitutions. ##
1934 ## ------------------- ##"
1935 echo
1936 for ac_var in $ac_subst_files
1937 do
1938 eval ac_val=\$$ac_var
1939 case $ac_val in
1940 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1941 esac
1942 $as_echo "$ac_var='\''$ac_val'\''"
1943 done | sort
1944 echo
1945 fi
1946
1947 if test -s confdefs.h; then
1948 $as_echo "## ----------- ##
1949 ## confdefs.h. ##
1950 ## ----------- ##"
1951 echo
1952 cat confdefs.h
1953 echo
1954 fi
1955 test "$ac_signal" != 0 &&
1956 $as_echo "$as_me: caught signal $ac_signal"
1957 $as_echo "$as_me: exit $exit_status"
1958 } >&5
1959 rm -f core *.core core.conftest.* &&
1960 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1961 exit $exit_status
1962 ' 0
1963 for ac_signal in 1 2 13 15; do
1964 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1965 done
1966 ac_signal=0
1967
1968 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1969 rm -f -r conftest* confdefs.h
1970
1971 $as_echo "/* confdefs.h */" > confdefs.h
1972
1973 # Predefined preprocessor variables.
1974
1975 cat >>confdefs.h <<_ACEOF
1976 #define PACKAGE_NAME "$PACKAGE_NAME"
1977 _ACEOF
1978
1979 cat >>confdefs.h <<_ACEOF
1980 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1981 _ACEOF
1982
1983 cat >>confdefs.h <<_ACEOF
1984 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1985 _ACEOF
1986
1987 cat >>confdefs.h <<_ACEOF
1988 #define PACKAGE_STRING "$PACKAGE_STRING"
1989 _ACEOF
1990
1991 cat >>confdefs.h <<_ACEOF
1992 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1993 _ACEOF
1994
1995 cat >>confdefs.h <<_ACEOF
1996 #define PACKAGE_URL "$PACKAGE_URL"
1997 _ACEOF
1998
1999
2000 # Let the site file select an alternate cache file if it wants to.
2001 # Prefer an explicitly selected file to automatically selected ones.
2002 ac_site_file1=NONE
2003 ac_site_file2=NONE
2004 if test -n "$CONFIG_SITE"; then
2005 # We do not want a PATH search for config.site.
2006 case $CONFIG_SITE in #((
2007 -*) ac_site_file1=./$CONFIG_SITE;;
2008 */*) ac_site_file1=$CONFIG_SITE;;
2009 *) ac_site_file1=./$CONFIG_SITE;;
2010 esac
2011 elif test "x$prefix" != xNONE; then
2012 ac_site_file1=$prefix/share/config.site
2013 ac_site_file2=$prefix/etc/config.site
2014 else
2015 ac_site_file1=$ac_default_prefix/share/config.site
2016 ac_site_file2=$ac_default_prefix/etc/config.site
2017 fi
2018 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2019 do
2020 test "x$ac_site_file" = xNONE && continue
2021 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2023 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2024 sed 's/^/| /' "$ac_site_file" >&5
2025 . "$ac_site_file" \
2026 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2028 as_fn_error $? "failed to load site script $ac_site_file
2029 See \`config.log' for more details" "$LINENO" 5; }
2030 fi
2031 done
2032
2033 if test -r "$cache_file"; then
2034 # Some versions of bash will fail to source /dev/null (special files
2035 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2036 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2038 $as_echo "$as_me: loading cache $cache_file" >&6;}
2039 case $cache_file in
2040 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2041 *) . "./$cache_file";;
2042 esac
2043 fi
2044 else
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2046 $as_echo "$as_me: creating cache $cache_file" >&6;}
2047 >$cache_file
2048 fi
2049
2050 # Check that the precious variables saved in the cache have kept the same
2051 # value.
2052 ac_cache_corrupted=false
2053 for ac_var in $ac_precious_vars; do
2054 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2055 eval ac_new_set=\$ac_env_${ac_var}_set
2056 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2057 eval ac_new_val=\$ac_env_${ac_var}_value
2058 case $ac_old_set,$ac_new_set in
2059 set,)
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2061 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2062 ac_cache_corrupted=: ;;
2063 ,set)
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2065 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2066 ac_cache_corrupted=: ;;
2067 ,);;
2068 *)
2069 if test "x$ac_old_val" != "x$ac_new_val"; then
2070 # differences in whitespace do not lead to failure.
2071 ac_old_val_w=`echo x $ac_old_val`
2072 ac_new_val_w=`echo x $ac_new_val`
2073 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2075 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2076 ac_cache_corrupted=:
2077 else
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2079 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2080 eval $ac_var=\$ac_old_val
2081 fi
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2083 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2085 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2086 fi;;
2087 esac
2088 # Pass precious variables to config.status.
2089 if test "$ac_new_set" = set; then
2090 case $ac_new_val in
2091 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2092 *) ac_arg=$ac_var=$ac_new_val ;;
2093 esac
2094 case " $ac_configure_args " in
2095 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2096 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2097 esac
2098 fi
2099 done
2100 if $ac_cache_corrupted; then
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2104 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2105 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2106 fi
2107 ## -------------------- ##
2108 ## Main body of script. ##
2109 ## -------------------- ##
2110
2111 ac_ext=c
2112 ac_cpp='$CPP $CPPFLAGS'
2113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2116
2117
2118
2119 ac_config_headers="$ac_config_headers config.h"
2120
2121
2122 # Initialize Automake
2123 am__api_version='1.13'
2124
2125 ac_aux_dir=
2126 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2127 if test -f "$ac_dir/install-sh"; then
2128 ac_aux_dir=$ac_dir
2129 ac_install_sh="$ac_aux_dir/install-sh -c"
2130 break
2131 elif test -f "$ac_dir/install.sh"; then
2132 ac_aux_dir=$ac_dir
2133 ac_install_sh="$ac_aux_dir/install.sh -c"
2134 break
2135 elif test -f "$ac_dir/shtool"; then
2136 ac_aux_dir=$ac_dir
2137 ac_install_sh="$ac_aux_dir/shtool install -c"
2138 break
2139 fi
2140 done
2141 if test -z "$ac_aux_dir"; then
2142 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2143 fi
2144
2145 # These three variables are undocumented and unsupported,
2146 # and are intended to be withdrawn in a future Autoconf release.
2147 # They can cause serious problems if a builder's source tree is in a directory
2148 # whose full name contains unusual characters.
2149 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2150 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2151 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2152
2153
2154 # Find a good install program. We prefer a C program (faster),
2155 # so one script is as good as another. But avoid the broken or
2156 # incompatible versions:
2157 # SysV /etc/install, /usr/sbin/install
2158 # SunOS /usr/etc/install
2159 # IRIX /sbin/install
2160 # AIX /bin/install
2161 # AmigaOS /C/install, which installs bootblocks on floppy discs
2162 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2163 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2164 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2165 # OS/2's system install, which has a completely different semantic
2166 # ./install, which can be erroneously created by make from ./install.sh.
2167 # Reject install programs that cannot install multiple files.
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2169 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2170 if test -z "$INSTALL"; then
2171 if ${ac_cv_path_install+:} false; then :
2172 $as_echo_n "(cached) " >&6
2173 else
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 for as_dir in $PATH
2176 do
2177 IFS=$as_save_IFS
2178 test -z "$as_dir" && as_dir=.
2179 # Account for people who put trailing slashes in PATH elements.
2180 case $as_dir/ in #((
2181 ./ | .// | /[cC]/* | \
2182 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2183 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2184 /usr/ucb/* ) ;;
2185 *)
2186 # OSF1 and SCO ODT 3.0 have their own names for install.
2187 # Don't use installbsd from OSF since it installs stuff as root
2188 # by default.
2189 for ac_prog in ginstall scoinst install; do
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2192 if test $ac_prog = install &&
2193 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2194 # AIX install. It has an incompatible calling convention.
2195 :
2196 elif test $ac_prog = install &&
2197 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2198 # program-specific install script used by HP pwplus--don't use.
2199 :
2200 else
2201 rm -rf conftest.one conftest.two conftest.dir
2202 echo one > conftest.one
2203 echo two > conftest.two
2204 mkdir conftest.dir
2205 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2206 test -s conftest.one && test -s conftest.two &&
2207 test -s conftest.dir/conftest.one &&
2208 test -s conftest.dir/conftest.two
2209 then
2210 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2211 break 3
2212 fi
2213 fi
2214 fi
2215 done
2216 done
2217 ;;
2218 esac
2219
2220 done
2221 IFS=$as_save_IFS
2222
2223 rm -rf conftest.one conftest.two conftest.dir
2224
2225 fi
2226 if test "${ac_cv_path_install+set}" = set; then
2227 INSTALL=$ac_cv_path_install
2228 else
2229 # As a last resort, use the slow shell script. Don't cache a
2230 # value for INSTALL within a source directory, because that will
2231 # break other packages using the cache if that directory is
2232 # removed, or if the value is a relative name.
2233 INSTALL=$ac_install_sh
2234 fi
2235 fi
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2237 $as_echo "$INSTALL" >&6; }
2238
2239 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2240 # It thinks the first close brace ends the variable substitution.
2241 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2242
2243 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2244
2245 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2246
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2248 $as_echo_n "checking whether build environment is sane... " >&6; }
2249 # Reject unsafe characters in $srcdir or the absolute working directory
2250 # name. Accept space and tab only in the latter.
2251 am_lf='
2252 '
2253 case `pwd` in
2254 *[\\\"\#\$\&\'\`$am_lf]*)
2255 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2256 esac
2257 case $srcdir in
2258 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2259 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2260 esac
2261
2262 # Do 'set' in a subshell so we don't clobber the current shell's
2263 # arguments. Must try -L first in case configure is actually a
2264 # symlink; some systems play weird games with the mod time of symlinks
2265 # (eg FreeBSD returns the mod time of the symlink's containing
2266 # directory).
2267 if (
2268 am_has_slept=no
2269 for am_try in 1 2; do
2270 echo "timestamp, slept: $am_has_slept" > conftest.file
2271 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2272 if test "$*" = "X"; then
2273 # -L didn't work.
2274 set X `ls -t "$srcdir/configure" conftest.file`
2275 fi
2276 if test "$*" != "X $srcdir/configure conftest.file" \
2277 && test "$*" != "X conftest.file $srcdir/configure"; then
2278
2279 # If neither matched, then we have a broken ls. This can happen
2280 # if, for instance, CONFIG_SHELL is bash and it inherits a
2281 # broken ls alias from the environment. This has actually
2282 # happened. Such a system could not be considered "sane".
2283 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2284 alias in your environment" "$LINENO" 5
2285 fi
2286 if test "$2" = conftest.file || test $am_try -eq 2; then
2287 break
2288 fi
2289 # Just in case.
2290 sleep 1
2291 am_has_slept=yes
2292 done
2293 test "$2" = conftest.file
2294 )
2295 then
2296 # Ok.
2297 :
2298 else
2299 as_fn_error $? "newly created file is older than distributed files!
2300 Check your system clock" "$LINENO" 5
2301 fi
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2303 $as_echo "yes" >&6; }
2304 # If we didn't sleep, we still need to ensure time stamps of config.status and
2305 # generated files are strictly newer.
2306 am_sleep_pid=
2307 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2308 ( sleep 1 ) &
2309 am_sleep_pid=$!
2310 fi
2311
2312 rm -f conftest.file
2313
2314 test "$program_prefix" != NONE &&
2315 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2316 # Use a double $ so make ignores it.
2317 test "$program_suffix" != NONE &&
2318 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2319 # Double any \ or $.
2320 # By default was `s,x,x', remove it if useless.
2321 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2322 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2323
2324 # expand $ac_aux_dir to an absolute path
2325 am_aux_dir=`cd $ac_aux_dir && pwd`
2326
2327 if test x"${MISSING+set}" != xset; then
2328 case $am_aux_dir in
2329 *\ * | *\ *)
2330 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2331 *)
2332 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2333 esac
2334 fi
2335 # Use eval to expand $SHELL
2336 if eval "$MISSING --is-lightweight"; then
2337 am_missing_run="$MISSING "
2338 else
2339 am_missing_run=
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2341 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2342 fi
2343
2344 if test x"${install_sh}" != xset; then
2345 case $am_aux_dir in
2346 *\ * | *\ *)
2347 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2348 *)
2349 install_sh="\${SHELL} $am_aux_dir/install-sh"
2350 esac
2351 fi
2352
2353 # Installed binaries are usually stripped using 'strip' when the user
2354 # run "make install-strip". However 'strip' might not be the right
2355 # tool to use in cross-compilation environments, therefore Automake
2356 # will honor the 'STRIP' environment variable to overrule this program.
2357 if test "$cross_compiling" != no; then
2358 if test -n "$ac_tool_prefix"; then
2359 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2360 set dummy ${ac_tool_prefix}strip; ac_word=$2
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2362 $as_echo_n "checking for $ac_word... " >&6; }
2363 if ${ac_cv_prog_STRIP+:} false; then :
2364 $as_echo_n "(cached) " >&6
2365 else
2366 if test -n "$STRIP"; then
2367 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2368 else
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2371 do
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 break 2
2379 fi
2380 done
2381 done
2382 IFS=$as_save_IFS
2383
2384 fi
2385 fi
2386 STRIP=$ac_cv_prog_STRIP
2387 if test -n "$STRIP"; then
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2389 $as_echo "$STRIP" >&6; }
2390 else
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2392 $as_echo "no" >&6; }
2393 fi
2394
2395
2396 fi
2397 if test -z "$ac_cv_prog_STRIP"; then
2398 ac_ct_STRIP=$STRIP
2399 # Extract the first word of "strip", so it can be a program name with args.
2400 set dummy strip; ac_word=$2
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2402 $as_echo_n "checking for $ac_word... " >&6; }
2403 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 if test -n "$ac_ct_STRIP"; then
2407 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2411 do
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416 ac_cv_prog_ac_ct_STRIP="strip"
2417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 break 2
2419 fi
2420 done
2421 done
2422 IFS=$as_save_IFS
2423
2424 fi
2425 fi
2426 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2427 if test -n "$ac_ct_STRIP"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2429 $as_echo "$ac_ct_STRIP" >&6; }
2430 else
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2432 $as_echo "no" >&6; }
2433 fi
2434
2435 if test "x$ac_ct_STRIP" = x; then
2436 STRIP=":"
2437 else
2438 case $cross_compiling:$ac_tool_warned in
2439 yes:)
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2442 ac_tool_warned=yes ;;
2443 esac
2444 STRIP=$ac_ct_STRIP
2445 fi
2446 else
2447 STRIP="$ac_cv_prog_STRIP"
2448 fi
2449
2450 fi
2451 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2452
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2454 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2455 if test -z "$MKDIR_P"; then
2456 if ${ac_cv_path_mkdir+:} false; then :
2457 $as_echo_n "(cached) " >&6
2458 else
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2461 do
2462 IFS=$as_save_IFS
2463 test -z "$as_dir" && as_dir=.
2464 for ac_prog in mkdir gmkdir; do
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2467 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2468 'mkdir (GNU coreutils) '* | \
2469 'mkdir (coreutils) '* | \
2470 'mkdir (fileutils) '4.1*)
2471 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2472 break 3;;
2473 esac
2474 done
2475 done
2476 done
2477 IFS=$as_save_IFS
2478
2479 fi
2480
2481 test -d ./--version && rmdir ./--version
2482 if test "${ac_cv_path_mkdir+set}" = set; then
2483 MKDIR_P="$ac_cv_path_mkdir -p"
2484 else
2485 # As a last resort, use the slow shell script. Don't cache a
2486 # value for MKDIR_P within a source directory, because that will
2487 # break other packages using the cache if that directory is
2488 # removed, or if the value is a relative name.
2489 MKDIR_P="$ac_install_sh -d"
2490 fi
2491 fi
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2493 $as_echo "$MKDIR_P" >&6; }
2494
2495 for ac_prog in gawk mawk nawk awk
2496 do
2497 # Extract the first word of "$ac_prog", so it can be a program name with args.
2498 set dummy $ac_prog; ac_word=$2
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2500 $as_echo_n "checking for $ac_word... " >&6; }
2501 if ${ac_cv_prog_AWK+:} false; then :
2502 $as_echo_n "(cached) " >&6
2503 else
2504 if test -n "$AWK"; then
2505 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2509 do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2514 ac_cv_prog_AWK="$ac_prog"
2515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 break 2
2517 fi
2518 done
2519 done
2520 IFS=$as_save_IFS
2521
2522 fi
2523 fi
2524 AWK=$ac_cv_prog_AWK
2525 if test -n "$AWK"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2527 $as_echo "$AWK" >&6; }
2528 else
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2530 $as_echo "no" >&6; }
2531 fi
2532
2533
2534 test -n "$AWK" && break
2535 done
2536
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2538 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2539 set x ${MAKE-make}
2540 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2541 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2542 $as_echo_n "(cached) " >&6
2543 else
2544 cat >conftest.make <<\_ACEOF
2545 SHELL = /bin/sh
2546 all:
2547 @echo '@@@%%%=$(MAKE)=@@@%%%'
2548 _ACEOF
2549 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2550 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2551 *@@@%%%=?*=@@@%%%*)
2552 eval ac_cv_prog_make_${ac_make}_set=yes;;
2553 *)
2554 eval ac_cv_prog_make_${ac_make}_set=no;;
2555 esac
2556 rm -f conftest.make
2557 fi
2558 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2560 $as_echo "yes" >&6; }
2561 SET_MAKE=
2562 else
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564 $as_echo "no" >&6; }
2565 SET_MAKE="MAKE=${MAKE-make}"
2566 fi
2567
2568 rm -rf .tst 2>/dev/null
2569 mkdir .tst 2>/dev/null
2570 if test -d .tst; then
2571 am__leading_dot=.
2572 else
2573 am__leading_dot=_
2574 fi
2575 rmdir .tst 2>/dev/null
2576
2577 # Check whether --enable-silent-rules was given.
2578 if test "${enable_silent_rules+set}" = set; then :
2579 enableval=$enable_silent_rules;
2580 fi
2581
2582 case $enable_silent_rules in # (((
2583 yes) AM_DEFAULT_VERBOSITY=0;;
2584 no) AM_DEFAULT_VERBOSITY=1;;
2585 *) AM_DEFAULT_VERBOSITY=1;;
2586 esac
2587 am_make=${MAKE-make}
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2589 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2590 if ${am_cv_make_support_nested_variables+:} false; then :
2591 $as_echo_n "(cached) " >&6
2592 else
2593 if $as_echo 'TRUE=$(BAR$(V))
2594 BAR0=false
2595 BAR1=true
2596 V=1
2597 am__doit:
2598 @$(TRUE)
2599 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2600 am_cv_make_support_nested_variables=yes
2601 else
2602 am_cv_make_support_nested_variables=no
2603 fi
2604 fi
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2606 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2607 if test $am_cv_make_support_nested_variables = yes; then
2608 AM_V='$(V)'
2609 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2610 else
2611 AM_V=$AM_DEFAULT_VERBOSITY
2612 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2613 fi
2614 AM_BACKSLASH='\'
2615
2616 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2617 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2618 # is not polluted with repeated "-I."
2619 am__isrc=' -I$(srcdir)'
2620 # test to see if srcdir already configured
2621 if test -f $srcdir/config.status; then
2622 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2623 fi
2624 fi
2625
2626 # test whether we have cygpath
2627 if test -z "$CYGPATH_W"; then
2628 if (cygpath --version) >/dev/null 2>/dev/null; then
2629 CYGPATH_W='cygpath -w'
2630 else
2631 CYGPATH_W=echo
2632 fi
2633 fi
2634
2635
2636 # Define the identity of the package.
2637 PACKAGE='xinput'
2638 VERSION='1.6.1'
2639
2640
2641 cat >>confdefs.h <<_ACEOF
2642 #define PACKAGE "$PACKAGE"
2643 _ACEOF
2644
2645
2646 cat >>confdefs.h <<_ACEOF
2647 #define VERSION "$VERSION"
2648 _ACEOF
2649
2650 # Some tools Automake needs.
2651
2652 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2653
2654
2655 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2656
2657
2658 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2659
2660
2661 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2662
2663
2664 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2665
2666 # For better backward compatibility. To be removed once Automake 1.9.x
2667 # dies out for good. For more background, see:
2668 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2669 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2670 mkdir_p='$(MKDIR_P)'
2671
2672 # We need awk for the "check" target. The system "awk" is bad on
2673 # some platforms.
2674 # Always define AMTAR for backward compatibility. Yes, it's still used
2675 # in the wild :-( We should find a proper way to deprecate it ...
2676 AMTAR='$${TAR-tar}'
2677
2678
2679 # We'll loop over all known methods to create a tar archive until one works.
2680 _am_tools='gnutar pax cpio none'
2681
2682 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2683
2684
2685
2686
2687
2688
2689
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2691 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2692 # Check whether --enable-maintainer-mode was given.
2693 if test "${enable_maintainer_mode+set}" = set; then :
2694 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2695 else
2696 USE_MAINTAINER_MODE=no
2697 fi
2698
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2700 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2701 if test $USE_MAINTAINER_MODE = yes; then
2702 MAINTAINER_MODE_TRUE=
2703 MAINTAINER_MODE_FALSE='#'
2704 else
2705 MAINTAINER_MODE_TRUE='#'
2706 MAINTAINER_MODE_FALSE=
2707 fi
2708
2709 MAINT=$MAINTAINER_MODE_TRUE
2710
2711
2712
2713 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725 DEPDIR="${am__leading_dot}deps"
2726
2727 ac_config_commands="$ac_config_commands depfiles"
2728
2729
2730 am_make=${MAKE-make}
2731 cat > confinc << 'END'
2732 am__doit:
2733 @echo this is the am__doit target
2734 .PHONY: am__doit
2735 END
2736 # If we don't find an include directive, just comment out the code.
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2738 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2739 am__include="#"
2740 am__quote=
2741 _am_result=none
2742 # First try GNU make style include.
2743 echo "include confinc" > confmf
2744 # Ignore all kinds of additional output from 'make'.
2745 case `$am_make -s -f confmf 2> /dev/null` in #(
2746 *the\ am__doit\ target*)
2747 am__include=include
2748 am__quote=
2749 _am_result=GNU
2750 ;;
2751 esac
2752 # Now try BSD make style include.
2753 if test "$am__include" = "#"; then
2754 echo '.include "confinc"' > confmf
2755 case `$am_make -s -f confmf 2> /dev/null` in #(
2756 *the\ am__doit\ target*)
2757 am__include=.include
2758 am__quote="\""
2759 _am_result=BSD
2760 ;;
2761 esac
2762 fi
2763
2764
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2766 $as_echo "$_am_result" >&6; }
2767 rm -f confinc confmf
2768
2769 # Check whether --enable-dependency-tracking was given.
2770 if test "${enable_dependency_tracking+set}" = set; then :
2771 enableval=$enable_dependency_tracking;
2772 fi
2773
2774 if test "x$enable_dependency_tracking" != xno; then
2775 am_depcomp="$ac_aux_dir/depcomp"
2776 AMDEPBACKSLASH='\'
2777 am__nodep='_no'
2778 fi
2779 if test "x$enable_dependency_tracking" != xno; then
2780 AMDEP_TRUE=
2781 AMDEP_FALSE='#'
2782 else
2783 AMDEP_TRUE='#'
2784 AMDEP_FALSE=
2785 fi
2786
2787
2788 ac_ext=c
2789 ac_cpp='$CPP $CPPFLAGS'
2790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2793 if test -n "$ac_tool_prefix"; then
2794 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2795 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797 $as_echo_n "checking for $ac_word... " >&6; }
2798 if ${ac_cv_prog_CC+:} false; then :
2799 $as_echo_n "(cached) " >&6
2800 else
2801 if test -n "$CC"; then
2802 ac_cv_prog_CC="$CC" # Let the user override the test.
2803 else
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 for as_dir in $PATH
2806 do
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 break 2
2814 fi
2815 done
2816 done
2817 IFS=$as_save_IFS
2818
2819 fi
2820 fi
2821 CC=$ac_cv_prog_CC
2822 if test -n "$CC"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2824 $as_echo "$CC" >&6; }
2825 else
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2828 fi
2829
2830
2831 fi
2832 if test -z "$ac_cv_prog_CC"; then
2833 ac_ct_CC=$CC
2834 # Extract the first word of "gcc", so it can be a program name with args.
2835 set dummy gcc; ac_word=$2
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837 $as_echo_n "checking for $ac_word... " >&6; }
2838 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2839 $as_echo_n "(cached) " >&6
2840 else
2841 if test -n "$ac_ct_CC"; then
2842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2843 else
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2846 do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2851 ac_cv_prog_ac_ct_CC="gcc"
2852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 break 2
2854 fi
2855 done
2856 done
2857 IFS=$as_save_IFS
2858
2859 fi
2860 fi
2861 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2862 if test -n "$ac_ct_CC"; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2864 $as_echo "$ac_ct_CC" >&6; }
2865 else
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 $as_echo "no" >&6; }
2868 fi
2869
2870 if test "x$ac_ct_CC" = x; then
2871 CC=""
2872 else
2873 case $cross_compiling:$ac_tool_warned in
2874 yes:)
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2877 ac_tool_warned=yes ;;
2878 esac
2879 CC=$ac_ct_CC
2880 fi
2881 else
2882 CC="$ac_cv_prog_CC"
2883 fi
2884
2885 if test -z "$CC"; then
2886 if test -n "$ac_tool_prefix"; then
2887 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2888 set dummy ${ac_tool_prefix}cc; ac_word=$2
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 $as_echo_n "checking for $ac_word... " >&6; }
2891 if ${ac_cv_prog_CC+:} false; then :
2892 $as_echo_n "(cached) " >&6
2893 else
2894 if test -n "$CC"; then
2895 ac_cv_prog_CC="$CC" # Let the user override the test.
2896 else
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2899 do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904 ac_cv_prog_CC="${ac_tool_prefix}cc"
2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2907 fi
2908 done
2909 done
2910 IFS=$as_save_IFS
2911
2912 fi
2913 fi
2914 CC=$ac_cv_prog_CC
2915 if test -n "$CC"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2917 $as_echo "$CC" >&6; }
2918 else
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2921 fi
2922
2923
2924 fi
2925 fi
2926 if test -z "$CC"; then
2927 # Extract the first word of "cc", so it can be a program name with args.
2928 set dummy cc; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if ${ac_cv_prog_CC+:} false; then :
2932 $as_echo_n "(cached) " >&6
2933 else
2934 if test -n "$CC"; then
2935 ac_cv_prog_CC="$CC" # Let the user override the test.
2936 else
2937 ac_prog_rejected=no
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2946 ac_prog_rejected=yes
2947 continue
2948 fi
2949 ac_cv_prog_CC="cc"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
2952 fi
2953 done
2954 done
2955 IFS=$as_save_IFS
2956
2957 if test $ac_prog_rejected = yes; then
2958 # We found a bogon in the path, so make sure we never use it.
2959 set dummy $ac_cv_prog_CC
2960 shift
2961 if test $# != 0; then
2962 # We chose a different compiler from the bogus one.
2963 # However, it has the same basename, so the bogon will be chosen
2964 # first if we set CC to just the basename; use the full file name.
2965 shift
2966 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2967 fi
2968 fi
2969 fi
2970 fi
2971 CC=$ac_cv_prog_CC
2972 if test -n "$CC"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2974 $as_echo "$CC" >&6; }
2975 else
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2978 fi
2979
2980
2981 fi
2982 if test -z "$CC"; then
2983 if test -n "$ac_tool_prefix"; then
2984 for ac_prog in cl.exe
2985 do
2986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if ${ac_cv_prog_CC+:} false; then :
2991 $as_echo_n "(cached) " >&6
2992 else
2993 if test -n "$CC"; then
2994 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3006 fi
3007 done
3008 done
3009 IFS=$as_save_IFS
3010
3011 fi
3012 fi
3013 CC=$ac_cv_prog_CC
3014 if test -n "$CC"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3016 $as_echo "$CC" >&6; }
3017 else
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 fi
3021
3022
3023 test -n "$CC" && break
3024 done
3025 fi
3026 if test -z "$CC"; then
3027 ac_ct_CC=$CC
3028 for ac_prog in cl.exe
3029 do
3030 # Extract the first word of "$ac_prog", so it can be a program name with args.
3031 set dummy $ac_prog; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3035 $as_echo_n "(cached) " >&6
3036 else
3037 if test -n "$ac_ct_CC"; then
3038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3042 do
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_ac_ct_CC="$ac_prog"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3050 fi
3051 done
3052 done
3053 IFS=$as_save_IFS
3054
3055 fi
3056 fi
3057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3058 if test -n "$ac_ct_CC"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3060 $as_echo "$ac_ct_CC" >&6; }
3061 else
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3064 fi
3065
3066
3067 test -n "$ac_ct_CC" && break
3068 done
3069
3070 if test "x$ac_ct_CC" = x; then
3071 CC=""
3072 else
3073 case $cross_compiling:$ac_tool_warned in
3074 yes:)
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3077 ac_tool_warned=yes ;;
3078 esac
3079 CC=$ac_ct_CC
3080 fi
3081 fi
3082
3083 fi
3084
3085
3086 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3088 as_fn_error $? "no acceptable C compiler found in \$PATH
3089 See \`config.log' for more details" "$LINENO" 5; }
3090
3091 # Provide some information about the compiler.
3092 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3093 set X $ac_compile
3094 ac_compiler=$2
3095 for ac_option in --version -v -V -qversion; do
3096 { { ac_try="$ac_compiler $ac_option >&5"
3097 case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100 esac
3101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102 $as_echo "$ac_try_echo"; } >&5
3103 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3104 ac_status=$?
3105 if test -s conftest.err; then
3106 sed '10a\
3107 ... rest of stderr output deleted ...
3108 10q' conftest.err >conftest.er1
3109 cat conftest.er1 >&5
3110 fi
3111 rm -f conftest.er1 conftest.err
3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113 test $ac_status = 0; }
3114 done
3115
3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117 /* end confdefs.h. */
3118
3119 int
3120 main ()
3121 {
3122
3123 ;
3124 return 0;
3125 }
3126 _ACEOF
3127 ac_clean_files_save=$ac_clean_files
3128 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3129 # Try to create an executable without -o first, disregard a.out.
3130 # It will help us diagnose broken compilers, and finding out an intuition
3131 # of exeext.
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3133 $as_echo_n "checking whether the C compiler works... " >&6; }
3134 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3135
3136 # The possible output files:
3137 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3138
3139 ac_rmfiles=
3140 for ac_file in $ac_files
3141 do
3142 case $ac_file in
3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3144 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3145 esac
3146 done
3147 rm -f $ac_rmfiles
3148
3149 if { { ac_try="$ac_link_default"
3150 case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153 esac
3154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3155 $as_echo "$ac_try_echo"; } >&5
3156 (eval "$ac_link_default") 2>&5
3157 ac_status=$?
3158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3159 test $ac_status = 0; }; then :
3160 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3161 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3162 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3163 # so that the user can short-circuit this test for compilers unknown to
3164 # Autoconf.
3165 for ac_file in $ac_files ''
3166 do
3167 test -f "$ac_file" || continue
3168 case $ac_file in
3169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3170 ;;
3171 [ab].out )
3172 # We found the default executable, but exeext='' is most
3173 # certainly right.
3174 break;;
3175 *.* )
3176 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3177 then :; else
3178 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3179 fi
3180 # We set ac_cv_exeext here because the later test for it is not
3181 # safe: cross compilers may not add the suffix if given an `-o'
3182 # argument, so we may need to know it at that point already.
3183 # Even if this section looks crufty: it has the advantage of
3184 # actually working.
3185 break;;
3186 * )
3187 break;;
3188 esac
3189 done
3190 test "$ac_cv_exeext" = no && ac_cv_exeext=
3191
3192 else
3193 ac_file=''
3194 fi
3195 if test -z "$ac_file"; then :
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 $as_echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3200
3201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 as_fn_error 77 "C compiler cannot create executables
3204 See \`config.log' for more details" "$LINENO" 5; }
3205 else
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3207 $as_echo "yes" >&6; }
3208 fi
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3210 $as_echo_n "checking for C compiler default output file name... " >&6; }
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3212 $as_echo "$ac_file" >&6; }
3213 ac_exeext=$ac_cv_exeext
3214
3215 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3216 ac_clean_files=$ac_clean_files_save
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3218 $as_echo_n "checking for suffix of executables... " >&6; }
3219 if { { ac_try="$ac_link"
3220 case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223 esac
3224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3225 $as_echo "$ac_try_echo"; } >&5
3226 (eval "$ac_link") 2>&5
3227 ac_status=$?
3228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3229 test $ac_status = 0; }; then :
3230 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3231 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3232 # work properly (i.e., refer to `conftest.exe'), while it won't with
3233 # `rm'.
3234 for ac_file in conftest.exe conftest conftest.*; do
3235 test -f "$ac_file" || continue
3236 case $ac_file in
3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3238 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3239 break;;
3240 * ) break;;
3241 esac
3242 done
3243 else
3244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3247 See \`config.log' for more details" "$LINENO" 5; }
3248 fi
3249 rm -f conftest conftest$ac_cv_exeext
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3251 $as_echo "$ac_cv_exeext" >&6; }
3252
3253 rm -f conftest.$ac_ext
3254 EXEEXT=$ac_cv_exeext
3255 ac_exeext=$EXEEXT
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257 /* end confdefs.h. */
3258 #include <stdio.h>
3259 int
3260 main ()
3261 {
3262 FILE *f = fopen ("conftest.out", "w");
3263 return ferror (f) || fclose (f) != 0;
3264
3265 ;
3266 return 0;
3267 }
3268 _ACEOF
3269 ac_clean_files="$ac_clean_files conftest.out"
3270 # Check that the compiler produces executables we can run. If not, either
3271 # the compiler is broken, or we cross compile.
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3273 $as_echo_n "checking whether we are cross compiling... " >&6; }
3274 if test "$cross_compiling" != yes; then
3275 { { ac_try="$ac_link"
3276 case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282 (eval "$ac_link") 2>&5
3283 ac_status=$?
3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285 test $ac_status = 0; }
3286 if { ac_try='./conftest$ac_cv_exeext'
3287 { { case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290 esac
3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292 $as_echo "$ac_try_echo"; } >&5
3293 (eval "$ac_try") 2>&5
3294 ac_status=$?
3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296 test $ac_status = 0; }; }; then
3297 cross_compiling=no
3298 else
3299 if test "$cross_compiling" = maybe; then
3300 cross_compiling=yes
3301 else
3302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304 as_fn_error $? "cannot run C compiled programs.
3305 If you meant to cross compile, use \`--host'.
3306 See \`config.log' for more details" "$LINENO" 5; }
3307 fi
3308 fi
3309 fi
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3311 $as_echo "$cross_compiling" >&6; }
3312
3313 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3314 ac_clean_files=$ac_clean_files_save
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3316 $as_echo_n "checking for suffix of object files... " >&6; }
3317 if ${ac_cv_objext+:} false; then :
3318 $as_echo_n "(cached) " >&6
3319 else
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321 /* end confdefs.h. */
3322
3323 int
3324 main ()
3325 {
3326
3327 ;
3328 return 0;
3329 }
3330 _ACEOF
3331 rm -f conftest.o conftest.obj
3332 if { { ac_try="$ac_compile"
3333 case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336 esac
3337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338 $as_echo "$ac_try_echo"; } >&5
3339 (eval "$ac_compile") 2>&5
3340 ac_status=$?
3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3342 test $ac_status = 0; }; then :
3343 for ac_file in conftest.o conftest.obj 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 ) ;;
3347 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3348 break;;
3349 esac
3350 done
3351 else
3352 $as_echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3354
3355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357 as_fn_error $? "cannot compute suffix of object files: cannot compile
3358 See \`config.log' for more details" "$LINENO" 5; }
3359 fi
3360 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3361 fi
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3363 $as_echo "$ac_cv_objext" >&6; }
3364 OBJEXT=$ac_cv_objext
3365 ac_objext=$OBJEXT
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3367 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3368 if ${ac_cv_c_compiler_gnu+:} false; then :
3369 $as_echo_n "(cached) " >&6
3370 else
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3373
3374 int
3375 main ()
3376 {
3377 #ifndef __GNUC__
3378 choke me
3379 #endif
3380
3381 ;
3382 return 0;
3383 }
3384 _ACEOF
3385 if ac_fn_c_try_compile "$LINENO"; then :
3386 ac_compiler_gnu=yes
3387 else
3388 ac_compiler_gnu=no
3389 fi
3390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3392
3393 fi
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3395 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3396 if test $ac_compiler_gnu = yes; then
3397 GCC=yes
3398 else
3399 GCC=
3400 fi
3401 ac_test_CFLAGS=${CFLAGS+set}
3402 ac_save_CFLAGS=$CFLAGS
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3404 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3405 if ${ac_cv_prog_cc_g+:} false; then :
3406 $as_echo_n "(cached) " >&6
3407 else
3408 ac_save_c_werror_flag=$ac_c_werror_flag
3409 ac_c_werror_flag=yes
3410 ac_cv_prog_cc_g=no
3411 CFLAGS="-g"
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3414
3415 int
3416 main ()
3417 {
3418
3419 ;
3420 return 0;
3421 }
3422 _ACEOF
3423 if ac_fn_c_try_compile "$LINENO"; then :
3424 ac_cv_prog_cc_g=yes
3425 else
3426 CFLAGS=""
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3429
3430 int
3431 main ()
3432 {
3433
3434 ;
3435 return 0;
3436 }
3437 _ACEOF
3438 if ac_fn_c_try_compile "$LINENO"; then :
3439
3440 else
3441 ac_c_werror_flag=$ac_save_c_werror_flag
3442 CFLAGS="-g"
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h. */
3445
3446 int
3447 main ()
3448 {
3449
3450 ;
3451 return 0;
3452 }
3453 _ACEOF
3454 if ac_fn_c_try_compile "$LINENO"; then :
3455 ac_cv_prog_cc_g=yes
3456 fi
3457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3458 fi
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460 fi
3461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3462 ac_c_werror_flag=$ac_save_c_werror_flag
3463 fi
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3465 $as_echo "$ac_cv_prog_cc_g" >&6; }
3466 if test "$ac_test_CFLAGS" = set; then
3467 CFLAGS=$ac_save_CFLAGS
3468 elif test $ac_cv_prog_cc_g = yes; then
3469 if test "$GCC" = yes; then
3470 CFLAGS="-g -O2"
3471 else
3472 CFLAGS="-g"
3473 fi
3474 else
3475 if test "$GCC" = yes; then
3476 CFLAGS="-O2"
3477 else
3478 CFLAGS=
3479 fi
3480 fi
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3482 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3483 if ${ac_cv_prog_cc_c89+:} false; then :
3484 $as_echo_n "(cached) " >&6
3485 else
3486 ac_cv_prog_cc_c89=no
3487 ac_save_CC=$CC
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3490 #include <stdarg.h>
3491 #include <stdio.h>
3492 struct stat;
3493 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3494 struct buf { int x; };
3495 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3496 static char *e (p, i)
3497 char **p;
3498 int i;
3499 {
3500 return p[i];
3501 }
3502 static char *f (char * (*g) (char **, int), char **p, ...)
3503 {
3504 char *s;
3505 va_list v;
3506 va_start (v,p);
3507 s = g (p, va_arg (v,int));
3508 va_end (v);
3509 return s;
3510 }
3511
3512 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3513 function prototypes and stuff, but not '\xHH' hex character constants.
3514 These don't provoke an error unfortunately, instead are silently treated
3515 as 'x'. The following induces an error, until -std is added to get
3516 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3517 array size at least. It's necessary to write '\x00'==0 to get something
3518 that's true only with -std. */
3519 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3520
3521 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3522 inside strings and character constants. */
3523 #define FOO(x) 'x'
3524 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3525
3526 int test (int i, double x);
3527 struct s1 {int (*f) (int a);};
3528 struct s2 {int (*f) (double a);};
3529 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3530 int argc;
3531 char **argv;
3532 int
3533 main ()
3534 {
3535 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3536 ;
3537 return 0;
3538 }
3539 _ACEOF
3540 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3541 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3542 do
3543 CC="$ac_save_CC $ac_arg"
3544 if ac_fn_c_try_compile "$LINENO"; then :
3545 ac_cv_prog_cc_c89=$ac_arg
3546 fi
3547 rm -f core conftest.err conftest.$ac_objext
3548 test "x$ac_cv_prog_cc_c89" != "xno" && break
3549 done
3550 rm -f conftest.$ac_ext
3551 CC=$ac_save_CC
3552
3553 fi
3554 # AC_CACHE_VAL
3555 case "x$ac_cv_prog_cc_c89" in
3556 x)
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3558 $as_echo "none needed" >&6; } ;;
3559 xno)
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3561 $as_echo "unsupported" >&6; } ;;
3562 *)
3563 CC="$CC $ac_cv_prog_cc_c89"
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3565 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3566 esac
3567 if test "x$ac_cv_prog_cc_c89" != xno; then :
3568
3569 fi
3570
3571 ac_ext=c
3572 ac_cpp='$CPP $CPPFLAGS'
3573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576
3577 depcc="$CC" am_compiler_list=
3578
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3580 $as_echo_n "checking dependency style of $depcc... " >&6; }
3581 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3582 $as_echo_n "(cached) " >&6
3583 else
3584 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3585 # We make a subdir and do the tests there. Otherwise we can end up
3586 # making bogus files that we don't know about and never remove. For
3587 # instance it was reported that on HP-UX the gcc test will end up
3588 # making a dummy file named 'D' -- because '-MD' means "put the output
3589 # in D".
3590 rm -rf conftest.dir
3591 mkdir conftest.dir
3592 # Copy depcomp to subdir because otherwise we won't find it if we're
3593 # using a relative directory.
3594 cp "$am_depcomp" conftest.dir
3595 cd conftest.dir
3596 # We will build objects and dependencies in a subdirectory because
3597 # it helps to detect inapplicable dependency modes. For instance
3598 # both Tru64's cc and ICC support -MD to output dependencies as a
3599 # side effect of compilation, but ICC will put the dependencies in
3600 # the current directory while Tru64 will put them in the object
3601 # directory.
3602 mkdir sub
3603
3604 am_cv_CC_dependencies_compiler_type=none
3605 if test "$am_compiler_list" = ""; then
3606 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3607 fi
3608 am__universal=false
3609 case " $depcc " in #(
3610 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3611 esac
3612
3613 for depmode in $am_compiler_list; do
3614 # Setup a source with many dependencies, because some compilers
3615 # like to wrap large dependency lists on column 80 (with \), and
3616 # we should not choose a depcomp mode which is confused by this.
3617 #
3618 # We need to recreate these files for each test, as the compiler may
3619 # overwrite some of them when testing with obscure command lines.
3620 # This happens at least with the AIX C compiler.
3621 : > sub/conftest.c
3622 for i in 1 2 3 4 5 6; do
3623 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3624 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3625 # Solaris 10 /bin/sh.
3626 echo '/* dummy */' > sub/conftst$i.h
3627 done
3628 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3629
3630 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3631 # mode. It turns out that the SunPro C++ compiler does not properly
3632 # handle '-M -o', and we need to detect this. Also, some Intel
3633 # versions had trouble with output in subdirs.
3634 am__obj=sub/conftest.${OBJEXT-o}
3635 am__minus_obj="-o $am__obj"
3636 case $depmode in
3637 gcc)
3638 # This depmode causes a compiler race in universal mode.
3639 test "$am__universal" = false || continue
3640 ;;
3641 nosideeffect)
3642 # After this tag, mechanisms are not by side-effect, so they'll
3643 # only be used when explicitly requested.
3644 if test "x$enable_dependency_tracking" = xyes; then
3645 continue
3646 else
3647 break
3648 fi
3649 ;;
3650 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3651 # This compiler won't grok '-c -o', but also, the minuso test has
3652 # not run yet. These depmodes are late enough in the game, and
3653 # so weak that their functioning should not be impacted.
3654 am__obj=conftest.${OBJEXT-o}
3655 am__minus_obj=
3656 ;;
3657 none) break ;;
3658 esac
3659 if depmode=$depmode \
3660 source=sub/conftest.c object=$am__obj \
3661 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3662 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3663 >/dev/null 2>conftest.err &&
3664 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3665 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3666 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3667 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3668 # icc doesn't choke on unknown options, it will just issue warnings
3669 # or remarks (even with -Werror). So we grep stderr for any message
3670 # that says an option was ignored or not supported.
3671 # When given -MP, icc 7.0 and 7.1 complain thusly:
3672 # icc: Command line warning: ignoring option '-M'; no argument required
3673 # The diagnosis changed in icc 8.0:
3674 # icc: Command line remark: option '-MP' not supported
3675 if (grep 'ignoring option' conftest.err ||
3676 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3677 am_cv_CC_dependencies_compiler_type=$depmode
3678 break
3679 fi
3680 fi
3681 done
3682
3683 cd ..
3684 rm -rf conftest.dir
3685 else
3686 am_cv_CC_dependencies_compiler_type=none
3687 fi
3688
3689 fi
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3691 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3692 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3693
3694 if
3695 test "x$enable_dependency_tracking" != xno \
3696 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3697 am__fastdepCC_TRUE=
3698 am__fastdepCC_FALSE='#'
3699 else
3700 am__fastdepCC_TRUE='#'
3701 am__fastdepCC_FALSE=
3702 fi
3703
3704
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3706 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3707 if ${ac_cv_prog_cc_c99+:} false; then :
3708 $as_echo_n "(cached) " >&6
3709 else
3710 ac_cv_prog_cc_c99=no
3711 ac_save_CC=$CC
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3714 #include <stdarg.h>
3715 #include <stdbool.h>
3716 #include <stdlib.h>
3717 #include <wchar.h>
3718 #include <stdio.h>
3719
3720 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3721 #define debug(...) fprintf (stderr, __VA_ARGS__)
3722 #define showlist(...) puts (#__VA_ARGS__)
3723 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3724 static void
3725 test_varargs_macros (void)
3726 {
3727 int x = 1234;
3728 int y = 5678;
3729 debug ("Flag");
3730 debug ("X = %d\n", x);
3731 showlist (The first, second, and third items.);
3732 report (x>y, "x is %d but y is %d", x, y);
3733 }
3734
3735 // Check long long types.
3736 #define BIG64 18446744073709551615ull
3737 #define BIG32 4294967295ul
3738 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3739 #if !BIG_OK
3740 your preprocessor is broken;
3741 #endif
3742 #if BIG_OK
3743 #else
3744 your preprocessor is broken;
3745 #endif
3746 static long long int bignum = -9223372036854775807LL;
3747 static unsigned long long int ubignum = BIG64;
3748
3749 struct incomplete_array
3750 {
3751 int datasize;
3752 double data[];
3753 };
3754
3755 struct named_init {
3756 int number;
3757 const wchar_t *name;
3758 double average;
3759 };
3760
3761 typedef const char *ccp;
3762
3763 static inline int
3764 test_restrict (ccp restrict text)
3765 {
3766 // See if C++-style comments work.
3767 // Iterate through items via the restricted pointer.
3768 // Also check for declarations in for loops.
3769 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3770 continue;
3771 return 0;
3772 }
3773
3774 // Check varargs and va_copy.
3775 static void
3776 test_varargs (const char *format, ...)
3777 {
3778 va_list args;
3779 va_start (args, format);
3780 va_list args_copy;
3781 va_copy (args_copy, args);
3782
3783 const char *str;
3784 int number;
3785 float fnumber;
3786
3787 while (*format)
3788 {
3789 switch (*format++)
3790 {
3791 case 's': // string
3792 str = va_arg (args_copy, const char *);
3793 break;
3794 case 'd': // int
3795 number = va_arg (args_copy, int);
3796 break;
3797 case 'f': // float
3798 fnumber = va_arg (args_copy, double);
3799 break;
3800 default:
3801 break;
3802 }
3803 }
3804 va_end (args_copy);
3805 va_end (args);
3806 }
3807
3808 int
3809 main ()
3810 {
3811
3812 // Check bool.
3813 _Bool success = false;
3814
3815 // Check restrict.
3816 if (test_restrict ("String literal") == 0)
3817 success = true;
3818 char *restrict newvar = "Another string";
3819
3820 // Check varargs.
3821 test_varargs ("s, d' f .", "string", 65, 34.234);
3822 test_varargs_macros ();
3823
3824 // Check flexible array members.
3825 struct incomplete_array *ia =
3826 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3827 ia->datasize = 10;
3828 for (int i = 0; i < ia->datasize; ++i)
3829 ia->data[i] = i * 1.234;
3830
3831 // Check named initializers.
3832 struct named_init ni = {
3833 .number = 34,
3834 .name = L"Test wide string",
3835 .average = 543.34343,
3836 };
3837
3838 ni.number = 58;
3839
3840 int dynamic_array[ni.number];
3841 dynamic_array[ni.number - 1] = 543;
3842
3843 // work around unused variable warnings
3844 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3845 || dynamic_array[ni.number - 1] != 543);
3846
3847 ;
3848 return 0;
3849 }
3850 _ACEOF
3851 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3852 do
3853 CC="$ac_save_CC $ac_arg"
3854 if ac_fn_c_try_compile "$LINENO"; then :
3855 ac_cv_prog_cc_c99=$ac_arg
3856 fi
3857 rm -f core conftest.err conftest.$ac_objext
3858 test "x$ac_cv_prog_cc_c99" != "xno" && break
3859 done
3860 rm -f conftest.$ac_ext
3861 CC=$ac_save_CC
3862
3863 fi
3864 # AC_CACHE_VAL
3865 case "x$ac_cv_prog_cc_c99" in
3866 x)
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3868 $as_echo "none needed" >&6; } ;;
3869 xno)
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3871 $as_echo "unsupported" >&6; } ;;
3872 *)
3873 CC="$CC $ac_cv_prog_cc_c99"
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3875 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3876 esac
3877 if test "x$ac_cv_prog_cc_c99" != xno; then :
3878
3879 fi
3880
3881
3882
3883 ac_ext=c
3884 ac_cpp='$CPP $CPPFLAGS'
3885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3889 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3890 # On Suns, sometimes $CPP names a directory.
3891 if test -n "$CPP" && test -d "$CPP"; then
3892 CPP=
3893 fi
3894 if test -z "$CPP"; then
3895 if ${ac_cv_prog_CPP+:} false; then :
3896 $as_echo_n "(cached) " >&6
3897 else
3898 # Double quotes because CPP needs to be expanded
3899 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3900 do
3901 ac_preproc_ok=false
3902 for ac_c_preproc_warn_flag in '' yes
3903 do
3904 # Use a header file that comes with gcc, so configuring glibc
3905 # with a fresh cross-compiler works.
3906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3907 # <limits.h> exists even on freestanding compilers.
3908 # On the NeXT, cc -E runs the code through the compiler's parser,
3909 # not just through cpp. "Syntax error" is here to catch this case.
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3912 #ifdef __STDC__
3913 # include <limits.h>
3914 #else
3915 # include <assert.h>
3916 #endif
3917 Syntax error
3918 _ACEOF
3919 if ac_fn_c_try_cpp "$LINENO"; then :
3920
3921 else
3922 # Broken: fails on valid input.
3923 continue
3924 fi
3925 rm -f conftest.err conftest.i conftest.$ac_ext
3926
3927 # OK, works on sane cases. Now check whether nonexistent headers
3928 # can be detected and how.
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3931 #include <ac_nonexistent.h>
3932 _ACEOF
3933 if ac_fn_c_try_cpp "$LINENO"; then :
3934 # Broken: success on invalid input.
3935 continue
3936 else
3937 # Passes both tests.
3938 ac_preproc_ok=:
3939 break
3940 fi
3941 rm -f conftest.err conftest.i conftest.$ac_ext
3942
3943 done
3944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3945 rm -f conftest.i conftest.err conftest.$ac_ext
3946 if $ac_preproc_ok; then :
3947 break
3948 fi
3949
3950 done
3951 ac_cv_prog_CPP=$CPP
3952
3953 fi
3954 CPP=$ac_cv_prog_CPP
3955 else
3956 ac_cv_prog_CPP=$CPP
3957 fi
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3959 $as_echo "$CPP" >&6; }
3960 ac_preproc_ok=false
3961 for ac_c_preproc_warn_flag in '' yes
3962 do
3963 # Use a header file that comes with gcc, so configuring glibc
3964 # with a fresh cross-compiler works.
3965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3966 # <limits.h> exists even on freestanding compilers.
3967 # On the NeXT, cc -E runs the code through the compiler's parser,
3968 # not just through cpp. "Syntax error" is here to catch this case.
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3971 #ifdef __STDC__
3972 # include <limits.h>
3973 #else
3974 # include <assert.h>
3975 #endif
3976 Syntax error
3977 _ACEOF
3978 if ac_fn_c_try_cpp "$LINENO"; then :
3979
3980 else
3981 # Broken: fails on valid input.
3982 continue
3983 fi
3984 rm -f conftest.err conftest.i conftest.$ac_ext
3985
3986 # OK, works on sane cases. Now check whether nonexistent headers
3987 # can be detected and how.
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3990 #include <ac_nonexistent.h>
3991 _ACEOF
3992 if ac_fn_c_try_cpp "$LINENO"; then :
3993 # Broken: success on invalid input.
3994 continue
3995 else
3996 # Passes both tests.
3997 ac_preproc_ok=:
3998 break
3999 fi
4000 rm -f conftest.err conftest.i conftest.$ac_ext
4001
4002 done
4003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4004 rm -f conftest.i conftest.err conftest.$ac_ext
4005 if $ac_preproc_ok; then :
4006
4007 else
4008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4010 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4011 See \`config.log' for more details" "$LINENO" 5; }
4012 fi
4013
4014 ac_ext=c
4015 ac_cpp='$CPP $CPPFLAGS'
4016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4019
4020
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4022 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4023 if ${ac_cv_path_GREP+:} false; then :
4024 $as_echo_n "(cached) " >&6
4025 else
4026 if test -z "$GREP"; then
4027 ac_path_GREP_found=false
4028 # Loop through the user's path and test for each of PROGNAME-LIST
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4031 do
4032 IFS=$as_save_IFS
4033 test -z "$as_dir" && as_dir=.
4034 for ac_prog in grep ggrep; do
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4037 as_fn_executable_p "$ac_path_GREP" || continue
4038 # Check for GNU ac_path_GREP and select it if it is found.
4039 # Check for GNU $ac_path_GREP
4040 case `"$ac_path_GREP" --version 2>&1` in
4041 *GNU*)
4042 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4043 *)
4044 ac_count=0
4045 $as_echo_n 0123456789 >"conftest.in"
4046 while :
4047 do
4048 cat "conftest.in" "conftest.in" >"conftest.tmp"
4049 mv "conftest.tmp" "conftest.in"
4050 cp "conftest.in" "conftest.nl"
4051 $as_echo 'GREP' >> "conftest.nl"
4052 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4053 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4054 as_fn_arith $ac_count + 1 && ac_count=$as_val
4055 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4056 # Best one so far, save it but keep looking for a better one
4057 ac_cv_path_GREP="$ac_path_GREP"
4058 ac_path_GREP_max=$ac_count
4059 fi
4060 # 10*(2^10) chars as input seems more than enough
4061 test $ac_count -gt 10 && break
4062 done
4063 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4064 esac
4065
4066 $ac_path_GREP_found && break 3
4067 done
4068 done
4069 done
4070 IFS=$as_save_IFS
4071 if test -z "$ac_cv_path_GREP"; then
4072 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4073 fi
4074 else
4075 ac_cv_path_GREP=$GREP
4076 fi
4077
4078 fi
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4080 $as_echo "$ac_cv_path_GREP" >&6; }
4081 GREP="$ac_cv_path_GREP"
4082
4083
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4085 $as_echo_n "checking for egrep... " >&6; }
4086 if ${ac_cv_path_EGREP+:} false; then :
4087 $as_echo_n "(cached) " >&6
4088 else
4089 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4090 then ac_cv_path_EGREP="$GREP -E"
4091 else
4092 if test -z "$EGREP"; then
4093 ac_path_EGREP_found=false
4094 # Loop through the user's path and test for each of PROGNAME-LIST
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4097 do
4098 IFS=$as_save_IFS
4099 test -z "$as_dir" && as_dir=.
4100 for ac_prog in egrep; do
4101 for ac_exec_ext in '' $ac_executable_extensions; do
4102 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4103 as_fn_executable_p "$ac_path_EGREP" || continue
4104 # Check for GNU ac_path_EGREP and select it if it is found.
4105 # Check for GNU $ac_path_EGREP
4106 case `"$ac_path_EGREP" --version 2>&1` in
4107 *GNU*)
4108 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4109 *)
4110 ac_count=0
4111 $as_echo_n 0123456789 >"conftest.in"
4112 while :
4113 do
4114 cat "conftest.in" "conftest.in" >"conftest.tmp"
4115 mv "conftest.tmp" "conftest.in"
4116 cp "conftest.in" "conftest.nl"
4117 $as_echo 'EGREP' >> "conftest.nl"
4118 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4119 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4120 as_fn_arith $ac_count + 1 && ac_count=$as_val
4121 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4122 # Best one so far, save it but keep looking for a better one
4123 ac_cv_path_EGREP="$ac_path_EGREP"
4124 ac_path_EGREP_max=$ac_count
4125 fi
4126 # 10*(2^10) chars as input seems more than enough
4127 test $ac_count -gt 10 && break
4128 done
4129 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4130 esac
4131
4132 $ac_path_EGREP_found && break 3
4133 done
4134 done
4135 done
4136 IFS=$as_save_IFS
4137 if test -z "$ac_cv_path_EGREP"; then
4138 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4139 fi
4140 else
4141 ac_cv_path_EGREP=$EGREP
4142 fi
4143
4144 fi
4145 fi
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4147 $as_echo "$ac_cv_path_EGREP" >&6; }
4148 EGREP="$ac_cv_path_EGREP"
4149
4150
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4152 $as_echo_n "checking for ANSI C header files... " >&6; }
4153 if ${ac_cv_header_stdc+:} false; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4158 #include <stdlib.h>
4159 #include <stdarg.h>
4160 #include <string.h>
4161 #include <float.h>
4162
4163 int
4164 main ()
4165 {
4166
4167 ;
4168 return 0;
4169 }
4170 _ACEOF
4171 if ac_fn_c_try_compile "$LINENO"; then :
4172 ac_cv_header_stdc=yes
4173 else
4174 ac_cv_header_stdc=no
4175 fi
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177
4178 if test $ac_cv_header_stdc = yes; then
4179 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4182 #include <string.h>
4183
4184 _ACEOF
4185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4186 $EGREP "memchr" >/dev/null 2>&1; then :
4187
4188 else
4189 ac_cv_header_stdc=no
4190 fi
4191 rm -f conftest*
4192
4193 fi
4194
4195 if test $ac_cv_header_stdc = yes; then
4196 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199 #include <stdlib.h>
4200
4201 _ACEOF
4202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4203 $EGREP "free" >/dev/null 2>&1; then :
4204
4205 else
4206 ac_cv_header_stdc=no
4207 fi
4208 rm -f conftest*
4209
4210 fi
4211
4212 if test $ac_cv_header_stdc = yes; then
4213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4214 if test "$cross_compiling" = yes; then :
4215 :
4216 else
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4219 #include <ctype.h>
4220 #include <stdlib.h>
4221 #if ((' ' & 0x0FF) == 0x020)
4222 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4223 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4224 #else
4225 # define ISLOWER(c) \
4226 (('a' <= (c) && (c) <= 'i') \
4227 || ('j' <= (c) && (c) <= 'r') \
4228 || ('s' <= (c) && (c) <= 'z'))
4229 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4230 #endif
4231
4232 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4233 int
4234 main ()
4235 {
4236 int i;
4237 for (i = 0; i < 256; i++)
4238 if (XOR (islower (i), ISLOWER (i))
4239 || toupper (i) != TOUPPER (i))
4240 return 2;
4241 return 0;
4242 }
4243 _ACEOF
4244 if ac_fn_c_try_run "$LINENO"; then :
4245
4246 else
4247 ac_cv_header_stdc=no
4248 fi
4249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4250 conftest.$ac_objext conftest.beam conftest.$ac_ext
4251 fi
4252
4253 fi
4254 fi
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4256 $as_echo "$ac_cv_header_stdc" >&6; }
4257 if test $ac_cv_header_stdc = yes; then
4258
4259 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4260
4261 fi
4262
4263 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4264 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4265 inttypes.h stdint.h unistd.h
4266 do :
4267 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4268 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4269 "
4270 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4271 cat >>confdefs.h <<_ACEOF
4272 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4273 _ACEOF
4274
4275 fi
4276
4277 done
4278
4279
4280
4281
4282
4283
4284 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4285 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4286 CLANGCC="yes"
4287 else
4288 CLANGCC="no"
4289 fi
4290
4291 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4292 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4293 INTELCC="yes"
4294 else
4295 INTELCC="no"
4296 fi
4297
4298 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4299 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4300 SUNCC="yes"
4301 else
4302 SUNCC="no"
4303 fi
4304
4305
4306
4307
4308
4309
4310
4311
4312 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4313 if test -n "$ac_tool_prefix"; then
4314 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4315 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 case $PKG_CONFIG in
4322 [\\/]* | ?:[\\/]*)
4323 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4324 ;;
4325 *)
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4328 do
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 break 2
4336 fi
4337 done
4338 done
4339 IFS=$as_save_IFS
4340
4341 ;;
4342 esac
4343 fi
4344 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4345 if test -n "$PKG_CONFIG"; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4347 $as_echo "$PKG_CONFIG" >&6; }
4348 else
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4351 fi
4352
4353
4354 fi
4355 if test -z "$ac_cv_path_PKG_CONFIG"; then
4356 ac_pt_PKG_CONFIG=$PKG_CONFIG
4357 # Extract the first word of "pkg-config", so it can be a program name with args.
4358 set dummy pkg-config; ac_word=$2
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 $as_echo_n "checking for $ac_word... " >&6; }
4361 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4362 $as_echo_n "(cached) " >&6
4363 else
4364 case $ac_pt_PKG_CONFIG in
4365 [\\/]* | ?:[\\/]*)
4366 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4367 ;;
4368 *)
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4371 do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4376 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4379 fi
4380 done
4381 done
4382 IFS=$as_save_IFS
4383
4384 ;;
4385 esac
4386 fi
4387 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4388 if test -n "$ac_pt_PKG_CONFIG"; then
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4390 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4391 else
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4393 $as_echo "no" >&6; }
4394 fi
4395
4396 if test "x$ac_pt_PKG_CONFIG" = x; then
4397 PKG_CONFIG=""
4398 else
4399 case $cross_compiling:$ac_tool_warned in
4400 yes:)
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4403 ac_tool_warned=yes ;;
4404 esac
4405 PKG_CONFIG=$ac_pt_PKG_CONFIG
4406 fi
4407 else
4408 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4409 fi
4410
4411 fi
4412 if test -n "$PKG_CONFIG"; then
4413 _pkg_min_version=0.9.0
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4415 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4416 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4418 $as_echo "yes" >&6; }
4419 else
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 $as_echo "no" >&6; }
4422 PKG_CONFIG=""
4423 fi
4424 fi
4425 # Make sure we can run config.sub.
4426 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4427 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4428
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4430 $as_echo_n "checking build system type... " >&6; }
4431 if ${ac_cv_build+:} false; then :
4432 $as_echo_n "(cached) " >&6
4433 else
4434 ac_build_alias=$build_alias
4435 test "x$ac_build_alias" = x &&
4436 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4437 test "x$ac_build_alias" = x &&
4438 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4439 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4440 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4441
4442 fi
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4444 $as_echo "$ac_cv_build" >&6; }
4445 case $ac_cv_build in
4446 *-*-*) ;;
4447 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4448 esac
4449 build=$ac_cv_build
4450 ac_save_IFS=$IFS; IFS='-'
4451 set x $ac_cv_build
4452 shift
4453 build_cpu=$1
4454 build_vendor=$2
4455 shift; shift
4456 # Remember, the first character of IFS is used to create $*,
4457 # except with old shells:
4458 build_os=$*
4459 IFS=$ac_save_IFS
4460 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4461
4462
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4464 $as_echo_n "checking host system type... " >&6; }
4465 if ${ac_cv_host+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 if test "x$host_alias" = x; then
4469 ac_cv_host=$ac_cv_build
4470 else
4471 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4472 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4473 fi
4474
4475 fi
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4477 $as_echo "$ac_cv_host" >&6; }
4478 case $ac_cv_host in
4479 *-*-*) ;;
4480 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4481 esac
4482 host=$ac_cv_host
4483 ac_save_IFS=$IFS; IFS='-'
4484 set x $ac_cv_host
4485 shift
4486 host_cpu=$1
4487 host_vendor=$2
4488 shift; shift
4489 # Remember, the first character of IFS is used to create $*,
4490 # except with old shells:
4491 host_os=$*
4492 IFS=$ac_save_IFS
4493 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4494
4495
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4497 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4498 if ${ac_cv_path_SED+:} false; then :
4499 $as_echo_n "(cached) " >&6
4500 else
4501 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4502 for ac_i in 1 2 3 4 5 6 7; do
4503 ac_script="$ac_script$as_nl$ac_script"
4504 done
4505 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4506 { ac_script=; unset ac_script;}
4507 if test -z "$SED"; then
4508 ac_path_SED_found=false
4509 # Loop through the user's path and test for each of PROGNAME-LIST
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_prog in sed gsed; do
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4518 as_fn_executable_p "$ac_path_SED" || continue
4519 # Check for GNU ac_path_SED and select it if it is found.
4520 # Check for GNU $ac_path_SED
4521 case `"$ac_path_SED" --version 2>&1` in
4522 *GNU*)
4523 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4524 *)
4525 ac_count=0
4526 $as_echo_n 0123456789 >"conftest.in"
4527 while :
4528 do
4529 cat "conftest.in" "conftest.in" >"conftest.tmp"
4530 mv "conftest.tmp" "conftest.in"
4531 cp "conftest.in" "conftest.nl"
4532 $as_echo '' >> "conftest.nl"
4533 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4535 as_fn_arith $ac_count + 1 && ac_count=$as_val
4536 if test $ac_count -gt ${ac_path_SED_max-0}; then
4537 # Best one so far, save it but keep looking for a better one
4538 ac_cv_path_SED="$ac_path_SED"
4539 ac_path_SED_max=$ac_count
4540 fi
4541 # 10*(2^10) chars as input seems more than enough
4542 test $ac_count -gt 10 && break
4543 done
4544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4545 esac
4546
4547 $ac_path_SED_found && break 3
4548 done
4549 done
4550 done
4551 IFS=$as_save_IFS
4552 if test -z "$ac_cv_path_SED"; then
4553 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4554 fi
4555 else
4556 ac_cv_path_SED=$SED
4557 fi
4558
4559 fi
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4561 $as_echo "$ac_cv_path_SED" >&6; }
4562 SED="$ac_cv_path_SED"
4563 rm -f conftest.sed
4564
4565
4566
4567
4568
4569
4570 # Check whether --enable-selective-werror was given.
4571 if test "${enable_selective_werror+set}" = set; then :
4572 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4573 else
4574 SELECTIVE_WERROR=yes
4575 fi
4576
4577
4578
4579
4580
4581 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4582 if test "x$SUNCC" = "xyes"; then
4583 BASE_CFLAGS="-v"
4584 else
4585 BASE_CFLAGS=""
4586 fi
4587
4588 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602 xorg_testset_save_CFLAGS="$CFLAGS"
4603
4604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4607 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4608 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613 int i;
4614 _ACEOF
4615 if ac_fn_c_try_compile "$LINENO"; then :
4616 xorg_cv_cc_flag_unknown_warning_option=yes
4617 else
4618 xorg_cv_cc_flag_unknown_warning_option=no
4619 fi
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 fi
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4623 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4625 CFLAGS="$xorg_testset_save_CFLAGS"
4626 fi
4627
4628 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4631 fi
4632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4634 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4635 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4636 $as_echo_n "(cached) " >&6
4637 else
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h. */
4640 int i;
4641 _ACEOF
4642 if ac_fn_c_try_compile "$LINENO"; then :
4643 xorg_cv_cc_flag_unused_command_line_argument=yes
4644 else
4645 xorg_cv_cc_flag_unused_command_line_argument=no
4646 fi
4647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648 fi
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4650 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4652 CFLAGS="$xorg_testset_save_CFLAGS"
4653 fi
4654
4655 found="no"
4656
4657 if test $found = "no" ; then
4658 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4660 fi
4661
4662 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4664 fi
4665
4666 CFLAGS="$CFLAGS -Wall"
4667
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4669 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4670 cacheid=xorg_cv_cc_flag__Wall
4671 if eval \${$cacheid+:} false; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4676 int i;
4677 int
4678 main ()
4679 {
4680
4681 ;
4682 return 0;
4683 }
4684 _ACEOF
4685 if ac_fn_c_try_link "$LINENO"; then :
4686 eval $cacheid=yes
4687 else
4688 eval $cacheid=no
4689 fi
4690 rm -f core conftest.err conftest.$ac_objext \
4691 conftest$ac_exeext conftest.$ac_ext
4692 fi
4693
4694
4695 CFLAGS="$xorg_testset_save_CFLAGS"
4696
4697 eval supported=\$$cacheid
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4699 $as_echo "$supported" >&6; }
4700 if test "$supported" = "yes" ; then
4701 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4702 found="yes"
4703 fi
4704 fi
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720 xorg_testset_save_CFLAGS="$CFLAGS"
4721
4722 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4725 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4726 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4731 int i;
4732 _ACEOF
4733 if ac_fn_c_try_compile "$LINENO"; then :
4734 xorg_cv_cc_flag_unknown_warning_option=yes
4735 else
4736 xorg_cv_cc_flag_unknown_warning_option=no
4737 fi
4738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739 fi
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4741 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4743 CFLAGS="$xorg_testset_save_CFLAGS"
4744 fi
4745
4746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4749 fi
4750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4752 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4753 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4758 int i;
4759 _ACEOF
4760 if ac_fn_c_try_compile "$LINENO"; then :
4761 xorg_cv_cc_flag_unused_command_line_argument=yes
4762 else
4763 xorg_cv_cc_flag_unused_command_line_argument=no
4764 fi
4765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 fi
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4768 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4770 CFLAGS="$xorg_testset_save_CFLAGS"
4771 fi
4772
4773 found="no"
4774
4775 if test $found = "no" ; then
4776 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4778 fi
4779
4780 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4782 fi
4783
4784 CFLAGS="$CFLAGS -Wpointer-arith"
4785
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4787 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4788 cacheid=xorg_cv_cc_flag__Wpointer_arith
4789 if eval \${$cacheid+:} false; then :
4790 $as_echo_n "(cached) " >&6
4791 else
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4794 int i;
4795 int
4796 main ()
4797 {
4798
4799 ;
4800 return 0;
4801 }
4802 _ACEOF
4803 if ac_fn_c_try_link "$LINENO"; then :
4804 eval $cacheid=yes
4805 else
4806 eval $cacheid=no
4807 fi
4808 rm -f core conftest.err conftest.$ac_objext \
4809 conftest$ac_exeext conftest.$ac_ext
4810 fi
4811
4812
4813 CFLAGS="$xorg_testset_save_CFLAGS"
4814
4815 eval supported=\$$cacheid
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4817 $as_echo "$supported" >&6; }
4818 if test "$supported" = "yes" ; then
4819 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4820 found="yes"
4821 fi
4822 fi
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838 xorg_testset_save_CFLAGS="$CFLAGS"
4839
4840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4843 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4844 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4849 int i;
4850 _ACEOF
4851 if ac_fn_c_try_compile "$LINENO"; then :
4852 xorg_cv_cc_flag_unknown_warning_option=yes
4853 else
4854 xorg_cv_cc_flag_unknown_warning_option=no
4855 fi
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 fi
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4859 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4861 CFLAGS="$xorg_testset_save_CFLAGS"
4862 fi
4863
4864 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4867 fi
4868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4870 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4871 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4876 int i;
4877 _ACEOF
4878 if ac_fn_c_try_compile "$LINENO"; then :
4879 xorg_cv_cc_flag_unused_command_line_argument=yes
4880 else
4881 xorg_cv_cc_flag_unused_command_line_argument=no
4882 fi
4883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4884 fi
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4886 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4888 CFLAGS="$xorg_testset_save_CFLAGS"
4889 fi
4890
4891 found="no"
4892
4893 if test $found = "no" ; then
4894 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4896 fi
4897
4898 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4900 fi
4901
4902 CFLAGS="$CFLAGS -Wmissing-declarations"
4903
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4905 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4906 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4907 if eval \${$cacheid+:} false; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912 int i;
4913 int
4914 main ()
4915 {
4916
4917 ;
4918 return 0;
4919 }
4920 _ACEOF
4921 if ac_fn_c_try_link "$LINENO"; then :
4922 eval $cacheid=yes
4923 else
4924 eval $cacheid=no
4925 fi
4926 rm -f core conftest.err conftest.$ac_objext \
4927 conftest$ac_exeext conftest.$ac_ext
4928 fi
4929
4930
4931 CFLAGS="$xorg_testset_save_CFLAGS"
4932
4933 eval supported=\$$cacheid
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4935 $as_echo "$supported" >&6; }
4936 if test "$supported" = "yes" ; then
4937 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4938 found="yes"
4939 fi
4940 fi
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956 xorg_testset_save_CFLAGS="$CFLAGS"
4957
4958 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4961 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4962 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4967 int i;
4968 _ACEOF
4969 if ac_fn_c_try_compile "$LINENO"; then :
4970 xorg_cv_cc_flag_unknown_warning_option=yes
4971 else
4972 xorg_cv_cc_flag_unknown_warning_option=no
4973 fi
4974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 fi
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4977 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4979 CFLAGS="$xorg_testset_save_CFLAGS"
4980 fi
4981
4982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4985 fi
4986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4988 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4989 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4994 int i;
4995 _ACEOF
4996 if ac_fn_c_try_compile "$LINENO"; then :
4997 xorg_cv_cc_flag_unused_command_line_argument=yes
4998 else
4999 xorg_cv_cc_flag_unused_command_line_argument=no
5000 fi
5001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5002 fi
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5004 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5006 CFLAGS="$xorg_testset_save_CFLAGS"
5007 fi
5008
5009 found="no"
5010
5011 if test $found = "no" ; then
5012 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5014 fi
5015
5016 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5018 fi
5019
5020 CFLAGS="$CFLAGS -Wformat=2"
5021
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5023 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5024 cacheid=xorg_cv_cc_flag__Wformat_2
5025 if eval \${$cacheid+:} false; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5030 int i;
5031 int
5032 main ()
5033 {
5034
5035 ;
5036 return 0;
5037 }
5038 _ACEOF
5039 if ac_fn_c_try_link "$LINENO"; then :
5040 eval $cacheid=yes
5041 else
5042 eval $cacheid=no
5043 fi
5044 rm -f core conftest.err conftest.$ac_objext \
5045 conftest$ac_exeext conftest.$ac_ext
5046 fi
5047
5048
5049 CFLAGS="$xorg_testset_save_CFLAGS"
5050
5051 eval supported=\$$cacheid
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5053 $as_echo "$supported" >&6; }
5054 if test "$supported" = "yes" ; then
5055 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5056 found="yes"
5057 fi
5058 fi
5059
5060 if test $found = "no" ; then
5061 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5063 fi
5064
5065 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5067 fi
5068
5069 CFLAGS="$CFLAGS -Wformat"
5070
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5072 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5073 cacheid=xorg_cv_cc_flag__Wformat
5074 if eval \${$cacheid+:} false; then :
5075 $as_echo_n "(cached) " >&6
5076 else
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5079 int i;
5080 int
5081 main ()
5082 {
5083
5084 ;
5085 return 0;
5086 }
5087 _ACEOF
5088 if ac_fn_c_try_link "$LINENO"; then :
5089 eval $cacheid=yes
5090 else
5091 eval $cacheid=no
5092 fi
5093 rm -f core conftest.err conftest.$ac_objext \
5094 conftest$ac_exeext conftest.$ac_ext
5095 fi
5096
5097
5098 CFLAGS="$xorg_testset_save_CFLAGS"
5099
5100 eval supported=\$$cacheid
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5102 $as_echo "$supported" >&6; }
5103 if test "$supported" = "yes" ; then
5104 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5105 found="yes"
5106 fi
5107 fi
5108
5109
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_unknown_warning_option" = "xyes" ; then
5182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5183 fi
5184
5185 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5187 fi
5188
5189 CFLAGS="$CFLAGS -Wstrict-prototypes"
5190
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5192 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5193 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
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 -Wstrict-prototypes"
5225 found="yes"
5226 fi
5227 fi
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243 xorg_testset_save_CFLAGS="$CFLAGS"
5244
5245 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5248 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5249 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5254 int i;
5255 _ACEOF
5256 if ac_fn_c_try_compile "$LINENO"; then :
5257 xorg_cv_cc_flag_unknown_warning_option=yes
5258 else
5259 xorg_cv_cc_flag_unknown_warning_option=no
5260 fi
5261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5262 fi
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5264 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5266 CFLAGS="$xorg_testset_save_CFLAGS"
5267 fi
5268
5269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5272 fi
5273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5275 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5276 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5277 $as_echo_n "(cached) " >&6
5278 else
5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5281 int i;
5282 _ACEOF
5283 if ac_fn_c_try_compile "$LINENO"; then :
5284 xorg_cv_cc_flag_unused_command_line_argument=yes
5285 else
5286 xorg_cv_cc_flag_unused_command_line_argument=no
5287 fi
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 fi
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5291 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5293 CFLAGS="$xorg_testset_save_CFLAGS"
5294 fi
5295
5296 found="no"
5297
5298 if test $found = "no" ; then
5299 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5301 fi
5302
5303 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5305 fi
5306
5307 CFLAGS="$CFLAGS -Wmissing-prototypes"
5308
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5310 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5311 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5312 if eval \${$cacheid+:} false; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5317 int i;
5318 int
5319 main ()
5320 {
5321
5322 ;
5323 return 0;
5324 }
5325 _ACEOF
5326 if ac_fn_c_try_link "$LINENO"; then :
5327 eval $cacheid=yes
5328 else
5329 eval $cacheid=no
5330 fi
5331 rm -f core conftest.err conftest.$ac_objext \
5332 conftest$ac_exeext conftest.$ac_ext
5333 fi
5334
5335
5336 CFLAGS="$xorg_testset_save_CFLAGS"
5337
5338 eval supported=\$$cacheid
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5340 $as_echo "$supported" >&6; }
5341 if test "$supported" = "yes" ; then
5342 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5343 found="yes"
5344 fi
5345 fi
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361 xorg_testset_save_CFLAGS="$CFLAGS"
5362
5363 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5366 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5367 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5372 int i;
5373 _ACEOF
5374 if ac_fn_c_try_compile "$LINENO"; then :
5375 xorg_cv_cc_flag_unknown_warning_option=yes
5376 else
5377 xorg_cv_cc_flag_unknown_warning_option=no
5378 fi
5379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 fi
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5382 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5384 CFLAGS="$xorg_testset_save_CFLAGS"
5385 fi
5386
5387 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5390 fi
5391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5393 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5394 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h. */
5399 int i;
5400 _ACEOF
5401 if ac_fn_c_try_compile "$LINENO"; then :
5402 xorg_cv_cc_flag_unused_command_line_argument=yes
5403 else
5404 xorg_cv_cc_flag_unused_command_line_argument=no
5405 fi
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 fi
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5409 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5411 CFLAGS="$xorg_testset_save_CFLAGS"
5412 fi
5413
5414 found="no"
5415
5416 if test $found = "no" ; then
5417 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5419 fi
5420
5421 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5423 fi
5424
5425 CFLAGS="$CFLAGS -Wnested-externs"
5426
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5428 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5429 cacheid=xorg_cv_cc_flag__Wnested_externs
5430 if eval \${$cacheid+:} false; then :
5431 $as_echo_n "(cached) " >&6
5432 else
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h. */
5435 int i;
5436 int
5437 main ()
5438 {
5439
5440 ;
5441 return 0;
5442 }
5443 _ACEOF
5444 if ac_fn_c_try_link "$LINENO"; then :
5445 eval $cacheid=yes
5446 else
5447 eval $cacheid=no
5448 fi
5449 rm -f core conftest.err conftest.$ac_objext \
5450 conftest$ac_exeext conftest.$ac_ext
5451 fi
5452
5453
5454 CFLAGS="$xorg_testset_save_CFLAGS"
5455
5456 eval supported=\$$cacheid
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5458 $as_echo "$supported" >&6; }
5459 if test "$supported" = "yes" ; then
5460 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5461 found="yes"
5462 fi
5463 fi
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479 xorg_testset_save_CFLAGS="$CFLAGS"
5480
5481 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5484 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5485 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5490 int i;
5491 _ACEOF
5492 if ac_fn_c_try_compile "$LINENO"; then :
5493 xorg_cv_cc_flag_unknown_warning_option=yes
5494 else
5495 xorg_cv_cc_flag_unknown_warning_option=no
5496 fi
5497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498 fi
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5500 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5502 CFLAGS="$xorg_testset_save_CFLAGS"
5503 fi
5504
5505 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5508 fi
5509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5511 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5512 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516 /* end confdefs.h. */
5517 int i;
5518 _ACEOF
5519 if ac_fn_c_try_compile "$LINENO"; then :
5520 xorg_cv_cc_flag_unused_command_line_argument=yes
5521 else
5522 xorg_cv_cc_flag_unused_command_line_argument=no
5523 fi
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525 fi
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5527 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5529 CFLAGS="$xorg_testset_save_CFLAGS"
5530 fi
5531
5532 found="no"
5533
5534 if test $found = "no" ; then
5535 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5537 fi
5538
5539 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5541 fi
5542
5543 CFLAGS="$CFLAGS -Wbad-function-cast"
5544
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5546 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5547 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5548 if eval \${$cacheid+:} false; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553 int i;
5554 int
5555 main ()
5556 {
5557
5558 ;
5559 return 0;
5560 }
5561 _ACEOF
5562 if ac_fn_c_try_link "$LINENO"; then :
5563 eval $cacheid=yes
5564 else
5565 eval $cacheid=no
5566 fi
5567 rm -f core conftest.err conftest.$ac_objext \
5568 conftest$ac_exeext conftest.$ac_ext
5569 fi
5570
5571
5572 CFLAGS="$xorg_testset_save_CFLAGS"
5573
5574 eval supported=\$$cacheid
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5576 $as_echo "$supported" >&6; }
5577 if test "$supported" = "yes" ; then
5578 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5579 found="yes"
5580 fi
5581 fi
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597 xorg_testset_save_CFLAGS="$CFLAGS"
5598
5599 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5602 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5603 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5608 int i;
5609 _ACEOF
5610 if ac_fn_c_try_compile "$LINENO"; then :
5611 xorg_cv_cc_flag_unknown_warning_option=yes
5612 else
5613 xorg_cv_cc_flag_unknown_warning_option=no
5614 fi
5615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616 fi
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5618 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5619 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5620 CFLAGS="$xorg_testset_save_CFLAGS"
5621 fi
5622
5623 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5626 fi
5627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5629 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5630 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 int i;
5636 _ACEOF
5637 if ac_fn_c_try_compile "$LINENO"; then :
5638 xorg_cv_cc_flag_unused_command_line_argument=yes
5639 else
5640 xorg_cv_cc_flag_unused_command_line_argument=no
5641 fi
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 fi
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5645 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5647 CFLAGS="$xorg_testset_save_CFLAGS"
5648 fi
5649
5650 found="no"
5651
5652 if test $found = "no" ; then
5653 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5655 fi
5656
5657 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5659 fi
5660
5661 CFLAGS="$CFLAGS -Wold-style-definition"
5662
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5664 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5665 cacheid=xorg_cv_cc_flag__Wold_style_definition
5666 if eval \${$cacheid+:} false; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671 int i;
5672 int
5673 main ()
5674 {
5675
5676 ;
5677 return 0;
5678 }
5679 _ACEOF
5680 if ac_fn_c_try_link "$LINENO"; then :
5681 eval $cacheid=yes
5682 else
5683 eval $cacheid=no
5684 fi
5685 rm -f core conftest.err conftest.$ac_objext \
5686 conftest$ac_exeext conftest.$ac_ext
5687 fi
5688
5689
5690 CFLAGS="$xorg_testset_save_CFLAGS"
5691
5692 eval supported=\$$cacheid
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5694 $as_echo "$supported" >&6; }
5695 if test "$supported" = "yes" ; then
5696 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5697 found="yes"
5698 fi
5699 fi
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715 xorg_testset_save_CFLAGS="$CFLAGS"
5716
5717 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5720 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5721 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5722 $as_echo_n "(cached) " >&6
5723 else
5724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725 /* end confdefs.h. */
5726 int i;
5727 _ACEOF
5728 if ac_fn_c_try_compile "$LINENO"; then :
5729 xorg_cv_cc_flag_unknown_warning_option=yes
5730 else
5731 xorg_cv_cc_flag_unknown_warning_option=no
5732 fi
5733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5734 fi
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5736 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5737 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5738 CFLAGS="$xorg_testset_save_CFLAGS"
5739 fi
5740
5741 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5744 fi
5745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5747 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5748 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5749 $as_echo_n "(cached) " >&6
5750 else
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h. */
5753 int i;
5754 _ACEOF
5755 if ac_fn_c_try_compile "$LINENO"; then :
5756 xorg_cv_cc_flag_unused_command_line_argument=yes
5757 else
5758 xorg_cv_cc_flag_unused_command_line_argument=no
5759 fi
5760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 fi
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5763 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5765 CFLAGS="$xorg_testset_save_CFLAGS"
5766 fi
5767
5768 found="no"
5769
5770 if test $found = "no" ; then
5771 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5773 fi
5774
5775 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5777 fi
5778
5779 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5780
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5782 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5783 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5784 if eval \${$cacheid+:} false; then :
5785 $as_echo_n "(cached) " >&6
5786 else
5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h. */
5789 int i;
5790 int
5791 main ()
5792 {
5793
5794 ;
5795 return 0;
5796 }
5797 _ACEOF
5798 if ac_fn_c_try_link "$LINENO"; then :
5799 eval $cacheid=yes
5800 else
5801 eval $cacheid=no
5802 fi
5803 rm -f core conftest.err conftest.$ac_objext \
5804 conftest$ac_exeext conftest.$ac_ext
5805 fi
5806
5807
5808 CFLAGS="$xorg_testset_save_CFLAGS"
5809
5810 eval supported=\$$cacheid
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5812 $as_echo "$supported" >&6; }
5813 if test "$supported" = "yes" ; then
5814 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5815 found="yes"
5816 fi
5817 fi
5818
5819
5820
5821
5822
5823 # This chunk adds additional warnings that could catch undesired effects.
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837 xorg_testset_save_CFLAGS="$CFLAGS"
5838
5839 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5842 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5843 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847 /* end confdefs.h. */
5848 int i;
5849 _ACEOF
5850 if ac_fn_c_try_compile "$LINENO"; then :
5851 xorg_cv_cc_flag_unknown_warning_option=yes
5852 else
5853 xorg_cv_cc_flag_unknown_warning_option=no
5854 fi
5855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856 fi
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5858 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5860 CFLAGS="$xorg_testset_save_CFLAGS"
5861 fi
5862
5863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5866 fi
5867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5869 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5870 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5875 int i;
5876 _ACEOF
5877 if ac_fn_c_try_compile "$LINENO"; then :
5878 xorg_cv_cc_flag_unused_command_line_argument=yes
5879 else
5880 xorg_cv_cc_flag_unused_command_line_argument=no
5881 fi
5882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 fi
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5885 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5887 CFLAGS="$xorg_testset_save_CFLAGS"
5888 fi
5889
5890 found="no"
5891
5892 if test $found = "no" ; then
5893 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5895 fi
5896
5897 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5899 fi
5900
5901 CFLAGS="$CFLAGS -Wunused"
5902
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5904 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5905 cacheid=xorg_cv_cc_flag__Wunused
5906 if eval \${$cacheid+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910 /* end confdefs.h. */
5911 int i;
5912 int
5913 main ()
5914 {
5915
5916 ;
5917 return 0;
5918 }
5919 _ACEOF
5920 if ac_fn_c_try_link "$LINENO"; then :
5921 eval $cacheid=yes
5922 else
5923 eval $cacheid=no
5924 fi
5925 rm -f core conftest.err conftest.$ac_objext \
5926 conftest$ac_exeext conftest.$ac_ext
5927 fi
5928
5929
5930 CFLAGS="$xorg_testset_save_CFLAGS"
5931
5932 eval supported=\$$cacheid
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5934 $as_echo "$supported" >&6; }
5935 if test "$supported" = "yes" ; then
5936 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5937 found="yes"
5938 fi
5939 fi
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955 xorg_testset_save_CFLAGS="$CFLAGS"
5956
5957 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5960 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5961 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5962 $as_echo_n "(cached) " >&6
5963 else
5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965 /* end confdefs.h. */
5966 int i;
5967 _ACEOF
5968 if ac_fn_c_try_compile "$LINENO"; then :
5969 xorg_cv_cc_flag_unknown_warning_option=yes
5970 else
5971 xorg_cv_cc_flag_unknown_warning_option=no
5972 fi
5973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5974 fi
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5976 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5978 CFLAGS="$xorg_testset_save_CFLAGS"
5979 fi
5980
5981 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5984 fi
5985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5987 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5988 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5993 int i;
5994 _ACEOF
5995 if ac_fn_c_try_compile "$LINENO"; then :
5996 xorg_cv_cc_flag_unused_command_line_argument=yes
5997 else
5998 xorg_cv_cc_flag_unused_command_line_argument=no
5999 fi
6000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6001 fi
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6003 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6005 CFLAGS="$xorg_testset_save_CFLAGS"
6006 fi
6007
6008 found="no"
6009
6010 if test $found = "no" ; then
6011 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6013 fi
6014
6015 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6017 fi
6018
6019 CFLAGS="$CFLAGS -Wuninitialized"
6020
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6022 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6023 cacheid=xorg_cv_cc_flag__Wuninitialized
6024 if eval \${$cacheid+:} false; then :
6025 $as_echo_n "(cached) " >&6
6026 else
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6029 int i;
6030 int
6031 main ()
6032 {
6033
6034 ;
6035 return 0;
6036 }
6037 _ACEOF
6038 if ac_fn_c_try_link "$LINENO"; then :
6039 eval $cacheid=yes
6040 else
6041 eval $cacheid=no
6042 fi
6043 rm -f core conftest.err conftest.$ac_objext \
6044 conftest$ac_exeext conftest.$ac_ext
6045 fi
6046
6047
6048 CFLAGS="$xorg_testset_save_CFLAGS"
6049
6050 eval supported=\$$cacheid
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6052 $as_echo "$supported" >&6; }
6053 if test "$supported" = "yes" ; then
6054 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6055 found="yes"
6056 fi
6057 fi
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073 xorg_testset_save_CFLAGS="$CFLAGS"
6074
6075 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6078 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6079 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6084 int i;
6085 _ACEOF
6086 if ac_fn_c_try_compile "$LINENO"; then :
6087 xorg_cv_cc_flag_unknown_warning_option=yes
6088 else
6089 xorg_cv_cc_flag_unknown_warning_option=no
6090 fi
6091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 fi
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6094 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6096 CFLAGS="$xorg_testset_save_CFLAGS"
6097 fi
6098
6099 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6102 fi
6103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6105 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6106 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6107 $as_echo_n "(cached) " >&6
6108 else
6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h. */
6111 int i;
6112 _ACEOF
6113 if ac_fn_c_try_compile "$LINENO"; then :
6114 xorg_cv_cc_flag_unused_command_line_argument=yes
6115 else
6116 xorg_cv_cc_flag_unused_command_line_argument=no
6117 fi
6118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119 fi
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6121 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6123 CFLAGS="$xorg_testset_save_CFLAGS"
6124 fi
6125
6126 found="no"
6127
6128 if test $found = "no" ; then
6129 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6131 fi
6132
6133 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6135 fi
6136
6137 CFLAGS="$CFLAGS -Wshadow"
6138
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6140 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6141 cacheid=xorg_cv_cc_flag__Wshadow
6142 if eval \${$cacheid+:} false; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6147 int i;
6148 int
6149 main ()
6150 {
6151
6152 ;
6153 return 0;
6154 }
6155 _ACEOF
6156 if ac_fn_c_try_link "$LINENO"; then :
6157 eval $cacheid=yes
6158 else
6159 eval $cacheid=no
6160 fi
6161 rm -f core conftest.err conftest.$ac_objext \
6162 conftest$ac_exeext conftest.$ac_ext
6163 fi
6164
6165
6166 CFLAGS="$xorg_testset_save_CFLAGS"
6167
6168 eval supported=\$$cacheid
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6170 $as_echo "$supported" >&6; }
6171 if test "$supported" = "yes" ; then
6172 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6173 found="yes"
6174 fi
6175 fi
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191 xorg_testset_save_CFLAGS="$CFLAGS"
6192
6193 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6196 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6197 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6198 $as_echo_n "(cached) " >&6
6199 else
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6202 int i;
6203 _ACEOF
6204 if ac_fn_c_try_compile "$LINENO"; then :
6205 xorg_cv_cc_flag_unknown_warning_option=yes
6206 else
6207 xorg_cv_cc_flag_unknown_warning_option=no
6208 fi
6209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210 fi
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6212 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6213 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6214 CFLAGS="$xorg_testset_save_CFLAGS"
6215 fi
6216
6217 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6220 fi
6221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6223 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6224 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6225 $as_echo_n "(cached) " >&6
6226 else
6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6229 int i;
6230 _ACEOF
6231 if ac_fn_c_try_compile "$LINENO"; then :
6232 xorg_cv_cc_flag_unused_command_line_argument=yes
6233 else
6234 xorg_cv_cc_flag_unused_command_line_argument=no
6235 fi
6236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6237 fi
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6239 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6241 CFLAGS="$xorg_testset_save_CFLAGS"
6242 fi
6243
6244 found="no"
6245
6246 if test $found = "no" ; then
6247 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6249 fi
6250
6251 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6253 fi
6254
6255 CFLAGS="$CFLAGS -Wcast-qual"
6256
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6258 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6259 cacheid=xorg_cv_cc_flag__Wcast_qual
6260 if eval \${$cacheid+:} false; then :
6261 $as_echo_n "(cached) " >&6
6262 else
6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h. */
6265 int i;
6266 int
6267 main ()
6268 {
6269
6270 ;
6271 return 0;
6272 }
6273 _ACEOF
6274 if ac_fn_c_try_link "$LINENO"; then :
6275 eval $cacheid=yes
6276 else
6277 eval $cacheid=no
6278 fi
6279 rm -f core conftest.err conftest.$ac_objext \
6280 conftest$ac_exeext conftest.$ac_ext
6281 fi
6282
6283
6284 CFLAGS="$xorg_testset_save_CFLAGS"
6285
6286 eval supported=\$$cacheid
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6288 $as_echo "$supported" >&6; }
6289 if test "$supported" = "yes" ; then
6290 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6291 found="yes"
6292 fi
6293 fi
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309 xorg_testset_save_CFLAGS="$CFLAGS"
6310
6311 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6314 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6315 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6316 $as_echo_n "(cached) " >&6
6317 else
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h. */
6320 int i;
6321 _ACEOF
6322 if ac_fn_c_try_compile "$LINENO"; then :
6323 xorg_cv_cc_flag_unknown_warning_option=yes
6324 else
6325 xorg_cv_cc_flag_unknown_warning_option=no
6326 fi
6327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6328 fi
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6330 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6332 CFLAGS="$xorg_testset_save_CFLAGS"
6333 fi
6334
6335 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6338 fi
6339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6341 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6342 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6343 $as_echo_n "(cached) " >&6
6344 else
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6347 int i;
6348 _ACEOF
6349 if ac_fn_c_try_compile "$LINENO"; then :
6350 xorg_cv_cc_flag_unused_command_line_argument=yes
6351 else
6352 xorg_cv_cc_flag_unused_command_line_argument=no
6353 fi
6354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355 fi
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6357 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6359 CFLAGS="$xorg_testset_save_CFLAGS"
6360 fi
6361
6362 found="no"
6363
6364 if test $found = "no" ; then
6365 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6367 fi
6368
6369 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6371 fi
6372
6373 CFLAGS="$CFLAGS -Wmissing-noreturn"
6374
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6376 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6377 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6378 if eval \${$cacheid+:} false; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6383 int i;
6384 int
6385 main ()
6386 {
6387
6388 ;
6389 return 0;
6390 }
6391 _ACEOF
6392 if ac_fn_c_try_link "$LINENO"; then :
6393 eval $cacheid=yes
6394 else
6395 eval $cacheid=no
6396 fi
6397 rm -f core conftest.err conftest.$ac_objext \
6398 conftest$ac_exeext conftest.$ac_ext
6399 fi
6400
6401
6402 CFLAGS="$xorg_testset_save_CFLAGS"
6403
6404 eval supported=\$$cacheid
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6406 $as_echo "$supported" >&6; }
6407 if test "$supported" = "yes" ; then
6408 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6409 found="yes"
6410 fi
6411 fi
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427 xorg_testset_save_CFLAGS="$CFLAGS"
6428
6429 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6432 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6433 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6434 $as_echo_n "(cached) " >&6
6435 else
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6438 int i;
6439 _ACEOF
6440 if ac_fn_c_try_compile "$LINENO"; then :
6441 xorg_cv_cc_flag_unknown_warning_option=yes
6442 else
6443 xorg_cv_cc_flag_unknown_warning_option=no
6444 fi
6445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6446 fi
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6448 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6450 CFLAGS="$xorg_testset_save_CFLAGS"
6451 fi
6452
6453 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6456 fi
6457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6459 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6460 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6465 int i;
6466 _ACEOF
6467 if ac_fn_c_try_compile "$LINENO"; then :
6468 xorg_cv_cc_flag_unused_command_line_argument=yes
6469 else
6470 xorg_cv_cc_flag_unused_command_line_argument=no
6471 fi
6472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6473 fi
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6475 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6477 CFLAGS="$xorg_testset_save_CFLAGS"
6478 fi
6479
6480 found="no"
6481
6482 if test $found = "no" ; then
6483 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6485 fi
6486
6487 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6489 fi
6490
6491 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6492
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6494 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6495 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6496 if eval \${$cacheid+:} false; then :
6497 $as_echo_n "(cached) " >&6
6498 else
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6501 int i;
6502 int
6503 main ()
6504 {
6505
6506 ;
6507 return 0;
6508 }
6509 _ACEOF
6510 if ac_fn_c_try_link "$LINENO"; then :
6511 eval $cacheid=yes
6512 else
6513 eval $cacheid=no
6514 fi
6515 rm -f core conftest.err conftest.$ac_objext \
6516 conftest$ac_exeext conftest.$ac_ext
6517 fi
6518
6519
6520 CFLAGS="$xorg_testset_save_CFLAGS"
6521
6522 eval supported=\$$cacheid
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6524 $as_echo "$supported" >&6; }
6525 if test "$supported" = "yes" ; then
6526 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6527 found="yes"
6528 fi
6529 fi
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545 xorg_testset_save_CFLAGS="$CFLAGS"
6546
6547 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6550 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6551 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6552 $as_echo_n "(cached) " >&6
6553 else
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6556 int i;
6557 _ACEOF
6558 if ac_fn_c_try_compile "$LINENO"; then :
6559 xorg_cv_cc_flag_unknown_warning_option=yes
6560 else
6561 xorg_cv_cc_flag_unknown_warning_option=no
6562 fi
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 fi
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6566 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6568 CFLAGS="$xorg_testset_save_CFLAGS"
6569 fi
6570
6571 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6574 fi
6575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6577 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6578 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6579 $as_echo_n "(cached) " >&6
6580 else
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6583 int i;
6584 _ACEOF
6585 if ac_fn_c_try_compile "$LINENO"; then :
6586 xorg_cv_cc_flag_unused_command_line_argument=yes
6587 else
6588 xorg_cv_cc_flag_unused_command_line_argument=no
6589 fi
6590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6591 fi
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6593 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6594 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6595 CFLAGS="$xorg_testset_save_CFLAGS"
6596 fi
6597
6598 found="no"
6599
6600 if test $found = "no" ; then
6601 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6603 fi
6604
6605 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6607 fi
6608
6609 CFLAGS="$CFLAGS -Wredundant-decls"
6610
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6612 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6613 cacheid=xorg_cv_cc_flag__Wredundant_decls
6614 if eval \${$cacheid+:} false; then :
6615 $as_echo_n "(cached) " >&6
6616 else
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6619 int i;
6620 int
6621 main ()
6622 {
6623
6624 ;
6625 return 0;
6626 }
6627 _ACEOF
6628 if ac_fn_c_try_link "$LINENO"; then :
6629 eval $cacheid=yes
6630 else
6631 eval $cacheid=no
6632 fi
6633 rm -f core conftest.err conftest.$ac_objext \
6634 conftest$ac_exeext conftest.$ac_ext
6635 fi
6636
6637
6638 CFLAGS="$xorg_testset_save_CFLAGS"
6639
6640 eval supported=\$$cacheid
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6642 $as_echo "$supported" >&6; }
6643 if test "$supported" = "yes" ; then
6644 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6645 found="yes"
6646 fi
6647 fi
6648
6649
6650
6651 # These are currently disabled because they are noisy. They will be enabled
6652 # in the future once the codebase is sufficiently modernized to silence
6653 # them. For now, I don't want them to drown out the other warnings.
6654 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6655 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6656 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6657
6658 # Turn some warnings into errors, so we don't accidently get successful builds
6659 # when there are problems that should be fixed.
6660
6661 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675 xorg_testset_save_CFLAGS="$CFLAGS"
6676
6677 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6680 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6681 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6682 $as_echo_n "(cached) " >&6
6683 else
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6686 int i;
6687 _ACEOF
6688 if ac_fn_c_try_compile "$LINENO"; then :
6689 xorg_cv_cc_flag_unknown_warning_option=yes
6690 else
6691 xorg_cv_cc_flag_unknown_warning_option=no
6692 fi
6693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6694 fi
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6696 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6698 CFLAGS="$xorg_testset_save_CFLAGS"
6699 fi
6700
6701 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6704 fi
6705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6707 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6708 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h. */
6713 int i;
6714 _ACEOF
6715 if ac_fn_c_try_compile "$LINENO"; then :
6716 xorg_cv_cc_flag_unused_command_line_argument=yes
6717 else
6718 xorg_cv_cc_flag_unused_command_line_argument=no
6719 fi
6720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721 fi
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6723 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6725 CFLAGS="$xorg_testset_save_CFLAGS"
6726 fi
6727
6728 found="no"
6729
6730 if test $found = "no" ; then
6731 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6733 fi
6734
6735 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6737 fi
6738
6739 CFLAGS="$CFLAGS -Werror=implicit"
6740
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6742 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6743 cacheid=xorg_cv_cc_flag__Werror_implicit
6744 if eval \${$cacheid+:} false; then :
6745 $as_echo_n "(cached) " >&6
6746 else
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749 int i;
6750 int
6751 main ()
6752 {
6753
6754 ;
6755 return 0;
6756 }
6757 _ACEOF
6758 if ac_fn_c_try_link "$LINENO"; then :
6759 eval $cacheid=yes
6760 else
6761 eval $cacheid=no
6762 fi
6763 rm -f core conftest.err conftest.$ac_objext \
6764 conftest$ac_exeext conftest.$ac_ext
6765 fi
6766
6767
6768 CFLAGS="$xorg_testset_save_CFLAGS"
6769
6770 eval supported=\$$cacheid
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6772 $as_echo "$supported" >&6; }
6773 if test "$supported" = "yes" ; then
6774 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6775 found="yes"
6776 fi
6777 fi
6778
6779 if test $found = "no" ; then
6780 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6782 fi
6783
6784 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6786 fi
6787
6788 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6789
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6791 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6792 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6793 if eval \${$cacheid+:} false; then :
6794 $as_echo_n "(cached) " >&6
6795 else
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6798 int i;
6799 int
6800 main ()
6801 {
6802
6803 ;
6804 return 0;
6805 }
6806 _ACEOF
6807 if ac_fn_c_try_link "$LINENO"; then :
6808 eval $cacheid=yes
6809 else
6810 eval $cacheid=no
6811 fi
6812 rm -f core conftest.err conftest.$ac_objext \
6813 conftest$ac_exeext conftest.$ac_ext
6814 fi
6815
6816
6817 CFLAGS="$xorg_testset_save_CFLAGS"
6818
6819 eval supported=\$$cacheid
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6821 $as_echo "$supported" >&6; }
6822 if test "$supported" = "yes" ; then
6823 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6824 found="yes"
6825 fi
6826 fi
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842 xorg_testset_save_CFLAGS="$CFLAGS"
6843
6844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6847 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6848 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6849 $as_echo_n "(cached) " >&6
6850 else
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6853 int i;
6854 _ACEOF
6855 if ac_fn_c_try_compile "$LINENO"; then :
6856 xorg_cv_cc_flag_unknown_warning_option=yes
6857 else
6858 xorg_cv_cc_flag_unknown_warning_option=no
6859 fi
6860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861 fi
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6863 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6865 CFLAGS="$xorg_testset_save_CFLAGS"
6866 fi
6867
6868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6871 fi
6872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6874 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6875 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6876 $as_echo_n "(cached) " >&6
6877 else
6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6880 int i;
6881 _ACEOF
6882 if ac_fn_c_try_compile "$LINENO"; then :
6883 xorg_cv_cc_flag_unused_command_line_argument=yes
6884 else
6885 xorg_cv_cc_flag_unused_command_line_argument=no
6886 fi
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 fi
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6890 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6892 CFLAGS="$xorg_testset_save_CFLAGS"
6893 fi
6894
6895 found="no"
6896
6897 if test $found = "no" ; then
6898 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6900 fi
6901
6902 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6904 fi
6905
6906 CFLAGS="$CFLAGS -Werror=nonnull"
6907
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6909 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6910 cacheid=xorg_cv_cc_flag__Werror_nonnull
6911 if eval \${$cacheid+:} false; then :
6912 $as_echo_n "(cached) " >&6
6913 else
6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915 /* end confdefs.h. */
6916 int i;
6917 int
6918 main ()
6919 {
6920
6921 ;
6922 return 0;
6923 }
6924 _ACEOF
6925 if ac_fn_c_try_link "$LINENO"; then :
6926 eval $cacheid=yes
6927 else
6928 eval $cacheid=no
6929 fi
6930 rm -f core conftest.err conftest.$ac_objext \
6931 conftest$ac_exeext conftest.$ac_ext
6932 fi
6933
6934
6935 CFLAGS="$xorg_testset_save_CFLAGS"
6936
6937 eval supported=\$$cacheid
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6939 $as_echo "$supported" >&6; }
6940 if test "$supported" = "yes" ; then
6941 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6942 found="yes"
6943 fi
6944 fi
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960 xorg_testset_save_CFLAGS="$CFLAGS"
6961
6962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6965 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6966 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6967 $as_echo_n "(cached) " >&6
6968 else
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6971 int i;
6972 _ACEOF
6973 if ac_fn_c_try_compile "$LINENO"; then :
6974 xorg_cv_cc_flag_unknown_warning_option=yes
6975 else
6976 xorg_cv_cc_flag_unknown_warning_option=no
6977 fi
6978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6979 fi
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6981 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6983 CFLAGS="$xorg_testset_save_CFLAGS"
6984 fi
6985
6986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6989 fi
6990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6992 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6993 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6994 $as_echo_n "(cached) " >&6
6995 else
6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h. */
6998 int i;
6999 _ACEOF
7000 if ac_fn_c_try_compile "$LINENO"; then :
7001 xorg_cv_cc_flag_unused_command_line_argument=yes
7002 else
7003 xorg_cv_cc_flag_unused_command_line_argument=no
7004 fi
7005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006 fi
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7008 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7010 CFLAGS="$xorg_testset_save_CFLAGS"
7011 fi
7012
7013 found="no"
7014
7015 if test $found = "no" ; then
7016 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7018 fi
7019
7020 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7022 fi
7023
7024 CFLAGS="$CFLAGS -Werror=init-self"
7025
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7027 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7028 cacheid=xorg_cv_cc_flag__Werror_init_self
7029 if eval \${$cacheid+:} false; then :
7030 $as_echo_n "(cached) " >&6
7031 else
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7034 int i;
7035 int
7036 main ()
7037 {
7038
7039 ;
7040 return 0;
7041 }
7042 _ACEOF
7043 if ac_fn_c_try_link "$LINENO"; then :
7044 eval $cacheid=yes
7045 else
7046 eval $cacheid=no
7047 fi
7048 rm -f core conftest.err conftest.$ac_objext \
7049 conftest$ac_exeext conftest.$ac_ext
7050 fi
7051
7052
7053 CFLAGS="$xorg_testset_save_CFLAGS"
7054
7055 eval supported=\$$cacheid
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7057 $as_echo "$supported" >&6; }
7058 if test "$supported" = "yes" ; then
7059 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7060 found="yes"
7061 fi
7062 fi
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078 xorg_testset_save_CFLAGS="$CFLAGS"
7079
7080 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7083 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7084 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7085 $as_echo_n "(cached) " >&6
7086 else
7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h. */
7089 int i;
7090 _ACEOF
7091 if ac_fn_c_try_compile "$LINENO"; then :
7092 xorg_cv_cc_flag_unknown_warning_option=yes
7093 else
7094 xorg_cv_cc_flag_unknown_warning_option=no
7095 fi
7096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097 fi
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7099 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7101 CFLAGS="$xorg_testset_save_CFLAGS"
7102 fi
7103
7104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7107 fi
7108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7110 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7111 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7112 $as_echo_n "(cached) " >&6
7113 else
7114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h. */
7116 int i;
7117 _ACEOF
7118 if ac_fn_c_try_compile "$LINENO"; then :
7119 xorg_cv_cc_flag_unused_command_line_argument=yes
7120 else
7121 xorg_cv_cc_flag_unused_command_line_argument=no
7122 fi
7123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7124 fi
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7126 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7128 CFLAGS="$xorg_testset_save_CFLAGS"
7129 fi
7130
7131 found="no"
7132
7133 if test $found = "no" ; then
7134 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7136 fi
7137
7138 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7140 fi
7141
7142 CFLAGS="$CFLAGS -Werror=main"
7143
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7145 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7146 cacheid=xorg_cv_cc_flag__Werror_main
7147 if eval \${$cacheid+:} false; then :
7148 $as_echo_n "(cached) " >&6
7149 else
7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7152 int i;
7153 int
7154 main ()
7155 {
7156
7157 ;
7158 return 0;
7159 }
7160 _ACEOF
7161 if ac_fn_c_try_link "$LINENO"; then :
7162 eval $cacheid=yes
7163 else
7164 eval $cacheid=no
7165 fi
7166 rm -f core conftest.err conftest.$ac_objext \
7167 conftest$ac_exeext conftest.$ac_ext
7168 fi
7169
7170
7171 CFLAGS="$xorg_testset_save_CFLAGS"
7172
7173 eval supported=\$$cacheid
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7175 $as_echo "$supported" >&6; }
7176 if test "$supported" = "yes" ; then
7177 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7178 found="yes"
7179 fi
7180 fi
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196 xorg_testset_save_CFLAGS="$CFLAGS"
7197
7198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7201 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7202 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7203 $as_echo_n "(cached) " >&6
7204 else
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h. */
7207 int i;
7208 _ACEOF
7209 if ac_fn_c_try_compile "$LINENO"; then :
7210 xorg_cv_cc_flag_unknown_warning_option=yes
7211 else
7212 xorg_cv_cc_flag_unknown_warning_option=no
7213 fi
7214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7215 fi
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7217 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7219 CFLAGS="$xorg_testset_save_CFLAGS"
7220 fi
7221
7222 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7225 fi
7226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7228 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7229 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7230 $as_echo_n "(cached) " >&6
7231 else
7232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h. */
7234 int i;
7235 _ACEOF
7236 if ac_fn_c_try_compile "$LINENO"; then :
7237 xorg_cv_cc_flag_unused_command_line_argument=yes
7238 else
7239 xorg_cv_cc_flag_unused_command_line_argument=no
7240 fi
7241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242 fi
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7244 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7246 CFLAGS="$xorg_testset_save_CFLAGS"
7247 fi
7248
7249 found="no"
7250
7251 if test $found = "no" ; then
7252 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7254 fi
7255
7256 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7258 fi
7259
7260 CFLAGS="$CFLAGS -Werror=missing-braces"
7261
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7263 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7264 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7265 if eval \${$cacheid+:} false; then :
7266 $as_echo_n "(cached) " >&6
7267 else
7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7270 int i;
7271 int
7272 main ()
7273 {
7274
7275 ;
7276 return 0;
7277 }
7278 _ACEOF
7279 if ac_fn_c_try_link "$LINENO"; then :
7280 eval $cacheid=yes
7281 else
7282 eval $cacheid=no
7283 fi
7284 rm -f core conftest.err conftest.$ac_objext \
7285 conftest$ac_exeext conftest.$ac_ext
7286 fi
7287
7288
7289 CFLAGS="$xorg_testset_save_CFLAGS"
7290
7291 eval supported=\$$cacheid
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7293 $as_echo "$supported" >&6; }
7294 if test "$supported" = "yes" ; then
7295 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7296 found="yes"
7297 fi
7298 fi
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314 xorg_testset_save_CFLAGS="$CFLAGS"
7315
7316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7319 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7320 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7321 $as_echo_n "(cached) " >&6
7322 else
7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h. */
7325 int i;
7326 _ACEOF
7327 if ac_fn_c_try_compile "$LINENO"; then :
7328 xorg_cv_cc_flag_unknown_warning_option=yes
7329 else
7330 xorg_cv_cc_flag_unknown_warning_option=no
7331 fi
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333 fi
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7335 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7337 CFLAGS="$xorg_testset_save_CFLAGS"
7338 fi
7339
7340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7343 fi
7344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7346 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7347 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7348 $as_echo_n "(cached) " >&6
7349 else
7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351 /* end confdefs.h. */
7352 int i;
7353 _ACEOF
7354 if ac_fn_c_try_compile "$LINENO"; then :
7355 xorg_cv_cc_flag_unused_command_line_argument=yes
7356 else
7357 xorg_cv_cc_flag_unused_command_line_argument=no
7358 fi
7359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7360 fi
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7362 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7364 CFLAGS="$xorg_testset_save_CFLAGS"
7365 fi
7366
7367 found="no"
7368
7369 if test $found = "no" ; then
7370 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7372 fi
7373
7374 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7376 fi
7377
7378 CFLAGS="$CFLAGS -Werror=sequence-point"
7379
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7381 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7382 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7383 if eval \${$cacheid+:} false; then :
7384 $as_echo_n "(cached) " >&6
7385 else
7386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387 /* end confdefs.h. */
7388 int i;
7389 int
7390 main ()
7391 {
7392
7393 ;
7394 return 0;
7395 }
7396 _ACEOF
7397 if ac_fn_c_try_link "$LINENO"; then :
7398 eval $cacheid=yes
7399 else
7400 eval $cacheid=no
7401 fi
7402 rm -f core conftest.err conftest.$ac_objext \
7403 conftest$ac_exeext conftest.$ac_ext
7404 fi
7405
7406
7407 CFLAGS="$xorg_testset_save_CFLAGS"
7408
7409 eval supported=\$$cacheid
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7411 $as_echo "$supported" >&6; }
7412 if test "$supported" = "yes" ; then
7413 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7414 found="yes"
7415 fi
7416 fi
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432 xorg_testset_save_CFLAGS="$CFLAGS"
7433
7434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7437 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7438 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7439 $as_echo_n "(cached) " >&6
7440 else
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7443 int i;
7444 _ACEOF
7445 if ac_fn_c_try_compile "$LINENO"; then :
7446 xorg_cv_cc_flag_unknown_warning_option=yes
7447 else
7448 xorg_cv_cc_flag_unknown_warning_option=no
7449 fi
7450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451 fi
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7453 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7454 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7455 CFLAGS="$xorg_testset_save_CFLAGS"
7456 fi
7457
7458 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7461 fi
7462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7464 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7465 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7466 $as_echo_n "(cached) " >&6
7467 else
7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h. */
7470 int i;
7471 _ACEOF
7472 if ac_fn_c_try_compile "$LINENO"; then :
7473 xorg_cv_cc_flag_unused_command_line_argument=yes
7474 else
7475 xorg_cv_cc_flag_unused_command_line_argument=no
7476 fi
7477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478 fi
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7480 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7482 CFLAGS="$xorg_testset_save_CFLAGS"
7483 fi
7484
7485 found="no"
7486
7487 if test $found = "no" ; then
7488 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7490 fi
7491
7492 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7494 fi
7495
7496 CFLAGS="$CFLAGS -Werror=return-type"
7497
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7499 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7500 cacheid=xorg_cv_cc_flag__Werror_return_type
7501 if eval \${$cacheid+:} false; then :
7502 $as_echo_n "(cached) " >&6
7503 else
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 /* end confdefs.h. */
7506 int i;
7507 int
7508 main ()
7509 {
7510
7511 ;
7512 return 0;
7513 }
7514 _ACEOF
7515 if ac_fn_c_try_link "$LINENO"; then :
7516 eval $cacheid=yes
7517 else
7518 eval $cacheid=no
7519 fi
7520 rm -f core conftest.err conftest.$ac_objext \
7521 conftest$ac_exeext conftest.$ac_ext
7522 fi
7523
7524
7525 CFLAGS="$xorg_testset_save_CFLAGS"
7526
7527 eval supported=\$$cacheid
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7529 $as_echo "$supported" >&6; }
7530 if test "$supported" = "yes" ; then
7531 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7532 found="yes"
7533 fi
7534 fi
7535
7536 if test $found = "no" ; then
7537 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7539 fi
7540
7541 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7543 fi
7544
7545 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7546
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7548 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7549 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7550 if eval \${$cacheid+:} false; then :
7551 $as_echo_n "(cached) " >&6
7552 else
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7555 int i;
7556 int
7557 main ()
7558 {
7559
7560 ;
7561 return 0;
7562 }
7563 _ACEOF
7564 if ac_fn_c_try_link "$LINENO"; then :
7565 eval $cacheid=yes
7566 else
7567 eval $cacheid=no
7568 fi
7569 rm -f core conftest.err conftest.$ac_objext \
7570 conftest$ac_exeext conftest.$ac_ext
7571 fi
7572
7573
7574 CFLAGS="$xorg_testset_save_CFLAGS"
7575
7576 eval supported=\$$cacheid
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7578 $as_echo "$supported" >&6; }
7579 if test "$supported" = "yes" ; then
7580 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7581 found="yes"
7582 fi
7583 fi
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599 xorg_testset_save_CFLAGS="$CFLAGS"
7600
7601 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7604 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7605 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7606 $as_echo_n "(cached) " >&6
7607 else
7608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7609 /* end confdefs.h. */
7610 int i;
7611 _ACEOF
7612 if ac_fn_c_try_compile "$LINENO"; then :
7613 xorg_cv_cc_flag_unknown_warning_option=yes
7614 else
7615 xorg_cv_cc_flag_unknown_warning_option=no
7616 fi
7617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618 fi
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7620 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7622 CFLAGS="$xorg_testset_save_CFLAGS"
7623 fi
7624
7625 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7628 fi
7629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7631 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7632 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7633 $as_echo_n "(cached) " >&6
7634 else
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7637 int i;
7638 _ACEOF
7639 if ac_fn_c_try_compile "$LINENO"; then :
7640 xorg_cv_cc_flag_unused_command_line_argument=yes
7641 else
7642 xorg_cv_cc_flag_unused_command_line_argument=no
7643 fi
7644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7645 fi
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7647 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7649 CFLAGS="$xorg_testset_save_CFLAGS"
7650 fi
7651
7652 found="no"
7653
7654 if test $found = "no" ; then
7655 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7657 fi
7658
7659 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7661 fi
7662
7663 CFLAGS="$CFLAGS -Werror=trigraphs"
7664
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7666 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7667 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7668 if eval \${$cacheid+:} false; then :
7669 $as_echo_n "(cached) " >&6
7670 else
7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h. */
7673 int i;
7674 int
7675 main ()
7676 {
7677
7678 ;
7679 return 0;
7680 }
7681 _ACEOF
7682 if ac_fn_c_try_link "$LINENO"; then :
7683 eval $cacheid=yes
7684 else
7685 eval $cacheid=no
7686 fi
7687 rm -f core conftest.err conftest.$ac_objext \
7688 conftest$ac_exeext conftest.$ac_ext
7689 fi
7690
7691
7692 CFLAGS="$xorg_testset_save_CFLAGS"
7693
7694 eval supported=\$$cacheid
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7696 $as_echo "$supported" >&6; }
7697 if test "$supported" = "yes" ; then
7698 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7699 found="yes"
7700 fi
7701 fi
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717 xorg_testset_save_CFLAGS="$CFLAGS"
7718
7719 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7722 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7723 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7724 $as_echo_n "(cached) " >&6
7725 else
7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h. */
7728 int i;
7729 _ACEOF
7730 if ac_fn_c_try_compile "$LINENO"; then :
7731 xorg_cv_cc_flag_unknown_warning_option=yes
7732 else
7733 xorg_cv_cc_flag_unknown_warning_option=no
7734 fi
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7736 fi
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7738 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7740 CFLAGS="$xorg_testset_save_CFLAGS"
7741 fi
7742
7743 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7746 fi
7747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7749 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7750 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7751 $as_echo_n "(cached) " >&6
7752 else
7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754 /* end confdefs.h. */
7755 int i;
7756 _ACEOF
7757 if ac_fn_c_try_compile "$LINENO"; then :
7758 xorg_cv_cc_flag_unused_command_line_argument=yes
7759 else
7760 xorg_cv_cc_flag_unused_command_line_argument=no
7761 fi
7762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7763 fi
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7765 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7766 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7767 CFLAGS="$xorg_testset_save_CFLAGS"
7768 fi
7769
7770 found="no"
7771
7772 if test $found = "no" ; then
7773 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7775 fi
7776
7777 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7779 fi
7780
7781 CFLAGS="$CFLAGS -Werror=array-bounds"
7782
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7784 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7785 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7786 if eval \${$cacheid+:} false; then :
7787 $as_echo_n "(cached) " >&6
7788 else
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7791 int i;
7792 int
7793 main ()
7794 {
7795
7796 ;
7797 return 0;
7798 }
7799 _ACEOF
7800 if ac_fn_c_try_link "$LINENO"; then :
7801 eval $cacheid=yes
7802 else
7803 eval $cacheid=no
7804 fi
7805 rm -f core conftest.err conftest.$ac_objext \
7806 conftest$ac_exeext conftest.$ac_ext
7807 fi
7808
7809
7810 CFLAGS="$xorg_testset_save_CFLAGS"
7811
7812 eval supported=\$$cacheid
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7814 $as_echo "$supported" >&6; }
7815 if test "$supported" = "yes" ; then
7816 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7817 found="yes"
7818 fi
7819 fi
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835 xorg_testset_save_CFLAGS="$CFLAGS"
7836
7837 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7840 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7841 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7842 $as_echo_n "(cached) " >&6
7843 else
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7846 int i;
7847 _ACEOF
7848 if ac_fn_c_try_compile "$LINENO"; then :
7849 xorg_cv_cc_flag_unknown_warning_option=yes
7850 else
7851 xorg_cv_cc_flag_unknown_warning_option=no
7852 fi
7853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7854 fi
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7856 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7858 CFLAGS="$xorg_testset_save_CFLAGS"
7859 fi
7860
7861 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7864 fi
7865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7867 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7868 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7869 $as_echo_n "(cached) " >&6
7870 else
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7873 int i;
7874 _ACEOF
7875 if ac_fn_c_try_compile "$LINENO"; then :
7876 xorg_cv_cc_flag_unused_command_line_argument=yes
7877 else
7878 xorg_cv_cc_flag_unused_command_line_argument=no
7879 fi
7880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7881 fi
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7883 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7885 CFLAGS="$xorg_testset_save_CFLAGS"
7886 fi
7887
7888 found="no"
7889
7890 if test $found = "no" ; then
7891 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7893 fi
7894
7895 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7897 fi
7898
7899 CFLAGS="$CFLAGS -Werror=write-strings"
7900
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7902 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7903 cacheid=xorg_cv_cc_flag__Werror_write_strings
7904 if eval \${$cacheid+:} false; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7909 int i;
7910 int
7911 main ()
7912 {
7913
7914 ;
7915 return 0;
7916 }
7917 _ACEOF
7918 if ac_fn_c_try_link "$LINENO"; then :
7919 eval $cacheid=yes
7920 else
7921 eval $cacheid=no
7922 fi
7923 rm -f core conftest.err conftest.$ac_objext \
7924 conftest$ac_exeext conftest.$ac_ext
7925 fi
7926
7927
7928 CFLAGS="$xorg_testset_save_CFLAGS"
7929
7930 eval supported=\$$cacheid
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7932 $as_echo "$supported" >&6; }
7933 if test "$supported" = "yes" ; then
7934 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7935 found="yes"
7936 fi
7937 fi
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953 xorg_testset_save_CFLAGS="$CFLAGS"
7954
7955 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7958 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7959 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7960 $as_echo_n "(cached) " >&6
7961 else
7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963 /* end confdefs.h. */
7964 int i;
7965 _ACEOF
7966 if ac_fn_c_try_compile "$LINENO"; then :
7967 xorg_cv_cc_flag_unknown_warning_option=yes
7968 else
7969 xorg_cv_cc_flag_unknown_warning_option=no
7970 fi
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7972 fi
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7974 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7976 CFLAGS="$xorg_testset_save_CFLAGS"
7977 fi
7978
7979 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7982 fi
7983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7985 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7986 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7987 $as_echo_n "(cached) " >&6
7988 else
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7991 int i;
7992 _ACEOF
7993 if ac_fn_c_try_compile "$LINENO"; then :
7994 xorg_cv_cc_flag_unused_command_line_argument=yes
7995 else
7996 xorg_cv_cc_flag_unused_command_line_argument=no
7997 fi
7998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7999 fi
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8001 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8003 CFLAGS="$xorg_testset_save_CFLAGS"
8004 fi
8005
8006 found="no"
8007
8008 if test $found = "no" ; then
8009 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8011 fi
8012
8013 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8015 fi
8016
8017 CFLAGS="$CFLAGS -Werror=address"
8018
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8020 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8021 cacheid=xorg_cv_cc_flag__Werror_address
8022 if eval \${$cacheid+:} false; then :
8023 $as_echo_n "(cached) " >&6
8024 else
8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026 /* end confdefs.h. */
8027 int i;
8028 int
8029 main ()
8030 {
8031
8032 ;
8033 return 0;
8034 }
8035 _ACEOF
8036 if ac_fn_c_try_link "$LINENO"; then :
8037 eval $cacheid=yes
8038 else
8039 eval $cacheid=no
8040 fi
8041 rm -f core conftest.err conftest.$ac_objext \
8042 conftest$ac_exeext conftest.$ac_ext
8043 fi
8044
8045
8046 CFLAGS="$xorg_testset_save_CFLAGS"
8047
8048 eval supported=\$$cacheid
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8050 $as_echo "$supported" >&6; }
8051 if test "$supported" = "yes" ; then
8052 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8053 found="yes"
8054 fi
8055 fi
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071 xorg_testset_save_CFLAGS="$CFLAGS"
8072
8073 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8076 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8077 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8081 /* end confdefs.h. */
8082 int i;
8083 _ACEOF
8084 if ac_fn_c_try_compile "$LINENO"; then :
8085 xorg_cv_cc_flag_unknown_warning_option=yes
8086 else
8087 xorg_cv_cc_flag_unknown_warning_option=no
8088 fi
8089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090 fi
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8092 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8094 CFLAGS="$xorg_testset_save_CFLAGS"
8095 fi
8096
8097 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8100 fi
8101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8103 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8104 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8105 $as_echo_n "(cached) " >&6
8106 else
8107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h. */
8109 int i;
8110 _ACEOF
8111 if ac_fn_c_try_compile "$LINENO"; then :
8112 xorg_cv_cc_flag_unused_command_line_argument=yes
8113 else
8114 xorg_cv_cc_flag_unused_command_line_argument=no
8115 fi
8116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8117 fi
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8119 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8121 CFLAGS="$xorg_testset_save_CFLAGS"
8122 fi
8123
8124 found="no"
8125
8126 if test $found = "no" ; then
8127 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8129 fi
8130
8131 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8133 fi
8134
8135 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8136
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8138 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8139 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8140 if eval \${$cacheid+:} false; then :
8141 $as_echo_n "(cached) " >&6
8142 else
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h. */
8145 int i;
8146 int
8147 main ()
8148 {
8149
8150 ;
8151 return 0;
8152 }
8153 _ACEOF
8154 if ac_fn_c_try_link "$LINENO"; then :
8155 eval $cacheid=yes
8156 else
8157 eval $cacheid=no
8158 fi
8159 rm -f core conftest.err conftest.$ac_objext \
8160 conftest$ac_exeext conftest.$ac_ext
8161 fi
8162
8163
8164 CFLAGS="$xorg_testset_save_CFLAGS"
8165
8166 eval supported=\$$cacheid
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8168 $as_echo "$supported" >&6; }
8169 if test "$supported" = "yes" ; then
8170 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8171 found="yes"
8172 fi
8173 fi
8174
8175 if test $found = "no" ; then
8176 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8178 fi
8179
8180 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8182 fi
8183
8184 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8185
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8187 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8188 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8189 if eval \${$cacheid+:} false; then :
8190 $as_echo_n "(cached) " >&6
8191 else
8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8194 int i;
8195 int
8196 main ()
8197 {
8198
8199 ;
8200 return 0;
8201 }
8202 _ACEOF
8203 if ac_fn_c_try_link "$LINENO"; then :
8204 eval $cacheid=yes
8205 else
8206 eval $cacheid=no
8207 fi
8208 rm -f core conftest.err conftest.$ac_objext \
8209 conftest$ac_exeext conftest.$ac_ext
8210 fi
8211
8212
8213 CFLAGS="$xorg_testset_save_CFLAGS"
8214
8215 eval supported=\$$cacheid
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8217 $as_echo "$supported" >&6; }
8218 if test "$supported" = "yes" ; then
8219 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8220 found="yes"
8221 fi
8222 fi
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238 xorg_testset_save_CFLAGS="$CFLAGS"
8239
8240 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8243 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8244 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8245 $as_echo_n "(cached) " >&6
8246 else
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h. */
8249 int i;
8250 _ACEOF
8251 if ac_fn_c_try_compile "$LINENO"; then :
8252 xorg_cv_cc_flag_unknown_warning_option=yes
8253 else
8254 xorg_cv_cc_flag_unknown_warning_option=no
8255 fi
8256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8257 fi
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8259 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8261 CFLAGS="$xorg_testset_save_CFLAGS"
8262 fi
8263
8264 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8267 fi
8268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8270 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8271 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8272 $as_echo_n "(cached) " >&6
8273 else
8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275 /* end confdefs.h. */
8276 int i;
8277 _ACEOF
8278 if ac_fn_c_try_compile "$LINENO"; then :
8279 xorg_cv_cc_flag_unused_command_line_argument=yes
8280 else
8281 xorg_cv_cc_flag_unused_command_line_argument=no
8282 fi
8283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8284 fi
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8286 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8288 CFLAGS="$xorg_testset_save_CFLAGS"
8289 fi
8290
8291 found="no"
8292
8293 if test $found = "no" ; then
8294 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8296 fi
8297
8298 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8300 fi
8301
8302 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8303
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8305 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8306 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8307 if eval \${$cacheid+:} false; then :
8308 $as_echo_n "(cached) " >&6
8309 else
8310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8311 /* end confdefs.h. */
8312 int i;
8313 int
8314 main ()
8315 {
8316
8317 ;
8318 return 0;
8319 }
8320 _ACEOF
8321 if ac_fn_c_try_link "$LINENO"; then :
8322 eval $cacheid=yes
8323 else
8324 eval $cacheid=no
8325 fi
8326 rm -f core conftest.err conftest.$ac_objext \
8327 conftest$ac_exeext conftest.$ac_ext
8328 fi
8329
8330
8331 CFLAGS="$xorg_testset_save_CFLAGS"
8332
8333 eval supported=\$$cacheid
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8335 $as_echo "$supported" >&6; }
8336 if test "$supported" = "yes" ; then
8337 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8338 found="yes"
8339 fi
8340 fi
8341
8342 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8343 else
8344 { $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
8345 $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;}
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359 xorg_testset_save_CFLAGS="$CFLAGS"
8360
8361 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8364 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8365 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8366 $as_echo_n "(cached) " >&6
8367 else
8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h. */
8370 int i;
8371 _ACEOF
8372 if ac_fn_c_try_compile "$LINENO"; then :
8373 xorg_cv_cc_flag_unknown_warning_option=yes
8374 else
8375 xorg_cv_cc_flag_unknown_warning_option=no
8376 fi
8377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8378 fi
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8380 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8382 CFLAGS="$xorg_testset_save_CFLAGS"
8383 fi
8384
8385 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8388 fi
8389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8391 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8392 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8393 $as_echo_n "(cached) " >&6
8394 else
8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 int i;
8398 _ACEOF
8399 if ac_fn_c_try_compile "$LINENO"; then :
8400 xorg_cv_cc_flag_unused_command_line_argument=yes
8401 else
8402 xorg_cv_cc_flag_unused_command_line_argument=no
8403 fi
8404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8405 fi
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8407 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8409 CFLAGS="$xorg_testset_save_CFLAGS"
8410 fi
8411
8412 found="no"
8413
8414 if test $found = "no" ; then
8415 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8417 fi
8418
8419 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8421 fi
8422
8423 CFLAGS="$CFLAGS -Wimplicit"
8424
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8426 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8427 cacheid=xorg_cv_cc_flag__Wimplicit
8428 if eval \${$cacheid+:} false; then :
8429 $as_echo_n "(cached) " >&6
8430 else
8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432 /* end confdefs.h. */
8433 int i;
8434 int
8435 main ()
8436 {
8437
8438 ;
8439 return 0;
8440 }
8441 _ACEOF
8442 if ac_fn_c_try_link "$LINENO"; then :
8443 eval $cacheid=yes
8444 else
8445 eval $cacheid=no
8446 fi
8447 rm -f core conftest.err conftest.$ac_objext \
8448 conftest$ac_exeext conftest.$ac_ext
8449 fi
8450
8451
8452 CFLAGS="$xorg_testset_save_CFLAGS"
8453
8454 eval supported=\$$cacheid
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8456 $as_echo "$supported" >&6; }
8457 if test "$supported" = "yes" ; then
8458 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8459 found="yes"
8460 fi
8461 fi
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477 xorg_testset_save_CFLAGS="$CFLAGS"
8478
8479 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8482 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8483 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8484 $as_echo_n "(cached) " >&6
8485 else
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 int i;
8489 _ACEOF
8490 if ac_fn_c_try_compile "$LINENO"; then :
8491 xorg_cv_cc_flag_unknown_warning_option=yes
8492 else
8493 xorg_cv_cc_flag_unknown_warning_option=no
8494 fi
8495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8496 fi
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8498 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8500 CFLAGS="$xorg_testset_save_CFLAGS"
8501 fi
8502
8503 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8506 fi
8507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8509 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8510 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8511 $as_echo_n "(cached) " >&6
8512 else
8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8515 int i;
8516 _ACEOF
8517 if ac_fn_c_try_compile "$LINENO"; then :
8518 xorg_cv_cc_flag_unused_command_line_argument=yes
8519 else
8520 xorg_cv_cc_flag_unused_command_line_argument=no
8521 fi
8522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8523 fi
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8525 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8527 CFLAGS="$xorg_testset_save_CFLAGS"
8528 fi
8529
8530 found="no"
8531
8532 if test $found = "no" ; then
8533 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8535 fi
8536
8537 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8539 fi
8540
8541 CFLAGS="$CFLAGS -Wnonnull"
8542
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8544 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8545 cacheid=xorg_cv_cc_flag__Wnonnull
8546 if eval \${$cacheid+:} false; then :
8547 $as_echo_n "(cached) " >&6
8548 else
8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8551 int i;
8552 int
8553 main ()
8554 {
8555
8556 ;
8557 return 0;
8558 }
8559 _ACEOF
8560 if ac_fn_c_try_link "$LINENO"; then :
8561 eval $cacheid=yes
8562 else
8563 eval $cacheid=no
8564 fi
8565 rm -f core conftest.err conftest.$ac_objext \
8566 conftest$ac_exeext conftest.$ac_ext
8567 fi
8568
8569
8570 CFLAGS="$xorg_testset_save_CFLAGS"
8571
8572 eval supported=\$$cacheid
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8574 $as_echo "$supported" >&6; }
8575 if test "$supported" = "yes" ; then
8576 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8577 found="yes"
8578 fi
8579 fi
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595 xorg_testset_save_CFLAGS="$CFLAGS"
8596
8597 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8600 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8601 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8602 $as_echo_n "(cached) " >&6
8603 else
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8606 int i;
8607 _ACEOF
8608 if ac_fn_c_try_compile "$LINENO"; then :
8609 xorg_cv_cc_flag_unknown_warning_option=yes
8610 else
8611 xorg_cv_cc_flag_unknown_warning_option=no
8612 fi
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 fi
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8616 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8618 CFLAGS="$xorg_testset_save_CFLAGS"
8619 fi
8620
8621 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8624 fi
8625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8627 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8628 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8629 $as_echo_n "(cached) " >&6
8630 else
8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8633 int i;
8634 _ACEOF
8635 if ac_fn_c_try_compile "$LINENO"; then :
8636 xorg_cv_cc_flag_unused_command_line_argument=yes
8637 else
8638 xorg_cv_cc_flag_unused_command_line_argument=no
8639 fi
8640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8641 fi
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8643 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8645 CFLAGS="$xorg_testset_save_CFLAGS"
8646 fi
8647
8648 found="no"
8649
8650 if test $found = "no" ; then
8651 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8653 fi
8654
8655 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8657 fi
8658
8659 CFLAGS="$CFLAGS -Winit-self"
8660
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8662 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8663 cacheid=xorg_cv_cc_flag__Winit_self
8664 if eval \${$cacheid+:} false; then :
8665 $as_echo_n "(cached) " >&6
8666 else
8667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8668 /* end confdefs.h. */
8669 int i;
8670 int
8671 main ()
8672 {
8673
8674 ;
8675 return 0;
8676 }
8677 _ACEOF
8678 if ac_fn_c_try_link "$LINENO"; then :
8679 eval $cacheid=yes
8680 else
8681 eval $cacheid=no
8682 fi
8683 rm -f core conftest.err conftest.$ac_objext \
8684 conftest$ac_exeext conftest.$ac_ext
8685 fi
8686
8687
8688 CFLAGS="$xorg_testset_save_CFLAGS"
8689
8690 eval supported=\$$cacheid
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8692 $as_echo "$supported" >&6; }
8693 if test "$supported" = "yes" ; then
8694 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8695 found="yes"
8696 fi
8697 fi
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713 xorg_testset_save_CFLAGS="$CFLAGS"
8714
8715 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8718 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8719 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8720 $as_echo_n "(cached) " >&6
8721 else
8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723 /* end confdefs.h. */
8724 int i;
8725 _ACEOF
8726 if ac_fn_c_try_compile "$LINENO"; then :
8727 xorg_cv_cc_flag_unknown_warning_option=yes
8728 else
8729 xorg_cv_cc_flag_unknown_warning_option=no
8730 fi
8731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732 fi
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8734 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8736 CFLAGS="$xorg_testset_save_CFLAGS"
8737 fi
8738
8739 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8742 fi
8743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8745 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8746 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8747 $as_echo_n "(cached) " >&6
8748 else
8749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750 /* end confdefs.h. */
8751 int i;
8752 _ACEOF
8753 if ac_fn_c_try_compile "$LINENO"; then :
8754 xorg_cv_cc_flag_unused_command_line_argument=yes
8755 else
8756 xorg_cv_cc_flag_unused_command_line_argument=no
8757 fi
8758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8759 fi
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8761 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8763 CFLAGS="$xorg_testset_save_CFLAGS"
8764 fi
8765
8766 found="no"
8767
8768 if test $found = "no" ; then
8769 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8771 fi
8772
8773 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8775 fi
8776
8777 CFLAGS="$CFLAGS -Wmain"
8778
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8780 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8781 cacheid=xorg_cv_cc_flag__Wmain
8782 if eval \${$cacheid+:} false; then :
8783 $as_echo_n "(cached) " >&6
8784 else
8785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786 /* end confdefs.h. */
8787 int i;
8788 int
8789 main ()
8790 {
8791
8792 ;
8793 return 0;
8794 }
8795 _ACEOF
8796 if ac_fn_c_try_link "$LINENO"; then :
8797 eval $cacheid=yes
8798 else
8799 eval $cacheid=no
8800 fi
8801 rm -f core conftest.err conftest.$ac_objext \
8802 conftest$ac_exeext conftest.$ac_ext
8803 fi
8804
8805
8806 CFLAGS="$xorg_testset_save_CFLAGS"
8807
8808 eval supported=\$$cacheid
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8810 $as_echo "$supported" >&6; }
8811 if test "$supported" = "yes" ; then
8812 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8813 found="yes"
8814 fi
8815 fi
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831 xorg_testset_save_CFLAGS="$CFLAGS"
8832
8833 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8836 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8837 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8838 $as_echo_n "(cached) " >&6
8839 else
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8842 int i;
8843 _ACEOF
8844 if ac_fn_c_try_compile "$LINENO"; then :
8845 xorg_cv_cc_flag_unknown_warning_option=yes
8846 else
8847 xorg_cv_cc_flag_unknown_warning_option=no
8848 fi
8849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8850 fi
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8852 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8854 CFLAGS="$xorg_testset_save_CFLAGS"
8855 fi
8856
8857 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8860 fi
8861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8863 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8864 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8865 $as_echo_n "(cached) " >&6
8866 else
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8869 int i;
8870 _ACEOF
8871 if ac_fn_c_try_compile "$LINENO"; then :
8872 xorg_cv_cc_flag_unused_command_line_argument=yes
8873 else
8874 xorg_cv_cc_flag_unused_command_line_argument=no
8875 fi
8876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8877 fi
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8879 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8881 CFLAGS="$xorg_testset_save_CFLAGS"
8882 fi
8883
8884 found="no"
8885
8886 if test $found = "no" ; then
8887 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8889 fi
8890
8891 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8893 fi
8894
8895 CFLAGS="$CFLAGS -Wmissing-braces"
8896
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8898 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8899 cacheid=xorg_cv_cc_flag__Wmissing_braces
8900 if eval \${$cacheid+:} false; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8905 int i;
8906 int
8907 main ()
8908 {
8909
8910 ;
8911 return 0;
8912 }
8913 _ACEOF
8914 if ac_fn_c_try_link "$LINENO"; then :
8915 eval $cacheid=yes
8916 else
8917 eval $cacheid=no
8918 fi
8919 rm -f core conftest.err conftest.$ac_objext \
8920 conftest$ac_exeext conftest.$ac_ext
8921 fi
8922
8923
8924 CFLAGS="$xorg_testset_save_CFLAGS"
8925
8926 eval supported=\$$cacheid
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8928 $as_echo "$supported" >&6; }
8929 if test "$supported" = "yes" ; then
8930 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8931 found="yes"
8932 fi
8933 fi
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949 xorg_testset_save_CFLAGS="$CFLAGS"
8950
8951 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8954 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8955 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8956 $as_echo_n "(cached) " >&6
8957 else
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8960 int i;
8961 _ACEOF
8962 if ac_fn_c_try_compile "$LINENO"; then :
8963 xorg_cv_cc_flag_unknown_warning_option=yes
8964 else
8965 xorg_cv_cc_flag_unknown_warning_option=no
8966 fi
8967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8968 fi
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8970 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8972 CFLAGS="$xorg_testset_save_CFLAGS"
8973 fi
8974
8975 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8978 fi
8979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8981 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8982 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8983 $as_echo_n "(cached) " >&6
8984 else
8985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8986 /* end confdefs.h. */
8987 int i;
8988 _ACEOF
8989 if ac_fn_c_try_compile "$LINENO"; then :
8990 xorg_cv_cc_flag_unused_command_line_argument=yes
8991 else
8992 xorg_cv_cc_flag_unused_command_line_argument=no
8993 fi
8994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8995 fi
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8997 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8999 CFLAGS="$xorg_testset_save_CFLAGS"
9000 fi
9001
9002 found="no"
9003
9004 if test $found = "no" ; then
9005 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9007 fi
9008
9009 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9011 fi
9012
9013 CFLAGS="$CFLAGS -Wsequence-point"
9014
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9016 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9017 cacheid=xorg_cv_cc_flag__Wsequence_point
9018 if eval \${$cacheid+:} false; then :
9019 $as_echo_n "(cached) " >&6
9020 else
9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022 /* end confdefs.h. */
9023 int i;
9024 int
9025 main ()
9026 {
9027
9028 ;
9029 return 0;
9030 }
9031 _ACEOF
9032 if ac_fn_c_try_link "$LINENO"; then :
9033 eval $cacheid=yes
9034 else
9035 eval $cacheid=no
9036 fi
9037 rm -f core conftest.err conftest.$ac_objext \
9038 conftest$ac_exeext conftest.$ac_ext
9039 fi
9040
9041
9042 CFLAGS="$xorg_testset_save_CFLAGS"
9043
9044 eval supported=\$$cacheid
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9046 $as_echo "$supported" >&6; }
9047 if test "$supported" = "yes" ; then
9048 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9049 found="yes"
9050 fi
9051 fi
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067 xorg_testset_save_CFLAGS="$CFLAGS"
9068
9069 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9072 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9073 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9074 $as_echo_n "(cached) " >&6
9075 else
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9078 int i;
9079 _ACEOF
9080 if ac_fn_c_try_compile "$LINENO"; then :
9081 xorg_cv_cc_flag_unknown_warning_option=yes
9082 else
9083 xorg_cv_cc_flag_unknown_warning_option=no
9084 fi
9085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9086 fi
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9088 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9089 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9090 CFLAGS="$xorg_testset_save_CFLAGS"
9091 fi
9092
9093 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9096 fi
9097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9099 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9100 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9101 $as_echo_n "(cached) " >&6
9102 else
9103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9104 /* end confdefs.h. */
9105 int i;
9106 _ACEOF
9107 if ac_fn_c_try_compile "$LINENO"; then :
9108 xorg_cv_cc_flag_unused_command_line_argument=yes
9109 else
9110 xorg_cv_cc_flag_unused_command_line_argument=no
9111 fi
9112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9113 fi
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9115 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9116 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9117 CFLAGS="$xorg_testset_save_CFLAGS"
9118 fi
9119
9120 found="no"
9121
9122 if test $found = "no" ; then
9123 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9125 fi
9126
9127 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9129 fi
9130
9131 CFLAGS="$CFLAGS -Wreturn-type"
9132
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9134 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9135 cacheid=xorg_cv_cc_flag__Wreturn_type
9136 if eval \${$cacheid+:} false; then :
9137 $as_echo_n "(cached) " >&6
9138 else
9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140 /* end confdefs.h. */
9141 int i;
9142 int
9143 main ()
9144 {
9145
9146 ;
9147 return 0;
9148 }
9149 _ACEOF
9150 if ac_fn_c_try_link "$LINENO"; then :
9151 eval $cacheid=yes
9152 else
9153 eval $cacheid=no
9154 fi
9155 rm -f core conftest.err conftest.$ac_objext \
9156 conftest$ac_exeext conftest.$ac_ext
9157 fi
9158
9159
9160 CFLAGS="$xorg_testset_save_CFLAGS"
9161
9162 eval supported=\$$cacheid
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9164 $as_echo "$supported" >&6; }
9165 if test "$supported" = "yes" ; then
9166 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9167 found="yes"
9168 fi
9169 fi
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185 xorg_testset_save_CFLAGS="$CFLAGS"
9186
9187 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9190 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9191 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9192 $as_echo_n "(cached) " >&6
9193 else
9194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9195 /* end confdefs.h. */
9196 int i;
9197 _ACEOF
9198 if ac_fn_c_try_compile "$LINENO"; then :
9199 xorg_cv_cc_flag_unknown_warning_option=yes
9200 else
9201 xorg_cv_cc_flag_unknown_warning_option=no
9202 fi
9203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9204 fi
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9206 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9208 CFLAGS="$xorg_testset_save_CFLAGS"
9209 fi
9210
9211 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9214 fi
9215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9217 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9218 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9219 $as_echo_n "(cached) " >&6
9220 else
9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222 /* end confdefs.h. */
9223 int i;
9224 _ACEOF
9225 if ac_fn_c_try_compile "$LINENO"; then :
9226 xorg_cv_cc_flag_unused_command_line_argument=yes
9227 else
9228 xorg_cv_cc_flag_unused_command_line_argument=no
9229 fi
9230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9231 fi
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9233 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9235 CFLAGS="$xorg_testset_save_CFLAGS"
9236 fi
9237
9238 found="no"
9239
9240 if test $found = "no" ; then
9241 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9243 fi
9244
9245 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9247 fi
9248
9249 CFLAGS="$CFLAGS -Wtrigraphs"
9250
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9252 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9253 cacheid=xorg_cv_cc_flag__Wtrigraphs
9254 if eval \${$cacheid+:} false; then :
9255 $as_echo_n "(cached) " >&6
9256 else
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h. */
9259 int i;
9260 int
9261 main ()
9262 {
9263
9264 ;
9265 return 0;
9266 }
9267 _ACEOF
9268 if ac_fn_c_try_link "$LINENO"; then :
9269 eval $cacheid=yes
9270 else
9271 eval $cacheid=no
9272 fi
9273 rm -f core conftest.err conftest.$ac_objext \
9274 conftest$ac_exeext conftest.$ac_ext
9275 fi
9276
9277
9278 CFLAGS="$xorg_testset_save_CFLAGS"
9279
9280 eval supported=\$$cacheid
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9282 $as_echo "$supported" >&6; }
9283 if test "$supported" = "yes" ; then
9284 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9285 found="yes"
9286 fi
9287 fi
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303 xorg_testset_save_CFLAGS="$CFLAGS"
9304
9305 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9308 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9309 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9310 $as_echo_n "(cached) " >&6
9311 else
9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313 /* end confdefs.h. */
9314 int i;
9315 _ACEOF
9316 if ac_fn_c_try_compile "$LINENO"; then :
9317 xorg_cv_cc_flag_unknown_warning_option=yes
9318 else
9319 xorg_cv_cc_flag_unknown_warning_option=no
9320 fi
9321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9322 fi
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9324 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9326 CFLAGS="$xorg_testset_save_CFLAGS"
9327 fi
9328
9329 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9332 fi
9333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9335 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9336 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9337 $as_echo_n "(cached) " >&6
9338 else
9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9340 /* end confdefs.h. */
9341 int i;
9342 _ACEOF
9343 if ac_fn_c_try_compile "$LINENO"; then :
9344 xorg_cv_cc_flag_unused_command_line_argument=yes
9345 else
9346 xorg_cv_cc_flag_unused_command_line_argument=no
9347 fi
9348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9349 fi
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9351 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9353 CFLAGS="$xorg_testset_save_CFLAGS"
9354 fi
9355
9356 found="no"
9357
9358 if test $found = "no" ; then
9359 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9361 fi
9362
9363 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9365 fi
9366
9367 CFLAGS="$CFLAGS -Warray-bounds"
9368
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9370 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9371 cacheid=xorg_cv_cc_flag__Warray_bounds
9372 if eval \${$cacheid+:} false; then :
9373 $as_echo_n "(cached) " >&6
9374 else
9375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376 /* end confdefs.h. */
9377 int i;
9378 int
9379 main ()
9380 {
9381
9382 ;
9383 return 0;
9384 }
9385 _ACEOF
9386 if ac_fn_c_try_link "$LINENO"; then :
9387 eval $cacheid=yes
9388 else
9389 eval $cacheid=no
9390 fi
9391 rm -f core conftest.err conftest.$ac_objext \
9392 conftest$ac_exeext conftest.$ac_ext
9393 fi
9394
9395
9396 CFLAGS="$xorg_testset_save_CFLAGS"
9397
9398 eval supported=\$$cacheid
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9400 $as_echo "$supported" >&6; }
9401 if test "$supported" = "yes" ; then
9402 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9403 found="yes"
9404 fi
9405 fi
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421 xorg_testset_save_CFLAGS="$CFLAGS"
9422
9423 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9426 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9427 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9428 $as_echo_n "(cached) " >&6
9429 else
9430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431 /* end confdefs.h. */
9432 int i;
9433 _ACEOF
9434 if ac_fn_c_try_compile "$LINENO"; then :
9435 xorg_cv_cc_flag_unknown_warning_option=yes
9436 else
9437 xorg_cv_cc_flag_unknown_warning_option=no
9438 fi
9439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9440 fi
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9442 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9444 CFLAGS="$xorg_testset_save_CFLAGS"
9445 fi
9446
9447 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9450 fi
9451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9453 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9454 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9455 $as_echo_n "(cached) " >&6
9456 else
9457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9458 /* end confdefs.h. */
9459 int i;
9460 _ACEOF
9461 if ac_fn_c_try_compile "$LINENO"; then :
9462 xorg_cv_cc_flag_unused_command_line_argument=yes
9463 else
9464 xorg_cv_cc_flag_unused_command_line_argument=no
9465 fi
9466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9467 fi
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9469 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9470 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9471 CFLAGS="$xorg_testset_save_CFLAGS"
9472 fi
9473
9474 found="no"
9475
9476 if test $found = "no" ; then
9477 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9479 fi
9480
9481 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9483 fi
9484
9485 CFLAGS="$CFLAGS -Wwrite-strings"
9486
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9488 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9489 cacheid=xorg_cv_cc_flag__Wwrite_strings
9490 if eval \${$cacheid+:} false; then :
9491 $as_echo_n "(cached) " >&6
9492 else
9493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9494 /* end confdefs.h. */
9495 int i;
9496 int
9497 main ()
9498 {
9499
9500 ;
9501 return 0;
9502 }
9503 _ACEOF
9504 if ac_fn_c_try_link "$LINENO"; then :
9505 eval $cacheid=yes
9506 else
9507 eval $cacheid=no
9508 fi
9509 rm -f core conftest.err conftest.$ac_objext \
9510 conftest$ac_exeext conftest.$ac_ext
9511 fi
9512
9513
9514 CFLAGS="$xorg_testset_save_CFLAGS"
9515
9516 eval supported=\$$cacheid
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9518 $as_echo "$supported" >&6; }
9519 if test "$supported" = "yes" ; then
9520 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9521 found="yes"
9522 fi
9523 fi
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539 xorg_testset_save_CFLAGS="$CFLAGS"
9540
9541 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9544 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9545 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9546 $as_echo_n "(cached) " >&6
9547 else
9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549 /* end confdefs.h. */
9550 int i;
9551 _ACEOF
9552 if ac_fn_c_try_compile "$LINENO"; then :
9553 xorg_cv_cc_flag_unknown_warning_option=yes
9554 else
9555 xorg_cv_cc_flag_unknown_warning_option=no
9556 fi
9557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9558 fi
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9560 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9562 CFLAGS="$xorg_testset_save_CFLAGS"
9563 fi
9564
9565 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9568 fi
9569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9571 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9572 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9573 $as_echo_n "(cached) " >&6
9574 else
9575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9576 /* end confdefs.h. */
9577 int i;
9578 _ACEOF
9579 if ac_fn_c_try_compile "$LINENO"; then :
9580 xorg_cv_cc_flag_unused_command_line_argument=yes
9581 else
9582 xorg_cv_cc_flag_unused_command_line_argument=no
9583 fi
9584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9585 fi
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9587 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9589 CFLAGS="$xorg_testset_save_CFLAGS"
9590 fi
9591
9592 found="no"
9593
9594 if test $found = "no" ; then
9595 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9597 fi
9598
9599 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9601 fi
9602
9603 CFLAGS="$CFLAGS -Waddress"
9604
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9606 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9607 cacheid=xorg_cv_cc_flag__Waddress
9608 if eval \${$cacheid+:} false; then :
9609 $as_echo_n "(cached) " >&6
9610 else
9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612 /* end confdefs.h. */
9613 int i;
9614 int
9615 main ()
9616 {
9617
9618 ;
9619 return 0;
9620 }
9621 _ACEOF
9622 if ac_fn_c_try_link "$LINENO"; then :
9623 eval $cacheid=yes
9624 else
9625 eval $cacheid=no
9626 fi
9627 rm -f core conftest.err conftest.$ac_objext \
9628 conftest$ac_exeext conftest.$ac_ext
9629 fi
9630
9631
9632 CFLAGS="$xorg_testset_save_CFLAGS"
9633
9634 eval supported=\$$cacheid
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9636 $as_echo "$supported" >&6; }
9637 if test "$supported" = "yes" ; then
9638 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9639 found="yes"
9640 fi
9641 fi
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657 xorg_testset_save_CFLAGS="$CFLAGS"
9658
9659 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9662 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9663 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9664 $as_echo_n "(cached) " >&6
9665 else
9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9667 /* end confdefs.h. */
9668 int i;
9669 _ACEOF
9670 if ac_fn_c_try_compile "$LINENO"; then :
9671 xorg_cv_cc_flag_unknown_warning_option=yes
9672 else
9673 xorg_cv_cc_flag_unknown_warning_option=no
9674 fi
9675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9676 fi
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9678 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9680 CFLAGS="$xorg_testset_save_CFLAGS"
9681 fi
9682
9683 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9686 fi
9687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9689 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9690 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9691 $as_echo_n "(cached) " >&6
9692 else
9693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9694 /* end confdefs.h. */
9695 int i;
9696 _ACEOF
9697 if ac_fn_c_try_compile "$LINENO"; then :
9698 xorg_cv_cc_flag_unused_command_line_argument=yes
9699 else
9700 xorg_cv_cc_flag_unused_command_line_argument=no
9701 fi
9702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9703 fi
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9705 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9707 CFLAGS="$xorg_testset_save_CFLAGS"
9708 fi
9709
9710 found="no"
9711
9712 if test $found = "no" ; then
9713 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9715 fi
9716
9717 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9719 fi
9720
9721 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9722
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9724 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9725 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9726 if eval \${$cacheid+:} false; then :
9727 $as_echo_n "(cached) " >&6
9728 else
9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730 /* end confdefs.h. */
9731 int i;
9732 int
9733 main ()
9734 {
9735
9736 ;
9737 return 0;
9738 }
9739 _ACEOF
9740 if ac_fn_c_try_link "$LINENO"; then :
9741 eval $cacheid=yes
9742 else
9743 eval $cacheid=no
9744 fi
9745 rm -f core conftest.err conftest.$ac_objext \
9746 conftest$ac_exeext conftest.$ac_ext
9747 fi
9748
9749
9750 CFLAGS="$xorg_testset_save_CFLAGS"
9751
9752 eval supported=\$$cacheid
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9754 $as_echo "$supported" >&6; }
9755 if test "$supported" = "yes" ; then
9756 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9757 found="yes"
9758 fi
9759 fi
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775 xorg_testset_save_CFLAGS="$CFLAGS"
9776
9777 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9780 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9781 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9782 $as_echo_n "(cached) " >&6
9783 else
9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h. */
9786 int i;
9787 _ACEOF
9788 if ac_fn_c_try_compile "$LINENO"; then :
9789 xorg_cv_cc_flag_unknown_warning_option=yes
9790 else
9791 xorg_cv_cc_flag_unknown_warning_option=no
9792 fi
9793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9794 fi
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9796 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9798 CFLAGS="$xorg_testset_save_CFLAGS"
9799 fi
9800
9801 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9804 fi
9805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9807 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9808 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9809 $as_echo_n "(cached) " >&6
9810 else
9811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812 /* end confdefs.h. */
9813 int i;
9814 _ACEOF
9815 if ac_fn_c_try_compile "$LINENO"; then :
9816 xorg_cv_cc_flag_unused_command_line_argument=yes
9817 else
9818 xorg_cv_cc_flag_unused_command_line_argument=no
9819 fi
9820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9821 fi
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9823 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9825 CFLAGS="$xorg_testset_save_CFLAGS"
9826 fi
9827
9828 found="no"
9829
9830 if test $found = "no" ; then
9831 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9833 fi
9834
9835 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9837 fi
9838
9839 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9840
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9842 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9843 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9844 if eval \${$cacheid+:} false; then :
9845 $as_echo_n "(cached) " >&6
9846 else
9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848 /* end confdefs.h. */
9849 int i;
9850 int
9851 main ()
9852 {
9853
9854 ;
9855 return 0;
9856 }
9857 _ACEOF
9858 if ac_fn_c_try_link "$LINENO"; then :
9859 eval $cacheid=yes
9860 else
9861 eval $cacheid=no
9862 fi
9863 rm -f core conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9865 fi
9866
9867
9868 CFLAGS="$xorg_testset_save_CFLAGS"
9869
9870 eval supported=\$$cacheid
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9872 $as_echo "$supported" >&6; }
9873 if test "$supported" = "yes" ; then
9874 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9875 found="yes"
9876 fi
9877 fi
9878
9879
9880 fi
9881
9882
9883
9884
9885
9886
9887
9888 CWARNFLAGS="$BASE_CFLAGS"
9889 if test "x$GCC" = xyes ; then
9890 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9891 fi
9892
9893
9894
9895
9896
9897
9898
9899
9900 # Check whether --enable-strict-compilation was given.
9901 if test "${enable_strict_compilation+set}" = set; then :
9902 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9903 else
9904 STRICT_COMPILE=no
9905 fi
9906
9907
9908
9909
9910
9911
9912 STRICT_CFLAGS=""
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926 xorg_testset_save_CFLAGS="$CFLAGS"
9927
9928 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9931 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9932 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9933 $as_echo_n "(cached) " >&6
9934 else
9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h. */
9937 int i;
9938 _ACEOF
9939 if ac_fn_c_try_compile "$LINENO"; then :
9940 xorg_cv_cc_flag_unknown_warning_option=yes
9941 else
9942 xorg_cv_cc_flag_unknown_warning_option=no
9943 fi
9944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9945 fi
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9947 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9949 CFLAGS="$xorg_testset_save_CFLAGS"
9950 fi
9951
9952 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9955 fi
9956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9958 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9959 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9960 $as_echo_n "(cached) " >&6
9961 else
9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h. */
9964 int i;
9965 _ACEOF
9966 if ac_fn_c_try_compile "$LINENO"; then :
9967 xorg_cv_cc_flag_unused_command_line_argument=yes
9968 else
9969 xorg_cv_cc_flag_unused_command_line_argument=no
9970 fi
9971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9972 fi
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9974 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9976 CFLAGS="$xorg_testset_save_CFLAGS"
9977 fi
9978
9979 found="no"
9980
9981 if test $found = "no" ; then
9982 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9984 fi
9985
9986 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9988 fi
9989
9990 CFLAGS="$CFLAGS -pedantic"
9991
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9993 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9994 cacheid=xorg_cv_cc_flag__pedantic
9995 if eval \${$cacheid+:} false; then :
9996 $as_echo_n "(cached) " >&6
9997 else
9998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9999 /* end confdefs.h. */
10000 int i;
10001 int
10002 main ()
10003 {
10004
10005 ;
10006 return 0;
10007 }
10008 _ACEOF
10009 if ac_fn_c_try_link "$LINENO"; then :
10010 eval $cacheid=yes
10011 else
10012 eval $cacheid=no
10013 fi
10014 rm -f core conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10016 fi
10017
10018
10019 CFLAGS="$xorg_testset_save_CFLAGS"
10020
10021 eval supported=\$$cacheid
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10023 $as_echo "$supported" >&6; }
10024 if test "$supported" = "yes" ; then
10025 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10026 found="yes"
10027 fi
10028 fi
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044 xorg_testset_save_CFLAGS="$CFLAGS"
10045
10046 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10049 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10050 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10051 $as_echo_n "(cached) " >&6
10052 else
10053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10054 /* end confdefs.h. */
10055 int i;
10056 _ACEOF
10057 if ac_fn_c_try_compile "$LINENO"; then :
10058 xorg_cv_cc_flag_unknown_warning_option=yes
10059 else
10060 xorg_cv_cc_flag_unknown_warning_option=no
10061 fi
10062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10063 fi
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10065 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10067 CFLAGS="$xorg_testset_save_CFLAGS"
10068 fi
10069
10070 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10073 fi
10074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10076 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10077 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10078 $as_echo_n "(cached) " >&6
10079 else
10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10082 int i;
10083 _ACEOF
10084 if ac_fn_c_try_compile "$LINENO"; then :
10085 xorg_cv_cc_flag_unused_command_line_argument=yes
10086 else
10087 xorg_cv_cc_flag_unused_command_line_argument=no
10088 fi
10089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10090 fi
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10092 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10094 CFLAGS="$xorg_testset_save_CFLAGS"
10095 fi
10096
10097 found="no"
10098
10099 if test $found = "no" ; then
10100 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10102 fi
10103
10104 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10106 fi
10107
10108 CFLAGS="$CFLAGS -Werror"
10109
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10111 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10112 cacheid=xorg_cv_cc_flag__Werror
10113 if eval \${$cacheid+:} false; then :
10114 $as_echo_n "(cached) " >&6
10115 else
10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h. */
10118 int i;
10119 int
10120 main ()
10121 {
10122
10123 ;
10124 return 0;
10125 }
10126 _ACEOF
10127 if ac_fn_c_try_link "$LINENO"; then :
10128 eval $cacheid=yes
10129 else
10130 eval $cacheid=no
10131 fi
10132 rm -f core conftest.err conftest.$ac_objext \
10133 conftest$ac_exeext conftest.$ac_ext
10134 fi
10135
10136
10137 CFLAGS="$xorg_testset_save_CFLAGS"
10138
10139 eval supported=\$$cacheid
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10141 $as_echo "$supported" >&6; }
10142 if test "$supported" = "yes" ; then
10143 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10144 found="yes"
10145 fi
10146 fi
10147
10148 if test $found = "no" ; then
10149 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10151 fi
10152
10153 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10155 fi
10156
10157 CFLAGS="$CFLAGS -errwarn"
10158
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10160 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10161 cacheid=xorg_cv_cc_flag__errwarn
10162 if eval \${$cacheid+:} false; then :
10163 $as_echo_n "(cached) " >&6
10164 else
10165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10166 /* end confdefs.h. */
10167 int i;
10168 int
10169 main ()
10170 {
10171
10172 ;
10173 return 0;
10174 }
10175 _ACEOF
10176 if ac_fn_c_try_link "$LINENO"; then :
10177 eval $cacheid=yes
10178 else
10179 eval $cacheid=no
10180 fi
10181 rm -f core conftest.err conftest.$ac_objext \
10182 conftest$ac_exeext conftest.$ac_ext
10183 fi
10184
10185
10186 CFLAGS="$xorg_testset_save_CFLAGS"
10187
10188 eval supported=\$$cacheid
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10190 $as_echo "$supported" >&6; }
10191 if test "$supported" = "yes" ; then
10192 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10193 found="yes"
10194 fi
10195 fi
10196
10197
10198
10199 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10200 # activate it with -Werror, so we add it here explicitly.
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214 xorg_testset_save_CFLAGS="$CFLAGS"
10215
10216 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10219 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10220 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10221 $as_echo_n "(cached) " >&6
10222 else
10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10225 int i;
10226 _ACEOF
10227 if ac_fn_c_try_compile "$LINENO"; then :
10228 xorg_cv_cc_flag_unknown_warning_option=yes
10229 else
10230 xorg_cv_cc_flag_unknown_warning_option=no
10231 fi
10232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10233 fi
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10235 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10237 CFLAGS="$xorg_testset_save_CFLAGS"
10238 fi
10239
10240 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10243 fi
10244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10246 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10247 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10248 $as_echo_n "(cached) " >&6
10249 else
10250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10251 /* end confdefs.h. */
10252 int i;
10253 _ACEOF
10254 if ac_fn_c_try_compile "$LINENO"; then :
10255 xorg_cv_cc_flag_unused_command_line_argument=yes
10256 else
10257 xorg_cv_cc_flag_unused_command_line_argument=no
10258 fi
10259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10260 fi
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10262 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10264 CFLAGS="$xorg_testset_save_CFLAGS"
10265 fi
10266
10267 found="no"
10268
10269 if test $found = "no" ; then
10270 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10272 fi
10273
10274 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10276 fi
10277
10278 CFLAGS="$CFLAGS -Werror=attributes"
10279
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10281 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10282 cacheid=xorg_cv_cc_flag__Werror_attributes
10283 if eval \${$cacheid+:} false; then :
10284 $as_echo_n "(cached) " >&6
10285 else
10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10288 int i;
10289 int
10290 main ()
10291 {
10292
10293 ;
10294 return 0;
10295 }
10296 _ACEOF
10297 if ac_fn_c_try_link "$LINENO"; then :
10298 eval $cacheid=yes
10299 else
10300 eval $cacheid=no
10301 fi
10302 rm -f core conftest.err conftest.$ac_objext \
10303 conftest$ac_exeext conftest.$ac_ext
10304 fi
10305
10306
10307 CFLAGS="$xorg_testset_save_CFLAGS"
10308
10309 eval supported=\$$cacheid
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10311 $as_echo "$supported" >&6; }
10312 if test "$supported" = "yes" ; then
10313 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10314 found="yes"
10315 fi
10316 fi
10317
10318
10319
10320 if test "x$STRICT_COMPILE" = "xyes"; then
10321 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10322 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10323 fi
10324
10325
10326
10327
10328
10329
10330 cat >>confdefs.h <<_ACEOF
10331 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10332 _ACEOF
10333
10334 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10335 if test "x$PVM" = "x"; then
10336 PVM="0"
10337 fi
10338
10339 cat >>confdefs.h <<_ACEOF
10340 #define PACKAGE_VERSION_MINOR $PVM
10341 _ACEOF
10342
10343 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10344 if test "x$PVP" = "x"; then
10345 PVP="0"
10346 fi
10347
10348 cat >>confdefs.h <<_ACEOF
10349 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10350 _ACEOF
10351
10352
10353
10354 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10355 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10356 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10357 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10358
10359
10360
10361
10362 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10363 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10364 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10365 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10366 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10367
10368
10369
10370
10371
10372
10373 if test x$APP_MAN_SUFFIX = x ; then
10374 APP_MAN_SUFFIX=1
10375 fi
10376 if test x$APP_MAN_DIR = x ; then
10377 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10378 fi
10379
10380 if test x$LIB_MAN_SUFFIX = x ; then
10381 LIB_MAN_SUFFIX=3
10382 fi
10383 if test x$LIB_MAN_DIR = x ; then
10384 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10385 fi
10386
10387 if test x$FILE_MAN_SUFFIX = x ; then
10388 case $host_os in
10389 solaris*) FILE_MAN_SUFFIX=4 ;;
10390 *) FILE_MAN_SUFFIX=5 ;;
10391 esac
10392 fi
10393 if test x$FILE_MAN_DIR = x ; then
10394 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10395 fi
10396
10397 if test x$MISC_MAN_SUFFIX = x ; then
10398 case $host_os in
10399 solaris*) MISC_MAN_SUFFIX=5 ;;
10400 *) MISC_MAN_SUFFIX=7 ;;
10401 esac
10402 fi
10403 if test x$MISC_MAN_DIR = x ; then
10404 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10405 fi
10406
10407 if test x$DRIVER_MAN_SUFFIX = x ; then
10408 case $host_os in
10409 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10410 *) DRIVER_MAN_SUFFIX=4 ;;
10411 esac
10412 fi
10413 if test x$DRIVER_MAN_DIR = x ; then
10414 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10415 fi
10416
10417 if test x$ADMIN_MAN_SUFFIX = x ; then
10418 case $host_os in
10419 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10420 *) ADMIN_MAN_SUFFIX=8 ;;
10421 esac
10422 fi
10423 if test x$ADMIN_MAN_DIR = x ; then
10424 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10425 fi
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441 XORG_MAN_PAGE="X Version 11"
10442
10443 MAN_SUBSTS="\
10444 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10445 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10446 -e 's|__xservername__|Xorg|g' \
10447 -e 's|__xconfigfile__|xorg.conf|g' \
10448 -e 's|__xorgconfdir__|xorg.conf.d|g' \
10449 -e 's|__projectroot__|\$(prefix)|g' \
10450 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10451 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10452 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10453 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10454 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10455 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10456 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10457
10458
10459
10460 # Check whether --enable-silent-rules was given.
10461 if test "${enable_silent_rules+set}" = set; then :
10462 enableval=$enable_silent_rules;
10463 fi
10464
10465 case $enable_silent_rules in # (((
10466 yes) AM_DEFAULT_VERBOSITY=0;;
10467 no) AM_DEFAULT_VERBOSITY=1;;
10468 *) AM_DEFAULT_VERBOSITY=0;;
10469 esac
10470 am_make=${MAKE-make}
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10472 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10473 if ${am_cv_make_support_nested_variables+:} false; then :
10474 $as_echo_n "(cached) " >&6
10475 else
10476 if $as_echo 'TRUE=$(BAR$(V))
10477 BAR0=false
10478 BAR1=true
10479 V=1
10480 am__doit:
10481 @$(TRUE)
10482 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10483 am_cv_make_support_nested_variables=yes
10484 else
10485 am_cv_make_support_nested_variables=no
10486 fi
10487 fi
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10489 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10490 if test $am_cv_make_support_nested_variables = yes; then
10491 AM_V='$(V)'
10492 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10493 else
10494 AM_V=$AM_DEFAULT_VERBOSITY
10495 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10496 fi
10497 AM_BACKSLASH='\'
10498
10499
10500
10501 # Obtain compiler/linker options for dependencies
10502
10503 pkg_failed=no
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINPUT" >&5
10505 $as_echo_n "checking for XINPUT... " >&6; }
10506
10507 if test -n "$XINPUT_CFLAGS"; then
10508 pkg_cv_XINPUT_CFLAGS="$XINPUT_CFLAGS"
10509 elif test -n "$PKG_CONFIG"; then
10510 if test -n "$PKG_CONFIG" && \
10511 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama\""; } >&5
10512 ($PKG_CONFIG --exists --print-errors "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama") 2>&5
10513 ac_status=$?
10514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10515 test $ac_status = 0; }; then
10516 pkg_cv_XINPUT_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama" 2>/dev/null`
10517 else
10518 pkg_failed=yes
10519 fi
10520 else
10521 pkg_failed=untried
10522 fi
10523 if test -n "$XINPUT_LIBS"; then
10524 pkg_cv_XINPUT_LIBS="$XINPUT_LIBS"
10525 elif test -n "$PKG_CONFIG"; then
10526 if test -n "$PKG_CONFIG" && \
10527 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama\""; } >&5
10528 ($PKG_CONFIG --exists --print-errors "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama") 2>&5
10529 ac_status=$?
10530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10531 test $ac_status = 0; }; then
10532 pkg_cv_XINPUT_LIBS=`$PKG_CONFIG --libs "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama" 2>/dev/null`
10533 else
10534 pkg_failed=yes
10535 fi
10536 else
10537 pkg_failed=untried
10538 fi
10539
10540
10541
10542 if test $pkg_failed = yes; then
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10544 $as_echo "no" >&6; }
10545
10546 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10547 _pkg_short_errors_supported=yes
10548 else
10549 _pkg_short_errors_supported=no
10550 fi
10551 if test $_pkg_short_errors_supported = yes; then
10552 XINPUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama" 2>&1`
10553 else
10554 XINPUT_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama" 2>&1`
10555 fi
10556 # Put the nasty error message in config.log where it belongs
10557 echo "$XINPUT_PKG_ERRORS" >&5
10558
10559 as_fn_error $? "Package requirements (x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama) were not met:
10560
10561 $XINPUT_PKG_ERRORS
10562
10563 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10564 installed software in a non-standard prefix.
10565
10566 Alternatively, you may set the environment variables XINPUT_CFLAGS
10567 and XINPUT_LIBS to avoid the need to call pkg-config.
10568 See the pkg-config man page for more details." "$LINENO" 5
10569
10570 elif test $pkg_failed = untried; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572 $as_echo "no" >&6; }
10573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10575 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10576 is in your PATH or set the PKG_CONFIG environment variable to the full
10577 path to pkg-config.
10578
10579 Alternatively, you may set the environment variables XINPUT_CFLAGS
10580 and XINPUT_LIBS to avoid the need to call pkg-config.
10581 See the pkg-config man page for more details.
10582
10583 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10584 See \`config.log' for more details" "$LINENO" 5; }
10585
10586 else
10587 XINPUT_CFLAGS=$pkg_cv_XINPUT_CFLAGS
10588 XINPUT_LIBS=$pkg_cv_XINPUT_LIBS
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10590 $as_echo "yes" >&6; }
10591
10592 fi
10593
10594 # XI2 support
10595
10596 pkg_failed=no
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI2" >&5
10598 $as_echo_n "checking for XI2... " >&6; }
10599
10600 if test -n "$XI2_CFLAGS"; then
10601 pkg_cv_XI2_CFLAGS="$XI2_CFLAGS"
10602 elif test -n "$PKG_CONFIG"; then
10603 if test -n "$PKG_CONFIG" && \
10604 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.2.99.2 inputproto >= 1.9.99.15\""; } >&5
10605 ($PKG_CONFIG --exists --print-errors "xi >= 1.2.99.2 inputproto >= 1.9.99.15") 2>&5
10606 ac_status=$?
10607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10608 test $ac_status = 0; }; then
10609 pkg_cv_XI2_CFLAGS=`$PKG_CONFIG --cflags "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>/dev/null`
10610 else
10611 pkg_failed=yes
10612 fi
10613 else
10614 pkg_failed=untried
10615 fi
10616 if test -n "$XI2_LIBS"; then
10617 pkg_cv_XI2_LIBS="$XI2_LIBS"
10618 elif test -n "$PKG_CONFIG"; then
10619 if test -n "$PKG_CONFIG" && \
10620 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.2.99.2 inputproto >= 1.9.99.15\""; } >&5
10621 ($PKG_CONFIG --exists --print-errors "xi >= 1.2.99.2 inputproto >= 1.9.99.15") 2>&5
10622 ac_status=$?
10623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10624 test $ac_status = 0; }; then
10625 pkg_cv_XI2_LIBS=`$PKG_CONFIG --libs "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>/dev/null`
10626 else
10627 pkg_failed=yes
10628 fi
10629 else
10630 pkg_failed=untried
10631 fi
10632
10633
10634
10635 if test $pkg_failed = yes; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637 $as_echo "no" >&6; }
10638
10639 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10640 _pkg_short_errors_supported=yes
10641 else
10642 _pkg_short_errors_supported=no
10643 fi
10644 if test $_pkg_short_errors_supported = yes; then
10645 XI2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>&1`
10646 else
10647 XI2_PKG_ERRORS=`$PKG_CONFIG --print-errors "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>&1`
10648 fi
10649 # Put the nasty error message in config.log where it belongs
10650 echo "$XI2_PKG_ERRORS" >&5
10651
10652 HAVE_XI2="no"
10653 elif test $pkg_failed = untried; then
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10655 $as_echo "no" >&6; }
10656 HAVE_XI2="no"
10657 else
10658 XI2_CFLAGS=$pkg_cv_XI2_CFLAGS
10659 XI2_LIBS=$pkg_cv_XI2_LIBS
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10661 $as_echo "yes" >&6; }
10662 HAVE_XI2="yes";
10663 $as_echo "#define HAVE_XI2 1" >>confdefs.h
10664
10665 fi;
10666 if test "$HAVE_XI2" = "yes" ; then
10667 HAVE_XI2_TRUE=
10668 HAVE_XI2_FALSE='#'
10669 else
10670 HAVE_XI2_TRUE='#'
10671 HAVE_XI2_FALSE=
10672 fi
10673
10674
10675
10676 # XI2.1 support
10677
10678 pkg_failed=no
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI21" >&5
10680 $as_echo_n "checking for XI21... " >&6; }
10681
10682 if test -n "$XI21_CFLAGS"; then
10683 pkg_cv_XI21_CFLAGS="$XI21_CFLAGS"
10684 elif test -n "$PKG_CONFIG"; then
10685 if test -n "$PKG_CONFIG" && \
10686 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.4.99.1 inputproto >= 2.0.99.1\""; } >&5
10687 ($PKG_CONFIG --exists --print-errors "xi >= 1.4.99.1 inputproto >= 2.0.99.1") 2>&5
10688 ac_status=$?
10689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10690 test $ac_status = 0; }; then
10691 pkg_cv_XI21_CFLAGS=`$PKG_CONFIG --cflags "xi >= 1.4.99.1 inputproto >= 2.0.99.1" 2>/dev/null`
10692 else
10693 pkg_failed=yes
10694 fi
10695 else
10696 pkg_failed=untried
10697 fi
10698 if test -n "$XI21_LIBS"; then
10699 pkg_cv_XI21_LIBS="$XI21_LIBS"
10700 elif test -n "$PKG_CONFIG"; then
10701 if test -n "$PKG_CONFIG" && \
10702 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.4.99.1 inputproto >= 2.0.99.1\""; } >&5
10703 ($PKG_CONFIG --exists --print-errors "xi >= 1.4.99.1 inputproto >= 2.0.99.1") 2>&5
10704 ac_status=$?
10705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10706 test $ac_status = 0; }; then
10707 pkg_cv_XI21_LIBS=`$PKG_CONFIG --libs "xi >= 1.4.99.1 inputproto >= 2.0.99.1" 2>/dev/null`
10708 else
10709 pkg_failed=yes
10710 fi
10711 else
10712 pkg_failed=untried
10713 fi
10714
10715
10716
10717 if test $pkg_failed = yes; then
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10719 $as_echo "no" >&6; }
10720
10721 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10722 _pkg_short_errors_supported=yes
10723 else
10724 _pkg_short_errors_supported=no
10725 fi
10726 if test $_pkg_short_errors_supported = yes; then
10727 XI21_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xi >= 1.4.99.1 inputproto >= 2.0.99.1" 2>&1`
10728 else
10729 XI21_PKG_ERRORS=`$PKG_CONFIG --print-errors "xi >= 1.4.99.1 inputproto >= 2.0.99.1" 2>&1`
10730 fi
10731 # Put the nasty error message in config.log where it belongs
10732 echo "$XI21_PKG_ERRORS" >&5
10733
10734 as_fn_error $? "Package requirements (xi >= 1.4.99.1 inputproto >= 2.0.99.1) were not met:
10735
10736 $XI21_PKG_ERRORS
10737
10738 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10739 installed software in a non-standard prefix.
10740
10741 Alternatively, you may set the environment variables XI21_CFLAGS
10742 and XI21_LIBS to avoid the need to call pkg-config.
10743 See the pkg-config man page for more details." "$LINENO" 5
10744
10745 elif test $pkg_failed = untried; then
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10747 $as_echo "no" >&6; }
10748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10750 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10751 is in your PATH or set the PKG_CONFIG environment variable to the full
10752 path to pkg-config.
10753
10754 Alternatively, you may set the environment variables XI21_CFLAGS
10755 and XI21_LIBS to avoid the need to call pkg-config.
10756 See the pkg-config man page for more details.
10757
10758 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10759 See \`config.log' for more details" "$LINENO" 5; }
10760
10761 else
10762 XI21_CFLAGS=$pkg_cv_XI21_CFLAGS
10763 XI21_LIBS=$pkg_cv_XI21_LIBS
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10765 $as_echo "yes" >&6; }
10766
10767 $as_echo "#define HAVE_XI21 1" >>confdefs.h
10768
10769 fi;
10770 # XI2.2 support
10771
10772 pkg_failed=no
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI22" >&5
10774 $as_echo_n "checking for XI22... " >&6; }
10775
10776 if test -n "$XI22_CFLAGS"; then
10777 pkg_cv_XI22_CFLAGS="$XI22_CFLAGS"
10778 elif test -n "$PKG_CONFIG"; then
10779 if test -n "$PKG_CONFIG" && \
10780 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.5.99.1 inputproto >= 2.1.99.1\""; } >&5
10781 ($PKG_CONFIG --exists --print-errors "xi >= 1.5.99.1 inputproto >= 2.1.99.1") 2>&5
10782 ac_status=$?
10783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10784 test $ac_status = 0; }; then
10785 pkg_cv_XI22_CFLAGS=`$PKG_CONFIG --cflags "xi >= 1.5.99.1 inputproto >= 2.1.99.1" 2>/dev/null`
10786 else
10787 pkg_failed=yes
10788 fi
10789 else
10790 pkg_failed=untried
10791 fi
10792 if test -n "$XI22_LIBS"; then
10793 pkg_cv_XI22_LIBS="$XI22_LIBS"
10794 elif test -n "$PKG_CONFIG"; then
10795 if test -n "$PKG_CONFIG" && \
10796 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.5.99.1 inputproto >= 2.1.99.1\""; } >&5
10797 ($PKG_CONFIG --exists --print-errors "xi >= 1.5.99.1 inputproto >= 2.1.99.1") 2>&5
10798 ac_status=$?
10799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10800 test $ac_status = 0; }; then
10801 pkg_cv_XI22_LIBS=`$PKG_CONFIG --libs "xi >= 1.5.99.1 inputproto >= 2.1.99.1" 2>/dev/null`
10802 else
10803 pkg_failed=yes
10804 fi
10805 else
10806 pkg_failed=untried
10807 fi
10808
10809
10810
10811 if test $pkg_failed = yes; then
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813 $as_echo "no" >&6; }
10814
10815 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10816 _pkg_short_errors_supported=yes
10817 else
10818 _pkg_short_errors_supported=no
10819 fi
10820 if test $_pkg_short_errors_supported = yes; then
10821 XI22_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xi >= 1.5.99.1 inputproto >= 2.1.99.1" 2>&1`
10822 else
10823 XI22_PKG_ERRORS=`$PKG_CONFIG --print-errors "xi >= 1.5.99.1 inputproto >= 2.1.99.1" 2>&1`
10824 fi
10825 # Put the nasty error message in config.log where it belongs
10826 echo "$XI22_PKG_ERRORS" >&5
10827
10828 as_fn_error $? "Package requirements (xi >= 1.5.99.1 inputproto >= 2.1.99.1) were not met:
10829
10830 $XI22_PKG_ERRORS
10831
10832 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10833 installed software in a non-standard prefix.
10834
10835 Alternatively, you may set the environment variables XI22_CFLAGS
10836 and XI22_LIBS to avoid the need to call pkg-config.
10837 See the pkg-config man page for more details." "$LINENO" 5
10838
10839 elif test $pkg_failed = untried; then
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841 $as_echo "no" >&6; }
10842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10844 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10845 is in your PATH or set the PKG_CONFIG environment variable to the full
10846 path to pkg-config.
10847
10848 Alternatively, you may set the environment variables XI22_CFLAGS
10849 and XI22_LIBS to avoid the need to call pkg-config.
10850 See the pkg-config man page for more details.
10851
10852 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10853 See \`config.log' for more details" "$LINENO" 5; }
10854
10855 else
10856 XI22_CFLAGS=$pkg_cv_XI22_CFLAGS
10857 XI22_LIBS=$pkg_cv_XI22_LIBS
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10859 $as_echo "yes" >&6; }
10860
10861 $as_echo "#define HAVE_XI22 1" >>confdefs.h
10862
10863 fi;
10864
10865 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
10866
10867 cat >confcache <<\_ACEOF
10868 # This file is a shell script that caches the results of configure
10869 # tests run on this system so they can be shared between configure
10870 # scripts and configure runs, see configure's option --config-cache.
10871 # It is not useful on other systems. If it contains results you don't
10872 # want to keep, you may remove or edit it.
10873 #
10874 # config.status only pays attention to the cache file if you give it
10875 # the --recheck option to rerun configure.
10876 #
10877 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10878 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10879 # following values.
10880
10881 _ACEOF
10882
10883 # The following way of writing the cache mishandles newlines in values,
10884 # but we know of no workaround that is simple, portable, and efficient.
10885 # So, we kill variables containing newlines.
10886 # Ultrix sh set writes to stderr and can't be redirected directly,
10887 # and sets the high bit in the cache file unless we assign to the vars.
10888 (
10889 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10890 eval ac_val=\$$ac_var
10891 case $ac_val in #(
10892 *${as_nl}*)
10893 case $ac_var in #(
10894 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10895 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10896 esac
10897 case $ac_var in #(
10898 _ | IFS | as_nl) ;; #(
10899 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10900 *) { eval $ac_var=; unset $ac_var;} ;;
10901 esac ;;
10902 esac
10903 done
10904
10905 (set) 2>&1 |
10906 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10907 *${as_nl}ac_space=\ *)
10908 # `set' does not quote correctly, so add quotes: double-quote
10909 # substitution turns \\\\ into \\, and sed turns \\ into \.
10910 sed -n \
10911 "s/'/'\\\\''/g;
10912 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10913 ;; #(
10914 *)
10915 # `set' quotes correctly as required by POSIX, so do not add quotes.
10916 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10917 ;;
10918 esac |
10919 sort
10920 ) |
10921 sed '
10922 /^ac_cv_env_/b end
10923 t clear
10924 :clear
10925 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10926 t end
10927 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10928 :end' >>confcache
10929 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10930 if test -w "$cache_file"; then
10931 if test "x$cache_file" != "x/dev/null"; then
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10933 $as_echo "$as_me: updating cache $cache_file" >&6;}
10934 if test ! -f "$cache_file" || test -h "$cache_file"; then
10935 cat confcache >"$cache_file"
10936 else
10937 case $cache_file in #(
10938 */* | ?:*)
10939 mv -f confcache "$cache_file"$$ &&
10940 mv -f "$cache_file"$$ "$cache_file" ;; #(
10941 *)
10942 mv -f confcache "$cache_file" ;;
10943 esac
10944 fi
10945 fi
10946 else
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10948 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10949 fi
10950 fi
10951 rm -f confcache
10952
10953 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10954 # Let make expand exec_prefix.
10955 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10956
10957 DEFS=-DHAVE_CONFIG_H
10958
10959 ac_libobjs=
10960 ac_ltlibobjs=
10961 U=
10962 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10963 # 1. Remove the extension, and $U if already installed.
10964 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10965 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10966 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10967 # will be set to the directory where LIBOBJS objects are built.
10968 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10969 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10970 done
10971 LIBOBJS=$ac_libobjs
10972
10973 LTLIBOBJS=$ac_ltlibobjs
10974
10975
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10977 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10978 if test -n "$am_sleep_pid"; then
10979 # Hide warnings about reused PIDs.
10980 wait $am_sleep_pid 2>/dev/null
10981 fi
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10983 $as_echo "done" >&6; }
10984 if test -n "$EXEEXT"; then
10985 am__EXEEXT_TRUE=
10986 am__EXEEXT_FALSE='#'
10987 else
10988 am__EXEEXT_TRUE='#'
10989 am__EXEEXT_FALSE=
10990 fi
10991
10992 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10993 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10995 fi
10996 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10997 as_fn_error $? "conditional \"AMDEP\" was never defined.
10998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10999 fi
11000 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11001 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11003 fi
11004 if test -z "${HAVE_XI2_TRUE}" && test -z "${HAVE_XI2_FALSE}"; then
11005 as_fn_error $? "conditional \"HAVE_XI2\" was never defined.
11006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11007 fi
11008
11009 : "${CONFIG_STATUS=./config.status}"
11010 ac_write_fail=0
11011 ac_clean_files_save=$ac_clean_files
11012 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11014 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11015 as_write_fail=0
11016 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11017 #! $SHELL
11018 # Generated by $as_me.
11019 # Run this file to recreate the current configuration.
11020 # Compiler output produced by configure, useful for debugging
11021 # configure, is in config.log if it exists.
11022
11023 debug=false
11024 ac_cs_recheck=false
11025 ac_cs_silent=false
11026
11027 SHELL=\${CONFIG_SHELL-$SHELL}
11028 export SHELL
11029 _ASEOF
11030 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11031 ## -------------------- ##
11032 ## M4sh Initialization. ##
11033 ## -------------------- ##
11034
11035 # Be more Bourne compatible
11036 DUALCASE=1; export DUALCASE # for MKS sh
11037 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11038 emulate sh
11039 NULLCMD=:
11040 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11041 # is contrary to our usage. Disable this feature.
11042 alias -g '${1+"$@"}'='"$@"'
11043 setopt NO_GLOB_SUBST
11044 else
11045 case `(set -o) 2>/dev/null` in #(
11046 *posix*) :
11047 set -o posix ;; #(
11048 *) :
11049 ;;
11050 esac
11051 fi
11052
11053
11054 as_nl='
11055 '
11056 export as_nl
11057 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11058 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11059 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11060 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11061 # Prefer a ksh shell builtin over an external printf program on Solaris,
11062 # but without wasting forks for bash or zsh.
11063 if test -z "$BASH_VERSION$ZSH_VERSION" \
11064 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11065 as_echo='print -r --'
11066 as_echo_n='print -rn --'
11067 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11068 as_echo='printf %s\n'
11069 as_echo_n='printf %s'
11070 else
11071 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11072 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11073 as_echo_n='/usr/ucb/echo -n'
11074 else
11075 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11076 as_echo_n_body='eval
11077 arg=$1;
11078 case $arg in #(
11079 *"$as_nl"*)
11080 expr "X$arg" : "X\\(.*\\)$as_nl";
11081 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11082 esac;
11083 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11084 '
11085 export as_echo_n_body
11086 as_echo_n='sh -c $as_echo_n_body as_echo'
11087 fi
11088 export as_echo_body
11089 as_echo='sh -c $as_echo_body as_echo'
11090 fi
11091
11092 # The user is always right.
11093 if test "${PATH_SEPARATOR+set}" != set; then
11094 PATH_SEPARATOR=:
11095 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11096 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11097 PATH_SEPARATOR=';'
11098 }
11099 fi
11100
11101
11102 # IFS
11103 # We need space, tab and new line, in precisely that order. Quoting is
11104 # there to prevent editors from complaining about space-tab.
11105 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11106 # splitting by setting IFS to empty value.)
11107 IFS=" "" $as_nl"
11108
11109 # Find who we are. Look in the path if we contain no directory separator.
11110 as_myself=
11111 case $0 in #((
11112 *[\\/]* ) as_myself=$0 ;;
11113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11114 for as_dir in $PATH
11115 do
11116 IFS=$as_save_IFS
11117 test -z "$as_dir" && as_dir=.
11118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11119 done
11120 IFS=$as_save_IFS
11121
11122 ;;
11123 esac
11124 # We did not find ourselves, most probably we were run as `sh COMMAND'
11125 # in which case we are not to be found in the path.
11126 if test "x$as_myself" = x; then
11127 as_myself=$0
11128 fi
11129 if test ! -f "$as_myself"; then
11130 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11131 exit 1
11132 fi
11133
11134 # Unset variables that we do not need and which cause bugs (e.g. in
11135 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11136 # suppresses any "Segmentation fault" message there. '((' could
11137 # trigger a bug in pdksh 5.2.14.
11138 for as_var in BASH_ENV ENV MAIL MAILPATH
11139 do eval test x\${$as_var+set} = xset \
11140 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11141 done
11142 PS1='$ '
11143 PS2='> '
11144 PS4='+ '
11145
11146 # NLS nuisances.
11147 LC_ALL=C
11148 export LC_ALL
11149 LANGUAGE=C
11150 export LANGUAGE
11151
11152 # CDPATH.
11153 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11154
11155
11156 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11157 # ----------------------------------------
11158 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11159 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11160 # script with STATUS, using 1 if that was 0.
11161 as_fn_error ()
11162 {
11163 as_status=$1; test $as_status -eq 0 && as_status=1
11164 if test "$4"; then
11165 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11166 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11167 fi
11168 $as_echo "$as_me: error: $2" >&2
11169 as_fn_exit $as_status
11170 } # as_fn_error
11171
11172
11173 # as_fn_set_status STATUS
11174 # -----------------------
11175 # Set $? to STATUS, without forking.
11176 as_fn_set_status ()
11177 {
11178 return $1
11179 } # as_fn_set_status
11180
11181 # as_fn_exit STATUS
11182 # -----------------
11183 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11184 as_fn_exit ()
11185 {
11186 set +e
11187 as_fn_set_status $1
11188 exit $1
11189 } # as_fn_exit
11190
11191 # as_fn_unset VAR
11192 # ---------------
11193 # Portably unset VAR.
11194 as_fn_unset ()
11195 {
11196 { eval $1=; unset $1;}
11197 }
11198 as_unset=as_fn_unset
11199 # as_fn_append VAR VALUE
11200 # ----------------------
11201 # Append the text in VALUE to the end of the definition contained in VAR. Take
11202 # advantage of any shell optimizations that allow amortized linear growth over
11203 # repeated appends, instead of the typical quadratic growth present in naive
11204 # implementations.
11205 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11206 eval 'as_fn_append ()
11207 {
11208 eval $1+=\$2
11209 }'
11210 else
11211 as_fn_append ()
11212 {
11213 eval $1=\$$1\$2
11214 }
11215 fi # as_fn_append
11216
11217 # as_fn_arith ARG...
11218 # ------------------
11219 # Perform arithmetic evaluation on the ARGs, and store the result in the
11220 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11221 # must be portable across $(()) and expr.
11222 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11223 eval 'as_fn_arith ()
11224 {
11225 as_val=$(( $* ))
11226 }'
11227 else
11228 as_fn_arith ()
11229 {
11230 as_val=`expr "$@" || test $? -eq 1`
11231 }
11232 fi # as_fn_arith
11233
11234
11235 if expr a : '\(a\)' >/dev/null 2>&1 &&
11236 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11237 as_expr=expr
11238 else
11239 as_expr=false
11240 fi
11241
11242 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11243 as_basename=basename
11244 else
11245 as_basename=false
11246 fi
11247
11248 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11249 as_dirname=dirname
11250 else
11251 as_dirname=false
11252 fi
11253
11254 as_me=`$as_basename -- "$0" ||
11255 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11256 X"$0" : 'X\(//\)$' \| \
11257 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11258 $as_echo X/"$0" |
11259 sed '/^.*\/\([^/][^/]*\)\/*$/{
11260 s//\1/
11261 q
11262 }
11263 /^X\/\(\/\/\)$/{
11264 s//\1/
11265 q
11266 }
11267 /^X\/\(\/\).*/{
11268 s//\1/
11269 q
11270 }
11271 s/.*/./; q'`
11272
11273 # Avoid depending upon Character Ranges.
11274 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11275 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11276 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11277 as_cr_digits='0123456789'
11278 as_cr_alnum=$as_cr_Letters$as_cr_digits
11279
11280 ECHO_C= ECHO_N= ECHO_T=
11281 case `echo -n x` in #(((((
11282 -n*)
11283 case `echo 'xy\c'` in
11284 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11285 xy) ECHO_C='\c';;
11286 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11287 ECHO_T=' ';;
11288 esac;;
11289 *)
11290 ECHO_N='-n';;
11291 esac
11292
11293 rm -f conf$$ conf$$.exe conf$$.file
11294 if test -d conf$$.dir; then
11295 rm -f conf$$.dir/conf$$.file
11296 else
11297 rm -f conf$$.dir
11298 mkdir conf$$.dir 2>/dev/null
11299 fi
11300 if (echo >conf$$.file) 2>/dev/null; then
11301 if ln -s conf$$.file conf$$ 2>/dev/null; then
11302 as_ln_s='ln -s'
11303 # ... but there are two gotchas:
11304 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11305 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11306 # In both cases, we have to default to `cp -pR'.
11307 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11308 as_ln_s='cp -pR'
11309 elif ln conf$$.file conf$$ 2>/dev/null; then
11310 as_ln_s=ln
11311 else
11312 as_ln_s='cp -pR'
11313 fi
11314 else
11315 as_ln_s='cp -pR'
11316 fi
11317 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11318 rmdir conf$$.dir 2>/dev/null
11319
11320
11321 # as_fn_mkdir_p
11322 # -------------
11323 # Create "$as_dir" as a directory, including parents if necessary.
11324 as_fn_mkdir_p ()
11325 {
11326
11327 case $as_dir in #(
11328 -*) as_dir=./$as_dir;;
11329 esac
11330 test -d "$as_dir" || eval $as_mkdir_p || {
11331 as_dirs=
11332 while :; do
11333 case $as_dir in #(
11334 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11335 *) as_qdir=$as_dir;;
11336 esac
11337 as_dirs="'$as_qdir' $as_dirs"
11338 as_dir=`$as_dirname -- "$as_dir" ||
11339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11340 X"$as_dir" : 'X\(//\)[^/]' \| \
11341 X"$as_dir" : 'X\(//\)$' \| \
11342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11343 $as_echo X"$as_dir" |
11344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11345 s//\1/
11346 q
11347 }
11348 /^X\(\/\/\)[^/].*/{
11349 s//\1/
11350 q
11351 }
11352 /^X\(\/\/\)$/{
11353 s//\1/
11354 q
11355 }
11356 /^X\(\/\).*/{
11357 s//\1/
11358 q
11359 }
11360 s/.*/./; q'`
11361 test -d "$as_dir" && break
11362 done
11363 test -z "$as_dirs" || eval "mkdir $as_dirs"
11364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11365
11366
11367 } # as_fn_mkdir_p
11368 if mkdir -p . 2>/dev/null; then
11369 as_mkdir_p='mkdir -p "$as_dir"'
11370 else
11371 test -d ./-p && rmdir ./-p
11372 as_mkdir_p=false
11373 fi
11374
11375
11376 # as_fn_executable_p FILE
11377 # -----------------------
11378 # Test if FILE is an executable regular file.
11379 as_fn_executable_p ()
11380 {
11381 test -f "$1" && test -x "$1"
11382 } # as_fn_executable_p
11383 as_test_x='test -x'
11384 as_executable_p=as_fn_executable_p
11385
11386 # Sed expression to map a string onto a valid CPP name.
11387 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11388
11389 # Sed expression to map a string onto a valid variable name.
11390 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11391
11392
11393 exec 6>&1
11394 ## ----------------------------------- ##
11395 ## Main body of $CONFIG_STATUS script. ##
11396 ## ----------------------------------- ##
11397 _ASEOF
11398 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11399
11400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11401 # Save the log message, to keep $0 and so on meaningful, and to
11402 # report actual input values of CONFIG_FILES etc. instead of their
11403 # values after options handling.
11404 ac_log="
11405 This file was extended by xinput $as_me 1.6.1, which was
11406 generated by GNU Autoconf 2.69. Invocation command line was
11407
11408 CONFIG_FILES = $CONFIG_FILES
11409 CONFIG_HEADERS = $CONFIG_HEADERS
11410 CONFIG_LINKS = $CONFIG_LINKS
11411 CONFIG_COMMANDS = $CONFIG_COMMANDS
11412 $ $0 $@
11413
11414 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11415 "
11416
11417 _ACEOF
11418
11419 case $ac_config_files in *"
11420 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11421 esac
11422
11423 case $ac_config_headers in *"
11424 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11425 esac
11426
11427
11428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11429 # Files that config.status was made for.
11430 config_files="$ac_config_files"
11431 config_headers="$ac_config_headers"
11432 config_commands="$ac_config_commands"
11433
11434 _ACEOF
11435
11436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11437 ac_cs_usage="\
11438 \`$as_me' instantiates files and other configuration actions
11439 from templates according to the current configuration. Unless the files
11440 and actions are specified as TAGs, all are instantiated by default.
11441
11442 Usage: $0 [OPTION]... [TAG]...
11443
11444 -h, --help print this help, then exit
11445 -V, --version print version number and configuration settings, then exit
11446 --config print configuration, then exit
11447 -q, --quiet, --silent
11448 do not print progress messages
11449 -d, --debug don't remove temporary files
11450 --recheck update $as_me by reconfiguring in the same conditions
11451 --file=FILE[:TEMPLATE]
11452 instantiate the configuration file FILE
11453 --header=FILE[:TEMPLATE]
11454 instantiate the configuration header FILE
11455
11456 Configuration files:
11457 $config_files
11458
11459 Configuration headers:
11460 $config_headers
11461
11462 Configuration commands:
11463 $config_commands
11464
11465 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11466
11467 _ACEOF
11468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11469 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11470 ac_cs_version="\\
11471 xinput config.status 1.6.1
11472 configured by $0, generated by GNU Autoconf 2.69,
11473 with options \\"\$ac_cs_config\\"
11474
11475 Copyright (C) 2012 Free Software Foundation, Inc.
11476 This config.status script is free software; the Free Software Foundation
11477 gives unlimited permission to copy, distribute and modify it."
11478
11479 ac_pwd='$ac_pwd'
11480 srcdir='$srcdir'
11481 INSTALL='$INSTALL'
11482 MKDIR_P='$MKDIR_P'
11483 AWK='$AWK'
11484 test -n "\$AWK" || AWK=awk
11485 _ACEOF
11486
11487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11488 # The default lists apply if the user does not specify any file.
11489 ac_need_defaults=:
11490 while test $# != 0
11491 do
11492 case $1 in
11493 --*=?*)
11494 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11495 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11496 ac_shift=:
11497 ;;
11498 --*=)
11499 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11500 ac_optarg=
11501 ac_shift=:
11502 ;;
11503 *)
11504 ac_option=$1
11505 ac_optarg=$2
11506 ac_shift=shift
11507 ;;
11508 esac
11509
11510 case $ac_option in
11511 # Handling of the options.
11512 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11513 ac_cs_recheck=: ;;
11514 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11515 $as_echo "$ac_cs_version"; exit ;;
11516 --config | --confi | --conf | --con | --co | --c )
11517 $as_echo "$ac_cs_config"; exit ;;
11518 --debug | --debu | --deb | --de | --d | -d )
11519 debug=: ;;
11520 --file | --fil | --fi | --f )
11521 $ac_shift
11522 case $ac_optarg in
11523 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11524 '') as_fn_error $? "missing file argument" ;;
11525 esac
11526 as_fn_append CONFIG_FILES " '$ac_optarg'"
11527 ac_need_defaults=false;;
11528 --header | --heade | --head | --hea )
11529 $ac_shift
11530 case $ac_optarg in
11531 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11532 esac
11533 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11534 ac_need_defaults=false;;
11535 --he | --h)
11536 # Conflict between --help and --header
11537 as_fn_error $? "ambiguous option: \`$1'
11538 Try \`$0 --help' for more information.";;
11539 --help | --hel | -h )
11540 $as_echo "$ac_cs_usage"; exit ;;
11541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11542 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11543 ac_cs_silent=: ;;
11544
11545 # This is an error.
11546 -*) as_fn_error $? "unrecognized option: \`$1'
11547 Try \`$0 --help' for more information." ;;
11548
11549 *) as_fn_append ac_config_targets " $1"
11550 ac_need_defaults=false ;;
11551
11552 esac
11553 shift
11554 done
11555
11556 ac_configure_extra_args=
11557
11558 if $ac_cs_silent; then
11559 exec 6>/dev/null
11560 ac_configure_extra_args="$ac_configure_extra_args --silent"
11561 fi
11562
11563 _ACEOF
11564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11565 if \$ac_cs_recheck; then
11566 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11567 shift
11568 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11569 CONFIG_SHELL='$SHELL'
11570 export CONFIG_SHELL
11571 exec "\$@"
11572 fi
11573
11574 _ACEOF
11575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11576 exec 5>>config.log
11577 {
11578 echo
11579 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11580 ## Running $as_me. ##
11581 _ASBOX
11582 $as_echo "$ac_log"
11583 } >&5
11584
11585 _ACEOF
11586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11587 #
11588 # INIT-COMMANDS
11589 #
11590 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11591
11592 _ACEOF
11593
11594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11595
11596 # Handling of arguments.
11597 for ac_config_target in $ac_config_targets
11598 do
11599 case $ac_config_target in
11600 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11601 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11602 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11603 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11604 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11605
11606 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11607 esac
11608 done
11609
11610
11611 # If the user did not use the arguments to specify the items to instantiate,
11612 # then the envvar interface is used. Set only those that are not.
11613 # We use the long form for the default assignment because of an extremely
11614 # bizarre bug on SunOS 4.1.3.
11615 if $ac_need_defaults; then
11616 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11617 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11618 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11619 fi
11620
11621 # Have a temporary directory for convenience. Make it in the build tree
11622 # simply because there is no reason against having it here, and in addition,
11623 # creating and moving files from /tmp can sometimes cause problems.
11624 # Hook for its removal unless debugging.
11625 # Note that there is a small window in which the directory will not be cleaned:
11626 # after its creation but before its name has been assigned to `$tmp'.
11627 $debug ||
11628 {
11629 tmp= ac_tmp=
11630 trap 'exit_status=$?
11631 : "${ac_tmp:=$tmp}"
11632 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11633 ' 0
11634 trap 'as_fn_exit 1' 1 2 13 15
11635 }
11636 # Create a (secure) tmp directory for tmp files.
11637
11638 {
11639 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11640 test -d "$tmp"
11641 } ||
11642 {
11643 tmp=./conf$$-$RANDOM
11644 (umask 077 && mkdir "$tmp")
11645 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11646 ac_tmp=$tmp
11647
11648 # Set up the scripts for CONFIG_FILES section.
11649 # No need to generate them if there are no CONFIG_FILES.
11650 # This happens for instance with `./config.status config.h'.
11651 if test -n "$CONFIG_FILES"; then
11652
11653
11654 ac_cr=`echo X | tr X '\015'`
11655 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11656 # But we know of no other shell where ac_cr would be empty at this
11657 # point, so we can use a bashism as a fallback.
11658 if test "x$ac_cr" = x; then
11659 eval ac_cr=\$\'\\r\'
11660 fi
11661 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11662 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11663 ac_cs_awk_cr='\\r'
11664 else
11665 ac_cs_awk_cr=$ac_cr
11666 fi
11667
11668 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11669 _ACEOF
11670
11671
11672 {
11673 echo "cat >conf$$subs.awk <<_ACEOF" &&
11674 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11675 echo "_ACEOF"
11676 } >conf$$subs.sh ||
11677 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11678 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11679 ac_delim='%!_!# '
11680 for ac_last_try in false false false false false :; do
11681 . ./conf$$subs.sh ||
11682 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11683
11684 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11685 if test $ac_delim_n = $ac_delim_num; then
11686 break
11687 elif $ac_last_try; then
11688 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11689 else
11690 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11691 fi
11692 done
11693 rm -f conf$$subs.sh
11694
11695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11696 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11697 _ACEOF
11698 sed -n '
11699 h
11700 s/^/S["/; s/!.*/"]=/
11701 p
11702 g
11703 s/^[^!]*!//
11704 :repl
11705 t repl
11706 s/'"$ac_delim"'$//
11707 t delim
11708 :nl
11709 h
11710 s/\(.\{148\}\)..*/\1/
11711 t more1
11712 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11713 p
11714 n
11715 b repl
11716 :more1
11717 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11718 p
11719 g
11720 s/.\{148\}//
11721 t nl
11722 :delim
11723 h
11724 s/\(.\{148\}\)..*/\1/
11725 t more2
11726 s/["\\]/\\&/g; s/^/"/; s/$/"/
11727 p
11728 b
11729 :more2
11730 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11731 p
11732 g
11733 s/.\{148\}//
11734 t delim
11735 ' <conf$$subs.awk | sed '
11736 /^[^""]/{
11737 N
11738 s/\n//
11739 }
11740 ' >>$CONFIG_STATUS || ac_write_fail=1
11741 rm -f conf$$subs.awk
11742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11743 _ACAWK
11744 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11745 for (key in S) S_is_set[key] = 1
11746 FS = ""
11747
11748 }
11749 {
11750 line = $ 0
11751 nfields = split(line, field, "@")
11752 substed = 0
11753 len = length(field[1])
11754 for (i = 2; i < nfields; i++) {
11755 key = field[i]
11756 keylen = length(key)
11757 if (S_is_set[key]) {
11758 value = S[key]
11759 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11760 len += length(value) + length(field[++i])
11761 substed = 1
11762 } else
11763 len += 1 + keylen
11764 }
11765
11766 print line
11767 }
11768
11769 _ACAWK
11770 _ACEOF
11771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11772 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11773 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11774 else
11775 cat
11776 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11777 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11778 _ACEOF
11779
11780 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11781 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11782 # trailing colons and then remove the whole line if VPATH becomes empty
11783 # (actually we leave an empty line to preserve line numbers).
11784 if test "x$srcdir" = x.; then
11785 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11786 h
11787 s///
11788 s/^/:/
11789 s/[ ]*$/:/
11790 s/:\$(srcdir):/:/g
11791 s/:\${srcdir}:/:/g
11792 s/:@srcdir@:/:/g
11793 s/^:*//
11794 s/:*$//
11795 x
11796 s/\(=[ ]*\).*/\1/
11797 G
11798 s/\n//
11799 s/^[^=]*=[ ]*$//
11800 }'
11801 fi
11802
11803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11804 fi # test -n "$CONFIG_FILES"
11805
11806 # Set up the scripts for CONFIG_HEADERS section.
11807 # No need to generate them if there are no CONFIG_HEADERS.
11808 # This happens for instance with `./config.status Makefile'.
11809 if test -n "$CONFIG_HEADERS"; then
11810 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11811 BEGIN {
11812 _ACEOF
11813
11814 # Transform confdefs.h into an awk script `defines.awk', embedded as
11815 # here-document in config.status, that substitutes the proper values into
11816 # config.h.in to produce config.h.
11817
11818 # Create a delimiter string that does not exist in confdefs.h, to ease
11819 # handling of long lines.
11820 ac_delim='%!_!# '
11821 for ac_last_try in false false :; do
11822 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11823 if test -z "$ac_tt"; then
11824 break
11825 elif $ac_last_try; then
11826 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11827 else
11828 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11829 fi
11830 done
11831
11832 # For the awk script, D is an array of macro values keyed by name,
11833 # likewise P contains macro parameters if any. Preserve backslash
11834 # newline sequences.
11835
11836 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11837 sed -n '
11838 s/.\{148\}/&'"$ac_delim"'/g
11839 t rset
11840 :rset
11841 s/^[ ]*#[ ]*define[ ][ ]*/ /
11842 t def
11843 d
11844 :def
11845 s/\\$//
11846 t bsnl
11847 s/["\\]/\\&/g
11848 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11849 D["\1"]=" \3"/p
11850 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11851 d
11852 :bsnl
11853 s/["\\]/\\&/g
11854 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11855 D["\1"]=" \3\\\\\\n"\\/p
11856 t cont
11857 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11858 t cont
11859 d
11860 :cont
11861 n
11862 s/.\{148\}/&'"$ac_delim"'/g
11863 t clear
11864 :clear
11865 s/\\$//
11866 t bsnlc
11867 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11868 d
11869 :bsnlc
11870 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11871 b cont
11872 ' <confdefs.h | sed '
11873 s/'"$ac_delim"'/"\\\
11874 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11875
11876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11877 for (key in D) D_is_set[key] = 1
11878 FS = ""
11879 }
11880 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11881 line = \$ 0
11882 split(line, arg, " ")
11883 if (arg[1] == "#") {
11884 defundef = arg[2]
11885 mac1 = arg[3]
11886 } else {
11887 defundef = substr(arg[1], 2)
11888 mac1 = arg[2]
11889 }
11890 split(mac1, mac2, "(") #)
11891 macro = mac2[1]
11892 prefix = substr(line, 1, index(line, defundef) - 1)
11893 if (D_is_set[macro]) {
11894 # Preserve the white space surrounding the "#".
11895 print prefix "define", macro P[macro] D[macro]
11896 next
11897 } else {
11898 # Replace #undef with comments. This is necessary, for example,
11899 # in the case of _POSIX_SOURCE, which is predefined and required
11900 # on some systems where configure will not decide to define it.
11901 if (defundef == "undef") {
11902 print "/*", prefix defundef, macro, "*/"
11903 next
11904 }
11905 }
11906 }
11907 { print }
11908 _ACAWK
11909 _ACEOF
11910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11911 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11912 fi # test -n "$CONFIG_HEADERS"
11913
11914
11915 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11916 shift
11917 for ac_tag
11918 do
11919 case $ac_tag in
11920 :[FHLC]) ac_mode=$ac_tag; continue;;
11921 esac
11922 case $ac_mode$ac_tag in
11923 :[FHL]*:*);;
11924 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11925 :[FH]-) ac_tag=-:-;;
11926 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11927 esac
11928 ac_save_IFS=$IFS
11929 IFS=:
11930 set x $ac_tag
11931 IFS=$ac_save_IFS
11932 shift
11933 ac_file=$1
11934 shift
11935
11936 case $ac_mode in
11937 :L) ac_source=$1;;
11938 :[FH])
11939 ac_file_inputs=
11940 for ac_f
11941 do
11942 case $ac_f in
11943 -) ac_f="$ac_tmp/stdin";;
11944 *) # Look for the file first in the build tree, then in the source tree
11945 # (if the path is not absolute). The absolute path cannot be DOS-style,
11946 # because $ac_f cannot contain `:'.
11947 test -f "$ac_f" ||
11948 case $ac_f in
11949 [\\/$]*) false;;
11950 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11951 esac ||
11952 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11953 esac
11954 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11955 as_fn_append ac_file_inputs " '$ac_f'"
11956 done
11957
11958 # Let's still pretend it is `configure' which instantiates (i.e., don't
11959 # use $as_me), people would be surprised to read:
11960 # /* config.h. Generated by config.status. */
11961 configure_input='Generated from '`
11962 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11963 `' by configure.'
11964 if test x"$ac_file" != x-; then
11965 configure_input="$ac_file. $configure_input"
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11967 $as_echo "$as_me: creating $ac_file" >&6;}
11968 fi
11969 # Neutralize special characters interpreted by sed in replacement strings.
11970 case $configure_input in #(
11971 *\&* | *\|* | *\\* )
11972 ac_sed_conf_input=`$as_echo "$configure_input" |
11973 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11974 *) ac_sed_conf_input=$configure_input;;
11975 esac
11976
11977 case $ac_tag in
11978 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11980 esac
11981 ;;
11982 esac
11983
11984 ac_dir=`$as_dirname -- "$ac_file" ||
11985 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11986 X"$ac_file" : 'X\(//\)[^/]' \| \
11987 X"$ac_file" : 'X\(//\)$' \| \
11988 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11989 $as_echo X"$ac_file" |
11990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11991 s//\1/
11992 q
11993 }
11994 /^X\(\/\/\)[^/].*/{
11995 s//\1/
11996 q
11997 }
11998 /^X\(\/\/\)$/{
11999 s//\1/
12000 q
12001 }
12002 /^X\(\/\).*/{
12003 s//\1/
12004 q
12005 }
12006 s/.*/./; q'`
12007 as_dir="$ac_dir"; as_fn_mkdir_p
12008 ac_builddir=.
12009
12010 case "$ac_dir" in
12011 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12012 *)
12013 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12014 # A ".." for each directory in $ac_dir_suffix.
12015 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12016 case $ac_top_builddir_sub in
12017 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12018 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12019 esac ;;
12020 esac
12021 ac_abs_top_builddir=$ac_pwd
12022 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12023 # for backward compatibility:
12024 ac_top_builddir=$ac_top_build_prefix
12025
12026 case $srcdir in
12027 .) # We are building in place.
12028 ac_srcdir=.
12029 ac_top_srcdir=$ac_top_builddir_sub
12030 ac_abs_top_srcdir=$ac_pwd ;;
12031 [\\/]* | ?:[\\/]* ) # Absolute name.
12032 ac_srcdir=$srcdir$ac_dir_suffix;
12033 ac_top_srcdir=$srcdir
12034 ac_abs_top_srcdir=$srcdir ;;
12035 *) # Relative name.
12036 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12037 ac_top_srcdir=$ac_top_build_prefix$srcdir
12038 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12039 esac
12040 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12041
12042
12043 case $ac_mode in
12044 :F)
12045 #
12046 # CONFIG_FILE
12047 #
12048
12049 case $INSTALL in
12050 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12051 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12052 esac
12053 ac_MKDIR_P=$MKDIR_P
12054 case $MKDIR_P in
12055 [\\/$]* | ?:[\\/]* ) ;;
12056 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12057 esac
12058 _ACEOF
12059
12060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12061 # If the template does not know about datarootdir, expand it.
12062 # FIXME: This hack should be removed a few years after 2.60.
12063 ac_datarootdir_hack=; ac_datarootdir_seen=
12064 ac_sed_dataroot='
12065 /datarootdir/ {
12066 p
12067 q
12068 }
12069 /@datadir@/p
12070 /@docdir@/p
12071 /@infodir@/p
12072 /@localedir@/p
12073 /@mandir@/p'
12074 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12075 *datarootdir*) ac_datarootdir_seen=yes;;
12076 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12078 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12079 _ACEOF
12080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12081 ac_datarootdir_hack='
12082 s&@datadir@&$datadir&g
12083 s&@docdir@&$docdir&g
12084 s&@infodir@&$infodir&g
12085 s&@localedir@&$localedir&g
12086 s&@mandir@&$mandir&g
12087 s&\\\${datarootdir}&$datarootdir&g' ;;
12088 esac
12089 _ACEOF
12090
12091 # Neutralize VPATH when `$srcdir' = `.'.
12092 # Shell code in configure.ac might set extrasub.
12093 # FIXME: do we really want to maintain this feature?
12094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12095 ac_sed_extra="$ac_vpsub
12096 $extrasub
12097 _ACEOF
12098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12099 :t
12100 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12101 s|@configure_input@|$ac_sed_conf_input|;t t
12102 s&@top_builddir@&$ac_top_builddir_sub&;t t
12103 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12104 s&@srcdir@&$ac_srcdir&;t t
12105 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12106 s&@top_srcdir@&$ac_top_srcdir&;t t
12107 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12108 s&@builddir@&$ac_builddir&;t t
12109 s&@abs_builddir@&$ac_abs_builddir&;t t
12110 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12111 s&@INSTALL@&$ac_INSTALL&;t t
12112 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12113 $ac_datarootdir_hack
12114 "
12115 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12116 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12117
12118 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12119 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12120 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12121 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12123 which seems to be undefined. Please make sure it is defined" >&5
12124 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12125 which seems to be undefined. Please make sure it is defined" >&2;}
12126
12127 rm -f "$ac_tmp/stdin"
12128 case $ac_file in
12129 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12130 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12131 esac \
12132 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12133 ;;
12134 :H)
12135 #
12136 # CONFIG_HEADER
12137 #
12138 if test x"$ac_file" != x-; then
12139 {
12140 $as_echo "/* $configure_input */" \
12141 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12142 } >"$ac_tmp/config.h" \
12143 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12144 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12146 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12147 else
12148 rm -f "$ac_file"
12149 mv "$ac_tmp/config.h" "$ac_file" \
12150 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12151 fi
12152 else
12153 $as_echo "/* $configure_input */" \
12154 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12155 || as_fn_error $? "could not create -" "$LINENO" 5
12156 fi
12157 # Compute "$ac_file"'s index in $config_headers.
12158 _am_arg="$ac_file"
12159 _am_stamp_count=1
12160 for _am_header in $config_headers :; do
12161 case $_am_header in
12162 $_am_arg | $_am_arg:* )
12163 break ;;
12164 * )
12165 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12166 esac
12167 done
12168 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12169 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12170 X"$_am_arg" : 'X\(//\)[^/]' \| \
12171 X"$_am_arg" : 'X\(//\)$' \| \
12172 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12173 $as_echo X"$_am_arg" |
12174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12175 s//\1/
12176 q
12177 }
12178 /^X\(\/\/\)[^/].*/{
12179 s//\1/
12180 q
12181 }
12182 /^X\(\/\/\)$/{
12183 s//\1/
12184 q
12185 }
12186 /^X\(\/\).*/{
12187 s//\1/
12188 q
12189 }
12190 s/.*/./; q'`/stamp-h$_am_stamp_count
12191 ;;
12192
12193 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12194 $as_echo "$as_me: executing $ac_file commands" >&6;}
12195 ;;
12196 esac
12197
12198
12199 case $ac_file$ac_mode in
12200 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12201 # Older Autoconf quotes --file arguments for eval, but not when files
12202 # are listed without --file. Let's play safe and only enable the eval
12203 # if we detect the quoting.
12204 case $CONFIG_FILES in
12205 *\'*) eval set x "$CONFIG_FILES" ;;
12206 *) set x $CONFIG_FILES ;;
12207 esac
12208 shift
12209 for mf
12210 do
12211 # Strip MF so we end up with the name of the file.
12212 mf=`echo "$mf" | sed -e 's/:.*$//'`
12213 # Check whether this is an Automake generated Makefile or not.
12214 # We used to match only the files named 'Makefile.in', but
12215 # some people rename them; so instead we look at the file content.
12216 # Grep'ing the first line is not enough: some people post-process
12217 # each Makefile.in and add a new line on top of each file to say so.
12218 # Grep'ing the whole file is not good either: AIX grep has a line
12219 # limit of 2048, but all sed's we know have understand at least 4000.
12220 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12221 dirpart=`$as_dirname -- "$mf" ||
12222 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12223 X"$mf" : 'X\(//\)[^/]' \| \
12224 X"$mf" : 'X\(//\)$' \| \
12225 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12226 $as_echo X"$mf" |
12227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12228 s//\1/
12229 q
12230 }
12231 /^X\(\/\/\)[^/].*/{
12232 s//\1/
12233 q
12234 }
12235 /^X\(\/\/\)$/{
12236 s//\1/
12237 q
12238 }
12239 /^X\(\/\).*/{
12240 s//\1/
12241 q
12242 }
12243 s/.*/./; q'`
12244 else
12245 continue
12246 fi
12247 # Extract the definition of DEPDIR, am__include, and am__quote
12248 # from the Makefile without running 'make'.
12249 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12250 test -z "$DEPDIR" && continue
12251 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12252 test -z "$am__include" && continue
12253 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12254 # Find all dependency output files, they are included files with
12255 # $(DEPDIR) in their names. We invoke sed twice because it is the
12256 # simplest approach to changing $(DEPDIR) to its actual value in the
12257 # expansion.
12258 for file in `sed -n "
12259 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12260 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12261 # Make sure the directory exists.
12262 test -f "$dirpart/$file" && continue
12263 fdir=`$as_dirname -- "$file" ||
12264 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12265 X"$file" : 'X\(//\)[^/]' \| \
12266 X"$file" : 'X\(//\)$' \| \
12267 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12268 $as_echo X"$file" |
12269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12270 s//\1/
12271 q
12272 }
12273 /^X\(\/\/\)[^/].*/{
12274 s//\1/
12275 q
12276 }
12277 /^X\(\/\/\)$/{
12278 s//\1/
12279 q
12280 }
12281 /^X\(\/\).*/{
12282 s//\1/
12283 q
12284 }
12285 s/.*/./; q'`
12286 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12287 # echo "creating $dirpart/$file"
12288 echo '# dummy' > "$dirpart/$file"
12289 done
12290 done
12291 }
12292 ;;
12293
12294 esac
12295 done # for ac_tag
12296
12297
12298 as_fn_exit 0
12299 _ACEOF
12300 ac_clean_files=$ac_clean_files_save
12301
12302 test $ac_write_fail = 0 ||
12303 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12304
12305
12306 # configure is writing to config.log, and then calls config.status.
12307 # config.status does its own redirection, appending to config.log.
12308 # Unfortunately, on DOS this fails, as config.log is still kept open
12309 # by configure, so config.status won't be able to write to it; its
12310 # output is simply discarded. So we exec the FD to /dev/null,
12311 # effectively closing config.log, so it can be properly (re)opened and
12312 # appended to by config.status. When coming back to configure, we
12313 # need to make the FD available again.
12314 if test "$no_create" != yes; then
12315 ac_cs_success=:
12316 ac_config_status_args=
12317 test "$silent" = yes &&
12318 ac_config_status_args="$ac_config_status_args --quiet"
12319 exec 5>/dev/null
12320 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12321 exec 5>>config.log
12322 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12323 # would make configure fail if this is the last instruction.
12324 $ac_cs_success || as_fn_exit 1
12325 fi
12326 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12328 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12329 fi
12330
12331