Debian Codegraph @

xvidtune/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xvidtune 1.0.4.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xvidtune/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 [email protected] and
271 $0: https://gitlab.freedesktop.org/xorg/app/xvidtune/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='xvidtune'
614 PACKAGE_TARNAME='xvidtune'
615 PACKAGE_VERSION='1.0.4'
616 PACKAGE_STRING='xvidtune 1.0.4'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xvidtune/issues'
618 PACKAGE_URL=''
619
620 ac_unique_file="Makefile.am"
621 # Factoring default headers for most tests.
622 ac_includes_default="\
623 #include <stddef.h>
624 #ifdef HAVE_STDIO_H
625 # include <stdio.h>
626 #endif
627 #ifdef HAVE_STDLIB_H
628 # include <stdlib.h>
629 #endif
630 #ifdef HAVE_STRING_H
631 # include <string.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_STRINGS_H
640 # include <strings.h>
641 #endif
642 #ifdef HAVE_SYS_TYPES_H
643 # include <sys/types.h>
644 #endif
645 #ifdef HAVE_SYS_STAT_H
646 # include <sys/stat.h>
647 #endif
648 #ifdef HAVE_UNISTD_H
649 # include <unistd.h>
650 #endif"
651
652 ac_header_c_list=
653 ac_subst_vars='am__EXEEXT_FALSE
654 am__EXEEXT_TRUE
655 LTLIBOBJS
656 LIBOBJS
657 appdefaultdir
658 XVIDTUNE_LIBS
659 XVIDTUNE_CFLAGS
660 MAN_SUBSTS
661 XORG_MAN_PAGE
662 ADMIN_MAN_DIR
663 DRIVER_MAN_DIR
664 MISC_MAN_DIR
665 FILE_MAN_DIR
666 LIB_MAN_DIR
667 APP_MAN_DIR
668 ADMIN_MAN_SUFFIX
669 DRIVER_MAN_SUFFIX
670 MISC_MAN_SUFFIX
671 FILE_MAN_SUFFIX
672 LIB_MAN_SUFFIX
673 APP_MAN_SUFFIX
674 SED
675 host_os
676 host_vendor
677 host_cpu
678 host
679 build_os
680 build_vendor
681 build_cpu
682 build
683 INSTALL_CMD
684 PKG_CONFIG_LIBDIR
685 PKG_CONFIG_PATH
686 PKG_CONFIG
687 CHANGELOG_CMD
688 STRICT_CFLAGS
689 CWARNFLAGS
690 BASE_CFLAGS
691 am__fastdepCC_FALSE
692 am__fastdepCC_TRUE
693 CCDEPMODE
694 am__nodep
695 AMDEPBACKSLASH
696 AMDEP_FALSE
697 AMDEP_TRUE
698 am__include
699 DEPDIR
700 OBJEXT
701 EXEEXT
702 ac_ct_CC
703 CPPFLAGS
704 LDFLAGS
705 CFLAGS
706 CC
707 AM_BACKSLASH
708 AM_DEFAULT_VERBOSITY
709 AM_DEFAULT_V
710 AM_V
711 CSCOPE
712 ETAGS
713 CTAGS
714 am__untar
715 am__tar
716 AMTAR
717 am__leading_dot
718 SET_MAKE
719 AWK
720 mkdir_p
721 MKDIR_P
722 INSTALL_STRIP_PROGRAM
723 STRIP
724 install_sh
725 MAKEINFO
726 AUTOHEADER
727 AUTOMAKE
728 AUTOCONF
729 ACLOCAL
730 VERSION
731 PACKAGE
732 CYGPATH_W
733 am__isrc
734 INSTALL_DATA
735 INSTALL_SCRIPT
736 INSTALL_PROGRAM
737 target_alias
738 host_alias
739 build_alias
740 LIBS
741 ECHO_T
742 ECHO_N
743 ECHO_C
744 DEFS
745 mandir
746 localedir
747 libdir
748 psdir
749 pdfdir
750 dvidir
751 htmldir
752 infodir
753 docdir
754 oldincludedir
755 includedir
756 runstatedir
757 localstatedir
758 sharedstatedir
759 sysconfdir
760 datadir
761 datarootdir
762 libexecdir
763 sbindir
764 bindir
765 program_transform_name
766 prefix
767 exec_prefix
768 PACKAGE_URL
769 PACKAGE_BUGREPORT
770 PACKAGE_STRING
771 PACKAGE_VERSION
772 PACKAGE_TARNAME
773 PACKAGE_NAME
774 PATH_SEPARATOR
775 SHELL
776 am__quote'
777 ac_subst_files=''
778 ac_user_opts='
779 enable_option_checking
780 enable_silent_rules
781 enable_dependency_tracking
782 enable_selective_werror
783 enable_strict_compilation
784 with_appdefaultdir
785 '
786 ac_precious_vars='build_alias
787 host_alias
788 target_alias
789 CC
790 CFLAGS
791 LDFLAGS
792 LIBS
793 CPPFLAGS
794 PKG_CONFIG
795 PKG_CONFIG_PATH
796 PKG_CONFIG_LIBDIR
797 XVIDTUNE_CFLAGS
798 XVIDTUNE_LIBS'
799
800
801 # Initialize some variables set by options.
802 ac_init_help=
803 ac_init_version=false
804 ac_unrecognized_opts=
805 ac_unrecognized_sep=
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
808 cache_file=/dev/null
809 exec_prefix=NONE
810 no_create=
811 no_recursion=
812 prefix=NONE
813 program_prefix=NONE
814 program_suffix=NONE
815 program_transform_name=s,x,x,
816 silent=
817 site=
818 srcdir=
819 verbose=
820 x_includes=NONE
821 x_libraries=NONE
822
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir='${exec_prefix}/bin'
830 sbindir='${exec_prefix}/sbin'
831 libexecdir='${exec_prefix}/libexec'
832 datarootdir='${prefix}/share'
833 datadir='${datarootdir}'
834 sysconfdir='${prefix}/etc'
835 sharedstatedir='${prefix}/com'
836 localstatedir='${prefix}/var'
837 runstatedir='${localstatedir}/run'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
842 htmldir='${docdir}'
843 dvidir='${docdir}'
844 pdfdir='${docdir}'
845 psdir='${docdir}'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
849
850 ac_prev=
851 ac_dashdash=
852 for ac_option
853 do
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\$ac_option
857 ac_prev=
858 continue
859 fi
860
861 case $ac_option in
862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 *=) ac_optarg= ;;
864 *) ac_optarg=yes ;;
865 esac
866
867 case $ac_dashdash$ac_option in
868 --)
869 ac_dashdash=yes ;;
870
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
875
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
880
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
887
888 --config-cache | -C)
889 cache_file=config.cache ;;
890
891 -datadir | --datadir | --datadi | --datad)
892 ac_prev=datadir ;;
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
895
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
902
903 -disable-* | --disable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error $? "invalid feature name: \`$ac_useropt'"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
911 *"
912 "enable_$ac_useropt"
913 "*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=no ;;
918
919 -docdir | --docdir | --docdi | --doc | --do)
920 ac_prev=docdir ;;
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 docdir=$ac_optarg ;;
923
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 ac_prev=dvidir ;;
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 dvidir=$ac_optarg ;;
928
929 -enable-* | --enable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: \`$ac_useropt'"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=\$ac_optarg ;;
944
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
953
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
957
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
964
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
969
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
975
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
982
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
987
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 libdir=$ac_optarg ;;
992
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
999
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1004
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1011
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1016
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1020
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1023 no_create=yes ;;
1024
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1028
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1037
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1042
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1049
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1056
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1073
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1078
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1083
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1087
1088 -runstatedir | --runstatedir | --runstatedi | --runstated \
1089 | --runstate | --runstat | --runsta | --runst | --runs \
1090 | --run | --ru | --r)
1091 ac_prev=runstatedir ;;
1092 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1093 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1094 | --run=* | --ru=* | --r=*)
1095 runstatedir=$ac_optarg ;;
1096
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 ac_prev=sbindir ;;
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 | --sbi=* | --sb=*)
1101 sbindir=$ac_optarg ;;
1102
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1106 | --sha | --sh)
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 | --sha=* | --sh=*)
1112 sharedstatedir=$ac_optarg ;;
1113
1114 -site | --site | --sit)
1115 ac_prev=site ;;
1116 -site=* | --site=* | --sit=*)
1117 site=$ac_optarg ;;
1118
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 ac_prev=srcdir ;;
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1123
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1130
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1135
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 verbose=yes ;;
1138
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1141
1142 -with-* | --with-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: \`$ac_useropt'"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=\$ac_optarg ;;
1157
1158 -without-* | --without-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: \`$ac_useropt'"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167 "with_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
1173
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1177
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1184
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1191
1192 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193 Try \`$0 --help' for more information"
1194 ;;
1195
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202 esac
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1205
1206 *)
1207 # FIXME: should be removed in autoconf 3.0.
1208 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212 ;;
1213
1214 esac
1215 done
1216
1217 if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error $? "missing argument to $ac_option"
1220 fi
1221
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1224 no) ;;
1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 esac
1228 fi
1229
1230 # Check all directory arguments for consistency.
1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir runstatedir
1235 do
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
1238 case $ac_val in
1239 */ )
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1242 esac
1243 # Be sure to have absolute directory names.
1244 case $ac_val in
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 esac
1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249 done
1250
1251 # There might be people who depend on the old broken behavior: `$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1254 build=$build_alias
1255 host=$host_alias
1256 target=$target_alias
1257
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
1262 elif test "x$build_alias" != "x$host_alias"; then
1263 cross_compiling=yes
1264 fi
1265 fi
1266
1267 ac_tool_prefix=
1268 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269
1270 test "$silent" = yes && exec 6>/dev/null
1271
1272
1273 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274 ac_ls_di=`ls -di .` &&
1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276 as_fn_error $? "working directory cannot be determined"
1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278 as_fn_error $? "pwd does not report name of working directory"
1279
1280
1281 # Find the source files, if location was not specified.
1282 if test -z "$srcdir"; then
1283 ac_srcdir_defaulted=yes
1284 # Try the directory containing this script, then the parent directory.
1285 ac_confdir=`$as_dirname -- "$as_myself" ||
1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$as_myself" : 'X\(//\)[^/]' \| \
1288 X"$as_myself" : 'X\(//\)$' \| \
1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290 printf "%s\n" X"$as_myself" |
1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)[^/].*/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\/\)$/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\).*/{
1304 s//\1/
1305 q
1306 }
1307 s/.*/./; q'`
1308 srcdir=$ac_confdir
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 srcdir=..
1311 fi
1312 else
1313 ac_srcdir_defaulted=no
1314 fi
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318 fi
1319 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320 ac_abs_confdir=`(
1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322 pwd)`
1323 # When building in place, set srcdir=.
1324 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 srcdir=.
1326 fi
1327 # Remove unnecessary trailing slashes from srcdir.
1328 # Double slashes in file names in object file debugging info
1329 # mess up M-x gdb in Emacs.
1330 case $srcdir in
1331 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332 esac
1333 for ac_var in $ac_precious_vars; do
1334 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_env_${ac_var}_value=\$${ac_var}
1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338 done
1339
1340 #
1341 # Report the --help message.
1342 #
1343 if test "$ac_init_help" = "long"; then
1344 # Omit some internal or obsolete options to make the list less imposing.
1345 # This message is too long to be a string in the A/UX 3.1 sh.
1346 cat <<_ACEOF
1347 \`configure' configures xvidtune 1.0.4 to adapt to many kinds of systems.
1348
1349 Usage: $0 [OPTION]... [VAR=VALUE]...
1350
1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352 VAR=VALUE. See below for descriptions of some of the useful variables.
1353
1354 Defaults for the options are specified in brackets.
1355
1356 Configuration:
1357 -h, --help display this help and exit
1358 --help=short display options specific to this package
1359 --help=recursive display the short help of all the included packages
1360 -V, --version display version information and exit
1361 -q, --quiet, --silent do not print \`checking ...' messages
1362 --cache-file=FILE cache test results in FILE [disabled]
1363 -C, --config-cache alias for \`--cache-file=config.cache'
1364 -n, --no-create do not create output files
1365 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1366
1367 Installation directories:
1368 --prefix=PREFIX install architecture-independent files in PREFIX
1369 [$ac_default_prefix]
1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1371 [PREFIX]
1372
1373 By default, \`make install' will install all the files in
1374 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1375 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376 for instance \`--prefix=\$HOME'.
1377
1378 For better control, use the options below.
1379
1380 Fine tuning of the installation directories:
1381 --bindir=DIR user executables [EPREFIX/bin]
1382 --sbindir=DIR system admin executables [EPREFIX/sbin]
1383 --libexecdir=DIR program executables [EPREFIX/libexec]
1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1387 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/xvidtune]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1401 _ACEOF
1402
1403 cat <<\_ACEOF
1404
1405 Program names:
1406 --program-prefix=PREFIX prepend PREFIX to installed program names
1407 --program-suffix=SUFFIX append SUFFIX to installed program names
1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1409
1410 System types:
1411 --build=BUILD configure for building on BUILD [guessed]
1412 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1413 _ACEOF
1414 fi
1415
1416 if test -n "$ac_init_help"; then
1417 case $ac_init_help in
1418 short | recursive ) echo "Configuration of xvidtune 1.0.4:";;
1419 esac
1420 cat <<\_ACEOF
1421
1422 Optional Features:
1423 --disable-option-checking ignore unrecognized --enable/--with options
1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1426 --enable-silent-rules less verbose build output (undo: "make V=1")
1427 --disable-silent-rules verbose build output (undo: "make V=0")
1428 --enable-dependency-tracking
1429 do not reject slow dependency extractors
1430 --disable-dependency-tracking
1431 speeds up one-time build
1432 --disable-selective-werror
1433 Turn off selective compiler errors. (default:
1434 enabled)
1435 --enable-strict-compilation
1436 Enable all warnings from compiler and make them
1437 errors (default: disabled)
1438
1439 Optional Packages:
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1442 --with-appdefaultdir=<pathname>
1443 specify directory for app-defaults files (default is
1444 autodetected)
1445
1446 Some influential environment variables:
1447 CC C compiler command
1448 CFLAGS C compiler flags
1449 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1450 nonstandard directory <lib dir>
1451 LIBS libraries to pass to the linker, e.g. -l<library>
1452 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453 you have headers in a nonstandard directory <include dir>
1454 PKG_CONFIG path to pkg-config utility
1455 PKG_CONFIG_PATH
1456 directories to add to pkg-config's search path
1457 PKG_CONFIG_LIBDIR
1458 path overriding pkg-config's built-in search path
1459 XVIDTUNE_CFLAGS
1460 C compiler flags for XVIDTUNE, overriding pkg-config
1461 XVIDTUNE_LIBS
1462 linker flags for XVIDTUNE, overriding pkg-config
1463
1464 Use these variables to override the choices made by `configure' or to help
1465 it to find libraries and programs with nonstandard names/locations.
1466
1467 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xvidtune/issues>.
1468 _ACEOF
1469 ac_status=$?
1470 fi
1471
1472 if test "$ac_init_help" = "recursive"; then
1473 # If there are subdirs, report their specific --help.
1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475 test -d "$ac_dir" ||
1476 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477 continue
1478 ac_builddir=.
1479
1480 case "$ac_dir" in
1481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *)
1483 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1484 # A ".." for each directory in $ac_dir_suffix.
1485 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486 case $ac_top_builddir_sub in
1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489 esac ;;
1490 esac
1491 ac_abs_top_builddir=$ac_pwd
1492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493 # for backward compatibility:
1494 ac_top_builddir=$ac_top_build_prefix
1495
1496 case $srcdir in
1497 .) # We are building in place.
1498 ac_srcdir=.
1499 ac_top_srcdir=$ac_top_builddir_sub
1500 ac_abs_top_srcdir=$ac_pwd ;;
1501 [\\/]* | ?:[\\/]* ) # Absolute name.
1502 ac_srcdir=$srcdir$ac_dir_suffix;
1503 ac_top_srcdir=$srcdir
1504 ac_abs_top_srcdir=$srcdir ;;
1505 *) # Relative name.
1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507 ac_top_srcdir=$ac_top_build_prefix$srcdir
1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509 esac
1510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511
1512 cd "$ac_dir" || { ac_status=$?; continue; }
1513 # Check for configure.gnu first; this name is used for a wrapper for
1514 # Metaconfig's "Configure" on case-insensitive file systems.
1515 if test -f "$ac_srcdir/configure.gnu"; then
1516 echo &&
1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518 elif test -f "$ac_srcdir/configure"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure" --help=recursive
1521 else
1522 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1523 fi || ac_status=$?
1524 cd "$ac_pwd" || { ac_status=$?; break; }
1525 done
1526 fi
1527
1528 test -n "$ac_init_help" && exit $ac_status
1529 if $ac_init_version; then
1530 cat <<\_ACEOF
1531 xvidtune configure 1.0.4
1532 generated by GNU Autoconf 2.71
1533
1534 Copyright (C) 2021 Free Software Foundation, Inc.
1535 This configure script is free software; the Free Software Foundation
1536 gives unlimited permission to copy, distribute and modify it.
1537 _ACEOF
1538 exit
1539 fi
1540
1541 ## ------------------------ ##
1542 ## Autoconf initialization. ##
1543 ## ------------------------ ##
1544
1545 # ac_fn_c_try_compile LINENO
1546 # --------------------------
1547 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1548 ac_fn_c_try_compile ()
1549 {
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 rm -f conftest.$ac_objext conftest.beam
1552 if { { ac_try="$ac_compile"
1553 case "(($ac_try" in
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1556 esac
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 printf "%s\n" "$ac_try_echo"; } >&5
1559 (eval "$ac_compile") 2>conftest.err
1560 ac_status=$?
1561 if test -s conftest.err; then
1562 grep -v '^ *+' conftest.err >conftest.er1
1563 cat conftest.er1 >&5
1564 mv -f conftest.er1 conftest.err
1565 fi
1566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567 test $ac_status = 0; } && {
1568 test -z "$ac_c_werror_flag" ||
1569 test ! -s conftest.err
1570 } && test -s conftest.$ac_objext
1571 then :
1572 ac_retval=0
1573 else $as_nop
1574 printf "%s\n" "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1576
1577 ac_retval=1
1578 fi
1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580 as_fn_set_status $ac_retval
1581
1582 } # ac_fn_c_try_compile
1583
1584 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1585 # ------------------------------------------------------------------
1586 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1587 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1588 ac_fn_check_decl ()
1589 {
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 as_decl_name=`echo $2|sed 's/ *(.*//'`
1592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1593 printf %s "checking whether $as_decl_name is declared... " >&6; }
1594 if eval test \${$3+y}
1595 then :
1596 printf %s "(cached) " >&6
1597 else $as_nop
1598 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1599 eval ac_save_FLAGS=\$$6
1600 as_fn_append $6 " $5"
1601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1602 /* end confdefs.h. */
1603 $4
1604 int
1605 main (void)
1606 {
1607 #ifndef $as_decl_name
1608 #ifdef __cplusplus
1609 (void) $as_decl_use;
1610 #else
1611 (void) $as_decl_name;
1612 #endif
1613 #endif
1614
1615 ;
1616 return 0;
1617 }
1618 _ACEOF
1619 if ac_fn_c_try_compile "$LINENO"
1620 then :
1621 eval "$3=yes"
1622 else $as_nop
1623 eval "$3=no"
1624 fi
1625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1626 eval $6=\$ac_save_FLAGS
1627
1628 fi
1629 eval ac_res=\$$3
1630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631 printf "%s\n" "$ac_res" >&6; }
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633
1634 } # ac_fn_check_decl
1635
1636 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1637 # -------------------------------------------------------
1638 # Tests whether HEADER exists and can be compiled using the include files in
1639 # INCLUDES, setting the cache variable VAR accordingly.
1640 ac_fn_c_check_header_compile ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 printf %s "checking for $2... " >&6; }
1645 if eval test \${$3+y}
1646 then :
1647 printf %s "(cached) " >&6
1648 else $as_nop
1649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650 /* end confdefs.h. */
1651 $4
1652 #include <$2>
1653 _ACEOF
1654 if ac_fn_c_try_compile "$LINENO"
1655 then :
1656 eval "$3=yes"
1657 else $as_nop
1658 eval "$3=no"
1659 fi
1660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1661 fi
1662 eval ac_res=\$$3
1663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664 printf "%s\n" "$ac_res" >&6; }
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666
1667 } # ac_fn_c_check_header_compile
1668
1669 # ac_fn_c_try_link LINENO
1670 # -----------------------
1671 # Try to link conftest.$ac_ext, and return whether this succeeded.
1672 ac_fn_c_try_link ()
1673 {
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1676 if { { ac_try="$ac_link"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 printf "%s\n" "$ac_try_echo"; } >&5
1683 (eval "$ac_link") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest$ac_exeext && {
1695 test "$cross_compiling" = yes ||
1696 test -x conftest$ac_exeext
1697 }
1698 then :
1699 ac_retval=0
1700 else $as_nop
1701 printf "%s\n" "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705 fi
1706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708 # interfere with the next link command; also delete a directory that is
1709 # left behind by Apple's compiler. We do this before executing the actions.
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1713
1714 } # ac_fn_c_try_link
1715 ac_configure_args_raw=
1716 for ac_arg
1717 do
1718 case $ac_arg in
1719 *\'*)
1720 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1721 esac
1722 as_fn_append ac_configure_args_raw " '$ac_arg'"
1723 done
1724
1725 case $ac_configure_args_raw in
1726 *$as_nl*)
1727 ac_safe_unquote= ;;
1728 *)
1729 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1730 ac_unsafe_a="$ac_unsafe_z#~"
1731 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1732 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1733 esac
1734
1735 cat >config.log <<_ACEOF
1736 This file contains any messages produced by compilers while
1737 running configure, to aid debugging if configure makes a mistake.
1738
1739 It was created by xvidtune $as_me 1.0.4, which was
1740 generated by GNU Autoconf 2.71. Invocation command line was
1741
1742 $ $0$ac_configure_args_raw
1743
1744 _ACEOF
1745 exec 5>>config.log
1746 {
1747 cat <<_ASUNAME
1748 ## --------- ##
1749 ## Platform. ##
1750 ## --------- ##
1751
1752 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1753 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1754 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1755 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1756 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1757
1758 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1759 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1760
1761 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1762 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1763 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1764 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1765 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1766 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1767 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1768
1769 _ASUNAME
1770
1771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1772 for as_dir in $PATH
1773 do
1774 IFS=$as_save_IFS
1775 case $as_dir in #(((
1776 '') as_dir=./ ;;
1777 */) ;;
1778 *) as_dir=$as_dir/ ;;
1779 esac
1780 printf "%s\n" "PATH: $as_dir"
1781 done
1782 IFS=$as_save_IFS
1783
1784 } >&5
1785
1786 cat >&5 <<_ACEOF
1787
1788
1789 ## ----------- ##
1790 ## Core tests. ##
1791 ## ----------- ##
1792
1793 _ACEOF
1794
1795
1796 # Keep a trace of the command line.
1797 # Strip out --no-create and --no-recursion so they do not pile up.
1798 # Strip out --silent because we don't want to record it for future runs.
1799 # Also quote any args containing shell meta-characters.
1800 # Make two passes to allow for proper duplicate-argument suppression.
1801 ac_configure_args=
1802 ac_configure_args0=
1803 ac_configure_args1=
1804 ac_must_keep_next=false
1805 for ac_pass in 1 2
1806 do
1807 for ac_arg
1808 do
1809 case $ac_arg in
1810 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1811 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1812 | -silent | --silent | --silen | --sile | --sil)
1813 continue ;;
1814 *\'*)
1815 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1816 esac
1817 case $ac_pass in
1818 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1819 2)
1820 as_fn_append ac_configure_args1 " '$ac_arg'"
1821 if test $ac_must_keep_next = true; then
1822 ac_must_keep_next=false # Got value, back to normal.
1823 else
1824 case $ac_arg in
1825 *=* | --config-cache | -C | -disable-* | --disable-* \
1826 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1827 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1828 | -with-* | --with-* | -without-* | --without-* | --x)
1829 case "$ac_configure_args0 " in
1830 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1831 esac
1832 ;;
1833 -* ) ac_must_keep_next=true ;;
1834 esac
1835 fi
1836 as_fn_append ac_configure_args " '$ac_arg'"
1837 ;;
1838 esac
1839 done
1840 done
1841 { ac_configure_args0=; unset ac_configure_args0;}
1842 { ac_configure_args1=; unset ac_configure_args1;}
1843
1844 # When interrupted or exit'd, cleanup temporary files, and complete
1845 # config.log. We remove comments because anyway the quotes in there
1846 # would cause problems or look ugly.
1847 # WARNING: Use '\'' to represent an apostrophe within the trap.
1848 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1849 trap 'exit_status=$?
1850 # Sanitize IFS.
1851 IFS=" "" $as_nl"
1852 # Save into config.log some information that might help in debugging.
1853 {
1854 echo
1855
1856 printf "%s\n" "## ---------------- ##
1857 ## Cache variables. ##
1858 ## ---------------- ##"
1859 echo
1860 # The following way of writing the cache mishandles newlines in values,
1861 (
1862 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1863 eval ac_val=\$$ac_var
1864 case $ac_val in #(
1865 *${as_nl}*)
1866 case $ac_var in #(
1867 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1868 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1869 esac
1870 case $ac_var in #(
1871 _ | IFS | as_nl) ;; #(
1872 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1873 *) { eval $ac_var=; unset $ac_var;} ;;
1874 esac ;;
1875 esac
1876 done
1877 (set) 2>&1 |
1878 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1879 *${as_nl}ac_space=\ *)
1880 sed -n \
1881 "s/'\''/'\''\\\\'\'''\''/g;
1882 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1883 ;; #(
1884 *)
1885 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1886 ;;
1887 esac |
1888 sort
1889 )
1890 echo
1891
1892 printf "%s\n" "## ----------------- ##
1893 ## Output variables. ##
1894 ## ----------------- ##"
1895 echo
1896 for ac_var in $ac_subst_vars
1897 do
1898 eval ac_val=\$$ac_var
1899 case $ac_val in
1900 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1901 esac
1902 printf "%s\n" "$ac_var='\''$ac_val'\''"
1903 done | sort
1904 echo
1905
1906 if test -n "$ac_subst_files"; then
1907 printf "%s\n" "## ------------------- ##
1908 ## File substitutions. ##
1909 ## ------------------- ##"
1910 echo
1911 for ac_var in $ac_subst_files
1912 do
1913 eval ac_val=\$$ac_var
1914 case $ac_val in
1915 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1916 esac
1917 printf "%s\n" "$ac_var='\''$ac_val'\''"
1918 done | sort
1919 echo
1920 fi
1921
1922 if test -s confdefs.h; then
1923 printf "%s\n" "## ----------- ##
1924 ## confdefs.h. ##
1925 ## ----------- ##"
1926 echo
1927 cat confdefs.h
1928 echo
1929 fi
1930 test "$ac_signal" != 0 &&
1931 printf "%s\n" "$as_me: caught signal $ac_signal"
1932 printf "%s\n" "$as_me: exit $exit_status"
1933 } >&5
1934 rm -f core *.core core.conftest.* &&
1935 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1936 exit $exit_status
1937 ' 0
1938 for ac_signal in 1 2 13 15; do
1939 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1940 done
1941 ac_signal=0
1942
1943 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1944 rm -f -r conftest* confdefs.h
1945
1946 printf "%s\n" "/* confdefs.h */" > confdefs.h
1947
1948 # Predefined preprocessor variables.
1949
1950 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1951
1952 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1953
1954 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1955
1956 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1957
1958 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1959
1960 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1961
1962
1963 # Let the site file select an alternate cache file if it wants to.
1964 # Prefer an explicitly selected file to automatically selected ones.
1965 if test -n "$CONFIG_SITE"; then
1966 ac_site_files="$CONFIG_SITE"
1967 elif test "x$prefix" != xNONE; then
1968 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1969 else
1970 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1971 fi
1972
1973 for ac_site_file in $ac_site_files
1974 do
1975 case $ac_site_file in #(
1976 */*) :
1977 ;; #(
1978 *) :
1979 ac_site_file=./$ac_site_file ;;
1980 esac
1981 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1983 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1984 sed 's/^/| /' "$ac_site_file" >&5
1985 . "$ac_site_file" \
1986 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1987 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1988 as_fn_error $? "failed to load site script $ac_site_file
1989 See \`config.log' for more details" "$LINENO" 5; }
1990 fi
1991 done
1992
1993 if test -r "$cache_file"; then
1994 # Some versions of bash will fail to source /dev/null (special files
1995 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1996 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1998 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1999 case $cache_file in
2000 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2001 *) . "./$cache_file";;
2002 esac
2003 fi
2004 else
2005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2006 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2007 >$cache_file
2008 fi
2009
2010 # Test code for whether the C compiler supports C89 (global declarations)
2011 ac_c_conftest_c89_globals='
2012 /* Does the compiler advertise C89 conformance?
2013 Do not test the value of __STDC__, because some compilers set it to 0
2014 while being otherwise adequately conformant. */
2015 #if !defined __STDC__
2016 # error "Compiler does not advertise C89 conformance"
2017 #endif
2018
2019 #include <stddef.h>
2020 #include <stdarg.h>
2021 struct stat;
2022 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2023 struct buf { int x; };
2024 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2025 static char *e (p, i)
2026 char **p;
2027 int i;
2028 {
2029 return p[i];
2030 }
2031 static char *f (char * (*g) (char **, int), char **p, ...)
2032 {
2033 char *s;
2034 va_list v;
2035 va_start (v,p);
2036 s = g (p, va_arg (v,int));
2037 va_end (v);
2038 return s;
2039 }
2040
2041 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2042 function prototypes and stuff, but not \xHH hex character constants.
2043 These do not provoke an error unfortunately, instead are silently treated
2044 as an "x". The following induces an error, until -std is added to get
2045 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2046 array size at least. It is necessary to write \x00 == 0 to get something
2047 that is true only with -std. */
2048 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2049
2050 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2051 inside strings and character constants. */
2052 #define FOO(x) '\''x'\''
2053 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2054
2055 int test (int i, double x);
2056 struct s1 {int (*f) (int a);};
2057 struct s2 {int (*f) (double a);};
2058 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2059 int, int);'
2060
2061 # Test code for whether the C compiler supports C89 (body of main).
2062 ac_c_conftest_c89_main='
2063 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2064 '
2065
2066 # Test code for whether the C compiler supports C99 (global declarations)
2067 ac_c_conftest_c99_globals='
2068 // Does the compiler advertise C99 conformance?
2069 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2070 # error "Compiler does not advertise C99 conformance"
2071 #endif
2072
2073 #include <stdbool.h>
2074 extern int puts (const char *);
2075 extern int printf (const char *, ...);
2076 extern int dprintf (int, const char *, ...);
2077 extern void *malloc (size_t);
2078
2079 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2080 // dprintf is used instead of fprintf to avoid needing to declare
2081 // FILE and stderr.
2082 #define debug(...) dprintf (2, __VA_ARGS__)
2083 #define showlist(...) puts (#__VA_ARGS__)
2084 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2085 static void
2086 test_varargs_macros (void)
2087 {
2088 int x = 1234;
2089 int y = 5678;
2090 debug ("Flag");
2091 debug ("X = %d\n", x);
2092 showlist (The first, second, and third items.);
2093 report (x>y, "x is %d but y is %d", x, y);
2094 }
2095
2096 // Check long long types.
2097 #define BIG64 18446744073709551615ull
2098 #define BIG32 4294967295ul
2099 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2100 #if !BIG_OK
2101 #error "your preprocessor is broken"
2102 #endif
2103 #if BIG_OK
2104 #else
2105 #error "your preprocessor is broken"
2106 #endif
2107 static long long int bignum = -9223372036854775807LL;
2108 static unsigned long long int ubignum = BIG64;
2109
2110 struct incomplete_array
2111 {
2112 int datasize;
2113 double data[];
2114 };
2115
2116 struct named_init {
2117 int number;
2118 const wchar_t *name;
2119 double average;
2120 };
2121
2122 typedef const char *ccp;
2123
2124 static inline int
2125 test_restrict (ccp restrict text)
2126 {
2127 // See if C++-style comments work.
2128 // Iterate through items via the restricted pointer.
2129 // Also check for declarations in for loops.
2130 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2131 continue;
2132 return 0;
2133 }
2134
2135 // Check varargs and va_copy.
2136 static bool
2137 test_varargs (const char *format, ...)
2138 {
2139 va_list args;
2140 va_start (args, format);
2141 va_list args_copy;
2142 va_copy (args_copy, args);
2143
2144 const char *str = "";
2145 int number = 0;
2146 float fnumber = 0;
2147
2148 while (*format)
2149 {
2150 switch (*format++)
2151 {
2152 case '\''s'\'': // string
2153 str = va_arg (args_copy, const char *);
2154 break;
2155 case '\''d'\'': // int
2156 number = va_arg (args_copy, int);
2157 break;
2158 case '\''f'\'': // float
2159 fnumber = va_arg (args_copy, double);
2160 break;
2161 default:
2162 break;
2163 }
2164 }
2165 va_end (args_copy);
2166 va_end (args);
2167
2168 return *str && number && fnumber;
2169 }
2170 '
2171
2172 # Test code for whether the C compiler supports C99 (body of main).
2173 ac_c_conftest_c99_main='
2174 // Check bool.
2175 _Bool success = false;
2176 success |= (argc != 0);
2177
2178 // Check restrict.
2179 if (test_restrict ("String literal") == 0)
2180 success = true;
2181 char *restrict newvar = "Another string";
2182
2183 // Check varargs.
2184 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2185 test_varargs_macros ();
2186
2187 // Check flexible array members.
2188 struct incomplete_array *ia =
2189 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2190 ia->datasize = 10;
2191 for (int i = 0; i < ia->datasize; ++i)
2192 ia->data[i] = i * 1.234;
2193
2194 // Check named initializers.
2195 struct named_init ni = {
2196 .number = 34,
2197 .name = L"Test wide string",
2198 .average = 543.34343,
2199 };
2200
2201 ni.number = 58;
2202
2203 int dynamic_array[ni.number];
2204 dynamic_array[0] = argv[0][0];
2205 dynamic_array[ni.number - 1] = 543;
2206
2207 // work around unused variable warnings
2208 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2209 || dynamic_array[ni.number - 1] != 543);
2210 '
2211
2212 # Test code for whether the C compiler supports C11 (global declarations)
2213 ac_c_conftest_c11_globals='
2214 // Does the compiler advertise C11 conformance?
2215 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2216 # error "Compiler does not advertise C11 conformance"
2217 #endif
2218
2219 // Check _Alignas.
2220 char _Alignas (double) aligned_as_double;
2221 char _Alignas (0) no_special_alignment;
2222 extern char aligned_as_int;
2223 char _Alignas (0) _Alignas (int) aligned_as_int;
2224
2225 // Check _Alignof.
2226 enum
2227 {
2228 int_alignment = _Alignof (int),
2229 int_array_alignment = _Alignof (int[100]),
2230 char_alignment = _Alignof (char)
2231 };
2232 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2233
2234 // Check _Noreturn.
2235 int _Noreturn does_not_return (void) { for (;;) continue; }
2236
2237 // Check _Static_assert.
2238 struct test_static_assert
2239 {
2240 int x;
2241 _Static_assert (sizeof (int) <= sizeof (long int),
2242 "_Static_assert does not work in struct");
2243 long int y;
2244 };
2245
2246 // Check UTF-8 literals.
2247 #define u8 syntax error!
2248 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2249
2250 // Check duplicate typedefs.
2251 typedef long *long_ptr;
2252 typedef long int *long_ptr;
2253 typedef long_ptr long_ptr;
2254
2255 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2256 struct anonymous
2257 {
2258 union {
2259 struct { int i; int j; };
2260 struct { int k; long int l; } w;
2261 };
2262 int m;
2263 } v1;
2264 '
2265
2266 # Test code for whether the C compiler supports C11 (body of main).
2267 ac_c_conftest_c11_main='
2268 _Static_assert ((offsetof (struct anonymous, i)
2269 == offsetof (struct anonymous, w.k)),
2270 "Anonymous union alignment botch");
2271 v1.i = 2;
2272 v1.w.k = 5;
2273 ok |= v1.i != 5;
2274 '
2275
2276 # Test code for whether the C compiler supports C11 (complete).
2277 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2278 ${ac_c_conftest_c99_globals}
2279 ${ac_c_conftest_c11_globals}
2280
2281 int
2282 main (int argc, char **argv)
2283 {
2284 int ok = 0;
2285 ${ac_c_conftest_c89_main}
2286 ${ac_c_conftest_c99_main}
2287 ${ac_c_conftest_c11_main}
2288 return ok;
2289 }
2290 "
2291
2292 # Test code for whether the C compiler supports C99 (complete).
2293 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2294 ${ac_c_conftest_c99_globals}
2295
2296 int
2297 main (int argc, char **argv)
2298 {
2299 int ok = 0;
2300 ${ac_c_conftest_c89_main}
2301 ${ac_c_conftest_c99_main}
2302 return ok;
2303 }
2304 "
2305
2306 # Test code for whether the C compiler supports C89 (complete).
2307 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2308
2309 int
2310 main (int argc, char **argv)
2311 {
2312 int ok = 0;
2313 ${ac_c_conftest_c89_main}
2314 return ok;
2315 }
2316 "
2317
2318 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2319 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2320 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2321 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2322 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2323 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2324 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2325 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2326 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2327
2328 # Auxiliary files required by this configure script.
2329 ac_aux_files="config.guess config.sub compile missing install-sh"
2330
2331 # Locations in which to look for auxiliary files.
2332 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2333
2334 # Search for a directory containing all of the required auxiliary files,
2335 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2336 # If we don't find one directory that contains all the files we need,
2337 # we report the set of missing files from the *first* directory in
2338 # $ac_aux_dir_candidates and give up.
2339 ac_missing_aux_files=""
2340 ac_first_candidate=:
2341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 as_found=false
2344 for as_dir in $ac_aux_dir_candidates
2345 do
2346 IFS=$as_save_IFS
2347 case $as_dir in #(((
2348 '') as_dir=./ ;;
2349 */) ;;
2350 *) as_dir=$as_dir/ ;;
2351 esac
2352 as_found=:
2353
2354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2355 ac_aux_dir_found=yes
2356 ac_install_sh=
2357 for ac_aux in $ac_aux_files
2358 do
2359 # As a special case, if "install-sh" is required, that requirement
2360 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2361 # and $ac_install_sh is set appropriately for whichever one is found.
2362 if test x"$ac_aux" = x"install-sh"
2363 then
2364 if test -f "${as_dir}install-sh"; then
2365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2366 ac_install_sh="${as_dir}install-sh -c"
2367 elif test -f "${as_dir}install.sh"; then
2368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2369 ac_install_sh="${as_dir}install.sh -c"
2370 elif test -f "${as_dir}shtool"; then
2371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2372 ac_install_sh="${as_dir}shtool install -c"
2373 else
2374 ac_aux_dir_found=no
2375 if $ac_first_candidate; then
2376 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2377 else
2378 break
2379 fi
2380 fi
2381 else
2382 if test -f "${as_dir}${ac_aux}"; then
2383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2384 else
2385 ac_aux_dir_found=no
2386 if $ac_first_candidate; then
2387 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2388 else
2389 break
2390 fi
2391 fi
2392 fi
2393 done
2394 if test "$ac_aux_dir_found" = yes; then
2395 ac_aux_dir="$as_dir"
2396 break
2397 fi
2398 ac_first_candidate=false
2399
2400 as_found=false
2401 done
2402 IFS=$as_save_IFS
2403 if $as_found
2404 then :
2405
2406 else $as_nop
2407 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2408 fi
2409
2410
2411 # These three variables are undocumented and unsupported,
2412 # and are intended to be withdrawn in a future Autoconf release.
2413 # They can cause serious problems if a builder's source tree is in a directory
2414 # whose full name contains unusual characters.
2415 if test -f "${ac_aux_dir}config.guess"; then
2416 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2417 fi
2418 if test -f "${ac_aux_dir}config.sub"; then
2419 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2420 fi
2421 if test -f "$ac_aux_dir/configure"; then
2422 ac_configure="$SHELL ${ac_aux_dir}configure"
2423 fi
2424
2425 # Check that the precious variables saved in the cache have kept the same
2426 # value.
2427 ac_cache_corrupted=false
2428 for ac_var in $ac_precious_vars; do
2429 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2430 eval ac_new_set=\$ac_env_${ac_var}_set
2431 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2432 eval ac_new_val=\$ac_env_${ac_var}_value
2433 case $ac_old_set,$ac_new_set in
2434 set,)
2435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2436 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2437 ac_cache_corrupted=: ;;
2438 ,set)
2439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2440 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2441 ac_cache_corrupted=: ;;
2442 ,);;
2443 *)
2444 if test "x$ac_old_val" != "x$ac_new_val"; then
2445 # differences in whitespace do not lead to failure.
2446 ac_old_val_w=`echo x $ac_old_val`
2447 ac_new_val_w=`echo x $ac_new_val`
2448 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2450 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2451 ac_cache_corrupted=:
2452 else
2453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2454 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2455 eval $ac_var=\$ac_old_val
2456 fi
2457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2458 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2460 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2461 fi;;
2462 esac
2463 # Pass precious variables to config.status.
2464 if test "$ac_new_set" = set; then
2465 case $ac_new_val in
2466 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2467 *) ac_arg=$ac_var=$ac_new_val ;;
2468 esac
2469 case " $ac_configure_args " in
2470 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2471 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2472 esac
2473 fi
2474 done
2475 if $ac_cache_corrupted; then
2476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2477 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2479 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2480 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2481 and start over" "$LINENO" 5
2482 fi
2483 ## -------------------- ##
2484 ## Main body of script. ##
2485 ## -------------------- ##
2486
2487 ac_ext=c
2488 ac_cpp='$CPP $CPPFLAGS'
2489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2492
2493
2494
2495 ac_config_headers="$ac_config_headers config.h"
2496
2497
2498 # Initialize Automake
2499 am__api_version='1.16'
2500
2501
2502
2503 # Find a good install program. We prefer a C program (faster),
2504 # so one script is as good as another. But avoid the broken or
2505 # incompatible versions:
2506 # SysV /etc/install, /usr/sbin/install
2507 # SunOS /usr/etc/install
2508 # IRIX /sbin/install
2509 # AIX /bin/install
2510 # AmigaOS /C/install, which installs bootblocks on floppy discs
2511 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2512 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2513 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2514 # OS/2's system install, which has a completely different semantic
2515 # ./install, which can be erroneously created by make from ./install.sh.
2516 # Reject install programs that cannot install multiple files.
2517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2518 printf %s "checking for a BSD-compatible install... " >&6; }
2519 if test -z "$INSTALL"; then
2520 if test ${ac_cv_path_install+y}
2521 then :
2522 printf %s "(cached) " >&6
2523 else $as_nop
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527 IFS=$as_save_IFS
2528 case $as_dir in #(((
2529 '') as_dir=./ ;;
2530 */) ;;
2531 *) as_dir=$as_dir/ ;;
2532 esac
2533 # Account for fact that we put trailing slashes in our PATH walk.
2534 case $as_dir in #((
2535 ./ | /[cC]/* | \
2536 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2537 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2538 /usr/ucb/* ) ;;
2539 *)
2540 # OSF1 and SCO ODT 3.0 have their own names for install.
2541 # Don't use installbsd from OSF since it installs stuff as root
2542 # by default.
2543 for ac_prog in ginstall scoinst install; do
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2546 if test $ac_prog = install &&
2547 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2548 # AIX install. It has an incompatible calling convention.
2549 :
2550 elif test $ac_prog = install &&
2551 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2552 # program-specific install script used by HP pwplus--don't use.
2553 :
2554 else
2555 rm -rf conftest.one conftest.two conftest.dir
2556 echo one > conftest.one
2557 echo two > conftest.two
2558 mkdir conftest.dir
2559 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2560 test -s conftest.one && test -s conftest.two &&
2561 test -s conftest.dir/conftest.one &&
2562 test -s conftest.dir/conftest.two
2563 then
2564 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2565 break 3
2566 fi
2567 fi
2568 fi
2569 done
2570 done
2571 ;;
2572 esac
2573
2574 done
2575 IFS=$as_save_IFS
2576
2577 rm -rf conftest.one conftest.two conftest.dir
2578
2579 fi
2580 if test ${ac_cv_path_install+y}; then
2581 INSTALL=$ac_cv_path_install
2582 else
2583 # As a last resort, use the slow shell script. Don't cache a
2584 # value for INSTALL within a source directory, because that will
2585 # break other packages using the cache if that directory is
2586 # removed, or if the value is a relative name.
2587 INSTALL=$ac_install_sh
2588 fi
2589 fi
2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2591 printf "%s\n" "$INSTALL" >&6; }
2592
2593 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2594 # It thinks the first close brace ends the variable substitution.
2595 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2596
2597 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2598
2599 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2600
2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2602 printf %s "checking whether build environment is sane... " >&6; }
2603 # Reject unsafe characters in $srcdir or the absolute working directory
2604 # name. Accept space and tab only in the latter.
2605 am_lf='
2606 '
2607 case `pwd` in
2608 *[\\\"\#\$\&\'\`$am_lf]*)
2609 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2610 esac
2611 case $srcdir in
2612 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2613 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2614 esac
2615
2616 # Do 'set' in a subshell so we don't clobber the current shell's
2617 # arguments. Must try -L first in case configure is actually a
2618 # symlink; some systems play weird games with the mod time of symlinks
2619 # (eg FreeBSD returns the mod time of the symlink's containing
2620 # directory).
2621 if (
2622 am_has_slept=no
2623 for am_try in 1 2; do
2624 echo "timestamp, slept: $am_has_slept" > conftest.file
2625 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2626 if test "$*" = "X"; then
2627 # -L didn't work.
2628 set X `ls -t "$srcdir/configure" conftest.file`
2629 fi
2630 if test "$*" != "X $srcdir/configure conftest.file" \
2631 && test "$*" != "X conftest.file $srcdir/configure"; then
2632
2633 # If neither matched, then we have a broken ls. This can happen
2634 # if, for instance, CONFIG_SHELL is bash and it inherits a
2635 # broken ls alias from the environment. This has actually
2636 # happened. Such a system could not be considered "sane".
2637 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2638 alias in your environment" "$LINENO" 5
2639 fi
2640 if test "$2" = conftest.file || test $am_try -eq 2; then
2641 break
2642 fi
2643 # Just in case.
2644 sleep 1
2645 am_has_slept=yes
2646 done
2647 test "$2" = conftest.file
2648 )
2649 then
2650 # Ok.
2651 :
2652 else
2653 as_fn_error $? "newly created file is older than distributed files!
2654 Check your system clock" "$LINENO" 5
2655 fi
2656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2657 printf "%s\n" "yes" >&6; }
2658 # If we didn't sleep, we still need to ensure time stamps of config.status and
2659 # generated files are strictly newer.
2660 am_sleep_pid=
2661 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2662 ( sleep 1 ) &
2663 am_sleep_pid=$!
2664 fi
2665
2666 rm -f conftest.file
2667
2668 test "$program_prefix" != NONE &&
2669 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2670 # Use a double $ so make ignores it.
2671 test "$program_suffix" != NONE &&
2672 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2673 # Double any \ or $.
2674 # By default was `s,x,x', remove it if useless.
2675 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2676 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2677
2678
2679 # Expand $ac_aux_dir to an absolute path.
2680 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2681
2682
2683 if test x"${MISSING+set}" != xset; then
2684 MISSING="\${SHELL} '$am_aux_dir/missing'"
2685 fi
2686 # Use eval to expand $SHELL
2687 if eval "$MISSING --is-lightweight"; then
2688 am_missing_run="$MISSING "
2689 else
2690 am_missing_run=
2691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2692 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2693 fi
2694
2695 if test x"${install_sh+set}" != xset; then
2696 case $am_aux_dir in
2697 *\ * | *\ *)
2698 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2699 *)
2700 install_sh="\${SHELL} $am_aux_dir/install-sh"
2701 esac
2702 fi
2703
2704 # Installed binaries are usually stripped using 'strip' when the user
2705 # run "make install-strip". However 'strip' might not be the right
2706 # tool to use in cross-compilation environments, therefore Automake
2707 # will honor the 'STRIP' environment variable to overrule this program.
2708 if test "$cross_compiling" != no; then
2709 if test -n "$ac_tool_prefix"; then
2710 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2711 set dummy ${ac_tool_prefix}strip; ac_word=$2
2712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713 printf %s "checking for $ac_word... " >&6; }
2714 if test ${ac_cv_prog_STRIP+y}
2715 then :
2716 printf %s "(cached) " >&6
2717 else $as_nop
2718 if test -n "$STRIP"; then
2719 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2720 else
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 for as_dir in $PATH
2723 do
2724 IFS=$as_save_IFS
2725 case $as_dir in #(((
2726 '') as_dir=./ ;;
2727 */) ;;
2728 *) as_dir=$as_dir/ ;;
2729 esac
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2732 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2734 break 2
2735 fi
2736 done
2737 done
2738 IFS=$as_save_IFS
2739
2740 fi
2741 fi
2742 STRIP=$ac_cv_prog_STRIP
2743 if test -n "$STRIP"; then
2744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2745 printf "%s\n" "$STRIP" >&6; }
2746 else
2747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 printf "%s\n" "no" >&6; }
2749 fi
2750
2751
2752 fi
2753 if test -z "$ac_cv_prog_STRIP"; then
2754 ac_ct_STRIP=$STRIP
2755 # Extract the first word of "strip", so it can be a program name with args.
2756 set dummy strip; ac_word=$2
2757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 printf %s "checking for $ac_word... " >&6; }
2759 if test ${ac_cv_prog_ac_ct_STRIP+y}
2760 then :
2761 printf %s "(cached) " >&6
2762 else $as_nop
2763 if test -n "$ac_ct_STRIP"; then
2764 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2765 else
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 for as_dir in $PATH
2768 do
2769 IFS=$as_save_IFS
2770 case $as_dir in #(((
2771 '') as_dir=./ ;;
2772 */) ;;
2773 *) as_dir=$as_dir/ ;;
2774 esac
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2777 ac_cv_prog_ac_ct_STRIP="strip"
2778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2779 break 2
2780 fi
2781 done
2782 done
2783 IFS=$as_save_IFS
2784
2785 fi
2786 fi
2787 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2788 if test -n "$ac_ct_STRIP"; then
2789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2790 printf "%s\n" "$ac_ct_STRIP" >&6; }
2791 else
2792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 printf "%s\n" "no" >&6; }
2794 fi
2795
2796 if test "x$ac_ct_STRIP" = x; then
2797 STRIP=":"
2798 else
2799 case $cross_compiling:$ac_tool_warned in
2800 yes:)
2801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2802 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2803 ac_tool_warned=yes ;;
2804 esac
2805 STRIP=$ac_ct_STRIP
2806 fi
2807 else
2808 STRIP="$ac_cv_prog_STRIP"
2809 fi
2810
2811 fi
2812 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2813
2814
2815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2816 printf %s "checking for a race-free mkdir -p... " >&6; }
2817 if test -z "$MKDIR_P"; then
2818 if test ${ac_cv_path_mkdir+y}
2819 then :
2820 printf %s "(cached) " >&6
2821 else $as_nop
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2824 do
2825 IFS=$as_save_IFS
2826 case $as_dir in #(((
2827 '') as_dir=./ ;;
2828 */) ;;
2829 *) as_dir=$as_dir/ ;;
2830 esac
2831 for ac_prog in mkdir gmkdir; do
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2834 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2835 'mkdir ('*'coreutils) '* | \
2836 'BusyBox '* | \
2837 'mkdir (fileutils) '4.1*)
2838 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2839 break 3;;
2840 esac
2841 done
2842 done
2843 done
2844 IFS=$as_save_IFS
2845
2846 fi
2847
2848 test -d ./--version && rmdir ./--version
2849 if test ${ac_cv_path_mkdir+y}; then
2850 MKDIR_P="$ac_cv_path_mkdir -p"
2851 else
2852 # As a last resort, use the slow shell script. Don't cache a
2853 # value for MKDIR_P within a source directory, because that will
2854 # break other packages using the cache if that directory is
2855 # removed, or if the value is a relative name.
2856 MKDIR_P="$ac_install_sh -d"
2857 fi
2858 fi
2859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2860 printf "%s\n" "$MKDIR_P" >&6; }
2861
2862 for ac_prog in gawk mawk nawk awk
2863 do
2864 # Extract the first word of "$ac_prog", so it can be a program name with args.
2865 set dummy $ac_prog; ac_word=$2
2866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 printf %s "checking for $ac_word... " >&6; }
2868 if test ${ac_cv_prog_AWK+y}
2869 then :
2870 printf %s "(cached) " >&6
2871 else $as_nop
2872 if test -n "$AWK"; then
2873 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2877 do
2878 IFS=$as_save_IFS
2879 case $as_dir in #(((
2880 '') as_dir=./ ;;
2881 */) ;;
2882 *) as_dir=$as_dir/ ;;
2883 esac
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_AWK="$ac_prog"
2887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890 done
2891 done
2892 IFS=$as_save_IFS
2893
2894 fi
2895 fi
2896 AWK=$ac_cv_prog_AWK
2897 if test -n "$AWK"; then
2898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2899 printf "%s\n" "$AWK" >&6; }
2900 else
2901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 printf "%s\n" "no" >&6; }
2903 fi
2904
2905
2906 test -n "$AWK" && break
2907 done
2908
2909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2910 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2911 set x ${MAKE-make}
2912 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2913 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2914 then :
2915 printf %s "(cached) " >&6
2916 else $as_nop
2917 cat >conftest.make <<\_ACEOF
2918 SHELL = /bin/sh
2919 all:
2920 @echo '@@@%%%=$(MAKE)=@@@%%%'
2921 _ACEOF
2922 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2923 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2924 *@@@%%%=?*=@@@%%%*)
2925 eval ac_cv_prog_make_${ac_make}_set=yes;;
2926 *)
2927 eval ac_cv_prog_make_${ac_make}_set=no;;
2928 esac
2929 rm -f conftest.make
2930 fi
2931 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2933 printf "%s\n" "yes" >&6; }
2934 SET_MAKE=
2935 else
2936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937 printf "%s\n" "no" >&6; }
2938 SET_MAKE="MAKE=${MAKE-make}"
2939 fi
2940
2941 rm -rf .tst 2>/dev/null
2942 mkdir .tst 2>/dev/null
2943 if test -d .tst; then
2944 am__leading_dot=.
2945 else
2946 am__leading_dot=_
2947 fi
2948 rmdir .tst 2>/dev/null
2949
2950 # Check whether --enable-silent-rules was given.
2951 if test ${enable_silent_rules+y}
2952 then :
2953 enableval=$enable_silent_rules;
2954 fi
2955
2956 case $enable_silent_rules in # (((
2957 yes) AM_DEFAULT_VERBOSITY=0;;
2958 no) AM_DEFAULT_VERBOSITY=1;;
2959 *) AM_DEFAULT_VERBOSITY=1;;
2960 esac
2961 am_make=${MAKE-make}
2962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2963 printf %s "checking whether $am_make supports nested variables... " >&6; }
2964 if test ${am_cv_make_support_nested_variables+y}
2965 then :
2966 printf %s "(cached) " >&6
2967 else $as_nop
2968 if printf "%s\n" 'TRUE=$(BAR$(V))
2969 BAR0=false
2970 BAR1=true
2971 V=1
2972 am__doit:
2973 @$(TRUE)
2974 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2975 am_cv_make_support_nested_variables=yes
2976 else
2977 am_cv_make_support_nested_variables=no
2978 fi
2979 fi
2980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2981 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2982 if test $am_cv_make_support_nested_variables = yes; then
2983 AM_V='$(V)'
2984 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2985 else
2986 AM_V=$AM_DEFAULT_VERBOSITY
2987 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2988 fi
2989 AM_BACKSLASH='\'
2990
2991 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2992 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2993 # is not polluted with repeated "-I."
2994 am__isrc=' -I$(srcdir)'
2995 # test to see if srcdir already configured
2996 if test -f $srcdir/config.status; then
2997 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2998 fi
2999 fi
3000
3001 # test whether we have cygpath
3002 if test -z "$CYGPATH_W"; then
3003 if (cygpath --version) >/dev/null 2>/dev/null; then
3004 CYGPATH_W='cygpath -w'
3005 else
3006 CYGPATH_W=echo
3007 fi
3008 fi
3009
3010
3011 # Define the identity of the package.
3012 PACKAGE='xvidtune'
3013 VERSION='1.0.4'
3014
3015
3016 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3017
3018
3019 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3020
3021 # Some tools Automake needs.
3022
3023 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3024
3025
3026 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3027
3028
3029 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3030
3031
3032 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3033
3034
3035 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3036
3037 # For better backward compatibility. To be removed once Automake 1.9.x
3038 # dies out for good. For more background, see:
3039 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3040 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3041 mkdir_p='$(MKDIR_P)'
3042
3043 # We need awk for the "check" target (and possibly the TAP driver). The
3044 # system "awk" is bad on some platforms.
3045 # Always define AMTAR for backward compatibility. Yes, it's still used
3046 # in the wild :-( We should find a proper way to deprecate it ...
3047 AMTAR='$${TAR-tar}'
3048
3049
3050 # We'll loop over all known methods to create a tar archive until one works.
3051 _am_tools='gnutar pax cpio none'
3052
3053 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3054
3055
3056
3057
3058
3059 # Variables for tags utilities; see am/tags.am
3060 if test -z "$CTAGS"; then
3061 CTAGS=ctags
3062 fi
3063
3064 if test -z "$ETAGS"; then
3065 ETAGS=etags
3066 fi
3067
3068 if test -z "$CSCOPE"; then
3069 CSCOPE=cscope
3070 fi
3071
3072
3073
3074 # POSIX will say in a future version that running "rm -f" with no argument
3075 # is OK; and we want to be able to make that assumption in our Makefile
3076 # recipes. So use an aggressive probe to check that the usage we want is
3077 # actually supported "in the wild" to an acceptable degree.
3078 # See automake bug#10828.
3079 # To make any issue more visible, cause the running configure to be aborted
3080 # by default if the 'rm' program in use doesn't match our expectations; the
3081 # user can still override this though.
3082 if rm -f && rm -fr && rm -rf; then : OK; else
3083 cat >&2 <<'END'
3084 Oops!
3085
3086 Your 'rm' program seems unable to run without file operands specified
3087 on the command line, even when the '-f' option is present. This is contrary
3088 to the behaviour of most rm programs out there, and not conforming with
3089 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3090
3091 Please tell [email protected] about your system, including the value
3092 of your $PATH and any error possibly output before this message. This
3093 can help us improve future automake versions.
3094
3095 END
3096 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3097 echo 'Configuration will proceed anyway, since you have set the' >&2
3098 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3099 echo >&2
3100 else
3101 cat >&2 <<'END'
3102 Aborting the configuration process, to ensure you take notice of the issue.
3103
3104 You can download and install GNU coreutils to get an 'rm' implementation
3105 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3106
3107 If you want to complete the configuration process using your problematic
3108 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3109 to "yes", and re-run configure.
3110
3111 END
3112 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3113 fi
3114 fi
3115
3116
3117 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138 DEPDIR="${am__leading_dot}deps"
3139
3140 ac_config_commands="$ac_config_commands depfiles"
3141
3142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3143 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3144 cat > confinc.mk << 'END'
3145 am__doit:
3146 @echo this is the am__doit target >confinc.out
3147 .PHONY: am__doit
3148 END
3149 am__include="#"
3150 am__quote=
3151 # BSD make does it like this.
3152 echo '.include "confinc.mk" # ignored' > confmf.BSD
3153 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3154 echo 'include confinc.mk # ignored' > confmf.GNU
3155 _am_result=no
3156 for s in GNU BSD; do
3157 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3158 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }
3162 case $?:`cat confinc.out 2>/dev/null` in #(
3163 '0:this is the am__doit target') :
3164 case $s in #(
3165 BSD) :
3166 am__include='.include' am__quote='"' ;; #(
3167 *) :
3168 am__include='include' am__quote='' ;;
3169 esac ;; #(
3170 *) :
3171 ;;
3172 esac
3173 if test "$am__include" != "#"; then
3174 _am_result="yes ($s style)"
3175 break
3176 fi
3177 done
3178 rm -f confinc.* confmf.*
3179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3180 printf "%s\n" "${_am_result}" >&6; }
3181
3182 # Check whether --enable-dependency-tracking was given.
3183 if test ${enable_dependency_tracking+y}
3184 then :
3185 enableval=$enable_dependency_tracking;
3186 fi
3187
3188 if test "x$enable_dependency_tracking" != xno; then
3189 am_depcomp="$ac_aux_dir/depcomp"
3190 AMDEPBACKSLASH='\'
3191 am__nodep='_no'
3192 fi
3193 if test "x$enable_dependency_tracking" != xno; then
3194 AMDEP_TRUE=
3195 AMDEP_FALSE='#'
3196 else
3197 AMDEP_TRUE='#'
3198 AMDEP_FALSE=
3199 fi
3200
3201
3202 ac_ext=c
3203 ac_cpp='$CPP $CPPFLAGS'
3204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207 if test -n "$ac_tool_prefix"; then
3208 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3209 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 printf %s "checking for $ac_word... " >&6; }
3212 if test ${ac_cv_prog_CC+y}
3213 then :
3214 printf %s "(cached) " >&6
3215 else $as_nop
3216 if test -n "$CC"; then
3217 ac_cv_prog_CC="$CC" # Let the user override the test.
3218 else
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3221 do
3222 IFS=$as_save_IFS
3223 case $as_dir in #(((
3224 '') as_dir=./ ;;
3225 */) ;;
3226 *) as_dir=$as_dir/ ;;
3227 esac
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3230 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3232 break 2
3233 fi
3234 done
3235 done
3236 IFS=$as_save_IFS
3237
3238 fi
3239 fi
3240 CC=$ac_cv_prog_CC
3241 if test -n "$CC"; then
3242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243 printf "%s\n" "$CC" >&6; }
3244 else
3245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 printf "%s\n" "no" >&6; }
3247 fi
3248
3249
3250 fi
3251 if test -z "$ac_cv_prog_CC"; then
3252 ac_ct_CC=$CC
3253 # Extract the first word of "gcc", so it can be a program name with args.
3254 set dummy gcc; ac_word=$2
3255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 printf %s "checking for $ac_word... " >&6; }
3257 if test ${ac_cv_prog_ac_ct_CC+y}
3258 then :
3259 printf %s "(cached) " >&6
3260 else $as_nop
3261 if test -n "$ac_ct_CC"; then
3262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3263 else
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3266 do
3267 IFS=$as_save_IFS
3268 case $as_dir in #(((
3269 '') as_dir=./ ;;
3270 */) ;;
3271 *) as_dir=$as_dir/ ;;
3272 esac
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3275 ac_cv_prog_ac_ct_CC="gcc"
3276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3277 break 2
3278 fi
3279 done
3280 done
3281 IFS=$as_save_IFS
3282
3283 fi
3284 fi
3285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3286 if test -n "$ac_ct_CC"; then
3287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3288 printf "%s\n" "$ac_ct_CC" >&6; }
3289 else
3290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 printf "%s\n" "no" >&6; }
3292 fi
3293
3294 if test "x$ac_ct_CC" = x; then
3295 CC=""
3296 else
3297 case $cross_compiling:$ac_tool_warned in
3298 yes:)
3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3300 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3301 ac_tool_warned=yes ;;
3302 esac
3303 CC=$ac_ct_CC
3304 fi
3305 else
3306 CC="$ac_cv_prog_CC"
3307 fi
3308
3309 if test -z "$CC"; then
3310 if test -n "$ac_tool_prefix"; then
3311 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3312 set dummy ${ac_tool_prefix}cc; ac_word=$2
3313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 printf %s "checking for $ac_word... " >&6; }
3315 if test ${ac_cv_prog_CC+y}
3316 then :
3317 printf %s "(cached) " >&6
3318 else $as_nop
3319 if test -n "$CC"; then
3320 ac_cv_prog_CC="$CC" # Let the user override the test.
3321 else
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in $PATH
3324 do
3325 IFS=$as_save_IFS
3326 case $as_dir in #(((
3327 '') as_dir=./ ;;
3328 */) ;;
3329 *) as_dir=$as_dir/ ;;
3330 esac
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3333 ac_cv_prog_CC="${ac_tool_prefix}cc"
3334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3335 break 2
3336 fi
3337 done
3338 done
3339 IFS=$as_save_IFS
3340
3341 fi
3342 fi
3343 CC=$ac_cv_prog_CC
3344 if test -n "$CC"; then
3345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3346 printf "%s\n" "$CC" >&6; }
3347 else
3348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349 printf "%s\n" "no" >&6; }
3350 fi
3351
3352
3353 fi
3354 fi
3355 if test -z "$CC"; then
3356 # Extract the first word of "cc", so it can be a program name with args.
3357 set dummy cc; ac_word=$2
3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3359 printf %s "checking for $ac_word... " >&6; }
3360 if test ${ac_cv_prog_CC+y}
3361 then :
3362 printf %s "(cached) " >&6
3363 else $as_nop
3364 if test -n "$CC"; then
3365 ac_cv_prog_CC="$CC" # Let the user override the test.
3366 else
3367 ac_prog_rejected=no
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH
3370 do
3371 IFS=$as_save_IFS
3372 case $as_dir in #(((
3373 '') as_dir=./ ;;
3374 */) ;;
3375 *) as_dir=$as_dir/ ;;
3376 esac
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3379 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3380 ac_prog_rejected=yes
3381 continue
3382 fi
3383 ac_cv_prog_CC="cc"
3384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3385 break 2
3386 fi
3387 done
3388 done
3389 IFS=$as_save_IFS
3390
3391 if test $ac_prog_rejected = yes; then
3392 # We found a bogon in the path, so make sure we never use it.
3393 set dummy $ac_cv_prog_CC
3394 shift
3395 if test $# != 0; then
3396 # We chose a different compiler from the bogus one.
3397 # However, it has the same basename, so the bogon will be chosen
3398 # first if we set CC to just the basename; use the full file name.
3399 shift
3400 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3401 fi
3402 fi
3403 fi
3404 fi
3405 CC=$ac_cv_prog_CC
3406 if test -n "$CC"; then
3407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3408 printf "%s\n" "$CC" >&6; }
3409 else
3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 printf "%s\n" "no" >&6; }
3412 fi
3413
3414
3415 fi
3416 if test -z "$CC"; then
3417 if test -n "$ac_tool_prefix"; then
3418 for ac_prog in cl.exe
3419 do
3420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 printf %s "checking for $ac_word... " >&6; }
3424 if test ${ac_cv_prog_CC+y}
3425 then :
3426 printf %s "(cached) " >&6
3427 else $as_nop
3428 if test -n "$CC"; then
3429 ac_cv_prog_CC="$CC" # Let the user override the test.
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3433 do
3434 IFS=$as_save_IFS
3435 case $as_dir in #(((
3436 '') as_dir=./ ;;
3437 */) ;;
3438 *) as_dir=$as_dir/ ;;
3439 esac
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3442 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3444 break 2
3445 fi
3446 done
3447 done
3448 IFS=$as_save_IFS
3449
3450 fi
3451 fi
3452 CC=$ac_cv_prog_CC
3453 if test -n "$CC"; then
3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3455 printf "%s\n" "$CC" >&6; }
3456 else
3457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 printf "%s\n" "no" >&6; }
3459 fi
3460
3461
3462 test -n "$CC" && break
3463 done
3464 fi
3465 if test -z "$CC"; then
3466 ac_ct_CC=$CC
3467 for ac_prog in cl.exe
3468 do
3469 # Extract the first word of "$ac_prog", so it can be a program name with args.
3470 set dummy $ac_prog; ac_word=$2
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 printf %s "checking for $ac_word... " >&6; }
3473 if test ${ac_cv_prog_ac_ct_CC+y}
3474 then :
3475 printf %s "(cached) " >&6
3476 else $as_nop
3477 if test -n "$ac_ct_CC"; then
3478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3479 else
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3482 do
3483 IFS=$as_save_IFS
3484 case $as_dir in #(((
3485 '') as_dir=./ ;;
3486 */) ;;
3487 *) as_dir=$as_dir/ ;;
3488 esac
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3491 ac_cv_prog_ac_ct_CC="$ac_prog"
3492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3493 break 2
3494 fi
3495 done
3496 done
3497 IFS=$as_save_IFS
3498
3499 fi
3500 fi
3501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3502 if test -n "$ac_ct_CC"; then
3503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3504 printf "%s\n" "$ac_ct_CC" >&6; }
3505 else
3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507 printf "%s\n" "no" >&6; }
3508 fi
3509
3510
3511 test -n "$ac_ct_CC" && break
3512 done
3513
3514 if test "x$ac_ct_CC" = x; then
3515 CC=""
3516 else
3517 case $cross_compiling:$ac_tool_warned in
3518 yes:)
3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3520 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3521 ac_tool_warned=yes ;;
3522 esac
3523 CC=$ac_ct_CC
3524 fi
3525 fi
3526
3527 fi
3528 if test -z "$CC"; then
3529 if test -n "$ac_tool_prefix"; then
3530 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3531 set dummy ${ac_tool_prefix}clang; ac_word=$2
3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3533 printf %s "checking for $ac_word... " >&6; }
3534 if test ${ac_cv_prog_CC+y}
3535 then :
3536 printf %s "(cached) " >&6
3537 else $as_nop
3538 if test -n "$CC"; then
3539 ac_cv_prog_CC="$CC" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3543 do
3544 IFS=$as_save_IFS
3545 case $as_dir in #(((
3546 '') as_dir=./ ;;
3547 */) ;;
3548 *) as_dir=$as_dir/ ;;
3549 esac
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3552 ac_cv_prog_CC="${ac_tool_prefix}clang"
3553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3554 break 2
3555 fi
3556 done
3557 done
3558 IFS=$as_save_IFS
3559
3560 fi
3561 fi
3562 CC=$ac_cv_prog_CC
3563 if test -n "$CC"; then
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565 printf "%s\n" "$CC" >&6; }
3566 else
3567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 printf "%s\n" "no" >&6; }
3569 fi
3570
3571
3572 fi
3573 if test -z "$ac_cv_prog_CC"; then
3574 ac_ct_CC=$CC
3575 # Extract the first word of "clang", so it can be a program name with args.
3576 set dummy clang; ac_word=$2
3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 printf %s "checking for $ac_word... " >&6; }
3579 if test ${ac_cv_prog_ac_ct_CC+y}
3580 then :
3581 printf %s "(cached) " >&6
3582 else $as_nop
3583 if test -n "$ac_ct_CC"; then
3584 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589 IFS=$as_save_IFS
3590 case $as_dir in #(((
3591 '') as_dir=./ ;;
3592 */) ;;
3593 *) as_dir=$as_dir/ ;;
3594 esac
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_ac_ct_CC="clang"
3598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3599 break 2
3600 fi
3601 done
3602 done
3603 IFS=$as_save_IFS
3604
3605 fi
3606 fi
3607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3608 if test -n "$ac_ct_CC"; then
3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3610 printf "%s\n" "$ac_ct_CC" >&6; }
3611 else
3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 printf "%s\n" "no" >&6; }
3614 fi
3615
3616 if test "x$ac_ct_CC" = x; then
3617 CC=""
3618 else
3619 case $cross_compiling:$ac_tool_warned in
3620 yes:)
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3622 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3623 ac_tool_warned=yes ;;
3624 esac
3625 CC=$ac_ct_CC
3626 fi
3627 else
3628 CC="$ac_cv_prog_CC"
3629 fi
3630
3631 fi
3632
3633
3634 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3636 as_fn_error $? "no acceptable C compiler found in \$PATH
3637 See \`config.log' for more details" "$LINENO" 5; }
3638
3639 # Provide some information about the compiler.
3640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3641 set X $ac_compile
3642 ac_compiler=$2
3643 for ac_option in --version -v -V -qversion -version; do
3644 { { ac_try="$ac_compiler $ac_option >&5"
3645 case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3648 esac
3649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650 printf "%s\n" "$ac_try_echo"; } >&5
3651 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3652 ac_status=$?
3653 if test -s conftest.err; then
3654 sed '10a\
3655 ... rest of stderr output deleted ...
3656 10q' conftest.err >conftest.er1
3657 cat conftest.er1 >&5
3658 fi
3659 rm -f conftest.er1 conftest.err
3660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661 test $ac_status = 0; }
3662 done
3663
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3666
3667 int
3668 main (void)
3669 {
3670
3671 ;
3672 return 0;
3673 }
3674 _ACEOF
3675 ac_clean_files_save=$ac_clean_files
3676 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3677 # Try to create an executable without -o first, disregard a.out.
3678 # It will help us diagnose broken compilers, and finding out an intuition
3679 # of exeext.
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3681 printf %s "checking whether the C compiler works... " >&6; }
3682 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3683
3684 # The possible output files:
3685 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3686
3687 ac_rmfiles=
3688 for ac_file in $ac_files
3689 do
3690 case $ac_file in
3691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3692 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3693 esac
3694 done
3695 rm -f $ac_rmfiles
3696
3697 if { { ac_try="$ac_link_default"
3698 case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701 esac
3702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3703 printf "%s\n" "$ac_try_echo"; } >&5
3704 (eval "$ac_link_default") 2>&5
3705 ac_status=$?
3706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707 test $ac_status = 0; }
3708 then :
3709 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3710 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3711 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3712 # so that the user can short-circuit this test for compilers unknown to
3713 # Autoconf.
3714 for ac_file in $ac_files ''
3715 do
3716 test -f "$ac_file" || continue
3717 case $ac_file in
3718 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3719 ;;
3720 [ab].out )
3721 # We found the default executable, but exeext='' is most
3722 # certainly right.
3723 break;;
3724 *.* )
3725 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3726 then :; else
3727 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3728 fi
3729 # We set ac_cv_exeext here because the later test for it is not
3730 # safe: cross compilers may not add the suffix if given an `-o'
3731 # argument, so we may need to know it at that point already.
3732 # Even if this section looks crufty: it has the advantage of
3733 # actually working.
3734 break;;
3735 * )
3736 break;;
3737 esac
3738 done
3739 test "$ac_cv_exeext" = no && ac_cv_exeext=
3740
3741 else $as_nop
3742 ac_file=''
3743 fi
3744 if test -z "$ac_file"
3745 then :
3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747 printf "%s\n" "no" >&6; }
3748 printf "%s\n" "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3750
3751 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3753 as_fn_error 77 "C compiler cannot create executables
3754 See \`config.log' for more details" "$LINENO" 5; }
3755 else $as_nop
3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3757 printf "%s\n" "yes" >&6; }
3758 fi
3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3760 printf %s "checking for C compiler default output file name... " >&6; }
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3762 printf "%s\n" "$ac_file" >&6; }
3763 ac_exeext=$ac_cv_exeext
3764
3765 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3766 ac_clean_files=$ac_clean_files_save
3767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3768 printf %s "checking for suffix of executables... " >&6; }
3769 if { { ac_try="$ac_link"
3770 case "(($ac_try" in
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3773 esac
3774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3775 printf "%s\n" "$ac_try_echo"; } >&5
3776 (eval "$ac_link") 2>&5
3777 ac_status=$?
3778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3779 test $ac_status = 0; }
3780 then :
3781 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3782 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3783 # work properly (i.e., refer to `conftest.exe'), while it won't with
3784 # `rm'.
3785 for ac_file in conftest.exe conftest conftest.*; do
3786 test -f "$ac_file" || continue
3787 case $ac_file in
3788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3789 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3790 break;;
3791 * ) break;;
3792 esac
3793 done
3794 else $as_nop
3795 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3797 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3798 See \`config.log' for more details" "$LINENO" 5; }
3799 fi
3800 rm -f conftest conftest$ac_cv_exeext
3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3802 printf "%s\n" "$ac_cv_exeext" >&6; }
3803
3804 rm -f conftest.$ac_ext
3805 EXEEXT=$ac_cv_exeext
3806 ac_exeext=$EXEEXT
3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h. */
3809 #include <stdio.h>
3810 int
3811 main (void)
3812 {
3813 FILE *f = fopen ("conftest.out", "w");
3814 return ferror (f) || fclose (f) != 0;
3815
3816 ;
3817 return 0;
3818 }
3819 _ACEOF
3820 ac_clean_files="$ac_clean_files conftest.out"
3821 # Check that the compiler produces executables we can run. If not, either
3822 # the compiler is broken, or we cross compile.
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3824 printf %s "checking whether we are cross compiling... " >&6; }
3825 if test "$cross_compiling" != yes; then
3826 { { ac_try="$ac_link"
3827 case "(($ac_try" in
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3830 esac
3831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3832 printf "%s\n" "$ac_try_echo"; } >&5
3833 (eval "$ac_link") 2>&5
3834 ac_status=$?
3835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3836 test $ac_status = 0; }
3837 if { ac_try='./conftest$ac_cv_exeext'
3838 { { case "(($ac_try" in
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3841 esac
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 printf "%s\n" "$ac_try_echo"; } >&5
3844 (eval "$ac_try") 2>&5
3845 ac_status=$?
3846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847 test $ac_status = 0; }; }; then
3848 cross_compiling=no
3849 else
3850 if test "$cross_compiling" = maybe; then
3851 cross_compiling=yes
3852 else
3853 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3854 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3855 as_fn_error 77 "cannot run C compiled programs.
3856 If you meant to cross compile, use \`--host'.
3857 See \`config.log' for more details" "$LINENO" 5; }
3858 fi
3859 fi
3860 fi
3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3862 printf "%s\n" "$cross_compiling" >&6; }
3863
3864 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3865 ac_clean_files=$ac_clean_files_save
3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3867 printf %s "checking for suffix of object files... " >&6; }
3868 if test ${ac_cv_objext+y}
3869 then :
3870 printf %s "(cached) " >&6
3871 else $as_nop
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3874
3875 int
3876 main (void)
3877 {
3878
3879 ;
3880 return 0;
3881 }
3882 _ACEOF
3883 rm -f conftest.o conftest.obj
3884 if { { ac_try="$ac_compile"
3885 case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888 esac
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 printf "%s\n" "$ac_try_echo"; } >&5
3891 (eval "$ac_compile") 2>&5
3892 ac_status=$?
3893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }
3895 then :
3896 for ac_file in conftest.o conftest.obj conftest.*; do
3897 test -f "$ac_file" || continue;
3898 case $ac_file in
3899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3900 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3901 break;;
3902 esac
3903 done
3904 else $as_nop
3905 printf "%s\n" "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3907
3908 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3910 as_fn_error $? "cannot compute suffix of object files: cannot compile
3911 See \`config.log' for more details" "$LINENO" 5; }
3912 fi
3913 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3914 fi
3915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3916 printf "%s\n" "$ac_cv_objext" >&6; }
3917 OBJEXT=$ac_cv_objext
3918 ac_objext=$OBJEXT
3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3920 printf %s "checking whether the compiler supports GNU C... " >&6; }
3921 if test ${ac_cv_c_compiler_gnu+y}
3922 then :
3923 printf %s "(cached) " >&6
3924 else $as_nop
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3927
3928 int
3929 main (void)
3930 {
3931 #ifndef __GNUC__
3932 choke me
3933 #endif
3934
3935 ;
3936 return 0;
3937 }
3938 _ACEOF
3939 if ac_fn_c_try_compile "$LINENO"
3940 then :
3941 ac_compiler_gnu=yes
3942 else $as_nop
3943 ac_compiler_gnu=no
3944 fi
3945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3946 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3947
3948 fi
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3950 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952
3953 if test $ac_compiler_gnu = yes; then
3954 GCC=yes
3955 else
3956 GCC=
3957 fi
3958 ac_test_CFLAGS=${CFLAGS+y}
3959 ac_save_CFLAGS=$CFLAGS
3960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3961 printf %s "checking whether $CC accepts -g... " >&6; }
3962 if test ${ac_cv_prog_cc_g+y}
3963 then :
3964 printf %s "(cached) " >&6
3965 else $as_nop
3966 ac_save_c_werror_flag=$ac_c_werror_flag
3967 ac_c_werror_flag=yes
3968 ac_cv_prog_cc_g=no
3969 CFLAGS="-g"
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h. */
3972
3973 int
3974 main (void)
3975 {
3976
3977 ;
3978 return 0;
3979 }
3980 _ACEOF
3981 if ac_fn_c_try_compile "$LINENO"
3982 then :
3983 ac_cv_prog_cc_g=yes
3984 else $as_nop
3985 CFLAGS=""
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3988
3989 int
3990 main (void)
3991 {
3992
3993 ;
3994 return 0;
3995 }
3996 _ACEOF
3997 if ac_fn_c_try_compile "$LINENO"
3998 then :
3999
4000 else $as_nop
4001 ac_c_werror_flag=$ac_save_c_werror_flag
4002 CFLAGS="-g"
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4005
4006 int
4007 main (void)
4008 {
4009
4010 ;
4011 return 0;
4012 }
4013 _ACEOF
4014 if ac_fn_c_try_compile "$LINENO"
4015 then :
4016 ac_cv_prog_cc_g=yes
4017 fi
4018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4019 fi
4020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4021 fi
4022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4023 ac_c_werror_flag=$ac_save_c_werror_flag
4024 fi
4025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4026 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4027 if test $ac_test_CFLAGS; then
4028 CFLAGS=$ac_save_CFLAGS
4029 elif test $ac_cv_prog_cc_g = yes; then
4030 if test "$GCC" = yes; then
4031 CFLAGS="-g -O2"
4032 else
4033 CFLAGS="-g"
4034 fi
4035 else
4036 if test "$GCC" = yes; then
4037 CFLAGS="-O2"
4038 else
4039 CFLAGS=
4040 fi
4041 fi
4042 ac_prog_cc_stdc=no
4043 if test x$ac_prog_cc_stdc = xno
4044 then :
4045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4046 printf %s "checking for $CC option to enable C11 features... " >&6; }
4047 if test ${ac_cv_prog_cc_c11+y}
4048 then :
4049 printf %s "(cached) " >&6
4050 else $as_nop
4051 ac_cv_prog_cc_c11=no
4052 ac_save_CC=$CC
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4055 $ac_c_conftest_c11_program
4056 _ACEOF
4057 for ac_arg in '' -std=gnu11
4058 do
4059 CC="$ac_save_CC $ac_arg"
4060 if ac_fn_c_try_compile "$LINENO"
4061 then :
4062 ac_cv_prog_cc_c11=$ac_arg
4063 fi
4064 rm -f core conftest.err conftest.$ac_objext conftest.beam
4065 test "x$ac_cv_prog_cc_c11" != "xno" && break
4066 done
4067 rm -f conftest.$ac_ext
4068 CC=$ac_save_CC
4069 fi
4070
4071 if test "x$ac_cv_prog_cc_c11" = xno
4072 then :
4073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4074 printf "%s\n" "unsupported" >&6; }
4075 else $as_nop
4076 if test "x$ac_cv_prog_cc_c11" = x
4077 then :
4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4079 printf "%s\n" "none needed" >&6; }
4080 else $as_nop
4081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4082 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4083 CC="$CC $ac_cv_prog_cc_c11"
4084 fi
4085 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4086 ac_prog_cc_stdc=c11
4087 fi
4088 fi
4089 if test x$ac_prog_cc_stdc = xno
4090 then :
4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4092 printf %s "checking for $CC option to enable C99 features... " >&6; }
4093 if test ${ac_cv_prog_cc_c99+y}
4094 then :
4095 printf %s "(cached) " >&6
4096 else $as_nop
4097 ac_cv_prog_cc_c99=no
4098 ac_save_CC=$CC
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4101 $ac_c_conftest_c99_program
4102 _ACEOF
4103 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4104 do
4105 CC="$ac_save_CC $ac_arg"
4106 if ac_fn_c_try_compile "$LINENO"
4107 then :
4108 ac_cv_prog_cc_c99=$ac_arg
4109 fi
4110 rm -f core conftest.err conftest.$ac_objext conftest.beam
4111 test "x$ac_cv_prog_cc_c99" != "xno" && break
4112 done
4113 rm -f conftest.$ac_ext
4114 CC=$ac_save_CC
4115 fi
4116
4117 if test "x$ac_cv_prog_cc_c99" = xno
4118 then :
4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4120 printf "%s\n" "unsupported" >&6; }
4121 else $as_nop
4122 if test "x$ac_cv_prog_cc_c99" = x
4123 then :
4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4125 printf "%s\n" "none needed" >&6; }
4126 else $as_nop
4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4128 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4129 CC="$CC $ac_cv_prog_cc_c99"
4130 fi
4131 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4132 ac_prog_cc_stdc=c99
4133 fi
4134 fi
4135 if test x$ac_prog_cc_stdc = xno
4136 then :
4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4138 printf %s "checking for $CC option to enable C89 features... " >&6; }
4139 if test ${ac_cv_prog_cc_c89+y}
4140 then :
4141 printf %s "(cached) " >&6
4142 else $as_nop
4143 ac_cv_prog_cc_c89=no
4144 ac_save_CC=$CC
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4147 $ac_c_conftest_c89_program
4148 _ACEOF
4149 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4150 do
4151 CC="$ac_save_CC $ac_arg"
4152 if ac_fn_c_try_compile "$LINENO"
4153 then :
4154 ac_cv_prog_cc_c89=$ac_arg
4155 fi
4156 rm -f core conftest.err conftest.$ac_objext conftest.beam
4157 test "x$ac_cv_prog_cc_c89" != "xno" && break
4158 done
4159 rm -f conftest.$ac_ext
4160 CC=$ac_save_CC
4161 fi
4162
4163 if test "x$ac_cv_prog_cc_c89" = xno
4164 then :
4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4166 printf "%s\n" "unsupported" >&6; }
4167 else $as_nop
4168 if test "x$ac_cv_prog_cc_c89" = x
4169 then :
4170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4171 printf "%s\n" "none needed" >&6; }
4172 else $as_nop
4173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4174 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4175 CC="$CC $ac_cv_prog_cc_c89"
4176 fi
4177 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4178 ac_prog_cc_stdc=c89
4179 fi
4180 fi
4181
4182 ac_ext=c
4183 ac_cpp='$CPP $CPPFLAGS'
4184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4187
4188
4189 ac_ext=c
4190 ac_cpp='$CPP $CPPFLAGS'
4191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4195 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4196 if test ${am_cv_prog_cc_c_o+y}
4197 then :
4198 printf %s "(cached) " >&6
4199 else $as_nop
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202
4203 int
4204 main (void)
4205 {
4206
4207 ;
4208 return 0;
4209 }
4210 _ACEOF
4211 # Make sure it works both with $CC and with simple cc.
4212 # Following AC_PROG_CC_C_O, we do the test twice because some
4213 # compilers refuse to overwrite an existing .o file with -o,
4214 # though they will create one.
4215 am_cv_prog_cc_c_o=yes
4216 for am_i in 1 2; do
4217 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4218 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } \
4222 && test -f conftest2.$ac_objext; then
4223 : OK
4224 else
4225 am_cv_prog_cc_c_o=no
4226 break
4227 fi
4228 done
4229 rm -f core conftest*
4230 unset am_i
4231 fi
4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4233 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4234 if test "$am_cv_prog_cc_c_o" != yes; then
4235 # Losing compiler, so override with the script.
4236 # FIXME: It is wrong to rewrite CC.
4237 # But if we don't then we get into trouble of one sort or another.
4238 # A longer-term fix would be to have automake use am__CC in this case,
4239 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4240 CC="$am_aux_dir/compile $CC"
4241 fi
4242 ac_ext=c
4243 ac_cpp='$CPP $CPPFLAGS'
4244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247
4248
4249 depcc="$CC" am_compiler_list=
4250
4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4252 printf %s "checking dependency style of $depcc... " >&6; }
4253 if test ${am_cv_CC_dependencies_compiler_type+y}
4254 then :
4255 printf %s "(cached) " >&6
4256 else $as_nop
4257 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4258 # We make a subdir and do the tests there. Otherwise we can end up
4259 # making bogus files that we don't know about and never remove. For
4260 # instance it was reported that on HP-UX the gcc test will end up
4261 # making a dummy file named 'D' -- because '-MD' means "put the output
4262 # in D".
4263 rm -rf conftest.dir
4264 mkdir conftest.dir
4265 # Copy depcomp to subdir because otherwise we won't find it if we're
4266 # using a relative directory.
4267 cp "$am_depcomp" conftest.dir
4268 cd conftest.dir
4269 # We will build objects and dependencies in a subdirectory because
4270 # it helps to detect inapplicable dependency modes. For instance
4271 # both Tru64's cc and ICC support -MD to output dependencies as a
4272 # side effect of compilation, but ICC will put the dependencies in
4273 # the current directory while Tru64 will put them in the object
4274 # directory.
4275 mkdir sub
4276
4277 am_cv_CC_dependencies_compiler_type=none
4278 if test "$am_compiler_list" = ""; then
4279 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4280 fi
4281 am__universal=false
4282 case " $depcc " in #(
4283 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4284 esac
4285
4286 for depmode in $am_compiler_list; do
4287 # Setup a source with many dependencies, because some compilers
4288 # like to wrap large dependency lists on column 80 (with \), and
4289 # we should not choose a depcomp mode which is confused by this.
4290 #
4291 # We need to recreate these files for each test, as the compiler may
4292 # overwrite some of them when testing with obscure command lines.
4293 # This happens at least with the AIX C compiler.
4294 : > sub/conftest.c
4295 for i in 1 2 3 4 5 6; do
4296 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4297 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4298 # Solaris 10 /bin/sh.
4299 echo '/* dummy */' > sub/conftst$i.h
4300 done
4301 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4302
4303 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4304 # mode. It turns out that the SunPro C++ compiler does not properly
4305 # handle '-M -o', and we need to detect this. Also, some Intel
4306 # versions had trouble with output in subdirs.
4307 am__obj=sub/conftest.${OBJEXT-o}
4308 am__minus_obj="-o $am__obj"
4309 case $depmode in
4310 gcc)
4311 # This depmode causes a compiler race in universal mode.
4312 test "$am__universal" = false || continue
4313 ;;
4314 nosideeffect)
4315 # After this tag, mechanisms are not by side-effect, so they'll
4316 # only be used when explicitly requested.
4317 if test "x$enable_dependency_tracking" = xyes; then
4318 continue
4319 else
4320 break
4321 fi
4322 ;;
4323 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4324 # This compiler won't grok '-c -o', but also, the minuso test has
4325 # not run yet. These depmodes are late enough in the game, and
4326 # so weak that their functioning should not be impacted.
4327 am__obj=conftest.${OBJEXT-o}
4328 am__minus_obj=
4329 ;;
4330 none) break ;;
4331 esac
4332 if depmode=$depmode \
4333 source=sub/conftest.c object=$am__obj \
4334 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4335 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4336 >/dev/null 2>conftest.err &&
4337 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4338 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4339 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4340 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4341 # icc doesn't choke on unknown options, it will just issue warnings
4342 # or remarks (even with -Werror). So we grep stderr for any message
4343 # that says an option was ignored or not supported.
4344 # When given -MP, icc 7.0 and 7.1 complain thusly:
4345 # icc: Command line warning: ignoring option '-M'; no argument required
4346 # The diagnosis changed in icc 8.0:
4347 # icc: Command line remark: option '-MP' not supported
4348 if (grep 'ignoring option' conftest.err ||
4349 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4350 am_cv_CC_dependencies_compiler_type=$depmode
4351 break
4352 fi
4353 fi
4354 done
4355
4356 cd ..
4357 rm -rf conftest.dir
4358 else
4359 am_cv_CC_dependencies_compiler_type=none
4360 fi
4361
4362 fi
4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4364 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4365 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4366
4367 if
4368 test "x$enable_dependency_tracking" != xno \
4369 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4370 am__fastdepCC_TRUE=
4371 am__fastdepCC_FALSE='#'
4372 else
4373 am__fastdepCC_TRUE='#'
4374 am__fastdepCC_FALSE=
4375 fi
4376
4377
4378
4379
4380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4381 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4382 if test ${ac_cv_c_undeclared_builtin_options+y}
4383 then :
4384 printf %s "(cached) " >&6
4385 else $as_nop
4386 ac_save_CFLAGS=$CFLAGS
4387 ac_cv_c_undeclared_builtin_options='cannot detect'
4388 for ac_arg in '' -fno-builtin; do
4389 CFLAGS="$ac_save_CFLAGS $ac_arg"
4390 # This test program should *not* compile successfully.
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4393
4394 int
4395 main (void)
4396 {
4397 (void) strchr;
4398 ;
4399 return 0;
4400 }
4401 _ACEOF
4402 if ac_fn_c_try_compile "$LINENO"
4403 then :
4404
4405 else $as_nop
4406 # This test program should compile successfully.
4407 # No library function is consistently available on
4408 # freestanding implementations, so test against a dummy
4409 # declaration. Include always-available headers on the
4410 # off chance that they somehow elicit warnings.
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4413 #include <float.h>
4414 #include <limits.h>
4415 #include <stdarg.h>
4416 #include <stddef.h>
4417 extern void ac_decl (int, char *);
4418
4419 int
4420 main (void)
4421 {
4422 (void) ac_decl (0, (char *) 0);
4423 (void) ac_decl;
4424
4425 ;
4426 return 0;
4427 }
4428 _ACEOF
4429 if ac_fn_c_try_compile "$LINENO"
4430 then :
4431 if test x"$ac_arg" = x
4432 then :
4433 ac_cv_c_undeclared_builtin_options='none needed'
4434 else $as_nop
4435 ac_cv_c_undeclared_builtin_options=$ac_arg
4436 fi
4437 break
4438 fi
4439 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4440 fi
4441 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4442 done
4443 CFLAGS=$ac_save_CFLAGS
4444
4445 fi
4446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4447 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4448 case $ac_cv_c_undeclared_builtin_options in #(
4449 'cannot detect') :
4450 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4451 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4452 as_fn_error $? "cannot make $CC report undeclared builtins
4453 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4454 'none needed') :
4455 ac_c_undeclared_builtin_options='' ;; #(
4456 *) :
4457 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4458 esac
4459
4460 ac_header= ac_cache=
4461 for ac_item in $ac_header_c_list
4462 do
4463 if test $ac_cache; then
4464 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4465 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4466 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4467 fi
4468 ac_header= ac_cache=
4469 elif test $ac_header; then
4470 ac_cache=$ac_item
4471 else
4472 ac_header=$ac_item
4473 fi
4474 done
4475
4476
4477
4478
4479
4480
4481
4482
4483 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4484 then :
4485
4486 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4487
4488 fi
4489
4490
4491
4492
4493 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4494 if test "x$ac_cv_have_decl___clang__" = xyes
4495 then :
4496 CLANGCC="yes"
4497 else $as_nop
4498 CLANGCC="no"
4499 fi
4500 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4501 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4502 then :
4503 INTELCC="yes"
4504 else $as_nop
4505 INTELCC="no"
4506 fi
4507 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4508 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4509 then :
4510 SUNCC="yes"
4511 else $as_nop
4512 SUNCC="no"
4513 fi
4514
4515
4516
4517
4518
4519
4520
4521
4522 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4523 if test -n "$ac_tool_prefix"; then
4524 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4525 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4527 printf %s "checking for $ac_word... " >&6; }
4528 if test ${ac_cv_path_PKG_CONFIG+y}
4529 then :
4530 printf %s "(cached) " >&6
4531 else $as_nop
4532 case $PKG_CONFIG in
4533 [\\/]* | ?:[\\/]*)
4534 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4535 ;;
4536 *)
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4539 do
4540 IFS=$as_save_IFS
4541 case $as_dir in #(((
4542 '') as_dir=./ ;;
4543 */) ;;
4544 *) as_dir=$as_dir/ ;;
4545 esac
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4548 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4550 break 2
4551 fi
4552 done
4553 done
4554 IFS=$as_save_IFS
4555
4556 ;;
4557 esac
4558 fi
4559 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4560 if test -n "$PKG_CONFIG"; then
4561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4562 printf "%s\n" "$PKG_CONFIG" >&6; }
4563 else
4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 printf "%s\n" "no" >&6; }
4566 fi
4567
4568
4569 fi
4570 if test -z "$ac_cv_path_PKG_CONFIG"; then
4571 ac_pt_PKG_CONFIG=$PKG_CONFIG
4572 # Extract the first word of "pkg-config", so it can be a program name with args.
4573 set dummy pkg-config; ac_word=$2
4574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4575 printf %s "checking for $ac_word... " >&6; }
4576 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4577 then :
4578 printf %s "(cached) " >&6
4579 else $as_nop
4580 case $ac_pt_PKG_CONFIG in
4581 [\\/]* | ?:[\\/]*)
4582 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4583 ;;
4584 *)
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH
4587 do
4588 IFS=$as_save_IFS
4589 case $as_dir in #(((
4590 '') as_dir=./ ;;
4591 */) ;;
4592 *) as_dir=$as_dir/ ;;
4593 esac
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4596 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4598 break 2
4599 fi
4600 done
4601 done
4602 IFS=$as_save_IFS
4603
4604 ;;
4605 esac
4606 fi
4607 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4608 if test -n "$ac_pt_PKG_CONFIG"; then
4609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4610 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4611 else
4612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 printf "%s\n" "no" >&6; }
4614 fi
4615
4616 if test "x$ac_pt_PKG_CONFIG" = x; then
4617 PKG_CONFIG=""
4618 else
4619 case $cross_compiling:$ac_tool_warned in
4620 yes:)
4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4622 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4623 ac_tool_warned=yes ;;
4624 esac
4625 PKG_CONFIG=$ac_pt_PKG_CONFIG
4626 fi
4627 else
4628 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4629 fi
4630
4631 fi
4632 if test -n "$PKG_CONFIG"; then
4633 _pkg_min_version=0.9.0
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4635 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4636 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4638 printf "%s\n" "yes" >&6; }
4639 else
4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 printf "%s\n" "no" >&6; }
4642 PKG_CONFIG=""
4643 fi
4644 fi
4645
4646
4647 # Make sure we can run config.sub.
4648 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4649 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4650
4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4652 printf %s "checking build system type... " >&6; }
4653 if test ${ac_cv_build+y}
4654 then :
4655 printf %s "(cached) " >&6
4656 else $as_nop
4657 ac_build_alias=$build_alias
4658 test "x$ac_build_alias" = x &&
4659 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4660 test "x$ac_build_alias" = x &&
4661 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4662 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4663 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4664
4665 fi
4666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4667 printf "%s\n" "$ac_cv_build" >&6; }
4668 case $ac_cv_build in
4669 *-*-*) ;;
4670 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4671 esac
4672 build=$ac_cv_build
4673 ac_save_IFS=$IFS; IFS='-'
4674 set x $ac_cv_build
4675 shift
4676 build_cpu=$1
4677 build_vendor=$2
4678 shift; shift
4679 # Remember, the first character of IFS is used to create $*,
4680 # except with old shells:
4681 build_os=$*
4682 IFS=$ac_save_IFS
4683 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4684
4685
4686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4687 printf %s "checking host system type... " >&6; }
4688 if test ${ac_cv_host+y}
4689 then :
4690 printf %s "(cached) " >&6
4691 else $as_nop
4692 if test "x$host_alias" = x; then
4693 ac_cv_host=$ac_cv_build
4694 else
4695 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4696 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4697 fi
4698
4699 fi
4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4701 printf "%s\n" "$ac_cv_host" >&6; }
4702 case $ac_cv_host in
4703 *-*-*) ;;
4704 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4705 esac
4706 host=$ac_cv_host
4707 ac_save_IFS=$IFS; IFS='-'
4708 set x $ac_cv_host
4709 shift
4710 host_cpu=$1
4711 host_vendor=$2
4712 shift; shift
4713 # Remember, the first character of IFS is used to create $*,
4714 # except with old shells:
4715 host_os=$*
4716 IFS=$ac_save_IFS
4717 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4718
4719
4720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4721 printf %s "checking for a sed that does not truncate output... " >&6; }
4722 if test ${ac_cv_path_SED+y}
4723 then :
4724 printf %s "(cached) " >&6
4725 else $as_nop
4726 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4727 for ac_i in 1 2 3 4 5 6 7; do
4728 ac_script="$ac_script$as_nl$ac_script"
4729 done
4730 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4731 { ac_script=; unset ac_script;}
4732 if test -z "$SED"; then
4733 ac_path_SED_found=false
4734 # Loop through the user's path and test for each of PROGNAME-LIST
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4737 do
4738 IFS=$as_save_IFS
4739 case $as_dir in #(((
4740 '') as_dir=./ ;;
4741 */) ;;
4742 *) as_dir=$as_dir/ ;;
4743 esac
4744 for ac_prog in sed gsed
4745 do
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4748 as_fn_executable_p "$ac_path_SED" || continue
4749 # Check for GNU ac_path_SED and select it if it is found.
4750 # Check for GNU $ac_path_SED
4751 case `"$ac_path_SED" --version 2>&1` in
4752 *GNU*)
4753 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4754 *)
4755 ac_count=0
4756 printf %s 0123456789 >"conftest.in"
4757 while :
4758 do
4759 cat "conftest.in" "conftest.in" >"conftest.tmp"
4760 mv "conftest.tmp" "conftest.in"
4761 cp "conftest.in" "conftest.nl"
4762 printf "%s\n" '' >> "conftest.nl"
4763 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4765 as_fn_arith $ac_count + 1 && ac_count=$as_val
4766 if test $ac_count -gt ${ac_path_SED_max-0}; then
4767 # Best one so far, save it but keep looking for a better one
4768 ac_cv_path_SED="$ac_path_SED"
4769 ac_path_SED_max=$ac_count
4770 fi
4771 # 10*(2^10) chars as input seems more than enough
4772 test $ac_count -gt 10 && break
4773 done
4774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4775 esac
4776
4777 $ac_path_SED_found && break 3
4778 done
4779 done
4780 done
4781 IFS=$as_save_IFS
4782 if test -z "$ac_cv_path_SED"; then
4783 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4784 fi
4785 else
4786 ac_cv_path_SED=$SED
4787 fi
4788
4789 fi
4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4791 printf "%s\n" "$ac_cv_path_SED" >&6; }
4792 SED="$ac_cv_path_SED"
4793 rm -f conftest.sed
4794
4795
4796
4797
4798
4799
4800 # Check whether --enable-selective-werror was given.
4801 if test ${enable_selective_werror+y}
4802 then :
4803 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4804 else $as_nop
4805 SELECTIVE_WERROR=yes
4806 fi
4807
4808
4809
4810
4811
4812 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4813 if test "x$SUNCC" = "xyes"; then
4814 BASE_CFLAGS="-v"
4815 else
4816 BASE_CFLAGS=""
4817 fi
4818
4819 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833 xorg_testset_save_CFLAGS="$CFLAGS"
4834
4835 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4838 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4839 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4840 then :
4841 printf %s "(cached) " >&6
4842 else $as_nop
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4845 int i;
4846 _ACEOF
4847 if ac_fn_c_try_compile "$LINENO"
4848 then :
4849 xorg_cv_cc_flag_unknown_warning_option=yes
4850 else $as_nop
4851 xorg_cv_cc_flag_unknown_warning_option=no
4852 fi
4853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4854 fi
4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4856 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4858 CFLAGS="$xorg_testset_save_CFLAGS"
4859 fi
4860
4861 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4864 fi
4865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4867 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4868 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4869 then :
4870 printf %s "(cached) " >&6
4871 else $as_nop
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4874 int i;
4875 _ACEOF
4876 if ac_fn_c_try_compile "$LINENO"
4877 then :
4878 xorg_cv_cc_flag_unused_command_line_argument=yes
4879 else $as_nop
4880 xorg_cv_cc_flag_unused_command_line_argument=no
4881 fi
4882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4883 fi
4884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4885 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4887 CFLAGS="$xorg_testset_save_CFLAGS"
4888 fi
4889
4890 found="no"
4891
4892 if test $found = "no" ; then
4893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4895 fi
4896
4897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4899 fi
4900
4901 CFLAGS="$CFLAGS -Wall"
4902
4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4904 printf %s "checking if $CC supports -Wall... " >&6; }
4905 cacheid=xorg_cv_cc_flag__Wall
4906 if eval test \${$cacheid+y}
4907 then :
4908 printf %s "(cached) " >&6
4909 else $as_nop
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912 int i;
4913 int
4914 main (void)
4915 {
4916
4917 ;
4918 return 0;
4919 }
4920 _ACEOF
4921 if ac_fn_c_try_link "$LINENO"
4922 then :
4923 eval $cacheid=yes
4924 else $as_nop
4925 eval $cacheid=no
4926 fi
4927 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4928 conftest$ac_exeext conftest.$ac_ext
4929 fi
4930
4931
4932 CFLAGS="$xorg_testset_save_CFLAGS"
4933
4934 eval supported=\$$cacheid
4935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4936 printf "%s\n" "$supported" >&6; }
4937 if test "$supported" = "yes" ; then
4938 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4939 found="yes"
4940 fi
4941 fi
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957 xorg_testset_save_CFLAGS="$CFLAGS"
4958
4959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4962 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4963 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4964 then :
4965 printf %s "(cached) " >&6
4966 else $as_nop
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4969 int i;
4970 _ACEOF
4971 if ac_fn_c_try_compile "$LINENO"
4972 then :
4973 xorg_cv_cc_flag_unknown_warning_option=yes
4974 else $as_nop
4975 xorg_cv_cc_flag_unknown_warning_option=no
4976 fi
4977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4978 fi
4979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4980 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4982 CFLAGS="$xorg_testset_save_CFLAGS"
4983 fi
4984
4985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4988 fi
4989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4991 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4992 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4993 then :
4994 printf %s "(cached) " >&6
4995 else $as_nop
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
4998 int i;
4999 _ACEOF
5000 if ac_fn_c_try_compile "$LINENO"
5001 then :
5002 xorg_cv_cc_flag_unused_command_line_argument=yes
5003 else $as_nop
5004 xorg_cv_cc_flag_unused_command_line_argument=no
5005 fi
5006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5007 fi
5008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5009 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5011 CFLAGS="$xorg_testset_save_CFLAGS"
5012 fi
5013
5014 found="no"
5015
5016 if test $found = "no" ; then
5017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5019 fi
5020
5021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5023 fi
5024
5025 CFLAGS="$CFLAGS -Wpointer-arith"
5026
5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5028 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5029 cacheid=xorg_cv_cc_flag__Wpointer_arith
5030 if eval test \${$cacheid+y}
5031 then :
5032 printf %s "(cached) " >&6
5033 else $as_nop
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035 /* end confdefs.h. */
5036 int i;
5037 int
5038 main (void)
5039 {
5040
5041 ;
5042 return 0;
5043 }
5044 _ACEOF
5045 if ac_fn_c_try_link "$LINENO"
5046 then :
5047 eval $cacheid=yes
5048 else $as_nop
5049 eval $cacheid=no
5050 fi
5051 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5052 conftest$ac_exeext conftest.$ac_ext
5053 fi
5054
5055
5056 CFLAGS="$xorg_testset_save_CFLAGS"
5057
5058 eval supported=\$$cacheid
5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5060 printf "%s\n" "$supported" >&6; }
5061 if test "$supported" = "yes" ; then
5062 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5063 found="yes"
5064 fi
5065 fi
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081 xorg_testset_save_CFLAGS="$CFLAGS"
5082
5083 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5086 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5087 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5088 then :
5089 printf %s "(cached) " >&6
5090 else $as_nop
5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5093 int i;
5094 _ACEOF
5095 if ac_fn_c_try_compile "$LINENO"
5096 then :
5097 xorg_cv_cc_flag_unknown_warning_option=yes
5098 else $as_nop
5099 xorg_cv_cc_flag_unknown_warning_option=no
5100 fi
5101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5102 fi
5103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5104 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5106 CFLAGS="$xorg_testset_save_CFLAGS"
5107 fi
5108
5109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5112 fi
5113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5115 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5116 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5117 then :
5118 printf %s "(cached) " >&6
5119 else $as_nop
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 int i;
5123 _ACEOF
5124 if ac_fn_c_try_compile "$LINENO"
5125 then :
5126 xorg_cv_cc_flag_unused_command_line_argument=yes
5127 else $as_nop
5128 xorg_cv_cc_flag_unused_command_line_argument=no
5129 fi
5130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5131 fi
5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5133 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5134 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5135 CFLAGS="$xorg_testset_save_CFLAGS"
5136 fi
5137
5138 found="no"
5139
5140 if test $found = "no" ; then
5141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5143 fi
5144
5145 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5147 fi
5148
5149 CFLAGS="$CFLAGS -Wmissing-declarations"
5150
5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5152 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5153 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5154 if eval test \${$cacheid+y}
5155 then :
5156 printf %s "(cached) " >&6
5157 else $as_nop
5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5160 int i;
5161 int
5162 main (void)
5163 {
5164
5165 ;
5166 return 0;
5167 }
5168 _ACEOF
5169 if ac_fn_c_try_link "$LINENO"
5170 then :
5171 eval $cacheid=yes
5172 else $as_nop
5173 eval $cacheid=no
5174 fi
5175 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5176 conftest$ac_exeext conftest.$ac_ext
5177 fi
5178
5179
5180 CFLAGS="$xorg_testset_save_CFLAGS"
5181
5182 eval supported=\$$cacheid
5183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5184 printf "%s\n" "$supported" >&6; }
5185 if test "$supported" = "yes" ; then
5186 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5187 found="yes"
5188 fi
5189 fi
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205 xorg_testset_save_CFLAGS="$CFLAGS"
5206
5207 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5210 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5211 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5212 then :
5213 printf %s "(cached) " >&6
5214 else $as_nop
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5217 int i;
5218 _ACEOF
5219 if ac_fn_c_try_compile "$LINENO"
5220 then :
5221 xorg_cv_cc_flag_unknown_warning_option=yes
5222 else $as_nop
5223 xorg_cv_cc_flag_unknown_warning_option=no
5224 fi
5225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5226 fi
5227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5228 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5230 CFLAGS="$xorg_testset_save_CFLAGS"
5231 fi
5232
5233 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5236 fi
5237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5239 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5240 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5241 then :
5242 printf %s "(cached) " >&6
5243 else $as_nop
5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h. */
5246 int i;
5247 _ACEOF
5248 if ac_fn_c_try_compile "$LINENO"
5249 then :
5250 xorg_cv_cc_flag_unused_command_line_argument=yes
5251 else $as_nop
5252 xorg_cv_cc_flag_unused_command_line_argument=no
5253 fi
5254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5255 fi
5256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5257 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5258 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5259 CFLAGS="$xorg_testset_save_CFLAGS"
5260 fi
5261
5262 found="no"
5263
5264 if test $found = "no" ; then
5265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5267 fi
5268
5269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5271 fi
5272
5273 CFLAGS="$CFLAGS -Wformat=2"
5274
5275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5276 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5277 cacheid=xorg_cv_cc_flag__Wformat_2
5278 if eval test \${$cacheid+y}
5279 then :
5280 printf %s "(cached) " >&6
5281 else $as_nop
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5284 int i;
5285 int
5286 main (void)
5287 {
5288
5289 ;
5290 return 0;
5291 }
5292 _ACEOF
5293 if ac_fn_c_try_link "$LINENO"
5294 then :
5295 eval $cacheid=yes
5296 else $as_nop
5297 eval $cacheid=no
5298 fi
5299 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5300 conftest$ac_exeext conftest.$ac_ext
5301 fi
5302
5303
5304 CFLAGS="$xorg_testset_save_CFLAGS"
5305
5306 eval supported=\$$cacheid
5307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5308 printf "%s\n" "$supported" >&6; }
5309 if test "$supported" = "yes" ; then
5310 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5311 found="yes"
5312 fi
5313 fi
5314
5315 if test $found = "no" ; then
5316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5318 fi
5319
5320 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5322 fi
5323
5324 CFLAGS="$CFLAGS -Wformat"
5325
5326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5327 printf %s "checking if $CC supports -Wformat... " >&6; }
5328 cacheid=xorg_cv_cc_flag__Wformat
5329 if eval test \${$cacheid+y}
5330 then :
5331 printf %s "(cached) " >&6
5332 else $as_nop
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5335 int i;
5336 int
5337 main (void)
5338 {
5339
5340 ;
5341 return 0;
5342 }
5343 _ACEOF
5344 if ac_fn_c_try_link "$LINENO"
5345 then :
5346 eval $cacheid=yes
5347 else $as_nop
5348 eval $cacheid=no
5349 fi
5350 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5351 conftest$ac_exeext conftest.$ac_ext
5352 fi
5353
5354
5355 CFLAGS="$xorg_testset_save_CFLAGS"
5356
5357 eval supported=\$$cacheid
5358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5359 printf "%s\n" "$supported" >&6; }
5360 if test "$supported" = "yes" ; then
5361 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5362 found="yes"
5363 fi
5364 fi
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382 xorg_testset_save_CFLAGS="$CFLAGS"
5383
5384 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5387 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5388 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5389 then :
5390 printf %s "(cached) " >&6
5391 else $as_nop
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5394 int i;
5395 _ACEOF
5396 if ac_fn_c_try_compile "$LINENO"
5397 then :
5398 xorg_cv_cc_flag_unknown_warning_option=yes
5399 else $as_nop
5400 xorg_cv_cc_flag_unknown_warning_option=no
5401 fi
5402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5403 fi
5404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5405 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5406 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5407 CFLAGS="$xorg_testset_save_CFLAGS"
5408 fi
5409
5410 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5413 fi
5414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5416 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5417 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5418 then :
5419 printf %s "(cached) " >&6
5420 else $as_nop
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5423 int i;
5424 _ACEOF
5425 if ac_fn_c_try_compile "$LINENO"
5426 then :
5427 xorg_cv_cc_flag_unused_command_line_argument=yes
5428 else $as_nop
5429 xorg_cv_cc_flag_unused_command_line_argument=no
5430 fi
5431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5432 fi
5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5434 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5436 CFLAGS="$xorg_testset_save_CFLAGS"
5437 fi
5438
5439 found="no"
5440
5441 if test $found = "no" ; then
5442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5444 fi
5445
5446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5448 fi
5449
5450 CFLAGS="$CFLAGS -Wstrict-prototypes"
5451
5452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5453 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5454 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5455 if eval test \${$cacheid+y}
5456 then :
5457 printf %s "(cached) " >&6
5458 else $as_nop
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5461 int i;
5462 int
5463 main (void)
5464 {
5465
5466 ;
5467 return 0;
5468 }
5469 _ACEOF
5470 if ac_fn_c_try_link "$LINENO"
5471 then :
5472 eval $cacheid=yes
5473 else $as_nop
5474 eval $cacheid=no
5475 fi
5476 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5477 conftest$ac_exeext conftest.$ac_ext
5478 fi
5479
5480
5481 CFLAGS="$xorg_testset_save_CFLAGS"
5482
5483 eval supported=\$$cacheid
5484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5485 printf "%s\n" "$supported" >&6; }
5486 if test "$supported" = "yes" ; then
5487 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5488 found="yes"
5489 fi
5490 fi
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506 xorg_testset_save_CFLAGS="$CFLAGS"
5507
5508 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5511 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5512 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5513 then :
5514 printf %s "(cached) " >&6
5515 else $as_nop
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5518 int i;
5519 _ACEOF
5520 if ac_fn_c_try_compile "$LINENO"
5521 then :
5522 xorg_cv_cc_flag_unknown_warning_option=yes
5523 else $as_nop
5524 xorg_cv_cc_flag_unknown_warning_option=no
5525 fi
5526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5527 fi
5528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5529 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5531 CFLAGS="$xorg_testset_save_CFLAGS"
5532 fi
5533
5534 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5537 fi
5538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5540 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5541 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5542 then :
5543 printf %s "(cached) " >&6
5544 else $as_nop
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5547 int i;
5548 _ACEOF
5549 if ac_fn_c_try_compile "$LINENO"
5550 then :
5551 xorg_cv_cc_flag_unused_command_line_argument=yes
5552 else $as_nop
5553 xorg_cv_cc_flag_unused_command_line_argument=no
5554 fi
5555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5556 fi
5557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5558 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5559 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5560 CFLAGS="$xorg_testset_save_CFLAGS"
5561 fi
5562
5563 found="no"
5564
5565 if test $found = "no" ; then
5566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5568 fi
5569
5570 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5572 fi
5573
5574 CFLAGS="$CFLAGS -Wmissing-prototypes"
5575
5576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5577 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5578 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5579 if eval test \${$cacheid+y}
5580 then :
5581 printf %s "(cached) " >&6
5582 else $as_nop
5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h. */
5585 int i;
5586 int
5587 main (void)
5588 {
5589
5590 ;
5591 return 0;
5592 }
5593 _ACEOF
5594 if ac_fn_c_try_link "$LINENO"
5595 then :
5596 eval $cacheid=yes
5597 else $as_nop
5598 eval $cacheid=no
5599 fi
5600 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5601 conftest$ac_exeext conftest.$ac_ext
5602 fi
5603
5604
5605 CFLAGS="$xorg_testset_save_CFLAGS"
5606
5607 eval supported=\$$cacheid
5608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5609 printf "%s\n" "$supported" >&6; }
5610 if test "$supported" = "yes" ; then
5611 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5612 found="yes"
5613 fi
5614 fi
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630 xorg_testset_save_CFLAGS="$CFLAGS"
5631
5632 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5635 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5636 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5637 then :
5638 printf %s "(cached) " >&6
5639 else $as_nop
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5642 int i;
5643 _ACEOF
5644 if ac_fn_c_try_compile "$LINENO"
5645 then :
5646 xorg_cv_cc_flag_unknown_warning_option=yes
5647 else $as_nop
5648 xorg_cv_cc_flag_unknown_warning_option=no
5649 fi
5650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5651 fi
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5653 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5655 CFLAGS="$xorg_testset_save_CFLAGS"
5656 fi
5657
5658 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5661 fi
5662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5664 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5665 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5666 then :
5667 printf %s "(cached) " >&6
5668 else $as_nop
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671 int i;
5672 _ACEOF
5673 if ac_fn_c_try_compile "$LINENO"
5674 then :
5675 xorg_cv_cc_flag_unused_command_line_argument=yes
5676 else $as_nop
5677 xorg_cv_cc_flag_unused_command_line_argument=no
5678 fi
5679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5680 fi
5681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5682 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5684 CFLAGS="$xorg_testset_save_CFLAGS"
5685 fi
5686
5687 found="no"
5688
5689 if test $found = "no" ; then
5690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5692 fi
5693
5694 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5696 fi
5697
5698 CFLAGS="$CFLAGS -Wnested-externs"
5699
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5701 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5702 cacheid=xorg_cv_cc_flag__Wnested_externs
5703 if eval test \${$cacheid+y}
5704 then :
5705 printf %s "(cached) " >&6
5706 else $as_nop
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5709 int i;
5710 int
5711 main (void)
5712 {
5713
5714 ;
5715 return 0;
5716 }
5717 _ACEOF
5718 if ac_fn_c_try_link "$LINENO"
5719 then :
5720 eval $cacheid=yes
5721 else $as_nop
5722 eval $cacheid=no
5723 fi
5724 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5725 conftest$ac_exeext conftest.$ac_ext
5726 fi
5727
5728
5729 CFLAGS="$xorg_testset_save_CFLAGS"
5730
5731 eval supported=\$$cacheid
5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5733 printf "%s\n" "$supported" >&6; }
5734 if test "$supported" = "yes" ; then
5735 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5736 found="yes"
5737 fi
5738 fi
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754 xorg_testset_save_CFLAGS="$CFLAGS"
5755
5756 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5759 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5760 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5761 then :
5762 printf %s "(cached) " >&6
5763 else $as_nop
5764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765 /* end confdefs.h. */
5766 int i;
5767 _ACEOF
5768 if ac_fn_c_try_compile "$LINENO"
5769 then :
5770 xorg_cv_cc_flag_unknown_warning_option=yes
5771 else $as_nop
5772 xorg_cv_cc_flag_unknown_warning_option=no
5773 fi
5774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5775 fi
5776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5777 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5779 CFLAGS="$xorg_testset_save_CFLAGS"
5780 fi
5781
5782 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5785 fi
5786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5788 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5789 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5790 then :
5791 printf %s "(cached) " >&6
5792 else $as_nop
5793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5795 int i;
5796 _ACEOF
5797 if ac_fn_c_try_compile "$LINENO"
5798 then :
5799 xorg_cv_cc_flag_unused_command_line_argument=yes
5800 else $as_nop
5801 xorg_cv_cc_flag_unused_command_line_argument=no
5802 fi
5803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5804 fi
5805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5806 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5807 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5808 CFLAGS="$xorg_testset_save_CFLAGS"
5809 fi
5810
5811 found="no"
5812
5813 if test $found = "no" ; then
5814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5816 fi
5817
5818 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5820 fi
5821
5822 CFLAGS="$CFLAGS -Wbad-function-cast"
5823
5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5825 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5826 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5827 if eval test \${$cacheid+y}
5828 then :
5829 printf %s "(cached) " >&6
5830 else $as_nop
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832 /* end confdefs.h. */
5833 int i;
5834 int
5835 main (void)
5836 {
5837
5838 ;
5839 return 0;
5840 }
5841 _ACEOF
5842 if ac_fn_c_try_link "$LINENO"
5843 then :
5844 eval $cacheid=yes
5845 else $as_nop
5846 eval $cacheid=no
5847 fi
5848 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5849 conftest$ac_exeext conftest.$ac_ext
5850 fi
5851
5852
5853 CFLAGS="$xorg_testset_save_CFLAGS"
5854
5855 eval supported=\$$cacheid
5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5857 printf "%s\n" "$supported" >&6; }
5858 if test "$supported" = "yes" ; then
5859 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5860 found="yes"
5861 fi
5862 fi
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878 xorg_testset_save_CFLAGS="$CFLAGS"
5879
5880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5883 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5884 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5885 then :
5886 printf %s "(cached) " >&6
5887 else $as_nop
5888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889 /* end confdefs.h. */
5890 int i;
5891 _ACEOF
5892 if ac_fn_c_try_compile "$LINENO"
5893 then :
5894 xorg_cv_cc_flag_unknown_warning_option=yes
5895 else $as_nop
5896 xorg_cv_cc_flag_unknown_warning_option=no
5897 fi
5898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5899 fi
5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5901 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5903 CFLAGS="$xorg_testset_save_CFLAGS"
5904 fi
5905
5906 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5909 fi
5910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5912 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5913 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5914 then :
5915 printf %s "(cached) " >&6
5916 else $as_nop
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5919 int i;
5920 _ACEOF
5921 if ac_fn_c_try_compile "$LINENO"
5922 then :
5923 xorg_cv_cc_flag_unused_command_line_argument=yes
5924 else $as_nop
5925 xorg_cv_cc_flag_unused_command_line_argument=no
5926 fi
5927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5928 fi
5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5930 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5932 CFLAGS="$xorg_testset_save_CFLAGS"
5933 fi
5934
5935 found="no"
5936
5937 if test $found = "no" ; then
5938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5940 fi
5941
5942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5944 fi
5945
5946 CFLAGS="$CFLAGS -Wold-style-definition"
5947
5948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5949 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5950 cacheid=xorg_cv_cc_flag__Wold_style_definition
5951 if eval test \${$cacheid+y}
5952 then :
5953 printf %s "(cached) " >&6
5954 else $as_nop
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5957 int i;
5958 int
5959 main (void)
5960 {
5961
5962 ;
5963 return 0;
5964 }
5965 _ACEOF
5966 if ac_fn_c_try_link "$LINENO"
5967 then :
5968 eval $cacheid=yes
5969 else $as_nop
5970 eval $cacheid=no
5971 fi
5972 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5973 conftest$ac_exeext conftest.$ac_ext
5974 fi
5975
5976
5977 CFLAGS="$xorg_testset_save_CFLAGS"
5978
5979 eval supported=\$$cacheid
5980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5981 printf "%s\n" "$supported" >&6; }
5982 if test "$supported" = "yes" ; then
5983 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5984 found="yes"
5985 fi
5986 fi
5987
5988 if test $found = "no" ; then
5989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5991 fi
5992
5993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5995 fi
5996
5997 CFLAGS="$CFLAGS -fd"
5998
5999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6000 printf %s "checking if $CC supports -fd... " >&6; }
6001 cacheid=xorg_cv_cc_flag__fd
6002 if eval test \${$cacheid+y}
6003 then :
6004 printf %s "(cached) " >&6
6005 else $as_nop
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6008 int i;
6009 int
6010 main (void)
6011 {
6012
6013 ;
6014 return 0;
6015 }
6016 _ACEOF
6017 if ac_fn_c_try_link "$LINENO"
6018 then :
6019 eval $cacheid=yes
6020 else $as_nop
6021 eval $cacheid=no
6022 fi
6023 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6024 conftest$ac_exeext conftest.$ac_ext
6025 fi
6026
6027
6028 CFLAGS="$xorg_testset_save_CFLAGS"
6029
6030 eval supported=\$$cacheid
6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6032 printf "%s\n" "$supported" >&6; }
6033 if test "$supported" = "yes" ; then
6034 BASE_CFLAGS="$BASE_CFLAGS -fd"
6035 found="yes"
6036 fi
6037 fi
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053 xorg_testset_save_CFLAGS="$CFLAGS"
6054
6055 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6058 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6059 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6060 then :
6061 printf %s "(cached) " >&6
6062 else $as_nop
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6065 int i;
6066 _ACEOF
6067 if ac_fn_c_try_compile "$LINENO"
6068 then :
6069 xorg_cv_cc_flag_unknown_warning_option=yes
6070 else $as_nop
6071 xorg_cv_cc_flag_unknown_warning_option=no
6072 fi
6073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6074 fi
6075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6076 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6078 CFLAGS="$xorg_testset_save_CFLAGS"
6079 fi
6080
6081 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6084 fi
6085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6087 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6088 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6089 then :
6090 printf %s "(cached) " >&6
6091 else $as_nop
6092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093 /* end confdefs.h. */
6094 int i;
6095 _ACEOF
6096 if ac_fn_c_try_compile "$LINENO"
6097 then :
6098 xorg_cv_cc_flag_unused_command_line_argument=yes
6099 else $as_nop
6100 xorg_cv_cc_flag_unused_command_line_argument=no
6101 fi
6102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6103 fi
6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6105 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6107 CFLAGS="$xorg_testset_save_CFLAGS"
6108 fi
6109
6110 found="no"
6111
6112 if test $found = "no" ; then
6113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6115 fi
6116
6117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6119 fi
6120
6121 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6122
6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6124 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6125 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6126 if eval test \${$cacheid+y}
6127 then :
6128 printf %s "(cached) " >&6
6129 else $as_nop
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6132 int i;
6133 int
6134 main (void)
6135 {
6136
6137 ;
6138 return 0;
6139 }
6140 _ACEOF
6141 if ac_fn_c_try_link "$LINENO"
6142 then :
6143 eval $cacheid=yes
6144 else $as_nop
6145 eval $cacheid=no
6146 fi
6147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6148 conftest$ac_exeext conftest.$ac_ext
6149 fi
6150
6151
6152 CFLAGS="$xorg_testset_save_CFLAGS"
6153
6154 eval supported=\$$cacheid
6155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6156 printf "%s\n" "$supported" >&6; }
6157 if test "$supported" = "yes" ; then
6158 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6159 found="yes"
6160 fi
6161 fi
6162
6163
6164
6165
6166
6167 # This chunk adds additional warnings that could catch undesired effects.
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181 xorg_testset_save_CFLAGS="$CFLAGS"
6182
6183 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6186 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6187 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6188 then :
6189 printf %s "(cached) " >&6
6190 else $as_nop
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 int i;
6194 _ACEOF
6195 if ac_fn_c_try_compile "$LINENO"
6196 then :
6197 xorg_cv_cc_flag_unknown_warning_option=yes
6198 else $as_nop
6199 xorg_cv_cc_flag_unknown_warning_option=no
6200 fi
6201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6202 fi
6203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6204 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6206 CFLAGS="$xorg_testset_save_CFLAGS"
6207 fi
6208
6209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6212 fi
6213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6215 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6216 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6217 then :
6218 printf %s "(cached) " >&6
6219 else $as_nop
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222 int i;
6223 _ACEOF
6224 if ac_fn_c_try_compile "$LINENO"
6225 then :
6226 xorg_cv_cc_flag_unused_command_line_argument=yes
6227 else $as_nop
6228 xorg_cv_cc_flag_unused_command_line_argument=no
6229 fi
6230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6231 fi
6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6233 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6235 CFLAGS="$xorg_testset_save_CFLAGS"
6236 fi
6237
6238 found="no"
6239
6240 if test $found = "no" ; then
6241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6243 fi
6244
6245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6247 fi
6248
6249 CFLAGS="$CFLAGS -Wunused"
6250
6251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6252 printf %s "checking if $CC supports -Wunused... " >&6; }
6253 cacheid=xorg_cv_cc_flag__Wunused
6254 if eval test \${$cacheid+y}
6255 then :
6256 printf %s "(cached) " >&6
6257 else $as_nop
6258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259 /* end confdefs.h. */
6260 int i;
6261 int
6262 main (void)
6263 {
6264
6265 ;
6266 return 0;
6267 }
6268 _ACEOF
6269 if ac_fn_c_try_link "$LINENO"
6270 then :
6271 eval $cacheid=yes
6272 else $as_nop
6273 eval $cacheid=no
6274 fi
6275 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6276 conftest$ac_exeext conftest.$ac_ext
6277 fi
6278
6279
6280 CFLAGS="$xorg_testset_save_CFLAGS"
6281
6282 eval supported=\$$cacheid
6283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6284 printf "%s\n" "$supported" >&6; }
6285 if test "$supported" = "yes" ; then
6286 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6287 found="yes"
6288 fi
6289 fi
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305 xorg_testset_save_CFLAGS="$CFLAGS"
6306
6307 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6310 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6311 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6312 then :
6313 printf %s "(cached) " >&6
6314 else $as_nop
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6317 int i;
6318 _ACEOF
6319 if ac_fn_c_try_compile "$LINENO"
6320 then :
6321 xorg_cv_cc_flag_unknown_warning_option=yes
6322 else $as_nop
6323 xorg_cv_cc_flag_unknown_warning_option=no
6324 fi
6325 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6326 fi
6327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6328 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6330 CFLAGS="$xorg_testset_save_CFLAGS"
6331 fi
6332
6333 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6336 fi
6337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6339 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6340 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6341 then :
6342 printf %s "(cached) " >&6
6343 else $as_nop
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6346 int i;
6347 _ACEOF
6348 if ac_fn_c_try_compile "$LINENO"
6349 then :
6350 xorg_cv_cc_flag_unused_command_line_argument=yes
6351 else $as_nop
6352 xorg_cv_cc_flag_unused_command_line_argument=no
6353 fi
6354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6355 fi
6356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6357 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6359 CFLAGS="$xorg_testset_save_CFLAGS"
6360 fi
6361
6362 found="no"
6363
6364 if test $found = "no" ; then
6365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6367 fi
6368
6369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6371 fi
6372
6373 CFLAGS="$CFLAGS -Wuninitialized"
6374
6375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6376 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6377 cacheid=xorg_cv_cc_flag__Wuninitialized
6378 if eval test \${$cacheid+y}
6379 then :
6380 printf %s "(cached) " >&6
6381 else $as_nop
6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h. */
6384 int i;
6385 int
6386 main (void)
6387 {
6388
6389 ;
6390 return 0;
6391 }
6392 _ACEOF
6393 if ac_fn_c_try_link "$LINENO"
6394 then :
6395 eval $cacheid=yes
6396 else $as_nop
6397 eval $cacheid=no
6398 fi
6399 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6400 conftest$ac_exeext conftest.$ac_ext
6401 fi
6402
6403
6404 CFLAGS="$xorg_testset_save_CFLAGS"
6405
6406 eval supported=\$$cacheid
6407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6408 printf "%s\n" "$supported" >&6; }
6409 if test "$supported" = "yes" ; then
6410 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6411 found="yes"
6412 fi
6413 fi
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429 xorg_testset_save_CFLAGS="$CFLAGS"
6430
6431 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6434 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6435 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6436 then :
6437 printf %s "(cached) " >&6
6438 else $as_nop
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6441 int i;
6442 _ACEOF
6443 if ac_fn_c_try_compile "$LINENO"
6444 then :
6445 xorg_cv_cc_flag_unknown_warning_option=yes
6446 else $as_nop
6447 xorg_cv_cc_flag_unknown_warning_option=no
6448 fi
6449 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6450 fi
6451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6452 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6454 CFLAGS="$xorg_testset_save_CFLAGS"
6455 fi
6456
6457 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6460 fi
6461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6463 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6464 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6465 then :
6466 printf %s "(cached) " >&6
6467 else $as_nop
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6470 int i;
6471 _ACEOF
6472 if ac_fn_c_try_compile "$LINENO"
6473 then :
6474 xorg_cv_cc_flag_unused_command_line_argument=yes
6475 else $as_nop
6476 xorg_cv_cc_flag_unused_command_line_argument=no
6477 fi
6478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6479 fi
6480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6481 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6483 CFLAGS="$xorg_testset_save_CFLAGS"
6484 fi
6485
6486 found="no"
6487
6488 if test $found = "no" ; then
6489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6491 fi
6492
6493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6495 fi
6496
6497 CFLAGS="$CFLAGS -Wshadow"
6498
6499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6500 printf %s "checking if $CC supports -Wshadow... " >&6; }
6501 cacheid=xorg_cv_cc_flag__Wshadow
6502 if eval test \${$cacheid+y}
6503 then :
6504 printf %s "(cached) " >&6
6505 else $as_nop
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6508 int i;
6509 int
6510 main (void)
6511 {
6512
6513 ;
6514 return 0;
6515 }
6516 _ACEOF
6517 if ac_fn_c_try_link "$LINENO"
6518 then :
6519 eval $cacheid=yes
6520 else $as_nop
6521 eval $cacheid=no
6522 fi
6523 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6524 conftest$ac_exeext conftest.$ac_ext
6525 fi
6526
6527
6528 CFLAGS="$xorg_testset_save_CFLAGS"
6529
6530 eval supported=\$$cacheid
6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6532 printf "%s\n" "$supported" >&6; }
6533 if test "$supported" = "yes" ; then
6534 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6535 found="yes"
6536 fi
6537 fi
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553 xorg_testset_save_CFLAGS="$CFLAGS"
6554
6555 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6558 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6559 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6560 then :
6561 printf %s "(cached) " >&6
6562 else $as_nop
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6565 int i;
6566 _ACEOF
6567 if ac_fn_c_try_compile "$LINENO"
6568 then :
6569 xorg_cv_cc_flag_unknown_warning_option=yes
6570 else $as_nop
6571 xorg_cv_cc_flag_unknown_warning_option=no
6572 fi
6573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6574 fi
6575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6576 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6578 CFLAGS="$xorg_testset_save_CFLAGS"
6579 fi
6580
6581 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6584 fi
6585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6587 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6588 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6589 then :
6590 printf %s "(cached) " >&6
6591 else $as_nop
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
6594 int i;
6595 _ACEOF
6596 if ac_fn_c_try_compile "$LINENO"
6597 then :
6598 xorg_cv_cc_flag_unused_command_line_argument=yes
6599 else $as_nop
6600 xorg_cv_cc_flag_unused_command_line_argument=no
6601 fi
6602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6603 fi
6604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6605 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6607 CFLAGS="$xorg_testset_save_CFLAGS"
6608 fi
6609
6610 found="no"
6611
6612 if test $found = "no" ; then
6613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6615 fi
6616
6617 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6619 fi
6620
6621 CFLAGS="$CFLAGS -Wmissing-noreturn"
6622
6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6624 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6625 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6626 if eval test \${$cacheid+y}
6627 then :
6628 printf %s "(cached) " >&6
6629 else $as_nop
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6632 int i;
6633 int
6634 main (void)
6635 {
6636
6637 ;
6638 return 0;
6639 }
6640 _ACEOF
6641 if ac_fn_c_try_link "$LINENO"
6642 then :
6643 eval $cacheid=yes
6644 else $as_nop
6645 eval $cacheid=no
6646 fi
6647 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6648 conftest$ac_exeext conftest.$ac_ext
6649 fi
6650
6651
6652 CFLAGS="$xorg_testset_save_CFLAGS"
6653
6654 eval supported=\$$cacheid
6655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6656 printf "%s\n" "$supported" >&6; }
6657 if test "$supported" = "yes" ; then
6658 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6659 found="yes"
6660 fi
6661 fi
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677 xorg_testset_save_CFLAGS="$CFLAGS"
6678
6679 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6682 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6683 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6684 then :
6685 printf %s "(cached) " >&6
6686 else $as_nop
6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6689 int i;
6690 _ACEOF
6691 if ac_fn_c_try_compile "$LINENO"
6692 then :
6693 xorg_cv_cc_flag_unknown_warning_option=yes
6694 else $as_nop
6695 xorg_cv_cc_flag_unknown_warning_option=no
6696 fi
6697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6698 fi
6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6700 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6702 CFLAGS="$xorg_testset_save_CFLAGS"
6703 fi
6704
6705 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6708 fi
6709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6711 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6712 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6713 then :
6714 printf %s "(cached) " >&6
6715 else $as_nop
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6718 int i;
6719 _ACEOF
6720 if ac_fn_c_try_compile "$LINENO"
6721 then :
6722 xorg_cv_cc_flag_unused_command_line_argument=yes
6723 else $as_nop
6724 xorg_cv_cc_flag_unused_command_line_argument=no
6725 fi
6726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6727 fi
6728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6729 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6730 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6731 CFLAGS="$xorg_testset_save_CFLAGS"
6732 fi
6733
6734 found="no"
6735
6736 if test $found = "no" ; then
6737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6739 fi
6740
6741 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6743 fi
6744
6745 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6746
6747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6748 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6749 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6750 if eval test \${$cacheid+y}
6751 then :
6752 printf %s "(cached) " >&6
6753 else $as_nop
6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755 /* end confdefs.h. */
6756 int i;
6757 int
6758 main (void)
6759 {
6760
6761 ;
6762 return 0;
6763 }
6764 _ACEOF
6765 if ac_fn_c_try_link "$LINENO"
6766 then :
6767 eval $cacheid=yes
6768 else $as_nop
6769 eval $cacheid=no
6770 fi
6771 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6772 conftest$ac_exeext conftest.$ac_ext
6773 fi
6774
6775
6776 CFLAGS="$xorg_testset_save_CFLAGS"
6777
6778 eval supported=\$$cacheid
6779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6780 printf "%s\n" "$supported" >&6; }
6781 if test "$supported" = "yes" ; then
6782 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6783 found="yes"
6784 fi
6785 fi
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801 xorg_testset_save_CFLAGS="$CFLAGS"
6802
6803 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6806 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6807 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6808 then :
6809 printf %s "(cached) " >&6
6810 else $as_nop
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6813 int i;
6814 _ACEOF
6815 if ac_fn_c_try_compile "$LINENO"
6816 then :
6817 xorg_cv_cc_flag_unknown_warning_option=yes
6818 else $as_nop
6819 xorg_cv_cc_flag_unknown_warning_option=no
6820 fi
6821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6822 fi
6823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6824 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6826 CFLAGS="$xorg_testset_save_CFLAGS"
6827 fi
6828
6829 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6832 fi
6833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6835 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6836 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6837 then :
6838 printf %s "(cached) " >&6
6839 else $as_nop
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6842 int i;
6843 _ACEOF
6844 if ac_fn_c_try_compile "$LINENO"
6845 then :
6846 xorg_cv_cc_flag_unused_command_line_argument=yes
6847 else $as_nop
6848 xorg_cv_cc_flag_unused_command_line_argument=no
6849 fi
6850 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6851 fi
6852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6853 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6854 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6855 CFLAGS="$xorg_testset_save_CFLAGS"
6856 fi
6857
6858 found="no"
6859
6860 if test $found = "no" ; then
6861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6863 fi
6864
6865 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6867 fi
6868
6869 CFLAGS="$CFLAGS -Wredundant-decls"
6870
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6872 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6873 cacheid=xorg_cv_cc_flag__Wredundant_decls
6874 if eval test \${$cacheid+y}
6875 then :
6876 printf %s "(cached) " >&6
6877 else $as_nop
6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6880 int i;
6881 int
6882 main (void)
6883 {
6884
6885 ;
6886 return 0;
6887 }
6888 _ACEOF
6889 if ac_fn_c_try_link "$LINENO"
6890 then :
6891 eval $cacheid=yes
6892 else $as_nop
6893 eval $cacheid=no
6894 fi
6895 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6896 conftest$ac_exeext conftest.$ac_ext
6897 fi
6898
6899
6900 CFLAGS="$xorg_testset_save_CFLAGS"
6901
6902 eval supported=\$$cacheid
6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6904 printf "%s\n" "$supported" >&6; }
6905 if test "$supported" = "yes" ; then
6906 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6907 found="yes"
6908 fi
6909 fi
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925 xorg_testset_save_CFLAGS="$CFLAGS"
6926
6927 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6930 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6931 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6932 then :
6933 printf %s "(cached) " >&6
6934 else $as_nop
6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6937 int i;
6938 _ACEOF
6939 if ac_fn_c_try_compile "$LINENO"
6940 then :
6941 xorg_cv_cc_flag_unknown_warning_option=yes
6942 else $as_nop
6943 xorg_cv_cc_flag_unknown_warning_option=no
6944 fi
6945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6946 fi
6947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6948 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6949 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6950 CFLAGS="$xorg_testset_save_CFLAGS"
6951 fi
6952
6953 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6956 fi
6957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6959 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6960 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6961 then :
6962 printf %s "(cached) " >&6
6963 else $as_nop
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6966 int i;
6967 _ACEOF
6968 if ac_fn_c_try_compile "$LINENO"
6969 then :
6970 xorg_cv_cc_flag_unused_command_line_argument=yes
6971 else $as_nop
6972 xorg_cv_cc_flag_unused_command_line_argument=no
6973 fi
6974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6975 fi
6976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6977 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6978 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6979 CFLAGS="$xorg_testset_save_CFLAGS"
6980 fi
6981
6982 found="no"
6983
6984 if test $found = "no" ; then
6985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6987 fi
6988
6989 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6991 fi
6992
6993 CFLAGS="$CFLAGS -Wlogical-op"
6994
6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6996 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
6997 cacheid=xorg_cv_cc_flag__Wlogical_op
6998 if eval test \${$cacheid+y}
6999 then :
7000 printf %s "(cached) " >&6
7001 else $as_nop
7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7004 int i;
7005 int
7006 main (void)
7007 {
7008
7009 ;
7010 return 0;
7011 }
7012 _ACEOF
7013 if ac_fn_c_try_link "$LINENO"
7014 then :
7015 eval $cacheid=yes
7016 else $as_nop
7017 eval $cacheid=no
7018 fi
7019 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7020 conftest$ac_exeext conftest.$ac_ext
7021 fi
7022
7023
7024 CFLAGS="$xorg_testset_save_CFLAGS"
7025
7026 eval supported=\$$cacheid
7027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7028 printf "%s\n" "$supported" >&6; }
7029 if test "$supported" = "yes" ; then
7030 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7031 found="yes"
7032 fi
7033 fi
7034
7035
7036
7037 # These are currently disabled because they are noisy. They will be enabled
7038 # in the future once the codebase is sufficiently modernized to silence
7039 # them. For now, I don't want them to drown out the other warnings.
7040 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7041 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7042 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7043
7044 # Turn some warnings into errors, so we don't accidentally get successful builds
7045 # when there are problems that should be fixed.
7046
7047 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061 xorg_testset_save_CFLAGS="$CFLAGS"
7062
7063 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7066 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7067 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7068 then :
7069 printf %s "(cached) " >&6
7070 else $as_nop
7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072 /* end confdefs.h. */
7073 int i;
7074 _ACEOF
7075 if ac_fn_c_try_compile "$LINENO"
7076 then :
7077 xorg_cv_cc_flag_unknown_warning_option=yes
7078 else $as_nop
7079 xorg_cv_cc_flag_unknown_warning_option=no
7080 fi
7081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7082 fi
7083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7084 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7086 CFLAGS="$xorg_testset_save_CFLAGS"
7087 fi
7088
7089 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7092 fi
7093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7095 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7096 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7097 then :
7098 printf %s "(cached) " >&6
7099 else $as_nop
7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h. */
7102 int i;
7103 _ACEOF
7104 if ac_fn_c_try_compile "$LINENO"
7105 then :
7106 xorg_cv_cc_flag_unused_command_line_argument=yes
7107 else $as_nop
7108 xorg_cv_cc_flag_unused_command_line_argument=no
7109 fi
7110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7111 fi
7112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7113 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7115 CFLAGS="$xorg_testset_save_CFLAGS"
7116 fi
7117
7118 found="no"
7119
7120 if test $found = "no" ; then
7121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7123 fi
7124
7125 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7127 fi
7128
7129 CFLAGS="$CFLAGS -Werror=implicit"
7130
7131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7132 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7133 cacheid=xorg_cv_cc_flag__Werror_implicit
7134 if eval test \${$cacheid+y}
7135 then :
7136 printf %s "(cached) " >&6
7137 else $as_nop
7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139 /* end confdefs.h. */
7140 int i;
7141 int
7142 main (void)
7143 {
7144
7145 ;
7146 return 0;
7147 }
7148 _ACEOF
7149 if ac_fn_c_try_link "$LINENO"
7150 then :
7151 eval $cacheid=yes
7152 else $as_nop
7153 eval $cacheid=no
7154 fi
7155 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7156 conftest$ac_exeext conftest.$ac_ext
7157 fi
7158
7159
7160 CFLAGS="$xorg_testset_save_CFLAGS"
7161
7162 eval supported=\$$cacheid
7163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7164 printf "%s\n" "$supported" >&6; }
7165 if test "$supported" = "yes" ; then
7166 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7167 found="yes"
7168 fi
7169 fi
7170
7171 if test $found = "no" ; then
7172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7174 fi
7175
7176 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7178 fi
7179
7180 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7181
7182 { 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
7183 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7184 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7185 if eval test \${$cacheid+y}
7186 then :
7187 printf %s "(cached) " >&6
7188 else $as_nop
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7191 int i;
7192 int
7193 main (void)
7194 {
7195
7196 ;
7197 return 0;
7198 }
7199 _ACEOF
7200 if ac_fn_c_try_link "$LINENO"
7201 then :
7202 eval $cacheid=yes
7203 else $as_nop
7204 eval $cacheid=no
7205 fi
7206 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7207 conftest$ac_exeext conftest.$ac_ext
7208 fi
7209
7210
7211 CFLAGS="$xorg_testset_save_CFLAGS"
7212
7213 eval supported=\$$cacheid
7214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7215 printf "%s\n" "$supported" >&6; }
7216 if test "$supported" = "yes" ; then
7217 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7218 found="yes"
7219 fi
7220 fi
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236 xorg_testset_save_CFLAGS="$CFLAGS"
7237
7238 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7241 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7242 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7243 then :
7244 printf %s "(cached) " >&6
7245 else $as_nop
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248 int i;
7249 _ACEOF
7250 if ac_fn_c_try_compile "$LINENO"
7251 then :
7252 xorg_cv_cc_flag_unknown_warning_option=yes
7253 else $as_nop
7254 xorg_cv_cc_flag_unknown_warning_option=no
7255 fi
7256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7257 fi
7258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7259 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7261 CFLAGS="$xorg_testset_save_CFLAGS"
7262 fi
7263
7264 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7267 fi
7268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7270 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7271 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7272 then :
7273 printf %s "(cached) " >&6
7274 else $as_nop
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7277 int i;
7278 _ACEOF
7279 if ac_fn_c_try_compile "$LINENO"
7280 then :
7281 xorg_cv_cc_flag_unused_command_line_argument=yes
7282 else $as_nop
7283 xorg_cv_cc_flag_unused_command_line_argument=no
7284 fi
7285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7286 fi
7287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7288 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7289 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7290 CFLAGS="$xorg_testset_save_CFLAGS"
7291 fi
7292
7293 found="no"
7294
7295 if test $found = "no" ; then
7296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7298 fi
7299
7300 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7302 fi
7303
7304 CFLAGS="$CFLAGS -Werror=nonnull"
7305
7306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7307 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7308 cacheid=xorg_cv_cc_flag__Werror_nonnull
7309 if eval test \${$cacheid+y}
7310 then :
7311 printf %s "(cached) " >&6
7312 else $as_nop
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315 int i;
7316 int
7317 main (void)
7318 {
7319
7320 ;
7321 return 0;
7322 }
7323 _ACEOF
7324 if ac_fn_c_try_link "$LINENO"
7325 then :
7326 eval $cacheid=yes
7327 else $as_nop
7328 eval $cacheid=no
7329 fi
7330 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7331 conftest$ac_exeext conftest.$ac_ext
7332 fi
7333
7334
7335 CFLAGS="$xorg_testset_save_CFLAGS"
7336
7337 eval supported=\$$cacheid
7338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7339 printf "%s\n" "$supported" >&6; }
7340 if test "$supported" = "yes" ; then
7341 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7342 found="yes"
7343 fi
7344 fi
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360 xorg_testset_save_CFLAGS="$CFLAGS"
7361
7362 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7365 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7366 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7367 then :
7368 printf %s "(cached) " >&6
7369 else $as_nop
7370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371 /* end confdefs.h. */
7372 int i;
7373 _ACEOF
7374 if ac_fn_c_try_compile "$LINENO"
7375 then :
7376 xorg_cv_cc_flag_unknown_warning_option=yes
7377 else $as_nop
7378 xorg_cv_cc_flag_unknown_warning_option=no
7379 fi
7380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7381 fi
7382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7383 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7384 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7385 CFLAGS="$xorg_testset_save_CFLAGS"
7386 fi
7387
7388 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7391 fi
7392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7394 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7395 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7396 then :
7397 printf %s "(cached) " >&6
7398 else $as_nop
7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7401 int i;
7402 _ACEOF
7403 if ac_fn_c_try_compile "$LINENO"
7404 then :
7405 xorg_cv_cc_flag_unused_command_line_argument=yes
7406 else $as_nop
7407 xorg_cv_cc_flag_unused_command_line_argument=no
7408 fi
7409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7410 fi
7411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7412 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7413 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7414 CFLAGS="$xorg_testset_save_CFLAGS"
7415 fi
7416
7417 found="no"
7418
7419 if test $found = "no" ; then
7420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7422 fi
7423
7424 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7426 fi
7427
7428 CFLAGS="$CFLAGS -Werror=init-self"
7429
7430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7431 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7432 cacheid=xorg_cv_cc_flag__Werror_init_self
7433 if eval test \${$cacheid+y}
7434 then :
7435 printf %s "(cached) " >&6
7436 else $as_nop
7437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h. */
7439 int i;
7440 int
7441 main (void)
7442 {
7443
7444 ;
7445 return 0;
7446 }
7447 _ACEOF
7448 if ac_fn_c_try_link "$LINENO"
7449 then :
7450 eval $cacheid=yes
7451 else $as_nop
7452 eval $cacheid=no
7453 fi
7454 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7455 conftest$ac_exeext conftest.$ac_ext
7456 fi
7457
7458
7459 CFLAGS="$xorg_testset_save_CFLAGS"
7460
7461 eval supported=\$$cacheid
7462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7463 printf "%s\n" "$supported" >&6; }
7464 if test "$supported" = "yes" ; then
7465 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7466 found="yes"
7467 fi
7468 fi
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484 xorg_testset_save_CFLAGS="$CFLAGS"
7485
7486 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7489 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7490 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7491 then :
7492 printf %s "(cached) " >&6
7493 else $as_nop
7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495 /* end confdefs.h. */
7496 int i;
7497 _ACEOF
7498 if ac_fn_c_try_compile "$LINENO"
7499 then :
7500 xorg_cv_cc_flag_unknown_warning_option=yes
7501 else $as_nop
7502 xorg_cv_cc_flag_unknown_warning_option=no
7503 fi
7504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7505 fi
7506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7507 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7509 CFLAGS="$xorg_testset_save_CFLAGS"
7510 fi
7511
7512 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7515 fi
7516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7518 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7519 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7520 then :
7521 printf %s "(cached) " >&6
7522 else $as_nop
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7525 int i;
7526 _ACEOF
7527 if ac_fn_c_try_compile "$LINENO"
7528 then :
7529 xorg_cv_cc_flag_unused_command_line_argument=yes
7530 else $as_nop
7531 xorg_cv_cc_flag_unused_command_line_argument=no
7532 fi
7533 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7534 fi
7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7536 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7537 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7538 CFLAGS="$xorg_testset_save_CFLAGS"
7539 fi
7540
7541 found="no"
7542
7543 if test $found = "no" ; then
7544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7546 fi
7547
7548 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7550 fi
7551
7552 CFLAGS="$CFLAGS -Werror=main"
7553
7554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7555 printf %s "checking if $CC supports -Werror=main... " >&6; }
7556 cacheid=xorg_cv_cc_flag__Werror_main
7557 if eval test \${$cacheid+y}
7558 then :
7559 printf %s "(cached) " >&6
7560 else $as_nop
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7563 int i;
7564 int
7565 main (void)
7566 {
7567
7568 ;
7569 return 0;
7570 }
7571 _ACEOF
7572 if ac_fn_c_try_link "$LINENO"
7573 then :
7574 eval $cacheid=yes
7575 else $as_nop
7576 eval $cacheid=no
7577 fi
7578 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7579 conftest$ac_exeext conftest.$ac_ext
7580 fi
7581
7582
7583 CFLAGS="$xorg_testset_save_CFLAGS"
7584
7585 eval supported=\$$cacheid
7586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7587 printf "%s\n" "$supported" >&6; }
7588 if test "$supported" = "yes" ; then
7589 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7590 found="yes"
7591 fi
7592 fi
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608 xorg_testset_save_CFLAGS="$CFLAGS"
7609
7610 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7613 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7614 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7615 then :
7616 printf %s "(cached) " >&6
7617 else $as_nop
7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h. */
7620 int i;
7621 _ACEOF
7622 if ac_fn_c_try_compile "$LINENO"
7623 then :
7624 xorg_cv_cc_flag_unknown_warning_option=yes
7625 else $as_nop
7626 xorg_cv_cc_flag_unknown_warning_option=no
7627 fi
7628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7629 fi
7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7631 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7632 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7633 CFLAGS="$xorg_testset_save_CFLAGS"
7634 fi
7635
7636 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7639 fi
7640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7642 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7643 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7644 then :
7645 printf %s "(cached) " >&6
7646 else $as_nop
7647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648 /* end confdefs.h. */
7649 int i;
7650 _ACEOF
7651 if ac_fn_c_try_compile "$LINENO"
7652 then :
7653 xorg_cv_cc_flag_unused_command_line_argument=yes
7654 else $as_nop
7655 xorg_cv_cc_flag_unused_command_line_argument=no
7656 fi
7657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7658 fi
7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7660 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7662 CFLAGS="$xorg_testset_save_CFLAGS"
7663 fi
7664
7665 found="no"
7666
7667 if test $found = "no" ; then
7668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7670 fi
7671
7672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7674 fi
7675
7676 CFLAGS="$CFLAGS -Werror=missing-braces"
7677
7678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7679 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7680 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7681 if eval test \${$cacheid+y}
7682 then :
7683 printf %s "(cached) " >&6
7684 else $as_nop
7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686 /* end confdefs.h. */
7687 int i;
7688 int
7689 main (void)
7690 {
7691
7692 ;
7693 return 0;
7694 }
7695 _ACEOF
7696 if ac_fn_c_try_link "$LINENO"
7697 then :
7698 eval $cacheid=yes
7699 else $as_nop
7700 eval $cacheid=no
7701 fi
7702 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7703 conftest$ac_exeext conftest.$ac_ext
7704 fi
7705
7706
7707 CFLAGS="$xorg_testset_save_CFLAGS"
7708
7709 eval supported=\$$cacheid
7710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7711 printf "%s\n" "$supported" >&6; }
7712 if test "$supported" = "yes" ; then
7713 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7714 found="yes"
7715 fi
7716 fi
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732 xorg_testset_save_CFLAGS="$CFLAGS"
7733
7734 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7737 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7738 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7739 then :
7740 printf %s "(cached) " >&6
7741 else $as_nop
7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h. */
7744 int i;
7745 _ACEOF
7746 if ac_fn_c_try_compile "$LINENO"
7747 then :
7748 xorg_cv_cc_flag_unknown_warning_option=yes
7749 else $as_nop
7750 xorg_cv_cc_flag_unknown_warning_option=no
7751 fi
7752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7753 fi
7754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7755 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7757 CFLAGS="$xorg_testset_save_CFLAGS"
7758 fi
7759
7760 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7763 fi
7764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7766 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7767 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7768 then :
7769 printf %s "(cached) " >&6
7770 else $as_nop
7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772 /* end confdefs.h. */
7773 int i;
7774 _ACEOF
7775 if ac_fn_c_try_compile "$LINENO"
7776 then :
7777 xorg_cv_cc_flag_unused_command_line_argument=yes
7778 else $as_nop
7779 xorg_cv_cc_flag_unused_command_line_argument=no
7780 fi
7781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7782 fi
7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7784 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7785 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7786 CFLAGS="$xorg_testset_save_CFLAGS"
7787 fi
7788
7789 found="no"
7790
7791 if test $found = "no" ; then
7792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7794 fi
7795
7796 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7798 fi
7799
7800 CFLAGS="$CFLAGS -Werror=sequence-point"
7801
7802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7803 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7804 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7805 if eval test \${$cacheid+y}
7806 then :
7807 printf %s "(cached) " >&6
7808 else $as_nop
7809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810 /* end confdefs.h. */
7811 int i;
7812 int
7813 main (void)
7814 {
7815
7816 ;
7817 return 0;
7818 }
7819 _ACEOF
7820 if ac_fn_c_try_link "$LINENO"
7821 then :
7822 eval $cacheid=yes
7823 else $as_nop
7824 eval $cacheid=no
7825 fi
7826 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7827 conftest$ac_exeext conftest.$ac_ext
7828 fi
7829
7830
7831 CFLAGS="$xorg_testset_save_CFLAGS"
7832
7833 eval supported=\$$cacheid
7834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7835 printf "%s\n" "$supported" >&6; }
7836 if test "$supported" = "yes" ; then
7837 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7838 found="yes"
7839 fi
7840 fi
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856 xorg_testset_save_CFLAGS="$CFLAGS"
7857
7858 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7861 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7862 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7863 then :
7864 printf %s "(cached) " >&6
7865 else $as_nop
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7868 int i;
7869 _ACEOF
7870 if ac_fn_c_try_compile "$LINENO"
7871 then :
7872 xorg_cv_cc_flag_unknown_warning_option=yes
7873 else $as_nop
7874 xorg_cv_cc_flag_unknown_warning_option=no
7875 fi
7876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7877 fi
7878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7879 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7880 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7881 CFLAGS="$xorg_testset_save_CFLAGS"
7882 fi
7883
7884 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7887 fi
7888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7890 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7891 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7892 then :
7893 printf %s "(cached) " >&6
7894 else $as_nop
7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7897 int i;
7898 _ACEOF
7899 if ac_fn_c_try_compile "$LINENO"
7900 then :
7901 xorg_cv_cc_flag_unused_command_line_argument=yes
7902 else $as_nop
7903 xorg_cv_cc_flag_unused_command_line_argument=no
7904 fi
7905 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7906 fi
7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7908 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7909 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7910 CFLAGS="$xorg_testset_save_CFLAGS"
7911 fi
7912
7913 found="no"
7914
7915 if test $found = "no" ; then
7916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7918 fi
7919
7920 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7922 fi
7923
7924 CFLAGS="$CFLAGS -Werror=return-type"
7925
7926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7927 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7928 cacheid=xorg_cv_cc_flag__Werror_return_type
7929 if eval test \${$cacheid+y}
7930 then :
7931 printf %s "(cached) " >&6
7932 else $as_nop
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7935 int i;
7936 int
7937 main (void)
7938 {
7939
7940 ;
7941 return 0;
7942 }
7943 _ACEOF
7944 if ac_fn_c_try_link "$LINENO"
7945 then :
7946 eval $cacheid=yes
7947 else $as_nop
7948 eval $cacheid=no
7949 fi
7950 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7951 conftest$ac_exeext conftest.$ac_ext
7952 fi
7953
7954
7955 CFLAGS="$xorg_testset_save_CFLAGS"
7956
7957 eval supported=\$$cacheid
7958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7959 printf "%s\n" "$supported" >&6; }
7960 if test "$supported" = "yes" ; then
7961 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7962 found="yes"
7963 fi
7964 fi
7965
7966 if test $found = "no" ; then
7967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7969 fi
7970
7971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7973 fi
7974
7975 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7976
7977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7978 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7979 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7980 if eval test \${$cacheid+y}
7981 then :
7982 printf %s "(cached) " >&6
7983 else $as_nop
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986 int i;
7987 int
7988 main (void)
7989 {
7990
7991 ;
7992 return 0;
7993 }
7994 _ACEOF
7995 if ac_fn_c_try_link "$LINENO"
7996 then :
7997 eval $cacheid=yes
7998 else $as_nop
7999 eval $cacheid=no
8000 fi
8001 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8002 conftest$ac_exeext conftest.$ac_ext
8003 fi
8004
8005
8006 CFLAGS="$xorg_testset_save_CFLAGS"
8007
8008 eval supported=\$$cacheid
8009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8010 printf "%s\n" "$supported" >&6; }
8011 if test "$supported" = "yes" ; then
8012 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8013 found="yes"
8014 fi
8015 fi
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031 xorg_testset_save_CFLAGS="$CFLAGS"
8032
8033 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8036 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8037 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8038 then :
8039 printf %s "(cached) " >&6
8040 else $as_nop
8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h. */
8043 int i;
8044 _ACEOF
8045 if ac_fn_c_try_compile "$LINENO"
8046 then :
8047 xorg_cv_cc_flag_unknown_warning_option=yes
8048 else $as_nop
8049 xorg_cv_cc_flag_unknown_warning_option=no
8050 fi
8051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8052 fi
8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8054 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8056 CFLAGS="$xorg_testset_save_CFLAGS"
8057 fi
8058
8059 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8062 fi
8063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8065 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8066 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8067 then :
8068 printf %s "(cached) " >&6
8069 else $as_nop
8070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071 /* end confdefs.h. */
8072 int i;
8073 _ACEOF
8074 if ac_fn_c_try_compile "$LINENO"
8075 then :
8076 xorg_cv_cc_flag_unused_command_line_argument=yes
8077 else $as_nop
8078 xorg_cv_cc_flag_unused_command_line_argument=no
8079 fi
8080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8081 fi
8082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8083 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8085 CFLAGS="$xorg_testset_save_CFLAGS"
8086 fi
8087
8088 found="no"
8089
8090 if test $found = "no" ; then
8091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8093 fi
8094
8095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8097 fi
8098
8099 CFLAGS="$CFLAGS -Werror=trigraphs"
8100
8101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8102 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8103 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8104 if eval test \${$cacheid+y}
8105 then :
8106 printf %s "(cached) " >&6
8107 else $as_nop
8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h. */
8110 int i;
8111 int
8112 main (void)
8113 {
8114
8115 ;
8116 return 0;
8117 }
8118 _ACEOF
8119 if ac_fn_c_try_link "$LINENO"
8120 then :
8121 eval $cacheid=yes
8122 else $as_nop
8123 eval $cacheid=no
8124 fi
8125 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8126 conftest$ac_exeext conftest.$ac_ext
8127 fi
8128
8129
8130 CFLAGS="$xorg_testset_save_CFLAGS"
8131
8132 eval supported=\$$cacheid
8133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8134 printf "%s\n" "$supported" >&6; }
8135 if test "$supported" = "yes" ; then
8136 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8137 found="yes"
8138 fi
8139 fi
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155 xorg_testset_save_CFLAGS="$CFLAGS"
8156
8157 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8160 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8161 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8162 then :
8163 printf %s "(cached) " >&6
8164 else $as_nop
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8167 int i;
8168 _ACEOF
8169 if ac_fn_c_try_compile "$LINENO"
8170 then :
8171 xorg_cv_cc_flag_unknown_warning_option=yes
8172 else $as_nop
8173 xorg_cv_cc_flag_unknown_warning_option=no
8174 fi
8175 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8176 fi
8177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8178 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8179 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8180 CFLAGS="$xorg_testset_save_CFLAGS"
8181 fi
8182
8183 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8186 fi
8187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8189 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8190 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8191 then :
8192 printf %s "(cached) " >&6
8193 else $as_nop
8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8196 int i;
8197 _ACEOF
8198 if ac_fn_c_try_compile "$LINENO"
8199 then :
8200 xorg_cv_cc_flag_unused_command_line_argument=yes
8201 else $as_nop
8202 xorg_cv_cc_flag_unused_command_line_argument=no
8203 fi
8204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8205 fi
8206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8207 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8208 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8209 CFLAGS="$xorg_testset_save_CFLAGS"
8210 fi
8211
8212 found="no"
8213
8214 if test $found = "no" ; then
8215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8217 fi
8218
8219 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8221 fi
8222
8223 CFLAGS="$CFLAGS -Werror=array-bounds"
8224
8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8226 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8227 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8228 if eval test \${$cacheid+y}
8229 then :
8230 printf %s "(cached) " >&6
8231 else $as_nop
8232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h. */
8234 int i;
8235 int
8236 main (void)
8237 {
8238
8239 ;
8240 return 0;
8241 }
8242 _ACEOF
8243 if ac_fn_c_try_link "$LINENO"
8244 then :
8245 eval $cacheid=yes
8246 else $as_nop
8247 eval $cacheid=no
8248 fi
8249 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8250 conftest$ac_exeext conftest.$ac_ext
8251 fi
8252
8253
8254 CFLAGS="$xorg_testset_save_CFLAGS"
8255
8256 eval supported=\$$cacheid
8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8258 printf "%s\n" "$supported" >&6; }
8259 if test "$supported" = "yes" ; then
8260 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8261 found="yes"
8262 fi
8263 fi
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279 xorg_testset_save_CFLAGS="$CFLAGS"
8280
8281 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8284 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8285 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8286 then :
8287 printf %s "(cached) " >&6
8288 else $as_nop
8289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290 /* end confdefs.h. */
8291 int i;
8292 _ACEOF
8293 if ac_fn_c_try_compile "$LINENO"
8294 then :
8295 xorg_cv_cc_flag_unknown_warning_option=yes
8296 else $as_nop
8297 xorg_cv_cc_flag_unknown_warning_option=no
8298 fi
8299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8300 fi
8301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8302 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8303 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8304 CFLAGS="$xorg_testset_save_CFLAGS"
8305 fi
8306
8307 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8310 fi
8311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8313 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8314 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8315 then :
8316 printf %s "(cached) " >&6
8317 else $as_nop
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8320 int i;
8321 _ACEOF
8322 if ac_fn_c_try_compile "$LINENO"
8323 then :
8324 xorg_cv_cc_flag_unused_command_line_argument=yes
8325 else $as_nop
8326 xorg_cv_cc_flag_unused_command_line_argument=no
8327 fi
8328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8329 fi
8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8331 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8332 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8333 CFLAGS="$xorg_testset_save_CFLAGS"
8334 fi
8335
8336 found="no"
8337
8338 if test $found = "no" ; then
8339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8341 fi
8342
8343 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8345 fi
8346
8347 CFLAGS="$CFLAGS -Werror=write-strings"
8348
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8350 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8351 cacheid=xorg_cv_cc_flag__Werror_write_strings
8352 if eval test \${$cacheid+y}
8353 then :
8354 printf %s "(cached) " >&6
8355 else $as_nop
8356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h. */
8358 int i;
8359 int
8360 main (void)
8361 {
8362
8363 ;
8364 return 0;
8365 }
8366 _ACEOF
8367 if ac_fn_c_try_link "$LINENO"
8368 then :
8369 eval $cacheid=yes
8370 else $as_nop
8371 eval $cacheid=no
8372 fi
8373 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8374 conftest$ac_exeext conftest.$ac_ext
8375 fi
8376
8377
8378 CFLAGS="$xorg_testset_save_CFLAGS"
8379
8380 eval supported=\$$cacheid
8381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8382 printf "%s\n" "$supported" >&6; }
8383 if test "$supported" = "yes" ; then
8384 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8385 found="yes"
8386 fi
8387 fi
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403 xorg_testset_save_CFLAGS="$CFLAGS"
8404
8405 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8408 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8409 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8410 then :
8411 printf %s "(cached) " >&6
8412 else $as_nop
8413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414 /* end confdefs.h. */
8415 int i;
8416 _ACEOF
8417 if ac_fn_c_try_compile "$LINENO"
8418 then :
8419 xorg_cv_cc_flag_unknown_warning_option=yes
8420 else $as_nop
8421 xorg_cv_cc_flag_unknown_warning_option=no
8422 fi
8423 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8424 fi
8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8426 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8428 CFLAGS="$xorg_testset_save_CFLAGS"
8429 fi
8430
8431 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8434 fi
8435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8437 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8438 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8439 then :
8440 printf %s "(cached) " >&6
8441 else $as_nop
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8444 int i;
8445 _ACEOF
8446 if ac_fn_c_try_compile "$LINENO"
8447 then :
8448 xorg_cv_cc_flag_unused_command_line_argument=yes
8449 else $as_nop
8450 xorg_cv_cc_flag_unused_command_line_argument=no
8451 fi
8452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8453 fi
8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8455 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8456 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8457 CFLAGS="$xorg_testset_save_CFLAGS"
8458 fi
8459
8460 found="no"
8461
8462 if test $found = "no" ; then
8463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8465 fi
8466
8467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8469 fi
8470
8471 CFLAGS="$CFLAGS -Werror=address"
8472
8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8474 printf %s "checking if $CC supports -Werror=address... " >&6; }
8475 cacheid=xorg_cv_cc_flag__Werror_address
8476 if eval test \${$cacheid+y}
8477 then :
8478 printf %s "(cached) " >&6
8479 else $as_nop
8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8482 int i;
8483 int
8484 main (void)
8485 {
8486
8487 ;
8488 return 0;
8489 }
8490 _ACEOF
8491 if ac_fn_c_try_link "$LINENO"
8492 then :
8493 eval $cacheid=yes
8494 else $as_nop
8495 eval $cacheid=no
8496 fi
8497 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8498 conftest$ac_exeext conftest.$ac_ext
8499 fi
8500
8501
8502 CFLAGS="$xorg_testset_save_CFLAGS"
8503
8504 eval supported=\$$cacheid
8505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8506 printf "%s\n" "$supported" >&6; }
8507 if test "$supported" = "yes" ; then
8508 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8509 found="yes"
8510 fi
8511 fi
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527 xorg_testset_save_CFLAGS="$CFLAGS"
8528
8529 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8532 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8533 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8534 then :
8535 printf %s "(cached) " >&6
8536 else $as_nop
8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h. */
8539 int i;
8540 _ACEOF
8541 if ac_fn_c_try_compile "$LINENO"
8542 then :
8543 xorg_cv_cc_flag_unknown_warning_option=yes
8544 else $as_nop
8545 xorg_cv_cc_flag_unknown_warning_option=no
8546 fi
8547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8548 fi
8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8550 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8552 CFLAGS="$xorg_testset_save_CFLAGS"
8553 fi
8554
8555 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8558 fi
8559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8561 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8562 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8563 then :
8564 printf %s "(cached) " >&6
8565 else $as_nop
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8568 int i;
8569 _ACEOF
8570 if ac_fn_c_try_compile "$LINENO"
8571 then :
8572 xorg_cv_cc_flag_unused_command_line_argument=yes
8573 else $as_nop
8574 xorg_cv_cc_flag_unused_command_line_argument=no
8575 fi
8576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8577 fi
8578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8579 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8581 CFLAGS="$xorg_testset_save_CFLAGS"
8582 fi
8583
8584 found="no"
8585
8586 if test $found = "no" ; then
8587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8589 fi
8590
8591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8593 fi
8594
8595 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8596
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8598 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8599 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8600 if eval test \${$cacheid+y}
8601 then :
8602 printf %s "(cached) " >&6
8603 else $as_nop
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8606 int i;
8607 int
8608 main (void)
8609 {
8610
8611 ;
8612 return 0;
8613 }
8614 _ACEOF
8615 if ac_fn_c_try_link "$LINENO"
8616 then :
8617 eval $cacheid=yes
8618 else $as_nop
8619 eval $cacheid=no
8620 fi
8621 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8622 conftest$ac_exeext conftest.$ac_ext
8623 fi
8624
8625
8626 CFLAGS="$xorg_testset_save_CFLAGS"
8627
8628 eval supported=\$$cacheid
8629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8630 printf "%s\n" "$supported" >&6; }
8631 if test "$supported" = "yes" ; then
8632 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8633 found="yes"
8634 fi
8635 fi
8636
8637 if test $found = "no" ; then
8638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8640 fi
8641
8642 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8644 fi
8645
8646 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8647
8648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8649 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8650 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8651 if eval test \${$cacheid+y}
8652 then :
8653 printf %s "(cached) " >&6
8654 else $as_nop
8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8657 int i;
8658 int
8659 main (void)
8660 {
8661
8662 ;
8663 return 0;
8664 }
8665 _ACEOF
8666 if ac_fn_c_try_link "$LINENO"
8667 then :
8668 eval $cacheid=yes
8669 else $as_nop
8670 eval $cacheid=no
8671 fi
8672 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8673 conftest$ac_exeext conftest.$ac_ext
8674 fi
8675
8676
8677 CFLAGS="$xorg_testset_save_CFLAGS"
8678
8679 eval supported=\$$cacheid
8680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8681 printf "%s\n" "$supported" >&6; }
8682 if test "$supported" = "yes" ; then
8683 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8684 found="yes"
8685 fi
8686 fi
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702 xorg_testset_save_CFLAGS="$CFLAGS"
8703
8704 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8707 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8708 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8709 then :
8710 printf %s "(cached) " >&6
8711 else $as_nop
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8714 int i;
8715 _ACEOF
8716 if ac_fn_c_try_compile "$LINENO"
8717 then :
8718 xorg_cv_cc_flag_unknown_warning_option=yes
8719 else $as_nop
8720 xorg_cv_cc_flag_unknown_warning_option=no
8721 fi
8722 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8723 fi
8724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8725 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8727 CFLAGS="$xorg_testset_save_CFLAGS"
8728 fi
8729
8730 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8733 fi
8734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8736 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8737 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8738 then :
8739 printf %s "(cached) " >&6
8740 else $as_nop
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8743 int i;
8744 _ACEOF
8745 if ac_fn_c_try_compile "$LINENO"
8746 then :
8747 xorg_cv_cc_flag_unused_command_line_argument=yes
8748 else $as_nop
8749 xorg_cv_cc_flag_unused_command_line_argument=no
8750 fi
8751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8752 fi
8753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8754 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8756 CFLAGS="$xorg_testset_save_CFLAGS"
8757 fi
8758
8759 found="no"
8760
8761 if test $found = "no" ; then
8762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8764 fi
8765
8766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8768 fi
8769
8770 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8771
8772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8773 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8774 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8775 if eval test \${$cacheid+y}
8776 then :
8777 printf %s "(cached) " >&6
8778 else $as_nop
8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8781 int i;
8782 int
8783 main (void)
8784 {
8785
8786 ;
8787 return 0;
8788 }
8789 _ACEOF
8790 if ac_fn_c_try_link "$LINENO"
8791 then :
8792 eval $cacheid=yes
8793 else $as_nop
8794 eval $cacheid=no
8795 fi
8796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8797 conftest$ac_exeext conftest.$ac_ext
8798 fi
8799
8800
8801 CFLAGS="$xorg_testset_save_CFLAGS"
8802
8803 eval supported=\$$cacheid
8804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8805 printf "%s\n" "$supported" >&6; }
8806 if test "$supported" = "yes" ; then
8807 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8808 found="yes"
8809 fi
8810 fi
8811
8812 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8813 else
8814 { 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
8815 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;}
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829 xorg_testset_save_CFLAGS="$CFLAGS"
8830
8831 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8834 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8835 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8836 then :
8837 printf %s "(cached) " >&6
8838 else $as_nop
8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8841 int i;
8842 _ACEOF
8843 if ac_fn_c_try_compile "$LINENO"
8844 then :
8845 xorg_cv_cc_flag_unknown_warning_option=yes
8846 else $as_nop
8847 xorg_cv_cc_flag_unknown_warning_option=no
8848 fi
8849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8850 fi
8851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8852 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8854 CFLAGS="$xorg_testset_save_CFLAGS"
8855 fi
8856
8857 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8860 fi
8861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8863 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8864 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8865 then :
8866 printf %s "(cached) " >&6
8867 else $as_nop
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8870 int i;
8871 _ACEOF
8872 if ac_fn_c_try_compile "$LINENO"
8873 then :
8874 xorg_cv_cc_flag_unused_command_line_argument=yes
8875 else $as_nop
8876 xorg_cv_cc_flag_unused_command_line_argument=no
8877 fi
8878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8879 fi
8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8881 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8883 CFLAGS="$xorg_testset_save_CFLAGS"
8884 fi
8885
8886 found="no"
8887
8888 if test $found = "no" ; then
8889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8891 fi
8892
8893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8895 fi
8896
8897 CFLAGS="$CFLAGS -Wimplicit"
8898
8899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8900 printf %s "checking if $CC supports -Wimplicit... " >&6; }
8901 cacheid=xorg_cv_cc_flag__Wimplicit
8902 if eval test \${$cacheid+y}
8903 then :
8904 printf %s "(cached) " >&6
8905 else $as_nop
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8908 int i;
8909 int
8910 main (void)
8911 {
8912
8913 ;
8914 return 0;
8915 }
8916 _ACEOF
8917 if ac_fn_c_try_link "$LINENO"
8918 then :
8919 eval $cacheid=yes
8920 else $as_nop
8921 eval $cacheid=no
8922 fi
8923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8924 conftest$ac_exeext conftest.$ac_ext
8925 fi
8926
8927
8928 CFLAGS="$xorg_testset_save_CFLAGS"
8929
8930 eval supported=\$$cacheid
8931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8932 printf "%s\n" "$supported" >&6; }
8933 if test "$supported" = "yes" ; then
8934 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8935 found="yes"
8936 fi
8937 fi
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953 xorg_testset_save_CFLAGS="$CFLAGS"
8954
8955 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8958 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8959 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8960 then :
8961 printf %s "(cached) " >&6
8962 else $as_nop
8963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8965 int i;
8966 _ACEOF
8967 if ac_fn_c_try_compile "$LINENO"
8968 then :
8969 xorg_cv_cc_flag_unknown_warning_option=yes
8970 else $as_nop
8971 xorg_cv_cc_flag_unknown_warning_option=no
8972 fi
8973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8974 fi
8975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8976 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8978 CFLAGS="$xorg_testset_save_CFLAGS"
8979 fi
8980
8981 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8984 fi
8985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8987 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8988 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8989 then :
8990 printf %s "(cached) " >&6
8991 else $as_nop
8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h. */
8994 int i;
8995 _ACEOF
8996 if ac_fn_c_try_compile "$LINENO"
8997 then :
8998 xorg_cv_cc_flag_unused_command_line_argument=yes
8999 else $as_nop
9000 xorg_cv_cc_flag_unused_command_line_argument=no
9001 fi
9002 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9003 fi
9004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9005 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9007 CFLAGS="$xorg_testset_save_CFLAGS"
9008 fi
9009
9010 found="no"
9011
9012 if test $found = "no" ; then
9013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9015 fi
9016
9017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9019 fi
9020
9021 CFLAGS="$CFLAGS -Wnonnull"
9022
9023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9024 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9025 cacheid=xorg_cv_cc_flag__Wnonnull
9026 if eval test \${$cacheid+y}
9027 then :
9028 printf %s "(cached) " >&6
9029 else $as_nop
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9032 int i;
9033 int
9034 main (void)
9035 {
9036
9037 ;
9038 return 0;
9039 }
9040 _ACEOF
9041 if ac_fn_c_try_link "$LINENO"
9042 then :
9043 eval $cacheid=yes
9044 else $as_nop
9045 eval $cacheid=no
9046 fi
9047 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9048 conftest$ac_exeext conftest.$ac_ext
9049 fi
9050
9051
9052 CFLAGS="$xorg_testset_save_CFLAGS"
9053
9054 eval supported=\$$cacheid
9055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9056 printf "%s\n" "$supported" >&6; }
9057 if test "$supported" = "yes" ; then
9058 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9059 found="yes"
9060 fi
9061 fi
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077 xorg_testset_save_CFLAGS="$CFLAGS"
9078
9079 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9082 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9083 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9084 then :
9085 printf %s "(cached) " >&6
9086 else $as_nop
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9089 int i;
9090 _ACEOF
9091 if ac_fn_c_try_compile "$LINENO"
9092 then :
9093 xorg_cv_cc_flag_unknown_warning_option=yes
9094 else $as_nop
9095 xorg_cv_cc_flag_unknown_warning_option=no
9096 fi
9097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9098 fi
9099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9100 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9102 CFLAGS="$xorg_testset_save_CFLAGS"
9103 fi
9104
9105 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9108 fi
9109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9111 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9112 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9113 then :
9114 printf %s "(cached) " >&6
9115 else $as_nop
9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9118 int i;
9119 _ACEOF
9120 if ac_fn_c_try_compile "$LINENO"
9121 then :
9122 xorg_cv_cc_flag_unused_command_line_argument=yes
9123 else $as_nop
9124 xorg_cv_cc_flag_unused_command_line_argument=no
9125 fi
9126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9127 fi
9128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9129 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9130 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9131 CFLAGS="$xorg_testset_save_CFLAGS"
9132 fi
9133
9134 found="no"
9135
9136 if test $found = "no" ; then
9137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9139 fi
9140
9141 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9143 fi
9144
9145 CFLAGS="$CFLAGS -Winit-self"
9146
9147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9148 printf %s "checking if $CC supports -Winit-self... " >&6; }
9149 cacheid=xorg_cv_cc_flag__Winit_self
9150 if eval test \${$cacheid+y}
9151 then :
9152 printf %s "(cached) " >&6
9153 else $as_nop
9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155 /* end confdefs.h. */
9156 int i;
9157 int
9158 main (void)
9159 {
9160
9161 ;
9162 return 0;
9163 }
9164 _ACEOF
9165 if ac_fn_c_try_link "$LINENO"
9166 then :
9167 eval $cacheid=yes
9168 else $as_nop
9169 eval $cacheid=no
9170 fi
9171 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9172 conftest$ac_exeext conftest.$ac_ext
9173 fi
9174
9175
9176 CFLAGS="$xorg_testset_save_CFLAGS"
9177
9178 eval supported=\$$cacheid
9179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9180 printf "%s\n" "$supported" >&6; }
9181 if test "$supported" = "yes" ; then
9182 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9183 found="yes"
9184 fi
9185 fi
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201 xorg_testset_save_CFLAGS="$CFLAGS"
9202
9203 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9206 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9207 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9208 then :
9209 printf %s "(cached) " >&6
9210 else $as_nop
9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9213 int i;
9214 _ACEOF
9215 if ac_fn_c_try_compile "$LINENO"
9216 then :
9217 xorg_cv_cc_flag_unknown_warning_option=yes
9218 else $as_nop
9219 xorg_cv_cc_flag_unknown_warning_option=no
9220 fi
9221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9222 fi
9223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9224 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9225 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9226 CFLAGS="$xorg_testset_save_CFLAGS"
9227 fi
9228
9229 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9232 fi
9233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9235 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9236 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9237 then :
9238 printf %s "(cached) " >&6
9239 else $as_nop
9240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9241 /* end confdefs.h. */
9242 int i;
9243 _ACEOF
9244 if ac_fn_c_try_compile "$LINENO"
9245 then :
9246 xorg_cv_cc_flag_unused_command_line_argument=yes
9247 else $as_nop
9248 xorg_cv_cc_flag_unused_command_line_argument=no
9249 fi
9250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9251 fi
9252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9253 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9254 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9255 CFLAGS="$xorg_testset_save_CFLAGS"
9256 fi
9257
9258 found="no"
9259
9260 if test $found = "no" ; then
9261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9263 fi
9264
9265 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9267 fi
9268
9269 CFLAGS="$CFLAGS -Wmain"
9270
9271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9272 printf %s "checking if $CC supports -Wmain... " >&6; }
9273 cacheid=xorg_cv_cc_flag__Wmain
9274 if eval test \${$cacheid+y}
9275 then :
9276 printf %s "(cached) " >&6
9277 else $as_nop
9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h. */
9280 int i;
9281 int
9282 main (void)
9283 {
9284
9285 ;
9286 return 0;
9287 }
9288 _ACEOF
9289 if ac_fn_c_try_link "$LINENO"
9290 then :
9291 eval $cacheid=yes
9292 else $as_nop
9293 eval $cacheid=no
9294 fi
9295 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9296 conftest$ac_exeext conftest.$ac_ext
9297 fi
9298
9299
9300 CFLAGS="$xorg_testset_save_CFLAGS"
9301
9302 eval supported=\$$cacheid
9303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9304 printf "%s\n" "$supported" >&6; }
9305 if test "$supported" = "yes" ; then
9306 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9307 found="yes"
9308 fi
9309 fi
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325 xorg_testset_save_CFLAGS="$CFLAGS"
9326
9327 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9330 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9331 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9332 then :
9333 printf %s "(cached) " >&6
9334 else $as_nop
9335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336 /* end confdefs.h. */
9337 int i;
9338 _ACEOF
9339 if ac_fn_c_try_compile "$LINENO"
9340 then :
9341 xorg_cv_cc_flag_unknown_warning_option=yes
9342 else $as_nop
9343 xorg_cv_cc_flag_unknown_warning_option=no
9344 fi
9345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9346 fi
9347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9348 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9350 CFLAGS="$xorg_testset_save_CFLAGS"
9351 fi
9352
9353 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9356 fi
9357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9359 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9360 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9361 then :
9362 printf %s "(cached) " >&6
9363 else $as_nop
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9366 int i;
9367 _ACEOF
9368 if ac_fn_c_try_compile "$LINENO"
9369 then :
9370 xorg_cv_cc_flag_unused_command_line_argument=yes
9371 else $as_nop
9372 xorg_cv_cc_flag_unused_command_line_argument=no
9373 fi
9374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9375 fi
9376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9377 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9379 CFLAGS="$xorg_testset_save_CFLAGS"
9380 fi
9381
9382 found="no"
9383
9384 if test $found = "no" ; then
9385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9387 fi
9388
9389 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9391 fi
9392
9393 CFLAGS="$CFLAGS -Wmissing-braces"
9394
9395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9396 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9397 cacheid=xorg_cv_cc_flag__Wmissing_braces
9398 if eval test \${$cacheid+y}
9399 then :
9400 printf %s "(cached) " >&6
9401 else $as_nop
9402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403 /* end confdefs.h. */
9404 int i;
9405 int
9406 main (void)
9407 {
9408
9409 ;
9410 return 0;
9411 }
9412 _ACEOF
9413 if ac_fn_c_try_link "$LINENO"
9414 then :
9415 eval $cacheid=yes
9416 else $as_nop
9417 eval $cacheid=no
9418 fi
9419 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9420 conftest$ac_exeext conftest.$ac_ext
9421 fi
9422
9423
9424 CFLAGS="$xorg_testset_save_CFLAGS"
9425
9426 eval supported=\$$cacheid
9427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9428 printf "%s\n" "$supported" >&6; }
9429 if test "$supported" = "yes" ; then
9430 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9431 found="yes"
9432 fi
9433 fi
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449 xorg_testset_save_CFLAGS="$CFLAGS"
9450
9451 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9454 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9455 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9456 then :
9457 printf %s "(cached) " >&6
9458 else $as_nop
9459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460 /* end confdefs.h. */
9461 int i;
9462 _ACEOF
9463 if ac_fn_c_try_compile "$LINENO"
9464 then :
9465 xorg_cv_cc_flag_unknown_warning_option=yes
9466 else $as_nop
9467 xorg_cv_cc_flag_unknown_warning_option=no
9468 fi
9469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9470 fi
9471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9472 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9473 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9474 CFLAGS="$xorg_testset_save_CFLAGS"
9475 fi
9476
9477 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9480 fi
9481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9483 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9484 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9485 then :
9486 printf %s "(cached) " >&6
9487 else $as_nop
9488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489 /* end confdefs.h. */
9490 int i;
9491 _ACEOF
9492 if ac_fn_c_try_compile "$LINENO"
9493 then :
9494 xorg_cv_cc_flag_unused_command_line_argument=yes
9495 else $as_nop
9496 xorg_cv_cc_flag_unused_command_line_argument=no
9497 fi
9498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9499 fi
9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9501 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9502 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9503 CFLAGS="$xorg_testset_save_CFLAGS"
9504 fi
9505
9506 found="no"
9507
9508 if test $found = "no" ; then
9509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9511 fi
9512
9513 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9515 fi
9516
9517 CFLAGS="$CFLAGS -Wsequence-point"
9518
9519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9520 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9521 cacheid=xorg_cv_cc_flag__Wsequence_point
9522 if eval test \${$cacheid+y}
9523 then :
9524 printf %s "(cached) " >&6
9525 else $as_nop
9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527 /* end confdefs.h. */
9528 int i;
9529 int
9530 main (void)
9531 {
9532
9533 ;
9534 return 0;
9535 }
9536 _ACEOF
9537 if ac_fn_c_try_link "$LINENO"
9538 then :
9539 eval $cacheid=yes
9540 else $as_nop
9541 eval $cacheid=no
9542 fi
9543 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9544 conftest$ac_exeext conftest.$ac_ext
9545 fi
9546
9547
9548 CFLAGS="$xorg_testset_save_CFLAGS"
9549
9550 eval supported=\$$cacheid
9551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9552 printf "%s\n" "$supported" >&6; }
9553 if test "$supported" = "yes" ; then
9554 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9555 found="yes"
9556 fi
9557 fi
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573 xorg_testset_save_CFLAGS="$CFLAGS"
9574
9575 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9578 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9579 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9580 then :
9581 printf %s "(cached) " >&6
9582 else $as_nop
9583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h. */
9585 int i;
9586 _ACEOF
9587 if ac_fn_c_try_compile "$LINENO"
9588 then :
9589 xorg_cv_cc_flag_unknown_warning_option=yes
9590 else $as_nop
9591 xorg_cv_cc_flag_unknown_warning_option=no
9592 fi
9593 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9594 fi
9595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9596 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9597 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9598 CFLAGS="$xorg_testset_save_CFLAGS"
9599 fi
9600
9601 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9604 fi
9605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9607 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9608 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9609 then :
9610 printf %s "(cached) " >&6
9611 else $as_nop
9612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h. */
9614 int i;
9615 _ACEOF
9616 if ac_fn_c_try_compile "$LINENO"
9617 then :
9618 xorg_cv_cc_flag_unused_command_line_argument=yes
9619 else $as_nop
9620 xorg_cv_cc_flag_unused_command_line_argument=no
9621 fi
9622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9623 fi
9624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9625 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9627 CFLAGS="$xorg_testset_save_CFLAGS"
9628 fi
9629
9630 found="no"
9631
9632 if test $found = "no" ; then
9633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9635 fi
9636
9637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9639 fi
9640
9641 CFLAGS="$CFLAGS -Wreturn-type"
9642
9643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9644 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9645 cacheid=xorg_cv_cc_flag__Wreturn_type
9646 if eval test \${$cacheid+y}
9647 then :
9648 printf %s "(cached) " >&6
9649 else $as_nop
9650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651 /* end confdefs.h. */
9652 int i;
9653 int
9654 main (void)
9655 {
9656
9657 ;
9658 return 0;
9659 }
9660 _ACEOF
9661 if ac_fn_c_try_link "$LINENO"
9662 then :
9663 eval $cacheid=yes
9664 else $as_nop
9665 eval $cacheid=no
9666 fi
9667 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9668 conftest$ac_exeext conftest.$ac_ext
9669 fi
9670
9671
9672 CFLAGS="$xorg_testset_save_CFLAGS"
9673
9674 eval supported=\$$cacheid
9675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9676 printf "%s\n" "$supported" >&6; }
9677 if test "$supported" = "yes" ; then
9678 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9679 found="yes"
9680 fi
9681 fi
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697 xorg_testset_save_CFLAGS="$CFLAGS"
9698
9699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9702 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9703 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9704 then :
9705 printf %s "(cached) " >&6
9706 else $as_nop
9707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708 /* end confdefs.h. */
9709 int i;
9710 _ACEOF
9711 if ac_fn_c_try_compile "$LINENO"
9712 then :
9713 xorg_cv_cc_flag_unknown_warning_option=yes
9714 else $as_nop
9715 xorg_cv_cc_flag_unknown_warning_option=no
9716 fi
9717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9718 fi
9719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9720 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9722 CFLAGS="$xorg_testset_save_CFLAGS"
9723 fi
9724
9725 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9728 fi
9729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9731 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9732 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9733 then :
9734 printf %s "(cached) " >&6
9735 else $as_nop
9736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h. */
9738 int i;
9739 _ACEOF
9740 if ac_fn_c_try_compile "$LINENO"
9741 then :
9742 xorg_cv_cc_flag_unused_command_line_argument=yes
9743 else $as_nop
9744 xorg_cv_cc_flag_unused_command_line_argument=no
9745 fi
9746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9747 fi
9748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9749 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9750 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9751 CFLAGS="$xorg_testset_save_CFLAGS"
9752 fi
9753
9754 found="no"
9755
9756 if test $found = "no" ; then
9757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9759 fi
9760
9761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9763 fi
9764
9765 CFLAGS="$CFLAGS -Wtrigraphs"
9766
9767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9768 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9769 cacheid=xorg_cv_cc_flag__Wtrigraphs
9770 if eval test \${$cacheid+y}
9771 then :
9772 printf %s "(cached) " >&6
9773 else $as_nop
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9776 int i;
9777 int
9778 main (void)
9779 {
9780
9781 ;
9782 return 0;
9783 }
9784 _ACEOF
9785 if ac_fn_c_try_link "$LINENO"
9786 then :
9787 eval $cacheid=yes
9788 else $as_nop
9789 eval $cacheid=no
9790 fi
9791 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9792 conftest$ac_exeext conftest.$ac_ext
9793 fi
9794
9795
9796 CFLAGS="$xorg_testset_save_CFLAGS"
9797
9798 eval supported=\$$cacheid
9799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9800 printf "%s\n" "$supported" >&6; }
9801 if test "$supported" = "yes" ; then
9802 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9803 found="yes"
9804 fi
9805 fi
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821 xorg_testset_save_CFLAGS="$CFLAGS"
9822
9823 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9826 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9827 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9828 then :
9829 printf %s "(cached) " >&6
9830 else $as_nop
9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832 /* end confdefs.h. */
9833 int i;
9834 _ACEOF
9835 if ac_fn_c_try_compile "$LINENO"
9836 then :
9837 xorg_cv_cc_flag_unknown_warning_option=yes
9838 else $as_nop
9839 xorg_cv_cc_flag_unknown_warning_option=no
9840 fi
9841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9842 fi
9843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9844 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9845 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9846 CFLAGS="$xorg_testset_save_CFLAGS"
9847 fi
9848
9849 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9852 fi
9853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9855 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9856 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9857 then :
9858 printf %s "(cached) " >&6
9859 else $as_nop
9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h. */
9862 int i;
9863 _ACEOF
9864 if ac_fn_c_try_compile "$LINENO"
9865 then :
9866 xorg_cv_cc_flag_unused_command_line_argument=yes
9867 else $as_nop
9868 xorg_cv_cc_flag_unused_command_line_argument=no
9869 fi
9870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9871 fi
9872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9873 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9875 CFLAGS="$xorg_testset_save_CFLAGS"
9876 fi
9877
9878 found="no"
9879
9880 if test $found = "no" ; then
9881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9883 fi
9884
9885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9887 fi
9888
9889 CFLAGS="$CFLAGS -Warray-bounds"
9890
9891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9892 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9893 cacheid=xorg_cv_cc_flag__Warray_bounds
9894 if eval test \${$cacheid+y}
9895 then :
9896 printf %s "(cached) " >&6
9897 else $as_nop
9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899 /* end confdefs.h. */
9900 int i;
9901 int
9902 main (void)
9903 {
9904
9905 ;
9906 return 0;
9907 }
9908 _ACEOF
9909 if ac_fn_c_try_link "$LINENO"
9910 then :
9911 eval $cacheid=yes
9912 else $as_nop
9913 eval $cacheid=no
9914 fi
9915 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9916 conftest$ac_exeext conftest.$ac_ext
9917 fi
9918
9919
9920 CFLAGS="$xorg_testset_save_CFLAGS"
9921
9922 eval supported=\$$cacheid
9923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9924 printf "%s\n" "$supported" >&6; }
9925 if test "$supported" = "yes" ; then
9926 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9927 found="yes"
9928 fi
9929 fi
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945 xorg_testset_save_CFLAGS="$CFLAGS"
9946
9947 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9950 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9951 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9952 then :
9953 printf %s "(cached) " >&6
9954 else $as_nop
9955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h. */
9957 int i;
9958 _ACEOF
9959 if ac_fn_c_try_compile "$LINENO"
9960 then :
9961 xorg_cv_cc_flag_unknown_warning_option=yes
9962 else $as_nop
9963 xorg_cv_cc_flag_unknown_warning_option=no
9964 fi
9965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9966 fi
9967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9968 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9970 CFLAGS="$xorg_testset_save_CFLAGS"
9971 fi
9972
9973 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9976 fi
9977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9979 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9980 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9981 then :
9982 printf %s "(cached) " >&6
9983 else $as_nop
9984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985 /* end confdefs.h. */
9986 int i;
9987 _ACEOF
9988 if ac_fn_c_try_compile "$LINENO"
9989 then :
9990 xorg_cv_cc_flag_unused_command_line_argument=yes
9991 else $as_nop
9992 xorg_cv_cc_flag_unused_command_line_argument=no
9993 fi
9994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9995 fi
9996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9997 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9999 CFLAGS="$xorg_testset_save_CFLAGS"
10000 fi
10001
10002 found="no"
10003
10004 if test $found = "no" ; then
10005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10007 fi
10008
10009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10011 fi
10012
10013 CFLAGS="$CFLAGS -Wwrite-strings"
10014
10015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10016 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10017 cacheid=xorg_cv_cc_flag__Wwrite_strings
10018 if eval test \${$cacheid+y}
10019 then :
10020 printf %s "(cached) " >&6
10021 else $as_nop
10022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023 /* end confdefs.h. */
10024 int i;
10025 int
10026 main (void)
10027 {
10028
10029 ;
10030 return 0;
10031 }
10032 _ACEOF
10033 if ac_fn_c_try_link "$LINENO"
10034 then :
10035 eval $cacheid=yes
10036 else $as_nop
10037 eval $cacheid=no
10038 fi
10039 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10040 conftest$ac_exeext conftest.$ac_ext
10041 fi
10042
10043
10044 CFLAGS="$xorg_testset_save_CFLAGS"
10045
10046 eval supported=\$$cacheid
10047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10048 printf "%s\n" "$supported" >&6; }
10049 if test "$supported" = "yes" ; then
10050 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10051 found="yes"
10052 fi
10053 fi
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069 xorg_testset_save_CFLAGS="$CFLAGS"
10070
10071 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10074 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10075 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10076 then :
10077 printf %s "(cached) " >&6
10078 else $as_nop
10079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080 /* end confdefs.h. */
10081 int i;
10082 _ACEOF
10083 if ac_fn_c_try_compile "$LINENO"
10084 then :
10085 xorg_cv_cc_flag_unknown_warning_option=yes
10086 else $as_nop
10087 xorg_cv_cc_flag_unknown_warning_option=no
10088 fi
10089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10090 fi
10091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10092 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10094 CFLAGS="$xorg_testset_save_CFLAGS"
10095 fi
10096
10097 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10100 fi
10101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10103 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10104 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10105 then :
10106 printf %s "(cached) " >&6
10107 else $as_nop
10108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109 /* end confdefs.h. */
10110 int i;
10111 _ACEOF
10112 if ac_fn_c_try_compile "$LINENO"
10113 then :
10114 xorg_cv_cc_flag_unused_command_line_argument=yes
10115 else $as_nop
10116 xorg_cv_cc_flag_unused_command_line_argument=no
10117 fi
10118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10119 fi
10120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10121 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10123 CFLAGS="$xorg_testset_save_CFLAGS"
10124 fi
10125
10126 found="no"
10127
10128 if test $found = "no" ; then
10129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10131 fi
10132
10133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10135 fi
10136
10137 CFLAGS="$CFLAGS -Waddress"
10138
10139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10140 printf %s "checking if $CC supports -Waddress... " >&6; }
10141 cacheid=xorg_cv_cc_flag__Waddress
10142 if eval test \${$cacheid+y}
10143 then :
10144 printf %s "(cached) " >&6
10145 else $as_nop
10146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147 /* end confdefs.h. */
10148 int i;
10149 int
10150 main (void)
10151 {
10152
10153 ;
10154 return 0;
10155 }
10156 _ACEOF
10157 if ac_fn_c_try_link "$LINENO"
10158 then :
10159 eval $cacheid=yes
10160 else $as_nop
10161 eval $cacheid=no
10162 fi
10163 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10164 conftest$ac_exeext conftest.$ac_ext
10165 fi
10166
10167
10168 CFLAGS="$xorg_testset_save_CFLAGS"
10169
10170 eval supported=\$$cacheid
10171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10172 printf "%s\n" "$supported" >&6; }
10173 if test "$supported" = "yes" ; then
10174 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10175 found="yes"
10176 fi
10177 fi
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193 xorg_testset_save_CFLAGS="$CFLAGS"
10194
10195 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10198 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10199 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10200 then :
10201 printf %s "(cached) " >&6
10202 else $as_nop
10203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204 /* end confdefs.h. */
10205 int i;
10206 _ACEOF
10207 if ac_fn_c_try_compile "$LINENO"
10208 then :
10209 xorg_cv_cc_flag_unknown_warning_option=yes
10210 else $as_nop
10211 xorg_cv_cc_flag_unknown_warning_option=no
10212 fi
10213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10214 fi
10215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10216 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10218 CFLAGS="$xorg_testset_save_CFLAGS"
10219 fi
10220
10221 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10224 fi
10225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10227 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10228 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10229 then :
10230 printf %s "(cached) " >&6
10231 else $as_nop
10232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10233 /* end confdefs.h. */
10234 int i;
10235 _ACEOF
10236 if ac_fn_c_try_compile "$LINENO"
10237 then :
10238 xorg_cv_cc_flag_unused_command_line_argument=yes
10239 else $as_nop
10240 xorg_cv_cc_flag_unused_command_line_argument=no
10241 fi
10242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10243 fi
10244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10245 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10247 CFLAGS="$xorg_testset_save_CFLAGS"
10248 fi
10249
10250 found="no"
10251
10252 if test $found = "no" ; then
10253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10255 fi
10256
10257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10259 fi
10260
10261 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10262
10263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10264 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10265 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10266 if eval test \${$cacheid+y}
10267 then :
10268 printf %s "(cached) " >&6
10269 else $as_nop
10270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10271 /* end confdefs.h. */
10272 int i;
10273 int
10274 main (void)
10275 {
10276
10277 ;
10278 return 0;
10279 }
10280 _ACEOF
10281 if ac_fn_c_try_link "$LINENO"
10282 then :
10283 eval $cacheid=yes
10284 else $as_nop
10285 eval $cacheid=no
10286 fi
10287 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10288 conftest$ac_exeext conftest.$ac_ext
10289 fi
10290
10291
10292 CFLAGS="$xorg_testset_save_CFLAGS"
10293
10294 eval supported=\$$cacheid
10295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10296 printf "%s\n" "$supported" >&6; }
10297 if test "$supported" = "yes" ; then
10298 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10299 found="yes"
10300 fi
10301 fi
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317 xorg_testset_save_CFLAGS="$CFLAGS"
10318
10319 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10322 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10323 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10324 then :
10325 printf %s "(cached) " >&6
10326 else $as_nop
10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10329 int i;
10330 _ACEOF
10331 if ac_fn_c_try_compile "$LINENO"
10332 then :
10333 xorg_cv_cc_flag_unknown_warning_option=yes
10334 else $as_nop
10335 xorg_cv_cc_flag_unknown_warning_option=no
10336 fi
10337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10338 fi
10339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10340 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10342 CFLAGS="$xorg_testset_save_CFLAGS"
10343 fi
10344
10345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10348 fi
10349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10351 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10352 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10353 then :
10354 printf %s "(cached) " >&6
10355 else $as_nop
10356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357 /* end confdefs.h. */
10358 int i;
10359 _ACEOF
10360 if ac_fn_c_try_compile "$LINENO"
10361 then :
10362 xorg_cv_cc_flag_unused_command_line_argument=yes
10363 else $as_nop
10364 xorg_cv_cc_flag_unused_command_line_argument=no
10365 fi
10366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10367 fi
10368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10369 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10371 CFLAGS="$xorg_testset_save_CFLAGS"
10372 fi
10373
10374 found="no"
10375
10376 if test $found = "no" ; then
10377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10379 fi
10380
10381 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10383 fi
10384
10385 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10386
10387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10388 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10389 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10390 if eval test \${$cacheid+y}
10391 then :
10392 printf %s "(cached) " >&6
10393 else $as_nop
10394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10395 /* end confdefs.h. */
10396 int i;
10397 int
10398 main (void)
10399 {
10400
10401 ;
10402 return 0;
10403 }
10404 _ACEOF
10405 if ac_fn_c_try_link "$LINENO"
10406 then :
10407 eval $cacheid=yes
10408 else $as_nop
10409 eval $cacheid=no
10410 fi
10411 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10412 conftest$ac_exeext conftest.$ac_ext
10413 fi
10414
10415
10416 CFLAGS="$xorg_testset_save_CFLAGS"
10417
10418 eval supported=\$$cacheid
10419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10420 printf "%s\n" "$supported" >&6; }
10421 if test "$supported" = "yes" ; then
10422 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10423 found="yes"
10424 fi
10425 fi
10426
10427
10428 fi
10429
10430
10431
10432
10433
10434
10435
10436 CWARNFLAGS="$BASE_CFLAGS"
10437 if test "x$GCC" = xyes ; then
10438 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10439 fi
10440
10441
10442
10443
10444
10445
10446
10447
10448 # Check whether --enable-strict-compilation was given.
10449 if test ${enable_strict_compilation+y}
10450 then :
10451 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10452 else $as_nop
10453 STRICT_COMPILE=no
10454 fi
10455
10456
10457
10458
10459
10460
10461 STRICT_CFLAGS=""
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475 xorg_testset_save_CFLAGS="$CFLAGS"
10476
10477 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10480 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10481 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10482 then :
10483 printf %s "(cached) " >&6
10484 else $as_nop
10485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486 /* end confdefs.h. */
10487 int i;
10488 _ACEOF
10489 if ac_fn_c_try_compile "$LINENO"
10490 then :
10491 xorg_cv_cc_flag_unknown_warning_option=yes
10492 else $as_nop
10493 xorg_cv_cc_flag_unknown_warning_option=no
10494 fi
10495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10496 fi
10497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10498 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10500 CFLAGS="$xorg_testset_save_CFLAGS"
10501 fi
10502
10503 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10506 fi
10507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10509 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10510 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10511 then :
10512 printf %s "(cached) " >&6
10513 else $as_nop
10514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10515 /* end confdefs.h. */
10516 int i;
10517 _ACEOF
10518 if ac_fn_c_try_compile "$LINENO"
10519 then :
10520 xorg_cv_cc_flag_unused_command_line_argument=yes
10521 else $as_nop
10522 xorg_cv_cc_flag_unused_command_line_argument=no
10523 fi
10524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10525 fi
10526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10527 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10529 CFLAGS="$xorg_testset_save_CFLAGS"
10530 fi
10531
10532 found="no"
10533
10534 if test $found = "no" ; then
10535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10537 fi
10538
10539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10541 fi
10542
10543 CFLAGS="$CFLAGS -pedantic"
10544
10545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10546 printf %s "checking if $CC supports -pedantic... " >&6; }
10547 cacheid=xorg_cv_cc_flag__pedantic
10548 if eval test \${$cacheid+y}
10549 then :
10550 printf %s "(cached) " >&6
10551 else $as_nop
10552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553 /* end confdefs.h. */
10554 int i;
10555 int
10556 main (void)
10557 {
10558
10559 ;
10560 return 0;
10561 }
10562 _ACEOF
10563 if ac_fn_c_try_link "$LINENO"
10564 then :
10565 eval $cacheid=yes
10566 else $as_nop
10567 eval $cacheid=no
10568 fi
10569 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10570 conftest$ac_exeext conftest.$ac_ext
10571 fi
10572
10573
10574 CFLAGS="$xorg_testset_save_CFLAGS"
10575
10576 eval supported=\$$cacheid
10577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10578 printf "%s\n" "$supported" >&6; }
10579 if test "$supported" = "yes" ; then
10580 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10581 found="yes"
10582 fi
10583 fi
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599 xorg_testset_save_CFLAGS="$CFLAGS"
10600
10601 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10604 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10605 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10606 then :
10607 printf %s "(cached) " >&6
10608 else $as_nop
10609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h. */
10611 int i;
10612 _ACEOF
10613 if ac_fn_c_try_compile "$LINENO"
10614 then :
10615 xorg_cv_cc_flag_unknown_warning_option=yes
10616 else $as_nop
10617 xorg_cv_cc_flag_unknown_warning_option=no
10618 fi
10619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10620 fi
10621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10622 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10624 CFLAGS="$xorg_testset_save_CFLAGS"
10625 fi
10626
10627 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10630 fi
10631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10633 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10634 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10635 then :
10636 printf %s "(cached) " >&6
10637 else $as_nop
10638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h. */
10640 int i;
10641 _ACEOF
10642 if ac_fn_c_try_compile "$LINENO"
10643 then :
10644 xorg_cv_cc_flag_unused_command_line_argument=yes
10645 else $as_nop
10646 xorg_cv_cc_flag_unused_command_line_argument=no
10647 fi
10648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10649 fi
10650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10651 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10653 CFLAGS="$xorg_testset_save_CFLAGS"
10654 fi
10655
10656 found="no"
10657
10658 if test $found = "no" ; then
10659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10661 fi
10662
10663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10665 fi
10666
10667 CFLAGS="$CFLAGS -Werror"
10668
10669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10670 printf %s "checking if $CC supports -Werror... " >&6; }
10671 cacheid=xorg_cv_cc_flag__Werror
10672 if eval test \${$cacheid+y}
10673 then :
10674 printf %s "(cached) " >&6
10675 else $as_nop
10676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10677 /* end confdefs.h. */
10678 int i;
10679 int
10680 main (void)
10681 {
10682
10683 ;
10684 return 0;
10685 }
10686 _ACEOF
10687 if ac_fn_c_try_link "$LINENO"
10688 then :
10689 eval $cacheid=yes
10690 else $as_nop
10691 eval $cacheid=no
10692 fi
10693 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10694 conftest$ac_exeext conftest.$ac_ext
10695 fi
10696
10697
10698 CFLAGS="$xorg_testset_save_CFLAGS"
10699
10700 eval supported=\$$cacheid
10701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10702 printf "%s\n" "$supported" >&6; }
10703 if test "$supported" = "yes" ; then
10704 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10705 found="yes"
10706 fi
10707 fi
10708
10709 if test $found = "no" ; then
10710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10712 fi
10713
10714 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10716 fi
10717
10718 CFLAGS="$CFLAGS -errwarn"
10719
10720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10721 printf %s "checking if $CC supports -errwarn... " >&6; }
10722 cacheid=xorg_cv_cc_flag__errwarn
10723 if eval test \${$cacheid+y}
10724 then :
10725 printf %s "(cached) " >&6
10726 else $as_nop
10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10729 int i;
10730 int
10731 main (void)
10732 {
10733
10734 ;
10735 return 0;
10736 }
10737 _ACEOF
10738 if ac_fn_c_try_link "$LINENO"
10739 then :
10740 eval $cacheid=yes
10741 else $as_nop
10742 eval $cacheid=no
10743 fi
10744 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10745 conftest$ac_exeext conftest.$ac_ext
10746 fi
10747
10748
10749 CFLAGS="$xorg_testset_save_CFLAGS"
10750
10751 eval supported=\$$cacheid
10752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10753 printf "%s\n" "$supported" >&6; }
10754 if test "$supported" = "yes" ; then
10755 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10756 found="yes"
10757 fi
10758 fi
10759
10760
10761
10762 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10763 # activate it with -Werror, so we add it here explicitly.
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777 xorg_testset_save_CFLAGS="$CFLAGS"
10778
10779 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10782 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10783 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10784 then :
10785 printf %s "(cached) " >&6
10786 else $as_nop
10787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h. */
10789 int i;
10790 _ACEOF
10791 if ac_fn_c_try_compile "$LINENO"
10792 then :
10793 xorg_cv_cc_flag_unknown_warning_option=yes
10794 else $as_nop
10795 xorg_cv_cc_flag_unknown_warning_option=no
10796 fi
10797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10798 fi
10799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10800 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10802 CFLAGS="$xorg_testset_save_CFLAGS"
10803 fi
10804
10805 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10808 fi
10809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10811 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10812 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10813 then :
10814 printf %s "(cached) " >&6
10815 else $as_nop
10816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817 /* end confdefs.h. */
10818 int i;
10819 _ACEOF
10820 if ac_fn_c_try_compile "$LINENO"
10821 then :
10822 xorg_cv_cc_flag_unused_command_line_argument=yes
10823 else $as_nop
10824 xorg_cv_cc_flag_unused_command_line_argument=no
10825 fi
10826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10827 fi
10828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10829 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10830 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10831 CFLAGS="$xorg_testset_save_CFLAGS"
10832 fi
10833
10834 found="no"
10835
10836 if test $found = "no" ; then
10837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10839 fi
10840
10841 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10843 fi
10844
10845 CFLAGS="$CFLAGS -Werror=attributes"
10846
10847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10848 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10849 cacheid=xorg_cv_cc_flag__Werror_attributes
10850 if eval test \${$cacheid+y}
10851 then :
10852 printf %s "(cached) " >&6
10853 else $as_nop
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10856 int i;
10857 int
10858 main (void)
10859 {
10860
10861 ;
10862 return 0;
10863 }
10864 _ACEOF
10865 if ac_fn_c_try_link "$LINENO"
10866 then :
10867 eval $cacheid=yes
10868 else $as_nop
10869 eval $cacheid=no
10870 fi
10871 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10872 conftest$ac_exeext conftest.$ac_ext
10873 fi
10874
10875
10876 CFLAGS="$xorg_testset_save_CFLAGS"
10877
10878 eval supported=\$$cacheid
10879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10880 printf "%s\n" "$supported" >&6; }
10881 if test "$supported" = "yes" ; then
10882 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10883 found="yes"
10884 fi
10885 fi
10886
10887
10888
10889 if test "x$STRICT_COMPILE" = "xyes"; then
10890 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10891 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10892 fi
10893
10894
10895
10896
10897
10898
10899 cat >>confdefs.h <<_ACEOF
10900 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10901 _ACEOF
10902
10903 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10904 if test "x$PVM" = "x"; then
10905 PVM="0"
10906 fi
10907
10908 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10909
10910 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10911 if test "x$PVP" = "x"; then
10912 PVP="0"
10913 fi
10914
10915 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10916
10917
10918
10919 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10920 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10921 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10922 touch \$(top_srcdir)/ChangeLog; \
10923 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10924
10925
10926
10927
10928 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10929 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10930 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10931 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10932 touch \$(top_srcdir)/INSTALL; \
10933 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10934
10935
10936
10937
10938
10939
10940 case $host_os in
10941 solaris*)
10942 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10943 # check for a man page file found in later versions that use
10944 # traditional section numbers instead
10945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10946 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10947 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10948 then :
10949 printf %s "(cached) " >&6
10950 else $as_nop
10951 test "$cross_compiling" = yes &&
10952 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10953 if test -r "/usr/share/man/man7/attributes.7"; then
10954 ac_cv_file__usr_share_man_man7_attributes_7=yes
10955 else
10956 ac_cv_file__usr_share_man_man7_attributes_7=no
10957 fi
10958 fi
10959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10960 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10961 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10962 then :
10963 SYSV_MAN_SECTIONS=false
10964 else $as_nop
10965 SYSV_MAN_SECTIONS=true
10966 fi
10967
10968 ;;
10969 *) SYSV_MAN_SECTIONS=false ;;
10970 esac
10971
10972 if test x$APP_MAN_SUFFIX = x ; then
10973 APP_MAN_SUFFIX=1
10974 fi
10975 if test x$APP_MAN_DIR = x ; then
10976 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10977 fi
10978
10979 if test x$LIB_MAN_SUFFIX = x ; then
10980 LIB_MAN_SUFFIX=3
10981 fi
10982 if test x$LIB_MAN_DIR = x ; then
10983 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10984 fi
10985
10986 if test x$FILE_MAN_SUFFIX = x ; then
10987 case $SYSV_MAN_SECTIONS in
10988 true) FILE_MAN_SUFFIX=4 ;;
10989 *) FILE_MAN_SUFFIX=5 ;;
10990 esac
10991 fi
10992 if test x$FILE_MAN_DIR = x ; then
10993 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10994 fi
10995
10996 if test x$MISC_MAN_SUFFIX = x ; then
10997 case $SYSV_MAN_SECTIONS in
10998 true) MISC_MAN_SUFFIX=5 ;;
10999 *) MISC_MAN_SUFFIX=7 ;;
11000 esac
11001 fi
11002 if test x$MISC_MAN_DIR = x ; then
11003 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11004 fi
11005
11006 if test x$DRIVER_MAN_SUFFIX = x ; then
11007 case $SYSV_MAN_SECTIONS in
11008 true) DRIVER_MAN_SUFFIX=7 ;;
11009 *) DRIVER_MAN_SUFFIX=4 ;;
11010 esac
11011 fi
11012 if test x$DRIVER_MAN_DIR = x ; then
11013 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11014 fi
11015
11016 if test x$ADMIN_MAN_SUFFIX = x ; then
11017 case $SYSV_MAN_SECTIONS in
11018 true) ADMIN_MAN_SUFFIX=1m ;;
11019 *) ADMIN_MAN_SUFFIX=8 ;;
11020 esac
11021 fi
11022 if test x$ADMIN_MAN_DIR = x ; then
11023 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11024 fi
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040 XORG_MAN_PAGE="X Version 11"
11041
11042 MAN_SUBSTS="\
11043 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11044 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11045 -e 's|__xservername__|Xorg|g' \
11046 -e 's|__xconfigfile__|xorg.conf|g' \
11047 -e 's|__projectroot__|\$(prefix)|g' \
11048 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11049 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11050 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11051 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11052 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11053 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11054 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11055
11056
11057
11058 # Check whether --enable-silent-rules was given.
11059 if test ${enable_silent_rules+y}
11060 then :
11061 enableval=$enable_silent_rules;
11062 fi
11063
11064 case $enable_silent_rules in # (((
11065 yes) AM_DEFAULT_VERBOSITY=0;;
11066 no) AM_DEFAULT_VERBOSITY=1;;
11067 *) AM_DEFAULT_VERBOSITY=0;;
11068 esac
11069 am_make=${MAKE-make}
11070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11071 printf %s "checking whether $am_make supports nested variables... " >&6; }
11072 if test ${am_cv_make_support_nested_variables+y}
11073 then :
11074 printf %s "(cached) " >&6
11075 else $as_nop
11076 if printf "%s\n" 'TRUE=$(BAR$(V))
11077 BAR0=false
11078 BAR1=true
11079 V=1
11080 am__doit:
11081 @$(TRUE)
11082 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11083 am_cv_make_support_nested_variables=yes
11084 else
11085 am_cv_make_support_nested_variables=no
11086 fi
11087 fi
11088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11089 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11090 if test $am_cv_make_support_nested_variables = yes; then
11091 AM_V='$(V)'
11092 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11093 else
11094 AM_V=$AM_DEFAULT_VERBOSITY
11095 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11096 fi
11097 AM_BACKSLASH='\'
11098
11099
11100
11101 # Checks for pkg-config packages
11102
11103 pkg_failed=no
11104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XVIDTUNE" >&5
11105 printf %s "checking for XVIDTUNE... " >&6; }
11106
11107 if test -n "$XVIDTUNE_CFLAGS"; then
11108 pkg_cv_XVIDTUNE_CFLAGS="$XVIDTUNE_CFLAGS"
11109 elif test -n "$PKG_CONFIG"; then
11110 if test -n "$PKG_CONFIG" && \
11111 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm xt xaw7 xmu x11\""; } >&5
11112 ($PKG_CONFIG --exists --print-errors "xxf86vm xt xaw7 xmu x11") 2>&5
11113 ac_status=$?
11114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11115 test $ac_status = 0; }; then
11116 pkg_cv_XVIDTUNE_CFLAGS=`$PKG_CONFIG --cflags "xxf86vm xt xaw7 xmu x11" 2>/dev/null`
11117 test "x$?" != "x0" && pkg_failed=yes
11118 else
11119 pkg_failed=yes
11120 fi
11121 else
11122 pkg_failed=untried
11123 fi
11124 if test -n "$XVIDTUNE_LIBS"; then
11125 pkg_cv_XVIDTUNE_LIBS="$XVIDTUNE_LIBS"
11126 elif test -n "$PKG_CONFIG"; then
11127 if test -n "$PKG_CONFIG" && \
11128 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm xt xaw7 xmu x11\""; } >&5
11129 ($PKG_CONFIG --exists --print-errors "xxf86vm xt xaw7 xmu x11") 2>&5
11130 ac_status=$?
11131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11132 test $ac_status = 0; }; then
11133 pkg_cv_XVIDTUNE_LIBS=`$PKG_CONFIG --libs "xxf86vm xt xaw7 xmu x11" 2>/dev/null`
11134 test "x$?" != "x0" && pkg_failed=yes
11135 else
11136 pkg_failed=yes
11137 fi
11138 else
11139 pkg_failed=untried
11140 fi
11141
11142
11143
11144 if test $pkg_failed = yes; then
11145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146 printf "%s\n" "no" >&6; }
11147
11148 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11149 _pkg_short_errors_supported=yes
11150 else
11151 _pkg_short_errors_supported=no
11152 fi
11153 if test $_pkg_short_errors_supported = yes; then
11154 XVIDTUNE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86vm xt xaw7 xmu x11" 2>&1`
11155 else
11156 XVIDTUNE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86vm xt xaw7 xmu x11" 2>&1`
11157 fi
11158 # Put the nasty error message in config.log where it belongs
11159 echo "$XVIDTUNE_PKG_ERRORS" >&5
11160
11161 as_fn_error $? "Package requirements (xxf86vm xt xaw7 xmu x11) were not met:
11162
11163 $XVIDTUNE_PKG_ERRORS
11164
11165 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11166 installed software in a non-standard prefix.
11167
11168 Alternatively, you may set the environment variables XVIDTUNE_CFLAGS
11169 and XVIDTUNE_LIBS to avoid the need to call pkg-config.
11170 See the pkg-config man page for more details." "$LINENO" 5
11171 elif test $pkg_failed = untried; then
11172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11173 printf "%s\n" "no" >&6; }
11174 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11175 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11176 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11177 is in your PATH or set the PKG_CONFIG environment variable to the full
11178 path to pkg-config.
11179
11180 Alternatively, you may set the environment variables XVIDTUNE_CFLAGS
11181 and XVIDTUNE_LIBS to avoid the need to call pkg-config.
11182 See the pkg-config man page for more details.
11183
11184 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11185 See \`config.log' for more details" "$LINENO" 5; }
11186 else
11187 XVIDTUNE_CFLAGS=$pkg_cv_XVIDTUNE_CFLAGS
11188 XVIDTUNE_LIBS=$pkg_cv_XVIDTUNE_LIBS
11189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11190 printf "%s\n" "yes" >&6; }
11191
11192 fi
11193 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11194
11195 # Check whether --with-appdefaultdir was given.
11196 if test ${with_appdefaultdir+y}
11197 then :
11198 withval=$with_appdefaultdir; appdefaultdir="$withval"
11199 else $as_nop
11200 appdefaultdir="${xt_appdefaultdir}"
11201 fi
11202
11203
11204
11205
11206 ac_config_files="$ac_config_files Makefile man/Makefile"
11207
11208 cat >confcache <<\_ACEOF
11209 # This file is a shell script that caches the results of configure
11210 # tests run on this system so they can be shared between configure
11211 # scripts and configure runs, see configure's option --config-cache.
11212 # It is not useful on other systems. If it contains results you don't
11213 # want to keep, you may remove or edit it.
11214 #
11215 # config.status only pays attention to the cache file if you give it
11216 # the --recheck option to rerun configure.
11217 #
11218 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11219 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11220 # following values.
11221
11222 _ACEOF
11223
11224 # The following way of writing the cache mishandles newlines in values,
11225 # but we know of no workaround that is simple, portable, and efficient.
11226 # So, we kill variables containing newlines.
11227 # Ultrix sh set writes to stderr and can't be redirected directly,
11228 # and sets the high bit in the cache file unless we assign to the vars.
11229 (
11230 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11231 eval ac_val=\$$ac_var
11232 case $ac_val in #(
11233 *${as_nl}*)
11234 case $ac_var in #(
11235 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11236 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11237 esac
11238 case $ac_var in #(
11239 _ | IFS | as_nl) ;; #(
11240 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11241 *) { eval $ac_var=; unset $ac_var;} ;;
11242 esac ;;
11243 esac
11244 done
11245
11246 (set) 2>&1 |
11247 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11248 *${as_nl}ac_space=\ *)
11249 # `set' does not quote correctly, so add quotes: double-quote
11250 # substitution turns \\\\ into \\, and sed turns \\ into \.
11251 sed -n \
11252 "s/'/'\\\\''/g;
11253 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11254 ;; #(
11255 *)
11256 # `set' quotes correctly as required by POSIX, so do not add quotes.
11257 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11258 ;;
11259 esac |
11260 sort
11261 ) |
11262 sed '
11263 /^ac_cv_env_/b end
11264 t clear
11265 :clear
11266 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11267 t end
11268 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11269 :end' >>confcache
11270 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11271 if test -w "$cache_file"; then
11272 if test "x$cache_file" != "x/dev/null"; then
11273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11274 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11275 if test ! -f "$cache_file" || test -h "$cache_file"; then
11276 cat confcache >"$cache_file"
11277 else
11278 case $cache_file in #(
11279 */* | ?:*)
11280 mv -f confcache "$cache_file"$$ &&
11281 mv -f "$cache_file"$$ "$cache_file" ;; #(
11282 *)
11283 mv -f confcache "$cache_file" ;;
11284 esac
11285 fi
11286 fi
11287 else
11288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11289 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11290 fi
11291 fi
11292 rm -f confcache
11293
11294 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11295 # Let make expand exec_prefix.
11296 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11297
11298 DEFS=-DHAVE_CONFIG_H
11299
11300 ac_libobjs=
11301 ac_ltlibobjs=
11302 U=
11303 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11304 # 1. Remove the extension, and $U if already installed.
11305 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11306 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11307 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11308 # will be set to the directory where LIBOBJS objects are built.
11309 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11310 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11311 done
11312 LIBOBJS=$ac_libobjs
11313
11314 LTLIBOBJS=$ac_ltlibobjs
11315
11316
11317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11318 printf %s "checking that generated files are newer than configure... " >&6; }
11319 if test -n "$am_sleep_pid"; then
11320 # Hide warnings about reused PIDs.
11321 wait $am_sleep_pid 2>/dev/null
11322 fi
11323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11324 printf "%s\n" "done" >&6; }
11325 if test -n "$EXEEXT"; then
11326 am__EXEEXT_TRUE=
11327 am__EXEEXT_FALSE='#'
11328 else
11329 am__EXEEXT_TRUE='#'
11330 am__EXEEXT_FALSE=
11331 fi
11332
11333 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11334 as_fn_error $? "conditional \"AMDEP\" was never defined.
11335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11336 fi
11337 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11338 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11339 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11340 fi
11341
11342 : "${CONFIG_STATUS=./config.status}"
11343 ac_write_fail=0
11344 ac_clean_files_save=$ac_clean_files
11345 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11347 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11348 as_write_fail=0
11349 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11350 #! $SHELL
11351 # Generated by $as_me.
11352 # Run this file to recreate the current configuration.
11353 # Compiler output produced by configure, useful for debugging
11354 # configure, is in config.log if it exists.
11355
11356 debug=false
11357 ac_cs_recheck=false
11358 ac_cs_silent=false
11359
11360 SHELL=\${CONFIG_SHELL-$SHELL}
11361 export SHELL
11362 _ASEOF
11363 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11364 ## -------------------- ##
11365 ## M4sh Initialization. ##
11366 ## -------------------- ##
11367
11368 # Be more Bourne compatible
11369 DUALCASE=1; export DUALCASE # for MKS sh
11370 as_nop=:
11371 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11372 then :
11373 emulate sh
11374 NULLCMD=:
11375 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11376 # is contrary to our usage. Disable this feature.
11377 alias -g '${1+"$@"}'='"$@"'
11378 setopt NO_GLOB_SUBST
11379 else $as_nop
11380 case `(set -o) 2>/dev/null` in #(
11381 *posix*) :
11382 set -o posix ;; #(
11383 *) :
11384 ;;
11385 esac
11386 fi
11387
11388
11389
11390 # Reset variables that may have inherited troublesome values from
11391 # the environment.
11392
11393 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11394 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11395 # side effect of setting IFS to empty, thus disabling word splitting.)
11396 # Quoting is to prevent editors from complaining about space-tab.
11397 as_nl='
11398 '
11399 export as_nl
11400 IFS=" "" $as_nl"
11401
11402 PS1='$ '
11403 PS2='> '
11404 PS4='+ '
11405
11406 # Ensure predictable behavior from utilities with locale-dependent output.
11407 LC_ALL=C
11408 export LC_ALL
11409 LANGUAGE=C
11410 export LANGUAGE
11411
11412 # We cannot yet rely on "unset" to work, but we need these variables
11413 # to be unset--not just set to an empty or harmless value--now, to
11414 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11415 # also avoids known problems related to "unset" and subshell syntax
11416 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11417 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11418 do eval test \${$as_var+y} \
11419 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11420 done
11421
11422 # Ensure that fds 0, 1, and 2 are open.
11423 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11424 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11425 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11426
11427 # The user is always right.
11428 if ${PATH_SEPARATOR+false} :; then
11429 PATH_SEPARATOR=:
11430 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11431 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11432 PATH_SEPARATOR=';'
11433 }
11434 fi
11435
11436
11437 # Find who we are. Look in the path if we contain no directory separator.
11438 as_myself=
11439 case $0 in #((
11440 *[\\/]* ) as_myself=$0 ;;
11441 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442 for as_dir in $PATH
11443 do
11444 IFS=$as_save_IFS
11445 case $as_dir in #(((
11446 '') as_dir=./ ;;
11447 */) ;;
11448 *) as_dir=$as_dir/ ;;
11449 esac
11450 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11451 done
11452 IFS=$as_save_IFS
11453
11454 ;;
11455 esac
11456 # We did not find ourselves, most probably we were run as `sh COMMAND'
11457 # in which case we are not to be found in the path.
11458 if test "x$as_myself" = x; then
11459 as_myself=$0
11460 fi
11461 if test ! -f "$as_myself"; then
11462 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11463 exit 1
11464 fi
11465
11466
11467
11468 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11469 # ----------------------------------------
11470 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11471 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11472 # script with STATUS, using 1 if that was 0.
11473 as_fn_error ()
11474 {
11475 as_status=$1; test $as_status -eq 0 && as_status=1
11476 if test "$4"; then
11477 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11479 fi
11480 printf "%s\n" "$as_me: error: $2" >&2
11481 as_fn_exit $as_status
11482 } # as_fn_error
11483
11484
11485
11486 # as_fn_set_status STATUS
11487 # -----------------------
11488 # Set $? to STATUS, without forking.
11489 as_fn_set_status ()
11490 {
11491 return $1
11492 } # as_fn_set_status
11493
11494 # as_fn_exit STATUS
11495 # -----------------
11496 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11497 as_fn_exit ()
11498 {
11499 set +e
11500 as_fn_set_status $1
11501 exit $1
11502 } # as_fn_exit
11503
11504 # as_fn_unset VAR
11505 # ---------------
11506 # Portably unset VAR.
11507 as_fn_unset ()
11508 {
11509 { eval $1=; unset $1;}
11510 }
11511 as_unset=as_fn_unset
11512
11513 # as_fn_append VAR VALUE
11514 # ----------------------
11515 # Append the text in VALUE to the end of the definition contained in VAR. Take
11516 # advantage of any shell optimizations that allow amortized linear growth over
11517 # repeated appends, instead of the typical quadratic growth present in naive
11518 # implementations.
11519 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11520 then :
11521 eval 'as_fn_append ()
11522 {
11523 eval $1+=\$2
11524 }'
11525 else $as_nop
11526 as_fn_append ()
11527 {
11528 eval $1=\$$1\$2
11529 }
11530 fi # as_fn_append
11531
11532 # as_fn_arith ARG...
11533 # ------------------
11534 # Perform arithmetic evaluation on the ARGs, and store the result in the
11535 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11536 # must be portable across $(()) and expr.
11537 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11538 then :
11539 eval 'as_fn_arith ()
11540 {
11541 as_val=$(( $* ))
11542 }'
11543 else $as_nop
11544 as_fn_arith ()
11545 {
11546 as_val=`expr "$@" || test $? -eq 1`
11547 }
11548 fi # as_fn_arith
11549
11550
11551 if expr a : '\(a\)' >/dev/null 2>&1 &&
11552 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11553 as_expr=expr
11554 else
11555 as_expr=false
11556 fi
11557
11558 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11559 as_basename=basename
11560 else
11561 as_basename=false
11562 fi
11563
11564 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11565 as_dirname=dirname
11566 else
11567 as_dirname=false
11568 fi
11569
11570 as_me=`$as_basename -- "$0" ||
11571 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11572 X"$0" : 'X\(//\)$' \| \
11573 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11574 printf "%s\n" X/"$0" |
11575 sed '/^.*\/\([^/][^/]*\)\/*$/{
11576 s//\1/
11577 q
11578 }
11579 /^X\/\(\/\/\)$/{
11580 s//\1/
11581 q
11582 }
11583 /^X\/\(\/\).*/{
11584 s//\1/
11585 q
11586 }
11587 s/.*/./; q'`
11588
11589 # Avoid depending upon Character Ranges.
11590 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11591 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11592 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11593 as_cr_digits='0123456789'
11594 as_cr_alnum=$as_cr_Letters$as_cr_digits
11595
11596
11597 # Determine whether it's possible to make 'echo' print without a newline.
11598 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11599 # for compatibility with existing Makefiles.
11600 ECHO_C= ECHO_N= ECHO_T=
11601 case `echo -n x` in #(((((
11602 -n*)
11603 case `echo 'xy\c'` in
11604 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11605 xy) ECHO_C='\c';;
11606 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11607 ECHO_T=' ';;
11608 esac;;
11609 *)
11610 ECHO_N='-n';;
11611 esac
11612
11613 # For backward compatibility with old third-party macros, we provide
11614 # the shell variables $as_echo and $as_echo_n. New code should use
11615 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11616 as_echo='printf %s\n'
11617 as_echo_n='printf %s'
11618
11619 rm -f conf$$ conf$$.exe conf$$.file
11620 if test -d conf$$.dir; then
11621 rm -f conf$$.dir/conf$$.file
11622 else
11623 rm -f conf$$.dir
11624 mkdir conf$$.dir 2>/dev/null
11625 fi
11626 if (echo >conf$$.file) 2>/dev/null; then
11627 if ln -s conf$$.file conf$$ 2>/dev/null; then
11628 as_ln_s='ln -s'
11629 # ... but there are two gotchas:
11630 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11631 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11632 # In both cases, we have to default to `cp -pR'.
11633 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11634 as_ln_s='cp -pR'
11635 elif ln conf$$.file conf$$ 2>/dev/null; then
11636 as_ln_s=ln
11637 else
11638 as_ln_s='cp -pR'
11639 fi
11640 else
11641 as_ln_s='cp -pR'
11642 fi
11643 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11644 rmdir conf$$.dir 2>/dev/null
11645
11646
11647 # as_fn_mkdir_p
11648 # -------------
11649 # Create "$as_dir" as a directory, including parents if necessary.
11650 as_fn_mkdir_p ()
11651 {
11652
11653 case $as_dir in #(
11654 -*) as_dir=./$as_dir;;
11655 esac
11656 test -d "$as_dir" || eval $as_mkdir_p || {
11657 as_dirs=
11658 while :; do
11659 case $as_dir in #(
11660 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11661 *) as_qdir=$as_dir;;
11662 esac
11663 as_dirs="'$as_qdir' $as_dirs"
11664 as_dir=`$as_dirname -- "$as_dir" ||
11665 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11666 X"$as_dir" : 'X\(//\)[^/]' \| \
11667 X"$as_dir" : 'X\(//\)$' \| \
11668 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11669 printf "%s\n" X"$as_dir" |
11670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11671 s//\1/
11672 q
11673 }
11674 /^X\(\/\/\)[^/].*/{
11675 s//\1/
11676 q
11677 }
11678 /^X\(\/\/\)$/{
11679 s//\1/
11680 q
11681 }
11682 /^X\(\/\).*/{
11683 s//\1/
11684 q
11685 }
11686 s/.*/./; q'`
11687 test -d "$as_dir" && break
11688 done
11689 test -z "$as_dirs" || eval "mkdir $as_dirs"
11690 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11691
11692
11693 } # as_fn_mkdir_p
11694 if mkdir -p . 2>/dev/null; then
11695 as_mkdir_p='mkdir -p "$as_dir"'
11696 else
11697 test -d ./-p && rmdir ./-p
11698 as_mkdir_p=false
11699 fi
11700
11701
11702 # as_fn_executable_p FILE
11703 # -----------------------
11704 # Test if FILE is an executable regular file.
11705 as_fn_executable_p ()
11706 {
11707 test -f "$1" && test -x "$1"
11708 } # as_fn_executable_p
11709 as_test_x='test -x'
11710 as_executable_p=as_fn_executable_p
11711
11712 # Sed expression to map a string onto a valid CPP name.
11713 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11714
11715 # Sed expression to map a string onto a valid variable name.
11716 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11717
11718
11719 exec 6>&1
11720 ## ----------------------------------- ##
11721 ## Main body of $CONFIG_STATUS script. ##
11722 ## ----------------------------------- ##
11723 _ASEOF
11724 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11725
11726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11727 # Save the log message, to keep $0 and so on meaningful, and to
11728 # report actual input values of CONFIG_FILES etc. instead of their
11729 # values after options handling.
11730 ac_log="
11731 This file was extended by xvidtune $as_me 1.0.4, which was
11732 generated by GNU Autoconf 2.71. Invocation command line was
11733
11734 CONFIG_FILES = $CONFIG_FILES
11735 CONFIG_HEADERS = $CONFIG_HEADERS
11736 CONFIG_LINKS = $CONFIG_LINKS
11737 CONFIG_COMMANDS = $CONFIG_COMMANDS
11738 $ $0 $@
11739
11740 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11741 "
11742
11743 _ACEOF
11744
11745 case $ac_config_files in *"
11746 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11747 esac
11748
11749 case $ac_config_headers in *"
11750 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11751 esac
11752
11753
11754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11755 # Files that config.status was made for.
11756 config_files="$ac_config_files"
11757 config_headers="$ac_config_headers"
11758 config_commands="$ac_config_commands"
11759
11760 _ACEOF
11761
11762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11763 ac_cs_usage="\
11764 \`$as_me' instantiates files and other configuration actions
11765 from templates according to the current configuration. Unless the files
11766 and actions are specified as TAGs, all are instantiated by default.
11767
11768 Usage: $0 [OPTION]... [TAG]...
11769
11770 -h, --help print this help, then exit
11771 -V, --version print version number and configuration settings, then exit
11772 --config print configuration, then exit
11773 -q, --quiet, --silent
11774 do not print progress messages
11775 -d, --debug don't remove temporary files
11776 --recheck update $as_me by reconfiguring in the same conditions
11777 --file=FILE[:TEMPLATE]
11778 instantiate the configuration file FILE
11779 --header=FILE[:TEMPLATE]
11780 instantiate the configuration header FILE
11781
11782 Configuration files:
11783 $config_files
11784
11785 Configuration headers:
11786 $config_headers
11787
11788 Configuration commands:
11789 $config_commands
11790
11791 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xvidtune/issues>."
11792
11793 _ACEOF
11794 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11795 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11797 ac_cs_config='$ac_cs_config_escaped'
11798 ac_cs_version="\\
11799 xvidtune config.status 1.0.4
11800 configured by $0, generated by GNU Autoconf 2.71,
11801 with options \\"\$ac_cs_config\\"
11802
11803 Copyright (C) 2021 Free Software Foundation, Inc.
11804 This config.status script is free software; the Free Software Foundation
11805 gives unlimited permission to copy, distribute and modify it."
11806
11807 ac_pwd='$ac_pwd'
11808 srcdir='$srcdir'
11809 INSTALL='$INSTALL'
11810 MKDIR_P='$MKDIR_P'
11811 AWK='$AWK'
11812 test -n "\$AWK" || AWK=awk
11813 _ACEOF
11814
11815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11816 # The default lists apply if the user does not specify any file.
11817 ac_need_defaults=:
11818 while test $# != 0
11819 do
11820 case $1 in
11821 --*=?*)
11822 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11823 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11824 ac_shift=:
11825 ;;
11826 --*=)
11827 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11828 ac_optarg=
11829 ac_shift=:
11830 ;;
11831 *)
11832 ac_option=$1
11833 ac_optarg=$2
11834 ac_shift=shift
11835 ;;
11836 esac
11837
11838 case $ac_option in
11839 # Handling of the options.
11840 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11841 ac_cs_recheck=: ;;
11842 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11843 printf "%s\n" "$ac_cs_version"; exit ;;
11844 --config | --confi | --conf | --con | --co | --c )
11845 printf "%s\n" "$ac_cs_config"; exit ;;
11846 --debug | --debu | --deb | --de | --d | -d )
11847 debug=: ;;
11848 --file | --fil | --fi | --f )
11849 $ac_shift
11850 case $ac_optarg in
11851 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11852 '') as_fn_error $? "missing file argument" ;;
11853 esac
11854 as_fn_append CONFIG_FILES " '$ac_optarg'"
11855 ac_need_defaults=false;;
11856 --header | --heade | --head | --hea )
11857 $ac_shift
11858 case $ac_optarg in
11859 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11860 esac
11861 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11862 ac_need_defaults=false;;
11863 --he | --h)
11864 # Conflict between --help and --header
11865 as_fn_error $? "ambiguous option: \`$1'
11866 Try \`$0 --help' for more information.";;
11867 --help | --hel | -h )
11868 printf "%s\n" "$ac_cs_usage"; exit ;;
11869 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11870 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11871 ac_cs_silent=: ;;
11872
11873 # This is an error.
11874 -*) as_fn_error $? "unrecognized option: \`$1'
11875 Try \`$0 --help' for more information." ;;
11876
11877 *) as_fn_append ac_config_targets " $1"
11878 ac_need_defaults=false ;;
11879
11880 esac
11881 shift
11882 done
11883
11884 ac_configure_extra_args=
11885
11886 if $ac_cs_silent; then
11887 exec 6>/dev/null
11888 ac_configure_extra_args="$ac_configure_extra_args --silent"
11889 fi
11890
11891 _ACEOF
11892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11893 if \$ac_cs_recheck; then
11894 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11895 shift
11896 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
11897 CONFIG_SHELL='$SHELL'
11898 export CONFIG_SHELL
11899 exec "\$@"
11900 fi
11901
11902 _ACEOF
11903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11904 exec 5>>config.log
11905 {
11906 echo
11907 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11908 ## Running $as_me. ##
11909 _ASBOX
11910 printf "%s\n" "$ac_log"
11911 } >&5
11912
11913 _ACEOF
11914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11915 #
11916 # INIT-COMMANDS
11917 #
11918 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
11919
11920 _ACEOF
11921
11922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11923
11924 # Handling of arguments.
11925 for ac_config_target in $ac_config_targets
11926 do
11927 case $ac_config_target in
11928 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11929 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11930 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11931 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11932
11933 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11934 esac
11935 done
11936
11937
11938 # If the user did not use the arguments to specify the items to instantiate,
11939 # then the envvar interface is used. Set only those that are not.
11940 # We use the long form for the default assignment because of an extremely
11941 # bizarre bug on SunOS 4.1.3.
11942 if $ac_need_defaults; then
11943 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
11944 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
11945 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
11946 fi
11947
11948 # Have a temporary directory for convenience. Make it in the build tree
11949 # simply because there is no reason against having it here, and in addition,
11950 # creating and moving files from /tmp can sometimes cause problems.
11951 # Hook for its removal unless debugging.
11952 # Note that there is a small window in which the directory will not be cleaned:
11953 # after its creation but before its name has been assigned to `$tmp'.
11954 $debug ||
11955 {
11956 tmp= ac_tmp=
11957 trap 'exit_status=$?
11958 : "${ac_tmp:=$tmp}"
11959 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11960 ' 0
11961 trap 'as_fn_exit 1' 1 2 13 15
11962 }
11963 # Create a (secure) tmp directory for tmp files.
11964
11965 {
11966 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11967 test -d "$tmp"
11968 } ||
11969 {
11970 tmp=./conf$$-$RANDOM
11971 (umask 077 && mkdir "$tmp")
11972 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11973 ac_tmp=$tmp
11974
11975 # Set up the scripts for CONFIG_FILES section.
11976 # No need to generate them if there are no CONFIG_FILES.
11977 # This happens for instance with `./config.status config.h'.
11978 if test -n "$CONFIG_FILES"; then
11979
11980
11981 ac_cr=`echo X | tr X '\015'`
11982 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11983 # But we know of no other shell where ac_cr would be empty at this
11984 # point, so we can use a bashism as a fallback.
11985 if test "x$ac_cr" = x; then
11986 eval ac_cr=\$\'\\r\'
11987 fi
11988 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11989 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11990 ac_cs_awk_cr='\\r'
11991 else
11992 ac_cs_awk_cr=$ac_cr
11993 fi
11994
11995 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11996 _ACEOF
11997
11998
11999 {
12000 echo "cat >conf$$subs.awk <<_ACEOF" &&
12001 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12002 echo "_ACEOF"
12003 } >conf$$subs.sh ||
12004 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12005 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12006 ac_delim='%!_!# '
12007 for ac_last_try in false false false false false :; do
12008 . ./conf$$subs.sh ||
12009 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12010
12011 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12012 if test $ac_delim_n = $ac_delim_num; then
12013 break
12014 elif $ac_last_try; then
12015 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12016 else
12017 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12018 fi
12019 done
12020 rm -f conf$$subs.sh
12021
12022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12023 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12024 _ACEOF
12025 sed -n '
12026 h
12027 s/^/S["/; s/!.*/"]=/
12028 p
12029 g
12030 s/^[^!]*!//
12031 :repl
12032 t repl
12033 s/'"$ac_delim"'$//
12034 t delim
12035 :nl
12036 h
12037 s/\(.\{148\}\)..*/\1/
12038 t more1
12039 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12040 p
12041 n
12042 b repl
12043 :more1
12044 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12045 p
12046 g
12047 s/.\{148\}//
12048 t nl
12049 :delim
12050 h
12051 s/\(.\{148\}\)..*/\1/
12052 t more2
12053 s/["\\]/\\&/g; s/^/"/; s/$/"/
12054 p
12055 b
12056 :more2
12057 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12058 p
12059 g
12060 s/.\{148\}//
12061 t delim
12062 ' <conf$$subs.awk | sed '
12063 /^[^""]/{
12064 N
12065 s/\n//
12066 }
12067 ' >>$CONFIG_STATUS || ac_write_fail=1
12068 rm -f conf$$subs.awk
12069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12070 _ACAWK
12071 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12072 for (key in S) S_is_set[key] = 1
12073 FS = ""
12074
12075 }
12076 {
12077 line = $ 0
12078 nfields = split(line, field, "@")
12079 substed = 0
12080 len = length(field[1])
12081 for (i = 2; i < nfields; i++) {
12082 key = field[i]
12083 keylen = length(key)
12084 if (S_is_set[key]) {
12085 value = S[key]
12086 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12087 len += length(value) + length(field[++i])
12088 substed = 1
12089 } else
12090 len += 1 + keylen
12091 }
12092
12093 print line
12094 }
12095
12096 _ACAWK
12097 _ACEOF
12098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12099 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12100 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12101 else
12102 cat
12103 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12104 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12105 _ACEOF
12106
12107 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12108 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12109 # trailing colons and then remove the whole line if VPATH becomes empty
12110 # (actually we leave an empty line to preserve line numbers).
12111 if test "x$srcdir" = x.; then
12112 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12113 h
12114 s///
12115 s/^/:/
12116 s/[ ]*$/:/
12117 s/:\$(srcdir):/:/g
12118 s/:\${srcdir}:/:/g
12119 s/:@srcdir@:/:/g
12120 s/^:*//
12121 s/:*$//
12122 x
12123 s/\(=[ ]*\).*/\1/
12124 G
12125 s/\n//
12126 s/^[^=]*=[ ]*$//
12127 }'
12128 fi
12129
12130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12131 fi # test -n "$CONFIG_FILES"
12132
12133 # Set up the scripts for CONFIG_HEADERS section.
12134 # No need to generate them if there are no CONFIG_HEADERS.
12135 # This happens for instance with `./config.status Makefile'.
12136 if test -n "$CONFIG_HEADERS"; then
12137 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12138 BEGIN {
12139 _ACEOF
12140
12141 # Transform confdefs.h into an awk script `defines.awk', embedded as
12142 # here-document in config.status, that substitutes the proper values into
12143 # config.h.in to produce config.h.
12144
12145 # Create a delimiter string that does not exist in confdefs.h, to ease
12146 # handling of long lines.
12147 ac_delim='%!_!# '
12148 for ac_last_try in false false :; do
12149 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12150 if test -z "$ac_tt"; then
12151 break
12152 elif $ac_last_try; then
12153 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12154 else
12155 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12156 fi
12157 done
12158
12159 # For the awk script, D is an array of macro values keyed by name,
12160 # likewise P contains macro parameters if any. Preserve backslash
12161 # newline sequences.
12162
12163 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12164 sed -n '
12165 s/.\{148\}/&'"$ac_delim"'/g
12166 t rset
12167 :rset
12168 s/^[ ]*#[ ]*define[ ][ ]*/ /
12169 t def
12170 d
12171 :def
12172 s/\\$//
12173 t bsnl
12174 s/["\\]/\\&/g
12175 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12176 D["\1"]=" \3"/p
12177 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12178 d
12179 :bsnl
12180 s/["\\]/\\&/g
12181 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12182 D["\1"]=" \3\\\\\\n"\\/p
12183 t cont
12184 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12185 t cont
12186 d
12187 :cont
12188 n
12189 s/.\{148\}/&'"$ac_delim"'/g
12190 t clear
12191 :clear
12192 s/\\$//
12193 t bsnlc
12194 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12195 d
12196 :bsnlc
12197 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12198 b cont
12199 ' <confdefs.h | sed '
12200 s/'"$ac_delim"'/"\\\
12201 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12202
12203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12204 for (key in D) D_is_set[key] = 1
12205 FS = ""
12206 }
12207 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12208 line = \$ 0
12209 split(line, arg, " ")
12210 if (arg[1] == "#") {
12211 defundef = arg[2]
12212 mac1 = arg[3]
12213 } else {
12214 defundef = substr(arg[1], 2)
12215 mac1 = arg[2]
12216 }
12217 split(mac1, mac2, "(") #)
12218 macro = mac2[1]
12219 prefix = substr(line, 1, index(line, defundef) - 1)
12220 if (D_is_set[macro]) {
12221 # Preserve the white space surrounding the "#".
12222 print prefix "define", macro P[macro] D[macro]
12223 next
12224 } else {
12225 # Replace #undef with comments. This is necessary, for example,
12226 # in the case of _POSIX_SOURCE, which is predefined and required
12227 # on some systems where configure will not decide to define it.
12228 if (defundef == "undef") {
12229 print "/*", prefix defundef, macro, "*/"
12230 next
12231 }
12232 }
12233 }
12234 { print }
12235 _ACAWK
12236 _ACEOF
12237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12238 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12239 fi # test -n "$CONFIG_HEADERS"
12240
12241
12242 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12243 shift
12244 for ac_tag
12245 do
12246 case $ac_tag in
12247 :[FHLC]) ac_mode=$ac_tag; continue;;
12248 esac
12249 case $ac_mode$ac_tag in
12250 :[FHL]*:*);;
12251 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12252 :[FH]-) ac_tag=-:-;;
12253 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12254 esac
12255 ac_save_IFS=$IFS
12256 IFS=:
12257 set x $ac_tag
12258 IFS=$ac_save_IFS
12259 shift
12260 ac_file=$1
12261 shift
12262
12263 case $ac_mode in
12264 :L) ac_source=$1;;
12265 :[FH])
12266 ac_file_inputs=
12267 for ac_f
12268 do
12269 case $ac_f in
12270 -) ac_f="$ac_tmp/stdin";;
12271 *) # Look for the file first in the build tree, then in the source tree
12272 # (if the path is not absolute). The absolute path cannot be DOS-style,
12273 # because $ac_f cannot contain `:'.
12274 test -f "$ac_f" ||
12275 case $ac_f in
12276 [\\/$]*) false;;
12277 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12278 esac ||
12279 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12280 esac
12281 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12282 as_fn_append ac_file_inputs " '$ac_f'"
12283 done
12284
12285 # Let's still pretend it is `configure' which instantiates (i.e., don't
12286 # use $as_me), people would be surprised to read:
12287 # /* config.h. Generated by config.status. */
12288 configure_input='Generated from '`
12289 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12290 `' by configure.'
12291 if test x"$ac_file" != x-; then
12292 configure_input="$ac_file. $configure_input"
12293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12294 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12295 fi
12296 # Neutralize special characters interpreted by sed in replacement strings.
12297 case $configure_input in #(
12298 *\&* | *\|* | *\\* )
12299 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12300 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12301 *) ac_sed_conf_input=$configure_input;;
12302 esac
12303
12304 case $ac_tag in
12305 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12306 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12307 esac
12308 ;;
12309 esac
12310
12311 ac_dir=`$as_dirname -- "$ac_file" ||
12312 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12313 X"$ac_file" : 'X\(//\)[^/]' \| \
12314 X"$ac_file" : 'X\(//\)$' \| \
12315 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12316 printf "%s\n" X"$ac_file" |
12317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12318 s//\1/
12319 q
12320 }
12321 /^X\(\/\/\)[^/].*/{
12322 s//\1/
12323 q
12324 }
12325 /^X\(\/\/\)$/{
12326 s//\1/
12327 q
12328 }
12329 /^X\(\/\).*/{
12330 s//\1/
12331 q
12332 }
12333 s/.*/./; q'`
12334 as_dir="$ac_dir"; as_fn_mkdir_p
12335 ac_builddir=.
12336
12337 case "$ac_dir" in
12338 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12339 *)
12340 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12341 # A ".." for each directory in $ac_dir_suffix.
12342 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12343 case $ac_top_builddir_sub in
12344 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12345 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12346 esac ;;
12347 esac
12348 ac_abs_top_builddir=$ac_pwd
12349 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12350 # for backward compatibility:
12351 ac_top_builddir=$ac_top_build_prefix
12352
12353 case $srcdir in
12354 .) # We are building in place.
12355 ac_srcdir=.
12356 ac_top_srcdir=$ac_top_builddir_sub
12357 ac_abs_top_srcdir=$ac_pwd ;;
12358 [\\/]* | ?:[\\/]* ) # Absolute name.
12359 ac_srcdir=$srcdir$ac_dir_suffix;
12360 ac_top_srcdir=$srcdir
12361 ac_abs_top_srcdir=$srcdir ;;
12362 *) # Relative name.
12363 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12364 ac_top_srcdir=$ac_top_build_prefix$srcdir
12365 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12366 esac
12367 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12368
12369
12370 case $ac_mode in
12371 :F)
12372 #
12373 # CONFIG_FILE
12374 #
12375
12376 case $INSTALL in
12377 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12378 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12379 esac
12380 ac_MKDIR_P=$MKDIR_P
12381 case $MKDIR_P in
12382 [\\/$]* | ?:[\\/]* ) ;;
12383 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12384 esac
12385 _ACEOF
12386
12387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12388 # If the template does not know about datarootdir, expand it.
12389 # FIXME: This hack should be removed a few years after 2.60.
12390 ac_datarootdir_hack=; ac_datarootdir_seen=
12391 ac_sed_dataroot='
12392 /datarootdir/ {
12393 p
12394 q
12395 }
12396 /@datadir@/p
12397 /@docdir@/p
12398 /@infodir@/p
12399 /@localedir@/p
12400 /@mandir@/p'
12401 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12402 *datarootdir*) ac_datarootdir_seen=yes;;
12403 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12405 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12406 _ACEOF
12407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12408 ac_datarootdir_hack='
12409 s&@datadir@&$datadir&g
12410 s&@docdir@&$docdir&g
12411 s&@infodir@&$infodir&g
12412 s&@localedir@&$localedir&g
12413 s&@mandir@&$mandir&g
12414 s&\\\${datarootdir}&$datarootdir&g' ;;
12415 esac
12416 _ACEOF
12417
12418 # Neutralize VPATH when `$srcdir' = `.'.
12419 # Shell code in configure.ac might set extrasub.
12420 # FIXME: do we really want to maintain this feature?
12421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12422 ac_sed_extra="$ac_vpsub
12423 $extrasub
12424 _ACEOF
12425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12426 :t
12427 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12428 s|@configure_input@|$ac_sed_conf_input|;t t
12429 s&@top_builddir@&$ac_top_builddir_sub&;t t
12430 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12431 s&@srcdir@&$ac_srcdir&;t t
12432 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12433 s&@top_srcdir@&$ac_top_srcdir&;t t
12434 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12435 s&@builddir@&$ac_builddir&;t t
12436 s&@abs_builddir@&$ac_abs_builddir&;t t
12437 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12438 s&@INSTALL@&$ac_INSTALL&;t t
12439 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12440 $ac_datarootdir_hack
12441 "
12442 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12443 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12444
12445 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12446 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12447 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12448 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12450 which seems to be undefined. Please make sure it is defined" >&5
12451 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12452 which seems to be undefined. Please make sure it is defined" >&2;}
12453
12454 rm -f "$ac_tmp/stdin"
12455 case $ac_file in
12456 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12457 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12458 esac \
12459 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12460 ;;
12461 :H)
12462 #
12463 # CONFIG_HEADER
12464 #
12465 if test x"$ac_file" != x-; then
12466 {
12467 printf "%s\n" "/* $configure_input */" >&1 \
12468 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12469 } >"$ac_tmp/config.h" \
12470 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12471 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12473 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12474 else
12475 rm -f "$ac_file"
12476 mv "$ac_tmp/config.h" "$ac_file" \
12477 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12478 fi
12479 else
12480 printf "%s\n" "/* $configure_input */" >&1 \
12481 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12482 || as_fn_error $? "could not create -" "$LINENO" 5
12483 fi
12484 # Compute "$ac_file"'s index in $config_headers.
12485 _am_arg="$ac_file"
12486 _am_stamp_count=1
12487 for _am_header in $config_headers :; do
12488 case $_am_header in
12489 $_am_arg | $_am_arg:* )
12490 break ;;
12491 * )
12492 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12493 esac
12494 done
12495 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12496 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12497 X"$_am_arg" : 'X\(//\)[^/]' \| \
12498 X"$_am_arg" : 'X\(//\)$' \| \
12499 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12500 printf "%s\n" X"$_am_arg" |
12501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12502 s//\1/
12503 q
12504 }
12505 /^X\(\/\/\)[^/].*/{
12506 s//\1/
12507 q
12508 }
12509 /^X\(\/\/\)$/{
12510 s//\1/
12511 q
12512 }
12513 /^X\(\/\).*/{
12514 s//\1/
12515 q
12516 }
12517 s/.*/./; q'`/stamp-h$_am_stamp_count
12518 ;;
12519
12520 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12521 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12522 ;;
12523 esac
12524
12525
12526 case $ac_file$ac_mode in
12527 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12528 # Older Autoconf quotes --file arguments for eval, but not when files
12529 # are listed without --file. Let's play safe and only enable the eval
12530 # if we detect the quoting.
12531 # TODO: see whether this extra hack can be removed once we start
12532 # requiring Autoconf 2.70 or later.
12533 case $CONFIG_FILES in #(
12534 *\'*) :
12535 eval set x "$CONFIG_FILES" ;; #(
12536 *) :
12537 set x $CONFIG_FILES ;; #(
12538 *) :
12539 ;;
12540 esac
12541 shift
12542 # Used to flag and report bootstrapping failures.
12543 am_rc=0
12544 for am_mf
12545 do
12546 # Strip MF so we end up with the name of the file.
12547 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12548 # Check whether this is an Automake generated Makefile which includes
12549 # dependency-tracking related rules and includes.
12550 # Grep'ing the whole file directly is not great: AIX grep has a line
12551 # limit of 2048, but all sed's we know have understand at least 4000.
12552 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12553 || continue
12554 am_dirpart=`$as_dirname -- "$am_mf" ||
12555 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12556 X"$am_mf" : 'X\(//\)[^/]' \| \
12557 X"$am_mf" : 'X\(//\)$' \| \
12558 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12559 printf "%s\n" X"$am_mf" |
12560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12561 s//\1/
12562 q
12563 }
12564 /^X\(\/\/\)[^/].*/{
12565 s//\1/
12566 q
12567 }
12568 /^X\(\/\/\)$/{
12569 s//\1/
12570 q
12571 }
12572 /^X\(\/\).*/{
12573 s//\1/
12574 q
12575 }
12576 s/.*/./; q'`
12577 am_filepart=`$as_basename -- "$am_mf" ||
12578 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12579 X"$am_mf" : 'X\(//\)$' \| \
12580 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12581 printf "%s\n" X/"$am_mf" |
12582 sed '/^.*\/\([^/][^/]*\)\/*$/{
12583 s//\1/
12584 q
12585 }
12586 /^X\/\(\/\/\)$/{
12587 s//\1/
12588 q
12589 }
12590 /^X\/\(\/\).*/{
12591 s//\1/
12592 q
12593 }
12594 s/.*/./; q'`
12595 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12596 && sed -e '/# am--include-marker/d' "$am_filepart" \
12597 | $MAKE -f - am--depfiles" >&5
12598 (cd "$am_dirpart" \
12599 && sed -e '/# am--include-marker/d' "$am_filepart" \
12600 | $MAKE -f - am--depfiles) >&5 2>&5
12601 ac_status=$?
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } || am_rc=$?
12604 done
12605 if test $am_rc -ne 0; then
12606 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12607 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12608 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12609 for automatic dependency tracking. If GNU make was not used, consider
12610 re-running the configure script with MAKE=\"gmake\" (or whatever is
12611 necessary). You can also try re-running configure with the
12612 '--disable-dependency-tracking' option to at least be able to build
12613 the package (albeit without support for automatic dependency tracking).
12614 See \`config.log' for more details" "$LINENO" 5; }
12615 fi
12616 { am_dirpart=; unset am_dirpart;}
12617 { am_filepart=; unset am_filepart;}
12618 { am_mf=; unset am_mf;}
12619 { am_rc=; unset am_rc;}
12620 rm -f conftest-deps.mk
12621 }
12622 ;;
12623
12624 esac
12625 done # for ac_tag
12626
12627
12628 as_fn_exit 0
12629 _ACEOF
12630 ac_clean_files=$ac_clean_files_save
12631
12632 test $ac_write_fail = 0 ||
12633 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12634
12635
12636 # configure is writing to config.log, and then calls config.status.
12637 # config.status does its own redirection, appending to config.log.
12638 # Unfortunately, on DOS this fails, as config.log is still kept open
12639 # by configure, so config.status won't be able to write to it; its
12640 # output is simply discarded. So we exec the FD to /dev/null,
12641 # effectively closing config.log, so it can be properly (re)opened and
12642 # appended to by config.status. When coming back to configure, we
12643 # need to make the FD available again.
12644 if test "$no_create" != yes; then
12645 ac_cs_success=:
12646 ac_config_status_args=
12647 test "$silent" = yes &&
12648 ac_config_status_args="$ac_config_status_args --quiet"
12649 exec 5>/dev/null
12650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12651 exec 5>>config.log
12652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12653 # would make configure fail if this is the last instruction.
12654 $ac_cs_success || as_fn_exit 1
12655 fi
12656 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12658 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12659 fi
12660
12661