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