configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for encodings 1.0.5.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/font/encodings/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://gitlab.freedesktop.org/xorg/font/encodings/issues
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='encodings'
583 PACKAGE_TARNAME='encodings'
584 PACKAGE_VERSION='1.0.5'
585 PACKAGE_STRING='encodings 1.0.5'
586 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/font/encodings/issues'
587 PACKAGE_URL=''
588
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_subst_vars='am__EXEEXT_FALSE
626 am__EXEEXT_TRUE
627 LTLIBOBJS
628 LIBOBJS
629 ENCODINGSDIR
630 FONTROOTDIR
631 GZIP
632 GZIP_LARGE_FALSE
633 GZIP_LARGE_TRUE
634 GZIP_SMALL_FALSE
635 GZIP_SMALL_TRUE
636 MKFONTSCALE
637 MAN_SUBSTS
638 XORG_MAN_PAGE
639 ADMIN_MAN_DIR
640 DRIVER_MAN_DIR
641 MISC_MAN_DIR
642 FILE_MAN_DIR
643 LIB_MAN_DIR
644 APP_MAN_DIR
645 ADMIN_MAN_SUFFIX
646 DRIVER_MAN_SUFFIX
647 MISC_MAN_SUFFIX
648 FILE_MAN_SUFFIX
649 LIB_MAN_SUFFIX
650 APP_MAN_SUFFIX
651 SED
652 host_os
653 host_vendor
654 host_cpu
655 host
656 build_os
657 build_vendor
658 build_cpu
659 build
660 INSTALL_CMD
661 PKG_CONFIG_LIBDIR
662 PKG_CONFIG_PATH
663 PKG_CONFIG
664 CHANGELOG_CMD
665 STRICT_CFLAGS
666 CWARNFLAGS
667 BASE_CFLAGS
668 EGREP
669 GREP
670 CPP
671 am__fastdepCC_FALSE
672 am__fastdepCC_TRUE
673 CCDEPMODE
674 am__nodep
675 AMDEPBACKSLASH
676 AMDEP_FALSE
677 AMDEP_TRUE
678 am__include
679 DEPDIR
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
686 CC
687 AM_BACKSLASH
688 AM_DEFAULT_VERBOSITY
689 AM_DEFAULT_V
690 AM_V
691 am__untar
692 am__tar
693 AMTAR
694 am__leading_dot
695 SET_MAKE
696 AWK
697 mkdir_p
698 MKDIR_P
699 INSTALL_STRIP_PROGRAM
700 STRIP
701 install_sh
702 MAKEINFO
703 AUTOHEADER
704 AUTOMAKE
705 AUTOCONF
706 ACLOCAL
707 VERSION
708 PACKAGE
709 CYGPATH_W
710 am__isrc
711 INSTALL_DATA
712 INSTALL_SCRIPT
713 INSTALL_PROGRAM
714 target_alias
715 host_alias
716 build_alias
717 LIBS
718 ECHO_T
719 ECHO_N
720 ECHO_C
721 DEFS
722 mandir
723 localedir
724 libdir
725 psdir
726 pdfdir
727 dvidir
728 htmldir
729 infodir
730 docdir
731 oldincludedir
732 includedir
733 localstatedir
734 sharedstatedir
735 sysconfdir
736 datadir
737 datarootdir
738 libexecdir
739 sbindir
740 bindir
741 program_transform_name
742 prefix
743 exec_prefix
744 PACKAGE_URL
745 PACKAGE_BUGREPORT
746 PACKAGE_STRING
747 PACKAGE_VERSION
748 PACKAGE_TARNAME
749 PACKAGE_NAME
750 PATH_SEPARATOR
751 SHELL
752 am__quote'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_silent_rules
757 enable_dependency_tracking
758 enable_selective_werror
759 enable_strict_compilation
760 enable_gzip_small_encodings
761 enable_gzip_large_encodings
762 with_fontrootdir
763 with_encodingsdir
764 '
765 ac_precious_vars='build_alias
766 host_alias
767 target_alias
768 CC
769 CFLAGS
770 LDFLAGS
771 LIBS
772 CPPFLAGS
773 CPP
774 PKG_CONFIG
775 PKG_CONFIG_PATH
776 PKG_CONFIG_LIBDIR'
777
778
779 # Initialize some variables set by options.
780 ac_init_help=
781 ac_init_version=false
782 ac_unrecognized_opts=
783 ac_unrecognized_sep=
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
786 cache_file=/dev/null
787 exec_prefix=NONE
788 no_create=
789 no_recursion=
790 prefix=NONE
791 program_prefix=NONE
792 program_suffix=NONE
793 program_transform_name=s,x,x,
794 silent=
795 site=
796 srcdir=
797 verbose=
798 x_includes=NONE
799 x_libraries=NONE
800
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir='${exec_prefix}/bin'
808 sbindir='${exec_prefix}/sbin'
809 libexecdir='${exec_prefix}/libexec'
810 datarootdir='${prefix}/share'
811 datadir='${datarootdir}'
812 sysconfdir='${prefix}/etc'
813 sharedstatedir='${prefix}/com'
814 localstatedir='${prefix}/var'
815 includedir='${prefix}/include'
816 oldincludedir='/usr/include'
817 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818 infodir='${datarootdir}/info'
819 htmldir='${docdir}'
820 dvidir='${docdir}'
821 pdfdir='${docdir}'
822 psdir='${docdir}'
823 libdir='${exec_prefix}/lib'
824 localedir='${datarootdir}/locale'
825 mandir='${datarootdir}/man'
826
827 ac_prev=
828 ac_dashdash=
829 for ac_option
830 do
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
833 eval $ac_prev=\$ac_option
834 ac_prev=
835 continue
836 fi
837
838 case $ac_option in
839 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 *=) ac_optarg= ;;
841 *) ac_optarg=yes ;;
842 esac
843
844 # Accept the important Cygnus configure options, so we can diagnose typos.
845
846 case $ac_dashdash$ac_option in
847 --)
848 ac_dashdash=yes ;;
849
850 -bindir | --bindir | --bindi | --bind | --bin | --bi)
851 ac_prev=bindir ;;
852 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853 bindir=$ac_optarg ;;
854
855 -build | --build | --buil | --bui | --bu)
856 ac_prev=build_alias ;;
857 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
858 build_alias=$ac_optarg ;;
859
860 -cache-file | --cache-file | --cache-fil | --cache-fi \
861 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862 ac_prev=cache_file ;;
863 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
865 cache_file=$ac_optarg ;;
866
867 --config-cache | -C)
868 cache_file=config.cache ;;
869
870 -datadir | --datadir | --datadi | --datad)
871 ac_prev=datadir ;;
872 -datadir=* | --datadir=* | --datadi=* | --datad=*)
873 datadir=$ac_optarg ;;
874
875 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
876 | --dataroo | --dataro | --datar)
877 ac_prev=datarootdir ;;
878 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
879 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
880 datarootdir=$ac_optarg ;;
881
882 -disable-* | --disable-*)
883 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886 as_fn_error $? "invalid feature name: $ac_useropt"
887 ac_useropt_orig=$ac_useropt
888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
890 *"
891 "enable_$ac_useropt"
892 "*) ;;
893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894 ac_unrecognized_sep=', ';;
895 esac
896 eval enable_$ac_useropt=no ;;
897
898 -docdir | --docdir | --docdi | --doc | --do)
899 ac_prev=docdir ;;
900 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901 docdir=$ac_optarg ;;
902
903 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904 ac_prev=dvidir ;;
905 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906 dvidir=$ac_optarg ;;
907
908 -enable-* | --enable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: $ac_useropt"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
916 *"
917 "enable_$ac_useropt"
918 "*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=\$ac_optarg ;;
923
924 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926 | --exec | --exe | --ex)
927 ac_prev=exec_prefix ;;
928 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930 | --exec=* | --exe=* | --ex=*)
931 exec_prefix=$ac_optarg ;;
932
933 -gas | --gas | --ga | --g)
934 # Obsolete; use --with-gas.
935 with_gas=yes ;;
936
937 -help | --help | --hel | --he | -h)
938 ac_init_help=long ;;
939 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940 ac_init_help=recursive ;;
941 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942 ac_init_help=short ;;
943
944 -host | --host | --hos | --ho)
945 ac_prev=host_alias ;;
946 -host=* | --host=* | --hos=* | --ho=*)
947 host_alias=$ac_optarg ;;
948
949 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 ac_prev=htmldir ;;
951 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 | --ht=*)
953 htmldir=$ac_optarg ;;
954
955 -includedir | --includedir | --includedi | --included | --include \
956 | --includ | --inclu | --incl | --inc)
957 ac_prev=includedir ;;
958 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959 | --includ=* | --inclu=* | --incl=* | --inc=*)
960 includedir=$ac_optarg ;;
961
962 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 ac_prev=infodir ;;
964 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965 infodir=$ac_optarg ;;
966
967 -libdir | --libdir | --libdi | --libd)
968 ac_prev=libdir ;;
969 -libdir=* | --libdir=* | --libdi=* | --libd=*)
970 libdir=$ac_optarg ;;
971
972 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973 | --libexe | --libex | --libe)
974 ac_prev=libexecdir ;;
975 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976 | --libexe=* | --libex=* | --libe=*)
977 libexecdir=$ac_optarg ;;
978
979 -localedir | --localedir | --localedi | --localed | --locale)
980 ac_prev=localedir ;;
981 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982 localedir=$ac_optarg ;;
983
984 -localstatedir | --localstatedir | --localstatedi | --localstated \
985 | --localstate | --localstat | --localsta | --localst | --locals)
986 ac_prev=localstatedir ;;
987 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
988 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
989 localstatedir=$ac_optarg ;;
990
991 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 ac_prev=mandir ;;
993 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994 mandir=$ac_optarg ;;
995
996 -nfp | --nfp | --nf)
997 # Obsolete; use --without-fp.
998 with_fp=no ;;
999
1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001 | --no-cr | --no-c | -n)
1002 no_create=yes ;;
1003
1004 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006 no_recursion=yes ;;
1007
1008 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010 | --oldin | --oldi | --old | --ol | --o)
1011 ac_prev=oldincludedir ;;
1012 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015 oldincludedir=$ac_optarg ;;
1016
1017 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 ac_prev=prefix ;;
1019 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020 prefix=$ac_optarg ;;
1021
1022 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023 | --program-pre | --program-pr | --program-p)
1024 ac_prev=program_prefix ;;
1025 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027 program_prefix=$ac_optarg ;;
1028
1029 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030 | --program-suf | --program-su | --program-s)
1031 ac_prev=program_suffix ;;
1032 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034 program_suffix=$ac_optarg ;;
1035
1036 -program-transform-name | --program-transform-name \
1037 | --program-transform-nam | --program-transform-na \
1038 | --program-transform-n | --program-transform- \
1039 | --program-transform | --program-transfor \
1040 | --program-transfo | --program-transf \
1041 | --program-trans | --program-tran \
1042 | --progr-tra | --program-tr | --program-t)
1043 ac_prev=program_transform_name ;;
1044 -program-transform-name=* | --program-transform-name=* \
1045 | --program-transform-nam=* | --program-transform-na=* \
1046 | --program-transform-n=* | --program-transform-=* \
1047 | --program-transform=* | --program-transfor=* \
1048 | --program-transfo=* | --program-transf=* \
1049 | --program-trans=* | --program-tran=* \
1050 | --progr-tra=* | --program-tr=* | --program-t=*)
1051 program_transform_name=$ac_optarg ;;
1052
1053 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 ac_prev=pdfdir ;;
1055 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056 pdfdir=$ac_optarg ;;
1057
1058 -psdir | --psdir | --psdi | --psd | --ps)
1059 ac_prev=psdir ;;
1060 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061 psdir=$ac_optarg ;;
1062
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 silent=yes ;;
1066
1067 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068 ac_prev=sbindir ;;
1069 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070 | --sbi=* | --sb=*)
1071 sbindir=$ac_optarg ;;
1072
1073 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075 | --sharedst | --shareds | --shared | --share | --shar \
1076 | --sha | --sh)
1077 ac_prev=sharedstatedir ;;
1078 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081 | --sha=* | --sh=*)
1082 sharedstatedir=$ac_optarg ;;
1083
1084 -site | --site | --sit)
1085 ac_prev=site ;;
1086 -site=* | --site=* | --sit=*)
1087 site=$ac_optarg ;;
1088
1089 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090 ac_prev=srcdir ;;
1091 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1092 srcdir=$ac_optarg ;;
1093
1094 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095 | --syscon | --sysco | --sysc | --sys | --sy)
1096 ac_prev=sysconfdir ;;
1097 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1099 sysconfdir=$ac_optarg ;;
1100
1101 -target | --target | --targe | --targ | --tar | --ta | --t)
1102 ac_prev=target_alias ;;
1103 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1104 target_alias=$ac_optarg ;;
1105
1106 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107 verbose=yes ;;
1108
1109 -version | --version | --versio | --versi | --vers | -V)
1110 ac_init_version=: ;;
1111
1112 -with-* | --with-*)
1113 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 as_fn_error $? "invalid package name: $ac_useropt"
1117 ac_useropt_orig=$ac_useropt
1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1120 *"
1121 "with_$ac_useropt"
1122 "*) ;;
1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124 ac_unrecognized_sep=', ';;
1125 esac
1126 eval with_$ac_useropt=\$ac_optarg ;;
1127
1128 -without-* | --without-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error $? "invalid package name: $ac_useropt"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1136 *"
1137 "with_$ac_useropt"
1138 "*) ;;
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1141 esac
1142 eval with_$ac_useropt=no ;;
1143
1144 --x)
1145 # Obsolete; use --with-x.
1146 with_x=yes ;;
1147
1148 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1149 | --x-incl | --x-inc | --x-in | --x-i)
1150 ac_prev=x_includes ;;
1151 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1152 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1153 x_includes=$ac_optarg ;;
1154
1155 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1156 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1157 ac_prev=x_libraries ;;
1158 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1159 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1160 x_libraries=$ac_optarg ;;
1161
1162 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1163 Try \`$0 --help' for more information"
1164 ;;
1165
1166 *=*)
1167 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1168 # Reject names that are not valid shell variable names.
1169 case $ac_envvar in #(
1170 '' | [0-9]* | *[!_$as_cr_alnum]* )
1171 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1172 esac
1173 eval $ac_envvar=\$ac_optarg
1174 export $ac_envvar ;;
1175
1176 *)
1177 # FIXME: should be removed in autoconf 3.0.
1178 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1182 ;;
1183
1184 esac
1185 done
1186
1187 if test -n "$ac_prev"; then
1188 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1189 as_fn_error $? "missing argument to $ac_option"
1190 fi
1191
1192 if test -n "$ac_unrecognized_opts"; then
1193 case $enable_option_checking in
1194 no) ;;
1195 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1196 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1197 esac
1198 fi
1199
1200 # Check all directory arguments for consistency.
1201 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
1205 do
1206 eval ac_val=\$$ac_var
1207 # Remove trailing slashes.
1208 case $ac_val in
1209 */ )
1210 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211 eval $ac_var=\$ac_val;;
1212 esac
1213 # Be sure to have absolute directory names.
1214 case $ac_val in
1215 [\\/$]* | ?:[\\/]* ) continue;;
1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217 esac
1218 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1219 done
1220
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1224 build=$build_alias
1225 host=$host_alias
1226 target=$target_alias
1227
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1234 fi
1235 fi
1236
1237 ac_tool_prefix=
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240 test "$silent" = yes && exec 6>/dev/null
1241
1242
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 as_fn_error $? "working directory cannot be determined"
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 as_fn_error $? "pwd does not report name of working directory"
1249
1250
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$as_myself" ||
1256 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$as_myself" : 'X\(//\)[^/]' \| \
1258 X"$as_myself" : 'X\(//\)$' \| \
1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260 $as_echo X"$as_myself" |
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\).*/{
1274 s//\1/
1275 q
1276 }
1277 s/.*/./; q'`
1278 srcdir=$ac_confdir
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 srcdir=..
1281 fi
1282 else
1283 ac_srcdir_defaulted=no
1284 fi
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1288 fi
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1292 pwd)`
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 srcdir=.
1296 fi
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1300 case $srcdir in
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 esac
1303 for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308 done
1309
1310 #
1311 # Report the --help message.
1312 #
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1316 cat <<_ACEOF
1317 \`configure' configures encodings 1.0.5 to adapt to many kinds of systems.
1318
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1323
1324 Defaults for the options are specified in brackets.
1325
1326 Configuration:
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking ...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1341 [PREFIX]
1342
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1347
1348 For better control, use the options below.
1349
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/encodings]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1370 _ACEOF
1371
1372 cat <<\_ACEOF
1373
1374 Program names:
1375 --program-prefix=PREFIX prepend PREFIX to installed program names
1376 --program-suffix=SUFFIX append SUFFIX to installed program names
1377 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1378
1379 System types:
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 _ACEOF
1383 fi
1384
1385 if test -n "$ac_init_help"; then
1386 case $ac_init_help in
1387 short | recursive ) echo "Configuration of encodings 1.0.5:";;
1388 esac
1389 cat <<\_ACEOF
1390
1391 Optional Features:
1392 --disable-option-checking ignore unrecognized --enable/--with options
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1395 --enable-silent-rules less verbose build output (undo: "make V=1")
1396 --disable-silent-rules verbose build output (undo: "make V=0")
1397 --enable-dependency-tracking
1398 do not reject slow dependency extractors
1399 --disable-dependency-tracking
1400 speeds up one-time build
1401 --disable-selective-werror
1402 Turn off selective compiler errors. (default:
1403 enabled)
1404 --enable-strict-compilation
1405 Enable all warnings from compiler and make them
1406 errors (default: disabled)
1407 --disable-gzip-small-encodings
1408 Disable compression of small encoding files
1409 --disable-gzip-large-encodings
1410 Disable compression of large encoding files
1411
1412 Optional Packages:
1413 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1414 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1415 --with-fontrootdir=DIR Path to root directory for font files
1416 --with-encodingsdir=DIR Path to encodings files [FONTROOTDIR/encodings]
1417
1418 Some influential environment variables:
1419 CC C compiler command
1420 CFLAGS C compiler flags
1421 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1422 nonstandard directory <lib dir>
1423 LIBS libraries to pass to the linker, e.g. -l<library>
1424 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1425 you have headers in a nonstandard directory <include dir>
1426 CPP C preprocessor
1427 PKG_CONFIG path to pkg-config utility
1428 PKG_CONFIG_PATH
1429 directories to add to pkg-config's search path
1430 PKG_CONFIG_LIBDIR
1431 path overriding pkg-config's built-in search path
1432
1433 Use these variables to override the choices made by `configure' or to help
1434 it to find libraries and programs with nonstandard names/locations.
1435
1436 Report bugs to <https://gitlab.freedesktop.org/xorg/font/encodings/issues>.
1437 _ACEOF
1438 ac_status=$?
1439 fi
1440
1441 if test "$ac_init_help" = "recursive"; then
1442 # If there are subdirs, report their specific --help.
1443 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1444 test -d "$ac_dir" ||
1445 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1446 continue
1447 ac_builddir=.
1448
1449 case "$ac_dir" in
1450 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451 *)
1452 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1453 # A ".." for each directory in $ac_dir_suffix.
1454 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1455 case $ac_top_builddir_sub in
1456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1458 esac ;;
1459 esac
1460 ac_abs_top_builddir=$ac_pwd
1461 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1462 # for backward compatibility:
1463 ac_top_builddir=$ac_top_build_prefix
1464
1465 case $srcdir in
1466 .) # We are building in place.
1467 ac_srcdir=.
1468 ac_top_srcdir=$ac_top_builddir_sub
1469 ac_abs_top_srcdir=$ac_pwd ;;
1470 [\\/]* | ?:[\\/]* ) # Absolute name.
1471 ac_srcdir=$srcdir$ac_dir_suffix;
1472 ac_top_srcdir=$srcdir
1473 ac_abs_top_srcdir=$srcdir ;;
1474 *) # Relative name.
1475 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1476 ac_top_srcdir=$ac_top_build_prefix$srcdir
1477 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1478 esac
1479 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1480
1481 cd "$ac_dir" || { ac_status=$?; continue; }
1482 # Check for guested configure.
1483 if test -f "$ac_srcdir/configure.gnu"; then
1484 echo &&
1485 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1486 elif test -f "$ac_srcdir/configure"; then
1487 echo &&
1488 $SHELL "$ac_srcdir/configure" --help=recursive
1489 else
1490 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1491 fi || ac_status=$?
1492 cd "$ac_pwd" || { ac_status=$?; break; }
1493 done
1494 fi
1495
1496 test -n "$ac_init_help" && exit $ac_status
1497 if $ac_init_version; then
1498 cat <<\_ACEOF
1499 encodings configure 1.0.5
1500 generated by GNU Autoconf 2.69
1501
1502 Copyright (C) 2012 Free Software Foundation, Inc.
1503 This configure script is free software; the Free Software Foundation
1504 gives unlimited permission to copy, distribute and modify it.
1505 _ACEOF
1506 exit
1507 fi
1508
1509 ## ------------------------ ##
1510 ## Autoconf initialization. ##
1511 ## ------------------------ ##
1512
1513 # ac_fn_c_try_compile LINENO
1514 # --------------------------
1515 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1516 ac_fn_c_try_compile ()
1517 {
1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519 rm -f conftest.$ac_objext
1520 if { { ac_try="$ac_compile"
1521 case "(($ac_try" in
1522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1523 *) ac_try_echo=$ac_try;;
1524 esac
1525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526 $as_echo "$ac_try_echo"; } >&5
1527 (eval "$ac_compile") 2>conftest.err
1528 ac_status=$?
1529 if test -s conftest.err; then
1530 grep -v '^ *+' conftest.err >conftest.er1
1531 cat conftest.er1 >&5
1532 mv -f conftest.er1 conftest.err
1533 fi
1534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1535 test $ac_status = 0; } && {
1536 test -z "$ac_c_werror_flag" ||
1537 test ! -s conftest.err
1538 } && test -s conftest.$ac_objext; then :
1539 ac_retval=0
1540 else
1541 $as_echo "$as_me: failed program was:" >&5
1542 sed 's/^/| /' conftest.$ac_ext >&5
1543
1544 ac_retval=1
1545 fi
1546 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1547 as_fn_set_status $ac_retval
1548
1549 } # ac_fn_c_try_compile
1550
1551 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1552 # ---------------------------------------------
1553 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1554 # accordingly.
1555 ac_fn_c_check_decl ()
1556 {
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 as_decl_name=`echo $2|sed 's/ *(.*//'`
1559 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1561 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1562 if eval \${$3+:} false; then :
1563 $as_echo_n "(cached) " >&6
1564 else
1565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1566 /* end confdefs.h. */
1567 $4
1568 int
1569 main ()
1570 {
1571 #ifndef $as_decl_name
1572 #ifdef __cplusplus
1573 (void) $as_decl_use;
1574 #else
1575 (void) $as_decl_name;
1576 #endif
1577 #endif
1578
1579 ;
1580 return 0;
1581 }
1582 _ACEOF
1583 if ac_fn_c_try_compile "$LINENO"; then :
1584 eval "$3=yes"
1585 else
1586 eval "$3=no"
1587 fi
1588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1589 fi
1590 eval ac_res=\$$3
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1592 $as_echo "$ac_res" >&6; }
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594
1595 } # ac_fn_c_check_decl
1596
1597 # ac_fn_c_try_cpp LINENO
1598 # ----------------------
1599 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_cpp ()
1601 {
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 if { { ac_try="$ac_cpp conftest.$ac_ext"
1604 case "(($ac_try" in
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1611 ac_status=$?
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1616 fi
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } > conftest.i && {
1619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 }; then :
1622 ac_retval=0
1623 else
1624 $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1626
1627 ac_retval=1
1628 fi
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630 as_fn_set_status $ac_retval
1631
1632 } # ac_fn_c_try_cpp
1633
1634 # ac_fn_c_try_run LINENO
1635 # ----------------------
1636 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1637 # that executables *can* be run.
1638 ac_fn_c_try_run ()
1639 {
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 if { { ac_try="$ac_link"
1642 case "(($ac_try" in
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1645 esac
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_link") 2>&5
1649 ac_status=$?
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1652 { { case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_try") 2>&5
1659 ac_status=$?
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; }; }; then :
1662 ac_retval=0
1663 else
1664 $as_echo "$as_me: program exited with status $ac_status" >&5
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668 ac_retval=$ac_status
1669 fi
1670 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1673
1674 } # ac_fn_c_try_run
1675
1676 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1677 # -------------------------------------------------------
1678 # Tests whether HEADER exists and can be compiled using the include files in
1679 # INCLUDES, setting the cache variable VAR accordingly.
1680 ac_fn_c_check_header_compile ()
1681 {
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684 $as_echo_n "checking for $2... " >&6; }
1685 if eval \${$3+:} false; then :
1686 $as_echo_n "(cached) " >&6
1687 else
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h. */
1690 $4
1691 #include <$2>
1692 _ACEOF
1693 if ac_fn_c_try_compile "$LINENO"; then :
1694 eval "$3=yes"
1695 else
1696 eval "$3=no"
1697 fi
1698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699 fi
1700 eval ac_res=\$$3
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702 $as_echo "$ac_res" >&6; }
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704
1705 } # ac_fn_c_check_header_compile
1706
1707 # ac_fn_c_try_link LINENO
1708 # -----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_c_try_link ()
1711 {
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext conftest$ac_exeext
1714 if { { ac_try="$ac_link"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1727 fi
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest$ac_exeext && {
1733 test "$cross_compiling" = yes ||
1734 test -x conftest$ac_exeext
1735 }; then :
1736 ac_retval=0
1737 else
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741 ac_retval=1
1742 fi
1743 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1744 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1745 # interfere with the next link command; also delete a directory that is
1746 # left behind by Apple's compiler. We do this before executing the actions.
1747 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 as_fn_set_status $ac_retval
1750
1751 } # ac_fn_c_try_link
1752 cat >config.log <<_ACEOF
1753 This file contains any messages produced by compilers while
1754 running configure, to aid debugging if configure makes a mistake.
1755
1756 It was created by encodings $as_me 1.0.5, which was
1757 generated by GNU Autoconf 2.69. Invocation command line was
1758
1759 $ $0 $@
1760
1761 _ACEOF
1762 exec 5>>config.log
1763 {
1764 cat <<_ASUNAME
1765 ## --------- ##
1766 ## Platform. ##
1767 ## --------- ##
1768
1769 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1770 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1771 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1772 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1773 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1774
1775 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1776 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1777
1778 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1779 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1780 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1781 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1782 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1783 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1784 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1785
1786 _ASUNAME
1787
1788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789 for as_dir in $PATH
1790 do
1791 IFS=$as_save_IFS
1792 test -z "$as_dir" && as_dir=.
1793 $as_echo "PATH: $as_dir"
1794 done
1795 IFS=$as_save_IFS
1796
1797 } >&5
1798
1799 cat >&5 <<_ACEOF
1800
1801
1802 ## ----------- ##
1803 ## Core tests. ##
1804 ## ----------- ##
1805
1806 _ACEOF
1807
1808
1809 # Keep a trace of the command line.
1810 # Strip out --no-create and --no-recursion so they do not pile up.
1811 # Strip out --silent because we don't want to record it for future runs.
1812 # Also quote any args containing shell meta-characters.
1813 # Make two passes to allow for proper duplicate-argument suppression.
1814 ac_configure_args=
1815 ac_configure_args0=
1816 ac_configure_args1=
1817 ac_must_keep_next=false
1818 for ac_pass in 1 2
1819 do
1820 for ac_arg
1821 do
1822 case $ac_arg in
1823 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1824 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1825 | -silent | --silent | --silen | --sile | --sil)
1826 continue ;;
1827 *\'*)
1828 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1829 esac
1830 case $ac_pass in
1831 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1832 2)
1833 as_fn_append ac_configure_args1 " '$ac_arg'"
1834 if test $ac_must_keep_next = true; then
1835 ac_must_keep_next=false # Got value, back to normal.
1836 else
1837 case $ac_arg in
1838 *=* | --config-cache | -C | -disable-* | --disable-* \
1839 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1840 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1841 | -with-* | --with-* | -without-* | --without-* | --x)
1842 case "$ac_configure_args0 " in
1843 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1844 esac
1845 ;;
1846 -* ) ac_must_keep_next=true ;;
1847 esac
1848 fi
1849 as_fn_append ac_configure_args " '$ac_arg'"
1850 ;;
1851 esac
1852 done
1853 done
1854 { ac_configure_args0=; unset ac_configure_args0;}
1855 { ac_configure_args1=; unset ac_configure_args1;}
1856
1857 # When interrupted or exit'd, cleanup temporary files, and complete
1858 # config.log. We remove comments because anyway the quotes in there
1859 # would cause problems or look ugly.
1860 # WARNING: Use '\'' to represent an apostrophe within the trap.
1861 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1862 trap 'exit_status=$?
1863 # Save into config.log some information that might help in debugging.
1864 {
1865 echo
1866
1867 $as_echo "## ---------------- ##
1868 ## Cache variables. ##
1869 ## ---------------- ##"
1870 echo
1871 # The following way of writing the cache mishandles newlines in values,
1872 (
1873 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1874 eval ac_val=\$$ac_var
1875 case $ac_val in #(
1876 *${as_nl}*)
1877 case $ac_var in #(
1878 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1879 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1880 esac
1881 case $ac_var in #(
1882 _ | IFS | as_nl) ;; #(
1883 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1884 *) { eval $ac_var=; unset $ac_var;} ;;
1885 esac ;;
1886 esac
1887 done
1888 (set) 2>&1 |
1889 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1890 *${as_nl}ac_space=\ *)
1891 sed -n \
1892 "s/'\''/'\''\\\\'\'''\''/g;
1893 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1894 ;; #(
1895 *)
1896 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1897 ;;
1898 esac |
1899 sort
1900 )
1901 echo
1902
1903 $as_echo "## ----------------- ##
1904 ## Output variables. ##
1905 ## ----------------- ##"
1906 echo
1907 for ac_var in $ac_subst_vars
1908 do
1909 eval ac_val=\$$ac_var
1910 case $ac_val in
1911 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1912 esac
1913 $as_echo "$ac_var='\''$ac_val'\''"
1914 done | sort
1915 echo
1916
1917 if test -n "$ac_subst_files"; then
1918 $as_echo "## ------------------- ##
1919 ## File substitutions. ##
1920 ## ------------------- ##"
1921 echo
1922 for ac_var in $ac_subst_files
1923 do
1924 eval ac_val=\$$ac_var
1925 case $ac_val in
1926 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1927 esac
1928 $as_echo "$ac_var='\''$ac_val'\''"
1929 done | sort
1930 echo
1931 fi
1932
1933 if test -s confdefs.h; then
1934 $as_echo "## ----------- ##
1935 ## confdefs.h. ##
1936 ## ----------- ##"
1937 echo
1938 cat confdefs.h
1939 echo
1940 fi
1941 test "$ac_signal" != 0 &&
1942 $as_echo "$as_me: caught signal $ac_signal"
1943 $as_echo "$as_me: exit $exit_status"
1944 } >&5
1945 rm -f core *.core core.conftest.* &&
1946 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1947 exit $exit_status
1948 ' 0
1949 for ac_signal in 1 2 13 15; do
1950 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1951 done
1952 ac_signal=0
1953
1954 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1955 rm -f -r conftest* confdefs.h
1956
1957 $as_echo "/* confdefs.h */" > confdefs.h
1958
1959 # Predefined preprocessor variables.
1960
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_NAME "$PACKAGE_NAME"
1963 _ACEOF
1964
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1967 _ACEOF
1968
1969 cat >>confdefs.h <<_ACEOF
1970 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1971 _ACEOF
1972
1973 cat >>confdefs.h <<_ACEOF
1974 #define PACKAGE_STRING "$PACKAGE_STRING"
1975 _ACEOF
1976
1977 cat >>confdefs.h <<_ACEOF
1978 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1979 _ACEOF
1980
1981 cat >>confdefs.h <<_ACEOF
1982 #define PACKAGE_URL "$PACKAGE_URL"
1983 _ACEOF
1984
1985
1986 # Let the site file select an alternate cache file if it wants to.
1987 # Prefer an explicitly selected file to automatically selected ones.
1988 ac_site_file1=NONE
1989 ac_site_file2=NONE
1990 if test -n "$CONFIG_SITE"; then
1991 # We do not want a PATH search for config.site.
1992 case $CONFIG_SITE in #((
1993 -*) ac_site_file1=./$CONFIG_SITE;;
1994 */*) ac_site_file1=$CONFIG_SITE;;
1995 *) ac_site_file1=./$CONFIG_SITE;;
1996 esac
1997 elif test "x$prefix" != xNONE; then
1998 ac_site_file1=$prefix/share/config.site
1999 ac_site_file2=$prefix/etc/config.site
2000 else
2001 ac_site_file1=$ac_default_prefix/share/config.site
2002 ac_site_file2=$ac_default_prefix/etc/config.site
2003 fi
2004 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2005 do
2006 test "x$ac_site_file" = xNONE && continue
2007 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2009 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2010 sed 's/^/| /' "$ac_site_file" >&5
2011 . "$ac_site_file" \
2012 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2014 as_fn_error $? "failed to load site script $ac_site_file
2015 See \`config.log' for more details" "$LINENO" 5; }
2016 fi
2017 done
2018
2019 if test -r "$cache_file"; then
2020 # Some versions of bash will fail to source /dev/null (special files
2021 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2022 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2024 $as_echo "$as_me: loading cache $cache_file" >&6;}
2025 case $cache_file in
2026 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2027 *) . "./$cache_file";;
2028 esac
2029 fi
2030 else
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2032 $as_echo "$as_me: creating cache $cache_file" >&6;}
2033 >$cache_file
2034 fi
2035
2036 # Check that the precious variables saved in the cache have kept the same
2037 # value.
2038 ac_cache_corrupted=false
2039 for ac_var in $ac_precious_vars; do
2040 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2041 eval ac_new_set=\$ac_env_${ac_var}_set
2042 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2043 eval ac_new_val=\$ac_env_${ac_var}_value
2044 case $ac_old_set,$ac_new_set in
2045 set,)
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2047 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2048 ac_cache_corrupted=: ;;
2049 ,set)
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2051 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2052 ac_cache_corrupted=: ;;
2053 ,);;
2054 *)
2055 if test "x$ac_old_val" != "x$ac_new_val"; then
2056 # differences in whitespace do not lead to failure.
2057 ac_old_val_w=`echo x $ac_old_val`
2058 ac_new_val_w=`echo x $ac_new_val`
2059 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2061 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2062 ac_cache_corrupted=:
2063 else
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2065 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2066 eval $ac_var=\$ac_old_val
2067 fi
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2069 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2071 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2072 fi;;
2073 esac
2074 # Pass precious variables to config.status.
2075 if test "$ac_new_set" = set; then
2076 case $ac_new_val in
2077 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2078 *) ac_arg=$ac_var=$ac_new_val ;;
2079 esac
2080 case " $ac_configure_args " in
2081 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2082 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2083 esac
2084 fi
2085 done
2086 if $ac_cache_corrupted; then
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2090 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2091 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2092 fi
2093 ## -------------------- ##
2094 ## Main body of script. ##
2095 ## -------------------- ##
2096
2097 ac_ext=c
2098 ac_cpp='$CPP $CPPFLAGS'
2099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2102
2103
2104 am__api_version='1.16'
2105
2106 ac_aux_dir=
2107 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2108 if test -f "$ac_dir/install-sh"; then
2109 ac_aux_dir=$ac_dir
2110 ac_install_sh="$ac_aux_dir/install-sh -c"
2111 break
2112 elif test -f "$ac_dir/install.sh"; then
2113 ac_aux_dir=$ac_dir
2114 ac_install_sh="$ac_aux_dir/install.sh -c"
2115 break
2116 elif test -f "$ac_dir/shtool"; then
2117 ac_aux_dir=$ac_dir
2118 ac_install_sh="$ac_aux_dir/shtool install -c"
2119 break
2120 fi
2121 done
2122 if test -z "$ac_aux_dir"; then
2123 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2124 fi
2125
2126 # These three variables are undocumented and unsupported,
2127 # and are intended to be withdrawn in a future Autoconf release.
2128 # They can cause serious problems if a builder's source tree is in a directory
2129 # whose full name contains unusual characters.
2130 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2131 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2132 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2133
2134
2135 # Find a good install program. We prefer a C program (faster),
2136 # so one script is as good as another. But avoid the broken or
2137 # incompatible versions:
2138 # SysV /etc/install, /usr/sbin/install
2139 # SunOS /usr/etc/install
2140 # IRIX /sbin/install
2141 # AIX /bin/install
2142 # AmigaOS /C/install, which installs bootblocks on floppy discs
2143 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2144 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2145 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2146 # OS/2's system install, which has a completely different semantic
2147 # ./install, which can be erroneously created by make from ./install.sh.
2148 # Reject install programs that cannot install multiple files.
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2150 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2151 if test -z "$INSTALL"; then
2152 if ${ac_cv_path_install+:} false; then :
2153 $as_echo_n "(cached) " >&6
2154 else
2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156 for as_dir in $PATH
2157 do
2158 IFS=$as_save_IFS
2159 test -z "$as_dir" && as_dir=.
2160 # Account for people who put trailing slashes in PATH elements.
2161 case $as_dir/ in #((
2162 ./ | .// | /[cC]/* | \
2163 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2164 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2165 /usr/ucb/* ) ;;
2166 *)
2167 # OSF1 and SCO ODT 3.0 have their own names for install.
2168 # Don't use installbsd from OSF since it installs stuff as root
2169 # by default.
2170 for ac_prog in ginstall scoinst install; do
2171 for ac_exec_ext in '' $ac_executable_extensions; do
2172 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2173 if test $ac_prog = install &&
2174 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2175 # AIX install. It has an incompatible calling convention.
2176 :
2177 elif test $ac_prog = install &&
2178 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2179 # program-specific install script used by HP pwplus--don't use.
2180 :
2181 else
2182 rm -rf conftest.one conftest.two conftest.dir
2183 echo one > conftest.one
2184 echo two > conftest.two
2185 mkdir conftest.dir
2186 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2187 test -s conftest.one && test -s conftest.two &&
2188 test -s conftest.dir/conftest.one &&
2189 test -s conftest.dir/conftest.two
2190 then
2191 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2192 break 3
2193 fi
2194 fi
2195 fi
2196 done
2197 done
2198 ;;
2199 esac
2200
2201 done
2202 IFS=$as_save_IFS
2203
2204 rm -rf conftest.one conftest.two conftest.dir
2205
2206 fi
2207 if test "${ac_cv_path_install+set}" = set; then
2208 INSTALL=$ac_cv_path_install
2209 else
2210 # As a last resort, use the slow shell script. Don't cache a
2211 # value for INSTALL within a source directory, because that will
2212 # break other packages using the cache if that directory is
2213 # removed, or if the value is a relative name.
2214 INSTALL=$ac_install_sh
2215 fi
2216 fi
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2218 $as_echo "$INSTALL" >&6; }
2219
2220 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2221 # It thinks the first close brace ends the variable substitution.
2222 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2223
2224 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2225
2226 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2227
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2229 $as_echo_n "checking whether build environment is sane... " >&6; }
2230 # Reject unsafe characters in $srcdir or the absolute working directory
2231 # name. Accept space and tab only in the latter.
2232 am_lf='
2233 '
2234 case `pwd` in
2235 *[\\\"\#\$\&\'\`$am_lf]*)
2236 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2237 esac
2238 case $srcdir in
2239 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2240 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2241 esac
2242
2243 # Do 'set' in a subshell so we don't clobber the current shell's
2244 # arguments. Must try -L first in case configure is actually a
2245 # symlink; some systems play weird games with the mod time of symlinks
2246 # (eg FreeBSD returns the mod time of the symlink's containing
2247 # directory).
2248 if (
2249 am_has_slept=no
2250 for am_try in 1 2; do
2251 echo "timestamp, slept: $am_has_slept" > conftest.file
2252 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2253 if test "$*" = "X"; then
2254 # -L didn't work.
2255 set X `ls -t "$srcdir/configure" conftest.file`
2256 fi
2257 if test "$*" != "X $srcdir/configure conftest.file" \
2258 && test "$*" != "X conftest.file $srcdir/configure"; then
2259
2260 # If neither matched, then we have a broken ls. This can happen
2261 # if, for instance, CONFIG_SHELL is bash and it inherits a
2262 # broken ls alias from the environment. This has actually
2263 # happened. Such a system could not be considered "sane".
2264 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2265 alias in your environment" "$LINENO" 5
2266 fi
2267 if test "$2" = conftest.file || test $am_try -eq 2; then
2268 break
2269 fi
2270 # Just in case.
2271 sleep 1
2272 am_has_slept=yes
2273 done
2274 test "$2" = conftest.file
2275 )
2276 then
2277 # Ok.
2278 :
2279 else
2280 as_fn_error $? "newly created file is older than distributed files!
2281 Check your system clock" "$LINENO" 5
2282 fi
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2284 $as_echo "yes" >&6; }
2285 # If we didn't sleep, we still need to ensure time stamps of config.status and
2286 # generated files are strictly newer.
2287 am_sleep_pid=
2288 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2289 ( sleep 1 ) &
2290 am_sleep_pid=$!
2291 fi
2292
2293 rm -f conftest.file
2294
2295 test "$program_prefix" != NONE &&
2296 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2297 # Use a double $ so make ignores it.
2298 test "$program_suffix" != NONE &&
2299 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2300 # Double any \ or $.
2301 # By default was `s,x,x', remove it if useless.
2302 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2303 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2304
2305 # Expand $ac_aux_dir to an absolute path.
2306 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2307
2308 if test x"${MISSING+set}" != xset; then
2309 case $am_aux_dir in
2310 *\ * | *\ *)
2311 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2312 *)
2313 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2314 esac
2315 fi
2316 # Use eval to expand $SHELL
2317 if eval "$MISSING --is-lightweight"; then
2318 am_missing_run="$MISSING "
2319 else
2320 am_missing_run=
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2322 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2323 fi
2324
2325 if test x"${install_sh+set}" != xset; then
2326 case $am_aux_dir in
2327 *\ * | *\ *)
2328 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2329 *)
2330 install_sh="\${SHELL} $am_aux_dir/install-sh"
2331 esac
2332 fi
2333
2334 # Installed binaries are usually stripped using 'strip' when the user
2335 # run "make install-strip". However 'strip' might not be the right
2336 # tool to use in cross-compilation environments, therefore Automake
2337 # will honor the 'STRIP' environment variable to overrule this program.
2338 if test "$cross_compiling" != no; then
2339 if test -n "$ac_tool_prefix"; then
2340 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2341 set dummy ${ac_tool_prefix}strip; ac_word=$2
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2343 $as_echo_n "checking for $ac_word... " >&6; }
2344 if ${ac_cv_prog_STRIP+:} false; then :
2345 $as_echo_n "(cached) " >&6
2346 else
2347 if test -n "$STRIP"; then
2348 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2349 else
2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 for as_dir in $PATH
2352 do
2353 IFS=$as_save_IFS
2354 test -z "$as_dir" && as_dir=.
2355 for ac_exec_ext in '' $ac_executable_extensions; do
2356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2357 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2359 break 2
2360 fi
2361 done
2362 done
2363 IFS=$as_save_IFS
2364
2365 fi
2366 fi
2367 STRIP=$ac_cv_prog_STRIP
2368 if test -n "$STRIP"; then
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2370 $as_echo "$STRIP" >&6; }
2371 else
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2373 $as_echo "no" >&6; }
2374 fi
2375
2376
2377 fi
2378 if test -z "$ac_cv_prog_STRIP"; then
2379 ac_ct_STRIP=$STRIP
2380 # Extract the first word of "strip", so it can be a program name with args.
2381 set dummy strip; ac_word=$2
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2383 $as_echo_n "checking for $ac_word... " >&6; }
2384 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2385 $as_echo_n "(cached) " >&6
2386 else
2387 if test -n "$ac_ct_STRIP"; then
2388 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2389 else
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2392 do
2393 IFS=$as_save_IFS
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2397 ac_cv_prog_ac_ct_STRIP="strip"
2398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2399 break 2
2400 fi
2401 done
2402 done
2403 IFS=$as_save_IFS
2404
2405 fi
2406 fi
2407 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2408 if test -n "$ac_ct_STRIP"; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2410 $as_echo "$ac_ct_STRIP" >&6; }
2411 else
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2413 $as_echo "no" >&6; }
2414 fi
2415
2416 if test "x$ac_ct_STRIP" = x; then
2417 STRIP=":"
2418 else
2419 case $cross_compiling:$ac_tool_warned in
2420 yes:)
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2423 ac_tool_warned=yes ;;
2424 esac
2425 STRIP=$ac_ct_STRIP
2426 fi
2427 else
2428 STRIP="$ac_cv_prog_STRIP"
2429 fi
2430
2431 fi
2432 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2433
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2435 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2436 if test -z "$MKDIR_P"; then
2437 if ${ac_cv_path_mkdir+:} false; then :
2438 $as_echo_n "(cached) " >&6
2439 else
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2442 do
2443 IFS=$as_save_IFS
2444 test -z "$as_dir" && as_dir=.
2445 for ac_prog in mkdir gmkdir; do
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2448 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2449 'mkdir (GNU coreutils) '* | \
2450 'mkdir (coreutils) '* | \
2451 'mkdir (fileutils) '4.1*)
2452 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2453 break 3;;
2454 esac
2455 done
2456 done
2457 done
2458 IFS=$as_save_IFS
2459
2460 fi
2461
2462 test -d ./--version && rmdir ./--version
2463 if test "${ac_cv_path_mkdir+set}" = set; then
2464 MKDIR_P="$ac_cv_path_mkdir -p"
2465 else
2466 # As a last resort, use the slow shell script. Don't cache a
2467 # value for MKDIR_P within a source directory, because that will
2468 # break other packages using the cache if that directory is
2469 # removed, or if the value is a relative name.
2470 MKDIR_P="$ac_install_sh -d"
2471 fi
2472 fi
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2474 $as_echo "$MKDIR_P" >&6; }
2475
2476 for ac_prog in gawk mawk nawk awk
2477 do
2478 # Extract the first word of "$ac_prog", so it can be a program name with args.
2479 set dummy $ac_prog; ac_word=$2
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2481 $as_echo_n "checking for $ac_word... " >&6; }
2482 if ${ac_cv_prog_AWK+:} false; then :
2483 $as_echo_n "(cached) " >&6
2484 else
2485 if test -n "$AWK"; then
2486 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2495 ac_cv_prog_AWK="$ac_prog"
2496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 break 2
2498 fi
2499 done
2500 done
2501 IFS=$as_save_IFS
2502
2503 fi
2504 fi
2505 AWK=$ac_cv_prog_AWK
2506 if test -n "$AWK"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2508 $as_echo "$AWK" >&6; }
2509 else
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2511 $as_echo "no" >&6; }
2512 fi
2513
2514
2515 test -n "$AWK" && break
2516 done
2517
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2519 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2520 set x ${MAKE-make}
2521 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2522 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 cat >conftest.make <<\_ACEOF
2526 SHELL = /bin/sh
2527 all:
2528 @echo '@@@%%%=$(MAKE)=@@@%%%'
2529 _ACEOF
2530 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2531 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2532 *@@@%%%=?*=@@@%%%*)
2533 eval ac_cv_prog_make_${ac_make}_set=yes;;
2534 *)
2535 eval ac_cv_prog_make_${ac_make}_set=no;;
2536 esac
2537 rm -f conftest.make
2538 fi
2539 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2541 $as_echo "yes" >&6; }
2542 SET_MAKE=
2543 else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2545 $as_echo "no" >&6; }
2546 SET_MAKE="MAKE=${MAKE-make}"
2547 fi
2548
2549 rm -rf .tst 2>/dev/null
2550 mkdir .tst 2>/dev/null
2551 if test -d .tst; then
2552 am__leading_dot=.
2553 else
2554 am__leading_dot=_
2555 fi
2556 rmdir .tst 2>/dev/null
2557
2558 # Check whether --enable-silent-rules was given.
2559 if test "${enable_silent_rules+set}" = set; then :
2560 enableval=$enable_silent_rules;
2561 fi
2562
2563 case $enable_silent_rules in # (((
2564 yes) AM_DEFAULT_VERBOSITY=0;;
2565 no) AM_DEFAULT_VERBOSITY=1;;
2566 *) AM_DEFAULT_VERBOSITY=1;;
2567 esac
2568 am_make=${MAKE-make}
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2570 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2571 if ${am_cv_make_support_nested_variables+:} false; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 if $as_echo 'TRUE=$(BAR$(V))
2575 BAR0=false
2576 BAR1=true
2577 V=1
2578 am__doit:
2579 @$(TRUE)
2580 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2581 am_cv_make_support_nested_variables=yes
2582 else
2583 am_cv_make_support_nested_variables=no
2584 fi
2585 fi
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2587 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2588 if test $am_cv_make_support_nested_variables = yes; then
2589 AM_V='$(V)'
2590 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2591 else
2592 AM_V=$AM_DEFAULT_VERBOSITY
2593 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2594 fi
2595 AM_BACKSLASH='\'
2596
2597 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2598 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2599 # is not polluted with repeated "-I."
2600 am__isrc=' -I$(srcdir)'
2601 # test to see if srcdir already configured
2602 if test -f $srcdir/config.status; then
2603 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2604 fi
2605 fi
2606
2607 # test whether we have cygpath
2608 if test -z "$CYGPATH_W"; then
2609 if (cygpath --version) >/dev/null 2>/dev/null; then
2610 CYGPATH_W='cygpath -w'
2611 else
2612 CYGPATH_W=echo
2613 fi
2614 fi
2615
2616
2617 # Define the identity of the package.
2618 PACKAGE='encodings'
2619 VERSION='1.0.5'
2620
2621
2622 cat >>confdefs.h <<_ACEOF
2623 #define PACKAGE "$PACKAGE"
2624 _ACEOF
2625
2626
2627 cat >>confdefs.h <<_ACEOF
2628 #define VERSION "$VERSION"
2629 _ACEOF
2630
2631 # Some tools Automake needs.
2632
2633 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2634
2635
2636 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2637
2638
2639 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2640
2641
2642 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2643
2644
2645 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2646
2647 # For better backward compatibility. To be removed once Automake 1.9.x
2648 # dies out for good. For more background, see:
2649 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2650 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2651 mkdir_p='$(MKDIR_P)'
2652
2653 # We need awk for the "check" target (and possibly the TAP driver). The
2654 # system "awk" is bad on some platforms.
2655 # Always define AMTAR for backward compatibility. Yes, it's still used
2656 # in the wild :-( We should find a proper way to deprecate it ...
2657 AMTAR='$${TAR-tar}'
2658
2659
2660 # We'll loop over all known methods to create a tar archive until one works.
2661 _am_tools='gnutar pax cpio none'
2662
2663 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2664
2665
2666
2667
2668
2669
2670 # POSIX will say in a future version that running "rm -f" with no argument
2671 # is OK; and we want to be able to make that assumption in our Makefile
2672 # recipes. So use an aggressive probe to check that the usage we want is
2673 # actually supported "in the wild" to an acceptable degree.
2674 # See automake bug#10828.
2675 # To make any issue more visible, cause the running configure to be aborted
2676 # by default if the 'rm' program in use doesn't match our expectations; the
2677 # user can still override this though.
2678 if rm -f && rm -fr && rm -rf; then : OK; else
2679 cat >&2 <<'END'
2680 Oops!
2681
2682 Your 'rm' program seems unable to run without file operands specified
2683 on the command line, even when the '-f' option is present. This is contrary
2684 to the behaviour of most rm programs out there, and not conforming with
2685 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2686
2687 Please tell bug-automake@gnu.org about your system, including the value
2688 of your $PATH and any error possibly output before this message. This
2689 can help us improve future automake versions.
2690
2691 END
2692 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2693 echo 'Configuration will proceed anyway, since you have set the' >&2
2694 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2695 echo >&2
2696 else
2697 cat >&2 <<'END'
2698 Aborting the configuration process, to ensure you take notice of the issue.
2699
2700 You can download and install GNU coreutils to get an 'rm' implementation
2701 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2702
2703 If you want to complete the configuration process using your problematic
2704 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2705 to "yes", and re-run configure.
2706
2707 END
2708 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2709 fi
2710 fi
2711
2712
2713 # Require xorg-macros: XORG_DEFAULT_OPTIONS
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725 DEPDIR="${am__leading_dot}deps"
2726
2727 ac_config_commands="$ac_config_commands depfiles"
2728
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2730 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2731 cat > confinc.mk << 'END'
2732 am__doit:
2733 @echo this is the am__doit target >confinc.out
2734 .PHONY: am__doit
2735 END
2736 am__include="#"
2737 am__quote=
2738 # BSD make does it like this.
2739 echo '.include "confinc.mk" # ignored' > confmf.BSD
2740 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
2741 echo 'include confinc.mk # ignored' > confmf.GNU
2742 _am_result=no
2743 for s in GNU BSD; do
2744 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
2745 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }
2749 case $?:`cat confinc.out 2>/dev/null` in #(
2750 '0:this is the am__doit target') :
2751 case $s in #(
2752 BSD) :
2753 am__include='.include' am__quote='"' ;; #(
2754 *) :
2755 am__include='include' am__quote='' ;;
2756 esac ;; #(
2757 *) :
2758 ;;
2759 esac
2760 if test "$am__include" != "#"; then
2761 _am_result="yes ($s style)"
2762 break
2763 fi
2764 done
2765 rm -f confinc.* confmf.*
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
2767 $as_echo "${_am_result}" >&6; }
2768
2769 # Check whether --enable-dependency-tracking was given.
2770 if test "${enable_dependency_tracking+set}" = set; then :
2771 enableval=$enable_dependency_tracking;
2772 fi
2773
2774 if test "x$enable_dependency_tracking" != xno; then
2775 am_depcomp="$ac_aux_dir/depcomp"
2776 AMDEPBACKSLASH='\'
2777 am__nodep='_no'
2778 fi
2779 if test "x$enable_dependency_tracking" != xno; then
2780 AMDEP_TRUE=
2781 AMDEP_FALSE='#'
2782 else
2783 AMDEP_TRUE='#'
2784 AMDEP_FALSE=
2785 fi
2786
2787
2788 ac_ext=c
2789 ac_cpp='$CPP $CPPFLAGS'
2790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2793 if test -n "$ac_tool_prefix"; then
2794 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2795 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797 $as_echo_n "checking for $ac_word... " >&6; }
2798 if ${ac_cv_prog_CC+:} false; then :
2799 $as_echo_n "(cached) " >&6
2800 else
2801 if test -n "$CC"; then
2802 ac_cv_prog_CC="$CC" # Let the user override the test.
2803 else
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 for as_dir in $PATH
2806 do
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 break 2
2814 fi
2815 done
2816 done
2817 IFS=$as_save_IFS
2818
2819 fi
2820 fi
2821 CC=$ac_cv_prog_CC
2822 if test -n "$CC"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2824 $as_echo "$CC" >&6; }
2825 else
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2828 fi
2829
2830
2831 fi
2832 if test -z "$ac_cv_prog_CC"; then
2833 ac_ct_CC=$CC
2834 # Extract the first word of "gcc", so it can be a program name with args.
2835 set dummy gcc; ac_word=$2
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837 $as_echo_n "checking for $ac_word... " >&6; }
2838 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2839 $as_echo_n "(cached) " >&6
2840 else
2841 if test -n "$ac_ct_CC"; then
2842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2843 else
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2846 do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2851 ac_cv_prog_ac_ct_CC="gcc"
2852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 break 2
2854 fi
2855 done
2856 done
2857 IFS=$as_save_IFS
2858
2859 fi
2860 fi
2861 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2862 if test -n "$ac_ct_CC"; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2864 $as_echo "$ac_ct_CC" >&6; }
2865 else
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 $as_echo "no" >&6; }
2868 fi
2869
2870 if test "x$ac_ct_CC" = x; then
2871 CC=""
2872 else
2873 case $cross_compiling:$ac_tool_warned in
2874 yes:)
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2877 ac_tool_warned=yes ;;
2878 esac
2879 CC=$ac_ct_CC
2880 fi
2881 else
2882 CC="$ac_cv_prog_CC"
2883 fi
2884
2885 if test -z "$CC"; then
2886 if test -n "$ac_tool_prefix"; then
2887 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2888 set dummy ${ac_tool_prefix}cc; ac_word=$2
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 $as_echo_n "checking for $ac_word... " >&6; }
2891 if ${ac_cv_prog_CC+:} false; then :
2892 $as_echo_n "(cached) " >&6
2893 else
2894 if test -n "$CC"; then
2895 ac_cv_prog_CC="$CC" # Let the user override the test.
2896 else
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2899 do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904 ac_cv_prog_CC="${ac_tool_prefix}cc"
2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2907 fi
2908 done
2909 done
2910 IFS=$as_save_IFS
2911
2912 fi
2913 fi
2914 CC=$ac_cv_prog_CC
2915 if test -n "$CC"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2917 $as_echo "$CC" >&6; }
2918 else
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2921 fi
2922
2923
2924 fi
2925 fi
2926 if test -z "$CC"; then
2927 # Extract the first word of "cc", so it can be a program name with args.
2928 set dummy cc; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if ${ac_cv_prog_CC+:} false; then :
2932 $as_echo_n "(cached) " >&6
2933 else
2934 if test -n "$CC"; then
2935 ac_cv_prog_CC="$CC" # Let the user override the test.
2936 else
2937 ac_prog_rejected=no
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2946 ac_prog_rejected=yes
2947 continue
2948 fi
2949 ac_cv_prog_CC="cc"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
2952 fi
2953 done
2954 done
2955 IFS=$as_save_IFS
2956
2957 if test $ac_prog_rejected = yes; then
2958 # We found a bogon in the path, so make sure we never use it.
2959 set dummy $ac_cv_prog_CC
2960 shift
2961 if test $# != 0; then
2962 # We chose a different compiler from the bogus one.
2963 # However, it has the same basename, so the bogon will be chosen
2964 # first if we set CC to just the basename; use the full file name.
2965 shift
2966 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2967 fi
2968 fi
2969 fi
2970 fi
2971 CC=$ac_cv_prog_CC
2972 if test -n "$CC"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2974 $as_echo "$CC" >&6; }
2975 else
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2978 fi
2979
2980
2981 fi
2982 if test -z "$CC"; then
2983 if test -n "$ac_tool_prefix"; then
2984 for ac_prog in cl.exe
2985 do
2986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if ${ac_cv_prog_CC+:} false; then :
2991 $as_echo_n "(cached) " >&6
2992 else
2993 if test -n "$CC"; then
2994 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3006 fi
3007 done
3008 done
3009 IFS=$as_save_IFS
3010
3011 fi
3012 fi
3013 CC=$ac_cv_prog_CC
3014 if test -n "$CC"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3016 $as_echo "$CC" >&6; }
3017 else
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 fi
3021
3022
3023 test -n "$CC" && break
3024 done
3025 fi
3026 if test -z "$CC"; then
3027 ac_ct_CC=$CC
3028 for ac_prog in cl.exe
3029 do
3030 # Extract the first word of "$ac_prog", so it can be a program name with args.
3031 set dummy $ac_prog; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3035 $as_echo_n "(cached) " >&6
3036 else
3037 if test -n "$ac_ct_CC"; then
3038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3042 do
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_ac_ct_CC="$ac_prog"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3050 fi
3051 done
3052 done
3053 IFS=$as_save_IFS
3054
3055 fi
3056 fi
3057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3058 if test -n "$ac_ct_CC"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3060 $as_echo "$ac_ct_CC" >&6; }
3061 else
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3064 fi
3065
3066
3067 test -n "$ac_ct_CC" && break
3068 done
3069
3070 if test "x$ac_ct_CC" = x; then
3071 CC=""
3072 else
3073 case $cross_compiling:$ac_tool_warned in
3074 yes:)
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3077 ac_tool_warned=yes ;;
3078 esac
3079 CC=$ac_ct_CC
3080 fi
3081 fi
3082
3083 fi
3084
3085
3086 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3088 as_fn_error $? "no acceptable C compiler found in \$PATH
3089 See \`config.log' for more details" "$LINENO" 5; }
3090
3091 # Provide some information about the compiler.
3092 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3093 set X $ac_compile
3094 ac_compiler=$2
3095 for ac_option in --version -v -V -qversion; do
3096 { { ac_try="$ac_compiler $ac_option >&5"
3097 case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100 esac
3101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102 $as_echo "$ac_try_echo"; } >&5
3103 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3104 ac_status=$?
3105 if test -s conftest.err; then
3106 sed '10a\
3107 ... rest of stderr output deleted ...
3108 10q' conftest.err >conftest.er1
3109 cat conftest.er1 >&5
3110 fi
3111 rm -f conftest.er1 conftest.err
3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113 test $ac_status = 0; }
3114 done
3115
3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117 /* end confdefs.h. */
3118
3119 int
3120 main ()
3121 {
3122
3123 ;
3124 return 0;
3125 }
3126 _ACEOF
3127 ac_clean_files_save=$ac_clean_files
3128 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3129 # Try to create an executable without -o first, disregard a.out.
3130 # It will help us diagnose broken compilers, and finding out an intuition
3131 # of exeext.
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3133 $as_echo_n "checking whether the C compiler works... " >&6; }
3134 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3135
3136 # The possible output files:
3137 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3138
3139 ac_rmfiles=
3140 for ac_file in $ac_files
3141 do
3142 case $ac_file in
3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3144 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3145 esac
3146 done
3147 rm -f $ac_rmfiles
3148
3149 if { { ac_try="$ac_link_default"
3150 case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153 esac
3154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3155 $as_echo "$ac_try_echo"; } >&5
3156 (eval "$ac_link_default") 2>&5
3157 ac_status=$?
3158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3159 test $ac_status = 0; }; then :
3160 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3161 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3162 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3163 # so that the user can short-circuit this test for compilers unknown to
3164 # Autoconf.
3165 for ac_file in $ac_files ''
3166 do
3167 test -f "$ac_file" || continue
3168 case $ac_file in
3169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3170 ;;
3171 [ab].out )
3172 # We found the default executable, but exeext='' is most
3173 # certainly right.
3174 break;;
3175 *.* )
3176 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3177 then :; else
3178 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3179 fi
3180 # We set ac_cv_exeext here because the later test for it is not
3181 # safe: cross compilers may not add the suffix if given an `-o'
3182 # argument, so we may need to know it at that point already.
3183 # Even if this section looks crufty: it has the advantage of
3184 # actually working.
3185 break;;
3186 * )
3187 break;;
3188 esac
3189 done
3190 test "$ac_cv_exeext" = no && ac_cv_exeext=
3191
3192 else
3193 ac_file=''
3194 fi
3195 if test -z "$ac_file"; then :
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 $as_echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3200
3201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 as_fn_error 77 "C compiler cannot create executables
3204 See \`config.log' for more details" "$LINENO" 5; }
3205 else
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3207 $as_echo "yes" >&6; }
3208 fi
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3210 $as_echo_n "checking for C compiler default output file name... " >&6; }
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3212 $as_echo "$ac_file" >&6; }
3213 ac_exeext=$ac_cv_exeext
3214
3215 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3216 ac_clean_files=$ac_clean_files_save
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3218 $as_echo_n "checking for suffix of executables... " >&6; }
3219 if { { ac_try="$ac_link"
3220 case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223 esac
3224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3225 $as_echo "$ac_try_echo"; } >&5
3226 (eval "$ac_link") 2>&5
3227 ac_status=$?
3228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3229 test $ac_status = 0; }; then :
3230 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3231 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3232 # work properly (i.e., refer to `conftest.exe'), while it won't with
3233 # `rm'.
3234 for ac_file in conftest.exe conftest conftest.*; do
3235 test -f "$ac_file" || continue
3236 case $ac_file in
3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3238 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3239 break;;
3240 * ) break;;
3241 esac
3242 done
3243 else
3244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3247 See \`config.log' for more details" "$LINENO" 5; }
3248 fi
3249 rm -f conftest conftest$ac_cv_exeext
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3251 $as_echo "$ac_cv_exeext" >&6; }
3252
3253 rm -f conftest.$ac_ext
3254 EXEEXT=$ac_cv_exeext
3255 ac_exeext=$EXEEXT
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257 /* end confdefs.h. */
3258 #include <stdio.h>
3259 int
3260 main ()
3261 {
3262 FILE *f = fopen ("conftest.out", "w");
3263 return ferror (f) || fclose (f) != 0;
3264
3265 ;
3266 return 0;
3267 }
3268 _ACEOF
3269 ac_clean_files="$ac_clean_files conftest.out"
3270 # Check that the compiler produces executables we can run. If not, either
3271 # the compiler is broken, or we cross compile.
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3273 $as_echo_n "checking whether we are cross compiling... " >&6; }
3274 if test "$cross_compiling" != yes; then
3275 { { ac_try="$ac_link"
3276 case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282 (eval "$ac_link") 2>&5
3283 ac_status=$?
3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285 test $ac_status = 0; }
3286 if { ac_try='./conftest$ac_cv_exeext'
3287 { { case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290 esac
3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292 $as_echo "$ac_try_echo"; } >&5
3293 (eval "$ac_try") 2>&5
3294 ac_status=$?
3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296 test $ac_status = 0; }; }; then
3297 cross_compiling=no
3298 else
3299 if test "$cross_compiling" = maybe; then
3300 cross_compiling=yes
3301 else
3302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304 as_fn_error $? "cannot run C compiled programs.
3305 If you meant to cross compile, use \`--host'.
3306 See \`config.log' for more details" "$LINENO" 5; }
3307 fi
3308 fi
3309 fi
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3311 $as_echo "$cross_compiling" >&6; }
3312
3313 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3314 ac_clean_files=$ac_clean_files_save
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3316 $as_echo_n "checking for suffix of object files... " >&6; }
3317 if ${ac_cv_objext+:} false; then :
3318 $as_echo_n "(cached) " >&6
3319 else
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321 /* end confdefs.h. */
3322
3323 int
3324 main ()
3325 {
3326
3327 ;
3328 return 0;
3329 }
3330 _ACEOF
3331 rm -f conftest.o conftest.obj
3332 if { { ac_try="$ac_compile"
3333 case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336 esac
3337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338 $as_echo "$ac_try_echo"; } >&5
3339 (eval "$ac_compile") 2>&5
3340 ac_status=$?
3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3342 test $ac_status = 0; }; then :
3343 for ac_file in conftest.o conftest.obj conftest.*; do
3344 test -f "$ac_file" || continue;
3345 case $ac_file in
3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3347 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3348 break;;
3349 esac
3350 done
3351 else
3352 $as_echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3354
3355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357 as_fn_error $? "cannot compute suffix of object files: cannot compile
3358 See \`config.log' for more details" "$LINENO" 5; }
3359 fi
3360 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3361 fi
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3363 $as_echo "$ac_cv_objext" >&6; }
3364 OBJEXT=$ac_cv_objext
3365 ac_objext=$OBJEXT
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3367 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3368 if ${ac_cv_c_compiler_gnu+:} false; then :
3369 $as_echo_n "(cached) " >&6
3370 else
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3373
3374 int
3375 main ()
3376 {
3377 #ifndef __GNUC__
3378 choke me
3379 #endif
3380
3381 ;
3382 return 0;
3383 }
3384 _ACEOF
3385 if ac_fn_c_try_compile "$LINENO"; then :
3386 ac_compiler_gnu=yes
3387 else
3388 ac_compiler_gnu=no
3389 fi
3390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3392
3393 fi
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3395 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3396 if test $ac_compiler_gnu = yes; then
3397 GCC=yes
3398 else
3399 GCC=
3400 fi
3401 ac_test_CFLAGS=${CFLAGS+set}
3402 ac_save_CFLAGS=$CFLAGS
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3404 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3405 if ${ac_cv_prog_cc_g+:} false; then :
3406 $as_echo_n "(cached) " >&6
3407 else
3408 ac_save_c_werror_flag=$ac_c_werror_flag
3409 ac_c_werror_flag=yes
3410 ac_cv_prog_cc_g=no
3411 CFLAGS="-g"
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3414
3415 int
3416 main ()
3417 {
3418
3419 ;
3420 return 0;
3421 }
3422 _ACEOF
3423 if ac_fn_c_try_compile "$LINENO"; then :
3424 ac_cv_prog_cc_g=yes
3425 else
3426 CFLAGS=""
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3429
3430 int
3431 main ()
3432 {
3433
3434 ;
3435 return 0;
3436 }
3437 _ACEOF
3438 if ac_fn_c_try_compile "$LINENO"; then :
3439
3440 else
3441 ac_c_werror_flag=$ac_save_c_werror_flag
3442 CFLAGS="-g"
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h. */
3445
3446 int
3447 main ()
3448 {
3449
3450 ;
3451 return 0;
3452 }
3453 _ACEOF
3454 if ac_fn_c_try_compile "$LINENO"; then :
3455 ac_cv_prog_cc_g=yes
3456 fi
3457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3458 fi
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460 fi
3461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3462 ac_c_werror_flag=$ac_save_c_werror_flag
3463 fi
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3465 $as_echo "$ac_cv_prog_cc_g" >&6; }
3466 if test "$ac_test_CFLAGS" = set; then
3467 CFLAGS=$ac_save_CFLAGS
3468 elif test $ac_cv_prog_cc_g = yes; then
3469 if test "$GCC" = yes; then
3470 CFLAGS="-g -O2"
3471 else
3472 CFLAGS="-g"
3473 fi
3474 else
3475 if test "$GCC" = yes; then
3476 CFLAGS="-O2"
3477 else
3478 CFLAGS=
3479 fi
3480 fi
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3482 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3483 if ${ac_cv_prog_cc_c89+:} false; then :
3484 $as_echo_n "(cached) " >&6
3485 else
3486 ac_cv_prog_cc_c89=no
3487 ac_save_CC=$CC
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3490 #include <stdarg.h>
3491 #include <stdio.h>
3492 struct stat;
3493 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3494 struct buf { int x; };
3495 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3496 static char *e (p, i)
3497 char **p;
3498 int i;
3499 {
3500 return p[i];
3501 }
3502 static char *f (char * (*g) (char **, int), char **p, ...)
3503 {
3504 char *s;
3505 va_list v;
3506 va_start (v,p);
3507 s = g (p, va_arg (v,int));
3508 va_end (v);
3509 return s;
3510 }
3511
3512 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3513 function prototypes and stuff, but not '\xHH' hex character constants.
3514 These don't provoke an error unfortunately, instead are silently treated
3515 as 'x'. The following induces an error, until -std is added to get
3516 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3517 array size at least. It's necessary to write '\x00'==0 to get something
3518 that's true only with -std. */
3519 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3520
3521 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3522 inside strings and character constants. */
3523 #define FOO(x) 'x'
3524 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3525
3526 int test (int i, double x);
3527 struct s1 {int (*f) (int a);};
3528 struct s2 {int (*f) (double a);};
3529 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3530 int argc;
3531 char **argv;
3532 int
3533 main ()
3534 {
3535 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3536 ;
3537 return 0;
3538 }
3539 _ACEOF
3540 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3541 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3542 do
3543 CC="$ac_save_CC $ac_arg"
3544 if ac_fn_c_try_compile "$LINENO"; then :
3545 ac_cv_prog_cc_c89=$ac_arg
3546 fi
3547 rm -f core conftest.err conftest.$ac_objext
3548 test "x$ac_cv_prog_cc_c89" != "xno" && break
3549 done
3550 rm -f conftest.$ac_ext
3551 CC=$ac_save_CC
3552
3553 fi
3554 # AC_CACHE_VAL
3555 case "x$ac_cv_prog_cc_c89" in
3556 x)
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3558 $as_echo "none needed" >&6; } ;;
3559 xno)
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3561 $as_echo "unsupported" >&6; } ;;
3562 *)
3563 CC="$CC $ac_cv_prog_cc_c89"
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3565 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3566 esac
3567 if test "x$ac_cv_prog_cc_c89" != xno; then :
3568
3569 fi
3570
3571 ac_ext=c
3572 ac_cpp='$CPP $CPPFLAGS'
3573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576
3577 ac_ext=c
3578 ac_cpp='$CPP $CPPFLAGS'
3579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3583 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3584 if ${am_cv_prog_cc_c_o+:} false; then :
3585 $as_echo_n "(cached) " >&6
3586 else
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3589
3590 int
3591 main ()
3592 {
3593
3594 ;
3595 return 0;
3596 }
3597 _ACEOF
3598 # Make sure it works both with $CC and with simple cc.
3599 # Following AC_PROG_CC_C_O, we do the test twice because some
3600 # compilers refuse to overwrite an existing .o file with -o,
3601 # though they will create one.
3602 am_cv_prog_cc_c_o=yes
3603 for am_i in 1 2; do
3604 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3605 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3606 ac_status=$?
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } \
3609 && test -f conftest2.$ac_objext; then
3610 : OK
3611 else
3612 am_cv_prog_cc_c_o=no
3613 break
3614 fi
3615 done
3616 rm -f core conftest*
3617 unset am_i
3618 fi
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3620 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3621 if test "$am_cv_prog_cc_c_o" != yes; then
3622 # Losing compiler, so override with the script.
3623 # FIXME: It is wrong to rewrite CC.
3624 # But if we don't then we get into trouble of one sort or another.
3625 # A longer-term fix would be to have automake use am__CC in this case,
3626 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3627 CC="$am_aux_dir/compile $CC"
3628 fi
3629 ac_ext=c
3630 ac_cpp='$CPP $CPPFLAGS'
3631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634
3635
3636 depcc="$CC" am_compiler_list=
3637
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3639 $as_echo_n "checking dependency style of $depcc... " >&6; }
3640 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3641 $as_echo_n "(cached) " >&6
3642 else
3643 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3644 # We make a subdir and do the tests there. Otherwise we can end up
3645 # making bogus files that we don't know about and never remove. For
3646 # instance it was reported that on HP-UX the gcc test will end up
3647 # making a dummy file named 'D' -- because '-MD' means "put the output
3648 # in D".
3649 rm -rf conftest.dir
3650 mkdir conftest.dir
3651 # Copy depcomp to subdir because otherwise we won't find it if we're
3652 # using a relative directory.
3653 cp "$am_depcomp" conftest.dir
3654 cd conftest.dir
3655 # We will build objects and dependencies in a subdirectory because
3656 # it helps to detect inapplicable dependency modes. For instance
3657 # both Tru64's cc and ICC support -MD to output dependencies as a
3658 # side effect of compilation, but ICC will put the dependencies in
3659 # the current directory while Tru64 will put them in the object
3660 # directory.
3661 mkdir sub
3662
3663 am_cv_CC_dependencies_compiler_type=none
3664 if test "$am_compiler_list" = ""; then
3665 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3666 fi
3667 am__universal=false
3668 case " $depcc " in #(
3669 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3670 esac
3671
3672 for depmode in $am_compiler_list; do
3673 # Setup a source with many dependencies, because some compilers
3674 # like to wrap large dependency lists on column 80 (with \), and
3675 # we should not choose a depcomp mode which is confused by this.
3676 #
3677 # We need to recreate these files for each test, as the compiler may
3678 # overwrite some of them when testing with obscure command lines.
3679 # This happens at least with the AIX C compiler.
3680 : > sub/conftest.c
3681 for i in 1 2 3 4 5 6; do
3682 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3683 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3684 # Solaris 10 /bin/sh.
3685 echo '/* dummy */' > sub/conftst$i.h
3686 done
3687 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3688
3689 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3690 # mode. It turns out that the SunPro C++ compiler does not properly
3691 # handle '-M -o', and we need to detect this. Also, some Intel
3692 # versions had trouble with output in subdirs.
3693 am__obj=sub/conftest.${OBJEXT-o}
3694 am__minus_obj="-o $am__obj"
3695 case $depmode in
3696 gcc)
3697 # This depmode causes a compiler race in universal mode.
3698 test "$am__universal" = false || continue
3699 ;;
3700 nosideeffect)
3701 # After this tag, mechanisms are not by side-effect, so they'll
3702 # only be used when explicitly requested.
3703 if test "x$enable_dependency_tracking" = xyes; then
3704 continue
3705 else
3706 break
3707 fi
3708 ;;
3709 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3710 # This compiler won't grok '-c -o', but also, the minuso test has
3711 # not run yet. These depmodes are late enough in the game, and
3712 # so weak that their functioning should not be impacted.
3713 am__obj=conftest.${OBJEXT-o}
3714 am__minus_obj=
3715 ;;
3716 none) break ;;
3717 esac
3718 if depmode=$depmode \
3719 source=sub/conftest.c object=$am__obj \
3720 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3721 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3722 >/dev/null 2>conftest.err &&
3723 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3724 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3725 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3726 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3727 # icc doesn't choke on unknown options, it will just issue warnings
3728 # or remarks (even with -Werror). So we grep stderr for any message
3729 # that says an option was ignored or not supported.
3730 # When given -MP, icc 7.0 and 7.1 complain thusly:
3731 # icc: Command line warning: ignoring option '-M'; no argument required
3732 # The diagnosis changed in icc 8.0:
3733 # icc: Command line remark: option '-MP' not supported
3734 if (grep 'ignoring option' conftest.err ||
3735 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3736 am_cv_CC_dependencies_compiler_type=$depmode
3737 break
3738 fi
3739 fi
3740 done
3741
3742 cd ..
3743 rm -rf conftest.dir
3744 else
3745 am_cv_CC_dependencies_compiler_type=none
3746 fi
3747
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3750 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3751 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3752
3753 if
3754 test "x$enable_dependency_tracking" != xno \
3755 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3756 am__fastdepCC_TRUE=
3757 am__fastdepCC_FALSE='#'
3758 else
3759 am__fastdepCC_TRUE='#'
3760 am__fastdepCC_FALSE=
3761 fi
3762
3763
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3765 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3766 if ${ac_cv_prog_cc_c99+:} false; then :
3767 $as_echo_n "(cached) " >&6
3768 else
3769 ac_cv_prog_cc_c99=no
3770 ac_save_CC=$CC
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3773 #include <stdarg.h>
3774 #include <stdbool.h>
3775 #include <stdlib.h>
3776 #include <wchar.h>
3777 #include <stdio.h>
3778
3779 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3780 #define debug(...) fprintf (stderr, __VA_ARGS__)
3781 #define showlist(...) puts (#__VA_ARGS__)
3782 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3783 static void
3784 test_varargs_macros (void)
3785 {
3786 int x = 1234;
3787 int y = 5678;
3788 debug ("Flag");
3789 debug ("X = %d\n", x);
3790 showlist (The first, second, and third items.);
3791 report (x>y, "x is %d but y is %d", x, y);
3792 }
3793
3794 // Check long long types.
3795 #define BIG64 18446744073709551615ull
3796 #define BIG32 4294967295ul
3797 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3798 #if !BIG_OK
3799 your preprocessor is broken;
3800 #endif
3801 #if BIG_OK
3802 #else
3803 your preprocessor is broken;
3804 #endif
3805 static long long int bignum = -9223372036854775807LL;
3806 static unsigned long long int ubignum = BIG64;
3807
3808 struct incomplete_array
3809 {
3810 int datasize;
3811 double data[];
3812 };
3813
3814 struct named_init {
3815 int number;
3816 const wchar_t *name;
3817 double average;
3818 };
3819
3820 typedef const char *ccp;
3821
3822 static inline int
3823 test_restrict (ccp restrict text)
3824 {
3825 // See if C++-style comments work.
3826 // Iterate through items via the restricted pointer.
3827 // Also check for declarations in for loops.
3828 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3829 continue;
3830 return 0;
3831 }
3832
3833 // Check varargs and va_copy.
3834 static void
3835 test_varargs (const char *format, ...)
3836 {
3837 va_list args;
3838 va_start (args, format);
3839 va_list args_copy;
3840 va_copy (args_copy, args);
3841
3842 const char *str;
3843 int number;
3844 float fnumber;
3845
3846 while (*format)
3847 {
3848 switch (*format++)
3849 {
3850 case 's': // string
3851 str = va_arg (args_copy, const char *);
3852 break;
3853 case 'd': // int
3854 number = va_arg (args_copy, int);
3855 break;
3856 case 'f': // float
3857 fnumber = va_arg (args_copy, double);
3858 break;
3859 default:
3860 break;
3861 }
3862 }
3863 va_end (args_copy);
3864 va_end (args);
3865 }
3866
3867 int
3868 main ()
3869 {
3870
3871 // Check bool.
3872 _Bool success = false;
3873
3874 // Check restrict.
3875 if (test_restrict ("String literal") == 0)
3876 success = true;
3877 char *restrict newvar = "Another string";
3878
3879 // Check varargs.
3880 test_varargs ("s, d' f .", "string", 65, 34.234);
3881 test_varargs_macros ();
3882
3883 // Check flexible array members.
3884 struct incomplete_array *ia =
3885 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3886 ia->datasize = 10;
3887 for (int i = 0; i < ia->datasize; ++i)
3888 ia->data[i] = i * 1.234;
3889
3890 // Check named initializers.
3891 struct named_init ni = {
3892 .number = 34,
3893 .name = L"Test wide string",
3894 .average = 543.34343,
3895 };
3896
3897 ni.number = 58;
3898
3899 int dynamic_array[ni.number];
3900 dynamic_array[ni.number - 1] = 543;
3901
3902 // work around unused variable warnings
3903 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3904 || dynamic_array[ni.number - 1] != 543);
3905
3906 ;
3907 return 0;
3908 }
3909 _ACEOF
3910 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3911 do
3912 CC="$ac_save_CC $ac_arg"
3913 if ac_fn_c_try_compile "$LINENO"; then :
3914 ac_cv_prog_cc_c99=$ac_arg
3915 fi
3916 rm -f core conftest.err conftest.$ac_objext
3917 test "x$ac_cv_prog_cc_c99" != "xno" && break
3918 done
3919 rm -f conftest.$ac_ext
3920 CC=$ac_save_CC
3921
3922 fi
3923 # AC_CACHE_VAL
3924 case "x$ac_cv_prog_cc_c99" in
3925 x)
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3927 $as_echo "none needed" >&6; } ;;
3928 xno)
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3930 $as_echo "unsupported" >&6; } ;;
3931 *)
3932 CC="$CC $ac_cv_prog_cc_c99"
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3934 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3935 esac
3936 if test "x$ac_cv_prog_cc_c99" != xno; then :
3937
3938 fi
3939
3940
3941
3942 ac_ext=c
3943 ac_cpp='$CPP $CPPFLAGS'
3944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3948 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3949 # On Suns, sometimes $CPP names a directory.
3950 if test -n "$CPP" && test -d "$CPP"; then
3951 CPP=
3952 fi
3953 if test -z "$CPP"; then
3954 if ${ac_cv_prog_CPP+:} false; then :
3955 $as_echo_n "(cached) " >&6
3956 else
3957 # Double quotes because CPP needs to be expanded
3958 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3959 do
3960 ac_preproc_ok=false
3961 for ac_c_preproc_warn_flag in '' yes
3962 do
3963 # Use a header file that comes with gcc, so configuring glibc
3964 # with a fresh cross-compiler works.
3965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3966 # <limits.h> exists even on freestanding compilers.
3967 # On the NeXT, cc -E runs the code through the compiler's parser,
3968 # not just through cpp. "Syntax error" is here to catch this case.
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3971 #ifdef __STDC__
3972 # include <limits.h>
3973 #else
3974 # include <assert.h>
3975 #endif
3976 Syntax error
3977 _ACEOF
3978 if ac_fn_c_try_cpp "$LINENO"; then :
3979
3980 else
3981 # Broken: fails on valid input.
3982 continue
3983 fi
3984 rm -f conftest.err conftest.i conftest.$ac_ext
3985
3986 # OK, works on sane cases. Now check whether nonexistent headers
3987 # can be detected and how.
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3990 #include <ac_nonexistent.h>
3991 _ACEOF
3992 if ac_fn_c_try_cpp "$LINENO"; then :
3993 # Broken: success on invalid input.
3994 continue
3995 else
3996 # Passes both tests.
3997 ac_preproc_ok=:
3998 break
3999 fi
4000 rm -f conftest.err conftest.i conftest.$ac_ext
4001
4002 done
4003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4004 rm -f conftest.i conftest.err conftest.$ac_ext
4005 if $ac_preproc_ok; then :
4006 break
4007 fi
4008
4009 done
4010 ac_cv_prog_CPP=$CPP
4011
4012 fi
4013 CPP=$ac_cv_prog_CPP
4014 else
4015 ac_cv_prog_CPP=$CPP
4016 fi
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4018 $as_echo "$CPP" >&6; }
4019 ac_preproc_ok=false
4020 for ac_c_preproc_warn_flag in '' yes
4021 do
4022 # Use a header file that comes with gcc, so configuring glibc
4023 # with a fresh cross-compiler works.
4024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4025 # <limits.h> exists even on freestanding compilers.
4026 # On the NeXT, cc -E runs the code through the compiler's parser,
4027 # not just through cpp. "Syntax error" is here to catch this case.
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4030 #ifdef __STDC__
4031 # include <limits.h>
4032 #else
4033 # include <assert.h>
4034 #endif
4035 Syntax error
4036 _ACEOF
4037 if ac_fn_c_try_cpp "$LINENO"; then :
4038
4039 else
4040 # Broken: fails on valid input.
4041 continue
4042 fi
4043 rm -f conftest.err conftest.i conftest.$ac_ext
4044
4045 # OK, works on sane cases. Now check whether nonexistent headers
4046 # can be detected and how.
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049 #include <ac_nonexistent.h>
4050 _ACEOF
4051 if ac_fn_c_try_cpp "$LINENO"; then :
4052 # Broken: success on invalid input.
4053 continue
4054 else
4055 # Passes both tests.
4056 ac_preproc_ok=:
4057 break
4058 fi
4059 rm -f conftest.err conftest.i conftest.$ac_ext
4060
4061 done
4062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4063 rm -f conftest.i conftest.err conftest.$ac_ext
4064 if $ac_preproc_ok; then :
4065
4066 else
4067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4069 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4070 See \`config.log' for more details" "$LINENO" 5; }
4071 fi
4072
4073 ac_ext=c
4074 ac_cpp='$CPP $CPPFLAGS'
4075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4078
4079
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4081 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4082 if ${ac_cv_path_GREP+:} false; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 if test -z "$GREP"; then
4086 ac_path_GREP_found=false
4087 # Loop through the user's path and test for each of PROGNAME-LIST
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4090 do
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_prog in grep ggrep; do
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4096 as_fn_executable_p "$ac_path_GREP" || continue
4097 # Check for GNU ac_path_GREP and select it if it is found.
4098 # Check for GNU $ac_path_GREP
4099 case `"$ac_path_GREP" --version 2>&1` in
4100 *GNU*)
4101 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4102 *)
4103 ac_count=0
4104 $as_echo_n 0123456789 >"conftest.in"
4105 while :
4106 do
4107 cat "conftest.in" "conftest.in" >"conftest.tmp"
4108 mv "conftest.tmp" "conftest.in"
4109 cp "conftest.in" "conftest.nl"
4110 $as_echo 'GREP' >> "conftest.nl"
4111 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4113 as_fn_arith $ac_count + 1 && ac_count=$as_val
4114 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4115 # Best one so far, save it but keep looking for a better one
4116 ac_cv_path_GREP="$ac_path_GREP"
4117 ac_path_GREP_max=$ac_count
4118 fi
4119 # 10*(2^10) chars as input seems more than enough
4120 test $ac_count -gt 10 && break
4121 done
4122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4123 esac
4124
4125 $ac_path_GREP_found && break 3
4126 done
4127 done
4128 done
4129 IFS=$as_save_IFS
4130 if test -z "$ac_cv_path_GREP"; then
4131 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4132 fi
4133 else
4134 ac_cv_path_GREP=$GREP
4135 fi
4136
4137 fi
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4139 $as_echo "$ac_cv_path_GREP" >&6; }
4140 GREP="$ac_cv_path_GREP"
4141
4142
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4144 $as_echo_n "checking for egrep... " >&6; }
4145 if ${ac_cv_path_EGREP+:} false; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4149 then ac_cv_path_EGREP="$GREP -E"
4150 else
4151 if test -z "$EGREP"; then
4152 ac_path_EGREP_found=false
4153 # Loop through the user's path and test for each of PROGNAME-LIST
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4156 do
4157 IFS=$as_save_IFS
4158 test -z "$as_dir" && as_dir=.
4159 for ac_prog in egrep; do
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4162 as_fn_executable_p "$ac_path_EGREP" || continue
4163 # Check for GNU ac_path_EGREP and select it if it is found.
4164 # Check for GNU $ac_path_EGREP
4165 case `"$ac_path_EGREP" --version 2>&1` in
4166 *GNU*)
4167 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4168 *)
4169 ac_count=0
4170 $as_echo_n 0123456789 >"conftest.in"
4171 while :
4172 do
4173 cat "conftest.in" "conftest.in" >"conftest.tmp"
4174 mv "conftest.tmp" "conftest.in"
4175 cp "conftest.in" "conftest.nl"
4176 $as_echo 'EGREP' >> "conftest.nl"
4177 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4178 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4179 as_fn_arith $ac_count + 1 && ac_count=$as_val
4180 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4181 # Best one so far, save it but keep looking for a better one
4182 ac_cv_path_EGREP="$ac_path_EGREP"
4183 ac_path_EGREP_max=$ac_count
4184 fi
4185 # 10*(2^10) chars as input seems more than enough
4186 test $ac_count -gt 10 && break
4187 done
4188 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4189 esac
4190
4191 $ac_path_EGREP_found && break 3
4192 done
4193 done
4194 done
4195 IFS=$as_save_IFS
4196 if test -z "$ac_cv_path_EGREP"; then
4197 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4198 fi
4199 else
4200 ac_cv_path_EGREP=$EGREP
4201 fi
4202
4203 fi
4204 fi
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4206 $as_echo "$ac_cv_path_EGREP" >&6; }
4207 EGREP="$ac_cv_path_EGREP"
4208
4209
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4211 $as_echo_n "checking for ANSI C header files... " >&6; }
4212 if ${ac_cv_header_stdc+:} false; then :
4213 $as_echo_n "(cached) " >&6
4214 else
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4217 #include <stdlib.h>
4218 #include <stdarg.h>
4219 #include <string.h>
4220 #include <float.h>
4221
4222 int
4223 main ()
4224 {
4225
4226 ;
4227 return 0;
4228 }
4229 _ACEOF
4230 if ac_fn_c_try_compile "$LINENO"; then :
4231 ac_cv_header_stdc=yes
4232 else
4233 ac_cv_header_stdc=no
4234 fi
4235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4236
4237 if test $ac_cv_header_stdc = yes; then
4238 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241 #include <string.h>
4242
4243 _ACEOF
4244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4245 $EGREP "memchr" >/dev/null 2>&1; then :
4246
4247 else
4248 ac_cv_header_stdc=no
4249 fi
4250 rm -f conftest*
4251
4252 fi
4253
4254 if test $ac_cv_header_stdc = yes; then
4255 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258 #include <stdlib.h>
4259
4260 _ACEOF
4261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4262 $EGREP "free" >/dev/null 2>&1; then :
4263
4264 else
4265 ac_cv_header_stdc=no
4266 fi
4267 rm -f conftest*
4268
4269 fi
4270
4271 if test $ac_cv_header_stdc = yes; then
4272 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4273 if test "$cross_compiling" = yes; then :
4274 :
4275 else
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4278 #include <ctype.h>
4279 #include <stdlib.h>
4280 #if ((' ' & 0x0FF) == 0x020)
4281 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4282 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4283 #else
4284 # define ISLOWER(c) \
4285 (('a' <= (c) && (c) <= 'i') \
4286 || ('j' <= (c) && (c) <= 'r') \
4287 || ('s' <= (c) && (c) <= 'z'))
4288 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4289 #endif
4290
4291 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4292 int
4293 main ()
4294 {
4295 int i;
4296 for (i = 0; i < 256; i++)
4297 if (XOR (islower (i), ISLOWER (i))
4298 || toupper (i) != TOUPPER (i))
4299 return 2;
4300 return 0;
4301 }
4302 _ACEOF
4303 if ac_fn_c_try_run "$LINENO"; then :
4304
4305 else
4306 ac_cv_header_stdc=no
4307 fi
4308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4309 conftest.$ac_objext conftest.beam conftest.$ac_ext
4310 fi
4311
4312 fi
4313 fi
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4315 $as_echo "$ac_cv_header_stdc" >&6; }
4316 if test $ac_cv_header_stdc = yes; then
4317
4318 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4319
4320 fi
4321
4322 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4323 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4324 inttypes.h stdint.h unistd.h
4325 do :
4326 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4327 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4328 "
4329 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4330 cat >>confdefs.h <<_ACEOF
4331 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4332 _ACEOF
4333
4334 fi
4335
4336 done
4337
4338
4339
4340
4341
4342
4343 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4344 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4345 CLANGCC="yes"
4346 else
4347 CLANGCC="no"
4348 fi
4349
4350 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4351 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4352 INTELCC="yes"
4353 else
4354 INTELCC="no"
4355 fi
4356
4357 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4358 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4359 SUNCC="yes"
4360 else
4361 SUNCC="no"
4362 fi
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4373 if test -n "$ac_tool_prefix"; then
4374 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4375 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4377 $as_echo_n "checking for $ac_word... " >&6; }
4378 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381 case $PKG_CONFIG in
4382 [\\/]* | ?:[\\/]*)
4383 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4384 ;;
4385 *)
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in $PATH
4388 do
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4393 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 break 2
4396 fi
4397 done
4398 done
4399 IFS=$as_save_IFS
4400
4401 ;;
4402 esac
4403 fi
4404 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4405 if test -n "$PKG_CONFIG"; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4407 $as_echo "$PKG_CONFIG" >&6; }
4408 else
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4411 fi
4412
4413
4414 fi
4415 if test -z "$ac_cv_path_PKG_CONFIG"; then
4416 ac_pt_PKG_CONFIG=$PKG_CONFIG
4417 # Extract the first word of "pkg-config", so it can be a program name with args.
4418 set dummy pkg-config; ac_word=$2
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4420 $as_echo_n "checking for $ac_word... " >&6; }
4421 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4422 $as_echo_n "(cached) " >&6
4423 else
4424 case $ac_pt_PKG_CONFIG in
4425 [\\/]* | ?:[\\/]*)
4426 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4427 ;;
4428 *)
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 for as_dir in $PATH
4431 do
4432 IFS=$as_save_IFS
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4436 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 break 2
4439 fi
4440 done
4441 done
4442 IFS=$as_save_IFS
4443
4444 ;;
4445 esac
4446 fi
4447 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4448 if test -n "$ac_pt_PKG_CONFIG"; then
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4450 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4451 else
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453 $as_echo "no" >&6; }
4454 fi
4455
4456 if test "x$ac_pt_PKG_CONFIG" = x; then
4457 PKG_CONFIG=""
4458 else
4459 case $cross_compiling:$ac_tool_warned in
4460 yes:)
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4463 ac_tool_warned=yes ;;
4464 esac
4465 PKG_CONFIG=$ac_pt_PKG_CONFIG
4466 fi
4467 else
4468 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4469 fi
4470
4471 fi
4472 if test -n "$PKG_CONFIG"; then
4473 _pkg_min_version=0.9.0
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4475 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4476 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4478 $as_echo "yes" >&6; }
4479 else
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4482 PKG_CONFIG=""
4483 fi
4484 fi
4485 # Make sure we can run config.sub.
4486 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4487 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4488
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4490 $as_echo_n "checking build system type... " >&6; }
4491 if ${ac_cv_build+:} false; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 ac_build_alias=$build_alias
4495 test "x$ac_build_alias" = x &&
4496 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4497 test "x$ac_build_alias" = x &&
4498 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4499 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4500 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4501
4502 fi
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4504 $as_echo "$ac_cv_build" >&6; }
4505 case $ac_cv_build in
4506 *-*-*) ;;
4507 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4508 esac
4509 build=$ac_cv_build
4510 ac_save_IFS=$IFS; IFS='-'
4511 set x $ac_cv_build
4512 shift
4513 build_cpu=$1
4514 build_vendor=$2
4515 shift; shift
4516 # Remember, the first character of IFS is used to create $*,
4517 # except with old shells:
4518 build_os=$*
4519 IFS=$ac_save_IFS
4520 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4521
4522
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4524 $as_echo_n "checking host system type... " >&6; }
4525 if ${ac_cv_host+:} false; then :
4526 $as_echo_n "(cached) " >&6
4527 else
4528 if test "x$host_alias" = x; then
4529 ac_cv_host=$ac_cv_build
4530 else
4531 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4532 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4533 fi
4534
4535 fi
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4537 $as_echo "$ac_cv_host" >&6; }
4538 case $ac_cv_host in
4539 *-*-*) ;;
4540 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4541 esac
4542 host=$ac_cv_host
4543 ac_save_IFS=$IFS; IFS='-'
4544 set x $ac_cv_host
4545 shift
4546 host_cpu=$1
4547 host_vendor=$2
4548 shift; shift
4549 # Remember, the first character of IFS is used to create $*,
4550 # except with old shells:
4551 host_os=$*
4552 IFS=$ac_save_IFS
4553 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4554
4555
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4557 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4558 if ${ac_cv_path_SED+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4562 for ac_i in 1 2 3 4 5 6 7; do
4563 ac_script="$ac_script$as_nl$ac_script"
4564 done
4565 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4566 { ac_script=; unset ac_script;}
4567 if test -z "$SED"; then
4568 ac_path_SED_found=false
4569 # Loop through the user's path and test for each of PROGNAME-LIST
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4572 do
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_prog in sed gsed; do
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4578 as_fn_executable_p "$ac_path_SED" || continue
4579 # Check for GNU ac_path_SED and select it if it is found.
4580 # Check for GNU $ac_path_SED
4581 case `"$ac_path_SED" --version 2>&1` in
4582 *GNU*)
4583 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4584 *)
4585 ac_count=0
4586 $as_echo_n 0123456789 >"conftest.in"
4587 while :
4588 do
4589 cat "conftest.in" "conftest.in" >"conftest.tmp"
4590 mv "conftest.tmp" "conftest.in"
4591 cp "conftest.in" "conftest.nl"
4592 $as_echo '' >> "conftest.nl"
4593 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4594 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4595 as_fn_arith $ac_count + 1 && ac_count=$as_val
4596 if test $ac_count -gt ${ac_path_SED_max-0}; then
4597 # Best one so far, save it but keep looking for a better one
4598 ac_cv_path_SED="$ac_path_SED"
4599 ac_path_SED_max=$ac_count
4600 fi
4601 # 10*(2^10) chars as input seems more than enough
4602 test $ac_count -gt 10 && break
4603 done
4604 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4605 esac
4606
4607 $ac_path_SED_found && break 3
4608 done
4609 done
4610 done
4611 IFS=$as_save_IFS
4612 if test -z "$ac_cv_path_SED"; then
4613 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4614 fi
4615 else
4616 ac_cv_path_SED=$SED
4617 fi
4618
4619 fi
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4621 $as_echo "$ac_cv_path_SED" >&6; }
4622 SED="$ac_cv_path_SED"
4623 rm -f conftest.sed
4624
4625
4626
4627
4628
4629
4630 # Check whether --enable-selective-werror was given.
4631 if test "${enable_selective_werror+set}" = set; then :
4632 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4633 else
4634 SELECTIVE_WERROR=yes
4635 fi
4636
4637
4638
4639
4640
4641 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4642 if test "x$SUNCC" = "xyes"; then
4643 BASE_CFLAGS="-v"
4644 else
4645 BASE_CFLAGS=""
4646 fi
4647
4648 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662 xorg_testset_save_CFLAGS="$CFLAGS"
4663
4664 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4667 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4668 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4669 $as_echo_n "(cached) " >&6
4670 else
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4673 int i;
4674 _ACEOF
4675 if ac_fn_c_try_compile "$LINENO"; then :
4676 xorg_cv_cc_flag_unknown_warning_option=yes
4677 else
4678 xorg_cv_cc_flag_unknown_warning_option=no
4679 fi
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 fi
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4683 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4685 CFLAGS="$xorg_testset_save_CFLAGS"
4686 fi
4687
4688 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4691 fi
4692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4694 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4695 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4700 int i;
4701 _ACEOF
4702 if ac_fn_c_try_compile "$LINENO"; then :
4703 xorg_cv_cc_flag_unused_command_line_argument=yes
4704 else
4705 xorg_cv_cc_flag_unused_command_line_argument=no
4706 fi
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 fi
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4710 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4711 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4712 CFLAGS="$xorg_testset_save_CFLAGS"
4713 fi
4714
4715 found="no"
4716
4717 if test $found = "no" ; then
4718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4720 fi
4721
4722 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4724 fi
4725
4726 CFLAGS="$CFLAGS -Wall"
4727
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4729 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4730 cacheid=xorg_cv_cc_flag__Wall
4731 if eval \${$cacheid+:} false; then :
4732 $as_echo_n "(cached) " >&6
4733 else
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4736 int i;
4737 int
4738 main ()
4739 {
4740
4741 ;
4742 return 0;
4743 }
4744 _ACEOF
4745 if ac_fn_c_try_link "$LINENO"; then :
4746 eval $cacheid=yes
4747 else
4748 eval $cacheid=no
4749 fi
4750 rm -f core conftest.err conftest.$ac_objext \
4751 conftest$ac_exeext conftest.$ac_ext
4752 fi
4753
4754
4755 CFLAGS="$xorg_testset_save_CFLAGS"
4756
4757 eval supported=\$$cacheid
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4759 $as_echo "$supported" >&6; }
4760 if test "$supported" = "yes" ; then
4761 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4762 found="yes"
4763 fi
4764 fi
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780 xorg_testset_save_CFLAGS="$CFLAGS"
4781
4782 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4785 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4786 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4787 $as_echo_n "(cached) " >&6
4788 else
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4791 int i;
4792 _ACEOF
4793 if ac_fn_c_try_compile "$LINENO"; then :
4794 xorg_cv_cc_flag_unknown_warning_option=yes
4795 else
4796 xorg_cv_cc_flag_unknown_warning_option=no
4797 fi
4798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799 fi
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4801 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4802 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4803 CFLAGS="$xorg_testset_save_CFLAGS"
4804 fi
4805
4806 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4809 fi
4810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4812 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4813 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4814 $as_echo_n "(cached) " >&6
4815 else
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4818 int i;
4819 _ACEOF
4820 if ac_fn_c_try_compile "$LINENO"; then :
4821 xorg_cv_cc_flag_unused_command_line_argument=yes
4822 else
4823 xorg_cv_cc_flag_unused_command_line_argument=no
4824 fi
4825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4826 fi
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4828 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4830 CFLAGS="$xorg_testset_save_CFLAGS"
4831 fi
4832
4833 found="no"
4834
4835 if test $found = "no" ; then
4836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4838 fi
4839
4840 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4842 fi
4843
4844 CFLAGS="$CFLAGS -Wpointer-arith"
4845
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4847 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4848 cacheid=xorg_cv_cc_flag__Wpointer_arith
4849 if eval \${$cacheid+:} false; then :
4850 $as_echo_n "(cached) " >&6
4851 else
4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h. */
4854 int i;
4855 int
4856 main ()
4857 {
4858
4859 ;
4860 return 0;
4861 }
4862 _ACEOF
4863 if ac_fn_c_try_link "$LINENO"; then :
4864 eval $cacheid=yes
4865 else
4866 eval $cacheid=no
4867 fi
4868 rm -f core conftest.err conftest.$ac_objext \
4869 conftest$ac_exeext conftest.$ac_ext
4870 fi
4871
4872
4873 CFLAGS="$xorg_testset_save_CFLAGS"
4874
4875 eval supported=\$$cacheid
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4877 $as_echo "$supported" >&6; }
4878 if test "$supported" = "yes" ; then
4879 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4880 found="yes"
4881 fi
4882 fi
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898 xorg_testset_save_CFLAGS="$CFLAGS"
4899
4900 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4903 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4904 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4905 $as_echo_n "(cached) " >&6
4906 else
4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h. */
4909 int i;
4910 _ACEOF
4911 if ac_fn_c_try_compile "$LINENO"; then :
4912 xorg_cv_cc_flag_unknown_warning_option=yes
4913 else
4914 xorg_cv_cc_flag_unknown_warning_option=no
4915 fi
4916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4917 fi
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4919 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4921 CFLAGS="$xorg_testset_save_CFLAGS"
4922 fi
4923
4924 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4927 fi
4928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4930 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4931 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h. */
4936 int i;
4937 _ACEOF
4938 if ac_fn_c_try_compile "$LINENO"; then :
4939 xorg_cv_cc_flag_unused_command_line_argument=yes
4940 else
4941 xorg_cv_cc_flag_unused_command_line_argument=no
4942 fi
4943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4944 fi
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4946 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4947 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4948 CFLAGS="$xorg_testset_save_CFLAGS"
4949 fi
4950
4951 found="no"
4952
4953 if test $found = "no" ; then
4954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4956 fi
4957
4958 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4960 fi
4961
4962 CFLAGS="$CFLAGS -Wmissing-declarations"
4963
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4965 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4966 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4967 if eval \${$cacheid+:} false; then :
4968 $as_echo_n "(cached) " >&6
4969 else
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4972 int i;
4973 int
4974 main ()
4975 {
4976
4977 ;
4978 return 0;
4979 }
4980 _ACEOF
4981 if ac_fn_c_try_link "$LINENO"; then :
4982 eval $cacheid=yes
4983 else
4984 eval $cacheid=no
4985 fi
4986 rm -f core conftest.err conftest.$ac_objext \
4987 conftest$ac_exeext conftest.$ac_ext
4988 fi
4989
4990
4991 CFLAGS="$xorg_testset_save_CFLAGS"
4992
4993 eval supported=\$$cacheid
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4995 $as_echo "$supported" >&6; }
4996 if test "$supported" = "yes" ; then
4997 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4998 found="yes"
4999 fi
5000 fi
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016 xorg_testset_save_CFLAGS="$CFLAGS"
5017
5018 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5021 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5022 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5023 $as_echo_n "(cached) " >&6
5024 else
5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026 /* end confdefs.h. */
5027 int i;
5028 _ACEOF
5029 if ac_fn_c_try_compile "$LINENO"; then :
5030 xorg_cv_cc_flag_unknown_warning_option=yes
5031 else
5032 xorg_cv_cc_flag_unknown_warning_option=no
5033 fi
5034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035 fi
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5037 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5039 CFLAGS="$xorg_testset_save_CFLAGS"
5040 fi
5041
5042 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5045 fi
5046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5048 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5049 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h. */
5054 int i;
5055 _ACEOF
5056 if ac_fn_c_try_compile "$LINENO"; then :
5057 xorg_cv_cc_flag_unused_command_line_argument=yes
5058 else
5059 xorg_cv_cc_flag_unused_command_line_argument=no
5060 fi
5061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062 fi
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5064 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5066 CFLAGS="$xorg_testset_save_CFLAGS"
5067 fi
5068
5069 found="no"
5070
5071 if test $found = "no" ; then
5072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5074 fi
5075
5076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5078 fi
5079
5080 CFLAGS="$CFLAGS -Wformat=2"
5081
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5083 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5084 cacheid=xorg_cv_cc_flag__Wformat_2
5085 if eval \${$cacheid+:} false; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h. */
5090 int i;
5091 int
5092 main ()
5093 {
5094
5095 ;
5096 return 0;
5097 }
5098 _ACEOF
5099 if ac_fn_c_try_link "$LINENO"; then :
5100 eval $cacheid=yes
5101 else
5102 eval $cacheid=no
5103 fi
5104 rm -f core conftest.err conftest.$ac_objext \
5105 conftest$ac_exeext conftest.$ac_ext
5106 fi
5107
5108
5109 CFLAGS="$xorg_testset_save_CFLAGS"
5110
5111 eval supported=\$$cacheid
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5113 $as_echo "$supported" >&6; }
5114 if test "$supported" = "yes" ; then
5115 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5116 found="yes"
5117 fi
5118 fi
5119
5120 if test $found = "no" ; then
5121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5123 fi
5124
5125 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5127 fi
5128
5129 CFLAGS="$CFLAGS -Wformat"
5130
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5132 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5133 cacheid=xorg_cv_cc_flag__Wformat
5134 if eval \${$cacheid+:} false; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5139 int i;
5140 int
5141 main ()
5142 {
5143
5144 ;
5145 return 0;
5146 }
5147 _ACEOF
5148 if ac_fn_c_try_link "$LINENO"; then :
5149 eval $cacheid=yes
5150 else
5151 eval $cacheid=no
5152 fi
5153 rm -f core conftest.err conftest.$ac_objext \
5154 conftest$ac_exeext conftest.$ac_ext
5155 fi
5156
5157
5158 CFLAGS="$xorg_testset_save_CFLAGS"
5159
5160 eval supported=\$$cacheid
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5162 $as_echo "$supported" >&6; }
5163 if test "$supported" = "yes" ; then
5164 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5165 found="yes"
5166 fi
5167 fi
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185 xorg_testset_save_CFLAGS="$CFLAGS"
5186
5187 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5190 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5191 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5192 $as_echo_n "(cached) " >&6
5193 else
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5196 int i;
5197 _ACEOF
5198 if ac_fn_c_try_compile "$LINENO"; then :
5199 xorg_cv_cc_flag_unknown_warning_option=yes
5200 else
5201 xorg_cv_cc_flag_unknown_warning_option=no
5202 fi
5203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5204 fi
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5206 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5208 CFLAGS="$xorg_testset_save_CFLAGS"
5209 fi
5210
5211 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5214 fi
5215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5217 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5218 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5223 int i;
5224 _ACEOF
5225 if ac_fn_c_try_compile "$LINENO"; then :
5226 xorg_cv_cc_flag_unused_command_line_argument=yes
5227 else
5228 xorg_cv_cc_flag_unused_command_line_argument=no
5229 fi
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5231 fi
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5233 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5235 CFLAGS="$xorg_testset_save_CFLAGS"
5236 fi
5237
5238 found="no"
5239
5240 if test $found = "no" ; then
5241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5243 fi
5244
5245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5247 fi
5248
5249 CFLAGS="$CFLAGS -Wstrict-prototypes"
5250
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5252 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5253 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5254 if eval \${$cacheid+:} false; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5259 int i;
5260 int
5261 main ()
5262 {
5263
5264 ;
5265 return 0;
5266 }
5267 _ACEOF
5268 if ac_fn_c_try_link "$LINENO"; then :
5269 eval $cacheid=yes
5270 else
5271 eval $cacheid=no
5272 fi
5273 rm -f core conftest.err conftest.$ac_objext \
5274 conftest$ac_exeext conftest.$ac_ext
5275 fi
5276
5277
5278 CFLAGS="$xorg_testset_save_CFLAGS"
5279
5280 eval supported=\$$cacheid
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5282 $as_echo "$supported" >&6; }
5283 if test "$supported" = "yes" ; then
5284 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5285 found="yes"
5286 fi
5287 fi
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303 xorg_testset_save_CFLAGS="$CFLAGS"
5304
5305 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5308 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5309 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h. */
5314 int i;
5315 _ACEOF
5316 if ac_fn_c_try_compile "$LINENO"; then :
5317 xorg_cv_cc_flag_unknown_warning_option=yes
5318 else
5319 xorg_cv_cc_flag_unknown_warning_option=no
5320 fi
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322 fi
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5324 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5326 CFLAGS="$xorg_testset_save_CFLAGS"
5327 fi
5328
5329 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5332 fi
5333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5335 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5336 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5341 int i;
5342 _ACEOF
5343 if ac_fn_c_try_compile "$LINENO"; then :
5344 xorg_cv_cc_flag_unused_command_line_argument=yes
5345 else
5346 xorg_cv_cc_flag_unused_command_line_argument=no
5347 fi
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349 fi
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5351 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5353 CFLAGS="$xorg_testset_save_CFLAGS"
5354 fi
5355
5356 found="no"
5357
5358 if test $found = "no" ; then
5359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5361 fi
5362
5363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5365 fi
5366
5367 CFLAGS="$CFLAGS -Wmissing-prototypes"
5368
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5370 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5371 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5372 if eval \${$cacheid+:} false; then :
5373 $as_echo_n "(cached) " >&6
5374 else
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5377 int i;
5378 int
5379 main ()
5380 {
5381
5382 ;
5383 return 0;
5384 }
5385 _ACEOF
5386 if ac_fn_c_try_link "$LINENO"; then :
5387 eval $cacheid=yes
5388 else
5389 eval $cacheid=no
5390 fi
5391 rm -f core conftest.err conftest.$ac_objext \
5392 conftest$ac_exeext conftest.$ac_ext
5393 fi
5394
5395
5396 CFLAGS="$xorg_testset_save_CFLAGS"
5397
5398 eval supported=\$$cacheid
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5400 $as_echo "$supported" >&6; }
5401 if test "$supported" = "yes" ; then
5402 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5403 found="yes"
5404 fi
5405 fi
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421 xorg_testset_save_CFLAGS="$CFLAGS"
5422
5423 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5426 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5427 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5428 $as_echo_n "(cached) " >&6
5429 else
5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h. */
5432 int i;
5433 _ACEOF
5434 if ac_fn_c_try_compile "$LINENO"; then :
5435 xorg_cv_cc_flag_unknown_warning_option=yes
5436 else
5437 xorg_cv_cc_flag_unknown_warning_option=no
5438 fi
5439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440 fi
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5442 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5444 CFLAGS="$xorg_testset_save_CFLAGS"
5445 fi
5446
5447 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5450 fi
5451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5453 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5454 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h. */
5459 int i;
5460 _ACEOF
5461 if ac_fn_c_try_compile "$LINENO"; then :
5462 xorg_cv_cc_flag_unused_command_line_argument=yes
5463 else
5464 xorg_cv_cc_flag_unused_command_line_argument=no
5465 fi
5466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467 fi
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5469 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5470 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5471 CFLAGS="$xorg_testset_save_CFLAGS"
5472 fi
5473
5474 found="no"
5475
5476 if test $found = "no" ; then
5477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5479 fi
5480
5481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5483 fi
5484
5485 CFLAGS="$CFLAGS -Wnested-externs"
5486
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5488 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5489 cacheid=xorg_cv_cc_flag__Wnested_externs
5490 if eval \${$cacheid+:} false; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5495 int i;
5496 int
5497 main ()
5498 {
5499
5500 ;
5501 return 0;
5502 }
5503 _ACEOF
5504 if ac_fn_c_try_link "$LINENO"; then :
5505 eval $cacheid=yes
5506 else
5507 eval $cacheid=no
5508 fi
5509 rm -f core conftest.err conftest.$ac_objext \
5510 conftest$ac_exeext conftest.$ac_ext
5511 fi
5512
5513
5514 CFLAGS="$xorg_testset_save_CFLAGS"
5515
5516 eval supported=\$$cacheid
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5518 $as_echo "$supported" >&6; }
5519 if test "$supported" = "yes" ; then
5520 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5521 found="yes"
5522 fi
5523 fi
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539 xorg_testset_save_CFLAGS="$CFLAGS"
5540
5541 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5544 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5545 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5546 $as_echo_n "(cached) " >&6
5547 else
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549 /* end confdefs.h. */
5550 int i;
5551 _ACEOF
5552 if ac_fn_c_try_compile "$LINENO"; then :
5553 xorg_cv_cc_flag_unknown_warning_option=yes
5554 else
5555 xorg_cv_cc_flag_unknown_warning_option=no
5556 fi
5557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5558 fi
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5560 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5562 CFLAGS="$xorg_testset_save_CFLAGS"
5563 fi
5564
5565 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5568 fi
5569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5571 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5572 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5577 int i;
5578 _ACEOF
5579 if ac_fn_c_try_compile "$LINENO"; then :
5580 xorg_cv_cc_flag_unused_command_line_argument=yes
5581 else
5582 xorg_cv_cc_flag_unused_command_line_argument=no
5583 fi
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585 fi
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5587 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5589 CFLAGS="$xorg_testset_save_CFLAGS"
5590 fi
5591
5592 found="no"
5593
5594 if test $found = "no" ; then
5595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5597 fi
5598
5599 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5601 fi
5602
5603 CFLAGS="$CFLAGS -Wbad-function-cast"
5604
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5606 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5607 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5608 if eval \${$cacheid+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5613 int i;
5614 int
5615 main ()
5616 {
5617
5618 ;
5619 return 0;
5620 }
5621 _ACEOF
5622 if ac_fn_c_try_link "$LINENO"; then :
5623 eval $cacheid=yes
5624 else
5625 eval $cacheid=no
5626 fi
5627 rm -f core conftest.err conftest.$ac_objext \
5628 conftest$ac_exeext conftest.$ac_ext
5629 fi
5630
5631
5632 CFLAGS="$xorg_testset_save_CFLAGS"
5633
5634 eval supported=\$$cacheid
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5636 $as_echo "$supported" >&6; }
5637 if test "$supported" = "yes" ; then
5638 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5639 found="yes"
5640 fi
5641 fi
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657 xorg_testset_save_CFLAGS="$CFLAGS"
5658
5659 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5662 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5663 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5664 $as_echo_n "(cached) " >&6
5665 else
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5668 int i;
5669 _ACEOF
5670 if ac_fn_c_try_compile "$LINENO"; then :
5671 xorg_cv_cc_flag_unknown_warning_option=yes
5672 else
5673 xorg_cv_cc_flag_unknown_warning_option=no
5674 fi
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676 fi
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5678 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5680 CFLAGS="$xorg_testset_save_CFLAGS"
5681 fi
5682
5683 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5686 fi
5687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5689 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5690 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5691 $as_echo_n "(cached) " >&6
5692 else
5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694 /* end confdefs.h. */
5695 int i;
5696 _ACEOF
5697 if ac_fn_c_try_compile "$LINENO"; then :
5698 xorg_cv_cc_flag_unused_command_line_argument=yes
5699 else
5700 xorg_cv_cc_flag_unused_command_line_argument=no
5701 fi
5702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703 fi
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5705 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5707 CFLAGS="$xorg_testset_save_CFLAGS"
5708 fi
5709
5710 found="no"
5711
5712 if test $found = "no" ; then
5713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5715 fi
5716
5717 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5719 fi
5720
5721 CFLAGS="$CFLAGS -Wold-style-definition"
5722
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5724 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5725 cacheid=xorg_cv_cc_flag__Wold_style_definition
5726 if eval \${$cacheid+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731 int i;
5732 int
5733 main ()
5734 {
5735
5736 ;
5737 return 0;
5738 }
5739 _ACEOF
5740 if ac_fn_c_try_link "$LINENO"; then :
5741 eval $cacheid=yes
5742 else
5743 eval $cacheid=no
5744 fi
5745 rm -f core conftest.err conftest.$ac_objext \
5746 conftest$ac_exeext conftest.$ac_ext
5747 fi
5748
5749
5750 CFLAGS="$xorg_testset_save_CFLAGS"
5751
5752 eval supported=\$$cacheid
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5754 $as_echo "$supported" >&6; }
5755 if test "$supported" = "yes" ; then
5756 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5757 found="yes"
5758 fi
5759 fi
5760
5761 if test $found = "no" ; then
5762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5764 fi
5765
5766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5768 fi
5769
5770 CFLAGS="$CFLAGS -fd"
5771
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5773 $as_echo_n "checking if $CC supports -fd... " >&6; }
5774 cacheid=xorg_cv_cc_flag__fd
5775 if eval \${$cacheid+:} false; then :
5776 $as_echo_n "(cached) " >&6
5777 else
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780 int i;
5781 int
5782 main ()
5783 {
5784
5785 ;
5786 return 0;
5787 }
5788 _ACEOF
5789 if ac_fn_c_try_link "$LINENO"; then :
5790 eval $cacheid=yes
5791 else
5792 eval $cacheid=no
5793 fi
5794 rm -f core conftest.err conftest.$ac_objext \
5795 conftest$ac_exeext conftest.$ac_ext
5796 fi
5797
5798
5799 CFLAGS="$xorg_testset_save_CFLAGS"
5800
5801 eval supported=\$$cacheid
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5803 $as_echo "$supported" >&6; }
5804 if test "$supported" = "yes" ; then
5805 BASE_CFLAGS="$BASE_CFLAGS -fd"
5806 found="yes"
5807 fi
5808 fi
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824 xorg_testset_save_CFLAGS="$CFLAGS"
5825
5826 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5829 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5830 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5835 int i;
5836 _ACEOF
5837 if ac_fn_c_try_compile "$LINENO"; then :
5838 xorg_cv_cc_flag_unknown_warning_option=yes
5839 else
5840 xorg_cv_cc_flag_unknown_warning_option=no
5841 fi
5842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843 fi
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5845 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5846 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5847 CFLAGS="$xorg_testset_save_CFLAGS"
5848 fi
5849
5850 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5853 fi
5854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5856 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5857 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5862 int i;
5863 _ACEOF
5864 if ac_fn_c_try_compile "$LINENO"; then :
5865 xorg_cv_cc_flag_unused_command_line_argument=yes
5866 else
5867 xorg_cv_cc_flag_unused_command_line_argument=no
5868 fi
5869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870 fi
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5872 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5874 CFLAGS="$xorg_testset_save_CFLAGS"
5875 fi
5876
5877 found="no"
5878
5879 if test $found = "no" ; then
5880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5882 fi
5883
5884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5886 fi
5887
5888 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5889
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5891 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5892 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5893 if eval \${$cacheid+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5898 int i;
5899 int
5900 main ()
5901 {
5902
5903 ;
5904 return 0;
5905 }
5906 _ACEOF
5907 if ac_fn_c_try_link "$LINENO"; then :
5908 eval $cacheid=yes
5909 else
5910 eval $cacheid=no
5911 fi
5912 rm -f core conftest.err conftest.$ac_objext \
5913 conftest$ac_exeext conftest.$ac_ext
5914 fi
5915
5916
5917 CFLAGS="$xorg_testset_save_CFLAGS"
5918
5919 eval supported=\$$cacheid
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5921 $as_echo "$supported" >&6; }
5922 if test "$supported" = "yes" ; then
5923 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5924 found="yes"
5925 fi
5926 fi
5927
5928
5929
5930
5931
5932 # This chunk adds additional warnings that could catch undesired effects.
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946 xorg_testset_save_CFLAGS="$CFLAGS"
5947
5948 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5951 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5952 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5957 int i;
5958 _ACEOF
5959 if ac_fn_c_try_compile "$LINENO"; then :
5960 xorg_cv_cc_flag_unknown_warning_option=yes
5961 else
5962 xorg_cv_cc_flag_unknown_warning_option=no
5963 fi
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965 fi
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5967 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5969 CFLAGS="$xorg_testset_save_CFLAGS"
5970 fi
5971
5972 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5975 fi
5976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5978 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5979 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
5988 else
5989 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
5994 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5995 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5996 CFLAGS="$xorg_testset_save_CFLAGS"
5997 fi
5998
5999 found="no"
6000
6001 if test $found = "no" ; then
6002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6004 fi
6005
6006 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6008 fi
6009
6010 CFLAGS="$CFLAGS -Wunused"
6011
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6013 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6014 cacheid=xorg_cv_cc_flag__Wunused
6015 if eval \${$cacheid+:} false; then :
6016 $as_echo_n "(cached) " >&6
6017 else
6018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019 /* end confdefs.h. */
6020 int i;
6021 int
6022 main ()
6023 {
6024
6025 ;
6026 return 0;
6027 }
6028 _ACEOF
6029 if ac_fn_c_try_link "$LINENO"; then :
6030 eval $cacheid=yes
6031 else
6032 eval $cacheid=no
6033 fi
6034 rm -f core conftest.err conftest.$ac_objext \
6035 conftest$ac_exeext conftest.$ac_ext
6036 fi
6037
6038
6039 CFLAGS="$xorg_testset_save_CFLAGS"
6040
6041 eval supported=\$$cacheid
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6043 $as_echo "$supported" >&6; }
6044 if test "$supported" = "yes" ; then
6045 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6046 found="yes"
6047 fi
6048 fi
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064 xorg_testset_save_CFLAGS="$CFLAGS"
6065
6066 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6069 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6070 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6075 int i;
6076 _ACEOF
6077 if ac_fn_c_try_compile "$LINENO"; then :
6078 xorg_cv_cc_flag_unknown_warning_option=yes
6079 else
6080 xorg_cv_cc_flag_unknown_warning_option=no
6081 fi
6082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6083 fi
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6085 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6087 CFLAGS="$xorg_testset_save_CFLAGS"
6088 fi
6089
6090 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6093 fi
6094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6096 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6097 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6098 $as_echo_n "(cached) " >&6
6099 else
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6102 int i;
6103 _ACEOF
6104 if ac_fn_c_try_compile "$LINENO"; then :
6105 xorg_cv_cc_flag_unused_command_line_argument=yes
6106 else
6107 xorg_cv_cc_flag_unused_command_line_argument=no
6108 fi
6109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6110 fi
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6112 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6114 CFLAGS="$xorg_testset_save_CFLAGS"
6115 fi
6116
6117 found="no"
6118
6119 if test $found = "no" ; then
6120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6122 fi
6123
6124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6126 fi
6127
6128 CFLAGS="$CFLAGS -Wuninitialized"
6129
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6131 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6132 cacheid=xorg_cv_cc_flag__Wuninitialized
6133 if eval \${$cacheid+:} false; then :
6134 $as_echo_n "(cached) " >&6
6135 else
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6138 int i;
6139 int
6140 main ()
6141 {
6142
6143 ;
6144 return 0;
6145 }
6146 _ACEOF
6147 if ac_fn_c_try_link "$LINENO"; then :
6148 eval $cacheid=yes
6149 else
6150 eval $cacheid=no
6151 fi
6152 rm -f core conftest.err conftest.$ac_objext \
6153 conftest$ac_exeext conftest.$ac_ext
6154 fi
6155
6156
6157 CFLAGS="$xorg_testset_save_CFLAGS"
6158
6159 eval supported=\$$cacheid
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6161 $as_echo "$supported" >&6; }
6162 if test "$supported" = "yes" ; then
6163 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6164 found="yes"
6165 fi
6166 fi
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182 xorg_testset_save_CFLAGS="$CFLAGS"
6183
6184 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6187 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6188 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 int i;
6194 _ACEOF
6195 if ac_fn_c_try_compile "$LINENO"; then :
6196 xorg_cv_cc_flag_unknown_warning_option=yes
6197 else
6198 xorg_cv_cc_flag_unknown_warning_option=no
6199 fi
6200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6201 fi
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6203 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6205 CFLAGS="$xorg_testset_save_CFLAGS"
6206 fi
6207
6208 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6211 fi
6212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6214 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6215 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6216 $as_echo_n "(cached) " >&6
6217 else
6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6220 int i;
6221 _ACEOF
6222 if ac_fn_c_try_compile "$LINENO"; then :
6223 xorg_cv_cc_flag_unused_command_line_argument=yes
6224 else
6225 xorg_cv_cc_flag_unused_command_line_argument=no
6226 fi
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228 fi
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6230 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6232 CFLAGS="$xorg_testset_save_CFLAGS"
6233 fi
6234
6235 found="no"
6236
6237 if test $found = "no" ; then
6238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6240 fi
6241
6242 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6244 fi
6245
6246 CFLAGS="$CFLAGS -Wshadow"
6247
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6249 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6250 cacheid=xorg_cv_cc_flag__Wshadow
6251 if eval \${$cacheid+:} false; then :
6252 $as_echo_n "(cached) " >&6
6253 else
6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h. */
6256 int i;
6257 int
6258 main ()
6259 {
6260
6261 ;
6262 return 0;
6263 }
6264 _ACEOF
6265 if ac_fn_c_try_link "$LINENO"; then :
6266 eval $cacheid=yes
6267 else
6268 eval $cacheid=no
6269 fi
6270 rm -f core conftest.err conftest.$ac_objext \
6271 conftest$ac_exeext conftest.$ac_ext
6272 fi
6273
6274
6275 CFLAGS="$xorg_testset_save_CFLAGS"
6276
6277 eval supported=\$$cacheid
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6279 $as_echo "$supported" >&6; }
6280 if test "$supported" = "yes" ; then
6281 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6282 found="yes"
6283 fi
6284 fi
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300 xorg_testset_save_CFLAGS="$CFLAGS"
6301
6302 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6305 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6306 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6307 $as_echo_n "(cached) " >&6
6308 else
6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6311 int i;
6312 _ACEOF
6313 if ac_fn_c_try_compile "$LINENO"; then :
6314 xorg_cv_cc_flag_unknown_warning_option=yes
6315 else
6316 xorg_cv_cc_flag_unknown_warning_option=no
6317 fi
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319 fi
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6321 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6323 CFLAGS="$xorg_testset_save_CFLAGS"
6324 fi
6325
6326 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6329 fi
6330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6332 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6333 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h. */
6338 int i;
6339 _ACEOF
6340 if ac_fn_c_try_compile "$LINENO"; then :
6341 xorg_cv_cc_flag_unused_command_line_argument=yes
6342 else
6343 xorg_cv_cc_flag_unused_command_line_argument=no
6344 fi
6345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346 fi
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6348 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6350 CFLAGS="$xorg_testset_save_CFLAGS"
6351 fi
6352
6353 found="no"
6354
6355 if test $found = "no" ; then
6356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6358 fi
6359
6360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6362 fi
6363
6364 CFLAGS="$CFLAGS -Wmissing-noreturn"
6365
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6367 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6368 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6369 if eval \${$cacheid+:} false; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6374 int i;
6375 int
6376 main ()
6377 {
6378
6379 ;
6380 return 0;
6381 }
6382 _ACEOF
6383 if ac_fn_c_try_link "$LINENO"; then :
6384 eval $cacheid=yes
6385 else
6386 eval $cacheid=no
6387 fi
6388 rm -f core conftest.err conftest.$ac_objext \
6389 conftest$ac_exeext conftest.$ac_ext
6390 fi
6391
6392
6393 CFLAGS="$xorg_testset_save_CFLAGS"
6394
6395 eval supported=\$$cacheid
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6397 $as_echo "$supported" >&6; }
6398 if test "$supported" = "yes" ; then
6399 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6400 found="yes"
6401 fi
6402 fi
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418 xorg_testset_save_CFLAGS="$CFLAGS"
6419
6420 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6423 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6424 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6425 $as_echo_n "(cached) " >&6
6426 else
6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428 /* end confdefs.h. */
6429 int i;
6430 _ACEOF
6431 if ac_fn_c_try_compile "$LINENO"; then :
6432 xorg_cv_cc_flag_unknown_warning_option=yes
6433 else
6434 xorg_cv_cc_flag_unknown_warning_option=no
6435 fi
6436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437 fi
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6439 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6441 CFLAGS="$xorg_testset_save_CFLAGS"
6442 fi
6443
6444 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6447 fi
6448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6450 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6451 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6456 int i;
6457 _ACEOF
6458 if ac_fn_c_try_compile "$LINENO"; then :
6459 xorg_cv_cc_flag_unused_command_line_argument=yes
6460 else
6461 xorg_cv_cc_flag_unused_command_line_argument=no
6462 fi
6463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6464 fi
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6466 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6468 CFLAGS="$xorg_testset_save_CFLAGS"
6469 fi
6470
6471 found="no"
6472
6473 if test $found = "no" ; then
6474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6476 fi
6477
6478 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6480 fi
6481
6482 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6483
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6485 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6486 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6487 if eval \${$cacheid+:} false; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6492 int i;
6493 int
6494 main ()
6495 {
6496
6497 ;
6498 return 0;
6499 }
6500 _ACEOF
6501 if ac_fn_c_try_link "$LINENO"; then :
6502 eval $cacheid=yes
6503 else
6504 eval $cacheid=no
6505 fi
6506 rm -f core conftest.err conftest.$ac_objext \
6507 conftest$ac_exeext conftest.$ac_ext
6508 fi
6509
6510
6511 CFLAGS="$xorg_testset_save_CFLAGS"
6512
6513 eval supported=\$$cacheid
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6515 $as_echo "$supported" >&6; }
6516 if test "$supported" = "yes" ; then
6517 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6518 found="yes"
6519 fi
6520 fi
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536 xorg_testset_save_CFLAGS="$CFLAGS"
6537
6538 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6541 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6542 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6547 int i;
6548 _ACEOF
6549 if ac_fn_c_try_compile "$LINENO"; then :
6550 xorg_cv_cc_flag_unknown_warning_option=yes
6551 else
6552 xorg_cv_cc_flag_unknown_warning_option=no
6553 fi
6554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555 fi
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6557 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6559 CFLAGS="$xorg_testset_save_CFLAGS"
6560 fi
6561
6562 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6565 fi
6566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6568 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6569 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574 int i;
6575 _ACEOF
6576 if ac_fn_c_try_compile "$LINENO"; then :
6577 xorg_cv_cc_flag_unused_command_line_argument=yes
6578 else
6579 xorg_cv_cc_flag_unused_command_line_argument=no
6580 fi
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 fi
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6584 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6586 CFLAGS="$xorg_testset_save_CFLAGS"
6587 fi
6588
6589 found="no"
6590
6591 if test $found = "no" ; then
6592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594 fi
6595
6596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6598 fi
6599
6600 CFLAGS="$CFLAGS -Wredundant-decls"
6601
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6603 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6604 cacheid=xorg_cv_cc_flag__Wredundant_decls
6605 if eval \${$cacheid+:} false; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6610 int i;
6611 int
6612 main ()
6613 {
6614
6615 ;
6616 return 0;
6617 }
6618 _ACEOF
6619 if ac_fn_c_try_link "$LINENO"; then :
6620 eval $cacheid=yes
6621 else
6622 eval $cacheid=no
6623 fi
6624 rm -f core conftest.err conftest.$ac_objext \
6625 conftest$ac_exeext conftest.$ac_ext
6626 fi
6627
6628
6629 CFLAGS="$xorg_testset_save_CFLAGS"
6630
6631 eval supported=\$$cacheid
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6633 $as_echo "$supported" >&6; }
6634 if test "$supported" = "yes" ; then
6635 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6636 found="yes"
6637 fi
6638 fi
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654 xorg_testset_save_CFLAGS="$CFLAGS"
6655
6656 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6659 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6660 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h. */
6665 int i;
6666 _ACEOF
6667 if ac_fn_c_try_compile "$LINENO"; then :
6668 xorg_cv_cc_flag_unknown_warning_option=yes
6669 else
6670 xorg_cv_cc_flag_unknown_warning_option=no
6671 fi
6672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673 fi
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6675 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6677 CFLAGS="$xorg_testset_save_CFLAGS"
6678 fi
6679
6680 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6683 fi
6684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6686 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6687 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6688 $as_echo_n "(cached) " >&6
6689 else
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6692 int i;
6693 _ACEOF
6694 if ac_fn_c_try_compile "$LINENO"; then :
6695 xorg_cv_cc_flag_unused_command_line_argument=yes
6696 else
6697 xorg_cv_cc_flag_unused_command_line_argument=no
6698 fi
6699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700 fi
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6702 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6704 CFLAGS="$xorg_testset_save_CFLAGS"
6705 fi
6706
6707 found="no"
6708
6709 if test $found = "no" ; then
6710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6712 fi
6713
6714 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6716 fi
6717
6718 CFLAGS="$CFLAGS -Wlogical-op"
6719
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6721 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6722 cacheid=xorg_cv_cc_flag__Wlogical_op
6723 if eval \${$cacheid+:} false; then :
6724 $as_echo_n "(cached) " >&6
6725 else
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6728 int i;
6729 int
6730 main ()
6731 {
6732
6733 ;
6734 return 0;
6735 }
6736 _ACEOF
6737 if ac_fn_c_try_link "$LINENO"; then :
6738 eval $cacheid=yes
6739 else
6740 eval $cacheid=no
6741 fi
6742 rm -f core conftest.err conftest.$ac_objext \
6743 conftest$ac_exeext conftest.$ac_ext
6744 fi
6745
6746
6747 CFLAGS="$xorg_testset_save_CFLAGS"
6748
6749 eval supported=\$$cacheid
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6751 $as_echo "$supported" >&6; }
6752 if test "$supported" = "yes" ; then
6753 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6754 found="yes"
6755 fi
6756 fi
6757
6758
6759
6760 # These are currently disabled because they are noisy. They will be enabled
6761 # in the future once the codebase is sufficiently modernized to silence
6762 # them. For now, I don't want them to drown out the other warnings.
6763 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6764 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6765 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6766
6767 # Turn some warnings into errors, so we don't accidently get successful builds
6768 # when there are problems that should be fixed.
6769
6770 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784 xorg_testset_save_CFLAGS="$CFLAGS"
6785
6786 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6789 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6790 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6791 $as_echo_n "(cached) " >&6
6792 else
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6795 int i;
6796 _ACEOF
6797 if ac_fn_c_try_compile "$LINENO"; then :
6798 xorg_cv_cc_flag_unknown_warning_option=yes
6799 else
6800 xorg_cv_cc_flag_unknown_warning_option=no
6801 fi
6802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803 fi
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6805 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6806 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6807 CFLAGS="$xorg_testset_save_CFLAGS"
6808 fi
6809
6810 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6813 fi
6814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6816 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6817 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6822 int i;
6823 _ACEOF
6824 if ac_fn_c_try_compile "$LINENO"; then :
6825 xorg_cv_cc_flag_unused_command_line_argument=yes
6826 else
6827 xorg_cv_cc_flag_unused_command_line_argument=no
6828 fi
6829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6830 fi
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6832 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6833 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6834 CFLAGS="$xorg_testset_save_CFLAGS"
6835 fi
6836
6837 found="no"
6838
6839 if test $found = "no" ; then
6840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6842 fi
6843
6844 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6846 fi
6847
6848 CFLAGS="$CFLAGS -Werror=implicit"
6849
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6851 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6852 cacheid=xorg_cv_cc_flag__Werror_implicit
6853 if eval \${$cacheid+:} false; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h. */
6858 int i;
6859 int
6860 main ()
6861 {
6862
6863 ;
6864 return 0;
6865 }
6866 _ACEOF
6867 if ac_fn_c_try_link "$LINENO"; then :
6868 eval $cacheid=yes
6869 else
6870 eval $cacheid=no
6871 fi
6872 rm -f core conftest.err conftest.$ac_objext \
6873 conftest$ac_exeext conftest.$ac_ext
6874 fi
6875
6876
6877 CFLAGS="$xorg_testset_save_CFLAGS"
6878
6879 eval supported=\$$cacheid
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6881 $as_echo "$supported" >&6; }
6882 if test "$supported" = "yes" ; then
6883 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6884 found="yes"
6885 fi
6886 fi
6887
6888 if test $found = "no" ; then
6889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6891 fi
6892
6893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6895 fi
6896
6897 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6898
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6900 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6901 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6902 if eval \${$cacheid+:} false; then :
6903 $as_echo_n "(cached) " >&6
6904 else
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h. */
6907 int i;
6908 int
6909 main ()
6910 {
6911
6912 ;
6913 return 0;
6914 }
6915 _ACEOF
6916 if ac_fn_c_try_link "$LINENO"; then :
6917 eval $cacheid=yes
6918 else
6919 eval $cacheid=no
6920 fi
6921 rm -f core conftest.err conftest.$ac_objext \
6922 conftest$ac_exeext conftest.$ac_ext
6923 fi
6924
6925
6926 CFLAGS="$xorg_testset_save_CFLAGS"
6927
6928 eval supported=\$$cacheid
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6930 $as_echo "$supported" >&6; }
6931 if test "$supported" = "yes" ; then
6932 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6933 found="yes"
6934 fi
6935 fi
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951 xorg_testset_save_CFLAGS="$CFLAGS"
6952
6953 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6956 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6957 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6962 int i;
6963 _ACEOF
6964 if ac_fn_c_try_compile "$LINENO"; then :
6965 xorg_cv_cc_flag_unknown_warning_option=yes
6966 else
6967 xorg_cv_cc_flag_unknown_warning_option=no
6968 fi
6969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6970 fi
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6972 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6974 CFLAGS="$xorg_testset_save_CFLAGS"
6975 fi
6976
6977 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6980 fi
6981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6983 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6984 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6985 $as_echo_n "(cached) " >&6
6986 else
6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
6989 int i;
6990 _ACEOF
6991 if ac_fn_c_try_compile "$LINENO"; then :
6992 xorg_cv_cc_flag_unused_command_line_argument=yes
6993 else
6994 xorg_cv_cc_flag_unused_command_line_argument=no
6995 fi
6996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6997 fi
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6999 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7001 CFLAGS="$xorg_testset_save_CFLAGS"
7002 fi
7003
7004 found="no"
7005
7006 if test $found = "no" ; then
7007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7009 fi
7010
7011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7013 fi
7014
7015 CFLAGS="$CFLAGS -Werror=nonnull"
7016
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7018 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7019 cacheid=xorg_cv_cc_flag__Werror_nonnull
7020 if eval \${$cacheid+:} false; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7025 int i;
7026 int
7027 main ()
7028 {
7029
7030 ;
7031 return 0;
7032 }
7033 _ACEOF
7034 if ac_fn_c_try_link "$LINENO"; then :
7035 eval $cacheid=yes
7036 else
7037 eval $cacheid=no
7038 fi
7039 rm -f core conftest.err conftest.$ac_objext \
7040 conftest$ac_exeext conftest.$ac_ext
7041 fi
7042
7043
7044 CFLAGS="$xorg_testset_save_CFLAGS"
7045
7046 eval supported=\$$cacheid
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7048 $as_echo "$supported" >&6; }
7049 if test "$supported" = "yes" ; then
7050 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7051 found="yes"
7052 fi
7053 fi
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069 xorg_testset_save_CFLAGS="$CFLAGS"
7070
7071 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7074 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7075 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7076 $as_echo_n "(cached) " >&6
7077 else
7078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079 /* end confdefs.h. */
7080 int i;
7081 _ACEOF
7082 if ac_fn_c_try_compile "$LINENO"; then :
7083 xorg_cv_cc_flag_unknown_warning_option=yes
7084 else
7085 xorg_cv_cc_flag_unknown_warning_option=no
7086 fi
7087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7088 fi
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7090 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7092 CFLAGS="$xorg_testset_save_CFLAGS"
7093 fi
7094
7095 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7098 fi
7099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7101 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7102 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106 /* end confdefs.h. */
7107 int i;
7108 _ACEOF
7109 if ac_fn_c_try_compile "$LINENO"; then :
7110 xorg_cv_cc_flag_unused_command_line_argument=yes
7111 else
7112 xorg_cv_cc_flag_unused_command_line_argument=no
7113 fi
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115 fi
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7117 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7118 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7119 CFLAGS="$xorg_testset_save_CFLAGS"
7120 fi
7121
7122 found="no"
7123
7124 if test $found = "no" ; then
7125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7127 fi
7128
7129 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7131 fi
7132
7133 CFLAGS="$CFLAGS -Werror=init-self"
7134
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7136 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7137 cacheid=xorg_cv_cc_flag__Werror_init_self
7138 if eval \${$cacheid+:} false; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7143 int i;
7144 int
7145 main ()
7146 {
7147
7148 ;
7149 return 0;
7150 }
7151 _ACEOF
7152 if ac_fn_c_try_link "$LINENO"; then :
7153 eval $cacheid=yes
7154 else
7155 eval $cacheid=no
7156 fi
7157 rm -f core conftest.err conftest.$ac_objext \
7158 conftest$ac_exeext conftest.$ac_ext
7159 fi
7160
7161
7162 CFLAGS="$xorg_testset_save_CFLAGS"
7163
7164 eval supported=\$$cacheid
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7166 $as_echo "$supported" >&6; }
7167 if test "$supported" = "yes" ; then
7168 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7169 found="yes"
7170 fi
7171 fi
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187 xorg_testset_save_CFLAGS="$CFLAGS"
7188
7189 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7192 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7193 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7198 int i;
7199 _ACEOF
7200 if ac_fn_c_try_compile "$LINENO"; then :
7201 xorg_cv_cc_flag_unknown_warning_option=yes
7202 else
7203 xorg_cv_cc_flag_unknown_warning_option=no
7204 fi
7205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206 fi
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7208 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7210 CFLAGS="$xorg_testset_save_CFLAGS"
7211 fi
7212
7213 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7216 fi
7217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7219 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7220 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7221 $as_echo_n "(cached) " >&6
7222 else
7223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224 /* end confdefs.h. */
7225 int i;
7226 _ACEOF
7227 if ac_fn_c_try_compile "$LINENO"; then :
7228 xorg_cv_cc_flag_unused_command_line_argument=yes
7229 else
7230 xorg_cv_cc_flag_unused_command_line_argument=no
7231 fi
7232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7233 fi
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7235 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7237 CFLAGS="$xorg_testset_save_CFLAGS"
7238 fi
7239
7240 found="no"
7241
7242 if test $found = "no" ; then
7243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7245 fi
7246
7247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7249 fi
7250
7251 CFLAGS="$CFLAGS -Werror=main"
7252
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7254 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7255 cacheid=xorg_cv_cc_flag__Werror_main
7256 if eval \${$cacheid+:} false; then :
7257 $as_echo_n "(cached) " >&6
7258 else
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7261 int i;
7262 int
7263 main ()
7264 {
7265
7266 ;
7267 return 0;
7268 }
7269 _ACEOF
7270 if ac_fn_c_try_link "$LINENO"; then :
7271 eval $cacheid=yes
7272 else
7273 eval $cacheid=no
7274 fi
7275 rm -f core conftest.err conftest.$ac_objext \
7276 conftest$ac_exeext conftest.$ac_ext
7277 fi
7278
7279
7280 CFLAGS="$xorg_testset_save_CFLAGS"
7281
7282 eval supported=\$$cacheid
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7284 $as_echo "$supported" >&6; }
7285 if test "$supported" = "yes" ; then
7286 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7287 found="yes"
7288 fi
7289 fi
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305 xorg_testset_save_CFLAGS="$CFLAGS"
7306
7307 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7310 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7311 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7312 $as_echo_n "(cached) " >&6
7313 else
7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7316 int i;
7317 _ACEOF
7318 if ac_fn_c_try_compile "$LINENO"; then :
7319 xorg_cv_cc_flag_unknown_warning_option=yes
7320 else
7321 xorg_cv_cc_flag_unknown_warning_option=no
7322 fi
7323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7324 fi
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7326 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7328 CFLAGS="$xorg_testset_save_CFLAGS"
7329 fi
7330
7331 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7334 fi
7335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7337 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7338 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7343 int i;
7344 _ACEOF
7345 if ac_fn_c_try_compile "$LINENO"; then :
7346 xorg_cv_cc_flag_unused_command_line_argument=yes
7347 else
7348 xorg_cv_cc_flag_unused_command_line_argument=no
7349 fi
7350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351 fi
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7353 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7355 CFLAGS="$xorg_testset_save_CFLAGS"
7356 fi
7357
7358 found="no"
7359
7360 if test $found = "no" ; then
7361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7363 fi
7364
7365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7367 fi
7368
7369 CFLAGS="$CFLAGS -Werror=missing-braces"
7370
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7372 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7373 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7374 if eval \${$cacheid+:} false; then :
7375 $as_echo_n "(cached) " >&6
7376 else
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7379 int i;
7380 int
7381 main ()
7382 {
7383
7384 ;
7385 return 0;
7386 }
7387 _ACEOF
7388 if ac_fn_c_try_link "$LINENO"; then :
7389 eval $cacheid=yes
7390 else
7391 eval $cacheid=no
7392 fi
7393 rm -f core conftest.err conftest.$ac_objext \
7394 conftest$ac_exeext conftest.$ac_ext
7395 fi
7396
7397
7398 CFLAGS="$xorg_testset_save_CFLAGS"
7399
7400 eval supported=\$$cacheid
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7402 $as_echo "$supported" >&6; }
7403 if test "$supported" = "yes" ; then
7404 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7405 found="yes"
7406 fi
7407 fi
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423 xorg_testset_save_CFLAGS="$CFLAGS"
7424
7425 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7428 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7429 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7430 $as_echo_n "(cached) " >&6
7431 else
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7434 int i;
7435 _ACEOF
7436 if ac_fn_c_try_compile "$LINENO"; then :
7437 xorg_cv_cc_flag_unknown_warning_option=yes
7438 else
7439 xorg_cv_cc_flag_unknown_warning_option=no
7440 fi
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 fi
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7444 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7446 CFLAGS="$xorg_testset_save_CFLAGS"
7447 fi
7448
7449 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7452 fi
7453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7455 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7456 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7457 $as_echo_n "(cached) " >&6
7458 else
7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7461 int i;
7462 _ACEOF
7463 if ac_fn_c_try_compile "$LINENO"; then :
7464 xorg_cv_cc_flag_unused_command_line_argument=yes
7465 else
7466 xorg_cv_cc_flag_unused_command_line_argument=no
7467 fi
7468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469 fi
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7471 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7473 CFLAGS="$xorg_testset_save_CFLAGS"
7474 fi
7475
7476 found="no"
7477
7478 if test $found = "no" ; then
7479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7481 fi
7482
7483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7485 fi
7486
7487 CFLAGS="$CFLAGS -Werror=sequence-point"
7488
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7490 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7491 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7492 if eval \${$cacheid+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7497 int i;
7498 int
7499 main ()
7500 {
7501
7502 ;
7503 return 0;
7504 }
7505 _ACEOF
7506 if ac_fn_c_try_link "$LINENO"; then :
7507 eval $cacheid=yes
7508 else
7509 eval $cacheid=no
7510 fi
7511 rm -f core conftest.err conftest.$ac_objext \
7512 conftest$ac_exeext conftest.$ac_ext
7513 fi
7514
7515
7516 CFLAGS="$xorg_testset_save_CFLAGS"
7517
7518 eval supported=\$$cacheid
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7520 $as_echo "$supported" >&6; }
7521 if test "$supported" = "yes" ; then
7522 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7523 found="yes"
7524 fi
7525 fi
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541 xorg_testset_save_CFLAGS="$CFLAGS"
7542
7543 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7546 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7547 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7548 $as_echo_n "(cached) " >&6
7549 else
7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h. */
7552 int i;
7553 _ACEOF
7554 if ac_fn_c_try_compile "$LINENO"; then :
7555 xorg_cv_cc_flag_unknown_warning_option=yes
7556 else
7557 xorg_cv_cc_flag_unknown_warning_option=no
7558 fi
7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7560 fi
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7562 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7563 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7564 CFLAGS="$xorg_testset_save_CFLAGS"
7565 fi
7566
7567 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7570 fi
7571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7573 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7574 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h. */
7579 int i;
7580 _ACEOF
7581 if ac_fn_c_try_compile "$LINENO"; then :
7582 xorg_cv_cc_flag_unused_command_line_argument=yes
7583 else
7584 xorg_cv_cc_flag_unused_command_line_argument=no
7585 fi
7586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587 fi
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7589 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7591 CFLAGS="$xorg_testset_save_CFLAGS"
7592 fi
7593
7594 found="no"
7595
7596 if test $found = "no" ; then
7597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7599 fi
7600
7601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7603 fi
7604
7605 CFLAGS="$CFLAGS -Werror=return-type"
7606
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7608 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7609 cacheid=xorg_cv_cc_flag__Werror_return_type
7610 if eval \${$cacheid+:} false; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614 /* end confdefs.h. */
7615 int i;
7616 int
7617 main ()
7618 {
7619
7620 ;
7621 return 0;
7622 }
7623 _ACEOF
7624 if ac_fn_c_try_link "$LINENO"; then :
7625 eval $cacheid=yes
7626 else
7627 eval $cacheid=no
7628 fi
7629 rm -f core conftest.err conftest.$ac_objext \
7630 conftest$ac_exeext conftest.$ac_ext
7631 fi
7632
7633
7634 CFLAGS="$xorg_testset_save_CFLAGS"
7635
7636 eval supported=\$$cacheid
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7638 $as_echo "$supported" >&6; }
7639 if test "$supported" = "yes" ; then
7640 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7641 found="yes"
7642 fi
7643 fi
7644
7645 if test $found = "no" ; then
7646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7648 fi
7649
7650 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7652 fi
7653
7654 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7655
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7657 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7658 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7659 if eval \${$cacheid+:} false; then :
7660 $as_echo_n "(cached) " >&6
7661 else
7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h. */
7664 int i;
7665 int
7666 main ()
7667 {
7668
7669 ;
7670 return 0;
7671 }
7672 _ACEOF
7673 if ac_fn_c_try_link "$LINENO"; then :
7674 eval $cacheid=yes
7675 else
7676 eval $cacheid=no
7677 fi
7678 rm -f core conftest.err conftest.$ac_objext \
7679 conftest$ac_exeext conftest.$ac_ext
7680 fi
7681
7682
7683 CFLAGS="$xorg_testset_save_CFLAGS"
7684
7685 eval supported=\$$cacheid
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7687 $as_echo "$supported" >&6; }
7688 if test "$supported" = "yes" ; then
7689 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7690 found="yes"
7691 fi
7692 fi
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708 xorg_testset_save_CFLAGS="$CFLAGS"
7709
7710 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7713 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7714 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7715 $as_echo_n "(cached) " >&6
7716 else
7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h. */
7719 int i;
7720 _ACEOF
7721 if ac_fn_c_try_compile "$LINENO"; then :
7722 xorg_cv_cc_flag_unknown_warning_option=yes
7723 else
7724 xorg_cv_cc_flag_unknown_warning_option=no
7725 fi
7726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7727 fi
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7729 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7730 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7731 CFLAGS="$xorg_testset_save_CFLAGS"
7732 fi
7733
7734 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7737 fi
7738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7740 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7741 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7742 $as_echo_n "(cached) " >&6
7743 else
7744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745 /* end confdefs.h. */
7746 int i;
7747 _ACEOF
7748 if ac_fn_c_try_compile "$LINENO"; then :
7749 xorg_cv_cc_flag_unused_command_line_argument=yes
7750 else
7751 xorg_cv_cc_flag_unused_command_line_argument=no
7752 fi
7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7754 fi
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7756 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7757 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7758 CFLAGS="$xorg_testset_save_CFLAGS"
7759 fi
7760
7761 found="no"
7762
7763 if test $found = "no" ; then
7764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7766 fi
7767
7768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7770 fi
7771
7772 CFLAGS="$CFLAGS -Werror=trigraphs"
7773
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7775 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7776 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7777 if eval \${$cacheid+:} false; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781 /* end confdefs.h. */
7782 int i;
7783 int
7784 main ()
7785 {
7786
7787 ;
7788 return 0;
7789 }
7790 _ACEOF
7791 if ac_fn_c_try_link "$LINENO"; then :
7792 eval $cacheid=yes
7793 else
7794 eval $cacheid=no
7795 fi
7796 rm -f core conftest.err conftest.$ac_objext \
7797 conftest$ac_exeext conftest.$ac_ext
7798 fi
7799
7800
7801 CFLAGS="$xorg_testset_save_CFLAGS"
7802
7803 eval supported=\$$cacheid
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7805 $as_echo "$supported" >&6; }
7806 if test "$supported" = "yes" ; then
7807 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7808 found="yes"
7809 fi
7810 fi
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826 xorg_testset_save_CFLAGS="$CFLAGS"
7827
7828 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7831 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7832 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h. */
7837 int i;
7838 _ACEOF
7839 if ac_fn_c_try_compile "$LINENO"; then :
7840 xorg_cv_cc_flag_unknown_warning_option=yes
7841 else
7842 xorg_cv_cc_flag_unknown_warning_option=no
7843 fi
7844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7845 fi
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7847 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7849 CFLAGS="$xorg_testset_save_CFLAGS"
7850 fi
7851
7852 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7855 fi
7856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7858 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7859 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7860 $as_echo_n "(cached) " >&6
7861 else
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h. */
7864 int i;
7865 _ACEOF
7866 if ac_fn_c_try_compile "$LINENO"; then :
7867 xorg_cv_cc_flag_unused_command_line_argument=yes
7868 else
7869 xorg_cv_cc_flag_unused_command_line_argument=no
7870 fi
7871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872 fi
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7874 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7875 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7876 CFLAGS="$xorg_testset_save_CFLAGS"
7877 fi
7878
7879 found="no"
7880
7881 if test $found = "no" ; then
7882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7884 fi
7885
7886 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7888 fi
7889
7890 CFLAGS="$CFLAGS -Werror=array-bounds"
7891
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7893 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7894 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7895 if eval \${$cacheid+:} false; then :
7896 $as_echo_n "(cached) " >&6
7897 else
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7900 int i;
7901 int
7902 main ()
7903 {
7904
7905 ;
7906 return 0;
7907 }
7908 _ACEOF
7909 if ac_fn_c_try_link "$LINENO"; then :
7910 eval $cacheid=yes
7911 else
7912 eval $cacheid=no
7913 fi
7914 rm -f core conftest.err conftest.$ac_objext \
7915 conftest$ac_exeext conftest.$ac_ext
7916 fi
7917
7918
7919 CFLAGS="$xorg_testset_save_CFLAGS"
7920
7921 eval supported=\$$cacheid
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7923 $as_echo "$supported" >&6; }
7924 if test "$supported" = "yes" ; then
7925 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7926 found="yes"
7927 fi
7928 fi
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944 xorg_testset_save_CFLAGS="$CFLAGS"
7945
7946 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7949 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7950 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7951 $as_echo_n "(cached) " >&6
7952 else
7953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h. */
7955 int i;
7956 _ACEOF
7957 if ac_fn_c_try_compile "$LINENO"; then :
7958 xorg_cv_cc_flag_unknown_warning_option=yes
7959 else
7960 xorg_cv_cc_flag_unknown_warning_option=no
7961 fi
7962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963 fi
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7965 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7966 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7967 CFLAGS="$xorg_testset_save_CFLAGS"
7968 fi
7969
7970 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7973 fi
7974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7976 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7977 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7982 int i;
7983 _ACEOF
7984 if ac_fn_c_try_compile "$LINENO"; then :
7985 xorg_cv_cc_flag_unused_command_line_argument=yes
7986 else
7987 xorg_cv_cc_flag_unused_command_line_argument=no
7988 fi
7989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7990 fi
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7992 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7994 CFLAGS="$xorg_testset_save_CFLAGS"
7995 fi
7996
7997 found="no"
7998
7999 if test $found = "no" ; then
8000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8002 fi
8003
8004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8006 fi
8007
8008 CFLAGS="$CFLAGS -Werror=write-strings"
8009
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8011 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8012 cacheid=xorg_cv_cc_flag__Werror_write_strings
8013 if eval \${$cacheid+:} false; then :
8014 $as_echo_n "(cached) " >&6
8015 else
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017 /* end confdefs.h. */
8018 int i;
8019 int
8020 main ()
8021 {
8022
8023 ;
8024 return 0;
8025 }
8026 _ACEOF
8027 if ac_fn_c_try_link "$LINENO"; then :
8028 eval $cacheid=yes
8029 else
8030 eval $cacheid=no
8031 fi
8032 rm -f core conftest.err conftest.$ac_objext \
8033 conftest$ac_exeext conftest.$ac_ext
8034 fi
8035
8036
8037 CFLAGS="$xorg_testset_save_CFLAGS"
8038
8039 eval supported=\$$cacheid
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8041 $as_echo "$supported" >&6; }
8042 if test "$supported" = "yes" ; then
8043 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8044 found="yes"
8045 fi
8046 fi
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062 xorg_testset_save_CFLAGS="$CFLAGS"
8063
8064 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8067 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8068 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8069 $as_echo_n "(cached) " >&6
8070 else
8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8073 int i;
8074 _ACEOF
8075 if ac_fn_c_try_compile "$LINENO"; then :
8076 xorg_cv_cc_flag_unknown_warning_option=yes
8077 else
8078 xorg_cv_cc_flag_unknown_warning_option=no
8079 fi
8080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8081 fi
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8083 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8085 CFLAGS="$xorg_testset_save_CFLAGS"
8086 fi
8087
8088 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8091 fi
8092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8094 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8095 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8096 $as_echo_n "(cached) " >&6
8097 else
8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h. */
8100 int i;
8101 _ACEOF
8102 if ac_fn_c_try_compile "$LINENO"; then :
8103 xorg_cv_cc_flag_unused_command_line_argument=yes
8104 else
8105 xorg_cv_cc_flag_unused_command_line_argument=no
8106 fi
8107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8108 fi
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8110 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8111 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8112 CFLAGS="$xorg_testset_save_CFLAGS"
8113 fi
8114
8115 found="no"
8116
8117 if test $found = "no" ; then
8118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8120 fi
8121
8122 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8124 fi
8125
8126 CFLAGS="$CFLAGS -Werror=address"
8127
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8129 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8130 cacheid=xorg_cv_cc_flag__Werror_address
8131 if eval \${$cacheid+:} false; then :
8132 $as_echo_n "(cached) " >&6
8133 else
8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8136 int i;
8137 int
8138 main ()
8139 {
8140
8141 ;
8142 return 0;
8143 }
8144 _ACEOF
8145 if ac_fn_c_try_link "$LINENO"; then :
8146 eval $cacheid=yes
8147 else
8148 eval $cacheid=no
8149 fi
8150 rm -f core conftest.err conftest.$ac_objext \
8151 conftest$ac_exeext conftest.$ac_ext
8152 fi
8153
8154
8155 CFLAGS="$xorg_testset_save_CFLAGS"
8156
8157 eval supported=\$$cacheid
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8159 $as_echo "$supported" >&6; }
8160 if test "$supported" = "yes" ; then
8161 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8162 found="yes"
8163 fi
8164 fi
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180 xorg_testset_save_CFLAGS="$CFLAGS"
8181
8182 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8185 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8186 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8187 $as_echo_n "(cached) " >&6
8188 else
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8191 int i;
8192 _ACEOF
8193 if ac_fn_c_try_compile "$LINENO"; then :
8194 xorg_cv_cc_flag_unknown_warning_option=yes
8195 else
8196 xorg_cv_cc_flag_unknown_warning_option=no
8197 fi
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199 fi
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8201 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8203 CFLAGS="$xorg_testset_save_CFLAGS"
8204 fi
8205
8206 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8209 fi
8210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8212 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8213 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218 int i;
8219 _ACEOF
8220 if ac_fn_c_try_compile "$LINENO"; then :
8221 xorg_cv_cc_flag_unused_command_line_argument=yes
8222 else
8223 xorg_cv_cc_flag_unused_command_line_argument=no
8224 fi
8225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8226 fi
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8228 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8230 CFLAGS="$xorg_testset_save_CFLAGS"
8231 fi
8232
8233 found="no"
8234
8235 if test $found = "no" ; then
8236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8238 fi
8239
8240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8242 fi
8243
8244 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8245
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8247 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8248 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8249 if eval \${$cacheid+:} false; then :
8250 $as_echo_n "(cached) " >&6
8251 else
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253 /* end confdefs.h. */
8254 int i;
8255 int
8256 main ()
8257 {
8258
8259 ;
8260 return 0;
8261 }
8262 _ACEOF
8263 if ac_fn_c_try_link "$LINENO"; then :
8264 eval $cacheid=yes
8265 else
8266 eval $cacheid=no
8267 fi
8268 rm -f core conftest.err conftest.$ac_objext \
8269 conftest$ac_exeext conftest.$ac_ext
8270 fi
8271
8272
8273 CFLAGS="$xorg_testset_save_CFLAGS"
8274
8275 eval supported=\$$cacheid
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8277 $as_echo "$supported" >&6; }
8278 if test "$supported" = "yes" ; then
8279 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8280 found="yes"
8281 fi
8282 fi
8283
8284 if test $found = "no" ; then
8285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8287 fi
8288
8289 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8291 fi
8292
8293 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8294
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8296 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8297 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8298 if eval \${$cacheid+:} false; then :
8299 $as_echo_n "(cached) " >&6
8300 else
8301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8303 int i;
8304 int
8305 main ()
8306 {
8307
8308 ;
8309 return 0;
8310 }
8311 _ACEOF
8312 if ac_fn_c_try_link "$LINENO"; then :
8313 eval $cacheid=yes
8314 else
8315 eval $cacheid=no
8316 fi
8317 rm -f core conftest.err conftest.$ac_objext \
8318 conftest$ac_exeext conftest.$ac_ext
8319 fi
8320
8321
8322 CFLAGS="$xorg_testset_save_CFLAGS"
8323
8324 eval supported=\$$cacheid
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8326 $as_echo "$supported" >&6; }
8327 if test "$supported" = "yes" ; then
8328 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8329 found="yes"
8330 fi
8331 fi
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347 xorg_testset_save_CFLAGS="$CFLAGS"
8348
8349 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8352 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8353 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h. */
8358 int i;
8359 _ACEOF
8360 if ac_fn_c_try_compile "$LINENO"; then :
8361 xorg_cv_cc_flag_unknown_warning_option=yes
8362 else
8363 xorg_cv_cc_flag_unknown_warning_option=no
8364 fi
8365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8366 fi
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8368 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8369 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8370 CFLAGS="$xorg_testset_save_CFLAGS"
8371 fi
8372
8373 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8376 fi
8377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8379 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8380 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8381 $as_echo_n "(cached) " >&6
8382 else
8383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h. */
8385 int i;
8386 _ACEOF
8387 if ac_fn_c_try_compile "$LINENO"; then :
8388 xorg_cv_cc_flag_unused_command_line_argument=yes
8389 else
8390 xorg_cv_cc_flag_unused_command_line_argument=no
8391 fi
8392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8393 fi
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8395 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8396 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8397 CFLAGS="$xorg_testset_save_CFLAGS"
8398 fi
8399
8400 found="no"
8401
8402 if test $found = "no" ; then
8403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8405 fi
8406
8407 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8409 fi
8410
8411 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8412
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8414 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8415 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8416 if eval \${$cacheid+:} false; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 /* end confdefs.h. */
8421 int i;
8422 int
8423 main ()
8424 {
8425
8426 ;
8427 return 0;
8428 }
8429 _ACEOF
8430 if ac_fn_c_try_link "$LINENO"; then :
8431 eval $cacheid=yes
8432 else
8433 eval $cacheid=no
8434 fi
8435 rm -f core conftest.err conftest.$ac_objext \
8436 conftest$ac_exeext conftest.$ac_ext
8437 fi
8438
8439
8440 CFLAGS="$xorg_testset_save_CFLAGS"
8441
8442 eval supported=\$$cacheid
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8444 $as_echo "$supported" >&6; }
8445 if test "$supported" = "yes" ; then
8446 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8447 found="yes"
8448 fi
8449 fi
8450
8451 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8452 else
8453 { $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
8454 $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;}
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468 xorg_testset_save_CFLAGS="$CFLAGS"
8469
8470 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8473 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8474 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8475 $as_echo_n "(cached) " >&6
8476 else
8477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8478 /* end confdefs.h. */
8479 int i;
8480 _ACEOF
8481 if ac_fn_c_try_compile "$LINENO"; then :
8482 xorg_cv_cc_flag_unknown_warning_option=yes
8483 else
8484 xorg_cv_cc_flag_unknown_warning_option=no
8485 fi
8486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8487 fi
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8489 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8491 CFLAGS="$xorg_testset_save_CFLAGS"
8492 fi
8493
8494 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8497 fi
8498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8500 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8501 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h. */
8506 int i;
8507 _ACEOF
8508 if ac_fn_c_try_compile "$LINENO"; then :
8509 xorg_cv_cc_flag_unused_command_line_argument=yes
8510 else
8511 xorg_cv_cc_flag_unused_command_line_argument=no
8512 fi
8513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8514 fi
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8516 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8517 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8518 CFLAGS="$xorg_testset_save_CFLAGS"
8519 fi
8520
8521 found="no"
8522
8523 if test $found = "no" ; then
8524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8526 fi
8527
8528 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8530 fi
8531
8532 CFLAGS="$CFLAGS -Wimplicit"
8533
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8535 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8536 cacheid=xorg_cv_cc_flag__Wimplicit
8537 if eval \${$cacheid+:} false; then :
8538 $as_echo_n "(cached) " >&6
8539 else
8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h. */
8542 int i;
8543 int
8544 main ()
8545 {
8546
8547 ;
8548 return 0;
8549 }
8550 _ACEOF
8551 if ac_fn_c_try_link "$LINENO"; then :
8552 eval $cacheid=yes
8553 else
8554 eval $cacheid=no
8555 fi
8556 rm -f core conftest.err conftest.$ac_objext \
8557 conftest$ac_exeext conftest.$ac_ext
8558 fi
8559
8560
8561 CFLAGS="$xorg_testset_save_CFLAGS"
8562
8563 eval supported=\$$cacheid
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8565 $as_echo "$supported" >&6; }
8566 if test "$supported" = "yes" ; then
8567 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8568 found="yes"
8569 fi
8570 fi
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586 xorg_testset_save_CFLAGS="$CFLAGS"
8587
8588 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8591 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8592 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8593 $as_echo_n "(cached) " >&6
8594 else
8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h. */
8597 int i;
8598 _ACEOF
8599 if ac_fn_c_try_compile "$LINENO"; then :
8600 xorg_cv_cc_flag_unknown_warning_option=yes
8601 else
8602 xorg_cv_cc_flag_unknown_warning_option=no
8603 fi
8604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8605 fi
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8607 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8608 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8609 CFLAGS="$xorg_testset_save_CFLAGS"
8610 fi
8611
8612 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8615 fi
8616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8618 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8619 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8620 $as_echo_n "(cached) " >&6
8621 else
8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8624 int i;
8625 _ACEOF
8626 if ac_fn_c_try_compile "$LINENO"; then :
8627 xorg_cv_cc_flag_unused_command_line_argument=yes
8628 else
8629 xorg_cv_cc_flag_unused_command_line_argument=no
8630 fi
8631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8632 fi
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8634 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8636 CFLAGS="$xorg_testset_save_CFLAGS"
8637 fi
8638
8639 found="no"
8640
8641 if test $found = "no" ; then
8642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8644 fi
8645
8646 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8648 fi
8649
8650 CFLAGS="$CFLAGS -Wnonnull"
8651
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8653 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8654 cacheid=xorg_cv_cc_flag__Wnonnull
8655 if eval \${$cacheid+:} false; then :
8656 $as_echo_n "(cached) " >&6
8657 else
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8660 int i;
8661 int
8662 main ()
8663 {
8664
8665 ;
8666 return 0;
8667 }
8668 _ACEOF
8669 if ac_fn_c_try_link "$LINENO"; then :
8670 eval $cacheid=yes
8671 else
8672 eval $cacheid=no
8673 fi
8674 rm -f core conftest.err conftest.$ac_objext \
8675 conftest$ac_exeext conftest.$ac_ext
8676 fi
8677
8678
8679 CFLAGS="$xorg_testset_save_CFLAGS"
8680
8681 eval supported=\$$cacheid
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8683 $as_echo "$supported" >&6; }
8684 if test "$supported" = "yes" ; then
8685 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8686 found="yes"
8687 fi
8688 fi
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704 xorg_testset_save_CFLAGS="$CFLAGS"
8705
8706 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8709 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8710 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8711 $as_echo_n "(cached) " >&6
8712 else
8713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8714 /* end confdefs.h. */
8715 int i;
8716 _ACEOF
8717 if ac_fn_c_try_compile "$LINENO"; then :
8718 xorg_cv_cc_flag_unknown_warning_option=yes
8719 else
8720 xorg_cv_cc_flag_unknown_warning_option=no
8721 fi
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 fi
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8725 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8727 CFLAGS="$xorg_testset_save_CFLAGS"
8728 fi
8729
8730 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8733 fi
8734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8736 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8737 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8738 $as_echo_n "(cached) " >&6
8739 else
8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741 /* end confdefs.h. */
8742 int i;
8743 _ACEOF
8744 if ac_fn_c_try_compile "$LINENO"; then :
8745 xorg_cv_cc_flag_unused_command_line_argument=yes
8746 else
8747 xorg_cv_cc_flag_unused_command_line_argument=no
8748 fi
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 fi
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8752 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8754 CFLAGS="$xorg_testset_save_CFLAGS"
8755 fi
8756
8757 found="no"
8758
8759 if test $found = "no" ; then
8760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8762 fi
8763
8764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8766 fi
8767
8768 CFLAGS="$CFLAGS -Winit-self"
8769
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8771 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8772 cacheid=xorg_cv_cc_flag__Winit_self
8773 if eval \${$cacheid+:} false; then :
8774 $as_echo_n "(cached) " >&6
8775 else
8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777 /* end confdefs.h. */
8778 int i;
8779 int
8780 main ()
8781 {
8782
8783 ;
8784 return 0;
8785 }
8786 _ACEOF
8787 if ac_fn_c_try_link "$LINENO"; then :
8788 eval $cacheid=yes
8789 else
8790 eval $cacheid=no
8791 fi
8792 rm -f core conftest.err conftest.$ac_objext \
8793 conftest$ac_exeext conftest.$ac_ext
8794 fi
8795
8796
8797 CFLAGS="$xorg_testset_save_CFLAGS"
8798
8799 eval supported=\$$cacheid
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8801 $as_echo "$supported" >&6; }
8802 if test "$supported" = "yes" ; then
8803 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8804 found="yes"
8805 fi
8806 fi
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822 xorg_testset_save_CFLAGS="$CFLAGS"
8823
8824 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8827 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8828 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8829 $as_echo_n "(cached) " >&6
8830 else
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h. */
8833 int i;
8834 _ACEOF
8835 if ac_fn_c_try_compile "$LINENO"; then :
8836 xorg_cv_cc_flag_unknown_warning_option=yes
8837 else
8838 xorg_cv_cc_flag_unknown_warning_option=no
8839 fi
8840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8841 fi
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8843 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8845 CFLAGS="$xorg_testset_save_CFLAGS"
8846 fi
8847
8848 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8851 fi
8852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8854 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8855 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8856 $as_echo_n "(cached) " >&6
8857 else
8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859 /* end confdefs.h. */
8860 int i;
8861 _ACEOF
8862 if ac_fn_c_try_compile "$LINENO"; then :
8863 xorg_cv_cc_flag_unused_command_line_argument=yes
8864 else
8865 xorg_cv_cc_flag_unused_command_line_argument=no
8866 fi
8867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868 fi
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8870 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8872 CFLAGS="$xorg_testset_save_CFLAGS"
8873 fi
8874
8875 found="no"
8876
8877 if test $found = "no" ; then
8878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8880 fi
8881
8882 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8884 fi
8885
8886 CFLAGS="$CFLAGS -Wmain"
8887
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8889 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8890 cacheid=xorg_cv_cc_flag__Wmain
8891 if eval \${$cacheid+:} false; then :
8892 $as_echo_n "(cached) " >&6
8893 else
8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895 /* end confdefs.h. */
8896 int i;
8897 int
8898 main ()
8899 {
8900
8901 ;
8902 return 0;
8903 }
8904 _ACEOF
8905 if ac_fn_c_try_link "$LINENO"; then :
8906 eval $cacheid=yes
8907 else
8908 eval $cacheid=no
8909 fi
8910 rm -f core conftest.err conftest.$ac_objext \
8911 conftest$ac_exeext conftest.$ac_ext
8912 fi
8913
8914
8915 CFLAGS="$xorg_testset_save_CFLAGS"
8916
8917 eval supported=\$$cacheid
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8919 $as_echo "$supported" >&6; }
8920 if test "$supported" = "yes" ; then
8921 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8922 found="yes"
8923 fi
8924 fi
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940 xorg_testset_save_CFLAGS="$CFLAGS"
8941
8942 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8945 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8946 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8947 $as_echo_n "(cached) " >&6
8948 else
8949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8950 /* end confdefs.h. */
8951 int i;
8952 _ACEOF
8953 if ac_fn_c_try_compile "$LINENO"; then :
8954 xorg_cv_cc_flag_unknown_warning_option=yes
8955 else
8956 xorg_cv_cc_flag_unknown_warning_option=no
8957 fi
8958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8959 fi
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8961 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8963 CFLAGS="$xorg_testset_save_CFLAGS"
8964 fi
8965
8966 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8969 fi
8970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8972 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8973 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8974 $as_echo_n "(cached) " >&6
8975 else
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8978 int i;
8979 _ACEOF
8980 if ac_fn_c_try_compile "$LINENO"; then :
8981 xorg_cv_cc_flag_unused_command_line_argument=yes
8982 else
8983 xorg_cv_cc_flag_unused_command_line_argument=no
8984 fi
8985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986 fi
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8988 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8990 CFLAGS="$xorg_testset_save_CFLAGS"
8991 fi
8992
8993 found="no"
8994
8995 if test $found = "no" ; then
8996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8998 fi
8999
9000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9002 fi
9003
9004 CFLAGS="$CFLAGS -Wmissing-braces"
9005
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9007 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9008 cacheid=xorg_cv_cc_flag__Wmissing_braces
9009 if eval \${$cacheid+:} false; then :
9010 $as_echo_n "(cached) " >&6
9011 else
9012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013 /* end confdefs.h. */
9014 int i;
9015 int
9016 main ()
9017 {
9018
9019 ;
9020 return 0;
9021 }
9022 _ACEOF
9023 if ac_fn_c_try_link "$LINENO"; then :
9024 eval $cacheid=yes
9025 else
9026 eval $cacheid=no
9027 fi
9028 rm -f core conftest.err conftest.$ac_objext \
9029 conftest$ac_exeext conftest.$ac_ext
9030 fi
9031
9032
9033 CFLAGS="$xorg_testset_save_CFLAGS"
9034
9035 eval supported=\$$cacheid
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9037 $as_echo "$supported" >&6; }
9038 if test "$supported" = "yes" ; then
9039 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9040 found="yes"
9041 fi
9042 fi
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058 xorg_testset_save_CFLAGS="$CFLAGS"
9059
9060 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9063 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9064 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9065 $as_echo_n "(cached) " >&6
9066 else
9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9069 int i;
9070 _ACEOF
9071 if ac_fn_c_try_compile "$LINENO"; then :
9072 xorg_cv_cc_flag_unknown_warning_option=yes
9073 else
9074 xorg_cv_cc_flag_unknown_warning_option=no
9075 fi
9076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9077 fi
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9079 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9081 CFLAGS="$xorg_testset_save_CFLAGS"
9082 fi
9083
9084 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9087 fi
9088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9090 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9091 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9092 $as_echo_n "(cached) " >&6
9093 else
9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095 /* end confdefs.h. */
9096 int i;
9097 _ACEOF
9098 if ac_fn_c_try_compile "$LINENO"; then :
9099 xorg_cv_cc_flag_unused_command_line_argument=yes
9100 else
9101 xorg_cv_cc_flag_unused_command_line_argument=no
9102 fi
9103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9104 fi
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9106 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9108 CFLAGS="$xorg_testset_save_CFLAGS"
9109 fi
9110
9111 found="no"
9112
9113 if test $found = "no" ; then
9114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9116 fi
9117
9118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9120 fi
9121
9122 CFLAGS="$CFLAGS -Wsequence-point"
9123
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9125 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9126 cacheid=xorg_cv_cc_flag__Wsequence_point
9127 if eval \${$cacheid+:} false; then :
9128 $as_echo_n "(cached) " >&6
9129 else
9130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131 /* end confdefs.h. */
9132 int i;
9133 int
9134 main ()
9135 {
9136
9137 ;
9138 return 0;
9139 }
9140 _ACEOF
9141 if ac_fn_c_try_link "$LINENO"; then :
9142 eval $cacheid=yes
9143 else
9144 eval $cacheid=no
9145 fi
9146 rm -f core conftest.err conftest.$ac_objext \
9147 conftest$ac_exeext conftest.$ac_ext
9148 fi
9149
9150
9151 CFLAGS="$xorg_testset_save_CFLAGS"
9152
9153 eval supported=\$$cacheid
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9155 $as_echo "$supported" >&6; }
9156 if test "$supported" = "yes" ; then
9157 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9158 found="yes"
9159 fi
9160 fi
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176 xorg_testset_save_CFLAGS="$CFLAGS"
9177
9178 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9181 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9182 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9183 $as_echo_n "(cached) " >&6
9184 else
9185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186 /* end confdefs.h. */
9187 int i;
9188 _ACEOF
9189 if ac_fn_c_try_compile "$LINENO"; then :
9190 xorg_cv_cc_flag_unknown_warning_option=yes
9191 else
9192 xorg_cv_cc_flag_unknown_warning_option=no
9193 fi
9194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9195 fi
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9197 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9199 CFLAGS="$xorg_testset_save_CFLAGS"
9200 fi
9201
9202 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9205 fi
9206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9208 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9209 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9210 $as_echo_n "(cached) " >&6
9211 else
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214 int i;
9215 _ACEOF
9216 if ac_fn_c_try_compile "$LINENO"; then :
9217 xorg_cv_cc_flag_unused_command_line_argument=yes
9218 else
9219 xorg_cv_cc_flag_unused_command_line_argument=no
9220 fi
9221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9222 fi
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9224 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9226 CFLAGS="$xorg_testset_save_CFLAGS"
9227 fi
9228
9229 found="no"
9230
9231 if test $found = "no" ; then
9232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9234 fi
9235
9236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9238 fi
9239
9240 CFLAGS="$CFLAGS -Wreturn-type"
9241
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9243 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9244 cacheid=xorg_cv_cc_flag__Wreturn_type
9245 if eval \${$cacheid+:} false; then :
9246 $as_echo_n "(cached) " >&6
9247 else
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9250 int i;
9251 int
9252 main ()
9253 {
9254
9255 ;
9256 return 0;
9257 }
9258 _ACEOF
9259 if ac_fn_c_try_link "$LINENO"; then :
9260 eval $cacheid=yes
9261 else
9262 eval $cacheid=no
9263 fi
9264 rm -f core conftest.err conftest.$ac_objext \
9265 conftest$ac_exeext conftest.$ac_ext
9266 fi
9267
9268
9269 CFLAGS="$xorg_testset_save_CFLAGS"
9270
9271 eval supported=\$$cacheid
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9273 $as_echo "$supported" >&6; }
9274 if test "$supported" = "yes" ; then
9275 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9276 found="yes"
9277 fi
9278 fi
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294 xorg_testset_save_CFLAGS="$CFLAGS"
9295
9296 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9299 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9300 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9301 $as_echo_n "(cached) " >&6
9302 else
9303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304 /* end confdefs.h. */
9305 int i;
9306 _ACEOF
9307 if ac_fn_c_try_compile "$LINENO"; then :
9308 xorg_cv_cc_flag_unknown_warning_option=yes
9309 else
9310 xorg_cv_cc_flag_unknown_warning_option=no
9311 fi
9312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9313 fi
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9315 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9317 CFLAGS="$xorg_testset_save_CFLAGS"
9318 fi
9319
9320 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9323 fi
9324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9326 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9327 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9328 $as_echo_n "(cached) " >&6
9329 else
9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331 /* end confdefs.h. */
9332 int i;
9333 _ACEOF
9334 if ac_fn_c_try_compile "$LINENO"; then :
9335 xorg_cv_cc_flag_unused_command_line_argument=yes
9336 else
9337 xorg_cv_cc_flag_unused_command_line_argument=no
9338 fi
9339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9340 fi
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9342 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9344 CFLAGS="$xorg_testset_save_CFLAGS"
9345 fi
9346
9347 found="no"
9348
9349 if test $found = "no" ; then
9350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9352 fi
9353
9354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9356 fi
9357
9358 CFLAGS="$CFLAGS -Wtrigraphs"
9359
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9361 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9362 cacheid=xorg_cv_cc_flag__Wtrigraphs
9363 if eval \${$cacheid+:} false; then :
9364 $as_echo_n "(cached) " >&6
9365 else
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368 int i;
9369 int
9370 main ()
9371 {
9372
9373 ;
9374 return 0;
9375 }
9376 _ACEOF
9377 if ac_fn_c_try_link "$LINENO"; then :
9378 eval $cacheid=yes
9379 else
9380 eval $cacheid=no
9381 fi
9382 rm -f core conftest.err conftest.$ac_objext \
9383 conftest$ac_exeext conftest.$ac_ext
9384 fi
9385
9386
9387 CFLAGS="$xorg_testset_save_CFLAGS"
9388
9389 eval supported=\$$cacheid
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9391 $as_echo "$supported" >&6; }
9392 if test "$supported" = "yes" ; then
9393 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9394 found="yes"
9395 fi
9396 fi
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412 xorg_testset_save_CFLAGS="$CFLAGS"
9413
9414 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9417 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9418 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9419 $as_echo_n "(cached) " >&6
9420 else
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h. */
9423 int i;
9424 _ACEOF
9425 if ac_fn_c_try_compile "$LINENO"; then :
9426 xorg_cv_cc_flag_unknown_warning_option=yes
9427 else
9428 xorg_cv_cc_flag_unknown_warning_option=no
9429 fi
9430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9431 fi
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9433 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9434 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9435 CFLAGS="$xorg_testset_save_CFLAGS"
9436 fi
9437
9438 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9441 fi
9442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9444 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9445 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9446 $as_echo_n "(cached) " >&6
9447 else
9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h. */
9450 int i;
9451 _ACEOF
9452 if ac_fn_c_try_compile "$LINENO"; then :
9453 xorg_cv_cc_flag_unused_command_line_argument=yes
9454 else
9455 xorg_cv_cc_flag_unused_command_line_argument=no
9456 fi
9457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9458 fi
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9460 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9462 CFLAGS="$xorg_testset_save_CFLAGS"
9463 fi
9464
9465 found="no"
9466
9467 if test $found = "no" ; then
9468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470 fi
9471
9472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9474 fi
9475
9476 CFLAGS="$CFLAGS -Warray-bounds"
9477
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9479 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9480 cacheid=xorg_cv_cc_flag__Warray_bounds
9481 if eval \${$cacheid+:} false; then :
9482 $as_echo_n "(cached) " >&6
9483 else
9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h. */
9486 int i;
9487 int
9488 main ()
9489 {
9490
9491 ;
9492 return 0;
9493 }
9494 _ACEOF
9495 if ac_fn_c_try_link "$LINENO"; then :
9496 eval $cacheid=yes
9497 else
9498 eval $cacheid=no
9499 fi
9500 rm -f core conftest.err conftest.$ac_objext \
9501 conftest$ac_exeext conftest.$ac_ext
9502 fi
9503
9504
9505 CFLAGS="$xorg_testset_save_CFLAGS"
9506
9507 eval supported=\$$cacheid
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9509 $as_echo "$supported" >&6; }
9510 if test "$supported" = "yes" ; then
9511 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9512 found="yes"
9513 fi
9514 fi
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530 xorg_testset_save_CFLAGS="$CFLAGS"
9531
9532 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9535 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9536 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9537 $as_echo_n "(cached) " >&6
9538 else
9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540 /* end confdefs.h. */
9541 int i;
9542 _ACEOF
9543 if ac_fn_c_try_compile "$LINENO"; then :
9544 xorg_cv_cc_flag_unknown_warning_option=yes
9545 else
9546 xorg_cv_cc_flag_unknown_warning_option=no
9547 fi
9548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9549 fi
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9551 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9553 CFLAGS="$xorg_testset_save_CFLAGS"
9554 fi
9555
9556 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9559 fi
9560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9562 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9563 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9564 $as_echo_n "(cached) " >&6
9565 else
9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h. */
9568 int i;
9569 _ACEOF
9570 if ac_fn_c_try_compile "$LINENO"; then :
9571 xorg_cv_cc_flag_unused_command_line_argument=yes
9572 else
9573 xorg_cv_cc_flag_unused_command_line_argument=no
9574 fi
9575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9576 fi
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9578 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9580 CFLAGS="$xorg_testset_save_CFLAGS"
9581 fi
9582
9583 found="no"
9584
9585 if test $found = "no" ; then
9586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9588 fi
9589
9590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9592 fi
9593
9594 CFLAGS="$CFLAGS -Wwrite-strings"
9595
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9597 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9598 cacheid=xorg_cv_cc_flag__Wwrite_strings
9599 if eval \${$cacheid+:} false; then :
9600 $as_echo_n "(cached) " >&6
9601 else
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9604 int i;
9605 int
9606 main ()
9607 {
9608
9609 ;
9610 return 0;
9611 }
9612 _ACEOF
9613 if ac_fn_c_try_link "$LINENO"; then :
9614 eval $cacheid=yes
9615 else
9616 eval $cacheid=no
9617 fi
9618 rm -f core conftest.err conftest.$ac_objext \
9619 conftest$ac_exeext conftest.$ac_ext
9620 fi
9621
9622
9623 CFLAGS="$xorg_testset_save_CFLAGS"
9624
9625 eval supported=\$$cacheid
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9627 $as_echo "$supported" >&6; }
9628 if test "$supported" = "yes" ; then
9629 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9630 found="yes"
9631 fi
9632 fi
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648 xorg_testset_save_CFLAGS="$CFLAGS"
9649
9650 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9653 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9654 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9655 $as_echo_n "(cached) " >&6
9656 else
9657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9658 /* end confdefs.h. */
9659 int i;
9660 _ACEOF
9661 if ac_fn_c_try_compile "$LINENO"; then :
9662 xorg_cv_cc_flag_unknown_warning_option=yes
9663 else
9664 xorg_cv_cc_flag_unknown_warning_option=no
9665 fi
9666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9667 fi
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9669 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9670 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9671 CFLAGS="$xorg_testset_save_CFLAGS"
9672 fi
9673
9674 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9677 fi
9678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9680 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9681 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9682 $as_echo_n "(cached) " >&6
9683 else
9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h. */
9686 int i;
9687 _ACEOF
9688 if ac_fn_c_try_compile "$LINENO"; then :
9689 xorg_cv_cc_flag_unused_command_line_argument=yes
9690 else
9691 xorg_cv_cc_flag_unused_command_line_argument=no
9692 fi
9693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9694 fi
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9696 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9697 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9698 CFLAGS="$xorg_testset_save_CFLAGS"
9699 fi
9700
9701 found="no"
9702
9703 if test $found = "no" ; then
9704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9706 fi
9707
9708 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9710 fi
9711
9712 CFLAGS="$CFLAGS -Waddress"
9713
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9715 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9716 cacheid=xorg_cv_cc_flag__Waddress
9717 if eval \${$cacheid+:} false; then :
9718 $as_echo_n "(cached) " >&6
9719 else
9720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721 /* end confdefs.h. */
9722 int i;
9723 int
9724 main ()
9725 {
9726
9727 ;
9728 return 0;
9729 }
9730 _ACEOF
9731 if ac_fn_c_try_link "$LINENO"; then :
9732 eval $cacheid=yes
9733 else
9734 eval $cacheid=no
9735 fi
9736 rm -f core conftest.err conftest.$ac_objext \
9737 conftest$ac_exeext conftest.$ac_ext
9738 fi
9739
9740
9741 CFLAGS="$xorg_testset_save_CFLAGS"
9742
9743 eval supported=\$$cacheid
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9745 $as_echo "$supported" >&6; }
9746 if test "$supported" = "yes" ; then
9747 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9748 found="yes"
9749 fi
9750 fi
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766 xorg_testset_save_CFLAGS="$CFLAGS"
9767
9768 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9771 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9772 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9773 $as_echo_n "(cached) " >&6
9774 else
9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776 /* end confdefs.h. */
9777 int i;
9778 _ACEOF
9779 if ac_fn_c_try_compile "$LINENO"; then :
9780 xorg_cv_cc_flag_unknown_warning_option=yes
9781 else
9782 xorg_cv_cc_flag_unknown_warning_option=no
9783 fi
9784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9785 fi
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9787 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9788 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9789 CFLAGS="$xorg_testset_save_CFLAGS"
9790 fi
9791
9792 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9795 fi
9796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9798 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9799 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9800 $as_echo_n "(cached) " >&6
9801 else
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9804 int i;
9805 _ACEOF
9806 if ac_fn_c_try_compile "$LINENO"; then :
9807 xorg_cv_cc_flag_unused_command_line_argument=yes
9808 else
9809 xorg_cv_cc_flag_unused_command_line_argument=no
9810 fi
9811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9812 fi
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9814 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9816 CFLAGS="$xorg_testset_save_CFLAGS"
9817 fi
9818
9819 found="no"
9820
9821 if test $found = "no" ; then
9822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9824 fi
9825
9826 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9828 fi
9829
9830 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9831
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9833 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9834 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9835 if eval \${$cacheid+:} false; then :
9836 $as_echo_n "(cached) " >&6
9837 else
9838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9839 /* end confdefs.h. */
9840 int i;
9841 int
9842 main ()
9843 {
9844
9845 ;
9846 return 0;
9847 }
9848 _ACEOF
9849 if ac_fn_c_try_link "$LINENO"; then :
9850 eval $cacheid=yes
9851 else
9852 eval $cacheid=no
9853 fi
9854 rm -f core conftest.err conftest.$ac_objext \
9855 conftest$ac_exeext conftest.$ac_ext
9856 fi
9857
9858
9859 CFLAGS="$xorg_testset_save_CFLAGS"
9860
9861 eval supported=\$$cacheid
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9863 $as_echo "$supported" >&6; }
9864 if test "$supported" = "yes" ; then
9865 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9866 found="yes"
9867 fi
9868 fi
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884 xorg_testset_save_CFLAGS="$CFLAGS"
9885
9886 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9889 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9890 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9891 $as_echo_n "(cached) " >&6
9892 else
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h. */
9895 int i;
9896 _ACEOF
9897 if ac_fn_c_try_compile "$LINENO"; then :
9898 xorg_cv_cc_flag_unknown_warning_option=yes
9899 else
9900 xorg_cv_cc_flag_unknown_warning_option=no
9901 fi
9902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9903 fi
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9905 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9907 CFLAGS="$xorg_testset_save_CFLAGS"
9908 fi
9909
9910 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9913 fi
9914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9916 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9917 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9918 $as_echo_n "(cached) " >&6
9919 else
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9922 int i;
9923 _ACEOF
9924 if ac_fn_c_try_compile "$LINENO"; then :
9925 xorg_cv_cc_flag_unused_command_line_argument=yes
9926 else
9927 xorg_cv_cc_flag_unused_command_line_argument=no
9928 fi
9929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9930 fi
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9932 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9934 CFLAGS="$xorg_testset_save_CFLAGS"
9935 fi
9936
9937 found="no"
9938
9939 if test $found = "no" ; then
9940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9942 fi
9943
9944 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9946 fi
9947
9948 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9949
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9951 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9952 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9953 if eval \${$cacheid+:} false; then :
9954 $as_echo_n "(cached) " >&6
9955 else
9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957 /* end confdefs.h. */
9958 int i;
9959 int
9960 main ()
9961 {
9962
9963 ;
9964 return 0;
9965 }
9966 _ACEOF
9967 if ac_fn_c_try_link "$LINENO"; then :
9968 eval $cacheid=yes
9969 else
9970 eval $cacheid=no
9971 fi
9972 rm -f core conftest.err conftest.$ac_objext \
9973 conftest$ac_exeext conftest.$ac_ext
9974 fi
9975
9976
9977 CFLAGS="$xorg_testset_save_CFLAGS"
9978
9979 eval supported=\$$cacheid
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9981 $as_echo "$supported" >&6; }
9982 if test "$supported" = "yes" ; then
9983 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9984 found="yes"
9985 fi
9986 fi
9987
9988
9989 fi
9990
9991
9992
9993
9994
9995
9996
9997 CWARNFLAGS="$BASE_CFLAGS"
9998 if test "x$GCC" = xyes ; then
9999 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10000 fi
10001
10002
10003
10004
10005
10006
10007
10008
10009 # Check whether --enable-strict-compilation was given.
10010 if test "${enable_strict_compilation+set}" = set; then :
10011 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10012 else
10013 STRICT_COMPILE=no
10014 fi
10015
10016
10017
10018
10019
10020
10021 STRICT_CFLAGS=""
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035 xorg_testset_save_CFLAGS="$CFLAGS"
10036
10037 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10040 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10041 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10042 $as_echo_n "(cached) " >&6
10043 else
10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h. */
10046 int i;
10047 _ACEOF
10048 if ac_fn_c_try_compile "$LINENO"; then :
10049 xorg_cv_cc_flag_unknown_warning_option=yes
10050 else
10051 xorg_cv_cc_flag_unknown_warning_option=no
10052 fi
10053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10054 fi
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10056 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10058 CFLAGS="$xorg_testset_save_CFLAGS"
10059 fi
10060
10061 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10064 fi
10065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10067 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10068 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10069 $as_echo_n "(cached) " >&6
10070 else
10071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072 /* end confdefs.h. */
10073 int i;
10074 _ACEOF
10075 if ac_fn_c_try_compile "$LINENO"; then :
10076 xorg_cv_cc_flag_unused_command_line_argument=yes
10077 else
10078 xorg_cv_cc_flag_unused_command_line_argument=no
10079 fi
10080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10081 fi
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10083 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10085 CFLAGS="$xorg_testset_save_CFLAGS"
10086 fi
10087
10088 found="no"
10089
10090 if test $found = "no" ; then
10091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10093 fi
10094
10095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10097 fi
10098
10099 CFLAGS="$CFLAGS -pedantic"
10100
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10102 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10103 cacheid=xorg_cv_cc_flag__pedantic
10104 if eval \${$cacheid+:} false; then :
10105 $as_echo_n "(cached) " >&6
10106 else
10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h. */
10109 int i;
10110 int
10111 main ()
10112 {
10113
10114 ;
10115 return 0;
10116 }
10117 _ACEOF
10118 if ac_fn_c_try_link "$LINENO"; then :
10119 eval $cacheid=yes
10120 else
10121 eval $cacheid=no
10122 fi
10123 rm -f core conftest.err conftest.$ac_objext \
10124 conftest$ac_exeext conftest.$ac_ext
10125 fi
10126
10127
10128 CFLAGS="$xorg_testset_save_CFLAGS"
10129
10130 eval supported=\$$cacheid
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10132 $as_echo "$supported" >&6; }
10133 if test "$supported" = "yes" ; then
10134 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10135 found="yes"
10136 fi
10137 fi
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153 xorg_testset_save_CFLAGS="$CFLAGS"
10154
10155 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10158 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10159 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10160 $as_echo_n "(cached) " >&6
10161 else
10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163 /* end confdefs.h. */
10164 int i;
10165 _ACEOF
10166 if ac_fn_c_try_compile "$LINENO"; then :
10167 xorg_cv_cc_flag_unknown_warning_option=yes
10168 else
10169 xorg_cv_cc_flag_unknown_warning_option=no
10170 fi
10171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10172 fi
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10174 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10176 CFLAGS="$xorg_testset_save_CFLAGS"
10177 fi
10178
10179 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10182 fi
10183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10185 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10186 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10187 $as_echo_n "(cached) " >&6
10188 else
10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190 /* end confdefs.h. */
10191 int i;
10192 _ACEOF
10193 if ac_fn_c_try_compile "$LINENO"; then :
10194 xorg_cv_cc_flag_unused_command_line_argument=yes
10195 else
10196 xorg_cv_cc_flag_unused_command_line_argument=no
10197 fi
10198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10199 fi
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10201 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10203 CFLAGS="$xorg_testset_save_CFLAGS"
10204 fi
10205
10206 found="no"
10207
10208 if test $found = "no" ; then
10209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10211 fi
10212
10213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10215 fi
10216
10217 CFLAGS="$CFLAGS -Werror"
10218
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10220 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10221 cacheid=xorg_cv_cc_flag__Werror
10222 if eval \${$cacheid+:} false; then :
10223 $as_echo_n "(cached) " >&6
10224 else
10225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10226 /* end confdefs.h. */
10227 int i;
10228 int
10229 main ()
10230 {
10231
10232 ;
10233 return 0;
10234 }
10235 _ACEOF
10236 if ac_fn_c_try_link "$LINENO"; then :
10237 eval $cacheid=yes
10238 else
10239 eval $cacheid=no
10240 fi
10241 rm -f core conftest.err conftest.$ac_objext \
10242 conftest$ac_exeext conftest.$ac_ext
10243 fi
10244
10245
10246 CFLAGS="$xorg_testset_save_CFLAGS"
10247
10248 eval supported=\$$cacheid
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10250 $as_echo "$supported" >&6; }
10251 if test "$supported" = "yes" ; then
10252 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10253 found="yes"
10254 fi
10255 fi
10256
10257 if test $found = "no" ; then
10258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10260 fi
10261
10262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10264 fi
10265
10266 CFLAGS="$CFLAGS -errwarn"
10267
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10269 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10270 cacheid=xorg_cv_cc_flag__errwarn
10271 if eval \${$cacheid+:} false; then :
10272 $as_echo_n "(cached) " >&6
10273 else
10274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10275 /* end confdefs.h. */
10276 int i;
10277 int
10278 main ()
10279 {
10280
10281 ;
10282 return 0;
10283 }
10284 _ACEOF
10285 if ac_fn_c_try_link "$LINENO"; then :
10286 eval $cacheid=yes
10287 else
10288 eval $cacheid=no
10289 fi
10290 rm -f core conftest.err conftest.$ac_objext \
10291 conftest$ac_exeext conftest.$ac_ext
10292 fi
10293
10294
10295 CFLAGS="$xorg_testset_save_CFLAGS"
10296
10297 eval supported=\$$cacheid
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10299 $as_echo "$supported" >&6; }
10300 if test "$supported" = "yes" ; then
10301 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10302 found="yes"
10303 fi
10304 fi
10305
10306
10307
10308 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10309 # activate it with -Werror, so we add it here explicitly.
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323 xorg_testset_save_CFLAGS="$CFLAGS"
10324
10325 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10328 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10329 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10330 $as_echo_n "(cached) " >&6
10331 else
10332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10333 /* end confdefs.h. */
10334 int i;
10335 _ACEOF
10336 if ac_fn_c_try_compile "$LINENO"; then :
10337 xorg_cv_cc_flag_unknown_warning_option=yes
10338 else
10339 xorg_cv_cc_flag_unknown_warning_option=no
10340 fi
10341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10342 fi
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10344 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10346 CFLAGS="$xorg_testset_save_CFLAGS"
10347 fi
10348
10349 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10352 fi
10353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10355 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10356 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10357 $as_echo_n "(cached) " >&6
10358 else
10359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10360 /* end confdefs.h. */
10361 int i;
10362 _ACEOF
10363 if ac_fn_c_try_compile "$LINENO"; then :
10364 xorg_cv_cc_flag_unused_command_line_argument=yes
10365 else
10366 xorg_cv_cc_flag_unused_command_line_argument=no
10367 fi
10368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10369 fi
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10371 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10373 CFLAGS="$xorg_testset_save_CFLAGS"
10374 fi
10375
10376 found="no"
10377
10378 if test $found = "no" ; then
10379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10381 fi
10382
10383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10385 fi
10386
10387 CFLAGS="$CFLAGS -Werror=attributes"
10388
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10390 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10391 cacheid=xorg_cv_cc_flag__Werror_attributes
10392 if eval \${$cacheid+:} false; then :
10393 $as_echo_n "(cached) " >&6
10394 else
10395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10396 /* end confdefs.h. */
10397 int i;
10398 int
10399 main ()
10400 {
10401
10402 ;
10403 return 0;
10404 }
10405 _ACEOF
10406 if ac_fn_c_try_link "$LINENO"; then :
10407 eval $cacheid=yes
10408 else
10409 eval $cacheid=no
10410 fi
10411 rm -f core conftest.err conftest.$ac_objext \
10412 conftest$ac_exeext conftest.$ac_ext
10413 fi
10414
10415
10416 CFLAGS="$xorg_testset_save_CFLAGS"
10417
10418 eval supported=\$$cacheid
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10420 $as_echo "$supported" >&6; }
10421 if test "$supported" = "yes" ; then
10422 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10423 found="yes"
10424 fi
10425 fi
10426
10427
10428
10429 if test "x$STRICT_COMPILE" = "xyes"; then
10430 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10431 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10432 fi
10433
10434
10435
10436
10437
10438
10439 cat >>confdefs.h <<_ACEOF
10440 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10441 _ACEOF
10442
10443 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10444 if test "x$PVM" = "x"; then
10445 PVM="0"
10446 fi
10447
10448 cat >>confdefs.h <<_ACEOF
10449 #define PACKAGE_VERSION_MINOR $PVM
10450 _ACEOF
10451
10452 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10453 if test "x$PVP" = "x"; then
10454 PVP="0"
10455 fi
10456
10457 cat >>confdefs.h <<_ACEOF
10458 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10459 _ACEOF
10460
10461
10462
10463 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10464 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10465 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10466 touch \$(top_srcdir)/ChangeLog; \
10467 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10468
10469
10470
10471
10472 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10473 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10474 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10475 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10476 touch \$(top_srcdir)/INSTALL; \
10477 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10478
10479
10480
10481
10482
10483
10484 case $host_os in
10485 solaris*)
10486 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10487 # check for a man page file found in later versions that use
10488 # traditional section numbers instead
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10490 $as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
10491 if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
10492 $as_echo_n "(cached) " >&6
10493 else
10494 test "$cross_compiling" = yes &&
10495 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10496 if test -r "/usr/share/man/man7/attributes.7"; then
10497 ac_cv_file__usr_share_man_man7_attributes_7=yes
10498 else
10499 ac_cv_file__usr_share_man_man7_attributes_7=no
10500 fi
10501 fi
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10503 $as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10504 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
10505 SYSV_MAN_SECTIONS=false
10506 else
10507 SYSV_MAN_SECTIONS=true
10508 fi
10509
10510 ;;
10511 *) SYSV_MAN_SECTIONS=false ;;
10512 esac
10513
10514 if test x$APP_MAN_SUFFIX = x ; then
10515 APP_MAN_SUFFIX=1
10516 fi
10517 if test x$APP_MAN_DIR = x ; then
10518 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10519 fi
10520
10521 if test x$LIB_MAN_SUFFIX = x ; then
10522 LIB_MAN_SUFFIX=3
10523 fi
10524 if test x$LIB_MAN_DIR = x ; then
10525 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10526 fi
10527
10528 if test x$FILE_MAN_SUFFIX = x ; then
10529 case $SYSV_MAN_SECTIONS in
10530 true) FILE_MAN_SUFFIX=4 ;;
10531 *) FILE_MAN_SUFFIX=5 ;;
10532 esac
10533 fi
10534 if test x$FILE_MAN_DIR = x ; then
10535 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10536 fi
10537
10538 if test x$MISC_MAN_SUFFIX = x ; then
10539 case $SYSV_MAN_SECTIONS in
10540 true) MISC_MAN_SUFFIX=5 ;;
10541 *) MISC_MAN_SUFFIX=7 ;;
10542 esac
10543 fi
10544 if test x$MISC_MAN_DIR = x ; then
10545 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10546 fi
10547
10548 if test x$DRIVER_MAN_SUFFIX = x ; then
10549 case $SYSV_MAN_SECTIONS in
10550 true) DRIVER_MAN_SUFFIX=7 ;;
10551 *) DRIVER_MAN_SUFFIX=4 ;;
10552 esac
10553 fi
10554 if test x$DRIVER_MAN_DIR = x ; then
10555 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10556 fi
10557
10558 if test x$ADMIN_MAN_SUFFIX = x ; then
10559 case $SYSV_MAN_SECTIONS in
10560 true) ADMIN_MAN_SUFFIX=1m ;;
10561 *) ADMIN_MAN_SUFFIX=8 ;;
10562 esac
10563 fi
10564 if test x$ADMIN_MAN_DIR = x ; then
10565 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10566 fi
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582 XORG_MAN_PAGE="X Version 11"
10583
10584 MAN_SUBSTS="\
10585 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10586 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10587 -e 's|__xservername__|Xorg|g' \
10588 -e 's|__xconfigfile__|xorg.conf|g' \
10589 -e 's|__projectroot__|\$(prefix)|g' \
10590 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10591 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10592 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10593 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10594 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10595 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10596 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10597
10598
10599
10600 # Check whether --enable-silent-rules was given.
10601 if test "${enable_silent_rules+set}" = set; then :
10602 enableval=$enable_silent_rules;
10603 fi
10604
10605 case $enable_silent_rules in # (((
10606 yes) AM_DEFAULT_VERBOSITY=0;;
10607 no) AM_DEFAULT_VERBOSITY=1;;
10608 *) AM_DEFAULT_VERBOSITY=0;;
10609 esac
10610 am_make=${MAKE-make}
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10612 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10613 if ${am_cv_make_support_nested_variables+:} false; then :
10614 $as_echo_n "(cached) " >&6
10615 else
10616 if $as_echo 'TRUE=$(BAR$(V))
10617 BAR0=false
10618 BAR1=true
10619 V=1
10620 am__doit:
10621 @$(TRUE)
10622 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10623 am_cv_make_support_nested_variables=yes
10624 else
10625 am_cv_make_support_nested_variables=no
10626 fi
10627 fi
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10629 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10630 if test $am_cv_make_support_nested_variables = yes; then
10631 AM_V='$(V)'
10632 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10633 else
10634 AM_V=$AM_DEFAULT_VERBOSITY
10635 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10636 fi
10637 AM_BACKSLASH='\'
10638
10639
10640
10641
10642
10643 # Require X.Org's font util macros 1.2 or later
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656 # mkfontscale
10657
10658 # Extract the first word of "mkfontscale", so it can be a program name with args.
10659 set dummy mkfontscale; ac_word=$2
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10661 $as_echo_n "checking for $ac_word... " >&6; }
10662 if ${ac_cv_path_MKFONTSCALE+:} false; then :
10663 $as_echo_n "(cached) " >&6
10664 else
10665 case $MKFONTSCALE in
10666 [\\/]* | ?:[\\/]*)
10667 ac_cv_path_MKFONTSCALE="$MKFONTSCALE" # Let the user override the test with a path.
10668 ;;
10669 *)
10670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671 for as_dir in $PATH
10672 do
10673 IFS=$as_save_IFS
10674 test -z "$as_dir" && as_dir=.
10675 for ac_exec_ext in '' $ac_executable_extensions; do
10676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10677 ac_cv_path_MKFONTSCALE="$as_dir/$ac_word$ac_exec_ext"
10678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10679 break 2
10680 fi
10681 done
10682 done
10683 IFS=$as_save_IFS
10684
10685 ;;
10686 esac
10687 fi
10688 MKFONTSCALE=$ac_cv_path_MKFONTSCALE
10689 if test -n "$MKFONTSCALE"; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKFONTSCALE" >&5
10691 $as_echo "$MKFONTSCALE" >&6; }
10692 else
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694 $as_echo "no" >&6; }
10695 fi
10696
10697
10698 if test x"$MKFONTSCALE" = x; then
10699 as_fn_error $? "mkfontscale is required to build $PACKAGE_NAME." "$LINENO" 5
10700 fi
10701
10702
10703 # Choose whether or not to compress encodings - default is to compress all
10704
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if small encodings should be compressed" >&5
10706 $as_echo_n "checking if small encodings should be compressed... " >&6; }
10707 # Check whether --enable-gzip-small-encodings was given.
10708 if test "${enable_gzip_small_encodings+set}" = set; then :
10709 enableval=$enable_gzip_small_encodings; GZIP_SMALL="$enableval"
10710 else
10711 GZIP_SMALL="yes"
10712 fi
10713
10714 if test x$GZIP_SMALL = xyes; then
10715 GZIP_SMALL_TRUE=
10716 GZIP_SMALL_FALSE='#'
10717 else
10718 GZIP_SMALL_TRUE='#'
10719 GZIP_SMALL_FALSE=
10720 fi
10721
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GZIP_SMALL}" >&5
10723 $as_echo "${GZIP_SMALL}" >&6; }
10724
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if large encodings should be compressed" >&5
10726 $as_echo_n "checking if large encodings should be compressed... " >&6; }
10727 # Check whether --enable-gzip-large-encodings was given.
10728 if test "${enable_gzip_large_encodings+set}" = set; then :
10729 enableval=$enable_gzip_large_encodings; GZIP_LARGE="$enableval"
10730 else
10731 GZIP_LARGE="yes"
10732 fi
10733
10734 if test x$GZIP_LARGE = xyes; then
10735 GZIP_LARGE_TRUE=
10736 GZIP_LARGE_FALSE='#'
10737 else
10738 GZIP_LARGE_TRUE='#'
10739 GZIP_LARGE_FALSE=
10740 fi
10741
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GZIP_LARGE}" >&5
10743 $as_echo "${GZIP_LARGE}" >&6; }
10744
10745 # gzip
10746
10747 if test x$GZIP_SMALL = xyes -o x$GZIP_LARGE = xyes ; then
10748 # Extract the first word of "gzip", so it can be a program name with args.
10749 set dummy gzip; ac_word=$2
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10751 $as_echo_n "checking for $ac_word... " >&6; }
10752 if ${ac_cv_path_GZIP+:} false; then :
10753 $as_echo_n "(cached) " >&6
10754 else
10755 case $GZIP in
10756 [\\/]* | ?:[\\/]*)
10757 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
10758 ;;
10759 *)
10760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761 for as_dir in $PATH
10762 do
10763 IFS=$as_save_IFS
10764 test -z "$as_dir" && as_dir=.
10765 for ac_exec_ext in '' $ac_executable_extensions; do
10766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10767 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
10768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10769 break 2
10770 fi
10771 done
10772 done
10773 IFS=$as_save_IFS
10774
10775 ;;
10776 esac
10777 fi
10778 GZIP=$ac_cv_path_GZIP
10779 if test -n "$GZIP"; then
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
10781 $as_echo "$GZIP" >&6; }
10782 else
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10784 $as_echo "no" >&6; }
10785 fi
10786
10787
10788 if [ -z $GZIP ]; then
10789 as_fn_error $? "gzip is needed to compress font encodings" "$LINENO" 5
10790 fi
10791 fi
10792
10793
10794
10795
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
10797 $as_echo_n "checking for root directory for font files... " >&6; }
10798
10799 # Check whether --with-fontrootdir was given.
10800 if test "${with_fontrootdir+set}" = set; then :
10801 withval=$with_fontrootdir; FONTROOTDIR="$withval"
10802 fi
10803
10804 # if --with-fontrootdir not specified...
10805 if test "x${FONTROOTDIR}" = "x"; then
10806 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
10807 fi
10808 # ...and if pkg-config didn't find fontdir in fontutil.pc...
10809 if test "x${FONTROOTDIR}" = "x"; then
10810 FONTROOTDIR="${datadir}/fonts/X11"
10811 fi
10812
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
10814 $as_echo "${FONTROOTDIR}" >&6; }
10815
10816
10817
10818
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for encodings files" >&5
10820 $as_echo_n "checking for directory for encodings files... " >&6; }
10821
10822 # Check whether --with-encodingsdir was given.
10823 if test "${with_encodingsdir+set}" = set; then :
10824 withval=$with_encodingsdir; ENCODINGSDIR="${withval}"
10825 else
10826 ENCODINGSDIR='${FONTROOTDIR}/encodings'
10827 fi
10828
10829
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ENCODINGSDIR}" >&5
10831 $as_echo "${ENCODINGSDIR}" >&6; }
10832
10833
10834 ac_config_files="$ac_config_files Makefile large/Makefile"
10835
10836 cat >confcache <<\_ACEOF
10837 # This file is a shell script that caches the results of configure
10838 # tests run on this system so they can be shared between configure
10839 # scripts and configure runs, see configure's option --config-cache.
10840 # It is not useful on other systems. If it contains results you don't
10841 # want to keep, you may remove or edit it.
10842 #
10843 # config.status only pays attention to the cache file if you give it
10844 # the --recheck option to rerun configure.
10845 #
10846 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10847 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10848 # following values.
10849
10850 _ACEOF
10851
10852 # The following way of writing the cache mishandles newlines in values,
10853 # but we know of no workaround that is simple, portable, and efficient.
10854 # So, we kill variables containing newlines.
10855 # Ultrix sh set writes to stderr and can't be redirected directly,
10856 # and sets the high bit in the cache file unless we assign to the vars.
10857 (
10858 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10859 eval ac_val=\$$ac_var
10860 case $ac_val in #(
10861 *${as_nl}*)
10862 case $ac_var in #(
10863 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10864 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10865 esac
10866 case $ac_var in #(
10867 _ | IFS | as_nl) ;; #(
10868 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10869 *) { eval $ac_var=; unset $ac_var;} ;;
10870 esac ;;
10871 esac
10872 done
10873
10874 (set) 2>&1 |
10875 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10876 *${as_nl}ac_space=\ *)
10877 # `set' does not quote correctly, so add quotes: double-quote
10878 # substitution turns \\\\ into \\, and sed turns \\ into \.
10879 sed -n \
10880 "s/'/'\\\\''/g;
10881 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10882 ;; #(
10883 *)
10884 # `set' quotes correctly as required by POSIX, so do not add quotes.
10885 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10886 ;;
10887 esac |
10888 sort
10889 ) |
10890 sed '
10891 /^ac_cv_env_/b end
10892 t clear
10893 :clear
10894 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10895 t end
10896 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10897 :end' >>confcache
10898 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10899 if test -w "$cache_file"; then
10900 if test "x$cache_file" != "x/dev/null"; then
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10902 $as_echo "$as_me: updating cache $cache_file" >&6;}
10903 if test ! -f "$cache_file" || test -h "$cache_file"; then
10904 cat confcache >"$cache_file"
10905 else
10906 case $cache_file in #(
10907 */* | ?:*)
10908 mv -f confcache "$cache_file"$$ &&
10909 mv -f "$cache_file"$$ "$cache_file" ;; #(
10910 *)
10911 mv -f confcache "$cache_file" ;;
10912 esac
10913 fi
10914 fi
10915 else
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10917 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10918 fi
10919 fi
10920 rm -f confcache
10921
10922 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10923 # Let make expand exec_prefix.
10924 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10925
10926 # Transform confdefs.h into DEFS.
10927 # Protect against shell expansion while executing Makefile rules.
10928 # Protect against Makefile macro expansion.
10929 #
10930 # If the first sed substitution is executed (which looks for macros that
10931 # take arguments), then branch to the quote section. Otherwise,
10932 # look for a macro that doesn't take arguments.
10933 ac_script='
10934 :mline
10935 /\\$/{
10936 N
10937 s,\\\n,,
10938 b mline
10939 }
10940 t clear
10941 :clear
10942 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
10943 t quote
10944 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
10945 t quote
10946 b any
10947 :quote
10948 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10949 s/\[/\\&/g
10950 s/\]/\\&/g
10951 s/\$/$$/g
10952 H
10953 :any
10954 ${
10955 g
10956 s/^\n//
10957 s/\n/ /g
10958 p
10959 }
10960 '
10961 DEFS=`sed -n "$ac_script" confdefs.h`
10962
10963
10964 ac_libobjs=
10965 ac_ltlibobjs=
10966 U=
10967 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10968 # 1. Remove the extension, and $U if already installed.
10969 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10970 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10971 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10972 # will be set to the directory where LIBOBJS objects are built.
10973 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10974 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10975 done
10976 LIBOBJS=$ac_libobjs
10977
10978 LTLIBOBJS=$ac_ltlibobjs
10979
10980
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10982 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10983 if test -n "$am_sleep_pid"; then
10984 # Hide warnings about reused PIDs.
10985 wait $am_sleep_pid 2>/dev/null
10986 fi
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10988 $as_echo "done" >&6; }
10989 if test -n "$EXEEXT"; then
10990 am__EXEEXT_TRUE=
10991 am__EXEEXT_FALSE='#'
10992 else
10993 am__EXEEXT_TRUE='#'
10994 am__EXEEXT_FALSE=
10995 fi
10996
10997 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10998 as_fn_error $? "conditional \"AMDEP\" was never defined.
10999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11000 fi
11001 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11002 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11004 fi
11005 if test -z "${GZIP_SMALL_TRUE}" && test -z "${GZIP_SMALL_FALSE}"; then
11006 as_fn_error $? "conditional \"GZIP_SMALL\" was never defined.
11007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11008 fi
11009 if test -z "${GZIP_LARGE_TRUE}" && test -z "${GZIP_LARGE_FALSE}"; then
11010 as_fn_error $? "conditional \"GZIP_LARGE\" was never defined.
11011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11012 fi
11013
11014 : "${CONFIG_STATUS=./config.status}"
11015 ac_write_fail=0
11016 ac_clean_files_save=$ac_clean_files
11017 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11019 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11020 as_write_fail=0
11021 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11022 #! $SHELL
11023 # Generated by $as_me.
11024 # Run this file to recreate the current configuration.
11025 # Compiler output produced by configure, useful for debugging
11026 # configure, is in config.log if it exists.
11027
11028 debug=false
11029 ac_cs_recheck=false
11030 ac_cs_silent=false
11031
11032 SHELL=\${CONFIG_SHELL-$SHELL}
11033 export SHELL
11034 _ASEOF
11035 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11036 ## -------------------- ##
11037 ## M4sh Initialization. ##
11038 ## -------------------- ##
11039
11040 # Be more Bourne compatible
11041 DUALCASE=1; export DUALCASE # for MKS sh
11042 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11043 emulate sh
11044 NULLCMD=:
11045 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11046 # is contrary to our usage. Disable this feature.
11047 alias -g '${1+"$@"}'='"$@"'
11048 setopt NO_GLOB_SUBST
11049 else
11050 case `(set -o) 2>/dev/null` in #(
11051 *posix*) :
11052 set -o posix ;; #(
11053 *) :
11054 ;;
11055 esac
11056 fi
11057
11058
11059 as_nl='
11060 '
11061 export as_nl
11062 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11063 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11064 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11065 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11066 # Prefer a ksh shell builtin over an external printf program on Solaris,
11067 # but without wasting forks for bash or zsh.
11068 if test -z "$BASH_VERSION$ZSH_VERSION" \
11069 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11070 as_echo='print -r --'
11071 as_echo_n='print -rn --'
11072 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11073 as_echo='printf %s\n'
11074 as_echo_n='printf %s'
11075 else
11076 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11077 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11078 as_echo_n='/usr/ucb/echo -n'
11079 else
11080 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11081 as_echo_n_body='eval
11082 arg=$1;
11083 case $arg in #(
11084 *"$as_nl"*)
11085 expr "X$arg" : "X\\(.*\\)$as_nl";
11086 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11087 esac;
11088 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11089 '
11090 export as_echo_n_body
11091 as_echo_n='sh -c $as_echo_n_body as_echo'
11092 fi
11093 export as_echo_body
11094 as_echo='sh -c $as_echo_body as_echo'
11095 fi
11096
11097 # The user is always right.
11098 if test "${PATH_SEPARATOR+set}" != set; then
11099 PATH_SEPARATOR=:
11100 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11101 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11102 PATH_SEPARATOR=';'
11103 }
11104 fi
11105
11106
11107 # IFS
11108 # We need space, tab and new line, in precisely that order. Quoting is
11109 # there to prevent editors from complaining about space-tab.
11110 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11111 # splitting by setting IFS to empty value.)
11112 IFS=" "" $as_nl"
11113
11114 # Find who we are. Look in the path if we contain no directory separator.
11115 as_myself=
11116 case $0 in #((
11117 *[\\/]* ) as_myself=$0 ;;
11118 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11119 for as_dir in $PATH
11120 do
11121 IFS=$as_save_IFS
11122 test -z "$as_dir" && as_dir=.
11123 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11124 done
11125 IFS=$as_save_IFS
11126
11127 ;;
11128 esac
11129 # We did not find ourselves, most probably we were run as `sh COMMAND'
11130 # in which case we are not to be found in the path.
11131 if test "x$as_myself" = x; then
11132 as_myself=$0
11133 fi
11134 if test ! -f "$as_myself"; then
11135 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11136 exit 1
11137 fi
11138
11139 # Unset variables that we do not need and which cause bugs (e.g. in
11140 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11141 # suppresses any "Segmentation fault" message there. '((' could
11142 # trigger a bug in pdksh 5.2.14.
11143 for as_var in BASH_ENV ENV MAIL MAILPATH
11144 do eval test x\${$as_var+set} = xset \
11145 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11146 done
11147 PS1='$ '
11148 PS2='> '
11149 PS4='+ '
11150
11151 # NLS nuisances.
11152 LC_ALL=C
11153 export LC_ALL
11154 LANGUAGE=C
11155 export LANGUAGE
11156
11157 # CDPATH.
11158 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11159
11160
11161 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11162 # ----------------------------------------
11163 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11164 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11165 # script with STATUS, using 1 if that was 0.
11166 as_fn_error ()
11167 {
11168 as_status=$1; test $as_status -eq 0 && as_status=1
11169 if test "$4"; then
11170 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11171 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11172 fi
11173 $as_echo "$as_me: error: $2" >&2
11174 as_fn_exit $as_status
11175 } # as_fn_error
11176
11177
11178 # as_fn_set_status STATUS
11179 # -----------------------
11180 # Set $? to STATUS, without forking.
11181 as_fn_set_status ()
11182 {
11183 return $1
11184 } # as_fn_set_status
11185
11186 # as_fn_exit STATUS
11187 # -----------------
11188 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11189 as_fn_exit ()
11190 {
11191 set +e
11192 as_fn_set_status $1
11193 exit $1
11194 } # as_fn_exit
11195
11196 # as_fn_unset VAR
11197 # ---------------
11198 # Portably unset VAR.
11199 as_fn_unset ()
11200 {
11201 { eval $1=; unset $1;}
11202 }
11203 as_unset=as_fn_unset
11204 # as_fn_append VAR VALUE
11205 # ----------------------
11206 # Append the text in VALUE to the end of the definition contained in VAR. Take
11207 # advantage of any shell optimizations that allow amortized linear growth over
11208 # repeated appends, instead of the typical quadratic growth present in naive
11209 # implementations.
11210 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11211 eval 'as_fn_append ()
11212 {
11213 eval $1+=\$2
11214 }'
11215 else
11216 as_fn_append ()
11217 {
11218 eval $1=\$$1\$2
11219 }
11220 fi # as_fn_append
11221
11222 # as_fn_arith ARG...
11223 # ------------------
11224 # Perform arithmetic evaluation on the ARGs, and store the result in the
11225 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11226 # must be portable across $(()) and expr.
11227 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11228 eval 'as_fn_arith ()
11229 {
11230 as_val=$(( $* ))
11231 }'
11232 else
11233 as_fn_arith ()
11234 {
11235 as_val=`expr "$@" || test $? -eq 1`
11236 }
11237 fi # as_fn_arith
11238
11239
11240 if expr a : '\(a\)' >/dev/null 2>&1 &&
11241 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11242 as_expr=expr
11243 else
11244 as_expr=false
11245 fi
11246
11247 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11248 as_basename=basename
11249 else
11250 as_basename=false
11251 fi
11252
11253 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11254 as_dirname=dirname
11255 else
11256 as_dirname=false
11257 fi
11258
11259 as_me=`$as_basename -- "$0" ||
11260 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11261 X"$0" : 'X\(//\)$' \| \
11262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11263 $as_echo X/"$0" |
11264 sed '/^.*\/\([^/][^/]*\)\/*$/{
11265 s//\1/
11266 q
11267 }
11268 /^X\/\(\/\/\)$/{
11269 s//\1/
11270 q
11271 }
11272 /^X\/\(\/\).*/{
11273 s//\1/
11274 q
11275 }
11276 s/.*/./; q'`
11277
11278 # Avoid depending upon Character Ranges.
11279 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11280 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11281 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11282 as_cr_digits='0123456789'
11283 as_cr_alnum=$as_cr_Letters$as_cr_digits
11284
11285 ECHO_C= ECHO_N= ECHO_T=
11286 case `echo -n x` in #(((((
11287 -n*)
11288 case `echo 'xy\c'` in
11289 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11290 xy) ECHO_C='\c';;
11291 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11292 ECHO_T=' ';;
11293 esac;;
11294 *)
11295 ECHO_N='-n';;
11296 esac
11297
11298 rm -f conf$$ conf$$.exe conf$$.file
11299 if test -d conf$$.dir; then
11300 rm -f conf$$.dir/conf$$.file
11301 else
11302 rm -f conf$$.dir
11303 mkdir conf$$.dir 2>/dev/null
11304 fi
11305 if (echo >conf$$.file) 2>/dev/null; then
11306 if ln -s conf$$.file conf$$ 2>/dev/null; then
11307 as_ln_s='ln -s'
11308 # ... but there are two gotchas:
11309 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11310 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11311 # In both cases, we have to default to `cp -pR'.
11312 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11313 as_ln_s='cp -pR'
11314 elif ln conf$$.file conf$$ 2>/dev/null; then
11315 as_ln_s=ln
11316 else
11317 as_ln_s='cp -pR'
11318 fi
11319 else
11320 as_ln_s='cp -pR'
11321 fi
11322 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11323 rmdir conf$$.dir 2>/dev/null
11324
11325
11326 # as_fn_mkdir_p
11327 # -------------
11328 # Create "$as_dir" as a directory, including parents if necessary.
11329 as_fn_mkdir_p ()
11330 {
11331
11332 case $as_dir in #(
11333 -*) as_dir=./$as_dir;;
11334 esac
11335 test -d "$as_dir" || eval $as_mkdir_p || {
11336 as_dirs=
11337 while :; do
11338 case $as_dir in #(
11339 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11340 *) as_qdir=$as_dir;;
11341 esac
11342 as_dirs="'$as_qdir' $as_dirs"
11343 as_dir=`$as_dirname -- "$as_dir" ||
11344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11345 X"$as_dir" : 'X\(//\)[^/]' \| \
11346 X"$as_dir" : 'X\(//\)$' \| \
11347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11348 $as_echo X"$as_dir" |
11349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11350 s//\1/
11351 q
11352 }
11353 /^X\(\/\/\)[^/].*/{
11354 s//\1/
11355 q
11356 }
11357 /^X\(\/\/\)$/{
11358 s//\1/
11359 q
11360 }
11361 /^X\(\/\).*/{
11362 s//\1/
11363 q
11364 }
11365 s/.*/./; q'`
11366 test -d "$as_dir" && break
11367 done
11368 test -z "$as_dirs" || eval "mkdir $as_dirs"
11369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11370
11371
11372 } # as_fn_mkdir_p
11373 if mkdir -p . 2>/dev/null; then
11374 as_mkdir_p='mkdir -p "$as_dir"'
11375 else
11376 test -d ./-p && rmdir ./-p
11377 as_mkdir_p=false
11378 fi
11379
11380
11381 # as_fn_executable_p FILE
11382 # -----------------------
11383 # Test if FILE is an executable regular file.
11384 as_fn_executable_p ()
11385 {
11386 test -f "$1" && test -x "$1"
11387 } # as_fn_executable_p
11388 as_test_x='test -x'
11389 as_executable_p=as_fn_executable_p
11390
11391 # Sed expression to map a string onto a valid CPP name.
11392 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11393
11394 # Sed expression to map a string onto a valid variable name.
11395 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11396
11397
11398 exec 6>&1
11399 ## ----------------------------------- ##
11400 ## Main body of $CONFIG_STATUS script. ##
11401 ## ----------------------------------- ##
11402 _ASEOF
11403 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11404
11405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11406 # Save the log message, to keep $0 and so on meaningful, and to
11407 # report actual input values of CONFIG_FILES etc. instead of their
11408 # values after options handling.
11409 ac_log="
11410 This file was extended by encodings $as_me 1.0.5, which was
11411 generated by GNU Autoconf 2.69. Invocation command line was
11412
11413 CONFIG_FILES = $CONFIG_FILES
11414 CONFIG_HEADERS = $CONFIG_HEADERS
11415 CONFIG_LINKS = $CONFIG_LINKS
11416 CONFIG_COMMANDS = $CONFIG_COMMANDS
11417 $ $0 $@
11418
11419 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11420 "
11421
11422 _ACEOF
11423
11424 case $ac_config_files in *"
11425 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11426 esac
11427
11428
11429
11430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11431 # Files that config.status was made for.
11432 config_files="$ac_config_files"
11433 config_commands="$ac_config_commands"
11434
11435 _ACEOF
11436
11437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11438 ac_cs_usage="\
11439 \`$as_me' instantiates files and other configuration actions
11440 from templates according to the current configuration. Unless the files
11441 and actions are specified as TAGs, all are instantiated by default.
11442
11443 Usage: $0 [OPTION]... [TAG]...
11444
11445 -h, --help print this help, then exit
11446 -V, --version print version number and configuration settings, then exit
11447 --config print configuration, then exit
11448 -q, --quiet, --silent
11449 do not print progress messages
11450 -d, --debug don't remove temporary files
11451 --recheck update $as_me by reconfiguring in the same conditions
11452 --file=FILE[:TEMPLATE]
11453 instantiate the configuration file FILE
11454
11455 Configuration files:
11456 $config_files
11457
11458 Configuration commands:
11459 $config_commands
11460
11461 Report bugs to <https://gitlab.freedesktop.org/xorg/font/encodings/issues>."
11462
11463 _ACEOF
11464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11465 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11466 ac_cs_version="\\
11467 encodings config.status 1.0.5
11468 configured by $0, generated by GNU Autoconf 2.69,
11469 with options \\"\$ac_cs_config\\"
11470
11471 Copyright (C) 2012 Free Software Foundation, Inc.
11472 This config.status script is free software; the Free Software Foundation
11473 gives unlimited permission to copy, distribute and modify it."
11474
11475 ac_pwd='$ac_pwd'
11476 srcdir='$srcdir'
11477 INSTALL='$INSTALL'
11478 MKDIR_P='$MKDIR_P'
11479 AWK='$AWK'
11480 test -n "\$AWK" || AWK=awk
11481 _ACEOF
11482
11483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11484 # The default lists apply if the user does not specify any file.
11485 ac_need_defaults=:
11486 while test $# != 0
11487 do
11488 case $1 in
11489 --*=?*)
11490 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11491 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11492 ac_shift=:
11493 ;;
11494 --*=)
11495 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11496 ac_optarg=
11497 ac_shift=:
11498 ;;
11499 *)
11500 ac_option=$1
11501 ac_optarg=$2
11502 ac_shift=shift
11503 ;;
11504 esac
11505
11506 case $ac_option in
11507 # Handling of the options.
11508 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11509 ac_cs_recheck=: ;;
11510 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11511 $as_echo "$ac_cs_version"; exit ;;
11512 --config | --confi | --conf | --con | --co | --c )
11513 $as_echo "$ac_cs_config"; exit ;;
11514 --debug | --debu | --deb | --de | --d | -d )
11515 debug=: ;;
11516 --file | --fil | --fi | --f )
11517 $ac_shift
11518 case $ac_optarg in
11519 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11520 '') as_fn_error $? "missing file argument" ;;
11521 esac
11522 as_fn_append CONFIG_FILES " '$ac_optarg'"
11523 ac_need_defaults=false;;
11524 --he | --h | --help | --hel | -h )
11525 $as_echo "$ac_cs_usage"; exit ;;
11526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11527 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11528 ac_cs_silent=: ;;
11529
11530 # This is an error.
11531 -*) as_fn_error $? "unrecognized option: \`$1'
11532 Try \`$0 --help' for more information." ;;
11533
11534 *) as_fn_append ac_config_targets " $1"
11535 ac_need_defaults=false ;;
11536
11537 esac
11538 shift
11539 done
11540
11541 ac_configure_extra_args=
11542
11543 if $ac_cs_silent; then
11544 exec 6>/dev/null
11545 ac_configure_extra_args="$ac_configure_extra_args --silent"
11546 fi
11547
11548 _ACEOF
11549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11550 if \$ac_cs_recheck; then
11551 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11552 shift
11553 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11554 CONFIG_SHELL='$SHELL'
11555 export CONFIG_SHELL
11556 exec "\$@"
11557 fi
11558
11559 _ACEOF
11560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11561 exec 5>>config.log
11562 {
11563 echo
11564 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11565 ## Running $as_me. ##
11566 _ASBOX
11567 $as_echo "$ac_log"
11568 } >&5
11569
11570 _ACEOF
11571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11572 #
11573 # INIT-COMMANDS
11574 #
11575 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
11576
11577 _ACEOF
11578
11579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11580
11581 # Handling of arguments.
11582 for ac_config_target in $ac_config_targets
11583 do
11584 case $ac_config_target in
11585 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11586 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11587 "large/Makefile") CONFIG_FILES="$CONFIG_FILES large/Makefile" ;;
11588
11589 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11590 esac
11591 done
11592
11593
11594 # If the user did not use the arguments to specify the items to instantiate,
11595 # then the envvar interface is used. Set only those that are not.
11596 # We use the long form for the default assignment because of an extremely
11597 # bizarre bug on SunOS 4.1.3.
11598 if $ac_need_defaults; then
11599 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11600 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11601 fi
11602
11603 # Have a temporary directory for convenience. Make it in the build tree
11604 # simply because there is no reason against having it here, and in addition,
11605 # creating and moving files from /tmp can sometimes cause problems.
11606 # Hook for its removal unless debugging.
11607 # Note that there is a small window in which the directory will not be cleaned:
11608 # after its creation but before its name has been assigned to `$tmp'.
11609 $debug ||
11610 {
11611 tmp= ac_tmp=
11612 trap 'exit_status=$?
11613 : "${ac_tmp:=$tmp}"
11614 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11615 ' 0
11616 trap 'as_fn_exit 1' 1 2 13 15
11617 }
11618 # Create a (secure) tmp directory for tmp files.
11619
11620 {
11621 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11622 test -d "$tmp"
11623 } ||
11624 {
11625 tmp=./conf$$-$RANDOM
11626 (umask 077 && mkdir "$tmp")
11627 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11628 ac_tmp=$tmp
11629
11630 # Set up the scripts for CONFIG_FILES section.
11631 # No need to generate them if there are no CONFIG_FILES.
11632 # This happens for instance with `./config.status config.h'.
11633 if test -n "$CONFIG_FILES"; then
11634
11635
11636 ac_cr=`echo X | tr X '\015'`
11637 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11638 # But we know of no other shell where ac_cr would be empty at this
11639 # point, so we can use a bashism as a fallback.
11640 if test "x$ac_cr" = x; then
11641 eval ac_cr=\$\'\\r\'
11642 fi
11643 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11644 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11645 ac_cs_awk_cr='\\r'
11646 else
11647 ac_cs_awk_cr=$ac_cr
11648 fi
11649
11650 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11651 _ACEOF
11652
11653
11654 {
11655 echo "cat >conf$$subs.awk <<_ACEOF" &&
11656 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11657 echo "_ACEOF"
11658 } >conf$$subs.sh ||
11659 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11660 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11661 ac_delim='%!_!# '
11662 for ac_last_try in false false false false false :; do
11663 . ./conf$$subs.sh ||
11664 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11665
11666 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11667 if test $ac_delim_n = $ac_delim_num; then
11668 break
11669 elif $ac_last_try; then
11670 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11671 else
11672 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11673 fi
11674 done
11675 rm -f conf$$subs.sh
11676
11677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11678 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11679 _ACEOF
11680 sed -n '
11681 h
11682 s/^/S["/; s/!.*/"]=/
11683 p
11684 g
11685 s/^[^!]*!//
11686 :repl
11687 t repl
11688 s/'"$ac_delim"'$//
11689 t delim
11690 :nl
11691 h
11692 s/\(.\{148\}\)..*/\1/
11693 t more1
11694 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11695 p
11696 n
11697 b repl
11698 :more1
11699 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11700 p
11701 g
11702 s/.\{148\}//
11703 t nl
11704 :delim
11705 h
11706 s/\(.\{148\}\)..*/\1/
11707 t more2
11708 s/["\\]/\\&/g; s/^/"/; s/$/"/
11709 p
11710 b
11711 :more2
11712 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11713 p
11714 g
11715 s/.\{148\}//
11716 t delim
11717 ' <conf$$subs.awk | sed '
11718 /^[^""]/{
11719 N
11720 s/\n//
11721 }
11722 ' >>$CONFIG_STATUS || ac_write_fail=1
11723 rm -f conf$$subs.awk
11724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11725 _ACAWK
11726 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11727 for (key in S) S_is_set[key] = 1
11728 FS = ""
11729
11730 }
11731 {
11732 line = $ 0
11733 nfields = split(line, field, "@")
11734 substed = 0
11735 len = length(field[1])
11736 for (i = 2; i < nfields; i++) {
11737 key = field[i]
11738 keylen = length(key)
11739 if (S_is_set[key]) {
11740 value = S[key]
11741 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11742 len += length(value) + length(field[++i])
11743 substed = 1
11744 } else
11745 len += 1 + keylen
11746 }
11747
11748 print line
11749 }
11750
11751 _ACAWK
11752 _ACEOF
11753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11754 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11755 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11756 else
11757 cat
11758 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11759 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11760 _ACEOF
11761
11762 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11763 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11764 # trailing colons and then remove the whole line if VPATH becomes empty
11765 # (actually we leave an empty line to preserve line numbers).
11766 if test "x$srcdir" = x.; then
11767 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11768 h
11769 s///
11770 s/^/:/
11771 s/[ ]*$/:/
11772 s/:\$(srcdir):/:/g
11773 s/:\${srcdir}:/:/g
11774 s/:@srcdir@:/:/g
11775 s/^:*//
11776 s/:*$//
11777 x
11778 s/\(=[ ]*\).*/\1/
11779 G
11780 s/\n//
11781 s/^[^=]*=[ ]*$//
11782 }'
11783 fi
11784
11785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11786 fi # test -n "$CONFIG_FILES"
11787
11788
11789 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
11790 shift
11791 for ac_tag
11792 do
11793 case $ac_tag in
11794 :[FHLC]) ac_mode=$ac_tag; continue;;
11795 esac
11796 case $ac_mode$ac_tag in
11797 :[FHL]*:*);;
11798 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11799 :[FH]-) ac_tag=-:-;;
11800 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11801 esac
11802 ac_save_IFS=$IFS
11803 IFS=:
11804 set x $ac_tag
11805 IFS=$ac_save_IFS
11806 shift
11807 ac_file=$1
11808 shift
11809
11810 case $ac_mode in
11811 :L) ac_source=$1;;
11812 :[FH])
11813 ac_file_inputs=
11814 for ac_f
11815 do
11816 case $ac_f in
11817 -) ac_f="$ac_tmp/stdin";;
11818 *) # Look for the file first in the build tree, then in the source tree
11819 # (if the path is not absolute). The absolute path cannot be DOS-style,
11820 # because $ac_f cannot contain `:'.
11821 test -f "$ac_f" ||
11822 case $ac_f in
11823 [\\/$]*) false;;
11824 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11825 esac ||
11826 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11827 esac
11828 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11829 as_fn_append ac_file_inputs " '$ac_f'"
11830 done
11831
11832 # Let's still pretend it is `configure' which instantiates (i.e., don't
11833 # use $as_me), people would be surprised to read:
11834 # /* config.h. Generated by config.status. */
11835 configure_input='Generated from '`
11836 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11837 `' by configure.'
11838 if test x"$ac_file" != x-; then
11839 configure_input="$ac_file. $configure_input"
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11841 $as_echo "$as_me: creating $ac_file" >&6;}
11842 fi
11843 # Neutralize special characters interpreted by sed in replacement strings.
11844 case $configure_input in #(
11845 *\&* | *\|* | *\\* )
11846 ac_sed_conf_input=`$as_echo "$configure_input" |
11847 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11848 *) ac_sed_conf_input=$configure_input;;
11849 esac
11850
11851 case $ac_tag in
11852 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11853 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11854 esac
11855 ;;
11856 esac
11857
11858 ac_dir=`$as_dirname -- "$ac_file" ||
11859 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11860 X"$ac_file" : 'X\(//\)[^/]' \| \
11861 X"$ac_file" : 'X\(//\)$' \| \
11862 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11863 $as_echo X"$ac_file" |
11864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11865 s//\1/
11866 q
11867 }
11868 /^X\(\/\/\)[^/].*/{
11869 s//\1/
11870 q
11871 }
11872 /^X\(\/\/\)$/{
11873 s//\1/
11874 q
11875 }
11876 /^X\(\/\).*/{
11877 s//\1/
11878 q
11879 }
11880 s/.*/./; q'`
11881 as_dir="$ac_dir"; as_fn_mkdir_p
11882 ac_builddir=.
11883
11884 case "$ac_dir" in
11885 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11886 *)
11887 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11888 # A ".." for each directory in $ac_dir_suffix.
11889 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11890 case $ac_top_builddir_sub in
11891 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11892 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11893 esac ;;
11894 esac
11895 ac_abs_top_builddir=$ac_pwd
11896 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11897 # for backward compatibility:
11898 ac_top_builddir=$ac_top_build_prefix
11899
11900 case $srcdir in
11901 .) # We are building in place.
11902 ac_srcdir=.
11903 ac_top_srcdir=$ac_top_builddir_sub
11904 ac_abs_top_srcdir=$ac_pwd ;;
11905 [\\/]* | ?:[\\/]* ) # Absolute name.
11906 ac_srcdir=$srcdir$ac_dir_suffix;
11907 ac_top_srcdir=$srcdir
11908 ac_abs_top_srcdir=$srcdir ;;
11909 *) # Relative name.
11910 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11911 ac_top_srcdir=$ac_top_build_prefix$srcdir
11912 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11913 esac
11914 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11915
11916
11917 case $ac_mode in
11918 :F)
11919 #
11920 # CONFIG_FILE
11921 #
11922
11923 case $INSTALL in
11924 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11925 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11926 esac
11927 ac_MKDIR_P=$MKDIR_P
11928 case $MKDIR_P in
11929 [\\/$]* | ?:[\\/]* ) ;;
11930 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11931 esac
11932 _ACEOF
11933
11934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11935 # If the template does not know about datarootdir, expand it.
11936 # FIXME: This hack should be removed a few years after 2.60.
11937 ac_datarootdir_hack=; ac_datarootdir_seen=
11938 ac_sed_dataroot='
11939 /datarootdir/ {
11940 p
11941 q
11942 }
11943 /@datadir@/p
11944 /@docdir@/p
11945 /@infodir@/p
11946 /@localedir@/p
11947 /@mandir@/p'
11948 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11949 *datarootdir*) ac_datarootdir_seen=yes;;
11950 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11952 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11953 _ACEOF
11954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11955 ac_datarootdir_hack='
11956 s&@datadir@&$datadir&g
11957 s&@docdir@&$docdir&g
11958 s&@infodir@&$infodir&g
11959 s&@localedir@&$localedir&g
11960 s&@mandir@&$mandir&g
11961 s&\\\${datarootdir}&$datarootdir&g' ;;
11962 esac
11963 _ACEOF
11964
11965 # Neutralize VPATH when `$srcdir' = `.'.
11966 # Shell code in configure.ac might set extrasub.
11967 # FIXME: do we really want to maintain this feature?
11968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11969 ac_sed_extra="$ac_vpsub
11970 $extrasub
11971 _ACEOF
11972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11973 :t
11974 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11975 s|@configure_input@|$ac_sed_conf_input|;t t
11976 s&@top_builddir@&$ac_top_builddir_sub&;t t
11977 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11978 s&@srcdir@&$ac_srcdir&;t t
11979 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11980 s&@top_srcdir@&$ac_top_srcdir&;t t
11981 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11982 s&@builddir@&$ac_builddir&;t t
11983 s&@abs_builddir@&$ac_abs_builddir&;t t
11984 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11985 s&@INSTALL@&$ac_INSTALL&;t t
11986 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11987 $ac_datarootdir_hack
11988 "
11989 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11990 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11991
11992 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11993 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11994 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11995 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11997 which seems to be undefined. Please make sure it is defined" >&5
11998 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11999 which seems to be undefined. Please make sure it is defined" >&2;}
12000
12001 rm -f "$ac_tmp/stdin"
12002 case $ac_file in
12003 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12004 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12005 esac \
12006 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12007 ;;
12008
12009
12010 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12011 $as_echo "$as_me: executing $ac_file commands" >&6;}
12012 ;;
12013 esac
12014
12015
12016 case $ac_file$ac_mode in
12017 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12018 # Older Autoconf quotes --file arguments for eval, but not when files
12019 # are listed without --file. Let's play safe and only enable the eval
12020 # if we detect the quoting.
12021 # TODO: see whether this extra hack can be removed once we start
12022 # requiring Autoconf 2.70 or later.
12023 case $CONFIG_FILES in #(
12024 *\'*) :
12025 eval set x "$CONFIG_FILES" ;; #(
12026 *) :
12027 set x $CONFIG_FILES ;; #(
12028 *) :
12029 ;;
12030 esac
12031 shift
12032 # Used to flag and report bootstrapping failures.
12033 am_rc=0
12034 for am_mf
12035 do
12036 # Strip MF so we end up with the name of the file.
12037 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
12038 # Check whether this is an Automake generated Makefile which includes
12039 # dependency-tracking related rules and includes.
12040 # Grep'ing the whole file directly is not great: AIX grep has a line
12041 # limit of 2048, but all sed's we know have understand at least 4000.
12042 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12043 || continue
12044 am_dirpart=`$as_dirname -- "$am_mf" ||
12045 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12046 X"$am_mf" : 'X\(//\)[^/]' \| \
12047 X"$am_mf" : 'X\(//\)$' \| \
12048 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12049 $as_echo X"$am_mf" |
12050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12051 s//\1/
12052 q
12053 }
12054 /^X\(\/\/\)[^/].*/{
12055 s//\1/
12056 q
12057 }
12058 /^X\(\/\/\)$/{
12059 s//\1/
12060 q
12061 }
12062 /^X\(\/\).*/{
12063 s//\1/
12064 q
12065 }
12066 s/.*/./; q'`
12067 am_filepart=`$as_basename -- "$am_mf" ||
12068 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12069 X"$am_mf" : 'X\(//\)$' \| \
12070 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12071 $as_echo X/"$am_mf" |
12072 sed '/^.*\/\([^/][^/]*\)\/*$/{
12073 s//\1/
12074 q
12075 }
12076 /^X\/\(\/\/\)$/{
12077 s//\1/
12078 q
12079 }
12080 /^X\/\(\/\).*/{
12081 s//\1/
12082 q
12083 }
12084 s/.*/./; q'`
12085 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12086 && sed -e '/# am--include-marker/d' "$am_filepart" \
12087 | $MAKE -f - am--depfiles" >&5
12088 (cd "$am_dirpart" \
12089 && sed -e '/# am--include-marker/d' "$am_filepart" \
12090 | $MAKE -f - am--depfiles) >&5 2>&5
12091 ac_status=$?
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } || am_rc=$?
12094 done
12095 if test $am_rc -ne 0; then
12096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12098 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12099 for automatic dependency tracking. Try re-running configure with the
12100 '--disable-dependency-tracking' option to at least be able to build
12101 the package (albeit without support for automatic dependency tracking).
12102 See \`config.log' for more details" "$LINENO" 5; }
12103 fi
12104 { am_dirpart=; unset am_dirpart;}
12105 { am_filepart=; unset am_filepart;}
12106 { am_mf=; unset am_mf;}
12107 { am_rc=; unset am_rc;}
12108 rm -f conftest-deps.mk
12109 }
12110 ;;
12111
12112 esac
12113 done # for ac_tag
12114
12115
12116 as_fn_exit 0
12117 _ACEOF
12118 ac_clean_files=$ac_clean_files_save
12119
12120 test $ac_write_fail = 0 ||
12121 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12122
12123
12124 # configure is writing to config.log, and then calls config.status.
12125 # config.status does its own redirection, appending to config.log.
12126 # Unfortunately, on DOS this fails, as config.log is still kept open
12127 # by configure, so config.status won't be able to write to it; its
12128 # output is simply discarded. So we exec the FD to /dev/null,
12129 # effectively closing config.log, so it can be properly (re)opened and
12130 # appended to by config.status. When coming back to configure, we
12131 # need to make the FD available again.
12132 if test "$no_create" != yes; then
12133 ac_cs_success=:
12134 ac_config_status_args=
12135 test "$silent" = yes &&
12136 ac_config_status_args="$ac_config_status_args --quiet"
12137 exec 5>/dev/null
12138 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12139 exec 5>>config.log
12140 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12141 # would make configure fail if this is the last instruction.
12142 $ac_cs_success || as_fn_exit 1
12143 fi
12144 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12146 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12147 fi
12148
12149