configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for encodings 1.0.6.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/font/encodings/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
271 $0: https://gitlab.freedesktop.org/xorg/font/encodings/issues
272 $0: about your system, including any error possibly output
273 $0: before this message. Then install a modern shell, or
274 $0: manually run the script under such a shell if you do
275 $0: have one."
276 fi
277 exit 1
278 fi
279 fi
280 fi
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
286
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
294 {
295 { eval $1=; unset $1;}
296 }
297 as_unset=as_fn_unset
298
299
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
303 as_fn_set_status ()
304 {
305 return $1
306 } # as_fn_set_status
307
308 # as_fn_exit STATUS
309 # -----------------
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311 as_fn_exit ()
312 {
313 set +e
314 as_fn_set_status $1
315 exit $1
316 } # as_fn_exit
317 # as_fn_nop
318 # ---------
319 # Do nothing but, unlike ":", preserve the value of $?.
320 as_fn_nop ()
321 {
322 return $?
323 }
324 as_nop=as_fn_nop
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else $as_nop
394 as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 }
398 fi # as_fn_append
399
400 # as_fn_arith ARG...
401 # ------------------
402 # Perform arithmetic evaluation on the ARGs, and store the result in the
403 # global $as_val. Take advantage of shells that can avoid forks. The arguments
404 # must be portable across $(()) and expr.
405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406 then :
407 eval 'as_fn_arith ()
408 {
409 as_val=$(( $* ))
410 }'
411 else $as_nop
412 as_fn_arith ()
413 {
414 as_val=`expr "$@" || test $? -eq 1`
415 }
416 fi # as_fn_arith
417
418 # as_fn_nop
419 # ---------
420 # Do nothing but, unlike ":", preserve the value of $?.
421 as_fn_nop ()
422 {
423 return $?
424 }
425 as_nop=as_fn_nop
426
427 # as_fn_error STATUS ERROR [LINENO LOG_FD]
428 # ----------------------------------------
429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431 # script with STATUS, using 1 if that was 0.
432 as_fn_error ()
433 {
434 as_status=$1; test $as_status -eq 0 && as_status=1
435 if test "$4"; then
436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 fi
439 printf "%s\n" "$as_me: error: $2" >&2
440 as_fn_exit $as_status
441 } # as_fn_error
442
443 if expr a : '\(a\)' >/dev/null 2>&1 &&
444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
445 as_expr=expr
446 else
447 as_expr=false
448 fi
449
450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451 as_basename=basename
452 else
453 as_basename=false
454 fi
455
456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457 as_dirname=dirname
458 else
459 as_dirname=false
460 fi
461
462 as_me=`$as_basename -- "$0" ||
463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464 X"$0" : 'X\(//\)$' \| \
465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466 printf "%s\n" X/"$0" |
467 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\/\)$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\).*/{
476 s//\1/
477 q
478 }
479 s/.*/./; q'`
480
481 # Avoid depending upon Character Ranges.
482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485 as_cr_digits='0123456789'
486 as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489 as_lineno_1=$LINENO as_lineno_1a=$LINENO
490 as_lineno_2=$LINENO as_lineno_2a=$LINENO
491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
494 sed -n '
495 p
496 /[$]LINENO/=
497 ' <$as_myself |
498 sed '
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547
548 rm -f conf$$ conf$$.exe conf$$.file
549 if test -d conf$$.dir; then
550 rm -f conf$$.dir/conf$$.file
551 else
552 rm -f conf$$.dir
553 mkdir conf$$.dir 2>/dev/null
554 fi
555 if (echo >conf$$.file) 2>/dev/null; then
556 if ln -s conf$$.file conf$$ 2>/dev/null; then
557 as_ln_s='ln -s'
558 # ... but there are two gotchas:
559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561 # In both cases, we have to default to `cp -pR'.
562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563 as_ln_s='cp -pR'
564 elif ln conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s=ln
566 else
567 as_ln_s='cp -pR'
568 fi
569 else
570 as_ln_s='cp -pR'
571 fi
572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573 rmdir conf$$.dir 2>/dev/null
574
575 if mkdir -p . 2>/dev/null; then
576 as_mkdir_p='mkdir -p "$as_dir"'
577 else
578 test -d ./-p && rmdir ./-p
579 as_mkdir_p=false
580 fi
581
582 as_test_x='test -x'
583 as_executable_p=as_fn_executable_p
584
585 # Sed expression to map a string onto a valid CPP name.
586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588 # Sed expression to map a string onto a valid variable name.
589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591
592 test -n "$DJDIR" || exec 7<&0 </dev/null
593 exec 6>&1
594
595 # Name of the host.
596 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597 # so uname gets run too.
598 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600 #
601 # Initializations.
602 #
603 ac_default_prefix=/usr/local
604 ac_clean_files=
605 ac_config_libobj_dir=.
606 LIBOBJS=
607 cross_compiling=no
608 subdirs=
609 MFLAGS=
610 MAKEFLAGS=
611
612 # Identity of this package.
613 PACKAGE_NAME='encodings'
614 PACKAGE_TARNAME='encodings'
615 PACKAGE_VERSION='1.0.6'
616 PACKAGE_STRING='encodings 1.0.6'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/font/encodings/issues'
618 PACKAGE_URL=''
619
620 # Factoring default headers for most tests.
621 ac_includes_default="\
622 #include <stddef.h>
623 #ifdef HAVE_STDIO_H
624 # include <stdio.h>
625 #endif
626 #ifdef HAVE_STDLIB_H
627 # include <stdlib.h>
628 #endif
629 #ifdef HAVE_STRING_H
630 # include <string.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
640 #endif
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
643 #endif
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
646 #endif
647 #ifdef HAVE_UNISTD_H
648 # include <unistd.h>
649 #endif"
650
651 ac_header_c_list=
652 ac_subst_vars='am__EXEEXT_FALSE
653 am__EXEEXT_TRUE
654 LTLIBOBJS
655 LIBOBJS
656 ENCODINGSDIR
657 FONTROOTDIR
658 GZIP
659 GZIP_LARGE_FALSE
660 GZIP_LARGE_TRUE
661 GZIP_SMALL_FALSE
662 GZIP_SMALL_TRUE
663 MKFONTSCALE
664 MAN_SUBSTS
665 XORG_MAN_PAGE
666 ADMIN_MAN_DIR
667 DRIVER_MAN_DIR
668 MISC_MAN_DIR
669 FILE_MAN_DIR
670 LIB_MAN_DIR
671 APP_MAN_DIR
672 ADMIN_MAN_SUFFIX
673 DRIVER_MAN_SUFFIX
674 MISC_MAN_SUFFIX
675 FILE_MAN_SUFFIX
676 LIB_MAN_SUFFIX
677 APP_MAN_SUFFIX
678 SED
679 host_os
680 host_vendor
681 host_cpu
682 host
683 build_os
684 build_vendor
685 build_cpu
686 build
687 INSTALL_CMD
688 PKG_CONFIG_LIBDIR
689 PKG_CONFIG_PATH
690 PKG_CONFIG
691 CHANGELOG_CMD
692 STRICT_CFLAGS
693 CWARNFLAGS
694 BASE_CFLAGS
695 am__fastdepCC_FALSE
696 am__fastdepCC_TRUE
697 CCDEPMODE
698 am__nodep
699 AMDEPBACKSLASH
700 AMDEP_FALSE
701 AMDEP_TRUE
702 am__include
703 DEPDIR
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
710 CC
711 AM_BACKSLASH
712 AM_DEFAULT_VERBOSITY
713 AM_DEFAULT_V
714 AM_V
715 CSCOPE
716 ETAGS
717 CTAGS
718 am__untar
719 am__tar
720 AMTAR
721 am__leading_dot
722 SET_MAKE
723 AWK
724 mkdir_p
725 MKDIR_P
726 INSTALL_STRIP_PROGRAM
727 STRIP
728 install_sh
729 MAKEINFO
730 AUTOHEADER
731 AUTOMAKE
732 AUTOCONF
733 ACLOCAL
734 VERSION
735 PACKAGE
736 CYGPATH_W
737 am__isrc
738 INSTALL_DATA
739 INSTALL_SCRIPT
740 INSTALL_PROGRAM
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 runstatedir
761 localstatedir
762 sharedstatedir
763 sysconfdir
764 datadir
765 datarootdir
766 libexecdir
767 sbindir
768 bindir
769 program_transform_name
770 prefix
771 exec_prefix
772 PACKAGE_URL
773 PACKAGE_BUGREPORT
774 PACKAGE_STRING
775 PACKAGE_VERSION
776 PACKAGE_TARNAME
777 PACKAGE_NAME
778 PATH_SEPARATOR
779 SHELL
780 am__quote'
781 ac_subst_files=''
782 ac_user_opts='
783 enable_option_checking
784 enable_silent_rules
785 enable_dependency_tracking
786 enable_selective_werror
787 enable_strict_compilation
788 enable_gzip_small_encodings
789 enable_gzip_large_encodings
790 with_fontrootdir
791 with_encodingsdir
792 '
793 ac_precious_vars='build_alias
794 host_alias
795 target_alias
796 CC
797 CFLAGS
798 LDFLAGS
799 LIBS
800 CPPFLAGS
801 PKG_CONFIG
802 PKG_CONFIG_PATH
803 PKG_CONFIG_LIBDIR'
804
805
806 # Initialize some variables set by options.
807 ac_init_help=
808 ac_init_version=false
809 ac_unrecognized_opts=
810 ac_unrecognized_sep=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
813 cache_file=/dev/null
814 exec_prefix=NONE
815 no_create=
816 no_recursion=
817 prefix=NONE
818 program_prefix=NONE
819 program_suffix=NONE
820 program_transform_name=s,x,x,
821 silent=
822 site=
823 srcdir=
824 verbose=
825 x_includes=NONE
826 x_libraries=NONE
827
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 runstatedir='${localstatedir}/run'
843 includedir='${prefix}/include'
844 oldincludedir='/usr/include'
845 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846 infodir='${datarootdir}/info'
847 htmldir='${docdir}'
848 dvidir='${docdir}'
849 pdfdir='${docdir}'
850 psdir='${docdir}'
851 libdir='${exec_prefix}/lib'
852 localedir='${datarootdir}/locale'
853 mandir='${datarootdir}/man'
854
855 ac_prev=
856 ac_dashdash=
857 for ac_option
858 do
859 # If the previous option needs an argument, assign it.
860 if test -n "$ac_prev"; then
861 eval $ac_prev=\$ac_option
862 ac_prev=
863 continue
864 fi
865
866 case $ac_option in
867 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868 *=) ac_optarg= ;;
869 *) ac_optarg=yes ;;
870 esac
871
872 case $ac_dashdash$ac_option in
873 --)
874 ac_dashdash=yes ;;
875
876 -bindir | --bindir | --bindi | --bind | --bin | --bi)
877 ac_prev=bindir ;;
878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879 bindir=$ac_optarg ;;
880
881 -build | --build | --buil | --bui | --bu)
882 ac_prev=build_alias ;;
883 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884 build_alias=$ac_optarg ;;
885
886 -cache-file | --cache-file | --cache-fil | --cache-fi \
887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888 ac_prev=cache_file ;;
889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891 cache_file=$ac_optarg ;;
892
893 --config-cache | -C)
894 cache_file=config.cache ;;
895
896 -datadir | --datadir | --datadi | --datad)
897 ac_prev=datadir ;;
898 -datadir=* | --datadir=* | --datadi=* | --datad=*)
899 datadir=$ac_optarg ;;
900
901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902 | --dataroo | --dataro | --datar)
903 ac_prev=datarootdir ;;
904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906 datarootdir=$ac_optarg ;;
907
908 -disable-* | --disable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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=`printf "%s\n" "$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--disable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=no ;;
923
924 -docdir | --docdir | --docdi | --doc | --do)
925 ac_prev=docdir ;;
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 docdir=$ac_optarg ;;
928
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 ac_prev=dvidir ;;
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 dvidir=$ac_optarg ;;
933
934 -enable-* | --enable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: \`$ac_useropt'"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=\$ac_optarg ;;
949
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
958
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
962
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
969
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
974
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
980
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
987
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
992
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
997
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1004
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1009
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1016
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1021
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1025
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1029
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1033
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1042
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1047
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1054
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1061
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1078
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1083
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1088
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1092
1093 -runstatedir | --runstatedir | --runstatedi | --runstated \
1094 | --runstate | --runstat | --runsta | --runst | --runs \
1095 | --run | --ru | --r)
1096 ac_prev=runstatedir ;;
1097 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1098 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1099 | --run=* | --ru=* | --r=*)
1100 runstatedir=$ac_optarg ;;
1101
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 ac_prev=sbindir ;;
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 | --sbi=* | --sb=*)
1106 sbindir=$ac_optarg ;;
1107
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1111 | --sha | --sh)
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 | --sha=* | --sh=*)
1117 sharedstatedir=$ac_optarg ;;
1118
1119 -site | --site | --sit)
1120 ac_prev=site ;;
1121 -site=* | --site=* | --sit=*)
1122 site=$ac_optarg ;;
1123
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 ac_prev=srcdir ;;
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1128
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1135
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1140
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 verbose=yes ;;
1143
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1146
1147 -with-* | --with-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid package name: \`$ac_useropt'"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1155 *"
1156 "with_$ac_useropt"
1157 "*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval with_$ac_useropt=\$ac_optarg ;;
1162
1163 -without-* | --without-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error $? "invalid package name: \`$ac_useropt'"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172 "with_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=no ;;
1178
1179 --x)
1180 # Obsolete; use --with-x.
1181 with_x=yes ;;
1182
1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184 | --x-incl | --x-inc | --x-in | --x-i)
1185 ac_prev=x_includes ;;
1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188 x_includes=$ac_optarg ;;
1189
1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192 ac_prev=x_libraries ;;
1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195 x_libraries=$ac_optarg ;;
1196
1197 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198 Try \`$0 --help' for more information"
1199 ;;
1200
1201 *=*)
1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203 # Reject names that are not valid shell variable names.
1204 case $ac_envvar in #(
1205 '' | [0-9]* | *[!_$as_cr_alnum]* )
1206 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207 esac
1208 eval $ac_envvar=\$ac_optarg
1209 export $ac_envvar ;;
1210
1211 *)
1212 # FIXME: should be removed in autoconf 3.0.
1213 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1216 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217 ;;
1218
1219 esac
1220 done
1221
1222 if test -n "$ac_prev"; then
1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224 as_fn_error $? "missing argument to $ac_option"
1225 fi
1226
1227 if test -n "$ac_unrecognized_opts"; then
1228 case $enable_option_checking in
1229 no) ;;
1230 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232 esac
1233 fi
1234
1235 # Check all directory arguments for consistency.
1236 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237 datadir sysconfdir sharedstatedir localstatedir includedir \
1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239 libdir localedir mandir runstatedir
1240 do
1241 eval ac_val=\$$ac_var
1242 # Remove trailing slashes.
1243 case $ac_val in
1244 */ )
1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246 eval $ac_var=\$ac_val;;
1247 esac
1248 # Be sure to have absolute directory names.
1249 case $ac_val in
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252 esac
1253 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254 done
1255
1256 # There might be people who depend on the old broken behavior: `$host'
1257 # used to hold the argument of --host etc.
1258 # FIXME: To remove some day.
1259 build=$build_alias
1260 host=$host_alias
1261 target=$target_alias
1262
1263 # FIXME: To remove some day.
1264 if test "x$host_alias" != x; then
1265 if test "x$build_alias" = x; then
1266 cross_compiling=maybe
1267 elif test "x$build_alias" != "x$host_alias"; then
1268 cross_compiling=yes
1269 fi
1270 fi
1271
1272 ac_tool_prefix=
1273 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275 test "$silent" = yes && exec 6>/dev/null
1276
1277
1278 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279 ac_ls_di=`ls -di .` &&
1280 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281 as_fn_error $? "working directory cannot be determined"
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283 as_fn_error $? "pwd does not report name of working directory"
1284
1285
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288 ac_srcdir_defaulted=yes
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir=`$as_dirname -- "$as_myself" ||
1291 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$as_myself" : 'X\(//\)[^/]' \| \
1293 X"$as_myself" : 'X\(//\)$' \| \
1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295 printf "%s\n" X"$as_myself" |
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\/\)[^/].*/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\).*/{
1309 s//\1/
1310 q
1311 }
1312 s/.*/./; q'`
1313 srcdir=$ac_confdir
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 srcdir=..
1316 fi
1317 else
1318 ac_srcdir_defaulted=no
1319 fi
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323 fi
1324 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325 ac_abs_confdir=`(
1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327 pwd)`
1328 # When building in place, set srcdir=.
1329 if test "$ac_abs_confdir" = "$ac_pwd"; then
1330 srcdir=.
1331 fi
1332 # Remove unnecessary trailing slashes from srcdir.
1333 # Double slashes in file names in object file debugging info
1334 # mess up M-x gdb in Emacs.
1335 case $srcdir in
1336 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337 esac
1338 for ac_var in $ac_precious_vars; do
1339 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_env_${ac_var}_value=\$${ac_var}
1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343 done
1344
1345 #
1346 # Report the --help message.
1347 #
1348 if test "$ac_init_help" = "long"; then
1349 # Omit some internal or obsolete options to make the list less imposing.
1350 # This message is too long to be a string in the A/UX 3.1 sh.
1351 cat <<_ACEOF
1352 \`configure' configures encodings 1.0.6 to adapt to many kinds of systems.
1353
1354 Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357 VAR=VALUE. See below for descriptions of some of the useful variables.
1358
1359 Defaults for the options are specified in brackets.
1360
1361 Configuration:
1362 -h, --help display this help and exit
1363 --help=short display options specific to this package
1364 --help=recursive display the short help of all the included packages
1365 -V, --version display version information and exit
1366 -q, --quiet, --silent do not print \`checking ...' messages
1367 --cache-file=FILE cache test results in FILE [disabled]
1368 -C, --config-cache alias for \`--cache-file=config.cache'
1369 -n, --no-create do not create output files
1370 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1371
1372 Installation directories:
1373 --prefix=PREFIX install architecture-independent files in PREFIX
1374 [$ac_default_prefix]
1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1376 [PREFIX]
1377
1378 By default, \`make install' will install all the files in
1379 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1380 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381 for instance \`--prefix=\$HOME'.
1382
1383 For better control, use the options below.
1384
1385 Fine tuning of the installation directories:
1386 --bindir=DIR user executables [EPREFIX/bin]
1387 --sbindir=DIR system admin executables [EPREFIX/sbin]
1388 --libexecdir=DIR program executables [EPREFIX/libexec]
1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1392 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1393 --libdir=DIR object code libraries [EPREFIX/lib]
1394 --includedir=DIR C header files [PREFIX/include]
1395 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1398 --infodir=DIR info documentation [DATAROOTDIR/info]
1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1400 --mandir=DIR man documentation [DATAROOTDIR/man]
1401 --docdir=DIR documentation root [DATAROOTDIR/doc/encodings]
1402 --htmldir=DIR html documentation [DOCDIR]
1403 --dvidir=DIR dvi documentation [DOCDIR]
1404 --pdfdir=DIR pdf documentation [DOCDIR]
1405 --psdir=DIR ps documentation [DOCDIR]
1406 _ACEOF
1407
1408 cat <<\_ACEOF
1409
1410 Program names:
1411 --program-prefix=PREFIX prepend PREFIX to installed program names
1412 --program-suffix=SUFFIX append SUFFIX to installed program names
1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1414
1415 System types:
1416 --build=BUILD configure for building on BUILD [guessed]
1417 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1418 _ACEOF
1419 fi
1420
1421 if test -n "$ac_init_help"; then
1422 case $ac_init_help in
1423 short | recursive ) echo "Configuration of encodings 1.0.6:";;
1424 esac
1425 cat <<\_ACEOF
1426
1427 Optional Features:
1428 --disable-option-checking ignore unrecognized --enable/--with options
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1431 --enable-silent-rules less verbose build output (undo: "make V=1")
1432 --disable-silent-rules verbose build output (undo: "make V=0")
1433 --enable-dependency-tracking
1434 do not reject slow dependency extractors
1435 --disable-dependency-tracking
1436 speeds up one-time build
1437 --disable-selective-werror
1438 Turn off selective compiler errors. (default:
1439 enabled)
1440 --enable-strict-compilation
1441 Enable all warnings from compiler and make them
1442 errors (default: disabled)
1443 --disable-gzip-small-encodings
1444 Disable compression of small encoding files
1445 --disable-gzip-large-encodings
1446 Disable compression of large encoding files
1447
1448 Optional Packages:
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1451 --with-fontrootdir=DIR Path to root directory for font files
1452 --with-encodingsdir=DIR Path to encodings files [FONTROOTDIR/encodings]
1453
1454 Some influential environment variables:
1455 CC C compiler command
1456 CFLAGS C compiler flags
1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1458 nonstandard directory <lib dir>
1459 LIBS libraries to pass to the linker, e.g. -l<library>
1460 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1461 you have headers in a nonstandard directory <include dir>
1462 PKG_CONFIG path to pkg-config utility
1463 PKG_CONFIG_PATH
1464 directories to add to pkg-config's search path
1465 PKG_CONFIG_LIBDIR
1466 path overriding pkg-config's built-in search path
1467
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1470
1471 Report bugs to <https://gitlab.freedesktop.org/xorg/font/encodings/issues>.
1472 _ACEOF
1473 ac_status=$?
1474 fi
1475
1476 if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479 test -d "$ac_dir" ||
1480 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481 continue
1482 ac_builddir=.
1483
1484 case "$ac_dir" in
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *)
1487 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1488 # A ".." for each directory in $ac_dir_suffix.
1489 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 esac ;;
1494 esac
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1499
1500 case $srcdir in
1501 .) # We are building in place.
1502 ac_srcdir=.
1503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
1506 ac_srcdir=$srcdir$ac_dir_suffix;
1507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1509 *) # Relative name.
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 esac
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for configure.gnu first; this name is used for a wrapper for
1518 # Metaconfig's "Configure" on case-insensitive file systems.
1519 if test -f "$ac_srcdir/configure.gnu"; then
1520 echo &&
1521 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522 elif test -f "$ac_srcdir/configure"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure" --help=recursive
1525 else
1526 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527 fi || ac_status=$?
1528 cd "$ac_pwd" || { ac_status=$?; break; }
1529 done
1530 fi
1531
1532 test -n "$ac_init_help" && exit $ac_status
1533 if $ac_init_version; then
1534 cat <<\_ACEOF
1535 encodings configure 1.0.6
1536 generated by GNU Autoconf 2.71
1537
1538 Copyright (C) 2021 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1541 _ACEOF
1542 exit
1543 fi
1544
1545 ## ------------------------ ##
1546 ## Autoconf initialization. ##
1547 ## ------------------------ ##
1548
1549 # ac_fn_c_try_compile LINENO
1550 # --------------------------
1551 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1552 ac_fn_c_try_compile ()
1553 {
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 rm -f conftest.$ac_objext conftest.beam
1556 if { { ac_try="$ac_compile"
1557 case "(($ac_try" in
1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559 *) ac_try_echo=$ac_try;;
1560 esac
1561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 printf "%s\n" "$ac_try_echo"; } >&5
1563 (eval "$ac_compile") 2>conftest.err
1564 ac_status=$?
1565 if test -s conftest.err; then
1566 grep -v '^ *+' conftest.err >conftest.er1
1567 cat conftest.er1 >&5
1568 mv -f conftest.er1 conftest.err
1569 fi
1570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; } && {
1572 test -z "$ac_c_werror_flag" ||
1573 test ! -s conftest.err
1574 } && test -s conftest.$ac_objext
1575 then :
1576 ac_retval=0
1577 else $as_nop
1578 printf "%s\n" "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1580
1581 ac_retval=1
1582 fi
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584 as_fn_set_status $ac_retval
1585
1586 } # ac_fn_c_try_compile
1587
1588 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1589 # ------------------------------------------------------------------
1590 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1591 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1592 ac_fn_check_decl ()
1593 {
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 as_decl_name=`echo $2|sed 's/ *(.*//'`
1596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1597 printf %s "checking whether $as_decl_name is declared... " >&6; }
1598 if eval test \${$3+y}
1599 then :
1600 printf %s "(cached) " >&6
1601 else $as_nop
1602 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1603 eval ac_save_FLAGS=\$$6
1604 as_fn_append $6 " $5"
1605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606 /* end confdefs.h. */
1607 $4
1608 int
1609 main (void)
1610 {
1611 #ifndef $as_decl_name
1612 #ifdef __cplusplus
1613 (void) $as_decl_use;
1614 #else
1615 (void) $as_decl_name;
1616 #endif
1617 #endif
1618
1619 ;
1620 return 0;
1621 }
1622 _ACEOF
1623 if ac_fn_c_try_compile "$LINENO"
1624 then :
1625 eval "$3=yes"
1626 else $as_nop
1627 eval "$3=no"
1628 fi
1629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1630 eval $6=\$ac_save_FLAGS
1631
1632 fi
1633 eval ac_res=\$$3
1634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635 printf "%s\n" "$ac_res" >&6; }
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637
1638 } # ac_fn_check_decl
1639
1640 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1641 # -------------------------------------------------------
1642 # Tests whether HEADER exists and can be compiled using the include files in
1643 # INCLUDES, setting the cache variable VAR accordingly.
1644 ac_fn_c_check_header_compile ()
1645 {
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648 printf %s "checking for $2... " >&6; }
1649 if eval test \${$3+y}
1650 then :
1651 printf %s "(cached) " >&6
1652 else $as_nop
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654 /* end confdefs.h. */
1655 $4
1656 #include <$2>
1657 _ACEOF
1658 if ac_fn_c_try_compile "$LINENO"
1659 then :
1660 eval "$3=yes"
1661 else $as_nop
1662 eval "$3=no"
1663 fi
1664 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1665 fi
1666 eval ac_res=\$$3
1667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 printf "%s\n" "$ac_res" >&6; }
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670
1671 } # ac_fn_c_check_header_compile
1672
1673 # ac_fn_c_try_link LINENO
1674 # -----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_link ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1680 if { { ac_try="$ac_link"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 printf "%s\n" "$ac_try_echo"; } >&5
1687 (eval "$ac_link") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest$ac_exeext && {
1699 test "$cross_compiling" = yes ||
1700 test -x conftest$ac_exeext
1701 }
1702 then :
1703 ac_retval=0
1704 else $as_nop
1705 printf "%s\n" "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 ac_retval=1
1709 fi
1710 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1711 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1712 # interfere with the next link command; also delete a directory that is
1713 # left behind by Apple's compiler. We do this before executing the actions.
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_link
1719 ac_configure_args_raw=
1720 for ac_arg
1721 do
1722 case $ac_arg in
1723 *\'*)
1724 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1725 esac
1726 as_fn_append ac_configure_args_raw " '$ac_arg'"
1727 done
1728
1729 case $ac_configure_args_raw in
1730 *$as_nl*)
1731 ac_safe_unquote= ;;
1732 *)
1733 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1734 ac_unsafe_a="$ac_unsafe_z#~"
1735 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1736 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1737 esac
1738
1739 cat >config.log <<_ACEOF
1740 This file contains any messages produced by compilers while
1741 running configure, to aid debugging if configure makes a mistake.
1742
1743 It was created by encodings $as_me 1.0.6, which was
1744 generated by GNU Autoconf 2.71. Invocation command line was
1745
1746 $ $0$ac_configure_args_raw
1747
1748 _ACEOF
1749 exec 5>>config.log
1750 {
1751 cat <<_ASUNAME
1752 ## --------- ##
1753 ## Platform. ##
1754 ## --------- ##
1755
1756 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1757 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1758 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1759 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1760 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1761
1762 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1763 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1764
1765 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1766 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1767 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1768 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1769 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1770 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1771 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1772
1773 _ASUNAME
1774
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 for as_dir in $PATH
1777 do
1778 IFS=$as_save_IFS
1779 case $as_dir in #(((
1780 '') as_dir=./ ;;
1781 */) ;;
1782 *) as_dir=$as_dir/ ;;
1783 esac
1784 printf "%s\n" "PATH: $as_dir"
1785 done
1786 IFS=$as_save_IFS
1787
1788 } >&5
1789
1790 cat >&5 <<_ACEOF
1791
1792
1793 ## ----------- ##
1794 ## Core tests. ##
1795 ## ----------- ##
1796
1797 _ACEOF
1798
1799
1800 # Keep a trace of the command line.
1801 # Strip out --no-create and --no-recursion so they do not pile up.
1802 # Strip out --silent because we don't want to record it for future runs.
1803 # Also quote any args containing shell meta-characters.
1804 # Make two passes to allow for proper duplicate-argument suppression.
1805 ac_configure_args=
1806 ac_configure_args0=
1807 ac_configure_args1=
1808 ac_must_keep_next=false
1809 for ac_pass in 1 2
1810 do
1811 for ac_arg
1812 do
1813 case $ac_arg in
1814 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1815 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1816 | -silent | --silent | --silen | --sile | --sil)
1817 continue ;;
1818 *\'*)
1819 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1820 esac
1821 case $ac_pass in
1822 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1823 2)
1824 as_fn_append ac_configure_args1 " '$ac_arg'"
1825 if test $ac_must_keep_next = true; then
1826 ac_must_keep_next=false # Got value, back to normal.
1827 else
1828 case $ac_arg in
1829 *=* | --config-cache | -C | -disable-* | --disable-* \
1830 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1831 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1832 | -with-* | --with-* | -without-* | --without-* | --x)
1833 case "$ac_configure_args0 " in
1834 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1835 esac
1836 ;;
1837 -* ) ac_must_keep_next=true ;;
1838 esac
1839 fi
1840 as_fn_append ac_configure_args " '$ac_arg'"
1841 ;;
1842 esac
1843 done
1844 done
1845 { ac_configure_args0=; unset ac_configure_args0;}
1846 { ac_configure_args1=; unset ac_configure_args1;}
1847
1848 # When interrupted or exit'd, cleanup temporary files, and complete
1849 # config.log. We remove comments because anyway the quotes in there
1850 # would cause problems or look ugly.
1851 # WARNING: Use '\'' to represent an apostrophe within the trap.
1852 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1853 trap 'exit_status=$?
1854 # Sanitize IFS.
1855 IFS=" "" $as_nl"
1856 # Save into config.log some information that might help in debugging.
1857 {
1858 echo
1859
1860 printf "%s\n" "## ---------------- ##
1861 ## Cache variables. ##
1862 ## ---------------- ##"
1863 echo
1864 # The following way of writing the cache mishandles newlines in values,
1865 (
1866 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1867 eval ac_val=\$$ac_var
1868 case $ac_val in #(
1869 *${as_nl}*)
1870 case $ac_var in #(
1871 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1872 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1873 esac
1874 case $ac_var in #(
1875 _ | IFS | as_nl) ;; #(
1876 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1877 *) { eval $ac_var=; unset $ac_var;} ;;
1878 esac ;;
1879 esac
1880 done
1881 (set) 2>&1 |
1882 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1883 *${as_nl}ac_space=\ *)
1884 sed -n \
1885 "s/'\''/'\''\\\\'\'''\''/g;
1886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1887 ;; #(
1888 *)
1889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1890 ;;
1891 esac |
1892 sort
1893 )
1894 echo
1895
1896 printf "%s\n" "## ----------------- ##
1897 ## Output variables. ##
1898 ## ----------------- ##"
1899 echo
1900 for ac_var in $ac_subst_vars
1901 do
1902 eval ac_val=\$$ac_var
1903 case $ac_val in
1904 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905 esac
1906 printf "%s\n" "$ac_var='\''$ac_val'\''"
1907 done | sort
1908 echo
1909
1910 if test -n "$ac_subst_files"; then
1911 printf "%s\n" "## ------------------- ##
1912 ## File substitutions. ##
1913 ## ------------------- ##"
1914 echo
1915 for ac_var in $ac_subst_files
1916 do
1917 eval ac_val=\$$ac_var
1918 case $ac_val in
1919 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1920 esac
1921 printf "%s\n" "$ac_var='\''$ac_val'\''"
1922 done | sort
1923 echo
1924 fi
1925
1926 if test -s confdefs.h; then
1927 printf "%s\n" "## ----------- ##
1928 ## confdefs.h. ##
1929 ## ----------- ##"
1930 echo
1931 cat confdefs.h
1932 echo
1933 fi
1934 test "$ac_signal" != 0 &&
1935 printf "%s\n" "$as_me: caught signal $ac_signal"
1936 printf "%s\n" "$as_me: exit $exit_status"
1937 } >&5
1938 rm -f core *.core core.conftest.* &&
1939 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1940 exit $exit_status
1941 ' 0
1942 for ac_signal in 1 2 13 15; do
1943 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1944 done
1945 ac_signal=0
1946
1947 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1948 rm -f -r conftest* confdefs.h
1949
1950 printf "%s\n" "/* confdefs.h */" > confdefs.h
1951
1952 # Predefined preprocessor variables.
1953
1954 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1955
1956 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1957
1958 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1959
1960 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1961
1962 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1963
1964 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1965
1966
1967 # Let the site file select an alternate cache file if it wants to.
1968 # Prefer an explicitly selected file to automatically selected ones.
1969 if test -n "$CONFIG_SITE"; then
1970 ac_site_files="$CONFIG_SITE"
1971 elif test "x$prefix" != xNONE; then
1972 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1973 else
1974 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1975 fi
1976
1977 for ac_site_file in $ac_site_files
1978 do
1979 case $ac_site_file in #(
1980 */*) :
1981 ;; #(
1982 *) :
1983 ac_site_file=./$ac_site_file ;;
1984 esac
1985 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1987 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1988 sed 's/^/| /' "$ac_site_file" >&5
1989 . "$ac_site_file" \
1990 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1991 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1992 as_fn_error $? "failed to load site script $ac_site_file
1993 See \`config.log' for more details" "$LINENO" 5; }
1994 fi
1995 done
1996
1997 if test -r "$cache_file"; then
1998 # Some versions of bash will fail to source /dev/null (special files
1999 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2000 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2002 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2003 case $cache_file in
2004 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2005 *) . "./$cache_file";;
2006 esac
2007 fi
2008 else
2009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2010 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2011 >$cache_file
2012 fi
2013
2014 # Test code for whether the C compiler supports C89 (global declarations)
2015 ac_c_conftest_c89_globals='
2016 /* Does the compiler advertise C89 conformance?
2017 Do not test the value of __STDC__, because some compilers set it to 0
2018 while being otherwise adequately conformant. */
2019 #if !defined __STDC__
2020 # error "Compiler does not advertise C89 conformance"
2021 #endif
2022
2023 #include <stddef.h>
2024 #include <stdarg.h>
2025 struct stat;
2026 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2027 struct buf { int x; };
2028 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2029 static char *e (p, i)
2030 char **p;
2031 int i;
2032 {
2033 return p[i];
2034 }
2035 static char *f (char * (*g) (char **, int), char **p, ...)
2036 {
2037 char *s;
2038 va_list v;
2039 va_start (v,p);
2040 s = g (p, va_arg (v,int));
2041 va_end (v);
2042 return s;
2043 }
2044
2045 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2046 function prototypes and stuff, but not \xHH hex character constants.
2047 These do not provoke an error unfortunately, instead are silently treated
2048 as an "x". The following induces an error, until -std is added to get
2049 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2050 array size at least. It is necessary to write \x00 == 0 to get something
2051 that is true only with -std. */
2052 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2053
2054 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2055 inside strings and character constants. */
2056 #define FOO(x) '\''x'\''
2057 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2058
2059 int test (int i, double x);
2060 struct s1 {int (*f) (int a);};
2061 struct s2 {int (*f) (double a);};
2062 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2063 int, int);'
2064
2065 # Test code for whether the C compiler supports C89 (body of main).
2066 ac_c_conftest_c89_main='
2067 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2068 '
2069
2070 # Test code for whether the C compiler supports C99 (global declarations)
2071 ac_c_conftest_c99_globals='
2072 // Does the compiler advertise C99 conformance?
2073 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2074 # error "Compiler does not advertise C99 conformance"
2075 #endif
2076
2077 #include <stdbool.h>
2078 extern int puts (const char *);
2079 extern int printf (const char *, ...);
2080 extern int dprintf (int, const char *, ...);
2081 extern void *malloc (size_t);
2082
2083 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2084 // dprintf is used instead of fprintf to avoid needing to declare
2085 // FILE and stderr.
2086 #define debug(...) dprintf (2, __VA_ARGS__)
2087 #define showlist(...) puts (#__VA_ARGS__)
2088 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2089 static void
2090 test_varargs_macros (void)
2091 {
2092 int x = 1234;
2093 int y = 5678;
2094 debug ("Flag");
2095 debug ("X = %d\n", x);
2096 showlist (The first, second, and third items.);
2097 report (x>y, "x is %d but y is %d", x, y);
2098 }
2099
2100 // Check long long types.
2101 #define BIG64 18446744073709551615ull
2102 #define BIG32 4294967295ul
2103 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2104 #if !BIG_OK
2105 #error "your preprocessor is broken"
2106 #endif
2107 #if BIG_OK
2108 #else
2109 #error "your preprocessor is broken"
2110 #endif
2111 static long long int bignum = -9223372036854775807LL;
2112 static unsigned long long int ubignum = BIG64;
2113
2114 struct incomplete_array
2115 {
2116 int datasize;
2117 double data[];
2118 };
2119
2120 struct named_init {
2121 int number;
2122 const wchar_t *name;
2123 double average;
2124 };
2125
2126 typedef const char *ccp;
2127
2128 static inline int
2129 test_restrict (ccp restrict text)
2130 {
2131 // See if C++-style comments work.
2132 // Iterate through items via the restricted pointer.
2133 // Also check for declarations in for loops.
2134 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2135 continue;
2136 return 0;
2137 }
2138
2139 // Check varargs and va_copy.
2140 static bool
2141 test_varargs (const char *format, ...)
2142 {
2143 va_list args;
2144 va_start (args, format);
2145 va_list args_copy;
2146 va_copy (args_copy, args);
2147
2148 const char *str = "";
2149 int number = 0;
2150 float fnumber = 0;
2151
2152 while (*format)
2153 {
2154 switch (*format++)
2155 {
2156 case '\''s'\'': // string
2157 str = va_arg (args_copy, const char *);
2158 break;
2159 case '\''d'\'': // int
2160 number = va_arg (args_copy, int);
2161 break;
2162 case '\''f'\'': // float
2163 fnumber = va_arg (args_copy, double);
2164 break;
2165 default:
2166 break;
2167 }
2168 }
2169 va_end (args_copy);
2170 va_end (args);
2171
2172 return *str && number && fnumber;
2173 }
2174 '
2175
2176 # Test code for whether the C compiler supports C99 (body of main).
2177 ac_c_conftest_c99_main='
2178 // Check bool.
2179 _Bool success = false;
2180 success |= (argc != 0);
2181
2182 // Check restrict.
2183 if (test_restrict ("String literal") == 0)
2184 success = true;
2185 char *restrict newvar = "Another string";
2186
2187 // Check varargs.
2188 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2189 test_varargs_macros ();
2190
2191 // Check flexible array members.
2192 struct incomplete_array *ia =
2193 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2194 ia->datasize = 10;
2195 for (int i = 0; i < ia->datasize; ++i)
2196 ia->data[i] = i * 1.234;
2197
2198 // Check named initializers.
2199 struct named_init ni = {
2200 .number = 34,
2201 .name = L"Test wide string",
2202 .average = 543.34343,
2203 };
2204
2205 ni.number = 58;
2206
2207 int dynamic_array[ni.number];
2208 dynamic_array[0] = argv[0][0];
2209 dynamic_array[ni.number - 1] = 543;
2210
2211 // work around unused variable warnings
2212 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2213 || dynamic_array[ni.number - 1] != 543);
2214 '
2215
2216 # Test code for whether the C compiler supports C11 (global declarations)
2217 ac_c_conftest_c11_globals='
2218 // Does the compiler advertise C11 conformance?
2219 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2220 # error "Compiler does not advertise C11 conformance"
2221 #endif
2222
2223 // Check _Alignas.
2224 char _Alignas (double) aligned_as_double;
2225 char _Alignas (0) no_special_alignment;
2226 extern char aligned_as_int;
2227 char _Alignas (0) _Alignas (int) aligned_as_int;
2228
2229 // Check _Alignof.
2230 enum
2231 {
2232 int_alignment = _Alignof (int),
2233 int_array_alignment = _Alignof (int[100]),
2234 char_alignment = _Alignof (char)
2235 };
2236 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2237
2238 // Check _Noreturn.
2239 int _Noreturn does_not_return (void) { for (;;) continue; }
2240
2241 // Check _Static_assert.
2242 struct test_static_assert
2243 {
2244 int x;
2245 _Static_assert (sizeof (int) <= sizeof (long int),
2246 "_Static_assert does not work in struct");
2247 long int y;
2248 };
2249
2250 // Check UTF-8 literals.
2251 #define u8 syntax error!
2252 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2253
2254 // Check duplicate typedefs.
2255 typedef long *long_ptr;
2256 typedef long int *long_ptr;
2257 typedef long_ptr long_ptr;
2258
2259 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2260 struct anonymous
2261 {
2262 union {
2263 struct { int i; int j; };
2264 struct { int k; long int l; } w;
2265 };
2266 int m;
2267 } v1;
2268 '
2269
2270 # Test code for whether the C compiler supports C11 (body of main).
2271 ac_c_conftest_c11_main='
2272 _Static_assert ((offsetof (struct anonymous, i)
2273 == offsetof (struct anonymous, w.k)),
2274 "Anonymous union alignment botch");
2275 v1.i = 2;
2276 v1.w.k = 5;
2277 ok |= v1.i != 5;
2278 '
2279
2280 # Test code for whether the C compiler supports C11 (complete).
2281 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2282 ${ac_c_conftest_c99_globals}
2283 ${ac_c_conftest_c11_globals}
2284
2285 int
2286 main (int argc, char **argv)
2287 {
2288 int ok = 0;
2289 ${ac_c_conftest_c89_main}
2290 ${ac_c_conftest_c99_main}
2291 ${ac_c_conftest_c11_main}
2292 return ok;
2293 }
2294 "
2295
2296 # Test code for whether the C compiler supports C99 (complete).
2297 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2298 ${ac_c_conftest_c99_globals}
2299
2300 int
2301 main (int argc, char **argv)
2302 {
2303 int ok = 0;
2304 ${ac_c_conftest_c89_main}
2305 ${ac_c_conftest_c99_main}
2306 return ok;
2307 }
2308 "
2309
2310 # Test code for whether the C compiler supports C89 (complete).
2311 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2312
2313 int
2314 main (int argc, char **argv)
2315 {
2316 int ok = 0;
2317 ${ac_c_conftest_c89_main}
2318 return ok;
2319 }
2320 "
2321
2322 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2323 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2324 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2325 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2326 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2327 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2328 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2329 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2330 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2331
2332 # Auxiliary files required by this configure script.
2333 ac_aux_files="config.guess config.sub compile missing install-sh"
2334
2335 # Locations in which to look for auxiliary files.
2336 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2337
2338 # Search for a directory containing all of the required auxiliary files,
2339 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2340 # If we don't find one directory that contains all the files we need,
2341 # we report the set of missing files from the *first* directory in
2342 # $ac_aux_dir_candidates and give up.
2343 ac_missing_aux_files=""
2344 ac_first_candidate=:
2345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 as_found=false
2348 for as_dir in $ac_aux_dir_candidates
2349 do
2350 IFS=$as_save_IFS
2351 case $as_dir in #(((
2352 '') as_dir=./ ;;
2353 */) ;;
2354 *) as_dir=$as_dir/ ;;
2355 esac
2356 as_found=:
2357
2358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2359 ac_aux_dir_found=yes
2360 ac_install_sh=
2361 for ac_aux in $ac_aux_files
2362 do
2363 # As a special case, if "install-sh" is required, that requirement
2364 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2365 # and $ac_install_sh is set appropriately for whichever one is found.
2366 if test x"$ac_aux" = x"install-sh"
2367 then
2368 if test -f "${as_dir}install-sh"; then
2369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2370 ac_install_sh="${as_dir}install-sh -c"
2371 elif test -f "${as_dir}install.sh"; then
2372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2373 ac_install_sh="${as_dir}install.sh -c"
2374 elif test -f "${as_dir}shtool"; then
2375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2376 ac_install_sh="${as_dir}shtool install -c"
2377 else
2378 ac_aux_dir_found=no
2379 if $ac_first_candidate; then
2380 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2381 else
2382 break
2383 fi
2384 fi
2385 else
2386 if test -f "${as_dir}${ac_aux}"; then
2387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2388 else
2389 ac_aux_dir_found=no
2390 if $ac_first_candidate; then
2391 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2392 else
2393 break
2394 fi
2395 fi
2396 fi
2397 done
2398 if test "$ac_aux_dir_found" = yes; then
2399 ac_aux_dir="$as_dir"
2400 break
2401 fi
2402 ac_first_candidate=false
2403
2404 as_found=false
2405 done
2406 IFS=$as_save_IFS
2407 if $as_found
2408 then :
2409
2410 else $as_nop
2411 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2412 fi
2413
2414
2415 # These three variables are undocumented and unsupported,
2416 # and are intended to be withdrawn in a future Autoconf release.
2417 # They can cause serious problems if a builder's source tree is in a directory
2418 # whose full name contains unusual characters.
2419 if test -f "${ac_aux_dir}config.guess"; then
2420 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2421 fi
2422 if test -f "${ac_aux_dir}config.sub"; then
2423 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2424 fi
2425 if test -f "$ac_aux_dir/configure"; then
2426 ac_configure="$SHELL ${ac_aux_dir}configure"
2427 fi
2428
2429 # Check that the precious variables saved in the cache have kept the same
2430 # value.
2431 ac_cache_corrupted=false
2432 for ac_var in $ac_precious_vars; do
2433 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2434 eval ac_new_set=\$ac_env_${ac_var}_set
2435 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2436 eval ac_new_val=\$ac_env_${ac_var}_value
2437 case $ac_old_set,$ac_new_set in
2438 set,)
2439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2440 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2441 ac_cache_corrupted=: ;;
2442 ,set)
2443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2444 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2445 ac_cache_corrupted=: ;;
2446 ,);;
2447 *)
2448 if test "x$ac_old_val" != "x$ac_new_val"; then
2449 # differences in whitespace do not lead to failure.
2450 ac_old_val_w=`echo x $ac_old_val`
2451 ac_new_val_w=`echo x $ac_new_val`
2452 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2454 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2455 ac_cache_corrupted=:
2456 else
2457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2458 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2459 eval $ac_var=\$ac_old_val
2460 fi
2461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2462 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2464 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2465 fi;;
2466 esac
2467 # Pass precious variables to config.status.
2468 if test "$ac_new_set" = set; then
2469 case $ac_new_val in
2470 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2471 *) ac_arg=$ac_var=$ac_new_val ;;
2472 esac
2473 case " $ac_configure_args " in
2474 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2475 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2476 esac
2477 fi
2478 done
2479 if $ac_cache_corrupted; then
2480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2481 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2483 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2484 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2485 and start over" "$LINENO" 5
2486 fi
2487 ## -------------------- ##
2488 ## Main body of script. ##
2489 ## -------------------- ##
2490
2491 ac_ext=c
2492 ac_cpp='$CPP $CPPFLAGS'
2493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2496
2497
2498 am__api_version='1.16'
2499
2500
2501
2502 # Find a good install program. We prefer a C program (faster),
2503 # so one script is as good as another. But avoid the broken or
2504 # incompatible versions:
2505 # SysV /etc/install, /usr/sbin/install
2506 # SunOS /usr/etc/install
2507 # IRIX /sbin/install
2508 # AIX /bin/install
2509 # AmigaOS /C/install, which installs bootblocks on floppy discs
2510 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2511 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2512 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2513 # OS/2's system install, which has a completely different semantic
2514 # ./install, which can be erroneously created by make from ./install.sh.
2515 # Reject install programs that cannot install multiple files.
2516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2517 printf %s "checking for a BSD-compatible install... " >&6; }
2518 if test -z "$INSTALL"; then
2519 if test ${ac_cv_path_install+y}
2520 then :
2521 printf %s "(cached) " >&6
2522 else $as_nop
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526 IFS=$as_save_IFS
2527 case $as_dir in #(((
2528 '') as_dir=./ ;;
2529 */) ;;
2530 *) as_dir=$as_dir/ ;;
2531 esac
2532 # Account for fact that we put trailing slashes in our PATH walk.
2533 case $as_dir in #((
2534 ./ | /[cC]/* | \
2535 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2536 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2537 /usr/ucb/* ) ;;
2538 *)
2539 # OSF1 and SCO ODT 3.0 have their own names for install.
2540 # Don't use installbsd from OSF since it installs stuff as root
2541 # by default.
2542 for ac_prog in ginstall scoinst install; do
2543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2545 if test $ac_prog = install &&
2546 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2547 # AIX install. It has an incompatible calling convention.
2548 :
2549 elif test $ac_prog = install &&
2550 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2551 # program-specific install script used by HP pwplus--don't use.
2552 :
2553 else
2554 rm -rf conftest.one conftest.two conftest.dir
2555 echo one > conftest.one
2556 echo two > conftest.two
2557 mkdir conftest.dir
2558 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2559 test -s conftest.one && test -s conftest.two &&
2560 test -s conftest.dir/conftest.one &&
2561 test -s conftest.dir/conftest.two
2562 then
2563 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2564 break 3
2565 fi
2566 fi
2567 fi
2568 done
2569 done
2570 ;;
2571 esac
2572
2573 done
2574 IFS=$as_save_IFS
2575
2576 rm -rf conftest.one conftest.two conftest.dir
2577
2578 fi
2579 if test ${ac_cv_path_install+y}; then
2580 INSTALL=$ac_cv_path_install
2581 else
2582 # As a last resort, use the slow shell script. Don't cache a
2583 # value for INSTALL within a source directory, because that will
2584 # break other packages using the cache if that directory is
2585 # removed, or if the value is a relative name.
2586 INSTALL=$ac_install_sh
2587 fi
2588 fi
2589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2590 printf "%s\n" "$INSTALL" >&6; }
2591
2592 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2593 # It thinks the first close brace ends the variable substitution.
2594 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2595
2596 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2597
2598 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2599
2600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2601 printf %s "checking whether build environment is sane... " >&6; }
2602 # Reject unsafe characters in $srcdir or the absolute working directory
2603 # name. Accept space and tab only in the latter.
2604 am_lf='
2605 '
2606 case `pwd` in
2607 *[\\\"\#\$\&\'\`$am_lf]*)
2608 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2609 esac
2610 case $srcdir in
2611 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2612 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2613 esac
2614
2615 # Do 'set' in a subshell so we don't clobber the current shell's
2616 # arguments. Must try -L first in case configure is actually a
2617 # symlink; some systems play weird games with the mod time of symlinks
2618 # (eg FreeBSD returns the mod time of the symlink's containing
2619 # directory).
2620 if (
2621 am_has_slept=no
2622 for am_try in 1 2; do
2623 echo "timestamp, slept: $am_has_slept" > conftest.file
2624 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2625 if test "$*" = "X"; then
2626 # -L didn't work.
2627 set X `ls -t "$srcdir/configure" conftest.file`
2628 fi
2629 if test "$*" != "X $srcdir/configure conftest.file" \
2630 && test "$*" != "X conftest.file $srcdir/configure"; then
2631
2632 # If neither matched, then we have a broken ls. This can happen
2633 # if, for instance, CONFIG_SHELL is bash and it inherits a
2634 # broken ls alias from the environment. This has actually
2635 # happened. Such a system could not be considered "sane".
2636 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2637 alias in your environment" "$LINENO" 5
2638 fi
2639 if test "$2" = conftest.file || test $am_try -eq 2; then
2640 break
2641 fi
2642 # Just in case.
2643 sleep 1
2644 am_has_slept=yes
2645 done
2646 test "$2" = conftest.file
2647 )
2648 then
2649 # Ok.
2650 :
2651 else
2652 as_fn_error $? "newly created file is older than distributed files!
2653 Check your system clock" "$LINENO" 5
2654 fi
2655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2656 printf "%s\n" "yes" >&6; }
2657 # If we didn't sleep, we still need to ensure time stamps of config.status and
2658 # generated files are strictly newer.
2659 am_sleep_pid=
2660 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2661 ( sleep 1 ) &
2662 am_sleep_pid=$!
2663 fi
2664
2665 rm -f conftest.file
2666
2667 test "$program_prefix" != NONE &&
2668 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2669 # Use a double $ so make ignores it.
2670 test "$program_suffix" != NONE &&
2671 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2672 # Double any \ or $.
2673 # By default was `s,x,x', remove it if useless.
2674 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2675 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2676
2677
2678 # Expand $ac_aux_dir to an absolute path.
2679 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2680
2681
2682 if test x"${MISSING+set}" != xset; then
2683 MISSING="\${SHELL} '$am_aux_dir/missing'"
2684 fi
2685 # Use eval to expand $SHELL
2686 if eval "$MISSING --is-lightweight"; then
2687 am_missing_run="$MISSING "
2688 else
2689 am_missing_run=
2690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2691 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2692 fi
2693
2694 if test x"${install_sh+set}" != xset; then
2695 case $am_aux_dir in
2696 *\ * | *\ *)
2697 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2698 *)
2699 install_sh="\${SHELL} $am_aux_dir/install-sh"
2700 esac
2701 fi
2702
2703 # Installed binaries are usually stripped using 'strip' when the user
2704 # run "make install-strip". However 'strip' might not be the right
2705 # tool to use in cross-compilation environments, therefore Automake
2706 # will honor the 'STRIP' environment variable to overrule this program.
2707 if test "$cross_compiling" != no; then
2708 if test -n "$ac_tool_prefix"; then
2709 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2710 set dummy ${ac_tool_prefix}strip; ac_word=$2
2711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 printf %s "checking for $ac_word... " >&6; }
2713 if test ${ac_cv_prog_STRIP+y}
2714 then :
2715 printf %s "(cached) " >&6
2716 else $as_nop
2717 if test -n "$STRIP"; then
2718 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2719 else
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 for as_dir in $PATH
2722 do
2723 IFS=$as_save_IFS
2724 case $as_dir in #(((
2725 '') as_dir=./ ;;
2726 */) ;;
2727 *) as_dir=$as_dir/ ;;
2728 esac
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2731 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2733 break 2
2734 fi
2735 done
2736 done
2737 IFS=$as_save_IFS
2738
2739 fi
2740 fi
2741 STRIP=$ac_cv_prog_STRIP
2742 if test -n "$STRIP"; then
2743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2744 printf "%s\n" "$STRIP" >&6; }
2745 else
2746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747 printf "%s\n" "no" >&6; }
2748 fi
2749
2750
2751 fi
2752 if test -z "$ac_cv_prog_STRIP"; then
2753 ac_ct_STRIP=$STRIP
2754 # Extract the first word of "strip", so it can be a program name with args.
2755 set dummy strip; ac_word=$2
2756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2757 printf %s "checking for $ac_word... " >&6; }
2758 if test ${ac_cv_prog_ac_ct_STRIP+y}
2759 then :
2760 printf %s "(cached) " >&6
2761 else $as_nop
2762 if test -n "$ac_ct_STRIP"; then
2763 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2764 else
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2767 do
2768 IFS=$as_save_IFS
2769 case $as_dir in #(((
2770 '') as_dir=./ ;;
2771 */) ;;
2772 *) as_dir=$as_dir/ ;;
2773 esac
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2776 ac_cv_prog_ac_ct_STRIP="strip"
2777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2778 break 2
2779 fi
2780 done
2781 done
2782 IFS=$as_save_IFS
2783
2784 fi
2785 fi
2786 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2787 if test -n "$ac_ct_STRIP"; then
2788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2789 printf "%s\n" "$ac_ct_STRIP" >&6; }
2790 else
2791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 printf "%s\n" "no" >&6; }
2793 fi
2794
2795 if test "x$ac_ct_STRIP" = x; then
2796 STRIP=":"
2797 else
2798 case $cross_compiling:$ac_tool_warned in
2799 yes:)
2800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2801 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2802 ac_tool_warned=yes ;;
2803 esac
2804 STRIP=$ac_ct_STRIP
2805 fi
2806 else
2807 STRIP="$ac_cv_prog_STRIP"
2808 fi
2809
2810 fi
2811 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2812
2813
2814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2815 printf %s "checking for a race-free mkdir -p... " >&6; }
2816 if test -z "$MKDIR_P"; then
2817 if test ${ac_cv_path_mkdir+y}
2818 then :
2819 printf %s "(cached) " >&6
2820 else $as_nop
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2823 do
2824 IFS=$as_save_IFS
2825 case $as_dir in #(((
2826 '') as_dir=./ ;;
2827 */) ;;
2828 *) as_dir=$as_dir/ ;;
2829 esac
2830 for ac_prog in mkdir gmkdir; do
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2833 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2834 'mkdir ('*'coreutils) '* | \
2835 'BusyBox '* | \
2836 'mkdir (fileutils) '4.1*)
2837 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2838 break 3;;
2839 esac
2840 done
2841 done
2842 done
2843 IFS=$as_save_IFS
2844
2845 fi
2846
2847 test -d ./--version && rmdir ./--version
2848 if test ${ac_cv_path_mkdir+y}; then
2849 MKDIR_P="$ac_cv_path_mkdir -p"
2850 else
2851 # As a last resort, use the slow shell script. Don't cache a
2852 # value for MKDIR_P within a source directory, because that will
2853 # break other packages using the cache if that directory is
2854 # removed, or if the value is a relative name.
2855 MKDIR_P="$ac_install_sh -d"
2856 fi
2857 fi
2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2859 printf "%s\n" "$MKDIR_P" >&6; }
2860
2861 for ac_prog in gawk mawk nawk awk
2862 do
2863 # Extract the first word of "$ac_prog", so it can be a program name with args.
2864 set dummy $ac_prog; ac_word=$2
2865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866 printf %s "checking for $ac_word... " >&6; }
2867 if test ${ac_cv_prog_AWK+y}
2868 then :
2869 printf %s "(cached) " >&6
2870 else $as_nop
2871 if test -n "$AWK"; then
2872 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2876 do
2877 IFS=$as_save_IFS
2878 case $as_dir in #(((
2879 '') as_dir=./ ;;
2880 */) ;;
2881 *) as_dir=$as_dir/ ;;
2882 esac
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_AWK="$ac_prog"
2886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2887 break 2
2888 fi
2889 done
2890 done
2891 IFS=$as_save_IFS
2892
2893 fi
2894 fi
2895 AWK=$ac_cv_prog_AWK
2896 if test -n "$AWK"; then
2897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2898 printf "%s\n" "$AWK" >&6; }
2899 else
2900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 printf "%s\n" "no" >&6; }
2902 fi
2903
2904
2905 test -n "$AWK" && break
2906 done
2907
2908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2909 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2910 set x ${MAKE-make}
2911 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2912 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2913 then :
2914 printf %s "(cached) " >&6
2915 else $as_nop
2916 cat >conftest.make <<\_ACEOF
2917 SHELL = /bin/sh
2918 all:
2919 @echo '@@@%%%=$(MAKE)=@@@%%%'
2920 _ACEOF
2921 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2922 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2923 *@@@%%%=?*=@@@%%%*)
2924 eval ac_cv_prog_make_${ac_make}_set=yes;;
2925 *)
2926 eval ac_cv_prog_make_${ac_make}_set=no;;
2927 esac
2928 rm -f conftest.make
2929 fi
2930 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2932 printf "%s\n" "yes" >&6; }
2933 SET_MAKE=
2934 else
2935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 printf "%s\n" "no" >&6; }
2937 SET_MAKE="MAKE=${MAKE-make}"
2938 fi
2939
2940 rm -rf .tst 2>/dev/null
2941 mkdir .tst 2>/dev/null
2942 if test -d .tst; then
2943 am__leading_dot=.
2944 else
2945 am__leading_dot=_
2946 fi
2947 rmdir .tst 2>/dev/null
2948
2949 # Check whether --enable-silent-rules was given.
2950 if test ${enable_silent_rules+y}
2951 then :
2952 enableval=$enable_silent_rules;
2953 fi
2954
2955 case $enable_silent_rules in # (((
2956 yes) AM_DEFAULT_VERBOSITY=0;;
2957 no) AM_DEFAULT_VERBOSITY=1;;
2958 *) AM_DEFAULT_VERBOSITY=1;;
2959 esac
2960 am_make=${MAKE-make}
2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2962 printf %s "checking whether $am_make supports nested variables... " >&6; }
2963 if test ${am_cv_make_support_nested_variables+y}
2964 then :
2965 printf %s "(cached) " >&6
2966 else $as_nop
2967 if printf "%s\n" 'TRUE=$(BAR$(V))
2968 BAR0=false
2969 BAR1=true
2970 V=1
2971 am__doit:
2972 @$(TRUE)
2973 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2974 am_cv_make_support_nested_variables=yes
2975 else
2976 am_cv_make_support_nested_variables=no
2977 fi
2978 fi
2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2980 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2981 if test $am_cv_make_support_nested_variables = yes; then
2982 AM_V='$(V)'
2983 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2984 else
2985 AM_V=$AM_DEFAULT_VERBOSITY
2986 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2987 fi
2988 AM_BACKSLASH='\'
2989
2990 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2991 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2992 # is not polluted with repeated "-I."
2993 am__isrc=' -I$(srcdir)'
2994 # test to see if srcdir already configured
2995 if test -f $srcdir/config.status; then
2996 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2997 fi
2998 fi
2999
3000 # test whether we have cygpath
3001 if test -z "$CYGPATH_W"; then
3002 if (cygpath --version) >/dev/null 2>/dev/null; then
3003 CYGPATH_W='cygpath -w'
3004 else
3005 CYGPATH_W=echo
3006 fi
3007 fi
3008
3009
3010 # Define the identity of the package.
3011 PACKAGE='encodings'
3012 VERSION='1.0.6'
3013
3014
3015 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3016
3017
3018 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3019
3020 # Some tools Automake needs.
3021
3022 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3023
3024
3025 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3026
3027
3028 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3029
3030
3031 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3032
3033
3034 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3035
3036 # For better backward compatibility. To be removed once Automake 1.9.x
3037 # dies out for good. For more background, see:
3038 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3039 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3040 mkdir_p='$(MKDIR_P)'
3041
3042 # We need awk for the "check" target (and possibly the TAP driver). The
3043 # system "awk" is bad on some platforms.
3044 # Always define AMTAR for backward compatibility. Yes, it's still used
3045 # in the wild :-( We should find a proper way to deprecate it ...
3046 AMTAR='$${TAR-tar}'
3047
3048
3049 # We'll loop over all known methods to create a tar archive until one works.
3050 _am_tools='gnutar pax cpio none'
3051
3052 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3053
3054
3055
3056
3057
3058 # Variables for tags utilities; see am/tags.am
3059 if test -z "$CTAGS"; then
3060 CTAGS=ctags
3061 fi
3062
3063 if test -z "$ETAGS"; then
3064 ETAGS=etags
3065 fi
3066
3067 if test -z "$CSCOPE"; then
3068 CSCOPE=cscope
3069 fi
3070
3071
3072
3073 # POSIX will say in a future version that running "rm -f" with no argument
3074 # is OK; and we want to be able to make that assumption in our Makefile
3075 # recipes. So use an aggressive probe to check that the usage we want is
3076 # actually supported "in the wild" to an acceptable degree.
3077 # See automake bug#10828.
3078 # To make any issue more visible, cause the running configure to be aborted
3079 # by default if the 'rm' program in use doesn't match our expectations; the
3080 # user can still override this though.
3081 if rm -f && rm -fr && rm -rf; then : OK; else
3082 cat >&2 <<'END'
3083 Oops!
3084
3085 Your 'rm' program seems unable to run without file operands specified
3086 on the command line, even when the '-f' option is present. This is contrary
3087 to the behaviour of most rm programs out there, and not conforming with
3088 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3089
3090 Please tell bug-automake@gnu.org about your system, including the value
3091 of your $PATH and any error possibly output before this message. This
3092 can help us improve future automake versions.
3093
3094 END
3095 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3096 echo 'Configuration will proceed anyway, since you have set the' >&2
3097 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3098 echo >&2
3099 else
3100 cat >&2 <<'END'
3101 Aborting the configuration process, to ensure you take notice of the issue.
3102
3103 You can download and install GNU coreutils to get an 'rm' implementation
3104 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3105
3106 If you want to complete the configuration process using your problematic
3107 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3108 to "yes", and re-run configure.
3109
3110 END
3111 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3112 fi
3113 fi
3114
3115
3116 # Require xorg-macros: XORG_DEFAULT_OPTIONS
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137 DEPDIR="${am__leading_dot}deps"
3138
3139 ac_config_commands="$ac_config_commands depfiles"
3140
3141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3142 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3143 cat > confinc.mk << 'END'
3144 am__doit:
3145 @echo this is the am__doit target >confinc.out
3146 .PHONY: am__doit
3147 END
3148 am__include="#"
3149 am__quote=
3150 # BSD make does it like this.
3151 echo '.include "confinc.mk" # ignored' > confmf.BSD
3152 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3153 echo 'include confinc.mk # ignored' > confmf.GNU
3154 _am_result=no
3155 for s in GNU BSD; do
3156 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3157 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }
3161 case $?:`cat confinc.out 2>/dev/null` in #(
3162 '0:this is the am__doit target') :
3163 case $s in #(
3164 BSD) :
3165 am__include='.include' am__quote='"' ;; #(
3166 *) :
3167 am__include='include' am__quote='' ;;
3168 esac ;; #(
3169 *) :
3170 ;;
3171 esac
3172 if test "$am__include" != "#"; then
3173 _am_result="yes ($s style)"
3174 break
3175 fi
3176 done
3177 rm -f confinc.* confmf.*
3178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3179 printf "%s\n" "${_am_result}" >&6; }
3180
3181 # Check whether --enable-dependency-tracking was given.
3182 if test ${enable_dependency_tracking+y}
3183 then :
3184 enableval=$enable_dependency_tracking;
3185 fi
3186
3187 if test "x$enable_dependency_tracking" != xno; then
3188 am_depcomp="$ac_aux_dir/depcomp"
3189 AMDEPBACKSLASH='\'
3190 am__nodep='_no'
3191 fi
3192 if test "x$enable_dependency_tracking" != xno; then
3193 AMDEP_TRUE=
3194 AMDEP_FALSE='#'
3195 else
3196 AMDEP_TRUE='#'
3197 AMDEP_FALSE=
3198 fi
3199
3200
3201 ac_ext=c
3202 ac_cpp='$CPP $CPPFLAGS'
3203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206 if test -n "$ac_tool_prefix"; then
3207 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3208 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 printf %s "checking for $ac_word... " >&6; }
3211 if test ${ac_cv_prog_CC+y}
3212 then :
3213 printf %s "(cached) " >&6
3214 else $as_nop
3215 if test -n "$CC"; then
3216 ac_cv_prog_CC="$CC" # Let the user override the test.
3217 else
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3220 do
3221 IFS=$as_save_IFS
3222 case $as_dir in #(((
3223 '') as_dir=./ ;;
3224 */) ;;
3225 *) as_dir=$as_dir/ ;;
3226 esac
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3229 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3231 break 2
3232 fi
3233 done
3234 done
3235 IFS=$as_save_IFS
3236
3237 fi
3238 fi
3239 CC=$ac_cv_prog_CC
3240 if test -n "$CC"; then
3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3242 printf "%s\n" "$CC" >&6; }
3243 else
3244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 printf "%s\n" "no" >&6; }
3246 fi
3247
3248
3249 fi
3250 if test -z "$ac_cv_prog_CC"; then
3251 ac_ct_CC=$CC
3252 # Extract the first word of "gcc", so it can be a program name with args.
3253 set dummy gcc; ac_word=$2
3254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255 printf %s "checking for $ac_word... " >&6; }
3256 if test ${ac_cv_prog_ac_ct_CC+y}
3257 then :
3258 printf %s "(cached) " >&6
3259 else $as_nop
3260 if test -n "$ac_ct_CC"; then
3261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3262 else
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3265 do
3266 IFS=$as_save_IFS
3267 case $as_dir in #(((
3268 '') as_dir=./ ;;
3269 */) ;;
3270 *) as_dir=$as_dir/ ;;
3271 esac
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3274 ac_cv_prog_ac_ct_CC="gcc"
3275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3276 break 2
3277 fi
3278 done
3279 done
3280 IFS=$as_save_IFS
3281
3282 fi
3283 fi
3284 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3285 if test -n "$ac_ct_CC"; then
3286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3287 printf "%s\n" "$ac_ct_CC" >&6; }
3288 else
3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 printf "%s\n" "no" >&6; }
3291 fi
3292
3293 if test "x$ac_ct_CC" = x; then
3294 CC=""
3295 else
3296 case $cross_compiling:$ac_tool_warned in
3297 yes:)
3298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3299 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3300 ac_tool_warned=yes ;;
3301 esac
3302 CC=$ac_ct_CC
3303 fi
3304 else
3305 CC="$ac_cv_prog_CC"
3306 fi
3307
3308 if test -z "$CC"; then
3309 if test -n "$ac_tool_prefix"; then
3310 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3311 set dummy ${ac_tool_prefix}cc; ac_word=$2
3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313 printf %s "checking for $ac_word... " >&6; }
3314 if test ${ac_cv_prog_CC+y}
3315 then :
3316 printf %s "(cached) " >&6
3317 else $as_nop
3318 if test -n "$CC"; then
3319 ac_cv_prog_CC="$CC" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324 IFS=$as_save_IFS
3325 case $as_dir in #(((
3326 '') as_dir=./ ;;
3327 */) ;;
3328 *) as_dir=$as_dir/ ;;
3329 esac
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3332 ac_cv_prog_CC="${ac_tool_prefix}cc"
3333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3334 break 2
3335 fi
3336 done
3337 done
3338 IFS=$as_save_IFS
3339
3340 fi
3341 fi
3342 CC=$ac_cv_prog_CC
3343 if test -n "$CC"; then
3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3345 printf "%s\n" "$CC" >&6; }
3346 else
3347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 printf "%s\n" "no" >&6; }
3349 fi
3350
3351
3352 fi
3353 fi
3354 if test -z "$CC"; then
3355 # Extract the first word of "cc", so it can be a program name with args.
3356 set dummy cc; ac_word=$2
3357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358 printf %s "checking for $ac_word... " >&6; }
3359 if test ${ac_cv_prog_CC+y}
3360 then :
3361 printf %s "(cached) " >&6
3362 else $as_nop
3363 if test -n "$CC"; then
3364 ac_cv_prog_CC="$CC" # Let the user override the test.
3365 else
3366 ac_prog_rejected=no
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 for as_dir in $PATH
3369 do
3370 IFS=$as_save_IFS
3371 case $as_dir in #(((
3372 '') as_dir=./ ;;
3373 */) ;;
3374 *) as_dir=$as_dir/ ;;
3375 esac
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3378 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3379 ac_prog_rejected=yes
3380 continue
3381 fi
3382 ac_cv_prog_CC="cc"
3383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3384 break 2
3385 fi
3386 done
3387 done
3388 IFS=$as_save_IFS
3389
3390 if test $ac_prog_rejected = yes; then
3391 # We found a bogon in the path, so make sure we never use it.
3392 set dummy $ac_cv_prog_CC
3393 shift
3394 if test $# != 0; then
3395 # We chose a different compiler from the bogus one.
3396 # However, it has the same basename, so the bogon will be chosen
3397 # first if we set CC to just the basename; use the full file name.
3398 shift
3399 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3400 fi
3401 fi
3402 fi
3403 fi
3404 CC=$ac_cv_prog_CC
3405 if test -n "$CC"; then
3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3407 printf "%s\n" "$CC" >&6; }
3408 else
3409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 printf "%s\n" "no" >&6; }
3411 fi
3412
3413
3414 fi
3415 if test -z "$CC"; then
3416 if test -n "$ac_tool_prefix"; then
3417 for ac_prog in cl.exe
3418 do
3419 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3420 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 printf %s "checking for $ac_word... " >&6; }
3423 if test ${ac_cv_prog_CC+y}
3424 then :
3425 printf %s "(cached) " >&6
3426 else $as_nop
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC="$CC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433 IFS=$as_save_IFS
3434 case $as_dir in #(((
3435 '') as_dir=./ ;;
3436 */) ;;
3437 *) as_dir=$as_dir/ ;;
3438 esac
3439 for ac_exec_ext in '' $ac_executable_extensions; do
3440 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3441 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3443 break 2
3444 fi
3445 done
3446 done
3447 IFS=$as_save_IFS
3448
3449 fi
3450 fi
3451 CC=$ac_cv_prog_CC
3452 if test -n "$CC"; then
3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3454 printf "%s\n" "$CC" >&6; }
3455 else
3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457 printf "%s\n" "no" >&6; }
3458 fi
3459
3460
3461 test -n "$CC" && break
3462 done
3463 fi
3464 if test -z "$CC"; then
3465 ac_ct_CC=$CC
3466 for ac_prog in cl.exe
3467 do
3468 # Extract the first word of "$ac_prog", so it can be a program name with args.
3469 set dummy $ac_prog; ac_word=$2
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471 printf %s "checking for $ac_word... " >&6; }
3472 if test ${ac_cv_prog_ac_ct_CC+y}
3473 then :
3474 printf %s "(cached) " >&6
3475 else $as_nop
3476 if test -n "$ac_ct_CC"; then
3477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3478 else
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3481 do
3482 IFS=$as_save_IFS
3483 case $as_dir in #(((
3484 '') as_dir=./ ;;
3485 */) ;;
3486 *) as_dir=$as_dir/ ;;
3487 esac
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3490 ac_cv_prog_ac_ct_CC="$ac_prog"
3491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3492 break 2
3493 fi
3494 done
3495 done
3496 IFS=$as_save_IFS
3497
3498 fi
3499 fi
3500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3501 if test -n "$ac_ct_CC"; then
3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3503 printf "%s\n" "$ac_ct_CC" >&6; }
3504 else
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 printf "%s\n" "no" >&6; }
3507 fi
3508
3509
3510 test -n "$ac_ct_CC" && break
3511 done
3512
3513 if test "x$ac_ct_CC" = x; then
3514 CC=""
3515 else
3516 case $cross_compiling:$ac_tool_warned in
3517 yes:)
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3519 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3520 ac_tool_warned=yes ;;
3521 esac
3522 CC=$ac_ct_CC
3523 fi
3524 fi
3525
3526 fi
3527 if test -z "$CC"; then
3528 if test -n "$ac_tool_prefix"; then
3529 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3530 set dummy ${ac_tool_prefix}clang; ac_word=$2
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3532 printf %s "checking for $ac_word... " >&6; }
3533 if test ${ac_cv_prog_CC+y}
3534 then :
3535 printf %s "(cached) " >&6
3536 else $as_nop
3537 if test -n "$CC"; then
3538 ac_cv_prog_CC="$CC" # Let the user override the test.
3539 else
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 for as_dir in $PATH
3542 do
3543 IFS=$as_save_IFS
3544 case $as_dir in #(((
3545 '') as_dir=./ ;;
3546 */) ;;
3547 *) as_dir=$as_dir/ ;;
3548 esac
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3551 ac_cv_prog_CC="${ac_tool_prefix}clang"
3552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3553 break 2
3554 fi
3555 done
3556 done
3557 IFS=$as_save_IFS
3558
3559 fi
3560 fi
3561 CC=$ac_cv_prog_CC
3562 if test -n "$CC"; then
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3564 printf "%s\n" "$CC" >&6; }
3565 else
3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 printf "%s\n" "no" >&6; }
3568 fi
3569
3570
3571 fi
3572 if test -z "$ac_cv_prog_CC"; then
3573 ac_ct_CC=$CC
3574 # Extract the first word of "clang", so it can be a program name with args.
3575 set dummy clang; ac_word=$2
3576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577 printf %s "checking for $ac_word... " >&6; }
3578 if test ${ac_cv_prog_ac_ct_CC+y}
3579 then :
3580 printf %s "(cached) " >&6
3581 else $as_nop
3582 if test -n "$ac_ct_CC"; then
3583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3584 else
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3587 do
3588 IFS=$as_save_IFS
3589 case $as_dir in #(((
3590 '') as_dir=./ ;;
3591 */) ;;
3592 *) as_dir=$as_dir/ ;;
3593 esac
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3596 ac_cv_prog_ac_ct_CC="clang"
3597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3598 break 2
3599 fi
3600 done
3601 done
3602 IFS=$as_save_IFS
3603
3604 fi
3605 fi
3606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3607 if test -n "$ac_ct_CC"; then
3608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3609 printf "%s\n" "$ac_ct_CC" >&6; }
3610 else
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612 printf "%s\n" "no" >&6; }
3613 fi
3614
3615 if test "x$ac_ct_CC" = x; then
3616 CC=""
3617 else
3618 case $cross_compiling:$ac_tool_warned in
3619 yes:)
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3621 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3622 ac_tool_warned=yes ;;
3623 esac
3624 CC=$ac_ct_CC
3625 fi
3626 else
3627 CC="$ac_cv_prog_CC"
3628 fi
3629
3630 fi
3631
3632
3633 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3635 as_fn_error $? "no acceptable C compiler found in \$PATH
3636 See \`config.log' for more details" "$LINENO" 5; }
3637
3638 # Provide some information about the compiler.
3639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3640 set X $ac_compile
3641 ac_compiler=$2
3642 for ac_option in --version -v -V -qversion -version; do
3643 { { ac_try="$ac_compiler $ac_option >&5"
3644 case "(($ac_try" in
3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3647 esac
3648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3649 printf "%s\n" "$ac_try_echo"; } >&5
3650 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3651 ac_status=$?
3652 if test -s conftest.err; then
3653 sed '10a\
3654 ... rest of stderr output deleted ...
3655 10q' conftest.err >conftest.er1
3656 cat conftest.er1 >&5
3657 fi
3658 rm -f conftest.er1 conftest.err
3659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660 test $ac_status = 0; }
3661 done
3662
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3665
3666 int
3667 main (void)
3668 {
3669
3670 ;
3671 return 0;
3672 }
3673 _ACEOF
3674 ac_clean_files_save=$ac_clean_files
3675 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3676 # Try to create an executable without -o first, disregard a.out.
3677 # It will help us diagnose broken compilers, and finding out an intuition
3678 # of exeext.
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3680 printf %s "checking whether the C compiler works... " >&6; }
3681 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3682
3683 # The possible output files:
3684 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3685
3686 ac_rmfiles=
3687 for ac_file in $ac_files
3688 do
3689 case $ac_file in
3690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3691 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3692 esac
3693 done
3694 rm -f $ac_rmfiles
3695
3696 if { { ac_try="$ac_link_default"
3697 case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700 esac
3701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702 printf "%s\n" "$ac_try_echo"; } >&5
3703 (eval "$ac_link_default") 2>&5
3704 ac_status=$?
3705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3706 test $ac_status = 0; }
3707 then :
3708 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3709 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3710 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3711 # so that the user can short-circuit this test for compilers unknown to
3712 # Autoconf.
3713 for ac_file in $ac_files ''
3714 do
3715 test -f "$ac_file" || continue
3716 case $ac_file in
3717 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3718 ;;
3719 [ab].out )
3720 # We found the default executable, but exeext='' is most
3721 # certainly right.
3722 break;;
3723 *.* )
3724 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3725 then :; else
3726 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3727 fi
3728 # We set ac_cv_exeext here because the later test for it is not
3729 # safe: cross compilers may not add the suffix if given an `-o'
3730 # argument, so we may need to know it at that point already.
3731 # Even if this section looks crufty: it has the advantage of
3732 # actually working.
3733 break;;
3734 * )
3735 break;;
3736 esac
3737 done
3738 test "$ac_cv_exeext" = no && ac_cv_exeext=
3739
3740 else $as_nop
3741 ac_file=''
3742 fi
3743 if test -z "$ac_file"
3744 then :
3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746 printf "%s\n" "no" >&6; }
3747 printf "%s\n" "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3749
3750 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error 77 "C compiler cannot create executables
3753 See \`config.log' for more details" "$LINENO" 5; }
3754 else $as_nop
3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3756 printf "%s\n" "yes" >&6; }
3757 fi
3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3759 printf %s "checking for C compiler default output file name... " >&6; }
3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3761 printf "%s\n" "$ac_file" >&6; }
3762 ac_exeext=$ac_cv_exeext
3763
3764 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3765 ac_clean_files=$ac_clean_files_save
3766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3767 printf %s "checking for suffix of executables... " >&6; }
3768 if { { ac_try="$ac_link"
3769 case "(($ac_try" in
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3772 esac
3773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3774 printf "%s\n" "$ac_try_echo"; } >&5
3775 (eval "$ac_link") 2>&5
3776 ac_status=$?
3777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778 test $ac_status = 0; }
3779 then :
3780 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3781 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3782 # work properly (i.e., refer to `conftest.exe'), while it won't with
3783 # `rm'.
3784 for ac_file in conftest.exe conftest conftest.*; do
3785 test -f "$ac_file" || continue
3786 case $ac_file in
3787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3788 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3789 break;;
3790 * ) break;;
3791 esac
3792 done
3793 else $as_nop
3794 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3796 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3797 See \`config.log' for more details" "$LINENO" 5; }
3798 fi
3799 rm -f conftest conftest$ac_cv_exeext
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3801 printf "%s\n" "$ac_cv_exeext" >&6; }
3802
3803 rm -f conftest.$ac_ext
3804 EXEEXT=$ac_cv_exeext
3805 ac_exeext=$EXEEXT
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3808 #include <stdio.h>
3809 int
3810 main (void)
3811 {
3812 FILE *f = fopen ("conftest.out", "w");
3813 return ferror (f) || fclose (f) != 0;
3814
3815 ;
3816 return 0;
3817 }
3818 _ACEOF
3819 ac_clean_files="$ac_clean_files conftest.out"
3820 # Check that the compiler produces executables we can run. If not, either
3821 # the compiler is broken, or we cross compile.
3822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3823 printf %s "checking whether we are cross compiling... " >&6; }
3824 if test "$cross_compiling" != yes; then
3825 { { ac_try="$ac_link"
3826 case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829 esac
3830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3831 printf "%s\n" "$ac_try_echo"; } >&5
3832 (eval "$ac_link") 2>&5
3833 ac_status=$?
3834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835 test $ac_status = 0; }
3836 if { ac_try='./conftest$ac_cv_exeext'
3837 { { case "(($ac_try" in
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3840 esac
3841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3842 printf "%s\n" "$ac_try_echo"; } >&5
3843 (eval "$ac_try") 2>&5
3844 ac_status=$?
3845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846 test $ac_status = 0; }; }; then
3847 cross_compiling=no
3848 else
3849 if test "$cross_compiling" = maybe; then
3850 cross_compiling=yes
3851 else
3852 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3853 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3854 as_fn_error 77 "cannot run C compiled programs.
3855 If you meant to cross compile, use \`--host'.
3856 See \`config.log' for more details" "$LINENO" 5; }
3857 fi
3858 fi
3859 fi
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3861 printf "%s\n" "$cross_compiling" >&6; }
3862
3863 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3864 ac_clean_files=$ac_clean_files_save
3865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3866 printf %s "checking for suffix of object files... " >&6; }
3867 if test ${ac_cv_objext+y}
3868 then :
3869 printf %s "(cached) " >&6
3870 else $as_nop
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3873
3874 int
3875 main (void)
3876 {
3877
3878 ;
3879 return 0;
3880 }
3881 _ACEOF
3882 rm -f conftest.o conftest.obj
3883 if { { ac_try="$ac_compile"
3884 case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887 esac
3888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889 printf "%s\n" "$ac_try_echo"; } >&5
3890 (eval "$ac_compile") 2>&5
3891 ac_status=$?
3892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }
3894 then :
3895 for ac_file in conftest.o conftest.obj conftest.*; do
3896 test -f "$ac_file" || continue;
3897 case $ac_file in
3898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3899 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3900 break;;
3901 esac
3902 done
3903 else $as_nop
3904 printf "%s\n" "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3906
3907 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3908 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3909 as_fn_error $? "cannot compute suffix of object files: cannot compile
3910 See \`config.log' for more details" "$LINENO" 5; }
3911 fi
3912 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3913 fi
3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3915 printf "%s\n" "$ac_cv_objext" >&6; }
3916 OBJEXT=$ac_cv_objext
3917 ac_objext=$OBJEXT
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3919 printf %s "checking whether the compiler supports GNU C... " >&6; }
3920 if test ${ac_cv_c_compiler_gnu+y}
3921 then :
3922 printf %s "(cached) " >&6
3923 else $as_nop
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3926
3927 int
3928 main (void)
3929 {
3930 #ifndef __GNUC__
3931 choke me
3932 #endif
3933
3934 ;
3935 return 0;
3936 }
3937 _ACEOF
3938 if ac_fn_c_try_compile "$LINENO"
3939 then :
3940 ac_compiler_gnu=yes
3941 else $as_nop
3942 ac_compiler_gnu=no
3943 fi
3944 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3945 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3946
3947 fi
3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3949 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951
3952 if test $ac_compiler_gnu = yes; then
3953 GCC=yes
3954 else
3955 GCC=
3956 fi
3957 ac_test_CFLAGS=${CFLAGS+y}
3958 ac_save_CFLAGS=$CFLAGS
3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3960 printf %s "checking whether $CC accepts -g... " >&6; }
3961 if test ${ac_cv_prog_cc_g+y}
3962 then :
3963 printf %s "(cached) " >&6
3964 else $as_nop
3965 ac_save_c_werror_flag=$ac_c_werror_flag
3966 ac_c_werror_flag=yes
3967 ac_cv_prog_cc_g=no
3968 CFLAGS="-g"
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3971
3972 int
3973 main (void)
3974 {
3975
3976 ;
3977 return 0;
3978 }
3979 _ACEOF
3980 if ac_fn_c_try_compile "$LINENO"
3981 then :
3982 ac_cv_prog_cc_g=yes
3983 else $as_nop
3984 CFLAGS=""
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3987
3988 int
3989 main (void)
3990 {
3991
3992 ;
3993 return 0;
3994 }
3995 _ACEOF
3996 if ac_fn_c_try_compile "$LINENO"
3997 then :
3998
3999 else $as_nop
4000 ac_c_werror_flag=$ac_save_c_werror_flag
4001 CFLAGS="-g"
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4004
4005 int
4006 main (void)
4007 {
4008
4009 ;
4010 return 0;
4011 }
4012 _ACEOF
4013 if ac_fn_c_try_compile "$LINENO"
4014 then :
4015 ac_cv_prog_cc_g=yes
4016 fi
4017 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4018 fi
4019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4020 fi
4021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4022 ac_c_werror_flag=$ac_save_c_werror_flag
4023 fi
4024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4025 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4026 if test $ac_test_CFLAGS; then
4027 CFLAGS=$ac_save_CFLAGS
4028 elif test $ac_cv_prog_cc_g = yes; then
4029 if test "$GCC" = yes; then
4030 CFLAGS="-g -O2"
4031 else
4032 CFLAGS="-g"
4033 fi
4034 else
4035 if test "$GCC" = yes; then
4036 CFLAGS="-O2"
4037 else
4038 CFLAGS=
4039 fi
4040 fi
4041 ac_prog_cc_stdc=no
4042 if test x$ac_prog_cc_stdc = xno
4043 then :
4044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4045 printf %s "checking for $CC option to enable C11 features... " >&6; }
4046 if test ${ac_cv_prog_cc_c11+y}
4047 then :
4048 printf %s "(cached) " >&6
4049 else $as_nop
4050 ac_cv_prog_cc_c11=no
4051 ac_save_CC=$CC
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4054 $ac_c_conftest_c11_program
4055 _ACEOF
4056 for ac_arg in '' -std=gnu11
4057 do
4058 CC="$ac_save_CC $ac_arg"
4059 if ac_fn_c_try_compile "$LINENO"
4060 then :
4061 ac_cv_prog_cc_c11=$ac_arg
4062 fi
4063 rm -f core conftest.err conftest.$ac_objext conftest.beam
4064 test "x$ac_cv_prog_cc_c11" != "xno" && break
4065 done
4066 rm -f conftest.$ac_ext
4067 CC=$ac_save_CC
4068 fi
4069
4070 if test "x$ac_cv_prog_cc_c11" = xno
4071 then :
4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4073 printf "%s\n" "unsupported" >&6; }
4074 else $as_nop
4075 if test "x$ac_cv_prog_cc_c11" = x
4076 then :
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4078 printf "%s\n" "none needed" >&6; }
4079 else $as_nop
4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4081 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4082 CC="$CC $ac_cv_prog_cc_c11"
4083 fi
4084 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4085 ac_prog_cc_stdc=c11
4086 fi
4087 fi
4088 if test x$ac_prog_cc_stdc = xno
4089 then :
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4091 printf %s "checking for $CC option to enable C99 features... " >&6; }
4092 if test ${ac_cv_prog_cc_c99+y}
4093 then :
4094 printf %s "(cached) " >&6
4095 else $as_nop
4096 ac_cv_prog_cc_c99=no
4097 ac_save_CC=$CC
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4100 $ac_c_conftest_c99_program
4101 _ACEOF
4102 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4103 do
4104 CC="$ac_save_CC $ac_arg"
4105 if ac_fn_c_try_compile "$LINENO"
4106 then :
4107 ac_cv_prog_cc_c99=$ac_arg
4108 fi
4109 rm -f core conftest.err conftest.$ac_objext conftest.beam
4110 test "x$ac_cv_prog_cc_c99" != "xno" && break
4111 done
4112 rm -f conftest.$ac_ext
4113 CC=$ac_save_CC
4114 fi
4115
4116 if test "x$ac_cv_prog_cc_c99" = xno
4117 then :
4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4119 printf "%s\n" "unsupported" >&6; }
4120 else $as_nop
4121 if test "x$ac_cv_prog_cc_c99" = x
4122 then :
4123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4124 printf "%s\n" "none needed" >&6; }
4125 else $as_nop
4126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4127 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4128 CC="$CC $ac_cv_prog_cc_c99"
4129 fi
4130 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4131 ac_prog_cc_stdc=c99
4132 fi
4133 fi
4134 if test x$ac_prog_cc_stdc = xno
4135 then :
4136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4137 printf %s "checking for $CC option to enable C89 features... " >&6; }
4138 if test ${ac_cv_prog_cc_c89+y}
4139 then :
4140 printf %s "(cached) " >&6
4141 else $as_nop
4142 ac_cv_prog_cc_c89=no
4143 ac_save_CC=$CC
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4146 $ac_c_conftest_c89_program
4147 _ACEOF
4148 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4149 do
4150 CC="$ac_save_CC $ac_arg"
4151 if ac_fn_c_try_compile "$LINENO"
4152 then :
4153 ac_cv_prog_cc_c89=$ac_arg
4154 fi
4155 rm -f core conftest.err conftest.$ac_objext conftest.beam
4156 test "x$ac_cv_prog_cc_c89" != "xno" && break
4157 done
4158 rm -f conftest.$ac_ext
4159 CC=$ac_save_CC
4160 fi
4161
4162 if test "x$ac_cv_prog_cc_c89" = xno
4163 then :
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4165 printf "%s\n" "unsupported" >&6; }
4166 else $as_nop
4167 if test "x$ac_cv_prog_cc_c89" = x
4168 then :
4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4170 printf "%s\n" "none needed" >&6; }
4171 else $as_nop
4172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4173 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4174 CC="$CC $ac_cv_prog_cc_c89"
4175 fi
4176 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4177 ac_prog_cc_stdc=c89
4178 fi
4179 fi
4180
4181 ac_ext=c
4182 ac_cpp='$CPP $CPPFLAGS'
4183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4186
4187
4188 ac_ext=c
4189 ac_cpp='$CPP $CPPFLAGS'
4190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4194 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4195 if test ${am_cv_prog_cc_c_o+y}
4196 then :
4197 printf %s "(cached) " >&6
4198 else $as_nop
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201
4202 int
4203 main (void)
4204 {
4205
4206 ;
4207 return 0;
4208 }
4209 _ACEOF
4210 # Make sure it works both with $CC and with simple cc.
4211 # Following AC_PROG_CC_C_O, we do the test twice because some
4212 # compilers refuse to overwrite an existing .o file with -o,
4213 # though they will create one.
4214 am_cv_prog_cc_c_o=yes
4215 for am_i in 1 2; do
4216 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4217 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } \
4221 && test -f conftest2.$ac_objext; then
4222 : OK
4223 else
4224 am_cv_prog_cc_c_o=no
4225 break
4226 fi
4227 done
4228 rm -f core conftest*
4229 unset am_i
4230 fi
4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4232 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4233 if test "$am_cv_prog_cc_c_o" != yes; then
4234 # Losing compiler, so override with the script.
4235 # FIXME: It is wrong to rewrite CC.
4236 # But if we don't then we get into trouble of one sort or another.
4237 # A longer-term fix would be to have automake use am__CC in this case,
4238 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4239 CC="$am_aux_dir/compile $CC"
4240 fi
4241 ac_ext=c
4242 ac_cpp='$CPP $CPPFLAGS'
4243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4246
4247
4248 depcc="$CC" am_compiler_list=
4249
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4251 printf %s "checking dependency style of $depcc... " >&6; }
4252 if test ${am_cv_CC_dependencies_compiler_type+y}
4253 then :
4254 printf %s "(cached) " >&6
4255 else $as_nop
4256 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4257 # We make a subdir and do the tests there. Otherwise we can end up
4258 # making bogus files that we don't know about and never remove. For
4259 # instance it was reported that on HP-UX the gcc test will end up
4260 # making a dummy file named 'D' -- because '-MD' means "put the output
4261 # in D".
4262 rm -rf conftest.dir
4263 mkdir conftest.dir
4264 # Copy depcomp to subdir because otherwise we won't find it if we're
4265 # using a relative directory.
4266 cp "$am_depcomp" conftest.dir
4267 cd conftest.dir
4268 # We will build objects and dependencies in a subdirectory because
4269 # it helps to detect inapplicable dependency modes. For instance
4270 # both Tru64's cc and ICC support -MD to output dependencies as a
4271 # side effect of compilation, but ICC will put the dependencies in
4272 # the current directory while Tru64 will put them in the object
4273 # directory.
4274 mkdir sub
4275
4276 am_cv_CC_dependencies_compiler_type=none
4277 if test "$am_compiler_list" = ""; then
4278 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4279 fi
4280 am__universal=false
4281 case " $depcc " in #(
4282 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4283 esac
4284
4285 for depmode in $am_compiler_list; do
4286 # Setup a source with many dependencies, because some compilers
4287 # like to wrap large dependency lists on column 80 (with \), and
4288 # we should not choose a depcomp mode which is confused by this.
4289 #
4290 # We need to recreate these files for each test, as the compiler may
4291 # overwrite some of them when testing with obscure command lines.
4292 # This happens at least with the AIX C compiler.
4293 : > sub/conftest.c
4294 for i in 1 2 3 4 5 6; do
4295 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4296 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4297 # Solaris 10 /bin/sh.
4298 echo '/* dummy */' > sub/conftst$i.h
4299 done
4300 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4301
4302 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4303 # mode. It turns out that the SunPro C++ compiler does not properly
4304 # handle '-M -o', and we need to detect this. Also, some Intel
4305 # versions had trouble with output in subdirs.
4306 am__obj=sub/conftest.${OBJEXT-o}
4307 am__minus_obj="-o $am__obj"
4308 case $depmode in
4309 gcc)
4310 # This depmode causes a compiler race in universal mode.
4311 test "$am__universal" = false || continue
4312 ;;
4313 nosideeffect)
4314 # After this tag, mechanisms are not by side-effect, so they'll
4315 # only be used when explicitly requested.
4316 if test "x$enable_dependency_tracking" = xyes; then
4317 continue
4318 else
4319 break
4320 fi
4321 ;;
4322 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4323 # This compiler won't grok '-c -o', but also, the minuso test has
4324 # not run yet. These depmodes are late enough in the game, and
4325 # so weak that their functioning should not be impacted.
4326 am__obj=conftest.${OBJEXT-o}
4327 am__minus_obj=
4328 ;;
4329 none) break ;;
4330 esac
4331 if depmode=$depmode \
4332 source=sub/conftest.c object=$am__obj \
4333 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4334 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4335 >/dev/null 2>conftest.err &&
4336 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4337 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4338 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4339 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4340 # icc doesn't choke on unknown options, it will just issue warnings
4341 # or remarks (even with -Werror). So we grep stderr for any message
4342 # that says an option was ignored or not supported.
4343 # When given -MP, icc 7.0 and 7.1 complain thusly:
4344 # icc: Command line warning: ignoring option '-M'; no argument required
4345 # The diagnosis changed in icc 8.0:
4346 # icc: Command line remark: option '-MP' not supported
4347 if (grep 'ignoring option' conftest.err ||
4348 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4349 am_cv_CC_dependencies_compiler_type=$depmode
4350 break
4351 fi
4352 fi
4353 done
4354
4355 cd ..
4356 rm -rf conftest.dir
4357 else
4358 am_cv_CC_dependencies_compiler_type=none
4359 fi
4360
4361 fi
4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4363 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4364 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4365
4366 if
4367 test "x$enable_dependency_tracking" != xno \
4368 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4369 am__fastdepCC_TRUE=
4370 am__fastdepCC_FALSE='#'
4371 else
4372 am__fastdepCC_TRUE='#'
4373 am__fastdepCC_FALSE=
4374 fi
4375
4376
4377
4378
4379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4380 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4381 if test ${ac_cv_c_undeclared_builtin_options+y}
4382 then :
4383 printf %s "(cached) " >&6
4384 else $as_nop
4385 ac_save_CFLAGS=$CFLAGS
4386 ac_cv_c_undeclared_builtin_options='cannot detect'
4387 for ac_arg in '' -fno-builtin; do
4388 CFLAGS="$ac_save_CFLAGS $ac_arg"
4389 # This test program should *not* compile successfully.
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4392
4393 int
4394 main (void)
4395 {
4396 (void) strchr;
4397 ;
4398 return 0;
4399 }
4400 _ACEOF
4401 if ac_fn_c_try_compile "$LINENO"
4402 then :
4403
4404 else $as_nop
4405 # This test program should compile successfully.
4406 # No library function is consistently available on
4407 # freestanding implementations, so test against a dummy
4408 # declaration. Include always-available headers on the
4409 # off chance that they somehow elicit warnings.
4410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h. */
4412 #include <float.h>
4413 #include <limits.h>
4414 #include <stdarg.h>
4415 #include <stddef.h>
4416 extern void ac_decl (int, char *);
4417
4418 int
4419 main (void)
4420 {
4421 (void) ac_decl (0, (char *) 0);
4422 (void) ac_decl;
4423
4424 ;
4425 return 0;
4426 }
4427 _ACEOF
4428 if ac_fn_c_try_compile "$LINENO"
4429 then :
4430 if test x"$ac_arg" = x
4431 then :
4432 ac_cv_c_undeclared_builtin_options='none needed'
4433 else $as_nop
4434 ac_cv_c_undeclared_builtin_options=$ac_arg
4435 fi
4436 break
4437 fi
4438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4439 fi
4440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4441 done
4442 CFLAGS=$ac_save_CFLAGS
4443
4444 fi
4445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4446 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4447 case $ac_cv_c_undeclared_builtin_options in #(
4448 'cannot detect') :
4449 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4450 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4451 as_fn_error $? "cannot make $CC report undeclared builtins
4452 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4453 'none needed') :
4454 ac_c_undeclared_builtin_options='' ;; #(
4455 *) :
4456 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4457 esac
4458
4459 ac_header= ac_cache=
4460 for ac_item in $ac_header_c_list
4461 do
4462 if test $ac_cache; then
4463 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4464 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4465 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4466 fi
4467 ac_header= ac_cache=
4468 elif test $ac_header; then
4469 ac_cache=$ac_item
4470 else
4471 ac_header=$ac_item
4472 fi
4473 done
4474
4475
4476
4477
4478
4479
4480
4481
4482 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4483 then :
4484
4485 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4486
4487 fi
4488
4489
4490
4491
4492 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4493 if test "x$ac_cv_have_decl___clang__" = xyes
4494 then :
4495 CLANGCC="yes"
4496 else $as_nop
4497 CLANGCC="no"
4498 fi
4499 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4500 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4501 then :
4502 INTELCC="yes"
4503 else $as_nop
4504 INTELCC="no"
4505 fi
4506 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4507 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4508 then :
4509 SUNCC="yes"
4510 else $as_nop
4511 SUNCC="no"
4512 fi
4513
4514
4515
4516
4517
4518
4519
4520
4521 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4522 if test -n "$ac_tool_prefix"; then
4523 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4524 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 printf %s "checking for $ac_word... " >&6; }
4527 if test ${ac_cv_path_PKG_CONFIG+y}
4528 then :
4529 printf %s "(cached) " >&6
4530 else $as_nop
4531 case $PKG_CONFIG in
4532 [\\/]* | ?:[\\/]*)
4533 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4534 ;;
4535 *)
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4538 do
4539 IFS=$as_save_IFS
4540 case $as_dir in #(((
4541 '') as_dir=./ ;;
4542 */) ;;
4543 *) as_dir=$as_dir/ ;;
4544 esac
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4547 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4549 break 2
4550 fi
4551 done
4552 done
4553 IFS=$as_save_IFS
4554
4555 ;;
4556 esac
4557 fi
4558 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4559 if test -n "$PKG_CONFIG"; then
4560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4561 printf "%s\n" "$PKG_CONFIG" >&6; }
4562 else
4563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4564 printf "%s\n" "no" >&6; }
4565 fi
4566
4567
4568 fi
4569 if test -z "$ac_cv_path_PKG_CONFIG"; then
4570 ac_pt_PKG_CONFIG=$PKG_CONFIG
4571 # Extract the first word of "pkg-config", so it can be a program name with args.
4572 set dummy pkg-config; ac_word=$2
4573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4574 printf %s "checking for $ac_word... " >&6; }
4575 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4576 then :
4577 printf %s "(cached) " >&6
4578 else $as_nop
4579 case $ac_pt_PKG_CONFIG in
4580 [\\/]* | ?:[\\/]*)
4581 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4582 ;;
4583 *)
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4586 do
4587 IFS=$as_save_IFS
4588 case $as_dir in #(((
4589 '') as_dir=./ ;;
4590 */) ;;
4591 *) as_dir=$as_dir/ ;;
4592 esac
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4595 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4597 break 2
4598 fi
4599 done
4600 done
4601 IFS=$as_save_IFS
4602
4603 ;;
4604 esac
4605 fi
4606 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4607 if test -n "$ac_pt_PKG_CONFIG"; then
4608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4609 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4610 else
4611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612 printf "%s\n" "no" >&6; }
4613 fi
4614
4615 if test "x$ac_pt_PKG_CONFIG" = x; then
4616 PKG_CONFIG=""
4617 else
4618 case $cross_compiling:$ac_tool_warned in
4619 yes:)
4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4621 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4622 ac_tool_warned=yes ;;
4623 esac
4624 PKG_CONFIG=$ac_pt_PKG_CONFIG
4625 fi
4626 else
4627 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4628 fi
4629
4630 fi
4631 if test -n "$PKG_CONFIG"; then
4632 _pkg_min_version=0.9.0
4633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4634 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4635 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4637 printf "%s\n" "yes" >&6; }
4638 else
4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 printf "%s\n" "no" >&6; }
4641 PKG_CONFIG=""
4642 fi
4643 fi
4644
4645
4646 # Make sure we can run config.sub.
4647 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4648 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4649
4650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4651 printf %s "checking build system type... " >&6; }
4652 if test ${ac_cv_build+y}
4653 then :
4654 printf %s "(cached) " >&6
4655 else $as_nop
4656 ac_build_alias=$build_alias
4657 test "x$ac_build_alias" = x &&
4658 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4659 test "x$ac_build_alias" = x &&
4660 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4661 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4662 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4663
4664 fi
4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4666 printf "%s\n" "$ac_cv_build" >&6; }
4667 case $ac_cv_build in
4668 *-*-*) ;;
4669 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4670 esac
4671 build=$ac_cv_build
4672 ac_save_IFS=$IFS; IFS='-'
4673 set x $ac_cv_build
4674 shift
4675 build_cpu=$1
4676 build_vendor=$2
4677 shift; shift
4678 # Remember, the first character of IFS is used to create $*,
4679 # except with old shells:
4680 build_os=$*
4681 IFS=$ac_save_IFS
4682 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4683
4684
4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4686 printf %s "checking host system type... " >&6; }
4687 if test ${ac_cv_host+y}
4688 then :
4689 printf %s "(cached) " >&6
4690 else $as_nop
4691 if test "x$host_alias" = x; then
4692 ac_cv_host=$ac_cv_build
4693 else
4694 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4695 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4696 fi
4697
4698 fi
4699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4700 printf "%s\n" "$ac_cv_host" >&6; }
4701 case $ac_cv_host in
4702 *-*-*) ;;
4703 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4704 esac
4705 host=$ac_cv_host
4706 ac_save_IFS=$IFS; IFS='-'
4707 set x $ac_cv_host
4708 shift
4709 host_cpu=$1
4710 host_vendor=$2
4711 shift; shift
4712 # Remember, the first character of IFS is used to create $*,
4713 # except with old shells:
4714 host_os=$*
4715 IFS=$ac_save_IFS
4716 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4717
4718
4719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4720 printf %s "checking for a sed that does not truncate output... " >&6; }
4721 if test ${ac_cv_path_SED+y}
4722 then :
4723 printf %s "(cached) " >&6
4724 else $as_nop
4725 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4726 for ac_i in 1 2 3 4 5 6 7; do
4727 ac_script="$ac_script$as_nl$ac_script"
4728 done
4729 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4730 { ac_script=; unset ac_script;}
4731 if test -z "$SED"; then
4732 ac_path_SED_found=false
4733 # Loop through the user's path and test for each of PROGNAME-LIST
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737 IFS=$as_save_IFS
4738 case $as_dir in #(((
4739 '') as_dir=./ ;;
4740 */) ;;
4741 *) as_dir=$as_dir/ ;;
4742 esac
4743 for ac_prog in sed gsed
4744 do
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4747 as_fn_executable_p "$ac_path_SED" || continue
4748 # Check for GNU ac_path_SED and select it if it is found.
4749 # Check for GNU $ac_path_SED
4750 case `"$ac_path_SED" --version 2>&1` in
4751 *GNU*)
4752 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4753 *)
4754 ac_count=0
4755 printf %s 0123456789 >"conftest.in"
4756 while :
4757 do
4758 cat "conftest.in" "conftest.in" >"conftest.tmp"
4759 mv "conftest.tmp" "conftest.in"
4760 cp "conftest.in" "conftest.nl"
4761 printf "%s\n" '' >> "conftest.nl"
4762 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4763 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4764 as_fn_arith $ac_count + 1 && ac_count=$as_val
4765 if test $ac_count -gt ${ac_path_SED_max-0}; then
4766 # Best one so far, save it but keep looking for a better one
4767 ac_cv_path_SED="$ac_path_SED"
4768 ac_path_SED_max=$ac_count
4769 fi
4770 # 10*(2^10) chars as input seems more than enough
4771 test $ac_count -gt 10 && break
4772 done
4773 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4774 esac
4775
4776 $ac_path_SED_found && break 3
4777 done
4778 done
4779 done
4780 IFS=$as_save_IFS
4781 if test -z "$ac_cv_path_SED"; then
4782 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4783 fi
4784 else
4785 ac_cv_path_SED=$SED
4786 fi
4787
4788 fi
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4790 printf "%s\n" "$ac_cv_path_SED" >&6; }
4791 SED="$ac_cv_path_SED"
4792 rm -f conftest.sed
4793
4794
4795
4796
4797
4798
4799 # Check whether --enable-selective-werror was given.
4800 if test ${enable_selective_werror+y}
4801 then :
4802 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4803 else $as_nop
4804 SELECTIVE_WERROR=yes
4805 fi
4806
4807
4808
4809
4810
4811 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4812 if test "x$SUNCC" = "xyes"; then
4813 BASE_CFLAGS="-v"
4814 else
4815 BASE_CFLAGS=""
4816 fi
4817
4818 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832 xorg_testset_save_CFLAGS="$CFLAGS"
4833
4834 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4837 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4838 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4839 then :
4840 printf %s "(cached) " >&6
4841 else $as_nop
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4844 int i;
4845 _ACEOF
4846 if ac_fn_c_try_compile "$LINENO"
4847 then :
4848 xorg_cv_cc_flag_unknown_warning_option=yes
4849 else $as_nop
4850 xorg_cv_cc_flag_unknown_warning_option=no
4851 fi
4852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4853 fi
4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4855 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4857 CFLAGS="$xorg_testset_save_CFLAGS"
4858 fi
4859
4860 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4863 fi
4864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4866 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4867 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4868 then :
4869 printf %s "(cached) " >&6
4870 else $as_nop
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4873 int i;
4874 _ACEOF
4875 if ac_fn_c_try_compile "$LINENO"
4876 then :
4877 xorg_cv_cc_flag_unused_command_line_argument=yes
4878 else $as_nop
4879 xorg_cv_cc_flag_unused_command_line_argument=no
4880 fi
4881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4882 fi
4883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4884 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4886 CFLAGS="$xorg_testset_save_CFLAGS"
4887 fi
4888
4889 found="no"
4890
4891 if test $found = "no" ; then
4892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4894 fi
4895
4896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4898 fi
4899
4900 CFLAGS="$CFLAGS -Wall"
4901
4902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4903 printf %s "checking if $CC supports -Wall... " >&6; }
4904 cacheid=xorg_cv_cc_flag__Wall
4905 if eval test \${$cacheid+y}
4906 then :
4907 printf %s "(cached) " >&6
4908 else $as_nop
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4911 int i;
4912 int
4913 main (void)
4914 {
4915
4916 ;
4917 return 0;
4918 }
4919 _ACEOF
4920 if ac_fn_c_try_link "$LINENO"
4921 then :
4922 eval $cacheid=yes
4923 else $as_nop
4924 eval $cacheid=no
4925 fi
4926 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4927 conftest$ac_exeext conftest.$ac_ext
4928 fi
4929
4930
4931 CFLAGS="$xorg_testset_save_CFLAGS"
4932
4933 eval supported=\$$cacheid
4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4935 printf "%s\n" "$supported" >&6; }
4936 if test "$supported" = "yes" ; then
4937 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4938 found="yes"
4939 fi
4940 fi
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956 xorg_testset_save_CFLAGS="$CFLAGS"
4957
4958 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4961 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4962 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4963 then :
4964 printf %s "(cached) " >&6
4965 else $as_nop
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967 /* end confdefs.h. */
4968 int i;
4969 _ACEOF
4970 if ac_fn_c_try_compile "$LINENO"
4971 then :
4972 xorg_cv_cc_flag_unknown_warning_option=yes
4973 else $as_nop
4974 xorg_cv_cc_flag_unknown_warning_option=no
4975 fi
4976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4977 fi
4978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4979 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4981 CFLAGS="$xorg_testset_save_CFLAGS"
4982 fi
4983
4984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4987 fi
4988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4990 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4991 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4992 then :
4993 printf %s "(cached) " >&6
4994 else $as_nop
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4997 int i;
4998 _ACEOF
4999 if ac_fn_c_try_compile "$LINENO"
5000 then :
5001 xorg_cv_cc_flag_unused_command_line_argument=yes
5002 else $as_nop
5003 xorg_cv_cc_flag_unused_command_line_argument=no
5004 fi
5005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5006 fi
5007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5008 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5010 CFLAGS="$xorg_testset_save_CFLAGS"
5011 fi
5012
5013 found="no"
5014
5015 if test $found = "no" ; then
5016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5018 fi
5019
5020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5022 fi
5023
5024 CFLAGS="$CFLAGS -Wpointer-arith"
5025
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5027 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5028 cacheid=xorg_cv_cc_flag__Wpointer_arith
5029 if eval test \${$cacheid+y}
5030 then :
5031 printf %s "(cached) " >&6
5032 else $as_nop
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5035 int i;
5036 int
5037 main (void)
5038 {
5039
5040 ;
5041 return 0;
5042 }
5043 _ACEOF
5044 if ac_fn_c_try_link "$LINENO"
5045 then :
5046 eval $cacheid=yes
5047 else $as_nop
5048 eval $cacheid=no
5049 fi
5050 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5051 conftest$ac_exeext conftest.$ac_ext
5052 fi
5053
5054
5055 CFLAGS="$xorg_testset_save_CFLAGS"
5056
5057 eval supported=\$$cacheid
5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5059 printf "%s\n" "$supported" >&6; }
5060 if test "$supported" = "yes" ; then
5061 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5062 found="yes"
5063 fi
5064 fi
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080 xorg_testset_save_CFLAGS="$CFLAGS"
5081
5082 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5085 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5086 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5087 then :
5088 printf %s "(cached) " >&6
5089 else $as_nop
5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091 /* end confdefs.h. */
5092 int i;
5093 _ACEOF
5094 if ac_fn_c_try_compile "$LINENO"
5095 then :
5096 xorg_cv_cc_flag_unknown_warning_option=yes
5097 else $as_nop
5098 xorg_cv_cc_flag_unknown_warning_option=no
5099 fi
5100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5101 fi
5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5103 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5105 CFLAGS="$xorg_testset_save_CFLAGS"
5106 fi
5107
5108 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5111 fi
5112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5114 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5115 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5116 then :
5117 printf %s "(cached) " >&6
5118 else $as_nop
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5121 int i;
5122 _ACEOF
5123 if ac_fn_c_try_compile "$LINENO"
5124 then :
5125 xorg_cv_cc_flag_unused_command_line_argument=yes
5126 else $as_nop
5127 xorg_cv_cc_flag_unused_command_line_argument=no
5128 fi
5129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5130 fi
5131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5132 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5134 CFLAGS="$xorg_testset_save_CFLAGS"
5135 fi
5136
5137 found="no"
5138
5139 if test $found = "no" ; then
5140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5142 fi
5143
5144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5146 fi
5147
5148 CFLAGS="$CFLAGS -Wmissing-declarations"
5149
5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5151 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5152 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5153 if eval test \${$cacheid+y}
5154 then :
5155 printf %s "(cached) " >&6
5156 else $as_nop
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5159 int i;
5160 int
5161 main (void)
5162 {
5163
5164 ;
5165 return 0;
5166 }
5167 _ACEOF
5168 if ac_fn_c_try_link "$LINENO"
5169 then :
5170 eval $cacheid=yes
5171 else $as_nop
5172 eval $cacheid=no
5173 fi
5174 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5175 conftest$ac_exeext conftest.$ac_ext
5176 fi
5177
5178
5179 CFLAGS="$xorg_testset_save_CFLAGS"
5180
5181 eval supported=\$$cacheid
5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5183 printf "%s\n" "$supported" >&6; }
5184 if test "$supported" = "yes" ; then
5185 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5186 found="yes"
5187 fi
5188 fi
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204 xorg_testset_save_CFLAGS="$CFLAGS"
5205
5206 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5209 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5210 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5211 then :
5212 printf %s "(cached) " >&6
5213 else $as_nop
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5216 int i;
5217 _ACEOF
5218 if ac_fn_c_try_compile "$LINENO"
5219 then :
5220 xorg_cv_cc_flag_unknown_warning_option=yes
5221 else $as_nop
5222 xorg_cv_cc_flag_unknown_warning_option=no
5223 fi
5224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5225 fi
5226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5227 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5229 CFLAGS="$xorg_testset_save_CFLAGS"
5230 fi
5231
5232 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5235 fi
5236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5238 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5239 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5240 then :
5241 printf %s "(cached) " >&6
5242 else $as_nop
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5245 int i;
5246 _ACEOF
5247 if ac_fn_c_try_compile "$LINENO"
5248 then :
5249 xorg_cv_cc_flag_unused_command_line_argument=yes
5250 else $as_nop
5251 xorg_cv_cc_flag_unused_command_line_argument=no
5252 fi
5253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5254 fi
5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5256 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5258 CFLAGS="$xorg_testset_save_CFLAGS"
5259 fi
5260
5261 found="no"
5262
5263 if test $found = "no" ; then
5264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5266 fi
5267
5268 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5270 fi
5271
5272 CFLAGS="$CFLAGS -Wformat=2"
5273
5274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5275 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5276 cacheid=xorg_cv_cc_flag__Wformat_2
5277 if eval test \${$cacheid+y}
5278 then :
5279 printf %s "(cached) " >&6
5280 else $as_nop
5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282 /* end confdefs.h. */
5283 int i;
5284 int
5285 main (void)
5286 {
5287
5288 ;
5289 return 0;
5290 }
5291 _ACEOF
5292 if ac_fn_c_try_link "$LINENO"
5293 then :
5294 eval $cacheid=yes
5295 else $as_nop
5296 eval $cacheid=no
5297 fi
5298 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5299 conftest$ac_exeext conftest.$ac_ext
5300 fi
5301
5302
5303 CFLAGS="$xorg_testset_save_CFLAGS"
5304
5305 eval supported=\$$cacheid
5306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5307 printf "%s\n" "$supported" >&6; }
5308 if test "$supported" = "yes" ; then
5309 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5310 found="yes"
5311 fi
5312 fi
5313
5314 if test $found = "no" ; then
5315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5317 fi
5318
5319 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5321 fi
5322
5323 CFLAGS="$CFLAGS -Wformat"
5324
5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5326 printf %s "checking if $CC supports -Wformat... " >&6; }
5327 cacheid=xorg_cv_cc_flag__Wformat
5328 if eval test \${$cacheid+y}
5329 then :
5330 printf %s "(cached) " >&6
5331 else $as_nop
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 int i;
5335 int
5336 main (void)
5337 {
5338
5339 ;
5340 return 0;
5341 }
5342 _ACEOF
5343 if ac_fn_c_try_link "$LINENO"
5344 then :
5345 eval $cacheid=yes
5346 else $as_nop
5347 eval $cacheid=no
5348 fi
5349 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5350 conftest$ac_exeext conftest.$ac_ext
5351 fi
5352
5353
5354 CFLAGS="$xorg_testset_save_CFLAGS"
5355
5356 eval supported=\$$cacheid
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5358 printf "%s\n" "$supported" >&6; }
5359 if test "$supported" = "yes" ; then
5360 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5361 found="yes"
5362 fi
5363 fi
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381 xorg_testset_save_CFLAGS="$CFLAGS"
5382
5383 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5386 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5387 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5388 then :
5389 printf %s "(cached) " >&6
5390 else $as_nop
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5393 int i;
5394 _ACEOF
5395 if ac_fn_c_try_compile "$LINENO"
5396 then :
5397 xorg_cv_cc_flag_unknown_warning_option=yes
5398 else $as_nop
5399 xorg_cv_cc_flag_unknown_warning_option=no
5400 fi
5401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5402 fi
5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5404 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5406 CFLAGS="$xorg_testset_save_CFLAGS"
5407 fi
5408
5409 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5412 fi
5413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5415 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5416 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5417 then :
5418 printf %s "(cached) " >&6
5419 else $as_nop
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422 int i;
5423 _ACEOF
5424 if ac_fn_c_try_compile "$LINENO"
5425 then :
5426 xorg_cv_cc_flag_unused_command_line_argument=yes
5427 else $as_nop
5428 xorg_cv_cc_flag_unused_command_line_argument=no
5429 fi
5430 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5431 fi
5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5433 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5434 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5435 CFLAGS="$xorg_testset_save_CFLAGS"
5436 fi
5437
5438 found="no"
5439
5440 if test $found = "no" ; then
5441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5443 fi
5444
5445 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5447 fi
5448
5449 CFLAGS="$CFLAGS -Wstrict-prototypes"
5450
5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5452 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5453 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5454 if eval test \${$cacheid+y}
5455 then :
5456 printf %s "(cached) " >&6
5457 else $as_nop
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5460 int i;
5461 int
5462 main (void)
5463 {
5464
5465 ;
5466 return 0;
5467 }
5468 _ACEOF
5469 if ac_fn_c_try_link "$LINENO"
5470 then :
5471 eval $cacheid=yes
5472 else $as_nop
5473 eval $cacheid=no
5474 fi
5475 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5476 conftest$ac_exeext conftest.$ac_ext
5477 fi
5478
5479
5480 CFLAGS="$xorg_testset_save_CFLAGS"
5481
5482 eval supported=\$$cacheid
5483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5484 printf "%s\n" "$supported" >&6; }
5485 if test "$supported" = "yes" ; then
5486 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5487 found="yes"
5488 fi
5489 fi
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505 xorg_testset_save_CFLAGS="$CFLAGS"
5506
5507 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5510 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5511 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5512 then :
5513 printf %s "(cached) " >&6
5514 else $as_nop
5515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516 /* end confdefs.h. */
5517 int i;
5518 _ACEOF
5519 if ac_fn_c_try_compile "$LINENO"
5520 then :
5521 xorg_cv_cc_flag_unknown_warning_option=yes
5522 else $as_nop
5523 xorg_cv_cc_flag_unknown_warning_option=no
5524 fi
5525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5526 fi
5527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5528 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5529 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5530 CFLAGS="$xorg_testset_save_CFLAGS"
5531 fi
5532
5533 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5536 fi
5537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5539 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5540 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5541 then :
5542 printf %s "(cached) " >&6
5543 else $as_nop
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h. */
5546 int i;
5547 _ACEOF
5548 if ac_fn_c_try_compile "$LINENO"
5549 then :
5550 xorg_cv_cc_flag_unused_command_line_argument=yes
5551 else $as_nop
5552 xorg_cv_cc_flag_unused_command_line_argument=no
5553 fi
5554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5555 fi
5556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5557 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5558 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5559 CFLAGS="$xorg_testset_save_CFLAGS"
5560 fi
5561
5562 found="no"
5563
5564 if test $found = "no" ; then
5565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5567 fi
5568
5569 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5571 fi
5572
5573 CFLAGS="$CFLAGS -Wmissing-prototypes"
5574
5575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5576 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5577 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5578 if eval test \${$cacheid+y}
5579 then :
5580 printf %s "(cached) " >&6
5581 else $as_nop
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 int i;
5585 int
5586 main (void)
5587 {
5588
5589 ;
5590 return 0;
5591 }
5592 _ACEOF
5593 if ac_fn_c_try_link "$LINENO"
5594 then :
5595 eval $cacheid=yes
5596 else $as_nop
5597 eval $cacheid=no
5598 fi
5599 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5600 conftest$ac_exeext conftest.$ac_ext
5601 fi
5602
5603
5604 CFLAGS="$xorg_testset_save_CFLAGS"
5605
5606 eval supported=\$$cacheid
5607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5608 printf "%s\n" "$supported" >&6; }
5609 if test "$supported" = "yes" ; then
5610 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5611 found="yes"
5612 fi
5613 fi
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629 xorg_testset_save_CFLAGS="$CFLAGS"
5630
5631 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5634 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5635 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5636 then :
5637 printf %s "(cached) " >&6
5638 else $as_nop
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5641 int i;
5642 _ACEOF
5643 if ac_fn_c_try_compile "$LINENO"
5644 then :
5645 xorg_cv_cc_flag_unknown_warning_option=yes
5646 else $as_nop
5647 xorg_cv_cc_flag_unknown_warning_option=no
5648 fi
5649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5650 fi
5651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5652 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5653 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5654 CFLAGS="$xorg_testset_save_CFLAGS"
5655 fi
5656
5657 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5660 fi
5661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5663 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5664 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5665 then :
5666 printf %s "(cached) " >&6
5667 else $as_nop
5668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669 /* end confdefs.h. */
5670 int i;
5671 _ACEOF
5672 if ac_fn_c_try_compile "$LINENO"
5673 then :
5674 xorg_cv_cc_flag_unused_command_line_argument=yes
5675 else $as_nop
5676 xorg_cv_cc_flag_unused_command_line_argument=no
5677 fi
5678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5679 fi
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5681 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5682 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5683 CFLAGS="$xorg_testset_save_CFLAGS"
5684 fi
5685
5686 found="no"
5687
5688 if test $found = "no" ; then
5689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5691 fi
5692
5693 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5695 fi
5696
5697 CFLAGS="$CFLAGS -Wnested-externs"
5698
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5700 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5701 cacheid=xorg_cv_cc_flag__Wnested_externs
5702 if eval test \${$cacheid+y}
5703 then :
5704 printf %s "(cached) " >&6
5705 else $as_nop
5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5708 int i;
5709 int
5710 main (void)
5711 {
5712
5713 ;
5714 return 0;
5715 }
5716 _ACEOF
5717 if ac_fn_c_try_link "$LINENO"
5718 then :
5719 eval $cacheid=yes
5720 else $as_nop
5721 eval $cacheid=no
5722 fi
5723 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5724 conftest$ac_exeext conftest.$ac_ext
5725 fi
5726
5727
5728 CFLAGS="$xorg_testset_save_CFLAGS"
5729
5730 eval supported=\$$cacheid
5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5732 printf "%s\n" "$supported" >&6; }
5733 if test "$supported" = "yes" ; then
5734 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5735 found="yes"
5736 fi
5737 fi
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753 xorg_testset_save_CFLAGS="$CFLAGS"
5754
5755 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5758 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5759 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5760 then :
5761 printf %s "(cached) " >&6
5762 else $as_nop
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 int i;
5766 _ACEOF
5767 if ac_fn_c_try_compile "$LINENO"
5768 then :
5769 xorg_cv_cc_flag_unknown_warning_option=yes
5770 else $as_nop
5771 xorg_cv_cc_flag_unknown_warning_option=no
5772 fi
5773 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5774 fi
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5776 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5777 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5778 CFLAGS="$xorg_testset_save_CFLAGS"
5779 fi
5780
5781 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5784 fi
5785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5787 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5788 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5789 then :
5790 printf %s "(cached) " >&6
5791 else $as_nop
5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5794 int i;
5795 _ACEOF
5796 if ac_fn_c_try_compile "$LINENO"
5797 then :
5798 xorg_cv_cc_flag_unused_command_line_argument=yes
5799 else $as_nop
5800 xorg_cv_cc_flag_unused_command_line_argument=no
5801 fi
5802 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5803 fi
5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5805 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5806 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5807 CFLAGS="$xorg_testset_save_CFLAGS"
5808 fi
5809
5810 found="no"
5811
5812 if test $found = "no" ; then
5813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5815 fi
5816
5817 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5819 fi
5820
5821 CFLAGS="$CFLAGS -Wbad-function-cast"
5822
5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5824 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5825 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5826 if eval test \${$cacheid+y}
5827 then :
5828 printf %s "(cached) " >&6
5829 else $as_nop
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5832 int i;
5833 int
5834 main (void)
5835 {
5836
5837 ;
5838 return 0;
5839 }
5840 _ACEOF
5841 if ac_fn_c_try_link "$LINENO"
5842 then :
5843 eval $cacheid=yes
5844 else $as_nop
5845 eval $cacheid=no
5846 fi
5847 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5848 conftest$ac_exeext conftest.$ac_ext
5849 fi
5850
5851
5852 CFLAGS="$xorg_testset_save_CFLAGS"
5853
5854 eval supported=\$$cacheid
5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5856 printf "%s\n" "$supported" >&6; }
5857 if test "$supported" = "yes" ; then
5858 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5859 found="yes"
5860 fi
5861 fi
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877 xorg_testset_save_CFLAGS="$CFLAGS"
5878
5879 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5882 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5883 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5884 then :
5885 printf %s "(cached) " >&6
5886 else $as_nop
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5889 int i;
5890 _ACEOF
5891 if ac_fn_c_try_compile "$LINENO"
5892 then :
5893 xorg_cv_cc_flag_unknown_warning_option=yes
5894 else $as_nop
5895 xorg_cv_cc_flag_unknown_warning_option=no
5896 fi
5897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5898 fi
5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5900 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5902 CFLAGS="$xorg_testset_save_CFLAGS"
5903 fi
5904
5905 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5908 fi
5909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5911 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5912 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5913 then :
5914 printf %s "(cached) " >&6
5915 else $as_nop
5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5918 int i;
5919 _ACEOF
5920 if ac_fn_c_try_compile "$LINENO"
5921 then :
5922 xorg_cv_cc_flag_unused_command_line_argument=yes
5923 else $as_nop
5924 xorg_cv_cc_flag_unused_command_line_argument=no
5925 fi
5926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5927 fi
5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5929 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5930 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5931 CFLAGS="$xorg_testset_save_CFLAGS"
5932 fi
5933
5934 found="no"
5935
5936 if test $found = "no" ; then
5937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5939 fi
5940
5941 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5943 fi
5944
5945 CFLAGS="$CFLAGS -Wold-style-definition"
5946
5947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5948 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5949 cacheid=xorg_cv_cc_flag__Wold_style_definition
5950 if eval test \${$cacheid+y}
5951 then :
5952 printf %s "(cached) " >&6
5953 else $as_nop
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5956 int i;
5957 int
5958 main (void)
5959 {
5960
5961 ;
5962 return 0;
5963 }
5964 _ACEOF
5965 if ac_fn_c_try_link "$LINENO"
5966 then :
5967 eval $cacheid=yes
5968 else $as_nop
5969 eval $cacheid=no
5970 fi
5971 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5972 conftest$ac_exeext conftest.$ac_ext
5973 fi
5974
5975
5976 CFLAGS="$xorg_testset_save_CFLAGS"
5977
5978 eval supported=\$$cacheid
5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5980 printf "%s\n" "$supported" >&6; }
5981 if test "$supported" = "yes" ; then
5982 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5983 found="yes"
5984 fi
5985 fi
5986
5987 if test $found = "no" ; then
5988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5990 fi
5991
5992 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5994 fi
5995
5996 CFLAGS="$CFLAGS -fd"
5997
5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5999 printf %s "checking if $CC supports -fd... " >&6; }
6000 cacheid=xorg_cv_cc_flag__fd
6001 if eval test \${$cacheid+y}
6002 then :
6003 printf %s "(cached) " >&6
6004 else $as_nop
6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006 /* end confdefs.h. */
6007 int i;
6008 int
6009 main (void)
6010 {
6011
6012 ;
6013 return 0;
6014 }
6015 _ACEOF
6016 if ac_fn_c_try_link "$LINENO"
6017 then :
6018 eval $cacheid=yes
6019 else $as_nop
6020 eval $cacheid=no
6021 fi
6022 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6023 conftest$ac_exeext conftest.$ac_ext
6024 fi
6025
6026
6027 CFLAGS="$xorg_testset_save_CFLAGS"
6028
6029 eval supported=\$$cacheid
6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6031 printf "%s\n" "$supported" >&6; }
6032 if test "$supported" = "yes" ; then
6033 BASE_CFLAGS="$BASE_CFLAGS -fd"
6034 found="yes"
6035 fi
6036 fi
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052 xorg_testset_save_CFLAGS="$CFLAGS"
6053
6054 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6057 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6058 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6059 then :
6060 printf %s "(cached) " >&6
6061 else $as_nop
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h. */
6064 int i;
6065 _ACEOF
6066 if ac_fn_c_try_compile "$LINENO"
6067 then :
6068 xorg_cv_cc_flag_unknown_warning_option=yes
6069 else $as_nop
6070 xorg_cv_cc_flag_unknown_warning_option=no
6071 fi
6072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6073 fi
6074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6075 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6077 CFLAGS="$xorg_testset_save_CFLAGS"
6078 fi
6079
6080 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6083 fi
6084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6086 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6087 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6088 then :
6089 printf %s "(cached) " >&6
6090 else $as_nop
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6093 int i;
6094 _ACEOF
6095 if ac_fn_c_try_compile "$LINENO"
6096 then :
6097 xorg_cv_cc_flag_unused_command_line_argument=yes
6098 else $as_nop
6099 xorg_cv_cc_flag_unused_command_line_argument=no
6100 fi
6101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6102 fi
6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6104 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6106 CFLAGS="$xorg_testset_save_CFLAGS"
6107 fi
6108
6109 found="no"
6110
6111 if test $found = "no" ; then
6112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6114 fi
6115
6116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6118 fi
6119
6120 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6121
6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6123 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6124 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6125 if eval test \${$cacheid+y}
6126 then :
6127 printf %s "(cached) " >&6
6128 else $as_nop
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6131 int i;
6132 int
6133 main (void)
6134 {
6135
6136 ;
6137 return 0;
6138 }
6139 _ACEOF
6140 if ac_fn_c_try_link "$LINENO"
6141 then :
6142 eval $cacheid=yes
6143 else $as_nop
6144 eval $cacheid=no
6145 fi
6146 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6147 conftest$ac_exeext conftest.$ac_ext
6148 fi
6149
6150
6151 CFLAGS="$xorg_testset_save_CFLAGS"
6152
6153 eval supported=\$$cacheid
6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6155 printf "%s\n" "$supported" >&6; }
6156 if test "$supported" = "yes" ; then
6157 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6158 found="yes"
6159 fi
6160 fi
6161
6162
6163
6164
6165
6166 # This chunk adds additional warnings that could catch undesired effects.
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180 xorg_testset_save_CFLAGS="$CFLAGS"
6181
6182 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6185 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6186 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6187 then :
6188 printf %s "(cached) " >&6
6189 else $as_nop
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192 int i;
6193 _ACEOF
6194 if ac_fn_c_try_compile "$LINENO"
6195 then :
6196 xorg_cv_cc_flag_unknown_warning_option=yes
6197 else $as_nop
6198 xorg_cv_cc_flag_unknown_warning_option=no
6199 fi
6200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6201 fi
6202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6203 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6214 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6215 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6216 then :
6217 printf %s "(cached) " >&6
6218 else $as_nop
6219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6220 /* end confdefs.h. */
6221 int i;
6222 _ACEOF
6223 if ac_fn_c_try_compile "$LINENO"
6224 then :
6225 xorg_cv_cc_flag_unused_command_line_argument=yes
6226 else $as_nop
6227 xorg_cv_cc_flag_unused_command_line_argument=no
6228 fi
6229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6230 fi
6231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6232 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6234 CFLAGS="$xorg_testset_save_CFLAGS"
6235 fi
6236
6237 found="no"
6238
6239 if test $found = "no" ; then
6240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6242 fi
6243
6244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6246 fi
6247
6248 CFLAGS="$CFLAGS -Wunused"
6249
6250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6251 printf %s "checking if $CC supports -Wunused... " >&6; }
6252 cacheid=xorg_cv_cc_flag__Wunused
6253 if eval test \${$cacheid+y}
6254 then :
6255 printf %s "(cached) " >&6
6256 else $as_nop
6257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6258 /* end confdefs.h. */
6259 int i;
6260 int
6261 main (void)
6262 {
6263
6264 ;
6265 return 0;
6266 }
6267 _ACEOF
6268 if ac_fn_c_try_link "$LINENO"
6269 then :
6270 eval $cacheid=yes
6271 else $as_nop
6272 eval $cacheid=no
6273 fi
6274 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6275 conftest$ac_exeext conftest.$ac_ext
6276 fi
6277
6278
6279 CFLAGS="$xorg_testset_save_CFLAGS"
6280
6281 eval supported=\$$cacheid
6282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6283 printf "%s\n" "$supported" >&6; }
6284 if test "$supported" = "yes" ; then
6285 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6286 found="yes"
6287 fi
6288 fi
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304 xorg_testset_save_CFLAGS="$CFLAGS"
6305
6306 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6309 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6310 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6311 then :
6312 printf %s "(cached) " >&6
6313 else $as_nop
6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6316 int i;
6317 _ACEOF
6318 if ac_fn_c_try_compile "$LINENO"
6319 then :
6320 xorg_cv_cc_flag_unknown_warning_option=yes
6321 else $as_nop
6322 xorg_cv_cc_flag_unknown_warning_option=no
6323 fi
6324 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6325 fi
6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6327 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6329 CFLAGS="$xorg_testset_save_CFLAGS"
6330 fi
6331
6332 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6335 fi
6336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6338 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6339 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6340 then :
6341 printf %s "(cached) " >&6
6342 else $as_nop
6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6345 int i;
6346 _ACEOF
6347 if ac_fn_c_try_compile "$LINENO"
6348 then :
6349 xorg_cv_cc_flag_unused_command_line_argument=yes
6350 else $as_nop
6351 xorg_cv_cc_flag_unused_command_line_argument=no
6352 fi
6353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6354 fi
6355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6356 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6357 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6358 CFLAGS="$xorg_testset_save_CFLAGS"
6359 fi
6360
6361 found="no"
6362
6363 if test $found = "no" ; then
6364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6366 fi
6367
6368 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6370 fi
6371
6372 CFLAGS="$CFLAGS -Wuninitialized"
6373
6374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6375 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6376 cacheid=xorg_cv_cc_flag__Wuninitialized
6377 if eval test \${$cacheid+y}
6378 then :
6379 printf %s "(cached) " >&6
6380 else $as_nop
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6383 int i;
6384 int
6385 main (void)
6386 {
6387
6388 ;
6389 return 0;
6390 }
6391 _ACEOF
6392 if ac_fn_c_try_link "$LINENO"
6393 then :
6394 eval $cacheid=yes
6395 else $as_nop
6396 eval $cacheid=no
6397 fi
6398 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6399 conftest$ac_exeext conftest.$ac_ext
6400 fi
6401
6402
6403 CFLAGS="$xorg_testset_save_CFLAGS"
6404
6405 eval supported=\$$cacheid
6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6407 printf "%s\n" "$supported" >&6; }
6408 if test "$supported" = "yes" ; then
6409 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6410 found="yes"
6411 fi
6412 fi
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428 xorg_testset_save_CFLAGS="$CFLAGS"
6429
6430 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6433 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6434 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6435 then :
6436 printf %s "(cached) " >&6
6437 else $as_nop
6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439 /* end confdefs.h. */
6440 int i;
6441 _ACEOF
6442 if ac_fn_c_try_compile "$LINENO"
6443 then :
6444 xorg_cv_cc_flag_unknown_warning_option=yes
6445 else $as_nop
6446 xorg_cv_cc_flag_unknown_warning_option=no
6447 fi
6448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6449 fi
6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6451 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6452 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6453 CFLAGS="$xorg_testset_save_CFLAGS"
6454 fi
6455
6456 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6459 fi
6460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6462 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6463 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6464 then :
6465 printf %s "(cached) " >&6
6466 else $as_nop
6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6469 int i;
6470 _ACEOF
6471 if ac_fn_c_try_compile "$LINENO"
6472 then :
6473 xorg_cv_cc_flag_unused_command_line_argument=yes
6474 else $as_nop
6475 xorg_cv_cc_flag_unused_command_line_argument=no
6476 fi
6477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6478 fi
6479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6480 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6482 CFLAGS="$xorg_testset_save_CFLAGS"
6483 fi
6484
6485 found="no"
6486
6487 if test $found = "no" ; then
6488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6490 fi
6491
6492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6494 fi
6495
6496 CFLAGS="$CFLAGS -Wshadow"
6497
6498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6499 printf %s "checking if $CC supports -Wshadow... " >&6; }
6500 cacheid=xorg_cv_cc_flag__Wshadow
6501 if eval test \${$cacheid+y}
6502 then :
6503 printf %s "(cached) " >&6
6504 else $as_nop
6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506 /* end confdefs.h. */
6507 int i;
6508 int
6509 main (void)
6510 {
6511
6512 ;
6513 return 0;
6514 }
6515 _ACEOF
6516 if ac_fn_c_try_link "$LINENO"
6517 then :
6518 eval $cacheid=yes
6519 else $as_nop
6520 eval $cacheid=no
6521 fi
6522 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6523 conftest$ac_exeext conftest.$ac_ext
6524 fi
6525
6526
6527 CFLAGS="$xorg_testset_save_CFLAGS"
6528
6529 eval supported=\$$cacheid
6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6531 printf "%s\n" "$supported" >&6; }
6532 if test "$supported" = "yes" ; then
6533 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6534 found="yes"
6535 fi
6536 fi
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552 xorg_testset_save_CFLAGS="$CFLAGS"
6553
6554 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6557 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6558 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6559 then :
6560 printf %s "(cached) " >&6
6561 else $as_nop
6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h. */
6564 int i;
6565 _ACEOF
6566 if ac_fn_c_try_compile "$LINENO"
6567 then :
6568 xorg_cv_cc_flag_unknown_warning_option=yes
6569 else $as_nop
6570 xorg_cv_cc_flag_unknown_warning_option=no
6571 fi
6572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6573 fi
6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6575 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6577 CFLAGS="$xorg_testset_save_CFLAGS"
6578 fi
6579
6580 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6583 fi
6584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6586 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6587 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6588 then :
6589 printf %s "(cached) " >&6
6590 else $as_nop
6591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592 /* end confdefs.h. */
6593 int i;
6594 _ACEOF
6595 if ac_fn_c_try_compile "$LINENO"
6596 then :
6597 xorg_cv_cc_flag_unused_command_line_argument=yes
6598 else $as_nop
6599 xorg_cv_cc_flag_unused_command_line_argument=no
6600 fi
6601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6602 fi
6603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6604 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6606 CFLAGS="$xorg_testset_save_CFLAGS"
6607 fi
6608
6609 found="no"
6610
6611 if test $found = "no" ; then
6612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6614 fi
6615
6616 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6618 fi
6619
6620 CFLAGS="$CFLAGS -Wmissing-noreturn"
6621
6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6623 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6624 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6625 if eval test \${$cacheid+y}
6626 then :
6627 printf %s "(cached) " >&6
6628 else $as_nop
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6631 int i;
6632 int
6633 main (void)
6634 {
6635
6636 ;
6637 return 0;
6638 }
6639 _ACEOF
6640 if ac_fn_c_try_link "$LINENO"
6641 then :
6642 eval $cacheid=yes
6643 else $as_nop
6644 eval $cacheid=no
6645 fi
6646 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6647 conftest$ac_exeext conftest.$ac_ext
6648 fi
6649
6650
6651 CFLAGS="$xorg_testset_save_CFLAGS"
6652
6653 eval supported=\$$cacheid
6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6655 printf "%s\n" "$supported" >&6; }
6656 if test "$supported" = "yes" ; then
6657 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6658 found="yes"
6659 fi
6660 fi
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676 xorg_testset_save_CFLAGS="$CFLAGS"
6677
6678 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6681 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6682 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6683 then :
6684 printf %s "(cached) " >&6
6685 else $as_nop
6686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687 /* end confdefs.h. */
6688 int i;
6689 _ACEOF
6690 if ac_fn_c_try_compile "$LINENO"
6691 then :
6692 xorg_cv_cc_flag_unknown_warning_option=yes
6693 else $as_nop
6694 xorg_cv_cc_flag_unknown_warning_option=no
6695 fi
6696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6697 fi
6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6699 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6701 CFLAGS="$xorg_testset_save_CFLAGS"
6702 fi
6703
6704 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6707 fi
6708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6710 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6711 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6712 then :
6713 printf %s "(cached) " >&6
6714 else $as_nop
6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h. */
6717 int i;
6718 _ACEOF
6719 if ac_fn_c_try_compile "$LINENO"
6720 then :
6721 xorg_cv_cc_flag_unused_command_line_argument=yes
6722 else $as_nop
6723 xorg_cv_cc_flag_unused_command_line_argument=no
6724 fi
6725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6726 fi
6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6728 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6730 CFLAGS="$xorg_testset_save_CFLAGS"
6731 fi
6732
6733 found="no"
6734
6735 if test $found = "no" ; then
6736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6738 fi
6739
6740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6742 fi
6743
6744 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6745
6746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6747 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6748 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6749 if eval test \${$cacheid+y}
6750 then :
6751 printf %s "(cached) " >&6
6752 else $as_nop
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755 int i;
6756 int
6757 main (void)
6758 {
6759
6760 ;
6761 return 0;
6762 }
6763 _ACEOF
6764 if ac_fn_c_try_link "$LINENO"
6765 then :
6766 eval $cacheid=yes
6767 else $as_nop
6768 eval $cacheid=no
6769 fi
6770 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6771 conftest$ac_exeext conftest.$ac_ext
6772 fi
6773
6774
6775 CFLAGS="$xorg_testset_save_CFLAGS"
6776
6777 eval supported=\$$cacheid
6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6779 printf "%s\n" "$supported" >&6; }
6780 if test "$supported" = "yes" ; then
6781 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6782 found="yes"
6783 fi
6784 fi
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800 xorg_testset_save_CFLAGS="$CFLAGS"
6801
6802 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6805 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6806 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6807 then :
6808 printf %s "(cached) " >&6
6809 else $as_nop
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812 int i;
6813 _ACEOF
6814 if ac_fn_c_try_compile "$LINENO"
6815 then :
6816 xorg_cv_cc_flag_unknown_warning_option=yes
6817 else $as_nop
6818 xorg_cv_cc_flag_unknown_warning_option=no
6819 fi
6820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6821 fi
6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6823 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6824 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6825 CFLAGS="$xorg_testset_save_CFLAGS"
6826 fi
6827
6828 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6831 fi
6832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6834 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6835 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6836 then :
6837 printf %s "(cached) " >&6
6838 else $as_nop
6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h. */
6841 int i;
6842 _ACEOF
6843 if ac_fn_c_try_compile "$LINENO"
6844 then :
6845 xorg_cv_cc_flag_unused_command_line_argument=yes
6846 else $as_nop
6847 xorg_cv_cc_flag_unused_command_line_argument=no
6848 fi
6849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6850 fi
6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6852 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6854 CFLAGS="$xorg_testset_save_CFLAGS"
6855 fi
6856
6857 found="no"
6858
6859 if test $found = "no" ; then
6860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6862 fi
6863
6864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6866 fi
6867
6868 CFLAGS="$CFLAGS -Wredundant-decls"
6869
6870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6871 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6872 cacheid=xorg_cv_cc_flag__Wredundant_decls
6873 if eval test \${$cacheid+y}
6874 then :
6875 printf %s "(cached) " >&6
6876 else $as_nop
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6879 int i;
6880 int
6881 main (void)
6882 {
6883
6884 ;
6885 return 0;
6886 }
6887 _ACEOF
6888 if ac_fn_c_try_link "$LINENO"
6889 then :
6890 eval $cacheid=yes
6891 else $as_nop
6892 eval $cacheid=no
6893 fi
6894 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6895 conftest$ac_exeext conftest.$ac_ext
6896 fi
6897
6898
6899 CFLAGS="$xorg_testset_save_CFLAGS"
6900
6901 eval supported=\$$cacheid
6902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6903 printf "%s\n" "$supported" >&6; }
6904 if test "$supported" = "yes" ; then
6905 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6906 found="yes"
6907 fi
6908 fi
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924 xorg_testset_save_CFLAGS="$CFLAGS"
6925
6926 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6929 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6930 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6931 then :
6932 printf %s "(cached) " >&6
6933 else $as_nop
6934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h. */
6936 int i;
6937 _ACEOF
6938 if ac_fn_c_try_compile "$LINENO"
6939 then :
6940 xorg_cv_cc_flag_unknown_warning_option=yes
6941 else $as_nop
6942 xorg_cv_cc_flag_unknown_warning_option=no
6943 fi
6944 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6945 fi
6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6947 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6949 CFLAGS="$xorg_testset_save_CFLAGS"
6950 fi
6951
6952 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6955 fi
6956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6958 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6959 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6960 then :
6961 printf %s "(cached) " >&6
6962 else $as_nop
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6965 int i;
6966 _ACEOF
6967 if ac_fn_c_try_compile "$LINENO"
6968 then :
6969 xorg_cv_cc_flag_unused_command_line_argument=yes
6970 else $as_nop
6971 xorg_cv_cc_flag_unused_command_line_argument=no
6972 fi
6973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6974 fi
6975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6976 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6978 CFLAGS="$xorg_testset_save_CFLAGS"
6979 fi
6980
6981 found="no"
6982
6983 if test $found = "no" ; then
6984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6986 fi
6987
6988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6990 fi
6991
6992 CFLAGS="$CFLAGS -Wlogical-op"
6993
6994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6995 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
6996 cacheid=xorg_cv_cc_flag__Wlogical_op
6997 if eval test \${$cacheid+y}
6998 then :
6999 printf %s "(cached) " >&6
7000 else $as_nop
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7003 int i;
7004 int
7005 main (void)
7006 {
7007
7008 ;
7009 return 0;
7010 }
7011 _ACEOF
7012 if ac_fn_c_try_link "$LINENO"
7013 then :
7014 eval $cacheid=yes
7015 else $as_nop
7016 eval $cacheid=no
7017 fi
7018 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7019 conftest$ac_exeext conftest.$ac_ext
7020 fi
7021
7022
7023 CFLAGS="$xorg_testset_save_CFLAGS"
7024
7025 eval supported=\$$cacheid
7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7027 printf "%s\n" "$supported" >&6; }
7028 if test "$supported" = "yes" ; then
7029 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7030 found="yes"
7031 fi
7032 fi
7033
7034
7035
7036 # These are currently disabled because they are noisy. They will be enabled
7037 # in the future once the codebase is sufficiently modernized to silence
7038 # them. For now, I don't want them to drown out the other warnings.
7039 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7040 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7041 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7042
7043 # Turn some warnings into errors, so we don't accidently get successful builds
7044 # when there are problems that should be fixed.
7045
7046 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060 xorg_testset_save_CFLAGS="$CFLAGS"
7061
7062 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7065 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7066 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7067 then :
7068 printf %s "(cached) " >&6
7069 else $as_nop
7070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h. */
7072 int i;
7073 _ACEOF
7074 if ac_fn_c_try_compile "$LINENO"
7075 then :
7076 xorg_cv_cc_flag_unknown_warning_option=yes
7077 else $as_nop
7078 xorg_cv_cc_flag_unknown_warning_option=no
7079 fi
7080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7081 fi
7082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7083 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7085 CFLAGS="$xorg_testset_save_CFLAGS"
7086 fi
7087
7088 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7091 fi
7092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7094 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7095 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7096 then :
7097 printf %s "(cached) " >&6
7098 else $as_nop
7099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100 /* end confdefs.h. */
7101 int i;
7102 _ACEOF
7103 if ac_fn_c_try_compile "$LINENO"
7104 then :
7105 xorg_cv_cc_flag_unused_command_line_argument=yes
7106 else $as_nop
7107 xorg_cv_cc_flag_unused_command_line_argument=no
7108 fi
7109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7110 fi
7111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7112 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7114 CFLAGS="$xorg_testset_save_CFLAGS"
7115 fi
7116
7117 found="no"
7118
7119 if test $found = "no" ; then
7120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7122 fi
7123
7124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7126 fi
7127
7128 CFLAGS="$CFLAGS -Werror=implicit"
7129
7130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7131 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7132 cacheid=xorg_cv_cc_flag__Werror_implicit
7133 if eval test \${$cacheid+y}
7134 then :
7135 printf %s "(cached) " >&6
7136 else $as_nop
7137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7138 /* end confdefs.h. */
7139 int i;
7140 int
7141 main (void)
7142 {
7143
7144 ;
7145 return 0;
7146 }
7147 _ACEOF
7148 if ac_fn_c_try_link "$LINENO"
7149 then :
7150 eval $cacheid=yes
7151 else $as_nop
7152 eval $cacheid=no
7153 fi
7154 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7155 conftest$ac_exeext conftest.$ac_ext
7156 fi
7157
7158
7159 CFLAGS="$xorg_testset_save_CFLAGS"
7160
7161 eval supported=\$$cacheid
7162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7163 printf "%s\n" "$supported" >&6; }
7164 if test "$supported" = "yes" ; then
7165 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7166 found="yes"
7167 fi
7168 fi
7169
7170 if test $found = "no" ; then
7171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7173 fi
7174
7175 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7177 fi
7178
7179 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7180
7181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7182 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7183 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7184 if eval test \${$cacheid+y}
7185 then :
7186 printf %s "(cached) " >&6
7187 else $as_nop
7188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h. */
7190 int i;
7191 int
7192 main (void)
7193 {
7194
7195 ;
7196 return 0;
7197 }
7198 _ACEOF
7199 if ac_fn_c_try_link "$LINENO"
7200 then :
7201 eval $cacheid=yes
7202 else $as_nop
7203 eval $cacheid=no
7204 fi
7205 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7206 conftest$ac_exeext conftest.$ac_ext
7207 fi
7208
7209
7210 CFLAGS="$xorg_testset_save_CFLAGS"
7211
7212 eval supported=\$$cacheid
7213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7214 printf "%s\n" "$supported" >&6; }
7215 if test "$supported" = "yes" ; then
7216 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7217 found="yes"
7218 fi
7219 fi
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235 xorg_testset_save_CFLAGS="$CFLAGS"
7236
7237 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7240 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7241 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7242 then :
7243 printf %s "(cached) " >&6
7244 else $as_nop
7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h. */
7247 int i;
7248 _ACEOF
7249 if ac_fn_c_try_compile "$LINENO"
7250 then :
7251 xorg_cv_cc_flag_unknown_warning_option=yes
7252 else $as_nop
7253 xorg_cv_cc_flag_unknown_warning_option=no
7254 fi
7255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7256 fi
7257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7258 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7259 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7260 CFLAGS="$xorg_testset_save_CFLAGS"
7261 fi
7262
7263 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7266 fi
7267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7269 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7270 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7271 then :
7272 printf %s "(cached) " >&6
7273 else $as_nop
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7276 int i;
7277 _ACEOF
7278 if ac_fn_c_try_compile "$LINENO"
7279 then :
7280 xorg_cv_cc_flag_unused_command_line_argument=yes
7281 else $as_nop
7282 xorg_cv_cc_flag_unused_command_line_argument=no
7283 fi
7284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7285 fi
7286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7287 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7289 CFLAGS="$xorg_testset_save_CFLAGS"
7290 fi
7291
7292 found="no"
7293
7294 if test $found = "no" ; then
7295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7297 fi
7298
7299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7301 fi
7302
7303 CFLAGS="$CFLAGS -Werror=nonnull"
7304
7305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7306 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7307 cacheid=xorg_cv_cc_flag__Werror_nonnull
7308 if eval test \${$cacheid+y}
7309 then :
7310 printf %s "(cached) " >&6
7311 else $as_nop
7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7314 int i;
7315 int
7316 main (void)
7317 {
7318
7319 ;
7320 return 0;
7321 }
7322 _ACEOF
7323 if ac_fn_c_try_link "$LINENO"
7324 then :
7325 eval $cacheid=yes
7326 else $as_nop
7327 eval $cacheid=no
7328 fi
7329 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7330 conftest$ac_exeext conftest.$ac_ext
7331 fi
7332
7333
7334 CFLAGS="$xorg_testset_save_CFLAGS"
7335
7336 eval supported=\$$cacheid
7337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7338 printf "%s\n" "$supported" >&6; }
7339 if test "$supported" = "yes" ; then
7340 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7341 found="yes"
7342 fi
7343 fi
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359 xorg_testset_save_CFLAGS="$CFLAGS"
7360
7361 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7364 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7365 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7366 then :
7367 printf %s "(cached) " >&6
7368 else $as_nop
7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7371 int i;
7372 _ACEOF
7373 if ac_fn_c_try_compile "$LINENO"
7374 then :
7375 xorg_cv_cc_flag_unknown_warning_option=yes
7376 else $as_nop
7377 xorg_cv_cc_flag_unknown_warning_option=no
7378 fi
7379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7380 fi
7381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7382 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7384 CFLAGS="$xorg_testset_save_CFLAGS"
7385 fi
7386
7387 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7390 fi
7391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7393 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7394 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7395 then :
7396 printf %s "(cached) " >&6
7397 else $as_nop
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h. */
7400 int i;
7401 _ACEOF
7402 if ac_fn_c_try_compile "$LINENO"
7403 then :
7404 xorg_cv_cc_flag_unused_command_line_argument=yes
7405 else $as_nop
7406 xorg_cv_cc_flag_unused_command_line_argument=no
7407 fi
7408 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7409 fi
7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7411 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7412 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7413 CFLAGS="$xorg_testset_save_CFLAGS"
7414 fi
7415
7416 found="no"
7417
7418 if test $found = "no" ; then
7419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7421 fi
7422
7423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7425 fi
7426
7427 CFLAGS="$CFLAGS -Werror=init-self"
7428
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7430 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7431 cacheid=xorg_cv_cc_flag__Werror_init_self
7432 if eval test \${$cacheid+y}
7433 then :
7434 printf %s "(cached) " >&6
7435 else $as_nop
7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h. */
7438 int i;
7439 int
7440 main (void)
7441 {
7442
7443 ;
7444 return 0;
7445 }
7446 _ACEOF
7447 if ac_fn_c_try_link "$LINENO"
7448 then :
7449 eval $cacheid=yes
7450 else $as_nop
7451 eval $cacheid=no
7452 fi
7453 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7454 conftest$ac_exeext conftest.$ac_ext
7455 fi
7456
7457
7458 CFLAGS="$xorg_testset_save_CFLAGS"
7459
7460 eval supported=\$$cacheid
7461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7462 printf "%s\n" "$supported" >&6; }
7463 if test "$supported" = "yes" ; then
7464 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7465 found="yes"
7466 fi
7467 fi
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483 xorg_testset_save_CFLAGS="$CFLAGS"
7484
7485 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7488 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7489 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7490 then :
7491 printf %s "(cached) " >&6
7492 else $as_nop
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7495 int i;
7496 _ACEOF
7497 if ac_fn_c_try_compile "$LINENO"
7498 then :
7499 xorg_cv_cc_flag_unknown_warning_option=yes
7500 else $as_nop
7501 xorg_cv_cc_flag_unknown_warning_option=no
7502 fi
7503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7504 fi
7505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7506 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7508 CFLAGS="$xorg_testset_save_CFLAGS"
7509 fi
7510
7511 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7514 fi
7515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7517 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7518 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7519 then :
7520 printf %s "(cached) " >&6
7521 else $as_nop
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7524 int i;
7525 _ACEOF
7526 if ac_fn_c_try_compile "$LINENO"
7527 then :
7528 xorg_cv_cc_flag_unused_command_line_argument=yes
7529 else $as_nop
7530 xorg_cv_cc_flag_unused_command_line_argument=no
7531 fi
7532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7533 fi
7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7535 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7537 CFLAGS="$xorg_testset_save_CFLAGS"
7538 fi
7539
7540 found="no"
7541
7542 if test $found = "no" ; then
7543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7545 fi
7546
7547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7549 fi
7550
7551 CFLAGS="$CFLAGS -Werror=main"
7552
7553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7554 printf %s "checking if $CC supports -Werror=main... " >&6; }
7555 cacheid=xorg_cv_cc_flag__Werror_main
7556 if eval test \${$cacheid+y}
7557 then :
7558 printf %s "(cached) " >&6
7559 else $as_nop
7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561 /* end confdefs.h. */
7562 int i;
7563 int
7564 main (void)
7565 {
7566
7567 ;
7568 return 0;
7569 }
7570 _ACEOF
7571 if ac_fn_c_try_link "$LINENO"
7572 then :
7573 eval $cacheid=yes
7574 else $as_nop
7575 eval $cacheid=no
7576 fi
7577 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7578 conftest$ac_exeext conftest.$ac_ext
7579 fi
7580
7581
7582 CFLAGS="$xorg_testset_save_CFLAGS"
7583
7584 eval supported=\$$cacheid
7585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7586 printf "%s\n" "$supported" >&6; }
7587 if test "$supported" = "yes" ; then
7588 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7589 found="yes"
7590 fi
7591 fi
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607 xorg_testset_save_CFLAGS="$CFLAGS"
7608
7609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7612 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7613 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7614 then :
7615 printf %s "(cached) " >&6
7616 else $as_nop
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7619 int i;
7620 _ACEOF
7621 if ac_fn_c_try_compile "$LINENO"
7622 then :
7623 xorg_cv_cc_flag_unknown_warning_option=yes
7624 else $as_nop
7625 xorg_cv_cc_flag_unknown_warning_option=no
7626 fi
7627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7628 fi
7629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7630 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7631 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7632 CFLAGS="$xorg_testset_save_CFLAGS"
7633 fi
7634
7635 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7638 fi
7639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7641 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7642 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7643 then :
7644 printf %s "(cached) " >&6
7645 else $as_nop
7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h. */
7648 int i;
7649 _ACEOF
7650 if ac_fn_c_try_compile "$LINENO"
7651 then :
7652 xorg_cv_cc_flag_unused_command_line_argument=yes
7653 else $as_nop
7654 xorg_cv_cc_flag_unused_command_line_argument=no
7655 fi
7656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7657 fi
7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7659 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7661 CFLAGS="$xorg_testset_save_CFLAGS"
7662 fi
7663
7664 found="no"
7665
7666 if test $found = "no" ; then
7667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7669 fi
7670
7671 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7673 fi
7674
7675 CFLAGS="$CFLAGS -Werror=missing-braces"
7676
7677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7678 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7679 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7680 if eval test \${$cacheid+y}
7681 then :
7682 printf %s "(cached) " >&6
7683 else $as_nop
7684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h. */
7686 int i;
7687 int
7688 main (void)
7689 {
7690
7691 ;
7692 return 0;
7693 }
7694 _ACEOF
7695 if ac_fn_c_try_link "$LINENO"
7696 then :
7697 eval $cacheid=yes
7698 else $as_nop
7699 eval $cacheid=no
7700 fi
7701 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7702 conftest$ac_exeext conftest.$ac_ext
7703 fi
7704
7705
7706 CFLAGS="$xorg_testset_save_CFLAGS"
7707
7708 eval supported=\$$cacheid
7709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7710 printf "%s\n" "$supported" >&6; }
7711 if test "$supported" = "yes" ; then
7712 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7713 found="yes"
7714 fi
7715 fi
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731 xorg_testset_save_CFLAGS="$CFLAGS"
7732
7733 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7736 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7737 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7738 then :
7739 printf %s "(cached) " >&6
7740 else $as_nop
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7743 int i;
7744 _ACEOF
7745 if ac_fn_c_try_compile "$LINENO"
7746 then :
7747 xorg_cv_cc_flag_unknown_warning_option=yes
7748 else $as_nop
7749 xorg_cv_cc_flag_unknown_warning_option=no
7750 fi
7751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7752 fi
7753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7754 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7756 CFLAGS="$xorg_testset_save_CFLAGS"
7757 fi
7758
7759 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7762 fi
7763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7765 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7766 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7767 then :
7768 printf %s "(cached) " >&6
7769 else $as_nop
7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771 /* end confdefs.h. */
7772 int i;
7773 _ACEOF
7774 if ac_fn_c_try_compile "$LINENO"
7775 then :
7776 xorg_cv_cc_flag_unused_command_line_argument=yes
7777 else $as_nop
7778 xorg_cv_cc_flag_unused_command_line_argument=no
7779 fi
7780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7781 fi
7782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7783 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7785 CFLAGS="$xorg_testset_save_CFLAGS"
7786 fi
7787
7788 found="no"
7789
7790 if test $found = "no" ; then
7791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7793 fi
7794
7795 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7797 fi
7798
7799 CFLAGS="$CFLAGS -Werror=sequence-point"
7800
7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7802 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7803 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7804 if eval test \${$cacheid+y}
7805 then :
7806 printf %s "(cached) " >&6
7807 else $as_nop
7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h. */
7810 int i;
7811 int
7812 main (void)
7813 {
7814
7815 ;
7816 return 0;
7817 }
7818 _ACEOF
7819 if ac_fn_c_try_link "$LINENO"
7820 then :
7821 eval $cacheid=yes
7822 else $as_nop
7823 eval $cacheid=no
7824 fi
7825 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7826 conftest$ac_exeext conftest.$ac_ext
7827 fi
7828
7829
7830 CFLAGS="$xorg_testset_save_CFLAGS"
7831
7832 eval supported=\$$cacheid
7833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7834 printf "%s\n" "$supported" >&6; }
7835 if test "$supported" = "yes" ; then
7836 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7837 found="yes"
7838 fi
7839 fi
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855 xorg_testset_save_CFLAGS="$CFLAGS"
7856
7857 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7860 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7861 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7862 then :
7863 printf %s "(cached) " >&6
7864 else $as_nop
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7867 int i;
7868 _ACEOF
7869 if ac_fn_c_try_compile "$LINENO"
7870 then :
7871 xorg_cv_cc_flag_unknown_warning_option=yes
7872 else $as_nop
7873 xorg_cv_cc_flag_unknown_warning_option=no
7874 fi
7875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7876 fi
7877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7878 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7879 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7880 CFLAGS="$xorg_testset_save_CFLAGS"
7881 fi
7882
7883 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7886 fi
7887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7889 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7890 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7891 then :
7892 printf %s "(cached) " >&6
7893 else $as_nop
7894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h. */
7896 int i;
7897 _ACEOF
7898 if ac_fn_c_try_compile "$LINENO"
7899 then :
7900 xorg_cv_cc_flag_unused_command_line_argument=yes
7901 else $as_nop
7902 xorg_cv_cc_flag_unused_command_line_argument=no
7903 fi
7904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7905 fi
7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7907 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7909 CFLAGS="$xorg_testset_save_CFLAGS"
7910 fi
7911
7912 found="no"
7913
7914 if test $found = "no" ; then
7915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7917 fi
7918
7919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7921 fi
7922
7923 CFLAGS="$CFLAGS -Werror=return-type"
7924
7925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7926 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7927 cacheid=xorg_cv_cc_flag__Werror_return_type
7928 if eval test \${$cacheid+y}
7929 then :
7930 printf %s "(cached) " >&6
7931 else $as_nop
7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h. */
7934 int i;
7935 int
7936 main (void)
7937 {
7938
7939 ;
7940 return 0;
7941 }
7942 _ACEOF
7943 if ac_fn_c_try_link "$LINENO"
7944 then :
7945 eval $cacheid=yes
7946 else $as_nop
7947 eval $cacheid=no
7948 fi
7949 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7950 conftest$ac_exeext conftest.$ac_ext
7951 fi
7952
7953
7954 CFLAGS="$xorg_testset_save_CFLAGS"
7955
7956 eval supported=\$$cacheid
7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7958 printf "%s\n" "$supported" >&6; }
7959 if test "$supported" = "yes" ; then
7960 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7961 found="yes"
7962 fi
7963 fi
7964
7965 if test $found = "no" ; then
7966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7968 fi
7969
7970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7972 fi
7973
7974 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7975
7976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7977 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7978 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7979 if eval test \${$cacheid+y}
7980 then :
7981 printf %s "(cached) " >&6
7982 else $as_nop
7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h. */
7985 int i;
7986 int
7987 main (void)
7988 {
7989
7990 ;
7991 return 0;
7992 }
7993 _ACEOF
7994 if ac_fn_c_try_link "$LINENO"
7995 then :
7996 eval $cacheid=yes
7997 else $as_nop
7998 eval $cacheid=no
7999 fi
8000 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8001 conftest$ac_exeext conftest.$ac_ext
8002 fi
8003
8004
8005 CFLAGS="$xorg_testset_save_CFLAGS"
8006
8007 eval supported=\$$cacheid
8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8009 printf "%s\n" "$supported" >&6; }
8010 if test "$supported" = "yes" ; then
8011 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8012 found="yes"
8013 fi
8014 fi
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030 xorg_testset_save_CFLAGS="$CFLAGS"
8031
8032 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8035 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8036 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8037 then :
8038 printf %s "(cached) " >&6
8039 else $as_nop
8040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041 /* end confdefs.h. */
8042 int i;
8043 _ACEOF
8044 if ac_fn_c_try_compile "$LINENO"
8045 then :
8046 xorg_cv_cc_flag_unknown_warning_option=yes
8047 else $as_nop
8048 xorg_cv_cc_flag_unknown_warning_option=no
8049 fi
8050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8051 fi
8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8053 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8055 CFLAGS="$xorg_testset_save_CFLAGS"
8056 fi
8057
8058 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8061 fi
8062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8064 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8065 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8066 then :
8067 printf %s "(cached) " >&6
8068 else $as_nop
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8071 int i;
8072 _ACEOF
8073 if ac_fn_c_try_compile "$LINENO"
8074 then :
8075 xorg_cv_cc_flag_unused_command_line_argument=yes
8076 else $as_nop
8077 xorg_cv_cc_flag_unused_command_line_argument=no
8078 fi
8079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8080 fi
8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8082 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8084 CFLAGS="$xorg_testset_save_CFLAGS"
8085 fi
8086
8087 found="no"
8088
8089 if test $found = "no" ; then
8090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8092 fi
8093
8094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8096 fi
8097
8098 CFLAGS="$CFLAGS -Werror=trigraphs"
8099
8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8101 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8102 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8103 if eval test \${$cacheid+y}
8104 then :
8105 printf %s "(cached) " >&6
8106 else $as_nop
8107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h. */
8109 int i;
8110 int
8111 main (void)
8112 {
8113
8114 ;
8115 return 0;
8116 }
8117 _ACEOF
8118 if ac_fn_c_try_link "$LINENO"
8119 then :
8120 eval $cacheid=yes
8121 else $as_nop
8122 eval $cacheid=no
8123 fi
8124 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8125 conftest$ac_exeext conftest.$ac_ext
8126 fi
8127
8128
8129 CFLAGS="$xorg_testset_save_CFLAGS"
8130
8131 eval supported=\$$cacheid
8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8133 printf "%s\n" "$supported" >&6; }
8134 if test "$supported" = "yes" ; then
8135 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8136 found="yes"
8137 fi
8138 fi
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154 xorg_testset_save_CFLAGS="$CFLAGS"
8155
8156 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8159 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8160 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8161 then :
8162 printf %s "(cached) " >&6
8163 else $as_nop
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8166 int i;
8167 _ACEOF
8168 if ac_fn_c_try_compile "$LINENO"
8169 then :
8170 xorg_cv_cc_flag_unknown_warning_option=yes
8171 else $as_nop
8172 xorg_cv_cc_flag_unknown_warning_option=no
8173 fi
8174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8175 fi
8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8177 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8179 CFLAGS="$xorg_testset_save_CFLAGS"
8180 fi
8181
8182 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8185 fi
8186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8188 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8189 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8190 then :
8191 printf %s "(cached) " >&6
8192 else $as_nop
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8195 int i;
8196 _ACEOF
8197 if ac_fn_c_try_compile "$LINENO"
8198 then :
8199 xorg_cv_cc_flag_unused_command_line_argument=yes
8200 else $as_nop
8201 xorg_cv_cc_flag_unused_command_line_argument=no
8202 fi
8203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8204 fi
8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8206 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8208 CFLAGS="$xorg_testset_save_CFLAGS"
8209 fi
8210
8211 found="no"
8212
8213 if test $found = "no" ; then
8214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8216 fi
8217
8218 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8220 fi
8221
8222 CFLAGS="$CFLAGS -Werror=array-bounds"
8223
8224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8225 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8226 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8227 if eval test \${$cacheid+y}
8228 then :
8229 printf %s "(cached) " >&6
8230 else $as_nop
8231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h. */
8233 int i;
8234 int
8235 main (void)
8236 {
8237
8238 ;
8239 return 0;
8240 }
8241 _ACEOF
8242 if ac_fn_c_try_link "$LINENO"
8243 then :
8244 eval $cacheid=yes
8245 else $as_nop
8246 eval $cacheid=no
8247 fi
8248 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8249 conftest$ac_exeext conftest.$ac_ext
8250 fi
8251
8252
8253 CFLAGS="$xorg_testset_save_CFLAGS"
8254
8255 eval supported=\$$cacheid
8256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8257 printf "%s\n" "$supported" >&6; }
8258 if test "$supported" = "yes" ; then
8259 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8260 found="yes"
8261 fi
8262 fi
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278 xorg_testset_save_CFLAGS="$CFLAGS"
8279
8280 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8283 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8284 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8285 then :
8286 printf %s "(cached) " >&6
8287 else $as_nop
8288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289 /* end confdefs.h. */
8290 int i;
8291 _ACEOF
8292 if ac_fn_c_try_compile "$LINENO"
8293 then :
8294 xorg_cv_cc_flag_unknown_warning_option=yes
8295 else $as_nop
8296 xorg_cv_cc_flag_unknown_warning_option=no
8297 fi
8298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8299 fi
8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8301 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8302 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8303 CFLAGS="$xorg_testset_save_CFLAGS"
8304 fi
8305
8306 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8309 fi
8310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8312 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8313 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8314 then :
8315 printf %s "(cached) " >&6
8316 else $as_nop
8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h. */
8319 int i;
8320 _ACEOF
8321 if ac_fn_c_try_compile "$LINENO"
8322 then :
8323 xorg_cv_cc_flag_unused_command_line_argument=yes
8324 else $as_nop
8325 xorg_cv_cc_flag_unused_command_line_argument=no
8326 fi
8327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8328 fi
8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8330 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8331 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8332 CFLAGS="$xorg_testset_save_CFLAGS"
8333 fi
8334
8335 found="no"
8336
8337 if test $found = "no" ; then
8338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8340 fi
8341
8342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8344 fi
8345
8346 CFLAGS="$CFLAGS -Werror=write-strings"
8347
8348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8349 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8350 cacheid=xorg_cv_cc_flag__Werror_write_strings
8351 if eval test \${$cacheid+y}
8352 then :
8353 printf %s "(cached) " >&6
8354 else $as_nop
8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8357 int i;
8358 int
8359 main (void)
8360 {
8361
8362 ;
8363 return 0;
8364 }
8365 _ACEOF
8366 if ac_fn_c_try_link "$LINENO"
8367 then :
8368 eval $cacheid=yes
8369 else $as_nop
8370 eval $cacheid=no
8371 fi
8372 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8373 conftest$ac_exeext conftest.$ac_ext
8374 fi
8375
8376
8377 CFLAGS="$xorg_testset_save_CFLAGS"
8378
8379 eval supported=\$$cacheid
8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8381 printf "%s\n" "$supported" >&6; }
8382 if test "$supported" = "yes" ; then
8383 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8384 found="yes"
8385 fi
8386 fi
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402 xorg_testset_save_CFLAGS="$CFLAGS"
8403
8404 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8407 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8408 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8409 then :
8410 printf %s "(cached) " >&6
8411 else $as_nop
8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h. */
8414 int i;
8415 _ACEOF
8416 if ac_fn_c_try_compile "$LINENO"
8417 then :
8418 xorg_cv_cc_flag_unknown_warning_option=yes
8419 else $as_nop
8420 xorg_cv_cc_flag_unknown_warning_option=no
8421 fi
8422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8423 fi
8424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8425 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8427 CFLAGS="$xorg_testset_save_CFLAGS"
8428 fi
8429
8430 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8433 fi
8434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8436 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8437 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8438 then :
8439 printf %s "(cached) " >&6
8440 else $as_nop
8441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442 /* end confdefs.h. */
8443 int i;
8444 _ACEOF
8445 if ac_fn_c_try_compile "$LINENO"
8446 then :
8447 xorg_cv_cc_flag_unused_command_line_argument=yes
8448 else $as_nop
8449 xorg_cv_cc_flag_unused_command_line_argument=no
8450 fi
8451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8452 fi
8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8454 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8456 CFLAGS="$xorg_testset_save_CFLAGS"
8457 fi
8458
8459 found="no"
8460
8461 if test $found = "no" ; then
8462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8464 fi
8465
8466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8468 fi
8469
8470 CFLAGS="$CFLAGS -Werror=address"
8471
8472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8473 printf %s "checking if $CC supports -Werror=address... " >&6; }
8474 cacheid=xorg_cv_cc_flag__Werror_address
8475 if eval test \${$cacheid+y}
8476 then :
8477 printf %s "(cached) " >&6
8478 else $as_nop
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8481 int i;
8482 int
8483 main (void)
8484 {
8485
8486 ;
8487 return 0;
8488 }
8489 _ACEOF
8490 if ac_fn_c_try_link "$LINENO"
8491 then :
8492 eval $cacheid=yes
8493 else $as_nop
8494 eval $cacheid=no
8495 fi
8496 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8497 conftest$ac_exeext conftest.$ac_ext
8498 fi
8499
8500
8501 CFLAGS="$xorg_testset_save_CFLAGS"
8502
8503 eval supported=\$$cacheid
8504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8505 printf "%s\n" "$supported" >&6; }
8506 if test "$supported" = "yes" ; then
8507 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8508 found="yes"
8509 fi
8510 fi
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526 xorg_testset_save_CFLAGS="$CFLAGS"
8527
8528 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8531 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8532 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8533 then :
8534 printf %s "(cached) " >&6
8535 else $as_nop
8536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537 /* end confdefs.h. */
8538 int i;
8539 _ACEOF
8540 if ac_fn_c_try_compile "$LINENO"
8541 then :
8542 xorg_cv_cc_flag_unknown_warning_option=yes
8543 else $as_nop
8544 xorg_cv_cc_flag_unknown_warning_option=no
8545 fi
8546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8547 fi
8548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8549 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8550 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8551 CFLAGS="$xorg_testset_save_CFLAGS"
8552 fi
8553
8554 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8557 fi
8558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8560 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8561 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8562 then :
8563 printf %s "(cached) " >&6
8564 else $as_nop
8565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h. */
8567 int i;
8568 _ACEOF
8569 if ac_fn_c_try_compile "$LINENO"
8570 then :
8571 xorg_cv_cc_flag_unused_command_line_argument=yes
8572 else $as_nop
8573 xorg_cv_cc_flag_unused_command_line_argument=no
8574 fi
8575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8576 fi
8577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8578 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8580 CFLAGS="$xorg_testset_save_CFLAGS"
8581 fi
8582
8583 found="no"
8584
8585 if test $found = "no" ; then
8586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8588 fi
8589
8590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8592 fi
8593
8594 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8595
8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8597 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8598 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8599 if eval test \${$cacheid+y}
8600 then :
8601 printf %s "(cached) " >&6
8602 else $as_nop
8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8605 int i;
8606 int
8607 main (void)
8608 {
8609
8610 ;
8611 return 0;
8612 }
8613 _ACEOF
8614 if ac_fn_c_try_link "$LINENO"
8615 then :
8616 eval $cacheid=yes
8617 else $as_nop
8618 eval $cacheid=no
8619 fi
8620 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8621 conftest$ac_exeext conftest.$ac_ext
8622 fi
8623
8624
8625 CFLAGS="$xorg_testset_save_CFLAGS"
8626
8627 eval supported=\$$cacheid
8628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8629 printf "%s\n" "$supported" >&6; }
8630 if test "$supported" = "yes" ; then
8631 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8632 found="yes"
8633 fi
8634 fi
8635
8636 if test $found = "no" ; then
8637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8639 fi
8640
8641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8643 fi
8644
8645 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8646
8647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8648 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8649 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8650 if eval test \${$cacheid+y}
8651 then :
8652 printf %s "(cached) " >&6
8653 else $as_nop
8654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h. */
8656 int i;
8657 int
8658 main (void)
8659 {
8660
8661 ;
8662 return 0;
8663 }
8664 _ACEOF
8665 if ac_fn_c_try_link "$LINENO"
8666 then :
8667 eval $cacheid=yes
8668 else $as_nop
8669 eval $cacheid=no
8670 fi
8671 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8672 conftest$ac_exeext conftest.$ac_ext
8673 fi
8674
8675
8676 CFLAGS="$xorg_testset_save_CFLAGS"
8677
8678 eval supported=\$$cacheid
8679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8680 printf "%s\n" "$supported" >&6; }
8681 if test "$supported" = "yes" ; then
8682 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8683 found="yes"
8684 fi
8685 fi
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701 xorg_testset_save_CFLAGS="$CFLAGS"
8702
8703 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8706 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8707 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8708 then :
8709 printf %s "(cached) " >&6
8710 else $as_nop
8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8713 int i;
8714 _ACEOF
8715 if ac_fn_c_try_compile "$LINENO"
8716 then :
8717 xorg_cv_cc_flag_unknown_warning_option=yes
8718 else $as_nop
8719 xorg_cv_cc_flag_unknown_warning_option=no
8720 fi
8721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8722 fi
8723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8724 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8725 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8726 CFLAGS="$xorg_testset_save_CFLAGS"
8727 fi
8728
8729 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8732 fi
8733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8735 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8736 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8737 then :
8738 printf %s "(cached) " >&6
8739 else $as_nop
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"
8745 then :
8746 xorg_cv_cc_flag_unused_command_line_argument=yes
8747 else $as_nop
8748 xorg_cv_cc_flag_unused_command_line_argument=no
8749 fi
8750 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8751 fi
8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8753 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8754 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8755 CFLAGS="$xorg_testset_save_CFLAGS"
8756 fi
8757
8758 found="no"
8759
8760 if test $found = "no" ; then
8761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8763 fi
8764
8765 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8767 fi
8768
8769 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8770
8771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8772 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8773 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8774 if eval test \${$cacheid+y}
8775 then :
8776 printf %s "(cached) " >&6
8777 else $as_nop
8778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8779 /* end confdefs.h. */
8780 int i;
8781 int
8782 main (void)
8783 {
8784
8785 ;
8786 return 0;
8787 }
8788 _ACEOF
8789 if ac_fn_c_try_link "$LINENO"
8790 then :
8791 eval $cacheid=yes
8792 else $as_nop
8793 eval $cacheid=no
8794 fi
8795 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8796 conftest$ac_exeext conftest.$ac_ext
8797 fi
8798
8799
8800 CFLAGS="$xorg_testset_save_CFLAGS"
8801
8802 eval supported=\$$cacheid
8803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8804 printf "%s\n" "$supported" >&6; }
8805 if test "$supported" = "yes" ; then
8806 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8807 found="yes"
8808 fi
8809 fi
8810
8811 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8812 else
8813 { printf "%s\n" "$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
8814 printf "%s\n" "$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;}
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828 xorg_testset_save_CFLAGS="$CFLAGS"
8829
8830 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8833 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8834 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8835 then :
8836 printf %s "(cached) " >&6
8837 else $as_nop
8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839 /* end confdefs.h. */
8840 int i;
8841 _ACEOF
8842 if ac_fn_c_try_compile "$LINENO"
8843 then :
8844 xorg_cv_cc_flag_unknown_warning_option=yes
8845 else $as_nop
8846 xorg_cv_cc_flag_unknown_warning_option=no
8847 fi
8848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8849 fi
8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8851 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8853 CFLAGS="$xorg_testset_save_CFLAGS"
8854 fi
8855
8856 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8859 fi
8860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8862 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8863 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8864 then :
8865 printf %s "(cached) " >&6
8866 else $as_nop
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8869 int i;
8870 _ACEOF
8871 if ac_fn_c_try_compile "$LINENO"
8872 then :
8873 xorg_cv_cc_flag_unused_command_line_argument=yes
8874 else $as_nop
8875 xorg_cv_cc_flag_unused_command_line_argument=no
8876 fi
8877 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8878 fi
8879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8880 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8882 CFLAGS="$xorg_testset_save_CFLAGS"
8883 fi
8884
8885 found="no"
8886
8887 if test $found = "no" ; then
8888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8890 fi
8891
8892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8894 fi
8895
8896 CFLAGS="$CFLAGS -Wimplicit"
8897
8898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8899 printf %s "checking if $CC supports -Wimplicit... " >&6; }
8900 cacheid=xorg_cv_cc_flag__Wimplicit
8901 if eval test \${$cacheid+y}
8902 then :
8903 printf %s "(cached) " >&6
8904 else $as_nop
8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8906 /* end confdefs.h. */
8907 int i;
8908 int
8909 main (void)
8910 {
8911
8912 ;
8913 return 0;
8914 }
8915 _ACEOF
8916 if ac_fn_c_try_link "$LINENO"
8917 then :
8918 eval $cacheid=yes
8919 else $as_nop
8920 eval $cacheid=no
8921 fi
8922 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8923 conftest$ac_exeext conftest.$ac_ext
8924 fi
8925
8926
8927 CFLAGS="$xorg_testset_save_CFLAGS"
8928
8929 eval supported=\$$cacheid
8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8931 printf "%s\n" "$supported" >&6; }
8932 if test "$supported" = "yes" ; then
8933 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8934 found="yes"
8935 fi
8936 fi
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952 xorg_testset_save_CFLAGS="$CFLAGS"
8953
8954 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8957 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8958 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8959 then :
8960 printf %s "(cached) " >&6
8961 else $as_nop
8962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h. */
8964 int i;
8965 _ACEOF
8966 if ac_fn_c_try_compile "$LINENO"
8967 then :
8968 xorg_cv_cc_flag_unknown_warning_option=yes
8969 else $as_nop
8970 xorg_cv_cc_flag_unknown_warning_option=no
8971 fi
8972 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8973 fi
8974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8975 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8977 CFLAGS="$xorg_testset_save_CFLAGS"
8978 fi
8979
8980 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8983 fi
8984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8986 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8987 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8988 then :
8989 printf %s "(cached) " >&6
8990 else $as_nop
8991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992 /* end confdefs.h. */
8993 int i;
8994 _ACEOF
8995 if ac_fn_c_try_compile "$LINENO"
8996 then :
8997 xorg_cv_cc_flag_unused_command_line_argument=yes
8998 else $as_nop
8999 xorg_cv_cc_flag_unused_command_line_argument=no
9000 fi
9001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9002 fi
9003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9004 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9006 CFLAGS="$xorg_testset_save_CFLAGS"
9007 fi
9008
9009 found="no"
9010
9011 if test $found = "no" ; then
9012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9014 fi
9015
9016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9018 fi
9019
9020 CFLAGS="$CFLAGS -Wnonnull"
9021
9022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9023 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9024 cacheid=xorg_cv_cc_flag__Wnonnull
9025 if eval test \${$cacheid+y}
9026 then :
9027 printf %s "(cached) " >&6
9028 else $as_nop
9029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9030 /* end confdefs.h. */
9031 int i;
9032 int
9033 main (void)
9034 {
9035
9036 ;
9037 return 0;
9038 }
9039 _ACEOF
9040 if ac_fn_c_try_link "$LINENO"
9041 then :
9042 eval $cacheid=yes
9043 else $as_nop
9044 eval $cacheid=no
9045 fi
9046 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9047 conftest$ac_exeext conftest.$ac_ext
9048 fi
9049
9050
9051 CFLAGS="$xorg_testset_save_CFLAGS"
9052
9053 eval supported=\$$cacheid
9054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9055 printf "%s\n" "$supported" >&6; }
9056 if test "$supported" = "yes" ; then
9057 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9058 found="yes"
9059 fi
9060 fi
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076 xorg_testset_save_CFLAGS="$CFLAGS"
9077
9078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9081 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9082 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9083 then :
9084 printf %s "(cached) " >&6
9085 else $as_nop
9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9088 int i;
9089 _ACEOF
9090 if ac_fn_c_try_compile "$LINENO"
9091 then :
9092 xorg_cv_cc_flag_unknown_warning_option=yes
9093 else $as_nop
9094 xorg_cv_cc_flag_unknown_warning_option=no
9095 fi
9096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9097 fi
9098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9099 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9101 CFLAGS="$xorg_testset_save_CFLAGS"
9102 fi
9103
9104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9107 fi
9108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9110 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9111 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9112 then :
9113 printf %s "(cached) " >&6
9114 else $as_nop
9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9117 int i;
9118 _ACEOF
9119 if ac_fn_c_try_compile "$LINENO"
9120 then :
9121 xorg_cv_cc_flag_unused_command_line_argument=yes
9122 else $as_nop
9123 xorg_cv_cc_flag_unused_command_line_argument=no
9124 fi
9125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9126 fi
9127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9128 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9130 CFLAGS="$xorg_testset_save_CFLAGS"
9131 fi
9132
9133 found="no"
9134
9135 if test $found = "no" ; then
9136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9138 fi
9139
9140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9142 fi
9143
9144 CFLAGS="$CFLAGS -Winit-self"
9145
9146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9147 printf %s "checking if $CC supports -Winit-self... " >&6; }
9148 cacheid=xorg_cv_cc_flag__Winit_self
9149 if eval test \${$cacheid+y}
9150 then :
9151 printf %s "(cached) " >&6
9152 else $as_nop
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155 int i;
9156 int
9157 main (void)
9158 {
9159
9160 ;
9161 return 0;
9162 }
9163 _ACEOF
9164 if ac_fn_c_try_link "$LINENO"
9165 then :
9166 eval $cacheid=yes
9167 else $as_nop
9168 eval $cacheid=no
9169 fi
9170 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9171 conftest$ac_exeext conftest.$ac_ext
9172 fi
9173
9174
9175 CFLAGS="$xorg_testset_save_CFLAGS"
9176
9177 eval supported=\$$cacheid
9178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9179 printf "%s\n" "$supported" >&6; }
9180 if test "$supported" = "yes" ; then
9181 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9182 found="yes"
9183 fi
9184 fi
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200 xorg_testset_save_CFLAGS="$CFLAGS"
9201
9202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9205 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9206 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9207 then :
9208 printf %s "(cached) " >&6
9209 else $as_nop
9210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h. */
9212 int i;
9213 _ACEOF
9214 if ac_fn_c_try_compile "$LINENO"
9215 then :
9216 xorg_cv_cc_flag_unknown_warning_option=yes
9217 else $as_nop
9218 xorg_cv_cc_flag_unknown_warning_option=no
9219 fi
9220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9221 fi
9222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9223 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9225 CFLAGS="$xorg_testset_save_CFLAGS"
9226 fi
9227
9228 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9231 fi
9232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9234 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9235 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9236 then :
9237 printf %s "(cached) " >&6
9238 else $as_nop
9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240 /* end confdefs.h. */
9241 int i;
9242 _ACEOF
9243 if ac_fn_c_try_compile "$LINENO"
9244 then :
9245 xorg_cv_cc_flag_unused_command_line_argument=yes
9246 else $as_nop
9247 xorg_cv_cc_flag_unused_command_line_argument=no
9248 fi
9249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9250 fi
9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9252 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9253 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9254 CFLAGS="$xorg_testset_save_CFLAGS"
9255 fi
9256
9257 found="no"
9258
9259 if test $found = "no" ; then
9260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9262 fi
9263
9264 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9266 fi
9267
9268 CFLAGS="$CFLAGS -Wmain"
9269
9270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9271 printf %s "checking if $CC supports -Wmain... " >&6; }
9272 cacheid=xorg_cv_cc_flag__Wmain
9273 if eval test \${$cacheid+y}
9274 then :
9275 printf %s "(cached) " >&6
9276 else $as_nop
9277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278 /* end confdefs.h. */
9279 int i;
9280 int
9281 main (void)
9282 {
9283
9284 ;
9285 return 0;
9286 }
9287 _ACEOF
9288 if ac_fn_c_try_link "$LINENO"
9289 then :
9290 eval $cacheid=yes
9291 else $as_nop
9292 eval $cacheid=no
9293 fi
9294 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9295 conftest$ac_exeext conftest.$ac_ext
9296 fi
9297
9298
9299 CFLAGS="$xorg_testset_save_CFLAGS"
9300
9301 eval supported=\$$cacheid
9302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9303 printf "%s\n" "$supported" >&6; }
9304 if test "$supported" = "yes" ; then
9305 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9306 found="yes"
9307 fi
9308 fi
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324 xorg_testset_save_CFLAGS="$CFLAGS"
9325
9326 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9329 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9330 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9331 then :
9332 printf %s "(cached) " >&6
9333 else $as_nop
9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9336 int i;
9337 _ACEOF
9338 if ac_fn_c_try_compile "$LINENO"
9339 then :
9340 xorg_cv_cc_flag_unknown_warning_option=yes
9341 else $as_nop
9342 xorg_cv_cc_flag_unknown_warning_option=no
9343 fi
9344 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9345 fi
9346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9347 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9349 CFLAGS="$xorg_testset_save_CFLAGS"
9350 fi
9351
9352 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9355 fi
9356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9358 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9359 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9360 then :
9361 printf %s "(cached) " >&6
9362 else $as_nop
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9365 int i;
9366 _ACEOF
9367 if ac_fn_c_try_compile "$LINENO"
9368 then :
9369 xorg_cv_cc_flag_unused_command_line_argument=yes
9370 else $as_nop
9371 xorg_cv_cc_flag_unused_command_line_argument=no
9372 fi
9373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9374 fi
9375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9376 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9377 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9378 CFLAGS="$xorg_testset_save_CFLAGS"
9379 fi
9380
9381 found="no"
9382
9383 if test $found = "no" ; then
9384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9386 fi
9387
9388 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9390 fi
9391
9392 CFLAGS="$CFLAGS -Wmissing-braces"
9393
9394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9395 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9396 cacheid=xorg_cv_cc_flag__Wmissing_braces
9397 if eval test \${$cacheid+y}
9398 then :
9399 printf %s "(cached) " >&6
9400 else $as_nop
9401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9402 /* end confdefs.h. */
9403 int i;
9404 int
9405 main (void)
9406 {
9407
9408 ;
9409 return 0;
9410 }
9411 _ACEOF
9412 if ac_fn_c_try_link "$LINENO"
9413 then :
9414 eval $cacheid=yes
9415 else $as_nop
9416 eval $cacheid=no
9417 fi
9418 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9419 conftest$ac_exeext conftest.$ac_ext
9420 fi
9421
9422
9423 CFLAGS="$xorg_testset_save_CFLAGS"
9424
9425 eval supported=\$$cacheid
9426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9427 printf "%s\n" "$supported" >&6; }
9428 if test "$supported" = "yes" ; then
9429 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9430 found="yes"
9431 fi
9432 fi
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448 xorg_testset_save_CFLAGS="$CFLAGS"
9449
9450 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9453 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9454 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9455 then :
9456 printf %s "(cached) " >&6
9457 else $as_nop
9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459 /* end confdefs.h. */
9460 int i;
9461 _ACEOF
9462 if ac_fn_c_try_compile "$LINENO"
9463 then :
9464 xorg_cv_cc_flag_unknown_warning_option=yes
9465 else $as_nop
9466 xorg_cv_cc_flag_unknown_warning_option=no
9467 fi
9468 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9469 fi
9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9471 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9472 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9473 CFLAGS="$xorg_testset_save_CFLAGS"
9474 fi
9475
9476 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9479 fi
9480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9482 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9483 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9484 then :
9485 printf %s "(cached) " >&6
9486 else $as_nop
9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488 /* end confdefs.h. */
9489 int i;
9490 _ACEOF
9491 if ac_fn_c_try_compile "$LINENO"
9492 then :
9493 xorg_cv_cc_flag_unused_command_line_argument=yes
9494 else $as_nop
9495 xorg_cv_cc_flag_unused_command_line_argument=no
9496 fi
9497 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9498 fi
9499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9500 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9501 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9502 CFLAGS="$xorg_testset_save_CFLAGS"
9503 fi
9504
9505 found="no"
9506
9507 if test $found = "no" ; then
9508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9510 fi
9511
9512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9514 fi
9515
9516 CFLAGS="$CFLAGS -Wsequence-point"
9517
9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9519 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9520 cacheid=xorg_cv_cc_flag__Wsequence_point
9521 if eval test \${$cacheid+y}
9522 then :
9523 printf %s "(cached) " >&6
9524 else $as_nop
9525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9527 int i;
9528 int
9529 main (void)
9530 {
9531
9532 ;
9533 return 0;
9534 }
9535 _ACEOF
9536 if ac_fn_c_try_link "$LINENO"
9537 then :
9538 eval $cacheid=yes
9539 else $as_nop
9540 eval $cacheid=no
9541 fi
9542 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9543 conftest$ac_exeext conftest.$ac_ext
9544 fi
9545
9546
9547 CFLAGS="$xorg_testset_save_CFLAGS"
9548
9549 eval supported=\$$cacheid
9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9551 printf "%s\n" "$supported" >&6; }
9552 if test "$supported" = "yes" ; then
9553 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9554 found="yes"
9555 fi
9556 fi
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572 xorg_testset_save_CFLAGS="$CFLAGS"
9573
9574 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9577 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9578 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9579 then :
9580 printf %s "(cached) " >&6
9581 else $as_nop
9582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9584 int i;
9585 _ACEOF
9586 if ac_fn_c_try_compile "$LINENO"
9587 then :
9588 xorg_cv_cc_flag_unknown_warning_option=yes
9589 else $as_nop
9590 xorg_cv_cc_flag_unknown_warning_option=no
9591 fi
9592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9593 fi
9594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9595 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9597 CFLAGS="$xorg_testset_save_CFLAGS"
9598 fi
9599
9600 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9603 fi
9604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9606 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9607 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9608 then :
9609 printf %s "(cached) " >&6
9610 else $as_nop
9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612 /* end confdefs.h. */
9613 int i;
9614 _ACEOF
9615 if ac_fn_c_try_compile "$LINENO"
9616 then :
9617 xorg_cv_cc_flag_unused_command_line_argument=yes
9618 else $as_nop
9619 xorg_cv_cc_flag_unused_command_line_argument=no
9620 fi
9621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9622 fi
9623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9624 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9625 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9626 CFLAGS="$xorg_testset_save_CFLAGS"
9627 fi
9628
9629 found="no"
9630
9631 if test $found = "no" ; then
9632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9634 fi
9635
9636 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9638 fi
9639
9640 CFLAGS="$CFLAGS -Wreturn-type"
9641
9642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9643 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9644 cacheid=xorg_cv_cc_flag__Wreturn_type
9645 if eval test \${$cacheid+y}
9646 then :
9647 printf %s "(cached) " >&6
9648 else $as_nop
9649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h. */
9651 int i;
9652 int
9653 main (void)
9654 {
9655
9656 ;
9657 return 0;
9658 }
9659 _ACEOF
9660 if ac_fn_c_try_link "$LINENO"
9661 then :
9662 eval $cacheid=yes
9663 else $as_nop
9664 eval $cacheid=no
9665 fi
9666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9667 conftest$ac_exeext conftest.$ac_ext
9668 fi
9669
9670
9671 CFLAGS="$xorg_testset_save_CFLAGS"
9672
9673 eval supported=\$$cacheid
9674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9675 printf "%s\n" "$supported" >&6; }
9676 if test "$supported" = "yes" ; then
9677 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9678 found="yes"
9679 fi
9680 fi
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696 xorg_testset_save_CFLAGS="$CFLAGS"
9697
9698 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9701 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9702 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9703 then :
9704 printf %s "(cached) " >&6
9705 else $as_nop
9706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707 /* end confdefs.h. */
9708 int i;
9709 _ACEOF
9710 if ac_fn_c_try_compile "$LINENO"
9711 then :
9712 xorg_cv_cc_flag_unknown_warning_option=yes
9713 else $as_nop
9714 xorg_cv_cc_flag_unknown_warning_option=no
9715 fi
9716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9717 fi
9718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9719 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9721 CFLAGS="$xorg_testset_save_CFLAGS"
9722 fi
9723
9724 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9727 fi
9728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9730 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9731 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9732 then :
9733 printf %s "(cached) " >&6
9734 else $as_nop
9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9737 int i;
9738 _ACEOF
9739 if ac_fn_c_try_compile "$LINENO"
9740 then :
9741 xorg_cv_cc_flag_unused_command_line_argument=yes
9742 else $as_nop
9743 xorg_cv_cc_flag_unused_command_line_argument=no
9744 fi
9745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9746 fi
9747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9748 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9749 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9750 CFLAGS="$xorg_testset_save_CFLAGS"
9751 fi
9752
9753 found="no"
9754
9755 if test $found = "no" ; then
9756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9758 fi
9759
9760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9762 fi
9763
9764 CFLAGS="$CFLAGS -Wtrigraphs"
9765
9766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9767 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9768 cacheid=xorg_cv_cc_flag__Wtrigraphs
9769 if eval test \${$cacheid+y}
9770 then :
9771 printf %s "(cached) " >&6
9772 else $as_nop
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9775 int i;
9776 int
9777 main (void)
9778 {
9779
9780 ;
9781 return 0;
9782 }
9783 _ACEOF
9784 if ac_fn_c_try_link "$LINENO"
9785 then :
9786 eval $cacheid=yes
9787 else $as_nop
9788 eval $cacheid=no
9789 fi
9790 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9791 conftest$ac_exeext conftest.$ac_ext
9792 fi
9793
9794
9795 CFLAGS="$xorg_testset_save_CFLAGS"
9796
9797 eval supported=\$$cacheid
9798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9799 printf "%s\n" "$supported" >&6; }
9800 if test "$supported" = "yes" ; then
9801 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9802 found="yes"
9803 fi
9804 fi
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820 xorg_testset_save_CFLAGS="$CFLAGS"
9821
9822 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9825 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9826 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9827 then :
9828 printf %s "(cached) " >&6
9829 else $as_nop
9830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831 /* end confdefs.h. */
9832 int i;
9833 _ACEOF
9834 if ac_fn_c_try_compile "$LINENO"
9835 then :
9836 xorg_cv_cc_flag_unknown_warning_option=yes
9837 else $as_nop
9838 xorg_cv_cc_flag_unknown_warning_option=no
9839 fi
9840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9841 fi
9842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9843 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9845 CFLAGS="$xorg_testset_save_CFLAGS"
9846 fi
9847
9848 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9851 fi
9852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9854 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9855 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9856 then :
9857 printf %s "(cached) " >&6
9858 else $as_nop
9859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860 /* end confdefs.h. */
9861 int i;
9862 _ACEOF
9863 if ac_fn_c_try_compile "$LINENO"
9864 then :
9865 xorg_cv_cc_flag_unused_command_line_argument=yes
9866 else $as_nop
9867 xorg_cv_cc_flag_unused_command_line_argument=no
9868 fi
9869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9870 fi
9871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9872 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9874 CFLAGS="$xorg_testset_save_CFLAGS"
9875 fi
9876
9877 found="no"
9878
9879 if test $found = "no" ; then
9880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9882 fi
9883
9884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9886 fi
9887
9888 CFLAGS="$CFLAGS -Warray-bounds"
9889
9890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9891 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9892 cacheid=xorg_cv_cc_flag__Warray_bounds
9893 if eval test \${$cacheid+y}
9894 then :
9895 printf %s "(cached) " >&6
9896 else $as_nop
9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h. */
9899 int i;
9900 int
9901 main (void)
9902 {
9903
9904 ;
9905 return 0;
9906 }
9907 _ACEOF
9908 if ac_fn_c_try_link "$LINENO"
9909 then :
9910 eval $cacheid=yes
9911 else $as_nop
9912 eval $cacheid=no
9913 fi
9914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9915 conftest$ac_exeext conftest.$ac_ext
9916 fi
9917
9918
9919 CFLAGS="$xorg_testset_save_CFLAGS"
9920
9921 eval supported=\$$cacheid
9922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9923 printf "%s\n" "$supported" >&6; }
9924 if test "$supported" = "yes" ; then
9925 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9926 found="yes"
9927 fi
9928 fi
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944 xorg_testset_save_CFLAGS="$CFLAGS"
9945
9946 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9949 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9950 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9951 then :
9952 printf %s "(cached) " >&6
9953 else $as_nop
9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h. */
9956 int i;
9957 _ACEOF
9958 if ac_fn_c_try_compile "$LINENO"
9959 then :
9960 xorg_cv_cc_flag_unknown_warning_option=yes
9961 else $as_nop
9962 xorg_cv_cc_flag_unknown_warning_option=no
9963 fi
9964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9965 fi
9966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9967 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9969 CFLAGS="$xorg_testset_save_CFLAGS"
9970 fi
9971
9972 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9975 fi
9976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9978 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9979 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9980 then :
9981 printf %s "(cached) " >&6
9982 else $as_nop
9983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984 /* end confdefs.h. */
9985 int i;
9986 _ACEOF
9987 if ac_fn_c_try_compile "$LINENO"
9988 then :
9989 xorg_cv_cc_flag_unused_command_line_argument=yes
9990 else $as_nop
9991 xorg_cv_cc_flag_unused_command_line_argument=no
9992 fi
9993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9994 fi
9995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9996 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9997 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9998 CFLAGS="$xorg_testset_save_CFLAGS"
9999 fi
10000
10001 found="no"
10002
10003 if test $found = "no" ; then
10004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10006 fi
10007
10008 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10010 fi
10011
10012 CFLAGS="$CFLAGS -Wwrite-strings"
10013
10014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10015 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10016 cacheid=xorg_cv_cc_flag__Wwrite_strings
10017 if eval test \${$cacheid+y}
10018 then :
10019 printf %s "(cached) " >&6
10020 else $as_nop
10021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022 /* end confdefs.h. */
10023 int i;
10024 int
10025 main (void)
10026 {
10027
10028 ;
10029 return 0;
10030 }
10031 _ACEOF
10032 if ac_fn_c_try_link "$LINENO"
10033 then :
10034 eval $cacheid=yes
10035 else $as_nop
10036 eval $cacheid=no
10037 fi
10038 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10039 conftest$ac_exeext conftest.$ac_ext
10040 fi
10041
10042
10043 CFLAGS="$xorg_testset_save_CFLAGS"
10044
10045 eval supported=\$$cacheid
10046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10047 printf "%s\n" "$supported" >&6; }
10048 if test "$supported" = "yes" ; then
10049 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10050 found="yes"
10051 fi
10052 fi
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068 xorg_testset_save_CFLAGS="$CFLAGS"
10069
10070 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10073 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10074 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10075 then :
10076 printf %s "(cached) " >&6
10077 else $as_nop
10078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h. */
10080 int i;
10081 _ACEOF
10082 if ac_fn_c_try_compile "$LINENO"
10083 then :
10084 xorg_cv_cc_flag_unknown_warning_option=yes
10085 else $as_nop
10086 xorg_cv_cc_flag_unknown_warning_option=no
10087 fi
10088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10089 fi
10090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10091 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10093 CFLAGS="$xorg_testset_save_CFLAGS"
10094 fi
10095
10096 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10099 fi
10100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10102 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10103 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10104 then :
10105 printf %s "(cached) " >&6
10106 else $as_nop
10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h. */
10109 int i;
10110 _ACEOF
10111 if ac_fn_c_try_compile "$LINENO"
10112 then :
10113 xorg_cv_cc_flag_unused_command_line_argument=yes
10114 else $as_nop
10115 xorg_cv_cc_flag_unused_command_line_argument=no
10116 fi
10117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10118 fi
10119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10120 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10122 CFLAGS="$xorg_testset_save_CFLAGS"
10123 fi
10124
10125 found="no"
10126
10127 if test $found = "no" ; then
10128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10130 fi
10131
10132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10134 fi
10135
10136 CFLAGS="$CFLAGS -Waddress"
10137
10138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10139 printf %s "checking if $CC supports -Waddress... " >&6; }
10140 cacheid=xorg_cv_cc_flag__Waddress
10141 if eval test \${$cacheid+y}
10142 then :
10143 printf %s "(cached) " >&6
10144 else $as_nop
10145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h. */
10147 int i;
10148 int
10149 main (void)
10150 {
10151
10152 ;
10153 return 0;
10154 }
10155 _ACEOF
10156 if ac_fn_c_try_link "$LINENO"
10157 then :
10158 eval $cacheid=yes
10159 else $as_nop
10160 eval $cacheid=no
10161 fi
10162 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10163 conftest$ac_exeext conftest.$ac_ext
10164 fi
10165
10166
10167 CFLAGS="$xorg_testset_save_CFLAGS"
10168
10169 eval supported=\$$cacheid
10170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10171 printf "%s\n" "$supported" >&6; }
10172 if test "$supported" = "yes" ; then
10173 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10174 found="yes"
10175 fi
10176 fi
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192 xorg_testset_save_CFLAGS="$CFLAGS"
10193
10194 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10197 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10198 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10199 then :
10200 printf %s "(cached) " >&6
10201 else $as_nop
10202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h. */
10204 int i;
10205 _ACEOF
10206 if ac_fn_c_try_compile "$LINENO"
10207 then :
10208 xorg_cv_cc_flag_unknown_warning_option=yes
10209 else $as_nop
10210 xorg_cv_cc_flag_unknown_warning_option=no
10211 fi
10212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10213 fi
10214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10215 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10217 CFLAGS="$xorg_testset_save_CFLAGS"
10218 fi
10219
10220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10223 fi
10224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10226 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10227 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10228 then :
10229 printf %s "(cached) " >&6
10230 else $as_nop
10231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10232 /* end confdefs.h. */
10233 int i;
10234 _ACEOF
10235 if ac_fn_c_try_compile "$LINENO"
10236 then :
10237 xorg_cv_cc_flag_unused_command_line_argument=yes
10238 else $as_nop
10239 xorg_cv_cc_flag_unused_command_line_argument=no
10240 fi
10241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10242 fi
10243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10244 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10246 CFLAGS="$xorg_testset_save_CFLAGS"
10247 fi
10248
10249 found="no"
10250
10251 if test $found = "no" ; then
10252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10254 fi
10255
10256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10258 fi
10259
10260 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10261
10262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10263 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10264 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10265 if eval test \${$cacheid+y}
10266 then :
10267 printf %s "(cached) " >&6
10268 else $as_nop
10269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h. */
10271 int i;
10272 int
10273 main (void)
10274 {
10275
10276 ;
10277 return 0;
10278 }
10279 _ACEOF
10280 if ac_fn_c_try_link "$LINENO"
10281 then :
10282 eval $cacheid=yes
10283 else $as_nop
10284 eval $cacheid=no
10285 fi
10286 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10287 conftest$ac_exeext conftest.$ac_ext
10288 fi
10289
10290
10291 CFLAGS="$xorg_testset_save_CFLAGS"
10292
10293 eval supported=\$$cacheid
10294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10295 printf "%s\n" "$supported" >&6; }
10296 if test "$supported" = "yes" ; then
10297 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10298 found="yes"
10299 fi
10300 fi
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316 xorg_testset_save_CFLAGS="$CFLAGS"
10317
10318 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10321 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10322 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10323 then :
10324 printf %s "(cached) " >&6
10325 else $as_nop
10326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327 /* end confdefs.h. */
10328 int i;
10329 _ACEOF
10330 if ac_fn_c_try_compile "$LINENO"
10331 then :
10332 xorg_cv_cc_flag_unknown_warning_option=yes
10333 else $as_nop
10334 xorg_cv_cc_flag_unknown_warning_option=no
10335 fi
10336 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10337 fi
10338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10339 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10341 CFLAGS="$xorg_testset_save_CFLAGS"
10342 fi
10343
10344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10347 fi
10348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10350 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10351 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10352 then :
10353 printf %s "(cached) " >&6
10354 else $as_nop
10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10357 int i;
10358 _ACEOF
10359 if ac_fn_c_try_compile "$LINENO"
10360 then :
10361 xorg_cv_cc_flag_unused_command_line_argument=yes
10362 else $as_nop
10363 xorg_cv_cc_flag_unused_command_line_argument=no
10364 fi
10365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10366 fi
10367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10368 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10370 CFLAGS="$xorg_testset_save_CFLAGS"
10371 fi
10372
10373 found="no"
10374
10375 if test $found = "no" ; then
10376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10378 fi
10379
10380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10382 fi
10383
10384 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10385
10386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10387 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10388 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10389 if eval test \${$cacheid+y}
10390 then :
10391 printf %s "(cached) " >&6
10392 else $as_nop
10393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10395 int i;
10396 int
10397 main (void)
10398 {
10399
10400 ;
10401 return 0;
10402 }
10403 _ACEOF
10404 if ac_fn_c_try_link "$LINENO"
10405 then :
10406 eval $cacheid=yes
10407 else $as_nop
10408 eval $cacheid=no
10409 fi
10410 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10411 conftest$ac_exeext conftest.$ac_ext
10412 fi
10413
10414
10415 CFLAGS="$xorg_testset_save_CFLAGS"
10416
10417 eval supported=\$$cacheid
10418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10419 printf "%s\n" "$supported" >&6; }
10420 if test "$supported" = "yes" ; then
10421 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10422 found="yes"
10423 fi
10424 fi
10425
10426
10427 fi
10428
10429
10430
10431
10432
10433
10434
10435 CWARNFLAGS="$BASE_CFLAGS"
10436 if test "x$GCC" = xyes ; then
10437 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10438 fi
10439
10440
10441
10442
10443
10444
10445
10446
10447 # Check whether --enable-strict-compilation was given.
10448 if test ${enable_strict_compilation+y}
10449 then :
10450 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10451 else $as_nop
10452 STRICT_COMPILE=no
10453 fi
10454
10455
10456
10457
10458
10459
10460 STRICT_CFLAGS=""
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474 xorg_testset_save_CFLAGS="$CFLAGS"
10475
10476 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10479 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10480 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10481 then :
10482 printf %s "(cached) " >&6
10483 else $as_nop
10484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10485 /* end confdefs.h. */
10486 int i;
10487 _ACEOF
10488 if ac_fn_c_try_compile "$LINENO"
10489 then :
10490 xorg_cv_cc_flag_unknown_warning_option=yes
10491 else $as_nop
10492 xorg_cv_cc_flag_unknown_warning_option=no
10493 fi
10494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10495 fi
10496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10497 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10498 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10499 CFLAGS="$xorg_testset_save_CFLAGS"
10500 fi
10501
10502 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10505 fi
10506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10508 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10509 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10510 then :
10511 printf %s "(cached) " >&6
10512 else $as_nop
10513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514 /* end confdefs.h. */
10515 int i;
10516 _ACEOF
10517 if ac_fn_c_try_compile "$LINENO"
10518 then :
10519 xorg_cv_cc_flag_unused_command_line_argument=yes
10520 else $as_nop
10521 xorg_cv_cc_flag_unused_command_line_argument=no
10522 fi
10523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10524 fi
10525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10526 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10527 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10528 CFLAGS="$xorg_testset_save_CFLAGS"
10529 fi
10530
10531 found="no"
10532
10533 if test $found = "no" ; then
10534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10536 fi
10537
10538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10540 fi
10541
10542 CFLAGS="$CFLAGS -pedantic"
10543
10544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10545 printf %s "checking if $CC supports -pedantic... " >&6; }
10546 cacheid=xorg_cv_cc_flag__pedantic
10547 if eval test \${$cacheid+y}
10548 then :
10549 printf %s "(cached) " >&6
10550 else $as_nop
10551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552 /* end confdefs.h. */
10553 int i;
10554 int
10555 main (void)
10556 {
10557
10558 ;
10559 return 0;
10560 }
10561 _ACEOF
10562 if ac_fn_c_try_link "$LINENO"
10563 then :
10564 eval $cacheid=yes
10565 else $as_nop
10566 eval $cacheid=no
10567 fi
10568 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10569 conftest$ac_exeext conftest.$ac_ext
10570 fi
10571
10572
10573 CFLAGS="$xorg_testset_save_CFLAGS"
10574
10575 eval supported=\$$cacheid
10576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10577 printf "%s\n" "$supported" >&6; }
10578 if test "$supported" = "yes" ; then
10579 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10580 found="yes"
10581 fi
10582 fi
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598 xorg_testset_save_CFLAGS="$CFLAGS"
10599
10600 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10603 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10604 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10605 then :
10606 printf %s "(cached) " >&6
10607 else $as_nop
10608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10609 /* end confdefs.h. */
10610 int i;
10611 _ACEOF
10612 if ac_fn_c_try_compile "$LINENO"
10613 then :
10614 xorg_cv_cc_flag_unknown_warning_option=yes
10615 else $as_nop
10616 xorg_cv_cc_flag_unknown_warning_option=no
10617 fi
10618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10619 fi
10620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10621 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10623 CFLAGS="$xorg_testset_save_CFLAGS"
10624 fi
10625
10626 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10629 fi
10630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10632 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10633 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10634 then :
10635 printf %s "(cached) " >&6
10636 else $as_nop
10637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10638 /* end confdefs.h. */
10639 int i;
10640 _ACEOF
10641 if ac_fn_c_try_compile "$LINENO"
10642 then :
10643 xorg_cv_cc_flag_unused_command_line_argument=yes
10644 else $as_nop
10645 xorg_cv_cc_flag_unused_command_line_argument=no
10646 fi
10647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10648 fi
10649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10650 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10652 CFLAGS="$xorg_testset_save_CFLAGS"
10653 fi
10654
10655 found="no"
10656
10657 if test $found = "no" ; then
10658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10660 fi
10661
10662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10664 fi
10665
10666 CFLAGS="$CFLAGS -Werror"
10667
10668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10669 printf %s "checking if $CC supports -Werror... " >&6; }
10670 cacheid=xorg_cv_cc_flag__Werror
10671 if eval test \${$cacheid+y}
10672 then :
10673 printf %s "(cached) " >&6
10674 else $as_nop
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10677 int i;
10678 int
10679 main (void)
10680 {
10681
10682 ;
10683 return 0;
10684 }
10685 _ACEOF
10686 if ac_fn_c_try_link "$LINENO"
10687 then :
10688 eval $cacheid=yes
10689 else $as_nop
10690 eval $cacheid=no
10691 fi
10692 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10693 conftest$ac_exeext conftest.$ac_ext
10694 fi
10695
10696
10697 CFLAGS="$xorg_testset_save_CFLAGS"
10698
10699 eval supported=\$$cacheid
10700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10701 printf "%s\n" "$supported" >&6; }
10702 if test "$supported" = "yes" ; then
10703 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10704 found="yes"
10705 fi
10706 fi
10707
10708 if test $found = "no" ; then
10709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10711 fi
10712
10713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10715 fi
10716
10717 CFLAGS="$CFLAGS -errwarn"
10718
10719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10720 printf %s "checking if $CC supports -errwarn... " >&6; }
10721 cacheid=xorg_cv_cc_flag__errwarn
10722 if eval test \${$cacheid+y}
10723 then :
10724 printf %s "(cached) " >&6
10725 else $as_nop
10726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727 /* end confdefs.h. */
10728 int i;
10729 int
10730 main (void)
10731 {
10732
10733 ;
10734 return 0;
10735 }
10736 _ACEOF
10737 if ac_fn_c_try_link "$LINENO"
10738 then :
10739 eval $cacheid=yes
10740 else $as_nop
10741 eval $cacheid=no
10742 fi
10743 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10744 conftest$ac_exeext conftest.$ac_ext
10745 fi
10746
10747
10748 CFLAGS="$xorg_testset_save_CFLAGS"
10749
10750 eval supported=\$$cacheid
10751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10752 printf "%s\n" "$supported" >&6; }
10753 if test "$supported" = "yes" ; then
10754 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10755 found="yes"
10756 fi
10757 fi
10758
10759
10760
10761 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10762 # activate it with -Werror, so we add it here explicitly.
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776 xorg_testset_save_CFLAGS="$CFLAGS"
10777
10778 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10781 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10782 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10783 then :
10784 printf %s "(cached) " >&6
10785 else $as_nop
10786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h. */
10788 int i;
10789 _ACEOF
10790 if ac_fn_c_try_compile "$LINENO"
10791 then :
10792 xorg_cv_cc_flag_unknown_warning_option=yes
10793 else $as_nop
10794 xorg_cv_cc_flag_unknown_warning_option=no
10795 fi
10796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10797 fi
10798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10799 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10801 CFLAGS="$xorg_testset_save_CFLAGS"
10802 fi
10803
10804 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10807 fi
10808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10810 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10811 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10812 then :
10813 printf %s "(cached) " >&6
10814 else $as_nop
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h. */
10817 int i;
10818 _ACEOF
10819 if ac_fn_c_try_compile "$LINENO"
10820 then :
10821 xorg_cv_cc_flag_unused_command_line_argument=yes
10822 else $as_nop
10823 xorg_cv_cc_flag_unused_command_line_argument=no
10824 fi
10825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10826 fi
10827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10828 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10830 CFLAGS="$xorg_testset_save_CFLAGS"
10831 fi
10832
10833 found="no"
10834
10835 if test $found = "no" ; then
10836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10838 fi
10839
10840 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10842 fi
10843
10844 CFLAGS="$CFLAGS -Werror=attributes"
10845
10846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10847 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10848 cacheid=xorg_cv_cc_flag__Werror_attributes
10849 if eval test \${$cacheid+y}
10850 then :
10851 printf %s "(cached) " >&6
10852 else $as_nop
10853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854 /* end confdefs.h. */
10855 int i;
10856 int
10857 main (void)
10858 {
10859
10860 ;
10861 return 0;
10862 }
10863 _ACEOF
10864 if ac_fn_c_try_link "$LINENO"
10865 then :
10866 eval $cacheid=yes
10867 else $as_nop
10868 eval $cacheid=no
10869 fi
10870 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10871 conftest$ac_exeext conftest.$ac_ext
10872 fi
10873
10874
10875 CFLAGS="$xorg_testset_save_CFLAGS"
10876
10877 eval supported=\$$cacheid
10878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10879 printf "%s\n" "$supported" >&6; }
10880 if test "$supported" = "yes" ; then
10881 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10882 found="yes"
10883 fi
10884 fi
10885
10886
10887
10888 if test "x$STRICT_COMPILE" = "xyes"; then
10889 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10890 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10891 fi
10892
10893
10894
10895
10896
10897
10898 cat >>confdefs.h <<_ACEOF
10899 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10900 _ACEOF
10901
10902 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10903 if test "x$PVM" = "x"; then
10904 PVM="0"
10905 fi
10906
10907 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10908
10909 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10910 if test "x$PVP" = "x"; then
10911 PVP="0"
10912 fi
10913
10914 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10915
10916
10917
10918 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10919 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10920 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10921 touch \$(top_srcdir)/ChangeLog; \
10922 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10923
10924
10925
10926
10927 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10928 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10929 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10930 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10931 touch \$(top_srcdir)/INSTALL; \
10932 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10933
10934
10935
10936
10937
10938
10939 case $host_os in
10940 solaris*)
10941 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10942 # check for a man page file found in later versions that use
10943 # traditional section numbers instead
10944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10945 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10946 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10947 then :
10948 printf %s "(cached) " >&6
10949 else $as_nop
10950 test "$cross_compiling" = yes &&
10951 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10952 if test -r "/usr/share/man/man7/attributes.7"; then
10953 ac_cv_file__usr_share_man_man7_attributes_7=yes
10954 else
10955 ac_cv_file__usr_share_man_man7_attributes_7=no
10956 fi
10957 fi
10958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10959 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10960 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10961 then :
10962 SYSV_MAN_SECTIONS=false
10963 else $as_nop
10964 SYSV_MAN_SECTIONS=true
10965 fi
10966
10967 ;;
10968 *) SYSV_MAN_SECTIONS=false ;;
10969 esac
10970
10971 if test x$APP_MAN_SUFFIX = x ; then
10972 APP_MAN_SUFFIX=1
10973 fi
10974 if test x$APP_MAN_DIR = x ; then
10975 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10976 fi
10977
10978 if test x$LIB_MAN_SUFFIX = x ; then
10979 LIB_MAN_SUFFIX=3
10980 fi
10981 if test x$LIB_MAN_DIR = x ; then
10982 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10983 fi
10984
10985 if test x$FILE_MAN_SUFFIX = x ; then
10986 case $SYSV_MAN_SECTIONS in
10987 true) FILE_MAN_SUFFIX=4 ;;
10988 *) FILE_MAN_SUFFIX=5 ;;
10989 esac
10990 fi
10991 if test x$FILE_MAN_DIR = x ; then
10992 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10993 fi
10994
10995 if test x$MISC_MAN_SUFFIX = x ; then
10996 case $SYSV_MAN_SECTIONS in
10997 true) MISC_MAN_SUFFIX=5 ;;
10998 *) MISC_MAN_SUFFIX=7 ;;
10999 esac
11000 fi
11001 if test x$MISC_MAN_DIR = x ; then
11002 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11003 fi
11004
11005 if test x$DRIVER_MAN_SUFFIX = x ; then
11006 case $SYSV_MAN_SECTIONS in
11007 true) DRIVER_MAN_SUFFIX=7 ;;
11008 *) DRIVER_MAN_SUFFIX=4 ;;
11009 esac
11010 fi
11011 if test x$DRIVER_MAN_DIR = x ; then
11012 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11013 fi
11014
11015 if test x$ADMIN_MAN_SUFFIX = x ; then
11016 case $SYSV_MAN_SECTIONS in
11017 true) ADMIN_MAN_SUFFIX=1m ;;
11018 *) ADMIN_MAN_SUFFIX=8 ;;
11019 esac
11020 fi
11021 if test x$ADMIN_MAN_DIR = x ; then
11022 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11023 fi
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039 XORG_MAN_PAGE="X Version 11"
11040
11041 MAN_SUBSTS="\
11042 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11043 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11044 -e 's|__xservername__|Xorg|g' \
11045 -e 's|__xconfigfile__|xorg.conf|g' \
11046 -e 's|__projectroot__|\$(prefix)|g' \
11047 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11048 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11049 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11050 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11051 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11052 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11053 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11054
11055
11056
11057 # Check whether --enable-silent-rules was given.
11058 if test ${enable_silent_rules+y}
11059 then :
11060 enableval=$enable_silent_rules;
11061 fi
11062
11063 case $enable_silent_rules in # (((
11064 yes) AM_DEFAULT_VERBOSITY=0;;
11065 no) AM_DEFAULT_VERBOSITY=1;;
11066 *) AM_DEFAULT_VERBOSITY=0;;
11067 esac
11068 am_make=${MAKE-make}
11069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11070 printf %s "checking whether $am_make supports nested variables... " >&6; }
11071 if test ${am_cv_make_support_nested_variables+y}
11072 then :
11073 printf %s "(cached) " >&6
11074 else $as_nop
11075 if printf "%s\n" 'TRUE=$(BAR$(V))
11076 BAR0=false
11077 BAR1=true
11078 V=1
11079 am__doit:
11080 @$(TRUE)
11081 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11082 am_cv_make_support_nested_variables=yes
11083 else
11084 am_cv_make_support_nested_variables=no
11085 fi
11086 fi
11087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11088 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11089 if test $am_cv_make_support_nested_variables = yes; then
11090 AM_V='$(V)'
11091 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11092 else
11093 AM_V=$AM_DEFAULT_VERBOSITY
11094 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11095 fi
11096 AM_BACKSLASH='\'
11097
11098
11099
11100
11101
11102 # Require X.Org's font util macros 1.2 or later
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115 # mkfontscale
11116
11117 # Extract the first word of "mkfontscale", so it can be a program name with args.
11118 set dummy mkfontscale; ac_word=$2
11119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11120 printf %s "checking for $ac_word... " >&6; }
11121 if test ${ac_cv_path_MKFONTSCALE+y}
11122 then :
11123 printf %s "(cached) " >&6
11124 else $as_nop
11125 case $MKFONTSCALE in
11126 [\\/]* | ?:[\\/]*)
11127 ac_cv_path_MKFONTSCALE="$MKFONTSCALE" # Let the user override the test with a path.
11128 ;;
11129 *)
11130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11131 for as_dir in $PATH
11132 do
11133 IFS=$as_save_IFS
11134 case $as_dir in #(((
11135 '') as_dir=./ ;;
11136 */) ;;
11137 *) as_dir=$as_dir/ ;;
11138 esac
11139 for ac_exec_ext in '' $ac_executable_extensions; do
11140 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11141 ac_cv_path_MKFONTSCALE="$as_dir$ac_word$ac_exec_ext"
11142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11143 break 2
11144 fi
11145 done
11146 done
11147 IFS=$as_save_IFS
11148
11149 ;;
11150 esac
11151 fi
11152 MKFONTSCALE=$ac_cv_path_MKFONTSCALE
11153 if test -n "$MKFONTSCALE"; then
11154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKFONTSCALE" >&5
11155 printf "%s\n" "$MKFONTSCALE" >&6; }
11156 else
11157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11158 printf "%s\n" "no" >&6; }
11159 fi
11160
11161
11162 if test x"$MKFONTSCALE" = x; then
11163 as_fn_error $? "mkfontscale is required to build $PACKAGE_NAME." "$LINENO" 5
11164 fi
11165
11166
11167 # Choose whether or not to compress encodings - default is to compress all
11168
11169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if small encodings should be compressed" >&5
11170 printf %s "checking if small encodings should be compressed... " >&6; }
11171 # Check whether --enable-gzip-small-encodings was given.
11172 if test ${enable_gzip_small_encodings+y}
11173 then :
11174 enableval=$enable_gzip_small_encodings; GZIP_SMALL="$enableval"
11175 else $as_nop
11176 GZIP_SMALL="yes"
11177 fi
11178
11179 if test x$GZIP_SMALL = xyes; then
11180 GZIP_SMALL_TRUE=
11181 GZIP_SMALL_FALSE='#'
11182 else
11183 GZIP_SMALL_TRUE='#'
11184 GZIP_SMALL_FALSE=
11185 fi
11186
11187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${GZIP_SMALL}" >&5
11188 printf "%s\n" "${GZIP_SMALL}" >&6; }
11189
11190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if large encodings should be compressed" >&5
11191 printf %s "checking if large encodings should be compressed... " >&6; }
11192 # Check whether --enable-gzip-large-encodings was given.
11193 if test ${enable_gzip_large_encodings+y}
11194 then :
11195 enableval=$enable_gzip_large_encodings; GZIP_LARGE="$enableval"
11196 else $as_nop
11197 GZIP_LARGE="yes"
11198 fi
11199
11200 if test x$GZIP_LARGE = xyes; then
11201 GZIP_LARGE_TRUE=
11202 GZIP_LARGE_FALSE='#'
11203 else
11204 GZIP_LARGE_TRUE='#'
11205 GZIP_LARGE_FALSE=
11206 fi
11207
11208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${GZIP_LARGE}" >&5
11209 printf "%s\n" "${GZIP_LARGE}" >&6; }
11210
11211 # gzip
11212
11213 if test x$GZIP_SMALL = xyes -o x$GZIP_LARGE = xyes ; then
11214 # Extract the first word of "gzip", so it can be a program name with args.
11215 set dummy gzip; ac_word=$2
11216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11217 printf %s "checking for $ac_word... " >&6; }
11218 if test ${ac_cv_path_GZIP+y}
11219 then :
11220 printf %s "(cached) " >&6
11221 else $as_nop
11222 case $GZIP in
11223 [\\/]* | ?:[\\/]*)
11224 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
11225 ;;
11226 *)
11227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11228 for as_dir in $PATH
11229 do
11230 IFS=$as_save_IFS
11231 case $as_dir in #(((
11232 '') as_dir=./ ;;
11233 */) ;;
11234 *) as_dir=$as_dir/ ;;
11235 esac
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11238 ac_cv_path_GZIP="$as_dir$ac_word$ac_exec_ext"
11239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11240 break 2
11241 fi
11242 done
11243 done
11244 IFS=$as_save_IFS
11245
11246 ;;
11247 esac
11248 fi
11249 GZIP=$ac_cv_path_GZIP
11250 if test -n "$GZIP"; then
11251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
11252 printf "%s\n" "$GZIP" >&6; }
11253 else
11254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255 printf "%s\n" "no" >&6; }
11256 fi
11257
11258
11259 if [ -z $GZIP ]; then
11260 as_fn_error $? "gzip is needed to compress font encodings" "$LINENO" 5
11261 fi
11262 fi
11263
11264
11265
11266
11267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
11268 printf %s "checking for root directory for font files... " >&6; }
11269
11270 # Check whether --with-fontrootdir was given.
11271 if test ${with_fontrootdir+y}
11272 then :
11273 withval=$with_fontrootdir; FONTROOTDIR="$withval"
11274 fi
11275
11276 # if --with-fontrootdir not specified...
11277 if test "x${FONTROOTDIR}" = "x"; then
11278 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
11279 fi
11280 # ...and if pkg-config didn't find fontdir in fontutil.pc...
11281 if test "x${FONTROOTDIR}" = "x"; then
11282 FONTROOTDIR="${datadir}/fonts/X11"
11283 fi
11284
11285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
11286 printf "%s\n" "${FONTROOTDIR}" >&6; }
11287
11288
11289
11290
11291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for encodings files" >&5
11292 printf %s "checking for directory for encodings files... " >&6; }
11293
11294 # Check whether --with-encodingsdir was given.
11295 if test ${with_encodingsdir+y}
11296 then :
11297 withval=$with_encodingsdir; ENCODINGSDIR="${withval}"
11298 else $as_nop
11299 ENCODINGSDIR='${FONTROOTDIR}/encodings'
11300 fi
11301
11302
11303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ENCODINGSDIR}" >&5
11304 printf "%s\n" "${ENCODINGSDIR}" >&6; }
11305
11306
11307 ac_config_files="$ac_config_files Makefile large/Makefile"
11308
11309 cat >confcache <<\_ACEOF
11310 # This file is a shell script that caches the results of configure
11311 # tests run on this system so they can be shared between configure
11312 # scripts and configure runs, see configure's option --config-cache.
11313 # It is not useful on other systems. If it contains results you don't
11314 # want to keep, you may remove or edit it.
11315 #
11316 # config.status only pays attention to the cache file if you give it
11317 # the --recheck option to rerun configure.
11318 #
11319 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11320 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11321 # following values.
11322
11323 _ACEOF
11324
11325 # The following way of writing the cache mishandles newlines in values,
11326 # but we know of no workaround that is simple, portable, and efficient.
11327 # So, we kill variables containing newlines.
11328 # Ultrix sh set writes to stderr and can't be redirected directly,
11329 # and sets the high bit in the cache file unless we assign to the vars.
11330 (
11331 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11332 eval ac_val=\$$ac_var
11333 case $ac_val in #(
11334 *${as_nl}*)
11335 case $ac_var in #(
11336 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11337 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11338 esac
11339 case $ac_var in #(
11340 _ | IFS | as_nl) ;; #(
11341 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11342 *) { eval $ac_var=; unset $ac_var;} ;;
11343 esac ;;
11344 esac
11345 done
11346
11347 (set) 2>&1 |
11348 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11349 *${as_nl}ac_space=\ *)
11350 # `set' does not quote correctly, so add quotes: double-quote
11351 # substitution turns \\\\ into \\, and sed turns \\ into \.
11352 sed -n \
11353 "s/'/'\\\\''/g;
11354 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11355 ;; #(
11356 *)
11357 # `set' quotes correctly as required by POSIX, so do not add quotes.
11358 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11359 ;;
11360 esac |
11361 sort
11362 ) |
11363 sed '
11364 /^ac_cv_env_/b end
11365 t clear
11366 :clear
11367 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11368 t end
11369 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11370 :end' >>confcache
11371 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11372 if test -w "$cache_file"; then
11373 if test "x$cache_file" != "x/dev/null"; then
11374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11375 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11376 if test ! -f "$cache_file" || test -h "$cache_file"; then
11377 cat confcache >"$cache_file"
11378 else
11379 case $cache_file in #(
11380 */* | ?:*)
11381 mv -f confcache "$cache_file"$$ &&
11382 mv -f "$cache_file"$$ "$cache_file" ;; #(
11383 *)
11384 mv -f confcache "$cache_file" ;;
11385 esac
11386 fi
11387 fi
11388 else
11389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11390 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11391 fi
11392 fi
11393 rm -f confcache
11394
11395 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11396 # Let make expand exec_prefix.
11397 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11398
11399 # Transform confdefs.h into DEFS.
11400 # Protect against shell expansion while executing Makefile rules.
11401 # Protect against Makefile macro expansion.
11402 #
11403 # If the first sed substitution is executed (which looks for macros that
11404 # take arguments), then branch to the quote section. Otherwise,
11405 # look for a macro that doesn't take arguments.
11406 ac_script='
11407 :mline
11408 /\\$/{
11409 N
11410 s,\\\n,,
11411 b mline
11412 }
11413 t clear
11414 :clear
11415 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11416 t quote
11417 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11418 t quote
11419 b any
11420 :quote
11421 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11422 s/\[/\\&/g
11423 s/\]/\\&/g
11424 s/\$/$$/g
11425 H
11426 :any
11427 ${
11428 g
11429 s/^\n//
11430 s/\n/ /g
11431 p
11432 }
11433 '
11434 DEFS=`sed -n "$ac_script" confdefs.h`
11435
11436
11437 ac_libobjs=
11438 ac_ltlibobjs=
11439 U=
11440 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11441 # 1. Remove the extension, and $U if already installed.
11442 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11443 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11444 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11445 # will be set to the directory where LIBOBJS objects are built.
11446 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11447 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11448 done
11449 LIBOBJS=$ac_libobjs
11450
11451 LTLIBOBJS=$ac_ltlibobjs
11452
11453
11454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11455 printf %s "checking that generated files are newer than configure... " >&6; }
11456 if test -n "$am_sleep_pid"; then
11457 # Hide warnings about reused PIDs.
11458 wait $am_sleep_pid 2>/dev/null
11459 fi
11460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11461 printf "%s\n" "done" >&6; }
11462 if test -n "$EXEEXT"; then
11463 am__EXEEXT_TRUE=
11464 am__EXEEXT_FALSE='#'
11465 else
11466 am__EXEEXT_TRUE='#'
11467 am__EXEEXT_FALSE=
11468 fi
11469
11470 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11471 as_fn_error $? "conditional \"AMDEP\" was never defined.
11472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11473 fi
11474 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11475 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11477 fi
11478 if test -z "${GZIP_SMALL_TRUE}" && test -z "${GZIP_SMALL_FALSE}"; then
11479 as_fn_error $? "conditional \"GZIP_SMALL\" was never defined.
11480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11481 fi
11482 if test -z "${GZIP_LARGE_TRUE}" && test -z "${GZIP_LARGE_FALSE}"; then
11483 as_fn_error $? "conditional \"GZIP_LARGE\" was never defined.
11484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11485 fi
11486
11487 : "${CONFIG_STATUS=./config.status}"
11488 ac_write_fail=0
11489 ac_clean_files_save=$ac_clean_files
11490 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11492 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11493 as_write_fail=0
11494 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11495 #! $SHELL
11496 # Generated by $as_me.
11497 # Run this file to recreate the current configuration.
11498 # Compiler output produced by configure, useful for debugging
11499 # configure, is in config.log if it exists.
11500
11501 debug=false
11502 ac_cs_recheck=false
11503 ac_cs_silent=false
11504
11505 SHELL=\${CONFIG_SHELL-$SHELL}
11506 export SHELL
11507 _ASEOF
11508 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11509 ## -------------------- ##
11510 ## M4sh Initialization. ##
11511 ## -------------------- ##
11512
11513 # Be more Bourne compatible
11514 DUALCASE=1; export DUALCASE # for MKS sh
11515 as_nop=:
11516 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11517 then :
11518 emulate sh
11519 NULLCMD=:
11520 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11521 # is contrary to our usage. Disable this feature.
11522 alias -g '${1+"$@"}'='"$@"'
11523 setopt NO_GLOB_SUBST
11524 else $as_nop
11525 case `(set -o) 2>/dev/null` in #(
11526 *posix*) :
11527 set -o posix ;; #(
11528 *) :
11529 ;;
11530 esac
11531 fi
11532
11533
11534
11535 # Reset variables that may have inherited troublesome values from
11536 # the environment.
11537
11538 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11539 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11540 # side effect of setting IFS to empty, thus disabling word splitting.)
11541 # Quoting is to prevent editors from complaining about space-tab.
11542 as_nl='
11543 '
11544 export as_nl
11545 IFS=" "" $as_nl"
11546
11547 PS1='$ '
11548 PS2='> '
11549 PS4='+ '
11550
11551 # Ensure predictable behavior from utilities with locale-dependent output.
11552 LC_ALL=C
11553 export LC_ALL
11554 LANGUAGE=C
11555 export LANGUAGE
11556
11557 # We cannot yet rely on "unset" to work, but we need these variables
11558 # to be unset--not just set to an empty or harmless value--now, to
11559 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11560 # also avoids known problems related to "unset" and subshell syntax
11561 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11562 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11563 do eval test \${$as_var+y} \
11564 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11565 done
11566
11567 # Ensure that fds 0, 1, and 2 are open.
11568 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11569 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11570 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11571
11572 # The user is always right.
11573 if ${PATH_SEPARATOR+false} :; then
11574 PATH_SEPARATOR=:
11575 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11576 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11577 PATH_SEPARATOR=';'
11578 }
11579 fi
11580
11581
11582 # Find who we are. Look in the path if we contain no directory separator.
11583 as_myself=
11584 case $0 in #((
11585 *[\\/]* ) as_myself=$0 ;;
11586 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11587 for as_dir in $PATH
11588 do
11589 IFS=$as_save_IFS
11590 case $as_dir in #(((
11591 '') as_dir=./ ;;
11592 */) ;;
11593 *) as_dir=$as_dir/ ;;
11594 esac
11595 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11596 done
11597 IFS=$as_save_IFS
11598
11599 ;;
11600 esac
11601 # We did not find ourselves, most probably we were run as `sh COMMAND'
11602 # in which case we are not to be found in the path.
11603 if test "x$as_myself" = x; then
11604 as_myself=$0
11605 fi
11606 if test ! -f "$as_myself"; then
11607 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11608 exit 1
11609 fi
11610
11611
11612
11613 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11614 # ----------------------------------------
11615 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11616 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11617 # script with STATUS, using 1 if that was 0.
11618 as_fn_error ()
11619 {
11620 as_status=$1; test $as_status -eq 0 && as_status=1
11621 if test "$4"; then
11622 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11624 fi
11625 printf "%s\n" "$as_me: error: $2" >&2
11626 as_fn_exit $as_status
11627 } # as_fn_error
11628
11629
11630
11631 # as_fn_set_status STATUS
11632 # -----------------------
11633 # Set $? to STATUS, without forking.
11634 as_fn_set_status ()
11635 {
11636 return $1
11637 } # as_fn_set_status
11638
11639 # as_fn_exit STATUS
11640 # -----------------
11641 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11642 as_fn_exit ()
11643 {
11644 set +e
11645 as_fn_set_status $1
11646 exit $1
11647 } # as_fn_exit
11648
11649 # as_fn_unset VAR
11650 # ---------------
11651 # Portably unset VAR.
11652 as_fn_unset ()
11653 {
11654 { eval $1=; unset $1;}
11655 }
11656 as_unset=as_fn_unset
11657
11658 # as_fn_append VAR VALUE
11659 # ----------------------
11660 # Append the text in VALUE to the end of the definition contained in VAR. Take
11661 # advantage of any shell optimizations that allow amortized linear growth over
11662 # repeated appends, instead of the typical quadratic growth present in naive
11663 # implementations.
11664 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11665 then :
11666 eval 'as_fn_append ()
11667 {
11668 eval $1+=\$2
11669 }'
11670 else $as_nop
11671 as_fn_append ()
11672 {
11673 eval $1=\$$1\$2
11674 }
11675 fi # as_fn_append
11676
11677 # as_fn_arith ARG...
11678 # ------------------
11679 # Perform arithmetic evaluation on the ARGs, and store the result in the
11680 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11681 # must be portable across $(()) and expr.
11682 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11683 then :
11684 eval 'as_fn_arith ()
11685 {
11686 as_val=$(( $* ))
11687 }'
11688 else $as_nop
11689 as_fn_arith ()
11690 {
11691 as_val=`expr "$@" || test $? -eq 1`
11692 }
11693 fi # as_fn_arith
11694
11695
11696 if expr a : '\(a\)' >/dev/null 2>&1 &&
11697 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11698 as_expr=expr
11699 else
11700 as_expr=false
11701 fi
11702
11703 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11704 as_basename=basename
11705 else
11706 as_basename=false
11707 fi
11708
11709 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11710 as_dirname=dirname
11711 else
11712 as_dirname=false
11713 fi
11714
11715 as_me=`$as_basename -- "$0" ||
11716 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11717 X"$0" : 'X\(//\)$' \| \
11718 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11719 printf "%s\n" X/"$0" |
11720 sed '/^.*\/\([^/][^/]*\)\/*$/{
11721 s//\1/
11722 q
11723 }
11724 /^X\/\(\/\/\)$/{
11725 s//\1/
11726 q
11727 }
11728 /^X\/\(\/\).*/{
11729 s//\1/
11730 q
11731 }
11732 s/.*/./; q'`
11733
11734 # Avoid depending upon Character Ranges.
11735 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11736 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11737 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11738 as_cr_digits='0123456789'
11739 as_cr_alnum=$as_cr_Letters$as_cr_digits
11740
11741
11742 # Determine whether it's possible to make 'echo' print without a newline.
11743 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11744 # for compatibility with existing Makefiles.
11745 ECHO_C= ECHO_N= ECHO_T=
11746 case `echo -n x` in #(((((
11747 -n*)
11748 case `echo 'xy\c'` in
11749 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11750 xy) ECHO_C='\c';;
11751 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11752 ECHO_T=' ';;
11753 esac;;
11754 *)
11755 ECHO_N='-n';;
11756 esac
11757
11758 # For backward compatibility with old third-party macros, we provide
11759 # the shell variables $as_echo and $as_echo_n. New code should use
11760 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11761 as_echo='printf %s\n'
11762 as_echo_n='printf %s'
11763
11764 rm -f conf$$ conf$$.exe conf$$.file
11765 if test -d conf$$.dir; then
11766 rm -f conf$$.dir/conf$$.file
11767 else
11768 rm -f conf$$.dir
11769 mkdir conf$$.dir 2>/dev/null
11770 fi
11771 if (echo >conf$$.file) 2>/dev/null; then
11772 if ln -s conf$$.file conf$$ 2>/dev/null; then
11773 as_ln_s='ln -s'
11774 # ... but there are two gotchas:
11775 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11776 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11777 # In both cases, we have to default to `cp -pR'.
11778 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11779 as_ln_s='cp -pR'
11780 elif ln conf$$.file conf$$ 2>/dev/null; then
11781 as_ln_s=ln
11782 else
11783 as_ln_s='cp -pR'
11784 fi
11785 else
11786 as_ln_s='cp -pR'
11787 fi
11788 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11789 rmdir conf$$.dir 2>/dev/null
11790
11791
11792 # as_fn_mkdir_p
11793 # -------------
11794 # Create "$as_dir" as a directory, including parents if necessary.
11795 as_fn_mkdir_p ()
11796 {
11797
11798 case $as_dir in #(
11799 -*) as_dir=./$as_dir;;
11800 esac
11801 test -d "$as_dir" || eval $as_mkdir_p || {
11802 as_dirs=
11803 while :; do
11804 case $as_dir in #(
11805 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11806 *) as_qdir=$as_dir;;
11807 esac
11808 as_dirs="'$as_qdir' $as_dirs"
11809 as_dir=`$as_dirname -- "$as_dir" ||
11810 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11811 X"$as_dir" : 'X\(//\)[^/]' \| \
11812 X"$as_dir" : 'X\(//\)$' \| \
11813 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11814 printf "%s\n" X"$as_dir" |
11815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11816 s//\1/
11817 q
11818 }
11819 /^X\(\/\/\)[^/].*/{
11820 s//\1/
11821 q
11822 }
11823 /^X\(\/\/\)$/{
11824 s//\1/
11825 q
11826 }
11827 /^X\(\/\).*/{
11828 s//\1/
11829 q
11830 }
11831 s/.*/./; q'`
11832 test -d "$as_dir" && break
11833 done
11834 test -z "$as_dirs" || eval "mkdir $as_dirs"
11835 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11836
11837
11838 } # as_fn_mkdir_p
11839 if mkdir -p . 2>/dev/null; then
11840 as_mkdir_p='mkdir -p "$as_dir"'
11841 else
11842 test -d ./-p && rmdir ./-p
11843 as_mkdir_p=false
11844 fi
11845
11846
11847 # as_fn_executable_p FILE
11848 # -----------------------
11849 # Test if FILE is an executable regular file.
11850 as_fn_executable_p ()
11851 {
11852 test -f "$1" && test -x "$1"
11853 } # as_fn_executable_p
11854 as_test_x='test -x'
11855 as_executable_p=as_fn_executable_p
11856
11857 # Sed expression to map a string onto a valid CPP name.
11858 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11859
11860 # Sed expression to map a string onto a valid variable name.
11861 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11862
11863
11864 exec 6>&1
11865 ## ----------------------------------- ##
11866 ## Main body of $CONFIG_STATUS script. ##
11867 ## ----------------------------------- ##
11868 _ASEOF
11869 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11870
11871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11872 # Save the log message, to keep $0 and so on meaningful, and to
11873 # report actual input values of CONFIG_FILES etc. instead of their
11874 # values after options handling.
11875 ac_log="
11876 This file was extended by encodings $as_me 1.0.6, which was
11877 generated by GNU Autoconf 2.71. Invocation command line was
11878
11879 CONFIG_FILES = $CONFIG_FILES
11880 CONFIG_HEADERS = $CONFIG_HEADERS
11881 CONFIG_LINKS = $CONFIG_LINKS
11882 CONFIG_COMMANDS = $CONFIG_COMMANDS
11883 $ $0 $@
11884
11885 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11886 "
11887
11888 _ACEOF
11889
11890 case $ac_config_files in *"
11891 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11892 esac
11893
11894
11895
11896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11897 # Files that config.status was made for.
11898 config_files="$ac_config_files"
11899 config_commands="$ac_config_commands"
11900
11901 _ACEOF
11902
11903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11904 ac_cs_usage="\
11905 \`$as_me' instantiates files and other configuration actions
11906 from templates according to the current configuration. Unless the files
11907 and actions are specified as TAGs, all are instantiated by default.
11908
11909 Usage: $0 [OPTION]... [TAG]...
11910
11911 -h, --help print this help, then exit
11912 -V, --version print version number and configuration settings, then exit
11913 --config print configuration, then exit
11914 -q, --quiet, --silent
11915 do not print progress messages
11916 -d, --debug don't remove temporary files
11917 --recheck update $as_me by reconfiguring in the same conditions
11918 --file=FILE[:TEMPLATE]
11919 instantiate the configuration file FILE
11920
11921 Configuration files:
11922 $config_files
11923
11924 Configuration commands:
11925 $config_commands
11926
11927 Report bugs to <https://gitlab.freedesktop.org/xorg/font/encodings/issues>."
11928
11929 _ACEOF
11930 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11931 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11933 ac_cs_config='$ac_cs_config_escaped'
11934 ac_cs_version="\\
11935 encodings config.status 1.0.6
11936 configured by $0, generated by GNU Autoconf 2.71,
11937 with options \\"\$ac_cs_config\\"
11938
11939 Copyright (C) 2021 Free Software Foundation, Inc.
11940 This config.status script is free software; the Free Software Foundation
11941 gives unlimited permission to copy, distribute and modify it."
11942
11943 ac_pwd='$ac_pwd'
11944 srcdir='$srcdir'
11945 INSTALL='$INSTALL'
11946 MKDIR_P='$MKDIR_P'
11947 AWK='$AWK'
11948 test -n "\$AWK" || AWK=awk
11949 _ACEOF
11950
11951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11952 # The default lists apply if the user does not specify any file.
11953 ac_need_defaults=:
11954 while test $# != 0
11955 do
11956 case $1 in
11957 --*=?*)
11958 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11959 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11960 ac_shift=:
11961 ;;
11962 --*=)
11963 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11964 ac_optarg=
11965 ac_shift=:
11966 ;;
11967 *)
11968 ac_option=$1
11969 ac_optarg=$2
11970 ac_shift=shift
11971 ;;
11972 esac
11973
11974 case $ac_option in
11975 # Handling of the options.
11976 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11977 ac_cs_recheck=: ;;
11978 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11979 printf "%s\n" "$ac_cs_version"; exit ;;
11980 --config | --confi | --conf | --con | --co | --c )
11981 printf "%s\n" "$ac_cs_config"; exit ;;
11982 --debug | --debu | --deb | --de | --d | -d )
11983 debug=: ;;
11984 --file | --fil | --fi | --f )
11985 $ac_shift
11986 case $ac_optarg in
11987 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11988 '') as_fn_error $? "missing file argument" ;;
11989 esac
11990 as_fn_append CONFIG_FILES " '$ac_optarg'"
11991 ac_need_defaults=false;;
11992 --he | --h | --help | --hel | -h )
11993 printf "%s\n" "$ac_cs_usage"; exit ;;
11994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11995 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11996 ac_cs_silent=: ;;
11997
11998 # This is an error.
11999 -*) as_fn_error $? "unrecognized option: \`$1'
12000 Try \`$0 --help' for more information." ;;
12001
12002 *) as_fn_append ac_config_targets " $1"
12003 ac_need_defaults=false ;;
12004
12005 esac
12006 shift
12007 done
12008
12009 ac_configure_extra_args=
12010
12011 if $ac_cs_silent; then
12012 exec 6>/dev/null
12013 ac_configure_extra_args="$ac_configure_extra_args --silent"
12014 fi
12015
12016 _ACEOF
12017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12018 if \$ac_cs_recheck; then
12019 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12020 shift
12021 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12022 CONFIG_SHELL='$SHELL'
12023 export CONFIG_SHELL
12024 exec "\$@"
12025 fi
12026
12027 _ACEOF
12028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12029 exec 5>>config.log
12030 {
12031 echo
12032 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12033 ## Running $as_me. ##
12034 _ASBOX
12035 printf "%s\n" "$ac_log"
12036 } >&5
12037
12038 _ACEOF
12039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12040 #
12041 # INIT-COMMANDS
12042 #
12043 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12044
12045 _ACEOF
12046
12047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12048
12049 # Handling of arguments.
12050 for ac_config_target in $ac_config_targets
12051 do
12052 case $ac_config_target in
12053 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12054 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12055 "large/Makefile") CONFIG_FILES="$CONFIG_FILES large/Makefile" ;;
12056
12057 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12058 esac
12059 done
12060
12061
12062 # If the user did not use the arguments to specify the items to instantiate,
12063 # then the envvar interface is used. Set only those that are not.
12064 # We use the long form for the default assignment because of an extremely
12065 # bizarre bug on SunOS 4.1.3.
12066 if $ac_need_defaults; then
12067 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12068 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12069 fi
12070
12071 # Have a temporary directory for convenience. Make it in the build tree
12072 # simply because there is no reason against having it here, and in addition,
12073 # creating and moving files from /tmp can sometimes cause problems.
12074 # Hook for its removal unless debugging.
12075 # Note that there is a small window in which the directory will not be cleaned:
12076 # after its creation but before its name has been assigned to `$tmp'.
12077 $debug ||
12078 {
12079 tmp= ac_tmp=
12080 trap 'exit_status=$?
12081 : "${ac_tmp:=$tmp}"
12082 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12083 ' 0
12084 trap 'as_fn_exit 1' 1 2 13 15
12085 }
12086 # Create a (secure) tmp directory for tmp files.
12087
12088 {
12089 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12090 test -d "$tmp"
12091 } ||
12092 {
12093 tmp=./conf$$-$RANDOM
12094 (umask 077 && mkdir "$tmp")
12095 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12096 ac_tmp=$tmp
12097
12098 # Set up the scripts for CONFIG_FILES section.
12099 # No need to generate them if there are no CONFIG_FILES.
12100 # This happens for instance with `./config.status config.h'.
12101 if test -n "$CONFIG_FILES"; then
12102
12103
12104 ac_cr=`echo X | tr X '\015'`
12105 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12106 # But we know of no other shell where ac_cr would be empty at this
12107 # point, so we can use a bashism as a fallback.
12108 if test "x$ac_cr" = x; then
12109 eval ac_cr=\$\'\\r\'
12110 fi
12111 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12112 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12113 ac_cs_awk_cr='\\r'
12114 else
12115 ac_cs_awk_cr=$ac_cr
12116 fi
12117
12118 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12119 _ACEOF
12120
12121
12122 {
12123 echo "cat >conf$$subs.awk <<_ACEOF" &&
12124 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12125 echo "_ACEOF"
12126 } >conf$$subs.sh ||
12127 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12128 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12129 ac_delim='%!_!# '
12130 for ac_last_try in false false false false false :; do
12131 . ./conf$$subs.sh ||
12132 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12133
12134 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12135 if test $ac_delim_n = $ac_delim_num; then
12136 break
12137 elif $ac_last_try; then
12138 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12139 else
12140 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12141 fi
12142 done
12143 rm -f conf$$subs.sh
12144
12145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12146 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12147 _ACEOF
12148 sed -n '
12149 h
12150 s/^/S["/; s/!.*/"]=/
12151 p
12152 g
12153 s/^[^!]*!//
12154 :repl
12155 t repl
12156 s/'"$ac_delim"'$//
12157 t delim
12158 :nl
12159 h
12160 s/\(.\{148\}\)..*/\1/
12161 t more1
12162 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12163 p
12164 n
12165 b repl
12166 :more1
12167 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12168 p
12169 g
12170 s/.\{148\}//
12171 t nl
12172 :delim
12173 h
12174 s/\(.\{148\}\)..*/\1/
12175 t more2
12176 s/["\\]/\\&/g; s/^/"/; s/$/"/
12177 p
12178 b
12179 :more2
12180 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12181 p
12182 g
12183 s/.\{148\}//
12184 t delim
12185 ' <conf$$subs.awk | sed '
12186 /^[^""]/{
12187 N
12188 s/\n//
12189 }
12190 ' >>$CONFIG_STATUS || ac_write_fail=1
12191 rm -f conf$$subs.awk
12192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12193 _ACAWK
12194 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12195 for (key in S) S_is_set[key] = 1
12196 FS = ""
12197
12198 }
12199 {
12200 line = $ 0
12201 nfields = split(line, field, "@")
12202 substed = 0
12203 len = length(field[1])
12204 for (i = 2; i < nfields; i++) {
12205 key = field[i]
12206 keylen = length(key)
12207 if (S_is_set[key]) {
12208 value = S[key]
12209 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12210 len += length(value) + length(field[++i])
12211 substed = 1
12212 } else
12213 len += 1 + keylen
12214 }
12215
12216 print line
12217 }
12218
12219 _ACAWK
12220 _ACEOF
12221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12222 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12223 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12224 else
12225 cat
12226 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12227 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12228 _ACEOF
12229
12230 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12231 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12232 # trailing colons and then remove the whole line if VPATH becomes empty
12233 # (actually we leave an empty line to preserve line numbers).
12234 if test "x$srcdir" = x.; then
12235 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12236 h
12237 s///
12238 s/^/:/
12239 s/[ ]*$/:/
12240 s/:\$(srcdir):/:/g
12241 s/:\${srcdir}:/:/g
12242 s/:@srcdir@:/:/g
12243 s/^:*//
12244 s/:*$//
12245 x
12246 s/\(=[ ]*\).*/\1/
12247 G
12248 s/\n//
12249 s/^[^=]*=[ ]*$//
12250 }'
12251 fi
12252
12253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12254 fi # test -n "$CONFIG_FILES"
12255
12256
12257 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12258 shift
12259 for ac_tag
12260 do
12261 case $ac_tag in
12262 :[FHLC]) ac_mode=$ac_tag; continue;;
12263 esac
12264 case $ac_mode$ac_tag in
12265 :[FHL]*:*);;
12266 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12267 :[FH]-) ac_tag=-:-;;
12268 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12269 esac
12270 ac_save_IFS=$IFS
12271 IFS=:
12272 set x $ac_tag
12273 IFS=$ac_save_IFS
12274 shift
12275 ac_file=$1
12276 shift
12277
12278 case $ac_mode in
12279 :L) ac_source=$1;;
12280 :[FH])
12281 ac_file_inputs=
12282 for ac_f
12283 do
12284 case $ac_f in
12285 -) ac_f="$ac_tmp/stdin";;
12286 *) # Look for the file first in the build tree, then in the source tree
12287 # (if the path is not absolute). The absolute path cannot be DOS-style,
12288 # because $ac_f cannot contain `:'.
12289 test -f "$ac_f" ||
12290 case $ac_f in
12291 [\\/$]*) false;;
12292 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12293 esac ||
12294 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12295 esac
12296 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12297 as_fn_append ac_file_inputs " '$ac_f'"
12298 done
12299
12300 # Let's still pretend it is `configure' which instantiates (i.e., don't
12301 # use $as_me), people would be surprised to read:
12302 # /* config.h. Generated by config.status. */
12303 configure_input='Generated from '`
12304 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12305 `' by configure.'
12306 if test x"$ac_file" != x-; then
12307 configure_input="$ac_file. $configure_input"
12308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12309 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12310 fi
12311 # Neutralize special characters interpreted by sed in replacement strings.
12312 case $configure_input in #(
12313 *\&* | *\|* | *\\* )
12314 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12315 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12316 *) ac_sed_conf_input=$configure_input;;
12317 esac
12318
12319 case $ac_tag in
12320 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12321 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12322 esac
12323 ;;
12324 esac
12325
12326 ac_dir=`$as_dirname -- "$ac_file" ||
12327 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12328 X"$ac_file" : 'X\(//\)[^/]' \| \
12329 X"$ac_file" : 'X\(//\)$' \| \
12330 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12331 printf "%s\n" X"$ac_file" |
12332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12333 s//\1/
12334 q
12335 }
12336 /^X\(\/\/\)[^/].*/{
12337 s//\1/
12338 q
12339 }
12340 /^X\(\/\/\)$/{
12341 s//\1/
12342 q
12343 }
12344 /^X\(\/\).*/{
12345 s//\1/
12346 q
12347 }
12348 s/.*/./; q'`
12349 as_dir="$ac_dir"; as_fn_mkdir_p
12350 ac_builddir=.
12351
12352 case "$ac_dir" in
12353 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12354 *)
12355 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12356 # A ".." for each directory in $ac_dir_suffix.
12357 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12358 case $ac_top_builddir_sub in
12359 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12360 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12361 esac ;;
12362 esac
12363 ac_abs_top_builddir=$ac_pwd
12364 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12365 # for backward compatibility:
12366 ac_top_builddir=$ac_top_build_prefix
12367
12368 case $srcdir in
12369 .) # We are building in place.
12370 ac_srcdir=.
12371 ac_top_srcdir=$ac_top_builddir_sub
12372 ac_abs_top_srcdir=$ac_pwd ;;
12373 [\\/]* | ?:[\\/]* ) # Absolute name.
12374 ac_srcdir=$srcdir$ac_dir_suffix;
12375 ac_top_srcdir=$srcdir
12376 ac_abs_top_srcdir=$srcdir ;;
12377 *) # Relative name.
12378 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12379 ac_top_srcdir=$ac_top_build_prefix$srcdir
12380 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12381 esac
12382 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12383
12384
12385 case $ac_mode in
12386 :F)
12387 #
12388 # CONFIG_FILE
12389 #
12390
12391 case $INSTALL in
12392 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12393 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12394 esac
12395 ac_MKDIR_P=$MKDIR_P
12396 case $MKDIR_P in
12397 [\\/$]* | ?:[\\/]* ) ;;
12398 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12399 esac
12400 _ACEOF
12401
12402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12403 # If the template does not know about datarootdir, expand it.
12404 # FIXME: This hack should be removed a few years after 2.60.
12405 ac_datarootdir_hack=; ac_datarootdir_seen=
12406 ac_sed_dataroot='
12407 /datarootdir/ {
12408 p
12409 q
12410 }
12411 /@datadir@/p
12412 /@docdir@/p
12413 /@infodir@/p
12414 /@localedir@/p
12415 /@mandir@/p'
12416 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12417 *datarootdir*) ac_datarootdir_seen=yes;;
12418 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12420 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12421 _ACEOF
12422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12423 ac_datarootdir_hack='
12424 s&@datadir@&$datadir&g
12425 s&@docdir@&$docdir&g
12426 s&@infodir@&$infodir&g
12427 s&@localedir@&$localedir&g
12428 s&@mandir@&$mandir&g
12429 s&\\\${datarootdir}&$datarootdir&g' ;;
12430 esac
12431 _ACEOF
12432
12433 # Neutralize VPATH when `$srcdir' = `.'.
12434 # Shell code in configure.ac might set extrasub.
12435 # FIXME: do we really want to maintain this feature?
12436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12437 ac_sed_extra="$ac_vpsub
12438 $extrasub
12439 _ACEOF
12440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12441 :t
12442 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12443 s|@configure_input@|$ac_sed_conf_input|;t t
12444 s&@top_builddir@&$ac_top_builddir_sub&;t t
12445 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12446 s&@srcdir@&$ac_srcdir&;t t
12447 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12448 s&@top_srcdir@&$ac_top_srcdir&;t t
12449 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12450 s&@builddir@&$ac_builddir&;t t
12451 s&@abs_builddir@&$ac_abs_builddir&;t t
12452 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12453 s&@INSTALL@&$ac_INSTALL&;t t
12454 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12455 $ac_datarootdir_hack
12456 "
12457 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12458 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12459
12460 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12461 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12462 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12463 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12465 which seems to be undefined. Please make sure it is defined" >&5
12466 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12467 which seems to be undefined. Please make sure it is defined" >&2;}
12468
12469 rm -f "$ac_tmp/stdin"
12470 case $ac_file in
12471 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12472 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12473 esac \
12474 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12475 ;;
12476
12477
12478 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12479 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12480 ;;
12481 esac
12482
12483
12484 case $ac_file$ac_mode in
12485 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12486 # Older Autoconf quotes --file arguments for eval, but not when files
12487 # are listed without --file. Let's play safe and only enable the eval
12488 # if we detect the quoting.
12489 # TODO: see whether this extra hack can be removed once we start
12490 # requiring Autoconf 2.70 or later.
12491 case $CONFIG_FILES in #(
12492 *\'*) :
12493 eval set x "$CONFIG_FILES" ;; #(
12494 *) :
12495 set x $CONFIG_FILES ;; #(
12496 *) :
12497 ;;
12498 esac
12499 shift
12500 # Used to flag and report bootstrapping failures.
12501 am_rc=0
12502 for am_mf
12503 do
12504 # Strip MF so we end up with the name of the file.
12505 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12506 # Check whether this is an Automake generated Makefile which includes
12507 # dependency-tracking related rules and includes.
12508 # Grep'ing the whole file directly is not great: AIX grep has a line
12509 # limit of 2048, but all sed's we know have understand at least 4000.
12510 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12511 || continue
12512 am_dirpart=`$as_dirname -- "$am_mf" ||
12513 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12514 X"$am_mf" : 'X\(//\)[^/]' \| \
12515 X"$am_mf" : 'X\(//\)$' \| \
12516 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12517 printf "%s\n" X"$am_mf" |
12518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12519 s//\1/
12520 q
12521 }
12522 /^X\(\/\/\)[^/].*/{
12523 s//\1/
12524 q
12525 }
12526 /^X\(\/\/\)$/{
12527 s//\1/
12528 q
12529 }
12530 /^X\(\/\).*/{
12531 s//\1/
12532 q
12533 }
12534 s/.*/./; q'`
12535 am_filepart=`$as_basename -- "$am_mf" ||
12536 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12537 X"$am_mf" : 'X\(//\)$' \| \
12538 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12539 printf "%s\n" X/"$am_mf" |
12540 sed '/^.*\/\([^/][^/]*\)\/*$/{
12541 s//\1/
12542 q
12543 }
12544 /^X\/\(\/\/\)$/{
12545 s//\1/
12546 q
12547 }
12548 /^X\/\(\/\).*/{
12549 s//\1/
12550 q
12551 }
12552 s/.*/./; q'`
12553 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12554 && sed -e '/# am--include-marker/d' "$am_filepart" \
12555 | $MAKE -f - am--depfiles" >&5
12556 (cd "$am_dirpart" \
12557 && sed -e '/# am--include-marker/d' "$am_filepart" \
12558 | $MAKE -f - am--depfiles) >&5 2>&5
12559 ac_status=$?
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); } || am_rc=$?
12562 done
12563 if test $am_rc -ne 0; then
12564 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12565 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12566 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12567 for automatic dependency tracking. If GNU make was not used, consider
12568 re-running the configure script with MAKE=\"gmake\" (or whatever is
12569 necessary). You can also try re-running configure with the
12570 '--disable-dependency-tracking' option to at least be able to build
12571 the package (albeit without support for automatic dependency tracking).
12572 See \`config.log' for more details" "$LINENO" 5; }
12573 fi
12574 { am_dirpart=; unset am_dirpart;}
12575 { am_filepart=; unset am_filepart;}
12576 { am_mf=; unset am_mf;}
12577 { am_rc=; unset am_rc;}
12578 rm -f conftest-deps.mk
12579 }
12580 ;;
12581
12582 esac
12583 done # for ac_tag
12584
12585
12586 as_fn_exit 0
12587 _ACEOF
12588 ac_clean_files=$ac_clean_files_save
12589
12590 test $ac_write_fail = 0 ||
12591 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12592
12593
12594 # configure is writing to config.log, and then calls config.status.
12595 # config.status does its own redirection, appending to config.log.
12596 # Unfortunately, on DOS this fails, as config.log is still kept open
12597 # by configure, so config.status won't be able to write to it; its
12598 # output is simply discarded. So we exec the FD to /dev/null,
12599 # effectively closing config.log, so it can be properly (re)opened and
12600 # appended to by config.status. When coming back to configure, we
12601 # need to make the FD available again.
12602 if test "$no_create" != yes; then
12603 ac_cs_success=:
12604 ac_config_status_args=
12605 test "$silent" = yes &&
12606 ac_config_status_args="$ac_config_status_args --quiet"
12607 exec 5>/dev/null
12608 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12609 exec 5>>config.log
12610 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12611 # would make configure fail if this is the last instruction.
12612 $ac_cs_success || as_fn_exit 1
12613 fi
12614 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12616 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12617 fi
12618
12619
12620