configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xfd 1.1.3.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfd/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://gitlab.freedesktop.org/xorg/app/xfd/issues
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='xfd'
583 PACKAGE_TARNAME='xfd'
584 PACKAGE_VERSION='1.1.3'
585 PACKAGE_STRING='xfd 1.1.3'
586 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xfd/issues'
587 PACKAGE_URL=''
588
589 ac_unique_file="Makefile.am"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 appdefaultdir
631 APPDEFS_LIBS
632 APPDEFS_CFLAGS
633 XFD_LIBS
634 XFD_CFLAGS
635 USE_GETTEXT_FALSE
636 USE_GETTEXT_TRUE
637 LOCALEDIR
638 MAN_SUBSTS
639 XORG_MAN_PAGE
640 ADMIN_MAN_DIR
641 DRIVER_MAN_DIR
642 MISC_MAN_DIR
643 FILE_MAN_DIR
644 LIB_MAN_DIR
645 APP_MAN_DIR
646 ADMIN_MAN_SUFFIX
647 DRIVER_MAN_SUFFIX
648 MISC_MAN_SUFFIX
649 FILE_MAN_SUFFIX
650 LIB_MAN_SUFFIX
651 APP_MAN_SUFFIX
652 SED
653 host_os
654 host_vendor
655 host_cpu
656 host
657 build_os
658 build_vendor
659 build_cpu
660 build
661 INSTALL_CMD
662 PKG_CONFIG_LIBDIR
663 PKG_CONFIG_PATH
664 PKG_CONFIG
665 CHANGELOG_CMD
666 STRICT_CFLAGS
667 CWARNFLAGS
668 BASE_CFLAGS
669 EGREP
670 GREP
671 CPP
672 am__fastdepCC_FALSE
673 am__fastdepCC_TRUE
674 CCDEPMODE
675 am__nodep
676 AMDEPBACKSLASH
677 AMDEP_FALSE
678 AMDEP_TRUE
679 am__quote
680 am__include
681 DEPDIR
682 OBJEXT
683 EXEEXT
684 ac_ct_CC
685 CPPFLAGS
686 LDFLAGS
687 CFLAGS
688 CC
689 AM_BACKSLASH
690 AM_DEFAULT_VERBOSITY
691 AM_DEFAULT_V
692 AM_V
693 am__untar
694 am__tar
695 AMTAR
696 am__leading_dot
697 SET_MAKE
698 AWK
699 mkdir_p
700 MKDIR_P
701 INSTALL_STRIP_PROGRAM
702 STRIP
703 install_sh
704 MAKEINFO
705 AUTOHEADER
706 AUTOMAKE
707 AUTOCONF
708 ACLOCAL
709 VERSION
710 PACKAGE
711 CYGPATH_W
712 am__isrc
713 INSTALL_DATA
714 INSTALL_SCRIPT
715 INSTALL_PROGRAM
716 target_alias
717 host_alias
718 build_alias
719 LIBS
720 ECHO_T
721 ECHO_N
722 ECHO_C
723 DEFS
724 mandir
725 localedir
726 libdir
727 psdir
728 pdfdir
729 dvidir
730 htmldir
731 infodir
732 docdir
733 oldincludedir
734 includedir
735 localstatedir
736 sharedstatedir
737 sysconfdir
738 datadir
739 datarootdir
740 libexecdir
741 sbindir
742 bindir
743 program_transform_name
744 prefix
745 exec_prefix
746 PACKAGE_URL
747 PACKAGE_BUGREPORT
748 PACKAGE_STRING
749 PACKAGE_VERSION
750 PACKAGE_TARNAME
751 PACKAGE_NAME
752 PATH_SEPARATOR
753 SHELL'
754 ac_subst_files=''
755 ac_user_opts='
756 enable_option_checking
757 enable_silent_rules
758 enable_dependency_tracking
759 enable_selective_werror
760 enable_strict_compilation
761 with_localedir
762 with_xkb
763 with_appdefaultdir
764 '
765 ac_precious_vars='build_alias
766 host_alias
767 target_alias
768 CC
769 CFLAGS
770 LDFLAGS
771 LIBS
772 CPPFLAGS
773 CPP
774 PKG_CONFIG
775 PKG_CONFIG_PATH
776 PKG_CONFIG_LIBDIR
777 XFD_CFLAGS
778 XFD_LIBS
779 APPDEFS_CFLAGS
780 APPDEFS_LIBS'
781
782
783 # Initialize some variables set by options.
784 ac_init_help=
785 ac_init_version=false
786 ac_unrecognized_opts=
787 ac_unrecognized_sep=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
804
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
830
831 ac_prev=
832 ac_dashdash=
833 for ac_option
834 do
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
838 ac_prev=
839 continue
840 fi
841
842 case $ac_option in
843 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 *=) ac_optarg= ;;
845 *) ac_optarg=yes ;;
846 esac
847
848 # Accept the important Cygnus configure options, so we can diagnose typos.
849
850 case $ac_dashdash$ac_option in
851 --)
852 ac_dashdash=yes ;;
853
854 -bindir | --bindir | --bindi | --bind | --bin | --bi)
855 ac_prev=bindir ;;
856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857 bindir=$ac_optarg ;;
858
859 -build | --build | --buil | --bui | --bu)
860 ac_prev=build_alias ;;
861 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862 build_alias=$ac_optarg ;;
863
864 -cache-file | --cache-file | --cache-fil | --cache-fi \
865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866 ac_prev=cache_file ;;
867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869 cache_file=$ac_optarg ;;
870
871 --config-cache | -C)
872 cache_file=config.cache ;;
873
874 -datadir | --datadir | --datadi | --datad)
875 ac_prev=datadir ;;
876 -datadir=* | --datadir=* | --datadi=* | --datad=*)
877 datadir=$ac_optarg ;;
878
879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880 | --dataroo | --dataro | --datar)
881 ac_prev=datarootdir ;;
882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884 datarootdir=$ac_optarg ;;
885
886 -disable-* | --disable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
894 *"
895 "enable_$ac_useropt"
896 "*) ;;
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
899 esac
900 eval enable_$ac_useropt=no ;;
901
902 -docdir | --docdir | --docdi | --doc | --do)
903 ac_prev=docdir ;;
904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905 docdir=$ac_optarg ;;
906
907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908 ac_prev=dvidir ;;
909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910 dvidir=$ac_optarg ;;
911
912 -enable-* | --enable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921 "enable_$ac_useropt"
922 "*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=\$ac_optarg ;;
927
928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930 | --exec | --exe | --ex)
931 ac_prev=exec_prefix ;;
932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934 | --exec=* | --exe=* | --ex=*)
935 exec_prefix=$ac_optarg ;;
936
937 -gas | --gas | --ga | --g)
938 # Obsolete; use --with-gas.
939 with_gas=yes ;;
940
941 -help | --help | --hel | --he | -h)
942 ac_init_help=long ;;
943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944 ac_init_help=recursive ;;
945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946 ac_init_help=short ;;
947
948 -host | --host | --hos | --ho)
949 ac_prev=host_alias ;;
950 -host=* | --host=* | --hos=* | --ho=*)
951 host_alias=$ac_optarg ;;
952
953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954 ac_prev=htmldir ;;
955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956 | --ht=*)
957 htmldir=$ac_optarg ;;
958
959 -includedir | --includedir | --includedi | --included | --include \
960 | --includ | --inclu | --incl | --inc)
961 ac_prev=includedir ;;
962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963 | --includ=* | --inclu=* | --incl=* | --inc=*)
964 includedir=$ac_optarg ;;
965
966 -infodir | --infodir | --infodi | --infod | --info | --inf)
967 ac_prev=infodir ;;
968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969 infodir=$ac_optarg ;;
970
971 -libdir | --libdir | --libdi | --libd)
972 ac_prev=libdir ;;
973 -libdir=* | --libdir=* | --libdi=* | --libd=*)
974 libdir=$ac_optarg ;;
975
976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977 | --libexe | --libex | --libe)
978 ac_prev=libexecdir ;;
979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980 | --libexe=* | --libex=* | --libe=*)
981 libexecdir=$ac_optarg ;;
982
983 -localedir | --localedir | --localedi | --localed | --locale)
984 ac_prev=localedir ;;
985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986 localedir=$ac_optarg ;;
987
988 -localstatedir | --localstatedir | --localstatedi | --localstated \
989 | --localstate | --localstat | --localsta | --localst | --locals)
990 ac_prev=localstatedir ;;
991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993 localstatedir=$ac_optarg ;;
994
995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996 ac_prev=mandir ;;
997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998 mandir=$ac_optarg ;;
999
1000 -nfp | --nfp | --nf)
1001 # Obsolete; use --without-fp.
1002 with_fp=no ;;
1003
1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005 | --no-cr | --no-c | -n)
1006 no_create=yes ;;
1007
1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010 no_recursion=yes ;;
1011
1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014 | --oldin | --oldi | --old | --ol | --o)
1015 ac_prev=oldincludedir ;;
1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019 oldincludedir=$ac_optarg ;;
1020
1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022 ac_prev=prefix ;;
1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024 prefix=$ac_optarg ;;
1025
1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027 | --program-pre | --program-pr | --program-p)
1028 ac_prev=program_prefix ;;
1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031 program_prefix=$ac_optarg ;;
1032
1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034 | --program-suf | --program-su | --program-s)
1035 ac_prev=program_suffix ;;
1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038 program_suffix=$ac_optarg ;;
1039
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 ac_prev=program_transform_name ;;
1048 -program-transform-name=* | --program-transform-name=* \
1049 | --program-transform-nam=* | --program-transform-na=* \
1050 | --program-transform-n=* | --program-transform-=* \
1051 | --program-transform=* | --program-transfor=* \
1052 | --program-transfo=* | --program-transf=* \
1053 | --program-trans=* | --program-tran=* \
1054 | --progr-tra=* | --program-tr=* | --program-t=*)
1055 program_transform_name=$ac_optarg ;;
1056
1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058 ac_prev=pdfdir ;;
1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060 pdfdir=$ac_optarg ;;
1061
1062 -psdir | --psdir | --psdi | --psd | --ps)
1063 ac_prev=psdir ;;
1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065 psdir=$ac_optarg ;;
1066
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1069 silent=yes ;;
1070
1071 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072 ac_prev=sbindir ;;
1073 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074 | --sbi=* | --sb=*)
1075 sbindir=$ac_optarg ;;
1076
1077 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079 | --sharedst | --shareds | --shared | --share | --shar \
1080 | --sha | --sh)
1081 ac_prev=sharedstatedir ;;
1082 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085 | --sha=* | --sh=*)
1086 sharedstatedir=$ac_optarg ;;
1087
1088 -site | --site | --sit)
1089 ac_prev=site ;;
1090 -site=* | --site=* | --sit=*)
1091 site=$ac_optarg ;;
1092
1093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094 ac_prev=srcdir ;;
1095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096 srcdir=$ac_optarg ;;
1097
1098 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099 | --syscon | --sysco | --sysc | --sys | --sy)
1100 ac_prev=sysconfdir ;;
1101 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103 sysconfdir=$ac_optarg ;;
1104
1105 -target | --target | --targe | --targ | --tar | --ta | --t)
1106 ac_prev=target_alias ;;
1107 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108 target_alias=$ac_optarg ;;
1109
1110 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111 verbose=yes ;;
1112
1113 -version | --version | --versio | --versi | --vers | -V)
1114 ac_init_version=: ;;
1115
1116 -with-* | --with-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1124 *"
1125 "with_$ac_useropt"
1126 "*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval with_$ac_useropt=\$ac_optarg ;;
1131
1132 -without-* | --without-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1140 *"
1141 "with_$ac_useropt"
1142 "*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1145 esac
1146 eval with_$ac_useropt=no ;;
1147
1148 --x)
1149 # Obsolete; use --with-x.
1150 with_x=yes ;;
1151
1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153 | --x-incl | --x-inc | --x-in | --x-i)
1154 ac_prev=x_includes ;;
1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157 x_includes=$ac_optarg ;;
1158
1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161 ac_prev=x_libraries ;;
1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164 x_libraries=$ac_optarg ;;
1165
1166 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167 Try \`$0 --help' for more information"
1168 ;;
1169
1170 *=*)
1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
1173 case $ac_envvar in #(
1174 '' | [0-9]* | *[!_$as_cr_alnum]* )
1175 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176 esac
1177 eval $ac_envvar=\$ac_optarg
1178 export $ac_envvar ;;
1179
1180 *)
1181 # FIXME: should be removed in autoconf 3.0.
1182 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186 ;;
1187
1188 esac
1189 done
1190
1191 if test -n "$ac_prev"; then
1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193 as_fn_error $? "missing argument to $ac_option"
1194 fi
1195
1196 if test -n "$ac_unrecognized_opts"; then
1197 case $enable_option_checking in
1198 no) ;;
1199 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201 esac
1202 fi
1203
1204 # Check all directory arguments for consistency.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1209 do
1210 eval ac_val=\$$ac_var
1211 # Remove trailing slashes.
1212 case $ac_val in
1213 */ )
1214 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215 eval $ac_var=\$ac_val;;
1216 esac
1217 # Be sure to have absolute directory names.
1218 case $ac_val in
1219 [\\/$]* | ?:[\\/]* ) continue;;
1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221 esac
1222 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223 done
1224
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1228 build=$build_alias
1229 host=$host_alias
1230 target=$target_alias
1231
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1238 fi
1239 fi
1240
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244 test "$silent" = yes && exec 6>/dev/null
1245
1246
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error $? "working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error $? "pwd does not report name of working directory"
1253
1254
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
1282 srcdir=$ac_confdir
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 srcdir=..
1285 fi
1286 else
1287 ac_srcdir_defaulted=no
1288 fi
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1296 pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300 fi
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1313
1314 #
1315 # Report the --help message.
1316 #
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
1321 \`configure' configures xfd 1.1.3 to adapt to many kinds of systems.
1322
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328 Defaults for the options are specified in brackets.
1329
1330 Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking ...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 [PREFIX]
1346
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1351
1352 For better control, use the options below.
1353
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/xfd]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1374 _ACEOF
1375
1376 cat <<\_ACEOF
1377
1378 Program names:
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1382
1383 System types:
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1386 _ACEOF
1387 fi
1388
1389 if test -n "$ac_init_help"; then
1390 case $ac_init_help in
1391 short | recursive ) echo "Configuration of xfd 1.1.3:";;
1392 esac
1393 cat <<\_ACEOF
1394
1395 Optional Features:
1396 --disable-option-checking ignore unrecognized --enable/--with options
1397 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1398 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1399 --enable-silent-rules less verbose build output (undo: "make V=1")
1400 --disable-silent-rules verbose build output (undo: "make V=0")
1401 --enable-dependency-tracking
1402 do not reject slow dependency extractors
1403 --disable-dependency-tracking
1404 speeds up one-time build
1405 --disable-selective-werror
1406 Turn off selective compiler errors. (default:
1407 enabled)
1408 --enable-strict-compilation
1409 Enable all warnings from compiler and make them
1410 errors (default: disabled)
1411
1412 Optional Packages:
1413 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1414 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1415 --with-localedir=<path> Path to install message files in (default:
1416 datadir/locale)
1417 --without-xkb Disable use of XKB to sound bells (Default is
1418 with-xkb)
1419 --with-appdefaultdir=<pathname>
1420 specify directory for app-defaults files (default is
1421 autodetected)
1422
1423 Some influential environment variables:
1424 CC C compiler command
1425 CFLAGS C compiler flags
1426 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1427 nonstandard directory <lib dir>
1428 LIBS libraries to pass to the linker, e.g. -l<library>
1429 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1430 you have headers in a nonstandard directory <include dir>
1431 CPP C preprocessor
1432 PKG_CONFIG path to pkg-config utility
1433 PKG_CONFIG_PATH
1434 directories to add to pkg-config's search path
1435 PKG_CONFIG_LIBDIR
1436 path overriding pkg-config's built-in search path
1437 XFD_CFLAGS C compiler flags for XFD, overriding pkg-config
1438 XFD_LIBS linker flags for XFD, overriding pkg-config
1439 APPDEFS_CFLAGS
1440 C compiler flags for APPDEFS, overriding pkg-config
1441 APPDEFS_LIBS
1442 linker flags for APPDEFS, overriding pkg-config
1443
1444 Use these variables to override the choices made by `configure' or to help
1445 it to find libraries and programs with nonstandard names/locations.
1446
1447 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfd/issues>.
1448 _ACEOF
1449 ac_status=$?
1450 fi
1451
1452 if test "$ac_init_help" = "recursive"; then
1453 # If there are subdirs, report their specific --help.
1454 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1455 test -d "$ac_dir" ||
1456 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1457 continue
1458 ac_builddir=.
1459
1460 case "$ac_dir" in
1461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *)
1463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1464 # A ".." for each directory in $ac_dir_suffix.
1465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1466 case $ac_top_builddir_sub in
1467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469 esac ;;
1470 esac
1471 ac_abs_top_builddir=$ac_pwd
1472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473 # for backward compatibility:
1474 ac_top_builddir=$ac_top_build_prefix
1475
1476 case $srcdir in
1477 .) # We are building in place.
1478 ac_srcdir=.
1479 ac_top_srcdir=$ac_top_builddir_sub
1480 ac_abs_top_srcdir=$ac_pwd ;;
1481 [\\/]* | ?:[\\/]* ) # Absolute name.
1482 ac_srcdir=$srcdir$ac_dir_suffix;
1483 ac_top_srcdir=$srcdir
1484 ac_abs_top_srcdir=$srcdir ;;
1485 *) # Relative name.
1486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487 ac_top_srcdir=$ac_top_build_prefix$srcdir
1488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489 esac
1490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491
1492 cd "$ac_dir" || { ac_status=$?; continue; }
1493 # Check for guested configure.
1494 if test -f "$ac_srcdir/configure.gnu"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497 elif test -f "$ac_srcdir/configure"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure" --help=recursive
1500 else
1501 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502 fi || ac_status=$?
1503 cd "$ac_pwd" || { ac_status=$?; break; }
1504 done
1505 fi
1506
1507 test -n "$ac_init_help" && exit $ac_status
1508 if $ac_init_version; then
1509 cat <<\_ACEOF
1510 xfd configure 1.1.3
1511 generated by GNU Autoconf 2.69
1512
1513 Copyright (C) 2012 Free Software Foundation, Inc.
1514 This configure script is free software; the Free Software Foundation
1515 gives unlimited permission to copy, distribute and modify it.
1516 _ACEOF
1517 exit
1518 fi
1519
1520 ## ------------------------ ##
1521 ## Autoconf initialization. ##
1522 ## ------------------------ ##
1523
1524 # ac_fn_c_try_compile LINENO
1525 # --------------------------
1526 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1527 ac_fn_c_try_compile ()
1528 {
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 rm -f conftest.$ac_objext
1531 if { { ac_try="$ac_compile"
1532 case "(($ac_try" in
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1535 esac
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_compile") 2>conftest.err
1539 ac_status=$?
1540 if test -s conftest.err; then
1541 grep -v '^ *+' conftest.err >conftest.er1
1542 cat conftest.er1 >&5
1543 mv -f conftest.er1 conftest.err
1544 fi
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; } && {
1547 test -z "$ac_c_werror_flag" ||
1548 test ! -s conftest.err
1549 } && test -s conftest.$ac_objext; then :
1550 ac_retval=0
1551 else
1552 $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1554
1555 ac_retval=1
1556 fi
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558 as_fn_set_status $ac_retval
1559
1560 } # ac_fn_c_try_compile
1561
1562 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1563 # ---------------------------------------------
1564 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1565 # accordingly.
1566 ac_fn_c_check_decl ()
1567 {
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 as_decl_name=`echo $2|sed 's/ *(.*//'`
1570 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1572 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1573 if eval \${$3+:} false; then :
1574 $as_echo_n "(cached) " >&6
1575 else
1576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1577 /* end confdefs.h. */
1578 $4
1579 int
1580 main ()
1581 {
1582 #ifndef $as_decl_name
1583 #ifdef __cplusplus
1584 (void) $as_decl_use;
1585 #else
1586 (void) $as_decl_name;
1587 #endif
1588 #endif
1589
1590 ;
1591 return 0;
1592 }
1593 _ACEOF
1594 if ac_fn_c_try_compile "$LINENO"; then :
1595 eval "$3=yes"
1596 else
1597 eval "$3=no"
1598 fi
1599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1600 fi
1601 eval ac_res=\$$3
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1603 $as_echo "$ac_res" >&6; }
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605
1606 } # ac_fn_c_check_decl
1607
1608 # ac_fn_c_try_cpp LINENO
1609 # ----------------------
1610 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_cpp ()
1612 {
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 if { { ac_try="$ac_cpp conftest.$ac_ext"
1615 case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1627 fi
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } > conftest.i && {
1630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 }; then :
1633 ac_retval=0
1634 else
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1637
1638 ac_retval=1
1639 fi
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 as_fn_set_status $ac_retval
1642
1643 } # ac_fn_c_try_cpp
1644
1645 # ac_fn_c_try_run LINENO
1646 # ----------------------
1647 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1648 # that executables *can* be run.
1649 ac_fn_c_try_run ()
1650 {
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if { { ac_try="$ac_link"
1653 case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_link") 2>&5
1660 ac_status=$?
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1663 { { case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_try") 2>&5
1670 ac_status=$?
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; }; }; then :
1673 ac_retval=0
1674 else
1675 $as_echo "$as_me: program exited with status $ac_status" >&5
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1678
1679 ac_retval=$ac_status
1680 fi
1681 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1684
1685 } # ac_fn_c_try_run
1686
1687 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1688 # -------------------------------------------------------
1689 # Tests whether HEADER exists and can be compiled using the include files in
1690 # INCLUDES, setting the cache variable VAR accordingly.
1691 ac_fn_c_check_header_compile ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695 $as_echo_n "checking for $2... " >&6; }
1696 if eval \${$3+:} false; then :
1697 $as_echo_n "(cached) " >&6
1698 else
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1701 $4
1702 #include <$2>
1703 _ACEOF
1704 if ac_fn_c_try_compile "$LINENO"; then :
1705 eval "$3=yes"
1706 else
1707 eval "$3=no"
1708 fi
1709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1710 fi
1711 eval ac_res=\$$3
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713 $as_echo "$ac_res" >&6; }
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715
1716 } # ac_fn_c_check_header_compile
1717
1718 # ac_fn_c_try_link LINENO
1719 # -----------------------
1720 # Try to link conftest.$ac_ext, and return whether this succeeded.
1721 ac_fn_c_try_link ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 rm -f conftest.$ac_objext conftest$ac_exeext
1725 if { { ac_try="$ac_link"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_link") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1738 fi
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest$ac_exeext && {
1744 test "$cross_compiling" = yes ||
1745 test -x conftest$ac_exeext
1746 }; then :
1747 ac_retval=0
1748 else
1749 $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1751
1752 ac_retval=1
1753 fi
1754 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1755 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1756 # interfere with the next link command; also delete a directory that is
1757 # left behind by Apple's compiler. We do this before executing the actions.
1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 as_fn_set_status $ac_retval
1761
1762 } # ac_fn_c_try_link
1763 cat >config.log <<_ACEOF
1764 This file contains any messages produced by compilers while
1765 running configure, to aid debugging if configure makes a mistake.
1766
1767 It was created by xfd $as_me 1.1.3, which was
1768 generated by GNU Autoconf 2.69. Invocation command line was
1769
1770 $ $0 $@
1771
1772 _ACEOF
1773 exec 5>>config.log
1774 {
1775 cat <<_ASUNAME
1776 ## --------- ##
1777 ## Platform. ##
1778 ## --------- ##
1779
1780 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1781 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1782 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1783 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1784 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1785
1786 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1787 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1788
1789 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1790 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1791 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1792 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1793 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1794 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1795 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1796
1797 _ASUNAME
1798
1799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800 for as_dir in $PATH
1801 do
1802 IFS=$as_save_IFS
1803 test -z "$as_dir" && as_dir=.
1804 $as_echo "PATH: $as_dir"
1805 done
1806 IFS=$as_save_IFS
1807
1808 } >&5
1809
1810 cat >&5 <<_ACEOF
1811
1812
1813 ## ----------- ##
1814 ## Core tests. ##
1815 ## ----------- ##
1816
1817 _ACEOF
1818
1819
1820 # Keep a trace of the command line.
1821 # Strip out --no-create and --no-recursion so they do not pile up.
1822 # Strip out --silent because we don't want to record it for future runs.
1823 # Also quote any args containing shell meta-characters.
1824 # Make two passes to allow for proper duplicate-argument suppression.
1825 ac_configure_args=
1826 ac_configure_args0=
1827 ac_configure_args1=
1828 ac_must_keep_next=false
1829 for ac_pass in 1 2
1830 do
1831 for ac_arg
1832 do
1833 case $ac_arg in
1834 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1835 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1836 | -silent | --silent | --silen | --sile | --sil)
1837 continue ;;
1838 *\'*)
1839 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1840 esac
1841 case $ac_pass in
1842 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1843 2)
1844 as_fn_append ac_configure_args1 " '$ac_arg'"
1845 if test $ac_must_keep_next = true; then
1846 ac_must_keep_next=false # Got value, back to normal.
1847 else
1848 case $ac_arg in
1849 *=* | --config-cache | -C | -disable-* | --disable-* \
1850 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1851 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1852 | -with-* | --with-* | -without-* | --without-* | --x)
1853 case "$ac_configure_args0 " in
1854 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1855 esac
1856 ;;
1857 -* ) ac_must_keep_next=true ;;
1858 esac
1859 fi
1860 as_fn_append ac_configure_args " '$ac_arg'"
1861 ;;
1862 esac
1863 done
1864 done
1865 { ac_configure_args0=; unset ac_configure_args0;}
1866 { ac_configure_args1=; unset ac_configure_args1;}
1867
1868 # When interrupted or exit'd, cleanup temporary files, and complete
1869 # config.log. We remove comments because anyway the quotes in there
1870 # would cause problems or look ugly.
1871 # WARNING: Use '\'' to represent an apostrophe within the trap.
1872 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1873 trap 'exit_status=$?
1874 # Save into config.log some information that might help in debugging.
1875 {
1876 echo
1877
1878 $as_echo "## ---------------- ##
1879 ## Cache variables. ##
1880 ## ---------------- ##"
1881 echo
1882 # The following way of writing the cache mishandles newlines in values,
1883 (
1884 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1885 eval ac_val=\$$ac_var
1886 case $ac_val in #(
1887 *${as_nl}*)
1888 case $ac_var in #(
1889 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1890 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1891 esac
1892 case $ac_var in #(
1893 _ | IFS | as_nl) ;; #(
1894 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1895 *) { eval $ac_var=; unset $ac_var;} ;;
1896 esac ;;
1897 esac
1898 done
1899 (set) 2>&1 |
1900 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1901 *${as_nl}ac_space=\ *)
1902 sed -n \
1903 "s/'\''/'\''\\\\'\'''\''/g;
1904 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1905 ;; #(
1906 *)
1907 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1908 ;;
1909 esac |
1910 sort
1911 )
1912 echo
1913
1914 $as_echo "## ----------------- ##
1915 ## Output variables. ##
1916 ## ----------------- ##"
1917 echo
1918 for ac_var in $ac_subst_vars
1919 do
1920 eval ac_val=\$$ac_var
1921 case $ac_val in
1922 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1923 esac
1924 $as_echo "$ac_var='\''$ac_val'\''"
1925 done | sort
1926 echo
1927
1928 if test -n "$ac_subst_files"; then
1929 $as_echo "## ------------------- ##
1930 ## File substitutions. ##
1931 ## ------------------- ##"
1932 echo
1933 for ac_var in $ac_subst_files
1934 do
1935 eval ac_val=\$$ac_var
1936 case $ac_val in
1937 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1938 esac
1939 $as_echo "$ac_var='\''$ac_val'\''"
1940 done | sort
1941 echo
1942 fi
1943
1944 if test -s confdefs.h; then
1945 $as_echo "## ----------- ##
1946 ## confdefs.h. ##
1947 ## ----------- ##"
1948 echo
1949 cat confdefs.h
1950 echo
1951 fi
1952 test "$ac_signal" != 0 &&
1953 $as_echo "$as_me: caught signal $ac_signal"
1954 $as_echo "$as_me: exit $exit_status"
1955 } >&5
1956 rm -f core *.core core.conftest.* &&
1957 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1958 exit $exit_status
1959 ' 0
1960 for ac_signal in 1 2 13 15; do
1961 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1962 done
1963 ac_signal=0
1964
1965 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1966 rm -f -r conftest* confdefs.h
1967
1968 $as_echo "/* confdefs.h */" > confdefs.h
1969
1970 # Predefined preprocessor variables.
1971
1972 cat >>confdefs.h <<_ACEOF
1973 #define PACKAGE_NAME "$PACKAGE_NAME"
1974 _ACEOF
1975
1976 cat >>confdefs.h <<_ACEOF
1977 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1978 _ACEOF
1979
1980 cat >>confdefs.h <<_ACEOF
1981 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1982 _ACEOF
1983
1984 cat >>confdefs.h <<_ACEOF
1985 #define PACKAGE_STRING "$PACKAGE_STRING"
1986 _ACEOF
1987
1988 cat >>confdefs.h <<_ACEOF
1989 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1990 _ACEOF
1991
1992 cat >>confdefs.h <<_ACEOF
1993 #define PACKAGE_URL "$PACKAGE_URL"
1994 _ACEOF
1995
1996
1997 # Let the site file select an alternate cache file if it wants to.
1998 # Prefer an explicitly selected file to automatically selected ones.
1999 ac_site_file1=NONE
2000 ac_site_file2=NONE
2001 if test -n "$CONFIG_SITE"; then
2002 # We do not want a PATH search for config.site.
2003 case $CONFIG_SITE in #((
2004 -*) ac_site_file1=./$CONFIG_SITE;;
2005 */*) ac_site_file1=$CONFIG_SITE;;
2006 *) ac_site_file1=./$CONFIG_SITE;;
2007 esac
2008 elif test "x$prefix" != xNONE; then
2009 ac_site_file1=$prefix/share/config.site
2010 ac_site_file2=$prefix/etc/config.site
2011 else
2012 ac_site_file1=$ac_default_prefix/share/config.site
2013 ac_site_file2=$ac_default_prefix/etc/config.site
2014 fi
2015 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2016 do
2017 test "x$ac_site_file" = xNONE && continue
2018 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2020 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2021 sed 's/^/| /' "$ac_site_file" >&5
2022 . "$ac_site_file" \
2023 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2025 as_fn_error $? "failed to load site script $ac_site_file
2026 See \`config.log' for more details" "$LINENO" 5; }
2027 fi
2028 done
2029
2030 if test -r "$cache_file"; then
2031 # Some versions of bash will fail to source /dev/null (special files
2032 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2033 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2035 $as_echo "$as_me: loading cache $cache_file" >&6;}
2036 case $cache_file in
2037 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2038 *) . "./$cache_file";;
2039 esac
2040 fi
2041 else
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2043 $as_echo "$as_me: creating cache $cache_file" >&6;}
2044 >$cache_file
2045 fi
2046
2047 # Check that the precious variables saved in the cache have kept the same
2048 # value.
2049 ac_cache_corrupted=false
2050 for ac_var in $ac_precious_vars; do
2051 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2052 eval ac_new_set=\$ac_env_${ac_var}_set
2053 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2054 eval ac_new_val=\$ac_env_${ac_var}_value
2055 case $ac_old_set,$ac_new_set in
2056 set,)
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2058 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2059 ac_cache_corrupted=: ;;
2060 ,set)
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2062 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2063 ac_cache_corrupted=: ;;
2064 ,);;
2065 *)
2066 if test "x$ac_old_val" != "x$ac_new_val"; then
2067 # differences in whitespace do not lead to failure.
2068 ac_old_val_w=`echo x $ac_old_val`
2069 ac_new_val_w=`echo x $ac_new_val`
2070 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2072 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2073 ac_cache_corrupted=:
2074 else
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2076 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2077 eval $ac_var=\$ac_old_val
2078 fi
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2080 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2082 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2083 fi;;
2084 esac
2085 # Pass precious variables to config.status.
2086 if test "$ac_new_set" = set; then
2087 case $ac_new_val in
2088 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2089 *) ac_arg=$ac_var=$ac_new_val ;;
2090 esac
2091 case " $ac_configure_args " in
2092 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2093 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2094 esac
2095 fi
2096 done
2097 if $ac_cache_corrupted; then
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2101 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2102 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2103 fi
2104 ## -------------------- ##
2105 ## Main body of script. ##
2106 ## -------------------- ##
2107
2108 ac_ext=c
2109 ac_cpp='$CPP $CPPFLAGS'
2110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2113
2114
2115
2116 ac_config_headers="$ac_config_headers config.h"
2117
2118
2119 # Initialize Automake
2120 am__api_version='1.15'
2121
2122 ac_aux_dir=
2123 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2124 if test -f "$ac_dir/install-sh"; then
2125 ac_aux_dir=$ac_dir
2126 ac_install_sh="$ac_aux_dir/install-sh -c"
2127 break
2128 elif test -f "$ac_dir/install.sh"; then
2129 ac_aux_dir=$ac_dir
2130 ac_install_sh="$ac_aux_dir/install.sh -c"
2131 break
2132 elif test -f "$ac_dir/shtool"; then
2133 ac_aux_dir=$ac_dir
2134 ac_install_sh="$ac_aux_dir/shtool install -c"
2135 break
2136 fi
2137 done
2138 if test -z "$ac_aux_dir"; then
2139 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2140 fi
2141
2142 # These three variables are undocumented and unsupported,
2143 # and are intended to be withdrawn in a future Autoconf release.
2144 # They can cause serious problems if a builder's source tree is in a directory
2145 # whose full name contains unusual characters.
2146 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2147 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2148 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2149
2150
2151 # Find a good install program. We prefer a C program (faster),
2152 # so one script is as good as another. But avoid the broken or
2153 # incompatible versions:
2154 # SysV /etc/install, /usr/sbin/install
2155 # SunOS /usr/etc/install
2156 # IRIX /sbin/install
2157 # AIX /bin/install
2158 # AmigaOS /C/install, which installs bootblocks on floppy discs
2159 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2160 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2161 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2162 # OS/2's system install, which has a completely different semantic
2163 # ./install, which can be erroneously created by make from ./install.sh.
2164 # Reject install programs that cannot install multiple files.
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2166 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2167 if test -z "$INSTALL"; then
2168 if ${ac_cv_path_install+:} false; then :
2169 $as_echo_n "(cached) " >&6
2170 else
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 for as_dir in $PATH
2173 do
2174 IFS=$as_save_IFS
2175 test -z "$as_dir" && as_dir=.
2176 # Account for people who put trailing slashes in PATH elements.
2177 case $as_dir/ in #((
2178 ./ | .// | /[cC]/* | \
2179 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2180 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2181 /usr/ucb/* ) ;;
2182 *)
2183 # OSF1 and SCO ODT 3.0 have their own names for install.
2184 # Don't use installbsd from OSF since it installs stuff as root
2185 # by default.
2186 for ac_prog in ginstall scoinst install; do
2187 for ac_exec_ext in '' $ac_executable_extensions; do
2188 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2189 if test $ac_prog = install &&
2190 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2191 # AIX install. It has an incompatible calling convention.
2192 :
2193 elif test $ac_prog = install &&
2194 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2195 # program-specific install script used by HP pwplus--don't use.
2196 :
2197 else
2198 rm -rf conftest.one conftest.two conftest.dir
2199 echo one > conftest.one
2200 echo two > conftest.two
2201 mkdir conftest.dir
2202 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2203 test -s conftest.one && test -s conftest.two &&
2204 test -s conftest.dir/conftest.one &&
2205 test -s conftest.dir/conftest.two
2206 then
2207 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2208 break 3
2209 fi
2210 fi
2211 fi
2212 done
2213 done
2214 ;;
2215 esac
2216
2217 done
2218 IFS=$as_save_IFS
2219
2220 rm -rf conftest.one conftest.two conftest.dir
2221
2222 fi
2223 if test "${ac_cv_path_install+set}" = set; then
2224 INSTALL=$ac_cv_path_install
2225 else
2226 # As a last resort, use the slow shell script. Don't cache a
2227 # value for INSTALL within a source directory, because that will
2228 # break other packages using the cache if that directory is
2229 # removed, or if the value is a relative name.
2230 INSTALL=$ac_install_sh
2231 fi
2232 fi
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2234 $as_echo "$INSTALL" >&6; }
2235
2236 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2237 # It thinks the first close brace ends the variable substitution.
2238 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2239
2240 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2241
2242 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2243
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2245 $as_echo_n "checking whether build environment is sane... " >&6; }
2246 # Reject unsafe characters in $srcdir or the absolute working directory
2247 # name. Accept space and tab only in the latter.
2248 am_lf='
2249 '
2250 case `pwd` in
2251 *[\\\"\#\$\&\'\`$am_lf]*)
2252 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2253 esac
2254 case $srcdir in
2255 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2256 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2257 esac
2258
2259 # Do 'set' in a subshell so we don't clobber the current shell's
2260 # arguments. Must try -L first in case configure is actually a
2261 # symlink; some systems play weird games with the mod time of symlinks
2262 # (eg FreeBSD returns the mod time of the symlink's containing
2263 # directory).
2264 if (
2265 am_has_slept=no
2266 for am_try in 1 2; do
2267 echo "timestamp, slept: $am_has_slept" > conftest.file
2268 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2269 if test "$*" = "X"; then
2270 # -L didn't work.
2271 set X `ls -t "$srcdir/configure" conftest.file`
2272 fi
2273 if test "$*" != "X $srcdir/configure conftest.file" \
2274 && test "$*" != "X conftest.file $srcdir/configure"; then
2275
2276 # If neither matched, then we have a broken ls. This can happen
2277 # if, for instance, CONFIG_SHELL is bash and it inherits a
2278 # broken ls alias from the environment. This has actually
2279 # happened. Such a system could not be considered "sane".
2280 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2281 alias in your environment" "$LINENO" 5
2282 fi
2283 if test "$2" = conftest.file || test $am_try -eq 2; then
2284 break
2285 fi
2286 # Just in case.
2287 sleep 1
2288 am_has_slept=yes
2289 done
2290 test "$2" = conftest.file
2291 )
2292 then
2293 # Ok.
2294 :
2295 else
2296 as_fn_error $? "newly created file is older than distributed files!
2297 Check your system clock" "$LINENO" 5
2298 fi
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2300 $as_echo "yes" >&6; }
2301 # If we didn't sleep, we still need to ensure time stamps of config.status and
2302 # generated files are strictly newer.
2303 am_sleep_pid=
2304 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2305 ( sleep 1 ) &
2306 am_sleep_pid=$!
2307 fi
2308
2309 rm -f conftest.file
2310
2311 test "$program_prefix" != NONE &&
2312 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2313 # Use a double $ so make ignores it.
2314 test "$program_suffix" != NONE &&
2315 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2316 # Double any \ or $.
2317 # By default was `s,x,x', remove it if useless.
2318 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2319 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2320
2321 # Expand $ac_aux_dir to an absolute path.
2322 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2323
2324 if test x"${MISSING+set}" != xset; then
2325 case $am_aux_dir in
2326 *\ * | *\ *)
2327 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2328 *)
2329 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2330 esac
2331 fi
2332 # Use eval to expand $SHELL
2333 if eval "$MISSING --is-lightweight"; then
2334 am_missing_run="$MISSING "
2335 else
2336 am_missing_run=
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2338 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2339 fi
2340
2341 if test x"${install_sh+set}" != xset; then
2342 case $am_aux_dir in
2343 *\ * | *\ *)
2344 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2345 *)
2346 install_sh="\${SHELL} $am_aux_dir/install-sh"
2347 esac
2348 fi
2349
2350 # Installed binaries are usually stripped using 'strip' when the user
2351 # run "make install-strip". However 'strip' might not be the right
2352 # tool to use in cross-compilation environments, therefore Automake
2353 # will honor the 'STRIP' environment variable to overrule this program.
2354 if test "$cross_compiling" != no; then
2355 if test -n "$ac_tool_prefix"; then
2356 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2357 set dummy ${ac_tool_prefix}strip; ac_word=$2
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2359 $as_echo_n "checking for $ac_word... " >&6; }
2360 if ${ac_cv_prog_STRIP+:} false; then :
2361 $as_echo_n "(cached) " >&6
2362 else
2363 if test -n "$STRIP"; then
2364 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2365 else
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 for as_dir in $PATH
2368 do
2369 IFS=$as_save_IFS
2370 test -z "$as_dir" && as_dir=.
2371 for ac_exec_ext in '' $ac_executable_extensions; do
2372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2373 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2375 break 2
2376 fi
2377 done
2378 done
2379 IFS=$as_save_IFS
2380
2381 fi
2382 fi
2383 STRIP=$ac_cv_prog_STRIP
2384 if test -n "$STRIP"; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2386 $as_echo "$STRIP" >&6; }
2387 else
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2389 $as_echo "no" >&6; }
2390 fi
2391
2392
2393 fi
2394 if test -z "$ac_cv_prog_STRIP"; then
2395 ac_ct_STRIP=$STRIP
2396 # Extract the first word of "strip", so it can be a program name with args.
2397 set dummy strip; ac_word=$2
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2399 $as_echo_n "checking for $ac_word... " >&6; }
2400 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2401 $as_echo_n "(cached) " >&6
2402 else
2403 if test -n "$ac_ct_STRIP"; then
2404 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2405 else
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2408 do
2409 IFS=$as_save_IFS
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413 ac_cv_prog_ac_ct_STRIP="strip"
2414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 break 2
2416 fi
2417 done
2418 done
2419 IFS=$as_save_IFS
2420
2421 fi
2422 fi
2423 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2424 if test -n "$ac_ct_STRIP"; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2426 $as_echo "$ac_ct_STRIP" >&6; }
2427 else
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2429 $as_echo "no" >&6; }
2430 fi
2431
2432 if test "x$ac_ct_STRIP" = x; then
2433 STRIP=":"
2434 else
2435 case $cross_compiling:$ac_tool_warned in
2436 yes:)
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2439 ac_tool_warned=yes ;;
2440 esac
2441 STRIP=$ac_ct_STRIP
2442 fi
2443 else
2444 STRIP="$ac_cv_prog_STRIP"
2445 fi
2446
2447 fi
2448 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2449
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2451 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2452 if test -z "$MKDIR_P"; then
2453 if ${ac_cv_path_mkdir+:} false; then :
2454 $as_echo_n "(cached) " >&6
2455 else
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2458 do
2459 IFS=$as_save_IFS
2460 test -z "$as_dir" && as_dir=.
2461 for ac_prog in mkdir gmkdir; do
2462 for ac_exec_ext in '' $ac_executable_extensions; do
2463 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2464 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2465 'mkdir (GNU coreutils) '* | \
2466 'mkdir (coreutils) '* | \
2467 'mkdir (fileutils) '4.1*)
2468 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2469 break 3;;
2470 esac
2471 done
2472 done
2473 done
2474 IFS=$as_save_IFS
2475
2476 fi
2477
2478 test -d ./--version && rmdir ./--version
2479 if test "${ac_cv_path_mkdir+set}" = set; then
2480 MKDIR_P="$ac_cv_path_mkdir -p"
2481 else
2482 # As a last resort, use the slow shell script. Don't cache a
2483 # value for MKDIR_P within a source directory, because that will
2484 # break other packages using the cache if that directory is
2485 # removed, or if the value is a relative name.
2486 MKDIR_P="$ac_install_sh -d"
2487 fi
2488 fi
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2490 $as_echo "$MKDIR_P" >&6; }
2491
2492 for ac_prog in gawk mawk nawk awk
2493 do
2494 # Extract the first word of "$ac_prog", so it can be a program name with args.
2495 set dummy $ac_prog; ac_word=$2
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2497 $as_echo_n "checking for $ac_word... " >&6; }
2498 if ${ac_cv_prog_AWK+:} false; then :
2499 $as_echo_n "(cached) " >&6
2500 else
2501 if test -n "$AWK"; then
2502 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2503 else
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507 IFS=$as_save_IFS
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2511 ac_cv_prog_AWK="$ac_prog"
2512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2513 break 2
2514 fi
2515 done
2516 done
2517 IFS=$as_save_IFS
2518
2519 fi
2520 fi
2521 AWK=$ac_cv_prog_AWK
2522 if test -n "$AWK"; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2524 $as_echo "$AWK" >&6; }
2525 else
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2527 $as_echo "no" >&6; }
2528 fi
2529
2530
2531 test -n "$AWK" && break
2532 done
2533
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2535 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2536 set x ${MAKE-make}
2537 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2538 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2539 $as_echo_n "(cached) " >&6
2540 else
2541 cat >conftest.make <<\_ACEOF
2542 SHELL = /bin/sh
2543 all:
2544 @echo '@@@%%%=$(MAKE)=@@@%%%'
2545 _ACEOF
2546 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2547 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2548 *@@@%%%=?*=@@@%%%*)
2549 eval ac_cv_prog_make_${ac_make}_set=yes;;
2550 *)
2551 eval ac_cv_prog_make_${ac_make}_set=no;;
2552 esac
2553 rm -f conftest.make
2554 fi
2555 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2557 $as_echo "yes" >&6; }
2558 SET_MAKE=
2559 else
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2561 $as_echo "no" >&6; }
2562 SET_MAKE="MAKE=${MAKE-make}"
2563 fi
2564
2565 rm -rf .tst 2>/dev/null
2566 mkdir .tst 2>/dev/null
2567 if test -d .tst; then
2568 am__leading_dot=.
2569 else
2570 am__leading_dot=_
2571 fi
2572 rmdir .tst 2>/dev/null
2573
2574 # Check whether --enable-silent-rules was given.
2575 if test "${enable_silent_rules+set}" = set; then :
2576 enableval=$enable_silent_rules;
2577 fi
2578
2579 case $enable_silent_rules in # (((
2580 yes) AM_DEFAULT_VERBOSITY=0;;
2581 no) AM_DEFAULT_VERBOSITY=1;;
2582 *) AM_DEFAULT_VERBOSITY=1;;
2583 esac
2584 am_make=${MAKE-make}
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2586 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2587 if ${am_cv_make_support_nested_variables+:} false; then :
2588 $as_echo_n "(cached) " >&6
2589 else
2590 if $as_echo 'TRUE=$(BAR$(V))
2591 BAR0=false
2592 BAR1=true
2593 V=1
2594 am__doit:
2595 @$(TRUE)
2596 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2597 am_cv_make_support_nested_variables=yes
2598 else
2599 am_cv_make_support_nested_variables=no
2600 fi
2601 fi
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2603 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2604 if test $am_cv_make_support_nested_variables = yes; then
2605 AM_V='$(V)'
2606 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2607 else
2608 AM_V=$AM_DEFAULT_VERBOSITY
2609 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2610 fi
2611 AM_BACKSLASH='\'
2612
2613 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2614 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2615 # is not polluted with repeated "-I."
2616 am__isrc=' -I$(srcdir)'
2617 # test to see if srcdir already configured
2618 if test -f $srcdir/config.status; then
2619 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2620 fi
2621 fi
2622
2623 # test whether we have cygpath
2624 if test -z "$CYGPATH_W"; then
2625 if (cygpath --version) >/dev/null 2>/dev/null; then
2626 CYGPATH_W='cygpath -w'
2627 else
2628 CYGPATH_W=echo
2629 fi
2630 fi
2631
2632
2633 # Define the identity of the package.
2634 PACKAGE='xfd'
2635 VERSION='1.1.3'
2636
2637
2638 cat >>confdefs.h <<_ACEOF
2639 #define PACKAGE "$PACKAGE"
2640 _ACEOF
2641
2642
2643 cat >>confdefs.h <<_ACEOF
2644 #define VERSION "$VERSION"
2645 _ACEOF
2646
2647 # Some tools Automake needs.
2648
2649 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2650
2651
2652 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2653
2654
2655 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2656
2657
2658 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2659
2660
2661 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2662
2663 # For better backward compatibility. To be removed once Automake 1.9.x
2664 # dies out for good. For more background, see:
2665 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2666 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2667 mkdir_p='$(MKDIR_P)'
2668
2669 # We need awk for the "check" target (and possibly the TAP driver). The
2670 # system "awk" is bad on some platforms.
2671 # Always define AMTAR for backward compatibility. Yes, it's still used
2672 # in the wild :-( We should find a proper way to deprecate it ...
2673 AMTAR='$${TAR-tar}'
2674
2675
2676 # We'll loop over all known methods to create a tar archive until one works.
2677 _am_tools='gnutar pax cpio none'
2678
2679 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2680
2681
2682
2683
2684
2685
2686 # POSIX will say in a future version that running "rm -f" with no argument
2687 # is OK; and we want to be able to make that assumption in our Makefile
2688 # recipes. So use an aggressive probe to check that the usage we want is
2689 # actually supported "in the wild" to an acceptable degree.
2690 # See automake bug#10828.
2691 # To make any issue more visible, cause the running configure to be aborted
2692 # by default if the 'rm' program in use doesn't match our expectations; the
2693 # user can still override this though.
2694 if rm -f && rm -fr && rm -rf; then : OK; else
2695 cat >&2 <<'END'
2696 Oops!
2697
2698 Your 'rm' program seems unable to run without file operands specified
2699 on the command line, even when the '-f' option is present. This is contrary
2700 to the behaviour of most rm programs out there, and not conforming with
2701 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2702
2703 Please tell bug-automake@gnu.org about your system, including the value
2704 of your $PATH and any error possibly output before this message. This
2705 can help us improve future automake versions.
2706
2707 END
2708 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2709 echo 'Configuration will proceed anyway, since you have set the' >&2
2710 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2711 echo >&2
2712 else
2713 cat >&2 <<'END'
2714 Aborting the configuration process, to ensure you take notice of the issue.
2715
2716 You can download and install GNU coreutils to get an 'rm' implementation
2717 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2718
2719 If you want to complete the configuration process using your problematic
2720 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2721 to "yes", and re-run configure.
2722
2723 END
2724 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2725 fi
2726 fi
2727
2728
2729 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741 DEPDIR="${am__leading_dot}deps"
2742
2743 ac_config_commands="$ac_config_commands depfiles"
2744
2745
2746 am_make=${MAKE-make}
2747 cat > confinc << 'END'
2748 am__doit:
2749 @echo this is the am__doit target
2750 .PHONY: am__doit
2751 END
2752 # If we don't find an include directive, just comment out the code.
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2754 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2755 am__include="#"
2756 am__quote=
2757 _am_result=none
2758 # First try GNU make style include.
2759 echo "include confinc" > confmf
2760 # Ignore all kinds of additional output from 'make'.
2761 case `$am_make -s -f confmf 2> /dev/null` in #(
2762 *the\ am__doit\ target*)
2763 am__include=include
2764 am__quote=
2765 _am_result=GNU
2766 ;;
2767 esac
2768 # Now try BSD make style include.
2769 if test "$am__include" = "#"; then
2770 echo '.include "confinc"' > confmf
2771 case `$am_make -s -f confmf 2> /dev/null` in #(
2772 *the\ am__doit\ target*)
2773 am__include=.include
2774 am__quote="\""
2775 _am_result=BSD
2776 ;;
2777 esac
2778 fi
2779
2780
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2782 $as_echo "$_am_result" >&6; }
2783 rm -f confinc confmf
2784
2785 # Check whether --enable-dependency-tracking was given.
2786 if test "${enable_dependency_tracking+set}" = set; then :
2787 enableval=$enable_dependency_tracking;
2788 fi
2789
2790 if test "x$enable_dependency_tracking" != xno; then
2791 am_depcomp="$ac_aux_dir/depcomp"
2792 AMDEPBACKSLASH='\'
2793 am__nodep='_no'
2794 fi
2795 if test "x$enable_dependency_tracking" != xno; then
2796 AMDEP_TRUE=
2797 AMDEP_FALSE='#'
2798 else
2799 AMDEP_TRUE='#'
2800 AMDEP_FALSE=
2801 fi
2802
2803
2804 ac_ext=c
2805 ac_cpp='$CPP $CPPFLAGS'
2806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2809 if test -n "$ac_tool_prefix"; then
2810 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2811 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813 $as_echo_n "checking for $ac_word... " >&6; }
2814 if ${ac_cv_prog_CC+:} false; then :
2815 $as_echo_n "(cached) " >&6
2816 else
2817 if test -n "$CC"; then
2818 ac_cv_prog_CC="$CC" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2822 do
2823 IFS=$as_save_IFS
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 break 2
2830 fi
2831 done
2832 done
2833 IFS=$as_save_IFS
2834
2835 fi
2836 fi
2837 CC=$ac_cv_prog_CC
2838 if test -n "$CC"; then
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2840 $as_echo "$CC" >&6; }
2841 else
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 $as_echo "no" >&6; }
2844 fi
2845
2846
2847 fi
2848 if test -z "$ac_cv_prog_CC"; then
2849 ac_ct_CC=$CC
2850 # Extract the first word of "gcc", so it can be a program name with args.
2851 set dummy gcc; ac_word=$2
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853 $as_echo_n "checking for $ac_word... " >&6; }
2854 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2855 $as_echo_n "(cached) " >&6
2856 else
2857 if test -n "$ac_ct_CC"; then
2858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867 ac_cv_prog_ac_ct_CC="gcc"
2868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 break 2
2870 fi
2871 done
2872 done
2873 IFS=$as_save_IFS
2874
2875 fi
2876 fi
2877 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2878 if test -n "$ac_ct_CC"; then
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2880 $as_echo "$ac_ct_CC" >&6; }
2881 else
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2884 fi
2885
2886 if test "x$ac_ct_CC" = x; then
2887 CC=""
2888 else
2889 case $cross_compiling:$ac_tool_warned in
2890 yes:)
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2893 ac_tool_warned=yes ;;
2894 esac
2895 CC=$ac_ct_CC
2896 fi
2897 else
2898 CC="$ac_cv_prog_CC"
2899 fi
2900
2901 if test -z "$CC"; then
2902 if test -n "$ac_tool_prefix"; then
2903 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2904 set dummy ${ac_tool_prefix}cc; ac_word=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if ${ac_cv_prog_CC+:} false; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 if test -n "$CC"; then
2911 ac_cv_prog_CC="$CC" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920 ac_cv_prog_CC="${ac_tool_prefix}cc"
2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2923 fi
2924 done
2925 done
2926 IFS=$as_save_IFS
2927
2928 fi
2929 fi
2930 CC=$ac_cv_prog_CC
2931 if test -n "$CC"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933 $as_echo "$CC" >&6; }
2934 else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2937 fi
2938
2939
2940 fi
2941 fi
2942 if test -z "$CC"; then
2943 # Extract the first word of "cc", so it can be a program name with args.
2944 set dummy cc; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if ${ac_cv_prog_CC+:} false; then :
2948 $as_echo_n "(cached) " >&6
2949 else
2950 if test -n "$CC"; then
2951 ac_cv_prog_CC="$CC" # Let the user override the test.
2952 else
2953 ac_prog_rejected=no
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2956 do
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2961 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2962 ac_prog_rejected=yes
2963 continue
2964 fi
2965 ac_cv_prog_CC="cc"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 break 2
2968 fi
2969 done
2970 done
2971 IFS=$as_save_IFS
2972
2973 if test $ac_prog_rejected = yes; then
2974 # We found a bogon in the path, so make sure we never use it.
2975 set dummy $ac_cv_prog_CC
2976 shift
2977 if test $# != 0; then
2978 # We chose a different compiler from the bogus one.
2979 # However, it has the same basename, so the bogon will be chosen
2980 # first if we set CC to just the basename; use the full file name.
2981 shift
2982 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2983 fi
2984 fi
2985 fi
2986 fi
2987 CC=$ac_cv_prog_CC
2988 if test -n "$CC"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2990 $as_echo "$CC" >&6; }
2991 else
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2994 fi
2995
2996
2997 fi
2998 if test -z "$CC"; then
2999 if test -n "$ac_tool_prefix"; then
3000 for ac_prog in cl.exe
3001 do
3002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_CC+:} false; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3014 do
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 break 2
3022 fi
3023 done
3024 done
3025 IFS=$as_save_IFS
3026
3027 fi
3028 fi
3029 CC=$ac_cv_prog_CC
3030 if test -n "$CC"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3032 $as_echo "$CC" >&6; }
3033 else
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3036 fi
3037
3038
3039 test -n "$CC" && break
3040 done
3041 fi
3042 if test -z "$CC"; then
3043 ac_ct_CC=$CC
3044 for ac_prog in cl.exe
3045 do
3046 # Extract the first word of "$ac_prog", so it can be a program name with args.
3047 set dummy $ac_prog; ac_word=$2
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3051 $as_echo_n "(cached) " >&6
3052 else
3053 if test -n "$ac_ct_CC"; then
3054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3055 else
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3058 do
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3063 ac_cv_prog_ac_ct_CC="$ac_prog"
3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 break 2
3066 fi
3067 done
3068 done
3069 IFS=$as_save_IFS
3070
3071 fi
3072 fi
3073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3074 if test -n "$ac_ct_CC"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3076 $as_echo "$ac_ct_CC" >&6; }
3077 else
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3080 fi
3081
3082
3083 test -n "$ac_ct_CC" && break
3084 done
3085
3086 if test "x$ac_ct_CC" = x; then
3087 CC=""
3088 else
3089 case $cross_compiling:$ac_tool_warned in
3090 yes:)
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3093 ac_tool_warned=yes ;;
3094 esac
3095 CC=$ac_ct_CC
3096 fi
3097 fi
3098
3099 fi
3100
3101
3102 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3104 as_fn_error $? "no acceptable C compiler found in \$PATH
3105 See \`config.log' for more details" "$LINENO" 5; }
3106
3107 # Provide some information about the compiler.
3108 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3109 set X $ac_compile
3110 ac_compiler=$2
3111 for ac_option in --version -v -V -qversion; do
3112 { { ac_try="$ac_compiler $ac_option >&5"
3113 case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116 esac
3117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118 $as_echo "$ac_try_echo"; } >&5
3119 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3120 ac_status=$?
3121 if test -s conftest.err; then
3122 sed '10a\
3123 ... rest of stderr output deleted ...
3124 10q' conftest.err >conftest.er1
3125 cat conftest.er1 >&5
3126 fi
3127 rm -f conftest.er1 conftest.err
3128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129 test $ac_status = 0; }
3130 done
3131
3132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3133 /* end confdefs.h. */
3134
3135 int
3136 main ()
3137 {
3138
3139 ;
3140 return 0;
3141 }
3142 _ACEOF
3143 ac_clean_files_save=$ac_clean_files
3144 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3145 # Try to create an executable without -o first, disregard a.out.
3146 # It will help us diagnose broken compilers, and finding out an intuition
3147 # of exeext.
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3149 $as_echo_n "checking whether the C compiler works... " >&6; }
3150 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3151
3152 # The possible output files:
3153 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3154
3155 ac_rmfiles=
3156 for ac_file in $ac_files
3157 do
3158 case $ac_file in
3159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3160 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3161 esac
3162 done
3163 rm -f $ac_rmfiles
3164
3165 if { { ac_try="$ac_link_default"
3166 case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171 $as_echo "$ac_try_echo"; } >&5
3172 (eval "$ac_link_default") 2>&5
3173 ac_status=$?
3174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3175 test $ac_status = 0; }; then :
3176 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3177 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3178 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3179 # so that the user can short-circuit this test for compilers unknown to
3180 # Autoconf.
3181 for ac_file in $ac_files ''
3182 do
3183 test -f "$ac_file" || continue
3184 case $ac_file in
3185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3186 ;;
3187 [ab].out )
3188 # We found the default executable, but exeext='' is most
3189 # certainly right.
3190 break;;
3191 *.* )
3192 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3193 then :; else
3194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3195 fi
3196 # We set ac_cv_exeext here because the later test for it is not
3197 # safe: cross compilers may not add the suffix if given an `-o'
3198 # argument, so we may need to know it at that point already.
3199 # Even if this section looks crufty: it has the advantage of
3200 # actually working.
3201 break;;
3202 * )
3203 break;;
3204 esac
3205 done
3206 test "$ac_cv_exeext" = no && ac_cv_exeext=
3207
3208 else
3209 ac_file=''
3210 fi
3211 if test -z "$ac_file"; then :
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 $as_echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3216
3217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219 as_fn_error 77 "C compiler cannot create executables
3220 See \`config.log' for more details" "$LINENO" 5; }
3221 else
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3223 $as_echo "yes" >&6; }
3224 fi
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3226 $as_echo_n "checking for C compiler default output file name... " >&6; }
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3228 $as_echo "$ac_file" >&6; }
3229 ac_exeext=$ac_cv_exeext
3230
3231 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3232 ac_clean_files=$ac_clean_files_save
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3234 $as_echo_n "checking for suffix of executables... " >&6; }
3235 if { { ac_try="$ac_link"
3236 case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239 esac
3240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241 $as_echo "$ac_try_echo"; } >&5
3242 (eval "$ac_link") 2>&5
3243 ac_status=$?
3244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245 test $ac_status = 0; }; then :
3246 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3247 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3248 # work properly (i.e., refer to `conftest.exe'), while it won't with
3249 # `rm'.
3250 for ac_file in conftest.exe conftest conftest.*; do
3251 test -f "$ac_file" || continue
3252 case $ac_file in
3253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3254 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3255 break;;
3256 * ) break;;
3257 esac
3258 done
3259 else
3260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3263 See \`config.log' for more details" "$LINENO" 5; }
3264 fi
3265 rm -f conftest conftest$ac_cv_exeext
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3267 $as_echo "$ac_cv_exeext" >&6; }
3268
3269 rm -f conftest.$ac_ext
3270 EXEEXT=$ac_cv_exeext
3271 ac_exeext=$EXEEXT
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3274 #include <stdio.h>
3275 int
3276 main ()
3277 {
3278 FILE *f = fopen ("conftest.out", "w");
3279 return ferror (f) || fclose (f) != 0;
3280
3281 ;
3282 return 0;
3283 }
3284 _ACEOF
3285 ac_clean_files="$ac_clean_files conftest.out"
3286 # Check that the compiler produces executables we can run. If not, either
3287 # the compiler is broken, or we cross compile.
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3289 $as_echo_n "checking whether we are cross compiling... " >&6; }
3290 if test "$cross_compiling" != yes; then
3291 { { ac_try="$ac_link"
3292 case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295 esac
3296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297 $as_echo "$ac_try_echo"; } >&5
3298 (eval "$ac_link") 2>&5
3299 ac_status=$?
3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301 test $ac_status = 0; }
3302 if { ac_try='./conftest$ac_cv_exeext'
3303 { { case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306 esac
3307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308 $as_echo "$ac_try_echo"; } >&5
3309 (eval "$ac_try") 2>&5
3310 ac_status=$?
3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }; }; then
3313 cross_compiling=no
3314 else
3315 if test "$cross_compiling" = maybe; then
3316 cross_compiling=yes
3317 else
3318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320 as_fn_error $? "cannot run C compiled programs.
3321 If you meant to cross compile, use \`--host'.
3322 See \`config.log' for more details" "$LINENO" 5; }
3323 fi
3324 fi
3325 fi
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3327 $as_echo "$cross_compiling" >&6; }
3328
3329 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3330 ac_clean_files=$ac_clean_files_save
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3332 $as_echo_n "checking for suffix of object files... " >&6; }
3333 if ${ac_cv_objext+:} false; then :
3334 $as_echo_n "(cached) " >&6
3335 else
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3338
3339 int
3340 main ()
3341 {
3342
3343 ;
3344 return 0;
3345 }
3346 _ACEOF
3347 rm -f conftest.o conftest.obj
3348 if { { ac_try="$ac_compile"
3349 case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3352 esac
3353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354 $as_echo "$ac_try_echo"; } >&5
3355 (eval "$ac_compile") 2>&5
3356 ac_status=$?
3357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358 test $ac_status = 0; }; then :
3359 for ac_file in conftest.o conftest.obj conftest.*; do
3360 test -f "$ac_file" || continue;
3361 case $ac_file in
3362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3363 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3364 break;;
3365 esac
3366 done
3367 else
3368 $as_echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3370
3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error $? "cannot compute suffix of object files: cannot compile
3374 See \`config.log' for more details" "$LINENO" 5; }
3375 fi
3376 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3377 fi
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3379 $as_echo "$ac_cv_objext" >&6; }
3380 OBJEXT=$ac_cv_objext
3381 ac_objext=$OBJEXT
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3383 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3384 if ${ac_cv_c_compiler_gnu+:} false; then :
3385 $as_echo_n "(cached) " >&6
3386 else
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3389
3390 int
3391 main ()
3392 {
3393 #ifndef __GNUC__
3394 choke me
3395 #endif
3396
3397 ;
3398 return 0;
3399 }
3400 _ACEOF
3401 if ac_fn_c_try_compile "$LINENO"; then :
3402 ac_compiler_gnu=yes
3403 else
3404 ac_compiler_gnu=no
3405 fi
3406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3407 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3408
3409 fi
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3411 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3412 if test $ac_compiler_gnu = yes; then
3413 GCC=yes
3414 else
3415 GCC=
3416 fi
3417 ac_test_CFLAGS=${CFLAGS+set}
3418 ac_save_CFLAGS=$CFLAGS
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3420 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3421 if ${ac_cv_prog_cc_g+:} false; then :
3422 $as_echo_n "(cached) " >&6
3423 else
3424 ac_save_c_werror_flag=$ac_c_werror_flag
3425 ac_c_werror_flag=yes
3426 ac_cv_prog_cc_g=no
3427 CFLAGS="-g"
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3430
3431 int
3432 main ()
3433 {
3434
3435 ;
3436 return 0;
3437 }
3438 _ACEOF
3439 if ac_fn_c_try_compile "$LINENO"; then :
3440 ac_cv_prog_cc_g=yes
3441 else
3442 CFLAGS=""
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h. */
3445
3446 int
3447 main ()
3448 {
3449
3450 ;
3451 return 0;
3452 }
3453 _ACEOF
3454 if ac_fn_c_try_compile "$LINENO"; then :
3455
3456 else
3457 ac_c_werror_flag=$ac_save_c_werror_flag
3458 CFLAGS="-g"
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3461
3462 int
3463 main ()
3464 {
3465
3466 ;
3467 return 0;
3468 }
3469 _ACEOF
3470 if ac_fn_c_try_compile "$LINENO"; then :
3471 ac_cv_prog_cc_g=yes
3472 fi
3473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474 fi
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 fi
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 ac_c_werror_flag=$ac_save_c_werror_flag
3479 fi
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3481 $as_echo "$ac_cv_prog_cc_g" >&6; }
3482 if test "$ac_test_CFLAGS" = set; then
3483 CFLAGS=$ac_save_CFLAGS
3484 elif test $ac_cv_prog_cc_g = yes; then
3485 if test "$GCC" = yes; then
3486 CFLAGS="-g -O2"
3487 else
3488 CFLAGS="-g"
3489 fi
3490 else
3491 if test "$GCC" = yes; then
3492 CFLAGS="-O2"
3493 else
3494 CFLAGS=
3495 fi
3496 fi
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3498 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3499 if ${ac_cv_prog_cc_c89+:} false; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 ac_cv_prog_cc_c89=no
3503 ac_save_CC=$CC
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3506 #include <stdarg.h>
3507 #include <stdio.h>
3508 struct stat;
3509 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3510 struct buf { int x; };
3511 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3512 static char *e (p, i)
3513 char **p;
3514 int i;
3515 {
3516 return p[i];
3517 }
3518 static char *f (char * (*g) (char **, int), char **p, ...)
3519 {
3520 char *s;
3521 va_list v;
3522 va_start (v,p);
3523 s = g (p, va_arg (v,int));
3524 va_end (v);
3525 return s;
3526 }
3527
3528 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3529 function prototypes and stuff, but not '\xHH' hex character constants.
3530 These don't provoke an error unfortunately, instead are silently treated
3531 as 'x'. The following induces an error, until -std is added to get
3532 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3533 array size at least. It's necessary to write '\x00'==0 to get something
3534 that's true only with -std. */
3535 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3536
3537 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3538 inside strings and character constants. */
3539 #define FOO(x) 'x'
3540 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3541
3542 int test (int i, double x);
3543 struct s1 {int (*f) (int a);};
3544 struct s2 {int (*f) (double a);};
3545 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3546 int argc;
3547 char **argv;
3548 int
3549 main ()
3550 {
3551 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3552 ;
3553 return 0;
3554 }
3555 _ACEOF
3556 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3557 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3558 do
3559 CC="$ac_save_CC $ac_arg"
3560 if ac_fn_c_try_compile "$LINENO"; then :
3561 ac_cv_prog_cc_c89=$ac_arg
3562 fi
3563 rm -f core conftest.err conftest.$ac_objext
3564 test "x$ac_cv_prog_cc_c89" != "xno" && break
3565 done
3566 rm -f conftest.$ac_ext
3567 CC=$ac_save_CC
3568
3569 fi
3570 # AC_CACHE_VAL
3571 case "x$ac_cv_prog_cc_c89" in
3572 x)
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3574 $as_echo "none needed" >&6; } ;;
3575 xno)
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3577 $as_echo "unsupported" >&6; } ;;
3578 *)
3579 CC="$CC $ac_cv_prog_cc_c89"
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3581 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3582 esac
3583 if test "x$ac_cv_prog_cc_c89" != xno; then :
3584
3585 fi
3586
3587 ac_ext=c
3588 ac_cpp='$CPP $CPPFLAGS'
3589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3592
3593 ac_ext=c
3594 ac_cpp='$CPP $CPPFLAGS'
3595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3599 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3600 if ${am_cv_prog_cc_c_o+:} false; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3605
3606 int
3607 main ()
3608 {
3609
3610 ;
3611 return 0;
3612 }
3613 _ACEOF
3614 # Make sure it works both with $CC and with simple cc.
3615 # Following AC_PROG_CC_C_O, we do the test twice because some
3616 # compilers refuse to overwrite an existing .o file with -o,
3617 # though they will create one.
3618 am_cv_prog_cc_c_o=yes
3619 for am_i in 1 2; do
3620 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3621 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3622 ac_status=$?
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } \
3625 && test -f conftest2.$ac_objext; then
3626 : OK
3627 else
3628 am_cv_prog_cc_c_o=no
3629 break
3630 fi
3631 done
3632 rm -f core conftest*
3633 unset am_i
3634 fi
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3636 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3637 if test "$am_cv_prog_cc_c_o" != yes; then
3638 # Losing compiler, so override with the script.
3639 # FIXME: It is wrong to rewrite CC.
3640 # But if we don't then we get into trouble of one sort or another.
3641 # A longer-term fix would be to have automake use am__CC in this case,
3642 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3643 CC="$am_aux_dir/compile $CC"
3644 fi
3645 ac_ext=c
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650
3651
3652 depcc="$CC" am_compiler_list=
3653
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3655 $as_echo_n "checking dependency style of $depcc... " >&6; }
3656 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3657 $as_echo_n "(cached) " >&6
3658 else
3659 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3660 # We make a subdir and do the tests there. Otherwise we can end up
3661 # making bogus files that we don't know about and never remove. For
3662 # instance it was reported that on HP-UX the gcc test will end up
3663 # making a dummy file named 'D' -- because '-MD' means "put the output
3664 # in D".
3665 rm -rf conftest.dir
3666 mkdir conftest.dir
3667 # Copy depcomp to subdir because otherwise we won't find it if we're
3668 # using a relative directory.
3669 cp "$am_depcomp" conftest.dir
3670 cd conftest.dir
3671 # We will build objects and dependencies in a subdirectory because
3672 # it helps to detect inapplicable dependency modes. For instance
3673 # both Tru64's cc and ICC support -MD to output dependencies as a
3674 # side effect of compilation, but ICC will put the dependencies in
3675 # the current directory while Tru64 will put them in the object
3676 # directory.
3677 mkdir sub
3678
3679 am_cv_CC_dependencies_compiler_type=none
3680 if test "$am_compiler_list" = ""; then
3681 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3682 fi
3683 am__universal=false
3684 case " $depcc " in #(
3685 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3686 esac
3687
3688 for depmode in $am_compiler_list; do
3689 # Setup a source with many dependencies, because some compilers
3690 # like to wrap large dependency lists on column 80 (with \), and
3691 # we should not choose a depcomp mode which is confused by this.
3692 #
3693 # We need to recreate these files for each test, as the compiler may
3694 # overwrite some of them when testing with obscure command lines.
3695 # This happens at least with the AIX C compiler.
3696 : > sub/conftest.c
3697 for i in 1 2 3 4 5 6; do
3698 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3699 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3700 # Solaris 10 /bin/sh.
3701 echo '/* dummy */' > sub/conftst$i.h
3702 done
3703 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3704
3705 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3706 # mode. It turns out that the SunPro C++ compiler does not properly
3707 # handle '-M -o', and we need to detect this. Also, some Intel
3708 # versions had trouble with output in subdirs.
3709 am__obj=sub/conftest.${OBJEXT-o}
3710 am__minus_obj="-o $am__obj"
3711 case $depmode in
3712 gcc)
3713 # This depmode causes a compiler race in universal mode.
3714 test "$am__universal" = false || continue
3715 ;;
3716 nosideeffect)
3717 # After this tag, mechanisms are not by side-effect, so they'll
3718 # only be used when explicitly requested.
3719 if test "x$enable_dependency_tracking" = xyes; then
3720 continue
3721 else
3722 break
3723 fi
3724 ;;
3725 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3726 # This compiler won't grok '-c -o', but also, the minuso test has
3727 # not run yet. These depmodes are late enough in the game, and
3728 # so weak that their functioning should not be impacted.
3729 am__obj=conftest.${OBJEXT-o}
3730 am__minus_obj=
3731 ;;
3732 none) break ;;
3733 esac
3734 if depmode=$depmode \
3735 source=sub/conftest.c object=$am__obj \
3736 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3737 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3738 >/dev/null 2>conftest.err &&
3739 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3740 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3741 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3742 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3743 # icc doesn't choke on unknown options, it will just issue warnings
3744 # or remarks (even with -Werror). So we grep stderr for any message
3745 # that says an option was ignored or not supported.
3746 # When given -MP, icc 7.0 and 7.1 complain thusly:
3747 # icc: Command line warning: ignoring option '-M'; no argument required
3748 # The diagnosis changed in icc 8.0:
3749 # icc: Command line remark: option '-MP' not supported
3750 if (grep 'ignoring option' conftest.err ||
3751 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3752 am_cv_CC_dependencies_compiler_type=$depmode
3753 break
3754 fi
3755 fi
3756 done
3757
3758 cd ..
3759 rm -rf conftest.dir
3760 else
3761 am_cv_CC_dependencies_compiler_type=none
3762 fi
3763
3764 fi
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3766 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3767 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3768
3769 if
3770 test "x$enable_dependency_tracking" != xno \
3771 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3772 am__fastdepCC_TRUE=
3773 am__fastdepCC_FALSE='#'
3774 else
3775 am__fastdepCC_TRUE='#'
3776 am__fastdepCC_FALSE=
3777 fi
3778
3779
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3781 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3782 if ${ac_cv_prog_cc_c99+:} false; then :
3783 $as_echo_n "(cached) " >&6
3784 else
3785 ac_cv_prog_cc_c99=no
3786 ac_save_CC=$CC
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3789 #include <stdarg.h>
3790 #include <stdbool.h>
3791 #include <stdlib.h>
3792 #include <wchar.h>
3793 #include <stdio.h>
3794
3795 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3796 #define debug(...) fprintf (stderr, __VA_ARGS__)
3797 #define showlist(...) puts (#__VA_ARGS__)
3798 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3799 static void
3800 test_varargs_macros (void)
3801 {
3802 int x = 1234;
3803 int y = 5678;
3804 debug ("Flag");
3805 debug ("X = %d\n", x);
3806 showlist (The first, second, and third items.);
3807 report (x>y, "x is %d but y is %d", x, y);
3808 }
3809
3810 // Check long long types.
3811 #define BIG64 18446744073709551615ull
3812 #define BIG32 4294967295ul
3813 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3814 #if !BIG_OK
3815 your preprocessor is broken;
3816 #endif
3817 #if BIG_OK
3818 #else
3819 your preprocessor is broken;
3820 #endif
3821 static long long int bignum = -9223372036854775807LL;
3822 static unsigned long long int ubignum = BIG64;
3823
3824 struct incomplete_array
3825 {
3826 int datasize;
3827 double data[];
3828 };
3829
3830 struct named_init {
3831 int number;
3832 const wchar_t *name;
3833 double average;
3834 };
3835
3836 typedef const char *ccp;
3837
3838 static inline int
3839 test_restrict (ccp restrict text)
3840 {
3841 // See if C++-style comments work.
3842 // Iterate through items via the restricted pointer.
3843 // Also check for declarations in for loops.
3844 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3845 continue;
3846 return 0;
3847 }
3848
3849 // Check varargs and va_copy.
3850 static void
3851 test_varargs (const char *format, ...)
3852 {
3853 va_list args;
3854 va_start (args, format);
3855 va_list args_copy;
3856 va_copy (args_copy, args);
3857
3858 const char *str;
3859 int number;
3860 float fnumber;
3861
3862 while (*format)
3863 {
3864 switch (*format++)
3865 {
3866 case 's': // string
3867 str = va_arg (args_copy, const char *);
3868 break;
3869 case 'd': // int
3870 number = va_arg (args_copy, int);
3871 break;
3872 case 'f': // float
3873 fnumber = va_arg (args_copy, double);
3874 break;
3875 default:
3876 break;
3877 }
3878 }
3879 va_end (args_copy);
3880 va_end (args);
3881 }
3882
3883 int
3884 main ()
3885 {
3886
3887 // Check bool.
3888 _Bool success = false;
3889
3890 // Check restrict.
3891 if (test_restrict ("String literal") == 0)
3892 success = true;
3893 char *restrict newvar = "Another string";
3894
3895 // Check varargs.
3896 test_varargs ("s, d' f .", "string", 65, 34.234);
3897 test_varargs_macros ();
3898
3899 // Check flexible array members.
3900 struct incomplete_array *ia =
3901 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3902 ia->datasize = 10;
3903 for (int i = 0; i < ia->datasize; ++i)
3904 ia->data[i] = i * 1.234;
3905
3906 // Check named initializers.
3907 struct named_init ni = {
3908 .number = 34,
3909 .name = L"Test wide string",
3910 .average = 543.34343,
3911 };
3912
3913 ni.number = 58;
3914
3915 int dynamic_array[ni.number];
3916 dynamic_array[ni.number - 1] = 543;
3917
3918 // work around unused variable warnings
3919 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3920 || dynamic_array[ni.number - 1] != 543);
3921
3922 ;
3923 return 0;
3924 }
3925 _ACEOF
3926 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3927 do
3928 CC="$ac_save_CC $ac_arg"
3929 if ac_fn_c_try_compile "$LINENO"; then :
3930 ac_cv_prog_cc_c99=$ac_arg
3931 fi
3932 rm -f core conftest.err conftest.$ac_objext
3933 test "x$ac_cv_prog_cc_c99" != "xno" && break
3934 done
3935 rm -f conftest.$ac_ext
3936 CC=$ac_save_CC
3937
3938 fi
3939 # AC_CACHE_VAL
3940 case "x$ac_cv_prog_cc_c99" in
3941 x)
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3943 $as_echo "none needed" >&6; } ;;
3944 xno)
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3946 $as_echo "unsupported" >&6; } ;;
3947 *)
3948 CC="$CC $ac_cv_prog_cc_c99"
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3950 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3951 esac
3952 if test "x$ac_cv_prog_cc_c99" != xno; then :
3953
3954 fi
3955
3956
3957
3958 ac_ext=c
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3964 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3965 # On Suns, sometimes $CPP names a directory.
3966 if test -n "$CPP" && test -d "$CPP"; then
3967 CPP=
3968 fi
3969 if test -z "$CPP"; then
3970 if ${ac_cv_prog_CPP+:} false; then :
3971 $as_echo_n "(cached) " >&6
3972 else
3973 # Double quotes because CPP needs to be expanded
3974 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3975 do
3976 ac_preproc_ok=false
3977 for ac_c_preproc_warn_flag in '' yes
3978 do
3979 # Use a header file that comes with gcc, so configuring glibc
3980 # with a fresh cross-compiler works.
3981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3982 # <limits.h> exists even on freestanding compilers.
3983 # On the NeXT, cc -E runs the code through the compiler's parser,
3984 # not just through cpp. "Syntax error" is here to catch this case.
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3987 #ifdef __STDC__
3988 # include <limits.h>
3989 #else
3990 # include <assert.h>
3991 #endif
3992 Syntax error
3993 _ACEOF
3994 if ac_fn_c_try_cpp "$LINENO"; then :
3995
3996 else
3997 # Broken: fails on valid input.
3998 continue
3999 fi
4000 rm -f conftest.err conftest.i conftest.$ac_ext
4001
4002 # OK, works on sane cases. Now check whether nonexistent headers
4003 # can be detected and how.
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4006 #include <ac_nonexistent.h>
4007 _ACEOF
4008 if ac_fn_c_try_cpp "$LINENO"; then :
4009 # Broken: success on invalid input.
4010 continue
4011 else
4012 # Passes both tests.
4013 ac_preproc_ok=:
4014 break
4015 fi
4016 rm -f conftest.err conftest.i conftest.$ac_ext
4017
4018 done
4019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4020 rm -f conftest.i conftest.err conftest.$ac_ext
4021 if $ac_preproc_ok; then :
4022 break
4023 fi
4024
4025 done
4026 ac_cv_prog_CPP=$CPP
4027
4028 fi
4029 CPP=$ac_cv_prog_CPP
4030 else
4031 ac_cv_prog_CPP=$CPP
4032 fi
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4034 $as_echo "$CPP" >&6; }
4035 ac_preproc_ok=false
4036 for ac_c_preproc_warn_flag in '' yes
4037 do
4038 # Use a header file that comes with gcc, so configuring glibc
4039 # with a fresh cross-compiler works.
4040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4041 # <limits.h> exists even on freestanding compilers.
4042 # On the NeXT, cc -E runs the code through the compiler's parser,
4043 # not just through cpp. "Syntax error" is here to catch this case.
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046 #ifdef __STDC__
4047 # include <limits.h>
4048 #else
4049 # include <assert.h>
4050 #endif
4051 Syntax error
4052 _ACEOF
4053 if ac_fn_c_try_cpp "$LINENO"; then :
4054
4055 else
4056 # Broken: fails on valid input.
4057 continue
4058 fi
4059 rm -f conftest.err conftest.i conftest.$ac_ext
4060
4061 # OK, works on sane cases. Now check whether nonexistent headers
4062 # can be detected and how.
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065 #include <ac_nonexistent.h>
4066 _ACEOF
4067 if ac_fn_c_try_cpp "$LINENO"; then :
4068 # Broken: success on invalid input.
4069 continue
4070 else
4071 # Passes both tests.
4072 ac_preproc_ok=:
4073 break
4074 fi
4075 rm -f conftest.err conftest.i conftest.$ac_ext
4076
4077 done
4078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4079 rm -f conftest.i conftest.err conftest.$ac_ext
4080 if $ac_preproc_ok; then :
4081
4082 else
4083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4085 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4086 See \`config.log' for more details" "$LINENO" 5; }
4087 fi
4088
4089 ac_ext=c
4090 ac_cpp='$CPP $CPPFLAGS'
4091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094
4095
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4097 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4098 if ${ac_cv_path_GREP+:} false; then :
4099 $as_echo_n "(cached) " >&6
4100 else
4101 if test -z "$GREP"; then
4102 ac_path_GREP_found=false
4103 # Loop through the user's path and test for each of PROGNAME-LIST
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4106 do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_prog in grep ggrep; do
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4112 as_fn_executable_p "$ac_path_GREP" || continue
4113 # Check for GNU ac_path_GREP and select it if it is found.
4114 # Check for GNU $ac_path_GREP
4115 case `"$ac_path_GREP" --version 2>&1` in
4116 *GNU*)
4117 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4118 *)
4119 ac_count=0
4120 $as_echo_n 0123456789 >"conftest.in"
4121 while :
4122 do
4123 cat "conftest.in" "conftest.in" >"conftest.tmp"
4124 mv "conftest.tmp" "conftest.in"
4125 cp "conftest.in" "conftest.nl"
4126 $as_echo 'GREP' >> "conftest.nl"
4127 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4129 as_fn_arith $ac_count + 1 && ac_count=$as_val
4130 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4131 # Best one so far, save it but keep looking for a better one
4132 ac_cv_path_GREP="$ac_path_GREP"
4133 ac_path_GREP_max=$ac_count
4134 fi
4135 # 10*(2^10) chars as input seems more than enough
4136 test $ac_count -gt 10 && break
4137 done
4138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4139 esac
4140
4141 $ac_path_GREP_found && break 3
4142 done
4143 done
4144 done
4145 IFS=$as_save_IFS
4146 if test -z "$ac_cv_path_GREP"; then
4147 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4148 fi
4149 else
4150 ac_cv_path_GREP=$GREP
4151 fi
4152
4153 fi
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4155 $as_echo "$ac_cv_path_GREP" >&6; }
4156 GREP="$ac_cv_path_GREP"
4157
4158
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4160 $as_echo_n "checking for egrep... " >&6; }
4161 if ${ac_cv_path_EGREP+:} false; then :
4162 $as_echo_n "(cached) " >&6
4163 else
4164 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4165 then ac_cv_path_EGREP="$GREP -E"
4166 else
4167 if test -z "$EGREP"; then
4168 ac_path_EGREP_found=false
4169 # Loop through the user's path and test for each of PROGNAME-LIST
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4172 do
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
4175 for ac_prog in egrep; do
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4178 as_fn_executable_p "$ac_path_EGREP" || continue
4179 # Check for GNU ac_path_EGREP and select it if it is found.
4180 # Check for GNU $ac_path_EGREP
4181 case `"$ac_path_EGREP" --version 2>&1` in
4182 *GNU*)
4183 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4184 *)
4185 ac_count=0
4186 $as_echo_n 0123456789 >"conftest.in"
4187 while :
4188 do
4189 cat "conftest.in" "conftest.in" >"conftest.tmp"
4190 mv "conftest.tmp" "conftest.in"
4191 cp "conftest.in" "conftest.nl"
4192 $as_echo 'EGREP' >> "conftest.nl"
4193 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4195 as_fn_arith $ac_count + 1 && ac_count=$as_val
4196 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4197 # Best one so far, save it but keep looking for a better one
4198 ac_cv_path_EGREP="$ac_path_EGREP"
4199 ac_path_EGREP_max=$ac_count
4200 fi
4201 # 10*(2^10) chars as input seems more than enough
4202 test $ac_count -gt 10 && break
4203 done
4204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4205 esac
4206
4207 $ac_path_EGREP_found && break 3
4208 done
4209 done
4210 done
4211 IFS=$as_save_IFS
4212 if test -z "$ac_cv_path_EGREP"; then
4213 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4214 fi
4215 else
4216 ac_cv_path_EGREP=$EGREP
4217 fi
4218
4219 fi
4220 fi
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4222 $as_echo "$ac_cv_path_EGREP" >&6; }
4223 EGREP="$ac_cv_path_EGREP"
4224
4225
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4227 $as_echo_n "checking for ANSI C header files... " >&6; }
4228 if ${ac_cv_header_stdc+:} false; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4233 #include <stdlib.h>
4234 #include <stdarg.h>
4235 #include <string.h>
4236 #include <float.h>
4237
4238 int
4239 main ()
4240 {
4241
4242 ;
4243 return 0;
4244 }
4245 _ACEOF
4246 if ac_fn_c_try_compile "$LINENO"; then :
4247 ac_cv_header_stdc=yes
4248 else
4249 ac_cv_header_stdc=no
4250 fi
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252
4253 if test $ac_cv_header_stdc = yes; then
4254 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4257 #include <string.h>
4258
4259 _ACEOF
4260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4261 $EGREP "memchr" >/dev/null 2>&1; then :
4262
4263 else
4264 ac_cv_header_stdc=no
4265 fi
4266 rm -f conftest*
4267
4268 fi
4269
4270 if test $ac_cv_header_stdc = yes; then
4271 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4274 #include <stdlib.h>
4275
4276 _ACEOF
4277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4278 $EGREP "free" >/dev/null 2>&1; then :
4279
4280 else
4281 ac_cv_header_stdc=no
4282 fi
4283 rm -f conftest*
4284
4285 fi
4286
4287 if test $ac_cv_header_stdc = yes; then
4288 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4289 if test "$cross_compiling" = yes; then :
4290 :
4291 else
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4294 #include <ctype.h>
4295 #include <stdlib.h>
4296 #if ((' ' & 0x0FF) == 0x020)
4297 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4298 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4299 #else
4300 # define ISLOWER(c) \
4301 (('a' <= (c) && (c) <= 'i') \
4302 || ('j' <= (c) && (c) <= 'r') \
4303 || ('s' <= (c) && (c) <= 'z'))
4304 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4305 #endif
4306
4307 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4308 int
4309 main ()
4310 {
4311 int i;
4312 for (i = 0; i < 256; i++)
4313 if (XOR (islower (i), ISLOWER (i))
4314 || toupper (i) != TOUPPER (i))
4315 return 2;
4316 return 0;
4317 }
4318 _ACEOF
4319 if ac_fn_c_try_run "$LINENO"; then :
4320
4321 else
4322 ac_cv_header_stdc=no
4323 fi
4324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4325 conftest.$ac_objext conftest.beam conftest.$ac_ext
4326 fi
4327
4328 fi
4329 fi
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4331 $as_echo "$ac_cv_header_stdc" >&6; }
4332 if test $ac_cv_header_stdc = yes; then
4333
4334 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4335
4336 fi
4337
4338 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4339 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4340 inttypes.h stdint.h unistd.h
4341 do :
4342 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4343 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4344 "
4345 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4346 cat >>confdefs.h <<_ACEOF
4347 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4348 _ACEOF
4349
4350 fi
4351
4352 done
4353
4354
4355
4356
4357
4358
4359 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4360 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4361 CLANGCC="yes"
4362 else
4363 CLANGCC="no"
4364 fi
4365
4366 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4367 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4368 INTELCC="yes"
4369 else
4370 INTELCC="no"
4371 fi
4372
4373 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4374 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4375 SUNCC="yes"
4376 else
4377 SUNCC="no"
4378 fi
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4389 if test -n "$ac_tool_prefix"; then
4390 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4391 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4393 $as_echo_n "checking for $ac_word... " >&6; }
4394 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4395 $as_echo_n "(cached) " >&6
4396 else
4397 case $PKG_CONFIG in
4398 [\\/]* | ?:[\\/]*)
4399 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4400 ;;
4401 *)
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4404 do
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 break 2
4412 fi
4413 done
4414 done
4415 IFS=$as_save_IFS
4416
4417 ;;
4418 esac
4419 fi
4420 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4421 if test -n "$PKG_CONFIG"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4423 $as_echo "$PKG_CONFIG" >&6; }
4424 else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4427 fi
4428
4429
4430 fi
4431 if test -z "$ac_cv_path_PKG_CONFIG"; then
4432 ac_pt_PKG_CONFIG=$PKG_CONFIG
4433 # Extract the first word of "pkg-config", so it can be a program name with args.
4434 set dummy pkg-config; ac_word=$2
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436 $as_echo_n "checking for $ac_word... " >&6; }
4437 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 case $ac_pt_PKG_CONFIG in
4441 [\\/]* | ?:[\\/]*)
4442 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4443 ;;
4444 *)
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4447 do
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 break 2
4455 fi
4456 done
4457 done
4458 IFS=$as_save_IFS
4459
4460 ;;
4461 esac
4462 fi
4463 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4464 if test -n "$ac_pt_PKG_CONFIG"; then
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4466 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4467 else
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4469 $as_echo "no" >&6; }
4470 fi
4471
4472 if test "x$ac_pt_PKG_CONFIG" = x; then
4473 PKG_CONFIG=""
4474 else
4475 case $cross_compiling:$ac_tool_warned in
4476 yes:)
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4479 ac_tool_warned=yes ;;
4480 esac
4481 PKG_CONFIG=$ac_pt_PKG_CONFIG
4482 fi
4483 else
4484 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4485 fi
4486
4487 fi
4488 if test -n "$PKG_CONFIG"; then
4489 _pkg_min_version=0.9.0
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4491 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4492 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4494 $as_echo "yes" >&6; }
4495 else
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497 $as_echo "no" >&6; }
4498 PKG_CONFIG=""
4499 fi
4500 fi
4501 # Make sure we can run config.sub.
4502 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4503 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4504
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4506 $as_echo_n "checking build system type... " >&6; }
4507 if ${ac_cv_build+:} false; then :
4508 $as_echo_n "(cached) " >&6
4509 else
4510 ac_build_alias=$build_alias
4511 test "x$ac_build_alias" = x &&
4512 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4513 test "x$ac_build_alias" = x &&
4514 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4515 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4516 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4517
4518 fi
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4520 $as_echo "$ac_cv_build" >&6; }
4521 case $ac_cv_build in
4522 *-*-*) ;;
4523 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4524 esac
4525 build=$ac_cv_build
4526 ac_save_IFS=$IFS; IFS='-'
4527 set x $ac_cv_build
4528 shift
4529 build_cpu=$1
4530 build_vendor=$2
4531 shift; shift
4532 # Remember, the first character of IFS is used to create $*,
4533 # except with old shells:
4534 build_os=$*
4535 IFS=$ac_save_IFS
4536 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4537
4538
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4540 $as_echo_n "checking host system type... " >&6; }
4541 if ${ac_cv_host+:} false; then :
4542 $as_echo_n "(cached) " >&6
4543 else
4544 if test "x$host_alias" = x; then
4545 ac_cv_host=$ac_cv_build
4546 else
4547 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4548 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4549 fi
4550
4551 fi
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4553 $as_echo "$ac_cv_host" >&6; }
4554 case $ac_cv_host in
4555 *-*-*) ;;
4556 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4557 esac
4558 host=$ac_cv_host
4559 ac_save_IFS=$IFS; IFS='-'
4560 set x $ac_cv_host
4561 shift
4562 host_cpu=$1
4563 host_vendor=$2
4564 shift; shift
4565 # Remember, the first character of IFS is used to create $*,
4566 # except with old shells:
4567 host_os=$*
4568 IFS=$ac_save_IFS
4569 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4570
4571
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4573 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4574 if ${ac_cv_path_SED+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4578 for ac_i in 1 2 3 4 5 6 7; do
4579 ac_script="$ac_script$as_nl$ac_script"
4580 done
4581 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4582 { ac_script=; unset ac_script;}
4583 if test -z "$SED"; then
4584 ac_path_SED_found=false
4585 # Loop through the user's path and test for each of PROGNAME-LIST
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_prog in sed gsed; do
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4594 as_fn_executable_p "$ac_path_SED" || continue
4595 # Check for GNU ac_path_SED and select it if it is found.
4596 # Check for GNU $ac_path_SED
4597 case `"$ac_path_SED" --version 2>&1` in
4598 *GNU*)
4599 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4600 *)
4601 ac_count=0
4602 $as_echo_n 0123456789 >"conftest.in"
4603 while :
4604 do
4605 cat "conftest.in" "conftest.in" >"conftest.tmp"
4606 mv "conftest.tmp" "conftest.in"
4607 cp "conftest.in" "conftest.nl"
4608 $as_echo '' >> "conftest.nl"
4609 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4610 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4611 as_fn_arith $ac_count + 1 && ac_count=$as_val
4612 if test $ac_count -gt ${ac_path_SED_max-0}; then
4613 # Best one so far, save it but keep looking for a better one
4614 ac_cv_path_SED="$ac_path_SED"
4615 ac_path_SED_max=$ac_count
4616 fi
4617 # 10*(2^10) chars as input seems more than enough
4618 test $ac_count -gt 10 && break
4619 done
4620 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4621 esac
4622
4623 $ac_path_SED_found && break 3
4624 done
4625 done
4626 done
4627 IFS=$as_save_IFS
4628 if test -z "$ac_cv_path_SED"; then
4629 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4630 fi
4631 else
4632 ac_cv_path_SED=$SED
4633 fi
4634
4635 fi
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4637 $as_echo "$ac_cv_path_SED" >&6; }
4638 SED="$ac_cv_path_SED"
4639 rm -f conftest.sed
4640
4641
4642
4643
4644
4645
4646 # Check whether --enable-selective-werror was given.
4647 if test "${enable_selective_werror+set}" = set; then :
4648 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4649 else
4650 SELECTIVE_WERROR=yes
4651 fi
4652
4653
4654
4655
4656
4657 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4658 if test "x$SUNCC" = "xyes"; then
4659 BASE_CFLAGS="-v"
4660 else
4661 BASE_CFLAGS=""
4662 fi
4663
4664 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678 xorg_testset_save_CFLAGS="$CFLAGS"
4679
4680 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4683 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4684 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4685 $as_echo_n "(cached) " >&6
4686 else
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4689 int i;
4690 _ACEOF
4691 if ac_fn_c_try_compile "$LINENO"; then :
4692 xorg_cv_cc_flag_unknown_warning_option=yes
4693 else
4694 xorg_cv_cc_flag_unknown_warning_option=no
4695 fi
4696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4697 fi
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4699 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4701 CFLAGS="$xorg_testset_save_CFLAGS"
4702 fi
4703
4704 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4707 fi
4708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4710 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4711 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4712 $as_echo_n "(cached) " >&6
4713 else
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4716 int i;
4717 _ACEOF
4718 if ac_fn_c_try_compile "$LINENO"; then :
4719 xorg_cv_cc_flag_unused_command_line_argument=yes
4720 else
4721 xorg_cv_cc_flag_unused_command_line_argument=no
4722 fi
4723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724 fi
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4726 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4728 CFLAGS="$xorg_testset_save_CFLAGS"
4729 fi
4730
4731 found="no"
4732
4733 if test $found = "no" ; then
4734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4736 fi
4737
4738 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4740 fi
4741
4742 CFLAGS="$CFLAGS -Wall"
4743
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4745 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4746 cacheid=xorg_cv_cc_flag__Wall
4747 if eval \${$cacheid+:} false; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4752 int i;
4753 int
4754 main ()
4755 {
4756
4757 ;
4758 return 0;
4759 }
4760 _ACEOF
4761 if ac_fn_c_try_link "$LINENO"; then :
4762 eval $cacheid=yes
4763 else
4764 eval $cacheid=no
4765 fi
4766 rm -f core conftest.err conftest.$ac_objext \
4767 conftest$ac_exeext conftest.$ac_ext
4768 fi
4769
4770
4771 CFLAGS="$xorg_testset_save_CFLAGS"
4772
4773 eval supported=\$$cacheid
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4775 $as_echo "$supported" >&6; }
4776 if test "$supported" = "yes" ; then
4777 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4778 found="yes"
4779 fi
4780 fi
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796 xorg_testset_save_CFLAGS="$CFLAGS"
4797
4798 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4801 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4802 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h. */
4807 int i;
4808 _ACEOF
4809 if ac_fn_c_try_compile "$LINENO"; then :
4810 xorg_cv_cc_flag_unknown_warning_option=yes
4811 else
4812 xorg_cv_cc_flag_unknown_warning_option=no
4813 fi
4814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 fi
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4817 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4819 CFLAGS="$xorg_testset_save_CFLAGS"
4820 fi
4821
4822 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4825 fi
4826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4828 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4829 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834 int i;
4835 _ACEOF
4836 if ac_fn_c_try_compile "$LINENO"; then :
4837 xorg_cv_cc_flag_unused_command_line_argument=yes
4838 else
4839 xorg_cv_cc_flag_unused_command_line_argument=no
4840 fi
4841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4842 fi
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4844 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4846 CFLAGS="$xorg_testset_save_CFLAGS"
4847 fi
4848
4849 found="no"
4850
4851 if test $found = "no" ; then
4852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4854 fi
4855
4856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4858 fi
4859
4860 CFLAGS="$CFLAGS -Wpointer-arith"
4861
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4863 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4864 cacheid=xorg_cv_cc_flag__Wpointer_arith
4865 if eval \${$cacheid+:} false; then :
4866 $as_echo_n "(cached) " >&6
4867 else
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4870 int i;
4871 int
4872 main ()
4873 {
4874
4875 ;
4876 return 0;
4877 }
4878 _ACEOF
4879 if ac_fn_c_try_link "$LINENO"; then :
4880 eval $cacheid=yes
4881 else
4882 eval $cacheid=no
4883 fi
4884 rm -f core conftest.err conftest.$ac_objext \
4885 conftest$ac_exeext conftest.$ac_ext
4886 fi
4887
4888
4889 CFLAGS="$xorg_testset_save_CFLAGS"
4890
4891 eval supported=\$$cacheid
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4893 $as_echo "$supported" >&6; }
4894 if test "$supported" = "yes" ; then
4895 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4896 found="yes"
4897 fi
4898 fi
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914 xorg_testset_save_CFLAGS="$CFLAGS"
4915
4916 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4919 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4920 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4921 $as_echo_n "(cached) " >&6
4922 else
4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4925 int i;
4926 _ACEOF
4927 if ac_fn_c_try_compile "$LINENO"; then :
4928 xorg_cv_cc_flag_unknown_warning_option=yes
4929 else
4930 xorg_cv_cc_flag_unknown_warning_option=no
4931 fi
4932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4933 fi
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4935 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4937 CFLAGS="$xorg_testset_save_CFLAGS"
4938 fi
4939
4940 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4943 fi
4944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4946 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4947 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4948 $as_echo_n "(cached) " >&6
4949 else
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4952 int i;
4953 _ACEOF
4954 if ac_fn_c_try_compile "$LINENO"; then :
4955 xorg_cv_cc_flag_unused_command_line_argument=yes
4956 else
4957 xorg_cv_cc_flag_unused_command_line_argument=no
4958 fi
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 fi
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4962 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4964 CFLAGS="$xorg_testset_save_CFLAGS"
4965 fi
4966
4967 found="no"
4968
4969 if test $found = "no" ; then
4970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4972 fi
4973
4974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4976 fi
4977
4978 CFLAGS="$CFLAGS -Wmissing-declarations"
4979
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4981 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4982 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4983 if eval \${$cacheid+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4988 int i;
4989 int
4990 main ()
4991 {
4992
4993 ;
4994 return 0;
4995 }
4996 _ACEOF
4997 if ac_fn_c_try_link "$LINENO"; then :
4998 eval $cacheid=yes
4999 else
5000 eval $cacheid=no
5001 fi
5002 rm -f core conftest.err conftest.$ac_objext \
5003 conftest$ac_exeext conftest.$ac_ext
5004 fi
5005
5006
5007 CFLAGS="$xorg_testset_save_CFLAGS"
5008
5009 eval supported=\$$cacheid
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5011 $as_echo "$supported" >&6; }
5012 if test "$supported" = "yes" ; then
5013 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5014 found="yes"
5015 fi
5016 fi
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032 xorg_testset_save_CFLAGS="$CFLAGS"
5033
5034 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5037 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5038 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5039 $as_echo_n "(cached) " >&6
5040 else
5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042 /* end confdefs.h. */
5043 int i;
5044 _ACEOF
5045 if ac_fn_c_try_compile "$LINENO"; then :
5046 xorg_cv_cc_flag_unknown_warning_option=yes
5047 else
5048 xorg_cv_cc_flag_unknown_warning_option=no
5049 fi
5050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051 fi
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5053 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5055 CFLAGS="$xorg_testset_save_CFLAGS"
5056 fi
5057
5058 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5061 fi
5062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5064 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5065 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5070 int i;
5071 _ACEOF
5072 if ac_fn_c_try_compile "$LINENO"; then :
5073 xorg_cv_cc_flag_unused_command_line_argument=yes
5074 else
5075 xorg_cv_cc_flag_unused_command_line_argument=no
5076 fi
5077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078 fi
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5080 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5082 CFLAGS="$xorg_testset_save_CFLAGS"
5083 fi
5084
5085 found="no"
5086
5087 if test $found = "no" ; then
5088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5090 fi
5091
5092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5094 fi
5095
5096 CFLAGS="$CFLAGS -Wformat=2"
5097
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5099 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5100 cacheid=xorg_cv_cc_flag__Wformat_2
5101 if eval \${$cacheid+:} false; then :
5102 $as_echo_n "(cached) " >&6
5103 else
5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105 /* end confdefs.h. */
5106 int i;
5107 int
5108 main ()
5109 {
5110
5111 ;
5112 return 0;
5113 }
5114 _ACEOF
5115 if ac_fn_c_try_link "$LINENO"; then :
5116 eval $cacheid=yes
5117 else
5118 eval $cacheid=no
5119 fi
5120 rm -f core conftest.err conftest.$ac_objext \
5121 conftest$ac_exeext conftest.$ac_ext
5122 fi
5123
5124
5125 CFLAGS="$xorg_testset_save_CFLAGS"
5126
5127 eval supported=\$$cacheid
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5129 $as_echo "$supported" >&6; }
5130 if test "$supported" = "yes" ; then
5131 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5132 found="yes"
5133 fi
5134 fi
5135
5136 if test $found = "no" ; then
5137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5139 fi
5140
5141 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5143 fi
5144
5145 CFLAGS="$CFLAGS -Wformat"
5146
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5148 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5149 cacheid=xorg_cv_cc_flag__Wformat
5150 if eval \${$cacheid+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5155 int i;
5156 int
5157 main ()
5158 {
5159
5160 ;
5161 return 0;
5162 }
5163 _ACEOF
5164 if ac_fn_c_try_link "$LINENO"; then :
5165 eval $cacheid=yes
5166 else
5167 eval $cacheid=no
5168 fi
5169 rm -f core conftest.err conftest.$ac_objext \
5170 conftest$ac_exeext conftest.$ac_ext
5171 fi
5172
5173
5174 CFLAGS="$xorg_testset_save_CFLAGS"
5175
5176 eval supported=\$$cacheid
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5178 $as_echo "$supported" >&6; }
5179 if test "$supported" = "yes" ; then
5180 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5181 found="yes"
5182 fi
5183 fi
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201 xorg_testset_save_CFLAGS="$CFLAGS"
5202
5203 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5206 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5207 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5212 int i;
5213 _ACEOF
5214 if ac_fn_c_try_compile "$LINENO"; then :
5215 xorg_cv_cc_flag_unknown_warning_option=yes
5216 else
5217 xorg_cv_cc_flag_unknown_warning_option=no
5218 fi
5219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5220 fi
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5222 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5224 CFLAGS="$xorg_testset_save_CFLAGS"
5225 fi
5226
5227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5230 fi
5231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5233 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5234 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239 int i;
5240 _ACEOF
5241 if ac_fn_c_try_compile "$LINENO"; then :
5242 xorg_cv_cc_flag_unused_command_line_argument=yes
5243 else
5244 xorg_cv_cc_flag_unused_command_line_argument=no
5245 fi
5246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247 fi
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5249 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5251 CFLAGS="$xorg_testset_save_CFLAGS"
5252 fi
5253
5254 found="no"
5255
5256 if test $found = "no" ; then
5257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5259 fi
5260
5261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5263 fi
5264
5265 CFLAGS="$CFLAGS -Wstrict-prototypes"
5266
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5268 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5269 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5270 if eval \${$cacheid+:} false; then :
5271 $as_echo_n "(cached) " >&6
5272 else
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5275 int i;
5276 int
5277 main ()
5278 {
5279
5280 ;
5281 return 0;
5282 }
5283 _ACEOF
5284 if ac_fn_c_try_link "$LINENO"; then :
5285 eval $cacheid=yes
5286 else
5287 eval $cacheid=no
5288 fi
5289 rm -f core conftest.err conftest.$ac_objext \
5290 conftest$ac_exeext conftest.$ac_ext
5291 fi
5292
5293
5294 CFLAGS="$xorg_testset_save_CFLAGS"
5295
5296 eval supported=\$$cacheid
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5298 $as_echo "$supported" >&6; }
5299 if test "$supported" = "yes" ; then
5300 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5301 found="yes"
5302 fi
5303 fi
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319 xorg_testset_save_CFLAGS="$CFLAGS"
5320
5321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5324 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5325 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5326 $as_echo_n "(cached) " >&6
5327 else
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5330 int i;
5331 _ACEOF
5332 if ac_fn_c_try_compile "$LINENO"; then :
5333 xorg_cv_cc_flag_unknown_warning_option=yes
5334 else
5335 xorg_cv_cc_flag_unknown_warning_option=no
5336 fi
5337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338 fi
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5340 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5342 CFLAGS="$xorg_testset_save_CFLAGS"
5343 fi
5344
5345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5348 fi
5349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5351 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5352 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5357 int i;
5358 _ACEOF
5359 if ac_fn_c_try_compile "$LINENO"; then :
5360 xorg_cv_cc_flag_unused_command_line_argument=yes
5361 else
5362 xorg_cv_cc_flag_unused_command_line_argument=no
5363 fi
5364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365 fi
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5367 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5369 CFLAGS="$xorg_testset_save_CFLAGS"
5370 fi
5371
5372 found="no"
5373
5374 if test $found = "no" ; then
5375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5377 fi
5378
5379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5381 fi
5382
5383 CFLAGS="$CFLAGS -Wmissing-prototypes"
5384
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5386 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5387 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5388 if eval \${$cacheid+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5393 int i;
5394 int
5395 main ()
5396 {
5397
5398 ;
5399 return 0;
5400 }
5401 _ACEOF
5402 if ac_fn_c_try_link "$LINENO"; then :
5403 eval $cacheid=yes
5404 else
5405 eval $cacheid=no
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext \
5408 conftest$ac_exeext conftest.$ac_ext
5409 fi
5410
5411
5412 CFLAGS="$xorg_testset_save_CFLAGS"
5413
5414 eval supported=\$$cacheid
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5416 $as_echo "$supported" >&6; }
5417 if test "$supported" = "yes" ; then
5418 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5419 found="yes"
5420 fi
5421 fi
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437 xorg_testset_save_CFLAGS="$CFLAGS"
5438
5439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5442 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5443 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5448 int i;
5449 _ACEOF
5450 if ac_fn_c_try_compile "$LINENO"; then :
5451 xorg_cv_cc_flag_unknown_warning_option=yes
5452 else
5453 xorg_cv_cc_flag_unknown_warning_option=no
5454 fi
5455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5456 fi
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5458 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5460 CFLAGS="$xorg_testset_save_CFLAGS"
5461 fi
5462
5463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5466 fi
5467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5469 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5470 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5471 $as_echo_n "(cached) " >&6
5472 else
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5475 int i;
5476 _ACEOF
5477 if ac_fn_c_try_compile "$LINENO"; then :
5478 xorg_cv_cc_flag_unused_command_line_argument=yes
5479 else
5480 xorg_cv_cc_flag_unused_command_line_argument=no
5481 fi
5482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483 fi
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5485 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5487 CFLAGS="$xorg_testset_save_CFLAGS"
5488 fi
5489
5490 found="no"
5491
5492 if test $found = "no" ; then
5493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5495 fi
5496
5497 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5499 fi
5500
5501 CFLAGS="$CFLAGS -Wnested-externs"
5502
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5504 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5505 cacheid=xorg_cv_cc_flag__Wnested_externs
5506 if eval \${$cacheid+:} false; then :
5507 $as_echo_n "(cached) " >&6
5508 else
5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h. */
5511 int i;
5512 int
5513 main ()
5514 {
5515
5516 ;
5517 return 0;
5518 }
5519 _ACEOF
5520 if ac_fn_c_try_link "$LINENO"; then :
5521 eval $cacheid=yes
5522 else
5523 eval $cacheid=no
5524 fi
5525 rm -f core conftest.err conftest.$ac_objext \
5526 conftest$ac_exeext conftest.$ac_ext
5527 fi
5528
5529
5530 CFLAGS="$xorg_testset_save_CFLAGS"
5531
5532 eval supported=\$$cacheid
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5534 $as_echo "$supported" >&6; }
5535 if test "$supported" = "yes" ; then
5536 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5537 found="yes"
5538 fi
5539 fi
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555 xorg_testset_save_CFLAGS="$CFLAGS"
5556
5557 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5560 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5561 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5566 int i;
5567 _ACEOF
5568 if ac_fn_c_try_compile "$LINENO"; then :
5569 xorg_cv_cc_flag_unknown_warning_option=yes
5570 else
5571 xorg_cv_cc_flag_unknown_warning_option=no
5572 fi
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 fi
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5576 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5578 CFLAGS="$xorg_testset_save_CFLAGS"
5579 fi
5580
5581 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5584 fi
5585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5587 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5588 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5589 $as_echo_n "(cached) " >&6
5590 else
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593 int i;
5594 _ACEOF
5595 if ac_fn_c_try_compile "$LINENO"; then :
5596 xorg_cv_cc_flag_unused_command_line_argument=yes
5597 else
5598 xorg_cv_cc_flag_unused_command_line_argument=no
5599 fi
5600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5601 fi
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5603 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5604 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5605 CFLAGS="$xorg_testset_save_CFLAGS"
5606 fi
5607
5608 found="no"
5609
5610 if test $found = "no" ; then
5611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5613 fi
5614
5615 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5617 fi
5618
5619 CFLAGS="$CFLAGS -Wbad-function-cast"
5620
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5622 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5623 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5624 if eval \${$cacheid+:} false; then :
5625 $as_echo_n "(cached) " >&6
5626 else
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5629 int i;
5630 int
5631 main ()
5632 {
5633
5634 ;
5635 return 0;
5636 }
5637 _ACEOF
5638 if ac_fn_c_try_link "$LINENO"; then :
5639 eval $cacheid=yes
5640 else
5641 eval $cacheid=no
5642 fi
5643 rm -f core conftest.err conftest.$ac_objext \
5644 conftest$ac_exeext conftest.$ac_ext
5645 fi
5646
5647
5648 CFLAGS="$xorg_testset_save_CFLAGS"
5649
5650 eval supported=\$$cacheid
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5652 $as_echo "$supported" >&6; }
5653 if test "$supported" = "yes" ; then
5654 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5655 found="yes"
5656 fi
5657 fi
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673 xorg_testset_save_CFLAGS="$CFLAGS"
5674
5675 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5678 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5679 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5684 int i;
5685 _ACEOF
5686 if ac_fn_c_try_compile "$LINENO"; then :
5687 xorg_cv_cc_flag_unknown_warning_option=yes
5688 else
5689 xorg_cv_cc_flag_unknown_warning_option=no
5690 fi
5691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5692 fi
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5694 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5696 CFLAGS="$xorg_testset_save_CFLAGS"
5697 fi
5698
5699 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5702 fi
5703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5705 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5706 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5707 $as_echo_n "(cached) " >&6
5708 else
5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h. */
5711 int i;
5712 _ACEOF
5713 if ac_fn_c_try_compile "$LINENO"; then :
5714 xorg_cv_cc_flag_unused_command_line_argument=yes
5715 else
5716 xorg_cv_cc_flag_unused_command_line_argument=no
5717 fi
5718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719 fi
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5721 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5723 CFLAGS="$xorg_testset_save_CFLAGS"
5724 fi
5725
5726 found="no"
5727
5728 if test $found = "no" ; then
5729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5731 fi
5732
5733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5735 fi
5736
5737 CFLAGS="$CFLAGS -Wold-style-definition"
5738
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5740 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5741 cacheid=xorg_cv_cc_flag__Wold_style_definition
5742 if eval \${$cacheid+:} false; then :
5743 $as_echo_n "(cached) " >&6
5744 else
5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
5747 int i;
5748 int
5749 main ()
5750 {
5751
5752 ;
5753 return 0;
5754 }
5755 _ACEOF
5756 if ac_fn_c_try_link "$LINENO"; then :
5757 eval $cacheid=yes
5758 else
5759 eval $cacheid=no
5760 fi
5761 rm -f core conftest.err conftest.$ac_objext \
5762 conftest$ac_exeext conftest.$ac_ext
5763 fi
5764
5765
5766 CFLAGS="$xorg_testset_save_CFLAGS"
5767
5768 eval supported=\$$cacheid
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5770 $as_echo "$supported" >&6; }
5771 if test "$supported" = "yes" ; then
5772 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5773 found="yes"
5774 fi
5775 fi
5776
5777 if test $found = "no" ; then
5778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5780 fi
5781
5782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5784 fi
5785
5786 CFLAGS="$CFLAGS -fd"
5787
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5789 $as_echo_n "checking if $CC supports -fd... " >&6; }
5790 cacheid=xorg_cv_cc_flag__fd
5791 if eval \${$cacheid+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5796 int i;
5797 int
5798 main ()
5799 {
5800
5801 ;
5802 return 0;
5803 }
5804 _ACEOF
5805 if ac_fn_c_try_link "$LINENO"; then :
5806 eval $cacheid=yes
5807 else
5808 eval $cacheid=no
5809 fi
5810 rm -f core conftest.err conftest.$ac_objext \
5811 conftest$ac_exeext conftest.$ac_ext
5812 fi
5813
5814
5815 CFLAGS="$xorg_testset_save_CFLAGS"
5816
5817 eval supported=\$$cacheid
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5819 $as_echo "$supported" >&6; }
5820 if test "$supported" = "yes" ; then
5821 BASE_CFLAGS="$BASE_CFLAGS -fd"
5822 found="yes"
5823 fi
5824 fi
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840 xorg_testset_save_CFLAGS="$CFLAGS"
5841
5842 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5845 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5846 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5847 $as_echo_n "(cached) " >&6
5848 else
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h. */
5851 int i;
5852 _ACEOF
5853 if ac_fn_c_try_compile "$LINENO"; then :
5854 xorg_cv_cc_flag_unknown_warning_option=yes
5855 else
5856 xorg_cv_cc_flag_unknown_warning_option=no
5857 fi
5858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859 fi
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5861 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5863 CFLAGS="$xorg_testset_save_CFLAGS"
5864 fi
5865
5866 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5869 fi
5870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5872 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5873 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5878 int i;
5879 _ACEOF
5880 if ac_fn_c_try_compile "$LINENO"; then :
5881 xorg_cv_cc_flag_unused_command_line_argument=yes
5882 else
5883 xorg_cv_cc_flag_unused_command_line_argument=no
5884 fi
5885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886 fi
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5888 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5890 CFLAGS="$xorg_testset_save_CFLAGS"
5891 fi
5892
5893 found="no"
5894
5895 if test $found = "no" ; then
5896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5898 fi
5899
5900 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5902 fi
5903
5904 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5905
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5907 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5908 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5909 if eval \${$cacheid+:} false; then :
5910 $as_echo_n "(cached) " >&6
5911 else
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5914 int i;
5915 int
5916 main ()
5917 {
5918
5919 ;
5920 return 0;
5921 }
5922 _ACEOF
5923 if ac_fn_c_try_link "$LINENO"; then :
5924 eval $cacheid=yes
5925 else
5926 eval $cacheid=no
5927 fi
5928 rm -f core conftest.err conftest.$ac_objext \
5929 conftest$ac_exeext conftest.$ac_ext
5930 fi
5931
5932
5933 CFLAGS="$xorg_testset_save_CFLAGS"
5934
5935 eval supported=\$$cacheid
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5937 $as_echo "$supported" >&6; }
5938 if test "$supported" = "yes" ; then
5939 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5940 found="yes"
5941 fi
5942 fi
5943
5944
5945
5946
5947
5948 # This chunk adds additional warnings that could catch undesired effects.
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962 xorg_testset_save_CFLAGS="$CFLAGS"
5963
5964 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5967 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5968 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5973 int i;
5974 _ACEOF
5975 if ac_fn_c_try_compile "$LINENO"; then :
5976 xorg_cv_cc_flag_unknown_warning_option=yes
5977 else
5978 xorg_cv_cc_flag_unknown_warning_option=no
5979 fi
5980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5981 fi
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5983 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5985 CFLAGS="$xorg_testset_save_CFLAGS"
5986 fi
5987
5988 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5991 fi
5992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5994 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5995 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5996 $as_echo_n "(cached) " >&6
5997 else
5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999 /* end confdefs.h. */
6000 int i;
6001 _ACEOF
6002 if ac_fn_c_try_compile "$LINENO"; then :
6003 xorg_cv_cc_flag_unused_command_line_argument=yes
6004 else
6005 xorg_cv_cc_flag_unused_command_line_argument=no
6006 fi
6007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008 fi
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6010 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6012 CFLAGS="$xorg_testset_save_CFLAGS"
6013 fi
6014
6015 found="no"
6016
6017 if test $found = "no" ; then
6018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6020 fi
6021
6022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6024 fi
6025
6026 CFLAGS="$CFLAGS -Wunused"
6027
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6029 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6030 cacheid=xorg_cv_cc_flag__Wunused
6031 if eval \${$cacheid+:} false; then :
6032 $as_echo_n "(cached) " >&6
6033 else
6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h. */
6036 int i;
6037 int
6038 main ()
6039 {
6040
6041 ;
6042 return 0;
6043 }
6044 _ACEOF
6045 if ac_fn_c_try_link "$LINENO"; then :
6046 eval $cacheid=yes
6047 else
6048 eval $cacheid=no
6049 fi
6050 rm -f core conftest.err conftest.$ac_objext \
6051 conftest$ac_exeext conftest.$ac_ext
6052 fi
6053
6054
6055 CFLAGS="$xorg_testset_save_CFLAGS"
6056
6057 eval supported=\$$cacheid
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6059 $as_echo "$supported" >&6; }
6060 if test "$supported" = "yes" ; then
6061 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6062 found="yes"
6063 fi
6064 fi
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080 xorg_testset_save_CFLAGS="$CFLAGS"
6081
6082 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6085 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6086 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6087 $as_echo_n "(cached) " >&6
6088 else
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6091 int i;
6092 _ACEOF
6093 if ac_fn_c_try_compile "$LINENO"; then :
6094 xorg_cv_cc_flag_unknown_warning_option=yes
6095 else
6096 xorg_cv_cc_flag_unknown_warning_option=no
6097 fi
6098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099 fi
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6101 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6103 CFLAGS="$xorg_testset_save_CFLAGS"
6104 fi
6105
6106 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6109 fi
6110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6112 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6113 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6114 $as_echo_n "(cached) " >&6
6115 else
6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117 /* end confdefs.h. */
6118 int i;
6119 _ACEOF
6120 if ac_fn_c_try_compile "$LINENO"; then :
6121 xorg_cv_cc_flag_unused_command_line_argument=yes
6122 else
6123 xorg_cv_cc_flag_unused_command_line_argument=no
6124 fi
6125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 fi
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6128 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6130 CFLAGS="$xorg_testset_save_CFLAGS"
6131 fi
6132
6133 found="no"
6134
6135 if test $found = "no" ; then
6136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6138 fi
6139
6140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6142 fi
6143
6144 CFLAGS="$CFLAGS -Wuninitialized"
6145
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6147 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6148 cacheid=xorg_cv_cc_flag__Wuninitialized
6149 if eval \${$cacheid+:} false; then :
6150 $as_echo_n "(cached) " >&6
6151 else
6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153 /* end confdefs.h. */
6154 int i;
6155 int
6156 main ()
6157 {
6158
6159 ;
6160 return 0;
6161 }
6162 _ACEOF
6163 if ac_fn_c_try_link "$LINENO"; then :
6164 eval $cacheid=yes
6165 else
6166 eval $cacheid=no
6167 fi
6168 rm -f core conftest.err conftest.$ac_objext \
6169 conftest$ac_exeext conftest.$ac_ext
6170 fi
6171
6172
6173 CFLAGS="$xorg_testset_save_CFLAGS"
6174
6175 eval supported=\$$cacheid
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6177 $as_echo "$supported" >&6; }
6178 if test "$supported" = "yes" ; then
6179 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6180 found="yes"
6181 fi
6182 fi
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198 xorg_testset_save_CFLAGS="$CFLAGS"
6199
6200 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6203 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6204 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6209 int i;
6210 _ACEOF
6211 if ac_fn_c_try_compile "$LINENO"; then :
6212 xorg_cv_cc_flag_unknown_warning_option=yes
6213 else
6214 xorg_cv_cc_flag_unknown_warning_option=no
6215 fi
6216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217 fi
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6219 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6221 CFLAGS="$xorg_testset_save_CFLAGS"
6222 fi
6223
6224 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6227 fi
6228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6230 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6231 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6236 int i;
6237 _ACEOF
6238 if ac_fn_c_try_compile "$LINENO"; then :
6239 xorg_cv_cc_flag_unused_command_line_argument=yes
6240 else
6241 xorg_cv_cc_flag_unused_command_line_argument=no
6242 fi
6243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244 fi
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6246 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6248 CFLAGS="$xorg_testset_save_CFLAGS"
6249 fi
6250
6251 found="no"
6252
6253 if test $found = "no" ; then
6254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6256 fi
6257
6258 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6260 fi
6261
6262 CFLAGS="$CFLAGS -Wshadow"
6263
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6265 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6266 cacheid=xorg_cv_cc_flag__Wshadow
6267 if eval \${$cacheid+:} false; then :
6268 $as_echo_n "(cached) " >&6
6269 else
6270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271 /* end confdefs.h. */
6272 int i;
6273 int
6274 main ()
6275 {
6276
6277 ;
6278 return 0;
6279 }
6280 _ACEOF
6281 if ac_fn_c_try_link "$LINENO"; then :
6282 eval $cacheid=yes
6283 else
6284 eval $cacheid=no
6285 fi
6286 rm -f core conftest.err conftest.$ac_objext \
6287 conftest$ac_exeext conftest.$ac_ext
6288 fi
6289
6290
6291 CFLAGS="$xorg_testset_save_CFLAGS"
6292
6293 eval supported=\$$cacheid
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6295 $as_echo "$supported" >&6; }
6296 if test "$supported" = "yes" ; then
6297 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6298 found="yes"
6299 fi
6300 fi
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316 xorg_testset_save_CFLAGS="$CFLAGS"
6317
6318 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6321 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6322 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6323 $as_echo_n "(cached) " >&6
6324 else
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6327 int i;
6328 _ACEOF
6329 if ac_fn_c_try_compile "$LINENO"; then :
6330 xorg_cv_cc_flag_unknown_warning_option=yes
6331 else
6332 xorg_cv_cc_flag_unknown_warning_option=no
6333 fi
6334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6335 fi
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6337 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6338 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6339 CFLAGS="$xorg_testset_save_CFLAGS"
6340 fi
6341
6342 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6345 fi
6346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6348 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6349 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353 /* end confdefs.h. */
6354 int i;
6355 _ACEOF
6356 if ac_fn_c_try_compile "$LINENO"; then :
6357 xorg_cv_cc_flag_unused_command_line_argument=yes
6358 else
6359 xorg_cv_cc_flag_unused_command_line_argument=no
6360 fi
6361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362 fi
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6364 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6365 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6366 CFLAGS="$xorg_testset_save_CFLAGS"
6367 fi
6368
6369 found="no"
6370
6371 if test $found = "no" ; then
6372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6374 fi
6375
6376 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6378 fi
6379
6380 CFLAGS="$CFLAGS -Wmissing-noreturn"
6381
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6383 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6384 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6385 if eval \${$cacheid+:} false; then :
6386 $as_echo_n "(cached) " >&6
6387 else
6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6390 int i;
6391 int
6392 main ()
6393 {
6394
6395 ;
6396 return 0;
6397 }
6398 _ACEOF
6399 if ac_fn_c_try_link "$LINENO"; then :
6400 eval $cacheid=yes
6401 else
6402 eval $cacheid=no
6403 fi
6404 rm -f core conftest.err conftest.$ac_objext \
6405 conftest$ac_exeext conftest.$ac_ext
6406 fi
6407
6408
6409 CFLAGS="$xorg_testset_save_CFLAGS"
6410
6411 eval supported=\$$cacheid
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6413 $as_echo "$supported" >&6; }
6414 if test "$supported" = "yes" ; then
6415 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6416 found="yes"
6417 fi
6418 fi
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434 xorg_testset_save_CFLAGS="$CFLAGS"
6435
6436 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6439 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6440 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6444 /* end confdefs.h. */
6445 int i;
6446 _ACEOF
6447 if ac_fn_c_try_compile "$LINENO"; then :
6448 xorg_cv_cc_flag_unknown_warning_option=yes
6449 else
6450 xorg_cv_cc_flag_unknown_warning_option=no
6451 fi
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453 fi
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6455 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6456 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6457 CFLAGS="$xorg_testset_save_CFLAGS"
6458 fi
6459
6460 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6463 fi
6464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6466 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6467 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6468 $as_echo_n "(cached) " >&6
6469 else
6470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471 /* end confdefs.h. */
6472 int i;
6473 _ACEOF
6474 if ac_fn_c_try_compile "$LINENO"; then :
6475 xorg_cv_cc_flag_unused_command_line_argument=yes
6476 else
6477 xorg_cv_cc_flag_unused_command_line_argument=no
6478 fi
6479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480 fi
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6482 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6483 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6484 CFLAGS="$xorg_testset_save_CFLAGS"
6485 fi
6486
6487 found="no"
6488
6489 if test $found = "no" ; then
6490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6492 fi
6493
6494 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6496 fi
6497
6498 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6499
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6501 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6502 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6503 if eval \${$cacheid+:} false; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6508 int i;
6509 int
6510 main ()
6511 {
6512
6513 ;
6514 return 0;
6515 }
6516 _ACEOF
6517 if ac_fn_c_try_link "$LINENO"; then :
6518 eval $cacheid=yes
6519 else
6520 eval $cacheid=no
6521 fi
6522 rm -f core conftest.err conftest.$ac_objext \
6523 conftest$ac_exeext conftest.$ac_ext
6524 fi
6525
6526
6527 CFLAGS="$xorg_testset_save_CFLAGS"
6528
6529 eval supported=\$$cacheid
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6531 $as_echo "$supported" >&6; }
6532 if test "$supported" = "yes" ; then
6533 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6534 found="yes"
6535 fi
6536 fi
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552 xorg_testset_save_CFLAGS="$CFLAGS"
6553
6554 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6557 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6558 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6563 int i;
6564 _ACEOF
6565 if ac_fn_c_try_compile "$LINENO"; then :
6566 xorg_cv_cc_flag_unknown_warning_option=yes
6567 else
6568 xorg_cv_cc_flag_unknown_warning_option=no
6569 fi
6570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571 fi
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6573 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6574 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6575 CFLAGS="$xorg_testset_save_CFLAGS"
6576 fi
6577
6578 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6581 fi
6582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6584 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6585 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6590 int i;
6591 _ACEOF
6592 if ac_fn_c_try_compile "$LINENO"; then :
6593 xorg_cv_cc_flag_unused_command_line_argument=yes
6594 else
6595 xorg_cv_cc_flag_unused_command_line_argument=no
6596 fi
6597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598 fi
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6600 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6601 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6602 CFLAGS="$xorg_testset_save_CFLAGS"
6603 fi
6604
6605 found="no"
6606
6607 if test $found = "no" ; then
6608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6610 fi
6611
6612 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6614 fi
6615
6616 CFLAGS="$CFLAGS -Wredundant-decls"
6617
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6619 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6620 cacheid=xorg_cv_cc_flag__Wredundant_decls
6621 if eval \${$cacheid+:} false; then :
6622 $as_echo_n "(cached) " >&6
6623 else
6624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625 /* end confdefs.h. */
6626 int i;
6627 int
6628 main ()
6629 {
6630
6631 ;
6632 return 0;
6633 }
6634 _ACEOF
6635 if ac_fn_c_try_link "$LINENO"; then :
6636 eval $cacheid=yes
6637 else
6638 eval $cacheid=no
6639 fi
6640 rm -f core conftest.err conftest.$ac_objext \
6641 conftest$ac_exeext conftest.$ac_ext
6642 fi
6643
6644
6645 CFLAGS="$xorg_testset_save_CFLAGS"
6646
6647 eval supported=\$$cacheid
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6649 $as_echo "$supported" >&6; }
6650 if test "$supported" = "yes" ; then
6651 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6652 found="yes"
6653 fi
6654 fi
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670 xorg_testset_save_CFLAGS="$CFLAGS"
6671
6672 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6675 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6676 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6677 $as_echo_n "(cached) " >&6
6678 else
6679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680 /* end confdefs.h. */
6681 int i;
6682 _ACEOF
6683 if ac_fn_c_try_compile "$LINENO"; then :
6684 xorg_cv_cc_flag_unknown_warning_option=yes
6685 else
6686 xorg_cv_cc_flag_unknown_warning_option=no
6687 fi
6688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689 fi
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6691 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6692 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6693 CFLAGS="$xorg_testset_save_CFLAGS"
6694 fi
6695
6696 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6699 fi
6700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6702 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6703 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6708 int i;
6709 _ACEOF
6710 if ac_fn_c_try_compile "$LINENO"; then :
6711 xorg_cv_cc_flag_unused_command_line_argument=yes
6712 else
6713 xorg_cv_cc_flag_unused_command_line_argument=no
6714 fi
6715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 fi
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6718 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6719 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6720 CFLAGS="$xorg_testset_save_CFLAGS"
6721 fi
6722
6723 found="no"
6724
6725 if test $found = "no" ; then
6726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6728 fi
6729
6730 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6732 fi
6733
6734 CFLAGS="$CFLAGS -Wlogical-op"
6735
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6737 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6738 cacheid=xorg_cv_cc_flag__Wlogical_op
6739 if eval \${$cacheid+:} false; then :
6740 $as_echo_n "(cached) " >&6
6741 else
6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743 /* end confdefs.h. */
6744 int i;
6745 int
6746 main ()
6747 {
6748
6749 ;
6750 return 0;
6751 }
6752 _ACEOF
6753 if ac_fn_c_try_link "$LINENO"; then :
6754 eval $cacheid=yes
6755 else
6756 eval $cacheid=no
6757 fi
6758 rm -f core conftest.err conftest.$ac_objext \
6759 conftest$ac_exeext conftest.$ac_ext
6760 fi
6761
6762
6763 CFLAGS="$xorg_testset_save_CFLAGS"
6764
6765 eval supported=\$$cacheid
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6767 $as_echo "$supported" >&6; }
6768 if test "$supported" = "yes" ; then
6769 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6770 found="yes"
6771 fi
6772 fi
6773
6774
6775
6776 # These are currently disabled because they are noisy. They will be enabled
6777 # in the future once the codebase is sufficiently modernized to silence
6778 # them. For now, I don't want them to drown out the other warnings.
6779 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6780 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6781 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6782
6783 # Turn some warnings into errors, so we don't accidently get successful builds
6784 # when there are problems that should be fixed.
6785
6786 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800 xorg_testset_save_CFLAGS="$CFLAGS"
6801
6802 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6805 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6806 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6807 $as_echo_n "(cached) " >&6
6808 else
6809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6810 /* end confdefs.h. */
6811 int i;
6812 _ACEOF
6813 if ac_fn_c_try_compile "$LINENO"; then :
6814 xorg_cv_cc_flag_unknown_warning_option=yes
6815 else
6816 xorg_cv_cc_flag_unknown_warning_option=no
6817 fi
6818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6819 fi
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6821 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6822 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6823 CFLAGS="$xorg_testset_save_CFLAGS"
6824 fi
6825
6826 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6829 fi
6830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6832 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6833 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6834 $as_echo_n "(cached) " >&6
6835 else
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6838 int i;
6839 _ACEOF
6840 if ac_fn_c_try_compile "$LINENO"; then :
6841 xorg_cv_cc_flag_unused_command_line_argument=yes
6842 else
6843 xorg_cv_cc_flag_unused_command_line_argument=no
6844 fi
6845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6846 fi
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6848 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6850 CFLAGS="$xorg_testset_save_CFLAGS"
6851 fi
6852
6853 found="no"
6854
6855 if test $found = "no" ; then
6856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6858 fi
6859
6860 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6862 fi
6863
6864 CFLAGS="$CFLAGS -Werror=implicit"
6865
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6867 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6868 cacheid=xorg_cv_cc_flag__Werror_implicit
6869 if eval \${$cacheid+:} false; then :
6870 $as_echo_n "(cached) " >&6
6871 else
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6874 int i;
6875 int
6876 main ()
6877 {
6878
6879 ;
6880 return 0;
6881 }
6882 _ACEOF
6883 if ac_fn_c_try_link "$LINENO"; then :
6884 eval $cacheid=yes
6885 else
6886 eval $cacheid=no
6887 fi
6888 rm -f core conftest.err conftest.$ac_objext \
6889 conftest$ac_exeext conftest.$ac_ext
6890 fi
6891
6892
6893 CFLAGS="$xorg_testset_save_CFLAGS"
6894
6895 eval supported=\$$cacheid
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6897 $as_echo "$supported" >&6; }
6898 if test "$supported" = "yes" ; then
6899 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6900 found="yes"
6901 fi
6902 fi
6903
6904 if test $found = "no" ; then
6905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6907 fi
6908
6909 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6911 fi
6912
6913 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6914
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6916 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6917 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6918 if eval \${$cacheid+:} false; then :
6919 $as_echo_n "(cached) " >&6
6920 else
6921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922 /* end confdefs.h. */
6923 int i;
6924 int
6925 main ()
6926 {
6927
6928 ;
6929 return 0;
6930 }
6931 _ACEOF
6932 if ac_fn_c_try_link "$LINENO"; then :
6933 eval $cacheid=yes
6934 else
6935 eval $cacheid=no
6936 fi
6937 rm -f core conftest.err conftest.$ac_objext \
6938 conftest$ac_exeext conftest.$ac_ext
6939 fi
6940
6941
6942 CFLAGS="$xorg_testset_save_CFLAGS"
6943
6944 eval supported=\$$cacheid
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6946 $as_echo "$supported" >&6; }
6947 if test "$supported" = "yes" ; then
6948 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6949 found="yes"
6950 fi
6951 fi
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967 xorg_testset_save_CFLAGS="$CFLAGS"
6968
6969 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6972 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6973 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6974 $as_echo_n "(cached) " >&6
6975 else
6976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977 /* end confdefs.h. */
6978 int i;
6979 _ACEOF
6980 if ac_fn_c_try_compile "$LINENO"; then :
6981 xorg_cv_cc_flag_unknown_warning_option=yes
6982 else
6983 xorg_cv_cc_flag_unknown_warning_option=no
6984 fi
6985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6986 fi
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6988 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6990 CFLAGS="$xorg_testset_save_CFLAGS"
6991 fi
6992
6993 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6996 fi
6997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6999 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7000 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7004 /* end confdefs.h. */
7005 int i;
7006 _ACEOF
7007 if ac_fn_c_try_compile "$LINENO"; then :
7008 xorg_cv_cc_flag_unused_command_line_argument=yes
7009 else
7010 xorg_cv_cc_flag_unused_command_line_argument=no
7011 fi
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013 fi
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7015 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7017 CFLAGS="$xorg_testset_save_CFLAGS"
7018 fi
7019
7020 found="no"
7021
7022 if test $found = "no" ; then
7023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7025 fi
7026
7027 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7029 fi
7030
7031 CFLAGS="$CFLAGS -Werror=nonnull"
7032
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7034 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7035 cacheid=xorg_cv_cc_flag__Werror_nonnull
7036 if eval \${$cacheid+:} false; then :
7037 $as_echo_n "(cached) " >&6
7038 else
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7041 int i;
7042 int
7043 main ()
7044 {
7045
7046 ;
7047 return 0;
7048 }
7049 _ACEOF
7050 if ac_fn_c_try_link "$LINENO"; then :
7051 eval $cacheid=yes
7052 else
7053 eval $cacheid=no
7054 fi
7055 rm -f core conftest.err conftest.$ac_objext \
7056 conftest$ac_exeext conftest.$ac_ext
7057 fi
7058
7059
7060 CFLAGS="$xorg_testset_save_CFLAGS"
7061
7062 eval supported=\$$cacheid
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7064 $as_echo "$supported" >&6; }
7065 if test "$supported" = "yes" ; then
7066 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7067 found="yes"
7068 fi
7069 fi
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085 xorg_testset_save_CFLAGS="$CFLAGS"
7086
7087 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7090 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7091 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7092 $as_echo_n "(cached) " >&6
7093 else
7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h. */
7096 int i;
7097 _ACEOF
7098 if ac_fn_c_try_compile "$LINENO"; then :
7099 xorg_cv_cc_flag_unknown_warning_option=yes
7100 else
7101 xorg_cv_cc_flag_unknown_warning_option=no
7102 fi
7103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104 fi
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7106 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7108 CFLAGS="$xorg_testset_save_CFLAGS"
7109 fi
7110
7111 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7114 fi
7115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7117 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7118 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7119 $as_echo_n "(cached) " >&6
7120 else
7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h. */
7123 int i;
7124 _ACEOF
7125 if ac_fn_c_try_compile "$LINENO"; then :
7126 xorg_cv_cc_flag_unused_command_line_argument=yes
7127 else
7128 xorg_cv_cc_flag_unused_command_line_argument=no
7129 fi
7130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7131 fi
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7133 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7134 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7135 CFLAGS="$xorg_testset_save_CFLAGS"
7136 fi
7137
7138 found="no"
7139
7140 if test $found = "no" ; then
7141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7143 fi
7144
7145 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7147 fi
7148
7149 CFLAGS="$CFLAGS -Werror=init-self"
7150
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7152 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7153 cacheid=xorg_cv_cc_flag__Werror_init_self
7154 if eval \${$cacheid+:} false; then :
7155 $as_echo_n "(cached) " >&6
7156 else
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h. */
7159 int i;
7160 int
7161 main ()
7162 {
7163
7164 ;
7165 return 0;
7166 }
7167 _ACEOF
7168 if ac_fn_c_try_link "$LINENO"; then :
7169 eval $cacheid=yes
7170 else
7171 eval $cacheid=no
7172 fi
7173 rm -f core conftest.err conftest.$ac_objext \
7174 conftest$ac_exeext conftest.$ac_ext
7175 fi
7176
7177
7178 CFLAGS="$xorg_testset_save_CFLAGS"
7179
7180 eval supported=\$$cacheid
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7182 $as_echo "$supported" >&6; }
7183 if test "$supported" = "yes" ; then
7184 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7185 found="yes"
7186 fi
7187 fi
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203 xorg_testset_save_CFLAGS="$CFLAGS"
7204
7205 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7208 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7209 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7210 $as_echo_n "(cached) " >&6
7211 else
7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213 /* end confdefs.h. */
7214 int i;
7215 _ACEOF
7216 if ac_fn_c_try_compile "$LINENO"; then :
7217 xorg_cv_cc_flag_unknown_warning_option=yes
7218 else
7219 xorg_cv_cc_flag_unknown_warning_option=no
7220 fi
7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222 fi
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7224 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7225 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7226 CFLAGS="$xorg_testset_save_CFLAGS"
7227 fi
7228
7229 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7232 fi
7233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7235 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7236 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7237 $as_echo_n "(cached) " >&6
7238 else
7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h. */
7241 int i;
7242 _ACEOF
7243 if ac_fn_c_try_compile "$LINENO"; then :
7244 xorg_cv_cc_flag_unused_command_line_argument=yes
7245 else
7246 xorg_cv_cc_flag_unused_command_line_argument=no
7247 fi
7248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7249 fi
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7251 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7252 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7253 CFLAGS="$xorg_testset_save_CFLAGS"
7254 fi
7255
7256 found="no"
7257
7258 if test $found = "no" ; then
7259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7261 fi
7262
7263 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7265 fi
7266
7267 CFLAGS="$CFLAGS -Werror=main"
7268
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7270 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7271 cacheid=xorg_cv_cc_flag__Werror_main
7272 if eval \${$cacheid+:} false; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7277 int i;
7278 int
7279 main ()
7280 {
7281
7282 ;
7283 return 0;
7284 }
7285 _ACEOF
7286 if ac_fn_c_try_link "$LINENO"; then :
7287 eval $cacheid=yes
7288 else
7289 eval $cacheid=no
7290 fi
7291 rm -f core conftest.err conftest.$ac_objext \
7292 conftest$ac_exeext conftest.$ac_ext
7293 fi
7294
7295
7296 CFLAGS="$xorg_testset_save_CFLAGS"
7297
7298 eval supported=\$$cacheid
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7300 $as_echo "$supported" >&6; }
7301 if test "$supported" = "yes" ; then
7302 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7303 found="yes"
7304 fi
7305 fi
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321 xorg_testset_save_CFLAGS="$CFLAGS"
7322
7323 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7326 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7327 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7328 $as_echo_n "(cached) " >&6
7329 else
7330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331 /* end confdefs.h. */
7332 int i;
7333 _ACEOF
7334 if ac_fn_c_try_compile "$LINENO"; then :
7335 xorg_cv_cc_flag_unknown_warning_option=yes
7336 else
7337 xorg_cv_cc_flag_unknown_warning_option=no
7338 fi
7339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7340 fi
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7342 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7344 CFLAGS="$xorg_testset_save_CFLAGS"
7345 fi
7346
7347 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7350 fi
7351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7353 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7354 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7355 $as_echo_n "(cached) " >&6
7356 else
7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h. */
7359 int i;
7360 _ACEOF
7361 if ac_fn_c_try_compile "$LINENO"; then :
7362 xorg_cv_cc_flag_unused_command_line_argument=yes
7363 else
7364 xorg_cv_cc_flag_unused_command_line_argument=no
7365 fi
7366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7367 fi
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7369 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7371 CFLAGS="$xorg_testset_save_CFLAGS"
7372 fi
7373
7374 found="no"
7375
7376 if test $found = "no" ; then
7377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7379 fi
7380
7381 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7383 fi
7384
7385 CFLAGS="$CFLAGS -Werror=missing-braces"
7386
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7388 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7389 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7390 if eval \${$cacheid+:} false; then :
7391 $as_echo_n "(cached) " >&6
7392 else
7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7395 int i;
7396 int
7397 main ()
7398 {
7399
7400 ;
7401 return 0;
7402 }
7403 _ACEOF
7404 if ac_fn_c_try_link "$LINENO"; then :
7405 eval $cacheid=yes
7406 else
7407 eval $cacheid=no
7408 fi
7409 rm -f core conftest.err conftest.$ac_objext \
7410 conftest$ac_exeext conftest.$ac_ext
7411 fi
7412
7413
7414 CFLAGS="$xorg_testset_save_CFLAGS"
7415
7416 eval supported=\$$cacheid
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7418 $as_echo "$supported" >&6; }
7419 if test "$supported" = "yes" ; then
7420 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7421 found="yes"
7422 fi
7423 fi
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439 xorg_testset_save_CFLAGS="$CFLAGS"
7440
7441 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7444 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7445 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7446 $as_echo_n "(cached) " >&6
7447 else
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7450 int i;
7451 _ACEOF
7452 if ac_fn_c_try_compile "$LINENO"; then :
7453 xorg_cv_cc_flag_unknown_warning_option=yes
7454 else
7455 xorg_cv_cc_flag_unknown_warning_option=no
7456 fi
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7458 fi
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7460 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7462 CFLAGS="$xorg_testset_save_CFLAGS"
7463 fi
7464
7465 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7468 fi
7469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7471 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7472 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7473 $as_echo_n "(cached) " >&6
7474 else
7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7477 int i;
7478 _ACEOF
7479 if ac_fn_c_try_compile "$LINENO"; then :
7480 xorg_cv_cc_flag_unused_command_line_argument=yes
7481 else
7482 xorg_cv_cc_flag_unused_command_line_argument=no
7483 fi
7484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485 fi
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7487 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7489 CFLAGS="$xorg_testset_save_CFLAGS"
7490 fi
7491
7492 found="no"
7493
7494 if test $found = "no" ; then
7495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7497 fi
7498
7499 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7501 fi
7502
7503 CFLAGS="$CFLAGS -Werror=sequence-point"
7504
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7506 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7507 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7508 if eval \${$cacheid+:} false; then :
7509 $as_echo_n "(cached) " >&6
7510 else
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7513 int i;
7514 int
7515 main ()
7516 {
7517
7518 ;
7519 return 0;
7520 }
7521 _ACEOF
7522 if ac_fn_c_try_link "$LINENO"; then :
7523 eval $cacheid=yes
7524 else
7525 eval $cacheid=no
7526 fi
7527 rm -f core conftest.err conftest.$ac_objext \
7528 conftest$ac_exeext conftest.$ac_ext
7529 fi
7530
7531
7532 CFLAGS="$xorg_testset_save_CFLAGS"
7533
7534 eval supported=\$$cacheid
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7536 $as_echo "$supported" >&6; }
7537 if test "$supported" = "yes" ; then
7538 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7539 found="yes"
7540 fi
7541 fi
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557 xorg_testset_save_CFLAGS="$CFLAGS"
7558
7559 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7562 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7563 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7564 $as_echo_n "(cached) " >&6
7565 else
7566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567 /* end confdefs.h. */
7568 int i;
7569 _ACEOF
7570 if ac_fn_c_try_compile "$LINENO"; then :
7571 xorg_cv_cc_flag_unknown_warning_option=yes
7572 else
7573 xorg_cv_cc_flag_unknown_warning_option=no
7574 fi
7575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576 fi
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7578 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7580 CFLAGS="$xorg_testset_save_CFLAGS"
7581 fi
7582
7583 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7586 fi
7587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7589 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7590 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7595 int i;
7596 _ACEOF
7597 if ac_fn_c_try_compile "$LINENO"; then :
7598 xorg_cv_cc_flag_unused_command_line_argument=yes
7599 else
7600 xorg_cv_cc_flag_unused_command_line_argument=no
7601 fi
7602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7603 fi
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7605 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7607 CFLAGS="$xorg_testset_save_CFLAGS"
7608 fi
7609
7610 found="no"
7611
7612 if test $found = "no" ; then
7613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7615 fi
7616
7617 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7619 fi
7620
7621 CFLAGS="$CFLAGS -Werror=return-type"
7622
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7624 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7625 cacheid=xorg_cv_cc_flag__Werror_return_type
7626 if eval \${$cacheid+:} false; then :
7627 $as_echo_n "(cached) " >&6
7628 else
7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630 /* end confdefs.h. */
7631 int i;
7632 int
7633 main ()
7634 {
7635
7636 ;
7637 return 0;
7638 }
7639 _ACEOF
7640 if ac_fn_c_try_link "$LINENO"; then :
7641 eval $cacheid=yes
7642 else
7643 eval $cacheid=no
7644 fi
7645 rm -f core conftest.err conftest.$ac_objext \
7646 conftest$ac_exeext conftest.$ac_ext
7647 fi
7648
7649
7650 CFLAGS="$xorg_testset_save_CFLAGS"
7651
7652 eval supported=\$$cacheid
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7654 $as_echo "$supported" >&6; }
7655 if test "$supported" = "yes" ; then
7656 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7657 found="yes"
7658 fi
7659 fi
7660
7661 if test $found = "no" ; then
7662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7664 fi
7665
7666 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7668 fi
7669
7670 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7671
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7673 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7674 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7675 if eval \${$cacheid+:} false; then :
7676 $as_echo_n "(cached) " >&6
7677 else
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7680 int i;
7681 int
7682 main ()
7683 {
7684
7685 ;
7686 return 0;
7687 }
7688 _ACEOF
7689 if ac_fn_c_try_link "$LINENO"; then :
7690 eval $cacheid=yes
7691 else
7692 eval $cacheid=no
7693 fi
7694 rm -f core conftest.err conftest.$ac_objext \
7695 conftest$ac_exeext conftest.$ac_ext
7696 fi
7697
7698
7699 CFLAGS="$xorg_testset_save_CFLAGS"
7700
7701 eval supported=\$$cacheid
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7703 $as_echo "$supported" >&6; }
7704 if test "$supported" = "yes" ; then
7705 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7706 found="yes"
7707 fi
7708 fi
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724 xorg_testset_save_CFLAGS="$CFLAGS"
7725
7726 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7729 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7730 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7731 $as_echo_n "(cached) " >&6
7732 else
7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734 /* end confdefs.h. */
7735 int i;
7736 _ACEOF
7737 if ac_fn_c_try_compile "$LINENO"; then :
7738 xorg_cv_cc_flag_unknown_warning_option=yes
7739 else
7740 xorg_cv_cc_flag_unknown_warning_option=no
7741 fi
7742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743 fi
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7745 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7747 CFLAGS="$xorg_testset_save_CFLAGS"
7748 fi
7749
7750 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7753 fi
7754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7756 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7757 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7758 $as_echo_n "(cached) " >&6
7759 else
7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h. */
7762 int i;
7763 _ACEOF
7764 if ac_fn_c_try_compile "$LINENO"; then :
7765 xorg_cv_cc_flag_unused_command_line_argument=yes
7766 else
7767 xorg_cv_cc_flag_unused_command_line_argument=no
7768 fi
7769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770 fi
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7772 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7774 CFLAGS="$xorg_testset_save_CFLAGS"
7775 fi
7776
7777 found="no"
7778
7779 if test $found = "no" ; then
7780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7782 fi
7783
7784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7786 fi
7787
7788 CFLAGS="$CFLAGS -Werror=trigraphs"
7789
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7791 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7792 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7793 if eval \${$cacheid+:} false; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h. */
7798 int i;
7799 int
7800 main ()
7801 {
7802
7803 ;
7804 return 0;
7805 }
7806 _ACEOF
7807 if ac_fn_c_try_link "$LINENO"; then :
7808 eval $cacheid=yes
7809 else
7810 eval $cacheid=no
7811 fi
7812 rm -f core conftest.err conftest.$ac_objext \
7813 conftest$ac_exeext conftest.$ac_ext
7814 fi
7815
7816
7817 CFLAGS="$xorg_testset_save_CFLAGS"
7818
7819 eval supported=\$$cacheid
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7821 $as_echo "$supported" >&6; }
7822 if test "$supported" = "yes" ; then
7823 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7824 found="yes"
7825 fi
7826 fi
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842 xorg_testset_save_CFLAGS="$CFLAGS"
7843
7844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7847 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7848 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7853 int i;
7854 _ACEOF
7855 if ac_fn_c_try_compile "$LINENO"; then :
7856 xorg_cv_cc_flag_unknown_warning_option=yes
7857 else
7858 xorg_cv_cc_flag_unknown_warning_option=no
7859 fi
7860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7861 fi
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7863 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7865 CFLAGS="$xorg_testset_save_CFLAGS"
7866 fi
7867
7868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7871 fi
7872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7874 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7875 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7876 $as_echo_n "(cached) " >&6
7877 else
7878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7880 int i;
7881 _ACEOF
7882 if ac_fn_c_try_compile "$LINENO"; then :
7883 xorg_cv_cc_flag_unused_command_line_argument=yes
7884 else
7885 xorg_cv_cc_flag_unused_command_line_argument=no
7886 fi
7887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7888 fi
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7890 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7892 CFLAGS="$xorg_testset_save_CFLAGS"
7893 fi
7894
7895 found="no"
7896
7897 if test $found = "no" ; then
7898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7900 fi
7901
7902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7904 fi
7905
7906 CFLAGS="$CFLAGS -Werror=array-bounds"
7907
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7909 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7910 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7911 if eval \${$cacheid+:} false; then :
7912 $as_echo_n "(cached) " >&6
7913 else
7914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915 /* end confdefs.h. */
7916 int i;
7917 int
7918 main ()
7919 {
7920
7921 ;
7922 return 0;
7923 }
7924 _ACEOF
7925 if ac_fn_c_try_link "$LINENO"; then :
7926 eval $cacheid=yes
7927 else
7928 eval $cacheid=no
7929 fi
7930 rm -f core conftest.err conftest.$ac_objext \
7931 conftest$ac_exeext conftest.$ac_ext
7932 fi
7933
7934
7935 CFLAGS="$xorg_testset_save_CFLAGS"
7936
7937 eval supported=\$$cacheid
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7939 $as_echo "$supported" >&6; }
7940 if test "$supported" = "yes" ; then
7941 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7942 found="yes"
7943 fi
7944 fi
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960 xorg_testset_save_CFLAGS="$CFLAGS"
7961
7962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7965 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7966 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7967 $as_echo_n "(cached) " >&6
7968 else
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7971 int i;
7972 _ACEOF
7973 if ac_fn_c_try_compile "$LINENO"; then :
7974 xorg_cv_cc_flag_unknown_warning_option=yes
7975 else
7976 xorg_cv_cc_flag_unknown_warning_option=no
7977 fi
7978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7979 fi
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7981 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7983 CFLAGS="$xorg_testset_save_CFLAGS"
7984 fi
7985
7986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7989 fi
7990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7992 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7993 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997 /* end confdefs.h. */
7998 int i;
7999 _ACEOF
8000 if ac_fn_c_try_compile "$LINENO"; then :
8001 xorg_cv_cc_flag_unused_command_line_argument=yes
8002 else
8003 xorg_cv_cc_flag_unused_command_line_argument=no
8004 fi
8005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8006 fi
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8008 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8010 CFLAGS="$xorg_testset_save_CFLAGS"
8011 fi
8012
8013 found="no"
8014
8015 if test $found = "no" ; then
8016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8018 fi
8019
8020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8022 fi
8023
8024 CFLAGS="$CFLAGS -Werror=write-strings"
8025
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8027 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8028 cacheid=xorg_cv_cc_flag__Werror_write_strings
8029 if eval \${$cacheid+:} false; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h. */
8034 int i;
8035 int
8036 main ()
8037 {
8038
8039 ;
8040 return 0;
8041 }
8042 _ACEOF
8043 if ac_fn_c_try_link "$LINENO"; then :
8044 eval $cacheid=yes
8045 else
8046 eval $cacheid=no
8047 fi
8048 rm -f core conftest.err conftest.$ac_objext \
8049 conftest$ac_exeext conftest.$ac_ext
8050 fi
8051
8052
8053 CFLAGS="$xorg_testset_save_CFLAGS"
8054
8055 eval supported=\$$cacheid
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8057 $as_echo "$supported" >&6; }
8058 if test "$supported" = "yes" ; then
8059 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8060 found="yes"
8061 fi
8062 fi
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078 xorg_testset_save_CFLAGS="$CFLAGS"
8079
8080 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8083 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8084 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8085 $as_echo_n "(cached) " >&6
8086 else
8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8089 int i;
8090 _ACEOF
8091 if ac_fn_c_try_compile "$LINENO"; then :
8092 xorg_cv_cc_flag_unknown_warning_option=yes
8093 else
8094 xorg_cv_cc_flag_unknown_warning_option=no
8095 fi
8096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8097 fi
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8099 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8101 CFLAGS="$xorg_testset_save_CFLAGS"
8102 fi
8103
8104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8107 fi
8108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8110 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8111 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8116 int i;
8117 _ACEOF
8118 if ac_fn_c_try_compile "$LINENO"; then :
8119 xorg_cv_cc_flag_unused_command_line_argument=yes
8120 else
8121 xorg_cv_cc_flag_unused_command_line_argument=no
8122 fi
8123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8124 fi
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8126 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8128 CFLAGS="$xorg_testset_save_CFLAGS"
8129 fi
8130
8131 found="no"
8132
8133 if test $found = "no" ; then
8134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8136 fi
8137
8138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8140 fi
8141
8142 CFLAGS="$CFLAGS -Werror=address"
8143
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8145 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8146 cacheid=xorg_cv_cc_flag__Werror_address
8147 if eval \${$cacheid+:} false; then :
8148 $as_echo_n "(cached) " >&6
8149 else
8150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h. */
8152 int i;
8153 int
8154 main ()
8155 {
8156
8157 ;
8158 return 0;
8159 }
8160 _ACEOF
8161 if ac_fn_c_try_link "$LINENO"; then :
8162 eval $cacheid=yes
8163 else
8164 eval $cacheid=no
8165 fi
8166 rm -f core conftest.err conftest.$ac_objext \
8167 conftest$ac_exeext conftest.$ac_ext
8168 fi
8169
8170
8171 CFLAGS="$xorg_testset_save_CFLAGS"
8172
8173 eval supported=\$$cacheid
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8175 $as_echo "$supported" >&6; }
8176 if test "$supported" = "yes" ; then
8177 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8178 found="yes"
8179 fi
8180 fi
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196 xorg_testset_save_CFLAGS="$CFLAGS"
8197
8198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8201 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8202 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206 /* end confdefs.h. */
8207 int i;
8208 _ACEOF
8209 if ac_fn_c_try_compile "$LINENO"; then :
8210 xorg_cv_cc_flag_unknown_warning_option=yes
8211 else
8212 xorg_cv_cc_flag_unknown_warning_option=no
8213 fi
8214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8215 fi
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8217 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8219 CFLAGS="$xorg_testset_save_CFLAGS"
8220 fi
8221
8222 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8225 fi
8226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8228 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8229 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8230 $as_echo_n "(cached) " >&6
8231 else
8232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h. */
8234 int i;
8235 _ACEOF
8236 if ac_fn_c_try_compile "$LINENO"; then :
8237 xorg_cv_cc_flag_unused_command_line_argument=yes
8238 else
8239 xorg_cv_cc_flag_unused_command_line_argument=no
8240 fi
8241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8242 fi
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8244 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8246 CFLAGS="$xorg_testset_save_CFLAGS"
8247 fi
8248
8249 found="no"
8250
8251 if test $found = "no" ; then
8252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8254 fi
8255
8256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8258 fi
8259
8260 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8261
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8263 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8264 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8265 if eval \${$cacheid+:} false; then :
8266 $as_echo_n "(cached) " >&6
8267 else
8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269 /* end confdefs.h. */
8270 int i;
8271 int
8272 main ()
8273 {
8274
8275 ;
8276 return 0;
8277 }
8278 _ACEOF
8279 if ac_fn_c_try_link "$LINENO"; then :
8280 eval $cacheid=yes
8281 else
8282 eval $cacheid=no
8283 fi
8284 rm -f core conftest.err conftest.$ac_objext \
8285 conftest$ac_exeext conftest.$ac_ext
8286 fi
8287
8288
8289 CFLAGS="$xorg_testset_save_CFLAGS"
8290
8291 eval supported=\$$cacheid
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8293 $as_echo "$supported" >&6; }
8294 if test "$supported" = "yes" ; then
8295 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8296 found="yes"
8297 fi
8298 fi
8299
8300 if test $found = "no" ; then
8301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8303 fi
8304
8305 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8307 fi
8308
8309 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8310
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8312 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8313 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8314 if eval \${$cacheid+:} false; then :
8315 $as_echo_n "(cached) " >&6
8316 else
8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h. */
8319 int i;
8320 int
8321 main ()
8322 {
8323
8324 ;
8325 return 0;
8326 }
8327 _ACEOF
8328 if ac_fn_c_try_link "$LINENO"; then :
8329 eval $cacheid=yes
8330 else
8331 eval $cacheid=no
8332 fi
8333 rm -f core conftest.err conftest.$ac_objext \
8334 conftest$ac_exeext conftest.$ac_ext
8335 fi
8336
8337
8338 CFLAGS="$xorg_testset_save_CFLAGS"
8339
8340 eval supported=\$$cacheid
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8342 $as_echo "$supported" >&6; }
8343 if test "$supported" = "yes" ; then
8344 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8345 found="yes"
8346 fi
8347 fi
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363 xorg_testset_save_CFLAGS="$CFLAGS"
8364
8365 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8368 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8369 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8370 $as_echo_n "(cached) " >&6
8371 else
8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373 /* end confdefs.h. */
8374 int i;
8375 _ACEOF
8376 if ac_fn_c_try_compile "$LINENO"; then :
8377 xorg_cv_cc_flag_unknown_warning_option=yes
8378 else
8379 xorg_cv_cc_flag_unknown_warning_option=no
8380 fi
8381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382 fi
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8384 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8385 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8386 CFLAGS="$xorg_testset_save_CFLAGS"
8387 fi
8388
8389 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8392 fi
8393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8395 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8396 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8397 $as_echo_n "(cached) " >&6
8398 else
8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400 /* end confdefs.h. */
8401 int i;
8402 _ACEOF
8403 if ac_fn_c_try_compile "$LINENO"; then :
8404 xorg_cv_cc_flag_unused_command_line_argument=yes
8405 else
8406 xorg_cv_cc_flag_unused_command_line_argument=no
8407 fi
8408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8409 fi
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8411 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8412 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8413 CFLAGS="$xorg_testset_save_CFLAGS"
8414 fi
8415
8416 found="no"
8417
8418 if test $found = "no" ; then
8419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8421 fi
8422
8423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8425 fi
8426
8427 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8428
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8430 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8431 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8432 if eval \${$cacheid+:} false; then :
8433 $as_echo_n "(cached) " >&6
8434 else
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 int i;
8438 int
8439 main ()
8440 {
8441
8442 ;
8443 return 0;
8444 }
8445 _ACEOF
8446 if ac_fn_c_try_link "$LINENO"; then :
8447 eval $cacheid=yes
8448 else
8449 eval $cacheid=no
8450 fi
8451 rm -f core conftest.err conftest.$ac_objext \
8452 conftest$ac_exeext conftest.$ac_ext
8453 fi
8454
8455
8456 CFLAGS="$xorg_testset_save_CFLAGS"
8457
8458 eval supported=\$$cacheid
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8460 $as_echo "$supported" >&6; }
8461 if test "$supported" = "yes" ; then
8462 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8463 found="yes"
8464 fi
8465 fi
8466
8467 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8468 else
8469 { $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
8470 $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;}
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484 xorg_testset_save_CFLAGS="$CFLAGS"
8485
8486 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8489 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8490 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8495 int i;
8496 _ACEOF
8497 if ac_fn_c_try_compile "$LINENO"; then :
8498 xorg_cv_cc_flag_unknown_warning_option=yes
8499 else
8500 xorg_cv_cc_flag_unknown_warning_option=no
8501 fi
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 fi
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8505 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8507 CFLAGS="$xorg_testset_save_CFLAGS"
8508 fi
8509
8510 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8513 fi
8514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8516 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8517 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8518 $as_echo_n "(cached) " >&6
8519 else
8520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521 /* end confdefs.h. */
8522 int i;
8523 _ACEOF
8524 if ac_fn_c_try_compile "$LINENO"; then :
8525 xorg_cv_cc_flag_unused_command_line_argument=yes
8526 else
8527 xorg_cv_cc_flag_unused_command_line_argument=no
8528 fi
8529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8530 fi
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8532 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8534 CFLAGS="$xorg_testset_save_CFLAGS"
8535 fi
8536
8537 found="no"
8538
8539 if test $found = "no" ; then
8540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8542 fi
8543
8544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8546 fi
8547
8548 CFLAGS="$CFLAGS -Wimplicit"
8549
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8551 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8552 cacheid=xorg_cv_cc_flag__Wimplicit
8553 if eval \${$cacheid+:} false; then :
8554 $as_echo_n "(cached) " >&6
8555 else
8556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8557 /* end confdefs.h. */
8558 int i;
8559 int
8560 main ()
8561 {
8562
8563 ;
8564 return 0;
8565 }
8566 _ACEOF
8567 if ac_fn_c_try_link "$LINENO"; then :
8568 eval $cacheid=yes
8569 else
8570 eval $cacheid=no
8571 fi
8572 rm -f core conftest.err conftest.$ac_objext \
8573 conftest$ac_exeext conftest.$ac_ext
8574 fi
8575
8576
8577 CFLAGS="$xorg_testset_save_CFLAGS"
8578
8579 eval supported=\$$cacheid
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8581 $as_echo "$supported" >&6; }
8582 if test "$supported" = "yes" ; then
8583 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8584 found="yes"
8585 fi
8586 fi
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602 xorg_testset_save_CFLAGS="$CFLAGS"
8603
8604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8607 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8608 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8609 $as_echo_n "(cached) " >&6
8610 else
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612 /* end confdefs.h. */
8613 int i;
8614 _ACEOF
8615 if ac_fn_c_try_compile "$LINENO"; then :
8616 xorg_cv_cc_flag_unknown_warning_option=yes
8617 else
8618 xorg_cv_cc_flag_unknown_warning_option=no
8619 fi
8620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621 fi
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8623 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8625 CFLAGS="$xorg_testset_save_CFLAGS"
8626 fi
8627
8628 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8631 fi
8632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8634 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8635 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8636 $as_echo_n "(cached) " >&6
8637 else
8638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639 /* end confdefs.h. */
8640 int i;
8641 _ACEOF
8642 if ac_fn_c_try_compile "$LINENO"; then :
8643 xorg_cv_cc_flag_unused_command_line_argument=yes
8644 else
8645 xorg_cv_cc_flag_unused_command_line_argument=no
8646 fi
8647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8648 fi
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8650 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8652 CFLAGS="$xorg_testset_save_CFLAGS"
8653 fi
8654
8655 found="no"
8656
8657 if test $found = "no" ; then
8658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8660 fi
8661
8662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8664 fi
8665
8666 CFLAGS="$CFLAGS -Wnonnull"
8667
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8669 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8670 cacheid=xorg_cv_cc_flag__Wnonnull
8671 if eval \${$cacheid+:} false; then :
8672 $as_echo_n "(cached) " >&6
8673 else
8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8676 int i;
8677 int
8678 main ()
8679 {
8680
8681 ;
8682 return 0;
8683 }
8684 _ACEOF
8685 if ac_fn_c_try_link "$LINENO"; then :
8686 eval $cacheid=yes
8687 else
8688 eval $cacheid=no
8689 fi
8690 rm -f core conftest.err conftest.$ac_objext \
8691 conftest$ac_exeext conftest.$ac_ext
8692 fi
8693
8694
8695 CFLAGS="$xorg_testset_save_CFLAGS"
8696
8697 eval supported=\$$cacheid
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8699 $as_echo "$supported" >&6; }
8700 if test "$supported" = "yes" ; then
8701 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8702 found="yes"
8703 fi
8704 fi
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720 xorg_testset_save_CFLAGS="$CFLAGS"
8721
8722 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8725 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8726 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8727 $as_echo_n "(cached) " >&6
8728 else
8729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730 /* end confdefs.h. */
8731 int i;
8732 _ACEOF
8733 if ac_fn_c_try_compile "$LINENO"; then :
8734 xorg_cv_cc_flag_unknown_warning_option=yes
8735 else
8736 xorg_cv_cc_flag_unknown_warning_option=no
8737 fi
8738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8739 fi
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8741 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8743 CFLAGS="$xorg_testset_save_CFLAGS"
8744 fi
8745
8746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8749 fi
8750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8752 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8753 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8754 $as_echo_n "(cached) " >&6
8755 else
8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757 /* end confdefs.h. */
8758 int i;
8759 _ACEOF
8760 if ac_fn_c_try_compile "$LINENO"; then :
8761 xorg_cv_cc_flag_unused_command_line_argument=yes
8762 else
8763 xorg_cv_cc_flag_unused_command_line_argument=no
8764 fi
8765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8766 fi
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8768 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8770 CFLAGS="$xorg_testset_save_CFLAGS"
8771 fi
8772
8773 found="no"
8774
8775 if test $found = "no" ; then
8776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8778 fi
8779
8780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8782 fi
8783
8784 CFLAGS="$CFLAGS -Winit-self"
8785
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8787 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8788 cacheid=xorg_cv_cc_flag__Winit_self
8789 if eval \${$cacheid+:} false; then :
8790 $as_echo_n "(cached) " >&6
8791 else
8792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h. */
8794 int i;
8795 int
8796 main ()
8797 {
8798
8799 ;
8800 return 0;
8801 }
8802 _ACEOF
8803 if ac_fn_c_try_link "$LINENO"; then :
8804 eval $cacheid=yes
8805 else
8806 eval $cacheid=no
8807 fi
8808 rm -f core conftest.err conftest.$ac_objext \
8809 conftest$ac_exeext conftest.$ac_ext
8810 fi
8811
8812
8813 CFLAGS="$xorg_testset_save_CFLAGS"
8814
8815 eval supported=\$$cacheid
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8817 $as_echo "$supported" >&6; }
8818 if test "$supported" = "yes" ; then
8819 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8820 found="yes"
8821 fi
8822 fi
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838 xorg_testset_save_CFLAGS="$CFLAGS"
8839
8840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8843 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8844 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8845 $as_echo_n "(cached) " >&6
8846 else
8847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h. */
8849 int i;
8850 _ACEOF
8851 if ac_fn_c_try_compile "$LINENO"; then :
8852 xorg_cv_cc_flag_unknown_warning_option=yes
8853 else
8854 xorg_cv_cc_flag_unknown_warning_option=no
8855 fi
8856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8857 fi
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8859 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8861 CFLAGS="$xorg_testset_save_CFLAGS"
8862 fi
8863
8864 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8867 fi
8868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8870 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8871 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8872 $as_echo_n "(cached) " >&6
8873 else
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8876 int i;
8877 _ACEOF
8878 if ac_fn_c_try_compile "$LINENO"; then :
8879 xorg_cv_cc_flag_unused_command_line_argument=yes
8880 else
8881 xorg_cv_cc_flag_unused_command_line_argument=no
8882 fi
8883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8884 fi
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8886 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8888 CFLAGS="$xorg_testset_save_CFLAGS"
8889 fi
8890
8891 found="no"
8892
8893 if test $found = "no" ; then
8894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8896 fi
8897
8898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8900 fi
8901
8902 CFLAGS="$CFLAGS -Wmain"
8903
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8905 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8906 cacheid=xorg_cv_cc_flag__Wmain
8907 if eval \${$cacheid+:} false; then :
8908 $as_echo_n "(cached) " >&6
8909 else
8910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h. */
8912 int i;
8913 int
8914 main ()
8915 {
8916
8917 ;
8918 return 0;
8919 }
8920 _ACEOF
8921 if ac_fn_c_try_link "$LINENO"; then :
8922 eval $cacheid=yes
8923 else
8924 eval $cacheid=no
8925 fi
8926 rm -f core conftest.err conftest.$ac_objext \
8927 conftest$ac_exeext conftest.$ac_ext
8928 fi
8929
8930
8931 CFLAGS="$xorg_testset_save_CFLAGS"
8932
8933 eval supported=\$$cacheid
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8935 $as_echo "$supported" >&6; }
8936 if test "$supported" = "yes" ; then
8937 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8938 found="yes"
8939 fi
8940 fi
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956 xorg_testset_save_CFLAGS="$CFLAGS"
8957
8958 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8961 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8962 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8963 $as_echo_n "(cached) " >&6
8964 else
8965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966 /* end confdefs.h. */
8967 int i;
8968 _ACEOF
8969 if ac_fn_c_try_compile "$LINENO"; then :
8970 xorg_cv_cc_flag_unknown_warning_option=yes
8971 else
8972 xorg_cv_cc_flag_unknown_warning_option=no
8973 fi
8974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8975 fi
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8977 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8979 CFLAGS="$xorg_testset_save_CFLAGS"
8980 fi
8981
8982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8985 fi
8986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8988 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8989 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8990 $as_echo_n "(cached) " >&6
8991 else
8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h. */
8994 int i;
8995 _ACEOF
8996 if ac_fn_c_try_compile "$LINENO"; then :
8997 xorg_cv_cc_flag_unused_command_line_argument=yes
8998 else
8999 xorg_cv_cc_flag_unused_command_line_argument=no
9000 fi
9001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9002 fi
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9004 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9006 CFLAGS="$xorg_testset_save_CFLAGS"
9007 fi
9008
9009 found="no"
9010
9011 if test $found = "no" ; then
9012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9014 fi
9015
9016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9018 fi
9019
9020 CFLAGS="$CFLAGS -Wmissing-braces"
9021
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9023 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9024 cacheid=xorg_cv_cc_flag__Wmissing_braces
9025 if eval \${$cacheid+:} false; then :
9026 $as_echo_n "(cached) " >&6
9027 else
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9030 int i;
9031 int
9032 main ()
9033 {
9034
9035 ;
9036 return 0;
9037 }
9038 _ACEOF
9039 if ac_fn_c_try_link "$LINENO"; then :
9040 eval $cacheid=yes
9041 else
9042 eval $cacheid=no
9043 fi
9044 rm -f core conftest.err conftest.$ac_objext \
9045 conftest$ac_exeext conftest.$ac_ext
9046 fi
9047
9048
9049 CFLAGS="$xorg_testset_save_CFLAGS"
9050
9051 eval supported=\$$cacheid
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9053 $as_echo "$supported" >&6; }
9054 if test "$supported" = "yes" ; then
9055 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9056 found="yes"
9057 fi
9058 fi
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074 xorg_testset_save_CFLAGS="$CFLAGS"
9075
9076 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9079 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9080 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9081 $as_echo_n "(cached) " >&6
9082 else
9083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084 /* end confdefs.h. */
9085 int i;
9086 _ACEOF
9087 if ac_fn_c_try_compile "$LINENO"; then :
9088 xorg_cv_cc_flag_unknown_warning_option=yes
9089 else
9090 xorg_cv_cc_flag_unknown_warning_option=no
9091 fi
9092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9093 fi
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9095 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9097 CFLAGS="$xorg_testset_save_CFLAGS"
9098 fi
9099
9100 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9103 fi
9104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9106 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9107 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9112 int i;
9113 _ACEOF
9114 if ac_fn_c_try_compile "$LINENO"; then :
9115 xorg_cv_cc_flag_unused_command_line_argument=yes
9116 else
9117 xorg_cv_cc_flag_unused_command_line_argument=no
9118 fi
9119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9120 fi
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9122 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9123 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9124 CFLAGS="$xorg_testset_save_CFLAGS"
9125 fi
9126
9127 found="no"
9128
9129 if test $found = "no" ; then
9130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9132 fi
9133
9134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9136 fi
9137
9138 CFLAGS="$CFLAGS -Wsequence-point"
9139
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9141 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9142 cacheid=xorg_cv_cc_flag__Wsequence_point
9143 if eval \${$cacheid+:} false; then :
9144 $as_echo_n "(cached) " >&6
9145 else
9146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9147 /* end confdefs.h. */
9148 int i;
9149 int
9150 main ()
9151 {
9152
9153 ;
9154 return 0;
9155 }
9156 _ACEOF
9157 if ac_fn_c_try_link "$LINENO"; then :
9158 eval $cacheid=yes
9159 else
9160 eval $cacheid=no
9161 fi
9162 rm -f core conftest.err conftest.$ac_objext \
9163 conftest$ac_exeext conftest.$ac_ext
9164 fi
9165
9166
9167 CFLAGS="$xorg_testset_save_CFLAGS"
9168
9169 eval supported=\$$cacheid
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9171 $as_echo "$supported" >&6; }
9172 if test "$supported" = "yes" ; then
9173 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9174 found="yes"
9175 fi
9176 fi
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192 xorg_testset_save_CFLAGS="$CFLAGS"
9193
9194 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9197 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9198 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9199 $as_echo_n "(cached) " >&6
9200 else
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9203 int i;
9204 _ACEOF
9205 if ac_fn_c_try_compile "$LINENO"; then :
9206 xorg_cv_cc_flag_unknown_warning_option=yes
9207 else
9208 xorg_cv_cc_flag_unknown_warning_option=no
9209 fi
9210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9211 fi
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9213 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9215 CFLAGS="$xorg_testset_save_CFLAGS"
9216 fi
9217
9218 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9221 fi
9222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9224 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9225 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9226 $as_echo_n "(cached) " >&6
9227 else
9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9230 int i;
9231 _ACEOF
9232 if ac_fn_c_try_compile "$LINENO"; then :
9233 xorg_cv_cc_flag_unused_command_line_argument=yes
9234 else
9235 xorg_cv_cc_flag_unused_command_line_argument=no
9236 fi
9237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9238 fi
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9240 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9242 CFLAGS="$xorg_testset_save_CFLAGS"
9243 fi
9244
9245 found="no"
9246
9247 if test $found = "no" ; then
9248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9250 fi
9251
9252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9254 fi
9255
9256 CFLAGS="$CFLAGS -Wreturn-type"
9257
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9259 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9260 cacheid=xorg_cv_cc_flag__Wreturn_type
9261 if eval \${$cacheid+:} false; then :
9262 $as_echo_n "(cached) " >&6
9263 else
9264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9265 /* end confdefs.h. */
9266 int i;
9267 int
9268 main ()
9269 {
9270
9271 ;
9272 return 0;
9273 }
9274 _ACEOF
9275 if ac_fn_c_try_link "$LINENO"; then :
9276 eval $cacheid=yes
9277 else
9278 eval $cacheid=no
9279 fi
9280 rm -f core conftest.err conftest.$ac_objext \
9281 conftest$ac_exeext conftest.$ac_ext
9282 fi
9283
9284
9285 CFLAGS="$xorg_testset_save_CFLAGS"
9286
9287 eval supported=\$$cacheid
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9289 $as_echo "$supported" >&6; }
9290 if test "$supported" = "yes" ; then
9291 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9292 found="yes"
9293 fi
9294 fi
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310 xorg_testset_save_CFLAGS="$CFLAGS"
9311
9312 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9315 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9316 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9317 $as_echo_n "(cached) " >&6
9318 else
9319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320 /* end confdefs.h. */
9321 int i;
9322 _ACEOF
9323 if ac_fn_c_try_compile "$LINENO"; then :
9324 xorg_cv_cc_flag_unknown_warning_option=yes
9325 else
9326 xorg_cv_cc_flag_unknown_warning_option=no
9327 fi
9328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9329 fi
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9331 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9333 CFLAGS="$xorg_testset_save_CFLAGS"
9334 fi
9335
9336 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9339 fi
9340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9342 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9343 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9344 $as_echo_n "(cached) " >&6
9345 else
9346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347 /* end confdefs.h. */
9348 int i;
9349 _ACEOF
9350 if ac_fn_c_try_compile "$LINENO"; then :
9351 xorg_cv_cc_flag_unused_command_line_argument=yes
9352 else
9353 xorg_cv_cc_flag_unused_command_line_argument=no
9354 fi
9355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9356 fi
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9358 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9360 CFLAGS="$xorg_testset_save_CFLAGS"
9361 fi
9362
9363 found="no"
9364
9365 if test $found = "no" ; then
9366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9368 fi
9369
9370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9372 fi
9373
9374 CFLAGS="$CFLAGS -Wtrigraphs"
9375
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9377 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9378 cacheid=xorg_cv_cc_flag__Wtrigraphs
9379 if eval \${$cacheid+:} false; then :
9380 $as_echo_n "(cached) " >&6
9381 else
9382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383 /* end confdefs.h. */
9384 int i;
9385 int
9386 main ()
9387 {
9388
9389 ;
9390 return 0;
9391 }
9392 _ACEOF
9393 if ac_fn_c_try_link "$LINENO"; then :
9394 eval $cacheid=yes
9395 else
9396 eval $cacheid=no
9397 fi
9398 rm -f core conftest.err conftest.$ac_objext \
9399 conftest$ac_exeext conftest.$ac_ext
9400 fi
9401
9402
9403 CFLAGS="$xorg_testset_save_CFLAGS"
9404
9405 eval supported=\$$cacheid
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9407 $as_echo "$supported" >&6; }
9408 if test "$supported" = "yes" ; then
9409 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9410 found="yes"
9411 fi
9412 fi
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428 xorg_testset_save_CFLAGS="$CFLAGS"
9429
9430 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9433 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9434 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9435 $as_echo_n "(cached) " >&6
9436 else
9437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438 /* end confdefs.h. */
9439 int i;
9440 _ACEOF
9441 if ac_fn_c_try_compile "$LINENO"; then :
9442 xorg_cv_cc_flag_unknown_warning_option=yes
9443 else
9444 xorg_cv_cc_flag_unknown_warning_option=no
9445 fi
9446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9447 fi
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9449 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9450 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9451 CFLAGS="$xorg_testset_save_CFLAGS"
9452 fi
9453
9454 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9457 fi
9458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9460 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9461 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9462 $as_echo_n "(cached) " >&6
9463 else
9464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9466 int i;
9467 _ACEOF
9468 if ac_fn_c_try_compile "$LINENO"; then :
9469 xorg_cv_cc_flag_unused_command_line_argument=yes
9470 else
9471 xorg_cv_cc_flag_unused_command_line_argument=no
9472 fi
9473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9474 fi
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9476 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9478 CFLAGS="$xorg_testset_save_CFLAGS"
9479 fi
9480
9481 found="no"
9482
9483 if test $found = "no" ; then
9484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9486 fi
9487
9488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9490 fi
9491
9492 CFLAGS="$CFLAGS -Warray-bounds"
9493
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9495 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9496 cacheid=xorg_cv_cc_flag__Warray_bounds
9497 if eval \${$cacheid+:} false; then :
9498 $as_echo_n "(cached) " >&6
9499 else
9500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501 /* end confdefs.h. */
9502 int i;
9503 int
9504 main ()
9505 {
9506
9507 ;
9508 return 0;
9509 }
9510 _ACEOF
9511 if ac_fn_c_try_link "$LINENO"; then :
9512 eval $cacheid=yes
9513 else
9514 eval $cacheid=no
9515 fi
9516 rm -f core conftest.err conftest.$ac_objext \
9517 conftest$ac_exeext conftest.$ac_ext
9518 fi
9519
9520
9521 CFLAGS="$xorg_testset_save_CFLAGS"
9522
9523 eval supported=\$$cacheid
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9525 $as_echo "$supported" >&6; }
9526 if test "$supported" = "yes" ; then
9527 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9528 found="yes"
9529 fi
9530 fi
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546 xorg_testset_save_CFLAGS="$CFLAGS"
9547
9548 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9551 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9552 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9553 $as_echo_n "(cached) " >&6
9554 else
9555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556 /* end confdefs.h. */
9557 int i;
9558 _ACEOF
9559 if ac_fn_c_try_compile "$LINENO"; then :
9560 xorg_cv_cc_flag_unknown_warning_option=yes
9561 else
9562 xorg_cv_cc_flag_unknown_warning_option=no
9563 fi
9564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9565 fi
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9567 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9569 CFLAGS="$xorg_testset_save_CFLAGS"
9570 fi
9571
9572 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9575 fi
9576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9578 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9579 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9580 $as_echo_n "(cached) " >&6
9581 else
9582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9584 int i;
9585 _ACEOF
9586 if ac_fn_c_try_compile "$LINENO"; then :
9587 xorg_cv_cc_flag_unused_command_line_argument=yes
9588 else
9589 xorg_cv_cc_flag_unused_command_line_argument=no
9590 fi
9591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9592 fi
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9594 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9596 CFLAGS="$xorg_testset_save_CFLAGS"
9597 fi
9598
9599 found="no"
9600
9601 if test $found = "no" ; then
9602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9604 fi
9605
9606 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9608 fi
9609
9610 CFLAGS="$CFLAGS -Wwrite-strings"
9611
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9613 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9614 cacheid=xorg_cv_cc_flag__Wwrite_strings
9615 if eval \${$cacheid+:} false; then :
9616 $as_echo_n "(cached) " >&6
9617 else
9618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9619 /* end confdefs.h. */
9620 int i;
9621 int
9622 main ()
9623 {
9624
9625 ;
9626 return 0;
9627 }
9628 _ACEOF
9629 if ac_fn_c_try_link "$LINENO"; then :
9630 eval $cacheid=yes
9631 else
9632 eval $cacheid=no
9633 fi
9634 rm -f core conftest.err conftest.$ac_objext \
9635 conftest$ac_exeext conftest.$ac_ext
9636 fi
9637
9638
9639 CFLAGS="$xorg_testset_save_CFLAGS"
9640
9641 eval supported=\$$cacheid
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9643 $as_echo "$supported" >&6; }
9644 if test "$supported" = "yes" ; then
9645 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9646 found="yes"
9647 fi
9648 fi
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664 xorg_testset_save_CFLAGS="$CFLAGS"
9665
9666 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9669 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9670 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9671 $as_echo_n "(cached) " >&6
9672 else
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9675 int i;
9676 _ACEOF
9677 if ac_fn_c_try_compile "$LINENO"; then :
9678 xorg_cv_cc_flag_unknown_warning_option=yes
9679 else
9680 xorg_cv_cc_flag_unknown_warning_option=no
9681 fi
9682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9683 fi
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9685 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9687 CFLAGS="$xorg_testset_save_CFLAGS"
9688 fi
9689
9690 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9693 fi
9694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9696 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9697 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9698 $as_echo_n "(cached) " >&6
9699 else
9700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h. */
9702 int i;
9703 _ACEOF
9704 if ac_fn_c_try_compile "$LINENO"; then :
9705 xorg_cv_cc_flag_unused_command_line_argument=yes
9706 else
9707 xorg_cv_cc_flag_unused_command_line_argument=no
9708 fi
9709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9710 fi
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9712 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9714 CFLAGS="$xorg_testset_save_CFLAGS"
9715 fi
9716
9717 found="no"
9718
9719 if test $found = "no" ; then
9720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9722 fi
9723
9724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9726 fi
9727
9728 CFLAGS="$CFLAGS -Waddress"
9729
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9731 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9732 cacheid=xorg_cv_cc_flag__Waddress
9733 if eval \${$cacheid+:} false; then :
9734 $as_echo_n "(cached) " >&6
9735 else
9736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h. */
9738 int i;
9739 int
9740 main ()
9741 {
9742
9743 ;
9744 return 0;
9745 }
9746 _ACEOF
9747 if ac_fn_c_try_link "$LINENO"; then :
9748 eval $cacheid=yes
9749 else
9750 eval $cacheid=no
9751 fi
9752 rm -f core conftest.err conftest.$ac_objext \
9753 conftest$ac_exeext conftest.$ac_ext
9754 fi
9755
9756
9757 CFLAGS="$xorg_testset_save_CFLAGS"
9758
9759 eval supported=\$$cacheid
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9761 $as_echo "$supported" >&6; }
9762 if test "$supported" = "yes" ; then
9763 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9764 found="yes"
9765 fi
9766 fi
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782 xorg_testset_save_CFLAGS="$CFLAGS"
9783
9784 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9787 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9788 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9789 $as_echo_n "(cached) " >&6
9790 else
9791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9792 /* end confdefs.h. */
9793 int i;
9794 _ACEOF
9795 if ac_fn_c_try_compile "$LINENO"; then :
9796 xorg_cv_cc_flag_unknown_warning_option=yes
9797 else
9798 xorg_cv_cc_flag_unknown_warning_option=no
9799 fi
9800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9801 fi
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9803 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9805 CFLAGS="$xorg_testset_save_CFLAGS"
9806 fi
9807
9808 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9811 fi
9812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9814 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9815 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9816 $as_echo_n "(cached) " >&6
9817 else
9818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819 /* end confdefs.h. */
9820 int i;
9821 _ACEOF
9822 if ac_fn_c_try_compile "$LINENO"; then :
9823 xorg_cv_cc_flag_unused_command_line_argument=yes
9824 else
9825 xorg_cv_cc_flag_unused_command_line_argument=no
9826 fi
9827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9828 fi
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9830 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9831 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9832 CFLAGS="$xorg_testset_save_CFLAGS"
9833 fi
9834
9835 found="no"
9836
9837 if test $found = "no" ; then
9838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9840 fi
9841
9842 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9844 fi
9845
9846 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9847
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9849 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9850 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9851 if eval \${$cacheid+:} false; then :
9852 $as_echo_n "(cached) " >&6
9853 else
9854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855 /* end confdefs.h. */
9856 int i;
9857 int
9858 main ()
9859 {
9860
9861 ;
9862 return 0;
9863 }
9864 _ACEOF
9865 if ac_fn_c_try_link "$LINENO"; then :
9866 eval $cacheid=yes
9867 else
9868 eval $cacheid=no
9869 fi
9870 rm -f core conftest.err conftest.$ac_objext \
9871 conftest$ac_exeext conftest.$ac_ext
9872 fi
9873
9874
9875 CFLAGS="$xorg_testset_save_CFLAGS"
9876
9877 eval supported=\$$cacheid
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9879 $as_echo "$supported" >&6; }
9880 if test "$supported" = "yes" ; then
9881 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9882 found="yes"
9883 fi
9884 fi
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900 xorg_testset_save_CFLAGS="$CFLAGS"
9901
9902 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9905 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9906 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9907 $as_echo_n "(cached) " >&6
9908 else
9909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910 /* end confdefs.h. */
9911 int i;
9912 _ACEOF
9913 if ac_fn_c_try_compile "$LINENO"; then :
9914 xorg_cv_cc_flag_unknown_warning_option=yes
9915 else
9916 xorg_cv_cc_flag_unknown_warning_option=no
9917 fi
9918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9919 fi
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9921 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9923 CFLAGS="$xorg_testset_save_CFLAGS"
9924 fi
9925
9926 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9929 fi
9930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9932 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9933 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9934 $as_echo_n "(cached) " >&6
9935 else
9936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9937 /* end confdefs.h. */
9938 int i;
9939 _ACEOF
9940 if ac_fn_c_try_compile "$LINENO"; then :
9941 xorg_cv_cc_flag_unused_command_line_argument=yes
9942 else
9943 xorg_cv_cc_flag_unused_command_line_argument=no
9944 fi
9945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9946 fi
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9948 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9950 CFLAGS="$xorg_testset_save_CFLAGS"
9951 fi
9952
9953 found="no"
9954
9955 if test $found = "no" ; then
9956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9958 fi
9959
9960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9962 fi
9963
9964 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9965
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9967 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9968 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9969 if eval \${$cacheid+:} false; then :
9970 $as_echo_n "(cached) " >&6
9971 else
9972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9973 /* end confdefs.h. */
9974 int i;
9975 int
9976 main ()
9977 {
9978
9979 ;
9980 return 0;
9981 }
9982 _ACEOF
9983 if ac_fn_c_try_link "$LINENO"; then :
9984 eval $cacheid=yes
9985 else
9986 eval $cacheid=no
9987 fi
9988 rm -f core conftest.err conftest.$ac_objext \
9989 conftest$ac_exeext conftest.$ac_ext
9990 fi
9991
9992
9993 CFLAGS="$xorg_testset_save_CFLAGS"
9994
9995 eval supported=\$$cacheid
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9997 $as_echo "$supported" >&6; }
9998 if test "$supported" = "yes" ; then
9999 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10000 found="yes"
10001 fi
10002 fi
10003
10004
10005 fi
10006
10007
10008
10009
10010
10011
10012
10013 CWARNFLAGS="$BASE_CFLAGS"
10014 if test "x$GCC" = xyes ; then
10015 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10016 fi
10017
10018
10019
10020
10021
10022
10023
10024
10025 # Check whether --enable-strict-compilation was given.
10026 if test "${enable_strict_compilation+set}" = set; then :
10027 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10028 else
10029 STRICT_COMPILE=no
10030 fi
10031
10032
10033
10034
10035
10036
10037 STRICT_CFLAGS=""
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051 xorg_testset_save_CFLAGS="$CFLAGS"
10052
10053 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10056 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10057 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10058 $as_echo_n "(cached) " >&6
10059 else
10060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10061 /* end confdefs.h. */
10062 int i;
10063 _ACEOF
10064 if ac_fn_c_try_compile "$LINENO"; then :
10065 xorg_cv_cc_flag_unknown_warning_option=yes
10066 else
10067 xorg_cv_cc_flag_unknown_warning_option=no
10068 fi
10069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10070 fi
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10072 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10074 CFLAGS="$xorg_testset_save_CFLAGS"
10075 fi
10076
10077 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10080 fi
10081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10083 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10084 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10085 $as_echo_n "(cached) " >&6
10086 else
10087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10088 /* end confdefs.h. */
10089 int i;
10090 _ACEOF
10091 if ac_fn_c_try_compile "$LINENO"; then :
10092 xorg_cv_cc_flag_unused_command_line_argument=yes
10093 else
10094 xorg_cv_cc_flag_unused_command_line_argument=no
10095 fi
10096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10097 fi
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10099 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10101 CFLAGS="$xorg_testset_save_CFLAGS"
10102 fi
10103
10104 found="no"
10105
10106 if test $found = "no" ; then
10107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10109 fi
10110
10111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10113 fi
10114
10115 CFLAGS="$CFLAGS -pedantic"
10116
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10118 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10119 cacheid=xorg_cv_cc_flag__pedantic
10120 if eval \${$cacheid+:} false; then :
10121 $as_echo_n "(cached) " >&6
10122 else
10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124 /* end confdefs.h. */
10125 int i;
10126 int
10127 main ()
10128 {
10129
10130 ;
10131 return 0;
10132 }
10133 _ACEOF
10134 if ac_fn_c_try_link "$LINENO"; then :
10135 eval $cacheid=yes
10136 else
10137 eval $cacheid=no
10138 fi
10139 rm -f core conftest.err conftest.$ac_objext \
10140 conftest$ac_exeext conftest.$ac_ext
10141 fi
10142
10143
10144 CFLAGS="$xorg_testset_save_CFLAGS"
10145
10146 eval supported=\$$cacheid
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10148 $as_echo "$supported" >&6; }
10149 if test "$supported" = "yes" ; then
10150 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10151 found="yes"
10152 fi
10153 fi
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169 xorg_testset_save_CFLAGS="$CFLAGS"
10170
10171 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10174 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10175 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10176 $as_echo_n "(cached) " >&6
10177 else
10178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10179 /* end confdefs.h. */
10180 int i;
10181 _ACEOF
10182 if ac_fn_c_try_compile "$LINENO"; then :
10183 xorg_cv_cc_flag_unknown_warning_option=yes
10184 else
10185 xorg_cv_cc_flag_unknown_warning_option=no
10186 fi
10187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10188 fi
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10190 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10192 CFLAGS="$xorg_testset_save_CFLAGS"
10193 fi
10194
10195 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10198 fi
10199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10201 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10202 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10203 $as_echo_n "(cached) " >&6
10204 else
10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206 /* end confdefs.h. */
10207 int i;
10208 _ACEOF
10209 if ac_fn_c_try_compile "$LINENO"; then :
10210 xorg_cv_cc_flag_unused_command_line_argument=yes
10211 else
10212 xorg_cv_cc_flag_unused_command_line_argument=no
10213 fi
10214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10215 fi
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10217 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10219 CFLAGS="$xorg_testset_save_CFLAGS"
10220 fi
10221
10222 found="no"
10223
10224 if test $found = "no" ; then
10225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10227 fi
10228
10229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10231 fi
10232
10233 CFLAGS="$CFLAGS -Werror"
10234
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10236 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10237 cacheid=xorg_cv_cc_flag__Werror
10238 if eval \${$cacheid+:} false; then :
10239 $as_echo_n "(cached) " >&6
10240 else
10241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242 /* end confdefs.h. */
10243 int i;
10244 int
10245 main ()
10246 {
10247
10248 ;
10249 return 0;
10250 }
10251 _ACEOF
10252 if ac_fn_c_try_link "$LINENO"; then :
10253 eval $cacheid=yes
10254 else
10255 eval $cacheid=no
10256 fi
10257 rm -f core conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
10259 fi
10260
10261
10262 CFLAGS="$xorg_testset_save_CFLAGS"
10263
10264 eval supported=\$$cacheid
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10266 $as_echo "$supported" >&6; }
10267 if test "$supported" = "yes" ; then
10268 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10269 found="yes"
10270 fi
10271 fi
10272
10273 if test $found = "no" ; then
10274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10276 fi
10277
10278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10280 fi
10281
10282 CFLAGS="$CFLAGS -errwarn"
10283
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10285 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10286 cacheid=xorg_cv_cc_flag__errwarn
10287 if eval \${$cacheid+:} false; then :
10288 $as_echo_n "(cached) " >&6
10289 else
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10292 int i;
10293 int
10294 main ()
10295 {
10296
10297 ;
10298 return 0;
10299 }
10300 _ACEOF
10301 if ac_fn_c_try_link "$LINENO"; then :
10302 eval $cacheid=yes
10303 else
10304 eval $cacheid=no
10305 fi
10306 rm -f core conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext conftest.$ac_ext
10308 fi
10309
10310
10311 CFLAGS="$xorg_testset_save_CFLAGS"
10312
10313 eval supported=\$$cacheid
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10315 $as_echo "$supported" >&6; }
10316 if test "$supported" = "yes" ; then
10317 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10318 found="yes"
10319 fi
10320 fi
10321
10322
10323
10324 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10325 # activate it with -Werror, so we add it here explicitly.
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339 xorg_testset_save_CFLAGS="$CFLAGS"
10340
10341 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10344 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10345 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10346 $as_echo_n "(cached) " >&6
10347 else
10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349 /* end confdefs.h. */
10350 int i;
10351 _ACEOF
10352 if ac_fn_c_try_compile "$LINENO"; then :
10353 xorg_cv_cc_flag_unknown_warning_option=yes
10354 else
10355 xorg_cv_cc_flag_unknown_warning_option=no
10356 fi
10357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10358 fi
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10360 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10362 CFLAGS="$xorg_testset_save_CFLAGS"
10363 fi
10364
10365 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10368 fi
10369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10371 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10372 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10373 $as_echo_n "(cached) " >&6
10374 else
10375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10376 /* end confdefs.h. */
10377 int i;
10378 _ACEOF
10379 if ac_fn_c_try_compile "$LINENO"; then :
10380 xorg_cv_cc_flag_unused_command_line_argument=yes
10381 else
10382 xorg_cv_cc_flag_unused_command_line_argument=no
10383 fi
10384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10385 fi
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10387 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10389 CFLAGS="$xorg_testset_save_CFLAGS"
10390 fi
10391
10392 found="no"
10393
10394 if test $found = "no" ; then
10395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10397 fi
10398
10399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10401 fi
10402
10403 CFLAGS="$CFLAGS -Werror=attributes"
10404
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10406 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10407 cacheid=xorg_cv_cc_flag__Werror_attributes
10408 if eval \${$cacheid+:} false; then :
10409 $as_echo_n "(cached) " >&6
10410 else
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10413 int i;
10414 int
10415 main ()
10416 {
10417
10418 ;
10419 return 0;
10420 }
10421 _ACEOF
10422 if ac_fn_c_try_link "$LINENO"; then :
10423 eval $cacheid=yes
10424 else
10425 eval $cacheid=no
10426 fi
10427 rm -f core conftest.err conftest.$ac_objext \
10428 conftest$ac_exeext conftest.$ac_ext
10429 fi
10430
10431
10432 CFLAGS="$xorg_testset_save_CFLAGS"
10433
10434 eval supported=\$$cacheid
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10436 $as_echo "$supported" >&6; }
10437 if test "$supported" = "yes" ; then
10438 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10439 found="yes"
10440 fi
10441 fi
10442
10443
10444
10445 if test "x$STRICT_COMPILE" = "xyes"; then
10446 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10447 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10448 fi
10449
10450
10451
10452
10453
10454
10455 cat >>confdefs.h <<_ACEOF
10456 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10457 _ACEOF
10458
10459 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10460 if test "x$PVM" = "x"; then
10461 PVM="0"
10462 fi
10463
10464 cat >>confdefs.h <<_ACEOF
10465 #define PACKAGE_VERSION_MINOR $PVM
10466 _ACEOF
10467
10468 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10469 if test "x$PVP" = "x"; then
10470 PVP="0"
10471 fi
10472
10473 cat >>confdefs.h <<_ACEOF
10474 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10475 _ACEOF
10476
10477
10478
10479 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10480 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10481 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10482 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10483
10484
10485
10486
10487 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10488 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10489 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10490 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10491 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10492
10493
10494
10495
10496
10497
10498 if test x$APP_MAN_SUFFIX = x ; then
10499 APP_MAN_SUFFIX=1
10500 fi
10501 if test x$APP_MAN_DIR = x ; then
10502 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10503 fi
10504
10505 if test x$LIB_MAN_SUFFIX = x ; then
10506 LIB_MAN_SUFFIX=3
10507 fi
10508 if test x$LIB_MAN_DIR = x ; then
10509 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10510 fi
10511
10512 if test x$FILE_MAN_SUFFIX = x ; then
10513 case $host_os in
10514 # Solaris 2.0 - 11 use SysV man page sections
10515 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
10516 *) FILE_MAN_SUFFIX=5 ;;
10517 esac
10518 fi
10519 if test x$FILE_MAN_DIR = x ; then
10520 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10521 fi
10522
10523 if test x$MISC_MAN_SUFFIX = x ; then
10524 case $host_os in
10525 # Solaris 2.0 - 11 use SysV man page sections
10526 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
10527 *) MISC_MAN_SUFFIX=7 ;;
10528 esac
10529 fi
10530 if test x$MISC_MAN_DIR = x ; then
10531 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10532 fi
10533
10534 if test x$DRIVER_MAN_SUFFIX = x ; then
10535 case $host_os in
10536 # Solaris 2.0 - 11 use SysV man page sections
10537 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
10538 *) DRIVER_MAN_SUFFIX=4 ;;
10539 esac
10540 fi
10541 if test x$DRIVER_MAN_DIR = x ; then
10542 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10543 fi
10544
10545 if test x$ADMIN_MAN_SUFFIX = x ; then
10546 case $host_os in
10547 # Solaris 2.0 - 11 use SysV man page sections
10548 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
10549 *) ADMIN_MAN_SUFFIX=8 ;;
10550 esac
10551 fi
10552 if test x$ADMIN_MAN_DIR = x ; then
10553 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10554 fi
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570 XORG_MAN_PAGE="X Version 11"
10571
10572 MAN_SUBSTS="\
10573 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10574 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10575 -e 's|__xservername__|Xorg|g' \
10576 -e 's|__xconfigfile__|xorg.conf|g' \
10577 -e 's|__projectroot__|\$(prefix)|g' \
10578 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10579 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10580 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10581 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10582 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10583 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10584 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10585
10586
10587
10588 # Check whether --enable-silent-rules was given.
10589 if test "${enable_silent_rules+set}" = set; then :
10590 enableval=$enable_silent_rules;
10591 fi
10592
10593 case $enable_silent_rules in # (((
10594 yes) AM_DEFAULT_VERBOSITY=0;;
10595 no) AM_DEFAULT_VERBOSITY=1;;
10596 *) AM_DEFAULT_VERBOSITY=0;;
10597 esac
10598 am_make=${MAKE-make}
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10600 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10601 if ${am_cv_make_support_nested_variables+:} false; then :
10602 $as_echo_n "(cached) " >&6
10603 else
10604 if $as_echo 'TRUE=$(BAR$(V))
10605 BAR0=false
10606 BAR1=true
10607 V=1
10608 am__doit:
10609 @$(TRUE)
10610 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10611 am_cv_make_support_nested_variables=yes
10612 else
10613 am_cv_make_support_nested_variables=no
10614 fi
10615 fi
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10617 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10618 if test $am_cv_make_support_nested_variables = yes; then
10619 AM_V='$(V)'
10620 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10621 else
10622 AM_V=$AM_DEFAULT_VERBOSITY
10623 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10624 fi
10625 AM_BACKSLASH='\'
10626
10627
10628
10629 # Internationalization & localization support
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
10631 $as_echo_n "checking for library containing gettext... " >&6; }
10632 if ${ac_cv_search_gettext+:} false; then :
10633 $as_echo_n "(cached) " >&6
10634 else
10635 ac_func_search_save_LIBS=$LIBS
10636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637 /* end confdefs.h. */
10638
10639 /* Override any GCC internal prototype to avoid an error.
10640 Use char because int might match the return type of a GCC
10641 builtin and then its argument prototype would still apply. */
10642 #ifdef __cplusplus
10643 extern "C"
10644 #endif
10645 char gettext ();
10646 int
10647 main ()
10648 {
10649 return gettext ();
10650 ;
10651 return 0;
10652 }
10653 _ACEOF
10654 for ac_lib in '' intl; do
10655 if test -z "$ac_lib"; then
10656 ac_res="none required"
10657 else
10658 ac_res=-l$ac_lib
10659 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10660 fi
10661 if ac_fn_c_try_link "$LINENO"; then :
10662 ac_cv_search_gettext=$ac_res
10663 fi
10664 rm -f core conftest.err conftest.$ac_objext \
10665 conftest$ac_exeext
10666 if ${ac_cv_search_gettext+:} false; then :
10667 break
10668 fi
10669 done
10670 if ${ac_cv_search_gettext+:} false; then :
10671
10672 else
10673 ac_cv_search_gettext=no
10674 fi
10675 rm conftest.$ac_ext
10676 LIBS=$ac_func_search_save_LIBS
10677 fi
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
10679 $as_echo "$ac_cv_search_gettext" >&6; }
10680 ac_res=$ac_cv_search_gettext
10681 if test "$ac_res" != no; then :
10682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10683 USE_GETTEXT="yes"
10684 else
10685 USE_GETTEXT="no"
10686 fi
10687
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5
10689 $as_echo_n "checking where to install localized messages... " >&6; }
10690
10691 # Check whether --with-localedir was given.
10692 if test "${with_localedir+set}" = set; then :
10693 withval=$with_localedir; LOCALEDIR=${withval}
10694 else
10695 LOCALEDIR=${datadir}/locale
10696 fi
10697
10698
10699 if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
10701 $as_echo "nowhere" >&6; }
10702 USE_GETTEXT="no"
10703 else
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5
10705 $as_echo "$LOCALEDIR" >&6; }
10706 fi
10707
10708 if test "x$USE_GETTEXT" = "xyes" ; then
10709
10710 $as_echo "#define USE_GETTEXT 1" >>confdefs.h
10711
10712 fi
10713 if test "x$USE_GETTEXT" = "xyes"; then
10714 USE_GETTEXT_TRUE=
10715 USE_GETTEXT_FALSE='#'
10716 else
10717 USE_GETTEXT_TRUE='#'
10718 USE_GETTEXT_FALSE=
10719 fi
10720
10721
10722 # Optional dependencies
10723
10724 # Check whether --with-xkb was given.
10725 if test "${with_xkb+set}" = set; then :
10726 withval=$with_xkb; use_xkb="$withval"
10727 else
10728 use_xkb="yes"
10729 fi
10730
10731 if test x$use_xkb != xno ; then
10732 XKBMODULE="xkbfile"
10733
10734 $as_echo "#define XKB 1" >>confdefs.h
10735
10736 fi
10737
10738 # Checks for pkg-config packages
10739
10740 pkg_failed=no
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFD" >&5
10742 $as_echo_n "checking for XFD... " >&6; }
10743
10744 if test -n "$XFD_CFLAGS"; then
10745 pkg_cv_XFD_CFLAGS="$XFD_CFLAGS"
10746 elif test -n "$PKG_CONFIG"; then
10747 if test -n "$PKG_CONFIG" && \
10748 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 fontconfig xft xrender xmu xproto >= 7.0.17 \${XKBMODULE}\""; } >&5
10749 ($PKG_CONFIG --exists --print-errors "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17 ${XKBMODULE}") 2>&5
10750 ac_status=$?
10751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10752 test $ac_status = 0; }; then
10753 pkg_cv_XFD_CFLAGS=`$PKG_CONFIG --cflags "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17 ${XKBMODULE}" 2>/dev/null`
10754 test "x$?" != "x0" && pkg_failed=yes
10755 else
10756 pkg_failed=yes
10757 fi
10758 else
10759 pkg_failed=untried
10760 fi
10761 if test -n "$XFD_LIBS"; then
10762 pkg_cv_XFD_LIBS="$XFD_LIBS"
10763 elif test -n "$PKG_CONFIG"; then
10764 if test -n "$PKG_CONFIG" && \
10765 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 fontconfig xft xrender xmu xproto >= 7.0.17 \${XKBMODULE}\""; } >&5
10766 ($PKG_CONFIG --exists --print-errors "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17 ${XKBMODULE}") 2>&5
10767 ac_status=$?
10768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10769 test $ac_status = 0; }; then
10770 pkg_cv_XFD_LIBS=`$PKG_CONFIG --libs "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17 ${XKBMODULE}" 2>/dev/null`
10771 test "x$?" != "x0" && pkg_failed=yes
10772 else
10773 pkg_failed=yes
10774 fi
10775 else
10776 pkg_failed=untried
10777 fi
10778
10779
10780
10781 if test $pkg_failed = yes; then
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783 $as_echo "no" >&6; }
10784
10785 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10786 _pkg_short_errors_supported=yes
10787 else
10788 _pkg_short_errors_supported=no
10789 fi
10790 if test $_pkg_short_errors_supported = yes; then
10791 XFD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17 ${XKBMODULE}" 2>&1`
10792 else
10793 XFD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17 ${XKBMODULE}" 2>&1`
10794 fi
10795 # Put the nasty error message in config.log where it belongs
10796 echo "$XFD_PKG_ERRORS" >&5
10797
10798 as_fn_error $? "Package requirements (xaw7 fontconfig xft xrender xmu xproto >= 7.0.17 ${XKBMODULE}) were not met:
10799
10800 $XFD_PKG_ERRORS
10801
10802 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10803 installed software in a non-standard prefix.
10804
10805 Alternatively, you may set the environment variables XFD_CFLAGS
10806 and XFD_LIBS to avoid the need to call pkg-config.
10807 See the pkg-config man page for more details." "$LINENO" 5
10808 elif test $pkg_failed = untried; then
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10810 $as_echo "no" >&6; }
10811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10813 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10814 is in your PATH or set the PKG_CONFIG environment variable to the full
10815 path to pkg-config.
10816
10817 Alternatively, you may set the environment variables XFD_CFLAGS
10818 and XFD_LIBS to avoid the need to call pkg-config.
10819 See the pkg-config man page for more details.
10820
10821 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10822 See \`config.log' for more details" "$LINENO" 5; }
10823 else
10824 XFD_CFLAGS=$pkg_cv_XFD_CFLAGS
10825 XFD_LIBS=$pkg_cv_XFD_LIBS
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10827 $as_echo "yes" >&6; }
10828
10829 fi
10830
10831
10832 pkg_failed=no
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
10834 $as_echo_n "checking for APPDEFS... " >&6; }
10835
10836 if test -n "$APPDEFS_CFLAGS"; then
10837 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
10838 elif test -n "$PKG_CONFIG"; then
10839 if test -n "$PKG_CONFIG" && \
10840 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10841 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10842 ac_status=$?
10843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10844 test $ac_status = 0; }; then
10845 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
10846 test "x$?" != "x0" && pkg_failed=yes
10847 else
10848 pkg_failed=yes
10849 fi
10850 else
10851 pkg_failed=untried
10852 fi
10853 if test -n "$APPDEFS_LIBS"; then
10854 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
10855 elif test -n "$PKG_CONFIG"; then
10856 if test -n "$PKG_CONFIG" && \
10857 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10858 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10859 ac_status=$?
10860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10861 test $ac_status = 0; }; then
10862 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
10863 test "x$?" != "x0" && pkg_failed=yes
10864 else
10865 pkg_failed=yes
10866 fi
10867 else
10868 pkg_failed=untried
10869 fi
10870
10871
10872
10873 if test $pkg_failed = yes; then
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875 $as_echo "no" >&6; }
10876
10877 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10878 _pkg_short_errors_supported=yes
10879 else
10880 _pkg_short_errors_supported=no
10881 fi
10882 if test $_pkg_short_errors_supported = yes; then
10883 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
10884 else
10885 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
10886 fi
10887 # Put the nasty error message in config.log where it belongs
10888 echo "$APPDEFS_PKG_ERRORS" >&5
10889
10890 as_fn_error $? "Package requirements (xt) were not met:
10891
10892 $APPDEFS_PKG_ERRORS
10893
10894 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10895 installed software in a non-standard prefix.
10896
10897 Alternatively, you may set the environment variables APPDEFS_CFLAGS
10898 and APPDEFS_LIBS to avoid the need to call pkg-config.
10899 See the pkg-config man page for more details." "$LINENO" 5
10900 elif test $pkg_failed = untried; then
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10902 $as_echo "no" >&6; }
10903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10905 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10906 is in your PATH or set the PKG_CONFIG environment variable to the full
10907 path to pkg-config.
10908
10909 Alternatively, you may set the environment variables APPDEFS_CFLAGS
10910 and APPDEFS_LIBS to avoid the need to call pkg-config.
10911 See the pkg-config man page for more details.
10912
10913 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10914 See \`config.log' for more details" "$LINENO" 5; }
10915 else
10916 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
10917 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10919 $as_echo "yes" >&6; }
10920
10921 fi
10922 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10923
10924 # Check whether --with-appdefaultdir was given.
10925 if test "${with_appdefaultdir+set}" = set; then :
10926 withval=$with_appdefaultdir; appdefaultdir="$withval"
10927 else
10928 appdefaultdir="${xt_appdefaultdir}"
10929 fi
10930
10931
10932
10933
10934 ac_config_files="$ac_config_files Makefile man/Makefile"
10935
10936 cat >confcache <<\_ACEOF
10937 # This file is a shell script that caches the results of configure
10938 # tests run on this system so they can be shared between configure
10939 # scripts and configure runs, see configure's option --config-cache.
10940 # It is not useful on other systems. If it contains results you don't
10941 # want to keep, you may remove or edit it.
10942 #
10943 # config.status only pays attention to the cache file if you give it
10944 # the --recheck option to rerun configure.
10945 #
10946 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10947 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10948 # following values.
10949
10950 _ACEOF
10951
10952 # The following way of writing the cache mishandles newlines in values,
10953 # but we know of no workaround that is simple, portable, and efficient.
10954 # So, we kill variables containing newlines.
10955 # Ultrix sh set writes to stderr and can't be redirected directly,
10956 # and sets the high bit in the cache file unless we assign to the vars.
10957 (
10958 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10959 eval ac_val=\$$ac_var
10960 case $ac_val in #(
10961 *${as_nl}*)
10962 case $ac_var in #(
10963 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10964 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10965 esac
10966 case $ac_var in #(
10967 _ | IFS | as_nl) ;; #(
10968 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10969 *) { eval $ac_var=; unset $ac_var;} ;;
10970 esac ;;
10971 esac
10972 done
10973
10974 (set) 2>&1 |
10975 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10976 *${as_nl}ac_space=\ *)
10977 # `set' does not quote correctly, so add quotes: double-quote
10978 # substitution turns \\\\ into \\, and sed turns \\ into \.
10979 sed -n \
10980 "s/'/'\\\\''/g;
10981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10982 ;; #(
10983 *)
10984 # `set' quotes correctly as required by POSIX, so do not add quotes.
10985 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10986 ;;
10987 esac |
10988 sort
10989 ) |
10990 sed '
10991 /^ac_cv_env_/b end
10992 t clear
10993 :clear
10994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10995 t end
10996 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10997 :end' >>confcache
10998 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10999 if test -w "$cache_file"; then
11000 if test "x$cache_file" != "x/dev/null"; then
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11002 $as_echo "$as_me: updating cache $cache_file" >&6;}
11003 if test ! -f "$cache_file" || test -h "$cache_file"; then
11004 cat confcache >"$cache_file"
11005 else
11006 case $cache_file in #(
11007 */* | ?:*)
11008 mv -f confcache "$cache_file"$$ &&
11009 mv -f "$cache_file"$$ "$cache_file" ;; #(
11010 *)
11011 mv -f confcache "$cache_file" ;;
11012 esac
11013 fi
11014 fi
11015 else
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11017 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11018 fi
11019 fi
11020 rm -f confcache
11021
11022 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11023 # Let make expand exec_prefix.
11024 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11025
11026 DEFS=-DHAVE_CONFIG_H
11027
11028 ac_libobjs=
11029 ac_ltlibobjs=
11030 U=
11031 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11032 # 1. Remove the extension, and $U if already installed.
11033 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11034 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11035 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11036 # will be set to the directory where LIBOBJS objects are built.
11037 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11038 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11039 done
11040 LIBOBJS=$ac_libobjs
11041
11042 LTLIBOBJS=$ac_ltlibobjs
11043
11044
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11046 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11047 if test -n "$am_sleep_pid"; then
11048 # Hide warnings about reused PIDs.
11049 wait $am_sleep_pid 2>/dev/null
11050 fi
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11052 $as_echo "done" >&6; }
11053 if test -n "$EXEEXT"; then
11054 am__EXEEXT_TRUE=
11055 am__EXEEXT_FALSE='#'
11056 else
11057 am__EXEEXT_TRUE='#'
11058 am__EXEEXT_FALSE=
11059 fi
11060
11061 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11062 as_fn_error $? "conditional \"AMDEP\" was never defined.
11063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11064 fi
11065 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11066 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11068 fi
11069 if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then
11070 as_fn_error $? "conditional \"USE_GETTEXT\" was never defined.
11071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11072 fi
11073
11074 : "${CONFIG_STATUS=./config.status}"
11075 ac_write_fail=0
11076 ac_clean_files_save=$ac_clean_files
11077 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11079 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11080 as_write_fail=0
11081 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11082 #! $SHELL
11083 # Generated by $as_me.
11084 # Run this file to recreate the current configuration.
11085 # Compiler output produced by configure, useful for debugging
11086 # configure, is in config.log if it exists.
11087
11088 debug=false
11089 ac_cs_recheck=false
11090 ac_cs_silent=false
11091
11092 SHELL=\${CONFIG_SHELL-$SHELL}
11093 export SHELL
11094 _ASEOF
11095 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11096 ## -------------------- ##
11097 ## M4sh Initialization. ##
11098 ## -------------------- ##
11099
11100 # Be more Bourne compatible
11101 DUALCASE=1; export DUALCASE # for MKS sh
11102 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11103 emulate sh
11104 NULLCMD=:
11105 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11106 # is contrary to our usage. Disable this feature.
11107 alias -g '${1+"$@"}'='"$@"'
11108 setopt NO_GLOB_SUBST
11109 else
11110 case `(set -o) 2>/dev/null` in #(
11111 *posix*) :
11112 set -o posix ;; #(
11113 *) :
11114 ;;
11115 esac
11116 fi
11117
11118
11119 as_nl='
11120 '
11121 export as_nl
11122 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11123 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11124 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11125 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11126 # Prefer a ksh shell builtin over an external printf program on Solaris,
11127 # but without wasting forks for bash or zsh.
11128 if test -z "$BASH_VERSION$ZSH_VERSION" \
11129 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11130 as_echo='print -r --'
11131 as_echo_n='print -rn --'
11132 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11133 as_echo='printf %s\n'
11134 as_echo_n='printf %s'
11135 else
11136 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11137 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11138 as_echo_n='/usr/ucb/echo -n'
11139 else
11140 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11141 as_echo_n_body='eval
11142 arg=$1;
11143 case $arg in #(
11144 *"$as_nl"*)
11145 expr "X$arg" : "X\\(.*\\)$as_nl";
11146 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11147 esac;
11148 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11149 '
11150 export as_echo_n_body
11151 as_echo_n='sh -c $as_echo_n_body as_echo'
11152 fi
11153 export as_echo_body
11154 as_echo='sh -c $as_echo_body as_echo'
11155 fi
11156
11157 # The user is always right.
11158 if test "${PATH_SEPARATOR+set}" != set; then
11159 PATH_SEPARATOR=:
11160 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11161 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11162 PATH_SEPARATOR=';'
11163 }
11164 fi
11165
11166
11167 # IFS
11168 # We need space, tab and new line, in precisely that order. Quoting is
11169 # there to prevent editors from complaining about space-tab.
11170 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11171 # splitting by setting IFS to empty value.)
11172 IFS=" "" $as_nl"
11173
11174 # Find who we are. Look in the path if we contain no directory separator.
11175 as_myself=
11176 case $0 in #((
11177 *[\\/]* ) as_myself=$0 ;;
11178 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11179 for as_dir in $PATH
11180 do
11181 IFS=$as_save_IFS
11182 test -z "$as_dir" && as_dir=.
11183 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11184 done
11185 IFS=$as_save_IFS
11186
11187 ;;
11188 esac
11189 # We did not find ourselves, most probably we were run as `sh COMMAND'
11190 # in which case we are not to be found in the path.
11191 if test "x$as_myself" = x; then
11192 as_myself=$0
11193 fi
11194 if test ! -f "$as_myself"; then
11195 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11196 exit 1
11197 fi
11198
11199 # Unset variables that we do not need and which cause bugs (e.g. in
11200 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11201 # suppresses any "Segmentation fault" message there. '((' could
11202 # trigger a bug in pdksh 5.2.14.
11203 for as_var in BASH_ENV ENV MAIL MAILPATH
11204 do eval test x\${$as_var+set} = xset \
11205 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11206 done
11207 PS1='$ '
11208 PS2='> '
11209 PS4='+ '
11210
11211 # NLS nuisances.
11212 LC_ALL=C
11213 export LC_ALL
11214 LANGUAGE=C
11215 export LANGUAGE
11216
11217 # CDPATH.
11218 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11219
11220
11221 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11222 # ----------------------------------------
11223 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11224 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11225 # script with STATUS, using 1 if that was 0.
11226 as_fn_error ()
11227 {
11228 as_status=$1; test $as_status -eq 0 && as_status=1
11229 if test "$4"; then
11230 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11231 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11232 fi
11233 $as_echo "$as_me: error: $2" >&2
11234 as_fn_exit $as_status
11235 } # as_fn_error
11236
11237
11238 # as_fn_set_status STATUS
11239 # -----------------------
11240 # Set $? to STATUS, without forking.
11241 as_fn_set_status ()
11242 {
11243 return $1
11244 } # as_fn_set_status
11245
11246 # as_fn_exit STATUS
11247 # -----------------
11248 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11249 as_fn_exit ()
11250 {
11251 set +e
11252 as_fn_set_status $1
11253 exit $1
11254 } # as_fn_exit
11255
11256 # as_fn_unset VAR
11257 # ---------------
11258 # Portably unset VAR.
11259 as_fn_unset ()
11260 {
11261 { eval $1=; unset $1;}
11262 }
11263 as_unset=as_fn_unset
11264 # as_fn_append VAR VALUE
11265 # ----------------------
11266 # Append the text in VALUE to the end of the definition contained in VAR. Take
11267 # advantage of any shell optimizations that allow amortized linear growth over
11268 # repeated appends, instead of the typical quadratic growth present in naive
11269 # implementations.
11270 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11271 eval 'as_fn_append ()
11272 {
11273 eval $1+=\$2
11274 }'
11275 else
11276 as_fn_append ()
11277 {
11278 eval $1=\$$1\$2
11279 }
11280 fi # as_fn_append
11281
11282 # as_fn_arith ARG...
11283 # ------------------
11284 # Perform arithmetic evaluation on the ARGs, and store the result in the
11285 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11286 # must be portable across $(()) and expr.
11287 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11288 eval 'as_fn_arith ()
11289 {
11290 as_val=$(( $* ))
11291 }'
11292 else
11293 as_fn_arith ()
11294 {
11295 as_val=`expr "$@" || test $? -eq 1`
11296 }
11297 fi # as_fn_arith
11298
11299
11300 if expr a : '\(a\)' >/dev/null 2>&1 &&
11301 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11302 as_expr=expr
11303 else
11304 as_expr=false
11305 fi
11306
11307 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11308 as_basename=basename
11309 else
11310 as_basename=false
11311 fi
11312
11313 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11314 as_dirname=dirname
11315 else
11316 as_dirname=false
11317 fi
11318
11319 as_me=`$as_basename -- "$0" ||
11320 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11321 X"$0" : 'X\(//\)$' \| \
11322 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11323 $as_echo X/"$0" |
11324 sed '/^.*\/\([^/][^/]*\)\/*$/{
11325 s//\1/
11326 q
11327 }
11328 /^X\/\(\/\/\)$/{
11329 s//\1/
11330 q
11331 }
11332 /^X\/\(\/\).*/{
11333 s//\1/
11334 q
11335 }
11336 s/.*/./; q'`
11337
11338 # Avoid depending upon Character Ranges.
11339 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11340 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11341 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11342 as_cr_digits='0123456789'
11343 as_cr_alnum=$as_cr_Letters$as_cr_digits
11344
11345 ECHO_C= ECHO_N= ECHO_T=
11346 case `echo -n x` in #(((((
11347 -n*)
11348 case `echo 'xy\c'` in
11349 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11350 xy) ECHO_C='\c';;
11351 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11352 ECHO_T=' ';;
11353 esac;;
11354 *)
11355 ECHO_N='-n';;
11356 esac
11357
11358 rm -f conf$$ conf$$.exe conf$$.file
11359 if test -d conf$$.dir; then
11360 rm -f conf$$.dir/conf$$.file
11361 else
11362 rm -f conf$$.dir
11363 mkdir conf$$.dir 2>/dev/null
11364 fi
11365 if (echo >conf$$.file) 2>/dev/null; then
11366 if ln -s conf$$.file conf$$ 2>/dev/null; then
11367 as_ln_s='ln -s'
11368 # ... but there are two gotchas:
11369 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11370 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11371 # In both cases, we have to default to `cp -pR'.
11372 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11373 as_ln_s='cp -pR'
11374 elif ln conf$$.file conf$$ 2>/dev/null; then
11375 as_ln_s=ln
11376 else
11377 as_ln_s='cp -pR'
11378 fi
11379 else
11380 as_ln_s='cp -pR'
11381 fi
11382 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11383 rmdir conf$$.dir 2>/dev/null
11384
11385
11386 # as_fn_mkdir_p
11387 # -------------
11388 # Create "$as_dir" as a directory, including parents if necessary.
11389 as_fn_mkdir_p ()
11390 {
11391
11392 case $as_dir in #(
11393 -*) as_dir=./$as_dir;;
11394 esac
11395 test -d "$as_dir" || eval $as_mkdir_p || {
11396 as_dirs=
11397 while :; do
11398 case $as_dir in #(
11399 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11400 *) as_qdir=$as_dir;;
11401 esac
11402 as_dirs="'$as_qdir' $as_dirs"
11403 as_dir=`$as_dirname -- "$as_dir" ||
11404 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11405 X"$as_dir" : 'X\(//\)[^/]' \| \
11406 X"$as_dir" : 'X\(//\)$' \| \
11407 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11408 $as_echo X"$as_dir" |
11409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11410 s//\1/
11411 q
11412 }
11413 /^X\(\/\/\)[^/].*/{
11414 s//\1/
11415 q
11416 }
11417 /^X\(\/\/\)$/{
11418 s//\1/
11419 q
11420 }
11421 /^X\(\/\).*/{
11422 s//\1/
11423 q
11424 }
11425 s/.*/./; q'`
11426 test -d "$as_dir" && break
11427 done
11428 test -z "$as_dirs" || eval "mkdir $as_dirs"
11429 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11430
11431
11432 } # as_fn_mkdir_p
11433 if mkdir -p . 2>/dev/null; then
11434 as_mkdir_p='mkdir -p "$as_dir"'
11435 else
11436 test -d ./-p && rmdir ./-p
11437 as_mkdir_p=false
11438 fi
11439
11440
11441 # as_fn_executable_p FILE
11442 # -----------------------
11443 # Test if FILE is an executable regular file.
11444 as_fn_executable_p ()
11445 {
11446 test -f "$1" && test -x "$1"
11447 } # as_fn_executable_p
11448 as_test_x='test -x'
11449 as_executable_p=as_fn_executable_p
11450
11451 # Sed expression to map a string onto a valid CPP name.
11452 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11453
11454 # Sed expression to map a string onto a valid variable name.
11455 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11456
11457
11458 exec 6>&1
11459 ## ----------------------------------- ##
11460 ## Main body of $CONFIG_STATUS script. ##
11461 ## ----------------------------------- ##
11462 _ASEOF
11463 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11464
11465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11466 # Save the log message, to keep $0 and so on meaningful, and to
11467 # report actual input values of CONFIG_FILES etc. instead of their
11468 # values after options handling.
11469 ac_log="
11470 This file was extended by xfd $as_me 1.1.3, which was
11471 generated by GNU Autoconf 2.69. Invocation command line was
11472
11473 CONFIG_FILES = $CONFIG_FILES
11474 CONFIG_HEADERS = $CONFIG_HEADERS
11475 CONFIG_LINKS = $CONFIG_LINKS
11476 CONFIG_COMMANDS = $CONFIG_COMMANDS
11477 $ $0 $@
11478
11479 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11480 "
11481
11482 _ACEOF
11483
11484 case $ac_config_files in *"
11485 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11486 esac
11487
11488 case $ac_config_headers in *"
11489 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11490 esac
11491
11492
11493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11494 # Files that config.status was made for.
11495 config_files="$ac_config_files"
11496 config_headers="$ac_config_headers"
11497 config_commands="$ac_config_commands"
11498
11499 _ACEOF
11500
11501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11502 ac_cs_usage="\
11503 \`$as_me' instantiates files and other configuration actions
11504 from templates according to the current configuration. Unless the files
11505 and actions are specified as TAGs, all are instantiated by default.
11506
11507 Usage: $0 [OPTION]... [TAG]...
11508
11509 -h, --help print this help, then exit
11510 -V, --version print version number and configuration settings, then exit
11511 --config print configuration, then exit
11512 -q, --quiet, --silent
11513 do not print progress messages
11514 -d, --debug don't remove temporary files
11515 --recheck update $as_me by reconfiguring in the same conditions
11516 --file=FILE[:TEMPLATE]
11517 instantiate the configuration file FILE
11518 --header=FILE[:TEMPLATE]
11519 instantiate the configuration header FILE
11520
11521 Configuration files:
11522 $config_files
11523
11524 Configuration headers:
11525 $config_headers
11526
11527 Configuration commands:
11528 $config_commands
11529
11530 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfd/issues>."
11531
11532 _ACEOF
11533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11534 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11535 ac_cs_version="\\
11536 xfd config.status 1.1.3
11537 configured by $0, generated by GNU Autoconf 2.69,
11538 with options \\"\$ac_cs_config\\"
11539
11540 Copyright (C) 2012 Free Software Foundation, Inc.
11541 This config.status script is free software; the Free Software Foundation
11542 gives unlimited permission to copy, distribute and modify it."
11543
11544 ac_pwd='$ac_pwd'
11545 srcdir='$srcdir'
11546 INSTALL='$INSTALL'
11547 MKDIR_P='$MKDIR_P'
11548 AWK='$AWK'
11549 test -n "\$AWK" || AWK=awk
11550 _ACEOF
11551
11552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11553 # The default lists apply if the user does not specify any file.
11554 ac_need_defaults=:
11555 while test $# != 0
11556 do
11557 case $1 in
11558 --*=?*)
11559 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11560 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11561 ac_shift=:
11562 ;;
11563 --*=)
11564 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11565 ac_optarg=
11566 ac_shift=:
11567 ;;
11568 *)
11569 ac_option=$1
11570 ac_optarg=$2
11571 ac_shift=shift
11572 ;;
11573 esac
11574
11575 case $ac_option in
11576 # Handling of the options.
11577 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11578 ac_cs_recheck=: ;;
11579 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11580 $as_echo "$ac_cs_version"; exit ;;
11581 --config | --confi | --conf | --con | --co | --c )
11582 $as_echo "$ac_cs_config"; exit ;;
11583 --debug | --debu | --deb | --de | --d | -d )
11584 debug=: ;;
11585 --file | --fil | --fi | --f )
11586 $ac_shift
11587 case $ac_optarg in
11588 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11589 '') as_fn_error $? "missing file argument" ;;
11590 esac
11591 as_fn_append CONFIG_FILES " '$ac_optarg'"
11592 ac_need_defaults=false;;
11593 --header | --heade | --head | --hea )
11594 $ac_shift
11595 case $ac_optarg in
11596 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11597 esac
11598 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11599 ac_need_defaults=false;;
11600 --he | --h)
11601 # Conflict between --help and --header
11602 as_fn_error $? "ambiguous option: \`$1'
11603 Try \`$0 --help' for more information.";;
11604 --help | --hel | -h )
11605 $as_echo "$ac_cs_usage"; exit ;;
11606 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11607 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11608 ac_cs_silent=: ;;
11609
11610 # This is an error.
11611 -*) as_fn_error $? "unrecognized option: \`$1'
11612 Try \`$0 --help' for more information." ;;
11613
11614 *) as_fn_append ac_config_targets " $1"
11615 ac_need_defaults=false ;;
11616
11617 esac
11618 shift
11619 done
11620
11621 ac_configure_extra_args=
11622
11623 if $ac_cs_silent; then
11624 exec 6>/dev/null
11625 ac_configure_extra_args="$ac_configure_extra_args --silent"
11626 fi
11627
11628 _ACEOF
11629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11630 if \$ac_cs_recheck; then
11631 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11632 shift
11633 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11634 CONFIG_SHELL='$SHELL'
11635 export CONFIG_SHELL
11636 exec "\$@"
11637 fi
11638
11639 _ACEOF
11640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11641 exec 5>>config.log
11642 {
11643 echo
11644 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11645 ## Running $as_me. ##
11646 _ASBOX
11647 $as_echo "$ac_log"
11648 } >&5
11649
11650 _ACEOF
11651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11652 #
11653 # INIT-COMMANDS
11654 #
11655 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11656
11657 _ACEOF
11658
11659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11660
11661 # Handling of arguments.
11662 for ac_config_target in $ac_config_targets
11663 do
11664 case $ac_config_target in
11665 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11666 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11667 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11668 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11669
11670 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11671 esac
11672 done
11673
11674
11675 # If the user did not use the arguments to specify the items to instantiate,
11676 # then the envvar interface is used. Set only those that are not.
11677 # We use the long form for the default assignment because of an extremely
11678 # bizarre bug on SunOS 4.1.3.
11679 if $ac_need_defaults; then
11680 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11681 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11682 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11683 fi
11684
11685 # Have a temporary directory for convenience. Make it in the build tree
11686 # simply because there is no reason against having it here, and in addition,
11687 # creating and moving files from /tmp can sometimes cause problems.
11688 # Hook for its removal unless debugging.
11689 # Note that there is a small window in which the directory will not be cleaned:
11690 # after its creation but before its name has been assigned to `$tmp'.
11691 $debug ||
11692 {
11693 tmp= ac_tmp=
11694 trap 'exit_status=$?
11695 : "${ac_tmp:=$tmp}"
11696 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11697 ' 0
11698 trap 'as_fn_exit 1' 1 2 13 15
11699 }
11700 # Create a (secure) tmp directory for tmp files.
11701
11702 {
11703 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11704 test -d "$tmp"
11705 } ||
11706 {
11707 tmp=./conf$$-$RANDOM
11708 (umask 077 && mkdir "$tmp")
11709 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11710 ac_tmp=$tmp
11711
11712 # Set up the scripts for CONFIG_FILES section.
11713 # No need to generate them if there are no CONFIG_FILES.
11714 # This happens for instance with `./config.status config.h'.
11715 if test -n "$CONFIG_FILES"; then
11716
11717
11718 ac_cr=`echo X | tr X '\015'`
11719 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11720 # But we know of no other shell where ac_cr would be empty at this
11721 # point, so we can use a bashism as a fallback.
11722 if test "x$ac_cr" = x; then
11723 eval ac_cr=\$\'\\r\'
11724 fi
11725 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11726 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11727 ac_cs_awk_cr='\\r'
11728 else
11729 ac_cs_awk_cr=$ac_cr
11730 fi
11731
11732 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11733 _ACEOF
11734
11735
11736 {
11737 echo "cat >conf$$subs.awk <<_ACEOF" &&
11738 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11739 echo "_ACEOF"
11740 } >conf$$subs.sh ||
11741 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11742 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11743 ac_delim='%!_!# '
11744 for ac_last_try in false false false false false :; do
11745 . ./conf$$subs.sh ||
11746 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11747
11748 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11749 if test $ac_delim_n = $ac_delim_num; then
11750 break
11751 elif $ac_last_try; then
11752 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11753 else
11754 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11755 fi
11756 done
11757 rm -f conf$$subs.sh
11758
11759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11760 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11761 _ACEOF
11762 sed -n '
11763 h
11764 s/^/S["/; s/!.*/"]=/
11765 p
11766 g
11767 s/^[^!]*!//
11768 :repl
11769 t repl
11770 s/'"$ac_delim"'$//
11771 t delim
11772 :nl
11773 h
11774 s/\(.\{148\}\)..*/\1/
11775 t more1
11776 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11777 p
11778 n
11779 b repl
11780 :more1
11781 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11782 p
11783 g
11784 s/.\{148\}//
11785 t nl
11786 :delim
11787 h
11788 s/\(.\{148\}\)..*/\1/
11789 t more2
11790 s/["\\]/\\&/g; s/^/"/; s/$/"/
11791 p
11792 b
11793 :more2
11794 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11795 p
11796 g
11797 s/.\{148\}//
11798 t delim
11799 ' <conf$$subs.awk | sed '
11800 /^[^""]/{
11801 N
11802 s/\n//
11803 }
11804 ' >>$CONFIG_STATUS || ac_write_fail=1
11805 rm -f conf$$subs.awk
11806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11807 _ACAWK
11808 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11809 for (key in S) S_is_set[key] = 1
11810 FS = ""
11811
11812 }
11813 {
11814 line = $ 0
11815 nfields = split(line, field, "@")
11816 substed = 0
11817 len = length(field[1])
11818 for (i = 2; i < nfields; i++) {
11819 key = field[i]
11820 keylen = length(key)
11821 if (S_is_set[key]) {
11822 value = S[key]
11823 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11824 len += length(value) + length(field[++i])
11825 substed = 1
11826 } else
11827 len += 1 + keylen
11828 }
11829
11830 print line
11831 }
11832
11833 _ACAWK
11834 _ACEOF
11835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11836 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11837 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11838 else
11839 cat
11840 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11841 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11842 _ACEOF
11843
11844 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11845 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11846 # trailing colons and then remove the whole line if VPATH becomes empty
11847 # (actually we leave an empty line to preserve line numbers).
11848 if test "x$srcdir" = x.; then
11849 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11850 h
11851 s///
11852 s/^/:/
11853 s/[ ]*$/:/
11854 s/:\$(srcdir):/:/g
11855 s/:\${srcdir}:/:/g
11856 s/:@srcdir@:/:/g
11857 s/^:*//
11858 s/:*$//
11859 x
11860 s/\(=[ ]*\).*/\1/
11861 G
11862 s/\n//
11863 s/^[^=]*=[ ]*$//
11864 }'
11865 fi
11866
11867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11868 fi # test -n "$CONFIG_FILES"
11869
11870 # Set up the scripts for CONFIG_HEADERS section.
11871 # No need to generate them if there are no CONFIG_HEADERS.
11872 # This happens for instance with `./config.status Makefile'.
11873 if test -n "$CONFIG_HEADERS"; then
11874 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11875 BEGIN {
11876 _ACEOF
11877
11878 # Transform confdefs.h into an awk script `defines.awk', embedded as
11879 # here-document in config.status, that substitutes the proper values into
11880 # config.h.in to produce config.h.
11881
11882 # Create a delimiter string that does not exist in confdefs.h, to ease
11883 # handling of long lines.
11884 ac_delim='%!_!# '
11885 for ac_last_try in false false :; do
11886 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11887 if test -z "$ac_tt"; then
11888 break
11889 elif $ac_last_try; then
11890 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11891 else
11892 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11893 fi
11894 done
11895
11896 # For the awk script, D is an array of macro values keyed by name,
11897 # likewise P contains macro parameters if any. Preserve backslash
11898 # newline sequences.
11899
11900 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11901 sed -n '
11902 s/.\{148\}/&'"$ac_delim"'/g
11903 t rset
11904 :rset
11905 s/^[ ]*#[ ]*define[ ][ ]*/ /
11906 t def
11907 d
11908 :def
11909 s/\\$//
11910 t bsnl
11911 s/["\\]/\\&/g
11912 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11913 D["\1"]=" \3"/p
11914 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11915 d
11916 :bsnl
11917 s/["\\]/\\&/g
11918 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11919 D["\1"]=" \3\\\\\\n"\\/p
11920 t cont
11921 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11922 t cont
11923 d
11924 :cont
11925 n
11926 s/.\{148\}/&'"$ac_delim"'/g
11927 t clear
11928 :clear
11929 s/\\$//
11930 t bsnlc
11931 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11932 d
11933 :bsnlc
11934 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11935 b cont
11936 ' <confdefs.h | sed '
11937 s/'"$ac_delim"'/"\\\
11938 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11939
11940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11941 for (key in D) D_is_set[key] = 1
11942 FS = ""
11943 }
11944 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11945 line = \$ 0
11946 split(line, arg, " ")
11947 if (arg[1] == "#") {
11948 defundef = arg[2]
11949 mac1 = arg[3]
11950 } else {
11951 defundef = substr(arg[1], 2)
11952 mac1 = arg[2]
11953 }
11954 split(mac1, mac2, "(") #)
11955 macro = mac2[1]
11956 prefix = substr(line, 1, index(line, defundef) - 1)
11957 if (D_is_set[macro]) {
11958 # Preserve the white space surrounding the "#".
11959 print prefix "define", macro P[macro] D[macro]
11960 next
11961 } else {
11962 # Replace #undef with comments. This is necessary, for example,
11963 # in the case of _POSIX_SOURCE, which is predefined and required
11964 # on some systems where configure will not decide to define it.
11965 if (defundef == "undef") {
11966 print "/*", prefix defundef, macro, "*/"
11967 next
11968 }
11969 }
11970 }
11971 { print }
11972 _ACAWK
11973 _ACEOF
11974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11975 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11976 fi # test -n "$CONFIG_HEADERS"
11977
11978
11979 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11980 shift
11981 for ac_tag
11982 do
11983 case $ac_tag in
11984 :[FHLC]) ac_mode=$ac_tag; continue;;
11985 esac
11986 case $ac_mode$ac_tag in
11987 :[FHL]*:*);;
11988 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11989 :[FH]-) ac_tag=-:-;;
11990 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11991 esac
11992 ac_save_IFS=$IFS
11993 IFS=:
11994 set x $ac_tag
11995 IFS=$ac_save_IFS
11996 shift
11997 ac_file=$1
11998 shift
11999
12000 case $ac_mode in
12001 :L) ac_source=$1;;
12002 :[FH])
12003 ac_file_inputs=
12004 for ac_f
12005 do
12006 case $ac_f in
12007 -) ac_f="$ac_tmp/stdin";;
12008 *) # Look for the file first in the build tree, then in the source tree
12009 # (if the path is not absolute). The absolute path cannot be DOS-style,
12010 # because $ac_f cannot contain `:'.
12011 test -f "$ac_f" ||
12012 case $ac_f in
12013 [\\/$]*) false;;
12014 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12015 esac ||
12016 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12017 esac
12018 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12019 as_fn_append ac_file_inputs " '$ac_f'"
12020 done
12021
12022 # Let's still pretend it is `configure' which instantiates (i.e., don't
12023 # use $as_me), people would be surprised to read:
12024 # /* config.h. Generated by config.status. */
12025 configure_input='Generated from '`
12026 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12027 `' by configure.'
12028 if test x"$ac_file" != x-; then
12029 configure_input="$ac_file. $configure_input"
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12031 $as_echo "$as_me: creating $ac_file" >&6;}
12032 fi
12033 # Neutralize special characters interpreted by sed in replacement strings.
12034 case $configure_input in #(
12035 *\&* | *\|* | *\\* )
12036 ac_sed_conf_input=`$as_echo "$configure_input" |
12037 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12038 *) ac_sed_conf_input=$configure_input;;
12039 esac
12040
12041 case $ac_tag in
12042 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12043 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12044 esac
12045 ;;
12046 esac
12047
12048 ac_dir=`$as_dirname -- "$ac_file" ||
12049 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12050 X"$ac_file" : 'X\(//\)[^/]' \| \
12051 X"$ac_file" : 'X\(//\)$' \| \
12052 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12053 $as_echo X"$ac_file" |
12054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12055 s//\1/
12056 q
12057 }
12058 /^X\(\/\/\)[^/].*/{
12059 s//\1/
12060 q
12061 }
12062 /^X\(\/\/\)$/{
12063 s//\1/
12064 q
12065 }
12066 /^X\(\/\).*/{
12067 s//\1/
12068 q
12069 }
12070 s/.*/./; q'`
12071 as_dir="$ac_dir"; as_fn_mkdir_p
12072 ac_builddir=.
12073
12074 case "$ac_dir" in
12075 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12076 *)
12077 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12078 # A ".." for each directory in $ac_dir_suffix.
12079 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12080 case $ac_top_builddir_sub in
12081 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12082 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12083 esac ;;
12084 esac
12085 ac_abs_top_builddir=$ac_pwd
12086 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12087 # for backward compatibility:
12088 ac_top_builddir=$ac_top_build_prefix
12089
12090 case $srcdir in
12091 .) # We are building in place.
12092 ac_srcdir=.
12093 ac_top_srcdir=$ac_top_builddir_sub
12094 ac_abs_top_srcdir=$ac_pwd ;;
12095 [\\/]* | ?:[\\/]* ) # Absolute name.
12096 ac_srcdir=$srcdir$ac_dir_suffix;
12097 ac_top_srcdir=$srcdir
12098 ac_abs_top_srcdir=$srcdir ;;
12099 *) # Relative name.
12100 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12101 ac_top_srcdir=$ac_top_build_prefix$srcdir
12102 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12103 esac
12104 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12105
12106
12107 case $ac_mode in
12108 :F)
12109 #
12110 # CONFIG_FILE
12111 #
12112
12113 case $INSTALL in
12114 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12115 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12116 esac
12117 ac_MKDIR_P=$MKDIR_P
12118 case $MKDIR_P in
12119 [\\/$]* | ?:[\\/]* ) ;;
12120 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12121 esac
12122 _ACEOF
12123
12124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12125 # If the template does not know about datarootdir, expand it.
12126 # FIXME: This hack should be removed a few years after 2.60.
12127 ac_datarootdir_hack=; ac_datarootdir_seen=
12128 ac_sed_dataroot='
12129 /datarootdir/ {
12130 p
12131 q
12132 }
12133 /@datadir@/p
12134 /@docdir@/p
12135 /@infodir@/p
12136 /@localedir@/p
12137 /@mandir@/p'
12138 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12139 *datarootdir*) ac_datarootdir_seen=yes;;
12140 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12142 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12143 _ACEOF
12144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12145 ac_datarootdir_hack='
12146 s&@datadir@&$datadir&g
12147 s&@docdir@&$docdir&g
12148 s&@infodir@&$infodir&g
12149 s&@localedir@&$localedir&g
12150 s&@mandir@&$mandir&g
12151 s&\\\${datarootdir}&$datarootdir&g' ;;
12152 esac
12153 _ACEOF
12154
12155 # Neutralize VPATH when `$srcdir' = `.'.
12156 # Shell code in configure.ac might set extrasub.
12157 # FIXME: do we really want to maintain this feature?
12158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12159 ac_sed_extra="$ac_vpsub
12160 $extrasub
12161 _ACEOF
12162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12163 :t
12164 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12165 s|@configure_input@|$ac_sed_conf_input|;t t
12166 s&@top_builddir@&$ac_top_builddir_sub&;t t
12167 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12168 s&@srcdir@&$ac_srcdir&;t t
12169 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12170 s&@top_srcdir@&$ac_top_srcdir&;t t
12171 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12172 s&@builddir@&$ac_builddir&;t t
12173 s&@abs_builddir@&$ac_abs_builddir&;t t
12174 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12175 s&@INSTALL@&$ac_INSTALL&;t t
12176 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12177 $ac_datarootdir_hack
12178 "
12179 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12180 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12181
12182 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12183 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12184 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12185 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12187 which seems to be undefined. Please make sure it is defined" >&5
12188 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12189 which seems to be undefined. Please make sure it is defined" >&2;}
12190
12191 rm -f "$ac_tmp/stdin"
12192 case $ac_file in
12193 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12194 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12195 esac \
12196 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12197 ;;
12198 :H)
12199 #
12200 # CONFIG_HEADER
12201 #
12202 if test x"$ac_file" != x-; then
12203 {
12204 $as_echo "/* $configure_input */" \
12205 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12206 } >"$ac_tmp/config.h" \
12207 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12208 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12210 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12211 else
12212 rm -f "$ac_file"
12213 mv "$ac_tmp/config.h" "$ac_file" \
12214 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12215 fi
12216 else
12217 $as_echo "/* $configure_input */" \
12218 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12219 || as_fn_error $? "could not create -" "$LINENO" 5
12220 fi
12221 # Compute "$ac_file"'s index in $config_headers.
12222 _am_arg="$ac_file"
12223 _am_stamp_count=1
12224 for _am_header in $config_headers :; do
12225 case $_am_header in
12226 $_am_arg | $_am_arg:* )
12227 break ;;
12228 * )
12229 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12230 esac
12231 done
12232 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12233 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12234 X"$_am_arg" : 'X\(//\)[^/]' \| \
12235 X"$_am_arg" : 'X\(//\)$' \| \
12236 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12237 $as_echo X"$_am_arg" |
12238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12239 s//\1/
12240 q
12241 }
12242 /^X\(\/\/\)[^/].*/{
12243 s//\1/
12244 q
12245 }
12246 /^X\(\/\/\)$/{
12247 s//\1/
12248 q
12249 }
12250 /^X\(\/\).*/{
12251 s//\1/
12252 q
12253 }
12254 s/.*/./; q'`/stamp-h$_am_stamp_count
12255 ;;
12256
12257 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12258 $as_echo "$as_me: executing $ac_file commands" >&6;}
12259 ;;
12260 esac
12261
12262
12263 case $ac_file$ac_mode in
12264 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12265 # Older Autoconf quotes --file arguments for eval, but not when files
12266 # are listed without --file. Let's play safe and only enable the eval
12267 # if we detect the quoting.
12268 case $CONFIG_FILES in
12269 *\'*) eval set x "$CONFIG_FILES" ;;
12270 *) set x $CONFIG_FILES ;;
12271 esac
12272 shift
12273 for mf
12274 do
12275 # Strip MF so we end up with the name of the file.
12276 mf=`echo "$mf" | sed -e 's/:.*$//'`
12277 # Check whether this is an Automake generated Makefile or not.
12278 # We used to match only the files named 'Makefile.in', but
12279 # some people rename them; so instead we look at the file content.
12280 # Grep'ing the first line is not enough: some people post-process
12281 # each Makefile.in and add a new line on top of each file to say so.
12282 # Grep'ing the whole file is not good either: AIX grep has a line
12283 # limit of 2048, but all sed's we know have understand at least 4000.
12284 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12285 dirpart=`$as_dirname -- "$mf" ||
12286 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12287 X"$mf" : 'X\(//\)[^/]' \| \
12288 X"$mf" : 'X\(//\)$' \| \
12289 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12290 $as_echo X"$mf" |
12291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12292 s//\1/
12293 q
12294 }
12295 /^X\(\/\/\)[^/].*/{
12296 s//\1/
12297 q
12298 }
12299 /^X\(\/\/\)$/{
12300 s//\1/
12301 q
12302 }
12303 /^X\(\/\).*/{
12304 s//\1/
12305 q
12306 }
12307 s/.*/./; q'`
12308 else
12309 continue
12310 fi
12311 # Extract the definition of DEPDIR, am__include, and am__quote
12312 # from the Makefile without running 'make'.
12313 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12314 test -z "$DEPDIR" && continue
12315 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12316 test -z "$am__include" && continue
12317 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12318 # Find all dependency output files, they are included files with
12319 # $(DEPDIR) in their names. We invoke sed twice because it is the
12320 # simplest approach to changing $(DEPDIR) to its actual value in the
12321 # expansion.
12322 for file in `sed -n "
12323 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12324 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12325 # Make sure the directory exists.
12326 test -f "$dirpart/$file" && continue
12327 fdir=`$as_dirname -- "$file" ||
12328 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12329 X"$file" : 'X\(//\)[^/]' \| \
12330 X"$file" : 'X\(//\)$' \| \
12331 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12332 $as_echo X"$file" |
12333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12334 s//\1/
12335 q
12336 }
12337 /^X\(\/\/\)[^/].*/{
12338 s//\1/
12339 q
12340 }
12341 /^X\(\/\/\)$/{
12342 s//\1/
12343 q
12344 }
12345 /^X\(\/\).*/{
12346 s//\1/
12347 q
12348 }
12349 s/.*/./; q'`
12350 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12351 # echo "creating $dirpart/$file"
12352 echo '# dummy' > "$dirpart/$file"
12353 done
12354 done
12355 }
12356 ;;
12357
12358 esac
12359 done # for ac_tag
12360
12361
12362 as_fn_exit 0
12363 _ACEOF
12364 ac_clean_files=$ac_clean_files_save
12365
12366 test $ac_write_fail = 0 ||
12367 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12368
12369
12370 # configure is writing to config.log, and then calls config.status.
12371 # config.status does its own redirection, appending to config.log.
12372 # Unfortunately, on DOS this fails, as config.log is still kept open
12373 # by configure, so config.status won't be able to write to it; its
12374 # output is simply discarded. So we exec the FD to /dev/null,
12375 # effectively closing config.log, so it can be properly (re)opened and
12376 # appended to by config.status. When coming back to configure, we
12377 # need to make the FD available again.
12378 if test "$no_create" != yes; then
12379 ac_cs_success=:
12380 ac_config_status_args=
12381 test "$silent" = yes &&
12382 ac_config_status_args="$ac_config_status_args --quiet"
12383 exec 5>/dev/null
12384 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12385 exec 5>>config.log
12386 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12387 # would make configure fail if this is the last instruction.
12388 $ac_cs_success || as_fn_exit 1
12389 fi
12390 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12392 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12393 fi
12394
12395