configure revision 1.1.1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xorg-docs 1.7.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247 fi
248 exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266 { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275 return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283 set +e
284 as_fn_set_status $1
285 exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346 else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363 else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390 else
391 as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396 else
397 as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402 else
403 as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480 else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498 else
499 as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506 else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513 else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540 as_awk_strverscmp='
541 # Use only awk features that work with 7th edition Unix awk (1978).
542 # My, what an old awk you have, Mr. Solaris!
543 END {
544 while (length(v1) && length(v2)) {
545 # Set d1 to be the next thing to compare from v1, and likewise for d2.
546 # Normally this is a single character, but if v1 and v2 contain digits,
547 # compare them as integers and fractions as strverscmp does.
548 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
549 # Split v1 and v2 into their leading digit string components d1 and d2,
550 # and advance v1 and v2 past the leading digit strings.
551 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
552 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
553 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
554 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
555 if (d1 ~ /^0/) {
556 if (d2 ~ /^0/) {
557 # Compare two fractions.
558 while (d1 ~ /^0/ && d2 ~ /^0/) {
559 d1 = substr(d1, 2); len1--
560 d2 = substr(d2, 2); len2--
561 }
562 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
563 # The two components differ in length, and the common prefix
564 # contains only leading zeros. Consider the longer to be less.
565 d1 = -len1
566 d2 = -len2
567 } else {
568 # Otherwise, compare as strings.
569 d1 = "x" d1
570 d2 = "x" d2
571 }
572 } else {
573 # A fraction is less than an integer.
574 exit 1
575 }
576 } else {
577 if (d2 ~ /^0/) {
578 # An integer is greater than a fraction.
579 exit 2
580 } else {
581 # Compare two integers.
582 d1 += 0
583 d2 += 0
584 }
585 }
586 } else {
587 # The normal case, without worrying about digits.
588 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
589 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
590 }
591 if (d1 < d2) exit 1
592 if (d1 > d2) exit 2
593 }
594 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
595 # which mishandles some comparisons of empty strings to integers.
596 if (length(v2)) exit 1
597 if (length(v1)) exit 2
598 }
599 '
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='xorg-docs'
623 PACKAGE_TARNAME='xorg-docs'
624 PACKAGE_VERSION='1.7'
625 PACKAGE_STRING='xorg-docs 1.7'
626 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
627 PACKAGE_URL=''
628
629 ac_unique_file="Makefile.am"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stdio.h>
633 #ifdef HAVE_SYS_TYPES_H
634 # include <sys/types.h>
635 #endif
636 #ifdef HAVE_SYS_STAT_H
637 # include <sys/stat.h>
638 #endif
639 #ifdef STDC_HEADERS
640 # include <stdlib.h>
641 # include <stddef.h>
642 #else
643 # ifdef HAVE_STDLIB_H
644 # include <stdlib.h>
645 # endif
646 #endif
647 #ifdef HAVE_STRING_H
648 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
649 # include <memory.h>
650 # endif
651 # include <string.h>
652 #endif
653 #ifdef HAVE_STRINGS_H
654 # include <strings.h>
655 #endif
656 #ifdef HAVE_INTTYPES_H
657 # include <inttypes.h>
658 #endif
659 #ifdef HAVE_STDINT_H
660 # include <stdint.h>
661 #endif
662 #ifdef HAVE_UNISTD_H
663 # include <unistd.h>
664 #endif"
665
666 ac_subst_vars='am__EXEEXT_FALSE
667 am__EXEEXT_TRUE
668 LTLIBOBJS
669 LIBOBJS
670 HAVE_STYLESHEETS_FALSE
671 HAVE_STYLESHEETS_TRUE
672 XSL_STYLESHEET
673 STYLESHEET_SRCDIR
674 XORG_SGML_PATH
675 HAVE_FOP_FALSE
676 HAVE_FOP_TRUE
677 FOP
678 HAVE_XSLTPROC_FALSE
679 HAVE_XSLTPROC_TRUE
680 XSLTPROC
681 HAVE_XMLTO_FALSE
682 HAVE_XMLTO_TRUE
683 HAVE_XMLTO_TEXT_FALSE
684 HAVE_XMLTO_TEXT_TRUE
685 XMLTO
686 ENABLE_SPECS_FALSE
687 ENABLE_SPECS_TRUE
688 ENABLE_DOCS_FALSE
689 ENABLE_DOCS_TRUE
690 AM_BACKSLASH
691 AM_DEFAULT_VERBOSITY
692 MAN_SUBSTS
693 XORG_MAN_PAGE
694 ADMIN_MAN_DIR
695 DRIVER_MAN_DIR
696 MISC_MAN_DIR
697 FILE_MAN_DIR
698 LIB_MAN_DIR
699 APP_MAN_DIR
700 ADMIN_MAN_SUFFIX
701 DRIVER_MAN_SUFFIX
702 MISC_MAN_SUFFIX
703 FILE_MAN_SUFFIX
704 LIB_MAN_SUFFIX
705 APP_MAN_SUFFIX
706 SED
707 host_os
708 host_vendor
709 host_cpu
710 host
711 build_os
712 build_vendor
713 build_cpu
714 build
715 INSTALL_CMD
716 PKG_CONFIG
717 CHANGELOG_CMD
718 STRICT_CFLAGS
719 CWARNFLAGS
720 BASE_CFLAGS
721 EGREP
722 GREP
723 CPP
724 am__fastdepCC_FALSE
725 am__fastdepCC_TRUE
726 CCDEPMODE
727 am__nodep
728 AMDEPBACKSLASH
729 AMDEP_FALSE
730 AMDEP_TRUE
731 am__quote
732 am__include
733 DEPDIR
734 OBJEXT
735 EXEEXT
736 ac_ct_CC
737 CPPFLAGS
738 LDFLAGS
739 CFLAGS
740 CC
741 MAINT
742 MAINTAINER_MODE_FALSE
743 MAINTAINER_MODE_TRUE
744 am__untar
745 am__tar
746 AMTAR
747 am__leading_dot
748 SET_MAKE
749 AWK
750 mkdir_p
751 MKDIR_P
752 INSTALL_STRIP_PROGRAM
753 STRIP
754 install_sh
755 MAKEINFO
756 AUTOHEADER
757 AUTOMAKE
758 AUTOCONF
759 ACLOCAL
760 VERSION
761 PACKAGE
762 CYGPATH_W
763 am__isrc
764 INSTALL_DATA
765 INSTALL_SCRIPT
766 INSTALL_PROGRAM
767 target_alias
768 host_alias
769 build_alias
770 LIBS
771 ECHO_T
772 ECHO_N
773 ECHO_C
774 DEFS
775 mandir
776 localedir
777 libdir
778 psdir
779 pdfdir
780 dvidir
781 htmldir
782 infodir
783 docdir
784 oldincludedir
785 includedir
786 localstatedir
787 sharedstatedir
788 sysconfdir
789 datadir
790 datarootdir
791 libexecdir
792 sbindir
793 bindir
794 program_transform_name
795 prefix
796 exec_prefix
797 PACKAGE_URL
798 PACKAGE_BUGREPORT
799 PACKAGE_STRING
800 PACKAGE_VERSION
801 PACKAGE_TARNAME
802 PACKAGE_NAME
803 PATH_SEPARATOR
804 SHELL'
805 ac_subst_files=''
806 ac_user_opts='
807 enable_option_checking
808 enable_maintainer_mode
809 enable_dependency_tracking
810 enable_selective_werror
811 enable_strict_compilation
812 enable_silent_rules
813 enable_docs
814 enable_specs
815 with_xmlto
816 with_xsltproc
817 with_fop
818 '
819 ac_precious_vars='build_alias
820 host_alias
821 target_alias
822 CC
823 CFLAGS
824 LDFLAGS
825 LIBS
826 CPPFLAGS
827 CPP
828 PKG_CONFIG
829 XMLTO
830 XSLTPROC
831 FOP'
832
833
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 ac_unrecognized_opts=
838 ac_unrecognized_sep=
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
841 cache_file=/dev/null
842 exec_prefix=NONE
843 no_create=
844 no_recursion=
845 prefix=NONE
846 program_prefix=NONE
847 program_suffix=NONE
848 program_transform_name=s,x,x,
849 silent=
850 site=
851 srcdir=
852 verbose=
853 x_includes=NONE
854 x_libraries=NONE
855
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
881
882 ac_prev=
883 ac_dashdash=
884 for ac_option
885 do
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
889 ac_prev=
890 continue
891 fi
892
893 case $ac_option in
894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 *=) ac_optarg= ;;
896 *) ac_optarg=yes ;;
897 esac
898
899 # Accept the important Cygnus configure options, so we can diagnose typos.
900
901 case $ac_dashdash$ac_option in
902 --)
903 ac_dashdash=yes ;;
904
905 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 ac_prev=bindir ;;
907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 bindir=$ac_optarg ;;
909
910 -build | --build | --buil | --bui | --bu)
911 ac_prev=build_alias ;;
912 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913 build_alias=$ac_optarg ;;
914
915 -cache-file | --cache-file | --cache-fil | --cache-fi \
916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917 ac_prev=cache_file ;;
918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920 cache_file=$ac_optarg ;;
921
922 --config-cache | -C)
923 cache_file=config.cache ;;
924
925 -datadir | --datadir | --datadi | --datad)
926 ac_prev=datadir ;;
927 -datadir=* | --datadir=* | --datadi=* | --datad=*)
928 datadir=$ac_optarg ;;
929
930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931 | --dataroo | --dataro | --datar)
932 ac_prev=datarootdir ;;
933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935 datarootdir=$ac_optarg ;;
936
937 -disable-* | --disable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
945 *"
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=no ;;
952
953 -docdir | --docdir | --docdi | --doc | --do)
954 ac_prev=docdir ;;
955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956 docdir=$ac_optarg ;;
957
958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959 ac_prev=dvidir ;;
960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961 dvidir=$ac_optarg ;;
962
963 -enable-* | --enable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=\$ac_optarg ;;
978
979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981 | --exec | --exe | --ex)
982 ac_prev=exec_prefix ;;
983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985 | --exec=* | --exe=* | --ex=*)
986 exec_prefix=$ac_optarg ;;
987
988 -gas | --gas | --ga | --g)
989 # Obsolete; use --with-gas.
990 with_gas=yes ;;
991
992 -help | --help | --hel | --he | -h)
993 ac_init_help=long ;;
994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995 ac_init_help=recursive ;;
996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997 ac_init_help=short ;;
998
999 -host | --host | --hos | --ho)
1000 ac_prev=host_alias ;;
1001 -host=* | --host=* | --hos=* | --ho=*)
1002 host_alias=$ac_optarg ;;
1003
1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005 ac_prev=htmldir ;;
1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007 | --ht=*)
1008 htmldir=$ac_optarg ;;
1009
1010 -includedir | --includedir | --includedi | --included | --include \
1011 | --includ | --inclu | --incl | --inc)
1012 ac_prev=includedir ;;
1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014 | --includ=* | --inclu=* | --incl=* | --inc=*)
1015 includedir=$ac_optarg ;;
1016
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1018 ac_prev=infodir ;;
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 infodir=$ac_optarg ;;
1021
1022 -libdir | --libdir | --libdi | --libd)
1023 ac_prev=libdir ;;
1024 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025 libdir=$ac_optarg ;;
1026
1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028 | --libexe | --libex | --libe)
1029 ac_prev=libexecdir ;;
1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031 | --libexe=* | --libex=* | --libe=*)
1032 libexecdir=$ac_optarg ;;
1033
1034 -localedir | --localedir | --localedi | --localed | --locale)
1035 ac_prev=localedir ;;
1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037 localedir=$ac_optarg ;;
1038
1039 -localstatedir | --localstatedir | --localstatedi | --localstated \
1040 | --localstate | --localstat | --localsta | --localst | --locals)
1041 ac_prev=localstatedir ;;
1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044 localstatedir=$ac_optarg ;;
1045
1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047 ac_prev=mandir ;;
1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049 mandir=$ac_optarg ;;
1050
1051 -nfp | --nfp | --nf)
1052 # Obsolete; use --without-fp.
1053 with_fp=no ;;
1054
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n)
1057 no_create=yes ;;
1058
1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 no_recursion=yes ;;
1062
1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065 | --oldin | --oldi | --old | --ol | --o)
1066 ac_prev=oldincludedir ;;
1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070 oldincludedir=$ac_optarg ;;
1071
1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073 ac_prev=prefix ;;
1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075 prefix=$ac_optarg ;;
1076
1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078 | --program-pre | --program-pr | --program-p)
1079 ac_prev=program_prefix ;;
1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082 program_prefix=$ac_optarg ;;
1083
1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085 | --program-suf | --program-su | --program-s)
1086 ac_prev=program_suffix ;;
1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089 program_suffix=$ac_optarg ;;
1090
1091 -program-transform-name | --program-transform-name \
1092 | --program-transform-nam | --program-transform-na \
1093 | --program-transform-n | --program-transform- \
1094 | --program-transform | --program-transfor \
1095 | --program-transfo | --program-transf \
1096 | --program-trans | --program-tran \
1097 | --progr-tra | --program-tr | --program-t)
1098 ac_prev=program_transform_name ;;
1099 -program-transform-name=* | --program-transform-name=* \
1100 | --program-transform-nam=* | --program-transform-na=* \
1101 | --program-transform-n=* | --program-transform-=* \
1102 | --program-transform=* | --program-transfor=* \
1103 | --program-transfo=* | --program-transf=* \
1104 | --program-trans=* | --program-tran=* \
1105 | --progr-tra=* | --program-tr=* | --program-t=*)
1106 program_transform_name=$ac_optarg ;;
1107
1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109 ac_prev=pdfdir ;;
1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 pdfdir=$ac_optarg ;;
1112
1113 -psdir | --psdir | --psdi | --psd | --ps)
1114 ac_prev=psdir ;;
1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 psdir=$ac_optarg ;;
1117
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 silent=yes ;;
1121
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 ac_prev=sbindir ;;
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 | --sbi=* | --sb=*)
1126 sbindir=$ac_optarg ;;
1127
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1131 | --sha | --sh)
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 | --sha=* | --sh=*)
1137 sharedstatedir=$ac_optarg ;;
1138
1139 -site | --site | --sit)
1140 ac_prev=site ;;
1141 -site=* | --site=* | --sit=*)
1142 site=$ac_optarg ;;
1143
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 ac_prev=srcdir ;;
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1148
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1155
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1160
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 verbose=yes ;;
1163
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1166
1167 -with-* | --with-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=\$ac_optarg ;;
1182
1183 -without-* | --without-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=no ;;
1198
1199 --x)
1200 # Obsolete; use --with-x.
1201 with_x=yes ;;
1202
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1209
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1216
1217 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1218 Try \`$0 --help' for more information"
1219 ;;
1220
1221 *=*)
1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' | [0-9]* | *[!_$as_cr_alnum]* )
1226 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1227 esac
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1230
1231 *)
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1237 ;;
1238
1239 esac
1240 done
1241
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error $? "missing argument to $ac_option"
1245 fi
1246
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1249 no) ;;
1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 esac
1253 fi
1254
1255 # Check all directory arguments for consistency.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1260 do
1261 eval ac_val=\$$ac_var
1262 # Remove trailing slashes.
1263 case $ac_val in
1264 */ )
1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\$ac_val;;
1267 esac
1268 # Be sure to have absolute directory names.
1269 case $ac_val in
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 esac
1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1274 done
1275
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1288 If a cross compiler is detected then cross compile mode will be used" >&2
1289 elif test "x$build_alias" != "x$host_alias"; then
1290 cross_compiling=yes
1291 fi
1292 fi
1293
1294 ac_tool_prefix=
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297 test "$silent" = yes && exec 6>/dev/null
1298
1299
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303 as_fn_error $? "working directory cannot be determined"
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305 as_fn_error $? "pwd does not report name of working directory"
1306
1307
1308 # Find the source files, if location was not specified.
1309 if test -z "$srcdir"; then
1310 ac_srcdir_defaulted=yes
1311 # Try the directory containing this script, then the parent directory.
1312 ac_confdir=`$as_dirname -- "$as_myself" ||
1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314 X"$as_myself" : 'X\(//\)[^/]' \| \
1315 X"$as_myself" : 'X\(//\)$' \| \
1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317 $as_echo X"$as_myself" |
1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)[^/].*/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)$/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\).*/{
1331 s//\1/
1332 q
1333 }
1334 s/.*/./; q'`
1335 srcdir=$ac_confdir
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 srcdir=..
1338 fi
1339 else
1340 ac_srcdir_defaulted=no
1341 fi
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1345 fi
1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347 ac_abs_confdir=`(
1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1349 pwd)`
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 srcdir=.
1353 fi
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1357 case $srcdir in
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 esac
1360 for ac_var in $ac_precious_vars; do
1361 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_${ac_var}_value=\$${ac_var}
1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 done
1366
1367 #
1368 # Report the --help message.
1369 #
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1373 cat <<_ACEOF
1374 \`configure' configures xorg-docs 1.7 to adapt to many kinds of systems.
1375
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1377
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1380
1381 Defaults for the options are specified in brackets.
1382
1383 Configuration:
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking ...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1393
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 [PREFIX]
1399
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1404
1405 For better control, use the options below.
1406
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/xorg-docs]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1427 _ACEOF
1428
1429 cat <<\_ACEOF
1430
1431 Program names:
1432 --program-prefix=PREFIX prepend PREFIX to installed program names
1433 --program-suffix=SUFFIX append SUFFIX to installed program names
1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1435
1436 System types:
1437 --build=BUILD configure for building on BUILD [guessed]
1438 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1439 _ACEOF
1440 fi
1441
1442 if test -n "$ac_init_help"; then
1443 case $ac_init_help in
1444 short | recursive ) echo "Configuration of xorg-docs 1.7:";;
1445 esac
1446 cat <<\_ACEOF
1447
1448 Optional Features:
1449 --disable-option-checking ignore unrecognized --enable/--with options
1450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1452 --enable-maintainer-mode enable make rules and dependencies not useful
1453 (and sometimes confusing) to the casual installer
1454 --disable-dependency-tracking speeds up one-time build
1455 --enable-dependency-tracking do not reject slow dependency extractors
1456 --disable-selective-werror
1457 Turn off selective compiler errors. (default:
1458 enabled)
1459 --enable-strict-compilation
1460 Enable all warnings from compiler and make them
1461 errors (default: disabled)
1462 --enable-silent-rules less verbose build output (undo: `make V=1')
1463 --disable-silent-rules verbose build output (undo: `make V=0')
1464 --enable-docs Enable building the documentation (default: yes)
1465 --enable-specs Enable building the specs (default: yes)
1466
1467 Optional Packages:
1468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1470 --with-xmlto Use xmlto to regenerate documentation (default:
1471 auto)
1472 --with-xsltproc Use xsltproc for the transformation of XML documents
1473 (default: auto)
1474 --with-fop Use fop to regenerate documentation (default: auto)
1475
1476 Some influential environment variables:
1477 CC C compiler command
1478 CFLAGS C compiler flags
1479 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1480 nonstandard directory <lib dir>
1481 LIBS libraries to pass to the linker, e.g. -l<library>
1482 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1483 you have headers in a nonstandard directory <include dir>
1484 CPP C preprocessor
1485 PKG_CONFIG path to pkg-config utility
1486 XMLTO Path to xmlto command
1487 XSLTPROC Path to xsltproc command
1488 FOP Path to fop command
1489
1490 Use these variables to override the choices made by `configure' or to help
1491 it to find libraries and programs with nonstandard names/locations.
1492
1493 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1494 _ACEOF
1495 ac_status=$?
1496 fi
1497
1498 if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501 test -d "$ac_dir" ||
1502 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503 continue
1504 ac_builddir=.
1505
1506 case "$ac_dir" in
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *)
1509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 esac ;;
1516 esac
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1521
1522 case $srcdir in
1523 .) # We are building in place.
1524 ac_srcdir=.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1531 *) # Relative name.
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 esac
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1546 else
1547 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 fi || ac_status=$?
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1550 done
1551 fi
1552
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1555 cat <<\_ACEOF
1556 xorg-docs configure 1.7
1557 generated by GNU Autoconf 2.68
1558
1559 Copyright (C) 2010 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562 _ACEOF
1563 exit
1564 fi
1565
1566 ## ------------------------ ##
1567 ## Autoconf initialization. ##
1568 ## ------------------------ ##
1569
1570 # ac_fn_c_try_compile LINENO
1571 # --------------------------
1572 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_compile ()
1574 {
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext
1577 if { { ac_try="$ac_compile"
1578 case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_compile") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1590 fi
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest.$ac_objext; then :
1596 ac_retval=0
1597 else
1598 $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1600
1601 ac_retval=1
1602 fi
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1605
1606 } # ac_fn_c_try_compile
1607
1608 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1609 # ---------------------------------------------
1610 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1611 # accordingly.
1612 ac_fn_c_check_decl ()
1613 {
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 as_decl_name=`echo $2|sed 's/ *(.*//'`
1616 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1618 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1619 if eval \${$3+:} false; then :
1620 $as_echo_n "(cached) " >&6
1621 else
1622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623 /* end confdefs.h. */
1624 $4
1625 int
1626 main ()
1627 {
1628 #ifndef $as_decl_name
1629 #ifdef __cplusplus
1630 (void) $as_decl_use;
1631 #else
1632 (void) $as_decl_name;
1633 #endif
1634 #endif
1635
1636 ;
1637 return 0;
1638 }
1639 _ACEOF
1640 if ac_fn_c_try_compile "$LINENO"; then :
1641 eval "$3=yes"
1642 else
1643 eval "$3=no"
1644 fi
1645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646 fi
1647 eval ac_res=\$$3
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649 $as_echo "$ac_res" >&6; }
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651
1652 } # ac_fn_c_check_decl
1653
1654 # ac_fn_c_try_cpp LINENO
1655 # ----------------------
1656 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1657 ac_fn_c_try_cpp ()
1658 {
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if { { ac_try="$ac_cpp conftest.$ac_ext"
1661 case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1668 ac_status=$?
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1673 fi
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } > conftest.i && {
1676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1677 test ! -s conftest.err
1678 }; then :
1679 ac_retval=0
1680 else
1681 $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1683
1684 ac_retval=1
1685 fi
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 as_fn_set_status $ac_retval
1688
1689 } # ac_fn_c_try_cpp
1690
1691 # ac_fn_c_try_run LINENO
1692 # ----------------------
1693 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1694 # that executables *can* be run.
1695 ac_fn_c_try_run ()
1696 {
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_link"
1699 case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_link") 2>&5
1706 ac_status=$?
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1709 { { case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_try") 2>&5
1716 ac_status=$?
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; }; }; then :
1719 ac_retval=0
1720 else
1721 $as_echo "$as_me: program exited with status $ac_status" >&5
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=$ac_status
1726 fi
1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status $ac_retval
1730
1731 } # ac_fn_c_try_run
1732
1733 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1734 # -------------------------------------------------------
1735 # Tests whether HEADER exists and can be compiled using the include files in
1736 # INCLUDES, setting the cache variable VAR accordingly.
1737 ac_fn_c_check_header_compile ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval \${$3+:} false; then :
1743 $as_echo_n "(cached) " >&6
1744 else
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1747 $4
1748 #include <$2>
1749 _ACEOF
1750 if ac_fn_c_try_compile "$LINENO"; then :
1751 eval "$3=yes"
1752 else
1753 eval "$3=no"
1754 fi
1755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 fi
1757 eval ac_res=\$$3
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 $as_echo "$ac_res" >&6; }
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761
1762 } # ac_fn_c_check_header_compile
1763
1764 # ac_fn_c_try_link LINENO
1765 # -----------------------
1766 # Try to link conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_c_try_link ()
1768 {
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext conftest$ac_exeext
1771 if { { ac_try="$ac_link"
1772 case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_link") 2>conftest.err
1779 ac_status=$?
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1784 fi
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_c_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest$ac_exeext && {
1790 test "$cross_compiling" = yes ||
1791 $as_test_x conftest$ac_exeext
1792 }; then :
1793 ac_retval=0
1794 else
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1797
1798 ac_retval=1
1799 fi
1800 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1801 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1802 # interfere with the next link command; also delete a directory that is
1803 # left behind by Apple's compiler. We do this before executing the actions.
1804 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 as_fn_set_status $ac_retval
1807
1808 } # ac_fn_c_try_link
1809 cat >config.log <<_ACEOF
1810 This file contains any messages produced by compilers while
1811 running configure, to aid debugging if configure makes a mistake.
1812
1813 It was created by xorg-docs $as_me 1.7, which was
1814 generated by GNU Autoconf 2.68. Invocation command line was
1815
1816 $ $0 $@
1817
1818 _ACEOF
1819 exec 5>>config.log
1820 {
1821 cat <<_ASUNAME
1822 ## --------- ##
1823 ## Platform. ##
1824 ## --------- ##
1825
1826 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1827 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1828 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1829 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1830 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1831
1832 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1833 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1834
1835 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1836 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1837 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1838 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1839 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1840 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1841 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1842
1843 _ASUNAME
1844
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 for as_dir in $PATH
1847 do
1848 IFS=$as_save_IFS
1849 test -z "$as_dir" && as_dir=.
1850 $as_echo "PATH: $as_dir"
1851 done
1852 IFS=$as_save_IFS
1853
1854 } >&5
1855
1856 cat >&5 <<_ACEOF
1857
1858
1859 ## ----------- ##
1860 ## Core tests. ##
1861 ## ----------- ##
1862
1863 _ACEOF
1864
1865
1866 # Keep a trace of the command line.
1867 # Strip out --no-create and --no-recursion so they do not pile up.
1868 # Strip out --silent because we don't want to record it for future runs.
1869 # Also quote any args containing shell meta-characters.
1870 # Make two passes to allow for proper duplicate-argument suppression.
1871 ac_configure_args=
1872 ac_configure_args0=
1873 ac_configure_args1=
1874 ac_must_keep_next=false
1875 for ac_pass in 1 2
1876 do
1877 for ac_arg
1878 do
1879 case $ac_arg in
1880 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1881 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1882 | -silent | --silent | --silen | --sile | --sil)
1883 continue ;;
1884 *\'*)
1885 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1886 esac
1887 case $ac_pass in
1888 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1889 2)
1890 as_fn_append ac_configure_args1 " '$ac_arg'"
1891 if test $ac_must_keep_next = true; then
1892 ac_must_keep_next=false # Got value, back to normal.
1893 else
1894 case $ac_arg in
1895 *=* | --config-cache | -C | -disable-* | --disable-* \
1896 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1897 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1898 | -with-* | --with-* | -without-* | --without-* | --x)
1899 case "$ac_configure_args0 " in
1900 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1901 esac
1902 ;;
1903 -* ) ac_must_keep_next=true ;;
1904 esac
1905 fi
1906 as_fn_append ac_configure_args " '$ac_arg'"
1907 ;;
1908 esac
1909 done
1910 done
1911 { ac_configure_args0=; unset ac_configure_args0;}
1912 { ac_configure_args1=; unset ac_configure_args1;}
1913
1914 # When interrupted or exit'd, cleanup temporary files, and complete
1915 # config.log. We remove comments because anyway the quotes in there
1916 # would cause problems or look ugly.
1917 # WARNING: Use '\'' to represent an apostrophe within the trap.
1918 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1919 trap 'exit_status=$?
1920 # Save into config.log some information that might help in debugging.
1921 {
1922 echo
1923
1924 $as_echo "## ---------------- ##
1925 ## Cache variables. ##
1926 ## ---------------- ##"
1927 echo
1928 # The following way of writing the cache mishandles newlines in values,
1929 (
1930 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1931 eval ac_val=\$$ac_var
1932 case $ac_val in #(
1933 *${as_nl}*)
1934 case $ac_var in #(
1935 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1936 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1937 esac
1938 case $ac_var in #(
1939 _ | IFS | as_nl) ;; #(
1940 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1941 *) { eval $ac_var=; unset $ac_var;} ;;
1942 esac ;;
1943 esac
1944 done
1945 (set) 2>&1 |
1946 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1947 *${as_nl}ac_space=\ *)
1948 sed -n \
1949 "s/'\''/'\''\\\\'\'''\''/g;
1950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1951 ;; #(
1952 *)
1953 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1954 ;;
1955 esac |
1956 sort
1957 )
1958 echo
1959
1960 $as_echo "## ----------------- ##
1961 ## Output variables. ##
1962 ## ----------------- ##"
1963 echo
1964 for ac_var in $ac_subst_vars
1965 do
1966 eval ac_val=\$$ac_var
1967 case $ac_val in
1968 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1969 esac
1970 $as_echo "$ac_var='\''$ac_val'\''"
1971 done | sort
1972 echo
1973
1974 if test -n "$ac_subst_files"; then
1975 $as_echo "## ------------------- ##
1976 ## File substitutions. ##
1977 ## ------------------- ##"
1978 echo
1979 for ac_var in $ac_subst_files
1980 do
1981 eval ac_val=\$$ac_var
1982 case $ac_val in
1983 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1984 esac
1985 $as_echo "$ac_var='\''$ac_val'\''"
1986 done | sort
1987 echo
1988 fi
1989
1990 if test -s confdefs.h; then
1991 $as_echo "## ----------- ##
1992 ## confdefs.h. ##
1993 ## ----------- ##"
1994 echo
1995 cat confdefs.h
1996 echo
1997 fi
1998 test "$ac_signal" != 0 &&
1999 $as_echo "$as_me: caught signal $ac_signal"
2000 $as_echo "$as_me: exit $exit_status"
2001 } >&5
2002 rm -f core *.core core.conftest.* &&
2003 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2004 exit $exit_status
2005 ' 0
2006 for ac_signal in 1 2 13 15; do
2007 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2008 done
2009 ac_signal=0
2010
2011 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2012 rm -f -r conftest* confdefs.h
2013
2014 $as_echo "/* confdefs.h */" > confdefs.h
2015
2016 # Predefined preprocessor variables.
2017
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_NAME "$PACKAGE_NAME"
2020 _ACEOF
2021
2022 cat >>confdefs.h <<_ACEOF
2023 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2024 _ACEOF
2025
2026 cat >>confdefs.h <<_ACEOF
2027 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2028 _ACEOF
2029
2030 cat >>confdefs.h <<_ACEOF
2031 #define PACKAGE_STRING "$PACKAGE_STRING"
2032 _ACEOF
2033
2034 cat >>confdefs.h <<_ACEOF
2035 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2036 _ACEOF
2037
2038 cat >>confdefs.h <<_ACEOF
2039 #define PACKAGE_URL "$PACKAGE_URL"
2040 _ACEOF
2041
2042
2043 # Let the site file select an alternate cache file if it wants to.
2044 # Prefer an explicitly selected file to automatically selected ones.
2045 ac_site_file1=NONE
2046 ac_site_file2=NONE
2047 if test -n "$CONFIG_SITE"; then
2048 # We do not want a PATH search for config.site.
2049 case $CONFIG_SITE in #((
2050 -*) ac_site_file1=./$CONFIG_SITE;;
2051 */*) ac_site_file1=$CONFIG_SITE;;
2052 *) ac_site_file1=./$CONFIG_SITE;;
2053 esac
2054 elif test "x$prefix" != xNONE; then
2055 ac_site_file1=$prefix/share/config.site
2056 ac_site_file2=$prefix/etc/config.site
2057 else
2058 ac_site_file1=$ac_default_prefix/share/config.site
2059 ac_site_file2=$ac_default_prefix/etc/config.site
2060 fi
2061 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2062 do
2063 test "x$ac_site_file" = xNONE && continue
2064 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2066 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2067 sed 's/^/| /' "$ac_site_file" >&5
2068 . "$ac_site_file" \
2069 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2071 as_fn_error $? "failed to load site script $ac_site_file
2072 See \`config.log' for more details" "$LINENO" 5; }
2073 fi
2074 done
2075
2076 if test -r "$cache_file"; then
2077 # Some versions of bash will fail to source /dev/null (special files
2078 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2079 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2081 $as_echo "$as_me: loading cache $cache_file" >&6;}
2082 case $cache_file in
2083 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2084 *) . "./$cache_file";;
2085 esac
2086 fi
2087 else
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2089 $as_echo "$as_me: creating cache $cache_file" >&6;}
2090 >$cache_file
2091 fi
2092
2093 # Check that the precious variables saved in the cache have kept the same
2094 # value.
2095 ac_cache_corrupted=false
2096 for ac_var in $ac_precious_vars; do
2097 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2098 eval ac_new_set=\$ac_env_${ac_var}_set
2099 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2100 eval ac_new_val=\$ac_env_${ac_var}_value
2101 case $ac_old_set,$ac_new_set in
2102 set,)
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2104 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2105 ac_cache_corrupted=: ;;
2106 ,set)
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2108 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2109 ac_cache_corrupted=: ;;
2110 ,);;
2111 *)
2112 if test "x$ac_old_val" != "x$ac_new_val"; then
2113 # differences in whitespace do not lead to failure.
2114 ac_old_val_w=`echo x $ac_old_val`
2115 ac_new_val_w=`echo x $ac_new_val`
2116 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2118 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2119 ac_cache_corrupted=:
2120 else
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2122 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2123 eval $ac_var=\$ac_old_val
2124 fi
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2126 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2128 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2129 fi;;
2130 esac
2131 # Pass precious variables to config.status.
2132 if test "$ac_new_set" = set; then
2133 case $ac_new_val in
2134 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2135 *) ac_arg=$ac_var=$ac_new_val ;;
2136 esac
2137 case " $ac_configure_args " in
2138 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2139 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2140 esac
2141 fi
2142 done
2143 if $ac_cache_corrupted; then
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2147 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2148 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2149 fi
2150 ## -------------------- ##
2151 ## Main body of script. ##
2152 ## -------------------- ##
2153
2154 ac_ext=c
2155 ac_cpp='$CPP $CPPFLAGS'
2156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2159
2160
2161
2162
2163 # Initialize Automake
2164 am__api_version='1.11'
2165
2166 ac_aux_dir=
2167 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2168 if test -f "$ac_dir/install-sh"; then
2169 ac_aux_dir=$ac_dir
2170 ac_install_sh="$ac_aux_dir/install-sh -c"
2171 break
2172 elif test -f "$ac_dir/install.sh"; then
2173 ac_aux_dir=$ac_dir
2174 ac_install_sh="$ac_aux_dir/install.sh -c"
2175 break
2176 elif test -f "$ac_dir/shtool"; then
2177 ac_aux_dir=$ac_dir
2178 ac_install_sh="$ac_aux_dir/shtool install -c"
2179 break
2180 fi
2181 done
2182 if test -z "$ac_aux_dir"; then
2183 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2184 fi
2185
2186 # These three variables are undocumented and unsupported,
2187 # and are intended to be withdrawn in a future Autoconf release.
2188 # They can cause serious problems if a builder's source tree is in a directory
2189 # whose full name contains unusual characters.
2190 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2191 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2192 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2193
2194
2195 # Find a good install program. We prefer a C program (faster),
2196 # so one script is as good as another. But avoid the broken or
2197 # incompatible versions:
2198 # SysV /etc/install, /usr/sbin/install
2199 # SunOS /usr/etc/install
2200 # IRIX /sbin/install
2201 # AIX /bin/install
2202 # AmigaOS /C/install, which installs bootblocks on floppy discs
2203 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2204 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2205 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2206 # OS/2's system install, which has a completely different semantic
2207 # ./install, which can be erroneously created by make from ./install.sh.
2208 # Reject install programs that cannot install multiple files.
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2210 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2211 if test -z "$INSTALL"; then
2212 if ${ac_cv_path_install+:} false; then :
2213 $as_echo_n "(cached) " >&6
2214 else
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2217 do
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
2220 # Account for people who put trailing slashes in PATH elements.
2221 case $as_dir/ in #((
2222 ./ | .// | /[cC]/* | \
2223 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2224 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2225 /usr/ucb/* ) ;;
2226 *)
2227 # OSF1 and SCO ODT 3.0 have their own names for install.
2228 # Don't use installbsd from OSF since it installs stuff as root
2229 # by default.
2230 for ac_prog in ginstall scoinst install; do
2231 for ac_exec_ext in '' $ac_executable_extensions; do
2232 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2233 if test $ac_prog = install &&
2234 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2235 # AIX install. It has an incompatible calling convention.
2236 :
2237 elif test $ac_prog = install &&
2238 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2239 # program-specific install script used by HP pwplus--don't use.
2240 :
2241 else
2242 rm -rf conftest.one conftest.two conftest.dir
2243 echo one > conftest.one
2244 echo two > conftest.two
2245 mkdir conftest.dir
2246 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2247 test -s conftest.one && test -s conftest.two &&
2248 test -s conftest.dir/conftest.one &&
2249 test -s conftest.dir/conftest.two
2250 then
2251 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2252 break 3
2253 fi
2254 fi
2255 fi
2256 done
2257 done
2258 ;;
2259 esac
2260
2261 done
2262 IFS=$as_save_IFS
2263
2264 rm -rf conftest.one conftest.two conftest.dir
2265
2266 fi
2267 if test "${ac_cv_path_install+set}" = set; then
2268 INSTALL=$ac_cv_path_install
2269 else
2270 # As a last resort, use the slow shell script. Don't cache a
2271 # value for INSTALL within a source directory, because that will
2272 # break other packages using the cache if that directory is
2273 # removed, or if the value is a relative name.
2274 INSTALL=$ac_install_sh
2275 fi
2276 fi
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2278 $as_echo "$INSTALL" >&6; }
2279
2280 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2281 # It thinks the first close brace ends the variable substitution.
2282 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2283
2284 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2285
2286 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2287
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2289 $as_echo_n "checking whether build environment is sane... " >&6; }
2290 # Just in case
2291 sleep 1
2292 echo timestamp > conftest.file
2293 # Reject unsafe characters in $srcdir or the absolute working directory
2294 # name. Accept space and tab only in the latter.
2295 am_lf='
2296 '
2297 case `pwd` in
2298 *[\\\"\#\$\&\'\`$am_lf]*)
2299 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2300 esac
2301 case $srcdir in
2302 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2303 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2304 esac
2305
2306 # Do `set' in a subshell so we don't clobber the current shell's
2307 # arguments. Must try -L first in case configure is actually a
2308 # symlink; some systems play weird games with the mod time of symlinks
2309 # (eg FreeBSD returns the mod time of the symlink's containing
2310 # directory).
2311 if (
2312 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2313 if test "$*" = "X"; then
2314 # -L didn't work.
2315 set X `ls -t "$srcdir/configure" conftest.file`
2316 fi
2317 rm -f conftest.file
2318 if test "$*" != "X $srcdir/configure conftest.file" \
2319 && test "$*" != "X conftest.file $srcdir/configure"; then
2320
2321 # If neither matched, then we have a broken ls. This can happen
2322 # if, for instance, CONFIG_SHELL is bash and it inherits a
2323 # broken ls alias from the environment. This has actually
2324 # happened. Such a system could not be considered "sane".
2325 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2326 alias in your environment" "$LINENO" 5
2327 fi
2328
2329 test "$2" = conftest.file
2330 )
2331 then
2332 # Ok.
2333 :
2334 else
2335 as_fn_error $? "newly created file is older than distributed files!
2336 Check your system clock" "$LINENO" 5
2337 fi
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2339 $as_echo "yes" >&6; }
2340 test "$program_prefix" != NONE &&
2341 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2342 # Use a double $ so make ignores it.
2343 test "$program_suffix" != NONE &&
2344 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2345 # Double any \ or $.
2346 # By default was `s,x,x', remove it if useless.
2347 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2348 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2349
2350 # expand $ac_aux_dir to an absolute path
2351 am_aux_dir=`cd $ac_aux_dir && pwd`
2352
2353 if test x"${MISSING+set}" != xset; then
2354 case $am_aux_dir in
2355 *\ * | *\ *)
2356 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2357 *)
2358 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2359 esac
2360 fi
2361 # Use eval to expand $SHELL
2362 if eval "$MISSING --run true"; then
2363 am_missing_run="$MISSING --run "
2364 else
2365 am_missing_run=
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2367 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2368 fi
2369
2370 if test x"${install_sh}" != xset; then
2371 case $am_aux_dir in
2372 *\ * | *\ *)
2373 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2374 *)
2375 install_sh="\${SHELL} $am_aux_dir/install-sh"
2376 esac
2377 fi
2378
2379 # Installed binaries are usually stripped using `strip' when the user
2380 # run `make install-strip'. However `strip' might not be the right
2381 # tool to use in cross-compilation environments, therefore Automake
2382 # will honor the `STRIP' environment variable to overrule this program.
2383 if test "$cross_compiling" != no; then
2384 if test -n "$ac_tool_prefix"; then
2385 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2386 set dummy ${ac_tool_prefix}strip; ac_word=$2
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2388 $as_echo_n "checking for $ac_word... " >&6; }
2389 if ${ac_cv_prog_STRIP+:} false; then :
2390 $as_echo_n "(cached) " >&6
2391 else
2392 if test -n "$STRIP"; then
2393 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2394 else
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2397 do
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 break 2
2405 fi
2406 done
2407 done
2408 IFS=$as_save_IFS
2409
2410 fi
2411 fi
2412 STRIP=$ac_cv_prog_STRIP
2413 if test -n "$STRIP"; then
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2415 $as_echo "$STRIP" >&6; }
2416 else
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2418 $as_echo "no" >&6; }
2419 fi
2420
2421
2422 fi
2423 if test -z "$ac_cv_prog_STRIP"; then
2424 ac_ct_STRIP=$STRIP
2425 # Extract the first word of "strip", so it can be a program name with args.
2426 set dummy strip; ac_word=$2
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2428 $as_echo_n "checking for $ac_word... " >&6; }
2429 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2430 $as_echo_n "(cached) " >&6
2431 else
2432 if test -n "$ac_ct_STRIP"; then
2433 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2434 else
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2437 do
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2442 ac_cv_prog_ac_ct_STRIP="strip"
2443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 break 2
2445 fi
2446 done
2447 done
2448 IFS=$as_save_IFS
2449
2450 fi
2451 fi
2452 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2453 if test -n "$ac_ct_STRIP"; then
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2455 $as_echo "$ac_ct_STRIP" >&6; }
2456 else
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2458 $as_echo "no" >&6; }
2459 fi
2460
2461 if test "x$ac_ct_STRIP" = x; then
2462 STRIP=":"
2463 else
2464 case $cross_compiling:$ac_tool_warned in
2465 yes:)
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2468 ac_tool_warned=yes ;;
2469 esac
2470 STRIP=$ac_ct_STRIP
2471 fi
2472 else
2473 STRIP="$ac_cv_prog_STRIP"
2474 fi
2475
2476 fi
2477 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2478
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2480 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2481 if test -z "$MKDIR_P"; then
2482 if ${ac_cv_path_mkdir+:} false; then :
2483 $as_echo_n "(cached) " >&6
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2487 do
2488 IFS=$as_save_IFS
2489 test -z "$as_dir" && as_dir=.
2490 for ac_prog in mkdir gmkdir; do
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2493 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2494 'mkdir (GNU coreutils) '* | \
2495 'mkdir (coreutils) '* | \
2496 'mkdir (fileutils) '4.1*)
2497 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2498 break 3;;
2499 esac
2500 done
2501 done
2502 done
2503 IFS=$as_save_IFS
2504
2505 fi
2506
2507 test -d ./--version && rmdir ./--version
2508 if test "${ac_cv_path_mkdir+set}" = set; then
2509 MKDIR_P="$ac_cv_path_mkdir -p"
2510 else
2511 # As a last resort, use the slow shell script. Don't cache a
2512 # value for MKDIR_P within a source directory, because that will
2513 # break other packages using the cache if that directory is
2514 # removed, or if the value is a relative name.
2515 MKDIR_P="$ac_install_sh -d"
2516 fi
2517 fi
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2519 $as_echo "$MKDIR_P" >&6; }
2520
2521 mkdir_p="$MKDIR_P"
2522 case $mkdir_p in
2523 [\\/$]* | ?:[\\/]*) ;;
2524 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2525 esac
2526
2527 for ac_prog in gawk mawk nawk awk
2528 do
2529 # Extract the first word of "$ac_prog", so it can be a program name with args.
2530 set dummy $ac_prog; ac_word=$2
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2532 $as_echo_n "checking for $ac_word... " >&6; }
2533 if ${ac_cv_prog_AWK+:} false; then :
2534 $as_echo_n "(cached) " >&6
2535 else
2536 if test -n "$AWK"; then
2537 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2538 else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2541 do
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2546 ac_cv_prog_AWK="$ac_prog"
2547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 break 2
2549 fi
2550 done
2551 done
2552 IFS=$as_save_IFS
2553
2554 fi
2555 fi
2556 AWK=$ac_cv_prog_AWK
2557 if test -n "$AWK"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2559 $as_echo "$AWK" >&6; }
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2562 $as_echo "no" >&6; }
2563 fi
2564
2565
2566 test -n "$AWK" && break
2567 done
2568
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2570 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2571 set x ${MAKE-make}
2572 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2573 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 cat >conftest.make <<\_ACEOF
2577 SHELL = /bin/sh
2578 all:
2579 @echo '@@@%%%=$(MAKE)=@@@%%%'
2580 _ACEOF
2581 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2582 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2583 *@@@%%%=?*=@@@%%%*)
2584 eval ac_cv_prog_make_${ac_make}_set=yes;;
2585 *)
2586 eval ac_cv_prog_make_${ac_make}_set=no;;
2587 esac
2588 rm -f conftest.make
2589 fi
2590 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2592 $as_echo "yes" >&6; }
2593 SET_MAKE=
2594 else
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596 $as_echo "no" >&6; }
2597 SET_MAKE="MAKE=${MAKE-make}"
2598 fi
2599
2600 rm -rf .tst 2>/dev/null
2601 mkdir .tst 2>/dev/null
2602 if test -d .tst; then
2603 am__leading_dot=.
2604 else
2605 am__leading_dot=_
2606 fi
2607 rmdir .tst 2>/dev/null
2608
2609 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2610 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2611 # is not polluted with repeated "-I."
2612 am__isrc=' -I$(srcdir)'
2613 # test to see if srcdir already configured
2614 if test -f $srcdir/config.status; then
2615 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2616 fi
2617 fi
2618
2619 # test whether we have cygpath
2620 if test -z "$CYGPATH_W"; then
2621 if (cygpath --version) >/dev/null 2>/dev/null; then
2622 CYGPATH_W='cygpath -w'
2623 else
2624 CYGPATH_W=echo
2625 fi
2626 fi
2627
2628
2629 # Define the identity of the package.
2630 PACKAGE='xorg-docs'
2631 VERSION='1.7'
2632
2633
2634 cat >>confdefs.h <<_ACEOF
2635 #define PACKAGE "$PACKAGE"
2636 _ACEOF
2637
2638
2639 cat >>confdefs.h <<_ACEOF
2640 #define VERSION "$VERSION"
2641 _ACEOF
2642
2643 # Some tools Automake needs.
2644
2645 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2646
2647
2648 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2649
2650
2651 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2652
2653
2654 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2655
2656
2657 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2658
2659 # We need awk for the "check" target. The system "awk" is bad on
2660 # some platforms.
2661 # Always define AMTAR for backward compatibility.
2662
2663 AMTAR=${AMTAR-"${am_missing_run}tar"}
2664
2665 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2666
2667
2668
2669
2670
2671
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2673 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2674 # Check whether --enable-maintainer-mode was given.
2675 if test "${enable_maintainer_mode+set}" = set; then :
2676 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2677 else
2678 USE_MAINTAINER_MODE=no
2679 fi
2680
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2682 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2683 if test $USE_MAINTAINER_MODE = yes; then
2684 MAINTAINER_MODE_TRUE=
2685 MAINTAINER_MODE_FALSE='#'
2686 else
2687 MAINTAINER_MODE_TRUE='#'
2688 MAINTAINER_MODE_FALSE=
2689 fi
2690
2691 MAINT=$MAINTAINER_MODE_TRUE
2692
2693
2694
2695 # Require xorg-macros minimum of 1.12 for XORG_WITH_XSLTPROC
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707 DEPDIR="${am__leading_dot}deps"
2708
2709 ac_config_commands="$ac_config_commands depfiles"
2710
2711
2712 am_make=${MAKE-make}
2713 cat > confinc << 'END'
2714 am__doit:
2715 @echo this is the am__doit target
2716 .PHONY: am__doit
2717 END
2718 # If we don't find an include directive, just comment out the code.
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2720 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2721 am__include="#"
2722 am__quote=
2723 _am_result=none
2724 # First try GNU make style include.
2725 echo "include confinc" > confmf
2726 # Ignore all kinds of additional output from `make'.
2727 case `$am_make -s -f confmf 2> /dev/null` in #(
2728 *the\ am__doit\ target*)
2729 am__include=include
2730 am__quote=
2731 _am_result=GNU
2732 ;;
2733 esac
2734 # Now try BSD make style include.
2735 if test "$am__include" = "#"; then
2736 echo '.include "confinc"' > confmf
2737 case `$am_make -s -f confmf 2> /dev/null` in #(
2738 *the\ am__doit\ target*)
2739 am__include=.include
2740 am__quote="\""
2741 _am_result=BSD
2742 ;;
2743 esac
2744 fi
2745
2746
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2748 $as_echo "$_am_result" >&6; }
2749 rm -f confinc confmf
2750
2751 # Check whether --enable-dependency-tracking was given.
2752 if test "${enable_dependency_tracking+set}" = set; then :
2753 enableval=$enable_dependency_tracking;
2754 fi
2755
2756 if test "x$enable_dependency_tracking" != xno; then
2757 am_depcomp="$ac_aux_dir/depcomp"
2758 AMDEPBACKSLASH='\'
2759 am__nodep='_no'
2760 fi
2761 if test "x$enable_dependency_tracking" != xno; then
2762 AMDEP_TRUE=
2763 AMDEP_FALSE='#'
2764 else
2765 AMDEP_TRUE='#'
2766 AMDEP_FALSE=
2767 fi
2768
2769
2770 ac_ext=c
2771 ac_cpp='$CPP $CPPFLAGS'
2772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775 if test -n "$ac_tool_prefix"; then
2776 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2777 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if ${ac_cv_prog_CC+:} false; then :
2781 $as_echo_n "(cached) " >&6
2782 else
2783 if test -n "$CC"; then
2784 ac_cv_prog_CC="$CC" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2796 fi
2797 done
2798 done
2799 IFS=$as_save_IFS
2800
2801 fi
2802 fi
2803 CC=$ac_cv_prog_CC
2804 if test -n "$CC"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2806 $as_echo "$CC" >&6; }
2807 else
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2810 fi
2811
2812
2813 fi
2814 if test -z "$ac_cv_prog_CC"; then
2815 ac_ct_CC=$CC
2816 # Extract the first word of "gcc", so it can be a program name with args.
2817 set dummy gcc; ac_word=$2
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2819 $as_echo_n "checking for $ac_word... " >&6; }
2820 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2821 $as_echo_n "(cached) " >&6
2822 else
2823 if test -n "$ac_ct_CC"; then
2824 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2833 ac_cv_prog_ac_ct_CC="gcc"
2834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 break 2
2836 fi
2837 done
2838 done
2839 IFS=$as_save_IFS
2840
2841 fi
2842 fi
2843 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2844 if test -n "$ac_ct_CC"; then
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2846 $as_echo "$ac_ct_CC" >&6; }
2847 else
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849 $as_echo "no" >&6; }
2850 fi
2851
2852 if test "x$ac_ct_CC" = x; then
2853 CC=""
2854 else
2855 case $cross_compiling:$ac_tool_warned in
2856 yes:)
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2859 ac_tool_warned=yes ;;
2860 esac
2861 CC=$ac_ct_CC
2862 fi
2863 else
2864 CC="$ac_cv_prog_CC"
2865 fi
2866
2867 if test -z "$CC"; then
2868 if test -n "$ac_tool_prefix"; then
2869 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2870 set dummy ${ac_tool_prefix}cc; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if ${ac_cv_prog_CC+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886 ac_cv_prog_CC="${ac_tool_prefix}cc"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890 done
2891 done
2892 IFS=$as_save_IFS
2893
2894 fi
2895 fi
2896 CC=$ac_cv_prog_CC
2897 if test -n "$CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2900 else
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2903 fi
2904
2905
2906 fi
2907 fi
2908 if test -z "$CC"; then
2909 # Extract the first word of "cc", so it can be a program name with args.
2910 set dummy cc; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_CC+:} false; then :
2914 $as_echo_n "(cached) " >&6
2915 else
2916 if test -n "$CC"; then
2917 ac_cv_prog_CC="$CC" # Let the user override the test.
2918 else
2919 ac_prog_rejected=no
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2922 do
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2928 ac_prog_rejected=yes
2929 continue
2930 fi
2931 ac_cv_prog_CC="cc"
2932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 break 2
2934 fi
2935 done
2936 done
2937 IFS=$as_save_IFS
2938
2939 if test $ac_prog_rejected = yes; then
2940 # We found a bogon in the path, so make sure we never use it.
2941 set dummy $ac_cv_prog_CC
2942 shift
2943 if test $# != 0; then
2944 # We chose a different compiler from the bogus one.
2945 # However, it has the same basename, so the bogon will be chosen
2946 # first if we set CC to just the basename; use the full file name.
2947 shift
2948 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2949 fi
2950 fi
2951 fi
2952 fi
2953 CC=$ac_cv_prog_CC
2954 if test -n "$CC"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2956 $as_echo "$CC" >&6; }
2957 else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2960 fi
2961
2962
2963 fi
2964 if test -z "$CC"; then
2965 if test -n "$ac_tool_prefix"; then
2966 for ac_prog in cl.exe
2967 do
2968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if ${ac_cv_prog_CC+:} false; then :
2973 $as_echo_n "(cached) " >&6
2974 else
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC="$CC" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 break 2
2988 fi
2989 done
2990 done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 CC=$ac_cv_prog_CC
2996 if test -n "$CC"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2998 $as_echo "$CC" >&6; }
2999 else
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002 fi
3003
3004
3005 test -n "$CC" && break
3006 done
3007 fi
3008 if test -z "$CC"; then
3009 ac_ct_CC=$CC
3010 for ac_prog in cl.exe
3011 do
3012 # Extract the first word of "$ac_prog", so it can be a program name with args.
3013 set dummy $ac_prog; ac_word=$2
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015 $as_echo_n "checking for $ac_word... " >&6; }
3016 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3017 $as_echo_n "(cached) " >&6
3018 else
3019 if test -n "$ac_ct_CC"; then
3020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3024 do
3025 IFS=$as_save_IFS
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029 ac_cv_prog_ac_ct_CC="$ac_prog"
3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 break 2
3032 fi
3033 done
3034 done
3035 IFS=$as_save_IFS
3036
3037 fi
3038 fi
3039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3040 if test -n "$ac_ct_CC"; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3042 $as_echo "$ac_ct_CC" >&6; }
3043 else
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 $as_echo "no" >&6; }
3046 fi
3047
3048
3049 test -n "$ac_ct_CC" && break
3050 done
3051
3052 if test "x$ac_ct_CC" = x; then
3053 CC=""
3054 else
3055 case $cross_compiling:$ac_tool_warned in
3056 yes:)
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3059 ac_tool_warned=yes ;;
3060 esac
3061 CC=$ac_ct_CC
3062 fi
3063 fi
3064
3065 fi
3066
3067
3068 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3070 as_fn_error $? "no acceptable C compiler found in \$PATH
3071 See \`config.log' for more details" "$LINENO" 5; }
3072
3073 # Provide some information about the compiler.
3074 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3075 set X $ac_compile
3076 ac_compiler=$2
3077 for ac_option in --version -v -V -qversion; do
3078 { { ac_try="$ac_compiler $ac_option >&5"
3079 case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082 esac
3083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3084 $as_echo "$ac_try_echo"; } >&5
3085 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3086 ac_status=$?
3087 if test -s conftest.err; then
3088 sed '10a\
3089 ... rest of stderr output deleted ...
3090 10q' conftest.err >conftest.er1
3091 cat conftest.er1 >&5
3092 fi
3093 rm -f conftest.er1 conftest.err
3094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3095 test $ac_status = 0; }
3096 done
3097
3098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3099 /* end confdefs.h. */
3100
3101 int
3102 main ()
3103 {
3104
3105 ;
3106 return 0;
3107 }
3108 _ACEOF
3109 ac_clean_files_save=$ac_clean_files
3110 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3111 # Try to create an executable without -o first, disregard a.out.
3112 # It will help us diagnose broken compilers, and finding out an intuition
3113 # of exeext.
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3115 $as_echo_n "checking whether the C compiler works... " >&6; }
3116 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3117
3118 # The possible output files:
3119 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3120
3121 ac_rmfiles=
3122 for ac_file in $ac_files
3123 do
3124 case $ac_file in
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3126 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3127 esac
3128 done
3129 rm -f $ac_rmfiles
3130
3131 if { { ac_try="$ac_link_default"
3132 case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135 esac
3136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3137 $as_echo "$ac_try_echo"; } >&5
3138 (eval "$ac_link_default") 2>&5
3139 ac_status=$?
3140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3141 test $ac_status = 0; }; then :
3142 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3143 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3144 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3145 # so that the user can short-circuit this test for compilers unknown to
3146 # Autoconf.
3147 for ac_file in $ac_files ''
3148 do
3149 test -f "$ac_file" || continue
3150 case $ac_file in
3151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3152 ;;
3153 [ab].out )
3154 # We found the default executable, but exeext='' is most
3155 # certainly right.
3156 break;;
3157 *.* )
3158 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3159 then :; else
3160 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3161 fi
3162 # We set ac_cv_exeext here because the later test for it is not
3163 # safe: cross compilers may not add the suffix if given an `-o'
3164 # argument, so we may need to know it at that point already.
3165 # Even if this section looks crufty: it has the advantage of
3166 # actually working.
3167 break;;
3168 * )
3169 break;;
3170 esac
3171 done
3172 test "$ac_cv_exeext" = no && ac_cv_exeext=
3173
3174 else
3175 ac_file=''
3176 fi
3177 if test -z "$ac_file"; then :
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3180 $as_echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3182
3183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185 as_fn_error 77 "C compiler cannot create executables
3186 See \`config.log' for more details" "$LINENO" 5; }
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3189 $as_echo "yes" >&6; }
3190 fi
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3192 $as_echo_n "checking for C compiler default output file name... " >&6; }
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3194 $as_echo "$ac_file" >&6; }
3195 ac_exeext=$ac_cv_exeext
3196
3197 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3198 ac_clean_files=$ac_clean_files_save
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3200 $as_echo_n "checking for suffix of executables... " >&6; }
3201 if { { ac_try="$ac_link"
3202 case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205 esac
3206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207 $as_echo "$ac_try_echo"; } >&5
3208 (eval "$ac_link") 2>&5
3209 ac_status=$?
3210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211 test $ac_status = 0; }; then :
3212 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3213 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3214 # work properly (i.e., refer to `conftest.exe'), while it won't with
3215 # `rm'.
3216 for ac_file in conftest.exe conftest conftest.*; do
3217 test -f "$ac_file" || continue
3218 case $ac_file in
3219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3220 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3221 break;;
3222 * ) break;;
3223 esac
3224 done
3225 else
3226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3228 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3229 See \`config.log' for more details" "$LINENO" 5; }
3230 fi
3231 rm -f conftest conftest$ac_cv_exeext
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3233 $as_echo "$ac_cv_exeext" >&6; }
3234
3235 rm -f conftest.$ac_ext
3236 EXEEXT=$ac_cv_exeext
3237 ac_exeext=$EXEEXT
3238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239 /* end confdefs.h. */
3240 #include <stdio.h>
3241 int
3242 main ()
3243 {
3244 FILE *f = fopen ("conftest.out", "w");
3245 return ferror (f) || fclose (f) != 0;
3246
3247 ;
3248 return 0;
3249 }
3250 _ACEOF
3251 ac_clean_files="$ac_clean_files conftest.out"
3252 # Check that the compiler produces executables we can run. If not, either
3253 # the compiler is broken, or we cross compile.
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3255 $as_echo_n "checking whether we are cross compiling... " >&6; }
3256 if test "$cross_compiling" != yes; then
3257 { { ac_try="$ac_link"
3258 case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261 esac
3262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263 $as_echo "$ac_try_echo"; } >&5
3264 (eval "$ac_link") 2>&5
3265 ac_status=$?
3266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267 test $ac_status = 0; }
3268 if { ac_try='./conftest$ac_cv_exeext'
3269 { { case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272 esac
3273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3274 $as_echo "$ac_try_echo"; } >&5
3275 (eval "$ac_try") 2>&5
3276 ac_status=$?
3277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3278 test $ac_status = 0; }; }; then
3279 cross_compiling=no
3280 else
3281 if test "$cross_compiling" = maybe; then
3282 cross_compiling=yes
3283 else
3284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286 as_fn_error $? "cannot run C compiled programs.
3287 If you meant to cross compile, use \`--host'.
3288 See \`config.log' for more details" "$LINENO" 5; }
3289 fi
3290 fi
3291 fi
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3293 $as_echo "$cross_compiling" >&6; }
3294
3295 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3296 ac_clean_files=$ac_clean_files_save
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3298 $as_echo_n "checking for suffix of object files... " >&6; }
3299 if ${ac_cv_objext+:} false; then :
3300 $as_echo_n "(cached) " >&6
3301 else
3302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303 /* end confdefs.h. */
3304
3305 int
3306 main ()
3307 {
3308
3309 ;
3310 return 0;
3311 }
3312 _ACEOF
3313 rm -f conftest.o conftest.obj
3314 if { { ac_try="$ac_compile"
3315 case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318 esac
3319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320 $as_echo "$ac_try_echo"; } >&5
3321 (eval "$ac_compile") 2>&5
3322 ac_status=$?
3323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324 test $ac_status = 0; }; then :
3325 for ac_file in conftest.o conftest.obj conftest.*; do
3326 test -f "$ac_file" || continue;
3327 case $ac_file in
3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3330 break;;
3331 esac
3332 done
3333 else
3334 $as_echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3336
3337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3339 as_fn_error $? "cannot compute suffix of object files: cannot compile
3340 See \`config.log' for more details" "$LINENO" 5; }
3341 fi
3342 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3343 fi
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3345 $as_echo "$ac_cv_objext" >&6; }
3346 OBJEXT=$ac_cv_objext
3347 ac_objext=$OBJEXT
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3349 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3350 if ${ac_cv_c_compiler_gnu+:} false; then :
3351 $as_echo_n "(cached) " >&6
3352 else
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3355
3356 int
3357 main ()
3358 {
3359 #ifndef __GNUC__
3360 choke me
3361 #endif
3362
3363 ;
3364 return 0;
3365 }
3366 _ACEOF
3367 if ac_fn_c_try_compile "$LINENO"; then :
3368 ac_compiler_gnu=yes
3369 else
3370 ac_compiler_gnu=no
3371 fi
3372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3374
3375 fi
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3377 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3378 if test $ac_compiler_gnu = yes; then
3379 GCC=yes
3380 else
3381 GCC=
3382 fi
3383 ac_test_CFLAGS=${CFLAGS+set}
3384 ac_save_CFLAGS=$CFLAGS
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3386 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3387 if ${ac_cv_prog_cc_g+:} false; then :
3388 $as_echo_n "(cached) " >&6
3389 else
3390 ac_save_c_werror_flag=$ac_c_werror_flag
3391 ac_c_werror_flag=yes
3392 ac_cv_prog_cc_g=no
3393 CFLAGS="-g"
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h. */
3396
3397 int
3398 main ()
3399 {
3400
3401 ;
3402 return 0;
3403 }
3404 _ACEOF
3405 if ac_fn_c_try_compile "$LINENO"; then :
3406 ac_cv_prog_cc_g=yes
3407 else
3408 CFLAGS=""
3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h. */
3411
3412 int
3413 main ()
3414 {
3415
3416 ;
3417 return 0;
3418 }
3419 _ACEOF
3420 if ac_fn_c_try_compile "$LINENO"; then :
3421
3422 else
3423 ac_c_werror_flag=$ac_save_c_werror_flag
3424 CFLAGS="-g"
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3427
3428 int
3429 main ()
3430 {
3431
3432 ;
3433 return 0;
3434 }
3435 _ACEOF
3436 if ac_fn_c_try_compile "$LINENO"; then :
3437 ac_cv_prog_cc_g=yes
3438 fi
3439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3440 fi
3441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3442 fi
3443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3444 ac_c_werror_flag=$ac_save_c_werror_flag
3445 fi
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3447 $as_echo "$ac_cv_prog_cc_g" >&6; }
3448 if test "$ac_test_CFLAGS" = set; then
3449 CFLAGS=$ac_save_CFLAGS
3450 elif test $ac_cv_prog_cc_g = yes; then
3451 if test "$GCC" = yes; then
3452 CFLAGS="-g -O2"
3453 else
3454 CFLAGS="-g"
3455 fi
3456 else
3457 if test "$GCC" = yes; then
3458 CFLAGS="-O2"
3459 else
3460 CFLAGS=
3461 fi
3462 fi
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3464 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3465 if ${ac_cv_prog_cc_c89+:} false; then :
3466 $as_echo_n "(cached) " >&6
3467 else
3468 ac_cv_prog_cc_c89=no
3469 ac_save_CC=$CC
3470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471 /* end confdefs.h. */
3472 #include <stdarg.h>
3473 #include <stdio.h>
3474 #include <sys/types.h>
3475 #include <sys/stat.h>
3476 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3477 struct buf { int x; };
3478 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3479 static char *e (p, i)
3480 char **p;
3481 int i;
3482 {
3483 return p[i];
3484 }
3485 static char *f (char * (*g) (char **, int), char **p, ...)
3486 {
3487 char *s;
3488 va_list v;
3489 va_start (v,p);
3490 s = g (p, va_arg (v,int));
3491 va_end (v);
3492 return s;
3493 }
3494
3495 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3496 function prototypes and stuff, but not '\xHH' hex character constants.
3497 These don't provoke an error unfortunately, instead are silently treated
3498 as 'x'. The following induces an error, until -std is added to get
3499 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3500 array size at least. It's necessary to write '\x00'==0 to get something
3501 that's true only with -std. */
3502 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3503
3504 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3505 inside strings and character constants. */
3506 #define FOO(x) 'x'
3507 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3508
3509 int test (int i, double x);
3510 struct s1 {int (*f) (int a);};
3511 struct s2 {int (*f) (double a);};
3512 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3513 int argc;
3514 char **argv;
3515 int
3516 main ()
3517 {
3518 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3519 ;
3520 return 0;
3521 }
3522 _ACEOF
3523 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3524 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3525 do
3526 CC="$ac_save_CC $ac_arg"
3527 if ac_fn_c_try_compile "$LINENO"; then :
3528 ac_cv_prog_cc_c89=$ac_arg
3529 fi
3530 rm -f core conftest.err conftest.$ac_objext
3531 test "x$ac_cv_prog_cc_c89" != "xno" && break
3532 done
3533 rm -f conftest.$ac_ext
3534 CC=$ac_save_CC
3535
3536 fi
3537 # AC_CACHE_VAL
3538 case "x$ac_cv_prog_cc_c89" in
3539 x)
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3541 $as_echo "none needed" >&6; } ;;
3542 xno)
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3544 $as_echo "unsupported" >&6; } ;;
3545 *)
3546 CC="$CC $ac_cv_prog_cc_c89"
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3548 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3549 esac
3550 if test "x$ac_cv_prog_cc_c89" != xno; then :
3551
3552 fi
3553
3554 ac_ext=c
3555 ac_cpp='$CPP $CPPFLAGS'
3556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3559
3560 depcc="$CC" am_compiler_list=
3561
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3563 $as_echo_n "checking dependency style of $depcc... " >&6; }
3564 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3565 $as_echo_n "(cached) " >&6
3566 else
3567 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3568 # We make a subdir and do the tests there. Otherwise we can end up
3569 # making bogus files that we don't know about and never remove. For
3570 # instance it was reported that on HP-UX the gcc test will end up
3571 # making a dummy file named `D' -- because `-MD' means `put the output
3572 # in D'.
3573 rm -rf conftest.dir
3574 mkdir conftest.dir
3575 # Copy depcomp to subdir because otherwise we won't find it if we're
3576 # using a relative directory.
3577 cp "$am_depcomp" conftest.dir
3578 cd conftest.dir
3579 # We will build objects and dependencies in a subdirectory because
3580 # it helps to detect inapplicable dependency modes. For instance
3581 # both Tru64's cc and ICC support -MD to output dependencies as a
3582 # side effect of compilation, but ICC will put the dependencies in
3583 # the current directory while Tru64 will put them in the object
3584 # directory.
3585 mkdir sub
3586
3587 am_cv_CC_dependencies_compiler_type=none
3588 if test "$am_compiler_list" = ""; then
3589 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3590 fi
3591 am__universal=false
3592 case " $depcc " in #(
3593 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3594 esac
3595
3596 for depmode in $am_compiler_list; do
3597 # Setup a source with many dependencies, because some compilers
3598 # like to wrap large dependency lists on column 80 (with \), and
3599 # we should not choose a depcomp mode which is confused by this.
3600 #
3601 # We need to recreate these files for each test, as the compiler may
3602 # overwrite some of them when testing with obscure command lines.
3603 # This happens at least with the AIX C compiler.
3604 : > sub/conftest.c
3605 for i in 1 2 3 4 5 6; do
3606 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3607 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3608 # Solaris 8's {/usr,}/bin/sh.
3609 touch sub/conftst$i.h
3610 done
3611 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3612
3613 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3614 # mode. It turns out that the SunPro C++ compiler does not properly
3615 # handle `-M -o', and we need to detect this. Also, some Intel
3616 # versions had trouble with output in subdirs
3617 am__obj=sub/conftest.${OBJEXT-o}
3618 am__minus_obj="-o $am__obj"
3619 case $depmode in
3620 gcc)
3621 # This depmode causes a compiler race in universal mode.
3622 test "$am__universal" = false || continue
3623 ;;
3624 nosideeffect)
3625 # after this tag, mechanisms are not by side-effect, so they'll
3626 # only be used when explicitly requested
3627 if test "x$enable_dependency_tracking" = xyes; then
3628 continue
3629 else
3630 break
3631 fi
3632 ;;
3633 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3634 # This compiler won't grok `-c -o', but also, the minuso test has
3635 # not run yet. These depmodes are late enough in the game, and
3636 # so weak that their functioning should not be impacted.
3637 am__obj=conftest.${OBJEXT-o}
3638 am__minus_obj=
3639 ;;
3640 none) break ;;
3641 esac
3642 if depmode=$depmode \
3643 source=sub/conftest.c object=$am__obj \
3644 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3645 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3646 >/dev/null 2>conftest.err &&
3647 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3648 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3649 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3650 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3651 # icc doesn't choke on unknown options, it will just issue warnings
3652 # or remarks (even with -Werror). So we grep stderr for any message
3653 # that says an option was ignored or not supported.
3654 # When given -MP, icc 7.0 and 7.1 complain thusly:
3655 # icc: Command line warning: ignoring option '-M'; no argument required
3656 # The diagnosis changed in icc 8.0:
3657 # icc: Command line remark: option '-MP' not supported
3658 if (grep 'ignoring option' conftest.err ||
3659 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3660 am_cv_CC_dependencies_compiler_type=$depmode
3661 break
3662 fi
3663 fi
3664 done
3665
3666 cd ..
3667 rm -rf conftest.dir
3668 else
3669 am_cv_CC_dependencies_compiler_type=none
3670 fi
3671
3672 fi
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3674 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3675 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3676
3677 if
3678 test "x$enable_dependency_tracking" != xno \
3679 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3680 am__fastdepCC_TRUE=
3681 am__fastdepCC_FALSE='#'
3682 else
3683 am__fastdepCC_TRUE='#'
3684 am__fastdepCC_FALSE=
3685 fi
3686
3687
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3689 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3690 if ${ac_cv_prog_cc_c99+:} false; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 ac_cv_prog_cc_c99=no
3694 ac_save_CC=$CC
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3697 #include <stdarg.h>
3698 #include <stdbool.h>
3699 #include <stdlib.h>
3700 #include <wchar.h>
3701 #include <stdio.h>
3702
3703 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3704 #define debug(...) fprintf (stderr, __VA_ARGS__)
3705 #define showlist(...) puts (#__VA_ARGS__)
3706 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3707 static void
3708 test_varargs_macros (void)
3709 {
3710 int x = 1234;
3711 int y = 5678;
3712 debug ("Flag");
3713 debug ("X = %d\n", x);
3714 showlist (The first, second, and third items.);
3715 report (x>y, "x is %d but y is %d", x, y);
3716 }
3717
3718 // Check long long types.
3719 #define BIG64 18446744073709551615ull
3720 #define BIG32 4294967295ul
3721 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3722 #if !BIG_OK
3723 your preprocessor is broken;
3724 #endif
3725 #if BIG_OK
3726 #else
3727 your preprocessor is broken;
3728 #endif
3729 static long long int bignum = -9223372036854775807LL;
3730 static unsigned long long int ubignum = BIG64;
3731
3732 struct incomplete_array
3733 {
3734 int datasize;
3735 double data[];
3736 };
3737
3738 struct named_init {
3739 int number;
3740 const wchar_t *name;
3741 double average;
3742 };
3743
3744 typedef const char *ccp;
3745
3746 static inline int
3747 test_restrict (ccp restrict text)
3748 {
3749 // See if C++-style comments work.
3750 // Iterate through items via the restricted pointer.
3751 // Also check for declarations in for loops.
3752 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3753 continue;
3754 return 0;
3755 }
3756
3757 // Check varargs and va_copy.
3758 static void
3759 test_varargs (const char *format, ...)
3760 {
3761 va_list args;
3762 va_start (args, format);
3763 va_list args_copy;
3764 va_copy (args_copy, args);
3765
3766 const char *str;
3767 int number;
3768 float fnumber;
3769
3770 while (*format)
3771 {
3772 switch (*format++)
3773 {
3774 case 's': // string
3775 str = va_arg (args_copy, const char *);
3776 break;
3777 case 'd': // int
3778 number = va_arg (args_copy, int);
3779 break;
3780 case 'f': // float
3781 fnumber = va_arg (args_copy, double);
3782 break;
3783 default:
3784 break;
3785 }
3786 }
3787 va_end (args_copy);
3788 va_end (args);
3789 }
3790
3791 int
3792 main ()
3793 {
3794
3795 // Check bool.
3796 _Bool success = false;
3797
3798 // Check restrict.
3799 if (test_restrict ("String literal") == 0)
3800 success = true;
3801 char *restrict newvar = "Another string";
3802
3803 // Check varargs.
3804 test_varargs ("s, d' f .", "string", 65, 34.234);
3805 test_varargs_macros ();
3806
3807 // Check flexible array members.
3808 struct incomplete_array *ia =
3809 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3810 ia->datasize = 10;
3811 for (int i = 0; i < ia->datasize; ++i)
3812 ia->data[i] = i * 1.234;
3813
3814 // Check named initializers.
3815 struct named_init ni = {
3816 .number = 34,
3817 .name = L"Test wide string",
3818 .average = 543.34343,
3819 };
3820
3821 ni.number = 58;
3822
3823 int dynamic_array[ni.number];
3824 dynamic_array[ni.number - 1] = 543;
3825
3826 // work around unused variable warnings
3827 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3828 || dynamic_array[ni.number - 1] != 543);
3829
3830 ;
3831 return 0;
3832 }
3833 _ACEOF
3834 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3835 do
3836 CC="$ac_save_CC $ac_arg"
3837 if ac_fn_c_try_compile "$LINENO"; then :
3838 ac_cv_prog_cc_c99=$ac_arg
3839 fi
3840 rm -f core conftest.err conftest.$ac_objext
3841 test "x$ac_cv_prog_cc_c99" != "xno" && break
3842 done
3843 rm -f conftest.$ac_ext
3844 CC=$ac_save_CC
3845
3846 fi
3847 # AC_CACHE_VAL
3848 case "x$ac_cv_prog_cc_c99" in
3849 x)
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3851 $as_echo "none needed" >&6; } ;;
3852 xno)
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3854 $as_echo "unsupported" >&6; } ;;
3855 *)
3856 CC="$CC $ac_cv_prog_cc_c99"
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3858 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3859 esac
3860 if test "x$ac_cv_prog_cc_c99" != xno; then :
3861
3862 fi
3863
3864
3865
3866 ac_ext=c
3867 ac_cpp='$CPP $CPPFLAGS'
3868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3872 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3873 # On Suns, sometimes $CPP names a directory.
3874 if test -n "$CPP" && test -d "$CPP"; then
3875 CPP=
3876 fi
3877 if test -z "$CPP"; then
3878 if ${ac_cv_prog_CPP+:} false; then :
3879 $as_echo_n "(cached) " >&6
3880 else
3881 # Double quotes because CPP needs to be expanded
3882 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3883 do
3884 ac_preproc_ok=false
3885 for ac_c_preproc_warn_flag in '' yes
3886 do
3887 # Use a header file that comes with gcc, so configuring glibc
3888 # with a fresh cross-compiler works.
3889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3890 # <limits.h> exists even on freestanding compilers.
3891 # On the NeXT, cc -E runs the code through the compiler's parser,
3892 # not just through cpp. "Syntax error" is here to catch this case.
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3895 #ifdef __STDC__
3896 # include <limits.h>
3897 #else
3898 # include <assert.h>
3899 #endif
3900 Syntax error
3901 _ACEOF
3902 if ac_fn_c_try_cpp "$LINENO"; then :
3903
3904 else
3905 # Broken: fails on valid input.
3906 continue
3907 fi
3908 rm -f conftest.err conftest.i conftest.$ac_ext
3909
3910 # OK, works on sane cases. Now check whether nonexistent headers
3911 # can be detected and how.
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3914 #include <ac_nonexistent.h>
3915 _ACEOF
3916 if ac_fn_c_try_cpp "$LINENO"; then :
3917 # Broken: success on invalid input.
3918 continue
3919 else
3920 # Passes both tests.
3921 ac_preproc_ok=:
3922 break
3923 fi
3924 rm -f conftest.err conftest.i conftest.$ac_ext
3925
3926 done
3927 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3928 rm -f conftest.i conftest.err conftest.$ac_ext
3929 if $ac_preproc_ok; then :
3930 break
3931 fi
3932
3933 done
3934 ac_cv_prog_CPP=$CPP
3935
3936 fi
3937 CPP=$ac_cv_prog_CPP
3938 else
3939 ac_cv_prog_CPP=$CPP
3940 fi
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3942 $as_echo "$CPP" >&6; }
3943 ac_preproc_ok=false
3944 for ac_c_preproc_warn_flag in '' yes
3945 do
3946 # Use a header file that comes with gcc, so configuring glibc
3947 # with a fresh cross-compiler works.
3948 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3949 # <limits.h> exists even on freestanding compilers.
3950 # On the NeXT, cc -E runs the code through the compiler's parser,
3951 # not just through cpp. "Syntax error" is here to catch this case.
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3954 #ifdef __STDC__
3955 # include <limits.h>
3956 #else
3957 # include <assert.h>
3958 #endif
3959 Syntax error
3960 _ACEOF
3961 if ac_fn_c_try_cpp "$LINENO"; then :
3962
3963 else
3964 # Broken: fails on valid input.
3965 continue
3966 fi
3967 rm -f conftest.err conftest.i conftest.$ac_ext
3968
3969 # OK, works on sane cases. Now check whether nonexistent headers
3970 # can be detected and how.
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h. */
3973 #include <ac_nonexistent.h>
3974 _ACEOF
3975 if ac_fn_c_try_cpp "$LINENO"; then :
3976 # Broken: success on invalid input.
3977 continue
3978 else
3979 # Passes both tests.
3980 ac_preproc_ok=:
3981 break
3982 fi
3983 rm -f conftest.err conftest.i conftest.$ac_ext
3984
3985 done
3986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3987 rm -f conftest.i conftest.err conftest.$ac_ext
3988 if $ac_preproc_ok; then :
3989
3990 else
3991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3993 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3994 See \`config.log' for more details" "$LINENO" 5; }
3995 fi
3996
3997 ac_ext=c
3998 ac_cpp='$CPP $CPPFLAGS'
3999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4002
4003
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4005 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4006 if ${ac_cv_path_GREP+:} false; then :
4007 $as_echo_n "(cached) " >&6
4008 else
4009 if test -z "$GREP"; then
4010 ac_path_GREP_found=false
4011 # Loop through the user's path and test for each of PROGNAME-LIST
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4014 do
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
4017 for ac_prog in grep ggrep; do
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4020 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4021 # Check for GNU ac_path_GREP and select it if it is found.
4022 # Check for GNU $ac_path_GREP
4023 case `"$ac_path_GREP" --version 2>&1` in
4024 *GNU*)
4025 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4026 *)
4027 ac_count=0
4028 $as_echo_n 0123456789 >"conftest.in"
4029 while :
4030 do
4031 cat "conftest.in" "conftest.in" >"conftest.tmp"
4032 mv "conftest.tmp" "conftest.in"
4033 cp "conftest.in" "conftest.nl"
4034 $as_echo 'GREP' >> "conftest.nl"
4035 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4037 as_fn_arith $ac_count + 1 && ac_count=$as_val
4038 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4039 # Best one so far, save it but keep looking for a better one
4040 ac_cv_path_GREP="$ac_path_GREP"
4041 ac_path_GREP_max=$ac_count
4042 fi
4043 # 10*(2^10) chars as input seems more than enough
4044 test $ac_count -gt 10 && break
4045 done
4046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4047 esac
4048
4049 $ac_path_GREP_found && break 3
4050 done
4051 done
4052 done
4053 IFS=$as_save_IFS
4054 if test -z "$ac_cv_path_GREP"; then
4055 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4056 fi
4057 else
4058 ac_cv_path_GREP=$GREP
4059 fi
4060
4061 fi
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4063 $as_echo "$ac_cv_path_GREP" >&6; }
4064 GREP="$ac_cv_path_GREP"
4065
4066
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4068 $as_echo_n "checking for egrep... " >&6; }
4069 if ${ac_cv_path_EGREP+:} false; then :
4070 $as_echo_n "(cached) " >&6
4071 else
4072 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4073 then ac_cv_path_EGREP="$GREP -E"
4074 else
4075 if test -z "$EGREP"; then
4076 ac_path_EGREP_found=false
4077 # Loop through the user's path and test for each of PROGNAME-LIST
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4080 do
4081 IFS=$as_save_IFS
4082 test -z "$as_dir" && as_dir=.
4083 for ac_prog in egrep; do
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4086 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4087 # Check for GNU ac_path_EGREP and select it if it is found.
4088 # Check for GNU $ac_path_EGREP
4089 case `"$ac_path_EGREP" --version 2>&1` in
4090 *GNU*)
4091 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4092 *)
4093 ac_count=0
4094 $as_echo_n 0123456789 >"conftest.in"
4095 while :
4096 do
4097 cat "conftest.in" "conftest.in" >"conftest.tmp"
4098 mv "conftest.tmp" "conftest.in"
4099 cp "conftest.in" "conftest.nl"
4100 $as_echo 'EGREP' >> "conftest.nl"
4101 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4102 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4103 as_fn_arith $ac_count + 1 && ac_count=$as_val
4104 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4105 # Best one so far, save it but keep looking for a better one
4106 ac_cv_path_EGREP="$ac_path_EGREP"
4107 ac_path_EGREP_max=$ac_count
4108 fi
4109 # 10*(2^10) chars as input seems more than enough
4110 test $ac_count -gt 10 && break
4111 done
4112 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4113 esac
4114
4115 $ac_path_EGREP_found && break 3
4116 done
4117 done
4118 done
4119 IFS=$as_save_IFS
4120 if test -z "$ac_cv_path_EGREP"; then
4121 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4122 fi
4123 else
4124 ac_cv_path_EGREP=$EGREP
4125 fi
4126
4127 fi
4128 fi
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4130 $as_echo "$ac_cv_path_EGREP" >&6; }
4131 EGREP="$ac_cv_path_EGREP"
4132
4133
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4135 $as_echo_n "checking for ANSI C header files... " >&6; }
4136 if ${ac_cv_header_stdc+:} false; then :
4137 $as_echo_n "(cached) " >&6
4138 else
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141 #include <stdlib.h>
4142 #include <stdarg.h>
4143 #include <string.h>
4144 #include <float.h>
4145
4146 int
4147 main ()
4148 {
4149
4150 ;
4151 return 0;
4152 }
4153 _ACEOF
4154 if ac_fn_c_try_compile "$LINENO"; then :
4155 ac_cv_header_stdc=yes
4156 else
4157 ac_cv_header_stdc=no
4158 fi
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160
4161 if test $ac_cv_header_stdc = yes; then
4162 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4165 #include <string.h>
4166
4167 _ACEOF
4168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4169 $EGREP "memchr" >/dev/null 2>&1; then :
4170
4171 else
4172 ac_cv_header_stdc=no
4173 fi
4174 rm -f conftest*
4175
4176 fi
4177
4178 if test $ac_cv_header_stdc = yes; then
4179 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4182 #include <stdlib.h>
4183
4184 _ACEOF
4185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4186 $EGREP "free" >/dev/null 2>&1; then :
4187
4188 else
4189 ac_cv_header_stdc=no
4190 fi
4191 rm -f conftest*
4192
4193 fi
4194
4195 if test $ac_cv_header_stdc = yes; then
4196 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4197 if test "$cross_compiling" = yes; then :
4198 :
4199 else
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202 #include <ctype.h>
4203 #include <stdlib.h>
4204 #if ((' ' & 0x0FF) == 0x020)
4205 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4206 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4207 #else
4208 # define ISLOWER(c) \
4209 (('a' <= (c) && (c) <= 'i') \
4210 || ('j' <= (c) && (c) <= 'r') \
4211 || ('s' <= (c) && (c) <= 'z'))
4212 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4213 #endif
4214
4215 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4216 int
4217 main ()
4218 {
4219 int i;
4220 for (i = 0; i < 256; i++)
4221 if (XOR (islower (i), ISLOWER (i))
4222 || toupper (i) != TOUPPER (i))
4223 return 2;
4224 return 0;
4225 }
4226 _ACEOF
4227 if ac_fn_c_try_run "$LINENO"; then :
4228
4229 else
4230 ac_cv_header_stdc=no
4231 fi
4232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4233 conftest.$ac_objext conftest.beam conftest.$ac_ext
4234 fi
4235
4236 fi
4237 fi
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4239 $as_echo "$ac_cv_header_stdc" >&6; }
4240 if test $ac_cv_header_stdc = yes; then
4241
4242 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4243
4244 fi
4245
4246 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4247 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4248 inttypes.h stdint.h unistd.h
4249 do :
4250 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4251 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4252 "
4253 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4254 cat >>confdefs.h <<_ACEOF
4255 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4256 _ACEOF
4257
4258 fi
4259
4260 done
4261
4262
4263
4264
4265
4266
4267 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4268 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4269 CLANGCC="yes"
4270 else
4271 CLANGCC="no"
4272 fi
4273
4274 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4275 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4276 INTELCC="yes"
4277 else
4278 INTELCC="no"
4279 fi
4280
4281 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4282 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4283 SUNCC="yes"
4284 else
4285 SUNCC="no"
4286 fi
4287
4288
4289
4290
4291 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4292 if test -n "$ac_tool_prefix"; then
4293 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4294 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296 $as_echo_n "checking for $ac_word... " >&6; }
4297 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4298 $as_echo_n "(cached) " >&6
4299 else
4300 case $PKG_CONFIG in
4301 [\\/]* | ?:[\\/]*)
4302 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4303 ;;
4304 *)
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4307 do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 break 2
4315 fi
4316 done
4317 done
4318 IFS=$as_save_IFS
4319
4320 ;;
4321 esac
4322 fi
4323 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4324 if test -n "$PKG_CONFIG"; then
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4326 $as_echo "$PKG_CONFIG" >&6; }
4327 else
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329 $as_echo "no" >&6; }
4330 fi
4331
4332
4333 fi
4334 if test -z "$ac_cv_path_PKG_CONFIG"; then
4335 ac_pt_PKG_CONFIG=$PKG_CONFIG
4336 # Extract the first word of "pkg-config", so it can be a program name with args.
4337 set dummy pkg-config; ac_word=$2
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339 $as_echo_n "checking for $ac_word... " >&6; }
4340 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4341 $as_echo_n "(cached) " >&6
4342 else
4343 case $ac_pt_PKG_CONFIG in
4344 [\\/]* | ?:[\\/]*)
4345 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4346 ;;
4347 *)
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 for as_dir in $PATH
4350 do
4351 IFS=$as_save_IFS
4352 test -z "$as_dir" && as_dir=.
4353 for ac_exec_ext in '' $ac_executable_extensions; do
4354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4355 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 break 2
4358 fi
4359 done
4360 done
4361 IFS=$as_save_IFS
4362
4363 ;;
4364 esac
4365 fi
4366 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4367 if test -n "$ac_pt_PKG_CONFIG"; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4369 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4370 else
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4373 fi
4374
4375 if test "x$ac_pt_PKG_CONFIG" = x; then
4376 PKG_CONFIG=""
4377 else
4378 case $cross_compiling:$ac_tool_warned in
4379 yes:)
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4382 ac_tool_warned=yes ;;
4383 esac
4384 PKG_CONFIG=$ac_pt_PKG_CONFIG
4385 fi
4386 else
4387 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4388 fi
4389
4390 fi
4391 if test -n "$PKG_CONFIG"; then
4392 _pkg_min_version=0.9.0
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4394 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4395 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4397 $as_echo "yes" >&6; }
4398 else
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400 $as_echo "no" >&6; }
4401 PKG_CONFIG=""
4402 fi
4403
4404 fi
4405 # Make sure we can run config.sub.
4406 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4407 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4408
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4410 $as_echo_n "checking build system type... " >&6; }
4411 if ${ac_cv_build+:} false; then :
4412 $as_echo_n "(cached) " >&6
4413 else
4414 ac_build_alias=$build_alias
4415 test "x$ac_build_alias" = x &&
4416 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4417 test "x$ac_build_alias" = x &&
4418 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4419 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4420 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4421
4422 fi
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4424 $as_echo "$ac_cv_build" >&6; }
4425 case $ac_cv_build in
4426 *-*-*) ;;
4427 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4428 esac
4429 build=$ac_cv_build
4430 ac_save_IFS=$IFS; IFS='-'
4431 set x $ac_cv_build
4432 shift
4433 build_cpu=$1
4434 build_vendor=$2
4435 shift; shift
4436 # Remember, the first character of IFS is used to create $*,
4437 # except with old shells:
4438 build_os=$*
4439 IFS=$ac_save_IFS
4440 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4441
4442
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4444 $as_echo_n "checking host system type... " >&6; }
4445 if ${ac_cv_host+:} false; then :
4446 $as_echo_n "(cached) " >&6
4447 else
4448 if test "x$host_alias" = x; then
4449 ac_cv_host=$ac_cv_build
4450 else
4451 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4452 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4453 fi
4454
4455 fi
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4457 $as_echo "$ac_cv_host" >&6; }
4458 case $ac_cv_host in
4459 *-*-*) ;;
4460 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4461 esac
4462 host=$ac_cv_host
4463 ac_save_IFS=$IFS; IFS='-'
4464 set x $ac_cv_host
4465 shift
4466 host_cpu=$1
4467 host_vendor=$2
4468 shift; shift
4469 # Remember, the first character of IFS is used to create $*,
4470 # except with old shells:
4471 host_os=$*
4472 IFS=$ac_save_IFS
4473 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4474
4475
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4477 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4478 if ${ac_cv_path_SED+:} false; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4482 for ac_i in 1 2 3 4 5 6 7; do
4483 ac_script="$ac_script$as_nl$ac_script"
4484 done
4485 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4486 { ac_script=; unset ac_script;}
4487 if test -z "$SED"; then
4488 ac_path_SED_found=false
4489 # Loop through the user's path and test for each of PROGNAME-LIST
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH
4492 do
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_prog in sed gsed; do
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4498 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4499 # Check for GNU ac_path_SED and select it if it is found.
4500 # Check for GNU $ac_path_SED
4501 case `"$ac_path_SED" --version 2>&1` in
4502 *GNU*)
4503 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4504 *)
4505 ac_count=0
4506 $as_echo_n 0123456789 >"conftest.in"
4507 while :
4508 do
4509 cat "conftest.in" "conftest.in" >"conftest.tmp"
4510 mv "conftest.tmp" "conftest.in"
4511 cp "conftest.in" "conftest.nl"
4512 $as_echo '' >> "conftest.nl"
4513 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4514 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4515 as_fn_arith $ac_count + 1 && ac_count=$as_val
4516 if test $ac_count -gt ${ac_path_SED_max-0}; then
4517 # Best one so far, save it but keep looking for a better one
4518 ac_cv_path_SED="$ac_path_SED"
4519 ac_path_SED_max=$ac_count
4520 fi
4521 # 10*(2^10) chars as input seems more than enough
4522 test $ac_count -gt 10 && break
4523 done
4524 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4525 esac
4526
4527 $ac_path_SED_found && break 3
4528 done
4529 done
4530 done
4531 IFS=$as_save_IFS
4532 if test -z "$ac_cv_path_SED"; then
4533 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4534 fi
4535 else
4536 ac_cv_path_SED=$SED
4537 fi
4538
4539 fi
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4541 $as_echo "$ac_cv_path_SED" >&6; }
4542 SED="$ac_cv_path_SED"
4543 rm -f conftest.sed
4544
4545
4546
4547
4548
4549
4550 # Check whether --enable-selective-werror was given.
4551 if test "${enable_selective_werror+set}" = set; then :
4552 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4553 else
4554 SELECTIVE_WERROR=yes
4555 fi
4556
4557
4558
4559
4560
4561 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4562 if test "x$SUNCC" = "xyes"; then
4563 BASE_CFLAGS="-v"
4564 else
4565 BASE_CFLAGS=""
4566 fi
4567
4568 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582 xorg_testset_save_CFLAGS="$CFLAGS"
4583
4584 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4587 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4588 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4589 $as_echo_n "(cached) " >&6
4590 else
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593 int i;
4594 _ACEOF
4595 if ac_fn_c_try_compile "$LINENO"; then :
4596 xorg_cv_cc_flag_unknown_warning_option=yes
4597 else
4598 xorg_cv_cc_flag_unknown_warning_option=no
4599 fi
4600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4601 fi
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4603 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4604 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4605 CFLAGS="$xorg_testset_save_CFLAGS"
4606 fi
4607
4608 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4611 fi
4612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4614 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4615 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4620 int i;
4621 _ACEOF
4622 if ac_fn_c_try_compile "$LINENO"; then :
4623 xorg_cv_cc_flag_unused_command_line_argument=yes
4624 else
4625 xorg_cv_cc_flag_unused_command_line_argument=no
4626 fi
4627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628 fi
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4630 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4631 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4632 CFLAGS="$xorg_testset_save_CFLAGS"
4633 fi
4634
4635 found="no"
4636
4637 if test $found = "no" ; then
4638 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4640 fi
4641
4642 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4644 fi
4645
4646 CFLAGS="$CFLAGS -Wall"
4647
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4649 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4650 cacheid=xorg_cv_cc_flag__Wall
4651 if eval \${$cacheid+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4656 int i;
4657 int
4658 main ()
4659 {
4660
4661 ;
4662 return 0;
4663 }
4664 _ACEOF
4665 if ac_fn_c_try_link "$LINENO"; then :
4666 eval $cacheid=yes
4667 else
4668 eval $cacheid=no
4669 fi
4670 rm -f core conftest.err conftest.$ac_objext \
4671 conftest$ac_exeext conftest.$ac_ext
4672 fi
4673
4674
4675 CFLAGS="$xorg_testset_save_CFLAGS"
4676
4677 eval supported=\$$cacheid
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4679 $as_echo "$supported" >&6; }
4680 if test "$supported" = "yes" ; then
4681 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4682 found="yes"
4683 fi
4684 fi
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700 xorg_testset_save_CFLAGS="$CFLAGS"
4701
4702 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4705 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4706 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4707 $as_echo_n "(cached) " >&6
4708 else
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h. */
4711 int i;
4712 _ACEOF
4713 if ac_fn_c_try_compile "$LINENO"; then :
4714 xorg_cv_cc_flag_unknown_warning_option=yes
4715 else
4716 xorg_cv_cc_flag_unknown_warning_option=no
4717 fi
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 fi
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4721 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4722 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4723 CFLAGS="$xorg_testset_save_CFLAGS"
4724 fi
4725
4726 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4729 fi
4730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4732 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4733 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4738 int i;
4739 _ACEOF
4740 if ac_fn_c_try_compile "$LINENO"; then :
4741 xorg_cv_cc_flag_unused_command_line_argument=yes
4742 else
4743 xorg_cv_cc_flag_unused_command_line_argument=no
4744 fi
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 fi
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4748 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4749 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4750 CFLAGS="$xorg_testset_save_CFLAGS"
4751 fi
4752
4753 found="no"
4754
4755 if test $found = "no" ; then
4756 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4758 fi
4759
4760 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4762 fi
4763
4764 CFLAGS="$CFLAGS -Wpointer-arith"
4765
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4767 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4768 cacheid=xorg_cv_cc_flag__Wpointer_arith
4769 if eval \${$cacheid+:} false; then :
4770 $as_echo_n "(cached) " >&6
4771 else
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4774 int i;
4775 int
4776 main ()
4777 {
4778
4779 ;
4780 return 0;
4781 }
4782 _ACEOF
4783 if ac_fn_c_try_link "$LINENO"; then :
4784 eval $cacheid=yes
4785 else
4786 eval $cacheid=no
4787 fi
4788 rm -f core conftest.err conftest.$ac_objext \
4789 conftest$ac_exeext conftest.$ac_ext
4790 fi
4791
4792
4793 CFLAGS="$xorg_testset_save_CFLAGS"
4794
4795 eval supported=\$$cacheid
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4797 $as_echo "$supported" >&6; }
4798 if test "$supported" = "yes" ; then
4799 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4800 found="yes"
4801 fi
4802 fi
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818 xorg_testset_save_CFLAGS="$CFLAGS"
4819
4820 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4823 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4824 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4825 $as_echo_n "(cached) " >&6
4826 else
4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h. */
4829 int i;
4830 _ACEOF
4831 if ac_fn_c_try_compile "$LINENO"; then :
4832 xorg_cv_cc_flag_unknown_warning_option=yes
4833 else
4834 xorg_cv_cc_flag_unknown_warning_option=no
4835 fi
4836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837 fi
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4839 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4840 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4841 CFLAGS="$xorg_testset_save_CFLAGS"
4842 fi
4843
4844 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4847 fi
4848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4850 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4851 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4852 $as_echo_n "(cached) " >&6
4853 else
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4856 int i;
4857 _ACEOF
4858 if ac_fn_c_try_compile "$LINENO"; then :
4859 xorg_cv_cc_flag_unused_command_line_argument=yes
4860 else
4861 xorg_cv_cc_flag_unused_command_line_argument=no
4862 fi
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864 fi
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4866 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4868 CFLAGS="$xorg_testset_save_CFLAGS"
4869 fi
4870
4871 found="no"
4872
4873 if test $found = "no" ; then
4874 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4876 fi
4877
4878 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4880 fi
4881
4882 CFLAGS="$CFLAGS -Wmissing-declarations"
4883
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4885 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4886 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4887 if eval \${$cacheid+:} false; then :
4888 $as_echo_n "(cached) " >&6
4889 else
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4892 int i;
4893 int
4894 main ()
4895 {
4896
4897 ;
4898 return 0;
4899 }
4900 _ACEOF
4901 if ac_fn_c_try_link "$LINENO"; then :
4902 eval $cacheid=yes
4903 else
4904 eval $cacheid=no
4905 fi
4906 rm -f core conftest.err conftest.$ac_objext \
4907 conftest$ac_exeext conftest.$ac_ext
4908 fi
4909
4910
4911 CFLAGS="$xorg_testset_save_CFLAGS"
4912
4913 eval supported=\$$cacheid
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4915 $as_echo "$supported" >&6; }
4916 if test "$supported" = "yes" ; then
4917 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4918 found="yes"
4919 fi
4920 fi
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936 xorg_testset_save_CFLAGS="$CFLAGS"
4937
4938 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4941 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4942 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4943 $as_echo_n "(cached) " >&6
4944 else
4945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h. */
4947 int i;
4948 _ACEOF
4949 if ac_fn_c_try_compile "$LINENO"; then :
4950 xorg_cv_cc_flag_unknown_warning_option=yes
4951 else
4952 xorg_cv_cc_flag_unknown_warning_option=no
4953 fi
4954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955 fi
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4957 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4958 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4959 CFLAGS="$xorg_testset_save_CFLAGS"
4960 fi
4961
4962 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4965 fi
4966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4968 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4969 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4970 $as_echo_n "(cached) " >&6
4971 else
4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973 /* end confdefs.h. */
4974 int i;
4975 _ACEOF
4976 if ac_fn_c_try_compile "$LINENO"; then :
4977 xorg_cv_cc_flag_unused_command_line_argument=yes
4978 else
4979 xorg_cv_cc_flag_unused_command_line_argument=no
4980 fi
4981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4982 fi
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4984 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4985 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4986 CFLAGS="$xorg_testset_save_CFLAGS"
4987 fi
4988
4989 found="no"
4990
4991 if test $found = "no" ; then
4992 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4994 fi
4995
4996 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4998 fi
4999
5000 CFLAGS="$CFLAGS -Wformat=2"
5001
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5003 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5004 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5005 if eval \${$cacheid+:} false; then :
5006 $as_echo_n "(cached) " >&6
5007 else
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5010 int i;
5011 int
5012 main ()
5013 {
5014
5015 ;
5016 return 0;
5017 }
5018 _ACEOF
5019 if ac_fn_c_try_link "$LINENO"; then :
5020 eval $cacheid=yes
5021 else
5022 eval $cacheid=no
5023 fi
5024 rm -f core conftest.err conftest.$ac_objext \
5025 conftest$ac_exeext conftest.$ac_ext
5026 fi
5027
5028
5029 CFLAGS="$xorg_testset_save_CFLAGS"
5030
5031 eval supported=\$$cacheid
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5033 $as_echo "$supported" >&6; }
5034 if test "$supported" = "yes" ; then
5035 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5036 found="yes"
5037 fi
5038 fi
5039
5040 if test $found = "no" ; then
5041 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5043 fi
5044
5045 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5047 fi
5048
5049 CFLAGS="$CFLAGS -Wformat"
5050
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5052 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5053 cacheid=xorg_cv_cc_flag__Wformat
5054 if eval \${$cacheid+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058 /* end confdefs.h. */
5059 int i;
5060 int
5061 main ()
5062 {
5063
5064 ;
5065 return 0;
5066 }
5067 _ACEOF
5068 if ac_fn_c_try_link "$LINENO"; then :
5069 eval $cacheid=yes
5070 else
5071 eval $cacheid=no
5072 fi
5073 rm -f core conftest.err conftest.$ac_objext \
5074 conftest$ac_exeext conftest.$ac_ext
5075 fi
5076
5077
5078 CFLAGS="$xorg_testset_save_CFLAGS"
5079
5080 eval supported=\$$cacheid
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5082 $as_echo "$supported" >&6; }
5083 if test "$supported" = "yes" ; then
5084 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5085 found="yes"
5086 fi
5087 fi
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105 xorg_testset_save_CFLAGS="$CFLAGS"
5106
5107 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5110 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5111 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5116 int i;
5117 _ACEOF
5118 if ac_fn_c_try_compile "$LINENO"; then :
5119 xorg_cv_cc_flag_unknown_warning_option=yes
5120 else
5121 xorg_cv_cc_flag_unknown_warning_option=no
5122 fi
5123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5124 fi
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5126 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5127 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5128 CFLAGS="$xorg_testset_save_CFLAGS"
5129 fi
5130
5131 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5134 fi
5135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5137 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5138 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5139 $as_echo_n "(cached) " >&6
5140 else
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5143 int i;
5144 _ACEOF
5145 if ac_fn_c_try_compile "$LINENO"; then :
5146 xorg_cv_cc_flag_unused_command_line_argument=yes
5147 else
5148 xorg_cv_cc_flag_unused_command_line_argument=no
5149 fi
5150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5151 fi
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5153 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5154 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5155 CFLAGS="$xorg_testset_save_CFLAGS"
5156 fi
5157
5158 found="no"
5159
5160 if test $found = "no" ; then
5161 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5163 fi
5164
5165 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5167 fi
5168
5169 CFLAGS="$CFLAGS -Wstrict-prototypes"
5170
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5172 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5173 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5174 if eval \${$cacheid+:} false; then :
5175 $as_echo_n "(cached) " >&6
5176 else
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5179 int i;
5180 int
5181 main ()
5182 {
5183
5184 ;
5185 return 0;
5186 }
5187 _ACEOF
5188 if ac_fn_c_try_link "$LINENO"; then :
5189 eval $cacheid=yes
5190 else
5191 eval $cacheid=no
5192 fi
5193 rm -f core conftest.err conftest.$ac_objext \
5194 conftest$ac_exeext conftest.$ac_ext
5195 fi
5196
5197
5198 CFLAGS="$xorg_testset_save_CFLAGS"
5199
5200 eval supported=\$$cacheid
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5202 $as_echo "$supported" >&6; }
5203 if test "$supported" = "yes" ; then
5204 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5205 found="yes"
5206 fi
5207 fi
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223 xorg_testset_save_CFLAGS="$CFLAGS"
5224
5225 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5228 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5229 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5234 int i;
5235 _ACEOF
5236 if ac_fn_c_try_compile "$LINENO"; then :
5237 xorg_cv_cc_flag_unknown_warning_option=yes
5238 else
5239 xorg_cv_cc_flag_unknown_warning_option=no
5240 fi
5241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242 fi
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5244 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5245 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5246 CFLAGS="$xorg_testset_save_CFLAGS"
5247 fi
5248
5249 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5252 fi
5253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5255 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5256 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5257 $as_echo_n "(cached) " >&6
5258 else
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5261 int i;
5262 _ACEOF
5263 if ac_fn_c_try_compile "$LINENO"; then :
5264 xorg_cv_cc_flag_unused_command_line_argument=yes
5265 else
5266 xorg_cv_cc_flag_unused_command_line_argument=no
5267 fi
5268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5269 fi
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5271 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5272 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5273 CFLAGS="$xorg_testset_save_CFLAGS"
5274 fi
5275
5276 found="no"
5277
5278 if test $found = "no" ; then
5279 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5281 fi
5282
5283 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5285 fi
5286
5287 CFLAGS="$CFLAGS -Wmissing-prototypes"
5288
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5290 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5291 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5292 if eval \${$cacheid+:} false; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5297 int i;
5298 int
5299 main ()
5300 {
5301
5302 ;
5303 return 0;
5304 }
5305 _ACEOF
5306 if ac_fn_c_try_link "$LINENO"; then :
5307 eval $cacheid=yes
5308 else
5309 eval $cacheid=no
5310 fi
5311 rm -f core conftest.err conftest.$ac_objext \
5312 conftest$ac_exeext conftest.$ac_ext
5313 fi
5314
5315
5316 CFLAGS="$xorg_testset_save_CFLAGS"
5317
5318 eval supported=\$$cacheid
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5320 $as_echo "$supported" >&6; }
5321 if test "$supported" = "yes" ; then
5322 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5323 found="yes"
5324 fi
5325 fi
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341 xorg_testset_save_CFLAGS="$CFLAGS"
5342
5343 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5346 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5347 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5352 int i;
5353 _ACEOF
5354 if ac_fn_c_try_compile "$LINENO"; then :
5355 xorg_cv_cc_flag_unknown_warning_option=yes
5356 else
5357 xorg_cv_cc_flag_unknown_warning_option=no
5358 fi
5359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360 fi
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5362 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5363 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5364 CFLAGS="$xorg_testset_save_CFLAGS"
5365 fi
5366
5367 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5370 fi
5371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5373 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5374 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5375 $as_echo_n "(cached) " >&6
5376 else
5377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h. */
5379 int i;
5380 _ACEOF
5381 if ac_fn_c_try_compile "$LINENO"; then :
5382 xorg_cv_cc_flag_unused_command_line_argument=yes
5383 else
5384 xorg_cv_cc_flag_unused_command_line_argument=no
5385 fi
5386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387 fi
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5389 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5390 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5391 CFLAGS="$xorg_testset_save_CFLAGS"
5392 fi
5393
5394 found="no"
5395
5396 if test $found = "no" ; then
5397 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5399 fi
5400
5401 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5403 fi
5404
5405 CFLAGS="$CFLAGS -Wnested-externs"
5406
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5408 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5409 cacheid=xorg_cv_cc_flag__Wnested_externs
5410 if eval \${$cacheid+:} false; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5415 int i;
5416 int
5417 main ()
5418 {
5419
5420 ;
5421 return 0;
5422 }
5423 _ACEOF
5424 if ac_fn_c_try_link "$LINENO"; then :
5425 eval $cacheid=yes
5426 else
5427 eval $cacheid=no
5428 fi
5429 rm -f core conftest.err conftest.$ac_objext \
5430 conftest$ac_exeext conftest.$ac_ext
5431 fi
5432
5433
5434 CFLAGS="$xorg_testset_save_CFLAGS"
5435
5436 eval supported=\$$cacheid
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5438 $as_echo "$supported" >&6; }
5439 if test "$supported" = "yes" ; then
5440 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5441 found="yes"
5442 fi
5443 fi
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459 xorg_testset_save_CFLAGS="$CFLAGS"
5460
5461 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5464 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5465 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5466 $as_echo_n "(cached) " >&6
5467 else
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5470 int i;
5471 _ACEOF
5472 if ac_fn_c_try_compile "$LINENO"; then :
5473 xorg_cv_cc_flag_unknown_warning_option=yes
5474 else
5475 xorg_cv_cc_flag_unknown_warning_option=no
5476 fi
5477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478 fi
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5480 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5482 CFLAGS="$xorg_testset_save_CFLAGS"
5483 fi
5484
5485 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5488 fi
5489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5491 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5492 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h. */
5497 int i;
5498 _ACEOF
5499 if ac_fn_c_try_compile "$LINENO"; then :
5500 xorg_cv_cc_flag_unused_command_line_argument=yes
5501 else
5502 xorg_cv_cc_flag_unused_command_line_argument=no
5503 fi
5504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505 fi
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5507 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5509 CFLAGS="$xorg_testset_save_CFLAGS"
5510 fi
5511
5512 found="no"
5513
5514 if test $found = "no" ; then
5515 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5517 fi
5518
5519 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5521 fi
5522
5523 CFLAGS="$CFLAGS -Wbad-function-cast"
5524
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5526 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5527 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5528 if eval \${$cacheid+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5533 int i;
5534 int
5535 main ()
5536 {
5537
5538 ;
5539 return 0;
5540 }
5541 _ACEOF
5542 if ac_fn_c_try_link "$LINENO"; then :
5543 eval $cacheid=yes
5544 else
5545 eval $cacheid=no
5546 fi
5547 rm -f core conftest.err conftest.$ac_objext \
5548 conftest$ac_exeext conftest.$ac_ext
5549 fi
5550
5551
5552 CFLAGS="$xorg_testset_save_CFLAGS"
5553
5554 eval supported=\$$cacheid
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5556 $as_echo "$supported" >&6; }
5557 if test "$supported" = "yes" ; then
5558 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5559 found="yes"
5560 fi
5561 fi
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577 xorg_testset_save_CFLAGS="$CFLAGS"
5578
5579 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5582 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5583 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5584 $as_echo_n "(cached) " >&6
5585 else
5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h. */
5588 int i;
5589 _ACEOF
5590 if ac_fn_c_try_compile "$LINENO"; then :
5591 xorg_cv_cc_flag_unknown_warning_option=yes
5592 else
5593 xorg_cv_cc_flag_unknown_warning_option=no
5594 fi
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 fi
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5598 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5600 CFLAGS="$xorg_testset_save_CFLAGS"
5601 fi
5602
5603 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5606 fi
5607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5609 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5610 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5611 $as_echo_n "(cached) " >&6
5612 else
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615 int i;
5616 _ACEOF
5617 if ac_fn_c_try_compile "$LINENO"; then :
5618 xorg_cv_cc_flag_unused_command_line_argument=yes
5619 else
5620 xorg_cv_cc_flag_unused_command_line_argument=no
5621 fi
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 fi
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5625 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5627 CFLAGS="$xorg_testset_save_CFLAGS"
5628 fi
5629
5630 found="no"
5631
5632 if test $found = "no" ; then
5633 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5635 fi
5636
5637 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5639 fi
5640
5641 CFLAGS="$CFLAGS -Wold-style-definition"
5642
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5644 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5645 cacheid=xorg_cv_cc_flag__Wold_style_definition
5646 if eval \${$cacheid+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648 else
5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650 /* end confdefs.h. */
5651 int i;
5652 int
5653 main ()
5654 {
5655
5656 ;
5657 return 0;
5658 }
5659 _ACEOF
5660 if ac_fn_c_try_link "$LINENO"; then :
5661 eval $cacheid=yes
5662 else
5663 eval $cacheid=no
5664 fi
5665 rm -f core conftest.err conftest.$ac_objext \
5666 conftest$ac_exeext conftest.$ac_ext
5667 fi
5668
5669
5670 CFLAGS="$xorg_testset_save_CFLAGS"
5671
5672 eval supported=\$$cacheid
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5674 $as_echo "$supported" >&6; }
5675 if test "$supported" = "yes" ; then
5676 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5677 found="yes"
5678 fi
5679 fi
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695 xorg_testset_save_CFLAGS="$CFLAGS"
5696
5697 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5700 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5701 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5702 $as_echo_n "(cached) " >&6
5703 else
5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705 /* end confdefs.h. */
5706 int i;
5707 _ACEOF
5708 if ac_fn_c_try_compile "$LINENO"; then :
5709 xorg_cv_cc_flag_unknown_warning_option=yes
5710 else
5711 xorg_cv_cc_flag_unknown_warning_option=no
5712 fi
5713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 fi
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5716 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5718 CFLAGS="$xorg_testset_save_CFLAGS"
5719 fi
5720
5721 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5724 fi
5725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5727 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5728 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h. */
5733 int i;
5734 _ACEOF
5735 if ac_fn_c_try_compile "$LINENO"; then :
5736 xorg_cv_cc_flag_unused_command_line_argument=yes
5737 else
5738 xorg_cv_cc_flag_unused_command_line_argument=no
5739 fi
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741 fi
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5743 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5745 CFLAGS="$xorg_testset_save_CFLAGS"
5746 fi
5747
5748 found="no"
5749
5750 if test $found = "no" ; then
5751 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5753 fi
5754
5755 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5757 fi
5758
5759 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5760
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5762 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5763 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5764 if eval \${$cacheid+:} false; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5769 int i;
5770 int
5771 main ()
5772 {
5773
5774 ;
5775 return 0;
5776 }
5777 _ACEOF
5778 if ac_fn_c_try_link "$LINENO"; then :
5779 eval $cacheid=yes
5780 else
5781 eval $cacheid=no
5782 fi
5783 rm -f core conftest.err conftest.$ac_objext \
5784 conftest$ac_exeext conftest.$ac_ext
5785 fi
5786
5787
5788 CFLAGS="$xorg_testset_save_CFLAGS"
5789
5790 eval supported=\$$cacheid
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5792 $as_echo "$supported" >&6; }
5793 if test "$supported" = "yes" ; then
5794 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5795 found="yes"
5796 fi
5797 fi
5798
5799
5800
5801
5802
5803 # This chunk adds additional warnings that could catch undesired effects.
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817 xorg_testset_save_CFLAGS="$CFLAGS"
5818
5819 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5822 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5823 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5828 int i;
5829 _ACEOF
5830 if ac_fn_c_try_compile "$LINENO"; then :
5831 xorg_cv_cc_flag_unknown_warning_option=yes
5832 else
5833 xorg_cv_cc_flag_unknown_warning_option=no
5834 fi
5835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836 fi
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5838 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5840 CFLAGS="$xorg_testset_save_CFLAGS"
5841 fi
5842
5843 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5846 fi
5847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5849 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5850 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5855 int i;
5856 _ACEOF
5857 if ac_fn_c_try_compile "$LINENO"; then :
5858 xorg_cv_cc_flag_unused_command_line_argument=yes
5859 else
5860 xorg_cv_cc_flag_unused_command_line_argument=no
5861 fi
5862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863 fi
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5865 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5867 CFLAGS="$xorg_testset_save_CFLAGS"
5868 fi
5869
5870 found="no"
5871
5872 if test $found = "no" ; then
5873 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5875 fi
5876
5877 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5879 fi
5880
5881 CFLAGS="$CFLAGS -Wunused"
5882
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5884 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5885 cacheid=xorg_cv_cc_flag__Wunused
5886 if eval \${$cacheid+:} false; then :
5887 $as_echo_n "(cached) " >&6
5888 else
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5891 int i;
5892 int
5893 main ()
5894 {
5895
5896 ;
5897 return 0;
5898 }
5899 _ACEOF
5900 if ac_fn_c_try_link "$LINENO"; then :
5901 eval $cacheid=yes
5902 else
5903 eval $cacheid=no
5904 fi
5905 rm -f core conftest.err conftest.$ac_objext \
5906 conftest$ac_exeext conftest.$ac_ext
5907 fi
5908
5909
5910 CFLAGS="$xorg_testset_save_CFLAGS"
5911
5912 eval supported=\$$cacheid
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5914 $as_echo "$supported" >&6; }
5915 if test "$supported" = "yes" ; then
5916 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5917 found="yes"
5918 fi
5919 fi
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935 xorg_testset_save_CFLAGS="$CFLAGS"
5936
5937 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5940 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5941 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945 /* end confdefs.h. */
5946 int i;
5947 _ACEOF
5948 if ac_fn_c_try_compile "$LINENO"; then :
5949 xorg_cv_cc_flag_unknown_warning_option=yes
5950 else
5951 xorg_cv_cc_flag_unknown_warning_option=no
5952 fi
5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 fi
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5956 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5958 CFLAGS="$xorg_testset_save_CFLAGS"
5959 fi
5960
5961 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5964 fi
5965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5967 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5968 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
5977 else
5978 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
5983 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5985 CFLAGS="$xorg_testset_save_CFLAGS"
5986 fi
5987
5988 found="no"
5989
5990 if test $found = "no" ; then
5991 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5993 fi
5994
5995 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5997 fi
5998
5999 CFLAGS="$CFLAGS -Wuninitialized"
6000
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6002 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6003 cacheid=xorg_cv_cc_flag__Wuninitialized
6004 if eval \${$cacheid+:} false; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6009 int i;
6010 int
6011 main ()
6012 {
6013
6014 ;
6015 return 0;
6016 }
6017 _ACEOF
6018 if ac_fn_c_try_link "$LINENO"; then :
6019 eval $cacheid=yes
6020 else
6021 eval $cacheid=no
6022 fi
6023 rm -f core conftest.err conftest.$ac_objext \
6024 conftest$ac_exeext conftest.$ac_ext
6025 fi
6026
6027
6028 CFLAGS="$xorg_testset_save_CFLAGS"
6029
6030 eval supported=\$$cacheid
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6032 $as_echo "$supported" >&6; }
6033 if test "$supported" = "yes" ; then
6034 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6035 found="yes"
6036 fi
6037 fi
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053 xorg_testset_save_CFLAGS="$CFLAGS"
6054
6055 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6058 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6059 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h. */
6064 int i;
6065 _ACEOF
6066 if ac_fn_c_try_compile "$LINENO"; then :
6067 xorg_cv_cc_flag_unknown_warning_option=yes
6068 else
6069 xorg_cv_cc_flag_unknown_warning_option=no
6070 fi
6071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072 fi
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6074 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6076 CFLAGS="$xorg_testset_save_CFLAGS"
6077 fi
6078
6079 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6082 fi
6083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6085 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6086 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
6095 else
6096 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
6101 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6103 CFLAGS="$xorg_testset_save_CFLAGS"
6104 fi
6105
6106 found="no"
6107
6108 if test $found = "no" ; then
6109 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6111 fi
6112
6113 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6115 fi
6116
6117 CFLAGS="$CFLAGS -Wshadow"
6118
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6120 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6121 cacheid=xorg_cv_cc_flag__Wshadow
6122 if eval \${$cacheid+:} false; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6127 int i;
6128 int
6129 main ()
6130 {
6131
6132 ;
6133 return 0;
6134 }
6135 _ACEOF
6136 if ac_fn_c_try_link "$LINENO"; then :
6137 eval $cacheid=yes
6138 else
6139 eval $cacheid=no
6140 fi
6141 rm -f core conftest.err conftest.$ac_objext \
6142 conftest$ac_exeext conftest.$ac_ext
6143 fi
6144
6145
6146 CFLAGS="$xorg_testset_save_CFLAGS"
6147
6148 eval supported=\$$cacheid
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6150 $as_echo "$supported" >&6; }
6151 if test "$supported" = "yes" ; then
6152 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6153 found="yes"
6154 fi
6155 fi
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171 xorg_testset_save_CFLAGS="$CFLAGS"
6172
6173 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6176 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6177 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6178 $as_echo_n "(cached) " >&6
6179 else
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6182 int i;
6183 _ACEOF
6184 if ac_fn_c_try_compile "$LINENO"; then :
6185 xorg_cv_cc_flag_unknown_warning_option=yes
6186 else
6187 xorg_cv_cc_flag_unknown_warning_option=no
6188 fi
6189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6190 fi
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6192 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6194 CFLAGS="$xorg_testset_save_CFLAGS"
6195 fi
6196
6197 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6200 fi
6201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6203 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6204 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
6213 else
6214 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
6219 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6221 CFLAGS="$xorg_testset_save_CFLAGS"
6222 fi
6223
6224 found="no"
6225
6226 if test $found = "no" ; then
6227 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6229 fi
6230
6231 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6233 fi
6234
6235 CFLAGS="$CFLAGS -Wcast-qual"
6236
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6238 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6239 cacheid=xorg_cv_cc_flag__Wcast_qual
6240 if eval \${$cacheid+:} false; then :
6241 $as_echo_n "(cached) " >&6
6242 else
6243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6245 int i;
6246 int
6247 main ()
6248 {
6249
6250 ;
6251 return 0;
6252 }
6253 _ACEOF
6254 if ac_fn_c_try_link "$LINENO"; then :
6255 eval $cacheid=yes
6256 else
6257 eval $cacheid=no
6258 fi
6259 rm -f core conftest.err conftest.$ac_objext \
6260 conftest$ac_exeext conftest.$ac_ext
6261 fi
6262
6263
6264 CFLAGS="$xorg_testset_save_CFLAGS"
6265
6266 eval supported=\$$cacheid
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6268 $as_echo "$supported" >&6; }
6269 if test "$supported" = "yes" ; then
6270 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6271 found="yes"
6272 fi
6273 fi
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289 xorg_testset_save_CFLAGS="$CFLAGS"
6290
6291 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6294 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6295 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6300 int i;
6301 _ACEOF
6302 if ac_fn_c_try_compile "$LINENO"; then :
6303 xorg_cv_cc_flag_unknown_warning_option=yes
6304 else
6305 xorg_cv_cc_flag_unknown_warning_option=no
6306 fi
6307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308 fi
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6310 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6311 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6312 CFLAGS="$xorg_testset_save_CFLAGS"
6313 fi
6314
6315 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6318 fi
6319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6321 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6322 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
6331 else
6332 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
6337 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6338 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6339 CFLAGS="$xorg_testset_save_CFLAGS"
6340 fi
6341
6342 found="no"
6343
6344 if test $found = "no" ; then
6345 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6347 fi
6348
6349 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6351 fi
6352
6353 CFLAGS="$CFLAGS -Wmissing-noreturn"
6354
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6356 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6357 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6358 if eval \${$cacheid+:} false; then :
6359 $as_echo_n "(cached) " >&6
6360 else
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6363 int i;
6364 int
6365 main ()
6366 {
6367
6368 ;
6369 return 0;
6370 }
6371 _ACEOF
6372 if ac_fn_c_try_link "$LINENO"; then :
6373 eval $cacheid=yes
6374 else
6375 eval $cacheid=no
6376 fi
6377 rm -f core conftest.err conftest.$ac_objext \
6378 conftest$ac_exeext conftest.$ac_ext
6379 fi
6380
6381
6382 CFLAGS="$xorg_testset_save_CFLAGS"
6383
6384 eval supported=\$$cacheid
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6386 $as_echo "$supported" >&6; }
6387 if test "$supported" = "yes" ; then
6388 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6389 found="yes"
6390 fi
6391 fi
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407 xorg_testset_save_CFLAGS="$CFLAGS"
6408
6409 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6412 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6413 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417 /* end confdefs.h. */
6418 int i;
6419 _ACEOF
6420 if ac_fn_c_try_compile "$LINENO"; then :
6421 xorg_cv_cc_flag_unknown_warning_option=yes
6422 else
6423 xorg_cv_cc_flag_unknown_warning_option=no
6424 fi
6425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6426 fi
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6428 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6430 CFLAGS="$xorg_testset_save_CFLAGS"
6431 fi
6432
6433 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6436 fi
6437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6439 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6440 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
6449 else
6450 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
6455 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6456 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6457 CFLAGS="$xorg_testset_save_CFLAGS"
6458 fi
6459
6460 found="no"
6461
6462 if test $found = "no" ; then
6463 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6465 fi
6466
6467 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6469 fi
6470
6471 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6472
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6474 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6475 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6476 if eval \${$cacheid+:} false; then :
6477 $as_echo_n "(cached) " >&6
6478 else
6479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6480 /* end confdefs.h. */
6481 int i;
6482 int
6483 main ()
6484 {
6485
6486 ;
6487 return 0;
6488 }
6489 _ACEOF
6490 if ac_fn_c_try_link "$LINENO"; then :
6491 eval $cacheid=yes
6492 else
6493 eval $cacheid=no
6494 fi
6495 rm -f core conftest.err conftest.$ac_objext \
6496 conftest$ac_exeext conftest.$ac_ext
6497 fi
6498
6499
6500 CFLAGS="$xorg_testset_save_CFLAGS"
6501
6502 eval supported=\$$cacheid
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6504 $as_echo "$supported" >&6; }
6505 if test "$supported" = "yes" ; then
6506 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6507 found="yes"
6508 fi
6509 fi
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525 xorg_testset_save_CFLAGS="$CFLAGS"
6526
6527 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6530 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6531 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6532 $as_echo_n "(cached) " >&6
6533 else
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6536 int i;
6537 _ACEOF
6538 if ac_fn_c_try_compile "$LINENO"; then :
6539 xorg_cv_cc_flag_unknown_warning_option=yes
6540 else
6541 xorg_cv_cc_flag_unknown_warning_option=no
6542 fi
6543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544 fi
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6546 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6547 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6548 CFLAGS="$xorg_testset_save_CFLAGS"
6549 fi
6550
6551 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6554 fi
6555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6557 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6558 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
6567 else
6568 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
6573 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6575 CFLAGS="$xorg_testset_save_CFLAGS"
6576 fi
6577
6578 found="no"
6579
6580 if test $found = "no" ; then
6581 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6583 fi
6584
6585 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6587 fi
6588
6589 CFLAGS="$CFLAGS -Wredundant-decls"
6590
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6592 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6593 cacheid=xorg_cv_cc_flag__Wredundant_decls
6594 if eval \${$cacheid+:} false; then :
6595 $as_echo_n "(cached) " >&6
6596 else
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6599 int i;
6600 int
6601 main ()
6602 {
6603
6604 ;
6605 return 0;
6606 }
6607 _ACEOF
6608 if ac_fn_c_try_link "$LINENO"; then :
6609 eval $cacheid=yes
6610 else
6611 eval $cacheid=no
6612 fi
6613 rm -f core conftest.err conftest.$ac_objext \
6614 conftest$ac_exeext conftest.$ac_ext
6615 fi
6616
6617
6618 CFLAGS="$xorg_testset_save_CFLAGS"
6619
6620 eval supported=\$$cacheid
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6622 $as_echo "$supported" >&6; }
6623 if test "$supported" = "yes" ; then
6624 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6625 found="yes"
6626 fi
6627 fi
6628
6629
6630
6631 # These are currently disabled because they are noisy. They will be enabled
6632 # in the future once the codebase is sufficiently modernized to silence
6633 # them. For now, I don't want them to drown out the other warnings.
6634 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6635 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6636 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6637
6638 # Turn some warnings into errors, so we don't accidently get successful builds
6639 # when there are problems that should be fixed.
6640
6641 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655 xorg_testset_save_CFLAGS="$CFLAGS"
6656
6657 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6660 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6661 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6662 $as_echo_n "(cached) " >&6
6663 else
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6666 int i;
6667 _ACEOF
6668 if ac_fn_c_try_compile "$LINENO"; then :
6669 xorg_cv_cc_flag_unknown_warning_option=yes
6670 else
6671 xorg_cv_cc_flag_unknown_warning_option=no
6672 fi
6673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6674 fi
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6676 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6677 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6678 CFLAGS="$xorg_testset_save_CFLAGS"
6679 fi
6680
6681 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6684 fi
6685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6687 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6688 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6689 $as_echo_n "(cached) " >&6
6690 else
6691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692 /* end confdefs.h. */
6693 int i;
6694 _ACEOF
6695 if ac_fn_c_try_compile "$LINENO"; then :
6696 xorg_cv_cc_flag_unused_command_line_argument=yes
6697 else
6698 xorg_cv_cc_flag_unused_command_line_argument=no
6699 fi
6700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6701 fi
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6703 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6705 CFLAGS="$xorg_testset_save_CFLAGS"
6706 fi
6707
6708 found="no"
6709
6710 if test $found = "no" ; then
6711 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6713 fi
6714
6715 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6717 fi
6718
6719 CFLAGS="$CFLAGS -Werror=implicit"
6720
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6722 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6723 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6724 if eval \${$cacheid+:} false; then :
6725 $as_echo_n "(cached) " >&6
6726 else
6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h. */
6729 int i;
6730 int
6731 main ()
6732 {
6733
6734 ;
6735 return 0;
6736 }
6737 _ACEOF
6738 if ac_fn_c_try_link "$LINENO"; then :
6739 eval $cacheid=yes
6740 else
6741 eval $cacheid=no
6742 fi
6743 rm -f core conftest.err conftest.$ac_objext \
6744 conftest$ac_exeext conftest.$ac_ext
6745 fi
6746
6747
6748 CFLAGS="$xorg_testset_save_CFLAGS"
6749
6750 eval supported=\$$cacheid
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6752 $as_echo "$supported" >&6; }
6753 if test "$supported" = "yes" ; then
6754 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6755 found="yes"
6756 fi
6757 fi
6758
6759 if test $found = "no" ; then
6760 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6762 fi
6763
6764 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6766 fi
6767
6768 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6769
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6771 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6772 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6773 if eval \${$cacheid+:} false; then :
6774 $as_echo_n "(cached) " >&6
6775 else
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6778 int i;
6779 int
6780 main ()
6781 {
6782
6783 ;
6784 return 0;
6785 }
6786 _ACEOF
6787 if ac_fn_c_try_link "$LINENO"; then :
6788 eval $cacheid=yes
6789 else
6790 eval $cacheid=no
6791 fi
6792 rm -f core conftest.err conftest.$ac_objext \
6793 conftest$ac_exeext conftest.$ac_ext
6794 fi
6795
6796
6797 CFLAGS="$xorg_testset_save_CFLAGS"
6798
6799 eval supported=\$$cacheid
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6801 $as_echo "$supported" >&6; }
6802 if test "$supported" = "yes" ; then
6803 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6804 found="yes"
6805 fi
6806 fi
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822 xorg_testset_save_CFLAGS="$CFLAGS"
6823
6824 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6827 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6828 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h. */
6833 int i;
6834 _ACEOF
6835 if ac_fn_c_try_compile "$LINENO"; then :
6836 xorg_cv_cc_flag_unknown_warning_option=yes
6837 else
6838 xorg_cv_cc_flag_unknown_warning_option=no
6839 fi
6840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6841 fi
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6843 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6845 CFLAGS="$xorg_testset_save_CFLAGS"
6846 fi
6847
6848 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6851 fi
6852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6854 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6855 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6856 $as_echo_n "(cached) " >&6
6857 else
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6860 int i;
6861 _ACEOF
6862 if ac_fn_c_try_compile "$LINENO"; then :
6863 xorg_cv_cc_flag_unused_command_line_argument=yes
6864 else
6865 xorg_cv_cc_flag_unused_command_line_argument=no
6866 fi
6867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6868 fi
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6870 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6872 CFLAGS="$xorg_testset_save_CFLAGS"
6873 fi
6874
6875 found="no"
6876
6877 if test $found = "no" ; then
6878 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6880 fi
6881
6882 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6884 fi
6885
6886 CFLAGS="$CFLAGS -Werror=nonnull"
6887
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6889 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6890 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6891 if eval \${$cacheid+:} false; then :
6892 $as_echo_n "(cached) " >&6
6893 else
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6896 int i;
6897 int
6898 main ()
6899 {
6900
6901 ;
6902 return 0;
6903 }
6904 _ACEOF
6905 if ac_fn_c_try_link "$LINENO"; then :
6906 eval $cacheid=yes
6907 else
6908 eval $cacheid=no
6909 fi
6910 rm -f core conftest.err conftest.$ac_objext \
6911 conftest$ac_exeext conftest.$ac_ext
6912 fi
6913
6914
6915 CFLAGS="$xorg_testset_save_CFLAGS"
6916
6917 eval supported=\$$cacheid
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6919 $as_echo "$supported" >&6; }
6920 if test "$supported" = "yes" ; then
6921 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6922 found="yes"
6923 fi
6924 fi
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940 xorg_testset_save_CFLAGS="$CFLAGS"
6941
6942 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6945 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6946 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6947 $as_echo_n "(cached) " >&6
6948 else
6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h. */
6951 int i;
6952 _ACEOF
6953 if ac_fn_c_try_compile "$LINENO"; then :
6954 xorg_cv_cc_flag_unknown_warning_option=yes
6955 else
6956 xorg_cv_cc_flag_unknown_warning_option=no
6957 fi
6958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6959 fi
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6961 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6963 CFLAGS="$xorg_testset_save_CFLAGS"
6964 fi
6965
6966 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6969 fi
6970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6972 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6973 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
6982 else
6983 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
6988 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6990 CFLAGS="$xorg_testset_save_CFLAGS"
6991 fi
6992
6993 found="no"
6994
6995 if test $found = "no" ; then
6996 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6998 fi
6999
7000 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7002 fi
7003
7004 CFLAGS="$CFLAGS -Werror=init-self"
7005
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7007 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7008 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7009 if eval \${$cacheid+:} false; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7014 int i;
7015 int
7016 main ()
7017 {
7018
7019 ;
7020 return 0;
7021 }
7022 _ACEOF
7023 if ac_fn_c_try_link "$LINENO"; then :
7024 eval $cacheid=yes
7025 else
7026 eval $cacheid=no
7027 fi
7028 rm -f core conftest.err conftest.$ac_objext \
7029 conftest$ac_exeext conftest.$ac_ext
7030 fi
7031
7032
7033 CFLAGS="$xorg_testset_save_CFLAGS"
7034
7035 eval supported=\$$cacheid
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7037 $as_echo "$supported" >&6; }
7038 if test "$supported" = "yes" ; then
7039 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7040 found="yes"
7041 fi
7042 fi
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058 xorg_testset_save_CFLAGS="$CFLAGS"
7059
7060 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7063 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7064 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h. */
7069 int i;
7070 _ACEOF
7071 if ac_fn_c_try_compile "$LINENO"; then :
7072 xorg_cv_cc_flag_unknown_warning_option=yes
7073 else
7074 xorg_cv_cc_flag_unknown_warning_option=no
7075 fi
7076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7077 fi
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7079 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7081 CFLAGS="$xorg_testset_save_CFLAGS"
7082 fi
7083
7084 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7087 fi
7088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7090 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7091 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
7100 else
7101 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
7106 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7108 CFLAGS="$xorg_testset_save_CFLAGS"
7109 fi
7110
7111 found="no"
7112
7113 if test $found = "no" ; then
7114 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7116 fi
7117
7118 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7120 fi
7121
7122 CFLAGS="$CFLAGS -Werror=main"
7123
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7125 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7126 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7127 if eval \${$cacheid+:} false; then :
7128 $as_echo_n "(cached) " >&6
7129 else
7130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7131 /* end confdefs.h. */
7132 int i;
7133 int
7134 main ()
7135 {
7136
7137 ;
7138 return 0;
7139 }
7140 _ACEOF
7141 if ac_fn_c_try_link "$LINENO"; then :
7142 eval $cacheid=yes
7143 else
7144 eval $cacheid=no
7145 fi
7146 rm -f core conftest.err conftest.$ac_objext \
7147 conftest$ac_exeext conftest.$ac_ext
7148 fi
7149
7150
7151 CFLAGS="$xorg_testset_save_CFLAGS"
7152
7153 eval supported=\$$cacheid
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7155 $as_echo "$supported" >&6; }
7156 if test "$supported" = "yes" ; then
7157 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7158 found="yes"
7159 fi
7160 fi
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176 xorg_testset_save_CFLAGS="$CFLAGS"
7177
7178 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7181 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7182 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7187 int i;
7188 _ACEOF
7189 if ac_fn_c_try_compile "$LINENO"; then :
7190 xorg_cv_cc_flag_unknown_warning_option=yes
7191 else
7192 xorg_cv_cc_flag_unknown_warning_option=no
7193 fi
7194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7195 fi
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7197 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7199 CFLAGS="$xorg_testset_save_CFLAGS"
7200 fi
7201
7202 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7205 fi
7206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7208 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7209 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
7218 else
7219 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
7224 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7226 CFLAGS="$xorg_testset_save_CFLAGS"
7227 fi
7228
7229 found="no"
7230
7231 if test $found = "no" ; then
7232 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7234 fi
7235
7236 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7238 fi
7239
7240 CFLAGS="$CFLAGS -Werror=missing-braces"
7241
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7243 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7244 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7245 if eval \${$cacheid+:} false; then :
7246 $as_echo_n "(cached) " >&6
7247 else
7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h. */
7250 int i;
7251 int
7252 main ()
7253 {
7254
7255 ;
7256 return 0;
7257 }
7258 _ACEOF
7259 if ac_fn_c_try_link "$LINENO"; then :
7260 eval $cacheid=yes
7261 else
7262 eval $cacheid=no
7263 fi
7264 rm -f core conftest.err conftest.$ac_objext \
7265 conftest$ac_exeext conftest.$ac_ext
7266 fi
7267
7268
7269 CFLAGS="$xorg_testset_save_CFLAGS"
7270
7271 eval supported=\$$cacheid
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7273 $as_echo "$supported" >&6; }
7274 if test "$supported" = "yes" ; then
7275 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7276 found="yes"
7277 fi
7278 fi
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294 xorg_testset_save_CFLAGS="$CFLAGS"
7295
7296 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7299 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7300 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7301 $as_echo_n "(cached) " >&6
7302 else
7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h. */
7305 int i;
7306 _ACEOF
7307 if ac_fn_c_try_compile "$LINENO"; then :
7308 xorg_cv_cc_flag_unknown_warning_option=yes
7309 else
7310 xorg_cv_cc_flag_unknown_warning_option=no
7311 fi
7312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7313 fi
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7315 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7317 CFLAGS="$xorg_testset_save_CFLAGS"
7318 fi
7319
7320 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7323 fi
7324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7326 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7327 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
7336 else
7337 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
7342 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7344 CFLAGS="$xorg_testset_save_CFLAGS"
7345 fi
7346
7347 found="no"
7348
7349 if test $found = "no" ; then
7350 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7352 fi
7353
7354 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7356 fi
7357
7358 CFLAGS="$CFLAGS -Werror=sequence-point"
7359
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7361 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7362 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7363 if eval \${$cacheid+:} false; then :
7364 $as_echo_n "(cached) " >&6
7365 else
7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h. */
7368 int i;
7369 int
7370 main ()
7371 {
7372
7373 ;
7374 return 0;
7375 }
7376 _ACEOF
7377 if ac_fn_c_try_link "$LINENO"; then :
7378 eval $cacheid=yes
7379 else
7380 eval $cacheid=no
7381 fi
7382 rm -f core conftest.err conftest.$ac_objext \
7383 conftest$ac_exeext conftest.$ac_ext
7384 fi
7385
7386
7387 CFLAGS="$xorg_testset_save_CFLAGS"
7388
7389 eval supported=\$$cacheid
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7391 $as_echo "$supported" >&6; }
7392 if test "$supported" = "yes" ; then
7393 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7394 found="yes"
7395 fi
7396 fi
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412 xorg_testset_save_CFLAGS="$CFLAGS"
7413
7414 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7417 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7418 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7419 $as_echo_n "(cached) " >&6
7420 else
7421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h. */
7423 int i;
7424 _ACEOF
7425 if ac_fn_c_try_compile "$LINENO"; then :
7426 xorg_cv_cc_flag_unknown_warning_option=yes
7427 else
7428 xorg_cv_cc_flag_unknown_warning_option=no
7429 fi
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7431 fi
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7433 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7434 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7435 CFLAGS="$xorg_testset_save_CFLAGS"
7436 fi
7437
7438 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7441 fi
7442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7444 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7445 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
7454 else
7455 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
7460 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7462 CFLAGS="$xorg_testset_save_CFLAGS"
7463 fi
7464
7465 found="no"
7466
7467 if test $found = "no" ; then
7468 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7470 fi
7471
7472 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7474 fi
7475
7476 CFLAGS="$CFLAGS -Werror=return-type"
7477
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7479 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7480 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7481 if eval \${$cacheid+:} false; then :
7482 $as_echo_n "(cached) " >&6
7483 else
7484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7485 /* end confdefs.h. */
7486 int i;
7487 int
7488 main ()
7489 {
7490
7491 ;
7492 return 0;
7493 }
7494 _ACEOF
7495 if ac_fn_c_try_link "$LINENO"; then :
7496 eval $cacheid=yes
7497 else
7498 eval $cacheid=no
7499 fi
7500 rm -f core conftest.err conftest.$ac_objext \
7501 conftest$ac_exeext conftest.$ac_ext
7502 fi
7503
7504
7505 CFLAGS="$xorg_testset_save_CFLAGS"
7506
7507 eval supported=\$$cacheid
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7509 $as_echo "$supported" >&6; }
7510 if test "$supported" = "yes" ; then
7511 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7512 found="yes"
7513 fi
7514 fi
7515
7516 if test $found = "no" ; then
7517 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7519 fi
7520
7521 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7523 fi
7524
7525 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7526
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7528 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7529 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7530 if eval \${$cacheid+:} false; then :
7531 $as_echo_n "(cached) " >&6
7532 else
7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h. */
7535 int i;
7536 int
7537 main ()
7538 {
7539
7540 ;
7541 return 0;
7542 }
7543 _ACEOF
7544 if ac_fn_c_try_link "$LINENO"; then :
7545 eval $cacheid=yes
7546 else
7547 eval $cacheid=no
7548 fi
7549 rm -f core conftest.err conftest.$ac_objext \
7550 conftest$ac_exeext conftest.$ac_ext
7551 fi
7552
7553
7554 CFLAGS="$xorg_testset_save_CFLAGS"
7555
7556 eval supported=\$$cacheid
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7558 $as_echo "$supported" >&6; }
7559 if test "$supported" = "yes" ; then
7560 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7561 found="yes"
7562 fi
7563 fi
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579 xorg_testset_save_CFLAGS="$CFLAGS"
7580
7581 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7584 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7585 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7590 int i;
7591 _ACEOF
7592 if ac_fn_c_try_compile "$LINENO"; then :
7593 xorg_cv_cc_flag_unknown_warning_option=yes
7594 else
7595 xorg_cv_cc_flag_unknown_warning_option=no
7596 fi
7597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598 fi
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7600 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7602 CFLAGS="$xorg_testset_save_CFLAGS"
7603 fi
7604
7605 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7608 fi
7609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7611 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7612 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7613 $as_echo_n "(cached) " >&6
7614 else
7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h. */
7617 int i;
7618 _ACEOF
7619 if ac_fn_c_try_compile "$LINENO"; then :
7620 xorg_cv_cc_flag_unused_command_line_argument=yes
7621 else
7622 xorg_cv_cc_flag_unused_command_line_argument=no
7623 fi
7624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625 fi
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7627 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7629 CFLAGS="$xorg_testset_save_CFLAGS"
7630 fi
7631
7632 found="no"
7633
7634 if test $found = "no" ; then
7635 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7637 fi
7638
7639 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7641 fi
7642
7643 CFLAGS="$CFLAGS -Werror=trigraphs"
7644
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7646 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7647 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7648 if eval \${$cacheid+:} false; then :
7649 $as_echo_n "(cached) " >&6
7650 else
7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h. */
7653 int i;
7654 int
7655 main ()
7656 {
7657
7658 ;
7659 return 0;
7660 }
7661 _ACEOF
7662 if ac_fn_c_try_link "$LINENO"; then :
7663 eval $cacheid=yes
7664 else
7665 eval $cacheid=no
7666 fi
7667 rm -f core conftest.err conftest.$ac_objext \
7668 conftest$ac_exeext conftest.$ac_ext
7669 fi
7670
7671
7672 CFLAGS="$xorg_testset_save_CFLAGS"
7673
7674 eval supported=\$$cacheid
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7676 $as_echo "$supported" >&6; }
7677 if test "$supported" = "yes" ; then
7678 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7679 found="yes"
7680 fi
7681 fi
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697 xorg_testset_save_CFLAGS="$CFLAGS"
7698
7699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7702 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7703 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7704 $as_echo_n "(cached) " >&6
7705 else
7706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707 /* end confdefs.h. */
7708 int i;
7709 _ACEOF
7710 if ac_fn_c_try_compile "$LINENO"; then :
7711 xorg_cv_cc_flag_unknown_warning_option=yes
7712 else
7713 xorg_cv_cc_flag_unknown_warning_option=no
7714 fi
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716 fi
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7718 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7720 CFLAGS="$xorg_testset_save_CFLAGS"
7721 fi
7722
7723 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7726 fi
7727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7729 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7730 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
7739 else
7740 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
7745 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7747 CFLAGS="$xorg_testset_save_CFLAGS"
7748 fi
7749
7750 found="no"
7751
7752 if test $found = "no" ; then
7753 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7755 fi
7756
7757 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7759 fi
7760
7761 CFLAGS="$CFLAGS -Werror=array-bounds"
7762
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7764 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7765 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7766 if eval \${$cacheid+:} false; then :
7767 $as_echo_n "(cached) " >&6
7768 else
7769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7770 /* end confdefs.h. */
7771 int i;
7772 int
7773 main ()
7774 {
7775
7776 ;
7777 return 0;
7778 }
7779 _ACEOF
7780 if ac_fn_c_try_link "$LINENO"; then :
7781 eval $cacheid=yes
7782 else
7783 eval $cacheid=no
7784 fi
7785 rm -f core conftest.err conftest.$ac_objext \
7786 conftest$ac_exeext conftest.$ac_ext
7787 fi
7788
7789
7790 CFLAGS="$xorg_testset_save_CFLAGS"
7791
7792 eval supported=\$$cacheid
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7794 $as_echo "$supported" >&6; }
7795 if test "$supported" = "yes" ; then
7796 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7797 found="yes"
7798 fi
7799 fi
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815 xorg_testset_save_CFLAGS="$CFLAGS"
7816
7817 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7820 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7821 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7826 int i;
7827 _ACEOF
7828 if ac_fn_c_try_compile "$LINENO"; then :
7829 xorg_cv_cc_flag_unknown_warning_option=yes
7830 else
7831 xorg_cv_cc_flag_unknown_warning_option=no
7832 fi
7833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7834 fi
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7836 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7838 CFLAGS="$xorg_testset_save_CFLAGS"
7839 fi
7840
7841 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7844 fi
7845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7847 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7848 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
7857 else
7858 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
7863 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7865 CFLAGS="$xorg_testset_save_CFLAGS"
7866 fi
7867
7868 found="no"
7869
7870 if test $found = "no" ; then
7871 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7873 fi
7874
7875 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7877 fi
7878
7879 CFLAGS="$CFLAGS -Werror=write-strings"
7880
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7882 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7883 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7884 if eval \${$cacheid+:} false; then :
7885 $as_echo_n "(cached) " >&6
7886 else
7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h. */
7889 int i;
7890 int
7891 main ()
7892 {
7893
7894 ;
7895 return 0;
7896 }
7897 _ACEOF
7898 if ac_fn_c_try_link "$LINENO"; then :
7899 eval $cacheid=yes
7900 else
7901 eval $cacheid=no
7902 fi
7903 rm -f core conftest.err conftest.$ac_objext \
7904 conftest$ac_exeext conftest.$ac_ext
7905 fi
7906
7907
7908 CFLAGS="$xorg_testset_save_CFLAGS"
7909
7910 eval supported=\$$cacheid
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7912 $as_echo "$supported" >&6; }
7913 if test "$supported" = "yes" ; then
7914 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7915 found="yes"
7916 fi
7917 fi
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933 xorg_testset_save_CFLAGS="$CFLAGS"
7934
7935 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7938 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7939 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7940 $as_echo_n "(cached) " >&6
7941 else
7942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943 /* end confdefs.h. */
7944 int i;
7945 _ACEOF
7946 if ac_fn_c_try_compile "$LINENO"; then :
7947 xorg_cv_cc_flag_unknown_warning_option=yes
7948 else
7949 xorg_cv_cc_flag_unknown_warning_option=no
7950 fi
7951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7952 fi
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7954 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7956 CFLAGS="$xorg_testset_save_CFLAGS"
7957 fi
7958
7959 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7962 fi
7963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7965 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7966 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
7975 else
7976 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
7981 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7983 CFLAGS="$xorg_testset_save_CFLAGS"
7984 fi
7985
7986 found="no"
7987
7988 if test $found = "no" ; then
7989 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7991 fi
7992
7993 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7995 fi
7996
7997 CFLAGS="$CFLAGS -Werror=address"
7998
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8000 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8001 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8002 if eval \${$cacheid+:} false; then :
8003 $as_echo_n "(cached) " >&6
8004 else
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8007 int i;
8008 int
8009 main ()
8010 {
8011
8012 ;
8013 return 0;
8014 }
8015 _ACEOF
8016 if ac_fn_c_try_link "$LINENO"; then :
8017 eval $cacheid=yes
8018 else
8019 eval $cacheid=no
8020 fi
8021 rm -f core conftest.err conftest.$ac_objext \
8022 conftest$ac_exeext conftest.$ac_ext
8023 fi
8024
8025
8026 CFLAGS="$xorg_testset_save_CFLAGS"
8027
8028 eval supported=\$$cacheid
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8030 $as_echo "$supported" >&6; }
8031 if test "$supported" = "yes" ; then
8032 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8033 found="yes"
8034 fi
8035 fi
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051 xorg_testset_save_CFLAGS="$CFLAGS"
8052
8053 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8056 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8057 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8058 $as_echo_n "(cached) " >&6
8059 else
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8062 int i;
8063 _ACEOF
8064 if ac_fn_c_try_compile "$LINENO"; then :
8065 xorg_cv_cc_flag_unknown_warning_option=yes
8066 else
8067 xorg_cv_cc_flag_unknown_warning_option=no
8068 fi
8069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070 fi
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8072 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8074 CFLAGS="$xorg_testset_save_CFLAGS"
8075 fi
8076
8077 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8080 fi
8081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8083 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8084 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
8093 else
8094 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
8099 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8101 CFLAGS="$xorg_testset_save_CFLAGS"
8102 fi
8103
8104 found="no"
8105
8106 if test $found = "no" ; then
8107 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8109 fi
8110
8111 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8113 fi
8114
8115 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8116
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8118 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8119 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8120 if eval \${$cacheid+:} false; then :
8121 $as_echo_n "(cached) " >&6
8122 else
8123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124 /* end confdefs.h. */
8125 int i;
8126 int
8127 main ()
8128 {
8129
8130 ;
8131 return 0;
8132 }
8133 _ACEOF
8134 if ac_fn_c_try_link "$LINENO"; then :
8135 eval $cacheid=yes
8136 else
8137 eval $cacheid=no
8138 fi
8139 rm -f core conftest.err conftest.$ac_objext \
8140 conftest$ac_exeext conftest.$ac_ext
8141 fi
8142
8143
8144 CFLAGS="$xorg_testset_save_CFLAGS"
8145
8146 eval supported=\$$cacheid
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8148 $as_echo "$supported" >&6; }
8149 if test "$supported" = "yes" ; then
8150 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8151 found="yes"
8152 fi
8153 fi
8154
8155 if test $found = "no" ; then
8156 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8158 fi
8159
8160 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8162 fi
8163
8164 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8165
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8167 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8168 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8169 if eval \${$cacheid+:} false; then :
8170 $as_echo_n "(cached) " >&6
8171 else
8172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8173 /* end confdefs.h. */
8174 int i;
8175 int
8176 main ()
8177 {
8178
8179 ;
8180 return 0;
8181 }
8182 _ACEOF
8183 if ac_fn_c_try_link "$LINENO"; then :
8184 eval $cacheid=yes
8185 else
8186 eval $cacheid=no
8187 fi
8188 rm -f core conftest.err conftest.$ac_objext \
8189 conftest$ac_exeext conftest.$ac_ext
8190 fi
8191
8192
8193 CFLAGS="$xorg_testset_save_CFLAGS"
8194
8195 eval supported=\$$cacheid
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8197 $as_echo "$supported" >&6; }
8198 if test "$supported" = "yes" ; then
8199 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8200 found="yes"
8201 fi
8202 fi
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218 xorg_testset_save_CFLAGS="$CFLAGS"
8219
8220 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8223 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8224 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8225 $as_echo_n "(cached) " >&6
8226 else
8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228 /* end confdefs.h. */
8229 int i;
8230 _ACEOF
8231 if ac_fn_c_try_compile "$LINENO"; then :
8232 xorg_cv_cc_flag_unknown_warning_option=yes
8233 else
8234 xorg_cv_cc_flag_unknown_warning_option=no
8235 fi
8236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8237 fi
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8239 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8241 CFLAGS="$xorg_testset_save_CFLAGS"
8242 fi
8243
8244 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8247 fi
8248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8250 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8251 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8256 int i;
8257 _ACEOF
8258 if ac_fn_c_try_compile "$LINENO"; then :
8259 xorg_cv_cc_flag_unused_command_line_argument=yes
8260 else
8261 xorg_cv_cc_flag_unused_command_line_argument=no
8262 fi
8263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8264 fi
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8266 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8268 CFLAGS="$xorg_testset_save_CFLAGS"
8269 fi
8270
8271 found="no"
8272
8273 if test $found = "no" ; then
8274 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8276 fi
8277
8278 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8280 fi
8281
8282 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8283
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8285 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8286 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8287 if eval \${$cacheid+:} false; then :
8288 $as_echo_n "(cached) " >&6
8289 else
8290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291 /* end confdefs.h. */
8292 int i;
8293 int
8294 main ()
8295 {
8296
8297 ;
8298 return 0;
8299 }
8300 _ACEOF
8301 if ac_fn_c_try_link "$LINENO"; then :
8302 eval $cacheid=yes
8303 else
8304 eval $cacheid=no
8305 fi
8306 rm -f core conftest.err conftest.$ac_objext \
8307 conftest$ac_exeext conftest.$ac_ext
8308 fi
8309
8310
8311 CFLAGS="$xorg_testset_save_CFLAGS"
8312
8313 eval supported=\$$cacheid
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8315 $as_echo "$supported" >&6; }
8316 if test "$supported" = "yes" ; then
8317 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8318 found="yes"
8319 fi
8320 fi
8321
8322 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8323 else
8324 { $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
8325 $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;}
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339 xorg_testset_save_CFLAGS="$CFLAGS"
8340
8341 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8344 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8345 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8346 $as_echo_n "(cached) " >&6
8347 else
8348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8349 /* end confdefs.h. */
8350 int i;
8351 _ACEOF
8352 if ac_fn_c_try_compile "$LINENO"; then :
8353 xorg_cv_cc_flag_unknown_warning_option=yes
8354 else
8355 xorg_cv_cc_flag_unknown_warning_option=no
8356 fi
8357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8358 fi
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8360 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8362 CFLAGS="$xorg_testset_save_CFLAGS"
8363 fi
8364
8365 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8368 fi
8369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8371 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8372 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8373 $as_echo_n "(cached) " >&6
8374 else
8375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8376 /* end confdefs.h. */
8377 int i;
8378 _ACEOF
8379 if ac_fn_c_try_compile "$LINENO"; then :
8380 xorg_cv_cc_flag_unused_command_line_argument=yes
8381 else
8382 xorg_cv_cc_flag_unused_command_line_argument=no
8383 fi
8384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8385 fi
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8387 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8389 CFLAGS="$xorg_testset_save_CFLAGS"
8390 fi
8391
8392 found="no"
8393
8394 if test $found = "no" ; then
8395 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8397 fi
8398
8399 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8401 fi
8402
8403 CFLAGS="$CFLAGS -Wimplicit"
8404
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8406 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8407 cacheid=xorg_cv_cc_flag__Wimplicit
8408 if eval \${$cacheid+:} false; then :
8409 $as_echo_n "(cached) " >&6
8410 else
8411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h. */
8413 int i;
8414 int
8415 main ()
8416 {
8417
8418 ;
8419 return 0;
8420 }
8421 _ACEOF
8422 if ac_fn_c_try_link "$LINENO"; then :
8423 eval $cacheid=yes
8424 else
8425 eval $cacheid=no
8426 fi
8427 rm -f core conftest.err conftest.$ac_objext \
8428 conftest$ac_exeext conftest.$ac_ext
8429 fi
8430
8431
8432 CFLAGS="$xorg_testset_save_CFLAGS"
8433
8434 eval supported=\$$cacheid
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8436 $as_echo "$supported" >&6; }
8437 if test "$supported" = "yes" ; then
8438 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8439 found="yes"
8440 fi
8441 fi
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457 xorg_testset_save_CFLAGS="$CFLAGS"
8458
8459 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8462 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8463 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8464 $as_echo_n "(cached) " >&6
8465 else
8466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467 /* end confdefs.h. */
8468 int i;
8469 _ACEOF
8470 if ac_fn_c_try_compile "$LINENO"; then :
8471 xorg_cv_cc_flag_unknown_warning_option=yes
8472 else
8473 xorg_cv_cc_flag_unknown_warning_option=no
8474 fi
8475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8476 fi
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8478 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8479 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8480 CFLAGS="$xorg_testset_save_CFLAGS"
8481 fi
8482
8483 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8486 fi
8487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8489 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8490 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
8499 else
8500 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
8505 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8506 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8507 CFLAGS="$xorg_testset_save_CFLAGS"
8508 fi
8509
8510 found="no"
8511
8512 if test $found = "no" ; then
8513 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8515 fi
8516
8517 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8519 fi
8520
8521 CFLAGS="$CFLAGS -Wnonnull"
8522
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8524 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8525 cacheid=xorg_cv_cc_flag__Wnonnull
8526 if eval \${$cacheid+:} false; then :
8527 $as_echo_n "(cached) " >&6
8528 else
8529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8530 /* end confdefs.h. */
8531 int i;
8532 int
8533 main ()
8534 {
8535
8536 ;
8537 return 0;
8538 }
8539 _ACEOF
8540 if ac_fn_c_try_link "$LINENO"; then :
8541 eval $cacheid=yes
8542 else
8543 eval $cacheid=no
8544 fi
8545 rm -f core conftest.err conftest.$ac_objext \
8546 conftest$ac_exeext conftest.$ac_ext
8547 fi
8548
8549
8550 CFLAGS="$xorg_testset_save_CFLAGS"
8551
8552 eval supported=\$$cacheid
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8554 $as_echo "$supported" >&6; }
8555 if test "$supported" = "yes" ; then
8556 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8557 found="yes"
8558 fi
8559 fi
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575 xorg_testset_save_CFLAGS="$CFLAGS"
8576
8577 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8580 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8581 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8582 $as_echo_n "(cached) " >&6
8583 else
8584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585 /* end confdefs.h. */
8586 int i;
8587 _ACEOF
8588 if ac_fn_c_try_compile "$LINENO"; then :
8589 xorg_cv_cc_flag_unknown_warning_option=yes
8590 else
8591 xorg_cv_cc_flag_unknown_warning_option=no
8592 fi
8593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594 fi
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8596 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8597 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8598 CFLAGS="$xorg_testset_save_CFLAGS"
8599 fi
8600
8601 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8604 fi
8605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8607 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8608 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
8617 else
8618 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
8623 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8624 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8625 CFLAGS="$xorg_testset_save_CFLAGS"
8626 fi
8627
8628 found="no"
8629
8630 if test $found = "no" ; then
8631 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8633 fi
8634
8635 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8637 fi
8638
8639 CFLAGS="$CFLAGS -Winit-self"
8640
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8642 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8643 cacheid=xorg_cv_cc_flag__Winit_self
8644 if eval \${$cacheid+:} false; then :
8645 $as_echo_n "(cached) " >&6
8646 else
8647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648 /* end confdefs.h. */
8649 int i;
8650 int
8651 main ()
8652 {
8653
8654 ;
8655 return 0;
8656 }
8657 _ACEOF
8658 if ac_fn_c_try_link "$LINENO"; then :
8659 eval $cacheid=yes
8660 else
8661 eval $cacheid=no
8662 fi
8663 rm -f core conftest.err conftest.$ac_objext \
8664 conftest$ac_exeext conftest.$ac_ext
8665 fi
8666
8667
8668 CFLAGS="$xorg_testset_save_CFLAGS"
8669
8670 eval supported=\$$cacheid
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8672 $as_echo "$supported" >&6; }
8673 if test "$supported" = "yes" ; then
8674 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8675 found="yes"
8676 fi
8677 fi
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693 xorg_testset_save_CFLAGS="$CFLAGS"
8694
8695 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8698 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8699 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8700 $as_echo_n "(cached) " >&6
8701 else
8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h. */
8704 int i;
8705 _ACEOF
8706 if ac_fn_c_try_compile "$LINENO"; then :
8707 xorg_cv_cc_flag_unknown_warning_option=yes
8708 else
8709 xorg_cv_cc_flag_unknown_warning_option=no
8710 fi
8711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8712 fi
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8714 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8715 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8716 CFLAGS="$xorg_testset_save_CFLAGS"
8717 fi
8718
8719 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8722 fi
8723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8725 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8726 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
8735 else
8736 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
8741 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8742 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8743 CFLAGS="$xorg_testset_save_CFLAGS"
8744 fi
8745
8746 found="no"
8747
8748 if test $found = "no" ; then
8749 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8751 fi
8752
8753 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8755 fi
8756
8757 CFLAGS="$CFLAGS -Wmain"
8758
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8760 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8761 cacheid=xorg_cv_cc_flag__Wmain
8762 if eval \${$cacheid+:} false; then :
8763 $as_echo_n "(cached) " >&6
8764 else
8765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8766 /* end confdefs.h. */
8767 int i;
8768 int
8769 main ()
8770 {
8771
8772 ;
8773 return 0;
8774 }
8775 _ACEOF
8776 if ac_fn_c_try_link "$LINENO"; then :
8777 eval $cacheid=yes
8778 else
8779 eval $cacheid=no
8780 fi
8781 rm -f core conftest.err conftest.$ac_objext \
8782 conftest$ac_exeext conftest.$ac_ext
8783 fi
8784
8785
8786 CFLAGS="$xorg_testset_save_CFLAGS"
8787
8788 eval supported=\$$cacheid
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8790 $as_echo "$supported" >&6; }
8791 if test "$supported" = "yes" ; then
8792 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8793 found="yes"
8794 fi
8795 fi
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811 xorg_testset_save_CFLAGS="$CFLAGS"
8812
8813 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8816 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8817 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8818 $as_echo_n "(cached) " >&6
8819 else
8820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h. */
8822 int i;
8823 _ACEOF
8824 if ac_fn_c_try_compile "$LINENO"; then :
8825 xorg_cv_cc_flag_unknown_warning_option=yes
8826 else
8827 xorg_cv_cc_flag_unknown_warning_option=no
8828 fi
8829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8830 fi
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8832 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8833 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8834 CFLAGS="$xorg_testset_save_CFLAGS"
8835 fi
8836
8837 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8840 fi
8841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8843 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8844 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
8853 else
8854 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
8859 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8860 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8861 CFLAGS="$xorg_testset_save_CFLAGS"
8862 fi
8863
8864 found="no"
8865
8866 if test $found = "no" ; then
8867 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8869 fi
8870
8871 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8873 fi
8874
8875 CFLAGS="$CFLAGS -Wmissing-braces"
8876
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8878 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8879 cacheid=xorg_cv_cc_flag__Wmissing_braces
8880 if eval \${$cacheid+:} false; then :
8881 $as_echo_n "(cached) " >&6
8882 else
8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h. */
8885 int i;
8886 int
8887 main ()
8888 {
8889
8890 ;
8891 return 0;
8892 }
8893 _ACEOF
8894 if ac_fn_c_try_link "$LINENO"; then :
8895 eval $cacheid=yes
8896 else
8897 eval $cacheid=no
8898 fi
8899 rm -f core conftest.err conftest.$ac_objext \
8900 conftest$ac_exeext conftest.$ac_ext
8901 fi
8902
8903
8904 CFLAGS="$xorg_testset_save_CFLAGS"
8905
8906 eval supported=\$$cacheid
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8908 $as_echo "$supported" >&6; }
8909 if test "$supported" = "yes" ; then
8910 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8911 found="yes"
8912 fi
8913 fi
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929 xorg_testset_save_CFLAGS="$CFLAGS"
8930
8931 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8934 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8935 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8936 $as_echo_n "(cached) " >&6
8937 else
8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939 /* end confdefs.h. */
8940 int i;
8941 _ACEOF
8942 if ac_fn_c_try_compile "$LINENO"; then :
8943 xorg_cv_cc_flag_unknown_warning_option=yes
8944 else
8945 xorg_cv_cc_flag_unknown_warning_option=no
8946 fi
8947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8948 fi
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8950 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8951 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8952 CFLAGS="$xorg_testset_save_CFLAGS"
8953 fi
8954
8955 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8958 fi
8959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8961 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8962 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
8971 else
8972 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
8977 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8978 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8979 CFLAGS="$xorg_testset_save_CFLAGS"
8980 fi
8981
8982 found="no"
8983
8984 if test $found = "no" ; then
8985 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8987 fi
8988
8989 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8991 fi
8992
8993 CFLAGS="$CFLAGS -Wsequence-point"
8994
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8996 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8997 cacheid=xorg_cv_cc_flag__Wsequence_point
8998 if eval \${$cacheid+:} false; then :
8999 $as_echo_n "(cached) " >&6
9000 else
9001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002 /* end confdefs.h. */
9003 int i;
9004 int
9005 main ()
9006 {
9007
9008 ;
9009 return 0;
9010 }
9011 _ACEOF
9012 if ac_fn_c_try_link "$LINENO"; then :
9013 eval $cacheid=yes
9014 else
9015 eval $cacheid=no
9016 fi
9017 rm -f core conftest.err conftest.$ac_objext \
9018 conftest$ac_exeext conftest.$ac_ext
9019 fi
9020
9021
9022 CFLAGS="$xorg_testset_save_CFLAGS"
9023
9024 eval supported=\$$cacheid
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9026 $as_echo "$supported" >&6; }
9027 if test "$supported" = "yes" ; then
9028 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9029 found="yes"
9030 fi
9031 fi
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047 xorg_testset_save_CFLAGS="$CFLAGS"
9048
9049 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9052 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9053 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9054 $as_echo_n "(cached) " >&6
9055 else
9056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9058 int i;
9059 _ACEOF
9060 if ac_fn_c_try_compile "$LINENO"; then :
9061 xorg_cv_cc_flag_unknown_warning_option=yes
9062 else
9063 xorg_cv_cc_flag_unknown_warning_option=no
9064 fi
9065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9066 fi
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9068 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9070 CFLAGS="$xorg_testset_save_CFLAGS"
9071 fi
9072
9073 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9076 fi
9077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9079 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9080 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
9089 else
9090 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
9095 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9097 CFLAGS="$xorg_testset_save_CFLAGS"
9098 fi
9099
9100 found="no"
9101
9102 if test $found = "no" ; then
9103 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9105 fi
9106
9107 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9109 fi
9110
9111 CFLAGS="$CFLAGS -Wreturn-type"
9112
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9114 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9115 cacheid=xorg_cv_cc_flag__Wreturn_type
9116 if eval \${$cacheid+:} false; then :
9117 $as_echo_n "(cached) " >&6
9118 else
9119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9120 /* end confdefs.h. */
9121 int i;
9122 int
9123 main ()
9124 {
9125
9126 ;
9127 return 0;
9128 }
9129 _ACEOF
9130 if ac_fn_c_try_link "$LINENO"; then :
9131 eval $cacheid=yes
9132 else
9133 eval $cacheid=no
9134 fi
9135 rm -f core conftest.err conftest.$ac_objext \
9136 conftest$ac_exeext conftest.$ac_ext
9137 fi
9138
9139
9140 CFLAGS="$xorg_testset_save_CFLAGS"
9141
9142 eval supported=\$$cacheid
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9144 $as_echo "$supported" >&6; }
9145 if test "$supported" = "yes" ; then
9146 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9147 found="yes"
9148 fi
9149 fi
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165 xorg_testset_save_CFLAGS="$CFLAGS"
9166
9167 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9170 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9171 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9172 $as_echo_n "(cached) " >&6
9173 else
9174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9175 /* end confdefs.h. */
9176 int i;
9177 _ACEOF
9178 if ac_fn_c_try_compile "$LINENO"; then :
9179 xorg_cv_cc_flag_unknown_warning_option=yes
9180 else
9181 xorg_cv_cc_flag_unknown_warning_option=no
9182 fi
9183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9184 fi
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9186 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9188 CFLAGS="$xorg_testset_save_CFLAGS"
9189 fi
9190
9191 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9194 fi
9195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9197 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9198 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
9207 else
9208 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
9213 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9215 CFLAGS="$xorg_testset_save_CFLAGS"
9216 fi
9217
9218 found="no"
9219
9220 if test $found = "no" ; then
9221 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9223 fi
9224
9225 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9227 fi
9228
9229 CFLAGS="$CFLAGS -Wtrigraphs"
9230
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9232 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9233 cacheid=xorg_cv_cc_flag__Wtrigraphs
9234 if eval \${$cacheid+:} false; then :
9235 $as_echo_n "(cached) " >&6
9236 else
9237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9238 /* end confdefs.h. */
9239 int i;
9240 int
9241 main ()
9242 {
9243
9244 ;
9245 return 0;
9246 }
9247 _ACEOF
9248 if ac_fn_c_try_link "$LINENO"; then :
9249 eval $cacheid=yes
9250 else
9251 eval $cacheid=no
9252 fi
9253 rm -f core conftest.err conftest.$ac_objext \
9254 conftest$ac_exeext conftest.$ac_ext
9255 fi
9256
9257
9258 CFLAGS="$xorg_testset_save_CFLAGS"
9259
9260 eval supported=\$$cacheid
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9262 $as_echo "$supported" >&6; }
9263 if test "$supported" = "yes" ; then
9264 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9265 found="yes"
9266 fi
9267 fi
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283 xorg_testset_save_CFLAGS="$CFLAGS"
9284
9285 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9288 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9289 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9290 $as_echo_n "(cached) " >&6
9291 else
9292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293 /* end confdefs.h. */
9294 int i;
9295 _ACEOF
9296 if ac_fn_c_try_compile "$LINENO"; then :
9297 xorg_cv_cc_flag_unknown_warning_option=yes
9298 else
9299 xorg_cv_cc_flag_unknown_warning_option=no
9300 fi
9301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9302 fi
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9304 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9306 CFLAGS="$xorg_testset_save_CFLAGS"
9307 fi
9308
9309 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9312 fi
9313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9315 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9316 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
9325 else
9326 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
9331 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9332 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9333 CFLAGS="$xorg_testset_save_CFLAGS"
9334 fi
9335
9336 found="no"
9337
9338 if test $found = "no" ; then
9339 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9341 fi
9342
9343 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9345 fi
9346
9347 CFLAGS="$CFLAGS -Warray-bounds"
9348
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9350 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9351 cacheid=xorg_cv_cc_flag__Warray_bounds
9352 if eval \${$cacheid+:} false; then :
9353 $as_echo_n "(cached) " >&6
9354 else
9355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h. */
9357 int i;
9358 int
9359 main ()
9360 {
9361
9362 ;
9363 return 0;
9364 }
9365 _ACEOF
9366 if ac_fn_c_try_link "$LINENO"; then :
9367 eval $cacheid=yes
9368 else
9369 eval $cacheid=no
9370 fi
9371 rm -f core conftest.err conftest.$ac_objext \
9372 conftest$ac_exeext conftest.$ac_ext
9373 fi
9374
9375
9376 CFLAGS="$xorg_testset_save_CFLAGS"
9377
9378 eval supported=\$$cacheid
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9380 $as_echo "$supported" >&6; }
9381 if test "$supported" = "yes" ; then
9382 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9383 found="yes"
9384 fi
9385 fi
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401 xorg_testset_save_CFLAGS="$CFLAGS"
9402
9403 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9406 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9407 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9408 $as_echo_n "(cached) " >&6
9409 else
9410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9412 int i;
9413 _ACEOF
9414 if ac_fn_c_try_compile "$LINENO"; then :
9415 xorg_cv_cc_flag_unknown_warning_option=yes
9416 else
9417 xorg_cv_cc_flag_unknown_warning_option=no
9418 fi
9419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9420 fi
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9422 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9424 CFLAGS="$xorg_testset_save_CFLAGS"
9425 fi
9426
9427 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9430 fi
9431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9433 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9434 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
9443 else
9444 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
9449 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9451 CFLAGS="$xorg_testset_save_CFLAGS"
9452 fi
9453
9454 found="no"
9455
9456 if test $found = "no" ; then
9457 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9459 fi
9460
9461 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9463 fi
9464
9465 CFLAGS="$CFLAGS -Wwrite-strings"
9466
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9468 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9469 cacheid=xorg_cv_cc_flag__Wwrite_strings
9470 if eval \${$cacheid+:} false; then :
9471 $as_echo_n "(cached) " >&6
9472 else
9473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9474 /* end confdefs.h. */
9475 int i;
9476 int
9477 main ()
9478 {
9479
9480 ;
9481 return 0;
9482 }
9483 _ACEOF
9484 if ac_fn_c_try_link "$LINENO"; then :
9485 eval $cacheid=yes
9486 else
9487 eval $cacheid=no
9488 fi
9489 rm -f core conftest.err conftest.$ac_objext \
9490 conftest$ac_exeext conftest.$ac_ext
9491 fi
9492
9493
9494 CFLAGS="$xorg_testset_save_CFLAGS"
9495
9496 eval supported=\$$cacheid
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9498 $as_echo "$supported" >&6; }
9499 if test "$supported" = "yes" ; then
9500 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9501 found="yes"
9502 fi
9503 fi
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519 xorg_testset_save_CFLAGS="$CFLAGS"
9520
9521 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9524 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9525 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9526 $as_echo_n "(cached) " >&6
9527 else
9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h. */
9530 int i;
9531 _ACEOF
9532 if ac_fn_c_try_compile "$LINENO"; then :
9533 xorg_cv_cc_flag_unknown_warning_option=yes
9534 else
9535 xorg_cv_cc_flag_unknown_warning_option=no
9536 fi
9537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9538 fi
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9540 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9541 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9542 CFLAGS="$xorg_testset_save_CFLAGS"
9543 fi
9544
9545 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9548 fi
9549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9551 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9552 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
9561 else
9562 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
9567 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9568 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9569 CFLAGS="$xorg_testset_save_CFLAGS"
9570 fi
9571
9572 found="no"
9573
9574 if test $found = "no" ; then
9575 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9577 fi
9578
9579 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9581 fi
9582
9583 CFLAGS="$CFLAGS -Waddress"
9584
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9586 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9587 cacheid=xorg_cv_cc_flag__Waddress
9588 if eval \${$cacheid+:} false; then :
9589 $as_echo_n "(cached) " >&6
9590 else
9591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592 /* end confdefs.h. */
9593 int i;
9594 int
9595 main ()
9596 {
9597
9598 ;
9599 return 0;
9600 }
9601 _ACEOF
9602 if ac_fn_c_try_link "$LINENO"; then :
9603 eval $cacheid=yes
9604 else
9605 eval $cacheid=no
9606 fi
9607 rm -f core conftest.err conftest.$ac_objext \
9608 conftest$ac_exeext conftest.$ac_ext
9609 fi
9610
9611
9612 CFLAGS="$xorg_testset_save_CFLAGS"
9613
9614 eval supported=\$$cacheid
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9616 $as_echo "$supported" >&6; }
9617 if test "$supported" = "yes" ; then
9618 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9619 found="yes"
9620 fi
9621 fi
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637 xorg_testset_save_CFLAGS="$CFLAGS"
9638
9639 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9642 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9643 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9644 $as_echo_n "(cached) " >&6
9645 else
9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9648 int i;
9649 _ACEOF
9650 if ac_fn_c_try_compile "$LINENO"; then :
9651 xorg_cv_cc_flag_unknown_warning_option=yes
9652 else
9653 xorg_cv_cc_flag_unknown_warning_option=no
9654 fi
9655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9656 fi
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9658 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9659 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9660 CFLAGS="$xorg_testset_save_CFLAGS"
9661 fi
9662
9663 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9666 fi
9667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9669 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9670 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
9679 else
9680 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
9685 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9687 CFLAGS="$xorg_testset_save_CFLAGS"
9688 fi
9689
9690 found="no"
9691
9692 if test $found = "no" ; then
9693 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9695 fi
9696
9697 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9699 fi
9700
9701 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9702
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9704 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9705 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9706 if eval \${$cacheid+:} false; then :
9707 $as_echo_n "(cached) " >&6
9708 else
9709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9710 /* end confdefs.h. */
9711 int i;
9712 int
9713 main ()
9714 {
9715
9716 ;
9717 return 0;
9718 }
9719 _ACEOF
9720 if ac_fn_c_try_link "$LINENO"; then :
9721 eval $cacheid=yes
9722 else
9723 eval $cacheid=no
9724 fi
9725 rm -f core conftest.err conftest.$ac_objext \
9726 conftest$ac_exeext conftest.$ac_ext
9727 fi
9728
9729
9730 CFLAGS="$xorg_testset_save_CFLAGS"
9731
9732 eval supported=\$$cacheid
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9734 $as_echo "$supported" >&6; }
9735 if test "$supported" = "yes" ; then
9736 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9737 found="yes"
9738 fi
9739 fi
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755 xorg_testset_save_CFLAGS="$CFLAGS"
9756
9757 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9760 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9761 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9762 $as_echo_n "(cached) " >&6
9763 else
9764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765 /* end confdefs.h. */
9766 int i;
9767 _ACEOF
9768 if ac_fn_c_try_compile "$LINENO"; then :
9769 xorg_cv_cc_flag_unknown_warning_option=yes
9770 else
9771 xorg_cv_cc_flag_unknown_warning_option=no
9772 fi
9773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9774 fi
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9776 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9777 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9778 CFLAGS="$xorg_testset_save_CFLAGS"
9779 fi
9780
9781 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9784 fi
9785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9787 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9788 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
9797 else
9798 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
9803 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9804 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9805 CFLAGS="$xorg_testset_save_CFLAGS"
9806 fi
9807
9808 found="no"
9809
9810 if test $found = "no" ; then
9811 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9813 fi
9814
9815 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9817 fi
9818
9819 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9820
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9822 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9823 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9824 if eval \${$cacheid+:} false; then :
9825 $as_echo_n "(cached) " >&6
9826 else
9827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9828 /* end confdefs.h. */
9829 int i;
9830 int
9831 main ()
9832 {
9833
9834 ;
9835 return 0;
9836 }
9837 _ACEOF
9838 if ac_fn_c_try_link "$LINENO"; then :
9839 eval $cacheid=yes
9840 else
9841 eval $cacheid=no
9842 fi
9843 rm -f core conftest.err conftest.$ac_objext \
9844 conftest$ac_exeext conftest.$ac_ext
9845 fi
9846
9847
9848 CFLAGS="$xorg_testset_save_CFLAGS"
9849
9850 eval supported=\$$cacheid
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9852 $as_echo "$supported" >&6; }
9853 if test "$supported" = "yes" ; then
9854 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9855 found="yes"
9856 fi
9857 fi
9858
9859
9860 fi
9861
9862
9863
9864
9865
9866
9867
9868 CWARNFLAGS="$BASE_CFLAGS"
9869 if test "x$GCC" = xyes ; then
9870 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9871 fi
9872
9873
9874
9875
9876
9877
9878
9879
9880 # Check whether --enable-strict-compilation was given.
9881 if test "${enable_strict_compilation+set}" = set; then :
9882 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9883 else
9884 STRICT_COMPILE=no
9885 fi
9886
9887
9888
9889
9890
9891
9892 STRICT_CFLAGS=""
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906 xorg_testset_save_CFLAGS="$CFLAGS"
9907
9908 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9911 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9912 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9913 $as_echo_n "(cached) " >&6
9914 else
9915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916 /* end confdefs.h. */
9917 int i;
9918 _ACEOF
9919 if ac_fn_c_try_compile "$LINENO"; then :
9920 xorg_cv_cc_flag_unknown_warning_option=yes
9921 else
9922 xorg_cv_cc_flag_unknown_warning_option=no
9923 fi
9924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9925 fi
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9927 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9928 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9929 CFLAGS="$xorg_testset_save_CFLAGS"
9930 fi
9931
9932 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9935 fi
9936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9938 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9939 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9940 $as_echo_n "(cached) " >&6
9941 else
9942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9943 /* end confdefs.h. */
9944 int i;
9945 _ACEOF
9946 if ac_fn_c_try_compile "$LINENO"; then :
9947 xorg_cv_cc_flag_unused_command_line_argument=yes
9948 else
9949 xorg_cv_cc_flag_unused_command_line_argument=no
9950 fi
9951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9952 fi
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9954 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9955 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9956 CFLAGS="$xorg_testset_save_CFLAGS"
9957 fi
9958
9959 found="no"
9960
9961 if test $found = "no" ; then
9962 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9964 fi
9965
9966 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9968 fi
9969
9970 CFLAGS="$CFLAGS -pedantic"
9971
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9973 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9974 cacheid=xorg_cv_cc_flag__pedantic
9975 if eval \${$cacheid+:} false; then :
9976 $as_echo_n "(cached) " >&6
9977 else
9978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9979 /* end confdefs.h. */
9980 int i;
9981 int
9982 main ()
9983 {
9984
9985 ;
9986 return 0;
9987 }
9988 _ACEOF
9989 if ac_fn_c_try_link "$LINENO"; then :
9990 eval $cacheid=yes
9991 else
9992 eval $cacheid=no
9993 fi
9994 rm -f core conftest.err conftest.$ac_objext \
9995 conftest$ac_exeext conftest.$ac_ext
9996 fi
9997
9998
9999 CFLAGS="$xorg_testset_save_CFLAGS"
10000
10001 eval supported=\$$cacheid
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10003 $as_echo "$supported" >&6; }
10004 if test "$supported" = "yes" ; then
10005 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10006 found="yes"
10007 fi
10008 fi
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024 xorg_testset_save_CFLAGS="$CFLAGS"
10025
10026 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10029 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10030 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10031 $as_echo_n "(cached) " >&6
10032 else
10033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10034 /* end confdefs.h. */
10035 int i;
10036 _ACEOF
10037 if ac_fn_c_try_compile "$LINENO"; then :
10038 xorg_cv_cc_flag_unknown_warning_option=yes
10039 else
10040 xorg_cv_cc_flag_unknown_warning_option=no
10041 fi
10042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10043 fi
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10045 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10046 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10047 CFLAGS="$xorg_testset_save_CFLAGS"
10048 fi
10049
10050 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10053 fi
10054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10056 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10057 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
10066 else
10067 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
10072 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10073 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10074 CFLAGS="$xorg_testset_save_CFLAGS"
10075 fi
10076
10077 found="no"
10078
10079 if test $found = "no" ; then
10080 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10082 fi
10083
10084 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10086 fi
10087
10088 CFLAGS="$CFLAGS -Werror"
10089
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10091 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10092 cacheid=xorg_cv_cc_flag__Werror
10093 if eval \${$cacheid+:} false; then :
10094 $as_echo_n "(cached) " >&6
10095 else
10096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10097 /* end confdefs.h. */
10098 int i;
10099 int
10100 main ()
10101 {
10102
10103 ;
10104 return 0;
10105 }
10106 _ACEOF
10107 if ac_fn_c_try_link "$LINENO"; then :
10108 eval $cacheid=yes
10109 else
10110 eval $cacheid=no
10111 fi
10112 rm -f core conftest.err conftest.$ac_objext \
10113 conftest$ac_exeext conftest.$ac_ext
10114 fi
10115
10116
10117 CFLAGS="$xorg_testset_save_CFLAGS"
10118
10119 eval supported=\$$cacheid
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10121 $as_echo "$supported" >&6; }
10122 if test "$supported" = "yes" ; then
10123 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10124 found="yes"
10125 fi
10126 fi
10127
10128 if test $found = "no" ; then
10129 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10131 fi
10132
10133 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10135 fi
10136
10137 CFLAGS="$CFLAGS -errwarn"
10138
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10140 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10141 cacheid=xorg_cv_cc_flag__errwarn
10142 if eval \${$cacheid+:} false; then :
10143 $as_echo_n "(cached) " >&6
10144 else
10145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h. */
10147 int i;
10148 int
10149 main ()
10150 {
10151
10152 ;
10153 return 0;
10154 }
10155 _ACEOF
10156 if ac_fn_c_try_link "$LINENO"; then :
10157 eval $cacheid=yes
10158 else
10159 eval $cacheid=no
10160 fi
10161 rm -f core conftest.err conftest.$ac_objext \
10162 conftest$ac_exeext conftest.$ac_ext
10163 fi
10164
10165
10166 CFLAGS="$xorg_testset_save_CFLAGS"
10167
10168 eval supported=\$$cacheid
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10170 $as_echo "$supported" >&6; }
10171 if test "$supported" = "yes" ; then
10172 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10173 found="yes"
10174 fi
10175 fi
10176
10177
10178
10179 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10180 # activate it with -Werror, so we add it here explicitly.
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194 xorg_testset_save_CFLAGS="$CFLAGS"
10195
10196 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10199 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10200 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10201 $as_echo_n "(cached) " >&6
10202 else
10203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204 /* end confdefs.h. */
10205 int i;
10206 _ACEOF
10207 if ac_fn_c_try_compile "$LINENO"; then :
10208 xorg_cv_cc_flag_unknown_warning_option=yes
10209 else
10210 xorg_cv_cc_flag_unknown_warning_option=no
10211 fi
10212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10213 fi
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10215 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10217 CFLAGS="$xorg_testset_save_CFLAGS"
10218 fi
10219
10220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10223 fi
10224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10226 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10227 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10228 $as_echo_n "(cached) " >&6
10229 else
10230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10231 /* end confdefs.h. */
10232 int i;
10233 _ACEOF
10234 if ac_fn_c_try_compile "$LINENO"; then :
10235 xorg_cv_cc_flag_unused_command_line_argument=yes
10236 else
10237 xorg_cv_cc_flag_unused_command_line_argument=no
10238 fi
10239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10240 fi
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10242 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10243 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10244 CFLAGS="$xorg_testset_save_CFLAGS"
10245 fi
10246
10247 found="no"
10248
10249 if test $found = "no" ; then
10250 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10252 fi
10253
10254 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10256 fi
10257
10258 CFLAGS="$CFLAGS -Werror=attributes"
10259
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10261 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10262 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10263 if eval \${$cacheid+:} false; then :
10264 $as_echo_n "(cached) " >&6
10265 else
10266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10267 /* end confdefs.h. */
10268 int i;
10269 int
10270 main ()
10271 {
10272
10273 ;
10274 return 0;
10275 }
10276 _ACEOF
10277 if ac_fn_c_try_link "$LINENO"; then :
10278 eval $cacheid=yes
10279 else
10280 eval $cacheid=no
10281 fi
10282 rm -f core conftest.err conftest.$ac_objext \
10283 conftest$ac_exeext conftest.$ac_ext
10284 fi
10285
10286
10287 CFLAGS="$xorg_testset_save_CFLAGS"
10288
10289 eval supported=\$$cacheid
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10291 $as_echo "$supported" >&6; }
10292 if test "$supported" = "yes" ; then
10293 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10294 found="yes"
10295 fi
10296 fi
10297
10298
10299
10300 if test "x$STRICT_COMPILE" = "xyes"; then
10301 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10302 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10303 fi
10304
10305
10306
10307
10308
10309
10310 cat >>confdefs.h <<_ACEOF
10311 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10312 _ACEOF
10313
10314 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10315 if test "x$PVM" = "x"; then
10316 PVM="0"
10317 fi
10318
10319 cat >>confdefs.h <<_ACEOF
10320 #define PACKAGE_VERSION_MINOR $PVM
10321 _ACEOF
10322
10323 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10324 if test "x$PVP" = "x"; then
10325 PVP="0"
10326 fi
10327
10328 cat >>confdefs.h <<_ACEOF
10329 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10330 _ACEOF
10331
10332
10333
10334 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10335 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10336 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10337 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10338
10339
10340
10341
10342 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10343 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10344 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10345 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10346 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10347
10348
10349
10350
10351
10352
10353 if test x$APP_MAN_SUFFIX = x ; then
10354 APP_MAN_SUFFIX=1
10355 fi
10356 if test x$APP_MAN_DIR = x ; then
10357 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10358 fi
10359
10360 if test x$LIB_MAN_SUFFIX = x ; then
10361 LIB_MAN_SUFFIX=3
10362 fi
10363 if test x$LIB_MAN_DIR = x ; then
10364 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10365 fi
10366
10367 if test x$FILE_MAN_SUFFIX = x ; then
10368 case $host_os in
10369 solaris*) FILE_MAN_SUFFIX=4 ;;
10370 *) FILE_MAN_SUFFIX=5 ;;
10371 esac
10372 fi
10373 if test x$FILE_MAN_DIR = x ; then
10374 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10375 fi
10376
10377 if test x$MISC_MAN_SUFFIX = x ; then
10378 case $host_os in
10379 solaris*) MISC_MAN_SUFFIX=5 ;;
10380 *) MISC_MAN_SUFFIX=7 ;;
10381 esac
10382 fi
10383 if test x$MISC_MAN_DIR = x ; then
10384 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10385 fi
10386
10387 if test x$DRIVER_MAN_SUFFIX = x ; then
10388 case $host_os in
10389 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10390 *) DRIVER_MAN_SUFFIX=4 ;;
10391 esac
10392 fi
10393 if test x$DRIVER_MAN_DIR = x ; then
10394 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10395 fi
10396
10397 if test x$ADMIN_MAN_SUFFIX = x ; then
10398 case $host_os in
10399 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10400 *) ADMIN_MAN_SUFFIX=8 ;;
10401 esac
10402 fi
10403 if test x$ADMIN_MAN_DIR = x ; then
10404 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10405 fi
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421 XORG_MAN_PAGE="X Version 11"
10422
10423 MAN_SUBSTS="\
10424 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10425 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10426 -e 's|__xservername__|Xorg|g' \
10427 -e 's|__xconfigfile__|xorg.conf|g' \
10428 -e 's|__projectroot__|\$(prefix)|g' \
10429 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10430 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10431 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10432 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10433 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10434 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10435 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10436
10437
10438
10439 # Check whether --enable-silent-rules was given.
10440 if test "${enable_silent_rules+set}" = set; then :
10441 enableval=$enable_silent_rules;
10442 fi
10443
10444 case $enable_silent_rules in
10445 yes) AM_DEFAULT_VERBOSITY=0;;
10446 no) AM_DEFAULT_VERBOSITY=1;;
10447 *) AM_DEFAULT_VERBOSITY=0;;
10448 esac
10449 AM_BACKSLASH='\'
10450
10451
10452
10453
10454 # Check whether --enable-docs was given.
10455 if test "${enable_docs+set}" = set; then :
10456 enableval=$enable_docs; build_docs=$enableval
10457 else
10458 build_docs=yes
10459 fi
10460
10461
10462 if test x$build_docs = xyes; then
10463 ENABLE_DOCS_TRUE=
10464 ENABLE_DOCS_FALSE='#'
10465 else
10466 ENABLE_DOCS_TRUE='#'
10467 ENABLE_DOCS_FALSE=
10468 fi
10469
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
10471 $as_echo_n "checking whether to build documentation... " >&6; }
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
10473 $as_echo "$build_docs" >&6; }
10474
10475
10476
10477 # Check whether --enable-specs was given.
10478 if test "${enable_specs+set}" = set; then :
10479 enableval=$enable_specs; build_specs=$enableval
10480 else
10481 build_specs=yes
10482 fi
10483
10484
10485 if test x$build_specs = xyes; then
10486 ENABLE_SPECS_TRUE=
10487 ENABLE_SPECS_FALSE='#'
10488 else
10489 ENABLE_SPECS_TRUE='#'
10490 ENABLE_SPECS_FALSE=
10491 fi
10492
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
10494 $as_echo_n "checking whether to build functional specifications... " >&6; }
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
10496 $as_echo "$build_specs" >&6; }
10497
10498
10499
10500
10501
10502 # Check whether --with-xmlto was given.
10503 if test "${with_xmlto+set}" = set; then :
10504 withval=$with_xmlto; use_xmlto=$withval
10505 else
10506 use_xmlto=auto
10507 fi
10508
10509
10510
10511 if test "x$use_xmlto" = x"auto"; then
10512 # Extract the first word of "xmlto", so it can be a program name with args.
10513 set dummy xmlto; ac_word=$2
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515 $as_echo_n "checking for $ac_word... " >&6; }
10516 if ${ac_cv_path_XMLTO+:} false; then :
10517 $as_echo_n "(cached) " >&6
10518 else
10519 case $XMLTO in
10520 [\\/]* | ?:[\\/]*)
10521 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10522 ;;
10523 *)
10524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525 for as_dir in $PATH
10526 do
10527 IFS=$as_save_IFS
10528 test -z "$as_dir" && as_dir=.
10529 for ac_exec_ext in '' $ac_executable_extensions; do
10530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10531 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10533 break 2
10534 fi
10535 done
10536 done
10537 IFS=$as_save_IFS
10538
10539 ;;
10540 esac
10541 fi
10542 XMLTO=$ac_cv_path_XMLTO
10543 if test -n "$XMLTO"; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10545 $as_echo "$XMLTO" >&6; }
10546 else
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548 $as_echo "no" >&6; }
10549 fi
10550
10551
10552 if test "x$XMLTO" = "x"; then
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
10554 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
10555 have_xmlto=no
10556 else
10557 have_xmlto=yes
10558 fi
10559 elif test "x$use_xmlto" = x"yes" ; then
10560 # Extract the first word of "xmlto", so it can be a program name with args.
10561 set dummy xmlto; ac_word=$2
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10563 $as_echo_n "checking for $ac_word... " >&6; }
10564 if ${ac_cv_path_XMLTO+:} false; then :
10565 $as_echo_n "(cached) " >&6
10566 else
10567 case $XMLTO in
10568 [\\/]* | ?:[\\/]*)
10569 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10570 ;;
10571 *)
10572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10573 for as_dir in $PATH
10574 do
10575 IFS=$as_save_IFS
10576 test -z "$as_dir" && as_dir=.
10577 for ac_exec_ext in '' $ac_executable_extensions; do
10578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10579 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10581 break 2
10582 fi
10583 done
10584 done
10585 IFS=$as_save_IFS
10586
10587 ;;
10588 esac
10589 fi
10590 XMLTO=$ac_cv_path_XMLTO
10591 if test -n "$XMLTO"; then
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10593 $as_echo "$XMLTO" >&6; }
10594 else
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10596 $as_echo "no" >&6; }
10597 fi
10598
10599
10600 if test "x$XMLTO" = "x"; then
10601 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
10602 fi
10603 have_xmlto=yes
10604 elif test "x$use_xmlto" = x"no" ; then
10605 if test "x$XMLTO" != "x"; then
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
10607 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
10608 fi
10609 have_xmlto=no
10610 else
10611 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
10612 fi
10613
10614 # Test for a minimum version of xmlto, if provided.
10615 if test "$have_xmlto" = yes; then
10616 # scrape the xmlto version
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
10618 $as_echo_n "checking the xmlto version... " >&6; }
10619 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
10621 $as_echo "$xmlto_version" >&6; }
10622 as_arg_v1=$xmlto_version
10623 as_arg_v2=0.0.22
10624 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10625 case $? in #(
10626 1) :
10627 if test "x$use_xmlto" = xauto; then
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
10629 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
10630 have_xmlto=no
10631 else
10632 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
10633 fi ;; #(
10634 0) :
10635 ;; #(
10636 2) :
10637 ;; #(
10638 *) :
10639 ;;
10640 esac
10641 fi
10642
10643 # Test for the ability of xmlto to generate a text target
10644 have_xmlto_text=no
10645 cat > conftest.xml << "EOF"
10646 EOF
10647 if test "$have_xmlto" = yes; then :
10648 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
10649 have_xmlto_text=yes
10650 else
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
10652 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
10653 fi
10654 fi
10655 rm -f conftest.xml
10656 if test $have_xmlto_text = yes; then
10657 HAVE_XMLTO_TEXT_TRUE=
10658 HAVE_XMLTO_TEXT_FALSE='#'
10659 else
10660 HAVE_XMLTO_TEXT_TRUE='#'
10661 HAVE_XMLTO_TEXT_FALSE=
10662 fi
10663
10664 if test "$have_xmlto" = yes; then
10665 HAVE_XMLTO_TRUE=
10666 HAVE_XMLTO_FALSE='#'
10667 else
10668 HAVE_XMLTO_TRUE='#'
10669 HAVE_XMLTO_FALSE=
10670 fi
10671
10672
10673
10674
10675 # Preserves the interface, should it be implemented later
10676
10677
10678
10679 # Check whether --with-xsltproc was given.
10680 if test "${with_xsltproc+set}" = set; then :
10681 withval=$with_xsltproc; use_xsltproc=$withval
10682 else
10683 use_xsltproc=auto
10684 fi
10685
10686
10687
10688 if test "x$use_xsltproc" = x"auto"; then
10689 # Extract the first word of "xsltproc", so it can be a program name with args.
10690 set dummy xsltproc; ac_word=$2
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10692 $as_echo_n "checking for $ac_word... " >&6; }
10693 if ${ac_cv_path_XSLTPROC+:} false; then :
10694 $as_echo_n "(cached) " >&6
10695 else
10696 case $XSLTPROC in
10697 [\\/]* | ?:[\\/]*)
10698 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
10699 ;;
10700 *)
10701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10702 for as_dir in $PATH
10703 do
10704 IFS=$as_save_IFS
10705 test -z "$as_dir" && as_dir=.
10706 for ac_exec_ext in '' $ac_executable_extensions; do
10707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10708 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
10709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10710 break 2
10711 fi
10712 done
10713 done
10714 IFS=$as_save_IFS
10715
10716 ;;
10717 esac
10718 fi
10719 XSLTPROC=$ac_cv_path_XSLTPROC
10720 if test -n "$XSLTPROC"; then
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
10722 $as_echo "$XSLTPROC" >&6; }
10723 else
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725 $as_echo "no" >&6; }
10726 fi
10727
10728
10729 if test "x$XSLTPROC" = "x"; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
10731 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
10732 have_xsltproc=no
10733 else
10734 have_xsltproc=yes
10735 fi
10736 elif test "x$use_xsltproc" = x"yes" ; then
10737 # Extract the first word of "xsltproc", so it can be a program name with args.
10738 set dummy xsltproc; ac_word=$2
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10740 $as_echo_n "checking for $ac_word... " >&6; }
10741 if ${ac_cv_path_XSLTPROC+:} false; then :
10742 $as_echo_n "(cached) " >&6
10743 else
10744 case $XSLTPROC in
10745 [\\/]* | ?:[\\/]*)
10746 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
10747 ;;
10748 *)
10749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10750 for as_dir in $PATH
10751 do
10752 IFS=$as_save_IFS
10753 test -z "$as_dir" && as_dir=.
10754 for ac_exec_ext in '' $ac_executable_extensions; do
10755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10756 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
10757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10758 break 2
10759 fi
10760 done
10761 done
10762 IFS=$as_save_IFS
10763
10764 ;;
10765 esac
10766 fi
10767 XSLTPROC=$ac_cv_path_XSLTPROC
10768 if test -n "$XSLTPROC"; then
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
10770 $as_echo "$XSLTPROC" >&6; }
10771 else
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10773 $as_echo "no" >&6; }
10774 fi
10775
10776
10777 if test "x$XSLTPROC" = "x"; then
10778 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
10779 fi
10780 have_xsltproc=yes
10781 elif test "x$use_xsltproc" = x"no" ; then
10782 if test "x$XSLTPROC" != "x"; then
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
10784 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
10785 fi
10786 have_xsltproc=no
10787 else
10788 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
10789 fi
10790
10791 if test "$have_xsltproc" = yes; then
10792 HAVE_XSLTPROC_TRUE=
10793 HAVE_XSLTPROC_FALSE='#'
10794 else
10795 HAVE_XSLTPROC_TRUE='#'
10796 HAVE_XSLTPROC_FALSE=
10797 fi
10798
10799
10800
10801
10802
10803
10804 # Check whether --with-fop was given.
10805 if test "${with_fop+set}" = set; then :
10806 withval=$with_fop; use_fop=$withval
10807 else
10808 use_fop=auto
10809 fi
10810
10811
10812
10813 if test "x$use_fop" = x"auto"; then
10814 # Extract the first word of "fop", so it can be a program name with args.
10815 set dummy fop; ac_word=$2
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10817 $as_echo_n "checking for $ac_word... " >&6; }
10818 if ${ac_cv_path_FOP+:} false; then :
10819 $as_echo_n "(cached) " >&6
10820 else
10821 case $FOP in
10822 [\\/]* | ?:[\\/]*)
10823 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
10824 ;;
10825 *)
10826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827 for as_dir in $PATH
10828 do
10829 IFS=$as_save_IFS
10830 test -z "$as_dir" && as_dir=.
10831 for ac_exec_ext in '' $ac_executable_extensions; do
10832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10833 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
10834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10835 break 2
10836 fi
10837 done
10838 done
10839 IFS=$as_save_IFS
10840
10841 ;;
10842 esac
10843 fi
10844 FOP=$ac_cv_path_FOP
10845 if test -n "$FOP"; then
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
10847 $as_echo "$FOP" >&6; }
10848 else
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10850 $as_echo "no" >&6; }
10851 fi
10852
10853
10854 if test "x$FOP" = "x"; then
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
10856 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
10857 have_fop=no
10858 else
10859 have_fop=yes
10860 fi
10861 elif test "x$use_fop" = x"yes" ; then
10862 # Extract the first word of "fop", so it can be a program name with args.
10863 set dummy fop; ac_word=$2
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10865 $as_echo_n "checking for $ac_word... " >&6; }
10866 if ${ac_cv_path_FOP+:} false; then :
10867 $as_echo_n "(cached) " >&6
10868 else
10869 case $FOP in
10870 [\\/]* | ?:[\\/]*)
10871 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
10872 ;;
10873 *)
10874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10875 for as_dir in $PATH
10876 do
10877 IFS=$as_save_IFS
10878 test -z "$as_dir" && as_dir=.
10879 for ac_exec_ext in '' $ac_executable_extensions; do
10880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10881 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
10882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10883 break 2
10884 fi
10885 done
10886 done
10887 IFS=$as_save_IFS
10888
10889 ;;
10890 esac
10891 fi
10892 FOP=$ac_cv_path_FOP
10893 if test -n "$FOP"; then
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
10895 $as_echo "$FOP" >&6; }
10896 else
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898 $as_echo "no" >&6; }
10899 fi
10900
10901
10902 if test "x$FOP" = "x"; then
10903 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
10904 fi
10905 have_fop=yes
10906 elif test "x$use_fop" = x"no" ; then
10907 if test "x$FOP" != "x"; then
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
10909 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
10910 fi
10911 have_fop=no
10912 else
10913 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
10914 fi
10915
10916 # Test for a minimum version of fop, if provided.
10917
10918 if test "$have_fop" = yes; then
10919 HAVE_FOP_TRUE=
10920 HAVE_FOP_FALSE='#'
10921 else
10922 HAVE_FOP_TRUE='#'
10923 HAVE_FOP_FALSE=
10924 fi
10925
10926
10927
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
10929 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
10930 XORG_SGML_PATH=
10931 if test -n "$PKG_CONFIG" && \
10932 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
10933 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
10934 ac_status=$?
10935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10936 test $ac_status = 0; }; then
10937 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
10938 else
10939 :
10940
10941 fi
10942
10943 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
10944 # the path and the name of the doc stylesheet
10945 if test "x$XORG_SGML_PATH" != "x" ; then
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
10947 $as_echo "$XORG_SGML_PATH" >&6; }
10948 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
10949 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
10950 else
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10952 $as_echo "no" >&6; }
10953 fi
10954
10955
10956
10957
10958 if test "x$XSL_STYLESHEET" != "x"; then
10959 HAVE_STYLESHEETS_TRUE=
10960 HAVE_STYLESHEETS_FALSE='#'
10961 else
10962 HAVE_STYLESHEETS_TRUE='#'
10963 HAVE_STYLESHEETS_FALSE=
10964 fi
10965
10966
10967
10968 ac_config_files="$ac_config_files Makefile general/Makefile general/fonts/Makefile general/input/Makefile general/graphics/Makefile general/platforms/Makefile man/Makefile specs/Makefile specs/CTEXT/Makefile specs/ICCCM/Makefile specs/Xext/Makefile specs/XLFD/Makefile specs/Xserver/Makefile"
10969
10970 cat >confcache <<\_ACEOF
10971 # This file is a shell script that caches the results of configure
10972 # tests run on this system so they can be shared between configure
10973 # scripts and configure runs, see configure's option --config-cache.
10974 # It is not useful on other systems. If it contains results you don't
10975 # want to keep, you may remove or edit it.
10976 #
10977 # config.status only pays attention to the cache file if you give it
10978 # the --recheck option to rerun configure.
10979 #
10980 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10981 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10982 # following values.
10983
10984 _ACEOF
10985
10986 # The following way of writing the cache mishandles newlines in values,
10987 # but we know of no workaround that is simple, portable, and efficient.
10988 # So, we kill variables containing newlines.
10989 # Ultrix sh set writes to stderr and can't be redirected directly,
10990 # and sets the high bit in the cache file unless we assign to the vars.
10991 (
10992 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10993 eval ac_val=\$$ac_var
10994 case $ac_val in #(
10995 *${as_nl}*)
10996 case $ac_var in #(
10997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10998 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10999 esac
11000 case $ac_var in #(
11001 _ | IFS | as_nl) ;; #(
11002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11003 *) { eval $ac_var=; unset $ac_var;} ;;
11004 esac ;;
11005 esac
11006 done
11007
11008 (set) 2>&1 |
11009 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11010 *${as_nl}ac_space=\ *)
11011 # `set' does not quote correctly, so add quotes: double-quote
11012 # substitution turns \\\\ into \\, and sed turns \\ into \.
11013 sed -n \
11014 "s/'/'\\\\''/g;
11015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11016 ;; #(
11017 *)
11018 # `set' quotes correctly as required by POSIX, so do not add quotes.
11019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11020 ;;
11021 esac |
11022 sort
11023 ) |
11024 sed '
11025 /^ac_cv_env_/b end
11026 t clear
11027 :clear
11028 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11029 t end
11030 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11031 :end' >>confcache
11032 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11033 if test -w "$cache_file"; then
11034 if test "x$cache_file" != "x/dev/null"; then
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11036 $as_echo "$as_me: updating cache $cache_file" >&6;}
11037 if test ! -f "$cache_file" || test -h "$cache_file"; then
11038 cat confcache >"$cache_file"
11039 else
11040 case $cache_file in #(
11041 */* | ?:*)
11042 mv -f confcache "$cache_file"$$ &&
11043 mv -f "$cache_file"$$ "$cache_file" ;; #(
11044 *)
11045 mv -f confcache "$cache_file" ;;
11046 esac
11047 fi
11048 fi
11049 else
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11051 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11052 fi
11053 fi
11054 rm -f confcache
11055
11056 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11057 # Let make expand exec_prefix.
11058 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11059
11060 # Transform confdefs.h into DEFS.
11061 # Protect against shell expansion while executing Makefile rules.
11062 # Protect against Makefile macro expansion.
11063 #
11064 # If the first sed substitution is executed (which looks for macros that
11065 # take arguments), then branch to the quote section. Otherwise,
11066 # look for a macro that doesn't take arguments.
11067 ac_script='
11068 :mline
11069 /\\$/{
11070 N
11071 s,\\\n,,
11072 b mline
11073 }
11074 t clear
11075 :clear
11076 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11077 t quote
11078 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11079 t quote
11080 b any
11081 :quote
11082 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11083 s/\[/\\&/g
11084 s/\]/\\&/g
11085 s/\$/$$/g
11086 H
11087 :any
11088 ${
11089 g
11090 s/^\n//
11091 s/\n/ /g
11092 p
11093 }
11094 '
11095 DEFS=`sed -n "$ac_script" confdefs.h`
11096
11097
11098 ac_libobjs=
11099 ac_ltlibobjs=
11100 U=
11101 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11102 # 1. Remove the extension, and $U if already installed.
11103 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11104 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11105 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11106 # will be set to the directory where LIBOBJS objects are built.
11107 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11108 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11109 done
11110 LIBOBJS=$ac_libobjs
11111
11112 LTLIBOBJS=$ac_ltlibobjs
11113
11114
11115 if test -n "$EXEEXT"; then
11116 am__EXEEXT_TRUE=
11117 am__EXEEXT_FALSE='#'
11118 else
11119 am__EXEEXT_TRUE='#'
11120 am__EXEEXT_FALSE=
11121 fi
11122
11123 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11124 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11126 fi
11127 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11128 as_fn_error $? "conditional \"AMDEP\" was never defined.
11129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11130 fi
11131 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11132 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11134 fi
11135 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
11136 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
11137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11138 fi
11139 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
11140 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
11141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11142 fi
11143 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
11144 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
11145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11146 fi
11147 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
11148 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
11149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11150 fi
11151 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
11152 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
11153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11154 fi
11155 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
11156 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
11157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11158 fi
11159 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
11160 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
11161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11162 fi
11163
11164 : "${CONFIG_STATUS=./config.status}"
11165 ac_write_fail=0
11166 ac_clean_files_save=$ac_clean_files
11167 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11169 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11170 as_write_fail=0
11171 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11172 #! $SHELL
11173 # Generated by $as_me.
11174 # Run this file to recreate the current configuration.
11175 # Compiler output produced by configure, useful for debugging
11176 # configure, is in config.log if it exists.
11177
11178 debug=false
11179 ac_cs_recheck=false
11180 ac_cs_silent=false
11181
11182 SHELL=\${CONFIG_SHELL-$SHELL}
11183 export SHELL
11184 _ASEOF
11185 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11186 ## -------------------- ##
11187 ## M4sh Initialization. ##
11188 ## -------------------- ##
11189
11190 # Be more Bourne compatible
11191 DUALCASE=1; export DUALCASE # for MKS sh
11192 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11193 emulate sh
11194 NULLCMD=:
11195 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11196 # is contrary to our usage. Disable this feature.
11197 alias -g '${1+"$@"}'='"$@"'
11198 setopt NO_GLOB_SUBST
11199 else
11200 case `(set -o) 2>/dev/null` in #(
11201 *posix*) :
11202 set -o posix ;; #(
11203 *) :
11204 ;;
11205 esac
11206 fi
11207
11208
11209 as_nl='
11210 '
11211 export as_nl
11212 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11213 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11214 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11215 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11216 # Prefer a ksh shell builtin over an external printf program on Solaris,
11217 # but without wasting forks for bash or zsh.
11218 if test -z "$BASH_VERSION$ZSH_VERSION" \
11219 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11220 as_echo='print -r --'
11221 as_echo_n='print -rn --'
11222 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11223 as_echo='printf %s\n'
11224 as_echo_n='printf %s'
11225 else
11226 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11227 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11228 as_echo_n='/usr/ucb/echo -n'
11229 else
11230 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11231 as_echo_n_body='eval
11232 arg=$1;
11233 case $arg in #(
11234 *"$as_nl"*)
11235 expr "X$arg" : "X\\(.*\\)$as_nl";
11236 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11237 esac;
11238 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11239 '
11240 export as_echo_n_body
11241 as_echo_n='sh -c $as_echo_n_body as_echo'
11242 fi
11243 export as_echo_body
11244 as_echo='sh -c $as_echo_body as_echo'
11245 fi
11246
11247 # The user is always right.
11248 if test "${PATH_SEPARATOR+set}" != set; then
11249 PATH_SEPARATOR=:
11250 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11251 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11252 PATH_SEPARATOR=';'
11253 }
11254 fi
11255
11256
11257 # IFS
11258 # We need space, tab and new line, in precisely that order. Quoting is
11259 # there to prevent editors from complaining about space-tab.
11260 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11261 # splitting by setting IFS to empty value.)
11262 IFS=" "" $as_nl"
11263
11264 # Find who we are. Look in the path if we contain no directory separator.
11265 as_myself=
11266 case $0 in #((
11267 *[\\/]* ) as_myself=$0 ;;
11268 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11269 for as_dir in $PATH
11270 do
11271 IFS=$as_save_IFS
11272 test -z "$as_dir" && as_dir=.
11273 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11274 done
11275 IFS=$as_save_IFS
11276
11277 ;;
11278 esac
11279 # We did not find ourselves, most probably we were run as `sh COMMAND'
11280 # in which case we are not to be found in the path.
11281 if test "x$as_myself" = x; then
11282 as_myself=$0
11283 fi
11284 if test ! -f "$as_myself"; then
11285 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11286 exit 1
11287 fi
11288
11289 # Unset variables that we do not need and which cause bugs (e.g. in
11290 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11291 # suppresses any "Segmentation fault" message there. '((' could
11292 # trigger a bug in pdksh 5.2.14.
11293 for as_var in BASH_ENV ENV MAIL MAILPATH
11294 do eval test x\${$as_var+set} = xset \
11295 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11296 done
11297 PS1='$ '
11298 PS2='> '
11299 PS4='+ '
11300
11301 # NLS nuisances.
11302 LC_ALL=C
11303 export LC_ALL
11304 LANGUAGE=C
11305 export LANGUAGE
11306
11307 # CDPATH.
11308 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11309
11310
11311 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11312 # ----------------------------------------
11313 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11314 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11315 # script with STATUS, using 1 if that was 0.
11316 as_fn_error ()
11317 {
11318 as_status=$1; test $as_status -eq 0 && as_status=1
11319 if test "$4"; then
11320 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11321 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11322 fi
11323 $as_echo "$as_me: error: $2" >&2
11324 as_fn_exit $as_status
11325 } # as_fn_error
11326
11327
11328 # as_fn_set_status STATUS
11329 # -----------------------
11330 # Set $? to STATUS, without forking.
11331 as_fn_set_status ()
11332 {
11333 return $1
11334 } # as_fn_set_status
11335
11336 # as_fn_exit STATUS
11337 # -----------------
11338 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11339 as_fn_exit ()
11340 {
11341 set +e
11342 as_fn_set_status $1
11343 exit $1
11344 } # as_fn_exit
11345
11346 # as_fn_unset VAR
11347 # ---------------
11348 # Portably unset VAR.
11349 as_fn_unset ()
11350 {
11351 { eval $1=; unset $1;}
11352 }
11353 as_unset=as_fn_unset
11354 # as_fn_append VAR VALUE
11355 # ----------------------
11356 # Append the text in VALUE to the end of the definition contained in VAR. Take
11357 # advantage of any shell optimizations that allow amortized linear growth over
11358 # repeated appends, instead of the typical quadratic growth present in naive
11359 # implementations.
11360 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11361 eval 'as_fn_append ()
11362 {
11363 eval $1+=\$2
11364 }'
11365 else
11366 as_fn_append ()
11367 {
11368 eval $1=\$$1\$2
11369 }
11370 fi # as_fn_append
11371
11372 # as_fn_arith ARG...
11373 # ------------------
11374 # Perform arithmetic evaluation on the ARGs, and store the result in the
11375 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11376 # must be portable across $(()) and expr.
11377 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11378 eval 'as_fn_arith ()
11379 {
11380 as_val=$(( $* ))
11381 }'
11382 else
11383 as_fn_arith ()
11384 {
11385 as_val=`expr "$@" || test $? -eq 1`
11386 }
11387 fi # as_fn_arith
11388
11389
11390 if expr a : '\(a\)' >/dev/null 2>&1 &&
11391 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11392 as_expr=expr
11393 else
11394 as_expr=false
11395 fi
11396
11397 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11398 as_basename=basename
11399 else
11400 as_basename=false
11401 fi
11402
11403 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11404 as_dirname=dirname
11405 else
11406 as_dirname=false
11407 fi
11408
11409 as_me=`$as_basename -- "$0" ||
11410 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11411 X"$0" : 'X\(//\)$' \| \
11412 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11413 $as_echo X/"$0" |
11414 sed '/^.*\/\([^/][^/]*\)\/*$/{
11415 s//\1/
11416 q
11417 }
11418 /^X\/\(\/\/\)$/{
11419 s//\1/
11420 q
11421 }
11422 /^X\/\(\/\).*/{
11423 s//\1/
11424 q
11425 }
11426 s/.*/./; q'`
11427
11428 # Avoid depending upon Character Ranges.
11429 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11430 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11431 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11432 as_cr_digits='0123456789'
11433 as_cr_alnum=$as_cr_Letters$as_cr_digits
11434
11435 ECHO_C= ECHO_N= ECHO_T=
11436 case `echo -n x` in #(((((
11437 -n*)
11438 case `echo 'xy\c'` in
11439 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11440 xy) ECHO_C='\c';;
11441 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11442 ECHO_T=' ';;
11443 esac;;
11444 *)
11445 ECHO_N='-n';;
11446 esac
11447
11448 rm -f conf$$ conf$$.exe conf$$.file
11449 if test -d conf$$.dir; then
11450 rm -f conf$$.dir/conf$$.file
11451 else
11452 rm -f conf$$.dir
11453 mkdir conf$$.dir 2>/dev/null
11454 fi
11455 if (echo >conf$$.file) 2>/dev/null; then
11456 if ln -s conf$$.file conf$$ 2>/dev/null; then
11457 as_ln_s='ln -s'
11458 # ... but there are two gotchas:
11459 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11460 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11461 # In both cases, we have to default to `cp -p'.
11462 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11463 as_ln_s='cp -p'
11464 elif ln conf$$.file conf$$ 2>/dev/null; then
11465 as_ln_s=ln
11466 else
11467 as_ln_s='cp -p'
11468 fi
11469 else
11470 as_ln_s='cp -p'
11471 fi
11472 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11473 rmdir conf$$.dir 2>/dev/null
11474
11475
11476 # as_fn_mkdir_p
11477 # -------------
11478 # Create "$as_dir" as a directory, including parents if necessary.
11479 as_fn_mkdir_p ()
11480 {
11481
11482 case $as_dir in #(
11483 -*) as_dir=./$as_dir;;
11484 esac
11485 test -d "$as_dir" || eval $as_mkdir_p || {
11486 as_dirs=
11487 while :; do
11488 case $as_dir in #(
11489 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11490 *) as_qdir=$as_dir;;
11491 esac
11492 as_dirs="'$as_qdir' $as_dirs"
11493 as_dir=`$as_dirname -- "$as_dir" ||
11494 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11495 X"$as_dir" : 'X\(//\)[^/]' \| \
11496 X"$as_dir" : 'X\(//\)$' \| \
11497 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11498 $as_echo X"$as_dir" |
11499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11500 s//\1/
11501 q
11502 }
11503 /^X\(\/\/\)[^/].*/{
11504 s//\1/
11505 q
11506 }
11507 /^X\(\/\/\)$/{
11508 s//\1/
11509 q
11510 }
11511 /^X\(\/\).*/{
11512 s//\1/
11513 q
11514 }
11515 s/.*/./; q'`
11516 test -d "$as_dir" && break
11517 done
11518 test -z "$as_dirs" || eval "mkdir $as_dirs"
11519 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11520
11521
11522 } # as_fn_mkdir_p
11523 if mkdir -p . 2>/dev/null; then
11524 as_mkdir_p='mkdir -p "$as_dir"'
11525 else
11526 test -d ./-p && rmdir ./-p
11527 as_mkdir_p=false
11528 fi
11529
11530 if test -x / >/dev/null 2>&1; then
11531 as_test_x='test -x'
11532 else
11533 if ls -dL / >/dev/null 2>&1; then
11534 as_ls_L_option=L
11535 else
11536 as_ls_L_option=
11537 fi
11538 as_test_x='
11539 eval sh -c '\''
11540 if test -d "$1"; then
11541 test -d "$1/.";
11542 else
11543 case $1 in #(
11544 -*)set "./$1";;
11545 esac;
11546 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11547 ???[sx]*):;;*)false;;esac;fi
11548 '\'' sh
11549 '
11550 fi
11551 as_executable_p=$as_test_x
11552
11553 # Sed expression to map a string onto a valid CPP name.
11554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11555
11556 # Sed expression to map a string onto a valid variable name.
11557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11558
11559
11560 exec 6>&1
11561 ## ----------------------------------- ##
11562 ## Main body of $CONFIG_STATUS script. ##
11563 ## ----------------------------------- ##
11564 _ASEOF
11565 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11566
11567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11568 # Save the log message, to keep $0 and so on meaningful, and to
11569 # report actual input values of CONFIG_FILES etc. instead of their
11570 # values after options handling.
11571 ac_log="
11572 This file was extended by xorg-docs $as_me 1.7, which was
11573 generated by GNU Autoconf 2.68. Invocation command line was
11574
11575 CONFIG_FILES = $CONFIG_FILES
11576 CONFIG_HEADERS = $CONFIG_HEADERS
11577 CONFIG_LINKS = $CONFIG_LINKS
11578 CONFIG_COMMANDS = $CONFIG_COMMANDS
11579 $ $0 $@
11580
11581 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11582 "
11583
11584 _ACEOF
11585
11586 case $ac_config_files in *"
11587 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11588 esac
11589
11590
11591
11592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11593 # Files that config.status was made for.
11594 config_files="$ac_config_files"
11595 config_commands="$ac_config_commands"
11596
11597 _ACEOF
11598
11599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11600 ac_cs_usage="\
11601 \`$as_me' instantiates files and other configuration actions
11602 from templates according to the current configuration. Unless the files
11603 and actions are specified as TAGs, all are instantiated by default.
11604
11605 Usage: $0 [OPTION]... [TAG]...
11606
11607 -h, --help print this help, then exit
11608 -V, --version print version number and configuration settings, then exit
11609 --config print configuration, then exit
11610 -q, --quiet, --silent
11611 do not print progress messages
11612 -d, --debug don't remove temporary files
11613 --recheck update $as_me by reconfiguring in the same conditions
11614 --file=FILE[:TEMPLATE]
11615 instantiate the configuration file FILE
11616
11617 Configuration files:
11618 $config_files
11619
11620 Configuration commands:
11621 $config_commands
11622
11623 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11624
11625 _ACEOF
11626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11627 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11628 ac_cs_version="\\
11629 xorg-docs config.status 1.7
11630 configured by $0, generated by GNU Autoconf 2.68,
11631 with options \\"\$ac_cs_config\\"
11632
11633 Copyright (C) 2010 Free Software Foundation, Inc.
11634 This config.status script is free software; the Free Software Foundation
11635 gives unlimited permission to copy, distribute and modify it."
11636
11637 ac_pwd='$ac_pwd'
11638 srcdir='$srcdir'
11639 INSTALL='$INSTALL'
11640 MKDIR_P='$MKDIR_P'
11641 AWK='$AWK'
11642 test -n "\$AWK" || AWK=awk
11643 _ACEOF
11644
11645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11646 # The default lists apply if the user does not specify any file.
11647 ac_need_defaults=:
11648 while test $# != 0
11649 do
11650 case $1 in
11651 --*=?*)
11652 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11653 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11654 ac_shift=:
11655 ;;
11656 --*=)
11657 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11658 ac_optarg=
11659 ac_shift=:
11660 ;;
11661 *)
11662 ac_option=$1
11663 ac_optarg=$2
11664 ac_shift=shift
11665 ;;
11666 esac
11667
11668 case $ac_option in
11669 # Handling of the options.
11670 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11671 ac_cs_recheck=: ;;
11672 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11673 $as_echo "$ac_cs_version"; exit ;;
11674 --config | --confi | --conf | --con | --co | --c )
11675 $as_echo "$ac_cs_config"; exit ;;
11676 --debug | --debu | --deb | --de | --d | -d )
11677 debug=: ;;
11678 --file | --fil | --fi | --f )
11679 $ac_shift
11680 case $ac_optarg in
11681 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11682 '') as_fn_error $? "missing file argument" ;;
11683 esac
11684 as_fn_append CONFIG_FILES " '$ac_optarg'"
11685 ac_need_defaults=false;;
11686 --he | --h | --help | --hel | -h )
11687 $as_echo "$ac_cs_usage"; exit ;;
11688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11689 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11690 ac_cs_silent=: ;;
11691
11692 # This is an error.
11693 -*) as_fn_error $? "unrecognized option: \`$1'
11694 Try \`$0 --help' for more information." ;;
11695
11696 *) as_fn_append ac_config_targets " $1"
11697 ac_need_defaults=false ;;
11698
11699 esac
11700 shift
11701 done
11702
11703 ac_configure_extra_args=
11704
11705 if $ac_cs_silent; then
11706 exec 6>/dev/null
11707 ac_configure_extra_args="$ac_configure_extra_args --silent"
11708 fi
11709
11710 _ACEOF
11711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11712 if \$ac_cs_recheck; then
11713 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11714 shift
11715 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11716 CONFIG_SHELL='$SHELL'
11717 export CONFIG_SHELL
11718 exec "\$@"
11719 fi
11720
11721 _ACEOF
11722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11723 exec 5>>config.log
11724 {
11725 echo
11726 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11727 ## Running $as_me. ##
11728 _ASBOX
11729 $as_echo "$ac_log"
11730 } >&5
11731
11732 _ACEOF
11733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11734 #
11735 # INIT-COMMANDS
11736 #
11737 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11738
11739 _ACEOF
11740
11741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11742
11743 # Handling of arguments.
11744 for ac_config_target in $ac_config_targets
11745 do
11746 case $ac_config_target in
11747 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11748 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11749 "general/Makefile") CONFIG_FILES="$CONFIG_FILES general/Makefile" ;;
11750 "general/fonts/Makefile") CONFIG_FILES="$CONFIG_FILES general/fonts/Makefile" ;;
11751 "general/input/Makefile") CONFIG_FILES="$CONFIG_FILES general/input/Makefile" ;;
11752 "general/graphics/Makefile") CONFIG_FILES="$CONFIG_FILES general/graphics/Makefile" ;;
11753 "general/platforms/Makefile") CONFIG_FILES="$CONFIG_FILES general/platforms/Makefile" ;;
11754 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11755 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
11756 "specs/CTEXT/Makefile") CONFIG_FILES="$CONFIG_FILES specs/CTEXT/Makefile" ;;
11757 "specs/ICCCM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/ICCCM/Makefile" ;;
11758 "specs/Xext/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Xext/Makefile" ;;
11759 "specs/XLFD/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XLFD/Makefile" ;;
11760 "specs/Xserver/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Xserver/Makefile" ;;
11761
11762 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11763 esac
11764 done
11765
11766
11767 # If the user did not use the arguments to specify the items to instantiate,
11768 # then the envvar interface is used. Set only those that are not.
11769 # We use the long form for the default assignment because of an extremely
11770 # bizarre bug on SunOS 4.1.3.
11771 if $ac_need_defaults; then
11772 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11773 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11774 fi
11775
11776 # Have a temporary directory for convenience. Make it in the build tree
11777 # simply because there is no reason against having it here, and in addition,
11778 # creating and moving files from /tmp can sometimes cause problems.
11779 # Hook for its removal unless debugging.
11780 # Note that there is a small window in which the directory will not be cleaned:
11781 # after its creation but before its name has been assigned to `$tmp'.
11782 $debug ||
11783 {
11784 tmp= ac_tmp=
11785 trap 'exit_status=$?
11786 : "${ac_tmp:=$tmp}"
11787 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11788 ' 0
11789 trap 'as_fn_exit 1' 1 2 13 15
11790 }
11791 # Create a (secure) tmp directory for tmp files.
11792
11793 {
11794 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11795 test -d "$tmp"
11796 } ||
11797 {
11798 tmp=./conf$$-$RANDOM
11799 (umask 077 && mkdir "$tmp")
11800 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11801 ac_tmp=$tmp
11802
11803 # Set up the scripts for CONFIG_FILES section.
11804 # No need to generate them if there are no CONFIG_FILES.
11805 # This happens for instance with `./config.status config.h'.
11806 if test -n "$CONFIG_FILES"; then
11807
11808
11809 ac_cr=`echo X | tr X '\015'`
11810 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11811 # But we know of no other shell where ac_cr would be empty at this
11812 # point, so we can use a bashism as a fallback.
11813 if test "x$ac_cr" = x; then
11814 eval ac_cr=\$\'\\r\'
11815 fi
11816 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11817 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11818 ac_cs_awk_cr='\\r'
11819 else
11820 ac_cs_awk_cr=$ac_cr
11821 fi
11822
11823 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11824 _ACEOF
11825
11826
11827 {
11828 echo "cat >conf$$subs.awk <<_ACEOF" &&
11829 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11830 echo "_ACEOF"
11831 } >conf$$subs.sh ||
11832 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11833 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11834 ac_delim='%!_!# '
11835 for ac_last_try in false false false false false :; do
11836 . ./conf$$subs.sh ||
11837 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11838
11839 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11840 if test $ac_delim_n = $ac_delim_num; then
11841 break
11842 elif $ac_last_try; then
11843 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11844 else
11845 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11846 fi
11847 done
11848 rm -f conf$$subs.sh
11849
11850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11851 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11852 _ACEOF
11853 sed -n '
11854 h
11855 s/^/S["/; s/!.*/"]=/
11856 p
11857 g
11858 s/^[^!]*!//
11859 :repl
11860 t repl
11861 s/'"$ac_delim"'$//
11862 t delim
11863 :nl
11864 h
11865 s/\(.\{148\}\)..*/\1/
11866 t more1
11867 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11868 p
11869 n
11870 b repl
11871 :more1
11872 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11873 p
11874 g
11875 s/.\{148\}//
11876 t nl
11877 :delim
11878 h
11879 s/\(.\{148\}\)..*/\1/
11880 t more2
11881 s/["\\]/\\&/g; s/^/"/; s/$/"/
11882 p
11883 b
11884 :more2
11885 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11886 p
11887 g
11888 s/.\{148\}//
11889 t delim
11890 ' <conf$$subs.awk | sed '
11891 /^[^""]/{
11892 N
11893 s/\n//
11894 }
11895 ' >>$CONFIG_STATUS || ac_write_fail=1
11896 rm -f conf$$subs.awk
11897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11898 _ACAWK
11899 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11900 for (key in S) S_is_set[key] = 1
11901 FS = ""
11902
11903 }
11904 {
11905 line = $ 0
11906 nfields = split(line, field, "@")
11907 substed = 0
11908 len = length(field[1])
11909 for (i = 2; i < nfields; i++) {
11910 key = field[i]
11911 keylen = length(key)
11912 if (S_is_set[key]) {
11913 value = S[key]
11914 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11915 len += length(value) + length(field[++i])
11916 substed = 1
11917 } else
11918 len += 1 + keylen
11919 }
11920
11921 print line
11922 }
11923
11924 _ACAWK
11925 _ACEOF
11926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11927 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11928 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11929 else
11930 cat
11931 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11932 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11933 _ACEOF
11934
11935 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11936 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11937 # trailing colons and then remove the whole line if VPATH becomes empty
11938 # (actually we leave an empty line to preserve line numbers).
11939 if test "x$srcdir" = x.; then
11940 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11941 h
11942 s///
11943 s/^/:/
11944 s/[ ]*$/:/
11945 s/:\$(srcdir):/:/g
11946 s/:\${srcdir}:/:/g
11947 s/:@srcdir@:/:/g
11948 s/^:*//
11949 s/:*$//
11950 x
11951 s/\(=[ ]*\).*/\1/
11952 G
11953 s/\n//
11954 s/^[^=]*=[ ]*$//
11955 }'
11956 fi
11957
11958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11959 fi # test -n "$CONFIG_FILES"
11960
11961
11962 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
11963 shift
11964 for ac_tag
11965 do
11966 case $ac_tag in
11967 :[FHLC]) ac_mode=$ac_tag; continue;;
11968 esac
11969 case $ac_mode$ac_tag in
11970 :[FHL]*:*);;
11971 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11972 :[FH]-) ac_tag=-:-;;
11973 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11974 esac
11975 ac_save_IFS=$IFS
11976 IFS=:
11977 set x $ac_tag
11978 IFS=$ac_save_IFS
11979 shift
11980 ac_file=$1
11981 shift
11982
11983 case $ac_mode in
11984 :L) ac_source=$1;;
11985 :[FH])
11986 ac_file_inputs=
11987 for ac_f
11988 do
11989 case $ac_f in
11990 -) ac_f="$ac_tmp/stdin";;
11991 *) # Look for the file first in the build tree, then in the source tree
11992 # (if the path is not absolute). The absolute path cannot be DOS-style,
11993 # because $ac_f cannot contain `:'.
11994 test -f "$ac_f" ||
11995 case $ac_f in
11996 [\\/$]*) false;;
11997 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11998 esac ||
11999 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12000 esac
12001 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12002 as_fn_append ac_file_inputs " '$ac_f'"
12003 done
12004
12005 # Let's still pretend it is `configure' which instantiates (i.e., don't
12006 # use $as_me), people would be surprised to read:
12007 # /* config.h. Generated by config.status. */
12008 configure_input='Generated from '`
12009 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12010 `' by configure.'
12011 if test x"$ac_file" != x-; then
12012 configure_input="$ac_file. $configure_input"
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12014 $as_echo "$as_me: creating $ac_file" >&6;}
12015 fi
12016 # Neutralize special characters interpreted by sed in replacement strings.
12017 case $configure_input in #(
12018 *\&* | *\|* | *\\* )
12019 ac_sed_conf_input=`$as_echo "$configure_input" |
12020 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12021 *) ac_sed_conf_input=$configure_input;;
12022 esac
12023
12024 case $ac_tag in
12025 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12026 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12027 esac
12028 ;;
12029 esac
12030
12031 ac_dir=`$as_dirname -- "$ac_file" ||
12032 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12033 X"$ac_file" : 'X\(//\)[^/]' \| \
12034 X"$ac_file" : 'X\(//\)$' \| \
12035 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12036 $as_echo X"$ac_file" |
12037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12038 s//\1/
12039 q
12040 }
12041 /^X\(\/\/\)[^/].*/{
12042 s//\1/
12043 q
12044 }
12045 /^X\(\/\/\)$/{
12046 s//\1/
12047 q
12048 }
12049 /^X\(\/\).*/{
12050 s//\1/
12051 q
12052 }
12053 s/.*/./; q'`
12054 as_dir="$ac_dir"; as_fn_mkdir_p
12055 ac_builddir=.
12056
12057 case "$ac_dir" in
12058 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12059 *)
12060 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12061 # A ".." for each directory in $ac_dir_suffix.
12062 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12063 case $ac_top_builddir_sub in
12064 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12065 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12066 esac ;;
12067 esac
12068 ac_abs_top_builddir=$ac_pwd
12069 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12070 # for backward compatibility:
12071 ac_top_builddir=$ac_top_build_prefix
12072
12073 case $srcdir in
12074 .) # We are building in place.
12075 ac_srcdir=.
12076 ac_top_srcdir=$ac_top_builddir_sub
12077 ac_abs_top_srcdir=$ac_pwd ;;
12078 [\\/]* | ?:[\\/]* ) # Absolute name.
12079 ac_srcdir=$srcdir$ac_dir_suffix;
12080 ac_top_srcdir=$srcdir
12081 ac_abs_top_srcdir=$srcdir ;;
12082 *) # Relative name.
12083 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12084 ac_top_srcdir=$ac_top_build_prefix$srcdir
12085 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12086 esac
12087 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12088
12089
12090 case $ac_mode in
12091 :F)
12092 #
12093 # CONFIG_FILE
12094 #
12095
12096 case $INSTALL in
12097 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12098 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12099 esac
12100 ac_MKDIR_P=$MKDIR_P
12101 case $MKDIR_P in
12102 [\\/$]* | ?:[\\/]* ) ;;
12103 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12104 esac
12105 _ACEOF
12106
12107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12108 # If the template does not know about datarootdir, expand it.
12109 # FIXME: This hack should be removed a few years after 2.60.
12110 ac_datarootdir_hack=; ac_datarootdir_seen=
12111 ac_sed_dataroot='
12112 /datarootdir/ {
12113 p
12114 q
12115 }
12116 /@datadir@/p
12117 /@docdir@/p
12118 /@infodir@/p
12119 /@localedir@/p
12120 /@mandir@/p'
12121 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12122 *datarootdir*) ac_datarootdir_seen=yes;;
12123 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12125 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12126 _ACEOF
12127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12128 ac_datarootdir_hack='
12129 s&@datadir@&$datadir&g
12130 s&@docdir@&$docdir&g
12131 s&@infodir@&$infodir&g
12132 s&@localedir@&$localedir&g
12133 s&@mandir@&$mandir&g
12134 s&\\\${datarootdir}&$datarootdir&g' ;;
12135 esac
12136 _ACEOF
12137
12138 # Neutralize VPATH when `$srcdir' = `.'.
12139 # Shell code in configure.ac might set extrasub.
12140 # FIXME: do we really want to maintain this feature?
12141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12142 ac_sed_extra="$ac_vpsub
12143 $extrasub
12144 _ACEOF
12145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12146 :t
12147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12148 s|@configure_input@|$ac_sed_conf_input|;t t
12149 s&@top_builddir@&$ac_top_builddir_sub&;t t
12150 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12151 s&@srcdir@&$ac_srcdir&;t t
12152 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12153 s&@top_srcdir@&$ac_top_srcdir&;t t
12154 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12155 s&@builddir@&$ac_builddir&;t t
12156 s&@abs_builddir@&$ac_abs_builddir&;t t
12157 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12158 s&@INSTALL@&$ac_INSTALL&;t t
12159 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12160 $ac_datarootdir_hack
12161 "
12162 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12163 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12164
12165 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12166 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12167 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12168 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12170 which seems to be undefined. Please make sure it is defined" >&5
12171 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12172 which seems to be undefined. Please make sure it is defined" >&2;}
12173
12174 rm -f "$ac_tmp/stdin"
12175 case $ac_file in
12176 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12177 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12178 esac \
12179 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12180 ;;
12181
12182
12183 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12184 $as_echo "$as_me: executing $ac_file commands" >&6;}
12185 ;;
12186 esac
12187
12188
12189 case $ac_file$ac_mode in
12190 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12191 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12192 # are listed without --file. Let's play safe and only enable the eval
12193 # if we detect the quoting.
12194 case $CONFIG_FILES in
12195 *\'*) eval set x "$CONFIG_FILES" ;;
12196 *) set x $CONFIG_FILES ;;
12197 esac
12198 shift
12199 for mf
12200 do
12201 # Strip MF so we end up with the name of the file.
12202 mf=`echo "$mf" | sed -e 's/:.*$//'`
12203 # Check whether this is an Automake generated Makefile or not.
12204 # We used to match only the files named `Makefile.in', but
12205 # some people rename them; so instead we look at the file content.
12206 # Grep'ing the first line is not enough: some people post-process
12207 # each Makefile.in and add a new line on top of each file to say so.
12208 # Grep'ing the whole file is not good either: AIX grep has a line
12209 # limit of 2048, but all sed's we know have understand at least 4000.
12210 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12211 dirpart=`$as_dirname -- "$mf" ||
12212 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12213 X"$mf" : 'X\(//\)[^/]' \| \
12214 X"$mf" : 'X\(//\)$' \| \
12215 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12216 $as_echo X"$mf" |
12217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12218 s//\1/
12219 q
12220 }
12221 /^X\(\/\/\)[^/].*/{
12222 s//\1/
12223 q
12224 }
12225 /^X\(\/\/\)$/{
12226 s//\1/
12227 q
12228 }
12229 /^X\(\/\).*/{
12230 s//\1/
12231 q
12232 }
12233 s/.*/./; q'`
12234 else
12235 continue
12236 fi
12237 # Extract the definition of DEPDIR, am__include, and am__quote
12238 # from the Makefile without running `make'.
12239 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12240 test -z "$DEPDIR" && continue
12241 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12242 test -z "am__include" && continue
12243 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12244 # When using ansi2knr, U may be empty or an underscore; expand it
12245 U=`sed -n 's/^U = //p' < "$mf"`
12246 # Find all dependency output files, they are included files with
12247 # $(DEPDIR) in their names. We invoke sed twice because it is the
12248 # simplest approach to changing $(DEPDIR) to its actual value in the
12249 # expansion.
12250 for file in `sed -n "
12251 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12252 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12253 # Make sure the directory exists.
12254 test -f "$dirpart/$file" && continue
12255 fdir=`$as_dirname -- "$file" ||
12256 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12257 X"$file" : 'X\(//\)[^/]' \| \
12258 X"$file" : 'X\(//\)$' \| \
12259 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12260 $as_echo X"$file" |
12261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12262 s//\1/
12263 q
12264 }
12265 /^X\(\/\/\)[^/].*/{
12266 s//\1/
12267 q
12268 }
12269 /^X\(\/\/\)$/{
12270 s//\1/
12271 q
12272 }
12273 /^X\(\/\).*/{
12274 s//\1/
12275 q
12276 }
12277 s/.*/./; q'`
12278 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12279 # echo "creating $dirpart/$file"
12280 echo '# dummy' > "$dirpart/$file"
12281 done
12282 done
12283 }
12284 ;;
12285
12286 esac
12287 done # for ac_tag
12288
12289
12290 as_fn_exit 0
12291 _ACEOF
12292 ac_clean_files=$ac_clean_files_save
12293
12294 test $ac_write_fail = 0 ||
12295 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12296
12297
12298 # configure is writing to config.log, and then calls config.status.
12299 # config.status does its own redirection, appending to config.log.
12300 # Unfortunately, on DOS this fails, as config.log is still kept open
12301 # by configure, so config.status won't be able to write to it; its
12302 # output is simply discarded. So we exec the FD to /dev/null,
12303 # effectively closing config.log, so it can be properly (re)opened and
12304 # appended to by config.status. When coming back to configure, we
12305 # need to make the FD available again.
12306 if test "$no_create" != yes; then
12307 ac_cs_success=:
12308 ac_config_status_args=
12309 test "$silent" = yes &&
12310 ac_config_status_args="$ac_config_status_args --quiet"
12311 exec 5>/dev/null
12312 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12313 exec 5>>config.log
12314 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12315 # would make configure fail if this is the last instruction.
12316 $ac_cs_success || as_fn_exit 1
12317 fi
12318 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12320 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12321 fi
12322
12323