configure revision 1.1.1.4.4.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xfs 1.1.4.
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='xfs'
623 PACKAGE_TARNAME='xfs'
624 PACKAGE_VERSION='1.1.4'
625 PACKAGE_STRING='xfs 1.1.4'
626 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
627 PACKAGE_URL=''
628
629 # Factoring default headers for most tests.
630 ac_includes_default="\
631 #include <stdio.h>
632 #ifdef HAVE_SYS_TYPES_H
633 # include <sys/types.h>
634 #endif
635 #ifdef HAVE_SYS_STAT_H
636 # include <sys/stat.h>
637 #endif
638 #ifdef STDC_HEADERS
639 # include <stdlib.h>
640 # include <stddef.h>
641 #else
642 # ifdef HAVE_STDLIB_H
643 # include <stdlib.h>
644 # endif
645 #endif
646 #ifdef HAVE_STRING_H
647 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
648 # include <memory.h>
649 # endif
650 # include <string.h>
651 #endif
652 #ifdef HAVE_STRINGS_H
653 # include <strings.h>
654 #endif
655 #ifdef HAVE_INTTYPES_H
656 # include <inttypes.h>
657 #endif
658 #ifdef HAVE_STDINT_H
659 # include <stdint.h>
660 #endif
661 #ifdef HAVE_UNISTD_H
662 # include <unistd.h>
663 #endif"
664
665 ac_subst_vars='am__EXEEXT_FALSE
666 am__EXEEXT_TRUE
667 LTLIBOBJS
668 LIBOBJS
669 XFS_LIBS
670 XFS_CFLAGS
671 FONTPATH
672 FONT100DPIDIR
673 FONT75DPIDIR
674 FONTTYPE1DIR
675 FONTTTFDIR
676 FONTOTFDIR
677 FONTMISCDIR
678 FONTROOTDIR
679 CONFIG_FILE_PATH
680 CONFIG_FILE_DESC
681 DEFAULT_CONFIG_FILE
682 LINT_FALSE
683 LINT_TRUE
684 LINT_FLAGS
685 LINT
686 HAVE_STYLESHEETS_FALSE
687 HAVE_STYLESHEETS_TRUE
688 XSL_STYLESHEET
689 STYLESHEET_SRCDIR
690 XORG_SGML_PATH
691 HAVE_FOP_FALSE
692 HAVE_FOP_TRUE
693 FOP
694 HAVE_XMLTO_FALSE
695 HAVE_XMLTO_TRUE
696 HAVE_XMLTO_TEXT_FALSE
697 HAVE_XMLTO_TEXT_TRUE
698 XMLTO
699 ENABLE_DEVEL_DOCS_FALSE
700 ENABLE_DEVEL_DOCS_TRUE
701 MAN_SUBSTS
702 XORG_MAN_PAGE
703 ADMIN_MAN_DIR
704 DRIVER_MAN_DIR
705 MISC_MAN_DIR
706 FILE_MAN_DIR
707 LIB_MAN_DIR
708 APP_MAN_DIR
709 ADMIN_MAN_SUFFIX
710 DRIVER_MAN_SUFFIX
711 MISC_MAN_SUFFIX
712 FILE_MAN_SUFFIX
713 LIB_MAN_SUFFIX
714 APP_MAN_SUFFIX
715 SED
716 host_os
717 host_vendor
718 host_cpu
719 host
720 build_os
721 build_vendor
722 build_cpu
723 build
724 INSTALL_CMD
725 PKG_CONFIG
726 CHANGELOG_CMD
727 STRICT_CFLAGS
728 CWARNFLAGS
729 BASE_CFLAGS
730 AM_BACKSLASH
731 AM_DEFAULT_VERBOSITY
732 AM_DEFAULT_V
733 AM_V
734 am__fastdepCC_FALSE
735 am__fastdepCC_TRUE
736 CCDEPMODE
737 am__nodep
738 AMDEPBACKSLASH
739 AMDEP_FALSE
740 AMDEP_TRUE
741 am__quote
742 am__include
743 DEPDIR
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 EGREP
768 GREP
769 CPP
770 OBJEXT
771 EXEEXT
772 ac_ct_CC
773 CPPFLAGS
774 LDFLAGS
775 CFLAGS
776 CC
777 target_alias
778 host_alias
779 build_alias
780 LIBS
781 ECHO_T
782 ECHO_N
783 ECHO_C
784 DEFS
785 mandir
786 localedir
787 libdir
788 psdir
789 pdfdir
790 dvidir
791 htmldir
792 infodir
793 docdir
794 oldincludedir
795 includedir
796 localstatedir
797 sharedstatedir
798 sysconfdir
799 datadir
800 datarootdir
801 libexecdir
802 sbindir
803 bindir
804 program_transform_name
805 prefix
806 exec_prefix
807 PACKAGE_URL
808 PACKAGE_BUGREPORT
809 PACKAGE_STRING
810 PACKAGE_VERSION
811 PACKAGE_TARNAME
812 PACKAGE_NAME
813 PATH_SEPARATOR
814 SHELL'
815 ac_subst_files=''
816 ac_user_opts='
817 enable_option_checking
818 enable_dependency_tracking
819 enable_silent_rules
820 enable_selective_werror
821 enable_strict_compilation
822 enable_devel_docs
823 with_xmlto
824 with_fop
825 with_lint
826 with_default_config_file
827 with_fontrootdir
828 with_fontmiscdir
829 with_fontotfdir
830 with_fontttfdir
831 with_fonttype1dir
832 with_font75dpidir
833 with_font100dpidir
834 with_default_font_path
835 enable_inetd
836 enable_syslog
837 enable_unix_transport
838 enable_tcp_transport
839 enable_ipv6
840 enable_local_transport
841 '
842 ac_precious_vars='build_alias
843 host_alias
844 target_alias
845 CC
846 CFLAGS
847 LDFLAGS
848 LIBS
849 CPPFLAGS
850 CPP
851 PKG_CONFIG
852 XMLTO
853 FOP
854 LINT
855 LINT_FLAGS
856 XFS_CFLAGS
857 XFS_LIBS'
858
859
860 # Initialize some variables set by options.
861 ac_init_help=
862 ac_init_version=false
863 ac_unrecognized_opts=
864 ac_unrecognized_sep=
865 # The variables have the same names as the options, with
866 # dashes changed to underlines.
867 cache_file=/dev/null
868 exec_prefix=NONE
869 no_create=
870 no_recursion=
871 prefix=NONE
872 program_prefix=NONE
873 program_suffix=NONE
874 program_transform_name=s,x,x,
875 silent=
876 site=
877 srcdir=
878 verbose=
879 x_includes=NONE
880 x_libraries=NONE
881
882 # Installation directory options.
883 # These are left unexpanded so users can "make install exec_prefix=/foo"
884 # and all the variables that are supposed to be based on exec_prefix
885 # by default will actually change.
886 # Use braces instead of parens because sh, perl, etc. also accept them.
887 # (The list follows the same order as the GNU Coding Standards.)
888 bindir='${exec_prefix}/bin'
889 sbindir='${exec_prefix}/sbin'
890 libexecdir='${exec_prefix}/libexec'
891 datarootdir='${prefix}/share'
892 datadir='${datarootdir}'
893 sysconfdir='${prefix}/etc'
894 sharedstatedir='${prefix}/com'
895 localstatedir='${prefix}/var'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir='${datarootdir}/info'
900 htmldir='${docdir}'
901 dvidir='${docdir}'
902 pdfdir='${docdir}'
903 psdir='${docdir}'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
907
908 ac_prev=
909 ac_dashdash=
910 for ac_option
911 do
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
915 ac_prev=
916 continue
917 fi
918
919 case $ac_option in
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 *=) ac_optarg= ;;
922 *) ac_optarg=yes ;;
923 esac
924
925 # Accept the important Cygnus configure options, so we can diagnose typos.
926
927 case $ac_dashdash$ac_option in
928 --)
929 ac_dashdash=yes ;;
930
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 ac_prev=bindir ;;
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934 bindir=$ac_optarg ;;
935
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
940
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
947
948 --config-cache | -C)
949 cache_file=config.cache ;;
950
951 -datadir | --datadir | --datadi | --datad)
952 ac_prev=datadir ;;
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
955
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
962
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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--disable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=no ;;
978
979 -docdir | --docdir | --docdi | --doc | --do)
980 ac_prev=docdir ;;
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982 docdir=$ac_optarg ;;
983
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985 ac_prev=dvidir ;;
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987 dvidir=$ac_optarg ;;
988
989 -enable-* | --enable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998 "enable_$ac_useropt"
999 "*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1013
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1016 with_gas=yes ;;
1017
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1024
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1029
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031 ac_prev=htmldir ;;
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033 | --ht=*)
1034 htmldir=$ac_optarg ;;
1035
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1042
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1044 ac_prev=infodir ;;
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1047
1048 -libdir | --libdir | --libdi | --libd)
1049 ac_prev=libdir ;;
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1052
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1059
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1064
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1071
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073 ac_prev=mandir ;;
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1076
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1079 with_fp=no ;;
1080
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1083 no_create=yes ;;
1084
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087 no_recursion=yes ;;
1088
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1097
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099 ac_prev=prefix ;;
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1102
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1109
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1116
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1133
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135 ac_prev=pdfdir ;;
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1138
1139 -psdir | --psdir | --psdi | --psd | --ps)
1140 ac_prev=psdir ;;
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142 psdir=$ac_optarg ;;
1143
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1146 silent=yes ;;
1147
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 ac_prev=sbindir ;;
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 | --sbi=* | --sb=*)
1152 sbindir=$ac_optarg ;;
1153
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1157 | --sha | --sh)
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 | --sha=* | --sh=*)
1163 sharedstatedir=$ac_optarg ;;
1164
1165 -site | --site | --sit)
1166 ac_prev=site ;;
1167 -site=* | --site=* | --sit=*)
1168 site=$ac_optarg ;;
1169
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 ac_prev=srcdir ;;
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1174
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1181
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1186
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 verbose=yes ;;
1189
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1192
1193 -with-* | --with-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=\$ac_optarg ;;
1208
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=no ;;
1224
1225 --x)
1226 # Obsolete; use --with-x.
1227 with_x=yes ;;
1228
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1235
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1242
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1245 ;;
1246
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253 esac
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1256
1257 *)
1258 # FIXME: should be removed in autoconf 3.0.
1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263 ;;
1264
1265 esac
1266 done
1267
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1271 fi
1272
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1275 no) ;;
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278 esac
1279 fi
1280
1281 # Check all directory arguments for consistency.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1286 do
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1289 case $ac_val in
1290 */ )
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1293 esac
1294 # Be sure to have absolute directory names.
1295 case $ac_val in
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 esac
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300 done
1301
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1308
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1314 If a cross compiler is detected then cross compile mode will be used" >&2
1315 elif test "x$build_alias" != "x$host_alias"; then
1316 cross_compiling=yes
1317 fi
1318 fi
1319
1320 ac_tool_prefix=
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322
1323 test "$silent" = yes && exec 6>/dev/null
1324
1325
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329 as_fn_error $? "working directory cannot be determined"
1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331 as_fn_error $? "pwd does not report name of working directory"
1332
1333
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336 ac_srcdir_defaulted=yes
1337 # Try the directory containing this script, then the parent directory.
1338 ac_confdir=`$as_dirname -- "$as_myself" ||
1339 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340 X"$as_myself" : 'X\(//\)[^/]' \| \
1341 X"$as_myself" : 'X\(//\)$' \| \
1342 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1343 $as_echo X"$as_myself" |
1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)[^/].*/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)$/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\).*/{
1357 s//\1/
1358 q
1359 }
1360 s/.*/./; q'`
1361 srcdir=$ac_confdir
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 srcdir=..
1364 fi
1365 else
1366 ac_srcdir_defaulted=no
1367 fi
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1371 fi
1372 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1373 ac_abs_confdir=`(
1374 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1375 pwd)`
1376 # When building in place, set srcdir=.
1377 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 srcdir=.
1379 fi
1380 # Remove unnecessary trailing slashes from srcdir.
1381 # Double slashes in file names in object file debugging info
1382 # mess up M-x gdb in Emacs.
1383 case $srcdir in
1384 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385 esac
1386 for ac_var in $ac_precious_vars; do
1387 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_env_${ac_var}_value=\$${ac_var}
1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391 done
1392
1393 #
1394 # Report the --help message.
1395 #
1396 if test "$ac_init_help" = "long"; then
1397 # Omit some internal or obsolete options to make the list less imposing.
1398 # This message is too long to be a string in the A/UX 3.1 sh.
1399 cat <<_ACEOF
1400 \`configure' configures xfs 1.1.4 to adapt to many kinds of systems.
1401
1402 Usage: $0 [OPTION]... [VAR=VALUE]...
1403
1404 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405 VAR=VALUE. See below for descriptions of some of the useful variables.
1406
1407 Defaults for the options are specified in brackets.
1408
1409 Configuration:
1410 -h, --help display this help and exit
1411 --help=short display options specific to this package
1412 --help=recursive display the short help of all the included packages
1413 -V, --version display version information and exit
1414 -q, --quiet, --silent do not print \`checking ...' messages
1415 --cache-file=FILE cache test results in FILE [disabled]
1416 -C, --config-cache alias for \`--cache-file=config.cache'
1417 -n, --no-create do not create output files
1418 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419
1420 Installation directories:
1421 --prefix=PREFIX install architecture-independent files in PREFIX
1422 [$ac_default_prefix]
1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 [PREFIX]
1425
1426 By default, \`make install' will install all the files in
1427 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1428 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429 for instance \`--prefix=\$HOME'.
1430
1431 For better control, use the options below.
1432
1433 Fine tuning of the installation directories:
1434 --bindir=DIR user executables [EPREFIX/bin]
1435 --sbindir=DIR system admin executables [EPREFIX/sbin]
1436 --libexecdir=DIR program executables [EPREFIX/libexec]
1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1440 --libdir=DIR object code libraries [EPREFIX/lib]
1441 --includedir=DIR C header files [PREFIX/include]
1442 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1445 --infodir=DIR info documentation [DATAROOTDIR/info]
1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1447 --mandir=DIR man documentation [DATAROOTDIR/man]
1448 --docdir=DIR documentation root [DATAROOTDIR/doc/xfs]
1449 --htmldir=DIR html documentation [DOCDIR]
1450 --dvidir=DIR dvi documentation [DOCDIR]
1451 --pdfdir=DIR pdf documentation [DOCDIR]
1452 --psdir=DIR ps documentation [DOCDIR]
1453 _ACEOF
1454
1455 cat <<\_ACEOF
1456
1457 Program names:
1458 --program-prefix=PREFIX prepend PREFIX to installed program names
1459 --program-suffix=SUFFIX append SUFFIX to installed program names
1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461
1462 System types:
1463 --build=BUILD configure for building on BUILD [guessed]
1464 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1465 _ACEOF
1466 fi
1467
1468 if test -n "$ac_init_help"; then
1469 case $ac_init_help in
1470 short | recursive ) echo "Configuration of xfs 1.1.4:";;
1471 esac
1472 cat <<\_ACEOF
1473
1474 Optional Features:
1475 --disable-option-checking ignore unrecognized --enable/--with options
1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1478 --enable-dependency-tracking
1479 do not reject slow dependency extractors
1480 --disable-dependency-tracking
1481 speeds up one-time build
1482 --enable-silent-rules less verbose build output (undo: "make V=1")
1483 --disable-silent-rules verbose build output (undo: "make V=0")
1484 --disable-selective-werror
1485 Turn off selective compiler errors. (default:
1486 enabled)
1487 --enable-strict-compilation
1488 Enable all warnings from compiler and make them
1489 errors (default: disabled)
1490 --enable-devel-docs Enable building the developer documentation
1491 (default: yes)
1492 --enable-inetd Support -inetd flag for starting from inetd
1493 (default: enabled)
1494 --enable-syslog Support option for logging via syslog (default:
1495 enabled)
1496 --enable-unix-transport Enable UNIX domain socket transport
1497 --enable-tcp-transport Enable TCP socket transport
1498 --enable-ipv6 Enable IPv6 support
1499 --enable-local-transport
1500 Enable os-specific local transport
1501
1502 Optional Packages:
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --with-xmlto Use xmlto to regenerate documentation (default:
1506 auto)
1507 --with-fop Use fop to regenerate documentation (default: auto)
1508 --with-lint Use a lint-style source code checker (default:
1509 disabled)
1510 --with-default-config-file=PATH
1511 comma-separated list of paths to look for config
1512 file when not specified (default:
1513 ${sysconfdir}/X11/fs/config)
1514 --with-fontrootdir=DIR Path to root directory for font files
1515 --with-fontmiscdir=DIR Path to misc files [FONTROOTDIR/misc]
1516 --with-fontotfdir=DIR Path to OTF files [FONTROOTDIR/OTF]
1517 --with-fontttfdir=DIR Path to TTF files [FONTROOTDIR/TTF]
1518 --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1]
1519 --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi]
1520 --with-font100dpidir=DIR
1521 Path to 100dpi files [FONTROOTDIR/100dpi]
1522 --with-default-font-path=PATH
1523 Comma separated list of font dirs
1524
1525 Some influential environment variables:
1526 CC C compiler command
1527 CFLAGS C compiler flags
1528 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1529 nonstandard directory <lib dir>
1530 LIBS libraries to pass to the linker, e.g. -l<library>
1531 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1532 you have headers in a nonstandard directory <include dir>
1533 CPP C preprocessor
1534 PKG_CONFIG path to pkg-config utility
1535 XMLTO Path to xmlto command
1536 FOP Path to fop command
1537 LINT Path to a lint-style command
1538 LINT_FLAGS Flags for the lint-style command
1539 XFS_CFLAGS C compiler flags for XFS, overriding pkg-config
1540 XFS_LIBS linker flags for XFS, overriding pkg-config
1541
1542 Use these variables to override the choices made by `configure' or to help
1543 it to find libraries and programs with nonstandard names/locations.
1544
1545 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1546 _ACEOF
1547 ac_status=$?
1548 fi
1549
1550 if test "$ac_init_help" = "recursive"; then
1551 # If there are subdirs, report their specific --help.
1552 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1553 test -d "$ac_dir" ||
1554 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1555 continue
1556 ac_builddir=.
1557
1558 case "$ac_dir" in
1559 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 *)
1561 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1562 # A ".." for each directory in $ac_dir_suffix.
1563 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1564 case $ac_top_builddir_sub in
1565 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1567 esac ;;
1568 esac
1569 ac_abs_top_builddir=$ac_pwd
1570 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1571 # for backward compatibility:
1572 ac_top_builddir=$ac_top_build_prefix
1573
1574 case $srcdir in
1575 .) # We are building in place.
1576 ac_srcdir=.
1577 ac_top_srcdir=$ac_top_builddir_sub
1578 ac_abs_top_srcdir=$ac_pwd ;;
1579 [\\/]* | ?:[\\/]* ) # Absolute name.
1580 ac_srcdir=$srcdir$ac_dir_suffix;
1581 ac_top_srcdir=$srcdir
1582 ac_abs_top_srcdir=$srcdir ;;
1583 *) # Relative name.
1584 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1585 ac_top_srcdir=$ac_top_build_prefix$srcdir
1586 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1587 esac
1588 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1589
1590 cd "$ac_dir" || { ac_status=$?; continue; }
1591 # Check for guested configure.
1592 if test -f "$ac_srcdir/configure.gnu"; then
1593 echo &&
1594 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1595 elif test -f "$ac_srcdir/configure"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure" --help=recursive
1598 else
1599 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1600 fi || ac_status=$?
1601 cd "$ac_pwd" || { ac_status=$?; break; }
1602 done
1603 fi
1604
1605 test -n "$ac_init_help" && exit $ac_status
1606 if $ac_init_version; then
1607 cat <<\_ACEOF
1608 xfs configure 1.1.4
1609 generated by GNU Autoconf 2.68
1610
1611 Copyright (C) 2010 Free Software Foundation, Inc.
1612 This configure script is free software; the Free Software Foundation
1613 gives unlimited permission to copy, distribute and modify it.
1614 _ACEOF
1615 exit
1616 fi
1617
1618 ## ------------------------ ##
1619 ## Autoconf initialization. ##
1620 ## ------------------------ ##
1621
1622 # ac_fn_c_try_compile LINENO
1623 # --------------------------
1624 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_compile ()
1626 {
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext
1629 if { { ac_try="$ac_compile"
1630 case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_compile") 2>conftest.err
1637 ac_status=$?
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1642 fi
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest.$ac_objext; then :
1648 ac_retval=0
1649 else
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1652
1653 ac_retval=1
1654 fi
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status $ac_retval
1657
1658 } # ac_fn_c_try_compile
1659
1660 # ac_fn_c_try_cpp LINENO
1661 # ----------------------
1662 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1663 ac_fn_c_try_cpp ()
1664 {
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 if { { ac_try="$ac_cpp conftest.$ac_ext"
1667 case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1674 ac_status=$?
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1679 fi
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } > conftest.i && {
1682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 }; then :
1685 ac_retval=0
1686 else
1687 $as_echo "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1689
1690 ac_retval=1
1691 fi
1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693 as_fn_set_status $ac_retval
1694
1695 } # ac_fn_c_try_cpp
1696
1697 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1698 # -------------------------------------------------------
1699 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1700 # the include files in INCLUDES and setting the cache variable VAR
1701 # accordingly.
1702 ac_fn_c_check_header_mongrel ()
1703 {
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 if eval \${$3+:} false; then :
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval \${$3+:} false; then :
1709 $as_echo_n "(cached) " >&6
1710 fi
1711 eval ac_res=\$$3
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713 $as_echo "$ac_res" >&6; }
1714 else
1715 # Is the header compilable?
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1717 $as_echo_n "checking $2 usability... " >&6; }
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1720 $4
1721 #include <$2>
1722 _ACEOF
1723 if ac_fn_c_try_compile "$LINENO"; then :
1724 ac_header_compiler=yes
1725 else
1726 ac_header_compiler=no
1727 fi
1728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1730 $as_echo "$ac_header_compiler" >&6; }
1731
1732 # Is the header present?
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1734 $as_echo_n "checking $2 presence... " >&6; }
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1737 #include <$2>
1738 _ACEOF
1739 if ac_fn_c_try_cpp "$LINENO"; then :
1740 ac_header_preproc=yes
1741 else
1742 ac_header_preproc=no
1743 fi
1744 rm -f conftest.err conftest.i conftest.$ac_ext
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1746 $as_echo "$ac_header_preproc" >&6; }
1747
1748 # So? What about this header?
1749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1750 yes:no: )
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1752 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1754 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1755 ;;
1756 no:yes:* )
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1758 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1760 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1762 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1764 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1766 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1767 ( $as_echo "## ---------------------------------------------------------------------- ##
1768 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1769 ## ---------------------------------------------------------------------- ##"
1770 ) | sed "s/^/$as_me: WARNING: /" >&2
1771 ;;
1772 esac
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if eval \${$3+:} false; then :
1776 $as_echo_n "(cached) " >&6
1777 else
1778 eval "$3=\$ac_header_compiler"
1779 fi
1780 eval ac_res=\$$3
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783 fi
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785
1786 } # ac_fn_c_check_header_mongrel
1787
1788 # ac_fn_c_try_run LINENO
1789 # ----------------------
1790 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1791 # that executables *can* be run.
1792 ac_fn_c_try_run ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 if { { ac_try="$ac_link"
1796 case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>&5
1803 ac_status=$?
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1806 { { case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_try") 2>&5
1813 ac_status=$?
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; }; }; then :
1816 ac_retval=0
1817 else
1818 $as_echo "$as_me: program exited with status $ac_status" >&5
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=$ac_status
1823 fi
1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1827
1828 } # ac_fn_c_try_run
1829
1830 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1831 # -------------------------------------------------------
1832 # Tests whether HEADER exists and can be compiled using the include files in
1833 # INCLUDES, setting the cache variable VAR accordingly.
1834 ac_fn_c_check_header_compile ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if eval \${$3+:} false; then :
1840 $as_echo_n "(cached) " >&6
1841 else
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1844 $4
1845 #include <$2>
1846 _ACEOF
1847 if ac_fn_c_try_compile "$LINENO"; then :
1848 eval "$3=yes"
1849 else
1850 eval "$3=no"
1851 fi
1852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853 fi
1854 eval ac_res=\$$3
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859 } # ac_fn_c_check_header_compile
1860
1861 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1862 # ---------------------------------------------
1863 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1864 # accordingly.
1865 ac_fn_c_check_decl ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 as_decl_name=`echo $2|sed 's/ *(.*//'`
1869 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1871 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1872 if eval \${$3+:} false; then :
1873 $as_echo_n "(cached) " >&6
1874 else
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1877 $4
1878 int
1879 main ()
1880 {
1881 #ifndef $as_decl_name
1882 #ifdef __cplusplus
1883 (void) $as_decl_use;
1884 #else
1885 (void) $as_decl_name;
1886 #endif
1887 #endif
1888
1889 ;
1890 return 0;
1891 }
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894 eval "$3=yes"
1895 else
1896 eval "$3=no"
1897 fi
1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 fi
1900 eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904
1905 } # ac_fn_c_check_decl
1906
1907 # ac_fn_c_try_link LINENO
1908 # -----------------------
1909 # Try to link conftest.$ac_ext, and return whether this succeeded.
1910 ac_fn_c_try_link ()
1911 {
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 rm -f conftest.$ac_objext conftest$ac_exeext
1914 if { { ac_try="$ac_link"
1915 case "(($ac_try" in
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1918 esac
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_link") 2>conftest.err
1922 ac_status=$?
1923 if test -s conftest.err; then
1924 grep -v '^ *+' conftest.err >conftest.er1
1925 cat conftest.er1 >&5
1926 mv -f conftest.er1 conftest.err
1927 fi
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } && {
1930 test -z "$ac_c_werror_flag" ||
1931 test ! -s conftest.err
1932 } && test -s conftest$ac_exeext && {
1933 test "$cross_compiling" = yes ||
1934 $as_test_x conftest$ac_exeext
1935 }; then :
1936 ac_retval=0
1937 else
1938 $as_echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1940
1941 ac_retval=1
1942 fi
1943 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1944 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1945 # interfere with the next link command; also delete a directory that is
1946 # left behind by Apple's compiler. We do this before executing the actions.
1947 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949 as_fn_set_status $ac_retval
1950
1951 } # ac_fn_c_try_link
1952
1953 # ac_fn_c_check_func LINENO FUNC VAR
1954 # ----------------------------------
1955 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1956 ac_fn_c_check_func ()
1957 {
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if eval \${$3+:} false; then :
1962 $as_echo_n "(cached) " >&6
1963 else
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1966 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1968 #define $2 innocuous_$2
1969
1970 /* System header to define __stub macros and hopefully few prototypes,
1971 which can conflict with char $2 (); below.
1972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1973 <limits.h> exists even on freestanding compilers. */
1974
1975 #ifdef __STDC__
1976 # include <limits.h>
1977 #else
1978 # include <assert.h>
1979 #endif
1980
1981 #undef $2
1982
1983 /* Override any GCC internal prototype to avoid an error.
1984 Use char because int might match the return type of a GCC
1985 builtin and then its argument prototype would still apply. */
1986 #ifdef __cplusplus
1987 extern "C"
1988 #endif
1989 char $2 ();
1990 /* The GNU C library defines this for functions which it implements
1991 to always fail with ENOSYS. Some functions are actually named
1992 something starting with __ and the normal name is an alias. */
1993 #if defined __stub_$2 || defined __stub___$2
1994 choke me
1995 #endif
1996
1997 int
1998 main ()
1999 {
2000 return $2 ();
2001 ;
2002 return 0;
2003 }
2004 _ACEOF
2005 if ac_fn_c_try_link "$LINENO"; then :
2006 eval "$3=yes"
2007 else
2008 eval "$3=no"
2009 fi
2010 rm -f core conftest.err conftest.$ac_objext \
2011 conftest$ac_exeext conftest.$ac_ext
2012 fi
2013 eval ac_res=\$$3
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015 $as_echo "$ac_res" >&6; }
2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017
2018 } # ac_fn_c_check_func
2019
2020 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2021 # ----------------------------------------------------
2022 # Tries to find if the field MEMBER exists in type AGGR, after including
2023 # INCLUDES, setting cache variable VAR accordingly.
2024 ac_fn_c_check_member ()
2025 {
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2028 $as_echo_n "checking for $2.$3... " >&6; }
2029 if eval \${$4+:} false; then :
2030 $as_echo_n "(cached) " >&6
2031 else
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2034 $5
2035 int
2036 main ()
2037 {
2038 static $2 ac_aggr;
2039 if (ac_aggr.$3)
2040 return 0;
2041 ;
2042 return 0;
2043 }
2044 _ACEOF
2045 if ac_fn_c_try_compile "$LINENO"; then :
2046 eval "$4=yes"
2047 else
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2050 $5
2051 int
2052 main ()
2053 {
2054 static $2 ac_aggr;
2055 if (sizeof ac_aggr.$3)
2056 return 0;
2057 ;
2058 return 0;
2059 }
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062 eval "$4=yes"
2063 else
2064 eval "$4=no"
2065 fi
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 fi
2070 eval ac_res=\$$4
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074
2075 } # ac_fn_c_check_member
2076
2077 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2078 # -------------------------------------------
2079 # Tests whether TYPE exists after having included INCLUDES, setting cache
2080 # variable VAR accordingly.
2081 ac_fn_c_check_type ()
2082 {
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085 $as_echo_n "checking for $2... " >&6; }
2086 if eval \${$3+:} false; then :
2087 $as_echo_n "(cached) " >&6
2088 else
2089 eval "$3=no"
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 $4
2093 int
2094 main ()
2095 {
2096 if (sizeof ($2))
2097 return 0;
2098 ;
2099 return 0;
2100 }
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2105 $4
2106 int
2107 main ()
2108 {
2109 if (sizeof (($2)))
2110 return 0;
2111 ;
2112 return 0;
2113 }
2114 _ACEOF
2115 if ac_fn_c_try_compile "$LINENO"; then :
2116
2117 else
2118 eval "$3=yes"
2119 fi
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 fi
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 fi
2124 eval ac_res=\$$3
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128
2129 } # ac_fn_c_check_type
2130 cat >config.log <<_ACEOF
2131 This file contains any messages produced by compilers while
2132 running configure, to aid debugging if configure makes a mistake.
2133
2134 It was created by xfs $as_me 1.1.4, which was
2135 generated by GNU Autoconf 2.68. Invocation command line was
2136
2137 $ $0 $@
2138
2139 _ACEOF
2140 exec 5>>config.log
2141 {
2142 cat <<_ASUNAME
2143 ## --------- ##
2144 ## Platform. ##
2145 ## --------- ##
2146
2147 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2148 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2149 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2150 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2151 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2152
2153 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2154 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2155
2156 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2157 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2158 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2159 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2160 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2161 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2162 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2163
2164 _ASUNAME
2165
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 for as_dir in $PATH
2168 do
2169 IFS=$as_save_IFS
2170 test -z "$as_dir" && as_dir=.
2171 $as_echo "PATH: $as_dir"
2172 done
2173 IFS=$as_save_IFS
2174
2175 } >&5
2176
2177 cat >&5 <<_ACEOF
2178
2179
2180 ## ----------- ##
2181 ## Core tests. ##
2182 ## ----------- ##
2183
2184 _ACEOF
2185
2186
2187 # Keep a trace of the command line.
2188 # Strip out --no-create and --no-recursion so they do not pile up.
2189 # Strip out --silent because we don't want to record it for future runs.
2190 # Also quote any args containing shell meta-characters.
2191 # Make two passes to allow for proper duplicate-argument suppression.
2192 ac_configure_args=
2193 ac_configure_args0=
2194 ac_configure_args1=
2195 ac_must_keep_next=false
2196 for ac_pass in 1 2
2197 do
2198 for ac_arg
2199 do
2200 case $ac_arg in
2201 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2203 | -silent | --silent | --silen | --sile | --sil)
2204 continue ;;
2205 *\'*)
2206 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2207 esac
2208 case $ac_pass in
2209 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2210 2)
2211 as_fn_append ac_configure_args1 " '$ac_arg'"
2212 if test $ac_must_keep_next = true; then
2213 ac_must_keep_next=false # Got value, back to normal.
2214 else
2215 case $ac_arg in
2216 *=* | --config-cache | -C | -disable-* | --disable-* \
2217 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2218 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2219 | -with-* | --with-* | -without-* | --without-* | --x)
2220 case "$ac_configure_args0 " in
2221 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2222 esac
2223 ;;
2224 -* ) ac_must_keep_next=true ;;
2225 esac
2226 fi
2227 as_fn_append ac_configure_args " '$ac_arg'"
2228 ;;
2229 esac
2230 done
2231 done
2232 { ac_configure_args0=; unset ac_configure_args0;}
2233 { ac_configure_args1=; unset ac_configure_args1;}
2234
2235 # When interrupted or exit'd, cleanup temporary files, and complete
2236 # config.log. We remove comments because anyway the quotes in there
2237 # would cause problems or look ugly.
2238 # WARNING: Use '\'' to represent an apostrophe within the trap.
2239 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2240 trap 'exit_status=$?
2241 # Save into config.log some information that might help in debugging.
2242 {
2243 echo
2244
2245 $as_echo "## ---------------- ##
2246 ## Cache variables. ##
2247 ## ---------------- ##"
2248 echo
2249 # The following way of writing the cache mishandles newlines in values,
2250 (
2251 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2252 eval ac_val=\$$ac_var
2253 case $ac_val in #(
2254 *${as_nl}*)
2255 case $ac_var in #(
2256 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2257 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2258 esac
2259 case $ac_var in #(
2260 _ | IFS | as_nl) ;; #(
2261 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2262 *) { eval $ac_var=; unset $ac_var;} ;;
2263 esac ;;
2264 esac
2265 done
2266 (set) 2>&1 |
2267 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2268 *${as_nl}ac_space=\ *)
2269 sed -n \
2270 "s/'\''/'\''\\\\'\'''\''/g;
2271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2272 ;; #(
2273 *)
2274 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2275 ;;
2276 esac |
2277 sort
2278 )
2279 echo
2280
2281 $as_echo "## ----------------- ##
2282 ## Output variables. ##
2283 ## ----------------- ##"
2284 echo
2285 for ac_var in $ac_subst_vars
2286 do
2287 eval ac_val=\$$ac_var
2288 case $ac_val in
2289 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2290 esac
2291 $as_echo "$ac_var='\''$ac_val'\''"
2292 done | sort
2293 echo
2294
2295 if test -n "$ac_subst_files"; then
2296 $as_echo "## ------------------- ##
2297 ## File substitutions. ##
2298 ## ------------------- ##"
2299 echo
2300 for ac_var in $ac_subst_files
2301 do
2302 eval ac_val=\$$ac_var
2303 case $ac_val in
2304 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2305 esac
2306 $as_echo "$ac_var='\''$ac_val'\''"
2307 done | sort
2308 echo
2309 fi
2310
2311 if test -s confdefs.h; then
2312 $as_echo "## ----------- ##
2313 ## confdefs.h. ##
2314 ## ----------- ##"
2315 echo
2316 cat confdefs.h
2317 echo
2318 fi
2319 test "$ac_signal" != 0 &&
2320 $as_echo "$as_me: caught signal $ac_signal"
2321 $as_echo "$as_me: exit $exit_status"
2322 } >&5
2323 rm -f core *.core core.conftest.* &&
2324 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2325 exit $exit_status
2326 ' 0
2327 for ac_signal in 1 2 13 15; do
2328 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2329 done
2330 ac_signal=0
2331
2332 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2333 rm -f -r conftest* confdefs.h
2334
2335 $as_echo "/* confdefs.h */" > confdefs.h
2336
2337 # Predefined preprocessor variables.
2338
2339 cat >>confdefs.h <<_ACEOF
2340 #define PACKAGE_NAME "$PACKAGE_NAME"
2341 _ACEOF
2342
2343 cat >>confdefs.h <<_ACEOF
2344 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2345 _ACEOF
2346
2347 cat >>confdefs.h <<_ACEOF
2348 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2349 _ACEOF
2350
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_STRING "$PACKAGE_STRING"
2353 _ACEOF
2354
2355 cat >>confdefs.h <<_ACEOF
2356 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2357 _ACEOF
2358
2359 cat >>confdefs.h <<_ACEOF
2360 #define PACKAGE_URL "$PACKAGE_URL"
2361 _ACEOF
2362
2363
2364 # Let the site file select an alternate cache file if it wants to.
2365 # Prefer an explicitly selected file to automatically selected ones.
2366 ac_site_file1=NONE
2367 ac_site_file2=NONE
2368 if test -n "$CONFIG_SITE"; then
2369 # We do not want a PATH search for config.site.
2370 case $CONFIG_SITE in #((
2371 -*) ac_site_file1=./$CONFIG_SITE;;
2372 */*) ac_site_file1=$CONFIG_SITE;;
2373 *) ac_site_file1=./$CONFIG_SITE;;
2374 esac
2375 elif test "x$prefix" != xNONE; then
2376 ac_site_file1=$prefix/share/config.site
2377 ac_site_file2=$prefix/etc/config.site
2378 else
2379 ac_site_file1=$ac_default_prefix/share/config.site
2380 ac_site_file2=$ac_default_prefix/etc/config.site
2381 fi
2382 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2383 do
2384 test "x$ac_site_file" = xNONE && continue
2385 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2387 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2388 sed 's/^/| /' "$ac_site_file" >&5
2389 . "$ac_site_file" \
2390 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2392 as_fn_error $? "failed to load site script $ac_site_file
2393 See \`config.log' for more details" "$LINENO" 5; }
2394 fi
2395 done
2396
2397 if test -r "$cache_file"; then
2398 # Some versions of bash will fail to source /dev/null (special files
2399 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2400 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2402 $as_echo "$as_me: loading cache $cache_file" >&6;}
2403 case $cache_file in
2404 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2405 *) . "./$cache_file";;
2406 esac
2407 fi
2408 else
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2410 $as_echo "$as_me: creating cache $cache_file" >&6;}
2411 >$cache_file
2412 fi
2413
2414 # Check that the precious variables saved in the cache have kept the same
2415 # value.
2416 ac_cache_corrupted=false
2417 for ac_var in $ac_precious_vars; do
2418 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2419 eval ac_new_set=\$ac_env_${ac_var}_set
2420 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2421 eval ac_new_val=\$ac_env_${ac_var}_value
2422 case $ac_old_set,$ac_new_set in
2423 set,)
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2425 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2426 ac_cache_corrupted=: ;;
2427 ,set)
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2429 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2430 ac_cache_corrupted=: ;;
2431 ,);;
2432 *)
2433 if test "x$ac_old_val" != "x$ac_new_val"; then
2434 # differences in whitespace do not lead to failure.
2435 ac_old_val_w=`echo x $ac_old_val`
2436 ac_new_val_w=`echo x $ac_new_val`
2437 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2439 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2440 ac_cache_corrupted=:
2441 else
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2443 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2444 eval $ac_var=\$ac_old_val
2445 fi
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2447 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2449 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2450 fi;;
2451 esac
2452 # Pass precious variables to config.status.
2453 if test "$ac_new_set" = set; then
2454 case $ac_new_val in
2455 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2456 *) ac_arg=$ac_var=$ac_new_val ;;
2457 esac
2458 case " $ac_configure_args " in
2459 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2460 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2461 esac
2462 fi
2463 done
2464 if $ac_cache_corrupted; then
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2468 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2469 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2470 fi
2471 ## -------------------- ##
2472 ## Main body of script. ##
2473 ## -------------------- ##
2474
2475 ac_ext=c
2476 ac_cpp='$CPP $CPPFLAGS'
2477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2480
2481
2482 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2483 # Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2484 # expand $ac_aux_dir to an absolute path
2485 am_aux_dir=`cd $ac_aux_dir && pwd`
2486
2487 ac_ext=c
2488 ac_cpp='$CPP $CPPFLAGS'
2489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2492 if test -n "$ac_tool_prefix"; then
2493 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2494 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2496 $as_echo_n "checking for $ac_word... " >&6; }
2497 if ${ac_cv_prog_CC+:} false; then :
2498 $as_echo_n "(cached) " >&6
2499 else
2500 if test -n "$CC"; then
2501 ac_cv_prog_CC="$CC" # Let the user override the test.
2502 else
2503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504 for as_dir in $PATH
2505 do
2506 IFS=$as_save_IFS
2507 test -z "$as_dir" && as_dir=.
2508 for ac_exec_ext in '' $ac_executable_extensions; do
2509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2510 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2512 break 2
2513 fi
2514 done
2515 done
2516 IFS=$as_save_IFS
2517
2518 fi
2519 fi
2520 CC=$ac_cv_prog_CC
2521 if test -n "$CC"; then
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2523 $as_echo "$CC" >&6; }
2524 else
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2526 $as_echo "no" >&6; }
2527 fi
2528
2529
2530 fi
2531 if test -z "$ac_cv_prog_CC"; then
2532 ac_ct_CC=$CC
2533 # Extract the first word of "gcc", so it can be a program name with args.
2534 set dummy gcc; ac_word=$2
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2536 $as_echo_n "checking for $ac_word... " >&6; }
2537 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2538 $as_echo_n "(cached) " >&6
2539 else
2540 if test -n "$ac_ct_CC"; then
2541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_ac_ct_CC="gcc"
2551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2553 fi
2554 done
2555 done
2556 IFS=$as_save_IFS
2557
2558 fi
2559 fi
2560 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2561 if test -n "$ac_ct_CC"; then
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2563 $as_echo "$ac_ct_CC" >&6; }
2564 else
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2566 $as_echo "no" >&6; }
2567 fi
2568
2569 if test "x$ac_ct_CC" = x; then
2570 CC=""
2571 else
2572 case $cross_compiling:$ac_tool_warned in
2573 yes:)
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2576 ac_tool_warned=yes ;;
2577 esac
2578 CC=$ac_ct_CC
2579 fi
2580 else
2581 CC="$ac_cv_prog_CC"
2582 fi
2583
2584 if test -z "$CC"; then
2585 if test -n "$ac_tool_prefix"; then
2586 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2587 set dummy ${ac_tool_prefix}cc; ac_word=$2
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2589 $as_echo_n "checking for $ac_word... " >&6; }
2590 if ${ac_cv_prog_CC+:} false; then :
2591 $as_echo_n "(cached) " >&6
2592 else
2593 if test -n "$CC"; then
2594 ac_cv_prog_CC="$CC" # Let the user override the test.
2595 else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2598 do
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2603 ac_cv_prog_CC="${ac_tool_prefix}cc"
2604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 break 2
2606 fi
2607 done
2608 done
2609 IFS=$as_save_IFS
2610
2611 fi
2612 fi
2613 CC=$ac_cv_prog_CC
2614 if test -n "$CC"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2616 $as_echo "$CC" >&6; }
2617 else
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619 $as_echo "no" >&6; }
2620 fi
2621
2622
2623 fi
2624 fi
2625 if test -z "$CC"; then
2626 # Extract the first word of "cc", so it can be a program name with args.
2627 set dummy cc; ac_word=$2
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629 $as_echo_n "checking for $ac_word... " >&6; }
2630 if ${ac_cv_prog_CC+:} false; then :
2631 $as_echo_n "(cached) " >&6
2632 else
2633 if test -n "$CC"; then
2634 ac_cv_prog_CC="$CC" # Let the user override the test.
2635 else
2636 ac_prog_rejected=no
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH
2639 do
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2645 ac_prog_rejected=yes
2646 continue
2647 fi
2648 ac_cv_prog_CC="cc"
2649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 break 2
2651 fi
2652 done
2653 done
2654 IFS=$as_save_IFS
2655
2656 if test $ac_prog_rejected = yes; then
2657 # We found a bogon in the path, so make sure we never use it.
2658 set dummy $ac_cv_prog_CC
2659 shift
2660 if test $# != 0; then
2661 # We chose a different compiler from the bogus one.
2662 # However, it has the same basename, so the bogon will be chosen
2663 # first if we set CC to just the basename; use the full file name.
2664 shift
2665 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2666 fi
2667 fi
2668 fi
2669 fi
2670 CC=$ac_cv_prog_CC
2671 if test -n "$CC"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2673 $as_echo "$CC" >&6; }
2674 else
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2677 fi
2678
2679
2680 fi
2681 if test -z "$CC"; then
2682 if test -n "$ac_tool_prefix"; then
2683 for ac_prog in cl.exe
2684 do
2685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688 $as_echo_n "checking for $ac_word... " >&6; }
2689 if ${ac_cv_prog_CC+:} false; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 if test -n "$CC"; then
2693 ac_cv_prog_CC="$CC" # Let the user override the test.
2694 else
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2697 do
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2702 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 break 2
2705 fi
2706 done
2707 done
2708 IFS=$as_save_IFS
2709
2710 fi
2711 fi
2712 CC=$ac_cv_prog_CC
2713 if test -n "$CC"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2715 $as_echo "$CC" >&6; }
2716 else
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718 $as_echo "no" >&6; }
2719 fi
2720
2721
2722 test -n "$CC" && break
2723 done
2724 fi
2725 if test -z "$CC"; then
2726 ac_ct_CC=$CC
2727 for ac_prog in cl.exe
2728 do
2729 # Extract the first word of "$ac_prog", so it can be a program name with args.
2730 set dummy $ac_prog; ac_word=$2
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732 $as_echo_n "checking for $ac_word... " >&6; }
2733 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2734 $as_echo_n "(cached) " >&6
2735 else
2736 if test -n "$ac_ct_CC"; then
2737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2741 do
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2746 ac_cv_prog_ac_ct_CC="$ac_prog"
2747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 break 2
2749 fi
2750 done
2751 done
2752 IFS=$as_save_IFS
2753
2754 fi
2755 fi
2756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2757 if test -n "$ac_ct_CC"; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2759 $as_echo "$ac_ct_CC" >&6; }
2760 else
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762 $as_echo "no" >&6; }
2763 fi
2764
2765
2766 test -n "$ac_ct_CC" && break
2767 done
2768
2769 if test "x$ac_ct_CC" = x; then
2770 CC=""
2771 else
2772 case $cross_compiling:$ac_tool_warned in
2773 yes:)
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2776 ac_tool_warned=yes ;;
2777 esac
2778 CC=$ac_ct_CC
2779 fi
2780 fi
2781
2782 fi
2783
2784
2785 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2787 as_fn_error $? "no acceptable C compiler found in \$PATH
2788 See \`config.log' for more details" "$LINENO" 5; }
2789
2790 # Provide some information about the compiler.
2791 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2792 set X $ac_compile
2793 ac_compiler=$2
2794 for ac_option in --version -v -V -qversion; do
2795 { { ac_try="$ac_compiler $ac_option >&5"
2796 case "(($ac_try" in
2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798 *) ac_try_echo=$ac_try;;
2799 esac
2800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2801 $as_echo "$ac_try_echo"; } >&5
2802 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2803 ac_status=$?
2804 if test -s conftest.err; then
2805 sed '10a\
2806 ... rest of stderr output deleted ...
2807 10q' conftest.err >conftest.er1
2808 cat conftest.er1 >&5
2809 fi
2810 rm -f conftest.er1 conftest.err
2811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2812 test $ac_status = 0; }
2813 done
2814
2815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2816 /* end confdefs.h. */
2817
2818 int
2819 main ()
2820 {
2821
2822 ;
2823 return 0;
2824 }
2825 _ACEOF
2826 ac_clean_files_save=$ac_clean_files
2827 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2828 # Try to create an executable without -o first, disregard a.out.
2829 # It will help us diagnose broken compilers, and finding out an intuition
2830 # of exeext.
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2832 $as_echo_n "checking whether the C compiler works... " >&6; }
2833 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2834
2835 # The possible output files:
2836 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2837
2838 ac_rmfiles=
2839 for ac_file in $ac_files
2840 do
2841 case $ac_file in
2842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2843 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2844 esac
2845 done
2846 rm -f $ac_rmfiles
2847
2848 if { { ac_try="$ac_link_default"
2849 case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2852 esac
2853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2854 $as_echo "$ac_try_echo"; } >&5
2855 (eval "$ac_link_default") 2>&5
2856 ac_status=$?
2857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2858 test $ac_status = 0; }; then :
2859 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2860 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2861 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2862 # so that the user can short-circuit this test for compilers unknown to
2863 # Autoconf.
2864 for ac_file in $ac_files ''
2865 do
2866 test -f "$ac_file" || continue
2867 case $ac_file in
2868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2869 ;;
2870 [ab].out )
2871 # We found the default executable, but exeext='' is most
2872 # certainly right.
2873 break;;
2874 *.* )
2875 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2876 then :; else
2877 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2878 fi
2879 # We set ac_cv_exeext here because the later test for it is not
2880 # safe: cross compilers may not add the suffix if given an `-o'
2881 # argument, so we may need to know it at that point already.
2882 # Even if this section looks crufty: it has the advantage of
2883 # actually working.
2884 break;;
2885 * )
2886 break;;
2887 esac
2888 done
2889 test "$ac_cv_exeext" = no && ac_cv_exeext=
2890
2891 else
2892 ac_file=''
2893 fi
2894 if test -z "$ac_file"; then :
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2897 $as_echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2899
2900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2902 as_fn_error 77 "C compiler cannot create executables
2903 See \`config.log' for more details" "$LINENO" 5; }
2904 else
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2906 $as_echo "yes" >&6; }
2907 fi
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2909 $as_echo_n "checking for C compiler default output file name... " >&6; }
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2911 $as_echo "$ac_file" >&6; }
2912 ac_exeext=$ac_cv_exeext
2913
2914 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2915 ac_clean_files=$ac_clean_files_save
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2917 $as_echo_n "checking for suffix of executables... " >&6; }
2918 if { { ac_try="$ac_link"
2919 case "(($ac_try" in
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2922 esac
2923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2924 $as_echo "$ac_try_echo"; } >&5
2925 (eval "$ac_link") 2>&5
2926 ac_status=$?
2927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2928 test $ac_status = 0; }; then :
2929 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2930 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2931 # work properly (i.e., refer to `conftest.exe'), while it won't with
2932 # `rm'.
2933 for ac_file in conftest.exe conftest conftest.*; do
2934 test -f "$ac_file" || continue
2935 case $ac_file in
2936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2937 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2938 break;;
2939 * ) break;;
2940 esac
2941 done
2942 else
2943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2945 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2946 See \`config.log' for more details" "$LINENO" 5; }
2947 fi
2948 rm -f conftest conftest$ac_cv_exeext
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2950 $as_echo "$ac_cv_exeext" >&6; }
2951
2952 rm -f conftest.$ac_ext
2953 EXEEXT=$ac_cv_exeext
2954 ac_exeext=$EXEEXT
2955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2956 /* end confdefs.h. */
2957 #include <stdio.h>
2958 int
2959 main ()
2960 {
2961 FILE *f = fopen ("conftest.out", "w");
2962 return ferror (f) || fclose (f) != 0;
2963
2964 ;
2965 return 0;
2966 }
2967 _ACEOF
2968 ac_clean_files="$ac_clean_files conftest.out"
2969 # Check that the compiler produces executables we can run. If not, either
2970 # the compiler is broken, or we cross compile.
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2972 $as_echo_n "checking whether we are cross compiling... " >&6; }
2973 if test "$cross_compiling" != yes; then
2974 { { ac_try="$ac_link"
2975 case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978 esac
2979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980 $as_echo "$ac_try_echo"; } >&5
2981 (eval "$ac_link") 2>&5
2982 ac_status=$?
2983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2984 test $ac_status = 0; }
2985 if { ac_try='./conftest$ac_cv_exeext'
2986 { { case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989 esac
2990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2991 $as_echo "$ac_try_echo"; } >&5
2992 (eval "$ac_try") 2>&5
2993 ac_status=$?
2994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2995 test $ac_status = 0; }; }; then
2996 cross_compiling=no
2997 else
2998 if test "$cross_compiling" = maybe; then
2999 cross_compiling=yes
3000 else
3001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3003 as_fn_error $? "cannot run C compiled programs.
3004 If you meant to cross compile, use \`--host'.
3005 See \`config.log' for more details" "$LINENO" 5; }
3006 fi
3007 fi
3008 fi
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3010 $as_echo "$cross_compiling" >&6; }
3011
3012 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3013 ac_clean_files=$ac_clean_files_save
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3015 $as_echo_n "checking for suffix of object files... " >&6; }
3016 if ${ac_cv_objext+:} false; then :
3017 $as_echo_n "(cached) " >&6
3018 else
3019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020 /* end confdefs.h. */
3021
3022 int
3023 main ()
3024 {
3025
3026 ;
3027 return 0;
3028 }
3029 _ACEOF
3030 rm -f conftest.o conftest.obj
3031 if { { ac_try="$ac_compile"
3032 case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035 esac
3036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3037 $as_echo "$ac_try_echo"; } >&5
3038 (eval "$ac_compile") 2>&5
3039 ac_status=$?
3040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3041 test $ac_status = 0; }; then :
3042 for ac_file in conftest.o conftest.obj conftest.*; do
3043 test -f "$ac_file" || continue;
3044 case $ac_file in
3045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3046 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3047 break;;
3048 esac
3049 done
3050 else
3051 $as_echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3053
3054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056 as_fn_error $? "cannot compute suffix of object files: cannot compile
3057 See \`config.log' for more details" "$LINENO" 5; }
3058 fi
3059 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3060 fi
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3062 $as_echo "$ac_cv_objext" >&6; }
3063 OBJEXT=$ac_cv_objext
3064 ac_objext=$OBJEXT
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3066 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3067 if ${ac_cv_c_compiler_gnu+:} false; then :
3068 $as_echo_n "(cached) " >&6
3069 else
3070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071 /* end confdefs.h. */
3072
3073 int
3074 main ()
3075 {
3076 #ifndef __GNUC__
3077 choke me
3078 #endif
3079
3080 ;
3081 return 0;
3082 }
3083 _ACEOF
3084 if ac_fn_c_try_compile "$LINENO"; then :
3085 ac_compiler_gnu=yes
3086 else
3087 ac_compiler_gnu=no
3088 fi
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3091
3092 fi
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3094 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3095 if test $ac_compiler_gnu = yes; then
3096 GCC=yes
3097 else
3098 GCC=
3099 fi
3100 ac_test_CFLAGS=${CFLAGS+set}
3101 ac_save_CFLAGS=$CFLAGS
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3103 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3104 if ${ac_cv_prog_cc_g+:} false; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 ac_save_c_werror_flag=$ac_c_werror_flag
3108 ac_c_werror_flag=yes
3109 ac_cv_prog_cc_g=no
3110 CFLAGS="-g"
3111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112 /* end confdefs.h. */
3113
3114 int
3115 main ()
3116 {
3117
3118 ;
3119 return 0;
3120 }
3121 _ACEOF
3122 if ac_fn_c_try_compile "$LINENO"; then :
3123 ac_cv_prog_cc_g=yes
3124 else
3125 CFLAGS=""
3126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3127 /* end confdefs.h. */
3128
3129 int
3130 main ()
3131 {
3132
3133 ;
3134 return 0;
3135 }
3136 _ACEOF
3137 if ac_fn_c_try_compile "$LINENO"; then :
3138
3139 else
3140 ac_c_werror_flag=$ac_save_c_werror_flag
3141 CFLAGS="-g"
3142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143 /* end confdefs.h. */
3144
3145 int
3146 main ()
3147 {
3148
3149 ;
3150 return 0;
3151 }
3152 _ACEOF
3153 if ac_fn_c_try_compile "$LINENO"; then :
3154 ac_cv_prog_cc_g=yes
3155 fi
3156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3157 fi
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159 fi
3160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 ac_c_werror_flag=$ac_save_c_werror_flag
3162 fi
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3164 $as_echo "$ac_cv_prog_cc_g" >&6; }
3165 if test "$ac_test_CFLAGS" = set; then
3166 CFLAGS=$ac_save_CFLAGS
3167 elif test $ac_cv_prog_cc_g = yes; then
3168 if test "$GCC" = yes; then
3169 CFLAGS="-g -O2"
3170 else
3171 CFLAGS="-g"
3172 fi
3173 else
3174 if test "$GCC" = yes; then
3175 CFLAGS="-O2"
3176 else
3177 CFLAGS=
3178 fi
3179 fi
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3181 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3182 if ${ac_cv_prog_cc_c89+:} false; then :
3183 $as_echo_n "(cached) " >&6
3184 else
3185 ac_cv_prog_cc_c89=no
3186 ac_save_CC=$CC
3187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3188 /* end confdefs.h. */
3189 #include <stdarg.h>
3190 #include <stdio.h>
3191 #include <sys/types.h>
3192 #include <sys/stat.h>
3193 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3194 struct buf { int x; };
3195 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3196 static char *e (p, i)
3197 char **p;
3198 int i;
3199 {
3200 return p[i];
3201 }
3202 static char *f (char * (*g) (char **, int), char **p, ...)
3203 {
3204 char *s;
3205 va_list v;
3206 va_start (v,p);
3207 s = g (p, va_arg (v,int));
3208 va_end (v);
3209 return s;
3210 }
3211
3212 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3213 function prototypes and stuff, but not '\xHH' hex character constants.
3214 These don't provoke an error unfortunately, instead are silently treated
3215 as 'x'. The following induces an error, until -std is added to get
3216 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3217 array size at least. It's necessary to write '\x00'==0 to get something
3218 that's true only with -std. */
3219 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3220
3221 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3222 inside strings and character constants. */
3223 #define FOO(x) 'x'
3224 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3225
3226 int test (int i, double x);
3227 struct s1 {int (*f) (int a);};
3228 struct s2 {int (*f) (double a);};
3229 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3230 int argc;
3231 char **argv;
3232 int
3233 main ()
3234 {
3235 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3236 ;
3237 return 0;
3238 }
3239 _ACEOF
3240 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3241 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3242 do
3243 CC="$ac_save_CC $ac_arg"
3244 if ac_fn_c_try_compile "$LINENO"; then :
3245 ac_cv_prog_cc_c89=$ac_arg
3246 fi
3247 rm -f core conftest.err conftest.$ac_objext
3248 test "x$ac_cv_prog_cc_c89" != "xno" && break
3249 done
3250 rm -f conftest.$ac_ext
3251 CC=$ac_save_CC
3252
3253 fi
3254 # AC_CACHE_VAL
3255 case "x$ac_cv_prog_cc_c89" in
3256 x)
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3258 $as_echo "none needed" >&6; } ;;
3259 xno)
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3261 $as_echo "unsupported" >&6; } ;;
3262 *)
3263 CC="$CC $ac_cv_prog_cc_c89"
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3265 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3266 esac
3267 if test "x$ac_cv_prog_cc_c89" != xno; then :
3268
3269 fi
3270
3271 ac_ext=c
3272 ac_cpp='$CPP $CPPFLAGS'
3273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276
3277 ac_ext=c
3278 ac_cpp='$CPP $CPPFLAGS'
3279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3283 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3284 if ${am_cv_prog_cc_c_o+:} false; then :
3285 $as_echo_n "(cached) " >&6
3286 else
3287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288 /* end confdefs.h. */
3289
3290 int
3291 main ()
3292 {
3293
3294 ;
3295 return 0;
3296 }
3297 _ACEOF
3298 # Make sure it works both with $CC and with simple cc.
3299 # Following AC_PROG_CC_C_O, we do the test twice because some
3300 # compilers refuse to overwrite an existing .o file with -o,
3301 # though they will create one.
3302 am_cv_prog_cc_c_o=yes
3303 for am_i in 1 2; do
3304 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3305 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3306 ac_status=$?
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } \
3309 && test -f conftest2.$ac_objext; then
3310 : OK
3311 else
3312 am_cv_prog_cc_c_o=no
3313 break
3314 fi
3315 done
3316 rm -f core conftest*
3317 unset am_i
3318 fi
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3320 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3321 if test "$am_cv_prog_cc_c_o" != yes; then
3322 # Losing compiler, so override with the script.
3323 # FIXME: It is wrong to rewrite CC.
3324 # But if we don't then we get into trouble of one sort or another.
3325 # A longer-term fix would be to have automake use am__CC in this case,
3326 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3327 CC="$am_aux_dir/compile $CC"
3328 fi
3329 ac_ext=c
3330 ac_cpp='$CPP $CPPFLAGS'
3331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334
3335
3336
3337 ac_ext=c
3338 ac_cpp='$CPP $CPPFLAGS'
3339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3343 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3344 # On Suns, sometimes $CPP names a directory.
3345 if test -n "$CPP" && test -d "$CPP"; then
3346 CPP=
3347 fi
3348 if test -z "$CPP"; then
3349 if ${ac_cv_prog_CPP+:} false; then :
3350 $as_echo_n "(cached) " >&6
3351 else
3352 # Double quotes because CPP needs to be expanded
3353 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3354 do
3355 ac_preproc_ok=false
3356 for ac_c_preproc_warn_flag in '' yes
3357 do
3358 # Use a header file that comes with gcc, so configuring glibc
3359 # with a fresh cross-compiler works.
3360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3361 # <limits.h> exists even on freestanding compilers.
3362 # On the NeXT, cc -E runs the code through the compiler's parser,
3363 # not just through cpp. "Syntax error" is here to catch this case.
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3366 #ifdef __STDC__
3367 # include <limits.h>
3368 #else
3369 # include <assert.h>
3370 #endif
3371 Syntax error
3372 _ACEOF
3373 if ac_fn_c_try_cpp "$LINENO"; then :
3374
3375 else
3376 # Broken: fails on valid input.
3377 continue
3378 fi
3379 rm -f conftest.err conftest.i conftest.$ac_ext
3380
3381 # OK, works on sane cases. Now check whether nonexistent headers
3382 # can be detected and how.
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3385 #include <ac_nonexistent.h>
3386 _ACEOF
3387 if ac_fn_c_try_cpp "$LINENO"; then :
3388 # Broken: success on invalid input.
3389 continue
3390 else
3391 # Passes both tests.
3392 ac_preproc_ok=:
3393 break
3394 fi
3395 rm -f conftest.err conftest.i conftest.$ac_ext
3396
3397 done
3398 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3399 rm -f conftest.i conftest.err conftest.$ac_ext
3400 if $ac_preproc_ok; then :
3401 break
3402 fi
3403
3404 done
3405 ac_cv_prog_CPP=$CPP
3406
3407 fi
3408 CPP=$ac_cv_prog_CPP
3409 else
3410 ac_cv_prog_CPP=$CPP
3411 fi
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3413 $as_echo "$CPP" >&6; }
3414 ac_preproc_ok=false
3415 for ac_c_preproc_warn_flag in '' yes
3416 do
3417 # Use a header file that comes with gcc, so configuring glibc
3418 # with a fresh cross-compiler works.
3419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3420 # <limits.h> exists even on freestanding compilers.
3421 # On the NeXT, cc -E runs the code through the compiler's parser,
3422 # not just through cpp. "Syntax error" is here to catch this case.
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h. */
3425 #ifdef __STDC__
3426 # include <limits.h>
3427 #else
3428 # include <assert.h>
3429 #endif
3430 Syntax error
3431 _ACEOF
3432 if ac_fn_c_try_cpp "$LINENO"; then :
3433
3434 else
3435 # Broken: fails on valid input.
3436 continue
3437 fi
3438 rm -f conftest.err conftest.i conftest.$ac_ext
3439
3440 # OK, works on sane cases. Now check whether nonexistent headers
3441 # can be detected and how.
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3444 #include <ac_nonexistent.h>
3445 _ACEOF
3446 if ac_fn_c_try_cpp "$LINENO"; then :
3447 # Broken: success on invalid input.
3448 continue
3449 else
3450 # Passes both tests.
3451 ac_preproc_ok=:
3452 break
3453 fi
3454 rm -f conftest.err conftest.i conftest.$ac_ext
3455
3456 done
3457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3458 rm -f conftest.i conftest.err conftest.$ac_ext
3459 if $ac_preproc_ok; then :
3460
3461 else
3462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3465 See \`config.log' for more details" "$LINENO" 5; }
3466 fi
3467
3468 ac_ext=c
3469 ac_cpp='$CPP $CPPFLAGS'
3470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473
3474
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3476 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3477 if ${ac_cv_path_GREP+:} false; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 if test -z "$GREP"; then
3481 ac_path_GREP_found=false
3482 # Loop through the user's path and test for each of PROGNAME-LIST
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3485 do
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 for ac_prog in grep ggrep; do
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3491 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3492 # Check for GNU ac_path_GREP and select it if it is found.
3493 # Check for GNU $ac_path_GREP
3494 case `"$ac_path_GREP" --version 2>&1` in
3495 *GNU*)
3496 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3497 *)
3498 ac_count=0
3499 $as_echo_n 0123456789 >"conftest.in"
3500 while :
3501 do
3502 cat "conftest.in" "conftest.in" >"conftest.tmp"
3503 mv "conftest.tmp" "conftest.in"
3504 cp "conftest.in" "conftest.nl"
3505 $as_echo 'GREP' >> "conftest.nl"
3506 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3507 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3508 as_fn_arith $ac_count + 1 && ac_count=$as_val
3509 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3510 # Best one so far, save it but keep looking for a better one
3511 ac_cv_path_GREP="$ac_path_GREP"
3512 ac_path_GREP_max=$ac_count
3513 fi
3514 # 10*(2^10) chars as input seems more than enough
3515 test $ac_count -gt 10 && break
3516 done
3517 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3518 esac
3519
3520 $ac_path_GREP_found && break 3
3521 done
3522 done
3523 done
3524 IFS=$as_save_IFS
3525 if test -z "$ac_cv_path_GREP"; then
3526 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3527 fi
3528 else
3529 ac_cv_path_GREP=$GREP
3530 fi
3531
3532 fi
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3534 $as_echo "$ac_cv_path_GREP" >&6; }
3535 GREP="$ac_cv_path_GREP"
3536
3537
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3539 $as_echo_n "checking for egrep... " >&6; }
3540 if ${ac_cv_path_EGREP+:} false; then :
3541 $as_echo_n "(cached) " >&6
3542 else
3543 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3544 then ac_cv_path_EGREP="$GREP -E"
3545 else
3546 if test -z "$EGREP"; then
3547 ac_path_EGREP_found=false
3548 # Loop through the user's path and test for each of PROGNAME-LIST
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3551 do
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_prog in egrep; do
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3557 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3558 # Check for GNU ac_path_EGREP and select it if it is found.
3559 # Check for GNU $ac_path_EGREP
3560 case `"$ac_path_EGREP" --version 2>&1` in
3561 *GNU*)
3562 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3563 *)
3564 ac_count=0
3565 $as_echo_n 0123456789 >"conftest.in"
3566 while :
3567 do
3568 cat "conftest.in" "conftest.in" >"conftest.tmp"
3569 mv "conftest.tmp" "conftest.in"
3570 cp "conftest.in" "conftest.nl"
3571 $as_echo 'EGREP' >> "conftest.nl"
3572 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3573 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3574 as_fn_arith $ac_count + 1 && ac_count=$as_val
3575 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3576 # Best one so far, save it but keep looking for a better one
3577 ac_cv_path_EGREP="$ac_path_EGREP"
3578 ac_path_EGREP_max=$ac_count
3579 fi
3580 # 10*(2^10) chars as input seems more than enough
3581 test $ac_count -gt 10 && break
3582 done
3583 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3584 esac
3585
3586 $ac_path_EGREP_found && break 3
3587 done
3588 done
3589 done
3590 IFS=$as_save_IFS
3591 if test -z "$ac_cv_path_EGREP"; then
3592 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3593 fi
3594 else
3595 ac_cv_path_EGREP=$EGREP
3596 fi
3597
3598 fi
3599 fi
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3601 $as_echo "$ac_cv_path_EGREP" >&6; }
3602 EGREP="$ac_cv_path_EGREP"
3603
3604
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3606 $as_echo_n "checking for ANSI C header files... " >&6; }
3607 if ${ac_cv_header_stdc+:} false; then :
3608 $as_echo_n "(cached) " >&6
3609 else
3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h. */
3612 #include <stdlib.h>
3613 #include <stdarg.h>
3614 #include <string.h>
3615 #include <float.h>
3616
3617 int
3618 main ()
3619 {
3620
3621 ;
3622 return 0;
3623 }
3624 _ACEOF
3625 if ac_fn_c_try_compile "$LINENO"; then :
3626 ac_cv_header_stdc=yes
3627 else
3628 ac_cv_header_stdc=no
3629 fi
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631
3632 if test $ac_cv_header_stdc = yes; then
3633 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h. */
3636 #include <string.h>
3637
3638 _ACEOF
3639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3640 $EGREP "memchr" >/dev/null 2>&1; then :
3641
3642 else
3643 ac_cv_header_stdc=no
3644 fi
3645 rm -f conftest*
3646
3647 fi
3648
3649 if test $ac_cv_header_stdc = yes; then
3650 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3653 #include <stdlib.h>
3654
3655 _ACEOF
3656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3657 $EGREP "free" >/dev/null 2>&1; then :
3658
3659 else
3660 ac_cv_header_stdc=no
3661 fi
3662 rm -f conftest*
3663
3664 fi
3665
3666 if test $ac_cv_header_stdc = yes; then
3667 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3668 if test "$cross_compiling" = yes; then :
3669 :
3670 else
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3673 #include <ctype.h>
3674 #include <stdlib.h>
3675 #if ((' ' & 0x0FF) == 0x020)
3676 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3677 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3678 #else
3679 # define ISLOWER(c) \
3680 (('a' <= (c) && (c) <= 'i') \
3681 || ('j' <= (c) && (c) <= 'r') \
3682 || ('s' <= (c) && (c) <= 'z'))
3683 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3684 #endif
3685
3686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3687 int
3688 main ()
3689 {
3690 int i;
3691 for (i = 0; i < 256; i++)
3692 if (XOR (islower (i), ISLOWER (i))
3693 || toupper (i) != TOUPPER (i))
3694 return 2;
3695 return 0;
3696 }
3697 _ACEOF
3698 if ac_fn_c_try_run "$LINENO"; then :
3699
3700 else
3701 ac_cv_header_stdc=no
3702 fi
3703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3704 conftest.$ac_objext conftest.beam conftest.$ac_ext
3705 fi
3706
3707 fi
3708 fi
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3710 $as_echo "$ac_cv_header_stdc" >&6; }
3711 if test $ac_cv_header_stdc = yes; then
3712
3713 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3714
3715 fi
3716
3717 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3718 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3719 inttypes.h stdint.h unistd.h
3720 do :
3721 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3722 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3723 "
3724 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3725 cat >>confdefs.h <<_ACEOF
3726 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3727 _ACEOF
3728
3729 fi
3730
3731 done
3732
3733
3734
3735 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3736 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3737 MINIX=yes
3738 else
3739 MINIX=
3740 fi
3741
3742
3743 if test "$MINIX" = yes; then
3744
3745 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3746
3747
3748 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3749
3750
3751 $as_echo "#define _MINIX 1" >>confdefs.h
3752
3753 fi
3754
3755
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3757 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3758 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3763
3764 # define __EXTENSIONS__ 1
3765 $ac_includes_default
3766 int
3767 main ()
3768 {
3769
3770 ;
3771 return 0;
3772 }
3773 _ACEOF
3774 if ac_fn_c_try_compile "$LINENO"; then :
3775 ac_cv_safe_to_define___extensions__=yes
3776 else
3777 ac_cv_safe_to_define___extensions__=no
3778 fi
3779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780 fi
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3782 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3783 test $ac_cv_safe_to_define___extensions__ = yes &&
3784 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3785
3786 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3787
3788 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3789
3790 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3791
3792 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3793
3794
3795 ac_config_headers="$ac_config_headers config.h"
3796
3797
3798
3799 # Initialize Automake
3800 am__api_version='1.14'
3801
3802 ac_aux_dir=
3803 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3804 if test -f "$ac_dir/install-sh"; then
3805 ac_aux_dir=$ac_dir
3806 ac_install_sh="$ac_aux_dir/install-sh -c"
3807 break
3808 elif test -f "$ac_dir/install.sh"; then
3809 ac_aux_dir=$ac_dir
3810 ac_install_sh="$ac_aux_dir/install.sh -c"
3811 break
3812 elif test -f "$ac_dir/shtool"; then
3813 ac_aux_dir=$ac_dir
3814 ac_install_sh="$ac_aux_dir/shtool install -c"
3815 break
3816 fi
3817 done
3818 if test -z "$ac_aux_dir"; then
3819 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3820 fi
3821
3822 # These three variables are undocumented and unsupported,
3823 # and are intended to be withdrawn in a future Autoconf release.
3824 # They can cause serious problems if a builder's source tree is in a directory
3825 # whose full name contains unusual characters.
3826 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3827 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3828 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3829
3830
3831 # Find a good install program. We prefer a C program (faster),
3832 # so one script is as good as another. But avoid the broken or
3833 # incompatible versions:
3834 # SysV /etc/install, /usr/sbin/install
3835 # SunOS /usr/etc/install
3836 # IRIX /sbin/install
3837 # AIX /bin/install
3838 # AmigaOS /C/install, which installs bootblocks on floppy discs
3839 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3840 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3841 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3842 # OS/2's system install, which has a completely different semantic
3843 # ./install, which can be erroneously created by make from ./install.sh.
3844 # Reject install programs that cannot install multiple files.
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3846 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3847 if test -z "$INSTALL"; then
3848 if ${ac_cv_path_install+:} false; then :
3849 $as_echo_n "(cached) " >&6
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3853 do
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 # Account for people who put trailing slashes in PATH elements.
3857 case $as_dir/ in #((
3858 ./ | .// | /[cC]/* | \
3859 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3860 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3861 /usr/ucb/* ) ;;
3862 *)
3863 # OSF1 and SCO ODT 3.0 have their own names for install.
3864 # Don't use installbsd from OSF since it installs stuff as root
3865 # by default.
3866 for ac_prog in ginstall scoinst install; do
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3869 if test $ac_prog = install &&
3870 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3871 # AIX install. It has an incompatible calling convention.
3872 :
3873 elif test $ac_prog = install &&
3874 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3875 # program-specific install script used by HP pwplus--don't use.
3876 :
3877 else
3878 rm -rf conftest.one conftest.two conftest.dir
3879 echo one > conftest.one
3880 echo two > conftest.two
3881 mkdir conftest.dir
3882 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3883 test -s conftest.one && test -s conftest.two &&
3884 test -s conftest.dir/conftest.one &&
3885 test -s conftest.dir/conftest.two
3886 then
3887 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3888 break 3
3889 fi
3890 fi
3891 fi
3892 done
3893 done
3894 ;;
3895 esac
3896
3897 done
3898 IFS=$as_save_IFS
3899
3900 rm -rf conftest.one conftest.two conftest.dir
3901
3902 fi
3903 if test "${ac_cv_path_install+set}" = set; then
3904 INSTALL=$ac_cv_path_install
3905 else
3906 # As a last resort, use the slow shell script. Don't cache a
3907 # value for INSTALL within a source directory, because that will
3908 # break other packages using the cache if that directory is
3909 # removed, or if the value is a relative name.
3910 INSTALL=$ac_install_sh
3911 fi
3912 fi
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3914 $as_echo "$INSTALL" >&6; }
3915
3916 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3917 # It thinks the first close brace ends the variable substitution.
3918 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3919
3920 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3921
3922 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3923
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3925 $as_echo_n "checking whether build environment is sane... " >&6; }
3926 # Reject unsafe characters in $srcdir or the absolute working directory
3927 # name. Accept space and tab only in the latter.
3928 am_lf='
3929 '
3930 case `pwd` in
3931 *[\\\"\#\$\&\'\`$am_lf]*)
3932 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3933 esac
3934 case $srcdir in
3935 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3936 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3937 esac
3938
3939 # Do 'set' in a subshell so we don't clobber the current shell's
3940 # arguments. Must try -L first in case configure is actually a
3941 # symlink; some systems play weird games with the mod time of symlinks
3942 # (eg FreeBSD returns the mod time of the symlink's containing
3943 # directory).
3944 if (
3945 am_has_slept=no
3946 for am_try in 1 2; do
3947 echo "timestamp, slept: $am_has_slept" > conftest.file
3948 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3949 if test "$*" = "X"; then
3950 # -L didn't work.
3951 set X `ls -t "$srcdir/configure" conftest.file`
3952 fi
3953 if test "$*" != "X $srcdir/configure conftest.file" \
3954 && test "$*" != "X conftest.file $srcdir/configure"; then
3955
3956 # If neither matched, then we have a broken ls. This can happen
3957 # if, for instance, CONFIG_SHELL is bash and it inherits a
3958 # broken ls alias from the environment. This has actually
3959 # happened. Such a system could not be considered "sane".
3960 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3961 alias in your environment" "$LINENO" 5
3962 fi
3963 if test "$2" = conftest.file || test $am_try -eq 2; then
3964 break
3965 fi
3966 # Just in case.
3967 sleep 1
3968 am_has_slept=yes
3969 done
3970 test "$2" = conftest.file
3971 )
3972 then
3973 # Ok.
3974 :
3975 else
3976 as_fn_error $? "newly created file is older than distributed files!
3977 Check your system clock" "$LINENO" 5
3978 fi
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3980 $as_echo "yes" >&6; }
3981 # If we didn't sleep, we still need to ensure time stamps of config.status and
3982 # generated files are strictly newer.
3983 am_sleep_pid=
3984 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3985 ( sleep 1 ) &
3986 am_sleep_pid=$!
3987 fi
3988
3989 rm -f conftest.file
3990
3991 test "$program_prefix" != NONE &&
3992 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3993 # Use a double $ so make ignores it.
3994 test "$program_suffix" != NONE &&
3995 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3996 # Double any \ or $.
3997 # By default was `s,x,x', remove it if useless.
3998 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3999 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4000
4001 if test x"${MISSING+set}" != xset; then
4002 case $am_aux_dir in
4003 *\ * | *\ *)
4004 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4005 *)
4006 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4007 esac
4008 fi
4009 # Use eval to expand $SHELL
4010 if eval "$MISSING --is-lightweight"; then
4011 am_missing_run="$MISSING "
4012 else
4013 am_missing_run=
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4015 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4016 fi
4017
4018 if test x"${install_sh}" != xset; then
4019 case $am_aux_dir in
4020 *\ * | *\ *)
4021 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4022 *)
4023 install_sh="\${SHELL} $am_aux_dir/install-sh"
4024 esac
4025 fi
4026
4027 # Installed binaries are usually stripped using 'strip' when the user
4028 # run "make install-strip". However 'strip' might not be the right
4029 # tool to use in cross-compilation environments, therefore Automake
4030 # will honor the 'STRIP' environment variable to overrule this program.
4031 if test "$cross_compiling" != no; then
4032 if test -n "$ac_tool_prefix"; then
4033 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4034 set dummy ${ac_tool_prefix}strip; ac_word=$2
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036 $as_echo_n "checking for $ac_word... " >&6; }
4037 if ${ac_cv_prog_STRIP+:} false; then :
4038 $as_echo_n "(cached) " >&6
4039 else
4040 if test -n "$STRIP"; then
4041 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4042 else
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH
4045 do
4046 IFS=$as_save_IFS
4047 test -z "$as_dir" && as_dir=.
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4050 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4052 break 2
4053 fi
4054 done
4055 done
4056 IFS=$as_save_IFS
4057
4058 fi
4059 fi
4060 STRIP=$ac_cv_prog_STRIP
4061 if test -n "$STRIP"; then
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4063 $as_echo "$STRIP" >&6; }
4064 else
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066 $as_echo "no" >&6; }
4067 fi
4068
4069
4070 fi
4071 if test -z "$ac_cv_prog_STRIP"; then
4072 ac_ct_STRIP=$STRIP
4073 # Extract the first word of "strip", so it can be a program name with args.
4074 set dummy strip; ac_word=$2
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4076 $as_echo_n "checking for $ac_word... " >&6; }
4077 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 if test -n "$ac_ct_STRIP"; then
4081 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4082 else
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 for as_dir in $PATH
4085 do
4086 IFS=$as_save_IFS
4087 test -z "$as_dir" && as_dir=.
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4090 ac_cv_prog_ac_ct_STRIP="strip"
4091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4092 break 2
4093 fi
4094 done
4095 done
4096 IFS=$as_save_IFS
4097
4098 fi
4099 fi
4100 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4101 if test -n "$ac_ct_STRIP"; then
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4103 $as_echo "$ac_ct_STRIP" >&6; }
4104 else
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4106 $as_echo "no" >&6; }
4107 fi
4108
4109 if test "x$ac_ct_STRIP" = x; then
4110 STRIP=":"
4111 else
4112 case $cross_compiling:$ac_tool_warned in
4113 yes:)
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4116 ac_tool_warned=yes ;;
4117 esac
4118 STRIP=$ac_ct_STRIP
4119 fi
4120 else
4121 STRIP="$ac_cv_prog_STRIP"
4122 fi
4123
4124 fi
4125 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4126
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4128 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4129 if test -z "$MKDIR_P"; then
4130 if ${ac_cv_path_mkdir+:} false; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4135 do
4136 IFS=$as_save_IFS
4137 test -z "$as_dir" && as_dir=.
4138 for ac_prog in mkdir gmkdir; do
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4141 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4142 'mkdir (GNU coreutils) '* | \
4143 'mkdir (coreutils) '* | \
4144 'mkdir (fileutils) '4.1*)
4145 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4146 break 3;;
4147 esac
4148 done
4149 done
4150 done
4151 IFS=$as_save_IFS
4152
4153 fi
4154
4155 test -d ./--version && rmdir ./--version
4156 if test "${ac_cv_path_mkdir+set}" = set; then
4157 MKDIR_P="$ac_cv_path_mkdir -p"
4158 else
4159 # As a last resort, use the slow shell script. Don't cache a
4160 # value for MKDIR_P within a source directory, because that will
4161 # break other packages using the cache if that directory is
4162 # removed, or if the value is a relative name.
4163 MKDIR_P="$ac_install_sh -d"
4164 fi
4165 fi
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4167 $as_echo "$MKDIR_P" >&6; }
4168
4169 for ac_prog in gawk mawk nawk awk
4170 do
4171 # Extract the first word of "$ac_prog", so it can be a program name with args.
4172 set dummy $ac_prog; ac_word=$2
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174 $as_echo_n "checking for $ac_word... " >&6; }
4175 if ${ac_cv_prog_AWK+:} false; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 if test -n "$AWK"; then
4179 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4183 do
4184 IFS=$as_save_IFS
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4188 ac_cv_prog_AWK="$ac_prog"
4189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 break 2
4191 fi
4192 done
4193 done
4194 IFS=$as_save_IFS
4195
4196 fi
4197 fi
4198 AWK=$ac_cv_prog_AWK
4199 if test -n "$AWK"; then
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4201 $as_echo "$AWK" >&6; }
4202 else
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204 $as_echo "no" >&6; }
4205 fi
4206
4207
4208 test -n "$AWK" && break
4209 done
4210
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4212 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4213 set x ${MAKE-make}
4214 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4215 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 cat >conftest.make <<\_ACEOF
4219 SHELL = /bin/sh
4220 all:
4221 @echo '@@@%%%=$(MAKE)=@@@%%%'
4222 _ACEOF
4223 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4224 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4225 *@@@%%%=?*=@@@%%%*)
4226 eval ac_cv_prog_make_${ac_make}_set=yes;;
4227 *)
4228 eval ac_cv_prog_make_${ac_make}_set=no;;
4229 esac
4230 rm -f conftest.make
4231 fi
4232 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4234 $as_echo "yes" >&6; }
4235 SET_MAKE=
4236 else
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4239 SET_MAKE="MAKE=${MAKE-make}"
4240 fi
4241
4242 rm -rf .tst 2>/dev/null
4243 mkdir .tst 2>/dev/null
4244 if test -d .tst; then
4245 am__leading_dot=.
4246 else
4247 am__leading_dot=_
4248 fi
4249 rmdir .tst 2>/dev/null
4250
4251 DEPDIR="${am__leading_dot}deps"
4252
4253 ac_config_commands="$ac_config_commands depfiles"
4254
4255
4256 am_make=${MAKE-make}
4257 cat > confinc << 'END'
4258 am__doit:
4259 @echo this is the am__doit target
4260 .PHONY: am__doit
4261 END
4262 # If we don't find an include directive, just comment out the code.
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4264 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4265 am__include="#"
4266 am__quote=
4267 _am_result=none
4268 # First try GNU make style include.
4269 echo "include confinc" > confmf
4270 # Ignore all kinds of additional output from 'make'.
4271 case `$am_make -s -f confmf 2> /dev/null` in #(
4272 *the\ am__doit\ target*)
4273 am__include=include
4274 am__quote=
4275 _am_result=GNU
4276 ;;
4277 esac
4278 # Now try BSD make style include.
4279 if test "$am__include" = "#"; then
4280 echo '.include "confinc"' > confmf
4281 case `$am_make -s -f confmf 2> /dev/null` in #(
4282 *the\ am__doit\ target*)
4283 am__include=.include
4284 am__quote="\""
4285 _am_result=BSD
4286 ;;
4287 esac
4288 fi
4289
4290
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4292 $as_echo "$_am_result" >&6; }
4293 rm -f confinc confmf
4294
4295 # Check whether --enable-dependency-tracking was given.
4296 if test "${enable_dependency_tracking+set}" = set; then :
4297 enableval=$enable_dependency_tracking;
4298 fi
4299
4300 if test "x$enable_dependency_tracking" != xno; then
4301 am_depcomp="$ac_aux_dir/depcomp"
4302 AMDEPBACKSLASH='\'
4303 am__nodep='_no'
4304 fi
4305 if test "x$enable_dependency_tracking" != xno; then
4306 AMDEP_TRUE=
4307 AMDEP_FALSE='#'
4308 else
4309 AMDEP_TRUE='#'
4310 AMDEP_FALSE=
4311 fi
4312
4313
4314 # Check whether --enable-silent-rules was given.
4315 if test "${enable_silent_rules+set}" = set; then :
4316 enableval=$enable_silent_rules;
4317 fi
4318
4319 case $enable_silent_rules in # (((
4320 yes) AM_DEFAULT_VERBOSITY=0;;
4321 no) AM_DEFAULT_VERBOSITY=1;;
4322 *) AM_DEFAULT_VERBOSITY=1;;
4323 esac
4324 am_make=${MAKE-make}
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4326 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4327 if ${am_cv_make_support_nested_variables+:} false; then :
4328 $as_echo_n "(cached) " >&6
4329 else
4330 if $as_echo 'TRUE=$(BAR$(V))
4331 BAR0=false
4332 BAR1=true
4333 V=1
4334 am__doit:
4335 @$(TRUE)
4336 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4337 am_cv_make_support_nested_variables=yes
4338 else
4339 am_cv_make_support_nested_variables=no
4340 fi
4341 fi
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4343 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4344 if test $am_cv_make_support_nested_variables = yes; then
4345 AM_V='$(V)'
4346 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4347 else
4348 AM_V=$AM_DEFAULT_VERBOSITY
4349 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4350 fi
4351 AM_BACKSLASH='\'
4352
4353 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4354 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4355 # is not polluted with repeated "-I."
4356 am__isrc=' -I$(srcdir)'
4357 # test to see if srcdir already configured
4358 if test -f $srcdir/config.status; then
4359 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4360 fi
4361 fi
4362
4363 # test whether we have cygpath
4364 if test -z "$CYGPATH_W"; then
4365 if (cygpath --version) >/dev/null 2>/dev/null; then
4366 CYGPATH_W='cygpath -w'
4367 else
4368 CYGPATH_W=echo
4369 fi
4370 fi
4371
4372
4373 # Define the identity of the package.
4374 PACKAGE='xfs'
4375 VERSION='1.1.4'
4376
4377
4378 cat >>confdefs.h <<_ACEOF
4379 #define PACKAGE "$PACKAGE"
4380 _ACEOF
4381
4382
4383 cat >>confdefs.h <<_ACEOF
4384 #define VERSION "$VERSION"
4385 _ACEOF
4386
4387 # Some tools Automake needs.
4388
4389 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4390
4391
4392 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4393
4394
4395 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4396
4397
4398 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4399
4400
4401 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4402
4403 # For better backward compatibility. To be removed once Automake 1.9.x
4404 # dies out for good. For more background, see:
4405 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4406 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4407 mkdir_p='$(MKDIR_P)'
4408
4409 # We need awk for the "check" target. The system "awk" is bad on
4410 # some platforms.
4411 # Always define AMTAR for backward compatibility. Yes, it's still used
4412 # in the wild :-( We should find a proper way to deprecate it ...
4413 AMTAR='$${TAR-tar}'
4414
4415
4416 # We'll loop over all known methods to create a tar archive until one works.
4417 _am_tools='gnutar pax cpio none'
4418
4419 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4420
4421
4422
4423
4424
4425 depcc="$CC" am_compiler_list=
4426
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4428 $as_echo_n "checking dependency style of $depcc... " >&6; }
4429 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4430 $as_echo_n "(cached) " >&6
4431 else
4432 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4433 # We make a subdir and do the tests there. Otherwise we can end up
4434 # making bogus files that we don't know about and never remove. For
4435 # instance it was reported that on HP-UX the gcc test will end up
4436 # making a dummy file named 'D' -- because '-MD' means "put the output
4437 # in D".
4438 rm -rf conftest.dir
4439 mkdir conftest.dir
4440 # Copy depcomp to subdir because otherwise we won't find it if we're
4441 # using a relative directory.
4442 cp "$am_depcomp" conftest.dir
4443 cd conftest.dir
4444 # We will build objects and dependencies in a subdirectory because
4445 # it helps to detect inapplicable dependency modes. For instance
4446 # both Tru64's cc and ICC support -MD to output dependencies as a
4447 # side effect of compilation, but ICC will put the dependencies in
4448 # the current directory while Tru64 will put them in the object
4449 # directory.
4450 mkdir sub
4451
4452 am_cv_CC_dependencies_compiler_type=none
4453 if test "$am_compiler_list" = ""; then
4454 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4455 fi
4456 am__universal=false
4457 case " $depcc " in #(
4458 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4459 esac
4460
4461 for depmode in $am_compiler_list; do
4462 # Setup a source with many dependencies, because some compilers
4463 # like to wrap large dependency lists on column 80 (with \), and
4464 # we should not choose a depcomp mode which is confused by this.
4465 #
4466 # We need to recreate these files for each test, as the compiler may
4467 # overwrite some of them when testing with obscure command lines.
4468 # This happens at least with the AIX C compiler.
4469 : > sub/conftest.c
4470 for i in 1 2 3 4 5 6; do
4471 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4472 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4473 # Solaris 10 /bin/sh.
4474 echo '/* dummy */' > sub/conftst$i.h
4475 done
4476 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4477
4478 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4479 # mode. It turns out that the SunPro C++ compiler does not properly
4480 # handle '-M -o', and we need to detect this. Also, some Intel
4481 # versions had trouble with output in subdirs.
4482 am__obj=sub/conftest.${OBJEXT-o}
4483 am__minus_obj="-o $am__obj"
4484 case $depmode in
4485 gcc)
4486 # This depmode causes a compiler race in universal mode.
4487 test "$am__universal" = false || continue
4488 ;;
4489 nosideeffect)
4490 # After this tag, mechanisms are not by side-effect, so they'll
4491 # only be used when explicitly requested.
4492 if test "x$enable_dependency_tracking" = xyes; then
4493 continue
4494 else
4495 break
4496 fi
4497 ;;
4498 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4499 # This compiler won't grok '-c -o', but also, the minuso test has
4500 # not run yet. These depmodes are late enough in the game, and
4501 # so weak that their functioning should not be impacted.
4502 am__obj=conftest.${OBJEXT-o}
4503 am__minus_obj=
4504 ;;
4505 none) break ;;
4506 esac
4507 if depmode=$depmode \
4508 source=sub/conftest.c object=$am__obj \
4509 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4510 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4511 >/dev/null 2>conftest.err &&
4512 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4513 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4514 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4515 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4516 # icc doesn't choke on unknown options, it will just issue warnings
4517 # or remarks (even with -Werror). So we grep stderr for any message
4518 # that says an option was ignored or not supported.
4519 # When given -MP, icc 7.0 and 7.1 complain thusly:
4520 # icc: Command line warning: ignoring option '-M'; no argument required
4521 # The diagnosis changed in icc 8.0:
4522 # icc: Command line remark: option '-MP' not supported
4523 if (grep 'ignoring option' conftest.err ||
4524 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4525 am_cv_CC_dependencies_compiler_type=$depmode
4526 break
4527 fi
4528 fi
4529 done
4530
4531 cd ..
4532 rm -rf conftest.dir
4533 else
4534 am_cv_CC_dependencies_compiler_type=none
4535 fi
4536
4537 fi
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4539 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4540 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4541
4542 if
4543 test "x$enable_dependency_tracking" != xno \
4544 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4545 am__fastdepCC_TRUE=
4546 am__fastdepCC_FALSE='#'
4547 else
4548 am__fastdepCC_TRUE='#'
4549 am__fastdepCC_FALSE=
4550 fi
4551
4552
4553
4554 # POSIX will say in a future version that running "rm -f" with no argument
4555 # is OK; and we want to be able to make that assumption in our Makefile
4556 # recipes. So use an aggressive probe to check that the usage we want is
4557 # actually supported "in the wild" to an acceptable degree.
4558 # See automake bug#10828.
4559 # To make any issue more visible, cause the running configure to be aborted
4560 # by default if the 'rm' program in use doesn't match our expectations; the
4561 # user can still override this though.
4562 if rm -f && rm -fr && rm -rf; then : OK; else
4563 cat >&2 <<'END'
4564 Oops!
4565
4566 Your 'rm' program seems unable to run without file operands specified
4567 on the command line, even when the '-f' option is present. This is contrary
4568 to the behaviour of most rm programs out there, and not conforming with
4569 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4570
4571 Please tell bug-automake@gnu.org about your system, including the value
4572 of your $PATH and any error possibly output before this message. This
4573 can help us improve future automake versions.
4574
4575 END
4576 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4577 echo 'Configuration will proceed anyway, since you have set the' >&2
4578 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4579 echo >&2
4580 else
4581 cat >&2 <<'END'
4582 Aborting the configuration process, to ensure you take notice of the issue.
4583
4584 You can download and install GNU coreutils to get an 'rm' implementation
4585 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4586
4587 If you want to complete the configuration process using your problematic
4588 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4589 to "yes", and re-run configure.
4590
4591 END
4592 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4593 fi
4594 fi
4595
4596 # Require xorg-macros minimum of 1.10 for HAVE_STYLESHEETS in XORG_CHECK_SGML_DOCTOOLS
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4609 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4610 if ${ac_cv_prog_cc_c99+:} false; then :
4611 $as_echo_n "(cached) " >&6
4612 else
4613 ac_cv_prog_cc_c99=no
4614 ac_save_CC=$CC
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4617 #include <stdarg.h>
4618 #include <stdbool.h>
4619 #include <stdlib.h>
4620 #include <wchar.h>
4621 #include <stdio.h>
4622
4623 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4624 #define debug(...) fprintf (stderr, __VA_ARGS__)
4625 #define showlist(...) puts (#__VA_ARGS__)
4626 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4627 static void
4628 test_varargs_macros (void)
4629 {
4630 int x = 1234;
4631 int y = 5678;
4632 debug ("Flag");
4633 debug ("X = %d\n", x);
4634 showlist (The first, second, and third items.);
4635 report (x>y, "x is %d but y is %d", x, y);
4636 }
4637
4638 // Check long long types.
4639 #define BIG64 18446744073709551615ull
4640 #define BIG32 4294967295ul
4641 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4642 #if !BIG_OK
4643 your preprocessor is broken;
4644 #endif
4645 #if BIG_OK
4646 #else
4647 your preprocessor is broken;
4648 #endif
4649 static long long int bignum = -9223372036854775807LL;
4650 static unsigned long long int ubignum = BIG64;
4651
4652 struct incomplete_array
4653 {
4654 int datasize;
4655 double data[];
4656 };
4657
4658 struct named_init {
4659 int number;
4660 const wchar_t *name;
4661 double average;
4662 };
4663
4664 typedef const char *ccp;
4665
4666 static inline int
4667 test_restrict (ccp restrict text)
4668 {
4669 // See if C++-style comments work.
4670 // Iterate through items via the restricted pointer.
4671 // Also check for declarations in for loops.
4672 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4673 continue;
4674 return 0;
4675 }
4676
4677 // Check varargs and va_copy.
4678 static void
4679 test_varargs (const char *format, ...)
4680 {
4681 va_list args;
4682 va_start (args, format);
4683 va_list args_copy;
4684 va_copy (args_copy, args);
4685
4686 const char *str;
4687 int number;
4688 float fnumber;
4689
4690 while (*format)
4691 {
4692 switch (*format++)
4693 {
4694 case 's': // string
4695 str = va_arg (args_copy, const char *);
4696 break;
4697 case 'd': // int
4698 number = va_arg (args_copy, int);
4699 break;
4700 case 'f': // float
4701 fnumber = va_arg (args_copy, double);
4702 break;
4703 default:
4704 break;
4705 }
4706 }
4707 va_end (args_copy);
4708 va_end (args);
4709 }
4710
4711 int
4712 main ()
4713 {
4714
4715 // Check bool.
4716 _Bool success = false;
4717
4718 // Check restrict.
4719 if (test_restrict ("String literal") == 0)
4720 success = true;
4721 char *restrict newvar = "Another string";
4722
4723 // Check varargs.
4724 test_varargs ("s, d' f .", "string", 65, 34.234);
4725 test_varargs_macros ();
4726
4727 // Check flexible array members.
4728 struct incomplete_array *ia =
4729 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4730 ia->datasize = 10;
4731 for (int i = 0; i < ia->datasize; ++i)
4732 ia->data[i] = i * 1.234;
4733
4734 // Check named initializers.
4735 struct named_init ni = {
4736 .number = 34,
4737 .name = L"Test wide string",
4738 .average = 543.34343,
4739 };
4740
4741 ni.number = 58;
4742
4743 int dynamic_array[ni.number];
4744 dynamic_array[ni.number - 1] = 543;
4745
4746 // work around unused variable warnings
4747 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4748 || dynamic_array[ni.number - 1] != 543);
4749
4750 ;
4751 return 0;
4752 }
4753 _ACEOF
4754 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4755 do
4756 CC="$ac_save_CC $ac_arg"
4757 if ac_fn_c_try_compile "$LINENO"; then :
4758 ac_cv_prog_cc_c99=$ac_arg
4759 fi
4760 rm -f core conftest.err conftest.$ac_objext
4761 test "x$ac_cv_prog_cc_c99" != "xno" && break
4762 done
4763 rm -f conftest.$ac_ext
4764 CC=$ac_save_CC
4765
4766 fi
4767 # AC_CACHE_VAL
4768 case "x$ac_cv_prog_cc_c99" in
4769 x)
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4771 $as_echo "none needed" >&6; } ;;
4772 xno)
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4774 $as_echo "unsupported" >&6; } ;;
4775 *)
4776 CC="$CC $ac_cv_prog_cc_c99"
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4778 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4779 esac
4780 if test "x$ac_cv_prog_cc_c99" != xno; then :
4781
4782 fi
4783
4784
4785
4786
4787
4788
4789 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4790 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4791 CLANGCC="yes"
4792 else
4793 CLANGCC="no"
4794 fi
4795
4796 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4797 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4798 INTELCC="yes"
4799 else
4800 INTELCC="no"
4801 fi
4802
4803 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4804 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4805 SUNCC="yes"
4806 else
4807 SUNCC="no"
4808 fi
4809
4810
4811
4812
4813 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4814 if test -n "$ac_tool_prefix"; then
4815 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4816 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 case $PKG_CONFIG in
4823 [\\/]* | ?:[\\/]*)
4824 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4825 ;;
4826 *)
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4834 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836 break 2
4837 fi
4838 done
4839 done
4840 IFS=$as_save_IFS
4841
4842 ;;
4843 esac
4844 fi
4845 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4846 if test -n "$PKG_CONFIG"; then
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4848 $as_echo "$PKG_CONFIG" >&6; }
4849 else
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 $as_echo "no" >&6; }
4852 fi
4853
4854
4855 fi
4856 if test -z "$ac_cv_path_PKG_CONFIG"; then
4857 ac_pt_PKG_CONFIG=$PKG_CONFIG
4858 # Extract the first word of "pkg-config", so it can be a program name with args.
4859 set dummy pkg-config; ac_word=$2
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 $as_echo_n "checking for $ac_word... " >&6; }
4862 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 case $ac_pt_PKG_CONFIG in
4866 [\\/]* | ?:[\\/]*)
4867 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4868 ;;
4869 *)
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881 done
4882 done
4883 IFS=$as_save_IFS
4884
4885 ;;
4886 esac
4887 fi
4888 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4889 if test -n "$ac_pt_PKG_CONFIG"; then
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4891 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4892 else
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894 $as_echo "no" >&6; }
4895 fi
4896
4897 if test "x$ac_pt_PKG_CONFIG" = x; then
4898 PKG_CONFIG=""
4899 else
4900 case $cross_compiling:$ac_tool_warned in
4901 yes:)
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4904 ac_tool_warned=yes ;;
4905 esac
4906 PKG_CONFIG=$ac_pt_PKG_CONFIG
4907 fi
4908 else
4909 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4910 fi
4911
4912 fi
4913 if test -n "$PKG_CONFIG"; then
4914 _pkg_min_version=0.9.0
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4916 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4917 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4919 $as_echo "yes" >&6; }
4920 else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4923 PKG_CONFIG=""
4924 fi
4925
4926 fi
4927 # Make sure we can run config.sub.
4928 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4929 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4930
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4932 $as_echo_n "checking build system type... " >&6; }
4933 if ${ac_cv_build+:} false; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 ac_build_alias=$build_alias
4937 test "x$ac_build_alias" = x &&
4938 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4939 test "x$ac_build_alias" = x &&
4940 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4941 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4942 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4943
4944 fi
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4946 $as_echo "$ac_cv_build" >&6; }
4947 case $ac_cv_build in
4948 *-*-*) ;;
4949 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4950 esac
4951 build=$ac_cv_build
4952 ac_save_IFS=$IFS; IFS='-'
4953 set x $ac_cv_build
4954 shift
4955 build_cpu=$1
4956 build_vendor=$2
4957 shift; shift
4958 # Remember, the first character of IFS is used to create $*,
4959 # except with old shells:
4960 build_os=$*
4961 IFS=$ac_save_IFS
4962 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4963
4964
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4966 $as_echo_n "checking host system type... " >&6; }
4967 if ${ac_cv_host+:} false; then :
4968 $as_echo_n "(cached) " >&6
4969 else
4970 if test "x$host_alias" = x; then
4971 ac_cv_host=$ac_cv_build
4972 else
4973 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4974 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4975 fi
4976
4977 fi
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4979 $as_echo "$ac_cv_host" >&6; }
4980 case $ac_cv_host in
4981 *-*-*) ;;
4982 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4983 esac
4984 host=$ac_cv_host
4985 ac_save_IFS=$IFS; IFS='-'
4986 set x $ac_cv_host
4987 shift
4988 host_cpu=$1
4989 host_vendor=$2
4990 shift; shift
4991 # Remember, the first character of IFS is used to create $*,
4992 # except with old shells:
4993 host_os=$*
4994 IFS=$ac_save_IFS
4995 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4996
4997
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4999 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5000 if ${ac_cv_path_SED+:} false; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5004 for ac_i in 1 2 3 4 5 6 7; do
5005 ac_script="$ac_script$as_nl$ac_script"
5006 done
5007 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5008 { ac_script=; unset ac_script;}
5009 if test -z "$SED"; then
5010 ac_path_SED_found=false
5011 # Loop through the user's path and test for each of PROGNAME-LIST
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_prog in sed gsed; do
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5020 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5021 # Check for GNU ac_path_SED and select it if it is found.
5022 # Check for GNU $ac_path_SED
5023 case `"$ac_path_SED" --version 2>&1` in
5024 *GNU*)
5025 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5026 *)
5027 ac_count=0
5028 $as_echo_n 0123456789 >"conftest.in"
5029 while :
5030 do
5031 cat "conftest.in" "conftest.in" >"conftest.tmp"
5032 mv "conftest.tmp" "conftest.in"
5033 cp "conftest.in" "conftest.nl"
5034 $as_echo '' >> "conftest.nl"
5035 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5037 as_fn_arith $ac_count + 1 && ac_count=$as_val
5038 if test $ac_count -gt ${ac_path_SED_max-0}; then
5039 # Best one so far, save it but keep looking for a better one
5040 ac_cv_path_SED="$ac_path_SED"
5041 ac_path_SED_max=$ac_count
5042 fi
5043 # 10*(2^10) chars as input seems more than enough
5044 test $ac_count -gt 10 && break
5045 done
5046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5047 esac
5048
5049 $ac_path_SED_found && break 3
5050 done
5051 done
5052 done
5053 IFS=$as_save_IFS
5054 if test -z "$ac_cv_path_SED"; then
5055 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5056 fi
5057 else
5058 ac_cv_path_SED=$SED
5059 fi
5060
5061 fi
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5063 $as_echo "$ac_cv_path_SED" >&6; }
5064 SED="$ac_cv_path_SED"
5065 rm -f conftest.sed
5066
5067
5068
5069
5070
5071
5072 # Check whether --enable-selective-werror was given.
5073 if test "${enable_selective_werror+set}" = set; then :
5074 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5075 else
5076 SELECTIVE_WERROR=yes
5077 fi
5078
5079
5080
5081
5082
5083 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5084 if test "x$SUNCC" = "xyes"; then
5085 BASE_CFLAGS="-v"
5086 else
5087 BASE_CFLAGS=""
5088 fi
5089
5090 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104 xorg_testset_save_CFLAGS="$CFLAGS"
5105
5106 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5109 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5110 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5115 int i;
5116 _ACEOF
5117 if ac_fn_c_try_compile "$LINENO"; then :
5118 xorg_cv_cc_flag_unknown_warning_option=yes
5119 else
5120 xorg_cv_cc_flag_unknown_warning_option=no
5121 fi
5122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123 fi
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5125 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5127 CFLAGS="$xorg_testset_save_CFLAGS"
5128 fi
5129
5130 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5133 fi
5134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5136 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5137 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5138 $as_echo_n "(cached) " >&6
5139 else
5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h. */
5142 int i;
5143 _ACEOF
5144 if ac_fn_c_try_compile "$LINENO"; then :
5145 xorg_cv_cc_flag_unused_command_line_argument=yes
5146 else
5147 xorg_cv_cc_flag_unused_command_line_argument=no
5148 fi
5149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150 fi
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5152 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5153 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5154 CFLAGS="$xorg_testset_save_CFLAGS"
5155 fi
5156
5157 found="no"
5158
5159 if test $found = "no" ; then
5160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5162 fi
5163
5164 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5166 fi
5167
5168 CFLAGS="$CFLAGS -Wall"
5169
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5171 $as_echo_n "checking if $CC supports -Wall... " >&6; }
5172 cacheid=xorg_cv_cc_flag__Wall
5173 if eval \${$cacheid+:} false; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178 int i;
5179 int
5180 main ()
5181 {
5182
5183 ;
5184 return 0;
5185 }
5186 _ACEOF
5187 if ac_fn_c_try_link "$LINENO"; then :
5188 eval $cacheid=yes
5189 else
5190 eval $cacheid=no
5191 fi
5192 rm -f core conftest.err conftest.$ac_objext \
5193 conftest$ac_exeext conftest.$ac_ext
5194 fi
5195
5196
5197 CFLAGS="$xorg_testset_save_CFLAGS"
5198
5199 eval supported=\$$cacheid
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5201 $as_echo "$supported" >&6; }
5202 if test "$supported" = "yes" ; then
5203 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5204 found="yes"
5205 fi
5206 fi
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222 xorg_testset_save_CFLAGS="$CFLAGS"
5223
5224 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5227 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5228 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5233 int i;
5234 _ACEOF
5235 if ac_fn_c_try_compile "$LINENO"; then :
5236 xorg_cv_cc_flag_unknown_warning_option=yes
5237 else
5238 xorg_cv_cc_flag_unknown_warning_option=no
5239 fi
5240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5241 fi
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5243 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5245 CFLAGS="$xorg_testset_save_CFLAGS"
5246 fi
5247
5248 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5251 fi
5252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5254 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5255 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5260 int i;
5261 _ACEOF
5262 if ac_fn_c_try_compile "$LINENO"; then :
5263 xorg_cv_cc_flag_unused_command_line_argument=yes
5264 else
5265 xorg_cv_cc_flag_unused_command_line_argument=no
5266 fi
5267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268 fi
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5270 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5272 CFLAGS="$xorg_testset_save_CFLAGS"
5273 fi
5274
5275 found="no"
5276
5277 if test $found = "no" ; then
5278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5280 fi
5281
5282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5284 fi
5285
5286 CFLAGS="$CFLAGS -Wpointer-arith"
5287
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5289 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5290 cacheid=xorg_cv_cc_flag__Wpointer_arith
5291 if eval \${$cacheid+:} false; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5296 int i;
5297 int
5298 main ()
5299 {
5300
5301 ;
5302 return 0;
5303 }
5304 _ACEOF
5305 if ac_fn_c_try_link "$LINENO"; then :
5306 eval $cacheid=yes
5307 else
5308 eval $cacheid=no
5309 fi
5310 rm -f core conftest.err conftest.$ac_objext \
5311 conftest$ac_exeext conftest.$ac_ext
5312 fi
5313
5314
5315 CFLAGS="$xorg_testset_save_CFLAGS"
5316
5317 eval supported=\$$cacheid
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5319 $as_echo "$supported" >&6; }
5320 if test "$supported" = "yes" ; then
5321 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5322 found="yes"
5323 fi
5324 fi
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340 xorg_testset_save_CFLAGS="$CFLAGS"
5341
5342 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5345 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5346 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5347 $as_echo_n "(cached) " >&6
5348 else
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5351 int i;
5352 _ACEOF
5353 if ac_fn_c_try_compile "$LINENO"; then :
5354 xorg_cv_cc_flag_unknown_warning_option=yes
5355 else
5356 xorg_cv_cc_flag_unknown_warning_option=no
5357 fi
5358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5359 fi
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5361 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5362 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5363 CFLAGS="$xorg_testset_save_CFLAGS"
5364 fi
5365
5366 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5369 fi
5370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5372 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5373 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5374 $as_echo_n "(cached) " >&6
5375 else
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5378 int i;
5379 _ACEOF
5380 if ac_fn_c_try_compile "$LINENO"; then :
5381 xorg_cv_cc_flag_unused_command_line_argument=yes
5382 else
5383 xorg_cv_cc_flag_unused_command_line_argument=no
5384 fi
5385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5386 fi
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5388 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5389 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5390 CFLAGS="$xorg_testset_save_CFLAGS"
5391 fi
5392
5393 found="no"
5394
5395 if test $found = "no" ; then
5396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5398 fi
5399
5400 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5402 fi
5403
5404 CFLAGS="$CFLAGS -Wmissing-declarations"
5405
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5407 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5408 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5409 if eval \${$cacheid+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5414 int i;
5415 int
5416 main ()
5417 {
5418
5419 ;
5420 return 0;
5421 }
5422 _ACEOF
5423 if ac_fn_c_try_link "$LINENO"; then :
5424 eval $cacheid=yes
5425 else
5426 eval $cacheid=no
5427 fi
5428 rm -f core conftest.err conftest.$ac_objext \
5429 conftest$ac_exeext conftest.$ac_ext
5430 fi
5431
5432
5433 CFLAGS="$xorg_testset_save_CFLAGS"
5434
5435 eval supported=\$$cacheid
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5437 $as_echo "$supported" >&6; }
5438 if test "$supported" = "yes" ; then
5439 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5440 found="yes"
5441 fi
5442 fi
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458 xorg_testset_save_CFLAGS="$CFLAGS"
5459
5460 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5463 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5464 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469 int i;
5470 _ACEOF
5471 if ac_fn_c_try_compile "$LINENO"; then :
5472 xorg_cv_cc_flag_unknown_warning_option=yes
5473 else
5474 xorg_cv_cc_flag_unknown_warning_option=no
5475 fi
5476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477 fi
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5479 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5481 CFLAGS="$xorg_testset_save_CFLAGS"
5482 fi
5483
5484 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5487 fi
5488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5490 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5491 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495 /* end confdefs.h. */
5496 int i;
5497 _ACEOF
5498 if ac_fn_c_try_compile "$LINENO"; then :
5499 xorg_cv_cc_flag_unused_command_line_argument=yes
5500 else
5501 xorg_cv_cc_flag_unused_command_line_argument=no
5502 fi
5503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504 fi
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5506 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5507 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5508 CFLAGS="$xorg_testset_save_CFLAGS"
5509 fi
5510
5511 found="no"
5512
5513 if test $found = "no" ; then
5514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5516 fi
5517
5518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5520 fi
5521
5522 CFLAGS="$CFLAGS -Wformat=2"
5523
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5525 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5526 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5527 if eval \${$cacheid+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h. */
5532 int i;
5533 int
5534 main ()
5535 {
5536
5537 ;
5538 return 0;
5539 }
5540 _ACEOF
5541 if ac_fn_c_try_link "$LINENO"; then :
5542 eval $cacheid=yes
5543 else
5544 eval $cacheid=no
5545 fi
5546 rm -f core conftest.err conftest.$ac_objext \
5547 conftest$ac_exeext conftest.$ac_ext
5548 fi
5549
5550
5551 CFLAGS="$xorg_testset_save_CFLAGS"
5552
5553 eval supported=\$$cacheid
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5555 $as_echo "$supported" >&6; }
5556 if test "$supported" = "yes" ; then
5557 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5558 found="yes"
5559 fi
5560 fi
5561
5562 if test $found = "no" ; then
5563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5565 fi
5566
5567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5569 fi
5570
5571 CFLAGS="$CFLAGS -Wformat"
5572
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5574 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5575 cacheid=xorg_cv_cc_flag__Wformat
5576 if eval \${$cacheid+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578 else
5579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580 /* end confdefs.h. */
5581 int i;
5582 int
5583 main ()
5584 {
5585
5586 ;
5587 return 0;
5588 }
5589 _ACEOF
5590 if ac_fn_c_try_link "$LINENO"; then :
5591 eval $cacheid=yes
5592 else
5593 eval $cacheid=no
5594 fi
5595 rm -f core conftest.err conftest.$ac_objext \
5596 conftest$ac_exeext conftest.$ac_ext
5597 fi
5598
5599
5600 CFLAGS="$xorg_testset_save_CFLAGS"
5601
5602 eval supported=\$$cacheid
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5604 $as_echo "$supported" >&6; }
5605 if test "$supported" = "yes" ; then
5606 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5607 found="yes"
5608 fi
5609 fi
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627 xorg_testset_save_CFLAGS="$CFLAGS"
5628
5629 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5632 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5633 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635 else
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 int i;
5639 _ACEOF
5640 if ac_fn_c_try_compile "$LINENO"; then :
5641 xorg_cv_cc_flag_unknown_warning_option=yes
5642 else
5643 xorg_cv_cc_flag_unknown_warning_option=no
5644 fi
5645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5646 fi
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5648 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5650 CFLAGS="$xorg_testset_save_CFLAGS"
5651 fi
5652
5653 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5656 fi
5657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5659 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5660 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5661 $as_echo_n "(cached) " >&6
5662 else
5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h. */
5665 int i;
5666 _ACEOF
5667 if ac_fn_c_try_compile "$LINENO"; then :
5668 xorg_cv_cc_flag_unused_command_line_argument=yes
5669 else
5670 xorg_cv_cc_flag_unused_command_line_argument=no
5671 fi
5672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673 fi
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5675 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5677 CFLAGS="$xorg_testset_save_CFLAGS"
5678 fi
5679
5680 found="no"
5681
5682 if test $found = "no" ; then
5683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5685 fi
5686
5687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5689 fi
5690
5691 CFLAGS="$CFLAGS -Wstrict-prototypes"
5692
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5694 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5695 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5696 if eval \${$cacheid+:} false; then :
5697 $as_echo_n "(cached) " >&6
5698 else
5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5701 int i;
5702 int
5703 main ()
5704 {
5705
5706 ;
5707 return 0;
5708 }
5709 _ACEOF
5710 if ac_fn_c_try_link "$LINENO"; then :
5711 eval $cacheid=yes
5712 else
5713 eval $cacheid=no
5714 fi
5715 rm -f core conftest.err conftest.$ac_objext \
5716 conftest$ac_exeext conftest.$ac_ext
5717 fi
5718
5719
5720 CFLAGS="$xorg_testset_save_CFLAGS"
5721
5722 eval supported=\$$cacheid
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5724 $as_echo "$supported" >&6; }
5725 if test "$supported" = "yes" ; then
5726 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5727 found="yes"
5728 fi
5729 fi
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745 xorg_testset_save_CFLAGS="$CFLAGS"
5746
5747 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5750 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5751 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5752 $as_echo_n "(cached) " >&6
5753 else
5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5756 int i;
5757 _ACEOF
5758 if ac_fn_c_try_compile "$LINENO"; then :
5759 xorg_cv_cc_flag_unknown_warning_option=yes
5760 else
5761 xorg_cv_cc_flag_unknown_warning_option=no
5762 fi
5763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764 fi
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5766 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5768 CFLAGS="$xorg_testset_save_CFLAGS"
5769 fi
5770
5771 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5774 fi
5775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5777 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5778 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5779 $as_echo_n "(cached) " >&6
5780 else
5781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5782 /* end confdefs.h. */
5783 int i;
5784 _ACEOF
5785 if ac_fn_c_try_compile "$LINENO"; then :
5786 xorg_cv_cc_flag_unused_command_line_argument=yes
5787 else
5788 xorg_cv_cc_flag_unused_command_line_argument=no
5789 fi
5790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791 fi
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5793 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5795 CFLAGS="$xorg_testset_save_CFLAGS"
5796 fi
5797
5798 found="no"
5799
5800 if test $found = "no" ; then
5801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5803 fi
5804
5805 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5807 fi
5808
5809 CFLAGS="$CFLAGS -Wmissing-prototypes"
5810
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5812 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5813 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5814 if eval \${$cacheid+:} false; then :
5815 $as_echo_n "(cached) " >&6
5816 else
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5819 int i;
5820 int
5821 main ()
5822 {
5823
5824 ;
5825 return 0;
5826 }
5827 _ACEOF
5828 if ac_fn_c_try_link "$LINENO"; then :
5829 eval $cacheid=yes
5830 else
5831 eval $cacheid=no
5832 fi
5833 rm -f core conftest.err conftest.$ac_objext \
5834 conftest$ac_exeext conftest.$ac_ext
5835 fi
5836
5837
5838 CFLAGS="$xorg_testset_save_CFLAGS"
5839
5840 eval supported=\$$cacheid
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5842 $as_echo "$supported" >&6; }
5843 if test "$supported" = "yes" ; then
5844 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5845 found="yes"
5846 fi
5847 fi
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863 xorg_testset_save_CFLAGS="$CFLAGS"
5864
5865 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5868 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5869 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873 /* end confdefs.h. */
5874 int i;
5875 _ACEOF
5876 if ac_fn_c_try_compile "$LINENO"; then :
5877 xorg_cv_cc_flag_unknown_warning_option=yes
5878 else
5879 xorg_cv_cc_flag_unknown_warning_option=no
5880 fi
5881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882 fi
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5884 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5886 CFLAGS="$xorg_testset_save_CFLAGS"
5887 fi
5888
5889 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5892 fi
5893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5895 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5896 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5897 $as_echo_n "(cached) " >&6
5898 else
5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900 /* end confdefs.h. */
5901 int i;
5902 _ACEOF
5903 if ac_fn_c_try_compile "$LINENO"; then :
5904 xorg_cv_cc_flag_unused_command_line_argument=yes
5905 else
5906 xorg_cv_cc_flag_unused_command_line_argument=no
5907 fi
5908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909 fi
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5911 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5912 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5913 CFLAGS="$xorg_testset_save_CFLAGS"
5914 fi
5915
5916 found="no"
5917
5918 if test $found = "no" ; then
5919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5921 fi
5922
5923 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5925 fi
5926
5927 CFLAGS="$CFLAGS -Wnested-externs"
5928
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5930 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5931 cacheid=xorg_cv_cc_flag__Wnested_externs
5932 if eval \${$cacheid+:} false; then :
5933 $as_echo_n "(cached) " >&6
5934 else
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5937 int i;
5938 int
5939 main ()
5940 {
5941
5942 ;
5943 return 0;
5944 }
5945 _ACEOF
5946 if ac_fn_c_try_link "$LINENO"; then :
5947 eval $cacheid=yes
5948 else
5949 eval $cacheid=no
5950 fi
5951 rm -f core conftest.err conftest.$ac_objext \
5952 conftest$ac_exeext conftest.$ac_ext
5953 fi
5954
5955
5956 CFLAGS="$xorg_testset_save_CFLAGS"
5957
5958 eval supported=\$$cacheid
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5960 $as_echo "$supported" >&6; }
5961 if test "$supported" = "yes" ; then
5962 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5963 found="yes"
5964 fi
5965 fi
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981 xorg_testset_save_CFLAGS="$CFLAGS"
5982
5983 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5986 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5987 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 int i;
5993 _ACEOF
5994 if ac_fn_c_try_compile "$LINENO"; then :
5995 xorg_cv_cc_flag_unknown_warning_option=yes
5996 else
5997 xorg_cv_cc_flag_unknown_warning_option=no
5998 fi
5999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6000 fi
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6002 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6003 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6004 CFLAGS="$xorg_testset_save_CFLAGS"
6005 fi
6006
6007 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6010 fi
6011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6013 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6014 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6015 $as_echo_n "(cached) " >&6
6016 else
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6019 int i;
6020 _ACEOF
6021 if ac_fn_c_try_compile "$LINENO"; then :
6022 xorg_cv_cc_flag_unused_command_line_argument=yes
6023 else
6024 xorg_cv_cc_flag_unused_command_line_argument=no
6025 fi
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027 fi
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6029 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6031 CFLAGS="$xorg_testset_save_CFLAGS"
6032 fi
6033
6034 found="no"
6035
6036 if test $found = "no" ; then
6037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6039 fi
6040
6041 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6043 fi
6044
6045 CFLAGS="$CFLAGS -Wbad-function-cast"
6046
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6048 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
6049 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6050 if eval \${$cacheid+:} false; then :
6051 $as_echo_n "(cached) " >&6
6052 else
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6055 int i;
6056 int
6057 main ()
6058 {
6059
6060 ;
6061 return 0;
6062 }
6063 _ACEOF
6064 if ac_fn_c_try_link "$LINENO"; then :
6065 eval $cacheid=yes
6066 else
6067 eval $cacheid=no
6068 fi
6069 rm -f core conftest.err conftest.$ac_objext \
6070 conftest$ac_exeext conftest.$ac_ext
6071 fi
6072
6073
6074 CFLAGS="$xorg_testset_save_CFLAGS"
6075
6076 eval supported=\$$cacheid
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6078 $as_echo "$supported" >&6; }
6079 if test "$supported" = "yes" ; then
6080 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6081 found="yes"
6082 fi
6083 fi
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099 xorg_testset_save_CFLAGS="$CFLAGS"
6100
6101 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6104 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6105 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110 int i;
6111 _ACEOF
6112 if ac_fn_c_try_compile "$LINENO"; then :
6113 xorg_cv_cc_flag_unknown_warning_option=yes
6114 else
6115 xorg_cv_cc_flag_unknown_warning_option=no
6116 fi
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118 fi
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6120 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6121 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6122 CFLAGS="$xorg_testset_save_CFLAGS"
6123 fi
6124
6125 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6128 fi
6129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6131 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6132 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6133 $as_echo_n "(cached) " >&6
6134 else
6135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136 /* end confdefs.h. */
6137 int i;
6138 _ACEOF
6139 if ac_fn_c_try_compile "$LINENO"; then :
6140 xorg_cv_cc_flag_unused_command_line_argument=yes
6141 else
6142 xorg_cv_cc_flag_unused_command_line_argument=no
6143 fi
6144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145 fi
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6147 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6149 CFLAGS="$xorg_testset_save_CFLAGS"
6150 fi
6151
6152 found="no"
6153
6154 if test $found = "no" ; then
6155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6157 fi
6158
6159 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6161 fi
6162
6163 CFLAGS="$CFLAGS -Wold-style-definition"
6164
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6166 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
6167 cacheid=xorg_cv_cc_flag__Wold_style_definition
6168 if eval \${$cacheid+:} false; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6173 int i;
6174 int
6175 main ()
6176 {
6177
6178 ;
6179 return 0;
6180 }
6181 _ACEOF
6182 if ac_fn_c_try_link "$LINENO"; then :
6183 eval $cacheid=yes
6184 else
6185 eval $cacheid=no
6186 fi
6187 rm -f core conftest.err conftest.$ac_objext \
6188 conftest$ac_exeext conftest.$ac_ext
6189 fi
6190
6191
6192 CFLAGS="$xorg_testset_save_CFLAGS"
6193
6194 eval supported=\$$cacheid
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6196 $as_echo "$supported" >&6; }
6197 if test "$supported" = "yes" ; then
6198 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6199 found="yes"
6200 fi
6201 fi
6202
6203 if test $found = "no" ; then
6204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6206 fi
6207
6208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6210 fi
6211
6212 CFLAGS="$CFLAGS -fd"
6213
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6215 $as_echo_n "checking if $CC supports -fd... " >&6; }
6216 cacheid=xorg_cv_cc_flag__fd
6217 if eval \${$cacheid+:} false; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222 int i;
6223 int
6224 main ()
6225 {
6226
6227 ;
6228 return 0;
6229 }
6230 _ACEOF
6231 if ac_fn_c_try_link "$LINENO"; then :
6232 eval $cacheid=yes
6233 else
6234 eval $cacheid=no
6235 fi
6236 rm -f core conftest.err conftest.$ac_objext \
6237 conftest$ac_exeext conftest.$ac_ext
6238 fi
6239
6240
6241 CFLAGS="$xorg_testset_save_CFLAGS"
6242
6243 eval supported=\$$cacheid
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6245 $as_echo "$supported" >&6; }
6246 if test "$supported" = "yes" ; then
6247 BASE_CFLAGS="$BASE_CFLAGS -fd"
6248 found="yes"
6249 fi
6250 fi
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266 xorg_testset_save_CFLAGS="$CFLAGS"
6267
6268 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6271 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6272 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6273 $as_echo_n "(cached) " >&6
6274 else
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6277 int i;
6278 _ACEOF
6279 if ac_fn_c_try_compile "$LINENO"; then :
6280 xorg_cv_cc_flag_unknown_warning_option=yes
6281 else
6282 xorg_cv_cc_flag_unknown_warning_option=no
6283 fi
6284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285 fi
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6287 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6289 CFLAGS="$xorg_testset_save_CFLAGS"
6290 fi
6291
6292 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6295 fi
6296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6298 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6299 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6300 $as_echo_n "(cached) " >&6
6301 else
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6304 int i;
6305 _ACEOF
6306 if ac_fn_c_try_compile "$LINENO"; then :
6307 xorg_cv_cc_flag_unused_command_line_argument=yes
6308 else
6309 xorg_cv_cc_flag_unused_command_line_argument=no
6310 fi
6311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 fi
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6314 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6315 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6316 CFLAGS="$xorg_testset_save_CFLAGS"
6317 fi
6318
6319 found="no"
6320
6321 if test $found = "no" ; then
6322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6324 fi
6325
6326 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6328 fi
6329
6330 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6331
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6333 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6334 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6335 if eval \${$cacheid+:} false; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6340 int i;
6341 int
6342 main ()
6343 {
6344
6345 ;
6346 return 0;
6347 }
6348 _ACEOF
6349 if ac_fn_c_try_link "$LINENO"; then :
6350 eval $cacheid=yes
6351 else
6352 eval $cacheid=no
6353 fi
6354 rm -f core conftest.err conftest.$ac_objext \
6355 conftest$ac_exeext conftest.$ac_ext
6356 fi
6357
6358
6359 CFLAGS="$xorg_testset_save_CFLAGS"
6360
6361 eval supported=\$$cacheid
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6363 $as_echo "$supported" >&6; }
6364 if test "$supported" = "yes" ; then
6365 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6366 found="yes"
6367 fi
6368 fi
6369
6370
6371
6372
6373
6374 # This chunk adds additional warnings that could catch undesired effects.
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388 xorg_testset_save_CFLAGS="$CFLAGS"
6389
6390 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6393 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6394 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6395 $as_echo_n "(cached) " >&6
6396 else
6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398 /* end confdefs.h. */
6399 int i;
6400 _ACEOF
6401 if ac_fn_c_try_compile "$LINENO"; then :
6402 xorg_cv_cc_flag_unknown_warning_option=yes
6403 else
6404 xorg_cv_cc_flag_unknown_warning_option=no
6405 fi
6406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6407 fi
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6409 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6411 CFLAGS="$xorg_testset_save_CFLAGS"
6412 fi
6413
6414 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6417 fi
6418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6420 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6421 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6422 $as_echo_n "(cached) " >&6
6423 else
6424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425 /* end confdefs.h. */
6426 int i;
6427 _ACEOF
6428 if ac_fn_c_try_compile "$LINENO"; then :
6429 xorg_cv_cc_flag_unused_command_line_argument=yes
6430 else
6431 xorg_cv_cc_flag_unused_command_line_argument=no
6432 fi
6433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6434 fi
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6436 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6438 CFLAGS="$xorg_testset_save_CFLAGS"
6439 fi
6440
6441 found="no"
6442
6443 if test $found = "no" ; then
6444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6446 fi
6447
6448 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6450 fi
6451
6452 CFLAGS="$CFLAGS -Wunused"
6453
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6455 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6456 cacheid=xorg_cv_cc_flag__Wunused
6457 if eval \${$cacheid+:} false; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462 int i;
6463 int
6464 main ()
6465 {
6466
6467 ;
6468 return 0;
6469 }
6470 _ACEOF
6471 if ac_fn_c_try_link "$LINENO"; then :
6472 eval $cacheid=yes
6473 else
6474 eval $cacheid=no
6475 fi
6476 rm -f core conftest.err conftest.$ac_objext \
6477 conftest$ac_exeext conftest.$ac_ext
6478 fi
6479
6480
6481 CFLAGS="$xorg_testset_save_CFLAGS"
6482
6483 eval supported=\$$cacheid
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6485 $as_echo "$supported" >&6; }
6486 if test "$supported" = "yes" ; then
6487 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6488 found="yes"
6489 fi
6490 fi
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506 xorg_testset_save_CFLAGS="$CFLAGS"
6507
6508 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6511 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6512 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6513 $as_echo_n "(cached) " >&6
6514 else
6515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516 /* end confdefs.h. */
6517 int i;
6518 _ACEOF
6519 if ac_fn_c_try_compile "$LINENO"; then :
6520 xorg_cv_cc_flag_unknown_warning_option=yes
6521 else
6522 xorg_cv_cc_flag_unknown_warning_option=no
6523 fi
6524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525 fi
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6527 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6528 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6529 CFLAGS="$xorg_testset_save_CFLAGS"
6530 fi
6531
6532 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6535 fi
6536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6538 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6539 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6543 /* end confdefs.h. */
6544 int i;
6545 _ACEOF
6546 if ac_fn_c_try_compile "$LINENO"; then :
6547 xorg_cv_cc_flag_unused_command_line_argument=yes
6548 else
6549 xorg_cv_cc_flag_unused_command_line_argument=no
6550 fi
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 fi
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6554 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6556 CFLAGS="$xorg_testset_save_CFLAGS"
6557 fi
6558
6559 found="no"
6560
6561 if test $found = "no" ; then
6562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6564 fi
6565
6566 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6568 fi
6569
6570 CFLAGS="$CFLAGS -Wuninitialized"
6571
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6573 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6574 cacheid=xorg_cv_cc_flag__Wuninitialized
6575 if eval \${$cacheid+:} false; then :
6576 $as_echo_n "(cached) " >&6
6577 else
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6580 int i;
6581 int
6582 main ()
6583 {
6584
6585 ;
6586 return 0;
6587 }
6588 _ACEOF
6589 if ac_fn_c_try_link "$LINENO"; then :
6590 eval $cacheid=yes
6591 else
6592 eval $cacheid=no
6593 fi
6594 rm -f core conftest.err conftest.$ac_objext \
6595 conftest$ac_exeext conftest.$ac_ext
6596 fi
6597
6598
6599 CFLAGS="$xorg_testset_save_CFLAGS"
6600
6601 eval supported=\$$cacheid
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6603 $as_echo "$supported" >&6; }
6604 if test "$supported" = "yes" ; then
6605 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6606 found="yes"
6607 fi
6608 fi
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624 xorg_testset_save_CFLAGS="$CFLAGS"
6625
6626 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6629 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6630 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6631 $as_echo_n "(cached) " >&6
6632 else
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h. */
6635 int i;
6636 _ACEOF
6637 if ac_fn_c_try_compile "$LINENO"; then :
6638 xorg_cv_cc_flag_unknown_warning_option=yes
6639 else
6640 xorg_cv_cc_flag_unknown_warning_option=no
6641 fi
6642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643 fi
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6645 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6646 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6647 CFLAGS="$xorg_testset_save_CFLAGS"
6648 fi
6649
6650 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6653 fi
6654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6656 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6657 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6658 $as_echo_n "(cached) " >&6
6659 else
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6662 int i;
6663 _ACEOF
6664 if ac_fn_c_try_compile "$LINENO"; then :
6665 xorg_cv_cc_flag_unused_command_line_argument=yes
6666 else
6667 xorg_cv_cc_flag_unused_command_line_argument=no
6668 fi
6669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6670 fi
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6672 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6673 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6674 CFLAGS="$xorg_testset_save_CFLAGS"
6675 fi
6676
6677 found="no"
6678
6679 if test $found = "no" ; then
6680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6682 fi
6683
6684 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6686 fi
6687
6688 CFLAGS="$CFLAGS -Wshadow"
6689
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6691 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6692 cacheid=xorg_cv_cc_flag__Wshadow
6693 if eval \${$cacheid+:} false; then :
6694 $as_echo_n "(cached) " >&6
6695 else
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6698 int i;
6699 int
6700 main ()
6701 {
6702
6703 ;
6704 return 0;
6705 }
6706 _ACEOF
6707 if ac_fn_c_try_link "$LINENO"; then :
6708 eval $cacheid=yes
6709 else
6710 eval $cacheid=no
6711 fi
6712 rm -f core conftest.err conftest.$ac_objext \
6713 conftest$ac_exeext conftest.$ac_ext
6714 fi
6715
6716
6717 CFLAGS="$xorg_testset_save_CFLAGS"
6718
6719 eval supported=\$$cacheid
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6721 $as_echo "$supported" >&6; }
6722 if test "$supported" = "yes" ; then
6723 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6724 found="yes"
6725 fi
6726 fi
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742 xorg_testset_save_CFLAGS="$CFLAGS"
6743
6744 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6747 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6748 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6749 $as_echo_n "(cached) " >&6
6750 else
6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h. */
6753 int i;
6754 _ACEOF
6755 if ac_fn_c_try_compile "$LINENO"; then :
6756 xorg_cv_cc_flag_unknown_warning_option=yes
6757 else
6758 xorg_cv_cc_flag_unknown_warning_option=no
6759 fi
6760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6761 fi
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6763 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6765 CFLAGS="$xorg_testset_save_CFLAGS"
6766 fi
6767
6768 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6771 fi
6772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6774 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6775 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6776 $as_echo_n "(cached) " >&6
6777 else
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6780 int i;
6781 _ACEOF
6782 if ac_fn_c_try_compile "$LINENO"; then :
6783 xorg_cv_cc_flag_unused_command_line_argument=yes
6784 else
6785 xorg_cv_cc_flag_unused_command_line_argument=no
6786 fi
6787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788 fi
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6790 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6792 CFLAGS="$xorg_testset_save_CFLAGS"
6793 fi
6794
6795 found="no"
6796
6797 if test $found = "no" ; then
6798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6800 fi
6801
6802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6804 fi
6805
6806 CFLAGS="$CFLAGS -Wmissing-noreturn"
6807
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6809 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6810 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6811 if eval \${$cacheid+:} false; then :
6812 $as_echo_n "(cached) " >&6
6813 else
6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815 /* end confdefs.h. */
6816 int i;
6817 int
6818 main ()
6819 {
6820
6821 ;
6822 return 0;
6823 }
6824 _ACEOF
6825 if ac_fn_c_try_link "$LINENO"; then :
6826 eval $cacheid=yes
6827 else
6828 eval $cacheid=no
6829 fi
6830 rm -f core conftest.err conftest.$ac_objext \
6831 conftest$ac_exeext conftest.$ac_ext
6832 fi
6833
6834
6835 CFLAGS="$xorg_testset_save_CFLAGS"
6836
6837 eval supported=\$$cacheid
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6839 $as_echo "$supported" >&6; }
6840 if test "$supported" = "yes" ; then
6841 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6842 found="yes"
6843 fi
6844 fi
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860 xorg_testset_save_CFLAGS="$CFLAGS"
6861
6862 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6865 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6866 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6867 $as_echo_n "(cached) " >&6
6868 else
6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h. */
6871 int i;
6872 _ACEOF
6873 if ac_fn_c_try_compile "$LINENO"; then :
6874 xorg_cv_cc_flag_unknown_warning_option=yes
6875 else
6876 xorg_cv_cc_flag_unknown_warning_option=no
6877 fi
6878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6879 fi
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6881 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6883 CFLAGS="$xorg_testset_save_CFLAGS"
6884 fi
6885
6886 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6889 fi
6890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6892 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6893 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897 /* end confdefs.h. */
6898 int i;
6899 _ACEOF
6900 if ac_fn_c_try_compile "$LINENO"; then :
6901 xorg_cv_cc_flag_unused_command_line_argument=yes
6902 else
6903 xorg_cv_cc_flag_unused_command_line_argument=no
6904 fi
6905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6906 fi
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6908 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6909 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6910 CFLAGS="$xorg_testset_save_CFLAGS"
6911 fi
6912
6913 found="no"
6914
6915 if test $found = "no" ; then
6916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6918 fi
6919
6920 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6922 fi
6923
6924 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6925
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6927 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6928 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6929 if eval \${$cacheid+:} false; then :
6930 $as_echo_n "(cached) " >&6
6931 else
6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h. */
6934 int i;
6935 int
6936 main ()
6937 {
6938
6939 ;
6940 return 0;
6941 }
6942 _ACEOF
6943 if ac_fn_c_try_link "$LINENO"; then :
6944 eval $cacheid=yes
6945 else
6946 eval $cacheid=no
6947 fi
6948 rm -f core conftest.err conftest.$ac_objext \
6949 conftest$ac_exeext conftest.$ac_ext
6950 fi
6951
6952
6953 CFLAGS="$xorg_testset_save_CFLAGS"
6954
6955 eval supported=\$$cacheid
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6957 $as_echo "$supported" >&6; }
6958 if test "$supported" = "yes" ; then
6959 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6960 found="yes"
6961 fi
6962 fi
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978 xorg_testset_save_CFLAGS="$CFLAGS"
6979
6980 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6983 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6984 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6985 $as_echo_n "(cached) " >&6
6986 else
6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
6989 int i;
6990 _ACEOF
6991 if ac_fn_c_try_compile "$LINENO"; then :
6992 xorg_cv_cc_flag_unknown_warning_option=yes
6993 else
6994 xorg_cv_cc_flag_unknown_warning_option=no
6995 fi
6996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6997 fi
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6999 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7001 CFLAGS="$xorg_testset_save_CFLAGS"
7002 fi
7003
7004 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7007 fi
7008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7010 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7011 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015 /* end confdefs.h. */
7016 int i;
7017 _ACEOF
7018 if ac_fn_c_try_compile "$LINENO"; then :
7019 xorg_cv_cc_flag_unused_command_line_argument=yes
7020 else
7021 xorg_cv_cc_flag_unused_command_line_argument=no
7022 fi
7023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7024 fi
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7026 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7028 CFLAGS="$xorg_testset_save_CFLAGS"
7029 fi
7030
7031 found="no"
7032
7033 if test $found = "no" ; then
7034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7036 fi
7037
7038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7040 fi
7041
7042 CFLAGS="$CFLAGS -Wredundant-decls"
7043
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7045 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
7046 cacheid=xorg_cv_cc_flag__Wredundant_decls
7047 if eval \${$cacheid+:} false; then :
7048 $as_echo_n "(cached) " >&6
7049 else
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7052 int i;
7053 int
7054 main ()
7055 {
7056
7057 ;
7058 return 0;
7059 }
7060 _ACEOF
7061 if ac_fn_c_try_link "$LINENO"; then :
7062 eval $cacheid=yes
7063 else
7064 eval $cacheid=no
7065 fi
7066 rm -f core conftest.err conftest.$ac_objext \
7067 conftest$ac_exeext conftest.$ac_ext
7068 fi
7069
7070
7071 CFLAGS="$xorg_testset_save_CFLAGS"
7072
7073 eval supported=\$$cacheid
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7075 $as_echo "$supported" >&6; }
7076 if test "$supported" = "yes" ; then
7077 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7078 found="yes"
7079 fi
7080 fi
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096 xorg_testset_save_CFLAGS="$CFLAGS"
7097
7098 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7101 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7102 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106 /* end confdefs.h. */
7107 int i;
7108 _ACEOF
7109 if ac_fn_c_try_compile "$LINENO"; then :
7110 xorg_cv_cc_flag_unknown_warning_option=yes
7111 else
7112 xorg_cv_cc_flag_unknown_warning_option=no
7113 fi
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115 fi
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7117 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7119 CFLAGS="$xorg_testset_save_CFLAGS"
7120 fi
7121
7122 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7125 fi
7126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7128 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7129 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7130 $as_echo_n "(cached) " >&6
7131 else
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7134 int i;
7135 _ACEOF
7136 if ac_fn_c_try_compile "$LINENO"; then :
7137 xorg_cv_cc_flag_unused_command_line_argument=yes
7138 else
7139 xorg_cv_cc_flag_unused_command_line_argument=no
7140 fi
7141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142 fi
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7144 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7146 CFLAGS="$xorg_testset_save_CFLAGS"
7147 fi
7148
7149 found="no"
7150
7151 if test $found = "no" ; then
7152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7154 fi
7155
7156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7158 fi
7159
7160 CFLAGS="$CFLAGS -Wlogical-op"
7161
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7163 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
7164 cacheid=xorg_cv_cc_flag__Wlogical_op
7165 if eval \${$cacheid+:} false; then :
7166 $as_echo_n "(cached) " >&6
7167 else
7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7170 int i;
7171 int
7172 main ()
7173 {
7174
7175 ;
7176 return 0;
7177 }
7178 _ACEOF
7179 if ac_fn_c_try_link "$LINENO"; then :
7180 eval $cacheid=yes
7181 else
7182 eval $cacheid=no
7183 fi
7184 rm -f core conftest.err conftest.$ac_objext \
7185 conftest$ac_exeext conftest.$ac_ext
7186 fi
7187
7188
7189 CFLAGS="$xorg_testset_save_CFLAGS"
7190
7191 eval supported=\$$cacheid
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7193 $as_echo "$supported" >&6; }
7194 if test "$supported" = "yes" ; then
7195 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7196 found="yes"
7197 fi
7198 fi
7199
7200
7201
7202 # These are currently disabled because they are noisy. They will be enabled
7203 # in the future once the codebase is sufficiently modernized to silence
7204 # them. For now, I don't want them to drown out the other warnings.
7205 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7206 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7207 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7208
7209 # Turn some warnings into errors, so we don't accidently get successful builds
7210 # when there are problems that should be fixed.
7211
7212 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226 xorg_testset_save_CFLAGS="$CFLAGS"
7227
7228 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7231 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7232 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h. */
7237 int i;
7238 _ACEOF
7239 if ac_fn_c_try_compile "$LINENO"; then :
7240 xorg_cv_cc_flag_unknown_warning_option=yes
7241 else
7242 xorg_cv_cc_flag_unknown_warning_option=no
7243 fi
7244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7245 fi
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7247 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7248 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7249 CFLAGS="$xorg_testset_save_CFLAGS"
7250 fi
7251
7252 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7255 fi
7256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7258 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7259 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7260 $as_echo_n "(cached) " >&6
7261 else
7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h. */
7264 int i;
7265 _ACEOF
7266 if ac_fn_c_try_compile "$LINENO"; then :
7267 xorg_cv_cc_flag_unused_command_line_argument=yes
7268 else
7269 xorg_cv_cc_flag_unused_command_line_argument=no
7270 fi
7271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7272 fi
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7274 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7275 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7276 CFLAGS="$xorg_testset_save_CFLAGS"
7277 fi
7278
7279 found="no"
7280
7281 if test $found = "no" ; then
7282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7284 fi
7285
7286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7288 fi
7289
7290 CFLAGS="$CFLAGS -Werror=implicit"
7291
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7293 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7294 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
7295 if eval \${$cacheid+:} false; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h. */
7300 int i;
7301 int
7302 main ()
7303 {
7304
7305 ;
7306 return 0;
7307 }
7308 _ACEOF
7309 if ac_fn_c_try_link "$LINENO"; then :
7310 eval $cacheid=yes
7311 else
7312 eval $cacheid=no
7313 fi
7314 rm -f core conftest.err conftest.$ac_objext \
7315 conftest$ac_exeext conftest.$ac_ext
7316 fi
7317
7318
7319 CFLAGS="$xorg_testset_save_CFLAGS"
7320
7321 eval supported=\$$cacheid
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7323 $as_echo "$supported" >&6; }
7324 if test "$supported" = "yes" ; then
7325 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7326 found="yes"
7327 fi
7328 fi
7329
7330 if test $found = "no" ; then
7331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7333 fi
7334
7335 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7337 fi
7338
7339 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7340
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7342 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7343 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
7344 if eval \${$cacheid+:} false; then :
7345 $as_echo_n "(cached) " >&6
7346 else
7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348 /* end confdefs.h. */
7349 int i;
7350 int
7351 main ()
7352 {
7353
7354 ;
7355 return 0;
7356 }
7357 _ACEOF
7358 if ac_fn_c_try_link "$LINENO"; then :
7359 eval $cacheid=yes
7360 else
7361 eval $cacheid=no
7362 fi
7363 rm -f core conftest.err conftest.$ac_objext \
7364 conftest$ac_exeext conftest.$ac_ext
7365 fi
7366
7367
7368 CFLAGS="$xorg_testset_save_CFLAGS"
7369
7370 eval supported=\$$cacheid
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7372 $as_echo "$supported" >&6; }
7373 if test "$supported" = "yes" ; then
7374 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7375 found="yes"
7376 fi
7377 fi
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393 xorg_testset_save_CFLAGS="$CFLAGS"
7394
7395 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7398 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7399 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7400 $as_echo_n "(cached) " >&6
7401 else
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h. */
7404 int i;
7405 _ACEOF
7406 if ac_fn_c_try_compile "$LINENO"; then :
7407 xorg_cv_cc_flag_unknown_warning_option=yes
7408 else
7409 xorg_cv_cc_flag_unknown_warning_option=no
7410 fi
7411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7412 fi
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7414 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7415 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7416 CFLAGS="$xorg_testset_save_CFLAGS"
7417 fi
7418
7419 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7422 fi
7423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7425 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7426 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7427 $as_echo_n "(cached) " >&6
7428 else
7429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430 /* end confdefs.h. */
7431 int i;
7432 _ACEOF
7433 if ac_fn_c_try_compile "$LINENO"; then :
7434 xorg_cv_cc_flag_unused_command_line_argument=yes
7435 else
7436 xorg_cv_cc_flag_unused_command_line_argument=no
7437 fi
7438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7439 fi
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7441 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7443 CFLAGS="$xorg_testset_save_CFLAGS"
7444 fi
7445
7446 found="no"
7447
7448 if test $found = "no" ; then
7449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7451 fi
7452
7453 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7455 fi
7456
7457 CFLAGS="$CFLAGS -Werror=nonnull"
7458
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7460 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7461 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7462 if eval \${$cacheid+:} false; then :
7463 $as_echo_n "(cached) " >&6
7464 else
7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466 /* end confdefs.h. */
7467 int i;
7468 int
7469 main ()
7470 {
7471
7472 ;
7473 return 0;
7474 }
7475 _ACEOF
7476 if ac_fn_c_try_link "$LINENO"; then :
7477 eval $cacheid=yes
7478 else
7479 eval $cacheid=no
7480 fi
7481 rm -f core conftest.err conftest.$ac_objext \
7482 conftest$ac_exeext conftest.$ac_ext
7483 fi
7484
7485
7486 CFLAGS="$xorg_testset_save_CFLAGS"
7487
7488 eval supported=\$$cacheid
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7490 $as_echo "$supported" >&6; }
7491 if test "$supported" = "yes" ; then
7492 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7493 found="yes"
7494 fi
7495 fi
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511 xorg_testset_save_CFLAGS="$CFLAGS"
7512
7513 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7516 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7517 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7518 $as_echo_n "(cached) " >&6
7519 else
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7522 int i;
7523 _ACEOF
7524 if ac_fn_c_try_compile "$LINENO"; then :
7525 xorg_cv_cc_flag_unknown_warning_option=yes
7526 else
7527 xorg_cv_cc_flag_unknown_warning_option=no
7528 fi
7529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530 fi
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7532 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7534 CFLAGS="$xorg_testset_save_CFLAGS"
7535 fi
7536
7537 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7540 fi
7541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7543 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7544 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7545 $as_echo_n "(cached) " >&6
7546 else
7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h. */
7549 int i;
7550 _ACEOF
7551 if ac_fn_c_try_compile "$LINENO"; then :
7552 xorg_cv_cc_flag_unused_command_line_argument=yes
7553 else
7554 xorg_cv_cc_flag_unused_command_line_argument=no
7555 fi
7556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557 fi
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7559 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7560 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7561 CFLAGS="$xorg_testset_save_CFLAGS"
7562 fi
7563
7564 found="no"
7565
7566 if test $found = "no" ; then
7567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7569 fi
7570
7571 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7573 fi
7574
7575 CFLAGS="$CFLAGS -Werror=init-self"
7576
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7578 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7579 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7580 if eval \${$cacheid+:} false; then :
7581 $as_echo_n "(cached) " >&6
7582 else
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7585 int i;
7586 int
7587 main ()
7588 {
7589
7590 ;
7591 return 0;
7592 }
7593 _ACEOF
7594 if ac_fn_c_try_link "$LINENO"; then :
7595 eval $cacheid=yes
7596 else
7597 eval $cacheid=no
7598 fi
7599 rm -f core conftest.err conftest.$ac_objext \
7600 conftest$ac_exeext conftest.$ac_ext
7601 fi
7602
7603
7604 CFLAGS="$xorg_testset_save_CFLAGS"
7605
7606 eval supported=\$$cacheid
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7608 $as_echo "$supported" >&6; }
7609 if test "$supported" = "yes" ; then
7610 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7611 found="yes"
7612 fi
7613 fi
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629 xorg_testset_save_CFLAGS="$CFLAGS"
7630
7631 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7634 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7635 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7636 $as_echo_n "(cached) " >&6
7637 else
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h. */
7640 int i;
7641 _ACEOF
7642 if ac_fn_c_try_compile "$LINENO"; then :
7643 xorg_cv_cc_flag_unknown_warning_option=yes
7644 else
7645 xorg_cv_cc_flag_unknown_warning_option=no
7646 fi
7647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7648 fi
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7650 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7652 CFLAGS="$xorg_testset_save_CFLAGS"
7653 fi
7654
7655 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7658 fi
7659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7661 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7662 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7663 $as_echo_n "(cached) " >&6
7664 else
7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h. */
7667 int i;
7668 _ACEOF
7669 if ac_fn_c_try_compile "$LINENO"; then :
7670 xorg_cv_cc_flag_unused_command_line_argument=yes
7671 else
7672 xorg_cv_cc_flag_unused_command_line_argument=no
7673 fi
7674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675 fi
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7677 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7679 CFLAGS="$xorg_testset_save_CFLAGS"
7680 fi
7681
7682 found="no"
7683
7684 if test $found = "no" ; then
7685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7687 fi
7688
7689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7691 fi
7692
7693 CFLAGS="$CFLAGS -Werror=main"
7694
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7696 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7697 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7698 if eval \${$cacheid+:} false; then :
7699 $as_echo_n "(cached) " >&6
7700 else
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7703 int i;
7704 int
7705 main ()
7706 {
7707
7708 ;
7709 return 0;
7710 }
7711 _ACEOF
7712 if ac_fn_c_try_link "$LINENO"; then :
7713 eval $cacheid=yes
7714 else
7715 eval $cacheid=no
7716 fi
7717 rm -f core conftest.err conftest.$ac_objext \
7718 conftest$ac_exeext conftest.$ac_ext
7719 fi
7720
7721
7722 CFLAGS="$xorg_testset_save_CFLAGS"
7723
7724 eval supported=\$$cacheid
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7726 $as_echo "$supported" >&6; }
7727 if test "$supported" = "yes" ; then
7728 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7729 found="yes"
7730 fi
7731 fi
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747 xorg_testset_save_CFLAGS="$CFLAGS"
7748
7749 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7752 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7753 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h. */
7758 int i;
7759 _ACEOF
7760 if ac_fn_c_try_compile "$LINENO"; then :
7761 xorg_cv_cc_flag_unknown_warning_option=yes
7762 else
7763 xorg_cv_cc_flag_unknown_warning_option=no
7764 fi
7765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7766 fi
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7768 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7770 CFLAGS="$xorg_testset_save_CFLAGS"
7771 fi
7772
7773 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7776 fi
7777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7779 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7780 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7781 $as_echo_n "(cached) " >&6
7782 else
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7785 int i;
7786 _ACEOF
7787 if ac_fn_c_try_compile "$LINENO"; then :
7788 xorg_cv_cc_flag_unused_command_line_argument=yes
7789 else
7790 xorg_cv_cc_flag_unused_command_line_argument=no
7791 fi
7792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7793 fi
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7795 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7796 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7797 CFLAGS="$xorg_testset_save_CFLAGS"
7798 fi
7799
7800 found="no"
7801
7802 if test $found = "no" ; then
7803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7805 fi
7806
7807 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7809 fi
7810
7811 CFLAGS="$CFLAGS -Werror=missing-braces"
7812
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7814 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7815 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7816 if eval \${$cacheid+:} false; then :
7817 $as_echo_n "(cached) " >&6
7818 else
7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h. */
7821 int i;
7822 int
7823 main ()
7824 {
7825
7826 ;
7827 return 0;
7828 }
7829 _ACEOF
7830 if ac_fn_c_try_link "$LINENO"; then :
7831 eval $cacheid=yes
7832 else
7833 eval $cacheid=no
7834 fi
7835 rm -f core conftest.err conftest.$ac_objext \
7836 conftest$ac_exeext conftest.$ac_ext
7837 fi
7838
7839
7840 CFLAGS="$xorg_testset_save_CFLAGS"
7841
7842 eval supported=\$$cacheid
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7844 $as_echo "$supported" >&6; }
7845 if test "$supported" = "yes" ; then
7846 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7847 found="yes"
7848 fi
7849 fi
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865 xorg_testset_save_CFLAGS="$CFLAGS"
7866
7867 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7870 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7871 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7872 $as_echo_n "(cached) " >&6
7873 else
7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7876 int i;
7877 _ACEOF
7878 if ac_fn_c_try_compile "$LINENO"; then :
7879 xorg_cv_cc_flag_unknown_warning_option=yes
7880 else
7881 xorg_cv_cc_flag_unknown_warning_option=no
7882 fi
7883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884 fi
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7886 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7888 CFLAGS="$xorg_testset_save_CFLAGS"
7889 fi
7890
7891 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7894 fi
7895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7897 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7898 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7899 $as_echo_n "(cached) " >&6
7900 else
7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h. */
7903 int i;
7904 _ACEOF
7905 if ac_fn_c_try_compile "$LINENO"; then :
7906 xorg_cv_cc_flag_unused_command_line_argument=yes
7907 else
7908 xorg_cv_cc_flag_unused_command_line_argument=no
7909 fi
7910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7911 fi
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7913 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7915 CFLAGS="$xorg_testset_save_CFLAGS"
7916 fi
7917
7918 found="no"
7919
7920 if test $found = "no" ; then
7921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7923 fi
7924
7925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7927 fi
7928
7929 CFLAGS="$CFLAGS -Werror=sequence-point"
7930
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7932 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7933 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7934 if eval \${$cacheid+:} false; then :
7935 $as_echo_n "(cached) " >&6
7936 else
7937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938 /* end confdefs.h. */
7939 int i;
7940 int
7941 main ()
7942 {
7943
7944 ;
7945 return 0;
7946 }
7947 _ACEOF
7948 if ac_fn_c_try_link "$LINENO"; then :
7949 eval $cacheid=yes
7950 else
7951 eval $cacheid=no
7952 fi
7953 rm -f core conftest.err conftest.$ac_objext \
7954 conftest$ac_exeext conftest.$ac_ext
7955 fi
7956
7957
7958 CFLAGS="$xorg_testset_save_CFLAGS"
7959
7960 eval supported=\$$cacheid
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7962 $as_echo "$supported" >&6; }
7963 if test "$supported" = "yes" ; then
7964 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7965 found="yes"
7966 fi
7967 fi
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983 xorg_testset_save_CFLAGS="$CFLAGS"
7984
7985 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7988 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7989 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h. */
7994 int i;
7995 _ACEOF
7996 if ac_fn_c_try_compile "$LINENO"; then :
7997 xorg_cv_cc_flag_unknown_warning_option=yes
7998 else
7999 xorg_cv_cc_flag_unknown_warning_option=no
8000 fi
8001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8002 fi
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8004 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8006 CFLAGS="$xorg_testset_save_CFLAGS"
8007 fi
8008
8009 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8012 fi
8013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8015 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8016 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8017 $as_echo_n "(cached) " >&6
8018 else
8019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020 /* end confdefs.h. */
8021 int i;
8022 _ACEOF
8023 if ac_fn_c_try_compile "$LINENO"; then :
8024 xorg_cv_cc_flag_unused_command_line_argument=yes
8025 else
8026 xorg_cv_cc_flag_unused_command_line_argument=no
8027 fi
8028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029 fi
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8031 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8032 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8033 CFLAGS="$xorg_testset_save_CFLAGS"
8034 fi
8035
8036 found="no"
8037
8038 if test $found = "no" ; then
8039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8041 fi
8042
8043 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8045 fi
8046
8047 CFLAGS="$CFLAGS -Werror=return-type"
8048
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8050 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
8051 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
8052 if eval \${$cacheid+:} false; then :
8053 $as_echo_n "(cached) " >&6
8054 else
8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h. */
8057 int i;
8058 int
8059 main ()
8060 {
8061
8062 ;
8063 return 0;
8064 }
8065 _ACEOF
8066 if ac_fn_c_try_link "$LINENO"; then :
8067 eval $cacheid=yes
8068 else
8069 eval $cacheid=no
8070 fi
8071 rm -f core conftest.err conftest.$ac_objext \
8072 conftest$ac_exeext conftest.$ac_ext
8073 fi
8074
8075
8076 CFLAGS="$xorg_testset_save_CFLAGS"
8077
8078 eval supported=\$$cacheid
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8080 $as_echo "$supported" >&6; }
8081 if test "$supported" = "yes" ; then
8082 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8083 found="yes"
8084 fi
8085 fi
8086
8087 if test $found = "no" ; then
8088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8090 fi
8091
8092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8094 fi
8095
8096 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8097
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8099 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8100 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
8101 if eval \${$cacheid+:} false; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8106 int i;
8107 int
8108 main ()
8109 {
8110
8111 ;
8112 return 0;
8113 }
8114 _ACEOF
8115 if ac_fn_c_try_link "$LINENO"; then :
8116 eval $cacheid=yes
8117 else
8118 eval $cacheid=no
8119 fi
8120 rm -f core conftest.err conftest.$ac_objext \
8121 conftest$ac_exeext conftest.$ac_ext
8122 fi
8123
8124
8125 CFLAGS="$xorg_testset_save_CFLAGS"
8126
8127 eval supported=\$$cacheid
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8129 $as_echo "$supported" >&6; }
8130 if test "$supported" = "yes" ; then
8131 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8132 found="yes"
8133 fi
8134 fi
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150 xorg_testset_save_CFLAGS="$CFLAGS"
8151
8152 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8155 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8156 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8161 int i;
8162 _ACEOF
8163 if ac_fn_c_try_compile "$LINENO"; then :
8164 xorg_cv_cc_flag_unknown_warning_option=yes
8165 else
8166 xorg_cv_cc_flag_unknown_warning_option=no
8167 fi
8168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8169 fi
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8171 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8172 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8173 CFLAGS="$xorg_testset_save_CFLAGS"
8174 fi
8175
8176 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8179 fi
8180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8182 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8183 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8184 $as_echo_n "(cached) " >&6
8185 else
8186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8187 /* end confdefs.h. */
8188 int i;
8189 _ACEOF
8190 if ac_fn_c_try_compile "$LINENO"; then :
8191 xorg_cv_cc_flag_unused_command_line_argument=yes
8192 else
8193 xorg_cv_cc_flag_unused_command_line_argument=no
8194 fi
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196 fi
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8198 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8200 CFLAGS="$xorg_testset_save_CFLAGS"
8201 fi
8202
8203 found="no"
8204
8205 if test $found = "no" ; then
8206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8208 fi
8209
8210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8212 fi
8213
8214 CFLAGS="$CFLAGS -Werror=trigraphs"
8215
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8217 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8218 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
8219 if eval \${$cacheid+:} false; then :
8220 $as_echo_n "(cached) " >&6
8221 else
8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8224 int i;
8225 int
8226 main ()
8227 {
8228
8229 ;
8230 return 0;
8231 }
8232 _ACEOF
8233 if ac_fn_c_try_link "$LINENO"; then :
8234 eval $cacheid=yes
8235 else
8236 eval $cacheid=no
8237 fi
8238 rm -f core conftest.err conftest.$ac_objext \
8239 conftest$ac_exeext conftest.$ac_ext
8240 fi
8241
8242
8243 CFLAGS="$xorg_testset_save_CFLAGS"
8244
8245 eval supported=\$$cacheid
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8247 $as_echo "$supported" >&6; }
8248 if test "$supported" = "yes" ; then
8249 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8250 found="yes"
8251 fi
8252 fi
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268 xorg_testset_save_CFLAGS="$CFLAGS"
8269
8270 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8273 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8274 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8275 $as_echo_n "(cached) " >&6
8276 else
8277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8278 /* end confdefs.h. */
8279 int i;
8280 _ACEOF
8281 if ac_fn_c_try_compile "$LINENO"; then :
8282 xorg_cv_cc_flag_unknown_warning_option=yes
8283 else
8284 xorg_cv_cc_flag_unknown_warning_option=no
8285 fi
8286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8287 fi
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8289 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8290 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8291 CFLAGS="$xorg_testset_save_CFLAGS"
8292 fi
8293
8294 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8297 fi
8298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8300 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8301 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8302 $as_echo_n "(cached) " >&6
8303 else
8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h. */
8306 int i;
8307 _ACEOF
8308 if ac_fn_c_try_compile "$LINENO"; then :
8309 xorg_cv_cc_flag_unused_command_line_argument=yes
8310 else
8311 xorg_cv_cc_flag_unused_command_line_argument=no
8312 fi
8313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8314 fi
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8316 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8317 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8318 CFLAGS="$xorg_testset_save_CFLAGS"
8319 fi
8320
8321 found="no"
8322
8323 if test $found = "no" ; then
8324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8326 fi
8327
8328 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8330 fi
8331
8332 CFLAGS="$CFLAGS -Werror=array-bounds"
8333
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8335 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8336 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
8337 if eval \${$cacheid+:} false; then :
8338 $as_echo_n "(cached) " >&6
8339 else
8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341 /* end confdefs.h. */
8342 int i;
8343 int
8344 main ()
8345 {
8346
8347 ;
8348 return 0;
8349 }
8350 _ACEOF
8351 if ac_fn_c_try_link "$LINENO"; then :
8352 eval $cacheid=yes
8353 else
8354 eval $cacheid=no
8355 fi
8356 rm -f core conftest.err conftest.$ac_objext \
8357 conftest$ac_exeext conftest.$ac_ext
8358 fi
8359
8360
8361 CFLAGS="$xorg_testset_save_CFLAGS"
8362
8363 eval supported=\$$cacheid
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8365 $as_echo "$supported" >&6; }
8366 if test "$supported" = "yes" ; then
8367 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8368 found="yes"
8369 fi
8370 fi
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386 xorg_testset_save_CFLAGS="$CFLAGS"
8387
8388 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8391 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8392 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8393 $as_echo_n "(cached) " >&6
8394 else
8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 int i;
8398 _ACEOF
8399 if ac_fn_c_try_compile "$LINENO"; then :
8400 xorg_cv_cc_flag_unknown_warning_option=yes
8401 else
8402 xorg_cv_cc_flag_unknown_warning_option=no
8403 fi
8404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8405 fi
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8407 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8409 CFLAGS="$xorg_testset_save_CFLAGS"
8410 fi
8411
8412 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8415 fi
8416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8418 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8419 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8420 $as_echo_n "(cached) " >&6
8421 else
8422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h. */
8424 int i;
8425 _ACEOF
8426 if ac_fn_c_try_compile "$LINENO"; then :
8427 xorg_cv_cc_flag_unused_command_line_argument=yes
8428 else
8429 xorg_cv_cc_flag_unused_command_line_argument=no
8430 fi
8431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8432 fi
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8434 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8436 CFLAGS="$xorg_testset_save_CFLAGS"
8437 fi
8438
8439 found="no"
8440
8441 if test $found = "no" ; then
8442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8444 fi
8445
8446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8448 fi
8449
8450 CFLAGS="$CFLAGS -Werror=write-strings"
8451
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8453 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8454 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8455 if eval \${$cacheid+:} false; then :
8456 $as_echo_n "(cached) " >&6
8457 else
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8460 int i;
8461 int
8462 main ()
8463 {
8464
8465 ;
8466 return 0;
8467 }
8468 _ACEOF
8469 if ac_fn_c_try_link "$LINENO"; then :
8470 eval $cacheid=yes
8471 else
8472 eval $cacheid=no
8473 fi
8474 rm -f core conftest.err conftest.$ac_objext \
8475 conftest$ac_exeext conftest.$ac_ext
8476 fi
8477
8478
8479 CFLAGS="$xorg_testset_save_CFLAGS"
8480
8481 eval supported=\$$cacheid
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8483 $as_echo "$supported" >&6; }
8484 if test "$supported" = "yes" ; then
8485 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8486 found="yes"
8487 fi
8488 fi
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504 xorg_testset_save_CFLAGS="$CFLAGS"
8505
8506 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8509 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8510 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8511 $as_echo_n "(cached) " >&6
8512 else
8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8515 int i;
8516 _ACEOF
8517 if ac_fn_c_try_compile "$LINENO"; then :
8518 xorg_cv_cc_flag_unknown_warning_option=yes
8519 else
8520 xorg_cv_cc_flag_unknown_warning_option=no
8521 fi
8522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8523 fi
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8525 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8527 CFLAGS="$xorg_testset_save_CFLAGS"
8528 fi
8529
8530 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8533 fi
8534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8536 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8537 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8538 $as_echo_n "(cached) " >&6
8539 else
8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h. */
8542 int i;
8543 _ACEOF
8544 if ac_fn_c_try_compile "$LINENO"; then :
8545 xorg_cv_cc_flag_unused_command_line_argument=yes
8546 else
8547 xorg_cv_cc_flag_unused_command_line_argument=no
8548 fi
8549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8550 fi
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8552 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8554 CFLAGS="$xorg_testset_save_CFLAGS"
8555 fi
8556
8557 found="no"
8558
8559 if test $found = "no" ; then
8560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8562 fi
8563
8564 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8566 fi
8567
8568 CFLAGS="$CFLAGS -Werror=address"
8569
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8571 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8572 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8573 if eval \${$cacheid+:} false; then :
8574 $as_echo_n "(cached) " >&6
8575 else
8576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8577 /* end confdefs.h. */
8578 int i;
8579 int
8580 main ()
8581 {
8582
8583 ;
8584 return 0;
8585 }
8586 _ACEOF
8587 if ac_fn_c_try_link "$LINENO"; then :
8588 eval $cacheid=yes
8589 else
8590 eval $cacheid=no
8591 fi
8592 rm -f core conftest.err conftest.$ac_objext \
8593 conftest$ac_exeext conftest.$ac_ext
8594 fi
8595
8596
8597 CFLAGS="$xorg_testset_save_CFLAGS"
8598
8599 eval supported=\$$cacheid
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8601 $as_echo "$supported" >&6; }
8602 if test "$supported" = "yes" ; then
8603 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8604 found="yes"
8605 fi
8606 fi
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622 xorg_testset_save_CFLAGS="$CFLAGS"
8623
8624 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8627 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8628 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8629 $as_echo_n "(cached) " >&6
8630 else
8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8633 int i;
8634 _ACEOF
8635 if ac_fn_c_try_compile "$LINENO"; then :
8636 xorg_cv_cc_flag_unknown_warning_option=yes
8637 else
8638 xorg_cv_cc_flag_unknown_warning_option=no
8639 fi
8640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8641 fi
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8643 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8645 CFLAGS="$xorg_testset_save_CFLAGS"
8646 fi
8647
8648 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8651 fi
8652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8654 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8655 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8656 $as_echo_n "(cached) " >&6
8657 else
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8660 int i;
8661 _ACEOF
8662 if ac_fn_c_try_compile "$LINENO"; then :
8663 xorg_cv_cc_flag_unused_command_line_argument=yes
8664 else
8665 xorg_cv_cc_flag_unused_command_line_argument=no
8666 fi
8667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8668 fi
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8670 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8671 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8672 CFLAGS="$xorg_testset_save_CFLAGS"
8673 fi
8674
8675 found="no"
8676
8677 if test $found = "no" ; then
8678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8680 fi
8681
8682 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8684 fi
8685
8686 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8687
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8689 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8690 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8691 if eval \${$cacheid+:} false; then :
8692 $as_echo_n "(cached) " >&6
8693 else
8694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695 /* end confdefs.h. */
8696 int i;
8697 int
8698 main ()
8699 {
8700
8701 ;
8702 return 0;
8703 }
8704 _ACEOF
8705 if ac_fn_c_try_link "$LINENO"; then :
8706 eval $cacheid=yes
8707 else
8708 eval $cacheid=no
8709 fi
8710 rm -f core conftest.err conftest.$ac_objext \
8711 conftest$ac_exeext conftest.$ac_ext
8712 fi
8713
8714
8715 CFLAGS="$xorg_testset_save_CFLAGS"
8716
8717 eval supported=\$$cacheid
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8719 $as_echo "$supported" >&6; }
8720 if test "$supported" = "yes" ; then
8721 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8722 found="yes"
8723 fi
8724 fi
8725
8726 if test $found = "no" ; then
8727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8729 fi
8730
8731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8733 fi
8734
8735 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8736
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8738 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8739 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8740 if eval \${$cacheid+:} false; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h. */
8745 int i;
8746 int
8747 main ()
8748 {
8749
8750 ;
8751 return 0;
8752 }
8753 _ACEOF
8754 if ac_fn_c_try_link "$LINENO"; then :
8755 eval $cacheid=yes
8756 else
8757 eval $cacheid=no
8758 fi
8759 rm -f core conftest.err conftest.$ac_objext \
8760 conftest$ac_exeext conftest.$ac_ext
8761 fi
8762
8763
8764 CFLAGS="$xorg_testset_save_CFLAGS"
8765
8766 eval supported=\$$cacheid
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8768 $as_echo "$supported" >&6; }
8769 if test "$supported" = "yes" ; then
8770 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8771 found="yes"
8772 fi
8773 fi
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789 xorg_testset_save_CFLAGS="$CFLAGS"
8790
8791 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8794 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8795 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8796 $as_echo_n "(cached) " >&6
8797 else
8798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8799 /* end confdefs.h. */
8800 int i;
8801 _ACEOF
8802 if ac_fn_c_try_compile "$LINENO"; then :
8803 xorg_cv_cc_flag_unknown_warning_option=yes
8804 else
8805 xorg_cv_cc_flag_unknown_warning_option=no
8806 fi
8807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8808 fi
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8810 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8812 CFLAGS="$xorg_testset_save_CFLAGS"
8813 fi
8814
8815 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8818 fi
8819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8821 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8822 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8823 $as_echo_n "(cached) " >&6
8824 else
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8827 int i;
8828 _ACEOF
8829 if ac_fn_c_try_compile "$LINENO"; then :
8830 xorg_cv_cc_flag_unused_command_line_argument=yes
8831 else
8832 xorg_cv_cc_flag_unused_command_line_argument=no
8833 fi
8834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8835 fi
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8837 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8838 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8839 CFLAGS="$xorg_testset_save_CFLAGS"
8840 fi
8841
8842 found="no"
8843
8844 if test $found = "no" ; then
8845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8847 fi
8848
8849 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8851 fi
8852
8853 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8854
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8856 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8857 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8858 if eval \${$cacheid+:} false; then :
8859 $as_echo_n "(cached) " >&6
8860 else
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8863 int i;
8864 int
8865 main ()
8866 {
8867
8868 ;
8869 return 0;
8870 }
8871 _ACEOF
8872 if ac_fn_c_try_link "$LINENO"; then :
8873 eval $cacheid=yes
8874 else
8875 eval $cacheid=no
8876 fi
8877 rm -f core conftest.err conftest.$ac_objext \
8878 conftest$ac_exeext conftest.$ac_ext
8879 fi
8880
8881
8882 CFLAGS="$xorg_testset_save_CFLAGS"
8883
8884 eval supported=\$$cacheid
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8886 $as_echo "$supported" >&6; }
8887 if test "$supported" = "yes" ; then
8888 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8889 found="yes"
8890 fi
8891 fi
8892
8893 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8894 else
8895 { $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
8896 $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;}
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910 xorg_testset_save_CFLAGS="$CFLAGS"
8911
8912 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8915 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8916 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8917 $as_echo_n "(cached) " >&6
8918 else
8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h. */
8921 int i;
8922 _ACEOF
8923 if ac_fn_c_try_compile "$LINENO"; then :
8924 xorg_cv_cc_flag_unknown_warning_option=yes
8925 else
8926 xorg_cv_cc_flag_unknown_warning_option=no
8927 fi
8928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8929 fi
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8931 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8933 CFLAGS="$xorg_testset_save_CFLAGS"
8934 fi
8935
8936 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8939 fi
8940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8942 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8943 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8944 $as_echo_n "(cached) " >&6
8945 else
8946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8947 /* end confdefs.h. */
8948 int i;
8949 _ACEOF
8950 if ac_fn_c_try_compile "$LINENO"; then :
8951 xorg_cv_cc_flag_unused_command_line_argument=yes
8952 else
8953 xorg_cv_cc_flag_unused_command_line_argument=no
8954 fi
8955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8956 fi
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8958 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8960 CFLAGS="$xorg_testset_save_CFLAGS"
8961 fi
8962
8963 found="no"
8964
8965 if test $found = "no" ; then
8966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8968 fi
8969
8970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8972 fi
8973
8974 CFLAGS="$CFLAGS -Wimplicit"
8975
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8977 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8978 cacheid=xorg_cv_cc_flag__Wimplicit
8979 if eval \${$cacheid+:} false; then :
8980 $as_echo_n "(cached) " >&6
8981 else
8982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8983 /* end confdefs.h. */
8984 int i;
8985 int
8986 main ()
8987 {
8988
8989 ;
8990 return 0;
8991 }
8992 _ACEOF
8993 if ac_fn_c_try_link "$LINENO"; then :
8994 eval $cacheid=yes
8995 else
8996 eval $cacheid=no
8997 fi
8998 rm -f core conftest.err conftest.$ac_objext \
8999 conftest$ac_exeext conftest.$ac_ext
9000 fi
9001
9002
9003 CFLAGS="$xorg_testset_save_CFLAGS"
9004
9005 eval supported=\$$cacheid
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9007 $as_echo "$supported" >&6; }
9008 if test "$supported" = "yes" ; then
9009 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9010 found="yes"
9011 fi
9012 fi
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028 xorg_testset_save_CFLAGS="$CFLAGS"
9029
9030 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9033 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9034 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9035 $as_echo_n "(cached) " >&6
9036 else
9037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038 /* end confdefs.h. */
9039 int i;
9040 _ACEOF
9041 if ac_fn_c_try_compile "$LINENO"; then :
9042 xorg_cv_cc_flag_unknown_warning_option=yes
9043 else
9044 xorg_cv_cc_flag_unknown_warning_option=no
9045 fi
9046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047 fi
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9049 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9051 CFLAGS="$xorg_testset_save_CFLAGS"
9052 fi
9053
9054 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9057 fi
9058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9060 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9061 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9062 $as_echo_n "(cached) " >&6
9063 else
9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9066 int i;
9067 _ACEOF
9068 if ac_fn_c_try_compile "$LINENO"; then :
9069 xorg_cv_cc_flag_unused_command_line_argument=yes
9070 else
9071 xorg_cv_cc_flag_unused_command_line_argument=no
9072 fi
9073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9074 fi
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9076 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9078 CFLAGS="$xorg_testset_save_CFLAGS"
9079 fi
9080
9081 found="no"
9082
9083 if test $found = "no" ; then
9084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9086 fi
9087
9088 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9090 fi
9091
9092 CFLAGS="$CFLAGS -Wnonnull"
9093
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9095 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
9096 cacheid=xorg_cv_cc_flag__Wnonnull
9097 if eval \${$cacheid+:} false; then :
9098 $as_echo_n "(cached) " >&6
9099 else
9100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101 /* end confdefs.h. */
9102 int i;
9103 int
9104 main ()
9105 {
9106
9107 ;
9108 return 0;
9109 }
9110 _ACEOF
9111 if ac_fn_c_try_link "$LINENO"; then :
9112 eval $cacheid=yes
9113 else
9114 eval $cacheid=no
9115 fi
9116 rm -f core conftest.err conftest.$ac_objext \
9117 conftest$ac_exeext conftest.$ac_ext
9118 fi
9119
9120
9121 CFLAGS="$xorg_testset_save_CFLAGS"
9122
9123 eval supported=\$$cacheid
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9125 $as_echo "$supported" >&6; }
9126 if test "$supported" = "yes" ; then
9127 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9128 found="yes"
9129 fi
9130 fi
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146 xorg_testset_save_CFLAGS="$CFLAGS"
9147
9148 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9151 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9152 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9153 $as_echo_n "(cached) " >&6
9154 else
9155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9156 /* end confdefs.h. */
9157 int i;
9158 _ACEOF
9159 if ac_fn_c_try_compile "$LINENO"; then :
9160 xorg_cv_cc_flag_unknown_warning_option=yes
9161 else
9162 xorg_cv_cc_flag_unknown_warning_option=no
9163 fi
9164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9165 fi
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9167 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9169 CFLAGS="$xorg_testset_save_CFLAGS"
9170 fi
9171
9172 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9175 fi
9176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9178 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9179 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9180 $as_echo_n "(cached) " >&6
9181 else
9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9184 int i;
9185 _ACEOF
9186 if ac_fn_c_try_compile "$LINENO"; then :
9187 xorg_cv_cc_flag_unused_command_line_argument=yes
9188 else
9189 xorg_cv_cc_flag_unused_command_line_argument=no
9190 fi
9191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9192 fi
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9194 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9196 CFLAGS="$xorg_testset_save_CFLAGS"
9197 fi
9198
9199 found="no"
9200
9201 if test $found = "no" ; then
9202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9204 fi
9205
9206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9208 fi
9209
9210 CFLAGS="$CFLAGS -Winit-self"
9211
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9213 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9214 cacheid=xorg_cv_cc_flag__Winit_self
9215 if eval \${$cacheid+:} false; then :
9216 $as_echo_n "(cached) " >&6
9217 else
9218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9219 /* end confdefs.h. */
9220 int i;
9221 int
9222 main ()
9223 {
9224
9225 ;
9226 return 0;
9227 }
9228 _ACEOF
9229 if ac_fn_c_try_link "$LINENO"; then :
9230 eval $cacheid=yes
9231 else
9232 eval $cacheid=no
9233 fi
9234 rm -f core conftest.err conftest.$ac_objext \
9235 conftest$ac_exeext conftest.$ac_ext
9236 fi
9237
9238
9239 CFLAGS="$xorg_testset_save_CFLAGS"
9240
9241 eval supported=\$$cacheid
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9243 $as_echo "$supported" >&6; }
9244 if test "$supported" = "yes" ; then
9245 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9246 found="yes"
9247 fi
9248 fi
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264 xorg_testset_save_CFLAGS="$CFLAGS"
9265
9266 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9269 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9270 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9271 $as_echo_n "(cached) " >&6
9272 else
9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9275 int i;
9276 _ACEOF
9277 if ac_fn_c_try_compile "$LINENO"; then :
9278 xorg_cv_cc_flag_unknown_warning_option=yes
9279 else
9280 xorg_cv_cc_flag_unknown_warning_option=no
9281 fi
9282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9283 fi
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9285 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9287 CFLAGS="$xorg_testset_save_CFLAGS"
9288 fi
9289
9290 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9293 fi
9294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9296 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9297 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9298 $as_echo_n "(cached) " >&6
9299 else
9300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9301 /* end confdefs.h. */
9302 int i;
9303 _ACEOF
9304 if ac_fn_c_try_compile "$LINENO"; then :
9305 xorg_cv_cc_flag_unused_command_line_argument=yes
9306 else
9307 xorg_cv_cc_flag_unused_command_line_argument=no
9308 fi
9309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9310 fi
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9312 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9314 CFLAGS="$xorg_testset_save_CFLAGS"
9315 fi
9316
9317 found="no"
9318
9319 if test $found = "no" ; then
9320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9322 fi
9323
9324 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9326 fi
9327
9328 CFLAGS="$CFLAGS -Wmain"
9329
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9331 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9332 cacheid=xorg_cv_cc_flag__Wmain
9333 if eval \${$cacheid+:} false; then :
9334 $as_echo_n "(cached) " >&6
9335 else
9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337 /* end confdefs.h. */
9338 int i;
9339 int
9340 main ()
9341 {
9342
9343 ;
9344 return 0;
9345 }
9346 _ACEOF
9347 if ac_fn_c_try_link "$LINENO"; then :
9348 eval $cacheid=yes
9349 else
9350 eval $cacheid=no
9351 fi
9352 rm -f core conftest.err conftest.$ac_objext \
9353 conftest$ac_exeext conftest.$ac_ext
9354 fi
9355
9356
9357 CFLAGS="$xorg_testset_save_CFLAGS"
9358
9359 eval supported=\$$cacheid
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9361 $as_echo "$supported" >&6; }
9362 if test "$supported" = "yes" ; then
9363 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9364 found="yes"
9365 fi
9366 fi
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382 xorg_testset_save_CFLAGS="$CFLAGS"
9383
9384 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9387 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9388 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9389 $as_echo_n "(cached) " >&6
9390 else
9391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392 /* end confdefs.h. */
9393 int i;
9394 _ACEOF
9395 if ac_fn_c_try_compile "$LINENO"; then :
9396 xorg_cv_cc_flag_unknown_warning_option=yes
9397 else
9398 xorg_cv_cc_flag_unknown_warning_option=no
9399 fi
9400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9401 fi
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9403 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9405 CFLAGS="$xorg_testset_save_CFLAGS"
9406 fi
9407
9408 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9411 fi
9412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9414 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9415 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9416 $as_echo_n "(cached) " >&6
9417 else
9418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9419 /* end confdefs.h. */
9420 int i;
9421 _ACEOF
9422 if ac_fn_c_try_compile "$LINENO"; then :
9423 xorg_cv_cc_flag_unused_command_line_argument=yes
9424 else
9425 xorg_cv_cc_flag_unused_command_line_argument=no
9426 fi
9427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9428 fi
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9430 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9432 CFLAGS="$xorg_testset_save_CFLAGS"
9433 fi
9434
9435 found="no"
9436
9437 if test $found = "no" ; then
9438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9440 fi
9441
9442 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9444 fi
9445
9446 CFLAGS="$CFLAGS -Wmissing-braces"
9447
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9449 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9450 cacheid=xorg_cv_cc_flag__Wmissing_braces
9451 if eval \${$cacheid+:} false; then :
9452 $as_echo_n "(cached) " >&6
9453 else
9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h. */
9456 int i;
9457 int
9458 main ()
9459 {
9460
9461 ;
9462 return 0;
9463 }
9464 _ACEOF
9465 if ac_fn_c_try_link "$LINENO"; then :
9466 eval $cacheid=yes
9467 else
9468 eval $cacheid=no
9469 fi
9470 rm -f core conftest.err conftest.$ac_objext \
9471 conftest$ac_exeext conftest.$ac_ext
9472 fi
9473
9474
9475 CFLAGS="$xorg_testset_save_CFLAGS"
9476
9477 eval supported=\$$cacheid
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9479 $as_echo "$supported" >&6; }
9480 if test "$supported" = "yes" ; then
9481 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9482 found="yes"
9483 fi
9484 fi
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500 xorg_testset_save_CFLAGS="$CFLAGS"
9501
9502 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9505 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9506 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9507 $as_echo_n "(cached) " >&6
9508 else
9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h. */
9511 int i;
9512 _ACEOF
9513 if ac_fn_c_try_compile "$LINENO"; then :
9514 xorg_cv_cc_flag_unknown_warning_option=yes
9515 else
9516 xorg_cv_cc_flag_unknown_warning_option=no
9517 fi
9518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9519 fi
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9521 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9523 CFLAGS="$xorg_testset_save_CFLAGS"
9524 fi
9525
9526 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9529 fi
9530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9532 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9533 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9534 $as_echo_n "(cached) " >&6
9535 else
9536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9537 /* end confdefs.h. */
9538 int i;
9539 _ACEOF
9540 if ac_fn_c_try_compile "$LINENO"; then :
9541 xorg_cv_cc_flag_unused_command_line_argument=yes
9542 else
9543 xorg_cv_cc_flag_unused_command_line_argument=no
9544 fi
9545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9546 fi
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9548 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9549 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9550 CFLAGS="$xorg_testset_save_CFLAGS"
9551 fi
9552
9553 found="no"
9554
9555 if test $found = "no" ; then
9556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9558 fi
9559
9560 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9562 fi
9563
9564 CFLAGS="$CFLAGS -Wsequence-point"
9565
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9567 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9568 cacheid=xorg_cv_cc_flag__Wsequence_point
9569 if eval \${$cacheid+:} false; then :
9570 $as_echo_n "(cached) " >&6
9571 else
9572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9574 int i;
9575 int
9576 main ()
9577 {
9578
9579 ;
9580 return 0;
9581 }
9582 _ACEOF
9583 if ac_fn_c_try_link "$LINENO"; then :
9584 eval $cacheid=yes
9585 else
9586 eval $cacheid=no
9587 fi
9588 rm -f core conftest.err conftest.$ac_objext \
9589 conftest$ac_exeext conftest.$ac_ext
9590 fi
9591
9592
9593 CFLAGS="$xorg_testset_save_CFLAGS"
9594
9595 eval supported=\$$cacheid
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9597 $as_echo "$supported" >&6; }
9598 if test "$supported" = "yes" ; then
9599 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9600 found="yes"
9601 fi
9602 fi
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618 xorg_testset_save_CFLAGS="$CFLAGS"
9619
9620 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9623 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9624 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9625 $as_echo_n "(cached) " >&6
9626 else
9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9628 /* end confdefs.h. */
9629 int i;
9630 _ACEOF
9631 if ac_fn_c_try_compile "$LINENO"; then :
9632 xorg_cv_cc_flag_unknown_warning_option=yes
9633 else
9634 xorg_cv_cc_flag_unknown_warning_option=no
9635 fi
9636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9637 fi
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9639 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9641 CFLAGS="$xorg_testset_save_CFLAGS"
9642 fi
9643
9644 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9647 fi
9648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9650 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9651 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9652 $as_echo_n "(cached) " >&6
9653 else
9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9656 int i;
9657 _ACEOF
9658 if ac_fn_c_try_compile "$LINENO"; then :
9659 xorg_cv_cc_flag_unused_command_line_argument=yes
9660 else
9661 xorg_cv_cc_flag_unused_command_line_argument=no
9662 fi
9663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9664 fi
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9666 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9668 CFLAGS="$xorg_testset_save_CFLAGS"
9669 fi
9670
9671 found="no"
9672
9673 if test $found = "no" ; then
9674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9676 fi
9677
9678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9680 fi
9681
9682 CFLAGS="$CFLAGS -Wreturn-type"
9683
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9685 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9686 cacheid=xorg_cv_cc_flag__Wreturn_type
9687 if eval \${$cacheid+:} false; then :
9688 $as_echo_n "(cached) " >&6
9689 else
9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9692 int i;
9693 int
9694 main ()
9695 {
9696
9697 ;
9698 return 0;
9699 }
9700 _ACEOF
9701 if ac_fn_c_try_link "$LINENO"; then :
9702 eval $cacheid=yes
9703 else
9704 eval $cacheid=no
9705 fi
9706 rm -f core conftest.err conftest.$ac_objext \
9707 conftest$ac_exeext conftest.$ac_ext
9708 fi
9709
9710
9711 CFLAGS="$xorg_testset_save_CFLAGS"
9712
9713 eval supported=\$$cacheid
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9715 $as_echo "$supported" >&6; }
9716 if test "$supported" = "yes" ; then
9717 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9718 found="yes"
9719 fi
9720 fi
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736 xorg_testset_save_CFLAGS="$CFLAGS"
9737
9738 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9741 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9742 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9743 $as_echo_n "(cached) " >&6
9744 else
9745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9746 /* end confdefs.h. */
9747 int i;
9748 _ACEOF
9749 if ac_fn_c_try_compile "$LINENO"; then :
9750 xorg_cv_cc_flag_unknown_warning_option=yes
9751 else
9752 xorg_cv_cc_flag_unknown_warning_option=no
9753 fi
9754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9755 fi
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9757 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9758 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9759 CFLAGS="$xorg_testset_save_CFLAGS"
9760 fi
9761
9762 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9765 fi
9766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9768 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9769 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9770 $as_echo_n "(cached) " >&6
9771 else
9772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773 /* end confdefs.h. */
9774 int i;
9775 _ACEOF
9776 if ac_fn_c_try_compile "$LINENO"; then :
9777 xorg_cv_cc_flag_unused_command_line_argument=yes
9778 else
9779 xorg_cv_cc_flag_unused_command_line_argument=no
9780 fi
9781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9782 fi
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9784 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9785 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9786 CFLAGS="$xorg_testset_save_CFLAGS"
9787 fi
9788
9789 found="no"
9790
9791 if test $found = "no" ; then
9792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9794 fi
9795
9796 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9798 fi
9799
9800 CFLAGS="$CFLAGS -Wtrigraphs"
9801
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9803 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9804 cacheid=xorg_cv_cc_flag__Wtrigraphs
9805 if eval \${$cacheid+:} false; then :
9806 $as_echo_n "(cached) " >&6
9807 else
9808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h. */
9810 int i;
9811 int
9812 main ()
9813 {
9814
9815 ;
9816 return 0;
9817 }
9818 _ACEOF
9819 if ac_fn_c_try_link "$LINENO"; then :
9820 eval $cacheid=yes
9821 else
9822 eval $cacheid=no
9823 fi
9824 rm -f core conftest.err conftest.$ac_objext \
9825 conftest$ac_exeext conftest.$ac_ext
9826 fi
9827
9828
9829 CFLAGS="$xorg_testset_save_CFLAGS"
9830
9831 eval supported=\$$cacheid
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9833 $as_echo "$supported" >&6; }
9834 if test "$supported" = "yes" ; then
9835 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9836 found="yes"
9837 fi
9838 fi
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854 xorg_testset_save_CFLAGS="$CFLAGS"
9855
9856 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9859 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9860 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9861 $as_echo_n "(cached) " >&6
9862 else
9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864 /* end confdefs.h. */
9865 int i;
9866 _ACEOF
9867 if ac_fn_c_try_compile "$LINENO"; then :
9868 xorg_cv_cc_flag_unknown_warning_option=yes
9869 else
9870 xorg_cv_cc_flag_unknown_warning_option=no
9871 fi
9872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9873 fi
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9875 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9876 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9877 CFLAGS="$xorg_testset_save_CFLAGS"
9878 fi
9879
9880 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9883 fi
9884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9886 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9887 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9888 $as_echo_n "(cached) " >&6
9889 else
9890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9891 /* end confdefs.h. */
9892 int i;
9893 _ACEOF
9894 if ac_fn_c_try_compile "$LINENO"; then :
9895 xorg_cv_cc_flag_unused_command_line_argument=yes
9896 else
9897 xorg_cv_cc_flag_unused_command_line_argument=no
9898 fi
9899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9900 fi
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9902 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9903 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9904 CFLAGS="$xorg_testset_save_CFLAGS"
9905 fi
9906
9907 found="no"
9908
9909 if test $found = "no" ; then
9910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9912 fi
9913
9914 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9916 fi
9917
9918 CFLAGS="$CFLAGS -Warray-bounds"
9919
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9921 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9922 cacheid=xorg_cv_cc_flag__Warray_bounds
9923 if eval \${$cacheid+:} false; then :
9924 $as_echo_n "(cached) " >&6
9925 else
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9928 int i;
9929 int
9930 main ()
9931 {
9932
9933 ;
9934 return 0;
9935 }
9936 _ACEOF
9937 if ac_fn_c_try_link "$LINENO"; then :
9938 eval $cacheid=yes
9939 else
9940 eval $cacheid=no
9941 fi
9942 rm -f core conftest.err conftest.$ac_objext \
9943 conftest$ac_exeext conftest.$ac_ext
9944 fi
9945
9946
9947 CFLAGS="$xorg_testset_save_CFLAGS"
9948
9949 eval supported=\$$cacheid
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9951 $as_echo "$supported" >&6; }
9952 if test "$supported" = "yes" ; then
9953 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9954 found="yes"
9955 fi
9956 fi
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972 xorg_testset_save_CFLAGS="$CFLAGS"
9973
9974 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9977 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9978 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9979 $as_echo_n "(cached) " >&6
9980 else
9981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9982 /* end confdefs.h. */
9983 int i;
9984 _ACEOF
9985 if ac_fn_c_try_compile "$LINENO"; then :
9986 xorg_cv_cc_flag_unknown_warning_option=yes
9987 else
9988 xorg_cv_cc_flag_unknown_warning_option=no
9989 fi
9990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9991 fi
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9993 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9995 CFLAGS="$xorg_testset_save_CFLAGS"
9996 fi
9997
9998 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10001 fi
10002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10004 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10005 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10006 $as_echo_n "(cached) " >&6
10007 else
10008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h. */
10010 int i;
10011 _ACEOF
10012 if ac_fn_c_try_compile "$LINENO"; then :
10013 xorg_cv_cc_flag_unused_command_line_argument=yes
10014 else
10015 xorg_cv_cc_flag_unused_command_line_argument=no
10016 fi
10017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10018 fi
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10020 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10021 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10022 CFLAGS="$xorg_testset_save_CFLAGS"
10023 fi
10024
10025 found="no"
10026
10027 if test $found = "no" ; then
10028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10030 fi
10031
10032 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10034 fi
10035
10036 CFLAGS="$CFLAGS -Wwrite-strings"
10037
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10039 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
10040 cacheid=xorg_cv_cc_flag__Wwrite_strings
10041 if eval \${$cacheid+:} false; then :
10042 $as_echo_n "(cached) " >&6
10043 else
10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h. */
10046 int i;
10047 int
10048 main ()
10049 {
10050
10051 ;
10052 return 0;
10053 }
10054 _ACEOF
10055 if ac_fn_c_try_link "$LINENO"; then :
10056 eval $cacheid=yes
10057 else
10058 eval $cacheid=no
10059 fi
10060 rm -f core conftest.err conftest.$ac_objext \
10061 conftest$ac_exeext conftest.$ac_ext
10062 fi
10063
10064
10065 CFLAGS="$xorg_testset_save_CFLAGS"
10066
10067 eval supported=\$$cacheid
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10069 $as_echo "$supported" >&6; }
10070 if test "$supported" = "yes" ; then
10071 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10072 found="yes"
10073 fi
10074 fi
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090 xorg_testset_save_CFLAGS="$CFLAGS"
10091
10092 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10095 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10096 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10097 $as_echo_n "(cached) " >&6
10098 else
10099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100 /* end confdefs.h. */
10101 int i;
10102 _ACEOF
10103 if ac_fn_c_try_compile "$LINENO"; then :
10104 xorg_cv_cc_flag_unknown_warning_option=yes
10105 else
10106 xorg_cv_cc_flag_unknown_warning_option=no
10107 fi
10108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10109 fi
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10111 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10113 CFLAGS="$xorg_testset_save_CFLAGS"
10114 fi
10115
10116 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10119 fi
10120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10122 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10123 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10124 $as_echo_n "(cached) " >&6
10125 else
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10128 int i;
10129 _ACEOF
10130 if ac_fn_c_try_compile "$LINENO"; then :
10131 xorg_cv_cc_flag_unused_command_line_argument=yes
10132 else
10133 xorg_cv_cc_flag_unused_command_line_argument=no
10134 fi
10135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10136 fi
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10138 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10140 CFLAGS="$xorg_testset_save_CFLAGS"
10141 fi
10142
10143 found="no"
10144
10145 if test $found = "no" ; then
10146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10148 fi
10149
10150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10152 fi
10153
10154 CFLAGS="$CFLAGS -Waddress"
10155
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10157 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
10158 cacheid=xorg_cv_cc_flag__Waddress
10159 if eval \${$cacheid+:} false; then :
10160 $as_echo_n "(cached) " >&6
10161 else
10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163 /* end confdefs.h. */
10164 int i;
10165 int
10166 main ()
10167 {
10168
10169 ;
10170 return 0;
10171 }
10172 _ACEOF
10173 if ac_fn_c_try_link "$LINENO"; then :
10174 eval $cacheid=yes
10175 else
10176 eval $cacheid=no
10177 fi
10178 rm -f core conftest.err conftest.$ac_objext \
10179 conftest$ac_exeext conftest.$ac_ext
10180 fi
10181
10182
10183 CFLAGS="$xorg_testset_save_CFLAGS"
10184
10185 eval supported=\$$cacheid
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10187 $as_echo "$supported" >&6; }
10188 if test "$supported" = "yes" ; then
10189 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10190 found="yes"
10191 fi
10192 fi
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208 xorg_testset_save_CFLAGS="$CFLAGS"
10209
10210 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10213 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10214 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10215 $as_echo_n "(cached) " >&6
10216 else
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10219 int i;
10220 _ACEOF
10221 if ac_fn_c_try_compile "$LINENO"; then :
10222 xorg_cv_cc_flag_unknown_warning_option=yes
10223 else
10224 xorg_cv_cc_flag_unknown_warning_option=no
10225 fi
10226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10227 fi
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10229 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10231 CFLAGS="$xorg_testset_save_CFLAGS"
10232 fi
10233
10234 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10237 fi
10238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10240 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10241 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10242 $as_echo_n "(cached) " >&6
10243 else
10244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245 /* end confdefs.h. */
10246 int i;
10247 _ACEOF
10248 if ac_fn_c_try_compile "$LINENO"; then :
10249 xorg_cv_cc_flag_unused_command_line_argument=yes
10250 else
10251 xorg_cv_cc_flag_unused_command_line_argument=no
10252 fi
10253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10254 fi
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10256 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10258 CFLAGS="$xorg_testset_save_CFLAGS"
10259 fi
10260
10261 found="no"
10262
10263 if test $found = "no" ; then
10264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10266 fi
10267
10268 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10270 fi
10271
10272 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10273
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10275 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10276 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10277 if eval \${$cacheid+:} false; then :
10278 $as_echo_n "(cached) " >&6
10279 else
10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10282 int i;
10283 int
10284 main ()
10285 {
10286
10287 ;
10288 return 0;
10289 }
10290 _ACEOF
10291 if ac_fn_c_try_link "$LINENO"; then :
10292 eval $cacheid=yes
10293 else
10294 eval $cacheid=no
10295 fi
10296 rm -f core conftest.err conftest.$ac_objext \
10297 conftest$ac_exeext conftest.$ac_ext
10298 fi
10299
10300
10301 CFLAGS="$xorg_testset_save_CFLAGS"
10302
10303 eval supported=\$$cacheid
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10305 $as_echo "$supported" >&6; }
10306 if test "$supported" = "yes" ; then
10307 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10308 found="yes"
10309 fi
10310 fi
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326 xorg_testset_save_CFLAGS="$CFLAGS"
10327
10328 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10331 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10332 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10333 $as_echo_n "(cached) " >&6
10334 else
10335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10336 /* end confdefs.h. */
10337 int i;
10338 _ACEOF
10339 if ac_fn_c_try_compile "$LINENO"; then :
10340 xorg_cv_cc_flag_unknown_warning_option=yes
10341 else
10342 xorg_cv_cc_flag_unknown_warning_option=no
10343 fi
10344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10345 fi
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10347 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10349 CFLAGS="$xorg_testset_save_CFLAGS"
10350 fi
10351
10352 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10355 fi
10356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10358 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10359 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10360 $as_echo_n "(cached) " >&6
10361 else
10362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363 /* end confdefs.h. */
10364 int i;
10365 _ACEOF
10366 if ac_fn_c_try_compile "$LINENO"; then :
10367 xorg_cv_cc_flag_unused_command_line_argument=yes
10368 else
10369 xorg_cv_cc_flag_unused_command_line_argument=no
10370 fi
10371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10372 fi
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10374 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10376 CFLAGS="$xorg_testset_save_CFLAGS"
10377 fi
10378
10379 found="no"
10380
10381 if test $found = "no" ; then
10382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10384 fi
10385
10386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10388 fi
10389
10390 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10391
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10393 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10394 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10395 if eval \${$cacheid+:} false; then :
10396 $as_echo_n "(cached) " >&6
10397 else
10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10400 int i;
10401 int
10402 main ()
10403 {
10404
10405 ;
10406 return 0;
10407 }
10408 _ACEOF
10409 if ac_fn_c_try_link "$LINENO"; then :
10410 eval $cacheid=yes
10411 else
10412 eval $cacheid=no
10413 fi
10414 rm -f core conftest.err conftest.$ac_objext \
10415 conftest$ac_exeext conftest.$ac_ext
10416 fi
10417
10418
10419 CFLAGS="$xorg_testset_save_CFLAGS"
10420
10421 eval supported=\$$cacheid
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10423 $as_echo "$supported" >&6; }
10424 if test "$supported" = "yes" ; then
10425 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10426 found="yes"
10427 fi
10428 fi
10429
10430
10431 fi
10432
10433
10434
10435
10436
10437
10438
10439 CWARNFLAGS="$BASE_CFLAGS"
10440 if test "x$GCC" = xyes ; then
10441 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10442 fi
10443
10444
10445
10446
10447
10448
10449
10450
10451 # Check whether --enable-strict-compilation was given.
10452 if test "${enable_strict_compilation+set}" = set; then :
10453 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10454 else
10455 STRICT_COMPILE=no
10456 fi
10457
10458
10459
10460
10461
10462
10463 STRICT_CFLAGS=""
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477 xorg_testset_save_CFLAGS="$CFLAGS"
10478
10479 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10482 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10483 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10484 $as_echo_n "(cached) " >&6
10485 else
10486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487 /* end confdefs.h. */
10488 int i;
10489 _ACEOF
10490 if ac_fn_c_try_compile "$LINENO"; then :
10491 xorg_cv_cc_flag_unknown_warning_option=yes
10492 else
10493 xorg_cv_cc_flag_unknown_warning_option=no
10494 fi
10495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10496 fi
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10498 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10500 CFLAGS="$xorg_testset_save_CFLAGS"
10501 fi
10502
10503 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10506 fi
10507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10509 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10510 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10511 $as_echo_n "(cached) " >&6
10512 else
10513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514 /* end confdefs.h. */
10515 int i;
10516 _ACEOF
10517 if ac_fn_c_try_compile "$LINENO"; then :
10518 xorg_cv_cc_flag_unused_command_line_argument=yes
10519 else
10520 xorg_cv_cc_flag_unused_command_line_argument=no
10521 fi
10522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10523 fi
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10525 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10527 CFLAGS="$xorg_testset_save_CFLAGS"
10528 fi
10529
10530 found="no"
10531
10532 if test $found = "no" ; then
10533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10535 fi
10536
10537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10539 fi
10540
10541 CFLAGS="$CFLAGS -pedantic"
10542
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10544 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10545 cacheid=xorg_cv_cc_flag__pedantic
10546 if eval \${$cacheid+:} false; then :
10547 $as_echo_n "(cached) " >&6
10548 else
10549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550 /* end confdefs.h. */
10551 int i;
10552 int
10553 main ()
10554 {
10555
10556 ;
10557 return 0;
10558 }
10559 _ACEOF
10560 if ac_fn_c_try_link "$LINENO"; then :
10561 eval $cacheid=yes
10562 else
10563 eval $cacheid=no
10564 fi
10565 rm -f core conftest.err conftest.$ac_objext \
10566 conftest$ac_exeext conftest.$ac_ext
10567 fi
10568
10569
10570 CFLAGS="$xorg_testset_save_CFLAGS"
10571
10572 eval supported=\$$cacheid
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10574 $as_echo "$supported" >&6; }
10575 if test "$supported" = "yes" ; then
10576 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10577 found="yes"
10578 fi
10579 fi
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595 xorg_testset_save_CFLAGS="$CFLAGS"
10596
10597 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10600 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10601 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10602 $as_echo_n "(cached) " >&6
10603 else
10604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605 /* end confdefs.h. */
10606 int i;
10607 _ACEOF
10608 if ac_fn_c_try_compile "$LINENO"; then :
10609 xorg_cv_cc_flag_unknown_warning_option=yes
10610 else
10611 xorg_cv_cc_flag_unknown_warning_option=no
10612 fi
10613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10614 fi
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10616 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10618 CFLAGS="$xorg_testset_save_CFLAGS"
10619 fi
10620
10621 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10624 fi
10625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10627 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10628 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10629 $as_echo_n "(cached) " >&6
10630 else
10631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10632 /* end confdefs.h. */
10633 int i;
10634 _ACEOF
10635 if ac_fn_c_try_compile "$LINENO"; then :
10636 xorg_cv_cc_flag_unused_command_line_argument=yes
10637 else
10638 xorg_cv_cc_flag_unused_command_line_argument=no
10639 fi
10640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10641 fi
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10643 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10645 CFLAGS="$xorg_testset_save_CFLAGS"
10646 fi
10647
10648 found="no"
10649
10650 if test $found = "no" ; then
10651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10653 fi
10654
10655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10657 fi
10658
10659 CFLAGS="$CFLAGS -Werror"
10660
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10662 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10663 cacheid=xorg_cv_cc_flag__Werror
10664 if eval \${$cacheid+:} false; then :
10665 $as_echo_n "(cached) " >&6
10666 else
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10669 int i;
10670 int
10671 main ()
10672 {
10673
10674 ;
10675 return 0;
10676 }
10677 _ACEOF
10678 if ac_fn_c_try_link "$LINENO"; then :
10679 eval $cacheid=yes
10680 else
10681 eval $cacheid=no
10682 fi
10683 rm -f core conftest.err conftest.$ac_objext \
10684 conftest$ac_exeext conftest.$ac_ext
10685 fi
10686
10687
10688 CFLAGS="$xorg_testset_save_CFLAGS"
10689
10690 eval supported=\$$cacheid
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10692 $as_echo "$supported" >&6; }
10693 if test "$supported" = "yes" ; then
10694 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10695 found="yes"
10696 fi
10697 fi
10698
10699 if test $found = "no" ; then
10700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10702 fi
10703
10704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10706 fi
10707
10708 CFLAGS="$CFLAGS -errwarn"
10709
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10711 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10712 cacheid=xorg_cv_cc_flag__errwarn
10713 if eval \${$cacheid+:} false; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10718 int i;
10719 int
10720 main ()
10721 {
10722
10723 ;
10724 return 0;
10725 }
10726 _ACEOF
10727 if ac_fn_c_try_link "$LINENO"; then :
10728 eval $cacheid=yes
10729 else
10730 eval $cacheid=no
10731 fi
10732 rm -f core conftest.err conftest.$ac_objext \
10733 conftest$ac_exeext conftest.$ac_ext
10734 fi
10735
10736
10737 CFLAGS="$xorg_testset_save_CFLAGS"
10738
10739 eval supported=\$$cacheid
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10741 $as_echo "$supported" >&6; }
10742 if test "$supported" = "yes" ; then
10743 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10744 found="yes"
10745 fi
10746 fi
10747
10748
10749
10750 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10751 # activate it with -Werror, so we add it here explicitly.
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765 xorg_testset_save_CFLAGS="$CFLAGS"
10766
10767 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10770 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10771 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10772 $as_echo_n "(cached) " >&6
10773 else
10774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h. */
10776 int i;
10777 _ACEOF
10778 if ac_fn_c_try_compile "$LINENO"; then :
10779 xorg_cv_cc_flag_unknown_warning_option=yes
10780 else
10781 xorg_cv_cc_flag_unknown_warning_option=no
10782 fi
10783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10784 fi
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10786 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10788 CFLAGS="$xorg_testset_save_CFLAGS"
10789 fi
10790
10791 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10794 fi
10795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10797 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10798 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10799 $as_echo_n "(cached) " >&6
10800 else
10801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802 /* end confdefs.h. */
10803 int i;
10804 _ACEOF
10805 if ac_fn_c_try_compile "$LINENO"; then :
10806 xorg_cv_cc_flag_unused_command_line_argument=yes
10807 else
10808 xorg_cv_cc_flag_unused_command_line_argument=no
10809 fi
10810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10811 fi
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10813 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10814 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10815 CFLAGS="$xorg_testset_save_CFLAGS"
10816 fi
10817
10818 found="no"
10819
10820 if test $found = "no" ; then
10821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10823 fi
10824
10825 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10827 fi
10828
10829 CFLAGS="$CFLAGS -Werror=attributes"
10830
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10832 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10833 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10834 if eval \${$cacheid+:} false; then :
10835 $as_echo_n "(cached) " >&6
10836 else
10837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10838 /* end confdefs.h. */
10839 int i;
10840 int
10841 main ()
10842 {
10843
10844 ;
10845 return 0;
10846 }
10847 _ACEOF
10848 if ac_fn_c_try_link "$LINENO"; then :
10849 eval $cacheid=yes
10850 else
10851 eval $cacheid=no
10852 fi
10853 rm -f core conftest.err conftest.$ac_objext \
10854 conftest$ac_exeext conftest.$ac_ext
10855 fi
10856
10857
10858 CFLAGS="$xorg_testset_save_CFLAGS"
10859
10860 eval supported=\$$cacheid
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10862 $as_echo "$supported" >&6; }
10863 if test "$supported" = "yes" ; then
10864 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10865 found="yes"
10866 fi
10867 fi
10868
10869
10870
10871 if test "x$STRICT_COMPILE" = "xyes"; then
10872 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10873 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10874 fi
10875
10876
10877
10878
10879
10880
10881 cat >>confdefs.h <<_ACEOF
10882 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10883 _ACEOF
10884
10885 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10886 if test "x$PVM" = "x"; then
10887 PVM="0"
10888 fi
10889
10890 cat >>confdefs.h <<_ACEOF
10891 #define PACKAGE_VERSION_MINOR $PVM
10892 _ACEOF
10893
10894 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10895 if test "x$PVP" = "x"; then
10896 PVP="0"
10897 fi
10898
10899 cat >>confdefs.h <<_ACEOF
10900 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10901 _ACEOF
10902
10903
10904
10905 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10906 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10907 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10908 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10909
10910
10911
10912
10913 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10914 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10915 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10916 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10917 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10918
10919
10920
10921
10922
10923
10924 if test x$APP_MAN_SUFFIX = x ; then
10925 APP_MAN_SUFFIX=1
10926 fi
10927 if test x$APP_MAN_DIR = x ; then
10928 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10929 fi
10930
10931 if test x$LIB_MAN_SUFFIX = x ; then
10932 LIB_MAN_SUFFIX=3
10933 fi
10934 if test x$LIB_MAN_DIR = x ; then
10935 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10936 fi
10937
10938 if test x$FILE_MAN_SUFFIX = x ; then
10939 case $host_os in
10940 solaris*) FILE_MAN_SUFFIX=4 ;;
10941 *) FILE_MAN_SUFFIX=5 ;;
10942 esac
10943 fi
10944 if test x$FILE_MAN_DIR = x ; then
10945 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10946 fi
10947
10948 if test x$MISC_MAN_SUFFIX = x ; then
10949 case $host_os in
10950 solaris*) MISC_MAN_SUFFIX=5 ;;
10951 *) MISC_MAN_SUFFIX=7 ;;
10952 esac
10953 fi
10954 if test x$MISC_MAN_DIR = x ; then
10955 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10956 fi
10957
10958 if test x$DRIVER_MAN_SUFFIX = x ; then
10959 case $host_os in
10960 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10961 *) DRIVER_MAN_SUFFIX=4 ;;
10962 esac
10963 fi
10964 if test x$DRIVER_MAN_DIR = x ; then
10965 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10966 fi
10967
10968 if test x$ADMIN_MAN_SUFFIX = x ; then
10969 case $host_os in
10970 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10971 *) ADMIN_MAN_SUFFIX=8 ;;
10972 esac
10973 fi
10974 if test x$ADMIN_MAN_DIR = x ; then
10975 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10976 fi
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992 XORG_MAN_PAGE="X Version 11"
10993
10994 MAN_SUBSTS="\
10995 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10996 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10997 -e 's|__xservername__|Xorg|g' \
10998 -e 's|__xconfigfile__|xorg.conf|g' \
10999 -e 's|__projectroot__|\$(prefix)|g' \
11000 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11001 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11002 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11003 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11004 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11005 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11006 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11007
11008
11009
11010 # Check whether --enable-silent-rules was given.
11011 if test "${enable_silent_rules+set}" = set; then :
11012 enableval=$enable_silent_rules;
11013 fi
11014
11015 case $enable_silent_rules in # (((
11016 yes) AM_DEFAULT_VERBOSITY=0;;
11017 no) AM_DEFAULT_VERBOSITY=1;;
11018 *) AM_DEFAULT_VERBOSITY=0;;
11019 esac
11020 am_make=${MAKE-make}
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11022 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11023 if ${am_cv_make_support_nested_variables+:} false; then :
11024 $as_echo_n "(cached) " >&6
11025 else
11026 if $as_echo 'TRUE=$(BAR$(V))
11027 BAR0=false
11028 BAR1=true
11029 V=1
11030 am__doit:
11031 @$(TRUE)
11032 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11033 am_cv_make_support_nested_variables=yes
11034 else
11035 am_cv_make_support_nested_variables=no
11036 fi
11037 fi
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11039 $as_echo "$am_cv_make_support_nested_variables" >&6; }
11040 if test $am_cv_make_support_nested_variables = yes; then
11041 AM_V='$(V)'
11042 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11043 else
11044 AM_V=$AM_DEFAULT_VERBOSITY
11045 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11046 fi
11047 AM_BACKSLASH='\'
11048
11049
11050
11051
11052 # Check whether --enable-devel-docs was given.
11053 if test "${enable_devel_docs+set}" = set; then :
11054 enableval=$enable_devel_docs; build_devel_docs=$enableval
11055 else
11056 build_devel_docs=yes
11057 fi
11058
11059
11060 if test x$build_devel_docs = xyes; then
11061 ENABLE_DEVEL_DOCS_TRUE=
11062 ENABLE_DEVEL_DOCS_FALSE='#'
11063 else
11064 ENABLE_DEVEL_DOCS_TRUE='#'
11065 ENABLE_DEVEL_DOCS_FALSE=
11066 fi
11067
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
11069 $as_echo_n "checking whether to build developer documentation... " >&6; }
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
11071 $as_echo "$build_devel_docs" >&6; }
11072
11073
11074
11075
11076
11077 # Check whether --with-xmlto was given.
11078 if test "${with_xmlto+set}" = set; then :
11079 withval=$with_xmlto; use_xmlto=$withval
11080 else
11081 use_xmlto=auto
11082 fi
11083
11084
11085
11086 if test "x$use_xmlto" = x"auto"; then
11087 # Extract the first word of "xmlto", so it can be a program name with args.
11088 set dummy xmlto; ac_word=$2
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11090 $as_echo_n "checking for $ac_word... " >&6; }
11091 if ${ac_cv_path_XMLTO+:} false; then :
11092 $as_echo_n "(cached) " >&6
11093 else
11094 case $XMLTO in
11095 [\\/]* | ?:[\\/]*)
11096 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
11097 ;;
11098 *)
11099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100 for as_dir in $PATH
11101 do
11102 IFS=$as_save_IFS
11103 test -z "$as_dir" && as_dir=.
11104 for ac_exec_ext in '' $ac_executable_extensions; do
11105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11106 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
11107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11108 break 2
11109 fi
11110 done
11111 done
11112 IFS=$as_save_IFS
11113
11114 ;;
11115 esac
11116 fi
11117 XMLTO=$ac_cv_path_XMLTO
11118 if test -n "$XMLTO"; then
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
11120 $as_echo "$XMLTO" >&6; }
11121 else
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123 $as_echo "no" >&6; }
11124 fi
11125
11126
11127 if test "x$XMLTO" = "x"; then
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
11129 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
11130 have_xmlto=no
11131 else
11132 have_xmlto=yes
11133 fi
11134 elif test "x$use_xmlto" = x"yes" ; then
11135 # Extract the first word of "xmlto", so it can be a program name with args.
11136 set dummy xmlto; ac_word=$2
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11138 $as_echo_n "checking for $ac_word... " >&6; }
11139 if ${ac_cv_path_XMLTO+:} false; then :
11140 $as_echo_n "(cached) " >&6
11141 else
11142 case $XMLTO in
11143 [\\/]* | ?:[\\/]*)
11144 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
11145 ;;
11146 *)
11147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11148 for as_dir in $PATH
11149 do
11150 IFS=$as_save_IFS
11151 test -z "$as_dir" && as_dir=.
11152 for ac_exec_ext in '' $ac_executable_extensions; do
11153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11154 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
11155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11156 break 2
11157 fi
11158 done
11159 done
11160 IFS=$as_save_IFS
11161
11162 ;;
11163 esac
11164 fi
11165 XMLTO=$ac_cv_path_XMLTO
11166 if test -n "$XMLTO"; then
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
11168 $as_echo "$XMLTO" >&6; }
11169 else
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171 $as_echo "no" >&6; }
11172 fi
11173
11174
11175 if test "x$XMLTO" = "x"; then
11176 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
11177 fi
11178 have_xmlto=yes
11179 elif test "x$use_xmlto" = x"no" ; then
11180 if test "x$XMLTO" != "x"; then
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
11182 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
11183 fi
11184 have_xmlto=no
11185 else
11186 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
11187 fi
11188
11189 # Test for a minimum version of xmlto, if provided.
11190 if test "$have_xmlto" = yes; then
11191 # scrape the xmlto version
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
11193 $as_echo_n "checking the xmlto version... " >&6; }
11194 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
11196 $as_echo "$xmlto_version" >&6; }
11197 as_arg_v1=$xmlto_version
11198 as_arg_v2=0.0.20
11199 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11200 case $? in #(
11201 1) :
11202 if test "x$use_xmlto" = xauto; then
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
11204 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
11205 have_xmlto=no
11206 else
11207 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
11208 fi ;; #(
11209 0) :
11210 ;; #(
11211 2) :
11212 ;; #(
11213 *) :
11214 ;;
11215 esac
11216 fi
11217
11218 # Test for the ability of xmlto to generate a text target
11219 have_xmlto_text=no
11220 cat > conftest.xml << "EOF"
11221 EOF
11222 if test "$have_xmlto" = yes; then :
11223 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
11224 have_xmlto_text=yes
11225 else
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
11227 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
11228 fi
11229 fi
11230 rm -f conftest.xml
11231 if test $have_xmlto_text = yes; then
11232 HAVE_XMLTO_TEXT_TRUE=
11233 HAVE_XMLTO_TEXT_FALSE='#'
11234 else
11235 HAVE_XMLTO_TEXT_TRUE='#'
11236 HAVE_XMLTO_TEXT_FALSE=
11237 fi
11238
11239 if test "$have_xmlto" = yes; then
11240 HAVE_XMLTO_TRUE=
11241 HAVE_XMLTO_FALSE='#'
11242 else
11243 HAVE_XMLTO_TRUE='#'
11244 HAVE_XMLTO_FALSE=
11245 fi
11246
11247
11248
11249
11250
11251
11252 # Check whether --with-fop was given.
11253 if test "${with_fop+set}" = set; then :
11254 withval=$with_fop; use_fop=$withval
11255 else
11256 use_fop=auto
11257 fi
11258
11259
11260
11261 if test "x$use_fop" = x"auto"; then
11262 # Extract the first word of "fop", so it can be a program name with args.
11263 set dummy fop; ac_word=$2
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11265 $as_echo_n "checking for $ac_word... " >&6; }
11266 if ${ac_cv_path_FOP+:} false; then :
11267 $as_echo_n "(cached) " >&6
11268 else
11269 case $FOP in
11270 [\\/]* | ?:[\\/]*)
11271 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11272 ;;
11273 *)
11274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275 for as_dir in $PATH
11276 do
11277 IFS=$as_save_IFS
11278 test -z "$as_dir" && as_dir=.
11279 for ac_exec_ext in '' $ac_executable_extensions; do
11280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11281 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
11282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11283 break 2
11284 fi
11285 done
11286 done
11287 IFS=$as_save_IFS
11288
11289 ;;
11290 esac
11291 fi
11292 FOP=$ac_cv_path_FOP
11293 if test -n "$FOP"; then
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11295 $as_echo "$FOP" >&6; }
11296 else
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11298 $as_echo "no" >&6; }
11299 fi
11300
11301
11302 if test "x$FOP" = "x"; then
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
11304 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
11305 have_fop=no
11306 else
11307 have_fop=yes
11308 fi
11309 elif test "x$use_fop" = x"yes" ; then
11310 # Extract the first word of "fop", so it can be a program name with args.
11311 set dummy fop; ac_word=$2
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11313 $as_echo_n "checking for $ac_word... " >&6; }
11314 if ${ac_cv_path_FOP+:} false; then :
11315 $as_echo_n "(cached) " >&6
11316 else
11317 case $FOP in
11318 [\\/]* | ?:[\\/]*)
11319 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11320 ;;
11321 *)
11322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11323 for as_dir in $PATH
11324 do
11325 IFS=$as_save_IFS
11326 test -z "$as_dir" && as_dir=.
11327 for ac_exec_ext in '' $ac_executable_extensions; do
11328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11329 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
11330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11331 break 2
11332 fi
11333 done
11334 done
11335 IFS=$as_save_IFS
11336
11337 ;;
11338 esac
11339 fi
11340 FOP=$ac_cv_path_FOP
11341 if test -n "$FOP"; then
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11343 $as_echo "$FOP" >&6; }
11344 else
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346 $as_echo "no" >&6; }
11347 fi
11348
11349
11350 if test "x$FOP" = "x"; then
11351 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
11352 fi
11353 have_fop=yes
11354 elif test "x$use_fop" = x"no" ; then
11355 if test "x$FOP" != "x"; then
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
11357 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
11358 fi
11359 have_fop=no
11360 else
11361 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
11362 fi
11363
11364 # Test for a minimum version of fop, if provided.
11365
11366 if test "$have_fop" = yes; then
11367 HAVE_FOP_TRUE=
11368 HAVE_FOP_FALSE='#'
11369 else
11370 HAVE_FOP_TRUE='#'
11371 HAVE_FOP_FALSE=
11372 fi
11373
11374
11375
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5
11377 $as_echo_n "checking for X.Org SGML entities >= 1.5... " >&6; }
11378 XORG_SGML_PATH=
11379 if test -n "$PKG_CONFIG" && \
11380 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5
11381 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5
11382 ac_status=$?
11383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11384 test $ac_status = 0; }; then
11385 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
11386 else
11387 :
11388
11389 fi
11390
11391 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
11392 # the path and the name of the doc stylesheet
11393 if test "x$XORG_SGML_PATH" != "x" ; then
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
11395 $as_echo "$XORG_SGML_PATH" >&6; }
11396 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
11397 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
11398 else
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11400 $as_echo "no" >&6; }
11401 fi
11402
11403
11404
11405
11406 if test "x$XSL_STYLESHEET" != "x"; then
11407 HAVE_STYLESHEETS_TRUE=
11408 HAVE_STYLESHEETS_FALSE='#'
11409 else
11410 HAVE_STYLESHEETS_TRUE='#'
11411 HAVE_STYLESHEETS_FALSE=
11412 fi
11413
11414
11415
11416
11417
11418
11419
11420 # Check whether --with-lint was given.
11421 if test "${with_lint+set}" = set; then :
11422 withval=$with_lint; use_lint=$withval
11423 else
11424 use_lint=no
11425 fi
11426
11427
11428 # Obtain platform specific info like program name and options
11429 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
11430 case $host_os in
11431 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11432 lint_name=splint
11433 lint_options="-badflag"
11434 ;;
11435 *freebsd* | *netbsd*)
11436 lint_name=lint
11437 lint_options="-u -b"
11438 ;;
11439 *solaris*)
11440 lint_name=lint
11441 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11442 ;;
11443 esac
11444
11445 # Test for the presence of the program (either guessed by the code or spelled out by the user)
11446 if test "x$use_lint" = x"yes" ; then
11447 # Extract the first word of "$lint_name", so it can be a program name with args.
11448 set dummy $lint_name; ac_word=$2
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11450 $as_echo_n "checking for $ac_word... " >&6; }
11451 if ${ac_cv_path_LINT+:} false; then :
11452 $as_echo_n "(cached) " >&6
11453 else
11454 case $LINT in
11455 [\\/]* | ?:[\\/]*)
11456 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11457 ;;
11458 *)
11459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11460 for as_dir in $PATH
11461 do
11462 IFS=$as_save_IFS
11463 test -z "$as_dir" && as_dir=.
11464 for ac_exec_ext in '' $ac_executable_extensions; do
11465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11466 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
11467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11468 break 2
11469 fi
11470 done
11471 done
11472 IFS=$as_save_IFS
11473
11474 ;;
11475 esac
11476 fi
11477 LINT=$ac_cv_path_LINT
11478 if test -n "$LINT"; then
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11480 $as_echo "$LINT" >&6; }
11481 else
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11483 $as_echo "no" >&6; }
11484 fi
11485
11486
11487 if test "x$LINT" = "x"; then
11488 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11489 fi
11490 elif test "x$use_lint" = x"no" ; then
11491 if test "x$LINT" != "x"; then
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11493 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11494 fi
11495 else
11496 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
11497 fi
11498
11499 # User supplied flags override default flags
11500 if test "x$LINT_FLAGS" != "x"; then
11501 lint_options=$LINT_FLAGS
11502 fi
11503
11504 LINT_FLAGS=$lint_options
11505
11506 if test "x$LINT" != x; then
11507 LINT_TRUE=
11508 LINT_FALSE='#'
11509 else
11510 LINT_TRUE='#'
11511 LINT_FALSE=
11512 fi
11513
11514
11515
11516
11517 for ac_header in stdint.h
11518 do :
11519 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11520 if test "x$ac_cv_header_stdint_h" = xyes; then :
11521 cat >>confdefs.h <<_ACEOF
11522 #define HAVE_STDINT_H 1
11523 _ACEOF
11524
11525 fi
11526
11527 done
11528
11529
11530
11531 # Check whether --with-default-config-file was given.
11532 if test "${with_default_config_file+set}" = set; then :
11533 withval=$with_default_config_file; CONFIG_FILE="$withval"
11534 else
11535 CONFIG_FILE="${sysconfdir}/X11/fs/config"
11536 fi
11537
11538
11539 DEFAULT_CONFIG_FILE=`echo ${CONFIG_FILE} | sed 's/,/\\\\\\\\\\\",\\\\\\\\\\\"/'g`
11540
11541 prefix_NONE=
11542 exec_prefix_NONE=
11543 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
11544 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
11545 eval ax_define_dir="\"$DEFAULT_CONFIG_FILE\""
11546 eval ax_define_dir="\"$ax_define_dir\""
11547 DEFAULT_CONFIG_FILE="$ax_define_dir"
11548
11549
11550 cat >>confdefs.h <<_ACEOF
11551 #define DEFAULT_CONFIG_FILE "$ax_define_dir"
11552 _ACEOF
11553
11554 test "$prefix_NONE" && prefix=NONE
11555 test "$exec_prefix_NONE" && exec_prefix=NONE
11556
11557
11558 # generate text for the man page
11559 case $CONFIG_FILE in
11560 *,*)
11561 CONFIG_FILE_DESC="the first file found from the list:"
11562 CONFIG_FILE_PATH=`echo ${CONFIG_FILE} | sed 's/,/\\\\\\\\fR, \\\\\\\\fI/g'`
11563 ;;
11564 *)
11565 CONFIG_FILE_DESC="the default file,"
11566 CONFIG_FILE_PATH="${CONFIG_FILE}"
11567 ;;
11568 esac
11569
11570
11571
11572 # Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
11589 $as_echo_n "checking for root directory for font files... " >&6; }
11590
11591 # Check whether --with-fontrootdir was given.
11592 if test "${with_fontrootdir+set}" = set; then :
11593 withval=$with_fontrootdir; FONTROOTDIR="$withval"
11594 fi
11595
11596 # if --with-fontrootdir not specified...
11597 if test "x${FONTROOTDIR}" = "x"; then
11598 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
11599 fi
11600 # ...and if pkg-config didn't find fontdir in fontutil.pc...
11601 if test "x${FONTROOTDIR}" = "x"; then
11602 FONTROOTDIR="${datadir}/fonts/X11"
11603 fi
11604
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
11606 $as_echo "${FONTROOTDIR}" >&6; }
11607
11608
11609
11610
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5
11612 $as_echo_n "checking for directory for misc files... " >&6; }
11613
11614 # Check whether --with-fontmiscdir was given.
11615 if test "${with_fontmiscdir+set}" = set; then :
11616 withval=$with_fontmiscdir; FONTMISCDIR="${withval}"
11617 else
11618 FONTMISCDIR='${FONTROOTDIR}/misc'
11619 fi
11620
11621
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5
11623 $as_echo "${FONTMISCDIR}" >&6; }
11624
11625
11626
11627
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5
11629 $as_echo_n "checking for directory for OTF files... " >&6; }
11630
11631 # Check whether --with-fontotfdir was given.
11632 if test "${with_fontotfdir+set}" = set; then :
11633 withval=$with_fontotfdir; FONTOTFDIR="${withval}"
11634 else
11635 FONTOTFDIR='${FONTROOTDIR}/OTF'
11636 fi
11637
11638
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5
11640 $as_echo "${FONTOTFDIR}" >&6; }
11641
11642
11643
11644
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5
11646 $as_echo_n "checking for directory for TTF files... " >&6; }
11647
11648 # Check whether --with-fontttfdir was given.
11649 if test "${with_fontttfdir+set}" = set; then :
11650 withval=$with_fontttfdir; FONTTTFDIR="${withval}"
11651 else
11652 FONTTTFDIR='${FONTROOTDIR}/TTF'
11653 fi
11654
11655
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5
11657 $as_echo "${FONTTTFDIR}" >&6; }
11658
11659
11660
11661
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5
11663 $as_echo_n "checking for directory for Type1 files... " >&6; }
11664
11665 # Check whether --with-fonttype1dir was given.
11666 if test "${with_fonttype1dir+set}" = set; then :
11667 withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}"
11668 else
11669 FONTTYPE1DIR='${FONTROOTDIR}/Type1'
11670 fi
11671
11672
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5
11674 $as_echo "${FONTTYPE1DIR}" >&6; }
11675
11676
11677
11678
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5
11680 $as_echo_n "checking for directory for 75dpi files... " >&6; }
11681
11682 # Check whether --with-font75dpidir was given.
11683 if test "${with_font75dpidir+set}" = set; then :
11684 withval=$with_font75dpidir; FONT75DPIDIR="${withval}"
11685 else
11686 FONT75DPIDIR='${FONTROOTDIR}/75dpi'
11687 fi
11688
11689
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5
11691 $as_echo "${FONT75DPIDIR}" >&6; }
11692
11693
11694
11695
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5
11697 $as_echo_n "checking for directory for 100dpi files... " >&6; }
11698
11699 # Check whether --with-font100dpidir was given.
11700 if test "${with_font100dpidir+set}" = set; then :
11701 withval=$with_font100dpidir; FONT100DPIDIR="${withval}"
11702 else
11703 FONT100DPIDIR='${FONTROOTDIR}/100dpi'
11704 fi
11705
11706
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5
11708 $as_echo "${FONT100DPIDIR}" >&6; }
11709
11710
11711 # Determine font path to put in config file
11712 # Uses --default-font-path if set, otherwise checks for /etc/X11/fontpath.d,
11713 # otherwise uses standard subdirectories of FONTROOTDIR. When cross
11714 # compiling, assume default font path uses standard FONTROOTDIR directories.
11715 DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/"
11716 if test "$cross_compiling" != yes; then
11717 as_ac_File=`$as_echo "ac_cv_file_${sysconfdir}/X11/fontpath.d" | $as_tr_sh`
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sysconfdir}/X11/fontpath.d" >&5
11719 $as_echo_n "checking for ${sysconfdir}/X11/fontpath.d... " >&6; }
11720 if eval \${$as_ac_File+:} false; then :
11721 $as_echo_n "(cached) " >&6
11722 else
11723 test "$cross_compiling" = yes &&
11724 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11725 if test -r "${sysconfdir}/X11/fontpath.d"; then
11726 eval "$as_ac_File=yes"
11727 else
11728 eval "$as_ac_File=no"
11729 fi
11730 fi
11731 eval ac_res=\$$as_ac_File
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11733 $as_echo "$ac_res" >&6; }
11734 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
11735 DEFAULT_FONT_PATH='catalogue:${sysconfdir}/X11/fontpath.d'
11736 else
11737 case $host_os in
11738 darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;;
11739 esac
11740 fi
11741
11742 fi
11743
11744 # Check whether --with-default-font-path was given.
11745 if test "${with_default_font_path+set}" = set; then :
11746 withval=$with_default_font_path; FONTPATH="$withval"
11747 else
11748 FONTPATH="${DEFAULT_FONT_PATH}"
11749 fi
11750
11751
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5
11753 $as_echo_n "checking for default font path... " >&6; }
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5
11755 $as_echo "$FONTPATH" >&6; }
11756
11757
11758
11759 # Option to enable support for starting from inetd
11760 # Check whether --enable-inetd was given.
11761 if test "${enable_inetd+set}" = set; then :
11762 enableval=$enable_inetd; INETD=$enableval
11763 else
11764 INETD=yes
11765 fi
11766
11767 if test "x$INETD" = xyes; then
11768
11769 $as_echo "#define XFS_INETD 1" >>confdefs.h
11770
11771 fi
11772
11773 # Option to enable support for logging to syslog
11774 # Check whether --enable-syslog was given.
11775 if test "${enable_syslog+set}" = set; then :
11776 enableval=$enable_syslog; SYSLOG=$enableval
11777 else
11778 SYSLOG=yes
11779 fi
11780
11781 if test "x$SYSLOG" = xyes; then
11782
11783 $as_echo "#define USE_SYSLOG 1" >>confdefs.h
11784
11785 fi
11786
11787
11788 # Checks for system functions / libraries
11789 for ac_func in daemon
11790 do :
11791 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
11792 if test "x$ac_cv_func_daemon" = xyes; then :
11793 cat >>confdefs.h <<_ACEOF
11794 #define HAVE_DAEMON 1
11795 _ACEOF
11796
11797 fi
11798 done
11799
11800
11801 # Checks for pkg-config packages
11802 # - xproto >= 7.0.17 required for _X_NORETURN in <X11/Xfuncproto.h>
11803 # - xfont >= 1.4.5 required for matching MakeAtom prototypes in fontmisc.h
11804
11805 pkg_failed=no
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFS" >&5
11807 $as_echo_n "checking for XFS... " >&6; }
11808
11809 if test -n "$XFS_CFLAGS"; then
11810 pkg_cv_XFS_CFLAGS="$XFS_CFLAGS"
11811 elif test -n "$PKG_CONFIG"; then
11812 if test -n "$PKG_CONFIG" && \
11813 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xfont >= 1.4.5 xtrans\""; } >&5
11814 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xfont >= 1.4.5 xtrans") 2>&5
11815 ac_status=$?
11816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11817 test $ac_status = 0; }; then
11818 pkg_cv_XFS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xfont >= 1.4.5 xtrans" 2>/dev/null`
11819 else
11820 pkg_failed=yes
11821 fi
11822 else
11823 pkg_failed=untried
11824 fi
11825 if test -n "$XFS_LIBS"; then
11826 pkg_cv_XFS_LIBS="$XFS_LIBS"
11827 elif test -n "$PKG_CONFIG"; then
11828 if test -n "$PKG_CONFIG" && \
11829 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xfont >= 1.4.5 xtrans\""; } >&5
11830 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xfont >= 1.4.5 xtrans") 2>&5
11831 ac_status=$?
11832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11833 test $ac_status = 0; }; then
11834 pkg_cv_XFS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xfont >= 1.4.5 xtrans" 2>/dev/null`
11835 else
11836 pkg_failed=yes
11837 fi
11838 else
11839 pkg_failed=untried
11840 fi
11841
11842
11843
11844 if test $pkg_failed = yes; then
11845
11846 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11847 _pkg_short_errors_supported=yes
11848 else
11849 _pkg_short_errors_supported=no
11850 fi
11851 if test $_pkg_short_errors_supported = yes; then
11852 XFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.17 xfont >= 1.4.5 xtrans" 2>&1`
11853 else
11854 XFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.17 xfont >= 1.4.5 xtrans" 2>&1`
11855 fi
11856 # Put the nasty error message in config.log where it belongs
11857 echo "$XFS_PKG_ERRORS" >&5
11858
11859 as_fn_error $? "Package requirements (xproto >= 7.0.17 xfont >= 1.4.5 xtrans) were not met:
11860
11861 $XFS_PKG_ERRORS
11862
11863 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11864 installed software in a non-standard prefix.
11865
11866 Alternatively, you may set the environment variables XFS_CFLAGS
11867 and XFS_LIBS to avoid the need to call pkg-config.
11868 See the pkg-config man page for more details.
11869 " "$LINENO" 5
11870 elif test $pkg_failed = untried; then
11871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11873 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11874 is in your PATH or set the PKG_CONFIG environment variable to the full
11875 path to pkg-config.
11876
11877 Alternatively, you may set the environment variables XFS_CFLAGS
11878 and XFS_LIBS to avoid the need to call pkg-config.
11879 See the pkg-config man page for more details.
11880
11881 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11882 See \`config.log' for more details" "$LINENO" 5; }
11883 else
11884 XFS_CFLAGS=$pkg_cv_XFS_CFLAGS
11885 XFS_LIBS=$pkg_cv_XFS_LIBS
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11887 $as_echo "yes" >&6; }
11888 :
11889 fi
11890
11891 case "$host_os" in
11892 cygwin*|mingw*)
11893 CFLAGS="$CFLAGS -DFD_SETSIZE=256"
11894 LDFLAGS="$LDFLAGS -Wl,--export-all" ;;
11895 esac
11896
11897 # Transport selection macro from xtrans.m4
11898
11899
11900 case $host_os in
11901 mingw*) unixdef="no" ;;
11902 *) unixdef="yes" ;;
11903 esac
11904 # Check whether --enable-unix-transport was given.
11905 if test "${enable_unix_transport+set}" = set; then :
11906 enableval=$enable_unix_transport; UNIXCONN=$enableval
11907 else
11908 UNIXCONN=$unixdef
11909 fi
11910
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
11912 $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
11913 if test "$UNIXCONN" = "yes"; then
11914
11915 $as_echo "#define UNIXCONN 1" >>confdefs.h
11916
11917 fi
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
11919 $as_echo "$UNIXCONN" >&6; }
11920 # Check whether --enable-tcp-transport was given.
11921 if test "${enable_tcp_transport+set}" = set; then :
11922 enableval=$enable_tcp_transport; TCPCONN=$enableval
11923 else
11924 TCPCONN=yes
11925 fi
11926
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
11928 $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
11930 $as_echo "$TCPCONN" >&6; }
11931 if test "$TCPCONN" = "yes"; then
11932
11933 $as_echo "#define TCPCONN 1" >>confdefs.h
11934
11935
11936 # SVR4 hides these in libraries other than libc
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11938 $as_echo_n "checking for library containing socket... " >&6; }
11939 if ${ac_cv_search_socket+:} false; then :
11940 $as_echo_n "(cached) " >&6
11941 else
11942 ac_func_search_save_LIBS=$LIBS
11943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944 /* end confdefs.h. */
11945
11946 /* Override any GCC internal prototype to avoid an error.
11947 Use char because int might match the return type of a GCC
11948 builtin and then its argument prototype would still apply. */
11949 #ifdef __cplusplus
11950 extern "C"
11951 #endif
11952 char socket ();
11953 int
11954 main ()
11955 {
11956 return socket ();
11957 ;
11958 return 0;
11959 }
11960 _ACEOF
11961 for ac_lib in '' socket; do
11962 if test -z "$ac_lib"; then
11963 ac_res="none required"
11964 else
11965 ac_res=-l$ac_lib
11966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11967 fi
11968 if ac_fn_c_try_link "$LINENO"; then :
11969 ac_cv_search_socket=$ac_res
11970 fi
11971 rm -f core conftest.err conftest.$ac_objext \
11972 conftest$ac_exeext
11973 if ${ac_cv_search_socket+:} false; then :
11974 break
11975 fi
11976 done
11977 if ${ac_cv_search_socket+:} false; then :
11978
11979 else
11980 ac_cv_search_socket=no
11981 fi
11982 rm conftest.$ac_ext
11983 LIBS=$ac_func_search_save_LIBS
11984 fi
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11986 $as_echo "$ac_cv_search_socket" >&6; }
11987 ac_res=$ac_cv_search_socket
11988 if test "$ac_res" != no; then :
11989 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11990
11991 fi
11992
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
11994 $as_echo_n "checking for library containing gethostbyname... " >&6; }
11995 if ${ac_cv_search_gethostbyname+:} false; then :
11996 $as_echo_n "(cached) " >&6
11997 else
11998 ac_func_search_save_LIBS=$LIBS
11999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12000 /* end confdefs.h. */
12001
12002 /* Override any GCC internal prototype to avoid an error.
12003 Use char because int might match the return type of a GCC
12004 builtin and then its argument prototype would still apply. */
12005 #ifdef __cplusplus
12006 extern "C"
12007 #endif
12008 char gethostbyname ();
12009 int
12010 main ()
12011 {
12012 return gethostbyname ();
12013 ;
12014 return 0;
12015 }
12016 _ACEOF
12017 for ac_lib in '' nsl; do
12018 if test -z "$ac_lib"; then
12019 ac_res="none required"
12020 else
12021 ac_res=-l$ac_lib
12022 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12023 fi
12024 if ac_fn_c_try_link "$LINENO"; then :
12025 ac_cv_search_gethostbyname=$ac_res
12026 fi
12027 rm -f core conftest.err conftest.$ac_objext \
12028 conftest$ac_exeext
12029 if ${ac_cv_search_gethostbyname+:} false; then :
12030 break
12031 fi
12032 done
12033 if ${ac_cv_search_gethostbyname+:} false; then :
12034
12035 else
12036 ac_cv_search_gethostbyname=no
12037 fi
12038 rm conftest.$ac_ext
12039 LIBS=$ac_func_search_save_LIBS
12040 fi
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12042 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12043 ac_res=$ac_cv_search_gethostbyname
12044 if test "$ac_res" != no; then :
12045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12046
12047 fi
12048
12049 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
12051 $as_echo_n "checking for main in -lws2_32... " >&6; }
12052 if ${ac_cv_lib_ws2_32_main+:} false; then :
12053 $as_echo_n "(cached) " >&6
12054 else
12055 ac_check_lib_save_LIBS=$LIBS
12056 LIBS="-lws2_32 $LIBS"
12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12059
12060
12061 int
12062 main ()
12063 {
12064 return main ();
12065 ;
12066 return 0;
12067 }
12068 _ACEOF
12069 if ac_fn_c_try_link "$LINENO"; then :
12070 ac_cv_lib_ws2_32_main=yes
12071 else
12072 ac_cv_lib_ws2_32_main=no
12073 fi
12074 rm -f core conftest.err conftest.$ac_objext \
12075 conftest$ac_exeext conftest.$ac_ext
12076 LIBS=$ac_check_lib_save_LIBS
12077 fi
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
12079 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
12080 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
12081 cat >>confdefs.h <<_ACEOF
12082 #define HAVE_LIBWS2_32 1
12083 _ACEOF
12084
12085 LIBS="-lws2_32 $LIBS"
12086
12087 fi
12088
12089 fi
12090
12091 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
12092 # Check whether --enable-ipv6 was given.
12093 if test "${enable_ipv6+set}" = set; then :
12094 enableval=$enable_ipv6; IPV6CONN=$enableval
12095 else
12096 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12097 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12098 IPV6CONN=yes
12099 else
12100 IPV6CONN=no
12101 fi
12102
12103 fi
12104
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
12106 $as_echo_n "checking if IPv6 support should be built... " >&6; }
12107 if test "$IPV6CONN" = "yes"; then
12108
12109 $as_echo "#define IPv6 1" >>confdefs.h
12110
12111 fi
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
12113 $as_echo "$IPV6CONN" >&6; }
12114
12115 # 4.3BSD-Reno added a new member to struct sockaddr_in
12116 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
12117 #include <sys/types.h>
12118 #include <sys/socket.h>
12119 #include <netinet/in.h>
12120
12121 "
12122 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
12123
12124 $as_echo "#define BSD44SOCKETS 1" >>confdefs.h
12125
12126 fi
12127
12128
12129 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
12130 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
12131 $ac_includes_default
12132 #include <sys/socket.h>
12133 "
12134 if test "x$ac_cv_type_socklen_t" = xyes; then :
12135
12136 cat >>confdefs.h <<_ACEOF
12137 #define HAVE_SOCKLEN_T 1
12138 _ACEOF
12139
12140
12141 fi
12142
12143
12144 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
12145 # _XOPEN_SOURCE to get it (such as on Solaris)
12146 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
12147 $ac_includes_default
12148 #include <sys/socket.h>
12149
12150 "
12151 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
12152
12153 fi
12154
12155 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
12156 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
12157 unset ac_cv_member_struct_msghdr_msg_control
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
12159 $as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
12160 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
12161 #define _XOPEN_SOURCE 600
12162 $ac_includes_default
12163 #include <sys/socket.h>
12164
12165 "
12166 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
12167
12168 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
12169
12170
12171 fi
12172
12173 fi
12174 # If that didn't work, fall back to XPG5/UNIX98 with C89
12175 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
12176 unset ac_cv_member_struct_msghdr_msg_control
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
12178 $as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
12179 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
12180 #define _XOPEN_SOURCE 500
12181 $ac_includes_default
12182 #include <sys/socket.h>
12183
12184 "
12185 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
12186
12187 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
12188
12189
12190 fi
12191
12192 fi
12193
12194
12195
12196 fi
12197 case $host_os in
12198 solaris*|sco*|sysv4*) localdef="yes" ;;
12199 *) localdef="no" ;;
12200 esac
12201 # Check whether --enable-local-transport was given.
12202 if test "${enable_local_transport+set}" = set; then :
12203 enableval=$enable_local_transport; LOCALCONN=$enableval
12204 else
12205 LOCALCONN=$localdef
12206 fi
12207
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
12209 $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
12211 $as_echo "$LOCALCONN" >&6; }
12212 if test "$LOCALCONN" = "yes"; then
12213
12214 $as_echo "#define LOCALCONN 1" >>confdefs.h
12215
12216 fi
12217
12218
12219
12220 ac_config_files="$ac_config_files Makefile config/Makefile doc/Makefile man/Makefile"
12221
12222 cat >confcache <<\_ACEOF
12223 # This file is a shell script that caches the results of configure
12224 # tests run on this system so they can be shared between configure
12225 # scripts and configure runs, see configure's option --config-cache.
12226 # It is not useful on other systems. If it contains results you don't
12227 # want to keep, you may remove or edit it.
12228 #
12229 # config.status only pays attention to the cache file if you give it
12230 # the --recheck option to rerun configure.
12231 #
12232 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12233 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12234 # following values.
12235
12236 _ACEOF
12237
12238 # The following way of writing the cache mishandles newlines in values,
12239 # but we know of no workaround that is simple, portable, and efficient.
12240 # So, we kill variables containing newlines.
12241 # Ultrix sh set writes to stderr and can't be redirected directly,
12242 # and sets the high bit in the cache file unless we assign to the vars.
12243 (
12244 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12245 eval ac_val=\$$ac_var
12246 case $ac_val in #(
12247 *${as_nl}*)
12248 case $ac_var in #(
12249 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12250 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12251 esac
12252 case $ac_var in #(
12253 _ | IFS | as_nl) ;; #(
12254 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12255 *) { eval $ac_var=; unset $ac_var;} ;;
12256 esac ;;
12257 esac
12258 done
12259
12260 (set) 2>&1 |
12261 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12262 *${as_nl}ac_space=\ *)
12263 # `set' does not quote correctly, so add quotes: double-quote
12264 # substitution turns \\\\ into \\, and sed turns \\ into \.
12265 sed -n \
12266 "s/'/'\\\\''/g;
12267 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12268 ;; #(
12269 *)
12270 # `set' quotes correctly as required by POSIX, so do not add quotes.
12271 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12272 ;;
12273 esac |
12274 sort
12275 ) |
12276 sed '
12277 /^ac_cv_env_/b end
12278 t clear
12279 :clear
12280 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12281 t end
12282 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12283 :end' >>confcache
12284 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12285 if test -w "$cache_file"; then
12286 if test "x$cache_file" != "x/dev/null"; then
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12288 $as_echo "$as_me: updating cache $cache_file" >&6;}
12289 if test ! -f "$cache_file" || test -h "$cache_file"; then
12290 cat confcache >"$cache_file"
12291 else
12292 case $cache_file in #(
12293 */* | ?:*)
12294 mv -f confcache "$cache_file"$$ &&
12295 mv -f "$cache_file"$$ "$cache_file" ;; #(
12296 *)
12297 mv -f confcache "$cache_file" ;;
12298 esac
12299 fi
12300 fi
12301 else
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12303 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12304 fi
12305 fi
12306 rm -f confcache
12307
12308 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12309 # Let make expand exec_prefix.
12310 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12311
12312 DEFS=-DHAVE_CONFIG_H
12313
12314 ac_libobjs=
12315 ac_ltlibobjs=
12316 U=
12317 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12318 # 1. Remove the extension, and $U if already installed.
12319 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12320 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12321 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12322 # will be set to the directory where LIBOBJS objects are built.
12323 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12324 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12325 done
12326 LIBOBJS=$ac_libobjs
12327
12328 LTLIBOBJS=$ac_ltlibobjs
12329
12330
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12332 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12333 if test -n "$am_sleep_pid"; then
12334 # Hide warnings about reused PIDs.
12335 wait $am_sleep_pid 2>/dev/null
12336 fi
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12338 $as_echo "done" >&6; }
12339 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12340 as_fn_error $? "conditional \"AMDEP\" was never defined.
12341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12342 fi
12343 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12344 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12346 fi
12347 if test -n "$EXEEXT"; then
12348 am__EXEEXT_TRUE=
12349 am__EXEEXT_FALSE='#'
12350 else
12351 am__EXEEXT_TRUE='#'
12352 am__EXEEXT_FALSE=
12353 fi
12354
12355 if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
12356 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
12357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12358 fi
12359 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
12360 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
12361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12362 fi
12363 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
12364 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
12365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12366 fi
12367 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
12368 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
12369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12370 fi
12371 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
12372 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
12373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12374 fi
12375 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12376 as_fn_error $? "conditional \"LINT\" was never defined.
12377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12378 fi
12379
12380 : "${CONFIG_STATUS=./config.status}"
12381 ac_write_fail=0
12382 ac_clean_files_save=$ac_clean_files
12383 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12385 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12386 as_write_fail=0
12387 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12388 #! $SHELL
12389 # Generated by $as_me.
12390 # Run this file to recreate the current configuration.
12391 # Compiler output produced by configure, useful for debugging
12392 # configure, is in config.log if it exists.
12393
12394 debug=false
12395 ac_cs_recheck=false
12396 ac_cs_silent=false
12397
12398 SHELL=\${CONFIG_SHELL-$SHELL}
12399 export SHELL
12400 _ASEOF
12401 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12402 ## -------------------- ##
12403 ## M4sh Initialization. ##
12404 ## -------------------- ##
12405
12406 # Be more Bourne compatible
12407 DUALCASE=1; export DUALCASE # for MKS sh
12408 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12409 emulate sh
12410 NULLCMD=:
12411 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12412 # is contrary to our usage. Disable this feature.
12413 alias -g '${1+"$@"}'='"$@"'
12414 setopt NO_GLOB_SUBST
12415 else
12416 case `(set -o) 2>/dev/null` in #(
12417 *posix*) :
12418 set -o posix ;; #(
12419 *) :
12420 ;;
12421 esac
12422 fi
12423
12424
12425 as_nl='
12426 '
12427 export as_nl
12428 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12429 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12430 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12431 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12432 # Prefer a ksh shell builtin over an external printf program on Solaris,
12433 # but without wasting forks for bash or zsh.
12434 if test -z "$BASH_VERSION$ZSH_VERSION" \
12435 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12436 as_echo='print -r --'
12437 as_echo_n='print -rn --'
12438 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12439 as_echo='printf %s\n'
12440 as_echo_n='printf %s'
12441 else
12442 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12443 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12444 as_echo_n='/usr/ucb/echo -n'
12445 else
12446 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12447 as_echo_n_body='eval
12448 arg=$1;
12449 case $arg in #(
12450 *"$as_nl"*)
12451 expr "X$arg" : "X\\(.*\\)$as_nl";
12452 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12453 esac;
12454 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12455 '
12456 export as_echo_n_body
12457 as_echo_n='sh -c $as_echo_n_body as_echo'
12458 fi
12459 export as_echo_body
12460 as_echo='sh -c $as_echo_body as_echo'
12461 fi
12462
12463 # The user is always right.
12464 if test "${PATH_SEPARATOR+set}" != set; then
12465 PATH_SEPARATOR=:
12466 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12467 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12468 PATH_SEPARATOR=';'
12469 }
12470 fi
12471
12472
12473 # IFS
12474 # We need space, tab and new line, in precisely that order. Quoting is
12475 # there to prevent editors from complaining about space-tab.
12476 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12477 # splitting by setting IFS to empty value.)
12478 IFS=" "" $as_nl"
12479
12480 # Find who we are. Look in the path if we contain no directory separator.
12481 as_myself=
12482 case $0 in #((
12483 *[\\/]* ) as_myself=$0 ;;
12484 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12485 for as_dir in $PATH
12486 do
12487 IFS=$as_save_IFS
12488 test -z "$as_dir" && as_dir=.
12489 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12490 done
12491 IFS=$as_save_IFS
12492
12493 ;;
12494 esac
12495 # We did not find ourselves, most probably we were run as `sh COMMAND'
12496 # in which case we are not to be found in the path.
12497 if test "x$as_myself" = x; then
12498 as_myself=$0
12499 fi
12500 if test ! -f "$as_myself"; then
12501 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12502 exit 1
12503 fi
12504
12505 # Unset variables that we do not need and which cause bugs (e.g. in
12506 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12507 # suppresses any "Segmentation fault" message there. '((' could
12508 # trigger a bug in pdksh 5.2.14.
12509 for as_var in BASH_ENV ENV MAIL MAILPATH
12510 do eval test x\${$as_var+set} = xset \
12511 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12512 done
12513 PS1='$ '
12514 PS2='> '
12515 PS4='+ '
12516
12517 # NLS nuisances.
12518 LC_ALL=C
12519 export LC_ALL
12520 LANGUAGE=C
12521 export LANGUAGE
12522
12523 # CDPATH.
12524 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12525
12526
12527 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12528 # ----------------------------------------
12529 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12530 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12531 # script with STATUS, using 1 if that was 0.
12532 as_fn_error ()
12533 {
12534 as_status=$1; test $as_status -eq 0 && as_status=1
12535 if test "$4"; then
12536 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12537 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12538 fi
12539 $as_echo "$as_me: error: $2" >&2
12540 as_fn_exit $as_status
12541 } # as_fn_error
12542
12543
12544 # as_fn_set_status STATUS
12545 # -----------------------
12546 # Set $? to STATUS, without forking.
12547 as_fn_set_status ()
12548 {
12549 return $1
12550 } # as_fn_set_status
12551
12552 # as_fn_exit STATUS
12553 # -----------------
12554 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12555 as_fn_exit ()
12556 {
12557 set +e
12558 as_fn_set_status $1
12559 exit $1
12560 } # as_fn_exit
12561
12562 # as_fn_unset VAR
12563 # ---------------
12564 # Portably unset VAR.
12565 as_fn_unset ()
12566 {
12567 { eval $1=; unset $1;}
12568 }
12569 as_unset=as_fn_unset
12570 # as_fn_append VAR VALUE
12571 # ----------------------
12572 # Append the text in VALUE to the end of the definition contained in VAR. Take
12573 # advantage of any shell optimizations that allow amortized linear growth over
12574 # repeated appends, instead of the typical quadratic growth present in naive
12575 # implementations.
12576 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12577 eval 'as_fn_append ()
12578 {
12579 eval $1+=\$2
12580 }'
12581 else
12582 as_fn_append ()
12583 {
12584 eval $1=\$$1\$2
12585 }
12586 fi # as_fn_append
12587
12588 # as_fn_arith ARG...
12589 # ------------------
12590 # Perform arithmetic evaluation on the ARGs, and store the result in the
12591 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12592 # must be portable across $(()) and expr.
12593 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12594 eval 'as_fn_arith ()
12595 {
12596 as_val=$(( $* ))
12597 }'
12598 else
12599 as_fn_arith ()
12600 {
12601 as_val=`expr "$@" || test $? -eq 1`
12602 }
12603 fi # as_fn_arith
12604
12605
12606 if expr a : '\(a\)' >/dev/null 2>&1 &&
12607 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12608 as_expr=expr
12609 else
12610 as_expr=false
12611 fi
12612
12613 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12614 as_basename=basename
12615 else
12616 as_basename=false
12617 fi
12618
12619 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12620 as_dirname=dirname
12621 else
12622 as_dirname=false
12623 fi
12624
12625 as_me=`$as_basename -- "$0" ||
12626 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12627 X"$0" : 'X\(//\)$' \| \
12628 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12629 $as_echo X/"$0" |
12630 sed '/^.*\/\([^/][^/]*\)\/*$/{
12631 s//\1/
12632 q
12633 }
12634 /^X\/\(\/\/\)$/{
12635 s//\1/
12636 q
12637 }
12638 /^X\/\(\/\).*/{
12639 s//\1/
12640 q
12641 }
12642 s/.*/./; q'`
12643
12644 # Avoid depending upon Character Ranges.
12645 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12646 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12647 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12648 as_cr_digits='0123456789'
12649 as_cr_alnum=$as_cr_Letters$as_cr_digits
12650
12651 ECHO_C= ECHO_N= ECHO_T=
12652 case `echo -n x` in #(((((
12653 -n*)
12654 case `echo 'xy\c'` in
12655 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12656 xy) ECHO_C='\c';;
12657 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12658 ECHO_T=' ';;
12659 esac;;
12660 *)
12661 ECHO_N='-n';;
12662 esac
12663
12664 rm -f conf$$ conf$$.exe conf$$.file
12665 if test -d conf$$.dir; then
12666 rm -f conf$$.dir/conf$$.file
12667 else
12668 rm -f conf$$.dir
12669 mkdir conf$$.dir 2>/dev/null
12670 fi
12671 if (echo >conf$$.file) 2>/dev/null; then
12672 if ln -s conf$$.file conf$$ 2>/dev/null; then
12673 as_ln_s='ln -s'
12674 # ... but there are two gotchas:
12675 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12676 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12677 # In both cases, we have to default to `cp -p'.
12678 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12679 as_ln_s='cp -p'
12680 elif ln conf$$.file conf$$ 2>/dev/null; then
12681 as_ln_s=ln
12682 else
12683 as_ln_s='cp -p'
12684 fi
12685 else
12686 as_ln_s='cp -p'
12687 fi
12688 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12689 rmdir conf$$.dir 2>/dev/null
12690
12691
12692 # as_fn_mkdir_p
12693 # -------------
12694 # Create "$as_dir" as a directory, including parents if necessary.
12695 as_fn_mkdir_p ()
12696 {
12697
12698 case $as_dir in #(
12699 -*) as_dir=./$as_dir;;
12700 esac
12701 test -d "$as_dir" || eval $as_mkdir_p || {
12702 as_dirs=
12703 while :; do
12704 case $as_dir in #(
12705 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12706 *) as_qdir=$as_dir;;
12707 esac
12708 as_dirs="'$as_qdir' $as_dirs"
12709 as_dir=`$as_dirname -- "$as_dir" ||
12710 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12711 X"$as_dir" : 'X\(//\)[^/]' \| \
12712 X"$as_dir" : 'X\(//\)$' \| \
12713 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12714 $as_echo X"$as_dir" |
12715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12716 s//\1/
12717 q
12718 }
12719 /^X\(\/\/\)[^/].*/{
12720 s//\1/
12721 q
12722 }
12723 /^X\(\/\/\)$/{
12724 s//\1/
12725 q
12726 }
12727 /^X\(\/\).*/{
12728 s//\1/
12729 q
12730 }
12731 s/.*/./; q'`
12732 test -d "$as_dir" && break
12733 done
12734 test -z "$as_dirs" || eval "mkdir $as_dirs"
12735 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12736
12737
12738 } # as_fn_mkdir_p
12739 if mkdir -p . 2>/dev/null; then
12740 as_mkdir_p='mkdir -p "$as_dir"'
12741 else
12742 test -d ./-p && rmdir ./-p
12743 as_mkdir_p=false
12744 fi
12745
12746 if test -x / >/dev/null 2>&1; then
12747 as_test_x='test -x'
12748 else
12749 if ls -dL / >/dev/null 2>&1; then
12750 as_ls_L_option=L
12751 else
12752 as_ls_L_option=
12753 fi
12754 as_test_x='
12755 eval sh -c '\''
12756 if test -d "$1"; then
12757 test -d "$1/.";
12758 else
12759 case $1 in #(
12760 -*)set "./$1";;
12761 esac;
12762 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12763 ???[sx]*):;;*)false;;esac;fi
12764 '\'' sh
12765 '
12766 fi
12767 as_executable_p=$as_test_x
12768
12769 # Sed expression to map a string onto a valid CPP name.
12770 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12771
12772 # Sed expression to map a string onto a valid variable name.
12773 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12774
12775
12776 exec 6>&1
12777 ## ----------------------------------- ##
12778 ## Main body of $CONFIG_STATUS script. ##
12779 ## ----------------------------------- ##
12780 _ASEOF
12781 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12782
12783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12784 # Save the log message, to keep $0 and so on meaningful, and to
12785 # report actual input values of CONFIG_FILES etc. instead of their
12786 # values after options handling.
12787 ac_log="
12788 This file was extended by xfs $as_me 1.1.4, which was
12789 generated by GNU Autoconf 2.68. Invocation command line was
12790
12791 CONFIG_FILES = $CONFIG_FILES
12792 CONFIG_HEADERS = $CONFIG_HEADERS
12793 CONFIG_LINKS = $CONFIG_LINKS
12794 CONFIG_COMMANDS = $CONFIG_COMMANDS
12795 $ $0 $@
12796
12797 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12798 "
12799
12800 _ACEOF
12801
12802 case $ac_config_files in *"
12803 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12804 esac
12805
12806 case $ac_config_headers in *"
12807 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12808 esac
12809
12810
12811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12812 # Files that config.status was made for.
12813 config_files="$ac_config_files"
12814 config_headers="$ac_config_headers"
12815 config_commands="$ac_config_commands"
12816
12817 _ACEOF
12818
12819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12820 ac_cs_usage="\
12821 \`$as_me' instantiates files and other configuration actions
12822 from templates according to the current configuration. Unless the files
12823 and actions are specified as TAGs, all are instantiated by default.
12824
12825 Usage: $0 [OPTION]... [TAG]...
12826
12827 -h, --help print this help, then exit
12828 -V, --version print version number and configuration settings, then exit
12829 --config print configuration, then exit
12830 -q, --quiet, --silent
12831 do not print progress messages
12832 -d, --debug don't remove temporary files
12833 --recheck update $as_me by reconfiguring in the same conditions
12834 --file=FILE[:TEMPLATE]
12835 instantiate the configuration file FILE
12836 --header=FILE[:TEMPLATE]
12837 instantiate the configuration header FILE
12838
12839 Configuration files:
12840 $config_files
12841
12842 Configuration headers:
12843 $config_headers
12844
12845 Configuration commands:
12846 $config_commands
12847
12848 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12849
12850 _ACEOF
12851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12852 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12853 ac_cs_version="\\
12854 xfs config.status 1.1.4
12855 configured by $0, generated by GNU Autoconf 2.68,
12856 with options \\"\$ac_cs_config\\"
12857
12858 Copyright (C) 2010 Free Software Foundation, Inc.
12859 This config.status script is free software; the Free Software Foundation
12860 gives unlimited permission to copy, distribute and modify it."
12861
12862 ac_pwd='$ac_pwd'
12863 srcdir='$srcdir'
12864 INSTALL='$INSTALL'
12865 MKDIR_P='$MKDIR_P'
12866 AWK='$AWK'
12867 test -n "\$AWK" || AWK=awk
12868 _ACEOF
12869
12870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12871 # The default lists apply if the user does not specify any file.
12872 ac_need_defaults=:
12873 while test $# != 0
12874 do
12875 case $1 in
12876 --*=?*)
12877 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12878 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12879 ac_shift=:
12880 ;;
12881 --*=)
12882 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12883 ac_optarg=
12884 ac_shift=:
12885 ;;
12886 *)
12887 ac_option=$1
12888 ac_optarg=$2
12889 ac_shift=shift
12890 ;;
12891 esac
12892
12893 case $ac_option in
12894 # Handling of the options.
12895 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12896 ac_cs_recheck=: ;;
12897 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12898 $as_echo "$ac_cs_version"; exit ;;
12899 --config | --confi | --conf | --con | --co | --c )
12900 $as_echo "$ac_cs_config"; exit ;;
12901 --debug | --debu | --deb | --de | --d | -d )
12902 debug=: ;;
12903 --file | --fil | --fi | --f )
12904 $ac_shift
12905 case $ac_optarg in
12906 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12907 '') as_fn_error $? "missing file argument" ;;
12908 esac
12909 as_fn_append CONFIG_FILES " '$ac_optarg'"
12910 ac_need_defaults=false;;
12911 --header | --heade | --head | --hea )
12912 $ac_shift
12913 case $ac_optarg in
12914 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12915 esac
12916 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12917 ac_need_defaults=false;;
12918 --he | --h)
12919 # Conflict between --help and --header
12920 as_fn_error $? "ambiguous option: \`$1'
12921 Try \`$0 --help' for more information.";;
12922 --help | --hel | -h )
12923 $as_echo "$ac_cs_usage"; exit ;;
12924 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12925 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12926 ac_cs_silent=: ;;
12927
12928 # This is an error.
12929 -*) as_fn_error $? "unrecognized option: \`$1'
12930 Try \`$0 --help' for more information." ;;
12931
12932 *) as_fn_append ac_config_targets " $1"
12933 ac_need_defaults=false ;;
12934
12935 esac
12936 shift
12937 done
12938
12939 ac_configure_extra_args=
12940
12941 if $ac_cs_silent; then
12942 exec 6>/dev/null
12943 ac_configure_extra_args="$ac_configure_extra_args --silent"
12944 fi
12945
12946 _ACEOF
12947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12948 if \$ac_cs_recheck; then
12949 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12950 shift
12951 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12952 CONFIG_SHELL='$SHELL'
12953 export CONFIG_SHELL
12954 exec "\$@"
12955 fi
12956
12957 _ACEOF
12958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12959 exec 5>>config.log
12960 {
12961 echo
12962 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12963 ## Running $as_me. ##
12964 _ASBOX
12965 $as_echo "$ac_log"
12966 } >&5
12967
12968 _ACEOF
12969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12970 #
12971 # INIT-COMMANDS
12972 #
12973 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12974
12975 _ACEOF
12976
12977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12978
12979 # Handling of arguments.
12980 for ac_config_target in $ac_config_targets
12981 do
12982 case $ac_config_target in
12983 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12984 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12985 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12986 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
12987 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12988 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12989
12990 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12991 esac
12992 done
12993
12994
12995 # If the user did not use the arguments to specify the items to instantiate,
12996 # then the envvar interface is used. Set only those that are not.
12997 # We use the long form for the default assignment because of an extremely
12998 # bizarre bug on SunOS 4.1.3.
12999 if $ac_need_defaults; then
13000 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13001 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13002 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13003 fi
13004
13005 # Have a temporary directory for convenience. Make it in the build tree
13006 # simply because there is no reason against having it here, and in addition,
13007 # creating and moving files from /tmp can sometimes cause problems.
13008 # Hook for its removal unless debugging.
13009 # Note that there is a small window in which the directory will not be cleaned:
13010 # after its creation but before its name has been assigned to `$tmp'.
13011 $debug ||
13012 {
13013 tmp= ac_tmp=
13014 trap 'exit_status=$?
13015 : "${ac_tmp:=$tmp}"
13016 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13017 ' 0
13018 trap 'as_fn_exit 1' 1 2 13 15
13019 }
13020 # Create a (secure) tmp directory for tmp files.
13021
13022 {
13023 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13024 test -d "$tmp"
13025 } ||
13026 {
13027 tmp=./conf$$-$RANDOM
13028 (umask 077 && mkdir "$tmp")
13029 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13030 ac_tmp=$tmp
13031
13032 # Set up the scripts for CONFIG_FILES section.
13033 # No need to generate them if there are no CONFIG_FILES.
13034 # This happens for instance with `./config.status config.h'.
13035 if test -n "$CONFIG_FILES"; then
13036
13037
13038 ac_cr=`echo X | tr X '\015'`
13039 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13040 # But we know of no other shell where ac_cr would be empty at this
13041 # point, so we can use a bashism as a fallback.
13042 if test "x$ac_cr" = x; then
13043 eval ac_cr=\$\'\\r\'
13044 fi
13045 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13046 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13047 ac_cs_awk_cr='\\r'
13048 else
13049 ac_cs_awk_cr=$ac_cr
13050 fi
13051
13052 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13053 _ACEOF
13054
13055
13056 {
13057 echo "cat >conf$$subs.awk <<_ACEOF" &&
13058 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13059 echo "_ACEOF"
13060 } >conf$$subs.sh ||
13061 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13062 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13063 ac_delim='%!_!# '
13064 for ac_last_try in false false false false false :; do
13065 . ./conf$$subs.sh ||
13066 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13067
13068 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13069 if test $ac_delim_n = $ac_delim_num; then
13070 break
13071 elif $ac_last_try; then
13072 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13073 else
13074 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13075 fi
13076 done
13077 rm -f conf$$subs.sh
13078
13079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13080 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13081 _ACEOF
13082 sed -n '
13083 h
13084 s/^/S["/; s/!.*/"]=/
13085 p
13086 g
13087 s/^[^!]*!//
13088 :repl
13089 t repl
13090 s/'"$ac_delim"'$//
13091 t delim
13092 :nl
13093 h
13094 s/\(.\{148\}\)..*/\1/
13095 t more1
13096 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13097 p
13098 n
13099 b repl
13100 :more1
13101 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13102 p
13103 g
13104 s/.\{148\}//
13105 t nl
13106 :delim
13107 h
13108 s/\(.\{148\}\)..*/\1/
13109 t more2
13110 s/["\\]/\\&/g; s/^/"/; s/$/"/
13111 p
13112 b
13113 :more2
13114 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13115 p
13116 g
13117 s/.\{148\}//
13118 t delim
13119 ' <conf$$subs.awk | sed '
13120 /^[^""]/{
13121 N
13122 s/\n//
13123 }
13124 ' >>$CONFIG_STATUS || ac_write_fail=1
13125 rm -f conf$$subs.awk
13126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13127 _ACAWK
13128 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13129 for (key in S) S_is_set[key] = 1
13130 FS = ""
13131
13132 }
13133 {
13134 line = $ 0
13135 nfields = split(line, field, "@")
13136 substed = 0
13137 len = length(field[1])
13138 for (i = 2; i < nfields; i++) {
13139 key = field[i]
13140 keylen = length(key)
13141 if (S_is_set[key]) {
13142 value = S[key]
13143 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13144 len += length(value) + length(field[++i])
13145 substed = 1
13146 } else
13147 len += 1 + keylen
13148 }
13149
13150 print line
13151 }
13152
13153 _ACAWK
13154 _ACEOF
13155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13156 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13157 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13158 else
13159 cat
13160 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13161 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13162 _ACEOF
13163
13164 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13165 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13166 # trailing colons and then remove the whole line if VPATH becomes empty
13167 # (actually we leave an empty line to preserve line numbers).
13168 if test "x$srcdir" = x.; then
13169 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13170 h
13171 s///
13172 s/^/:/
13173 s/[ ]*$/:/
13174 s/:\$(srcdir):/:/g
13175 s/:\${srcdir}:/:/g
13176 s/:@srcdir@:/:/g
13177 s/^:*//
13178 s/:*$//
13179 x
13180 s/\(=[ ]*\).*/\1/
13181 G
13182 s/\n//
13183 s/^[^=]*=[ ]*$//
13184 }'
13185 fi
13186
13187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13188 fi # test -n "$CONFIG_FILES"
13189
13190 # Set up the scripts for CONFIG_HEADERS section.
13191 # No need to generate them if there are no CONFIG_HEADERS.
13192 # This happens for instance with `./config.status Makefile'.
13193 if test -n "$CONFIG_HEADERS"; then
13194 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13195 BEGIN {
13196 _ACEOF
13197
13198 # Transform confdefs.h into an awk script `defines.awk', embedded as
13199 # here-document in config.status, that substitutes the proper values into
13200 # config.h.in to produce config.h.
13201
13202 # Create a delimiter string that does not exist in confdefs.h, to ease
13203 # handling of long lines.
13204 ac_delim='%!_!# '
13205 for ac_last_try in false false :; do
13206 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13207 if test -z "$ac_tt"; then
13208 break
13209 elif $ac_last_try; then
13210 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13211 else
13212 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13213 fi
13214 done
13215
13216 # For the awk script, D is an array of macro values keyed by name,
13217 # likewise P contains macro parameters if any. Preserve backslash
13218 # newline sequences.
13219
13220 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13221 sed -n '
13222 s/.\{148\}/&'"$ac_delim"'/g
13223 t rset
13224 :rset
13225 s/^[ ]*#[ ]*define[ ][ ]*/ /
13226 t def
13227 d
13228 :def
13229 s/\\$//
13230 t bsnl
13231 s/["\\]/\\&/g
13232 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13233 D["\1"]=" \3"/p
13234 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13235 d
13236 :bsnl
13237 s/["\\]/\\&/g
13238 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13239 D["\1"]=" \3\\\\\\n"\\/p
13240 t cont
13241 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13242 t cont
13243 d
13244 :cont
13245 n
13246 s/.\{148\}/&'"$ac_delim"'/g
13247 t clear
13248 :clear
13249 s/\\$//
13250 t bsnlc
13251 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13252 d
13253 :bsnlc
13254 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13255 b cont
13256 ' <confdefs.h | sed '
13257 s/'"$ac_delim"'/"\\\
13258 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13259
13260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13261 for (key in D) D_is_set[key] = 1
13262 FS = ""
13263 }
13264 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13265 line = \$ 0
13266 split(line, arg, " ")
13267 if (arg[1] == "#") {
13268 defundef = arg[2]
13269 mac1 = arg[3]
13270 } else {
13271 defundef = substr(arg[1], 2)
13272 mac1 = arg[2]
13273 }
13274 split(mac1, mac2, "(") #)
13275 macro = mac2[1]
13276 prefix = substr(line, 1, index(line, defundef) - 1)
13277 if (D_is_set[macro]) {
13278 # Preserve the white space surrounding the "#".
13279 print prefix "define", macro P[macro] D[macro]
13280 next
13281 } else {
13282 # Replace #undef with comments. This is necessary, for example,
13283 # in the case of _POSIX_SOURCE, which is predefined and required
13284 # on some systems where configure will not decide to define it.
13285 if (defundef == "undef") {
13286 print "/*", prefix defundef, macro, "*/"
13287 next
13288 }
13289 }
13290 }
13291 { print }
13292 _ACAWK
13293 _ACEOF
13294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13295 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13296 fi # test -n "$CONFIG_HEADERS"
13297
13298
13299 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13300 shift
13301 for ac_tag
13302 do
13303 case $ac_tag in
13304 :[FHLC]) ac_mode=$ac_tag; continue;;
13305 esac
13306 case $ac_mode$ac_tag in
13307 :[FHL]*:*);;
13308 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13309 :[FH]-) ac_tag=-:-;;
13310 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13311 esac
13312 ac_save_IFS=$IFS
13313 IFS=:
13314 set x $ac_tag
13315 IFS=$ac_save_IFS
13316 shift
13317 ac_file=$1
13318 shift
13319
13320 case $ac_mode in
13321 :L) ac_source=$1;;
13322 :[FH])
13323 ac_file_inputs=
13324 for ac_f
13325 do
13326 case $ac_f in
13327 -) ac_f="$ac_tmp/stdin";;
13328 *) # Look for the file first in the build tree, then in the source tree
13329 # (if the path is not absolute). The absolute path cannot be DOS-style,
13330 # because $ac_f cannot contain `:'.
13331 test -f "$ac_f" ||
13332 case $ac_f in
13333 [\\/$]*) false;;
13334 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13335 esac ||
13336 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13337 esac
13338 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13339 as_fn_append ac_file_inputs " '$ac_f'"
13340 done
13341
13342 # Let's still pretend it is `configure' which instantiates (i.e., don't
13343 # use $as_me), people would be surprised to read:
13344 # /* config.h. Generated by config.status. */
13345 configure_input='Generated from '`
13346 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13347 `' by configure.'
13348 if test x"$ac_file" != x-; then
13349 configure_input="$ac_file. $configure_input"
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13351 $as_echo "$as_me: creating $ac_file" >&6;}
13352 fi
13353 # Neutralize special characters interpreted by sed in replacement strings.
13354 case $configure_input in #(
13355 *\&* | *\|* | *\\* )
13356 ac_sed_conf_input=`$as_echo "$configure_input" |
13357 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13358 *) ac_sed_conf_input=$configure_input;;
13359 esac
13360
13361 case $ac_tag in
13362 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13363 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13364 esac
13365 ;;
13366 esac
13367
13368 ac_dir=`$as_dirname -- "$ac_file" ||
13369 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13370 X"$ac_file" : 'X\(//\)[^/]' \| \
13371 X"$ac_file" : 'X\(//\)$' \| \
13372 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13373 $as_echo X"$ac_file" |
13374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13375 s//\1/
13376 q
13377 }
13378 /^X\(\/\/\)[^/].*/{
13379 s//\1/
13380 q
13381 }
13382 /^X\(\/\/\)$/{
13383 s//\1/
13384 q
13385 }
13386 /^X\(\/\).*/{
13387 s//\1/
13388 q
13389 }
13390 s/.*/./; q'`
13391 as_dir="$ac_dir"; as_fn_mkdir_p
13392 ac_builddir=.
13393
13394 case "$ac_dir" in
13395 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13396 *)
13397 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13398 # A ".." for each directory in $ac_dir_suffix.
13399 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13400 case $ac_top_builddir_sub in
13401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13403 esac ;;
13404 esac
13405 ac_abs_top_builddir=$ac_pwd
13406 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13407 # for backward compatibility:
13408 ac_top_builddir=$ac_top_build_prefix
13409
13410 case $srcdir in
13411 .) # We are building in place.
13412 ac_srcdir=.
13413 ac_top_srcdir=$ac_top_builddir_sub
13414 ac_abs_top_srcdir=$ac_pwd ;;
13415 [\\/]* | ?:[\\/]* ) # Absolute name.
13416 ac_srcdir=$srcdir$ac_dir_suffix;
13417 ac_top_srcdir=$srcdir
13418 ac_abs_top_srcdir=$srcdir ;;
13419 *) # Relative name.
13420 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13421 ac_top_srcdir=$ac_top_build_prefix$srcdir
13422 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13423 esac
13424 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13425
13426
13427 case $ac_mode in
13428 :F)
13429 #
13430 # CONFIG_FILE
13431 #
13432
13433 case $INSTALL in
13434 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13435 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13436 esac
13437 ac_MKDIR_P=$MKDIR_P
13438 case $MKDIR_P in
13439 [\\/$]* | ?:[\\/]* ) ;;
13440 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13441 esac
13442 _ACEOF
13443
13444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13445 # If the template does not know about datarootdir, expand it.
13446 # FIXME: This hack should be removed a few years after 2.60.
13447 ac_datarootdir_hack=; ac_datarootdir_seen=
13448 ac_sed_dataroot='
13449 /datarootdir/ {
13450 p
13451 q
13452 }
13453 /@datadir@/p
13454 /@docdir@/p
13455 /@infodir@/p
13456 /@localedir@/p
13457 /@mandir@/p'
13458 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13459 *datarootdir*) ac_datarootdir_seen=yes;;
13460 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13462 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13463 _ACEOF
13464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13465 ac_datarootdir_hack='
13466 s&@datadir@&$datadir&g
13467 s&@docdir@&$docdir&g
13468 s&@infodir@&$infodir&g
13469 s&@localedir@&$localedir&g
13470 s&@mandir@&$mandir&g
13471 s&\\\${datarootdir}&$datarootdir&g' ;;
13472 esac
13473 _ACEOF
13474
13475 # Neutralize VPATH when `$srcdir' = `.'.
13476 # Shell code in configure.ac might set extrasub.
13477 # FIXME: do we really want to maintain this feature?
13478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13479 ac_sed_extra="$ac_vpsub
13480 $extrasub
13481 _ACEOF
13482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13483 :t
13484 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13485 s|@configure_input@|$ac_sed_conf_input|;t t
13486 s&@top_builddir@&$ac_top_builddir_sub&;t t
13487 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13488 s&@srcdir@&$ac_srcdir&;t t
13489 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13490 s&@top_srcdir@&$ac_top_srcdir&;t t
13491 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13492 s&@builddir@&$ac_builddir&;t t
13493 s&@abs_builddir@&$ac_abs_builddir&;t t
13494 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13495 s&@INSTALL@&$ac_INSTALL&;t t
13496 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13497 $ac_datarootdir_hack
13498 "
13499 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13500 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13501
13502 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13503 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13504 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13505 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13507 which seems to be undefined. Please make sure it is defined" >&5
13508 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13509 which seems to be undefined. Please make sure it is defined" >&2;}
13510
13511 rm -f "$ac_tmp/stdin"
13512 case $ac_file in
13513 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13514 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13515 esac \
13516 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13517 ;;
13518 :H)
13519 #
13520 # CONFIG_HEADER
13521 #
13522 if test x"$ac_file" != x-; then
13523 {
13524 $as_echo "/* $configure_input */" \
13525 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13526 } >"$ac_tmp/config.h" \
13527 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13528 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13530 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13531 else
13532 rm -f "$ac_file"
13533 mv "$ac_tmp/config.h" "$ac_file" \
13534 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13535 fi
13536 else
13537 $as_echo "/* $configure_input */" \
13538 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13539 || as_fn_error $? "could not create -" "$LINENO" 5
13540 fi
13541 # Compute "$ac_file"'s index in $config_headers.
13542 _am_arg="$ac_file"
13543 _am_stamp_count=1
13544 for _am_header in $config_headers :; do
13545 case $_am_header in
13546 $_am_arg | $_am_arg:* )
13547 break ;;
13548 * )
13549 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13550 esac
13551 done
13552 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13553 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13554 X"$_am_arg" : 'X\(//\)[^/]' \| \
13555 X"$_am_arg" : 'X\(//\)$' \| \
13556 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13557 $as_echo X"$_am_arg" |
13558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13559 s//\1/
13560 q
13561 }
13562 /^X\(\/\/\)[^/].*/{
13563 s//\1/
13564 q
13565 }
13566 /^X\(\/\/\)$/{
13567 s//\1/
13568 q
13569 }
13570 /^X\(\/\).*/{
13571 s//\1/
13572 q
13573 }
13574 s/.*/./; q'`/stamp-h$_am_stamp_count
13575 ;;
13576
13577 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13578 $as_echo "$as_me: executing $ac_file commands" >&6;}
13579 ;;
13580 esac
13581
13582
13583 case $ac_file$ac_mode in
13584 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13585 # Older Autoconf quotes --file arguments for eval, but not when files
13586 # are listed without --file. Let's play safe and only enable the eval
13587 # if we detect the quoting.
13588 case $CONFIG_FILES in
13589 *\'*) eval set x "$CONFIG_FILES" ;;
13590 *) set x $CONFIG_FILES ;;
13591 esac
13592 shift
13593 for mf
13594 do
13595 # Strip MF so we end up with the name of the file.
13596 mf=`echo "$mf" | sed -e 's/:.*$//'`
13597 # Check whether this is an Automake generated Makefile or not.
13598 # We used to match only the files named 'Makefile.in', but
13599 # some people rename them; so instead we look at the file content.
13600 # Grep'ing the first line is not enough: some people post-process
13601 # each Makefile.in and add a new line on top of each file to say so.
13602 # Grep'ing the whole file is not good either: AIX grep has a line
13603 # limit of 2048, but all sed's we know have understand at least 4000.
13604 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13605 dirpart=`$as_dirname -- "$mf" ||
13606 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13607 X"$mf" : 'X\(//\)[^/]' \| \
13608 X"$mf" : 'X\(//\)$' \| \
13609 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13610 $as_echo X"$mf" |
13611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13612 s//\1/
13613 q
13614 }
13615 /^X\(\/\/\)[^/].*/{
13616 s//\1/
13617 q
13618 }
13619 /^X\(\/\/\)$/{
13620 s//\1/
13621 q
13622 }
13623 /^X\(\/\).*/{
13624 s//\1/
13625 q
13626 }
13627 s/.*/./; q'`
13628 else
13629 continue
13630 fi
13631 # Extract the definition of DEPDIR, am__include, and am__quote
13632 # from the Makefile without running 'make'.
13633 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13634 test -z "$DEPDIR" && continue
13635 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13636 test -z "$am__include" && continue
13637 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13638 # Find all dependency output files, they are included files with
13639 # $(DEPDIR) in their names. We invoke sed twice because it is the
13640 # simplest approach to changing $(DEPDIR) to its actual value in the
13641 # expansion.
13642 for file in `sed -n "
13643 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13644 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13645 # Make sure the directory exists.
13646 test -f "$dirpart/$file" && continue
13647 fdir=`$as_dirname -- "$file" ||
13648 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13649 X"$file" : 'X\(//\)[^/]' \| \
13650 X"$file" : 'X\(//\)$' \| \
13651 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13652 $as_echo X"$file" |
13653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13654 s//\1/
13655 q
13656 }
13657 /^X\(\/\/\)[^/].*/{
13658 s//\1/
13659 q
13660 }
13661 /^X\(\/\/\)$/{
13662 s//\1/
13663 q
13664 }
13665 /^X\(\/\).*/{
13666 s//\1/
13667 q
13668 }
13669 s/.*/./; q'`
13670 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13671 # echo "creating $dirpart/$file"
13672 echo '# dummy' > "$dirpart/$file"
13673 done
13674 done
13675 }
13676 ;;
13677
13678 esac
13679 done # for ac_tag
13680
13681
13682 as_fn_exit 0
13683 _ACEOF
13684 ac_clean_files=$ac_clean_files_save
13685
13686 test $ac_write_fail = 0 ||
13687 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13688
13689
13690 # configure is writing to config.log, and then calls config.status.
13691 # config.status does its own redirection, appending to config.log.
13692 # Unfortunately, on DOS this fails, as config.log is still kept open
13693 # by configure, so config.status won't be able to write to it; its
13694 # output is simply discarded. So we exec the FD to /dev/null,
13695 # effectively closing config.log, so it can be properly (re)opened and
13696 # appended to by config.status. When coming back to configure, we
13697 # need to make the FD available again.
13698 if test "$no_create" != yes; then
13699 ac_cs_success=:
13700 ac_config_status_args=
13701 test "$silent" = yes &&
13702 ac_config_status_args="$ac_config_status_args --quiet"
13703 exec 5>/dev/null
13704 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13705 exec 5>>config.log
13706 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13707 # would make configure fail if this is the last instruction.
13708 $ac_cs_success || as_fn_exit 1
13709 fi
13710 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13712 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13713 fi
13714
13715