configure revision 1.1.1.8.2.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xtrans 1.3.5.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560 as_awk_strverscmp='
561 # Use only awk features that work with 7th edition Unix awk (1978).
562 # My, what an old awk you have, Mr. Solaris!
563 END {
564 while (length(v1) && length(v2)) {
565 # Set d1 to be the next thing to compare from v1, and likewise for d2.
566 # Normally this is a single character, but if v1 and v2 contain digits,
567 # compare them as integers and fractions as strverscmp does.
568 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
569 # Split v1 and v2 into their leading digit string components d1 and d2,
570 # and advance v1 and v2 past the leading digit strings.
571 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
572 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
573 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
574 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
575 if (d1 ~ /^0/) {
576 if (d2 ~ /^0/) {
577 # Compare two fractions.
578 while (d1 ~ /^0/ && d2 ~ /^0/) {
579 d1 = substr(d1, 2); len1--
580 d2 = substr(d2, 2); len2--
581 }
582 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
583 # The two components differ in length, and the common prefix
584 # contains only leading zeros. Consider the longer to be less.
585 d1 = -len1
586 d2 = -len2
587 } else {
588 # Otherwise, compare as strings.
589 d1 = "x" d1
590 d2 = "x" d2
591 }
592 } else {
593 # A fraction is less than an integer.
594 exit 1
595 }
596 } else {
597 if (d2 ~ /^0/) {
598 # An integer is greater than a fraction.
599 exit 2
600 } else {
601 # Compare two integers.
602 d1 += 0
603 d2 += 0
604 }
605 }
606 } else {
607 # The normal case, without worrying about digits.
608 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
609 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
610 }
611 if (d1 < d2) exit 1
612 if (d1 > d2) exit 2
613 }
614 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
615 # which mishandles some comparisons of empty strings to integers.
616 if (length(v2)) exit 1
617 if (length(v1)) exit 2
618 }
619 '
620
621 test -n "$DJDIR" || exec 7<&0 </dev/null
622 exec 6>&1
623
624 # Name of the host.
625 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
626 # so uname gets run too.
627 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
628
629 #
630 # Initializations.
631 #
632 ac_default_prefix=/usr/local
633 ac_clean_files=
634 ac_config_libobj_dir=.
635 LIBOBJS=
636 cross_compiling=no
637 subdirs=
638 MFLAGS=
639 MAKEFLAGS=
640
641 # Identity of this package.
642 PACKAGE_NAME='xtrans'
643 PACKAGE_TARNAME='xtrans'
644 PACKAGE_VERSION='1.3.5'
645 PACKAGE_STRING='xtrans 1.3.5'
646 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
647 PACKAGE_URL=''
648
649 ac_unique_file="Makefile.am"
650 # Factoring default headers for most tests.
651 ac_includes_default="\
652 #include <stdio.h>
653 #ifdef HAVE_SYS_TYPES_H
654 # include <sys/types.h>
655 #endif
656 #ifdef HAVE_SYS_STAT_H
657 # include <sys/stat.h>
658 #endif
659 #ifdef STDC_HEADERS
660 # include <stdlib.h>
661 # include <stddef.h>
662 #else
663 # ifdef HAVE_STDLIB_H
664 # include <stdlib.h>
665 # endif
666 #endif
667 #ifdef HAVE_STRING_H
668 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
669 # include <memory.h>
670 # endif
671 # include <string.h>
672 #endif
673 #ifdef HAVE_STRINGS_H
674 # include <strings.h>
675 #endif
676 #ifdef HAVE_INTTYPES_H
677 # include <inttypes.h>
678 #endif
679 #ifdef HAVE_STDINT_H
680 # include <stdint.h>
681 #endif
682 #ifdef HAVE_UNISTD_H
683 # include <unistd.h>
684 #endif"
685
686 ac_subst_vars='am__EXEEXT_FALSE
687 am__EXEEXT_TRUE
688 LTLIBOBJS
689 LIBOBJS
690 sticky_bit_define
691 fchown_define
692 HAVE_STYLESHEETS_FALSE
693 HAVE_STYLESHEETS_TRUE
694 XSL_STYLESHEET
695 STYLESHEET_SRCDIR
696 XORG_SGML_PATH
697 HAVE_XSLTPROC_FALSE
698 HAVE_XSLTPROC_TRUE
699 XSLTPROC
700 HAVE_FOP_FALSE
701 HAVE_FOP_TRUE
702 FOP
703 HAVE_XMLTO_FALSE
704 HAVE_XMLTO_TRUE
705 HAVE_XMLTO_TEXT_FALSE
706 HAVE_XMLTO_TEXT_TRUE
707 XMLTO
708 ENABLE_DOCS_FALSE
709 ENABLE_DOCS_TRUE
710 MAN_SUBSTS
711 XORG_MAN_PAGE
712 ADMIN_MAN_DIR
713 DRIVER_MAN_DIR
714 MISC_MAN_DIR
715 FILE_MAN_DIR
716 LIB_MAN_DIR
717 APP_MAN_DIR
718 ADMIN_MAN_SUFFIX
719 DRIVER_MAN_SUFFIX
720 MISC_MAN_SUFFIX
721 FILE_MAN_SUFFIX
722 LIB_MAN_SUFFIX
723 APP_MAN_SUFFIX
724 SED
725 host_os
726 host_vendor
727 host_cpu
728 host
729 build_os
730 build_vendor
731 build_cpu
732 build
733 INSTALL_CMD
734 PKG_CONFIG_LIBDIR
735 PKG_CONFIG_PATH
736 PKG_CONFIG
737 CHANGELOG_CMD
738 STRICT_CFLAGS
739 CWARNFLAGS
740 BASE_CFLAGS
741 EGREP
742 GREP
743 CPP
744 am__fastdepCC_FALSE
745 am__fastdepCC_TRUE
746 CCDEPMODE
747 am__nodep
748 AMDEPBACKSLASH
749 AMDEP_FALSE
750 AMDEP_TRUE
751 am__quote
752 am__include
753 DEPDIR
754 OBJEXT
755 EXEEXT
756 ac_ct_CC
757 CPPFLAGS
758 LDFLAGS
759 CFLAGS
760 CC
761 AM_BACKSLASH
762 AM_DEFAULT_VERBOSITY
763 AM_DEFAULT_V
764 AM_V
765 am__untar
766 am__tar
767 AMTAR
768 am__leading_dot
769 SET_MAKE
770 AWK
771 mkdir_p
772 MKDIR_P
773 INSTALL_STRIP_PROGRAM
774 STRIP
775 install_sh
776 MAKEINFO
777 AUTOHEADER
778 AUTOMAKE
779 AUTOCONF
780 ACLOCAL
781 VERSION
782 PACKAGE
783 CYGPATH_W
784 am__isrc
785 INSTALL_DATA
786 INSTALL_SCRIPT
787 INSTALL_PROGRAM
788 target_alias
789 host_alias
790 build_alias
791 LIBS
792 ECHO_T
793 ECHO_N
794 ECHO_C
795 DEFS
796 mandir
797 localedir
798 libdir
799 psdir
800 pdfdir
801 dvidir
802 htmldir
803 infodir
804 docdir
805 oldincludedir
806 includedir
807 localstatedir
808 sharedstatedir
809 sysconfdir
810 datadir
811 datarootdir
812 libexecdir
813 sbindir
814 bindir
815 program_transform_name
816 prefix
817 exec_prefix
818 PACKAGE_URL
819 PACKAGE_BUGREPORT
820 PACKAGE_STRING
821 PACKAGE_VERSION
822 PACKAGE_TARNAME
823 PACKAGE_NAME
824 PATH_SEPARATOR
825 SHELL'
826 ac_subst_files=''
827 ac_user_opts='
828 enable_option_checking
829 enable_silent_rules
830 enable_dependency_tracking
831 enable_selective_werror
832 enable_strict_compilation
833 enable_docs
834 with_xmlto
835 with_fop
836 with_xsltproc
837 '
838 ac_precious_vars='build_alias
839 host_alias
840 target_alias
841 CC
842 CFLAGS
843 LDFLAGS
844 LIBS
845 CPPFLAGS
846 CPP
847 PKG_CONFIG
848 PKG_CONFIG_PATH
849 PKG_CONFIG_LIBDIR
850 XMLTO
851 FOP
852 XSLTPROC'
853
854
855 # Initialize some variables set by options.
856 ac_init_help=
857 ac_init_version=false
858 ac_unrecognized_opts=
859 ac_unrecognized_sep=
860 # The variables have the same names as the options, with
861 # dashes changed to underlines.
862 cache_file=/dev/null
863 exec_prefix=NONE
864 no_create=
865 no_recursion=
866 prefix=NONE
867 program_prefix=NONE
868 program_suffix=NONE
869 program_transform_name=s,x,x,
870 silent=
871 site=
872 srcdir=
873 verbose=
874 x_includes=NONE
875 x_libraries=NONE
876
877 # Installation directory options.
878 # These are left unexpanded so users can "make install exec_prefix=/foo"
879 # and all the variables that are supposed to be based on exec_prefix
880 # by default will actually change.
881 # Use braces instead of parens because sh, perl, etc. also accept them.
882 # (The list follows the same order as the GNU Coding Standards.)
883 bindir='${exec_prefix}/bin'
884 sbindir='${exec_prefix}/sbin'
885 libexecdir='${exec_prefix}/libexec'
886 datarootdir='${prefix}/share'
887 datadir='${datarootdir}'
888 sysconfdir='${prefix}/etc'
889 sharedstatedir='${prefix}/com'
890 localstatedir='${prefix}/var'
891 includedir='${prefix}/include'
892 oldincludedir='/usr/include'
893 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
894 infodir='${datarootdir}/info'
895 htmldir='${docdir}'
896 dvidir='${docdir}'
897 pdfdir='${docdir}'
898 psdir='${docdir}'
899 libdir='${exec_prefix}/lib'
900 localedir='${datarootdir}/locale'
901 mandir='${datarootdir}/man'
902
903 ac_prev=
904 ac_dashdash=
905 for ac_option
906 do
907 # If the previous option needs an argument, assign it.
908 if test -n "$ac_prev"; then
909 eval $ac_prev=\$ac_option
910 ac_prev=
911 continue
912 fi
913
914 case $ac_option in
915 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916 *=) ac_optarg= ;;
917 *) ac_optarg=yes ;;
918 esac
919
920 # Accept the important Cygnus configure options, so we can diagnose typos.
921
922 case $ac_dashdash$ac_option in
923 --)
924 ac_dashdash=yes ;;
925
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 ac_prev=bindir ;;
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 bindir=$ac_optarg ;;
930
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
935
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
942
943 --config-cache | -C)
944 cache_file=config.cache ;;
945
946 -datadir | --datadir | --datadi | --datad)
947 ac_prev=datadir ;;
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
950
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
957
958 -disable-* | --disable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
966 *"
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=no ;;
973
974 -docdir | --docdir | --docdi | --doc | --do)
975 ac_prev=docdir ;;
976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977 docdir=$ac_optarg ;;
978
979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 ac_prev=dvidir ;;
981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982 dvidir=$ac_optarg ;;
983
984 -enable-* | --enable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error $? "invalid feature name: $ac_useropt"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
992 *"
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=\$ac_optarg ;;
999
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1008
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1011 with_gas=yes ;;
1012
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1019
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1024
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 ac_prev=htmldir ;;
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 | --ht=*)
1029 htmldir=$ac_optarg ;;
1030
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1037
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 ac_prev=infodir ;;
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1042
1043 -libdir | --libdir | --libdi | --libd)
1044 ac_prev=libdir ;;
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1047
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1054
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1059
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1066
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 ac_prev=mandir ;;
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1071
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1074 with_fp=no ;;
1075
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1078 no_create=yes ;;
1079
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 no_recursion=yes ;;
1083
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1092
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 ac_prev=prefix ;;
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1097
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1104
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1111
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1128
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 ac_prev=pdfdir ;;
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1133
1134 -psdir | --psdir | --psdi | --psd | --ps)
1135 ac_prev=psdir ;;
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 psdir=$ac_optarg ;;
1138
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1141 silent=yes ;;
1142
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 ac_prev=sbindir ;;
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 | --sbi=* | --sb=*)
1147 sbindir=$ac_optarg ;;
1148
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1152 | --sha | --sh)
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 | --sha=* | --sh=*)
1158 sharedstatedir=$ac_optarg ;;
1159
1160 -site | --site | --sit)
1161 ac_prev=site ;;
1162 -site=* | --site=* | --sit=*)
1163 site=$ac_optarg ;;
1164
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 ac_prev=srcdir ;;
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1169
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1176
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1181
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 verbose=yes ;;
1184
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1187
1188 -with-* | --with-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=\$ac_optarg ;;
1203
1204 -without-* | --without-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error $? "invalid package name: $ac_useropt"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1212 *"
1213 "with_$ac_useropt"
1214 "*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=no ;;
1219
1220 --x)
1221 # Obsolete; use --with-x.
1222 with_x=yes ;;
1223
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225 | --x-incl | --x-inc | --x-in | --x-i)
1226 ac_prev=x_includes ;;
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229 x_includes=$ac_optarg ;;
1230
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233 ac_prev=x_libraries ;;
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236 x_libraries=$ac_optarg ;;
1237
1238 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1239 Try \`$0 --help' for more information"
1240 ;;
1241
1242 *=*)
1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
1245 case $ac_envvar in #(
1246 '' | [0-9]* | *[!_$as_cr_alnum]* )
1247 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1248 esac
1249 eval $ac_envvar=\$ac_optarg
1250 export $ac_envvar ;;
1251
1252 *)
1253 # FIXME: should be removed in autoconf 3.0.
1254 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1257 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1258 ;;
1259
1260 esac
1261 done
1262
1263 if test -n "$ac_prev"; then
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265 as_fn_error $? "missing argument to $ac_option"
1266 fi
1267
1268 if test -n "$ac_unrecognized_opts"; then
1269 case $enable_option_checking in
1270 no) ;;
1271 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1272 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 esac
1274 fi
1275
1276 # Check all directory arguments for consistency.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1281 do
1282 eval ac_val=\$$ac_var
1283 # Remove trailing slashes.
1284 case $ac_val in
1285 */ )
1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\$ac_val;;
1288 esac
1289 # Be sure to have absolute directory names.
1290 case $ac_val in
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 esac
1294 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1295 done
1296
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1300 build=$build_alias
1301 host=$host_alias
1302 target=$target_alias
1303
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 elif test "x$build_alias" != "x$host_alias"; then
1309 cross_compiling=yes
1310 fi
1311 fi
1312
1313 ac_tool_prefix=
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316 test "$silent" = yes && exec 6>/dev/null
1317
1318
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322 as_fn_error $? "working directory cannot be determined"
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 as_fn_error $? "pwd does not report name of working directory"
1325
1326
1327 # Find the source files, if location was not specified.
1328 if test -z "$srcdir"; then
1329 ac_srcdir_defaulted=yes
1330 # Try the directory containing this script, then the parent directory.
1331 ac_confdir=`$as_dirname -- "$as_myself" ||
1332 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333 X"$as_myself" : 'X\(//\)[^/]' \| \
1334 X"$as_myself" : 'X\(//\)$' \| \
1335 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1336 $as_echo X"$as_myself" |
1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\/\)[^/].*/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)$/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\).*/{
1350 s//\1/
1351 q
1352 }
1353 s/.*/./; q'`
1354 srcdir=$ac_confdir
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 srcdir=..
1357 fi
1358 else
1359 ac_srcdir_defaulted=no
1360 fi
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1364 fi
1365 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 ac_abs_confdir=`(
1367 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1368 pwd)`
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 srcdir=.
1372 fi
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1376 case $srcdir in
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 esac
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1385
1386 #
1387 # Report the --help message.
1388 #
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393 \`configure' configures xtrans 1.3.5 to adapt to many kinds of systems.
1394
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1399
1400 Defaults for the options are specified in brackets.
1401
1402 Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking ...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 [PREFIX]
1418
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1423
1424 For better control, use the options below.
1425
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/xtrans]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1446 _ACEOF
1447
1448 cat <<\_ACEOF
1449
1450 Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454
1455 System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 _ACEOF
1459 fi
1460
1461 if test -n "$ac_init_help"; then
1462 case $ac_init_help in
1463 short | recursive ) echo "Configuration of xtrans 1.3.5:";;
1464 esac
1465 cat <<\_ACEOF
1466
1467 Optional Features:
1468 --disable-option-checking ignore unrecognized --enable/--with options
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --enable-silent-rules less verbose build output (undo: "make V=1")
1472 --disable-silent-rules verbose build output (undo: "make V=0")
1473 --enable-dependency-tracking
1474 do not reject slow dependency extractors
1475 --disable-dependency-tracking
1476 speeds up one-time build
1477 --disable-selective-werror
1478 Turn off selective compiler errors. (default:
1479 enabled)
1480 --enable-strict-compilation
1481 Enable all warnings from compiler and make them
1482 errors (default: disabled)
1483 --enable-docs Enable building the documentation (default: yes)
1484
1485 Optional Packages:
1486 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1487 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1488 --with-xmlto Use xmlto to regenerate documentation (default:
1489 auto)
1490 --with-fop Use fop to regenerate documentation (default: auto)
1491 --with-xsltproc Use xsltproc for the transformation of XML documents
1492 (default: auto)
1493
1494 Some influential environment variables:
1495 CC C compiler command
1496 CFLAGS C compiler flags
1497 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1498 nonstandard directory <lib dir>
1499 LIBS libraries to pass to the linker, e.g. -l<library>
1500 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1501 you have headers in a nonstandard directory <include dir>
1502 CPP C preprocessor
1503 PKG_CONFIG path to pkg-config utility
1504 PKG_CONFIG_PATH
1505 directories to add to pkg-config's search path
1506 PKG_CONFIG_LIBDIR
1507 path overriding pkg-config's built-in search path
1508 XMLTO Path to xmlto command
1509 FOP Path to fop command
1510 XSLTPROC Path to xsltproc command
1511
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1514
1515 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1516 _ACEOF
1517 ac_status=$?
1518 fi
1519
1520 if test "$ac_init_help" = "recursive"; then
1521 # If there are subdirs, report their specific --help.
1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523 test -d "$ac_dir" ||
1524 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1525 continue
1526 ac_builddir=.
1527
1528 case "$ac_dir" in
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *)
1531 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1532 # A ".." for each directory in $ac_dir_suffix.
1533 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1534 case $ac_top_builddir_sub in
1535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537 esac ;;
1538 esac
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1543
1544 case $srcdir in
1545 .) # We are building in place.
1546 ac_srcdir=.
1547 ac_top_srcdir=$ac_top_builddir_sub
1548 ac_abs_top_srcdir=$ac_pwd ;;
1549 [\\/]* | ?:[\\/]* ) # Absolute name.
1550 ac_srcdir=$srcdir$ac_dir_suffix;
1551 ac_top_srcdir=$srcdir
1552 ac_abs_top_srcdir=$srcdir ;;
1553 *) # Relative name.
1554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555 ac_top_srcdir=$ac_top_build_prefix$srcdir
1556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557 esac
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559
1560 cd "$ac_dir" || { ac_status=$?; continue; }
1561 # Check for guested configure.
1562 if test -f "$ac_srcdir/configure.gnu"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565 elif test -f "$ac_srcdir/configure"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure" --help=recursive
1568 else
1569 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570 fi || ac_status=$?
1571 cd "$ac_pwd" || { ac_status=$?; break; }
1572 done
1573 fi
1574
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1577 cat <<\_ACEOF
1578 xtrans configure 1.3.5
1579 generated by GNU Autoconf 2.69
1580
1581 Copyright (C) 2012 Free Software Foundation, Inc.
1582 This configure script is free software; the Free Software Foundation
1583 gives unlimited permission to copy, distribute and modify it.
1584 _ACEOF
1585 exit
1586 fi
1587
1588 ## ------------------------ ##
1589 ## Autoconf initialization. ##
1590 ## ------------------------ ##
1591
1592 # ac_fn_c_try_compile LINENO
1593 # --------------------------
1594 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_compile ()
1596 {
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext
1599 if { { ac_try="$ac_compile"
1600 case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_compile") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1612 fi
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest.$ac_objext; then :
1618 ac_retval=0
1619 else
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1622
1623 ac_retval=1
1624 fi
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
1627
1628 } # ac_fn_c_try_compile
1629
1630 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1631 # ---------------------------------------------
1632 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1633 # accordingly.
1634 ac_fn_c_check_decl ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 as_decl_name=`echo $2|sed 's/ *(.*//'`
1638 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1640 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1641 if eval \${$3+:} false; then :
1642 $as_echo_n "(cached) " >&6
1643 else
1644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h. */
1646 $4
1647 int
1648 main ()
1649 {
1650 #ifndef $as_decl_name
1651 #ifdef __cplusplus
1652 (void) $as_decl_use;
1653 #else
1654 (void) $as_decl_name;
1655 #endif
1656 #endif
1657
1658 ;
1659 return 0;
1660 }
1661 _ACEOF
1662 if ac_fn_c_try_compile "$LINENO"; then :
1663 eval "$3=yes"
1664 else
1665 eval "$3=no"
1666 fi
1667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668 fi
1669 eval ac_res=\$$3
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671 $as_echo "$ac_res" >&6; }
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673
1674 } # ac_fn_c_check_decl
1675
1676 # ac_fn_c_try_cpp LINENO
1677 # ----------------------
1678 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_cpp ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_cpp conftest.$ac_ext"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1695 fi
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } > conftest.i && {
1698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 }; then :
1701 ac_retval=0
1702 else
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 ac_retval=1
1707 fi
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1710
1711 } # ac_fn_c_try_cpp
1712
1713 # ac_fn_c_try_run LINENO
1714 # ----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1716 # that executables *can* be run.
1717 ac_fn_c_try_run ()
1718 {
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 if { { ac_try="$ac_link"
1721 case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_link") 2>&5
1728 ac_status=$?
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1731 { { case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_try") 2>&5
1738 ac_status=$?
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; }; }; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: program exited with status $ac_status" >&5
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747 ac_retval=$ac_status
1748 fi
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1752
1753 } # ac_fn_c_try_run
1754
1755 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1756 # -------------------------------------------------------
1757 # Tests whether HEADER exists and can be compiled using the include files in
1758 # INCLUDES, setting the cache variable VAR accordingly.
1759 ac_fn_c_check_header_compile ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1766 else
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1769 $4
1770 #include <$2>
1771 _ACEOF
1772 if ac_fn_c_try_compile "$LINENO"; then :
1773 eval "$3=yes"
1774 else
1775 eval "$3=no"
1776 fi
1777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778 fi
1779 eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784 } # ac_fn_c_check_header_compile
1785
1786 # ac_fn_c_try_link LINENO
1787 # -----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_c_try_link ()
1790 {
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext conftest$ac_exeext
1793 if { { ac_try="$ac_link"
1794 case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1806 fi
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest$ac_exeext && {
1812 test "$cross_compiling" = yes ||
1813 test -x conftest$ac_exeext
1814 }; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1819
1820 ac_retval=1
1821 fi
1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824 # interfere with the next link command; also delete a directory that is
1825 # left behind by Apple's compiler. We do this before executing the actions.
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status $ac_retval
1829
1830 } # ac_fn_c_try_link
1831
1832 # ac_fn_c_check_func LINENO FUNC VAR
1833 # ----------------------------------
1834 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1835 ac_fn_c_check_func ()
1836 {
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if eval \${$3+:} false; then :
1841 $as_echo_n "(cached) " >&6
1842 else
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1845 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1847 #define $2 innocuous_$2
1848
1849 /* System header to define __stub macros and hopefully few prototypes,
1850 which can conflict with char $2 (); below.
1851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1852 <limits.h> exists even on freestanding compilers. */
1853
1854 #ifdef __STDC__
1855 # include <limits.h>
1856 #else
1857 # include <assert.h>
1858 #endif
1859
1860 #undef $2
1861
1862 /* Override any GCC internal prototype to avoid an error.
1863 Use char because int might match the return type of a GCC
1864 builtin and then its argument prototype would still apply. */
1865 #ifdef __cplusplus
1866 extern "C"
1867 #endif
1868 char $2 ();
1869 /* The GNU C library defines this for functions which it implements
1870 to always fail with ENOSYS. Some functions are actually named
1871 something starting with __ and the normal name is an alias. */
1872 #if defined __stub_$2 || defined __stub___$2
1873 choke me
1874 #endif
1875
1876 int
1877 main ()
1878 {
1879 return $2 ();
1880 ;
1881 return 0;
1882 }
1883 _ACEOF
1884 if ac_fn_c_try_link "$LINENO"; then :
1885 eval "$3=yes"
1886 else
1887 eval "$3=no"
1888 fi
1889 rm -f core conftest.err conftest.$ac_objext \
1890 conftest$ac_exeext conftest.$ac_ext
1891 fi
1892 eval ac_res=\$$3
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896
1897 } # ac_fn_c_check_func
1898 cat >config.log <<_ACEOF
1899 This file contains any messages produced by compilers while
1900 running configure, to aid debugging if configure makes a mistake.
1901
1902 It was created by xtrans $as_me 1.3.5, which was
1903 generated by GNU Autoconf 2.69. Invocation command line was
1904
1905 $ $0 $@
1906
1907 _ACEOF
1908 exec 5>>config.log
1909 {
1910 cat <<_ASUNAME
1911 ## --------- ##
1912 ## Platform. ##
1913 ## --------- ##
1914
1915 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1916 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1917 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1918 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1919 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1920
1921 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1922 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1923
1924 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1925 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1926 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1927 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1928 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1929 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1930 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1931
1932 _ASUNAME
1933
1934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935 for as_dir in $PATH
1936 do
1937 IFS=$as_save_IFS
1938 test -z "$as_dir" && as_dir=.
1939 $as_echo "PATH: $as_dir"
1940 done
1941 IFS=$as_save_IFS
1942
1943 } >&5
1944
1945 cat >&5 <<_ACEOF
1946
1947
1948 ## ----------- ##
1949 ## Core tests. ##
1950 ## ----------- ##
1951
1952 _ACEOF
1953
1954
1955 # Keep a trace of the command line.
1956 # Strip out --no-create and --no-recursion so they do not pile up.
1957 # Strip out --silent because we don't want to record it for future runs.
1958 # Also quote any args containing shell meta-characters.
1959 # Make two passes to allow for proper duplicate-argument suppression.
1960 ac_configure_args=
1961 ac_configure_args0=
1962 ac_configure_args1=
1963 ac_must_keep_next=false
1964 for ac_pass in 1 2
1965 do
1966 for ac_arg
1967 do
1968 case $ac_arg in
1969 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1970 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1971 | -silent | --silent | --silen | --sile | --sil)
1972 continue ;;
1973 *\'*)
1974 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1975 esac
1976 case $ac_pass in
1977 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1978 2)
1979 as_fn_append ac_configure_args1 " '$ac_arg'"
1980 if test $ac_must_keep_next = true; then
1981 ac_must_keep_next=false # Got value, back to normal.
1982 else
1983 case $ac_arg in
1984 *=* | --config-cache | -C | -disable-* | --disable-* \
1985 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1986 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1987 | -with-* | --with-* | -without-* | --without-* | --x)
1988 case "$ac_configure_args0 " in
1989 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1990 esac
1991 ;;
1992 -* ) ac_must_keep_next=true ;;
1993 esac
1994 fi
1995 as_fn_append ac_configure_args " '$ac_arg'"
1996 ;;
1997 esac
1998 done
1999 done
2000 { ac_configure_args0=; unset ac_configure_args0;}
2001 { ac_configure_args1=; unset ac_configure_args1;}
2002
2003 # When interrupted or exit'd, cleanup temporary files, and complete
2004 # config.log. We remove comments because anyway the quotes in there
2005 # would cause problems or look ugly.
2006 # WARNING: Use '\'' to represent an apostrophe within the trap.
2007 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2008 trap 'exit_status=$?
2009 # Save into config.log some information that might help in debugging.
2010 {
2011 echo
2012
2013 $as_echo "## ---------------- ##
2014 ## Cache variables. ##
2015 ## ---------------- ##"
2016 echo
2017 # The following way of writing the cache mishandles newlines in values,
2018 (
2019 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2020 eval ac_val=\$$ac_var
2021 case $ac_val in #(
2022 *${as_nl}*)
2023 case $ac_var in #(
2024 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2025 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2026 esac
2027 case $ac_var in #(
2028 _ | IFS | as_nl) ;; #(
2029 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2030 *) { eval $ac_var=; unset $ac_var;} ;;
2031 esac ;;
2032 esac
2033 done
2034 (set) 2>&1 |
2035 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2036 *${as_nl}ac_space=\ *)
2037 sed -n \
2038 "s/'\''/'\''\\\\'\'''\''/g;
2039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2040 ;; #(
2041 *)
2042 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2043 ;;
2044 esac |
2045 sort
2046 )
2047 echo
2048
2049 $as_echo "## ----------------- ##
2050 ## Output variables. ##
2051 ## ----------------- ##"
2052 echo
2053 for ac_var in $ac_subst_vars
2054 do
2055 eval ac_val=\$$ac_var
2056 case $ac_val in
2057 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2058 esac
2059 $as_echo "$ac_var='\''$ac_val'\''"
2060 done | sort
2061 echo
2062
2063 if test -n "$ac_subst_files"; then
2064 $as_echo "## ------------------- ##
2065 ## File substitutions. ##
2066 ## ------------------- ##"
2067 echo
2068 for ac_var in $ac_subst_files
2069 do
2070 eval ac_val=\$$ac_var
2071 case $ac_val in
2072 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2073 esac
2074 $as_echo "$ac_var='\''$ac_val'\''"
2075 done | sort
2076 echo
2077 fi
2078
2079 if test -s confdefs.h; then
2080 $as_echo "## ----------- ##
2081 ## confdefs.h. ##
2082 ## ----------- ##"
2083 echo
2084 cat confdefs.h
2085 echo
2086 fi
2087 test "$ac_signal" != 0 &&
2088 $as_echo "$as_me: caught signal $ac_signal"
2089 $as_echo "$as_me: exit $exit_status"
2090 } >&5
2091 rm -f core *.core core.conftest.* &&
2092 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2093 exit $exit_status
2094 ' 0
2095 for ac_signal in 1 2 13 15; do
2096 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2097 done
2098 ac_signal=0
2099
2100 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2101 rm -f -r conftest* confdefs.h
2102
2103 $as_echo "/* confdefs.h */" > confdefs.h
2104
2105 # Predefined preprocessor variables.
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_NAME "$PACKAGE_NAME"
2109 _ACEOF
2110
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2113 _ACEOF
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2117 _ACEOF
2118
2119 cat >>confdefs.h <<_ACEOF
2120 #define PACKAGE_STRING "$PACKAGE_STRING"
2121 _ACEOF
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2125 _ACEOF
2126
2127 cat >>confdefs.h <<_ACEOF
2128 #define PACKAGE_URL "$PACKAGE_URL"
2129 _ACEOF
2130
2131
2132 # Let the site file select an alternate cache file if it wants to.
2133 # Prefer an explicitly selected file to automatically selected ones.
2134 ac_site_file1=NONE
2135 ac_site_file2=NONE
2136 if test -n "$CONFIG_SITE"; then
2137 # We do not want a PATH search for config.site.
2138 case $CONFIG_SITE in #((
2139 -*) ac_site_file1=./$CONFIG_SITE;;
2140 */*) ac_site_file1=$CONFIG_SITE;;
2141 *) ac_site_file1=./$CONFIG_SITE;;
2142 esac
2143 elif test "x$prefix" != xNONE; then
2144 ac_site_file1=$prefix/share/config.site
2145 ac_site_file2=$prefix/etc/config.site
2146 else
2147 ac_site_file1=$ac_default_prefix/share/config.site
2148 ac_site_file2=$ac_default_prefix/etc/config.site
2149 fi
2150 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2151 do
2152 test "x$ac_site_file" = xNONE && continue
2153 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2155 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2156 sed 's/^/| /' "$ac_site_file" >&5
2157 . "$ac_site_file" \
2158 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2160 as_fn_error $? "failed to load site script $ac_site_file
2161 See \`config.log' for more details" "$LINENO" 5; }
2162 fi
2163 done
2164
2165 if test -r "$cache_file"; then
2166 # Some versions of bash will fail to source /dev/null (special files
2167 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2168 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2170 $as_echo "$as_me: loading cache $cache_file" >&6;}
2171 case $cache_file in
2172 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2173 *) . "./$cache_file";;
2174 esac
2175 fi
2176 else
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2178 $as_echo "$as_me: creating cache $cache_file" >&6;}
2179 >$cache_file
2180 fi
2181
2182 # Check that the precious variables saved in the cache have kept the same
2183 # value.
2184 ac_cache_corrupted=false
2185 for ac_var in $ac_precious_vars; do
2186 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2187 eval ac_new_set=\$ac_env_${ac_var}_set
2188 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2189 eval ac_new_val=\$ac_env_${ac_var}_value
2190 case $ac_old_set,$ac_new_set in
2191 set,)
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2193 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2194 ac_cache_corrupted=: ;;
2195 ,set)
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2197 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2198 ac_cache_corrupted=: ;;
2199 ,);;
2200 *)
2201 if test "x$ac_old_val" != "x$ac_new_val"; then
2202 # differences in whitespace do not lead to failure.
2203 ac_old_val_w=`echo x $ac_old_val`
2204 ac_new_val_w=`echo x $ac_new_val`
2205 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2207 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2208 ac_cache_corrupted=:
2209 else
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2211 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2212 eval $ac_var=\$ac_old_val
2213 fi
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2215 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2217 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2218 fi;;
2219 esac
2220 # Pass precious variables to config.status.
2221 if test "$ac_new_set" = set; then
2222 case $ac_new_val in
2223 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2224 *) ac_arg=$ac_var=$ac_new_val ;;
2225 esac
2226 case " $ac_configure_args " in
2227 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2228 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2229 esac
2230 fi
2231 done
2232 if $ac_cache_corrupted; then
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2236 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2237 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2238 fi
2239 ## -------------------- ##
2240 ## Main body of script. ##
2241 ## -------------------- ##
2242
2243 ac_ext=c
2244 ac_cpp='$CPP $CPPFLAGS'
2245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2248
2249
2250
2251
2252 # Initialize Automake
2253 am__api_version='1.14'
2254
2255 ac_aux_dir=
2256 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2257 if test -f "$ac_dir/install-sh"; then
2258 ac_aux_dir=$ac_dir
2259 ac_install_sh="$ac_aux_dir/install-sh -c"
2260 break
2261 elif test -f "$ac_dir/install.sh"; then
2262 ac_aux_dir=$ac_dir
2263 ac_install_sh="$ac_aux_dir/install.sh -c"
2264 break
2265 elif test -f "$ac_dir/shtool"; then
2266 ac_aux_dir=$ac_dir
2267 ac_install_sh="$ac_aux_dir/shtool install -c"
2268 break
2269 fi
2270 done
2271 if test -z "$ac_aux_dir"; then
2272 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2273 fi
2274
2275 # These three variables are undocumented and unsupported,
2276 # and are intended to be withdrawn in a future Autoconf release.
2277 # They can cause serious problems if a builder's source tree is in a directory
2278 # whose full name contains unusual characters.
2279 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2280 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2281 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2282
2283
2284 # Find a good install program. We prefer a C program (faster),
2285 # so one script is as good as another. But avoid the broken or
2286 # incompatible versions:
2287 # SysV /etc/install, /usr/sbin/install
2288 # SunOS /usr/etc/install
2289 # IRIX /sbin/install
2290 # AIX /bin/install
2291 # AmigaOS /C/install, which installs bootblocks on floppy discs
2292 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2293 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2294 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2295 # OS/2's system install, which has a completely different semantic
2296 # ./install, which can be erroneously created by make from ./install.sh.
2297 # Reject install programs that cannot install multiple files.
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2299 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2300 if test -z "$INSTALL"; then
2301 if ${ac_cv_path_install+:} false; then :
2302 $as_echo_n "(cached) " >&6
2303 else
2304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 for as_dir in $PATH
2306 do
2307 IFS=$as_save_IFS
2308 test -z "$as_dir" && as_dir=.
2309 # Account for people who put trailing slashes in PATH elements.
2310 case $as_dir/ in #((
2311 ./ | .// | /[cC]/* | \
2312 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2313 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2314 /usr/ucb/* ) ;;
2315 *)
2316 # OSF1 and SCO ODT 3.0 have their own names for install.
2317 # Don't use installbsd from OSF since it installs stuff as root
2318 # by default.
2319 for ac_prog in ginstall scoinst install; do
2320 for ac_exec_ext in '' $ac_executable_extensions; do
2321 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2322 if test $ac_prog = install &&
2323 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2324 # AIX install. It has an incompatible calling convention.
2325 :
2326 elif test $ac_prog = install &&
2327 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2328 # program-specific install script used by HP pwplus--don't use.
2329 :
2330 else
2331 rm -rf conftest.one conftest.two conftest.dir
2332 echo one > conftest.one
2333 echo two > conftest.two
2334 mkdir conftest.dir
2335 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2336 test -s conftest.one && test -s conftest.two &&
2337 test -s conftest.dir/conftest.one &&
2338 test -s conftest.dir/conftest.two
2339 then
2340 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2341 break 3
2342 fi
2343 fi
2344 fi
2345 done
2346 done
2347 ;;
2348 esac
2349
2350 done
2351 IFS=$as_save_IFS
2352
2353 rm -rf conftest.one conftest.two conftest.dir
2354
2355 fi
2356 if test "${ac_cv_path_install+set}" = set; then
2357 INSTALL=$ac_cv_path_install
2358 else
2359 # As a last resort, use the slow shell script. Don't cache a
2360 # value for INSTALL within a source directory, because that will
2361 # break other packages using the cache if that directory is
2362 # removed, or if the value is a relative name.
2363 INSTALL=$ac_install_sh
2364 fi
2365 fi
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2367 $as_echo "$INSTALL" >&6; }
2368
2369 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2370 # It thinks the first close brace ends the variable substitution.
2371 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2372
2373 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2374
2375 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2376
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2378 $as_echo_n "checking whether build environment is sane... " >&6; }
2379 # Reject unsafe characters in $srcdir or the absolute working directory
2380 # name. Accept space and tab only in the latter.
2381 am_lf='
2382 '
2383 case `pwd` in
2384 *[\\\"\#\$\&\'\`$am_lf]*)
2385 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2386 esac
2387 case $srcdir in
2388 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2389 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2390 esac
2391
2392 # Do 'set' in a subshell so we don't clobber the current shell's
2393 # arguments. Must try -L first in case configure is actually a
2394 # symlink; some systems play weird games with the mod time of symlinks
2395 # (eg FreeBSD returns the mod time of the symlink's containing
2396 # directory).
2397 if (
2398 am_has_slept=no
2399 for am_try in 1 2; do
2400 echo "timestamp, slept: $am_has_slept" > conftest.file
2401 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2402 if test "$*" = "X"; then
2403 # -L didn't work.
2404 set X `ls -t "$srcdir/configure" conftest.file`
2405 fi
2406 if test "$*" != "X $srcdir/configure conftest.file" \
2407 && test "$*" != "X conftest.file $srcdir/configure"; then
2408
2409 # If neither matched, then we have a broken ls. This can happen
2410 # if, for instance, CONFIG_SHELL is bash and it inherits a
2411 # broken ls alias from the environment. This has actually
2412 # happened. Such a system could not be considered "sane".
2413 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2414 alias in your environment" "$LINENO" 5
2415 fi
2416 if test "$2" = conftest.file || test $am_try -eq 2; then
2417 break
2418 fi
2419 # Just in case.
2420 sleep 1
2421 am_has_slept=yes
2422 done
2423 test "$2" = conftest.file
2424 )
2425 then
2426 # Ok.
2427 :
2428 else
2429 as_fn_error $? "newly created file is older than distributed files!
2430 Check your system clock" "$LINENO" 5
2431 fi
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2433 $as_echo "yes" >&6; }
2434 # If we didn't sleep, we still need to ensure time stamps of config.status and
2435 # generated files are strictly newer.
2436 am_sleep_pid=
2437 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2438 ( sleep 1 ) &
2439 am_sleep_pid=$!
2440 fi
2441
2442 rm -f conftest.file
2443
2444 test "$program_prefix" != NONE &&
2445 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2446 # Use a double $ so make ignores it.
2447 test "$program_suffix" != NONE &&
2448 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2449 # Double any \ or $.
2450 # By default was `s,x,x', remove it if useless.
2451 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2452 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2453
2454 # expand $ac_aux_dir to an absolute path
2455 am_aux_dir=`cd $ac_aux_dir && pwd`
2456
2457 if test x"${MISSING+set}" != xset; then
2458 case $am_aux_dir in
2459 *\ * | *\ *)
2460 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2461 *)
2462 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2463 esac
2464 fi
2465 # Use eval to expand $SHELL
2466 if eval "$MISSING --is-lightweight"; then
2467 am_missing_run="$MISSING "
2468 else
2469 am_missing_run=
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2471 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2472 fi
2473
2474 if test x"${install_sh}" != xset; then
2475 case $am_aux_dir in
2476 *\ * | *\ *)
2477 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2478 *)
2479 install_sh="\${SHELL} $am_aux_dir/install-sh"
2480 esac
2481 fi
2482
2483 # Installed binaries are usually stripped using 'strip' when the user
2484 # run "make install-strip". However 'strip' might not be the right
2485 # tool to use in cross-compilation environments, therefore Automake
2486 # will honor the 'STRIP' environment variable to overrule this program.
2487 if test "$cross_compiling" != no; then
2488 if test -n "$ac_tool_prefix"; then
2489 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2490 set dummy ${ac_tool_prefix}strip; ac_word=$2
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2492 $as_echo_n "checking for $ac_word... " >&6; }
2493 if ${ac_cv_prog_STRIP+:} false; then :
2494 $as_echo_n "(cached) " >&6
2495 else
2496 if test -n "$STRIP"; then
2497 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2498 else
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH
2501 do
2502 IFS=$as_save_IFS
2503 test -z "$as_dir" && as_dir=.
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2506 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 break 2
2509 fi
2510 done
2511 done
2512 IFS=$as_save_IFS
2513
2514 fi
2515 fi
2516 STRIP=$ac_cv_prog_STRIP
2517 if test -n "$STRIP"; then
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2519 $as_echo "$STRIP" >&6; }
2520 else
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2522 $as_echo "no" >&6; }
2523 fi
2524
2525
2526 fi
2527 if test -z "$ac_cv_prog_STRIP"; then
2528 ac_ct_STRIP=$STRIP
2529 # Extract the first word of "strip", so it can be a program name with args.
2530 set dummy strip; ac_word=$2
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2532 $as_echo_n "checking for $ac_word... " >&6; }
2533 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2534 $as_echo_n "(cached) " >&6
2535 else
2536 if test -n "$ac_ct_STRIP"; then
2537 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2538 else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2541 do
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2546 ac_cv_prog_ac_ct_STRIP="strip"
2547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 break 2
2549 fi
2550 done
2551 done
2552 IFS=$as_save_IFS
2553
2554 fi
2555 fi
2556 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2557 if test -n "$ac_ct_STRIP"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2559 $as_echo "$ac_ct_STRIP" >&6; }
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2562 $as_echo "no" >&6; }
2563 fi
2564
2565 if test "x$ac_ct_STRIP" = x; then
2566 STRIP=":"
2567 else
2568 case $cross_compiling:$ac_tool_warned in
2569 yes:)
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2572 ac_tool_warned=yes ;;
2573 esac
2574 STRIP=$ac_ct_STRIP
2575 fi
2576 else
2577 STRIP="$ac_cv_prog_STRIP"
2578 fi
2579
2580 fi
2581 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2582
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2584 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2585 if test -z "$MKDIR_P"; then
2586 if ${ac_cv_path_mkdir+:} false; then :
2587 $as_echo_n "(cached) " >&6
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2591 do
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 for ac_prog in mkdir gmkdir; do
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2597 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2598 'mkdir (GNU coreutils) '* | \
2599 'mkdir (coreutils) '* | \
2600 'mkdir (fileutils) '4.1*)
2601 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2602 break 3;;
2603 esac
2604 done
2605 done
2606 done
2607 IFS=$as_save_IFS
2608
2609 fi
2610
2611 test -d ./--version && rmdir ./--version
2612 if test "${ac_cv_path_mkdir+set}" = set; then
2613 MKDIR_P="$ac_cv_path_mkdir -p"
2614 else
2615 # As a last resort, use the slow shell script. Don't cache a
2616 # value for MKDIR_P within a source directory, because that will
2617 # break other packages using the cache if that directory is
2618 # removed, or if the value is a relative name.
2619 MKDIR_P="$ac_install_sh -d"
2620 fi
2621 fi
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2623 $as_echo "$MKDIR_P" >&6; }
2624
2625 for ac_prog in gawk mawk nawk awk
2626 do
2627 # Extract the first word of "$ac_prog", so it can be a program name with args.
2628 set dummy $ac_prog; ac_word=$2
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2630 $as_echo_n "checking for $ac_word... " >&6; }
2631 if ${ac_cv_prog_AWK+:} false; then :
2632 $as_echo_n "(cached) " >&6
2633 else
2634 if test -n "$AWK"; then
2635 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2636 else
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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2644 ac_cv_prog_AWK="$ac_prog"
2645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 break 2
2647 fi
2648 done
2649 done
2650 IFS=$as_save_IFS
2651
2652 fi
2653 fi
2654 AWK=$ac_cv_prog_AWK
2655 if test -n "$AWK"; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2657 $as_echo "$AWK" >&6; }
2658 else
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660 $as_echo "no" >&6; }
2661 fi
2662
2663
2664 test -n "$AWK" && break
2665 done
2666
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2668 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2669 set x ${MAKE-make}
2670 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2671 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2672 $as_echo_n "(cached) " >&6
2673 else
2674 cat >conftest.make <<\_ACEOF
2675 SHELL = /bin/sh
2676 all:
2677 @echo '@@@%%%=$(MAKE)=@@@%%%'
2678 _ACEOF
2679 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2680 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2681 *@@@%%%=?*=@@@%%%*)
2682 eval ac_cv_prog_make_${ac_make}_set=yes;;
2683 *)
2684 eval ac_cv_prog_make_${ac_make}_set=no;;
2685 esac
2686 rm -f conftest.make
2687 fi
2688 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2690 $as_echo "yes" >&6; }
2691 SET_MAKE=
2692 else
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694 $as_echo "no" >&6; }
2695 SET_MAKE="MAKE=${MAKE-make}"
2696 fi
2697
2698 rm -rf .tst 2>/dev/null
2699 mkdir .tst 2>/dev/null
2700 if test -d .tst; then
2701 am__leading_dot=.
2702 else
2703 am__leading_dot=_
2704 fi
2705 rmdir .tst 2>/dev/null
2706
2707 # Check whether --enable-silent-rules was given.
2708 if test "${enable_silent_rules+set}" = set; then :
2709 enableval=$enable_silent_rules;
2710 fi
2711
2712 case $enable_silent_rules in # (((
2713 yes) AM_DEFAULT_VERBOSITY=0;;
2714 no) AM_DEFAULT_VERBOSITY=1;;
2715 *) AM_DEFAULT_VERBOSITY=1;;
2716 esac
2717 am_make=${MAKE-make}
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2719 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2720 if ${am_cv_make_support_nested_variables+:} false; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 if $as_echo 'TRUE=$(BAR$(V))
2724 BAR0=false
2725 BAR1=true
2726 V=1
2727 am__doit:
2728 @$(TRUE)
2729 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2730 am_cv_make_support_nested_variables=yes
2731 else
2732 am_cv_make_support_nested_variables=no
2733 fi
2734 fi
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2736 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2737 if test $am_cv_make_support_nested_variables = yes; then
2738 AM_V='$(V)'
2739 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2740 else
2741 AM_V=$AM_DEFAULT_VERBOSITY
2742 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2743 fi
2744 AM_BACKSLASH='\'
2745
2746 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2747 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2748 # is not polluted with repeated "-I."
2749 am__isrc=' -I$(srcdir)'
2750 # test to see if srcdir already configured
2751 if test -f $srcdir/config.status; then
2752 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2753 fi
2754 fi
2755
2756 # test whether we have cygpath
2757 if test -z "$CYGPATH_W"; then
2758 if (cygpath --version) >/dev/null 2>/dev/null; then
2759 CYGPATH_W='cygpath -w'
2760 else
2761 CYGPATH_W=echo
2762 fi
2763 fi
2764
2765
2766 # Define the identity of the package.
2767 PACKAGE='xtrans'
2768 VERSION='1.3.5'
2769
2770
2771 cat >>confdefs.h <<_ACEOF
2772 #define PACKAGE "$PACKAGE"
2773 _ACEOF
2774
2775
2776 cat >>confdefs.h <<_ACEOF
2777 #define VERSION "$VERSION"
2778 _ACEOF
2779
2780 # Some tools Automake needs.
2781
2782 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2783
2784
2785 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2786
2787
2788 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2789
2790
2791 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2792
2793
2794 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2795
2796 # For better backward compatibility. To be removed once Automake 1.9.x
2797 # dies out for good. For more background, see:
2798 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2799 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2800 mkdir_p='$(MKDIR_P)'
2801
2802 # We need awk for the "check" target. The system "awk" is bad on
2803 # some platforms.
2804 # Always define AMTAR for backward compatibility. Yes, it's still used
2805 # in the wild :-( We should find a proper way to deprecate it ...
2806 AMTAR='$${TAR-tar}'
2807
2808
2809 # We'll loop over all known methods to create a tar archive until one works.
2810 _am_tools='gnutar pax cpio none'
2811
2812 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2813
2814
2815
2816
2817
2818
2819 # POSIX will say in a future version that running "rm -f" with no argument
2820 # is OK; and we want to be able to make that assumption in our Makefile
2821 # recipes. So use an aggressive probe to check that the usage we want is
2822 # actually supported "in the wild" to an acceptable degree.
2823 # See automake bug#10828.
2824 # To make any issue more visible, cause the running configure to be aborted
2825 # by default if the 'rm' program in use doesn't match our expectations; the
2826 # user can still override this though.
2827 if rm -f && rm -fr && rm -rf; then : OK; else
2828 cat >&2 <<'END'
2829 Oops!
2830
2831 Your 'rm' program seems unable to run without file operands specified
2832 on the command line, even when the '-f' option is present. This is contrary
2833 to the behaviour of most rm programs out there, and not conforming with
2834 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2835
2836 Please tell bug-automake@gnu.org about your system, including the value
2837 of your $PATH and any error possibly output before this message. This
2838 can help us improve future automake versions.
2839
2840 END
2841 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2842 echo 'Configuration will proceed anyway, since you have set the' >&2
2843 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2844 echo >&2
2845 else
2846 cat >&2 <<'END'
2847 Aborting the configuration process, to ensure you take notice of the issue.
2848
2849 You can download and install GNU coreutils to get an 'rm' implementation
2850 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2851
2852 If you want to complete the configuration process using your problematic
2853 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2854 to "yes", and re-run configure.
2855
2856 END
2857 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2858 fi
2859 fi
2860
2861
2862 # Require xorg-macros minimum of 1.12 for DocBook external references
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874 DEPDIR="${am__leading_dot}deps"
2875
2876 ac_config_commands="$ac_config_commands depfiles"
2877
2878
2879 am_make=${MAKE-make}
2880 cat > confinc << 'END'
2881 am__doit:
2882 @echo this is the am__doit target
2883 .PHONY: am__doit
2884 END
2885 # If we don't find an include directive, just comment out the code.
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2887 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2888 am__include="#"
2889 am__quote=
2890 _am_result=none
2891 # First try GNU make style include.
2892 echo "include confinc" > confmf
2893 # Ignore all kinds of additional output from 'make'.
2894 case `$am_make -s -f confmf 2> /dev/null` in #(
2895 *the\ am__doit\ target*)
2896 am__include=include
2897 am__quote=
2898 _am_result=GNU
2899 ;;
2900 esac
2901 # Now try BSD make style include.
2902 if test "$am__include" = "#"; then
2903 echo '.include "confinc"' > confmf
2904 case `$am_make -s -f confmf 2> /dev/null` in #(
2905 *the\ am__doit\ target*)
2906 am__include=.include
2907 am__quote="\""
2908 _am_result=BSD
2909 ;;
2910 esac
2911 fi
2912
2913
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2915 $as_echo "$_am_result" >&6; }
2916 rm -f confinc confmf
2917
2918 # Check whether --enable-dependency-tracking was given.
2919 if test "${enable_dependency_tracking+set}" = set; then :
2920 enableval=$enable_dependency_tracking;
2921 fi
2922
2923 if test "x$enable_dependency_tracking" != xno; then
2924 am_depcomp="$ac_aux_dir/depcomp"
2925 AMDEPBACKSLASH='\'
2926 am__nodep='_no'
2927 fi
2928 if test "x$enable_dependency_tracking" != xno; then
2929 AMDEP_TRUE=
2930 AMDEP_FALSE='#'
2931 else
2932 AMDEP_TRUE='#'
2933 AMDEP_FALSE=
2934 fi
2935
2936
2937 ac_ext=c
2938 ac_cpp='$CPP $CPPFLAGS'
2939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2942 if test -n "$ac_tool_prefix"; then
2943 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2944 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if ${ac_cv_prog_CC+:} false; then :
2948 $as_echo_n "(cached) " >&6
2949 else
2950 if test -n "$CC"; then
2951 ac_cv_prog_CC="$CC" # Let the user override the test.
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2955 do
2956 IFS=$as_save_IFS
2957 test -z "$as_dir" && as_dir=.
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2960 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 break 2
2963 fi
2964 done
2965 done
2966 IFS=$as_save_IFS
2967
2968 fi
2969 fi
2970 CC=$ac_cv_prog_CC
2971 if test -n "$CC"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2973 $as_echo "$CC" >&6; }
2974 else
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977 fi
2978
2979
2980 fi
2981 if test -z "$ac_cv_prog_CC"; then
2982 ac_ct_CC=$CC
2983 # Extract the first word of "gcc", so it can be a program name with args.
2984 set dummy gcc; ac_word=$2
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986 $as_echo_n "checking for $ac_word... " >&6; }
2987 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2988 $as_echo_n "(cached) " >&6
2989 else
2990 if test -n "$ac_ct_CC"; then
2991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2992 else
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 for as_dir in $PATH
2995 do
2996 IFS=$as_save_IFS
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_ac_ct_CC="gcc"
3001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 break 2
3003 fi
3004 done
3005 done
3006 IFS=$as_save_IFS
3007
3008 fi
3009 fi
3010 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3011 if test -n "$ac_ct_CC"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3013 $as_echo "$ac_ct_CC" >&6; }
3014 else
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3017 fi
3018
3019 if test "x$ac_ct_CC" = x; then
3020 CC=""
3021 else
3022 case $cross_compiling:$ac_tool_warned in
3023 yes:)
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3026 ac_tool_warned=yes ;;
3027 esac
3028 CC=$ac_ct_CC
3029 fi
3030 else
3031 CC="$ac_cv_prog_CC"
3032 fi
3033
3034 if test -z "$CC"; then
3035 if test -n "$ac_tool_prefix"; then
3036 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3037 set dummy ${ac_tool_prefix}cc; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if ${ac_cv_prog_CC+:} false; then :
3041 $as_echo_n "(cached) " >&6
3042 else
3043 if test -n "$CC"; then
3044 ac_cv_prog_CC="$CC" # Let the user override the test.
3045 else
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3048 do
3049 IFS=$as_save_IFS
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3053 ac_cv_prog_CC="${ac_tool_prefix}cc"
3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 break 2
3056 fi
3057 done
3058 done
3059 IFS=$as_save_IFS
3060
3061 fi
3062 fi
3063 CC=$ac_cv_prog_CC
3064 if test -n "$CC"; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3066 $as_echo "$CC" >&6; }
3067 else
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3070 fi
3071
3072
3073 fi
3074 fi
3075 if test -z "$CC"; then
3076 # Extract the first word of "cc", so it can be a program name with args.
3077 set dummy cc; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if ${ac_cv_prog_CC+:} false; then :
3081 $as_echo_n "(cached) " >&6
3082 else
3083 if test -n "$CC"; then
3084 ac_cv_prog_CC="$CC" # Let the user override the test.
3085 else
3086 ac_prog_rejected=no
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 for as_dir in $PATH
3089 do
3090 IFS=$as_save_IFS
3091 test -z "$as_dir" && as_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3094 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3095 ac_prog_rejected=yes
3096 continue
3097 fi
3098 ac_cv_prog_CC="cc"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3101 fi
3102 done
3103 done
3104 IFS=$as_save_IFS
3105
3106 if test $ac_prog_rejected = yes; then
3107 # We found a bogon in the path, so make sure we never use it.
3108 set dummy $ac_cv_prog_CC
3109 shift
3110 if test $# != 0; then
3111 # We chose a different compiler from the bogus one.
3112 # However, it has the same basename, so the bogon will be chosen
3113 # first if we set CC to just the basename; use the full file name.
3114 shift
3115 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3116 fi
3117 fi
3118 fi
3119 fi
3120 CC=$ac_cv_prog_CC
3121 if test -n "$CC"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123 $as_echo "$CC" >&6; }
3124 else
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3127 fi
3128
3129
3130 fi
3131 if test -z "$CC"; then
3132 if test -n "$ac_tool_prefix"; then
3133 for ac_prog in cl.exe
3134 do
3135 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3136 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138 $as_echo_n "checking for $ac_word... " >&6; }
3139 if ${ac_cv_prog_CC+:} false; then :
3140 $as_echo_n "(cached) " >&6
3141 else
3142 if test -n "$CC"; then
3143 ac_cv_prog_CC="$CC" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148 IFS=$as_save_IFS
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 break 2
3155 fi
3156 done
3157 done
3158 IFS=$as_save_IFS
3159
3160 fi
3161 fi
3162 CC=$ac_cv_prog_CC
3163 if test -n "$CC"; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3165 $as_echo "$CC" >&6; }
3166 else
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3169 fi
3170
3171
3172 test -n "$CC" && break
3173 done
3174 fi
3175 if test -z "$CC"; then
3176 ac_ct_CC=$CC
3177 for ac_prog in cl.exe
3178 do
3179 # Extract the first word of "$ac_prog", so it can be a program name with args.
3180 set dummy $ac_prog; ac_word=$2
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182 $as_echo_n "checking for $ac_word... " >&6; }
3183 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3184 $as_echo_n "(cached) " >&6
3185 else
3186 if test -n "$ac_ct_CC"; then
3187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3188 else
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3191 do
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196 ac_cv_prog_ac_ct_CC="$ac_prog"
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 break 2
3199 fi
3200 done
3201 done
3202 IFS=$as_save_IFS
3203
3204 fi
3205 fi
3206 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3207 if test -n "$ac_ct_CC"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3209 $as_echo "$ac_ct_CC" >&6; }
3210 else
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212 $as_echo "no" >&6; }
3213 fi
3214
3215
3216 test -n "$ac_ct_CC" && break
3217 done
3218
3219 if test "x$ac_ct_CC" = x; then
3220 CC=""
3221 else
3222 case $cross_compiling:$ac_tool_warned in
3223 yes:)
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3226 ac_tool_warned=yes ;;
3227 esac
3228 CC=$ac_ct_CC
3229 fi
3230 fi
3231
3232 fi
3233
3234
3235 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 as_fn_error $? "no acceptable C compiler found in \$PATH
3238 See \`config.log' for more details" "$LINENO" 5; }
3239
3240 # Provide some information about the compiler.
3241 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3242 set X $ac_compile
3243 ac_compiler=$2
3244 for ac_option in --version -v -V -qversion; do
3245 { { ac_try="$ac_compiler $ac_option >&5"
3246 case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249 esac
3250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251 $as_echo "$ac_try_echo"; } >&5
3252 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3253 ac_status=$?
3254 if test -s conftest.err; then
3255 sed '10a\
3256 ... rest of stderr output deleted ...
3257 10q' conftest.err >conftest.er1
3258 cat conftest.er1 >&5
3259 fi
3260 rm -f conftest.er1 conftest.err
3261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262 test $ac_status = 0; }
3263 done
3264
3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h. */
3267
3268 int
3269 main ()
3270 {
3271
3272 ;
3273 return 0;
3274 }
3275 _ACEOF
3276 ac_clean_files_save=$ac_clean_files
3277 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3278 # Try to create an executable without -o first, disregard a.out.
3279 # It will help us diagnose broken compilers, and finding out an intuition
3280 # of exeext.
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3282 $as_echo_n "checking whether the C compiler works... " >&6; }
3283 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3284
3285 # The possible output files:
3286 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3287
3288 ac_rmfiles=
3289 for ac_file in $ac_files
3290 do
3291 case $ac_file in
3292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3293 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3294 esac
3295 done
3296 rm -f $ac_rmfiles
3297
3298 if { { ac_try="$ac_link_default"
3299 case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3302 esac
3303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3304 $as_echo "$ac_try_echo"; } >&5
3305 (eval "$ac_link_default") 2>&5
3306 ac_status=$?
3307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3308 test $ac_status = 0; }; then :
3309 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3310 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3311 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3312 # so that the user can short-circuit this test for compilers unknown to
3313 # Autoconf.
3314 for ac_file in $ac_files ''
3315 do
3316 test -f "$ac_file" || continue
3317 case $ac_file in
3318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3319 ;;
3320 [ab].out )
3321 # We found the default executable, but exeext='' is most
3322 # certainly right.
3323 break;;
3324 *.* )
3325 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3326 then :; else
3327 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3328 fi
3329 # We set ac_cv_exeext here because the later test for it is not
3330 # safe: cross compilers may not add the suffix if given an `-o'
3331 # argument, so we may need to know it at that point already.
3332 # Even if this section looks crufty: it has the advantage of
3333 # actually working.
3334 break;;
3335 * )
3336 break;;
3337 esac
3338 done
3339 test "$ac_cv_exeext" = no && ac_cv_exeext=
3340
3341 else
3342 ac_file=''
3343 fi
3344 if test -z "$ac_file"; then :
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 $as_echo "no" >&6; }
3347 $as_echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3349
3350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3352 as_fn_error 77 "C compiler cannot create executables
3353 See \`config.log' for more details" "$LINENO" 5; }
3354 else
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3356 $as_echo "yes" >&6; }
3357 fi
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3359 $as_echo_n "checking for C compiler default output file name... " >&6; }
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3361 $as_echo "$ac_file" >&6; }
3362 ac_exeext=$ac_cv_exeext
3363
3364 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3365 ac_clean_files=$ac_clean_files_save
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3367 $as_echo_n "checking for suffix of executables... " >&6; }
3368 if { { ac_try="$ac_link"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375 (eval "$ac_link") 2>&5
3376 ac_status=$?
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }; then :
3379 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3380 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3381 # work properly (i.e., refer to `conftest.exe'), while it won't with
3382 # `rm'.
3383 for ac_file in conftest.exe conftest conftest.*; do
3384 test -f "$ac_file" || continue
3385 case $ac_file in
3386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3387 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3388 break;;
3389 * ) break;;
3390 esac
3391 done
3392 else
3393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3395 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3396 See \`config.log' for more details" "$LINENO" 5; }
3397 fi
3398 rm -f conftest conftest$ac_cv_exeext
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3400 $as_echo "$ac_cv_exeext" >&6; }
3401
3402 rm -f conftest.$ac_ext
3403 EXEEXT=$ac_cv_exeext
3404 ac_exeext=$EXEEXT
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3407 #include <stdio.h>
3408 int
3409 main ()
3410 {
3411 FILE *f = fopen ("conftest.out", "w");
3412 return ferror (f) || fclose (f) != 0;
3413
3414 ;
3415 return 0;
3416 }
3417 _ACEOF
3418 ac_clean_files="$ac_clean_files conftest.out"
3419 # Check that the compiler produces executables we can run. If not, either
3420 # the compiler is broken, or we cross compile.
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3422 $as_echo_n "checking whether we are cross compiling... " >&6; }
3423 if test "$cross_compiling" != yes; then
3424 { { ac_try="$ac_link"
3425 case "(($ac_try" in
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3428 esac
3429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430 $as_echo "$ac_try_echo"; } >&5
3431 (eval "$ac_link") 2>&5
3432 ac_status=$?
3433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434 test $ac_status = 0; }
3435 if { ac_try='./conftest$ac_cv_exeext'
3436 { { case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3439 esac
3440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441 $as_echo "$ac_try_echo"; } >&5
3442 (eval "$ac_try") 2>&5
3443 ac_status=$?
3444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445 test $ac_status = 0; }; }; then
3446 cross_compiling=no
3447 else
3448 if test "$cross_compiling" = maybe; then
3449 cross_compiling=yes
3450 else
3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error $? "cannot run C compiled programs.
3454 If you meant to cross compile, use \`--host'.
3455 See \`config.log' for more details" "$LINENO" 5; }
3456 fi
3457 fi
3458 fi
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3460 $as_echo "$cross_compiling" >&6; }
3461
3462 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3463 ac_clean_files=$ac_clean_files_save
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3465 $as_echo_n "checking for suffix of object files... " >&6; }
3466 if ${ac_cv_objext+:} false; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h. */
3471
3472 int
3473 main ()
3474 {
3475
3476 ;
3477 return 0;
3478 }
3479 _ACEOF
3480 rm -f conftest.o conftest.obj
3481 if { { ac_try="$ac_compile"
3482 case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485 esac
3486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487 $as_echo "$ac_try_echo"; } >&5
3488 (eval "$ac_compile") 2>&5
3489 ac_status=$?
3490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491 test $ac_status = 0; }; then :
3492 for ac_file in conftest.o conftest.obj conftest.*; do
3493 test -f "$ac_file" || continue;
3494 case $ac_file in
3495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3496 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3497 break;;
3498 esac
3499 done
3500 else
3501 $as_echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3503
3504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506 as_fn_error $? "cannot compute suffix of object files: cannot compile
3507 See \`config.log' for more details" "$LINENO" 5; }
3508 fi
3509 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3510 fi
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3512 $as_echo "$ac_cv_objext" >&6; }
3513 OBJEXT=$ac_cv_objext
3514 ac_objext=$OBJEXT
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3516 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3517 if ${ac_cv_c_compiler_gnu+:} false; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3522
3523 int
3524 main ()
3525 {
3526 #ifndef __GNUC__
3527 choke me
3528 #endif
3529
3530 ;
3531 return 0;
3532 }
3533 _ACEOF
3534 if ac_fn_c_try_compile "$LINENO"; then :
3535 ac_compiler_gnu=yes
3536 else
3537 ac_compiler_gnu=no
3538 fi
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3541
3542 fi
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3544 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3545 if test $ac_compiler_gnu = yes; then
3546 GCC=yes
3547 else
3548 GCC=
3549 fi
3550 ac_test_CFLAGS=${CFLAGS+set}
3551 ac_save_CFLAGS=$CFLAGS
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3553 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3554 if ${ac_cv_prog_cc_g+:} false; then :
3555 $as_echo_n "(cached) " >&6
3556 else
3557 ac_save_c_werror_flag=$ac_c_werror_flag
3558 ac_c_werror_flag=yes
3559 ac_cv_prog_cc_g=no
3560 CFLAGS="-g"
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3563
3564 int
3565 main ()
3566 {
3567
3568 ;
3569 return 0;
3570 }
3571 _ACEOF
3572 if ac_fn_c_try_compile "$LINENO"; then :
3573 ac_cv_prog_cc_g=yes
3574 else
3575 CFLAGS=""
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3578
3579 int
3580 main ()
3581 {
3582
3583 ;
3584 return 0;
3585 }
3586 _ACEOF
3587 if ac_fn_c_try_compile "$LINENO"; then :
3588
3589 else
3590 ac_c_werror_flag=$ac_save_c_werror_flag
3591 CFLAGS="-g"
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3594
3595 int
3596 main ()
3597 {
3598
3599 ;
3600 return 0;
3601 }
3602 _ACEOF
3603 if ac_fn_c_try_compile "$LINENO"; then :
3604 ac_cv_prog_cc_g=yes
3605 fi
3606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 fi
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609 fi
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 ac_c_werror_flag=$ac_save_c_werror_flag
3612 fi
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3614 $as_echo "$ac_cv_prog_cc_g" >&6; }
3615 if test "$ac_test_CFLAGS" = set; then
3616 CFLAGS=$ac_save_CFLAGS
3617 elif test $ac_cv_prog_cc_g = yes; then
3618 if test "$GCC" = yes; then
3619 CFLAGS="-g -O2"
3620 else
3621 CFLAGS="-g"
3622 fi
3623 else
3624 if test "$GCC" = yes; then
3625 CFLAGS="-O2"
3626 else
3627 CFLAGS=
3628 fi
3629 fi
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3631 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3632 if ${ac_cv_prog_cc_c89+:} false; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 ac_cv_prog_cc_c89=no
3636 ac_save_CC=$CC
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3639 #include <stdarg.h>
3640 #include <stdio.h>
3641 struct stat;
3642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3643 struct buf { int x; };
3644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3645 static char *e (p, i)
3646 char **p;
3647 int i;
3648 {
3649 return p[i];
3650 }
3651 static char *f (char * (*g) (char **, int), char **p, ...)
3652 {
3653 char *s;
3654 va_list v;
3655 va_start (v,p);
3656 s = g (p, va_arg (v,int));
3657 va_end (v);
3658 return s;
3659 }
3660
3661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3662 function prototypes and stuff, but not '\xHH' hex character constants.
3663 These don't provoke an error unfortunately, instead are silently treated
3664 as 'x'. The following induces an error, until -std is added to get
3665 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3666 array size at least. It's necessary to write '\x00'==0 to get something
3667 that's true only with -std. */
3668 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3669
3670 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3671 inside strings and character constants. */
3672 #define FOO(x) 'x'
3673 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3674
3675 int test (int i, double x);
3676 struct s1 {int (*f) (int a);};
3677 struct s2 {int (*f) (double a);};
3678 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3679 int argc;
3680 char **argv;
3681 int
3682 main ()
3683 {
3684 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3685 ;
3686 return 0;
3687 }
3688 _ACEOF
3689 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3690 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3691 do
3692 CC="$ac_save_CC $ac_arg"
3693 if ac_fn_c_try_compile "$LINENO"; then :
3694 ac_cv_prog_cc_c89=$ac_arg
3695 fi
3696 rm -f core conftest.err conftest.$ac_objext
3697 test "x$ac_cv_prog_cc_c89" != "xno" && break
3698 done
3699 rm -f conftest.$ac_ext
3700 CC=$ac_save_CC
3701
3702 fi
3703 # AC_CACHE_VAL
3704 case "x$ac_cv_prog_cc_c89" in
3705 x)
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3707 $as_echo "none needed" >&6; } ;;
3708 xno)
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3710 $as_echo "unsupported" >&6; } ;;
3711 *)
3712 CC="$CC $ac_cv_prog_cc_c89"
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3714 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3715 esac
3716 if test "x$ac_cv_prog_cc_c89" != xno; then :
3717
3718 fi
3719
3720 ac_ext=c
3721 ac_cpp='$CPP $CPPFLAGS'
3722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3725
3726 ac_ext=c
3727 ac_cpp='$CPP $CPPFLAGS'
3728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3732 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3733 if ${am_cv_prog_cc_c_o+:} false; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738
3739 int
3740 main ()
3741 {
3742
3743 ;
3744 return 0;
3745 }
3746 _ACEOF
3747 # Make sure it works both with $CC and with simple cc.
3748 # Following AC_PROG_CC_C_O, we do the test twice because some
3749 # compilers refuse to overwrite an existing .o file with -o,
3750 # though they will create one.
3751 am_cv_prog_cc_c_o=yes
3752 for am_i in 1 2; do
3753 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3754 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3755 ac_status=$?
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } \
3758 && test -f conftest2.$ac_objext; then
3759 : OK
3760 else
3761 am_cv_prog_cc_c_o=no
3762 break
3763 fi
3764 done
3765 rm -f core conftest*
3766 unset am_i
3767 fi
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3769 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3770 if test "$am_cv_prog_cc_c_o" != yes; then
3771 # Losing compiler, so override with the script.
3772 # FIXME: It is wrong to rewrite CC.
3773 # But if we don't then we get into trouble of one sort or another.
3774 # A longer-term fix would be to have automake use am__CC in this case,
3775 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3776 CC="$am_aux_dir/compile $CC"
3777 fi
3778 ac_ext=c
3779 ac_cpp='$CPP $CPPFLAGS'
3780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783
3784
3785 depcc="$CC" am_compiler_list=
3786
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3788 $as_echo_n "checking dependency style of $depcc... " >&6; }
3789 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3790 $as_echo_n "(cached) " >&6
3791 else
3792 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3793 # We make a subdir and do the tests there. Otherwise we can end up
3794 # making bogus files that we don't know about and never remove. For
3795 # instance it was reported that on HP-UX the gcc test will end up
3796 # making a dummy file named 'D' -- because '-MD' means "put the output
3797 # in D".
3798 rm -rf conftest.dir
3799 mkdir conftest.dir
3800 # Copy depcomp to subdir because otherwise we won't find it if we're
3801 # using a relative directory.
3802 cp "$am_depcomp" conftest.dir
3803 cd conftest.dir
3804 # We will build objects and dependencies in a subdirectory because
3805 # it helps to detect inapplicable dependency modes. For instance
3806 # both Tru64's cc and ICC support -MD to output dependencies as a
3807 # side effect of compilation, but ICC will put the dependencies in
3808 # the current directory while Tru64 will put them in the object
3809 # directory.
3810 mkdir sub
3811
3812 am_cv_CC_dependencies_compiler_type=none
3813 if test "$am_compiler_list" = ""; then
3814 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3815 fi
3816 am__universal=false
3817 case " $depcc " in #(
3818 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3819 esac
3820
3821 for depmode in $am_compiler_list; do
3822 # Setup a source with many dependencies, because some compilers
3823 # like to wrap large dependency lists on column 80 (with \), and
3824 # we should not choose a depcomp mode which is confused by this.
3825 #
3826 # We need to recreate these files for each test, as the compiler may
3827 # overwrite some of them when testing with obscure command lines.
3828 # This happens at least with the AIX C compiler.
3829 : > sub/conftest.c
3830 for i in 1 2 3 4 5 6; do
3831 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3832 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3833 # Solaris 10 /bin/sh.
3834 echo '/* dummy */' > sub/conftst$i.h
3835 done
3836 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3837
3838 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3839 # mode. It turns out that the SunPro C++ compiler does not properly
3840 # handle '-M -o', and we need to detect this. Also, some Intel
3841 # versions had trouble with output in subdirs.
3842 am__obj=sub/conftest.${OBJEXT-o}
3843 am__minus_obj="-o $am__obj"
3844 case $depmode in
3845 gcc)
3846 # This depmode causes a compiler race in universal mode.
3847 test "$am__universal" = false || continue
3848 ;;
3849 nosideeffect)
3850 # After this tag, mechanisms are not by side-effect, so they'll
3851 # only be used when explicitly requested.
3852 if test "x$enable_dependency_tracking" = xyes; then
3853 continue
3854 else
3855 break
3856 fi
3857 ;;
3858 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3859 # This compiler won't grok '-c -o', but also, the minuso test has
3860 # not run yet. These depmodes are late enough in the game, and
3861 # so weak that their functioning should not be impacted.
3862 am__obj=conftest.${OBJEXT-o}
3863 am__minus_obj=
3864 ;;
3865 none) break ;;
3866 esac
3867 if depmode=$depmode \
3868 source=sub/conftest.c object=$am__obj \
3869 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3870 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3871 >/dev/null 2>conftest.err &&
3872 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3873 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3874 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3875 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3876 # icc doesn't choke on unknown options, it will just issue warnings
3877 # or remarks (even with -Werror). So we grep stderr for any message
3878 # that says an option was ignored or not supported.
3879 # When given -MP, icc 7.0 and 7.1 complain thusly:
3880 # icc: Command line warning: ignoring option '-M'; no argument required
3881 # The diagnosis changed in icc 8.0:
3882 # icc: Command line remark: option '-MP' not supported
3883 if (grep 'ignoring option' conftest.err ||
3884 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3885 am_cv_CC_dependencies_compiler_type=$depmode
3886 break
3887 fi
3888 fi
3889 done
3890
3891 cd ..
3892 rm -rf conftest.dir
3893 else
3894 am_cv_CC_dependencies_compiler_type=none
3895 fi
3896
3897 fi
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3899 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3900 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3901
3902 if
3903 test "x$enable_dependency_tracking" != xno \
3904 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3905 am__fastdepCC_TRUE=
3906 am__fastdepCC_FALSE='#'
3907 else
3908 am__fastdepCC_TRUE='#'
3909 am__fastdepCC_FALSE=
3910 fi
3911
3912
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3914 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3915 if ${ac_cv_prog_cc_c99+:} false; then :
3916 $as_echo_n "(cached) " >&6
3917 else
3918 ac_cv_prog_cc_c99=no
3919 ac_save_CC=$CC
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3922 #include <stdarg.h>
3923 #include <stdbool.h>
3924 #include <stdlib.h>
3925 #include <wchar.h>
3926 #include <stdio.h>
3927
3928 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3929 #define debug(...) fprintf (stderr, __VA_ARGS__)
3930 #define showlist(...) puts (#__VA_ARGS__)
3931 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3932 static void
3933 test_varargs_macros (void)
3934 {
3935 int x = 1234;
3936 int y = 5678;
3937 debug ("Flag");
3938 debug ("X = %d\n", x);
3939 showlist (The first, second, and third items.);
3940 report (x>y, "x is %d but y is %d", x, y);
3941 }
3942
3943 // Check long long types.
3944 #define BIG64 18446744073709551615ull
3945 #define BIG32 4294967295ul
3946 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3947 #if !BIG_OK
3948 your preprocessor is broken;
3949 #endif
3950 #if BIG_OK
3951 #else
3952 your preprocessor is broken;
3953 #endif
3954 static long long int bignum = -9223372036854775807LL;
3955 static unsigned long long int ubignum = BIG64;
3956
3957 struct incomplete_array
3958 {
3959 int datasize;
3960 double data[];
3961 };
3962
3963 struct named_init {
3964 int number;
3965 const wchar_t *name;
3966 double average;
3967 };
3968
3969 typedef const char *ccp;
3970
3971 static inline int
3972 test_restrict (ccp restrict text)
3973 {
3974 // See if C++-style comments work.
3975 // Iterate through items via the restricted pointer.
3976 // Also check for declarations in for loops.
3977 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3978 continue;
3979 return 0;
3980 }
3981
3982 // Check varargs and va_copy.
3983 static void
3984 test_varargs (const char *format, ...)
3985 {
3986 va_list args;
3987 va_start (args, format);
3988 va_list args_copy;
3989 va_copy (args_copy, args);
3990
3991 const char *str;
3992 int number;
3993 float fnumber;
3994
3995 while (*format)
3996 {
3997 switch (*format++)
3998 {
3999 case 's': // string
4000 str = va_arg (args_copy, const char *);
4001 break;
4002 case 'd': // int
4003 number = va_arg (args_copy, int);
4004 break;
4005 case 'f': // float
4006 fnumber = va_arg (args_copy, double);
4007 break;
4008 default:
4009 break;
4010 }
4011 }
4012 va_end (args_copy);
4013 va_end (args);
4014 }
4015
4016 int
4017 main ()
4018 {
4019
4020 // Check bool.
4021 _Bool success = false;
4022
4023 // Check restrict.
4024 if (test_restrict ("String literal") == 0)
4025 success = true;
4026 char *restrict newvar = "Another string";
4027
4028 // Check varargs.
4029 test_varargs ("s, d' f .", "string", 65, 34.234);
4030 test_varargs_macros ();
4031
4032 // Check flexible array members.
4033 struct incomplete_array *ia =
4034 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4035 ia->datasize = 10;
4036 for (int i = 0; i < ia->datasize; ++i)
4037 ia->data[i] = i * 1.234;
4038
4039 // Check named initializers.
4040 struct named_init ni = {
4041 .number = 34,
4042 .name = L"Test wide string",
4043 .average = 543.34343,
4044 };
4045
4046 ni.number = 58;
4047
4048 int dynamic_array[ni.number];
4049 dynamic_array[ni.number - 1] = 543;
4050
4051 // work around unused variable warnings
4052 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4053 || dynamic_array[ni.number - 1] != 543);
4054
4055 ;
4056 return 0;
4057 }
4058 _ACEOF
4059 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4060 do
4061 CC="$ac_save_CC $ac_arg"
4062 if ac_fn_c_try_compile "$LINENO"; then :
4063 ac_cv_prog_cc_c99=$ac_arg
4064 fi
4065 rm -f core conftest.err conftest.$ac_objext
4066 test "x$ac_cv_prog_cc_c99" != "xno" && break
4067 done
4068 rm -f conftest.$ac_ext
4069 CC=$ac_save_CC
4070
4071 fi
4072 # AC_CACHE_VAL
4073 case "x$ac_cv_prog_cc_c99" in
4074 x)
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4076 $as_echo "none needed" >&6; } ;;
4077 xno)
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4079 $as_echo "unsupported" >&6; } ;;
4080 *)
4081 CC="$CC $ac_cv_prog_cc_c99"
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4083 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4084 esac
4085 if test "x$ac_cv_prog_cc_c99" != xno; then :
4086
4087 fi
4088
4089
4090
4091 ac_ext=c
4092 ac_cpp='$CPP $CPPFLAGS'
4093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4097 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4098 # On Suns, sometimes $CPP names a directory.
4099 if test -n "$CPP" && test -d "$CPP"; then
4100 CPP=
4101 fi
4102 if test -z "$CPP"; then
4103 if ${ac_cv_prog_CPP+:} false; then :
4104 $as_echo_n "(cached) " >&6
4105 else
4106 # Double quotes because CPP needs to be expanded
4107 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4108 do
4109 ac_preproc_ok=false
4110 for ac_c_preproc_warn_flag in '' yes
4111 do
4112 # Use a header file that comes with gcc, so configuring glibc
4113 # with a fresh cross-compiler works.
4114 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4115 # <limits.h> exists even on freestanding compilers.
4116 # On the NeXT, cc -E runs the code through the compiler's parser,
4117 # not just through cpp. "Syntax error" is here to catch this case.
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4120 #ifdef __STDC__
4121 # include <limits.h>
4122 #else
4123 # include <assert.h>
4124 #endif
4125 Syntax error
4126 _ACEOF
4127 if ac_fn_c_try_cpp "$LINENO"; then :
4128
4129 else
4130 # Broken: fails on valid input.
4131 continue
4132 fi
4133 rm -f conftest.err conftest.i conftest.$ac_ext
4134
4135 # OK, works on sane cases. Now check whether nonexistent headers
4136 # can be detected and how.
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4139 #include <ac_nonexistent.h>
4140 _ACEOF
4141 if ac_fn_c_try_cpp "$LINENO"; then :
4142 # Broken: success on invalid input.
4143 continue
4144 else
4145 # Passes both tests.
4146 ac_preproc_ok=:
4147 break
4148 fi
4149 rm -f conftest.err conftest.i conftest.$ac_ext
4150
4151 done
4152 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4153 rm -f conftest.i conftest.err conftest.$ac_ext
4154 if $ac_preproc_ok; then :
4155 break
4156 fi
4157
4158 done
4159 ac_cv_prog_CPP=$CPP
4160
4161 fi
4162 CPP=$ac_cv_prog_CPP
4163 else
4164 ac_cv_prog_CPP=$CPP
4165 fi
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4167 $as_echo "$CPP" >&6; }
4168 ac_preproc_ok=false
4169 for ac_c_preproc_warn_flag in '' yes
4170 do
4171 # Use a header file that comes with gcc, so configuring glibc
4172 # with a fresh cross-compiler works.
4173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4174 # <limits.h> exists even on freestanding compilers.
4175 # On the NeXT, cc -E runs the code through the compiler's parser,
4176 # not just through cpp. "Syntax error" is here to catch this case.
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4179 #ifdef __STDC__
4180 # include <limits.h>
4181 #else
4182 # include <assert.h>
4183 #endif
4184 Syntax error
4185 _ACEOF
4186 if ac_fn_c_try_cpp "$LINENO"; then :
4187
4188 else
4189 # Broken: fails on valid input.
4190 continue
4191 fi
4192 rm -f conftest.err conftest.i conftest.$ac_ext
4193
4194 # OK, works on sane cases. Now check whether nonexistent headers
4195 # can be detected and how.
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4198 #include <ac_nonexistent.h>
4199 _ACEOF
4200 if ac_fn_c_try_cpp "$LINENO"; then :
4201 # Broken: success on invalid input.
4202 continue
4203 else
4204 # Passes both tests.
4205 ac_preproc_ok=:
4206 break
4207 fi
4208 rm -f conftest.err conftest.i conftest.$ac_ext
4209
4210 done
4211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4212 rm -f conftest.i conftest.err conftest.$ac_ext
4213 if $ac_preproc_ok; then :
4214
4215 else
4216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4218 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4219 See \`config.log' for more details" "$LINENO" 5; }
4220 fi
4221
4222 ac_ext=c
4223 ac_cpp='$CPP $CPPFLAGS'
4224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4227
4228
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4230 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4231 if ${ac_cv_path_GREP+:} false; then :
4232 $as_echo_n "(cached) " >&6
4233 else
4234 if test -z "$GREP"; then
4235 ac_path_GREP_found=false
4236 # Loop through the user's path and test for each of PROGNAME-LIST
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4239 do
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
4242 for ac_prog in grep ggrep; do
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4245 as_fn_executable_p "$ac_path_GREP" || continue
4246 # Check for GNU ac_path_GREP and select it if it is found.
4247 # Check for GNU $ac_path_GREP
4248 case `"$ac_path_GREP" --version 2>&1` in
4249 *GNU*)
4250 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4251 *)
4252 ac_count=0
4253 $as_echo_n 0123456789 >"conftest.in"
4254 while :
4255 do
4256 cat "conftest.in" "conftest.in" >"conftest.tmp"
4257 mv "conftest.tmp" "conftest.in"
4258 cp "conftest.in" "conftest.nl"
4259 $as_echo 'GREP' >> "conftest.nl"
4260 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4262 as_fn_arith $ac_count + 1 && ac_count=$as_val
4263 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4264 # Best one so far, save it but keep looking for a better one
4265 ac_cv_path_GREP="$ac_path_GREP"
4266 ac_path_GREP_max=$ac_count
4267 fi
4268 # 10*(2^10) chars as input seems more than enough
4269 test $ac_count -gt 10 && break
4270 done
4271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4272 esac
4273
4274 $ac_path_GREP_found && break 3
4275 done
4276 done
4277 done
4278 IFS=$as_save_IFS
4279 if test -z "$ac_cv_path_GREP"; then
4280 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4281 fi
4282 else
4283 ac_cv_path_GREP=$GREP
4284 fi
4285
4286 fi
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4288 $as_echo "$ac_cv_path_GREP" >&6; }
4289 GREP="$ac_cv_path_GREP"
4290
4291
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4293 $as_echo_n "checking for egrep... " >&6; }
4294 if ${ac_cv_path_EGREP+:} false; then :
4295 $as_echo_n "(cached) " >&6
4296 else
4297 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4298 then ac_cv_path_EGREP="$GREP -E"
4299 else
4300 if test -z "$EGREP"; then
4301 ac_path_EGREP_found=false
4302 # Loop through the user's path and test for each of PROGNAME-LIST
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4305 do
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
4308 for ac_prog in egrep; do
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4311 as_fn_executable_p "$ac_path_EGREP" || continue
4312 # Check for GNU ac_path_EGREP and select it if it is found.
4313 # Check for GNU $ac_path_EGREP
4314 case `"$ac_path_EGREP" --version 2>&1` in
4315 *GNU*)
4316 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4317 *)
4318 ac_count=0
4319 $as_echo_n 0123456789 >"conftest.in"
4320 while :
4321 do
4322 cat "conftest.in" "conftest.in" >"conftest.tmp"
4323 mv "conftest.tmp" "conftest.in"
4324 cp "conftest.in" "conftest.nl"
4325 $as_echo 'EGREP' >> "conftest.nl"
4326 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4328 as_fn_arith $ac_count + 1 && ac_count=$as_val
4329 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4330 # Best one so far, save it but keep looking for a better one
4331 ac_cv_path_EGREP="$ac_path_EGREP"
4332 ac_path_EGREP_max=$ac_count
4333 fi
4334 # 10*(2^10) chars as input seems more than enough
4335 test $ac_count -gt 10 && break
4336 done
4337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4338 esac
4339
4340 $ac_path_EGREP_found && break 3
4341 done
4342 done
4343 done
4344 IFS=$as_save_IFS
4345 if test -z "$ac_cv_path_EGREP"; then
4346 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4347 fi
4348 else
4349 ac_cv_path_EGREP=$EGREP
4350 fi
4351
4352 fi
4353 fi
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4355 $as_echo "$ac_cv_path_EGREP" >&6; }
4356 EGREP="$ac_cv_path_EGREP"
4357
4358
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4360 $as_echo_n "checking for ANSI C header files... " >&6; }
4361 if ${ac_cv_header_stdc+:} false; then :
4362 $as_echo_n "(cached) " >&6
4363 else
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4366 #include <stdlib.h>
4367 #include <stdarg.h>
4368 #include <string.h>
4369 #include <float.h>
4370
4371 int
4372 main ()
4373 {
4374
4375 ;
4376 return 0;
4377 }
4378 _ACEOF
4379 if ac_fn_c_try_compile "$LINENO"; then :
4380 ac_cv_header_stdc=yes
4381 else
4382 ac_cv_header_stdc=no
4383 fi
4384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385
4386 if test $ac_cv_header_stdc = yes; then
4387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h. */
4390 #include <string.h>
4391
4392 _ACEOF
4393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4394 $EGREP "memchr" >/dev/null 2>&1; then :
4395
4396 else
4397 ac_cv_header_stdc=no
4398 fi
4399 rm -f conftest*
4400
4401 fi
4402
4403 if test $ac_cv_header_stdc = yes; then
4404 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h. */
4407 #include <stdlib.h>
4408
4409 _ACEOF
4410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4411 $EGREP "free" >/dev/null 2>&1; then :
4412
4413 else
4414 ac_cv_header_stdc=no
4415 fi
4416 rm -f conftest*
4417
4418 fi
4419
4420 if test $ac_cv_header_stdc = yes; then
4421 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4422 if test "$cross_compiling" = yes; then :
4423 :
4424 else
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4427 #include <ctype.h>
4428 #include <stdlib.h>
4429 #if ((' ' & 0x0FF) == 0x020)
4430 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4431 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4432 #else
4433 # define ISLOWER(c) \
4434 (('a' <= (c) && (c) <= 'i') \
4435 || ('j' <= (c) && (c) <= 'r') \
4436 || ('s' <= (c) && (c) <= 'z'))
4437 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4438 #endif
4439
4440 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4441 int
4442 main ()
4443 {
4444 int i;
4445 for (i = 0; i < 256; i++)
4446 if (XOR (islower (i), ISLOWER (i))
4447 || toupper (i) != TOUPPER (i))
4448 return 2;
4449 return 0;
4450 }
4451 _ACEOF
4452 if ac_fn_c_try_run "$LINENO"; then :
4453
4454 else
4455 ac_cv_header_stdc=no
4456 fi
4457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4458 conftest.$ac_objext conftest.beam conftest.$ac_ext
4459 fi
4460
4461 fi
4462 fi
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4464 $as_echo "$ac_cv_header_stdc" >&6; }
4465 if test $ac_cv_header_stdc = yes; then
4466
4467 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4468
4469 fi
4470
4471 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4472 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4473 inttypes.h stdint.h unistd.h
4474 do :
4475 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4476 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4477 "
4478 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4479 cat >>confdefs.h <<_ACEOF
4480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4481 _ACEOF
4482
4483 fi
4484
4485 done
4486
4487
4488
4489
4490
4491
4492 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4493 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4494 CLANGCC="yes"
4495 else
4496 CLANGCC="no"
4497 fi
4498
4499 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4500 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4501 INTELCC="yes"
4502 else
4503 INTELCC="no"
4504 fi
4505
4506 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4507 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4508 SUNCC="yes"
4509 else
4510 SUNCC="no"
4511 fi
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4522 if test -n "$ac_tool_prefix"; then
4523 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4524 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 case $PKG_CONFIG in
4531 [\\/]* | ?:[\\/]*)
4532 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4533 ;;
4534 *)
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4537 do
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4542 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4545 fi
4546 done
4547 done
4548 IFS=$as_save_IFS
4549
4550 ;;
4551 esac
4552 fi
4553 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4554 if test -n "$PKG_CONFIG"; then
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4556 $as_echo "$PKG_CONFIG" >&6; }
4557 else
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4560 fi
4561
4562
4563 fi
4564 if test -z "$ac_cv_path_PKG_CONFIG"; then
4565 ac_pt_PKG_CONFIG=$PKG_CONFIG
4566 # Extract the first word of "pkg-config", so it can be a program name with args.
4567 set dummy pkg-config; ac_word=$2
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569 $as_echo_n "checking for $ac_word... " >&6; }
4570 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4571 $as_echo_n "(cached) " >&6
4572 else
4573 case $ac_pt_PKG_CONFIG in
4574 [\\/]* | ?:[\\/]*)
4575 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4576 ;;
4577 *)
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4580 do
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4585 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 break 2
4588 fi
4589 done
4590 done
4591 IFS=$as_save_IFS
4592
4593 ;;
4594 esac
4595 fi
4596 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4597 if test -n "$ac_pt_PKG_CONFIG"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4599 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4600 else
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602 $as_echo "no" >&6; }
4603 fi
4604
4605 if test "x$ac_pt_PKG_CONFIG" = x; then
4606 PKG_CONFIG=""
4607 else
4608 case $cross_compiling:$ac_tool_warned in
4609 yes:)
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4612 ac_tool_warned=yes ;;
4613 esac
4614 PKG_CONFIG=$ac_pt_PKG_CONFIG
4615 fi
4616 else
4617 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4618 fi
4619
4620 fi
4621 if test -n "$PKG_CONFIG"; then
4622 _pkg_min_version=0.9.0
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4624 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4625 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4627 $as_echo "yes" >&6; }
4628 else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4631 PKG_CONFIG=""
4632 fi
4633 fi
4634 # Make sure we can run config.sub.
4635 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4636 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4637
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4639 $as_echo_n "checking build system type... " >&6; }
4640 if ${ac_cv_build+:} false; then :
4641 $as_echo_n "(cached) " >&6
4642 else
4643 ac_build_alias=$build_alias
4644 test "x$ac_build_alias" = x &&
4645 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4646 test "x$ac_build_alias" = x &&
4647 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4648 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4649 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4650
4651 fi
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4653 $as_echo "$ac_cv_build" >&6; }
4654 case $ac_cv_build in
4655 *-*-*) ;;
4656 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4657 esac
4658 build=$ac_cv_build
4659 ac_save_IFS=$IFS; IFS='-'
4660 set x $ac_cv_build
4661 shift
4662 build_cpu=$1
4663 build_vendor=$2
4664 shift; shift
4665 # Remember, the first character of IFS is used to create $*,
4666 # except with old shells:
4667 build_os=$*
4668 IFS=$ac_save_IFS
4669 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4670
4671
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4673 $as_echo_n "checking host system type... " >&6; }
4674 if ${ac_cv_host+:} false; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 if test "x$host_alias" = x; then
4678 ac_cv_host=$ac_cv_build
4679 else
4680 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4681 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4682 fi
4683
4684 fi
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4686 $as_echo "$ac_cv_host" >&6; }
4687 case $ac_cv_host in
4688 *-*-*) ;;
4689 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4690 esac
4691 host=$ac_cv_host
4692 ac_save_IFS=$IFS; IFS='-'
4693 set x $ac_cv_host
4694 shift
4695 host_cpu=$1
4696 host_vendor=$2
4697 shift; shift
4698 # Remember, the first character of IFS is used to create $*,
4699 # except with old shells:
4700 host_os=$*
4701 IFS=$ac_save_IFS
4702 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4703
4704
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4706 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4707 if ${ac_cv_path_SED+:} false; then :
4708 $as_echo_n "(cached) " >&6
4709 else
4710 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4711 for ac_i in 1 2 3 4 5 6 7; do
4712 ac_script="$ac_script$as_nl$ac_script"
4713 done
4714 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4715 { ac_script=; unset ac_script;}
4716 if test -z "$SED"; then
4717 ac_path_SED_found=false
4718 # Loop through the user's path and test for each of PROGNAME-LIST
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH
4721 do
4722 IFS=$as_save_IFS
4723 test -z "$as_dir" && as_dir=.
4724 for ac_prog in sed gsed; do
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4727 as_fn_executable_p "$ac_path_SED" || continue
4728 # Check for GNU ac_path_SED and select it if it is found.
4729 # Check for GNU $ac_path_SED
4730 case `"$ac_path_SED" --version 2>&1` in
4731 *GNU*)
4732 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4733 *)
4734 ac_count=0
4735 $as_echo_n 0123456789 >"conftest.in"
4736 while :
4737 do
4738 cat "conftest.in" "conftest.in" >"conftest.tmp"
4739 mv "conftest.tmp" "conftest.in"
4740 cp "conftest.in" "conftest.nl"
4741 $as_echo '' >> "conftest.nl"
4742 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4743 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4744 as_fn_arith $ac_count + 1 && ac_count=$as_val
4745 if test $ac_count -gt ${ac_path_SED_max-0}; then
4746 # Best one so far, save it but keep looking for a better one
4747 ac_cv_path_SED="$ac_path_SED"
4748 ac_path_SED_max=$ac_count
4749 fi
4750 # 10*(2^10) chars as input seems more than enough
4751 test $ac_count -gt 10 && break
4752 done
4753 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4754 esac
4755
4756 $ac_path_SED_found && break 3
4757 done
4758 done
4759 done
4760 IFS=$as_save_IFS
4761 if test -z "$ac_cv_path_SED"; then
4762 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4763 fi
4764 else
4765 ac_cv_path_SED=$SED
4766 fi
4767
4768 fi
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4770 $as_echo "$ac_cv_path_SED" >&6; }
4771 SED="$ac_cv_path_SED"
4772 rm -f conftest.sed
4773
4774
4775
4776
4777
4778
4779 # Check whether --enable-selective-werror was given.
4780 if test "${enable_selective_werror+set}" = set; then :
4781 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4782 else
4783 SELECTIVE_WERROR=yes
4784 fi
4785
4786
4787
4788
4789
4790 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4791 if test "x$SUNCC" = "xyes"; then
4792 BASE_CFLAGS="-v"
4793 else
4794 BASE_CFLAGS=""
4795 fi
4796
4797 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811 xorg_testset_save_CFLAGS="$CFLAGS"
4812
4813 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4816 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4817 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4822 int i;
4823 _ACEOF
4824 if ac_fn_c_try_compile "$LINENO"; then :
4825 xorg_cv_cc_flag_unknown_warning_option=yes
4826 else
4827 xorg_cv_cc_flag_unknown_warning_option=no
4828 fi
4829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4830 fi
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4832 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4833 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4834 CFLAGS="$xorg_testset_save_CFLAGS"
4835 fi
4836
4837 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4840 fi
4841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4843 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4844 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4849 int i;
4850 _ACEOF
4851 if ac_fn_c_try_compile "$LINENO"; then :
4852 xorg_cv_cc_flag_unused_command_line_argument=yes
4853 else
4854 xorg_cv_cc_flag_unused_command_line_argument=no
4855 fi
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 fi
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4859 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4860 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4861 CFLAGS="$xorg_testset_save_CFLAGS"
4862 fi
4863
4864 found="no"
4865
4866 if test $found = "no" ; then
4867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4869 fi
4870
4871 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4873 fi
4874
4875 CFLAGS="$CFLAGS -Wall"
4876
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4878 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4879 cacheid=xorg_cv_cc_flag__Wall
4880 if eval \${$cacheid+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4885 int i;
4886 int
4887 main ()
4888 {
4889
4890 ;
4891 return 0;
4892 }
4893 _ACEOF
4894 if ac_fn_c_try_link "$LINENO"; then :
4895 eval $cacheid=yes
4896 else
4897 eval $cacheid=no
4898 fi
4899 rm -f core conftest.err conftest.$ac_objext \
4900 conftest$ac_exeext conftest.$ac_ext
4901 fi
4902
4903
4904 CFLAGS="$xorg_testset_save_CFLAGS"
4905
4906 eval supported=\$$cacheid
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4908 $as_echo "$supported" >&6; }
4909 if test "$supported" = "yes" ; then
4910 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4911 found="yes"
4912 fi
4913 fi
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929 xorg_testset_save_CFLAGS="$CFLAGS"
4930
4931 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4934 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4935 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4936 $as_echo_n "(cached) " >&6
4937 else
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4940 int i;
4941 _ACEOF
4942 if ac_fn_c_try_compile "$LINENO"; then :
4943 xorg_cv_cc_flag_unknown_warning_option=yes
4944 else
4945 xorg_cv_cc_flag_unknown_warning_option=no
4946 fi
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948 fi
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4950 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4951 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4952 CFLAGS="$xorg_testset_save_CFLAGS"
4953 fi
4954
4955 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4958 fi
4959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4961 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4962 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4967 int i;
4968 _ACEOF
4969 if ac_fn_c_try_compile "$LINENO"; then :
4970 xorg_cv_cc_flag_unused_command_line_argument=yes
4971 else
4972 xorg_cv_cc_flag_unused_command_line_argument=no
4973 fi
4974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 fi
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4977 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4978 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4979 CFLAGS="$xorg_testset_save_CFLAGS"
4980 fi
4981
4982 found="no"
4983
4984 if test $found = "no" ; then
4985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4987 fi
4988
4989 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4991 fi
4992
4993 CFLAGS="$CFLAGS -Wpointer-arith"
4994
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4996 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4997 cacheid=xorg_cv_cc_flag__Wpointer_arith
4998 if eval \${$cacheid+:} false; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5003 int i;
5004 int
5005 main ()
5006 {
5007
5008 ;
5009 return 0;
5010 }
5011 _ACEOF
5012 if ac_fn_c_try_link "$LINENO"; then :
5013 eval $cacheid=yes
5014 else
5015 eval $cacheid=no
5016 fi
5017 rm -f core conftest.err conftest.$ac_objext \
5018 conftest$ac_exeext conftest.$ac_ext
5019 fi
5020
5021
5022 CFLAGS="$xorg_testset_save_CFLAGS"
5023
5024 eval supported=\$$cacheid
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5026 $as_echo "$supported" >&6; }
5027 if test "$supported" = "yes" ; then
5028 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5029 found="yes"
5030 fi
5031 fi
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047 xorg_testset_save_CFLAGS="$CFLAGS"
5048
5049 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5052 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5053 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5054 $as_echo_n "(cached) " >&6
5055 else
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5058 int i;
5059 _ACEOF
5060 if ac_fn_c_try_compile "$LINENO"; then :
5061 xorg_cv_cc_flag_unknown_warning_option=yes
5062 else
5063 xorg_cv_cc_flag_unknown_warning_option=no
5064 fi
5065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5066 fi
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5068 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5070 CFLAGS="$xorg_testset_save_CFLAGS"
5071 fi
5072
5073 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5076 fi
5077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5079 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5080 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5081 $as_echo_n "(cached) " >&6
5082 else
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5085 int i;
5086 _ACEOF
5087 if ac_fn_c_try_compile "$LINENO"; then :
5088 xorg_cv_cc_flag_unused_command_line_argument=yes
5089 else
5090 xorg_cv_cc_flag_unused_command_line_argument=no
5091 fi
5092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5093 fi
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5095 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5097 CFLAGS="$xorg_testset_save_CFLAGS"
5098 fi
5099
5100 found="no"
5101
5102 if test $found = "no" ; then
5103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5105 fi
5106
5107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5109 fi
5110
5111 CFLAGS="$CFLAGS -Wmissing-declarations"
5112
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5114 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5115 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5116 if eval \${$cacheid+:} false; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5121 int i;
5122 int
5123 main ()
5124 {
5125
5126 ;
5127 return 0;
5128 }
5129 _ACEOF
5130 if ac_fn_c_try_link "$LINENO"; then :
5131 eval $cacheid=yes
5132 else
5133 eval $cacheid=no
5134 fi
5135 rm -f core conftest.err conftest.$ac_objext \
5136 conftest$ac_exeext conftest.$ac_ext
5137 fi
5138
5139
5140 CFLAGS="$xorg_testset_save_CFLAGS"
5141
5142 eval supported=\$$cacheid
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5144 $as_echo "$supported" >&6; }
5145 if test "$supported" = "yes" ; then
5146 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5147 found="yes"
5148 fi
5149 fi
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165 xorg_testset_save_CFLAGS="$CFLAGS"
5166
5167 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5170 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5171 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5172 $as_echo_n "(cached) " >&6
5173 else
5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5176 int i;
5177 _ACEOF
5178 if ac_fn_c_try_compile "$LINENO"; then :
5179 xorg_cv_cc_flag_unknown_warning_option=yes
5180 else
5181 xorg_cv_cc_flag_unknown_warning_option=no
5182 fi
5183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5184 fi
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5186 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5188 CFLAGS="$xorg_testset_save_CFLAGS"
5189 fi
5190
5191 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5194 fi
5195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5197 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5198 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5199 $as_echo_n "(cached) " >&6
5200 else
5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5203 int i;
5204 _ACEOF
5205 if ac_fn_c_try_compile "$LINENO"; then :
5206 xorg_cv_cc_flag_unused_command_line_argument=yes
5207 else
5208 xorg_cv_cc_flag_unused_command_line_argument=no
5209 fi
5210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211 fi
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5213 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5215 CFLAGS="$xorg_testset_save_CFLAGS"
5216 fi
5217
5218 found="no"
5219
5220 if test $found = "no" ; then
5221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5223 fi
5224
5225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5227 fi
5228
5229 CFLAGS="$CFLAGS -Wformat=2"
5230
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5232 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5233 cacheid=xorg_cv_cc_flag__Wformat_2
5234 if eval \${$cacheid+:} false; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239 int i;
5240 int
5241 main ()
5242 {
5243
5244 ;
5245 return 0;
5246 }
5247 _ACEOF
5248 if ac_fn_c_try_link "$LINENO"; then :
5249 eval $cacheid=yes
5250 else
5251 eval $cacheid=no
5252 fi
5253 rm -f core conftest.err conftest.$ac_objext \
5254 conftest$ac_exeext conftest.$ac_ext
5255 fi
5256
5257
5258 CFLAGS="$xorg_testset_save_CFLAGS"
5259
5260 eval supported=\$$cacheid
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5262 $as_echo "$supported" >&6; }
5263 if test "$supported" = "yes" ; then
5264 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5265 found="yes"
5266 fi
5267 fi
5268
5269 if test $found = "no" ; then
5270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5272 fi
5273
5274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5276 fi
5277
5278 CFLAGS="$CFLAGS -Wformat"
5279
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5281 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5282 cacheid=xorg_cv_cc_flag__Wformat
5283 if eval \${$cacheid+:} false; then :
5284 $as_echo_n "(cached) " >&6
5285 else
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5288 int i;
5289 int
5290 main ()
5291 {
5292
5293 ;
5294 return 0;
5295 }
5296 _ACEOF
5297 if ac_fn_c_try_link "$LINENO"; then :
5298 eval $cacheid=yes
5299 else
5300 eval $cacheid=no
5301 fi
5302 rm -f core conftest.err conftest.$ac_objext \
5303 conftest$ac_exeext conftest.$ac_ext
5304 fi
5305
5306
5307 CFLAGS="$xorg_testset_save_CFLAGS"
5308
5309 eval supported=\$$cacheid
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5311 $as_echo "$supported" >&6; }
5312 if test "$supported" = "yes" ; then
5313 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5314 found="yes"
5315 fi
5316 fi
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334 xorg_testset_save_CFLAGS="$CFLAGS"
5335
5336 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5339 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5340 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5341 $as_echo_n "(cached) " >&6
5342 else
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5345 int i;
5346 _ACEOF
5347 if ac_fn_c_try_compile "$LINENO"; then :
5348 xorg_cv_cc_flag_unknown_warning_option=yes
5349 else
5350 xorg_cv_cc_flag_unknown_warning_option=no
5351 fi
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 fi
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5355 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5357 CFLAGS="$xorg_testset_save_CFLAGS"
5358 fi
5359
5360 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5363 fi
5364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5366 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5367 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5372 int i;
5373 _ACEOF
5374 if ac_fn_c_try_compile "$LINENO"; then :
5375 xorg_cv_cc_flag_unused_command_line_argument=yes
5376 else
5377 xorg_cv_cc_flag_unused_command_line_argument=no
5378 fi
5379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 fi
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5382 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5383 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5384 CFLAGS="$xorg_testset_save_CFLAGS"
5385 fi
5386
5387 found="no"
5388
5389 if test $found = "no" ; then
5390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5392 fi
5393
5394 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5396 fi
5397
5398 CFLAGS="$CFLAGS -Wstrict-prototypes"
5399
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5401 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5402 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5403 if eval \${$cacheid+:} false; then :
5404 $as_echo_n "(cached) " >&6
5405 else
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5408 int i;
5409 int
5410 main ()
5411 {
5412
5413 ;
5414 return 0;
5415 }
5416 _ACEOF
5417 if ac_fn_c_try_link "$LINENO"; then :
5418 eval $cacheid=yes
5419 else
5420 eval $cacheid=no
5421 fi
5422 rm -f core conftest.err conftest.$ac_objext \
5423 conftest$ac_exeext conftest.$ac_ext
5424 fi
5425
5426
5427 CFLAGS="$xorg_testset_save_CFLAGS"
5428
5429 eval supported=\$$cacheid
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5431 $as_echo "$supported" >&6; }
5432 if test "$supported" = "yes" ; then
5433 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5434 found="yes"
5435 fi
5436 fi
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452 xorg_testset_save_CFLAGS="$CFLAGS"
5453
5454 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5457 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5458 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5463 int i;
5464 _ACEOF
5465 if ac_fn_c_try_compile "$LINENO"; then :
5466 xorg_cv_cc_flag_unknown_warning_option=yes
5467 else
5468 xorg_cv_cc_flag_unknown_warning_option=no
5469 fi
5470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 fi
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5473 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5475 CFLAGS="$xorg_testset_save_CFLAGS"
5476 fi
5477
5478 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5481 fi
5482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5484 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5485 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5490 int i;
5491 _ACEOF
5492 if ac_fn_c_try_compile "$LINENO"; then :
5493 xorg_cv_cc_flag_unused_command_line_argument=yes
5494 else
5495 xorg_cv_cc_flag_unused_command_line_argument=no
5496 fi
5497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498 fi
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5500 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5501 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5502 CFLAGS="$xorg_testset_save_CFLAGS"
5503 fi
5504
5505 found="no"
5506
5507 if test $found = "no" ; then
5508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5510 fi
5511
5512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5514 fi
5515
5516 CFLAGS="$CFLAGS -Wmissing-prototypes"
5517
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5519 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5520 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5521 if eval \${$cacheid+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5526 int i;
5527 int
5528 main ()
5529 {
5530
5531 ;
5532 return 0;
5533 }
5534 _ACEOF
5535 if ac_fn_c_try_link "$LINENO"; then :
5536 eval $cacheid=yes
5537 else
5538 eval $cacheid=no
5539 fi
5540 rm -f core conftest.err conftest.$ac_objext \
5541 conftest$ac_exeext conftest.$ac_ext
5542 fi
5543
5544
5545 CFLAGS="$xorg_testset_save_CFLAGS"
5546
5547 eval supported=\$$cacheid
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5549 $as_echo "$supported" >&6; }
5550 if test "$supported" = "yes" ; then
5551 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5552 found="yes"
5553 fi
5554 fi
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570 xorg_testset_save_CFLAGS="$CFLAGS"
5571
5572 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5575 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5576 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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 _ACEOF
5583 if ac_fn_c_try_compile "$LINENO"; then :
5584 xorg_cv_cc_flag_unknown_warning_option=yes
5585 else
5586 xorg_cv_cc_flag_unknown_warning_option=no
5587 fi
5588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589 fi
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5591 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5593 CFLAGS="$xorg_testset_save_CFLAGS"
5594 fi
5595
5596 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5599 fi
5600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5602 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5603 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5608 int i;
5609 _ACEOF
5610 if ac_fn_c_try_compile "$LINENO"; then :
5611 xorg_cv_cc_flag_unused_command_line_argument=yes
5612 else
5613 xorg_cv_cc_flag_unused_command_line_argument=no
5614 fi
5615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616 fi
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5618 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5620 CFLAGS="$xorg_testset_save_CFLAGS"
5621 fi
5622
5623 found="no"
5624
5625 if test $found = "no" ; then
5626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5628 fi
5629
5630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5632 fi
5633
5634 CFLAGS="$CFLAGS -Wnested-externs"
5635
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5637 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5638 cacheid=xorg_cv_cc_flag__Wnested_externs
5639 if eval \${$cacheid+:} false; then :
5640 $as_echo_n "(cached) " >&6
5641 else
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 int i;
5645 int
5646 main ()
5647 {
5648
5649 ;
5650 return 0;
5651 }
5652 _ACEOF
5653 if ac_fn_c_try_link "$LINENO"; then :
5654 eval $cacheid=yes
5655 else
5656 eval $cacheid=no
5657 fi
5658 rm -f core conftest.err conftest.$ac_objext \
5659 conftest$ac_exeext conftest.$ac_ext
5660 fi
5661
5662
5663 CFLAGS="$xorg_testset_save_CFLAGS"
5664
5665 eval supported=\$$cacheid
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5667 $as_echo "$supported" >&6; }
5668 if test "$supported" = "yes" ; then
5669 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5670 found="yes"
5671 fi
5672 fi
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688 xorg_testset_save_CFLAGS="$CFLAGS"
5689
5690 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5693 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5694 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5695 $as_echo_n "(cached) " >&6
5696 else
5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h. */
5699 int i;
5700 _ACEOF
5701 if ac_fn_c_try_compile "$LINENO"; then :
5702 xorg_cv_cc_flag_unknown_warning_option=yes
5703 else
5704 xorg_cv_cc_flag_unknown_warning_option=no
5705 fi
5706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707 fi
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5709 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5711 CFLAGS="$xorg_testset_save_CFLAGS"
5712 fi
5713
5714 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5717 fi
5718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5720 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5721 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5722 $as_echo_n "(cached) " >&6
5723 else
5724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725 /* end confdefs.h. */
5726 int i;
5727 _ACEOF
5728 if ac_fn_c_try_compile "$LINENO"; then :
5729 xorg_cv_cc_flag_unused_command_line_argument=yes
5730 else
5731 xorg_cv_cc_flag_unused_command_line_argument=no
5732 fi
5733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5734 fi
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5736 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5738 CFLAGS="$xorg_testset_save_CFLAGS"
5739 fi
5740
5741 found="no"
5742
5743 if test $found = "no" ; then
5744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5746 fi
5747
5748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5750 fi
5751
5752 CFLAGS="$CFLAGS -Wbad-function-cast"
5753
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5755 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5756 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5757 if eval \${$cacheid+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762 int i;
5763 int
5764 main ()
5765 {
5766
5767 ;
5768 return 0;
5769 }
5770 _ACEOF
5771 if ac_fn_c_try_link "$LINENO"; then :
5772 eval $cacheid=yes
5773 else
5774 eval $cacheid=no
5775 fi
5776 rm -f core conftest.err conftest.$ac_objext \
5777 conftest$ac_exeext conftest.$ac_ext
5778 fi
5779
5780
5781 CFLAGS="$xorg_testset_save_CFLAGS"
5782
5783 eval supported=\$$cacheid
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5785 $as_echo "$supported" >&6; }
5786 if test "$supported" = "yes" ; then
5787 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5788 found="yes"
5789 fi
5790 fi
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806 xorg_testset_save_CFLAGS="$CFLAGS"
5807
5808 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5811 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5812 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5813 $as_echo_n "(cached) " >&6
5814 else
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5817 int i;
5818 _ACEOF
5819 if ac_fn_c_try_compile "$LINENO"; then :
5820 xorg_cv_cc_flag_unknown_warning_option=yes
5821 else
5822 xorg_cv_cc_flag_unknown_warning_option=no
5823 fi
5824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5825 fi
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5827 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5829 CFLAGS="$xorg_testset_save_CFLAGS"
5830 fi
5831
5832 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5835 fi
5836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5838 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5839 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5844 int i;
5845 _ACEOF
5846 if ac_fn_c_try_compile "$LINENO"; then :
5847 xorg_cv_cc_flag_unused_command_line_argument=yes
5848 else
5849 xorg_cv_cc_flag_unused_command_line_argument=no
5850 fi
5851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852 fi
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5854 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5856 CFLAGS="$xorg_testset_save_CFLAGS"
5857 fi
5858
5859 found="no"
5860
5861 if test $found = "no" ; then
5862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5864 fi
5865
5866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5868 fi
5869
5870 CFLAGS="$CFLAGS -Wold-style-definition"
5871
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5873 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5874 cacheid=xorg_cv_cc_flag__Wold_style_definition
5875 if eval \${$cacheid+:} false; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879 /* end confdefs.h. */
5880 int i;
5881 int
5882 main ()
5883 {
5884
5885 ;
5886 return 0;
5887 }
5888 _ACEOF
5889 if ac_fn_c_try_link "$LINENO"; then :
5890 eval $cacheid=yes
5891 else
5892 eval $cacheid=no
5893 fi
5894 rm -f core conftest.err conftest.$ac_objext \
5895 conftest$ac_exeext conftest.$ac_ext
5896 fi
5897
5898
5899 CFLAGS="$xorg_testset_save_CFLAGS"
5900
5901 eval supported=\$$cacheid
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5903 $as_echo "$supported" >&6; }
5904 if test "$supported" = "yes" ; then
5905 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5906 found="yes"
5907 fi
5908 fi
5909
5910 if test $found = "no" ; then
5911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5913 fi
5914
5915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5917 fi
5918
5919 CFLAGS="$CFLAGS -fd"
5920
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5922 $as_echo_n "checking if $CC supports -fd... " >&6; }
5923 cacheid=xorg_cv_cc_flag__fd
5924 if eval \${$cacheid+:} false; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928 /* end confdefs.h. */
5929 int i;
5930 int
5931 main ()
5932 {
5933
5934 ;
5935 return 0;
5936 }
5937 _ACEOF
5938 if ac_fn_c_try_link "$LINENO"; then :
5939 eval $cacheid=yes
5940 else
5941 eval $cacheid=no
5942 fi
5943 rm -f core conftest.err conftest.$ac_objext \
5944 conftest$ac_exeext conftest.$ac_ext
5945 fi
5946
5947
5948 CFLAGS="$xorg_testset_save_CFLAGS"
5949
5950 eval supported=\$$cacheid
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5952 $as_echo "$supported" >&6; }
5953 if test "$supported" = "yes" ; then
5954 BASE_CFLAGS="$BASE_CFLAGS -fd"
5955 found="yes"
5956 fi
5957 fi
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973 xorg_testset_save_CFLAGS="$CFLAGS"
5974
5975 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5978 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5979 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5980 $as_echo_n "(cached) " >&6
5981 else
5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5984 int i;
5985 _ACEOF
5986 if ac_fn_c_try_compile "$LINENO"; then :
5987 xorg_cv_cc_flag_unknown_warning_option=yes
5988 else
5989 xorg_cv_cc_flag_unknown_warning_option=no
5990 fi
5991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992 fi
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5994 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5996 CFLAGS="$xorg_testset_save_CFLAGS"
5997 fi
5998
5999 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6002 fi
6003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6005 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6006 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6007 $as_echo_n "(cached) " >&6
6008 else
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011 int i;
6012 _ACEOF
6013 if ac_fn_c_try_compile "$LINENO"; then :
6014 xorg_cv_cc_flag_unused_command_line_argument=yes
6015 else
6016 xorg_cv_cc_flag_unused_command_line_argument=no
6017 fi
6018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 fi
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6021 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6023 CFLAGS="$xorg_testset_save_CFLAGS"
6024 fi
6025
6026 found="no"
6027
6028 if test $found = "no" ; then
6029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6031 fi
6032
6033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6035 fi
6036
6037 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6038
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6040 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6041 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6042 if eval \${$cacheid+:} false; then :
6043 $as_echo_n "(cached) " >&6
6044 else
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6047 int i;
6048 int
6049 main ()
6050 {
6051
6052 ;
6053 return 0;
6054 }
6055 _ACEOF
6056 if ac_fn_c_try_link "$LINENO"; then :
6057 eval $cacheid=yes
6058 else
6059 eval $cacheid=no
6060 fi
6061 rm -f core conftest.err conftest.$ac_objext \
6062 conftest$ac_exeext conftest.$ac_ext
6063 fi
6064
6065
6066 CFLAGS="$xorg_testset_save_CFLAGS"
6067
6068 eval supported=\$$cacheid
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6070 $as_echo "$supported" >&6; }
6071 if test "$supported" = "yes" ; then
6072 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6073 found="yes"
6074 fi
6075 fi
6076
6077
6078
6079
6080
6081 # This chunk adds additional warnings that could catch undesired effects.
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095 xorg_testset_save_CFLAGS="$CFLAGS"
6096
6097 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6100 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6101 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6102 $as_echo_n "(cached) " >&6
6103 else
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6106 int i;
6107 _ACEOF
6108 if ac_fn_c_try_compile "$LINENO"; then :
6109 xorg_cv_cc_flag_unknown_warning_option=yes
6110 else
6111 xorg_cv_cc_flag_unknown_warning_option=no
6112 fi
6113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6114 fi
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6116 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6118 CFLAGS="$xorg_testset_save_CFLAGS"
6119 fi
6120
6121 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6124 fi
6125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6127 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6128 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6133 int i;
6134 _ACEOF
6135 if ac_fn_c_try_compile "$LINENO"; then :
6136 xorg_cv_cc_flag_unused_command_line_argument=yes
6137 else
6138 xorg_cv_cc_flag_unused_command_line_argument=no
6139 fi
6140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6141 fi
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6143 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6145 CFLAGS="$xorg_testset_save_CFLAGS"
6146 fi
6147
6148 found="no"
6149
6150 if test $found = "no" ; then
6151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6153 fi
6154
6155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6157 fi
6158
6159 CFLAGS="$CFLAGS -Wunused"
6160
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6162 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6163 cacheid=xorg_cv_cc_flag__Wunused
6164 if eval \${$cacheid+:} false; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h. */
6169 int i;
6170 int
6171 main ()
6172 {
6173
6174 ;
6175 return 0;
6176 }
6177 _ACEOF
6178 if ac_fn_c_try_link "$LINENO"; then :
6179 eval $cacheid=yes
6180 else
6181 eval $cacheid=no
6182 fi
6183 rm -f core conftest.err conftest.$ac_objext \
6184 conftest$ac_exeext conftest.$ac_ext
6185 fi
6186
6187
6188 CFLAGS="$xorg_testset_save_CFLAGS"
6189
6190 eval supported=\$$cacheid
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6192 $as_echo "$supported" >&6; }
6193 if test "$supported" = "yes" ; then
6194 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6195 found="yes"
6196 fi
6197 fi
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213 xorg_testset_save_CFLAGS="$CFLAGS"
6214
6215 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6218 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6219 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6220 $as_echo_n "(cached) " >&6
6221 else
6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6224 int i;
6225 _ACEOF
6226 if ac_fn_c_try_compile "$LINENO"; then :
6227 xorg_cv_cc_flag_unknown_warning_option=yes
6228 else
6229 xorg_cv_cc_flag_unknown_warning_option=no
6230 fi
6231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232 fi
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6234 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6236 CFLAGS="$xorg_testset_save_CFLAGS"
6237 fi
6238
6239 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6242 fi
6243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6245 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6246 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6247 $as_echo_n "(cached) " >&6
6248 else
6249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h. */
6251 int i;
6252 _ACEOF
6253 if ac_fn_c_try_compile "$LINENO"; then :
6254 xorg_cv_cc_flag_unused_command_line_argument=yes
6255 else
6256 xorg_cv_cc_flag_unused_command_line_argument=no
6257 fi
6258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259 fi
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6261 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6263 CFLAGS="$xorg_testset_save_CFLAGS"
6264 fi
6265
6266 found="no"
6267
6268 if test $found = "no" ; then
6269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6271 fi
6272
6273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6275 fi
6276
6277 CFLAGS="$CFLAGS -Wuninitialized"
6278
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6280 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6281 cacheid=xorg_cv_cc_flag__Wuninitialized
6282 if eval \${$cacheid+:} false; then :
6283 $as_echo_n "(cached) " >&6
6284 else
6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6287 int i;
6288 int
6289 main ()
6290 {
6291
6292 ;
6293 return 0;
6294 }
6295 _ACEOF
6296 if ac_fn_c_try_link "$LINENO"; then :
6297 eval $cacheid=yes
6298 else
6299 eval $cacheid=no
6300 fi
6301 rm -f core conftest.err conftest.$ac_objext \
6302 conftest$ac_exeext conftest.$ac_ext
6303 fi
6304
6305
6306 CFLAGS="$xorg_testset_save_CFLAGS"
6307
6308 eval supported=\$$cacheid
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6310 $as_echo "$supported" >&6; }
6311 if test "$supported" = "yes" ; then
6312 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6313 found="yes"
6314 fi
6315 fi
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331 xorg_testset_save_CFLAGS="$CFLAGS"
6332
6333 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6336 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6337 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6338 $as_echo_n "(cached) " >&6
6339 else
6340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6341 /* end confdefs.h. */
6342 int i;
6343 _ACEOF
6344 if ac_fn_c_try_compile "$LINENO"; then :
6345 xorg_cv_cc_flag_unknown_warning_option=yes
6346 else
6347 xorg_cv_cc_flag_unknown_warning_option=no
6348 fi
6349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350 fi
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6352 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6354 CFLAGS="$xorg_testset_save_CFLAGS"
6355 fi
6356
6357 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6360 fi
6361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6363 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6364 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6365 $as_echo_n "(cached) " >&6
6366 else
6367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368 /* end confdefs.h. */
6369 int i;
6370 _ACEOF
6371 if ac_fn_c_try_compile "$LINENO"; then :
6372 xorg_cv_cc_flag_unused_command_line_argument=yes
6373 else
6374 xorg_cv_cc_flag_unused_command_line_argument=no
6375 fi
6376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377 fi
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6379 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6381 CFLAGS="$xorg_testset_save_CFLAGS"
6382 fi
6383
6384 found="no"
6385
6386 if test $found = "no" ; then
6387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6389 fi
6390
6391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6393 fi
6394
6395 CFLAGS="$CFLAGS -Wshadow"
6396
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6398 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6399 cacheid=xorg_cv_cc_flag__Wshadow
6400 if eval \${$cacheid+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h. */
6405 int i;
6406 int
6407 main ()
6408 {
6409
6410 ;
6411 return 0;
6412 }
6413 _ACEOF
6414 if ac_fn_c_try_link "$LINENO"; then :
6415 eval $cacheid=yes
6416 else
6417 eval $cacheid=no
6418 fi
6419 rm -f core conftest.err conftest.$ac_objext \
6420 conftest$ac_exeext conftest.$ac_ext
6421 fi
6422
6423
6424 CFLAGS="$xorg_testset_save_CFLAGS"
6425
6426 eval supported=\$$cacheid
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6428 $as_echo "$supported" >&6; }
6429 if test "$supported" = "yes" ; then
6430 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6431 found="yes"
6432 fi
6433 fi
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449 xorg_testset_save_CFLAGS="$CFLAGS"
6450
6451 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6454 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6455 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6456 $as_echo_n "(cached) " >&6
6457 else
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 int i;
6461 _ACEOF
6462 if ac_fn_c_try_compile "$LINENO"; then :
6463 xorg_cv_cc_flag_unknown_warning_option=yes
6464 else
6465 xorg_cv_cc_flag_unknown_warning_option=no
6466 fi
6467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468 fi
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6470 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6471 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6472 CFLAGS="$xorg_testset_save_CFLAGS"
6473 fi
6474
6475 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6478 fi
6479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6481 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6482 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6486 /* end confdefs.h. */
6487 int i;
6488 _ACEOF
6489 if ac_fn_c_try_compile "$LINENO"; then :
6490 xorg_cv_cc_flag_unused_command_line_argument=yes
6491 else
6492 xorg_cv_cc_flag_unused_command_line_argument=no
6493 fi
6494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6495 fi
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6497 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6498 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6499 CFLAGS="$xorg_testset_save_CFLAGS"
6500 fi
6501
6502 found="no"
6503
6504 if test $found = "no" ; then
6505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6507 fi
6508
6509 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6511 fi
6512
6513 CFLAGS="$CFLAGS -Wmissing-noreturn"
6514
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6516 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6517 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6518 if eval \${$cacheid+:} false; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6523 int i;
6524 int
6525 main ()
6526 {
6527
6528 ;
6529 return 0;
6530 }
6531 _ACEOF
6532 if ac_fn_c_try_link "$LINENO"; then :
6533 eval $cacheid=yes
6534 else
6535 eval $cacheid=no
6536 fi
6537 rm -f core conftest.err conftest.$ac_objext \
6538 conftest$ac_exeext conftest.$ac_ext
6539 fi
6540
6541
6542 CFLAGS="$xorg_testset_save_CFLAGS"
6543
6544 eval supported=\$$cacheid
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6546 $as_echo "$supported" >&6; }
6547 if test "$supported" = "yes" ; then
6548 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6549 found="yes"
6550 fi
6551 fi
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567 xorg_testset_save_CFLAGS="$CFLAGS"
6568
6569 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6572 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6573 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577 /* end confdefs.h. */
6578 int i;
6579 _ACEOF
6580 if ac_fn_c_try_compile "$LINENO"; then :
6581 xorg_cv_cc_flag_unknown_warning_option=yes
6582 else
6583 xorg_cv_cc_flag_unknown_warning_option=no
6584 fi
6585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6586 fi
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6588 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6589 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6590 CFLAGS="$xorg_testset_save_CFLAGS"
6591 fi
6592
6593 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6596 fi
6597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6599 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6600 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6601 $as_echo_n "(cached) " >&6
6602 else
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6605 int i;
6606 _ACEOF
6607 if ac_fn_c_try_compile "$LINENO"; then :
6608 xorg_cv_cc_flag_unused_command_line_argument=yes
6609 else
6610 xorg_cv_cc_flag_unused_command_line_argument=no
6611 fi
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 fi
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6615 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6617 CFLAGS="$xorg_testset_save_CFLAGS"
6618 fi
6619
6620 found="no"
6621
6622 if test $found = "no" ; then
6623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6625 fi
6626
6627 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6629 fi
6630
6631 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6632
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6634 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6635 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6636 if eval \${$cacheid+:} false; then :
6637 $as_echo_n "(cached) " >&6
6638 else
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6641 int i;
6642 int
6643 main ()
6644 {
6645
6646 ;
6647 return 0;
6648 }
6649 _ACEOF
6650 if ac_fn_c_try_link "$LINENO"; then :
6651 eval $cacheid=yes
6652 else
6653 eval $cacheid=no
6654 fi
6655 rm -f core conftest.err conftest.$ac_objext \
6656 conftest$ac_exeext conftest.$ac_ext
6657 fi
6658
6659
6660 CFLAGS="$xorg_testset_save_CFLAGS"
6661
6662 eval supported=\$$cacheid
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6664 $as_echo "$supported" >&6; }
6665 if test "$supported" = "yes" ; then
6666 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6667 found="yes"
6668 fi
6669 fi
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685 xorg_testset_save_CFLAGS="$CFLAGS"
6686
6687 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6690 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6691 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6692 $as_echo_n "(cached) " >&6
6693 else
6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h. */
6696 int i;
6697 _ACEOF
6698 if ac_fn_c_try_compile "$LINENO"; then :
6699 xorg_cv_cc_flag_unknown_warning_option=yes
6700 else
6701 xorg_cv_cc_flag_unknown_warning_option=no
6702 fi
6703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704 fi
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6706 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6708 CFLAGS="$xorg_testset_save_CFLAGS"
6709 fi
6710
6711 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6713 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6714 fi
6715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6717 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6718 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h. */
6723 int i;
6724 _ACEOF
6725 if ac_fn_c_try_compile "$LINENO"; then :
6726 xorg_cv_cc_flag_unused_command_line_argument=yes
6727 else
6728 xorg_cv_cc_flag_unused_command_line_argument=no
6729 fi
6730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731 fi
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6733 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6735 CFLAGS="$xorg_testset_save_CFLAGS"
6736 fi
6737
6738 found="no"
6739
6740 if test $found = "no" ; then
6741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6743 fi
6744
6745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6747 fi
6748
6749 CFLAGS="$CFLAGS -Wredundant-decls"
6750
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6752 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6753 cacheid=xorg_cv_cc_flag__Wredundant_decls
6754 if eval \${$cacheid+:} false; then :
6755 $as_echo_n "(cached) " >&6
6756 else
6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6759 int i;
6760 int
6761 main ()
6762 {
6763
6764 ;
6765 return 0;
6766 }
6767 _ACEOF
6768 if ac_fn_c_try_link "$LINENO"; then :
6769 eval $cacheid=yes
6770 else
6771 eval $cacheid=no
6772 fi
6773 rm -f core conftest.err conftest.$ac_objext \
6774 conftest$ac_exeext conftest.$ac_ext
6775 fi
6776
6777
6778 CFLAGS="$xorg_testset_save_CFLAGS"
6779
6780 eval supported=\$$cacheid
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6782 $as_echo "$supported" >&6; }
6783 if test "$supported" = "yes" ; then
6784 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6785 found="yes"
6786 fi
6787 fi
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803 xorg_testset_save_CFLAGS="$CFLAGS"
6804
6805 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6808 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6809 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6810 $as_echo_n "(cached) " >&6
6811 else
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6814 int i;
6815 _ACEOF
6816 if ac_fn_c_try_compile "$LINENO"; then :
6817 xorg_cv_cc_flag_unknown_warning_option=yes
6818 else
6819 xorg_cv_cc_flag_unknown_warning_option=no
6820 fi
6821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6822 fi
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6824 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6826 CFLAGS="$xorg_testset_save_CFLAGS"
6827 fi
6828
6829 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6832 fi
6833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6835 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6836 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6837 $as_echo_n "(cached) " >&6
6838 else
6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h. */
6841 int i;
6842 _ACEOF
6843 if ac_fn_c_try_compile "$LINENO"; then :
6844 xorg_cv_cc_flag_unused_command_line_argument=yes
6845 else
6846 xorg_cv_cc_flag_unused_command_line_argument=no
6847 fi
6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6849 fi
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6851 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6852 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6853 CFLAGS="$xorg_testset_save_CFLAGS"
6854 fi
6855
6856 found="no"
6857
6858 if test $found = "no" ; then
6859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6861 fi
6862
6863 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6865 fi
6866
6867 CFLAGS="$CFLAGS -Wlogical-op"
6868
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6870 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6871 cacheid=xorg_cv_cc_flag__Wlogical_op
6872 if eval \${$cacheid+:} false; then :
6873 $as_echo_n "(cached) " >&6
6874 else
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6877 int i;
6878 int
6879 main ()
6880 {
6881
6882 ;
6883 return 0;
6884 }
6885 _ACEOF
6886 if ac_fn_c_try_link "$LINENO"; then :
6887 eval $cacheid=yes
6888 else
6889 eval $cacheid=no
6890 fi
6891 rm -f core conftest.err conftest.$ac_objext \
6892 conftest$ac_exeext conftest.$ac_ext
6893 fi
6894
6895
6896 CFLAGS="$xorg_testset_save_CFLAGS"
6897
6898 eval supported=\$$cacheid
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6900 $as_echo "$supported" >&6; }
6901 if test "$supported" = "yes" ; then
6902 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6903 found="yes"
6904 fi
6905 fi
6906
6907
6908
6909 # These are currently disabled because they are noisy. They will be enabled
6910 # in the future once the codebase is sufficiently modernized to silence
6911 # them. For now, I don't want them to drown out the other warnings.
6912 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6913 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6914 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6915
6916 # Turn some warnings into errors, so we don't accidently get successful builds
6917 # when there are problems that should be fixed.
6918
6919 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933 xorg_testset_save_CFLAGS="$CFLAGS"
6934
6935 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6938 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6939 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6940 $as_echo_n "(cached) " >&6
6941 else
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6944 int i;
6945 _ACEOF
6946 if ac_fn_c_try_compile "$LINENO"; then :
6947 xorg_cv_cc_flag_unknown_warning_option=yes
6948 else
6949 xorg_cv_cc_flag_unknown_warning_option=no
6950 fi
6951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6952 fi
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6954 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6956 CFLAGS="$xorg_testset_save_CFLAGS"
6957 fi
6958
6959 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6962 fi
6963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6965 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6966 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6967 $as_echo_n "(cached) " >&6
6968 else
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6971 int i;
6972 _ACEOF
6973 if ac_fn_c_try_compile "$LINENO"; then :
6974 xorg_cv_cc_flag_unused_command_line_argument=yes
6975 else
6976 xorg_cv_cc_flag_unused_command_line_argument=no
6977 fi
6978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6979 fi
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6981 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6983 CFLAGS="$xorg_testset_save_CFLAGS"
6984 fi
6985
6986 found="no"
6987
6988 if test $found = "no" ; then
6989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6991 fi
6992
6993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6995 fi
6996
6997 CFLAGS="$CFLAGS -Werror=implicit"
6998
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7000 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7001 cacheid=xorg_cv_cc_flag__Werror_implicit
7002 if eval \${$cacheid+:} false; then :
7003 $as_echo_n "(cached) " >&6
7004 else
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7007 int i;
7008 int
7009 main ()
7010 {
7011
7012 ;
7013 return 0;
7014 }
7015 _ACEOF
7016 if ac_fn_c_try_link "$LINENO"; then :
7017 eval $cacheid=yes
7018 else
7019 eval $cacheid=no
7020 fi
7021 rm -f core conftest.err conftest.$ac_objext \
7022 conftest$ac_exeext conftest.$ac_ext
7023 fi
7024
7025
7026 CFLAGS="$xorg_testset_save_CFLAGS"
7027
7028 eval supported=\$$cacheid
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7030 $as_echo "$supported" >&6; }
7031 if test "$supported" = "yes" ; then
7032 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7033 found="yes"
7034 fi
7035 fi
7036
7037 if test $found = "no" ; then
7038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7040 fi
7041
7042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7044 fi
7045
7046 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7047
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7049 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7050 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7051 if eval \${$cacheid+:} false; then :
7052 $as_echo_n "(cached) " >&6
7053 else
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7056 int i;
7057 int
7058 main ()
7059 {
7060
7061 ;
7062 return 0;
7063 }
7064 _ACEOF
7065 if ac_fn_c_try_link "$LINENO"; then :
7066 eval $cacheid=yes
7067 else
7068 eval $cacheid=no
7069 fi
7070 rm -f core conftest.err conftest.$ac_objext \
7071 conftest$ac_exeext conftest.$ac_ext
7072 fi
7073
7074
7075 CFLAGS="$xorg_testset_save_CFLAGS"
7076
7077 eval supported=\$$cacheid
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7079 $as_echo "$supported" >&6; }
7080 if test "$supported" = "yes" ; then
7081 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7082 found="yes"
7083 fi
7084 fi
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100 xorg_testset_save_CFLAGS="$CFLAGS"
7101
7102 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7105 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7106 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7107 $as_echo_n "(cached) " >&6
7108 else
7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7111 int i;
7112 _ACEOF
7113 if ac_fn_c_try_compile "$LINENO"; then :
7114 xorg_cv_cc_flag_unknown_warning_option=yes
7115 else
7116 xorg_cv_cc_flag_unknown_warning_option=no
7117 fi
7118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7119 fi
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7121 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7123 CFLAGS="$xorg_testset_save_CFLAGS"
7124 fi
7125
7126 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7129 fi
7130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7132 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7133 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7134 $as_echo_n "(cached) " >&6
7135 else
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7138 int i;
7139 _ACEOF
7140 if ac_fn_c_try_compile "$LINENO"; then :
7141 xorg_cv_cc_flag_unused_command_line_argument=yes
7142 else
7143 xorg_cv_cc_flag_unused_command_line_argument=no
7144 fi
7145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7146 fi
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7148 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7150 CFLAGS="$xorg_testset_save_CFLAGS"
7151 fi
7152
7153 found="no"
7154
7155 if test $found = "no" ; then
7156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7158 fi
7159
7160 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7162 fi
7163
7164 CFLAGS="$CFLAGS -Werror=nonnull"
7165
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7167 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7168 cacheid=xorg_cv_cc_flag__Werror_nonnull
7169 if eval \${$cacheid+:} false; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7174 int i;
7175 int
7176 main ()
7177 {
7178
7179 ;
7180 return 0;
7181 }
7182 _ACEOF
7183 if ac_fn_c_try_link "$LINENO"; then :
7184 eval $cacheid=yes
7185 else
7186 eval $cacheid=no
7187 fi
7188 rm -f core conftest.err conftest.$ac_objext \
7189 conftest$ac_exeext conftest.$ac_ext
7190 fi
7191
7192
7193 CFLAGS="$xorg_testset_save_CFLAGS"
7194
7195 eval supported=\$$cacheid
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7197 $as_echo "$supported" >&6; }
7198 if test "$supported" = "yes" ; then
7199 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7200 found="yes"
7201 fi
7202 fi
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218 xorg_testset_save_CFLAGS="$CFLAGS"
7219
7220 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7223 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7224 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7225 $as_echo_n "(cached) " >&6
7226 else
7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228 /* end confdefs.h. */
7229 int i;
7230 _ACEOF
7231 if ac_fn_c_try_compile "$LINENO"; then :
7232 xorg_cv_cc_flag_unknown_warning_option=yes
7233 else
7234 xorg_cv_cc_flag_unknown_warning_option=no
7235 fi
7236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237 fi
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7239 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7241 CFLAGS="$xorg_testset_save_CFLAGS"
7242 fi
7243
7244 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7247 fi
7248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7250 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7251 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7252 $as_echo_n "(cached) " >&6
7253 else
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h. */
7256 int i;
7257 _ACEOF
7258 if ac_fn_c_try_compile "$LINENO"; then :
7259 xorg_cv_cc_flag_unused_command_line_argument=yes
7260 else
7261 xorg_cv_cc_flag_unused_command_line_argument=no
7262 fi
7263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7264 fi
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7266 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7268 CFLAGS="$xorg_testset_save_CFLAGS"
7269 fi
7270
7271 found="no"
7272
7273 if test $found = "no" ; then
7274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7276 fi
7277
7278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7280 fi
7281
7282 CFLAGS="$CFLAGS -Werror=init-self"
7283
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7285 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7286 cacheid=xorg_cv_cc_flag__Werror_init_self
7287 if eval \${$cacheid+:} false; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7292 int i;
7293 int
7294 main ()
7295 {
7296
7297 ;
7298 return 0;
7299 }
7300 _ACEOF
7301 if ac_fn_c_try_link "$LINENO"; then :
7302 eval $cacheid=yes
7303 else
7304 eval $cacheid=no
7305 fi
7306 rm -f core conftest.err conftest.$ac_objext \
7307 conftest$ac_exeext conftest.$ac_ext
7308 fi
7309
7310
7311 CFLAGS="$xorg_testset_save_CFLAGS"
7312
7313 eval supported=\$$cacheid
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7315 $as_echo "$supported" >&6; }
7316 if test "$supported" = "yes" ; then
7317 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7318 found="yes"
7319 fi
7320 fi
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336 xorg_testset_save_CFLAGS="$CFLAGS"
7337
7338 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7341 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7342 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7343 $as_echo_n "(cached) " >&6
7344 else
7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h. */
7347 int i;
7348 _ACEOF
7349 if ac_fn_c_try_compile "$LINENO"; then :
7350 xorg_cv_cc_flag_unknown_warning_option=yes
7351 else
7352 xorg_cv_cc_flag_unknown_warning_option=no
7353 fi
7354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7355 fi
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7357 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7359 CFLAGS="$xorg_testset_save_CFLAGS"
7360 fi
7361
7362 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7365 fi
7366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7368 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7369 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7370 $as_echo_n "(cached) " >&6
7371 else
7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h. */
7374 int i;
7375 _ACEOF
7376 if ac_fn_c_try_compile "$LINENO"; then :
7377 xorg_cv_cc_flag_unused_command_line_argument=yes
7378 else
7379 xorg_cv_cc_flag_unused_command_line_argument=no
7380 fi
7381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7382 fi
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7384 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7386 CFLAGS="$xorg_testset_save_CFLAGS"
7387 fi
7388
7389 found="no"
7390
7391 if test $found = "no" ; then
7392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7394 fi
7395
7396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7398 fi
7399
7400 CFLAGS="$CFLAGS -Werror=main"
7401
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7403 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7404 cacheid=xorg_cv_cc_flag__Werror_main
7405 if eval \${$cacheid+:} false; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h. */
7410 int i;
7411 int
7412 main ()
7413 {
7414
7415 ;
7416 return 0;
7417 }
7418 _ACEOF
7419 if ac_fn_c_try_link "$LINENO"; then :
7420 eval $cacheid=yes
7421 else
7422 eval $cacheid=no
7423 fi
7424 rm -f core conftest.err conftest.$ac_objext \
7425 conftest$ac_exeext conftest.$ac_ext
7426 fi
7427
7428
7429 CFLAGS="$xorg_testset_save_CFLAGS"
7430
7431 eval supported=\$$cacheid
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7433 $as_echo "$supported" >&6; }
7434 if test "$supported" = "yes" ; then
7435 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7436 found="yes"
7437 fi
7438 fi
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454 xorg_testset_save_CFLAGS="$CFLAGS"
7455
7456 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7459 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7460 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7461 $as_echo_n "(cached) " >&6
7462 else
7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7465 int i;
7466 _ACEOF
7467 if ac_fn_c_try_compile "$LINENO"; then :
7468 xorg_cv_cc_flag_unknown_warning_option=yes
7469 else
7470 xorg_cv_cc_flag_unknown_warning_option=no
7471 fi
7472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7473 fi
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7475 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7476 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7477 CFLAGS="$xorg_testset_save_CFLAGS"
7478 fi
7479
7480 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7483 fi
7484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7486 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7487 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7488 $as_echo_n "(cached) " >&6
7489 else
7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491 /* end confdefs.h. */
7492 int i;
7493 _ACEOF
7494 if ac_fn_c_try_compile "$LINENO"; then :
7495 xorg_cv_cc_flag_unused_command_line_argument=yes
7496 else
7497 xorg_cv_cc_flag_unused_command_line_argument=no
7498 fi
7499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7500 fi
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7502 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7503 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7504 CFLAGS="$xorg_testset_save_CFLAGS"
7505 fi
7506
7507 found="no"
7508
7509 if test $found = "no" ; then
7510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7512 fi
7513
7514 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7516 fi
7517
7518 CFLAGS="$CFLAGS -Werror=missing-braces"
7519
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7521 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7522 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7523 if eval \${$cacheid+:} false; then :
7524 $as_echo_n "(cached) " >&6
7525 else
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7528 int i;
7529 int
7530 main ()
7531 {
7532
7533 ;
7534 return 0;
7535 }
7536 _ACEOF
7537 if ac_fn_c_try_link "$LINENO"; then :
7538 eval $cacheid=yes
7539 else
7540 eval $cacheid=no
7541 fi
7542 rm -f core conftest.err conftest.$ac_objext \
7543 conftest$ac_exeext conftest.$ac_ext
7544 fi
7545
7546
7547 CFLAGS="$xorg_testset_save_CFLAGS"
7548
7549 eval supported=\$$cacheid
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7551 $as_echo "$supported" >&6; }
7552 if test "$supported" = "yes" ; then
7553 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7554 found="yes"
7555 fi
7556 fi
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572 xorg_testset_save_CFLAGS="$CFLAGS"
7573
7574 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7577 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7578 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7579 $as_echo_n "(cached) " >&6
7580 else
7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582 /* end confdefs.h. */
7583 int i;
7584 _ACEOF
7585 if ac_fn_c_try_compile "$LINENO"; then :
7586 xorg_cv_cc_flag_unknown_warning_option=yes
7587 else
7588 xorg_cv_cc_flag_unknown_warning_option=no
7589 fi
7590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7591 fi
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7593 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7594 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7595 CFLAGS="$xorg_testset_save_CFLAGS"
7596 fi
7597
7598 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7601 fi
7602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7604 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7605 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7606 $as_echo_n "(cached) " >&6
7607 else
7608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7609 /* end confdefs.h. */
7610 int i;
7611 _ACEOF
7612 if ac_fn_c_try_compile "$LINENO"; then :
7613 xorg_cv_cc_flag_unused_command_line_argument=yes
7614 else
7615 xorg_cv_cc_flag_unused_command_line_argument=no
7616 fi
7617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618 fi
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7620 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7622 CFLAGS="$xorg_testset_save_CFLAGS"
7623 fi
7624
7625 found="no"
7626
7627 if test $found = "no" ; then
7628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7630 fi
7631
7632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7634 fi
7635
7636 CFLAGS="$CFLAGS -Werror=sequence-point"
7637
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7639 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7640 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7641 if eval \${$cacheid+:} false; then :
7642 $as_echo_n "(cached) " >&6
7643 else
7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7646 int i;
7647 int
7648 main ()
7649 {
7650
7651 ;
7652 return 0;
7653 }
7654 _ACEOF
7655 if ac_fn_c_try_link "$LINENO"; then :
7656 eval $cacheid=yes
7657 else
7658 eval $cacheid=no
7659 fi
7660 rm -f core conftest.err conftest.$ac_objext \
7661 conftest$ac_exeext conftest.$ac_ext
7662 fi
7663
7664
7665 CFLAGS="$xorg_testset_save_CFLAGS"
7666
7667 eval supported=\$$cacheid
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7669 $as_echo "$supported" >&6; }
7670 if test "$supported" = "yes" ; then
7671 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7672 found="yes"
7673 fi
7674 fi
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690 xorg_testset_save_CFLAGS="$CFLAGS"
7691
7692 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7695 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7696 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7697 $as_echo_n "(cached) " >&6
7698 else
7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h. */
7701 int i;
7702 _ACEOF
7703 if ac_fn_c_try_compile "$LINENO"; then :
7704 xorg_cv_cc_flag_unknown_warning_option=yes
7705 else
7706 xorg_cv_cc_flag_unknown_warning_option=no
7707 fi
7708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7709 fi
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7711 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7713 CFLAGS="$xorg_testset_save_CFLAGS"
7714 fi
7715
7716 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7719 fi
7720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7722 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7723 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7724 $as_echo_n "(cached) " >&6
7725 else
7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h. */
7728 int i;
7729 _ACEOF
7730 if ac_fn_c_try_compile "$LINENO"; then :
7731 xorg_cv_cc_flag_unused_command_line_argument=yes
7732 else
7733 xorg_cv_cc_flag_unused_command_line_argument=no
7734 fi
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7736 fi
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7738 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7739 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7740 CFLAGS="$xorg_testset_save_CFLAGS"
7741 fi
7742
7743 found="no"
7744
7745 if test $found = "no" ; then
7746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7748 fi
7749
7750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7752 fi
7753
7754 CFLAGS="$CFLAGS -Werror=return-type"
7755
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7757 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7758 cacheid=xorg_cv_cc_flag__Werror_return_type
7759 if eval \${$cacheid+:} false; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h. */
7764 int i;
7765 int
7766 main ()
7767 {
7768
7769 ;
7770 return 0;
7771 }
7772 _ACEOF
7773 if ac_fn_c_try_link "$LINENO"; then :
7774 eval $cacheid=yes
7775 else
7776 eval $cacheid=no
7777 fi
7778 rm -f core conftest.err conftest.$ac_objext \
7779 conftest$ac_exeext conftest.$ac_ext
7780 fi
7781
7782
7783 CFLAGS="$xorg_testset_save_CFLAGS"
7784
7785 eval supported=\$$cacheid
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7787 $as_echo "$supported" >&6; }
7788 if test "$supported" = "yes" ; then
7789 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7790 found="yes"
7791 fi
7792 fi
7793
7794 if test $found = "no" ; then
7795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7797 fi
7798
7799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7801 fi
7802
7803 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7804
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7806 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7807 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7808 if eval \${$cacheid+:} false; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h. */
7813 int i;
7814 int
7815 main ()
7816 {
7817
7818 ;
7819 return 0;
7820 }
7821 _ACEOF
7822 if ac_fn_c_try_link "$LINENO"; then :
7823 eval $cacheid=yes
7824 else
7825 eval $cacheid=no
7826 fi
7827 rm -f core conftest.err conftest.$ac_objext \
7828 conftest$ac_exeext conftest.$ac_ext
7829 fi
7830
7831
7832 CFLAGS="$xorg_testset_save_CFLAGS"
7833
7834 eval supported=\$$cacheid
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7836 $as_echo "$supported" >&6; }
7837 if test "$supported" = "yes" ; then
7838 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7839 found="yes"
7840 fi
7841 fi
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857 xorg_testset_save_CFLAGS="$CFLAGS"
7858
7859 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7862 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7863 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7868 int i;
7869 _ACEOF
7870 if ac_fn_c_try_compile "$LINENO"; then :
7871 xorg_cv_cc_flag_unknown_warning_option=yes
7872 else
7873 xorg_cv_cc_flag_unknown_warning_option=no
7874 fi
7875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7876 fi
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7878 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7879 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7880 CFLAGS="$xorg_testset_save_CFLAGS"
7881 fi
7882
7883 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7886 fi
7887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7889 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7890 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7891 $as_echo_n "(cached) " >&6
7892 else
7893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h. */
7895 int i;
7896 _ACEOF
7897 if ac_fn_c_try_compile "$LINENO"; then :
7898 xorg_cv_cc_flag_unused_command_line_argument=yes
7899 else
7900 xorg_cv_cc_flag_unused_command_line_argument=no
7901 fi
7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903 fi
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7905 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7907 CFLAGS="$xorg_testset_save_CFLAGS"
7908 fi
7909
7910 found="no"
7911
7912 if test $found = "no" ; then
7913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7915 fi
7916
7917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7919 fi
7920
7921 CFLAGS="$CFLAGS -Werror=trigraphs"
7922
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7924 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7925 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7926 if eval \${$cacheid+:} false; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7931 int i;
7932 int
7933 main ()
7934 {
7935
7936 ;
7937 return 0;
7938 }
7939 _ACEOF
7940 if ac_fn_c_try_link "$LINENO"; then :
7941 eval $cacheid=yes
7942 else
7943 eval $cacheid=no
7944 fi
7945 rm -f core conftest.err conftest.$ac_objext \
7946 conftest$ac_exeext conftest.$ac_ext
7947 fi
7948
7949
7950 CFLAGS="$xorg_testset_save_CFLAGS"
7951
7952 eval supported=\$$cacheid
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7954 $as_echo "$supported" >&6; }
7955 if test "$supported" = "yes" ; then
7956 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7957 found="yes"
7958 fi
7959 fi
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975 xorg_testset_save_CFLAGS="$CFLAGS"
7976
7977 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7980 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7981 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7982 $as_echo_n "(cached) " >&6
7983 else
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986 int i;
7987 _ACEOF
7988 if ac_fn_c_try_compile "$LINENO"; then :
7989 xorg_cv_cc_flag_unknown_warning_option=yes
7990 else
7991 xorg_cv_cc_flag_unknown_warning_option=no
7992 fi
7993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7994 fi
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7996 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7997 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7998 CFLAGS="$xorg_testset_save_CFLAGS"
7999 fi
8000
8001 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8004 fi
8005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8007 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8008 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8009 $as_echo_n "(cached) " >&6
8010 else
8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8013 int i;
8014 _ACEOF
8015 if ac_fn_c_try_compile "$LINENO"; then :
8016 xorg_cv_cc_flag_unused_command_line_argument=yes
8017 else
8018 xorg_cv_cc_flag_unused_command_line_argument=no
8019 fi
8020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8021 fi
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8023 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8024 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8025 CFLAGS="$xorg_testset_save_CFLAGS"
8026 fi
8027
8028 found="no"
8029
8030 if test $found = "no" ; then
8031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8033 fi
8034
8035 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8037 fi
8038
8039 CFLAGS="$CFLAGS -Werror=array-bounds"
8040
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8042 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8043 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8044 if eval \${$cacheid+:} false; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8049 int i;
8050 int
8051 main ()
8052 {
8053
8054 ;
8055 return 0;
8056 }
8057 _ACEOF
8058 if ac_fn_c_try_link "$LINENO"; then :
8059 eval $cacheid=yes
8060 else
8061 eval $cacheid=no
8062 fi
8063 rm -f core conftest.err conftest.$ac_objext \
8064 conftest$ac_exeext conftest.$ac_ext
8065 fi
8066
8067
8068 CFLAGS="$xorg_testset_save_CFLAGS"
8069
8070 eval supported=\$$cacheid
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8072 $as_echo "$supported" >&6; }
8073 if test "$supported" = "yes" ; then
8074 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8075 found="yes"
8076 fi
8077 fi
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093 xorg_testset_save_CFLAGS="$CFLAGS"
8094
8095 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8098 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8099 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8100 $as_echo_n "(cached) " >&6
8101 else
8102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h. */
8104 int i;
8105 _ACEOF
8106 if ac_fn_c_try_compile "$LINENO"; then :
8107 xorg_cv_cc_flag_unknown_warning_option=yes
8108 else
8109 xorg_cv_cc_flag_unknown_warning_option=no
8110 fi
8111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8112 fi
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8114 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8116 CFLAGS="$xorg_testset_save_CFLAGS"
8117 fi
8118
8119 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8122 fi
8123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8125 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8126 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8127 $as_echo_n "(cached) " >&6
8128 else
8129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130 /* end confdefs.h. */
8131 int i;
8132 _ACEOF
8133 if ac_fn_c_try_compile "$LINENO"; then :
8134 xorg_cv_cc_flag_unused_command_line_argument=yes
8135 else
8136 xorg_cv_cc_flag_unused_command_line_argument=no
8137 fi
8138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8139 fi
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8141 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8143 CFLAGS="$xorg_testset_save_CFLAGS"
8144 fi
8145
8146 found="no"
8147
8148 if test $found = "no" ; then
8149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8151 fi
8152
8153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8155 fi
8156
8157 CFLAGS="$CFLAGS -Werror=write-strings"
8158
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8160 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8161 cacheid=xorg_cv_cc_flag__Werror_write_strings
8162 if eval \${$cacheid+:} false; then :
8163 $as_echo_n "(cached) " >&6
8164 else
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8167 int i;
8168 int
8169 main ()
8170 {
8171
8172 ;
8173 return 0;
8174 }
8175 _ACEOF
8176 if ac_fn_c_try_link "$LINENO"; then :
8177 eval $cacheid=yes
8178 else
8179 eval $cacheid=no
8180 fi
8181 rm -f core conftest.err conftest.$ac_objext \
8182 conftest$ac_exeext conftest.$ac_ext
8183 fi
8184
8185
8186 CFLAGS="$xorg_testset_save_CFLAGS"
8187
8188 eval supported=\$$cacheid
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8190 $as_echo "$supported" >&6; }
8191 if test "$supported" = "yes" ; then
8192 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8193 found="yes"
8194 fi
8195 fi
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211 xorg_testset_save_CFLAGS="$CFLAGS"
8212
8213 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8216 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8217 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8218 $as_echo_n "(cached) " >&6
8219 else
8220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8221 /* end confdefs.h. */
8222 int i;
8223 _ACEOF
8224 if ac_fn_c_try_compile "$LINENO"; then :
8225 xorg_cv_cc_flag_unknown_warning_option=yes
8226 else
8227 xorg_cv_cc_flag_unknown_warning_option=no
8228 fi
8229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8230 fi
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8232 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8234 CFLAGS="$xorg_testset_save_CFLAGS"
8235 fi
8236
8237 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8240 fi
8241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8243 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8244 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8245 $as_echo_n "(cached) " >&6
8246 else
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h. */
8249 int i;
8250 _ACEOF
8251 if ac_fn_c_try_compile "$LINENO"; then :
8252 xorg_cv_cc_flag_unused_command_line_argument=yes
8253 else
8254 xorg_cv_cc_flag_unused_command_line_argument=no
8255 fi
8256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8257 fi
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8259 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8261 CFLAGS="$xorg_testset_save_CFLAGS"
8262 fi
8263
8264 found="no"
8265
8266 if test $found = "no" ; then
8267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8269 fi
8270
8271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8273 fi
8274
8275 CFLAGS="$CFLAGS -Werror=address"
8276
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8278 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8279 cacheid=xorg_cv_cc_flag__Werror_address
8280 if eval \${$cacheid+:} false; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8285 int i;
8286 int
8287 main ()
8288 {
8289
8290 ;
8291 return 0;
8292 }
8293 _ACEOF
8294 if ac_fn_c_try_link "$LINENO"; then :
8295 eval $cacheid=yes
8296 else
8297 eval $cacheid=no
8298 fi
8299 rm -f core conftest.err conftest.$ac_objext \
8300 conftest$ac_exeext conftest.$ac_ext
8301 fi
8302
8303
8304 CFLAGS="$xorg_testset_save_CFLAGS"
8305
8306 eval supported=\$$cacheid
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8308 $as_echo "$supported" >&6; }
8309 if test "$supported" = "yes" ; then
8310 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8311 found="yes"
8312 fi
8313 fi
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329 xorg_testset_save_CFLAGS="$CFLAGS"
8330
8331 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8334 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8335 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8340 int i;
8341 _ACEOF
8342 if ac_fn_c_try_compile "$LINENO"; then :
8343 xorg_cv_cc_flag_unknown_warning_option=yes
8344 else
8345 xorg_cv_cc_flag_unknown_warning_option=no
8346 fi
8347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8348 fi
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8350 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8352 CFLAGS="$xorg_testset_save_CFLAGS"
8353 fi
8354
8355 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8358 fi
8359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8361 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8362 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8363 $as_echo_n "(cached) " >&6
8364 else
8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8367 int i;
8368 _ACEOF
8369 if ac_fn_c_try_compile "$LINENO"; then :
8370 xorg_cv_cc_flag_unused_command_line_argument=yes
8371 else
8372 xorg_cv_cc_flag_unused_command_line_argument=no
8373 fi
8374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8375 fi
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8377 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8379 CFLAGS="$xorg_testset_save_CFLAGS"
8380 fi
8381
8382 found="no"
8383
8384 if test $found = "no" ; then
8385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8387 fi
8388
8389 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8391 fi
8392
8393 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8394
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8396 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8397 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8398 if eval \${$cacheid+:} false; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 int i;
8404 int
8405 main ()
8406 {
8407
8408 ;
8409 return 0;
8410 }
8411 _ACEOF
8412 if ac_fn_c_try_link "$LINENO"; then :
8413 eval $cacheid=yes
8414 else
8415 eval $cacheid=no
8416 fi
8417 rm -f core conftest.err conftest.$ac_objext \
8418 conftest$ac_exeext conftest.$ac_ext
8419 fi
8420
8421
8422 CFLAGS="$xorg_testset_save_CFLAGS"
8423
8424 eval supported=\$$cacheid
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8426 $as_echo "$supported" >&6; }
8427 if test "$supported" = "yes" ; then
8428 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8429 found="yes"
8430 fi
8431 fi
8432
8433 if test $found = "no" ; then
8434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8436 fi
8437
8438 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8440 fi
8441
8442 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8443
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8445 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8446 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8447 if eval \${$cacheid+:} false; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8452 int i;
8453 int
8454 main ()
8455 {
8456
8457 ;
8458 return 0;
8459 }
8460 _ACEOF
8461 if ac_fn_c_try_link "$LINENO"; then :
8462 eval $cacheid=yes
8463 else
8464 eval $cacheid=no
8465 fi
8466 rm -f core conftest.err conftest.$ac_objext \
8467 conftest$ac_exeext conftest.$ac_ext
8468 fi
8469
8470
8471 CFLAGS="$xorg_testset_save_CFLAGS"
8472
8473 eval supported=\$$cacheid
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8475 $as_echo "$supported" >&6; }
8476 if test "$supported" = "yes" ; then
8477 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8478 found="yes"
8479 fi
8480 fi
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496 xorg_testset_save_CFLAGS="$CFLAGS"
8497
8498 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8501 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8502 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8503 $as_echo_n "(cached) " >&6
8504 else
8505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8506 /* end confdefs.h. */
8507 int i;
8508 _ACEOF
8509 if ac_fn_c_try_compile "$LINENO"; then :
8510 xorg_cv_cc_flag_unknown_warning_option=yes
8511 else
8512 xorg_cv_cc_flag_unknown_warning_option=no
8513 fi
8514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8515 fi
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8517 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8519 CFLAGS="$xorg_testset_save_CFLAGS"
8520 fi
8521
8522 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8525 fi
8526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8528 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8529 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8530 $as_echo_n "(cached) " >&6
8531 else
8532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533 /* end confdefs.h. */
8534 int i;
8535 _ACEOF
8536 if ac_fn_c_try_compile "$LINENO"; then :
8537 xorg_cv_cc_flag_unused_command_line_argument=yes
8538 else
8539 xorg_cv_cc_flag_unused_command_line_argument=no
8540 fi
8541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8542 fi
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8544 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8546 CFLAGS="$xorg_testset_save_CFLAGS"
8547 fi
8548
8549 found="no"
8550
8551 if test $found = "no" ; then
8552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8554 fi
8555
8556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8558 fi
8559
8560 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8561
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8563 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8564 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8565 if eval \${$cacheid+:} false; then :
8566 $as_echo_n "(cached) " >&6
8567 else
8568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569 /* end confdefs.h. */
8570 int i;
8571 int
8572 main ()
8573 {
8574
8575 ;
8576 return 0;
8577 }
8578 _ACEOF
8579 if ac_fn_c_try_link "$LINENO"; then :
8580 eval $cacheid=yes
8581 else
8582 eval $cacheid=no
8583 fi
8584 rm -f core conftest.err conftest.$ac_objext \
8585 conftest$ac_exeext conftest.$ac_ext
8586 fi
8587
8588
8589 CFLAGS="$xorg_testset_save_CFLAGS"
8590
8591 eval supported=\$$cacheid
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8593 $as_echo "$supported" >&6; }
8594 if test "$supported" = "yes" ; then
8595 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8596 found="yes"
8597 fi
8598 fi
8599
8600 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8601 else
8602 { $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
8603 $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;}
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617 xorg_testset_save_CFLAGS="$CFLAGS"
8618
8619 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8622 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8623 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8624 $as_echo_n "(cached) " >&6
8625 else
8626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8627 /* end confdefs.h. */
8628 int i;
8629 _ACEOF
8630 if ac_fn_c_try_compile "$LINENO"; then :
8631 xorg_cv_cc_flag_unknown_warning_option=yes
8632 else
8633 xorg_cv_cc_flag_unknown_warning_option=no
8634 fi
8635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636 fi
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8638 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8639 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8640 CFLAGS="$xorg_testset_save_CFLAGS"
8641 fi
8642
8643 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8646 fi
8647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8649 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8650 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8651 $as_echo_n "(cached) " >&6
8652 else
8653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8654 /* end confdefs.h. */
8655 int i;
8656 _ACEOF
8657 if ac_fn_c_try_compile "$LINENO"; then :
8658 xorg_cv_cc_flag_unused_command_line_argument=yes
8659 else
8660 xorg_cv_cc_flag_unused_command_line_argument=no
8661 fi
8662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663 fi
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8665 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8667 CFLAGS="$xorg_testset_save_CFLAGS"
8668 fi
8669
8670 found="no"
8671
8672 if test $found = "no" ; then
8673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8675 fi
8676
8677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8679 fi
8680
8681 CFLAGS="$CFLAGS -Wimplicit"
8682
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8684 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8685 cacheid=xorg_cv_cc_flag__Wimplicit
8686 if eval \${$cacheid+:} false; then :
8687 $as_echo_n "(cached) " >&6
8688 else
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h. */
8691 int i;
8692 int
8693 main ()
8694 {
8695
8696 ;
8697 return 0;
8698 }
8699 _ACEOF
8700 if ac_fn_c_try_link "$LINENO"; then :
8701 eval $cacheid=yes
8702 else
8703 eval $cacheid=no
8704 fi
8705 rm -f core conftest.err conftest.$ac_objext \
8706 conftest$ac_exeext conftest.$ac_ext
8707 fi
8708
8709
8710 CFLAGS="$xorg_testset_save_CFLAGS"
8711
8712 eval supported=\$$cacheid
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8714 $as_echo "$supported" >&6; }
8715 if test "$supported" = "yes" ; then
8716 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8717 found="yes"
8718 fi
8719 fi
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735 xorg_testset_save_CFLAGS="$CFLAGS"
8736
8737 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8740 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8741 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8742 $as_echo_n "(cached) " >&6
8743 else
8744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8745 /* end confdefs.h. */
8746 int i;
8747 _ACEOF
8748 if ac_fn_c_try_compile "$LINENO"; then :
8749 xorg_cv_cc_flag_unknown_warning_option=yes
8750 else
8751 xorg_cv_cc_flag_unknown_warning_option=no
8752 fi
8753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8754 fi
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8756 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8758 CFLAGS="$xorg_testset_save_CFLAGS"
8759 fi
8760
8761 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8764 fi
8765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8767 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8768 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8769 $as_echo_n "(cached) " >&6
8770 else
8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h. */
8773 int i;
8774 _ACEOF
8775 if ac_fn_c_try_compile "$LINENO"; then :
8776 xorg_cv_cc_flag_unused_command_line_argument=yes
8777 else
8778 xorg_cv_cc_flag_unused_command_line_argument=no
8779 fi
8780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8781 fi
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8783 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8785 CFLAGS="$xorg_testset_save_CFLAGS"
8786 fi
8787
8788 found="no"
8789
8790 if test $found = "no" ; then
8791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8793 fi
8794
8795 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8797 fi
8798
8799 CFLAGS="$CFLAGS -Wnonnull"
8800
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8802 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8803 cacheid=xorg_cv_cc_flag__Wnonnull
8804 if eval \${$cacheid+:} false; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808 /* end confdefs.h. */
8809 int i;
8810 int
8811 main ()
8812 {
8813
8814 ;
8815 return 0;
8816 }
8817 _ACEOF
8818 if ac_fn_c_try_link "$LINENO"; then :
8819 eval $cacheid=yes
8820 else
8821 eval $cacheid=no
8822 fi
8823 rm -f core conftest.err conftest.$ac_objext \
8824 conftest$ac_exeext conftest.$ac_ext
8825 fi
8826
8827
8828 CFLAGS="$xorg_testset_save_CFLAGS"
8829
8830 eval supported=\$$cacheid
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8832 $as_echo "$supported" >&6; }
8833 if test "$supported" = "yes" ; then
8834 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8835 found="yes"
8836 fi
8837 fi
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853 xorg_testset_save_CFLAGS="$CFLAGS"
8854
8855 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8858 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8859 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8860 $as_echo_n "(cached) " >&6
8861 else
8862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h. */
8864 int i;
8865 _ACEOF
8866 if ac_fn_c_try_compile "$LINENO"; then :
8867 xorg_cv_cc_flag_unknown_warning_option=yes
8868 else
8869 xorg_cv_cc_flag_unknown_warning_option=no
8870 fi
8871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8872 fi
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8874 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8876 CFLAGS="$xorg_testset_save_CFLAGS"
8877 fi
8878
8879 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8882 fi
8883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8885 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8886 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8887 $as_echo_n "(cached) " >&6
8888 else
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h. */
8891 int i;
8892 _ACEOF
8893 if ac_fn_c_try_compile "$LINENO"; then :
8894 xorg_cv_cc_flag_unused_command_line_argument=yes
8895 else
8896 xorg_cv_cc_flag_unused_command_line_argument=no
8897 fi
8898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8899 fi
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8901 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8902 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8903 CFLAGS="$xorg_testset_save_CFLAGS"
8904 fi
8905
8906 found="no"
8907
8908 if test $found = "no" ; then
8909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8911 fi
8912
8913 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8915 fi
8916
8917 CFLAGS="$CFLAGS -Winit-self"
8918
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8920 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8921 cacheid=xorg_cv_cc_flag__Winit_self
8922 if eval \${$cacheid+:} false; then :
8923 $as_echo_n "(cached) " >&6
8924 else
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927 int i;
8928 int
8929 main ()
8930 {
8931
8932 ;
8933 return 0;
8934 }
8935 _ACEOF
8936 if ac_fn_c_try_link "$LINENO"; then :
8937 eval $cacheid=yes
8938 else
8939 eval $cacheid=no
8940 fi
8941 rm -f core conftest.err conftest.$ac_objext \
8942 conftest$ac_exeext conftest.$ac_ext
8943 fi
8944
8945
8946 CFLAGS="$xorg_testset_save_CFLAGS"
8947
8948 eval supported=\$$cacheid
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8950 $as_echo "$supported" >&6; }
8951 if test "$supported" = "yes" ; then
8952 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8953 found="yes"
8954 fi
8955 fi
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971 xorg_testset_save_CFLAGS="$CFLAGS"
8972
8973 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8976 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8977 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h. */
8982 int i;
8983 _ACEOF
8984 if ac_fn_c_try_compile "$LINENO"; then :
8985 xorg_cv_cc_flag_unknown_warning_option=yes
8986 else
8987 xorg_cv_cc_flag_unknown_warning_option=no
8988 fi
8989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8990 fi
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8992 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8993 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8994 CFLAGS="$xorg_testset_save_CFLAGS"
8995 fi
8996
8997 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9000 fi
9001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9003 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9004 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9005 $as_echo_n "(cached) " >&6
9006 else
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h. */
9009 int i;
9010 _ACEOF
9011 if ac_fn_c_try_compile "$LINENO"; then :
9012 xorg_cv_cc_flag_unused_command_line_argument=yes
9013 else
9014 xorg_cv_cc_flag_unused_command_line_argument=no
9015 fi
9016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9017 fi
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9019 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9021 CFLAGS="$xorg_testset_save_CFLAGS"
9022 fi
9023
9024 found="no"
9025
9026 if test $found = "no" ; then
9027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9029 fi
9030
9031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9033 fi
9034
9035 CFLAGS="$CFLAGS -Wmain"
9036
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9038 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9039 cacheid=xorg_cv_cc_flag__Wmain
9040 if eval \${$cacheid+:} false; then :
9041 $as_echo_n "(cached) " >&6
9042 else
9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9045 int i;
9046 int
9047 main ()
9048 {
9049
9050 ;
9051 return 0;
9052 }
9053 _ACEOF
9054 if ac_fn_c_try_link "$LINENO"; then :
9055 eval $cacheid=yes
9056 else
9057 eval $cacheid=no
9058 fi
9059 rm -f core conftest.err conftest.$ac_objext \
9060 conftest$ac_exeext conftest.$ac_ext
9061 fi
9062
9063
9064 CFLAGS="$xorg_testset_save_CFLAGS"
9065
9066 eval supported=\$$cacheid
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9068 $as_echo "$supported" >&6; }
9069 if test "$supported" = "yes" ; then
9070 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9071 found="yes"
9072 fi
9073 fi
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089 xorg_testset_save_CFLAGS="$CFLAGS"
9090
9091 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9094 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9095 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9096 $as_echo_n "(cached) " >&6
9097 else
9098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099 /* end confdefs.h. */
9100 int i;
9101 _ACEOF
9102 if ac_fn_c_try_compile "$LINENO"; then :
9103 xorg_cv_cc_flag_unknown_warning_option=yes
9104 else
9105 xorg_cv_cc_flag_unknown_warning_option=no
9106 fi
9107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9108 fi
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9110 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9112 CFLAGS="$xorg_testset_save_CFLAGS"
9113 fi
9114
9115 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9118 fi
9119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9121 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9122 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9123 $as_echo_n "(cached) " >&6
9124 else
9125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9126 /* end confdefs.h. */
9127 int i;
9128 _ACEOF
9129 if ac_fn_c_try_compile "$LINENO"; then :
9130 xorg_cv_cc_flag_unused_command_line_argument=yes
9131 else
9132 xorg_cv_cc_flag_unused_command_line_argument=no
9133 fi
9134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9135 fi
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9137 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9139 CFLAGS="$xorg_testset_save_CFLAGS"
9140 fi
9141
9142 found="no"
9143
9144 if test $found = "no" ; then
9145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9147 fi
9148
9149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9151 fi
9152
9153 CFLAGS="$CFLAGS -Wmissing-braces"
9154
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9156 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9157 cacheid=xorg_cv_cc_flag__Wmissing_braces
9158 if eval \${$cacheid+:} false; then :
9159 $as_echo_n "(cached) " >&6
9160 else
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9163 int i;
9164 int
9165 main ()
9166 {
9167
9168 ;
9169 return 0;
9170 }
9171 _ACEOF
9172 if ac_fn_c_try_link "$LINENO"; then :
9173 eval $cacheid=yes
9174 else
9175 eval $cacheid=no
9176 fi
9177 rm -f core conftest.err conftest.$ac_objext \
9178 conftest$ac_exeext conftest.$ac_ext
9179 fi
9180
9181
9182 CFLAGS="$xorg_testset_save_CFLAGS"
9183
9184 eval supported=\$$cacheid
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9186 $as_echo "$supported" >&6; }
9187 if test "$supported" = "yes" ; then
9188 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9189 found="yes"
9190 fi
9191 fi
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207 xorg_testset_save_CFLAGS="$CFLAGS"
9208
9209 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9212 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9213 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9214 $as_echo_n "(cached) " >&6
9215 else
9216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217 /* end confdefs.h. */
9218 int i;
9219 _ACEOF
9220 if ac_fn_c_try_compile "$LINENO"; then :
9221 xorg_cv_cc_flag_unknown_warning_option=yes
9222 else
9223 xorg_cv_cc_flag_unknown_warning_option=no
9224 fi
9225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9226 fi
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9228 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9230 CFLAGS="$xorg_testset_save_CFLAGS"
9231 fi
9232
9233 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9236 fi
9237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9239 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9240 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9241 $as_echo_n "(cached) " >&6
9242 else
9243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9244 /* end confdefs.h. */
9245 int i;
9246 _ACEOF
9247 if ac_fn_c_try_compile "$LINENO"; then :
9248 xorg_cv_cc_flag_unused_command_line_argument=yes
9249 else
9250 xorg_cv_cc_flag_unused_command_line_argument=no
9251 fi
9252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9253 fi
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9255 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9257 CFLAGS="$xorg_testset_save_CFLAGS"
9258 fi
9259
9260 found="no"
9261
9262 if test $found = "no" ; then
9263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9265 fi
9266
9267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9269 fi
9270
9271 CFLAGS="$CFLAGS -Wsequence-point"
9272
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9274 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9275 cacheid=xorg_cv_cc_flag__Wsequence_point
9276 if eval \${$cacheid+:} false; then :
9277 $as_echo_n "(cached) " >&6
9278 else
9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9281 int i;
9282 int
9283 main ()
9284 {
9285
9286 ;
9287 return 0;
9288 }
9289 _ACEOF
9290 if ac_fn_c_try_link "$LINENO"; then :
9291 eval $cacheid=yes
9292 else
9293 eval $cacheid=no
9294 fi
9295 rm -f core conftest.err conftest.$ac_objext \
9296 conftest$ac_exeext conftest.$ac_ext
9297 fi
9298
9299
9300 CFLAGS="$xorg_testset_save_CFLAGS"
9301
9302 eval supported=\$$cacheid
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9304 $as_echo "$supported" >&6; }
9305 if test "$supported" = "yes" ; then
9306 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9307 found="yes"
9308 fi
9309 fi
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325 xorg_testset_save_CFLAGS="$CFLAGS"
9326
9327 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9330 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9331 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9332 $as_echo_n "(cached) " >&6
9333 else
9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9336 int i;
9337 _ACEOF
9338 if ac_fn_c_try_compile "$LINENO"; then :
9339 xorg_cv_cc_flag_unknown_warning_option=yes
9340 else
9341 xorg_cv_cc_flag_unknown_warning_option=no
9342 fi
9343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9344 fi
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9346 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9347 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9348 CFLAGS="$xorg_testset_save_CFLAGS"
9349 fi
9350
9351 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9354 fi
9355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9357 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9358 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9359 $as_echo_n "(cached) " >&6
9360 else
9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9363 int i;
9364 _ACEOF
9365 if ac_fn_c_try_compile "$LINENO"; then :
9366 xorg_cv_cc_flag_unused_command_line_argument=yes
9367 else
9368 xorg_cv_cc_flag_unused_command_line_argument=no
9369 fi
9370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9371 fi
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9373 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9375 CFLAGS="$xorg_testset_save_CFLAGS"
9376 fi
9377
9378 found="no"
9379
9380 if test $found = "no" ; then
9381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9383 fi
9384
9385 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9387 fi
9388
9389 CFLAGS="$CFLAGS -Wreturn-type"
9390
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9392 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9393 cacheid=xorg_cv_cc_flag__Wreturn_type
9394 if eval \${$cacheid+:} false; then :
9395 $as_echo_n "(cached) " >&6
9396 else
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9399 int i;
9400 int
9401 main ()
9402 {
9403
9404 ;
9405 return 0;
9406 }
9407 _ACEOF
9408 if ac_fn_c_try_link "$LINENO"; then :
9409 eval $cacheid=yes
9410 else
9411 eval $cacheid=no
9412 fi
9413 rm -f core conftest.err conftest.$ac_objext \
9414 conftest$ac_exeext conftest.$ac_ext
9415 fi
9416
9417
9418 CFLAGS="$xorg_testset_save_CFLAGS"
9419
9420 eval supported=\$$cacheid
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9422 $as_echo "$supported" >&6; }
9423 if test "$supported" = "yes" ; then
9424 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9425 found="yes"
9426 fi
9427 fi
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443 xorg_testset_save_CFLAGS="$CFLAGS"
9444
9445 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9448 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9449 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9450 $as_echo_n "(cached) " >&6
9451 else
9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453 /* end confdefs.h. */
9454 int i;
9455 _ACEOF
9456 if ac_fn_c_try_compile "$LINENO"; then :
9457 xorg_cv_cc_flag_unknown_warning_option=yes
9458 else
9459 xorg_cv_cc_flag_unknown_warning_option=no
9460 fi
9461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9462 fi
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9464 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9465 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9466 CFLAGS="$xorg_testset_save_CFLAGS"
9467 fi
9468
9469 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9472 fi
9473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9475 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9476 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9477 $as_echo_n "(cached) " >&6
9478 else
9479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h. */
9481 int i;
9482 _ACEOF
9483 if ac_fn_c_try_compile "$LINENO"; then :
9484 xorg_cv_cc_flag_unused_command_line_argument=yes
9485 else
9486 xorg_cv_cc_flag_unused_command_line_argument=no
9487 fi
9488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9489 fi
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9491 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9493 CFLAGS="$xorg_testset_save_CFLAGS"
9494 fi
9495
9496 found="no"
9497
9498 if test $found = "no" ; then
9499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9501 fi
9502
9503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9505 fi
9506
9507 CFLAGS="$CFLAGS -Wtrigraphs"
9508
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9510 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9511 cacheid=xorg_cv_cc_flag__Wtrigraphs
9512 if eval \${$cacheid+:} false; then :
9513 $as_echo_n "(cached) " >&6
9514 else
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h. */
9517 int i;
9518 int
9519 main ()
9520 {
9521
9522 ;
9523 return 0;
9524 }
9525 _ACEOF
9526 if ac_fn_c_try_link "$LINENO"; then :
9527 eval $cacheid=yes
9528 else
9529 eval $cacheid=no
9530 fi
9531 rm -f core conftest.err conftest.$ac_objext \
9532 conftest$ac_exeext conftest.$ac_ext
9533 fi
9534
9535
9536 CFLAGS="$xorg_testset_save_CFLAGS"
9537
9538 eval supported=\$$cacheid
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9540 $as_echo "$supported" >&6; }
9541 if test "$supported" = "yes" ; then
9542 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9543 found="yes"
9544 fi
9545 fi
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561 xorg_testset_save_CFLAGS="$CFLAGS"
9562
9563 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9566 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9567 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9568 $as_echo_n "(cached) " >&6
9569 else
9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9572 int i;
9573 _ACEOF
9574 if ac_fn_c_try_compile "$LINENO"; then :
9575 xorg_cv_cc_flag_unknown_warning_option=yes
9576 else
9577 xorg_cv_cc_flag_unknown_warning_option=no
9578 fi
9579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9580 fi
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9582 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9584 CFLAGS="$xorg_testset_save_CFLAGS"
9585 fi
9586
9587 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9590 fi
9591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9593 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9594 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9595 $as_echo_n "(cached) " >&6
9596 else
9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9599 int i;
9600 _ACEOF
9601 if ac_fn_c_try_compile "$LINENO"; then :
9602 xorg_cv_cc_flag_unused_command_line_argument=yes
9603 else
9604 xorg_cv_cc_flag_unused_command_line_argument=no
9605 fi
9606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9607 fi
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9609 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9611 CFLAGS="$xorg_testset_save_CFLAGS"
9612 fi
9613
9614 found="no"
9615
9616 if test $found = "no" ; then
9617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9619 fi
9620
9621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9623 fi
9624
9625 CFLAGS="$CFLAGS -Warray-bounds"
9626
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9628 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9629 cacheid=xorg_cv_cc_flag__Warray_bounds
9630 if eval \${$cacheid+:} false; then :
9631 $as_echo_n "(cached) " >&6
9632 else
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9635 int i;
9636 int
9637 main ()
9638 {
9639
9640 ;
9641 return 0;
9642 }
9643 _ACEOF
9644 if ac_fn_c_try_link "$LINENO"; then :
9645 eval $cacheid=yes
9646 else
9647 eval $cacheid=no
9648 fi
9649 rm -f core conftest.err conftest.$ac_objext \
9650 conftest$ac_exeext conftest.$ac_ext
9651 fi
9652
9653
9654 CFLAGS="$xorg_testset_save_CFLAGS"
9655
9656 eval supported=\$$cacheid
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9658 $as_echo "$supported" >&6; }
9659 if test "$supported" = "yes" ; then
9660 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9661 found="yes"
9662 fi
9663 fi
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679 xorg_testset_save_CFLAGS="$CFLAGS"
9680
9681 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9684 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9685 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9686 $as_echo_n "(cached) " >&6
9687 else
9688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9689 /* end confdefs.h. */
9690 int i;
9691 _ACEOF
9692 if ac_fn_c_try_compile "$LINENO"; then :
9693 xorg_cv_cc_flag_unknown_warning_option=yes
9694 else
9695 xorg_cv_cc_flag_unknown_warning_option=no
9696 fi
9697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9698 fi
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9700 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9702 CFLAGS="$xorg_testset_save_CFLAGS"
9703 fi
9704
9705 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9708 fi
9709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9711 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9712 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9713 $as_echo_n "(cached) " >&6
9714 else
9715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9716 /* end confdefs.h. */
9717 int i;
9718 _ACEOF
9719 if ac_fn_c_try_compile "$LINENO"; then :
9720 xorg_cv_cc_flag_unused_command_line_argument=yes
9721 else
9722 xorg_cv_cc_flag_unused_command_line_argument=no
9723 fi
9724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9725 fi
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9727 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9728 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9729 CFLAGS="$xorg_testset_save_CFLAGS"
9730 fi
9731
9732 found="no"
9733
9734 if test $found = "no" ; then
9735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9737 fi
9738
9739 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9741 fi
9742
9743 CFLAGS="$CFLAGS -Wwrite-strings"
9744
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9746 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9747 cacheid=xorg_cv_cc_flag__Wwrite_strings
9748 if eval \${$cacheid+:} false; then :
9749 $as_echo_n "(cached) " >&6
9750 else
9751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752 /* end confdefs.h. */
9753 int i;
9754 int
9755 main ()
9756 {
9757
9758 ;
9759 return 0;
9760 }
9761 _ACEOF
9762 if ac_fn_c_try_link "$LINENO"; then :
9763 eval $cacheid=yes
9764 else
9765 eval $cacheid=no
9766 fi
9767 rm -f core conftest.err conftest.$ac_objext \
9768 conftest$ac_exeext conftest.$ac_ext
9769 fi
9770
9771
9772 CFLAGS="$xorg_testset_save_CFLAGS"
9773
9774 eval supported=\$$cacheid
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9776 $as_echo "$supported" >&6; }
9777 if test "$supported" = "yes" ; then
9778 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9779 found="yes"
9780 fi
9781 fi
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797 xorg_testset_save_CFLAGS="$CFLAGS"
9798
9799 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9802 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9803 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9804 $as_echo_n "(cached) " >&6
9805 else
9806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9807 /* end confdefs.h. */
9808 int i;
9809 _ACEOF
9810 if ac_fn_c_try_compile "$LINENO"; then :
9811 xorg_cv_cc_flag_unknown_warning_option=yes
9812 else
9813 xorg_cv_cc_flag_unknown_warning_option=no
9814 fi
9815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9816 fi
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9818 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9820 CFLAGS="$xorg_testset_save_CFLAGS"
9821 fi
9822
9823 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9826 fi
9827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9829 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9830 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9831 $as_echo_n "(cached) " >&6
9832 else
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h. */
9835 int i;
9836 _ACEOF
9837 if ac_fn_c_try_compile "$LINENO"; then :
9838 xorg_cv_cc_flag_unused_command_line_argument=yes
9839 else
9840 xorg_cv_cc_flag_unused_command_line_argument=no
9841 fi
9842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9843 fi
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9845 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9847 CFLAGS="$xorg_testset_save_CFLAGS"
9848 fi
9849
9850 found="no"
9851
9852 if test $found = "no" ; then
9853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9855 fi
9856
9857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9859 fi
9860
9861 CFLAGS="$CFLAGS -Waddress"
9862
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9864 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9865 cacheid=xorg_cv_cc_flag__Waddress
9866 if eval \${$cacheid+:} false; then :
9867 $as_echo_n "(cached) " >&6
9868 else
9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9871 int i;
9872 int
9873 main ()
9874 {
9875
9876 ;
9877 return 0;
9878 }
9879 _ACEOF
9880 if ac_fn_c_try_link "$LINENO"; then :
9881 eval $cacheid=yes
9882 else
9883 eval $cacheid=no
9884 fi
9885 rm -f core conftest.err conftest.$ac_objext \
9886 conftest$ac_exeext conftest.$ac_ext
9887 fi
9888
9889
9890 CFLAGS="$xorg_testset_save_CFLAGS"
9891
9892 eval supported=\$$cacheid
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9894 $as_echo "$supported" >&6; }
9895 if test "$supported" = "yes" ; then
9896 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9897 found="yes"
9898 fi
9899 fi
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915 xorg_testset_save_CFLAGS="$CFLAGS"
9916
9917 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9920 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9921 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9922 $as_echo_n "(cached) " >&6
9923 else
9924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925 /* end confdefs.h. */
9926 int i;
9927 _ACEOF
9928 if ac_fn_c_try_compile "$LINENO"; then :
9929 xorg_cv_cc_flag_unknown_warning_option=yes
9930 else
9931 xorg_cv_cc_flag_unknown_warning_option=no
9932 fi
9933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9934 fi
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9936 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9937 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9938 CFLAGS="$xorg_testset_save_CFLAGS"
9939 fi
9940
9941 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9944 fi
9945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9947 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9948 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9949 $as_echo_n "(cached) " >&6
9950 else
9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952 /* end confdefs.h. */
9953 int i;
9954 _ACEOF
9955 if ac_fn_c_try_compile "$LINENO"; then :
9956 xorg_cv_cc_flag_unused_command_line_argument=yes
9957 else
9958 xorg_cv_cc_flag_unused_command_line_argument=no
9959 fi
9960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9961 fi
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9963 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9964 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9965 CFLAGS="$xorg_testset_save_CFLAGS"
9966 fi
9967
9968 found="no"
9969
9970 if test $found = "no" ; then
9971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9973 fi
9974
9975 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9977 fi
9978
9979 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9980
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9982 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9983 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9984 if eval \${$cacheid+:} false; then :
9985 $as_echo_n "(cached) " >&6
9986 else
9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988 /* end confdefs.h. */
9989 int i;
9990 int
9991 main ()
9992 {
9993
9994 ;
9995 return 0;
9996 }
9997 _ACEOF
9998 if ac_fn_c_try_link "$LINENO"; then :
9999 eval $cacheid=yes
10000 else
10001 eval $cacheid=no
10002 fi
10003 rm -f core conftest.err conftest.$ac_objext \
10004 conftest$ac_exeext conftest.$ac_ext
10005 fi
10006
10007
10008 CFLAGS="$xorg_testset_save_CFLAGS"
10009
10010 eval supported=\$$cacheid
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10012 $as_echo "$supported" >&6; }
10013 if test "$supported" = "yes" ; then
10014 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10015 found="yes"
10016 fi
10017 fi
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033 xorg_testset_save_CFLAGS="$CFLAGS"
10034
10035 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10038 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10039 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10040 $as_echo_n "(cached) " >&6
10041 else
10042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10043 /* end confdefs.h. */
10044 int i;
10045 _ACEOF
10046 if ac_fn_c_try_compile "$LINENO"; then :
10047 xorg_cv_cc_flag_unknown_warning_option=yes
10048 else
10049 xorg_cv_cc_flag_unknown_warning_option=no
10050 fi
10051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10052 fi
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10054 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10056 CFLAGS="$xorg_testset_save_CFLAGS"
10057 fi
10058
10059 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10062 fi
10063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10065 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10066 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10067 $as_echo_n "(cached) " >&6
10068 else
10069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10070 /* end confdefs.h. */
10071 int i;
10072 _ACEOF
10073 if ac_fn_c_try_compile "$LINENO"; then :
10074 xorg_cv_cc_flag_unused_command_line_argument=yes
10075 else
10076 xorg_cv_cc_flag_unused_command_line_argument=no
10077 fi
10078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10079 fi
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10081 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10083 CFLAGS="$xorg_testset_save_CFLAGS"
10084 fi
10085
10086 found="no"
10087
10088 if test $found = "no" ; then
10089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10091 fi
10092
10093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10095 fi
10096
10097 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10098
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10100 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10101 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10102 if eval \${$cacheid+:} false; then :
10103 $as_echo_n "(cached) " >&6
10104 else
10105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10106 /* end confdefs.h. */
10107 int i;
10108 int
10109 main ()
10110 {
10111
10112 ;
10113 return 0;
10114 }
10115 _ACEOF
10116 if ac_fn_c_try_link "$LINENO"; then :
10117 eval $cacheid=yes
10118 else
10119 eval $cacheid=no
10120 fi
10121 rm -f core conftest.err conftest.$ac_objext \
10122 conftest$ac_exeext conftest.$ac_ext
10123 fi
10124
10125
10126 CFLAGS="$xorg_testset_save_CFLAGS"
10127
10128 eval supported=\$$cacheid
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10130 $as_echo "$supported" >&6; }
10131 if test "$supported" = "yes" ; then
10132 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10133 found="yes"
10134 fi
10135 fi
10136
10137
10138 fi
10139
10140
10141
10142
10143
10144
10145
10146 CWARNFLAGS="$BASE_CFLAGS"
10147 if test "x$GCC" = xyes ; then
10148 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10149 fi
10150
10151
10152
10153
10154
10155
10156
10157
10158 # Check whether --enable-strict-compilation was given.
10159 if test "${enable_strict_compilation+set}" = set; then :
10160 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10161 else
10162 STRICT_COMPILE=no
10163 fi
10164
10165
10166
10167
10168
10169
10170 STRICT_CFLAGS=""
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184 xorg_testset_save_CFLAGS="$CFLAGS"
10185
10186 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10189 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10190 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10191 $as_echo_n "(cached) " >&6
10192 else
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10195 int i;
10196 _ACEOF
10197 if ac_fn_c_try_compile "$LINENO"; then :
10198 xorg_cv_cc_flag_unknown_warning_option=yes
10199 else
10200 xorg_cv_cc_flag_unknown_warning_option=no
10201 fi
10202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10203 fi
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10205 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10206 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10207 CFLAGS="$xorg_testset_save_CFLAGS"
10208 fi
10209
10210 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10213 fi
10214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10216 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10217 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10218 $as_echo_n "(cached) " >&6
10219 else
10220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10221 /* end confdefs.h. */
10222 int i;
10223 _ACEOF
10224 if ac_fn_c_try_compile "$LINENO"; then :
10225 xorg_cv_cc_flag_unused_command_line_argument=yes
10226 else
10227 xorg_cv_cc_flag_unused_command_line_argument=no
10228 fi
10229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10230 fi
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10232 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10234 CFLAGS="$xorg_testset_save_CFLAGS"
10235 fi
10236
10237 found="no"
10238
10239 if test $found = "no" ; then
10240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10242 fi
10243
10244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10246 fi
10247
10248 CFLAGS="$CFLAGS -pedantic"
10249
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10251 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10252 cacheid=xorg_cv_cc_flag__pedantic
10253 if eval \${$cacheid+:} false; then :
10254 $as_echo_n "(cached) " >&6
10255 else
10256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h. */
10258 int i;
10259 int
10260 main ()
10261 {
10262
10263 ;
10264 return 0;
10265 }
10266 _ACEOF
10267 if ac_fn_c_try_link "$LINENO"; then :
10268 eval $cacheid=yes
10269 else
10270 eval $cacheid=no
10271 fi
10272 rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10274 fi
10275
10276
10277 CFLAGS="$xorg_testset_save_CFLAGS"
10278
10279 eval supported=\$$cacheid
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10281 $as_echo "$supported" >&6; }
10282 if test "$supported" = "yes" ; then
10283 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10284 found="yes"
10285 fi
10286 fi
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302 xorg_testset_save_CFLAGS="$CFLAGS"
10303
10304 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10307 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10308 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10309 $as_echo_n "(cached) " >&6
10310 else
10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312 /* end confdefs.h. */
10313 int i;
10314 _ACEOF
10315 if ac_fn_c_try_compile "$LINENO"; then :
10316 xorg_cv_cc_flag_unknown_warning_option=yes
10317 else
10318 xorg_cv_cc_flag_unknown_warning_option=no
10319 fi
10320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10321 fi
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10323 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10324 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10325 CFLAGS="$xorg_testset_save_CFLAGS"
10326 fi
10327
10328 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10331 fi
10332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10334 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10335 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10336 $as_echo_n "(cached) " >&6
10337 else
10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339 /* end confdefs.h. */
10340 int i;
10341 _ACEOF
10342 if ac_fn_c_try_compile "$LINENO"; then :
10343 xorg_cv_cc_flag_unused_command_line_argument=yes
10344 else
10345 xorg_cv_cc_flag_unused_command_line_argument=no
10346 fi
10347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10348 fi
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10350 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10351 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10352 CFLAGS="$xorg_testset_save_CFLAGS"
10353 fi
10354
10355 found="no"
10356
10357 if test $found = "no" ; then
10358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10360 fi
10361
10362 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10364 fi
10365
10366 CFLAGS="$CFLAGS -Werror"
10367
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10369 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10370 cacheid=xorg_cv_cc_flag__Werror
10371 if eval \${$cacheid+:} false; then :
10372 $as_echo_n "(cached) " >&6
10373 else
10374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10375 /* end confdefs.h. */
10376 int i;
10377 int
10378 main ()
10379 {
10380
10381 ;
10382 return 0;
10383 }
10384 _ACEOF
10385 if ac_fn_c_try_link "$LINENO"; then :
10386 eval $cacheid=yes
10387 else
10388 eval $cacheid=no
10389 fi
10390 rm -f core conftest.err conftest.$ac_objext \
10391 conftest$ac_exeext conftest.$ac_ext
10392 fi
10393
10394
10395 CFLAGS="$xorg_testset_save_CFLAGS"
10396
10397 eval supported=\$$cacheid
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10399 $as_echo "$supported" >&6; }
10400 if test "$supported" = "yes" ; then
10401 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10402 found="yes"
10403 fi
10404 fi
10405
10406 if test $found = "no" ; then
10407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10409 fi
10410
10411 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10413 fi
10414
10415 CFLAGS="$CFLAGS -errwarn"
10416
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10418 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10419 cacheid=xorg_cv_cc_flag__errwarn
10420 if eval \${$cacheid+:} false; then :
10421 $as_echo_n "(cached) " >&6
10422 else
10423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10424 /* end confdefs.h. */
10425 int i;
10426 int
10427 main ()
10428 {
10429
10430 ;
10431 return 0;
10432 }
10433 _ACEOF
10434 if ac_fn_c_try_link "$LINENO"; then :
10435 eval $cacheid=yes
10436 else
10437 eval $cacheid=no
10438 fi
10439 rm -f core conftest.err conftest.$ac_objext \
10440 conftest$ac_exeext conftest.$ac_ext
10441 fi
10442
10443
10444 CFLAGS="$xorg_testset_save_CFLAGS"
10445
10446 eval supported=\$$cacheid
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10448 $as_echo "$supported" >&6; }
10449 if test "$supported" = "yes" ; then
10450 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10451 found="yes"
10452 fi
10453 fi
10454
10455
10456
10457 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10458 # activate it with -Werror, so we add it here explicitly.
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472 xorg_testset_save_CFLAGS="$CFLAGS"
10473
10474 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10477 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10478 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10479 $as_echo_n "(cached) " >&6
10480 else
10481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h. */
10483 int i;
10484 _ACEOF
10485 if ac_fn_c_try_compile "$LINENO"; then :
10486 xorg_cv_cc_flag_unknown_warning_option=yes
10487 else
10488 xorg_cv_cc_flag_unknown_warning_option=no
10489 fi
10490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10491 fi
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10493 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10495 CFLAGS="$xorg_testset_save_CFLAGS"
10496 fi
10497
10498 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10501 fi
10502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10504 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10505 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10506 $as_echo_n "(cached) " >&6
10507 else
10508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10509 /* end confdefs.h. */
10510 int i;
10511 _ACEOF
10512 if ac_fn_c_try_compile "$LINENO"; then :
10513 xorg_cv_cc_flag_unused_command_line_argument=yes
10514 else
10515 xorg_cv_cc_flag_unused_command_line_argument=no
10516 fi
10517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10518 fi
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10520 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10522 CFLAGS="$xorg_testset_save_CFLAGS"
10523 fi
10524
10525 found="no"
10526
10527 if test $found = "no" ; then
10528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10530 fi
10531
10532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10534 fi
10535
10536 CFLAGS="$CFLAGS -Werror=attributes"
10537
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10539 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10540 cacheid=xorg_cv_cc_flag__Werror_attributes
10541 if eval \${$cacheid+:} false; then :
10542 $as_echo_n "(cached) " >&6
10543 else
10544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10546 int i;
10547 int
10548 main ()
10549 {
10550
10551 ;
10552 return 0;
10553 }
10554 _ACEOF
10555 if ac_fn_c_try_link "$LINENO"; then :
10556 eval $cacheid=yes
10557 else
10558 eval $cacheid=no
10559 fi
10560 rm -f core conftest.err conftest.$ac_objext \
10561 conftest$ac_exeext conftest.$ac_ext
10562 fi
10563
10564
10565 CFLAGS="$xorg_testset_save_CFLAGS"
10566
10567 eval supported=\$$cacheid
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10569 $as_echo "$supported" >&6; }
10570 if test "$supported" = "yes" ; then
10571 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10572 found="yes"
10573 fi
10574 fi
10575
10576
10577
10578 if test "x$STRICT_COMPILE" = "xyes"; then
10579 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10580 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10581 fi
10582
10583
10584
10585
10586
10587
10588 cat >>confdefs.h <<_ACEOF
10589 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10590 _ACEOF
10591
10592 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10593 if test "x$PVM" = "x"; then
10594 PVM="0"
10595 fi
10596
10597 cat >>confdefs.h <<_ACEOF
10598 #define PACKAGE_VERSION_MINOR $PVM
10599 _ACEOF
10600
10601 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10602 if test "x$PVP" = "x"; then
10603 PVP="0"
10604 fi
10605
10606 cat >>confdefs.h <<_ACEOF
10607 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10608 _ACEOF
10609
10610
10611
10612 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10613 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10614 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10615 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10616
10617
10618
10619
10620 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10621 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10622 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10623 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10624 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10625
10626
10627
10628
10629
10630
10631 if test x$APP_MAN_SUFFIX = x ; then
10632 APP_MAN_SUFFIX=1
10633 fi
10634 if test x$APP_MAN_DIR = x ; then
10635 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10636 fi
10637
10638 if test x$LIB_MAN_SUFFIX = x ; then
10639 LIB_MAN_SUFFIX=3
10640 fi
10641 if test x$LIB_MAN_DIR = x ; then
10642 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10643 fi
10644
10645 if test x$FILE_MAN_SUFFIX = x ; then
10646 case $host_os in
10647 solaris*) FILE_MAN_SUFFIX=4 ;;
10648 *) FILE_MAN_SUFFIX=5 ;;
10649 esac
10650 fi
10651 if test x$FILE_MAN_DIR = x ; then
10652 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10653 fi
10654
10655 if test x$MISC_MAN_SUFFIX = x ; then
10656 case $host_os in
10657 solaris*) MISC_MAN_SUFFIX=5 ;;
10658 *) MISC_MAN_SUFFIX=7 ;;
10659 esac
10660 fi
10661 if test x$MISC_MAN_DIR = x ; then
10662 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10663 fi
10664
10665 if test x$DRIVER_MAN_SUFFIX = x ; then
10666 case $host_os in
10667 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10668 *) DRIVER_MAN_SUFFIX=4 ;;
10669 esac
10670 fi
10671 if test x$DRIVER_MAN_DIR = x ; then
10672 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10673 fi
10674
10675 if test x$ADMIN_MAN_SUFFIX = x ; then
10676 case $host_os in
10677 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10678 *) ADMIN_MAN_SUFFIX=8 ;;
10679 esac
10680 fi
10681 if test x$ADMIN_MAN_DIR = x ; then
10682 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10683 fi
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699 XORG_MAN_PAGE="X Version 11"
10700
10701 MAN_SUBSTS="\
10702 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10703 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10704 -e 's|__xservername__|Xorg|g' \
10705 -e 's|__xconfigfile__|xorg.conf|g' \
10706 -e 's|__projectroot__|\$(prefix)|g' \
10707 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10708 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10709 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10710 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10711 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10712 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10713 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10714
10715
10716
10717 # Check whether --enable-silent-rules was given.
10718 if test "${enable_silent_rules+set}" = set; then :
10719 enableval=$enable_silent_rules;
10720 fi
10721
10722 case $enable_silent_rules in # (((
10723 yes) AM_DEFAULT_VERBOSITY=0;;
10724 no) AM_DEFAULT_VERBOSITY=1;;
10725 *) AM_DEFAULT_VERBOSITY=0;;
10726 esac
10727 am_make=${MAKE-make}
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10729 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10730 if ${am_cv_make_support_nested_variables+:} false; then :
10731 $as_echo_n "(cached) " >&6
10732 else
10733 if $as_echo 'TRUE=$(BAR$(V))
10734 BAR0=false
10735 BAR1=true
10736 V=1
10737 am__doit:
10738 @$(TRUE)
10739 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10740 am_cv_make_support_nested_variables=yes
10741 else
10742 am_cv_make_support_nested_variables=no
10743 fi
10744 fi
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10746 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10747 if test $am_cv_make_support_nested_variables = yes; then
10748 AM_V='$(V)'
10749 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10750 else
10751 AM_V=$AM_DEFAULT_VERBOSITY
10752 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10753 fi
10754 AM_BACKSLASH='\'
10755
10756
10757
10758
10759 # Check whether --enable-docs was given.
10760 if test "${enable_docs+set}" = set; then :
10761 enableval=$enable_docs; build_docs=$enableval
10762 else
10763 build_docs=yes
10764 fi
10765
10766
10767 if test x$build_docs = xyes; then
10768 ENABLE_DOCS_TRUE=
10769 ENABLE_DOCS_FALSE='#'
10770 else
10771 ENABLE_DOCS_TRUE='#'
10772 ENABLE_DOCS_FALSE=
10773 fi
10774
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
10776 $as_echo_n "checking whether to build documentation... " >&6; }
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
10778 $as_echo "$build_docs" >&6; }
10779
10780
10781
10782
10783
10784 # Check whether --with-xmlto was given.
10785 if test "${with_xmlto+set}" = set; then :
10786 withval=$with_xmlto; use_xmlto=$withval
10787 else
10788 use_xmlto=auto
10789 fi
10790
10791
10792
10793 if test "x$use_xmlto" = x"auto"; then
10794 # Extract the first word of "xmlto", so it can be a program name with args.
10795 set dummy xmlto; ac_word=$2
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10797 $as_echo_n "checking for $ac_word... " >&6; }
10798 if ${ac_cv_path_XMLTO+:} false; then :
10799 $as_echo_n "(cached) " >&6
10800 else
10801 case $XMLTO in
10802 [\\/]* | ?:[\\/]*)
10803 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10804 ;;
10805 *)
10806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10807 for as_dir in $PATH
10808 do
10809 IFS=$as_save_IFS
10810 test -z "$as_dir" && as_dir=.
10811 for ac_exec_ext in '' $ac_executable_extensions; do
10812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10813 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10815 break 2
10816 fi
10817 done
10818 done
10819 IFS=$as_save_IFS
10820
10821 ;;
10822 esac
10823 fi
10824 XMLTO=$ac_cv_path_XMLTO
10825 if test -n "$XMLTO"; then
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10827 $as_echo "$XMLTO" >&6; }
10828 else
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830 $as_echo "no" >&6; }
10831 fi
10832
10833
10834 if test "x$XMLTO" = "x"; then
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
10836 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
10837 have_xmlto=no
10838 else
10839 have_xmlto=yes
10840 fi
10841 elif test "x$use_xmlto" = x"yes" ; then
10842 # Extract the first word of "xmlto", so it can be a program name with args.
10843 set dummy xmlto; ac_word=$2
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10845 $as_echo_n "checking for $ac_word... " >&6; }
10846 if ${ac_cv_path_XMLTO+:} false; then :
10847 $as_echo_n "(cached) " >&6
10848 else
10849 case $XMLTO in
10850 [\\/]* | ?:[\\/]*)
10851 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10852 ;;
10853 *)
10854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10855 for as_dir in $PATH
10856 do
10857 IFS=$as_save_IFS
10858 test -z "$as_dir" && as_dir=.
10859 for ac_exec_ext in '' $ac_executable_extensions; do
10860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10861 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10863 break 2
10864 fi
10865 done
10866 done
10867 IFS=$as_save_IFS
10868
10869 ;;
10870 esac
10871 fi
10872 XMLTO=$ac_cv_path_XMLTO
10873 if test -n "$XMLTO"; then
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10875 $as_echo "$XMLTO" >&6; }
10876 else
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10878 $as_echo "no" >&6; }
10879 fi
10880
10881
10882 if test "x$XMLTO" = "x"; then
10883 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
10884 fi
10885 have_xmlto=yes
10886 elif test "x$use_xmlto" = x"no" ; then
10887 if test "x$XMLTO" != "x"; then
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
10889 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
10890 fi
10891 have_xmlto=no
10892 else
10893 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
10894 fi
10895
10896 # Test for a minimum version of xmlto, if provided.
10897 if test "$have_xmlto" = yes; then
10898 # scrape the xmlto version
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
10900 $as_echo_n "checking the xmlto version... " >&6; }
10901 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
10903 $as_echo "$xmlto_version" >&6; }
10904 as_arg_v1=$xmlto_version
10905 as_arg_v2=0.0.22
10906 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10907 case $? in #(
10908 1) :
10909 if test "x$use_xmlto" = xauto; then
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
10911 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
10912 have_xmlto=no
10913 else
10914 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
10915 fi ;; #(
10916 0) :
10917 ;; #(
10918 2) :
10919 ;; #(
10920 *) :
10921 ;;
10922 esac
10923 fi
10924
10925 # Test for the ability of xmlto to generate a text target
10926 have_xmlto_text=no
10927 cat > conftest.xml << "EOF"
10928 EOF
10929 if test "$have_xmlto" = yes; then :
10930 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
10931 have_xmlto_text=yes
10932 else
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
10934 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
10935 fi
10936 fi
10937 rm -f conftest.xml
10938 if test $have_xmlto_text = yes; then
10939 HAVE_XMLTO_TEXT_TRUE=
10940 HAVE_XMLTO_TEXT_FALSE='#'
10941 else
10942 HAVE_XMLTO_TEXT_TRUE='#'
10943 HAVE_XMLTO_TEXT_FALSE=
10944 fi
10945
10946 if test "$have_xmlto" = yes; then
10947 HAVE_XMLTO_TRUE=
10948 HAVE_XMLTO_FALSE='#'
10949 else
10950 HAVE_XMLTO_TRUE='#'
10951 HAVE_XMLTO_FALSE=
10952 fi
10953
10954
10955
10956
10957
10958
10959 # Check whether --with-fop was given.
10960 if test "${with_fop+set}" = set; then :
10961 withval=$with_fop; use_fop=$withval
10962 else
10963 use_fop=auto
10964 fi
10965
10966
10967
10968 if test "x$use_fop" = x"auto"; then
10969 # Extract the first word of "fop", so it can be a program name with args.
10970 set dummy fop; ac_word=$2
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10972 $as_echo_n "checking for $ac_word... " >&6; }
10973 if ${ac_cv_path_FOP+:} false; then :
10974 $as_echo_n "(cached) " >&6
10975 else
10976 case $FOP in
10977 [\\/]* | ?:[\\/]*)
10978 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
10979 ;;
10980 *)
10981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982 for as_dir in $PATH
10983 do
10984 IFS=$as_save_IFS
10985 test -z "$as_dir" && as_dir=.
10986 for ac_exec_ext in '' $ac_executable_extensions; do
10987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10988 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
10989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10990 break 2
10991 fi
10992 done
10993 done
10994 IFS=$as_save_IFS
10995
10996 ;;
10997 esac
10998 fi
10999 FOP=$ac_cv_path_FOP
11000 if test -n "$FOP"; then
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11002 $as_echo "$FOP" >&6; }
11003 else
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11005 $as_echo "no" >&6; }
11006 fi
11007
11008
11009 if test "x$FOP" = "x"; then
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
11011 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
11012 have_fop=no
11013 else
11014 have_fop=yes
11015 fi
11016 elif test "x$use_fop" = x"yes" ; then
11017 # Extract the first word of "fop", so it can be a program name with args.
11018 set dummy fop; ac_word=$2
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11020 $as_echo_n "checking for $ac_word... " >&6; }
11021 if ${ac_cv_path_FOP+:} false; then :
11022 $as_echo_n "(cached) " >&6
11023 else
11024 case $FOP in
11025 [\\/]* | ?:[\\/]*)
11026 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11027 ;;
11028 *)
11029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030 for as_dir in $PATH
11031 do
11032 IFS=$as_save_IFS
11033 test -z "$as_dir" && as_dir=.
11034 for ac_exec_ext in '' $ac_executable_extensions; do
11035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11036 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
11037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11038 break 2
11039 fi
11040 done
11041 done
11042 IFS=$as_save_IFS
11043
11044 ;;
11045 esac
11046 fi
11047 FOP=$ac_cv_path_FOP
11048 if test -n "$FOP"; then
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11050 $as_echo "$FOP" >&6; }
11051 else
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053 $as_echo "no" >&6; }
11054 fi
11055
11056
11057 if test "x$FOP" = "x"; then
11058 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
11059 fi
11060 have_fop=yes
11061 elif test "x$use_fop" = x"no" ; then
11062 if test "x$FOP" != "x"; then
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
11064 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
11065 fi
11066 have_fop=no
11067 else
11068 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
11069 fi
11070
11071 # Test for a minimum version of fop, if provided.
11072
11073 if test "$have_fop" = yes; then
11074 HAVE_FOP_TRUE=
11075 HAVE_FOP_FALSE='#'
11076 else
11077 HAVE_FOP_TRUE='#'
11078 HAVE_FOP_FALSE=
11079 fi
11080
11081
11082
11083
11084 # Preserves the interface, should it be implemented later
11085
11086
11087
11088 # Check whether --with-xsltproc was given.
11089 if test "${with_xsltproc+set}" = set; then :
11090 withval=$with_xsltproc; use_xsltproc=$withval
11091 else
11092 use_xsltproc=auto
11093 fi
11094
11095
11096
11097 if test "x$use_xsltproc" = x"auto"; then
11098 # Extract the first word of "xsltproc", so it can be a program name with args.
11099 set dummy xsltproc; ac_word=$2
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11101 $as_echo_n "checking for $ac_word... " >&6; }
11102 if ${ac_cv_path_XSLTPROC+:} false; then :
11103 $as_echo_n "(cached) " >&6
11104 else
11105 case $XSLTPROC in
11106 [\\/]* | ?:[\\/]*)
11107 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
11108 ;;
11109 *)
11110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11111 for as_dir in $PATH
11112 do
11113 IFS=$as_save_IFS
11114 test -z "$as_dir" && as_dir=.
11115 for ac_exec_ext in '' $ac_executable_extensions; do
11116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11117 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
11118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11119 break 2
11120 fi
11121 done
11122 done
11123 IFS=$as_save_IFS
11124
11125 ;;
11126 esac
11127 fi
11128 XSLTPROC=$ac_cv_path_XSLTPROC
11129 if test -n "$XSLTPROC"; then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
11131 $as_echo "$XSLTPROC" >&6; }
11132 else
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11134 $as_echo "no" >&6; }
11135 fi
11136
11137
11138 if test "x$XSLTPROC" = "x"; then
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
11140 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
11141 have_xsltproc=no
11142 else
11143 have_xsltproc=yes
11144 fi
11145 elif test "x$use_xsltproc" = x"yes" ; then
11146 # Extract the first word of "xsltproc", so it can be a program name with args.
11147 set dummy xsltproc; ac_word=$2
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11149 $as_echo_n "checking for $ac_word... " >&6; }
11150 if ${ac_cv_path_XSLTPROC+:} false; then :
11151 $as_echo_n "(cached) " >&6
11152 else
11153 case $XSLTPROC in
11154 [\\/]* | ?:[\\/]*)
11155 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
11156 ;;
11157 *)
11158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11159 for as_dir in $PATH
11160 do
11161 IFS=$as_save_IFS
11162 test -z "$as_dir" && as_dir=.
11163 for ac_exec_ext in '' $ac_executable_extensions; do
11164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11165 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
11166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11167 break 2
11168 fi
11169 done
11170 done
11171 IFS=$as_save_IFS
11172
11173 ;;
11174 esac
11175 fi
11176 XSLTPROC=$ac_cv_path_XSLTPROC
11177 if test -n "$XSLTPROC"; then
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
11179 $as_echo "$XSLTPROC" >&6; }
11180 else
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11182 $as_echo "no" >&6; }
11183 fi
11184
11185
11186 if test "x$XSLTPROC" = "x"; then
11187 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
11188 fi
11189 have_xsltproc=yes
11190 elif test "x$use_xsltproc" = x"no" ; then
11191 if test "x$XSLTPROC" != "x"; then
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
11193 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
11194 fi
11195 have_xsltproc=no
11196 else
11197 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
11198 fi
11199
11200 if test "$have_xsltproc" = yes; then
11201 HAVE_XSLTPROC_TRUE=
11202 HAVE_XSLTPROC_FALSE='#'
11203 else
11204 HAVE_XSLTPROC_TRUE='#'
11205 HAVE_XSLTPROC_FALSE=
11206 fi
11207
11208
11209
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
11211 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
11212 XORG_SGML_PATH=
11213 if test -n "$PKG_CONFIG" && \
11214 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
11215 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
11216 ac_status=$?
11217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11218 test $ac_status = 0; }; then
11219 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
11220 else
11221 :
11222
11223 fi
11224
11225 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
11226 # the path and the name of the doc stylesheet
11227 if test "x$XORG_SGML_PATH" != "x" ; then
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
11229 $as_echo "$XORG_SGML_PATH" >&6; }
11230 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
11231 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
11232 else
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234 $as_echo "no" >&6; }
11235 fi
11236
11237
11238
11239
11240 if test "x$XSL_STYLESHEET" != "x"; then
11241 HAVE_STYLESHEETS_TRUE=
11242 HAVE_STYLESHEETS_FALSE='#'
11243 else
11244 HAVE_STYLESHEETS_TRUE='#'
11245 HAVE_STYLESHEETS_FALSE=
11246 fi
11247
11248
11249
11250 # Because xtrans is included into other modules rather than being linked
11251 # with, these defines have to be added to the cflags line
11252
11253 # fchown()
11254
11255 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
11256 if test "x$ac_cv_func_fchown" = xyes; then :
11257 fchown_define="-DHAS_FCHOWN"
11258 else
11259 fchown_define=""
11260 fi
11261
11262
11263
11264
11265 # sticky bit
11266 #
11267 # if any system exists without sticky dir bits this
11268 # needs to be redone with a real autoconf test
11269
11270 sticky_bit_define="-DHAS_STICKY_DIR_BIT"
11271
11272
11273
11274 ac_config_files="$ac_config_files Makefile doc/Makefile xtrans.pc"
11275
11276 cat >confcache <<\_ACEOF
11277 # This file is a shell script that caches the results of configure
11278 # tests run on this system so they can be shared between configure
11279 # scripts and configure runs, see configure's option --config-cache.
11280 # It is not useful on other systems. If it contains results you don't
11281 # want to keep, you may remove or edit it.
11282 #
11283 # config.status only pays attention to the cache file if you give it
11284 # the --recheck option to rerun configure.
11285 #
11286 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11287 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11288 # following values.
11289
11290 _ACEOF
11291
11292 # The following way of writing the cache mishandles newlines in values,
11293 # but we know of no workaround that is simple, portable, and efficient.
11294 # So, we kill variables containing newlines.
11295 # Ultrix sh set writes to stderr and can't be redirected directly,
11296 # and sets the high bit in the cache file unless we assign to the vars.
11297 (
11298 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11299 eval ac_val=\$$ac_var
11300 case $ac_val in #(
11301 *${as_nl}*)
11302 case $ac_var in #(
11303 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11304 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11305 esac
11306 case $ac_var in #(
11307 _ | IFS | as_nl) ;; #(
11308 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11309 *) { eval $ac_var=; unset $ac_var;} ;;
11310 esac ;;
11311 esac
11312 done
11313
11314 (set) 2>&1 |
11315 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11316 *${as_nl}ac_space=\ *)
11317 # `set' does not quote correctly, so add quotes: double-quote
11318 # substitution turns \\\\ into \\, and sed turns \\ into \.
11319 sed -n \
11320 "s/'/'\\\\''/g;
11321 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11322 ;; #(
11323 *)
11324 # `set' quotes correctly as required by POSIX, so do not add quotes.
11325 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11326 ;;
11327 esac |
11328 sort
11329 ) |
11330 sed '
11331 /^ac_cv_env_/b end
11332 t clear
11333 :clear
11334 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11335 t end
11336 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11337 :end' >>confcache
11338 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11339 if test -w "$cache_file"; then
11340 if test "x$cache_file" != "x/dev/null"; then
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11342 $as_echo "$as_me: updating cache $cache_file" >&6;}
11343 if test ! -f "$cache_file" || test -h "$cache_file"; then
11344 cat confcache >"$cache_file"
11345 else
11346 case $cache_file in #(
11347 */* | ?:*)
11348 mv -f confcache "$cache_file"$$ &&
11349 mv -f "$cache_file"$$ "$cache_file" ;; #(
11350 *)
11351 mv -f confcache "$cache_file" ;;
11352 esac
11353 fi
11354 fi
11355 else
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11357 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11358 fi
11359 fi
11360 rm -f confcache
11361
11362 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11363 # Let make expand exec_prefix.
11364 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11365
11366 # Transform confdefs.h into DEFS.
11367 # Protect against shell expansion while executing Makefile rules.
11368 # Protect against Makefile macro expansion.
11369 #
11370 # If the first sed substitution is executed (which looks for macros that
11371 # take arguments), then branch to the quote section. Otherwise,
11372 # look for a macro that doesn't take arguments.
11373 ac_script='
11374 :mline
11375 /\\$/{
11376 N
11377 s,\\\n,,
11378 b mline
11379 }
11380 t clear
11381 :clear
11382 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11383 t quote
11384 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11385 t quote
11386 b any
11387 :quote
11388 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11389 s/\[/\\&/g
11390 s/\]/\\&/g
11391 s/\$/$$/g
11392 H
11393 :any
11394 ${
11395 g
11396 s/^\n//
11397 s/\n/ /g
11398 p
11399 }
11400 '
11401 DEFS=`sed -n "$ac_script" confdefs.h`
11402
11403
11404 ac_libobjs=
11405 ac_ltlibobjs=
11406 U=
11407 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11408 # 1. Remove the extension, and $U if already installed.
11409 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11410 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11411 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11412 # will be set to the directory where LIBOBJS objects are built.
11413 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11414 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11415 done
11416 LIBOBJS=$ac_libobjs
11417
11418 LTLIBOBJS=$ac_ltlibobjs
11419
11420
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11422 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11423 if test -n "$am_sleep_pid"; then
11424 # Hide warnings about reused PIDs.
11425 wait $am_sleep_pid 2>/dev/null
11426 fi
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11428 $as_echo "done" >&6; }
11429 if test -n "$EXEEXT"; then
11430 am__EXEEXT_TRUE=
11431 am__EXEEXT_FALSE='#'
11432 else
11433 am__EXEEXT_TRUE='#'
11434 am__EXEEXT_FALSE=
11435 fi
11436
11437 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11438 as_fn_error $? "conditional \"AMDEP\" was never defined.
11439 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11440 fi
11441 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11442 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11443 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11444 fi
11445 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
11446 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
11447 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11448 fi
11449 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
11450 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
11451 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11452 fi
11453 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
11454 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
11455 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11456 fi
11457 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
11458 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
11459 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11460 fi
11461 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
11462 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
11463 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11464 fi
11465 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
11466 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
11467 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11468 fi
11469
11470 : "${CONFIG_STATUS=./config.status}"
11471 ac_write_fail=0
11472 ac_clean_files_save=$ac_clean_files
11473 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11475 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11476 as_write_fail=0
11477 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11478 #! $SHELL
11479 # Generated by $as_me.
11480 # Run this file to recreate the current configuration.
11481 # Compiler output produced by configure, useful for debugging
11482 # configure, is in config.log if it exists.
11483
11484 debug=false
11485 ac_cs_recheck=false
11486 ac_cs_silent=false
11487
11488 SHELL=\${CONFIG_SHELL-$SHELL}
11489 export SHELL
11490 _ASEOF
11491 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11492 ## -------------------- ##
11493 ## M4sh Initialization. ##
11494 ## -------------------- ##
11495
11496 # Be more Bourne compatible
11497 DUALCASE=1; export DUALCASE # for MKS sh
11498 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11499 emulate sh
11500 NULLCMD=:
11501 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11502 # is contrary to our usage. Disable this feature.
11503 alias -g '${1+"$@"}'='"$@"'
11504 setopt NO_GLOB_SUBST
11505 else
11506 case `(set -o) 2>/dev/null` in #(
11507 *posix*) :
11508 set -o posix ;; #(
11509 *) :
11510 ;;
11511 esac
11512 fi
11513
11514
11515 as_nl='
11516 '
11517 export as_nl
11518 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11519 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11520 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11521 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11522 # Prefer a ksh shell builtin over an external printf program on Solaris,
11523 # but without wasting forks for bash or zsh.
11524 if test -z "$BASH_VERSION$ZSH_VERSION" \
11525 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11526 as_echo='print -r --'
11527 as_echo_n='print -rn --'
11528 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11529 as_echo='printf %s\n'
11530 as_echo_n='printf %s'
11531 else
11532 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11533 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11534 as_echo_n='/usr/ucb/echo -n'
11535 else
11536 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11537 as_echo_n_body='eval
11538 arg=$1;
11539 case $arg in #(
11540 *"$as_nl"*)
11541 expr "X$arg" : "X\\(.*\\)$as_nl";
11542 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11543 esac;
11544 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11545 '
11546 export as_echo_n_body
11547 as_echo_n='sh -c $as_echo_n_body as_echo'
11548 fi
11549 export as_echo_body
11550 as_echo='sh -c $as_echo_body as_echo'
11551 fi
11552
11553 # The user is always right.
11554 if test "${PATH_SEPARATOR+set}" != set; then
11555 PATH_SEPARATOR=:
11556 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11557 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11558 PATH_SEPARATOR=';'
11559 }
11560 fi
11561
11562
11563 # IFS
11564 # We need space, tab and new line, in precisely that order. Quoting is
11565 # there to prevent editors from complaining about space-tab.
11566 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11567 # splitting by setting IFS to empty value.)
11568 IFS=" "" $as_nl"
11569
11570 # Find who we are. Look in the path if we contain no directory separator.
11571 as_myself=
11572 case $0 in #((
11573 *[\\/]* ) as_myself=$0 ;;
11574 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11575 for as_dir in $PATH
11576 do
11577 IFS=$as_save_IFS
11578 test -z "$as_dir" && as_dir=.
11579 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11580 done
11581 IFS=$as_save_IFS
11582
11583 ;;
11584 esac
11585 # We did not find ourselves, most probably we were run as `sh COMMAND'
11586 # in which case we are not to be found in the path.
11587 if test "x$as_myself" = x; then
11588 as_myself=$0
11589 fi
11590 if test ! -f "$as_myself"; then
11591 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11592 exit 1
11593 fi
11594
11595 # Unset variables that we do not need and which cause bugs (e.g. in
11596 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11597 # suppresses any "Segmentation fault" message there. '((' could
11598 # trigger a bug in pdksh 5.2.14.
11599 for as_var in BASH_ENV ENV MAIL MAILPATH
11600 do eval test x\${$as_var+set} = xset \
11601 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11602 done
11603 PS1='$ '
11604 PS2='> '
11605 PS4='+ '
11606
11607 # NLS nuisances.
11608 LC_ALL=C
11609 export LC_ALL
11610 LANGUAGE=C
11611 export LANGUAGE
11612
11613 # CDPATH.
11614 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11615
11616
11617 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11618 # ----------------------------------------
11619 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11620 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11621 # script with STATUS, using 1 if that was 0.
11622 as_fn_error ()
11623 {
11624 as_status=$1; test $as_status -eq 0 && as_status=1
11625 if test "$4"; then
11626 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11627 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11628 fi
11629 $as_echo "$as_me: error: $2" >&2
11630 as_fn_exit $as_status
11631 } # as_fn_error
11632
11633
11634 # as_fn_set_status STATUS
11635 # -----------------------
11636 # Set $? to STATUS, without forking.
11637 as_fn_set_status ()
11638 {
11639 return $1
11640 } # as_fn_set_status
11641
11642 # as_fn_exit STATUS
11643 # -----------------
11644 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11645 as_fn_exit ()
11646 {
11647 set +e
11648 as_fn_set_status $1
11649 exit $1
11650 } # as_fn_exit
11651
11652 # as_fn_unset VAR
11653 # ---------------
11654 # Portably unset VAR.
11655 as_fn_unset ()
11656 {
11657 { eval $1=; unset $1;}
11658 }
11659 as_unset=as_fn_unset
11660 # as_fn_append VAR VALUE
11661 # ----------------------
11662 # Append the text in VALUE to the end of the definition contained in VAR. Take
11663 # advantage of any shell optimizations that allow amortized linear growth over
11664 # repeated appends, instead of the typical quadratic growth present in naive
11665 # implementations.
11666 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11667 eval 'as_fn_append ()
11668 {
11669 eval $1+=\$2
11670 }'
11671 else
11672 as_fn_append ()
11673 {
11674 eval $1=\$$1\$2
11675 }
11676 fi # as_fn_append
11677
11678 # as_fn_arith ARG...
11679 # ------------------
11680 # Perform arithmetic evaluation on the ARGs, and store the result in the
11681 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11682 # must be portable across $(()) and expr.
11683 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11684 eval 'as_fn_arith ()
11685 {
11686 as_val=$(( $* ))
11687 }'
11688 else
11689 as_fn_arith ()
11690 {
11691 as_val=`expr "$@" || test $? -eq 1`
11692 }
11693 fi # as_fn_arith
11694
11695
11696 if expr a : '\(a\)' >/dev/null 2>&1 &&
11697 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11698 as_expr=expr
11699 else
11700 as_expr=false
11701 fi
11702
11703 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11704 as_basename=basename
11705 else
11706 as_basename=false
11707 fi
11708
11709 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11710 as_dirname=dirname
11711 else
11712 as_dirname=false
11713 fi
11714
11715 as_me=`$as_basename -- "$0" ||
11716 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11717 X"$0" : 'X\(//\)$' \| \
11718 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11719 $as_echo X/"$0" |
11720 sed '/^.*\/\([^/][^/]*\)\/*$/{
11721 s//\1/
11722 q
11723 }
11724 /^X\/\(\/\/\)$/{
11725 s//\1/
11726 q
11727 }
11728 /^X\/\(\/\).*/{
11729 s//\1/
11730 q
11731 }
11732 s/.*/./; q'`
11733
11734 # Avoid depending upon Character Ranges.
11735 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11736 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11737 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11738 as_cr_digits='0123456789'
11739 as_cr_alnum=$as_cr_Letters$as_cr_digits
11740
11741 ECHO_C= ECHO_N= ECHO_T=
11742 case `echo -n x` in #(((((
11743 -n*)
11744 case `echo 'xy\c'` in
11745 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11746 xy) ECHO_C='\c';;
11747 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11748 ECHO_T=' ';;
11749 esac;;
11750 *)
11751 ECHO_N='-n';;
11752 esac
11753
11754 rm -f conf$$ conf$$.exe conf$$.file
11755 if test -d conf$$.dir; then
11756 rm -f conf$$.dir/conf$$.file
11757 else
11758 rm -f conf$$.dir
11759 mkdir conf$$.dir 2>/dev/null
11760 fi
11761 if (echo >conf$$.file) 2>/dev/null; then
11762 if ln -s conf$$.file conf$$ 2>/dev/null; then
11763 as_ln_s='ln -s'
11764 # ... but there are two gotchas:
11765 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11766 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11767 # In both cases, we have to default to `cp -pR'.
11768 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11769 as_ln_s='cp -pR'
11770 elif ln conf$$.file conf$$ 2>/dev/null; then
11771 as_ln_s=ln
11772 else
11773 as_ln_s='cp -pR'
11774 fi
11775 else
11776 as_ln_s='cp -pR'
11777 fi
11778 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11779 rmdir conf$$.dir 2>/dev/null
11780
11781
11782 # as_fn_mkdir_p
11783 # -------------
11784 # Create "$as_dir" as a directory, including parents if necessary.
11785 as_fn_mkdir_p ()
11786 {
11787
11788 case $as_dir in #(
11789 -*) as_dir=./$as_dir;;
11790 esac
11791 test -d "$as_dir" || eval $as_mkdir_p || {
11792 as_dirs=
11793 while :; do
11794 case $as_dir in #(
11795 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11796 *) as_qdir=$as_dir;;
11797 esac
11798 as_dirs="'$as_qdir' $as_dirs"
11799 as_dir=`$as_dirname -- "$as_dir" ||
11800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11801 X"$as_dir" : 'X\(//\)[^/]' \| \
11802 X"$as_dir" : 'X\(//\)$' \| \
11803 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11804 $as_echo X"$as_dir" |
11805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11806 s//\1/
11807 q
11808 }
11809 /^X\(\/\/\)[^/].*/{
11810 s//\1/
11811 q
11812 }
11813 /^X\(\/\/\)$/{
11814 s//\1/
11815 q
11816 }
11817 /^X\(\/\).*/{
11818 s//\1/
11819 q
11820 }
11821 s/.*/./; q'`
11822 test -d "$as_dir" && break
11823 done
11824 test -z "$as_dirs" || eval "mkdir $as_dirs"
11825 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11826
11827
11828 } # as_fn_mkdir_p
11829 if mkdir -p . 2>/dev/null; then
11830 as_mkdir_p='mkdir -p "$as_dir"'
11831 else
11832 test -d ./-p && rmdir ./-p
11833 as_mkdir_p=false
11834 fi
11835
11836
11837 # as_fn_executable_p FILE
11838 # -----------------------
11839 # Test if FILE is an executable regular file.
11840 as_fn_executable_p ()
11841 {
11842 test -f "$1" && test -x "$1"
11843 } # as_fn_executable_p
11844 as_test_x='test -x'
11845 as_executable_p=as_fn_executable_p
11846
11847 # Sed expression to map a string onto a valid CPP name.
11848 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11849
11850 # Sed expression to map a string onto a valid variable name.
11851 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11852
11853
11854 exec 6>&1
11855 ## ----------------------------------- ##
11856 ## Main body of $CONFIG_STATUS script. ##
11857 ## ----------------------------------- ##
11858 _ASEOF
11859 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11860
11861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11862 # Save the log message, to keep $0 and so on meaningful, and to
11863 # report actual input values of CONFIG_FILES etc. instead of their
11864 # values after options handling.
11865 ac_log="
11866 This file was extended by xtrans $as_me 1.3.5, which was
11867 generated by GNU Autoconf 2.69. Invocation command line was
11868
11869 CONFIG_FILES = $CONFIG_FILES
11870 CONFIG_HEADERS = $CONFIG_HEADERS
11871 CONFIG_LINKS = $CONFIG_LINKS
11872 CONFIG_COMMANDS = $CONFIG_COMMANDS
11873 $ $0 $@
11874
11875 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11876 "
11877
11878 _ACEOF
11879
11880 case $ac_config_files in *"
11881 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11882 esac
11883
11884
11885
11886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11887 # Files that config.status was made for.
11888 config_files="$ac_config_files"
11889 config_commands="$ac_config_commands"
11890
11891 _ACEOF
11892
11893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11894 ac_cs_usage="\
11895 \`$as_me' instantiates files and other configuration actions
11896 from templates according to the current configuration. Unless the files
11897 and actions are specified as TAGs, all are instantiated by default.
11898
11899 Usage: $0 [OPTION]... [TAG]...
11900
11901 -h, --help print this help, then exit
11902 -V, --version print version number and configuration settings, then exit
11903 --config print configuration, then exit
11904 -q, --quiet, --silent
11905 do not print progress messages
11906 -d, --debug don't remove temporary files
11907 --recheck update $as_me by reconfiguring in the same conditions
11908 --file=FILE[:TEMPLATE]
11909 instantiate the configuration file FILE
11910
11911 Configuration files:
11912 $config_files
11913
11914 Configuration commands:
11915 $config_commands
11916
11917 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11918
11919 _ACEOF
11920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11921 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11922 ac_cs_version="\\
11923 xtrans config.status 1.3.5
11924 configured by $0, generated by GNU Autoconf 2.69,
11925 with options \\"\$ac_cs_config\\"
11926
11927 Copyright (C) 2012 Free Software Foundation, Inc.
11928 This config.status script is free software; the Free Software Foundation
11929 gives unlimited permission to copy, distribute and modify it."
11930
11931 ac_pwd='$ac_pwd'
11932 srcdir='$srcdir'
11933 INSTALL='$INSTALL'
11934 MKDIR_P='$MKDIR_P'
11935 AWK='$AWK'
11936 test -n "\$AWK" || AWK=awk
11937 _ACEOF
11938
11939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11940 # The default lists apply if the user does not specify any file.
11941 ac_need_defaults=:
11942 while test $# != 0
11943 do
11944 case $1 in
11945 --*=?*)
11946 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11947 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11948 ac_shift=:
11949 ;;
11950 --*=)
11951 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11952 ac_optarg=
11953 ac_shift=:
11954 ;;
11955 *)
11956 ac_option=$1
11957 ac_optarg=$2
11958 ac_shift=shift
11959 ;;
11960 esac
11961
11962 case $ac_option in
11963 # Handling of the options.
11964 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11965 ac_cs_recheck=: ;;
11966 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11967 $as_echo "$ac_cs_version"; exit ;;
11968 --config | --confi | --conf | --con | --co | --c )
11969 $as_echo "$ac_cs_config"; exit ;;
11970 --debug | --debu | --deb | --de | --d | -d )
11971 debug=: ;;
11972 --file | --fil | --fi | --f )
11973 $ac_shift
11974 case $ac_optarg in
11975 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11976 '') as_fn_error $? "missing file argument" ;;
11977 esac
11978 as_fn_append CONFIG_FILES " '$ac_optarg'"
11979 ac_need_defaults=false;;
11980 --he | --h | --help | --hel | -h )
11981 $as_echo "$ac_cs_usage"; exit ;;
11982 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11983 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11984 ac_cs_silent=: ;;
11985
11986 # This is an error.
11987 -*) as_fn_error $? "unrecognized option: \`$1'
11988 Try \`$0 --help' for more information." ;;
11989
11990 *) as_fn_append ac_config_targets " $1"
11991 ac_need_defaults=false ;;
11992
11993 esac
11994 shift
11995 done
11996
11997 ac_configure_extra_args=
11998
11999 if $ac_cs_silent; then
12000 exec 6>/dev/null
12001 ac_configure_extra_args="$ac_configure_extra_args --silent"
12002 fi
12003
12004 _ACEOF
12005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12006 if \$ac_cs_recheck; then
12007 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12008 shift
12009 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12010 CONFIG_SHELL='$SHELL'
12011 export CONFIG_SHELL
12012 exec "\$@"
12013 fi
12014
12015 _ACEOF
12016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12017 exec 5>>config.log
12018 {
12019 echo
12020 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12021 ## Running $as_me. ##
12022 _ASBOX
12023 $as_echo "$ac_log"
12024 } >&5
12025
12026 _ACEOF
12027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12028 #
12029 # INIT-COMMANDS
12030 #
12031 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12032
12033 _ACEOF
12034
12035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12036
12037 # Handling of arguments.
12038 for ac_config_target in $ac_config_targets
12039 do
12040 case $ac_config_target in
12041 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12042 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12043 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12044 "xtrans.pc") CONFIG_FILES="$CONFIG_FILES xtrans.pc" ;;
12045
12046 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12047 esac
12048 done
12049
12050
12051 # If the user did not use the arguments to specify the items to instantiate,
12052 # then the envvar interface is used. Set only those that are not.
12053 # We use the long form for the default assignment because of an extremely
12054 # bizarre bug on SunOS 4.1.3.
12055 if $ac_need_defaults; then
12056 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12057 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12058 fi
12059
12060 # Have a temporary directory for convenience. Make it in the build tree
12061 # simply because there is no reason against having it here, and in addition,
12062 # creating and moving files from /tmp can sometimes cause problems.
12063 # Hook for its removal unless debugging.
12064 # Note that there is a small window in which the directory will not be cleaned:
12065 # after its creation but before its name has been assigned to `$tmp'.
12066 $debug ||
12067 {
12068 tmp= ac_tmp=
12069 trap 'exit_status=$?
12070 : "${ac_tmp:=$tmp}"
12071 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12072 ' 0
12073 trap 'as_fn_exit 1' 1 2 13 15
12074 }
12075 # Create a (secure) tmp directory for tmp files.
12076
12077 {
12078 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12079 test -d "$tmp"
12080 } ||
12081 {
12082 tmp=./conf$$-$RANDOM
12083 (umask 077 && mkdir "$tmp")
12084 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12085 ac_tmp=$tmp
12086
12087 # Set up the scripts for CONFIG_FILES section.
12088 # No need to generate them if there are no CONFIG_FILES.
12089 # This happens for instance with `./config.status config.h'.
12090 if test -n "$CONFIG_FILES"; then
12091
12092
12093 ac_cr=`echo X | tr X '\015'`
12094 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12095 # But we know of no other shell where ac_cr would be empty at this
12096 # point, so we can use a bashism as a fallback.
12097 if test "x$ac_cr" = x; then
12098 eval ac_cr=\$\'\\r\'
12099 fi
12100 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12101 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12102 ac_cs_awk_cr='\\r'
12103 else
12104 ac_cs_awk_cr=$ac_cr
12105 fi
12106
12107 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12108 _ACEOF
12109
12110
12111 {
12112 echo "cat >conf$$subs.awk <<_ACEOF" &&
12113 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12114 echo "_ACEOF"
12115 } >conf$$subs.sh ||
12116 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12117 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12118 ac_delim='%!_!# '
12119 for ac_last_try in false false false false false :; do
12120 . ./conf$$subs.sh ||
12121 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12122
12123 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12124 if test $ac_delim_n = $ac_delim_num; then
12125 break
12126 elif $ac_last_try; then
12127 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12128 else
12129 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12130 fi
12131 done
12132 rm -f conf$$subs.sh
12133
12134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12135 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12136 _ACEOF
12137 sed -n '
12138 h
12139 s/^/S["/; s/!.*/"]=/
12140 p
12141 g
12142 s/^[^!]*!//
12143 :repl
12144 t repl
12145 s/'"$ac_delim"'$//
12146 t delim
12147 :nl
12148 h
12149 s/\(.\{148\}\)..*/\1/
12150 t more1
12151 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12152 p
12153 n
12154 b repl
12155 :more1
12156 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12157 p
12158 g
12159 s/.\{148\}//
12160 t nl
12161 :delim
12162 h
12163 s/\(.\{148\}\)..*/\1/
12164 t more2
12165 s/["\\]/\\&/g; s/^/"/; s/$/"/
12166 p
12167 b
12168 :more2
12169 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12170 p
12171 g
12172 s/.\{148\}//
12173 t delim
12174 ' <conf$$subs.awk | sed '
12175 /^[^""]/{
12176 N
12177 s/\n//
12178 }
12179 ' >>$CONFIG_STATUS || ac_write_fail=1
12180 rm -f conf$$subs.awk
12181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12182 _ACAWK
12183 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12184 for (key in S) S_is_set[key] = 1
12185 FS = ""
12186
12187 }
12188 {
12189 line = $ 0
12190 nfields = split(line, field, "@")
12191 substed = 0
12192 len = length(field[1])
12193 for (i = 2; i < nfields; i++) {
12194 key = field[i]
12195 keylen = length(key)
12196 if (S_is_set[key]) {
12197 value = S[key]
12198 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12199 len += length(value) + length(field[++i])
12200 substed = 1
12201 } else
12202 len += 1 + keylen
12203 }
12204
12205 print line
12206 }
12207
12208 _ACAWK
12209 _ACEOF
12210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12211 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12212 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12213 else
12214 cat
12215 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12216 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12217 _ACEOF
12218
12219 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12220 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12221 # trailing colons and then remove the whole line if VPATH becomes empty
12222 # (actually we leave an empty line to preserve line numbers).
12223 if test "x$srcdir" = x.; then
12224 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12225 h
12226 s///
12227 s/^/:/
12228 s/[ ]*$/:/
12229 s/:\$(srcdir):/:/g
12230 s/:\${srcdir}:/:/g
12231 s/:@srcdir@:/:/g
12232 s/^:*//
12233 s/:*$//
12234 x
12235 s/\(=[ ]*\).*/\1/
12236 G
12237 s/\n//
12238 s/^[^=]*=[ ]*$//
12239 }'
12240 fi
12241
12242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12243 fi # test -n "$CONFIG_FILES"
12244
12245
12246 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12247 shift
12248 for ac_tag
12249 do
12250 case $ac_tag in
12251 :[FHLC]) ac_mode=$ac_tag; continue;;
12252 esac
12253 case $ac_mode$ac_tag in
12254 :[FHL]*:*);;
12255 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12256 :[FH]-) ac_tag=-:-;;
12257 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12258 esac
12259 ac_save_IFS=$IFS
12260 IFS=:
12261 set x $ac_tag
12262 IFS=$ac_save_IFS
12263 shift
12264 ac_file=$1
12265 shift
12266
12267 case $ac_mode in
12268 :L) ac_source=$1;;
12269 :[FH])
12270 ac_file_inputs=
12271 for ac_f
12272 do
12273 case $ac_f in
12274 -) ac_f="$ac_tmp/stdin";;
12275 *) # Look for the file first in the build tree, then in the source tree
12276 # (if the path is not absolute). The absolute path cannot be DOS-style,
12277 # because $ac_f cannot contain `:'.
12278 test -f "$ac_f" ||
12279 case $ac_f in
12280 [\\/$]*) false;;
12281 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12282 esac ||
12283 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12284 esac
12285 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12286 as_fn_append ac_file_inputs " '$ac_f'"
12287 done
12288
12289 # Let's still pretend it is `configure' which instantiates (i.e., don't
12290 # use $as_me), people would be surprised to read:
12291 # /* config.h. Generated by config.status. */
12292 configure_input='Generated from '`
12293 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12294 `' by configure.'
12295 if test x"$ac_file" != x-; then
12296 configure_input="$ac_file. $configure_input"
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12298 $as_echo "$as_me: creating $ac_file" >&6;}
12299 fi
12300 # Neutralize special characters interpreted by sed in replacement strings.
12301 case $configure_input in #(
12302 *\&* | *\|* | *\\* )
12303 ac_sed_conf_input=`$as_echo "$configure_input" |
12304 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12305 *) ac_sed_conf_input=$configure_input;;
12306 esac
12307
12308 case $ac_tag in
12309 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12310 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12311 esac
12312 ;;
12313 esac
12314
12315 ac_dir=`$as_dirname -- "$ac_file" ||
12316 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12317 X"$ac_file" : 'X\(//\)[^/]' \| \
12318 X"$ac_file" : 'X\(//\)$' \| \
12319 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12320 $as_echo X"$ac_file" |
12321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12322 s//\1/
12323 q
12324 }
12325 /^X\(\/\/\)[^/].*/{
12326 s//\1/
12327 q
12328 }
12329 /^X\(\/\/\)$/{
12330 s//\1/
12331 q
12332 }
12333 /^X\(\/\).*/{
12334 s//\1/
12335 q
12336 }
12337 s/.*/./; q'`
12338 as_dir="$ac_dir"; as_fn_mkdir_p
12339 ac_builddir=.
12340
12341 case "$ac_dir" in
12342 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12343 *)
12344 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12345 # A ".." for each directory in $ac_dir_suffix.
12346 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12347 case $ac_top_builddir_sub in
12348 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12349 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12350 esac ;;
12351 esac
12352 ac_abs_top_builddir=$ac_pwd
12353 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12354 # for backward compatibility:
12355 ac_top_builddir=$ac_top_build_prefix
12356
12357 case $srcdir in
12358 .) # We are building in place.
12359 ac_srcdir=.
12360 ac_top_srcdir=$ac_top_builddir_sub
12361 ac_abs_top_srcdir=$ac_pwd ;;
12362 [\\/]* | ?:[\\/]* ) # Absolute name.
12363 ac_srcdir=$srcdir$ac_dir_suffix;
12364 ac_top_srcdir=$srcdir
12365 ac_abs_top_srcdir=$srcdir ;;
12366 *) # Relative name.
12367 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12368 ac_top_srcdir=$ac_top_build_prefix$srcdir
12369 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12370 esac
12371 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12372
12373
12374 case $ac_mode in
12375 :F)
12376 #
12377 # CONFIG_FILE
12378 #
12379
12380 case $INSTALL in
12381 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12382 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12383 esac
12384 ac_MKDIR_P=$MKDIR_P
12385 case $MKDIR_P in
12386 [\\/$]* | ?:[\\/]* ) ;;
12387 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12388 esac
12389 _ACEOF
12390
12391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12392 # If the template does not know about datarootdir, expand it.
12393 # FIXME: This hack should be removed a few years after 2.60.
12394 ac_datarootdir_hack=; ac_datarootdir_seen=
12395 ac_sed_dataroot='
12396 /datarootdir/ {
12397 p
12398 q
12399 }
12400 /@datadir@/p
12401 /@docdir@/p
12402 /@infodir@/p
12403 /@localedir@/p
12404 /@mandir@/p'
12405 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12406 *datarootdir*) ac_datarootdir_seen=yes;;
12407 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12409 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12410 _ACEOF
12411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12412 ac_datarootdir_hack='
12413 s&@datadir@&$datadir&g
12414 s&@docdir@&$docdir&g
12415 s&@infodir@&$infodir&g
12416 s&@localedir@&$localedir&g
12417 s&@mandir@&$mandir&g
12418 s&\\\${datarootdir}&$datarootdir&g' ;;
12419 esac
12420 _ACEOF
12421
12422 # Neutralize VPATH when `$srcdir' = `.'.
12423 # Shell code in configure.ac might set extrasub.
12424 # FIXME: do we really want to maintain this feature?
12425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12426 ac_sed_extra="$ac_vpsub
12427 $extrasub
12428 _ACEOF
12429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12430 :t
12431 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12432 s|@configure_input@|$ac_sed_conf_input|;t t
12433 s&@top_builddir@&$ac_top_builddir_sub&;t t
12434 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12435 s&@srcdir@&$ac_srcdir&;t t
12436 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12437 s&@top_srcdir@&$ac_top_srcdir&;t t
12438 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12439 s&@builddir@&$ac_builddir&;t t
12440 s&@abs_builddir@&$ac_abs_builddir&;t t
12441 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12442 s&@INSTALL@&$ac_INSTALL&;t t
12443 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12444 $ac_datarootdir_hack
12445 "
12446 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12447 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12448
12449 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12450 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12451 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12452 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12454 which seems to be undefined. Please make sure it is defined" >&5
12455 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12456 which seems to be undefined. Please make sure it is defined" >&2;}
12457
12458 rm -f "$ac_tmp/stdin"
12459 case $ac_file in
12460 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12461 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12462 esac \
12463 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12464 ;;
12465
12466
12467 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12468 $as_echo "$as_me: executing $ac_file commands" >&6;}
12469 ;;
12470 esac
12471
12472
12473 case $ac_file$ac_mode in
12474 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12475 # Older Autoconf quotes --file arguments for eval, but not when files
12476 # are listed without --file. Let's play safe and only enable the eval
12477 # if we detect the quoting.
12478 case $CONFIG_FILES in
12479 *\'*) eval set x "$CONFIG_FILES" ;;
12480 *) set x $CONFIG_FILES ;;
12481 esac
12482 shift
12483 for mf
12484 do
12485 # Strip MF so we end up with the name of the file.
12486 mf=`echo "$mf" | sed -e 's/:.*$//'`
12487 # Check whether this is an Automake generated Makefile or not.
12488 # We used to match only the files named 'Makefile.in', but
12489 # some people rename them; so instead we look at the file content.
12490 # Grep'ing the first line is not enough: some people post-process
12491 # each Makefile.in and add a new line on top of each file to say so.
12492 # Grep'ing the whole file is not good either: AIX grep has a line
12493 # limit of 2048, but all sed's we know have understand at least 4000.
12494 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12495 dirpart=`$as_dirname -- "$mf" ||
12496 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12497 X"$mf" : 'X\(//\)[^/]' \| \
12498 X"$mf" : 'X\(//\)$' \| \
12499 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12500 $as_echo X"$mf" |
12501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12502 s//\1/
12503 q
12504 }
12505 /^X\(\/\/\)[^/].*/{
12506 s//\1/
12507 q
12508 }
12509 /^X\(\/\/\)$/{
12510 s//\1/
12511 q
12512 }
12513 /^X\(\/\).*/{
12514 s//\1/
12515 q
12516 }
12517 s/.*/./; q'`
12518 else
12519 continue
12520 fi
12521 # Extract the definition of DEPDIR, am__include, and am__quote
12522 # from the Makefile without running 'make'.
12523 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12524 test -z "$DEPDIR" && continue
12525 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12526 test -z "$am__include" && continue
12527 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12528 # Find all dependency output files, they are included files with
12529 # $(DEPDIR) in their names. We invoke sed twice because it is the
12530 # simplest approach to changing $(DEPDIR) to its actual value in the
12531 # expansion.
12532 for file in `sed -n "
12533 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12534 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12535 # Make sure the directory exists.
12536 test -f "$dirpart/$file" && continue
12537 fdir=`$as_dirname -- "$file" ||
12538 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12539 X"$file" : 'X\(//\)[^/]' \| \
12540 X"$file" : 'X\(//\)$' \| \
12541 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12542 $as_echo X"$file" |
12543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12544 s//\1/
12545 q
12546 }
12547 /^X\(\/\/\)[^/].*/{
12548 s//\1/
12549 q
12550 }
12551 /^X\(\/\/\)$/{
12552 s//\1/
12553 q
12554 }
12555 /^X\(\/\).*/{
12556 s//\1/
12557 q
12558 }
12559 s/.*/./; q'`
12560 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12561 # echo "creating $dirpart/$file"
12562 echo '# dummy' > "$dirpart/$file"
12563 done
12564 done
12565 }
12566 ;;
12567
12568 esac
12569 done # for ac_tag
12570
12571
12572 as_fn_exit 0
12573 _ACEOF
12574 ac_clean_files=$ac_clean_files_save
12575
12576 test $ac_write_fail = 0 ||
12577 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12578
12579
12580 # configure is writing to config.log, and then calls config.status.
12581 # config.status does its own redirection, appending to config.log.
12582 # Unfortunately, on DOS this fails, as config.log is still kept open
12583 # by configure, so config.status won't be able to write to it; its
12584 # output is simply discarded. So we exec the FD to /dev/null,
12585 # effectively closing config.log, so it can be properly (re)opened and
12586 # appended to by config.status. When coming back to configure, we
12587 # need to make the FD available again.
12588 if test "$no_create" != yes; then
12589 ac_cs_success=:
12590 ac_config_status_args=
12591 test "$silent" = yes &&
12592 ac_config_status_args="$ac_config_status_args --quiet"
12593 exec 5>/dev/null
12594 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12595 exec 5>>config.log
12596 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12597 # would make configure fail if this is the last instruction.
12598 $ac_cs_success || as_fn_exit 1
12599 fi
12600 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12602 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12603 fi
12604
12605