configure revision 1.1.1.3 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xvidtune 1.0.3.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247 fi
248 exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266 { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275 return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283 set +e
284 as_fn_set_status $1
285 exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346 else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363 else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390 else
391 as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396 else
397 as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402 else
403 as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480 else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498 else
499 as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506 else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513 else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541 test -n "$DJDIR" || exec 7<&0 </dev/null
542 exec 6>&1
543
544 # Name of the host.
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549 #
550 # Initializations.
551 #
552 ac_default_prefix=/usr/local
553 ac_clean_files=
554 ac_config_libobj_dir=.
555 LIBOBJS=
556 cross_compiling=no
557 subdirs=
558 MFLAGS=
559 MAKEFLAGS=
560
561 # Identity of this package.
562 PACKAGE_NAME='xvidtune'
563 PACKAGE_TARNAME='xvidtune'
564 PACKAGE_VERSION='1.0.3'
565 PACKAGE_STRING='xvidtune 1.0.3'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 ac_unique_file="Makefile.am"
570 # Factoring default headers for most tests.
571 ac_includes_default="\
572 #include <stdio.h>
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
575 #endif
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
578 #endif
579 #ifdef STDC_HEADERS
580 # include <stdlib.h>
581 # include <stddef.h>
582 #else
583 # ifdef HAVE_STDLIB_H
584 # include <stdlib.h>
585 # endif
586 #endif
587 #ifdef HAVE_STRING_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 # include <memory.h>
590 # endif
591 # include <string.h>
592 #endif
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
595 #endif
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
598 #endif
599 #ifdef HAVE_STDINT_H
600 # include <stdint.h>
601 #endif
602 #ifdef HAVE_UNISTD_H
603 # include <unistd.h>
604 #endif"
605
606 ac_subst_vars='am__EXEEXT_FALSE
607 am__EXEEXT_TRUE
608 LTLIBOBJS
609 LIBOBJS
610 appdefaultdir
611 XVIDTUNE_LIBS
612 XVIDTUNE_CFLAGS
613 AM_BACKSLASH
614 AM_DEFAULT_VERBOSITY
615 MAN_SUBSTS
616 XORG_MAN_PAGE
617 ADMIN_MAN_DIR
618 DRIVER_MAN_DIR
619 MISC_MAN_DIR
620 FILE_MAN_DIR
621 LIB_MAN_DIR
622 APP_MAN_DIR
623 ADMIN_MAN_SUFFIX
624 DRIVER_MAN_SUFFIX
625 MISC_MAN_SUFFIX
626 FILE_MAN_SUFFIX
627 LIB_MAN_SUFFIX
628 APP_MAN_SUFFIX
629 SED
630 host_os
631 host_vendor
632 host_cpu
633 host
634 build_os
635 build_vendor
636 build_cpu
637 build
638 INSTALL_CMD
639 PKG_CONFIG
640 CHANGELOG_CMD
641 STRICT_CFLAGS
642 CWARNFLAGS
643 BASE_CFLAGS
644 EGREP
645 GREP
646 CPP
647 am__fastdepCC_FALSE
648 am__fastdepCC_TRUE
649 CCDEPMODE
650 am__nodep
651 AMDEPBACKSLASH
652 AMDEP_FALSE
653 AMDEP_TRUE
654 am__quote
655 am__include
656 DEPDIR
657 OBJEXT
658 EXEEXT
659 ac_ct_CC
660 CPPFLAGS
661 LDFLAGS
662 CFLAGS
663 CC
664 MAINT
665 MAINTAINER_MODE_FALSE
666 MAINTAINER_MODE_TRUE
667 am__untar
668 am__tar
669 AMTAR
670 am__leading_dot
671 SET_MAKE
672 AWK
673 mkdir_p
674 MKDIR_P
675 INSTALL_STRIP_PROGRAM
676 STRIP
677 install_sh
678 MAKEINFO
679 AUTOHEADER
680 AUTOMAKE
681 AUTOCONF
682 ACLOCAL
683 VERSION
684 PACKAGE
685 CYGPATH_W
686 am__isrc
687 INSTALL_DATA
688 INSTALL_SCRIPT
689 INSTALL_PROGRAM
690 target_alias
691 host_alias
692 build_alias
693 LIBS
694 ECHO_T
695 ECHO_N
696 ECHO_C
697 DEFS
698 mandir
699 localedir
700 libdir
701 psdir
702 pdfdir
703 dvidir
704 htmldir
705 infodir
706 docdir
707 oldincludedir
708 includedir
709 localstatedir
710 sharedstatedir
711 sysconfdir
712 datadir
713 datarootdir
714 libexecdir
715 sbindir
716 bindir
717 program_transform_name
718 prefix
719 exec_prefix
720 PACKAGE_URL
721 PACKAGE_BUGREPORT
722 PACKAGE_STRING
723 PACKAGE_VERSION
724 PACKAGE_TARNAME
725 PACKAGE_NAME
726 PATH_SEPARATOR
727 SHELL'
728 ac_subst_files=''
729 ac_user_opts='
730 enable_option_checking
731 enable_maintainer_mode
732 enable_dependency_tracking
733 enable_selective_werror
734 enable_strict_compilation
735 enable_silent_rules
736 with_appdefaultdir
737 '
738 ac_precious_vars='build_alias
739 host_alias
740 target_alias
741 CC
742 CFLAGS
743 LDFLAGS
744 LIBS
745 CPPFLAGS
746 CPP
747 PKG_CONFIG
748 XVIDTUNE_CFLAGS
749 XVIDTUNE_LIBS'
750
751
752 # Initialize some variables set by options.
753 ac_init_help=
754 ac_init_version=false
755 ac_unrecognized_opts=
756 ac_unrecognized_sep=
757 # The variables have the same names as the options, with
758 # dashes changed to underlines.
759 cache_file=/dev/null
760 exec_prefix=NONE
761 no_create=
762 no_recursion=
763 prefix=NONE
764 program_prefix=NONE
765 program_suffix=NONE
766 program_transform_name=s,x,x,
767 silent=
768 site=
769 srcdir=
770 verbose=
771 x_includes=NONE
772 x_libraries=NONE
773
774 # Installation directory options.
775 # These are left unexpanded so users can "make install exec_prefix=/foo"
776 # and all the variables that are supposed to be based on exec_prefix
777 # by default will actually change.
778 # Use braces instead of parens because sh, perl, etc. also accept them.
779 # (The list follows the same order as the GNU Coding Standards.)
780 bindir='${exec_prefix}/bin'
781 sbindir='${exec_prefix}/sbin'
782 libexecdir='${exec_prefix}/libexec'
783 datarootdir='${prefix}/share'
784 datadir='${datarootdir}'
785 sysconfdir='${prefix}/etc'
786 sharedstatedir='${prefix}/com'
787 localstatedir='${prefix}/var'
788 includedir='${prefix}/include'
789 oldincludedir='/usr/include'
790 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
791 infodir='${datarootdir}/info'
792 htmldir='${docdir}'
793 dvidir='${docdir}'
794 pdfdir='${docdir}'
795 psdir='${docdir}'
796 libdir='${exec_prefix}/lib'
797 localedir='${datarootdir}/locale'
798 mandir='${datarootdir}/man'
799
800 ac_prev=
801 ac_dashdash=
802 for ac_option
803 do
804 # If the previous option needs an argument, assign it.
805 if test -n "$ac_prev"; then
806 eval $ac_prev=\$ac_option
807 ac_prev=
808 continue
809 fi
810
811 case $ac_option in
812 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 *=) ac_optarg= ;;
814 *) ac_optarg=yes ;;
815 esac
816
817 # Accept the important Cygnus configure options, so we can diagnose typos.
818
819 case $ac_dashdash$ac_option in
820 --)
821 ac_dashdash=yes ;;
822
823 -bindir | --bindir | --bindi | --bind | --bin | --bi)
824 ac_prev=bindir ;;
825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826 bindir=$ac_optarg ;;
827
828 -build | --build | --buil | --bui | --bu)
829 ac_prev=build_alias ;;
830 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831 build_alias=$ac_optarg ;;
832
833 -cache-file | --cache-file | --cache-fil | --cache-fi \
834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835 ac_prev=cache_file ;;
836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838 cache_file=$ac_optarg ;;
839
840 --config-cache | -C)
841 cache_file=config.cache ;;
842
843 -datadir | --datadir | --datadi | --datad)
844 ac_prev=datadir ;;
845 -datadir=* | --datadir=* | --datadi=* | --datad=*)
846 datadir=$ac_optarg ;;
847
848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849 | --dataroo | --dataro | --datar)
850 ac_prev=datarootdir ;;
851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853 datarootdir=$ac_optarg ;;
854
855 -disable-* | --disable-*)
856 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859 as_fn_error $? "invalid feature name: $ac_useropt"
860 ac_useropt_orig=$ac_useropt
861 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
862 case $ac_user_opts in
863 *"
864 "enable_$ac_useropt"
865 "*) ;;
866 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
867 ac_unrecognized_sep=', ';;
868 esac
869 eval enable_$ac_useropt=no ;;
870
871 -docdir | --docdir | --docdi | --doc | --do)
872 ac_prev=docdir ;;
873 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
874 docdir=$ac_optarg ;;
875
876 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
877 ac_prev=dvidir ;;
878 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
879 dvidir=$ac_optarg ;;
880
881 -enable-* | --enable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 as_fn_error $? "invalid feature name: $ac_useropt"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
889 *"
890 "enable_$ac_useropt"
891 "*) ;;
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
894 esac
895 eval enable_$ac_useropt=\$ac_optarg ;;
896
897 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
898 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
899 | --exec | --exe | --ex)
900 ac_prev=exec_prefix ;;
901 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
902 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
903 | --exec=* | --exe=* | --ex=*)
904 exec_prefix=$ac_optarg ;;
905
906 -gas | --gas | --ga | --g)
907 # Obsolete; use --with-gas.
908 with_gas=yes ;;
909
910 -help | --help | --hel | --he | -h)
911 ac_init_help=long ;;
912 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
913 ac_init_help=recursive ;;
914 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
915 ac_init_help=short ;;
916
917 -host | --host | --hos | --ho)
918 ac_prev=host_alias ;;
919 -host=* | --host=* | --hos=* | --ho=*)
920 host_alias=$ac_optarg ;;
921
922 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923 ac_prev=htmldir ;;
924 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925 | --ht=*)
926 htmldir=$ac_optarg ;;
927
928 -includedir | --includedir | --includedi | --included | --include \
929 | --includ | --inclu | --incl | --inc)
930 ac_prev=includedir ;;
931 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
932 | --includ=* | --inclu=* | --incl=* | --inc=*)
933 includedir=$ac_optarg ;;
934
935 -infodir | --infodir | --infodi | --infod | --info | --inf)
936 ac_prev=infodir ;;
937 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
938 infodir=$ac_optarg ;;
939
940 -libdir | --libdir | --libdi | --libd)
941 ac_prev=libdir ;;
942 -libdir=* | --libdir=* | --libdi=* | --libd=*)
943 libdir=$ac_optarg ;;
944
945 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
946 | --libexe | --libex | --libe)
947 ac_prev=libexecdir ;;
948 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
949 | --libexe=* | --libex=* | --libe=*)
950 libexecdir=$ac_optarg ;;
951
952 -localedir | --localedir | --localedi | --localed | --locale)
953 ac_prev=localedir ;;
954 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
955 localedir=$ac_optarg ;;
956
957 -localstatedir | --localstatedir | --localstatedi | --localstated \
958 | --localstate | --localstat | --localsta | --localst | --locals)
959 ac_prev=localstatedir ;;
960 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
961 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
962 localstatedir=$ac_optarg ;;
963
964 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965 ac_prev=mandir ;;
966 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
967 mandir=$ac_optarg ;;
968
969 -nfp | --nfp | --nf)
970 # Obsolete; use --without-fp.
971 with_fp=no ;;
972
973 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974 | --no-cr | --no-c | -n)
975 no_create=yes ;;
976
977 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
978 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
979 no_recursion=yes ;;
980
981 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
982 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
983 | --oldin | --oldi | --old | --ol | --o)
984 ac_prev=oldincludedir ;;
985 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
986 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
987 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
988 oldincludedir=$ac_optarg ;;
989
990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991 ac_prev=prefix ;;
992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
993 prefix=$ac_optarg ;;
994
995 -program-prefix | --program-prefix | --program-prefi | --program-pref \
996 | --program-pre | --program-pr | --program-p)
997 ac_prev=program_prefix ;;
998 -program-prefix=* | --program-prefix=* | --program-prefi=* \
999 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1000 program_prefix=$ac_optarg ;;
1001
1002 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1003 | --program-suf | --program-su | --program-s)
1004 ac_prev=program_suffix ;;
1005 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1006 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1007 program_suffix=$ac_optarg ;;
1008
1009 -program-transform-name | --program-transform-name \
1010 | --program-transform-nam | --program-transform-na \
1011 | --program-transform-n | --program-transform- \
1012 | --program-transform | --program-transfor \
1013 | --program-transfo | --program-transf \
1014 | --program-trans | --program-tran \
1015 | --progr-tra | --program-tr | --program-t)
1016 ac_prev=program_transform_name ;;
1017 -program-transform-name=* | --program-transform-name=* \
1018 | --program-transform-nam=* | --program-transform-na=* \
1019 | --program-transform-n=* | --program-transform-=* \
1020 | --program-transform=* | --program-transfor=* \
1021 | --program-transfo=* | --program-transf=* \
1022 | --program-trans=* | --program-tran=* \
1023 | --progr-tra=* | --program-tr=* | --program-t=*)
1024 program_transform_name=$ac_optarg ;;
1025
1026 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027 ac_prev=pdfdir ;;
1028 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1029 pdfdir=$ac_optarg ;;
1030
1031 -psdir | --psdir | --psdi | --psd | --ps)
1032 ac_prev=psdir ;;
1033 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1034 psdir=$ac_optarg ;;
1035
1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037 | -silent | --silent | --silen | --sile | --sil)
1038 silent=yes ;;
1039
1040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041 ac_prev=sbindir ;;
1042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043 | --sbi=* | --sb=*)
1044 sbindir=$ac_optarg ;;
1045
1046 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1048 | --sharedst | --shareds | --shared | --share | --shar \
1049 | --sha | --sh)
1050 ac_prev=sharedstatedir ;;
1051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054 | --sha=* | --sh=*)
1055 sharedstatedir=$ac_optarg ;;
1056
1057 -site | --site | --sit)
1058 ac_prev=site ;;
1059 -site=* | --site=* | --sit=*)
1060 site=$ac_optarg ;;
1061
1062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063 ac_prev=srcdir ;;
1064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1065 srcdir=$ac_optarg ;;
1066
1067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1068 | --syscon | --sysco | --sysc | --sys | --sy)
1069 ac_prev=sysconfdir ;;
1070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1072 sysconfdir=$ac_optarg ;;
1073
1074 -target | --target | --targe | --targ | --tar | --ta | --t)
1075 ac_prev=target_alias ;;
1076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1077 target_alias=$ac_optarg ;;
1078
1079 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1080 verbose=yes ;;
1081
1082 -version | --version | --versio | --versi | --vers | -V)
1083 ac_init_version=: ;;
1084
1085 -with-* | --with-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error $? "invalid package name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1093 *"
1094 "with_$ac_useropt"
1095 "*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval with_$ac_useropt=\$ac_optarg ;;
1100
1101 -without-* | --without-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error $? "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1109 *"
1110 "with_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=no ;;
1116
1117 --x)
1118 # Obsolete; use --with-x.
1119 with_x=yes ;;
1120
1121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1122 | --x-incl | --x-inc | --x-in | --x-i)
1123 ac_prev=x_includes ;;
1124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1126 x_includes=$ac_optarg ;;
1127
1128 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1130 ac_prev=x_libraries ;;
1131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1133 x_libraries=$ac_optarg ;;
1134
1135 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1136 Try \`$0 --help' for more information"
1137 ;;
1138
1139 *=*)
1140 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1141 # Reject names that are not valid shell variable names.
1142 case $ac_envvar in #(
1143 '' | [0-9]* | *[!_$as_cr_alnum]* )
1144 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1145 esac
1146 eval $ac_envvar=\$ac_optarg
1147 export $ac_envvar ;;
1148
1149 *)
1150 # FIXME: should be removed in autoconf 3.0.
1151 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1155 ;;
1156
1157 esac
1158 done
1159
1160 if test -n "$ac_prev"; then
1161 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1162 as_fn_error $? "missing argument to $ac_option"
1163 fi
1164
1165 if test -n "$ac_unrecognized_opts"; then
1166 case $enable_option_checking in
1167 no) ;;
1168 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1169 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1170 esac
1171 fi
1172
1173 # Check all directory arguments for consistency.
1174 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175 datadir sysconfdir sharedstatedir localstatedir includedir \
1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177 libdir localedir mandir
1178 do
1179 eval ac_val=\$$ac_var
1180 # Remove trailing slashes.
1181 case $ac_val in
1182 */ )
1183 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1184 eval $ac_var=\$ac_val;;
1185 esac
1186 # Be sure to have absolute directory names.
1187 case $ac_val in
1188 [\\/$]* | ?:[\\/]* ) continue;;
1189 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1190 esac
1191 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1192 done
1193
1194 # There might be people who depend on the old broken behavior: `$host'
1195 # used to hold the argument of --host etc.
1196 # FIXME: To remove some day.
1197 build=$build_alias
1198 host=$host_alias
1199 target=$target_alias
1200
1201 # FIXME: To remove some day.
1202 if test "x$host_alias" != x; then
1203 if test "x$build_alias" = x; then
1204 cross_compiling=maybe
1205 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1206 If a cross compiler is detected then cross compile mode will be used" >&2
1207 elif test "x$build_alias" != "x$host_alias"; then
1208 cross_compiling=yes
1209 fi
1210 fi
1211
1212 ac_tool_prefix=
1213 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214
1215 test "$silent" = yes && exec 6>/dev/null
1216
1217
1218 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1219 ac_ls_di=`ls -di .` &&
1220 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1221 as_fn_error $? "working directory cannot be determined"
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 as_fn_error $? "pwd does not report name of working directory"
1224
1225
1226 # Find the source files, if location was not specified.
1227 if test -z "$srcdir"; then
1228 ac_srcdir_defaulted=yes
1229 # Try the directory containing this script, then the parent directory.
1230 ac_confdir=`$as_dirname -- "$as_myself" ||
1231 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1232 X"$as_myself" : 'X\(//\)[^/]' \| \
1233 X"$as_myself" : 'X\(//\)$' \| \
1234 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1235 $as_echo X"$as_myself" |
1236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1237 s//\1/
1238 q
1239 }
1240 /^X\(\/\/\)[^/].*/{
1241 s//\1/
1242 q
1243 }
1244 /^X\(\/\/\)$/{
1245 s//\1/
1246 q
1247 }
1248 /^X\(\/\).*/{
1249 s//\1/
1250 q
1251 }
1252 s/.*/./; q'`
1253 srcdir=$ac_confdir
1254 if test ! -r "$srcdir/$ac_unique_file"; then
1255 srcdir=..
1256 fi
1257 else
1258 ac_srcdir_defaulted=no
1259 fi
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1261 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1262 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1263 fi
1264 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1265 ac_abs_confdir=`(
1266 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1267 pwd)`
1268 # When building in place, set srcdir=.
1269 if test "$ac_abs_confdir" = "$ac_pwd"; then
1270 srcdir=.
1271 fi
1272 # Remove unnecessary trailing slashes from srcdir.
1273 # Double slashes in file names in object file debugging info
1274 # mess up M-x gdb in Emacs.
1275 case $srcdir in
1276 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277 esac
1278 for ac_var in $ac_precious_vars; do
1279 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_env_${ac_var}_value=\$${ac_var}
1281 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1283 done
1284
1285 #
1286 # Report the --help message.
1287 #
1288 if test "$ac_init_help" = "long"; then
1289 # Omit some internal or obsolete options to make the list less imposing.
1290 # This message is too long to be a string in the A/UX 3.1 sh.
1291 cat <<_ACEOF
1292 \`configure' configures xvidtune 1.0.3 to adapt to many kinds of systems.
1293
1294 Usage: $0 [OPTION]... [VAR=VALUE]...
1295
1296 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297 VAR=VALUE. See below for descriptions of some of the useful variables.
1298
1299 Defaults for the options are specified in brackets.
1300
1301 Configuration:
1302 -h, --help display this help and exit
1303 --help=short display options specific to this package
1304 --help=recursive display the short help of all the included packages
1305 -V, --version display version information and exit
1306 -q, --quiet, --silent do not print \`checking ...' messages
1307 --cache-file=FILE cache test results in FILE [disabled]
1308 -C, --config-cache alias for \`--cache-file=config.cache'
1309 -n, --no-create do not create output files
1310 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1311
1312 Installation directories:
1313 --prefix=PREFIX install architecture-independent files in PREFIX
1314 [$ac_default_prefix]
1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1316 [PREFIX]
1317
1318 By default, \`make install' will install all the files in
1319 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1320 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321 for instance \`--prefix=\$HOME'.
1322
1323 For better control, use the options below.
1324
1325 Fine tuning of the installation directories:
1326 --bindir=DIR user executables [EPREFIX/bin]
1327 --sbindir=DIR system admin executables [EPREFIX/sbin]
1328 --libexecdir=DIR program executables [EPREFIX/libexec]
1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1332 --libdir=DIR object code libraries [EPREFIX/lib]
1333 --includedir=DIR C header files [PREFIX/include]
1334 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1337 --infodir=DIR info documentation [DATAROOTDIR/info]
1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1339 --mandir=DIR man documentation [DATAROOTDIR/man]
1340 --docdir=DIR documentation root [DATAROOTDIR/doc/xvidtune]
1341 --htmldir=DIR html documentation [DOCDIR]
1342 --dvidir=DIR dvi documentation [DOCDIR]
1343 --pdfdir=DIR pdf documentation [DOCDIR]
1344 --psdir=DIR ps documentation [DOCDIR]
1345 _ACEOF
1346
1347 cat <<\_ACEOF
1348
1349 Program names:
1350 --program-prefix=PREFIX prepend PREFIX to installed program names
1351 --program-suffix=SUFFIX append SUFFIX to installed program names
1352 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1353
1354 System types:
1355 --build=BUILD configure for building on BUILD [guessed]
1356 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1357 _ACEOF
1358 fi
1359
1360 if test -n "$ac_init_help"; then
1361 case $ac_init_help in
1362 short | recursive ) echo "Configuration of xvidtune 1.0.3:";;
1363 esac
1364 cat <<\_ACEOF
1365
1366 Optional Features:
1367 --disable-option-checking ignore unrecognized --enable/--with options
1368 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1369 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1370 --enable-maintainer-mode enable make rules and dependencies not useful
1371 (and sometimes confusing) to the casual installer
1372 --disable-dependency-tracking speeds up one-time build
1373 --enable-dependency-tracking do not reject slow dependency extractors
1374 --disable-selective-werror
1375 Turn off selective compiler errors. (default:
1376 enabled)
1377 --enable-strict-compilation
1378 Enable all warnings from compiler and make them
1379 errors (default: disabled)
1380 --enable-silent-rules less verbose build output (undo: `make V=1')
1381 --disable-silent-rules verbose build output (undo: `make V=0')
1382
1383 Optional Packages:
1384 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1385 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1386 --with-appdefaultdir=<pathname>
1387 specify directory for app-defaults files (default is
1388 autodetected)
1389
1390 Some influential environment variables:
1391 CC C compiler command
1392 CFLAGS C compiler flags
1393 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1394 nonstandard directory <lib dir>
1395 LIBS libraries to pass to the linker, e.g. -l<library>
1396 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1397 you have headers in a nonstandard directory <include dir>
1398 CPP C preprocessor
1399 PKG_CONFIG path to pkg-config utility
1400 XVIDTUNE_CFLAGS
1401 C compiler flags for XVIDTUNE, overriding pkg-config
1402 XVIDTUNE_LIBS
1403 linker flags for XVIDTUNE, overriding pkg-config
1404
1405 Use these variables to override the choices made by `configure' or to help
1406 it to find libraries and programs with nonstandard names/locations.
1407
1408 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1409 _ACEOF
1410 ac_status=$?
1411 fi
1412
1413 if test "$ac_init_help" = "recursive"; then
1414 # If there are subdirs, report their specific --help.
1415 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1416 test -d "$ac_dir" ||
1417 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1418 continue
1419 ac_builddir=.
1420
1421 case "$ac_dir" in
1422 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *)
1424 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1425 # A ".." for each directory in $ac_dir_suffix.
1426 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1427 case $ac_top_builddir_sub in
1428 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1430 esac ;;
1431 esac
1432 ac_abs_top_builddir=$ac_pwd
1433 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1434 # for backward compatibility:
1435 ac_top_builddir=$ac_top_build_prefix
1436
1437 case $srcdir in
1438 .) # We are building in place.
1439 ac_srcdir=.
1440 ac_top_srcdir=$ac_top_builddir_sub
1441 ac_abs_top_srcdir=$ac_pwd ;;
1442 [\\/]* | ?:[\\/]* ) # Absolute name.
1443 ac_srcdir=$srcdir$ac_dir_suffix;
1444 ac_top_srcdir=$srcdir
1445 ac_abs_top_srcdir=$srcdir ;;
1446 *) # Relative name.
1447 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1448 ac_top_srcdir=$ac_top_build_prefix$srcdir
1449 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1450 esac
1451 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1452
1453 cd "$ac_dir" || { ac_status=$?; continue; }
1454 # Check for guested configure.
1455 if test -f "$ac_srcdir/configure.gnu"; then
1456 echo &&
1457 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1458 elif test -f "$ac_srcdir/configure"; then
1459 echo &&
1460 $SHELL "$ac_srcdir/configure" --help=recursive
1461 else
1462 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1463 fi || ac_status=$?
1464 cd "$ac_pwd" || { ac_status=$?; break; }
1465 done
1466 fi
1467
1468 test -n "$ac_init_help" && exit $ac_status
1469 if $ac_init_version; then
1470 cat <<\_ACEOF
1471 xvidtune configure 1.0.3
1472 generated by GNU Autoconf 2.68
1473
1474 Copyright (C) 2010 Free Software Foundation, Inc.
1475 This configure script is free software; the Free Software Foundation
1476 gives unlimited permission to copy, distribute and modify it.
1477 _ACEOF
1478 exit
1479 fi
1480
1481 ## ------------------------ ##
1482 ## Autoconf initialization. ##
1483 ## ------------------------ ##
1484
1485 # ac_fn_c_try_compile LINENO
1486 # --------------------------
1487 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1488 ac_fn_c_try_compile ()
1489 {
1490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1491 rm -f conftest.$ac_objext
1492 if { { ac_try="$ac_compile"
1493 case "(($ac_try" in
1494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1495 *) ac_try_echo=$ac_try;;
1496 esac
1497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498 $as_echo "$ac_try_echo"; } >&5
1499 (eval "$ac_compile") 2>conftest.err
1500 ac_status=$?
1501 if test -s conftest.err; then
1502 grep -v '^ *+' conftest.err >conftest.er1
1503 cat conftest.er1 >&5
1504 mv -f conftest.er1 conftest.err
1505 fi
1506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1507 test $ac_status = 0; } && {
1508 test -z "$ac_c_werror_flag" ||
1509 test ! -s conftest.err
1510 } && test -s conftest.$ac_objext; then :
1511 ac_retval=0
1512 else
1513 $as_echo "$as_me: failed program was:" >&5
1514 sed 's/^/| /' conftest.$ac_ext >&5
1515
1516 ac_retval=1
1517 fi
1518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1519 as_fn_set_status $ac_retval
1520
1521 } # ac_fn_c_try_compile
1522
1523 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1524 # ---------------------------------------------
1525 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1526 # accordingly.
1527 ac_fn_c_check_decl ()
1528 {
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 as_decl_name=`echo $2|sed 's/ *(.*//'`
1531 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1533 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1534 if eval \${$3+:} false; then :
1535 $as_echo_n "(cached) " >&6
1536 else
1537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1538 /* end confdefs.h. */
1539 $4
1540 int
1541 main ()
1542 {
1543 #ifndef $as_decl_name
1544 #ifdef __cplusplus
1545 (void) $as_decl_use;
1546 #else
1547 (void) $as_decl_name;
1548 #endif
1549 #endif
1550
1551 ;
1552 return 0;
1553 }
1554 _ACEOF
1555 if ac_fn_c_try_compile "$LINENO"; then :
1556 eval "$3=yes"
1557 else
1558 eval "$3=no"
1559 fi
1560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1561 fi
1562 eval ac_res=\$$3
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1564 $as_echo "$ac_res" >&6; }
1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566
1567 } # ac_fn_c_check_decl
1568
1569 # ac_fn_c_try_cpp LINENO
1570 # ----------------------
1571 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_cpp ()
1573 {
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 if { { ac_try="$ac_cpp conftest.$ac_ext"
1576 case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579 esac
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1583 ac_status=$?
1584 if test -s conftest.err; then
1585 grep -v '^ *+' conftest.err >conftest.er1
1586 cat conftest.er1 >&5
1587 mv -f conftest.er1 conftest.err
1588 fi
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } > conftest.i && {
1591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1592 test ! -s conftest.err
1593 }; then :
1594 ac_retval=0
1595 else
1596 $as_echo "$as_me: failed program was:" >&5
1597 sed 's/^/| /' conftest.$ac_ext >&5
1598
1599 ac_retval=1
1600 fi
1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602 as_fn_set_status $ac_retval
1603
1604 } # ac_fn_c_try_cpp
1605
1606 # ac_fn_c_try_run LINENO
1607 # ----------------------
1608 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1609 # that executables *can* be run.
1610 ac_fn_c_try_run ()
1611 {
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 if { { ac_try="$ac_link"
1614 case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_link") 2>&5
1621 ac_status=$?
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1624 { { case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_try") 2>&5
1631 ac_status=$?
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; }; }; then :
1634 ac_retval=0
1635 else
1636 $as_echo "$as_me: program exited with status $ac_status" >&5
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=$ac_status
1641 fi
1642 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
1645
1646 } # ac_fn_c_try_run
1647
1648 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1649 # -------------------------------------------------------
1650 # Tests whether HEADER exists and can be compiled using the include files in
1651 # INCLUDES, setting the cache variable VAR accordingly.
1652 ac_fn_c_check_header_compile ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 $as_echo_n "checking for $2... " >&6; }
1657 if eval \${$3+:} false; then :
1658 $as_echo_n "(cached) " >&6
1659 else
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1662 $4
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_compile "$LINENO"; then :
1666 eval "$3=yes"
1667 else
1668 eval "$3=no"
1669 fi
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671 fi
1672 eval ac_res=\$$3
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 $as_echo "$ac_res" >&6; }
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676
1677 } # ac_fn_c_check_header_compile
1678
1679 # ac_fn_c_try_link LINENO
1680 # -----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_link ()
1683 {
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext conftest$ac_exeext
1686 if { { ac_try="$ac_link"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1699 fi
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest$ac_exeext && {
1705 test "$cross_compiling" = yes ||
1706 $as_test_x conftest$ac_exeext
1707 }; then :
1708 ac_retval=0
1709 else
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1712
1713 ac_retval=1
1714 fi
1715 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1716 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1717 # interfere with the next link command; also delete a directory that is
1718 # left behind by Apple's compiler. We do this before executing the actions.
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_link
1724 cat >config.log <<_ACEOF
1725 This file contains any messages produced by compilers while
1726 running configure, to aid debugging if configure makes a mistake.
1727
1728 It was created by xvidtune $as_me 1.0.3, which was
1729 generated by GNU Autoconf 2.68. Invocation command line was
1730
1731 $ $0 $@
1732
1733 _ACEOF
1734 exec 5>>config.log
1735 {
1736 cat <<_ASUNAME
1737 ## --------- ##
1738 ## Platform. ##
1739 ## --------- ##
1740
1741 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1742 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1743 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1744 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1745 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1746
1747 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1748 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1749
1750 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1751 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1752 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1753 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1754 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1755 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1756 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1757
1758 _ASUNAME
1759
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 for as_dir in $PATH
1762 do
1763 IFS=$as_save_IFS
1764 test -z "$as_dir" && as_dir=.
1765 $as_echo "PATH: $as_dir"
1766 done
1767 IFS=$as_save_IFS
1768
1769 } >&5
1770
1771 cat >&5 <<_ACEOF
1772
1773
1774 ## ----------- ##
1775 ## Core tests. ##
1776 ## ----------- ##
1777
1778 _ACEOF
1779
1780
1781 # Keep a trace of the command line.
1782 # Strip out --no-create and --no-recursion so they do not pile up.
1783 # Strip out --silent because we don't want to record it for future runs.
1784 # Also quote any args containing shell meta-characters.
1785 # Make two passes to allow for proper duplicate-argument suppression.
1786 ac_configure_args=
1787 ac_configure_args0=
1788 ac_configure_args1=
1789 ac_must_keep_next=false
1790 for ac_pass in 1 2
1791 do
1792 for ac_arg
1793 do
1794 case $ac_arg in
1795 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1796 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1797 | -silent | --silent | --silen | --sile | --sil)
1798 continue ;;
1799 *\'*)
1800 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1801 esac
1802 case $ac_pass in
1803 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1804 2)
1805 as_fn_append ac_configure_args1 " '$ac_arg'"
1806 if test $ac_must_keep_next = true; then
1807 ac_must_keep_next=false # Got value, back to normal.
1808 else
1809 case $ac_arg in
1810 *=* | --config-cache | -C | -disable-* | --disable-* \
1811 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1812 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1813 | -with-* | --with-* | -without-* | --without-* | --x)
1814 case "$ac_configure_args0 " in
1815 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1816 esac
1817 ;;
1818 -* ) ac_must_keep_next=true ;;
1819 esac
1820 fi
1821 as_fn_append ac_configure_args " '$ac_arg'"
1822 ;;
1823 esac
1824 done
1825 done
1826 { ac_configure_args0=; unset ac_configure_args0;}
1827 { ac_configure_args1=; unset ac_configure_args1;}
1828
1829 # When interrupted or exit'd, cleanup temporary files, and complete
1830 # config.log. We remove comments because anyway the quotes in there
1831 # would cause problems or look ugly.
1832 # WARNING: Use '\'' to represent an apostrophe within the trap.
1833 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1834 trap 'exit_status=$?
1835 # Save into config.log some information that might help in debugging.
1836 {
1837 echo
1838
1839 $as_echo "## ---------------- ##
1840 ## Cache variables. ##
1841 ## ---------------- ##"
1842 echo
1843 # The following way of writing the cache mishandles newlines in values,
1844 (
1845 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1846 eval ac_val=\$$ac_var
1847 case $ac_val in #(
1848 *${as_nl}*)
1849 case $ac_var in #(
1850 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1851 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1852 esac
1853 case $ac_var in #(
1854 _ | IFS | as_nl) ;; #(
1855 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1856 *) { eval $ac_var=; unset $ac_var;} ;;
1857 esac ;;
1858 esac
1859 done
1860 (set) 2>&1 |
1861 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1862 *${as_nl}ac_space=\ *)
1863 sed -n \
1864 "s/'\''/'\''\\\\'\'''\''/g;
1865 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1866 ;; #(
1867 *)
1868 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1869 ;;
1870 esac |
1871 sort
1872 )
1873 echo
1874
1875 $as_echo "## ----------------- ##
1876 ## Output variables. ##
1877 ## ----------------- ##"
1878 echo
1879 for ac_var in $ac_subst_vars
1880 do
1881 eval ac_val=\$$ac_var
1882 case $ac_val in
1883 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1884 esac
1885 $as_echo "$ac_var='\''$ac_val'\''"
1886 done | sort
1887 echo
1888
1889 if test -n "$ac_subst_files"; then
1890 $as_echo "## ------------------- ##
1891 ## File substitutions. ##
1892 ## ------------------- ##"
1893 echo
1894 for ac_var in $ac_subst_files
1895 do
1896 eval ac_val=\$$ac_var
1897 case $ac_val in
1898 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1899 esac
1900 $as_echo "$ac_var='\''$ac_val'\''"
1901 done | sort
1902 echo
1903 fi
1904
1905 if test -s confdefs.h; then
1906 $as_echo "## ----------- ##
1907 ## confdefs.h. ##
1908 ## ----------- ##"
1909 echo
1910 cat confdefs.h
1911 echo
1912 fi
1913 test "$ac_signal" != 0 &&
1914 $as_echo "$as_me: caught signal $ac_signal"
1915 $as_echo "$as_me: exit $exit_status"
1916 } >&5
1917 rm -f core *.core core.conftest.* &&
1918 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1919 exit $exit_status
1920 ' 0
1921 for ac_signal in 1 2 13 15; do
1922 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1923 done
1924 ac_signal=0
1925
1926 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1927 rm -f -r conftest* confdefs.h
1928
1929 $as_echo "/* confdefs.h */" > confdefs.h
1930
1931 # Predefined preprocessor variables.
1932
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_NAME "$PACKAGE_NAME"
1935 _ACEOF
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1939 _ACEOF
1940
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1943 _ACEOF
1944
1945 cat >>confdefs.h <<_ACEOF
1946 #define PACKAGE_STRING "$PACKAGE_STRING"
1947 _ACEOF
1948
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1951 _ACEOF
1952
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_URL "$PACKAGE_URL"
1955 _ACEOF
1956
1957
1958 # Let the site file select an alternate cache file if it wants to.
1959 # Prefer an explicitly selected file to automatically selected ones.
1960 ac_site_file1=NONE
1961 ac_site_file2=NONE
1962 if test -n "$CONFIG_SITE"; then
1963 # We do not want a PATH search for config.site.
1964 case $CONFIG_SITE in #((
1965 -*) ac_site_file1=./$CONFIG_SITE;;
1966 */*) ac_site_file1=$CONFIG_SITE;;
1967 *) ac_site_file1=./$CONFIG_SITE;;
1968 esac
1969 elif test "x$prefix" != xNONE; then
1970 ac_site_file1=$prefix/share/config.site
1971 ac_site_file2=$prefix/etc/config.site
1972 else
1973 ac_site_file1=$ac_default_prefix/share/config.site
1974 ac_site_file2=$ac_default_prefix/etc/config.site
1975 fi
1976 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1977 do
1978 test "x$ac_site_file" = xNONE && continue
1979 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1981 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1982 sed 's/^/| /' "$ac_site_file" >&5
1983 . "$ac_site_file" \
1984 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1986 as_fn_error $? "failed to load site script $ac_site_file
1987 See \`config.log' for more details" "$LINENO" 5; }
1988 fi
1989 done
1990
1991 if test -r "$cache_file"; then
1992 # Some versions of bash will fail to source /dev/null (special files
1993 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1994 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1996 $as_echo "$as_me: loading cache $cache_file" >&6;}
1997 case $cache_file in
1998 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1999 *) . "./$cache_file";;
2000 esac
2001 fi
2002 else
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2004 $as_echo "$as_me: creating cache $cache_file" >&6;}
2005 >$cache_file
2006 fi
2007
2008 # Check that the precious variables saved in the cache have kept the same
2009 # value.
2010 ac_cache_corrupted=false
2011 for ac_var in $ac_precious_vars; do
2012 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2013 eval ac_new_set=\$ac_env_${ac_var}_set
2014 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2015 eval ac_new_val=\$ac_env_${ac_var}_value
2016 case $ac_old_set,$ac_new_set in
2017 set,)
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2019 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2020 ac_cache_corrupted=: ;;
2021 ,set)
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2023 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2024 ac_cache_corrupted=: ;;
2025 ,);;
2026 *)
2027 if test "x$ac_old_val" != "x$ac_new_val"; then
2028 # differences in whitespace do not lead to failure.
2029 ac_old_val_w=`echo x $ac_old_val`
2030 ac_new_val_w=`echo x $ac_new_val`
2031 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2033 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2034 ac_cache_corrupted=:
2035 else
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2037 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2038 eval $ac_var=\$ac_old_val
2039 fi
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2041 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2043 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2044 fi;;
2045 esac
2046 # Pass precious variables to config.status.
2047 if test "$ac_new_set" = set; then
2048 case $ac_new_val in
2049 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2050 *) ac_arg=$ac_var=$ac_new_val ;;
2051 esac
2052 case " $ac_configure_args " in
2053 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2054 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2055 esac
2056 fi
2057 done
2058 if $ac_cache_corrupted; then
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2062 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2063 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2064 fi
2065 ## -------------------- ##
2066 ## Main body of script. ##
2067 ## -------------------- ##
2068
2069 ac_ext=c
2070 ac_cpp='$CPP $CPPFLAGS'
2071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2074
2075
2076
2077 ac_config_headers="$ac_config_headers config.h"
2078
2079
2080 # Initialize Automake
2081 am__api_version='1.11'
2082
2083 ac_aux_dir=
2084 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2085 if test -f "$ac_dir/install-sh"; then
2086 ac_aux_dir=$ac_dir
2087 ac_install_sh="$ac_aux_dir/install-sh -c"
2088 break
2089 elif test -f "$ac_dir/install.sh"; then
2090 ac_aux_dir=$ac_dir
2091 ac_install_sh="$ac_aux_dir/install.sh -c"
2092 break
2093 elif test -f "$ac_dir/shtool"; then
2094 ac_aux_dir=$ac_dir
2095 ac_install_sh="$ac_aux_dir/shtool install -c"
2096 break
2097 fi
2098 done
2099 if test -z "$ac_aux_dir"; then
2100 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2101 fi
2102
2103 # These three variables are undocumented and unsupported,
2104 # and are intended to be withdrawn in a future Autoconf release.
2105 # They can cause serious problems if a builder's source tree is in a directory
2106 # whose full name contains unusual characters.
2107 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2108 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2109 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2110
2111
2112 # Find a good install program. We prefer a C program (faster),
2113 # so one script is as good as another. But avoid the broken or
2114 # incompatible versions:
2115 # SysV /etc/install, /usr/sbin/install
2116 # SunOS /usr/etc/install
2117 # IRIX /sbin/install
2118 # AIX /bin/install
2119 # AmigaOS /C/install, which installs bootblocks on floppy discs
2120 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2121 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2122 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2123 # OS/2's system install, which has a completely different semantic
2124 # ./install, which can be erroneously created by make from ./install.sh.
2125 # Reject install programs that cannot install multiple files.
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2127 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2128 if test -z "$INSTALL"; then
2129 if ${ac_cv_path_install+:} false; then :
2130 $as_echo_n "(cached) " >&6
2131 else
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 for as_dir in $PATH
2134 do
2135 IFS=$as_save_IFS
2136 test -z "$as_dir" && as_dir=.
2137 # Account for people who put trailing slashes in PATH elements.
2138 case $as_dir/ in #((
2139 ./ | .// | /[cC]/* | \
2140 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2141 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2142 /usr/ucb/* ) ;;
2143 *)
2144 # OSF1 and SCO ODT 3.0 have their own names for install.
2145 # Don't use installbsd from OSF since it installs stuff as root
2146 # by default.
2147 for ac_prog in ginstall scoinst install; do
2148 for ac_exec_ext in '' $ac_executable_extensions; do
2149 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2150 if test $ac_prog = install &&
2151 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2152 # AIX install. It has an incompatible calling convention.
2153 :
2154 elif test $ac_prog = install &&
2155 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2156 # program-specific install script used by HP pwplus--don't use.
2157 :
2158 else
2159 rm -rf conftest.one conftest.two conftest.dir
2160 echo one > conftest.one
2161 echo two > conftest.two
2162 mkdir conftest.dir
2163 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2164 test -s conftest.one && test -s conftest.two &&
2165 test -s conftest.dir/conftest.one &&
2166 test -s conftest.dir/conftest.two
2167 then
2168 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2169 break 3
2170 fi
2171 fi
2172 fi
2173 done
2174 done
2175 ;;
2176 esac
2177
2178 done
2179 IFS=$as_save_IFS
2180
2181 rm -rf conftest.one conftest.two conftest.dir
2182
2183 fi
2184 if test "${ac_cv_path_install+set}" = set; then
2185 INSTALL=$ac_cv_path_install
2186 else
2187 # As a last resort, use the slow shell script. Don't cache a
2188 # value for INSTALL within a source directory, because that will
2189 # break other packages using the cache if that directory is
2190 # removed, or if the value is a relative name.
2191 INSTALL=$ac_install_sh
2192 fi
2193 fi
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2195 $as_echo "$INSTALL" >&6; }
2196
2197 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2198 # It thinks the first close brace ends the variable substitution.
2199 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2200
2201 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2202
2203 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2204
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2206 $as_echo_n "checking whether build environment is sane... " >&6; }
2207 # Just in case
2208 sleep 1
2209 echo timestamp > conftest.file
2210 # Reject unsafe characters in $srcdir or the absolute working directory
2211 # name. Accept space and tab only in the latter.
2212 am_lf='
2213 '
2214 case `pwd` in
2215 *[\\\"\#\$\&\'\`$am_lf]*)
2216 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2217 esac
2218 case $srcdir in
2219 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2220 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2221 esac
2222
2223 # Do `set' in a subshell so we don't clobber the current shell's
2224 # arguments. Must try -L first in case configure is actually a
2225 # symlink; some systems play weird games with the mod time of symlinks
2226 # (eg FreeBSD returns the mod time of the symlink's containing
2227 # directory).
2228 if (
2229 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2230 if test "$*" = "X"; then
2231 # -L didn't work.
2232 set X `ls -t "$srcdir/configure" conftest.file`
2233 fi
2234 rm -f conftest.file
2235 if test "$*" != "X $srcdir/configure conftest.file" \
2236 && test "$*" != "X conftest.file $srcdir/configure"; then
2237
2238 # If neither matched, then we have a broken ls. This can happen
2239 # if, for instance, CONFIG_SHELL is bash and it inherits a
2240 # broken ls alias from the environment. This has actually
2241 # happened. Such a system could not be considered "sane".
2242 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2243 alias in your environment" "$LINENO" 5
2244 fi
2245
2246 test "$2" = conftest.file
2247 )
2248 then
2249 # Ok.
2250 :
2251 else
2252 as_fn_error $? "newly created file is older than distributed files!
2253 Check your system clock" "$LINENO" 5
2254 fi
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2256 $as_echo "yes" >&6; }
2257 test "$program_prefix" != NONE &&
2258 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2259 # Use a double $ so make ignores it.
2260 test "$program_suffix" != NONE &&
2261 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2262 # Double any \ or $.
2263 # By default was `s,x,x', remove it if useless.
2264 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2265 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2266
2267 # expand $ac_aux_dir to an absolute path
2268 am_aux_dir=`cd $ac_aux_dir && pwd`
2269
2270 if test x"${MISSING+set}" != xset; then
2271 case $am_aux_dir in
2272 *\ * | *\ *)
2273 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2274 *)
2275 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2276 esac
2277 fi
2278 # Use eval to expand $SHELL
2279 if eval "$MISSING --run true"; then
2280 am_missing_run="$MISSING --run "
2281 else
2282 am_missing_run=
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2284 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2285 fi
2286
2287 if test x"${install_sh}" != xset; then
2288 case $am_aux_dir in
2289 *\ * | *\ *)
2290 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2291 *)
2292 install_sh="\${SHELL} $am_aux_dir/install-sh"
2293 esac
2294 fi
2295
2296 # Installed binaries are usually stripped using `strip' when the user
2297 # run `make install-strip'. However `strip' might not be the right
2298 # tool to use in cross-compilation environments, therefore Automake
2299 # will honor the `STRIP' environment variable to overrule this program.
2300 if test "$cross_compiling" != no; then
2301 if test -n "$ac_tool_prefix"; then
2302 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2303 set dummy ${ac_tool_prefix}strip; ac_word=$2
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2305 $as_echo_n "checking for $ac_word... " >&6; }
2306 if ${ac_cv_prog_STRIP+:} false; then :
2307 $as_echo_n "(cached) " >&6
2308 else
2309 if test -n "$STRIP"; then
2310 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2311 else
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2314 do
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
2317 for ac_exec_ext in '' $ac_executable_extensions; do
2318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2319 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 break 2
2322 fi
2323 done
2324 done
2325 IFS=$as_save_IFS
2326
2327 fi
2328 fi
2329 STRIP=$ac_cv_prog_STRIP
2330 if test -n "$STRIP"; then
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2332 $as_echo "$STRIP" >&6; }
2333 else
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2335 $as_echo "no" >&6; }
2336 fi
2337
2338
2339 fi
2340 if test -z "$ac_cv_prog_STRIP"; then
2341 ac_ct_STRIP=$STRIP
2342 # Extract the first word of "strip", so it can be a program name with args.
2343 set dummy strip; ac_word=$2
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2345 $as_echo_n "checking for $ac_word... " >&6; }
2346 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2347 $as_echo_n "(cached) " >&6
2348 else
2349 if test -n "$ac_ct_STRIP"; then
2350 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2351 else
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 for as_dir in $PATH
2354 do
2355 IFS=$as_save_IFS
2356 test -z "$as_dir" && as_dir=.
2357 for ac_exec_ext in '' $ac_executable_extensions; do
2358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359 ac_cv_prog_ac_ct_STRIP="strip"
2360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 break 2
2362 fi
2363 done
2364 done
2365 IFS=$as_save_IFS
2366
2367 fi
2368 fi
2369 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2370 if test -n "$ac_ct_STRIP"; then
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2372 $as_echo "$ac_ct_STRIP" >&6; }
2373 else
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2375 $as_echo "no" >&6; }
2376 fi
2377
2378 if test "x$ac_ct_STRIP" = x; then
2379 STRIP=":"
2380 else
2381 case $cross_compiling:$ac_tool_warned in
2382 yes:)
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2385 ac_tool_warned=yes ;;
2386 esac
2387 STRIP=$ac_ct_STRIP
2388 fi
2389 else
2390 STRIP="$ac_cv_prog_STRIP"
2391 fi
2392
2393 fi
2394 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2395
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2397 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2398 if test -z "$MKDIR_P"; then
2399 if ${ac_cv_path_mkdir+:} false; then :
2400 $as_echo_n "(cached) " >&6
2401 else
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2404 do
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
2407 for ac_prog in mkdir gmkdir; do
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2410 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2411 'mkdir (GNU coreutils) '* | \
2412 'mkdir (coreutils) '* | \
2413 'mkdir (fileutils) '4.1*)
2414 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2415 break 3;;
2416 esac
2417 done
2418 done
2419 done
2420 IFS=$as_save_IFS
2421
2422 fi
2423
2424 test -d ./--version && rmdir ./--version
2425 if test "${ac_cv_path_mkdir+set}" = set; then
2426 MKDIR_P="$ac_cv_path_mkdir -p"
2427 else
2428 # As a last resort, use the slow shell script. Don't cache a
2429 # value for MKDIR_P within a source directory, because that will
2430 # break other packages using the cache if that directory is
2431 # removed, or if the value is a relative name.
2432 MKDIR_P="$ac_install_sh -d"
2433 fi
2434 fi
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2436 $as_echo "$MKDIR_P" >&6; }
2437
2438 mkdir_p="$MKDIR_P"
2439 case $mkdir_p in
2440 [\\/$]* | ?:[\\/]*) ;;
2441 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2442 esac
2443
2444 for ac_prog in gawk mawk nawk awk
2445 do
2446 # Extract the first word of "$ac_prog", so it can be a program name with args.
2447 set dummy $ac_prog; ac_word=$2
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2449 $as_echo_n "checking for $ac_word... " >&6; }
2450 if ${ac_cv_prog_AWK+:} false; then :
2451 $as_echo_n "(cached) " >&6
2452 else
2453 if test -n "$AWK"; then
2454 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2455 else
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 for as_dir in $PATH
2458 do
2459 IFS=$as_save_IFS
2460 test -z "$as_dir" && as_dir=.
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2463 ac_cv_prog_AWK="$ac_prog"
2464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 break 2
2466 fi
2467 done
2468 done
2469 IFS=$as_save_IFS
2470
2471 fi
2472 fi
2473 AWK=$ac_cv_prog_AWK
2474 if test -n "$AWK"; then
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2476 $as_echo "$AWK" >&6; }
2477 else
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2479 $as_echo "no" >&6; }
2480 fi
2481
2482
2483 test -n "$AWK" && break
2484 done
2485
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2487 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2488 set x ${MAKE-make}
2489 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2490 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2491 $as_echo_n "(cached) " >&6
2492 else
2493 cat >conftest.make <<\_ACEOF
2494 SHELL = /bin/sh
2495 all:
2496 @echo '@@@%%%=$(MAKE)=@@@%%%'
2497 _ACEOF
2498 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2499 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2500 *@@@%%%=?*=@@@%%%*)
2501 eval ac_cv_prog_make_${ac_make}_set=yes;;
2502 *)
2503 eval ac_cv_prog_make_${ac_make}_set=no;;
2504 esac
2505 rm -f conftest.make
2506 fi
2507 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2509 $as_echo "yes" >&6; }
2510 SET_MAKE=
2511 else
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2513 $as_echo "no" >&6; }
2514 SET_MAKE="MAKE=${MAKE-make}"
2515 fi
2516
2517 rm -rf .tst 2>/dev/null
2518 mkdir .tst 2>/dev/null
2519 if test -d .tst; then
2520 am__leading_dot=.
2521 else
2522 am__leading_dot=_
2523 fi
2524 rmdir .tst 2>/dev/null
2525
2526 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2527 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2528 # is not polluted with repeated "-I."
2529 am__isrc=' -I$(srcdir)'
2530 # test to see if srcdir already configured
2531 if test -f $srcdir/config.status; then
2532 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2533 fi
2534 fi
2535
2536 # test whether we have cygpath
2537 if test -z "$CYGPATH_W"; then
2538 if (cygpath --version) >/dev/null 2>/dev/null; then
2539 CYGPATH_W='cygpath -w'
2540 else
2541 CYGPATH_W=echo
2542 fi
2543 fi
2544
2545
2546 # Define the identity of the package.
2547 PACKAGE='xvidtune'
2548 VERSION='1.0.3'
2549
2550
2551 cat >>confdefs.h <<_ACEOF
2552 #define PACKAGE "$PACKAGE"
2553 _ACEOF
2554
2555
2556 cat >>confdefs.h <<_ACEOF
2557 #define VERSION "$VERSION"
2558 _ACEOF
2559
2560 # Some tools Automake needs.
2561
2562 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2563
2564
2565 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2566
2567
2568 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2569
2570
2571 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2572
2573
2574 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2575
2576 # We need awk for the "check" target. The system "awk" is bad on
2577 # some platforms.
2578 # Always define AMTAR for backward compatibility.
2579
2580 AMTAR=${AMTAR-"${am_missing_run}tar"}
2581
2582 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2583
2584
2585
2586
2587
2588
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2590 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2591 # Check whether --enable-maintainer-mode was given.
2592 if test "${enable_maintainer_mode+set}" = set; then :
2593 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2594 else
2595 USE_MAINTAINER_MODE=no
2596 fi
2597
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2599 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2600 if test $USE_MAINTAINER_MODE = yes; then
2601 MAINTAINER_MODE_TRUE=
2602 MAINTAINER_MODE_FALSE='#'
2603 else
2604 MAINTAINER_MODE_TRUE='#'
2605 MAINTAINER_MODE_FALSE=
2606 fi
2607
2608 MAINT=$MAINTAINER_MODE_TRUE
2609
2610
2611
2612 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624 DEPDIR="${am__leading_dot}deps"
2625
2626 ac_config_commands="$ac_config_commands depfiles"
2627
2628
2629 am_make=${MAKE-make}
2630 cat > confinc << 'END'
2631 am__doit:
2632 @echo this is the am__doit target
2633 .PHONY: am__doit
2634 END
2635 # If we don't find an include directive, just comment out the code.
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2637 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2638 am__include="#"
2639 am__quote=
2640 _am_result=none
2641 # First try GNU make style include.
2642 echo "include confinc" > confmf
2643 # Ignore all kinds of additional output from `make'.
2644 case `$am_make -s -f confmf 2> /dev/null` in #(
2645 *the\ am__doit\ target*)
2646 am__include=include
2647 am__quote=
2648 _am_result=GNU
2649 ;;
2650 esac
2651 # Now try BSD make style include.
2652 if test "$am__include" = "#"; then
2653 echo '.include "confinc"' > confmf
2654 case `$am_make -s -f confmf 2> /dev/null` in #(
2655 *the\ am__doit\ target*)
2656 am__include=.include
2657 am__quote="\""
2658 _am_result=BSD
2659 ;;
2660 esac
2661 fi
2662
2663
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2665 $as_echo "$_am_result" >&6; }
2666 rm -f confinc confmf
2667
2668 # Check whether --enable-dependency-tracking was given.
2669 if test "${enable_dependency_tracking+set}" = set; then :
2670 enableval=$enable_dependency_tracking;
2671 fi
2672
2673 if test "x$enable_dependency_tracking" != xno; then
2674 am_depcomp="$ac_aux_dir/depcomp"
2675 AMDEPBACKSLASH='\'
2676 am__nodep='_no'
2677 fi
2678 if test "x$enable_dependency_tracking" != xno; then
2679 AMDEP_TRUE=
2680 AMDEP_FALSE='#'
2681 else
2682 AMDEP_TRUE='#'
2683 AMDEP_FALSE=
2684 fi
2685
2686
2687 ac_ext=c
2688 ac_cpp='$CPP $CPPFLAGS'
2689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692 if test -n "$ac_tool_prefix"; then
2693 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2694 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if ${ac_cv_prog_CC+:} false; then :
2698 $as_echo_n "(cached) " >&6
2699 else
2700 if test -n "$CC"; then
2701 ac_cv_prog_CC="$CC" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2713 fi
2714 done
2715 done
2716 IFS=$as_save_IFS
2717
2718 fi
2719 fi
2720 CC=$ac_cv_prog_CC
2721 if test -n "$CC"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2723 $as_echo "$CC" >&6; }
2724 else
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2727 fi
2728
2729
2730 fi
2731 if test -z "$ac_cv_prog_CC"; then
2732 ac_ct_CC=$CC
2733 # Extract the first word of "gcc", so it can be a program name with args.
2734 set dummy gcc; ac_word=$2
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736 $as_echo_n "checking for $ac_word... " >&6; }
2737 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2738 $as_echo_n "(cached) " >&6
2739 else
2740 if test -n "$ac_ct_CC"; then
2741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2742 else
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH
2745 do
2746 IFS=$as_save_IFS
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750 ac_cv_prog_ac_ct_CC="gcc"
2751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 break 2
2753 fi
2754 done
2755 done
2756 IFS=$as_save_IFS
2757
2758 fi
2759 fi
2760 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2761 if test -n "$ac_ct_CC"; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2763 $as_echo "$ac_ct_CC" >&6; }
2764 else
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766 $as_echo "no" >&6; }
2767 fi
2768
2769 if test "x$ac_ct_CC" = x; then
2770 CC=""
2771 else
2772 case $cross_compiling:$ac_tool_warned in
2773 yes:)
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2776 ac_tool_warned=yes ;;
2777 esac
2778 CC=$ac_ct_CC
2779 fi
2780 else
2781 CC="$ac_cv_prog_CC"
2782 fi
2783
2784 if test -z "$CC"; then
2785 if test -n "$ac_tool_prefix"; then
2786 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2787 set dummy ${ac_tool_prefix}cc; ac_word=$2
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789 $as_echo_n "checking for $ac_word... " >&6; }
2790 if ${ac_cv_prog_CC+:} false; then :
2791 $as_echo_n "(cached) " >&6
2792 else
2793 if test -n "$CC"; then
2794 ac_cv_prog_CC="$CC" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2803 ac_cv_prog_CC="${ac_tool_prefix}cc"
2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2806 fi
2807 done
2808 done
2809 IFS=$as_save_IFS
2810
2811 fi
2812 fi
2813 CC=$ac_cv_prog_CC
2814 if test -n "$CC"; then
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2816 $as_echo "$CC" >&6; }
2817 else
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819 $as_echo "no" >&6; }
2820 fi
2821
2822
2823 fi
2824 fi
2825 if test -z "$CC"; then
2826 # Extract the first word of "cc", so it can be a program name with args.
2827 set dummy cc; ac_word=$2
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829 $as_echo_n "checking for $ac_word... " >&6; }
2830 if ${ac_cv_prog_CC+:} false; then :
2831 $as_echo_n "(cached) " >&6
2832 else
2833 if test -n "$CC"; then
2834 ac_cv_prog_CC="$CC" # Let the user override the test.
2835 else
2836 ac_prog_rejected=no
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2839 do
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2844 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2845 ac_prog_rejected=yes
2846 continue
2847 fi
2848 ac_cv_prog_CC="cc"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852 done
2853 done
2854 IFS=$as_save_IFS
2855
2856 if test $ac_prog_rejected = yes; then
2857 # We found a bogon in the path, so make sure we never use it.
2858 set dummy $ac_cv_prog_CC
2859 shift
2860 if test $# != 0; then
2861 # We chose a different compiler from the bogus one.
2862 # However, it has the same basename, so the bogon will be chosen
2863 # first if we set CC to just the basename; use the full file name.
2864 shift
2865 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2866 fi
2867 fi
2868 fi
2869 fi
2870 CC=$ac_cv_prog_CC
2871 if test -n "$CC"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873 $as_echo "$CC" >&6; }
2874 else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2877 fi
2878
2879
2880 fi
2881 if test -z "$CC"; then
2882 if test -n "$ac_tool_prefix"; then
2883 for ac_prog in cl.exe
2884 do
2885 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2886 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if ${ac_cv_prog_CC+:} false; then :
2890 $as_echo_n "(cached) " >&6
2891 else
2892 if test -n "$CC"; then
2893 ac_cv_prog_CC="$CC" # Let the user override the test.
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2897 do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2905 fi
2906 done
2907 done
2908 IFS=$as_save_IFS
2909
2910 fi
2911 fi
2912 CC=$ac_cv_prog_CC
2913 if test -n "$CC"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2915 $as_echo "$CC" >&6; }
2916 else
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 $as_echo "no" >&6; }
2919 fi
2920
2921
2922 test -n "$CC" && break
2923 done
2924 fi
2925 if test -z "$CC"; then
2926 ac_ct_CC=$CC
2927 for ac_prog in cl.exe
2928 do
2929 # Extract the first word of "$ac_prog", so it can be a program name with args.
2930 set dummy $ac_prog; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2934 $as_echo_n "(cached) " >&6
2935 else
2936 if test -n "$ac_ct_CC"; then
2937 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2941 do
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946 ac_cv_prog_ac_ct_CC="$ac_prog"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 break 2
2949 fi
2950 done
2951 done
2952 IFS=$as_save_IFS
2953
2954 fi
2955 fi
2956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2957 if test -n "$ac_ct_CC"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2959 $as_echo "$ac_ct_CC" >&6; }
2960 else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2963 fi
2964
2965
2966 test -n "$ac_ct_CC" && break
2967 done
2968
2969 if test "x$ac_ct_CC" = x; then
2970 CC=""
2971 else
2972 case $cross_compiling:$ac_tool_warned in
2973 yes:)
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2976 ac_tool_warned=yes ;;
2977 esac
2978 CC=$ac_ct_CC
2979 fi
2980 fi
2981
2982 fi
2983
2984
2985 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2987 as_fn_error $? "no acceptable C compiler found in \$PATH
2988 See \`config.log' for more details" "$LINENO" 5; }
2989
2990 # Provide some information about the compiler.
2991 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2992 set X $ac_compile
2993 ac_compiler=$2
2994 for ac_option in --version -v -V -qversion; do
2995 { { ac_try="$ac_compiler $ac_option >&5"
2996 case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999 esac
3000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3001 $as_echo "$ac_try_echo"; } >&5
3002 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3003 ac_status=$?
3004 if test -s conftest.err; then
3005 sed '10a\
3006 ... rest of stderr output deleted ...
3007 10q' conftest.err >conftest.er1
3008 cat conftest.er1 >&5
3009 fi
3010 rm -f conftest.er1 conftest.err
3011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3012 test $ac_status = 0; }
3013 done
3014
3015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016 /* end confdefs.h. */
3017
3018 int
3019 main ()
3020 {
3021
3022 ;
3023 return 0;
3024 }
3025 _ACEOF
3026 ac_clean_files_save=$ac_clean_files
3027 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3028 # Try to create an executable without -o first, disregard a.out.
3029 # It will help us diagnose broken compilers, and finding out an intuition
3030 # of exeext.
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3032 $as_echo_n "checking whether the C compiler works... " >&6; }
3033 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3034
3035 # The possible output files:
3036 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3037
3038 ac_rmfiles=
3039 for ac_file in $ac_files
3040 do
3041 case $ac_file in
3042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3043 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3044 esac
3045 done
3046 rm -f $ac_rmfiles
3047
3048 if { { ac_try="$ac_link_default"
3049 case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052 esac
3053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054 $as_echo "$ac_try_echo"; } >&5
3055 (eval "$ac_link_default") 2>&5
3056 ac_status=$?
3057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058 test $ac_status = 0; }; then :
3059 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3060 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3061 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3062 # so that the user can short-circuit this test for compilers unknown to
3063 # Autoconf.
3064 for ac_file in $ac_files ''
3065 do
3066 test -f "$ac_file" || continue
3067 case $ac_file in
3068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3069 ;;
3070 [ab].out )
3071 # We found the default executable, but exeext='' is most
3072 # certainly right.
3073 break;;
3074 *.* )
3075 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3076 then :; else
3077 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3078 fi
3079 # We set ac_cv_exeext here because the later test for it is not
3080 # safe: cross compilers may not add the suffix if given an `-o'
3081 # argument, so we may need to know it at that point already.
3082 # Even if this section looks crufty: it has the advantage of
3083 # actually working.
3084 break;;
3085 * )
3086 break;;
3087 esac
3088 done
3089 test "$ac_cv_exeext" = no && ac_cv_exeext=
3090
3091 else
3092 ac_file=''
3093 fi
3094 if test -z "$ac_file"; then :
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096 $as_echo "no" >&6; }
3097 $as_echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3099
3100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102 as_fn_error 77 "C compiler cannot create executables
3103 See \`config.log' for more details" "$LINENO" 5; }
3104 else
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3106 $as_echo "yes" >&6; }
3107 fi
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3109 $as_echo_n "checking for C compiler default output file name... " >&6; }
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3111 $as_echo "$ac_file" >&6; }
3112 ac_exeext=$ac_cv_exeext
3113
3114 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3115 ac_clean_files=$ac_clean_files_save
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3117 $as_echo_n "checking for suffix of executables... " >&6; }
3118 if { { ac_try="$ac_link"
3119 case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122 esac
3123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3124 $as_echo "$ac_try_echo"; } >&5
3125 (eval "$ac_link") 2>&5
3126 ac_status=$?
3127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3128 test $ac_status = 0; }; then :
3129 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3130 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3131 # work properly (i.e., refer to `conftest.exe'), while it won't with
3132 # `rm'.
3133 for ac_file in conftest.exe conftest conftest.*; do
3134 test -f "$ac_file" || continue
3135 case $ac_file in
3136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3137 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3138 break;;
3139 * ) break;;
3140 esac
3141 done
3142 else
3143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3146 See \`config.log' for more details" "$LINENO" 5; }
3147 fi
3148 rm -f conftest conftest$ac_cv_exeext
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3150 $as_echo "$ac_cv_exeext" >&6; }
3151
3152 rm -f conftest.$ac_ext
3153 EXEEXT=$ac_cv_exeext
3154 ac_exeext=$EXEEXT
3155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156 /* end confdefs.h. */
3157 #include <stdio.h>
3158 int
3159 main ()
3160 {
3161 FILE *f = fopen ("conftest.out", "w");
3162 return ferror (f) || fclose (f) != 0;
3163
3164 ;
3165 return 0;
3166 }
3167 _ACEOF
3168 ac_clean_files="$ac_clean_files conftest.out"
3169 # Check that the compiler produces executables we can run. If not, either
3170 # the compiler is broken, or we cross compile.
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3172 $as_echo_n "checking whether we are cross compiling... " >&6; }
3173 if test "$cross_compiling" != yes; then
3174 { { ac_try="$ac_link"
3175 case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178 esac
3179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180 $as_echo "$ac_try_echo"; } >&5
3181 (eval "$ac_link") 2>&5
3182 ac_status=$?
3183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3184 test $ac_status = 0; }
3185 if { ac_try='./conftest$ac_cv_exeext'
3186 { { case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3189 esac
3190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3191 $as_echo "$ac_try_echo"; } >&5
3192 (eval "$ac_try") 2>&5
3193 ac_status=$?
3194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3195 test $ac_status = 0; }; }; then
3196 cross_compiling=no
3197 else
3198 if test "$cross_compiling" = maybe; then
3199 cross_compiling=yes
3200 else
3201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 as_fn_error $? "cannot run C compiled programs.
3204 If you meant to cross compile, use \`--host'.
3205 See \`config.log' for more details" "$LINENO" 5; }
3206 fi
3207 fi
3208 fi
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3210 $as_echo "$cross_compiling" >&6; }
3211
3212 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3213 ac_clean_files=$ac_clean_files_save
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3215 $as_echo_n "checking for suffix of object files... " >&6; }
3216 if ${ac_cv_objext+:} false; then :
3217 $as_echo_n "(cached) " >&6
3218 else
3219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220 /* end confdefs.h. */
3221
3222 int
3223 main ()
3224 {
3225
3226 ;
3227 return 0;
3228 }
3229 _ACEOF
3230 rm -f conftest.o conftest.obj
3231 if { { ac_try="$ac_compile"
3232 case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237 $as_echo "$ac_try_echo"; } >&5
3238 (eval "$ac_compile") 2>&5
3239 ac_status=$?
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }; then :
3242 for ac_file in conftest.o conftest.obj conftest.*; do
3243 test -f "$ac_file" || continue;
3244 case $ac_file in
3245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3246 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3247 break;;
3248 esac
3249 done
3250 else
3251 $as_echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3253
3254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error $? "cannot compute suffix of object files: cannot compile
3257 See \`config.log' for more details" "$LINENO" 5; }
3258 fi
3259 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3260 fi
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3262 $as_echo "$ac_cv_objext" >&6; }
3263 OBJEXT=$ac_cv_objext
3264 ac_objext=$OBJEXT
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3266 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3267 if ${ac_cv_c_compiler_gnu+:} false; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271 /* end confdefs.h. */
3272
3273 int
3274 main ()
3275 {
3276 #ifndef __GNUC__
3277 choke me
3278 #endif
3279
3280 ;
3281 return 0;
3282 }
3283 _ACEOF
3284 if ac_fn_c_try_compile "$LINENO"; then :
3285 ac_compiler_gnu=yes
3286 else
3287 ac_compiler_gnu=no
3288 fi
3289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3291
3292 fi
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3294 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3295 if test $ac_compiler_gnu = yes; then
3296 GCC=yes
3297 else
3298 GCC=
3299 fi
3300 ac_test_CFLAGS=${CFLAGS+set}
3301 ac_save_CFLAGS=$CFLAGS
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3303 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3304 if ${ac_cv_prog_cc_g+:} false; then :
3305 $as_echo_n "(cached) " >&6
3306 else
3307 ac_save_c_werror_flag=$ac_c_werror_flag
3308 ac_c_werror_flag=yes
3309 ac_cv_prog_cc_g=no
3310 CFLAGS="-g"
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3313
3314 int
3315 main ()
3316 {
3317
3318 ;
3319 return 0;
3320 }
3321 _ACEOF
3322 if ac_fn_c_try_compile "$LINENO"; then :
3323 ac_cv_prog_cc_g=yes
3324 else
3325 CFLAGS=""
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3328
3329 int
3330 main ()
3331 {
3332
3333 ;
3334 return 0;
3335 }
3336 _ACEOF
3337 if ac_fn_c_try_compile "$LINENO"; then :
3338
3339 else
3340 ac_c_werror_flag=$ac_save_c_werror_flag
3341 CFLAGS="-g"
3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h. */
3344
3345 int
3346 main ()
3347 {
3348
3349 ;
3350 return 0;
3351 }
3352 _ACEOF
3353 if ac_fn_c_try_compile "$LINENO"; then :
3354 ac_cv_prog_cc_g=yes
3355 fi
3356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357 fi
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 fi
3360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 ac_c_werror_flag=$ac_save_c_werror_flag
3362 fi
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3364 $as_echo "$ac_cv_prog_cc_g" >&6; }
3365 if test "$ac_test_CFLAGS" = set; then
3366 CFLAGS=$ac_save_CFLAGS
3367 elif test $ac_cv_prog_cc_g = yes; then
3368 if test "$GCC" = yes; then
3369 CFLAGS="-g -O2"
3370 else
3371 CFLAGS="-g"
3372 fi
3373 else
3374 if test "$GCC" = yes; then
3375 CFLAGS="-O2"
3376 else
3377 CFLAGS=
3378 fi
3379 fi
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3381 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3382 if ${ac_cv_prog_cc_c89+:} false; then :
3383 $as_echo_n "(cached) " >&6
3384 else
3385 ac_cv_prog_cc_c89=no
3386 ac_save_CC=$CC
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3389 #include <stdarg.h>
3390 #include <stdio.h>
3391 #include <sys/types.h>
3392 #include <sys/stat.h>
3393 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3394 struct buf { int x; };
3395 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3396 static char *e (p, i)
3397 char **p;
3398 int i;
3399 {
3400 return p[i];
3401 }
3402 static char *f (char * (*g) (char **, int), char **p, ...)
3403 {
3404 char *s;
3405 va_list v;
3406 va_start (v,p);
3407 s = g (p, va_arg (v,int));
3408 va_end (v);
3409 return s;
3410 }
3411
3412 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3413 function prototypes and stuff, but not '\xHH' hex character constants.
3414 These don't provoke an error unfortunately, instead are silently treated
3415 as 'x'. The following induces an error, until -std is added to get
3416 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3417 array size at least. It's necessary to write '\x00'==0 to get something
3418 that's true only with -std. */
3419 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3420
3421 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3422 inside strings and character constants. */
3423 #define FOO(x) 'x'
3424 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3425
3426 int test (int i, double x);
3427 struct s1 {int (*f) (int a);};
3428 struct s2 {int (*f) (double a);};
3429 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3430 int argc;
3431 char **argv;
3432 int
3433 main ()
3434 {
3435 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3436 ;
3437 return 0;
3438 }
3439 _ACEOF
3440 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3441 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3442 do
3443 CC="$ac_save_CC $ac_arg"
3444 if ac_fn_c_try_compile "$LINENO"; then :
3445 ac_cv_prog_cc_c89=$ac_arg
3446 fi
3447 rm -f core conftest.err conftest.$ac_objext
3448 test "x$ac_cv_prog_cc_c89" != "xno" && break
3449 done
3450 rm -f conftest.$ac_ext
3451 CC=$ac_save_CC
3452
3453 fi
3454 # AC_CACHE_VAL
3455 case "x$ac_cv_prog_cc_c89" in
3456 x)
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3458 $as_echo "none needed" >&6; } ;;
3459 xno)
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3461 $as_echo "unsupported" >&6; } ;;
3462 *)
3463 CC="$CC $ac_cv_prog_cc_c89"
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3465 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3466 esac
3467 if test "x$ac_cv_prog_cc_c89" != xno; then :
3468
3469 fi
3470
3471 ac_ext=c
3472 ac_cpp='$CPP $CPPFLAGS'
3473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476
3477 depcc="$CC" am_compiler_list=
3478
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3480 $as_echo_n "checking dependency style of $depcc... " >&6; }
3481 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3482 $as_echo_n "(cached) " >&6
3483 else
3484 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3485 # We make a subdir and do the tests there. Otherwise we can end up
3486 # making bogus files that we don't know about and never remove. For
3487 # instance it was reported that on HP-UX the gcc test will end up
3488 # making a dummy file named `D' -- because `-MD' means `put the output
3489 # in D'.
3490 rm -rf conftest.dir
3491 mkdir conftest.dir
3492 # Copy depcomp to subdir because otherwise we won't find it if we're
3493 # using a relative directory.
3494 cp "$am_depcomp" conftest.dir
3495 cd conftest.dir
3496 # We will build objects and dependencies in a subdirectory because
3497 # it helps to detect inapplicable dependency modes. For instance
3498 # both Tru64's cc and ICC support -MD to output dependencies as a
3499 # side effect of compilation, but ICC will put the dependencies in
3500 # the current directory while Tru64 will put them in the object
3501 # directory.
3502 mkdir sub
3503
3504 am_cv_CC_dependencies_compiler_type=none
3505 if test "$am_compiler_list" = ""; then
3506 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3507 fi
3508 am__universal=false
3509 case " $depcc " in #(
3510 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3511 esac
3512
3513 for depmode in $am_compiler_list; do
3514 # Setup a source with many dependencies, because some compilers
3515 # like to wrap large dependency lists on column 80 (with \), and
3516 # we should not choose a depcomp mode which is confused by this.
3517 #
3518 # We need to recreate these files for each test, as the compiler may
3519 # overwrite some of them when testing with obscure command lines.
3520 # This happens at least with the AIX C compiler.
3521 : > sub/conftest.c
3522 for i in 1 2 3 4 5 6; do
3523 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3524 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3525 # Solaris 8's {/usr,}/bin/sh.
3526 touch sub/conftst$i.h
3527 done
3528 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3529
3530 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3531 # mode. It turns out that the SunPro C++ compiler does not properly
3532 # handle `-M -o', and we need to detect this. Also, some Intel
3533 # versions had trouble with output in subdirs
3534 am__obj=sub/conftest.${OBJEXT-o}
3535 am__minus_obj="-o $am__obj"
3536 case $depmode in
3537 gcc)
3538 # This depmode causes a compiler race in universal mode.
3539 test "$am__universal" = false || continue
3540 ;;
3541 nosideeffect)
3542 # after this tag, mechanisms are not by side-effect, so they'll
3543 # only be used when explicitly requested
3544 if test "x$enable_dependency_tracking" = xyes; then
3545 continue
3546 else
3547 break
3548 fi
3549 ;;
3550 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3551 # This compiler won't grok `-c -o', but also, the minuso test has
3552 # not run yet. These depmodes are late enough in the game, and
3553 # so weak that their functioning should not be impacted.
3554 am__obj=conftest.${OBJEXT-o}
3555 am__minus_obj=
3556 ;;
3557 none) break ;;
3558 esac
3559 if depmode=$depmode \
3560 source=sub/conftest.c object=$am__obj \
3561 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3562 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3563 >/dev/null 2>conftest.err &&
3564 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3565 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3566 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3567 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3568 # icc doesn't choke on unknown options, it will just issue warnings
3569 # or remarks (even with -Werror). So we grep stderr for any message
3570 # that says an option was ignored or not supported.
3571 # When given -MP, icc 7.0 and 7.1 complain thusly:
3572 # icc: Command line warning: ignoring option '-M'; no argument required
3573 # The diagnosis changed in icc 8.0:
3574 # icc: Command line remark: option '-MP' not supported
3575 if (grep 'ignoring option' conftest.err ||
3576 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3577 am_cv_CC_dependencies_compiler_type=$depmode
3578 break
3579 fi
3580 fi
3581 done
3582
3583 cd ..
3584 rm -rf conftest.dir
3585 else
3586 am_cv_CC_dependencies_compiler_type=none
3587 fi
3588
3589 fi
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3591 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3592 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3593
3594 if
3595 test "x$enable_dependency_tracking" != xno \
3596 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3597 am__fastdepCC_TRUE=
3598 am__fastdepCC_FALSE='#'
3599 else
3600 am__fastdepCC_TRUE='#'
3601 am__fastdepCC_FALSE=
3602 fi
3603
3604
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3606 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3607 if ${ac_cv_prog_cc_c99+:} false; then :
3608 $as_echo_n "(cached) " >&6
3609 else
3610 ac_cv_prog_cc_c99=no
3611 ac_save_CC=$CC
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3614 #include <stdarg.h>
3615 #include <stdbool.h>
3616 #include <stdlib.h>
3617 #include <wchar.h>
3618 #include <stdio.h>
3619
3620 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3621 #define debug(...) fprintf (stderr, __VA_ARGS__)
3622 #define showlist(...) puts (#__VA_ARGS__)
3623 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3624 static void
3625 test_varargs_macros (void)
3626 {
3627 int x = 1234;
3628 int y = 5678;
3629 debug ("Flag");
3630 debug ("X = %d\n", x);
3631 showlist (The first, second, and third items.);
3632 report (x>y, "x is %d but y is %d", x, y);
3633 }
3634
3635 // Check long long types.
3636 #define BIG64 18446744073709551615ull
3637 #define BIG32 4294967295ul
3638 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3639 #if !BIG_OK
3640 your preprocessor is broken;
3641 #endif
3642 #if BIG_OK
3643 #else
3644 your preprocessor is broken;
3645 #endif
3646 static long long int bignum = -9223372036854775807LL;
3647 static unsigned long long int ubignum = BIG64;
3648
3649 struct incomplete_array
3650 {
3651 int datasize;
3652 double data[];
3653 };
3654
3655 struct named_init {
3656 int number;
3657 const wchar_t *name;
3658 double average;
3659 };
3660
3661 typedef const char *ccp;
3662
3663 static inline int
3664 test_restrict (ccp restrict text)
3665 {
3666 // See if C++-style comments work.
3667 // Iterate through items via the restricted pointer.
3668 // Also check for declarations in for loops.
3669 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3670 continue;
3671 return 0;
3672 }
3673
3674 // Check varargs and va_copy.
3675 static void
3676 test_varargs (const char *format, ...)
3677 {
3678 va_list args;
3679 va_start (args, format);
3680 va_list args_copy;
3681 va_copy (args_copy, args);
3682
3683 const char *str;
3684 int number;
3685 float fnumber;
3686
3687 while (*format)
3688 {
3689 switch (*format++)
3690 {
3691 case 's': // string
3692 str = va_arg (args_copy, const char *);
3693 break;
3694 case 'd': // int
3695 number = va_arg (args_copy, int);
3696 break;
3697 case 'f': // float
3698 fnumber = va_arg (args_copy, double);
3699 break;
3700 default:
3701 break;
3702 }
3703 }
3704 va_end (args_copy);
3705 va_end (args);
3706 }
3707
3708 int
3709 main ()
3710 {
3711
3712 // Check bool.
3713 _Bool success = false;
3714
3715 // Check restrict.
3716 if (test_restrict ("String literal") == 0)
3717 success = true;
3718 char *restrict newvar = "Another string";
3719
3720 // Check varargs.
3721 test_varargs ("s, d' f .", "string", 65, 34.234);
3722 test_varargs_macros ();
3723
3724 // Check flexible array members.
3725 struct incomplete_array *ia =
3726 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3727 ia->datasize = 10;
3728 for (int i = 0; i < ia->datasize; ++i)
3729 ia->data[i] = i * 1.234;
3730
3731 // Check named initializers.
3732 struct named_init ni = {
3733 .number = 34,
3734 .name = L"Test wide string",
3735 .average = 543.34343,
3736 };
3737
3738 ni.number = 58;
3739
3740 int dynamic_array[ni.number];
3741 dynamic_array[ni.number - 1] = 543;
3742
3743 // work around unused variable warnings
3744 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3745 || dynamic_array[ni.number - 1] != 543);
3746
3747 ;
3748 return 0;
3749 }
3750 _ACEOF
3751 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3752 do
3753 CC="$ac_save_CC $ac_arg"
3754 if ac_fn_c_try_compile "$LINENO"; then :
3755 ac_cv_prog_cc_c99=$ac_arg
3756 fi
3757 rm -f core conftest.err conftest.$ac_objext
3758 test "x$ac_cv_prog_cc_c99" != "xno" && break
3759 done
3760 rm -f conftest.$ac_ext
3761 CC=$ac_save_CC
3762
3763 fi
3764 # AC_CACHE_VAL
3765 case "x$ac_cv_prog_cc_c99" in
3766 x)
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3768 $as_echo "none needed" >&6; } ;;
3769 xno)
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3771 $as_echo "unsupported" >&6; } ;;
3772 *)
3773 CC="$CC $ac_cv_prog_cc_c99"
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3775 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3776 esac
3777 if test "x$ac_cv_prog_cc_c99" != xno; then :
3778
3779 fi
3780
3781
3782
3783 ac_ext=c
3784 ac_cpp='$CPP $CPPFLAGS'
3785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3789 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3790 # On Suns, sometimes $CPP names a directory.
3791 if test -n "$CPP" && test -d "$CPP"; then
3792 CPP=
3793 fi
3794 if test -z "$CPP"; then
3795 if ${ac_cv_prog_CPP+:} false; then :
3796 $as_echo_n "(cached) " >&6
3797 else
3798 # Double quotes because CPP needs to be expanded
3799 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3800 do
3801 ac_preproc_ok=false
3802 for ac_c_preproc_warn_flag in '' yes
3803 do
3804 # Use a header file that comes with gcc, so configuring glibc
3805 # with a fresh cross-compiler works.
3806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3807 # <limits.h> exists even on freestanding compilers.
3808 # On the NeXT, cc -E runs the code through the compiler's parser,
3809 # not just through cpp. "Syntax error" is here to catch this case.
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3812 #ifdef __STDC__
3813 # include <limits.h>
3814 #else
3815 # include <assert.h>
3816 #endif
3817 Syntax error
3818 _ACEOF
3819 if ac_fn_c_try_cpp "$LINENO"; then :
3820
3821 else
3822 # Broken: fails on valid input.
3823 continue
3824 fi
3825 rm -f conftest.err conftest.i conftest.$ac_ext
3826
3827 # OK, works on sane cases. Now check whether nonexistent headers
3828 # can be detected and how.
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3831 #include <ac_nonexistent.h>
3832 _ACEOF
3833 if ac_fn_c_try_cpp "$LINENO"; then :
3834 # Broken: success on invalid input.
3835 continue
3836 else
3837 # Passes both tests.
3838 ac_preproc_ok=:
3839 break
3840 fi
3841 rm -f conftest.err conftest.i conftest.$ac_ext
3842
3843 done
3844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3845 rm -f conftest.i conftest.err conftest.$ac_ext
3846 if $ac_preproc_ok; then :
3847 break
3848 fi
3849
3850 done
3851 ac_cv_prog_CPP=$CPP
3852
3853 fi
3854 CPP=$ac_cv_prog_CPP
3855 else
3856 ac_cv_prog_CPP=$CPP
3857 fi
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3859 $as_echo "$CPP" >&6; }
3860 ac_preproc_ok=false
3861 for ac_c_preproc_warn_flag in '' yes
3862 do
3863 # Use a header file that comes with gcc, so configuring glibc
3864 # with a fresh cross-compiler works.
3865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3866 # <limits.h> exists even on freestanding compilers.
3867 # On the NeXT, cc -E runs the code through the compiler's parser,
3868 # not just through cpp. "Syntax error" is here to catch this case.
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3871 #ifdef __STDC__
3872 # include <limits.h>
3873 #else
3874 # include <assert.h>
3875 #endif
3876 Syntax error
3877 _ACEOF
3878 if ac_fn_c_try_cpp "$LINENO"; then :
3879
3880 else
3881 # Broken: fails on valid input.
3882 continue
3883 fi
3884 rm -f conftest.err conftest.i conftest.$ac_ext
3885
3886 # OK, works on sane cases. Now check whether nonexistent headers
3887 # can be detected and how.
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3890 #include <ac_nonexistent.h>
3891 _ACEOF
3892 if ac_fn_c_try_cpp "$LINENO"; then :
3893 # Broken: success on invalid input.
3894 continue
3895 else
3896 # Passes both tests.
3897 ac_preproc_ok=:
3898 break
3899 fi
3900 rm -f conftest.err conftest.i conftest.$ac_ext
3901
3902 done
3903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3904 rm -f conftest.i conftest.err conftest.$ac_ext
3905 if $ac_preproc_ok; then :
3906
3907 else
3908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3910 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3911 See \`config.log' for more details" "$LINENO" 5; }
3912 fi
3913
3914 ac_ext=c
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919
3920
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3922 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3923 if ${ac_cv_path_GREP+:} false; then :
3924 $as_echo_n "(cached) " >&6
3925 else
3926 if test -z "$GREP"; then
3927 ac_path_GREP_found=false
3928 # Loop through the user's path and test for each of PROGNAME-LIST
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3931 do
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_prog in grep ggrep; do
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3937 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3938 # Check for GNU ac_path_GREP and select it if it is found.
3939 # Check for GNU $ac_path_GREP
3940 case `"$ac_path_GREP" --version 2>&1` in
3941 *GNU*)
3942 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3943 *)
3944 ac_count=0
3945 $as_echo_n 0123456789 >"conftest.in"
3946 while :
3947 do
3948 cat "conftest.in" "conftest.in" >"conftest.tmp"
3949 mv "conftest.tmp" "conftest.in"
3950 cp "conftest.in" "conftest.nl"
3951 $as_echo 'GREP' >> "conftest.nl"
3952 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3953 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3954 as_fn_arith $ac_count + 1 && ac_count=$as_val
3955 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3956 # Best one so far, save it but keep looking for a better one
3957 ac_cv_path_GREP="$ac_path_GREP"
3958 ac_path_GREP_max=$ac_count
3959 fi
3960 # 10*(2^10) chars as input seems more than enough
3961 test $ac_count -gt 10 && break
3962 done
3963 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3964 esac
3965
3966 $ac_path_GREP_found && break 3
3967 done
3968 done
3969 done
3970 IFS=$as_save_IFS
3971 if test -z "$ac_cv_path_GREP"; then
3972 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3973 fi
3974 else
3975 ac_cv_path_GREP=$GREP
3976 fi
3977
3978 fi
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3980 $as_echo "$ac_cv_path_GREP" >&6; }
3981 GREP="$ac_cv_path_GREP"
3982
3983
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3985 $as_echo_n "checking for egrep... " >&6; }
3986 if ${ac_cv_path_EGREP+:} false; then :
3987 $as_echo_n "(cached) " >&6
3988 else
3989 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3990 then ac_cv_path_EGREP="$GREP -E"
3991 else
3992 if test -z "$EGREP"; then
3993 ac_path_EGREP_found=false
3994 # Loop through the user's path and test for each of PROGNAME-LIST
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3997 do
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_prog in egrep; do
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4003 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4004 # Check for GNU ac_path_EGREP and select it if it is found.
4005 # Check for GNU $ac_path_EGREP
4006 case `"$ac_path_EGREP" --version 2>&1` in
4007 *GNU*)
4008 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4009 *)
4010 ac_count=0
4011 $as_echo_n 0123456789 >"conftest.in"
4012 while :
4013 do
4014 cat "conftest.in" "conftest.in" >"conftest.tmp"
4015 mv "conftest.tmp" "conftest.in"
4016 cp "conftest.in" "conftest.nl"
4017 $as_echo 'EGREP' >> "conftest.nl"
4018 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4019 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4020 as_fn_arith $ac_count + 1 && ac_count=$as_val
4021 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4022 # Best one so far, save it but keep looking for a better one
4023 ac_cv_path_EGREP="$ac_path_EGREP"
4024 ac_path_EGREP_max=$ac_count
4025 fi
4026 # 10*(2^10) chars as input seems more than enough
4027 test $ac_count -gt 10 && break
4028 done
4029 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4030 esac
4031
4032 $ac_path_EGREP_found && break 3
4033 done
4034 done
4035 done
4036 IFS=$as_save_IFS
4037 if test -z "$ac_cv_path_EGREP"; then
4038 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4039 fi
4040 else
4041 ac_cv_path_EGREP=$EGREP
4042 fi
4043
4044 fi
4045 fi
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4047 $as_echo "$ac_cv_path_EGREP" >&6; }
4048 EGREP="$ac_cv_path_EGREP"
4049
4050
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4052 $as_echo_n "checking for ANSI C header files... " >&6; }
4053 if ${ac_cv_header_stdc+:} false; then :
4054 $as_echo_n "(cached) " >&6
4055 else
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h. */
4058 #include <stdlib.h>
4059 #include <stdarg.h>
4060 #include <string.h>
4061 #include <float.h>
4062
4063 int
4064 main ()
4065 {
4066
4067 ;
4068 return 0;
4069 }
4070 _ACEOF
4071 if ac_fn_c_try_compile "$LINENO"; then :
4072 ac_cv_header_stdc=yes
4073 else
4074 ac_cv_header_stdc=no
4075 fi
4076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077
4078 if test $ac_cv_header_stdc = yes; then
4079 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4082 #include <string.h>
4083
4084 _ACEOF
4085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4086 $EGREP "memchr" >/dev/null 2>&1; then :
4087
4088 else
4089 ac_cv_header_stdc=no
4090 fi
4091 rm -f conftest*
4092
4093 fi
4094
4095 if test $ac_cv_header_stdc = yes; then
4096 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4099 #include <stdlib.h>
4100
4101 _ACEOF
4102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4103 $EGREP "free" >/dev/null 2>&1; then :
4104
4105 else
4106 ac_cv_header_stdc=no
4107 fi
4108 rm -f conftest*
4109
4110 fi
4111
4112 if test $ac_cv_header_stdc = yes; then
4113 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4114 if test "$cross_compiling" = yes; then :
4115 :
4116 else
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4119 #include <ctype.h>
4120 #include <stdlib.h>
4121 #if ((' ' & 0x0FF) == 0x020)
4122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4124 #else
4125 # define ISLOWER(c) \
4126 (('a' <= (c) && (c) <= 'i') \
4127 || ('j' <= (c) && (c) <= 'r') \
4128 || ('s' <= (c) && (c) <= 'z'))
4129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4130 #endif
4131
4132 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4133 int
4134 main ()
4135 {
4136 int i;
4137 for (i = 0; i < 256; i++)
4138 if (XOR (islower (i), ISLOWER (i))
4139 || toupper (i) != TOUPPER (i))
4140 return 2;
4141 return 0;
4142 }
4143 _ACEOF
4144 if ac_fn_c_try_run "$LINENO"; then :
4145
4146 else
4147 ac_cv_header_stdc=no
4148 fi
4149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4150 conftest.$ac_objext conftest.beam conftest.$ac_ext
4151 fi
4152
4153 fi
4154 fi
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4156 $as_echo "$ac_cv_header_stdc" >&6; }
4157 if test $ac_cv_header_stdc = yes; then
4158
4159 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4160
4161 fi
4162
4163 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4164 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4165 inttypes.h stdint.h unistd.h
4166 do :
4167 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4168 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4169 "
4170 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4171 cat >>confdefs.h <<_ACEOF
4172 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4173 _ACEOF
4174
4175 fi
4176
4177 done
4178
4179
4180
4181
4182
4183
4184 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4185 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4186 CLANGCC="yes"
4187 else
4188 CLANGCC="no"
4189 fi
4190
4191 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4192 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4193 INTELCC="yes"
4194 else
4195 INTELCC="no"
4196 fi
4197
4198 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4199 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4200 SUNCC="yes"
4201 else
4202 SUNCC="no"
4203 fi
4204
4205
4206
4207
4208 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4209 if test -n "$ac_tool_prefix"; then
4210 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4211 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213 $as_echo_n "checking for $ac_word... " >&6; }
4214 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 case $PKG_CONFIG in
4218 [\\/]* | ?:[\\/]*)
4219 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4220 ;;
4221 *)
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH
4224 do
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4229 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 break 2
4232 fi
4233 done
4234 done
4235 IFS=$as_save_IFS
4236
4237 ;;
4238 esac
4239 fi
4240 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4241 if test -n "$PKG_CONFIG"; then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4243 $as_echo "$PKG_CONFIG" >&6; }
4244 else
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246 $as_echo "no" >&6; }
4247 fi
4248
4249
4250 fi
4251 if test -z "$ac_cv_path_PKG_CONFIG"; then
4252 ac_pt_PKG_CONFIG=$PKG_CONFIG
4253 # Extract the first word of "pkg-config", so it can be a program name with args.
4254 set dummy pkg-config; ac_word=$2
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4256 $as_echo_n "checking for $ac_word... " >&6; }
4257 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4258 $as_echo_n "(cached) " >&6
4259 else
4260 case $ac_pt_PKG_CONFIG in
4261 [\\/]* | ?:[\\/]*)
4262 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4263 ;;
4264 *)
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4267 do
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 break 2
4275 fi
4276 done
4277 done
4278 IFS=$as_save_IFS
4279
4280 ;;
4281 esac
4282 fi
4283 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4284 if test -n "$ac_pt_PKG_CONFIG"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4286 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4287 else
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4290 fi
4291
4292 if test "x$ac_pt_PKG_CONFIG" = x; then
4293 PKG_CONFIG=""
4294 else
4295 case $cross_compiling:$ac_tool_warned in
4296 yes:)
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4299 ac_tool_warned=yes ;;
4300 esac
4301 PKG_CONFIG=$ac_pt_PKG_CONFIG
4302 fi
4303 else
4304 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4305 fi
4306
4307 fi
4308 if test -n "$PKG_CONFIG"; then
4309 _pkg_min_version=0.9.0
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4311 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4312 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4314 $as_echo "yes" >&6; }
4315 else
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 $as_echo "no" >&6; }
4318 PKG_CONFIG=""
4319 fi
4320
4321 fi
4322 # Make sure we can run config.sub.
4323 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4324 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4325
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4327 $as_echo_n "checking build system type... " >&6; }
4328 if ${ac_cv_build+:} false; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 ac_build_alias=$build_alias
4332 test "x$ac_build_alias" = x &&
4333 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4334 test "x$ac_build_alias" = x &&
4335 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4336 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4337 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4338
4339 fi
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4341 $as_echo "$ac_cv_build" >&6; }
4342 case $ac_cv_build in
4343 *-*-*) ;;
4344 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4345 esac
4346 build=$ac_cv_build
4347 ac_save_IFS=$IFS; IFS='-'
4348 set x $ac_cv_build
4349 shift
4350 build_cpu=$1
4351 build_vendor=$2
4352 shift; shift
4353 # Remember, the first character of IFS is used to create $*,
4354 # except with old shells:
4355 build_os=$*
4356 IFS=$ac_save_IFS
4357 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4358
4359
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4361 $as_echo_n "checking host system type... " >&6; }
4362 if ${ac_cv_host+:} false; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 if test "x$host_alias" = x; then
4366 ac_cv_host=$ac_cv_build
4367 else
4368 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4369 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4370 fi
4371
4372 fi
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4374 $as_echo "$ac_cv_host" >&6; }
4375 case $ac_cv_host in
4376 *-*-*) ;;
4377 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4378 esac
4379 host=$ac_cv_host
4380 ac_save_IFS=$IFS; IFS='-'
4381 set x $ac_cv_host
4382 shift
4383 host_cpu=$1
4384 host_vendor=$2
4385 shift; shift
4386 # Remember, the first character of IFS is used to create $*,
4387 # except with old shells:
4388 host_os=$*
4389 IFS=$ac_save_IFS
4390 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4391
4392
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4394 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4395 if ${ac_cv_path_SED+:} false; then :
4396 $as_echo_n "(cached) " >&6
4397 else
4398 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4399 for ac_i in 1 2 3 4 5 6 7; do
4400 ac_script="$ac_script$as_nl$ac_script"
4401 done
4402 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4403 { ac_script=; unset ac_script;}
4404 if test -z "$SED"; then
4405 ac_path_SED_found=false
4406 # Loop through the user's path and test for each of PROGNAME-LIST
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH
4409 do
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_prog in sed gsed; do
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4415 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4416 # Check for GNU ac_path_SED and select it if it is found.
4417 # Check for GNU $ac_path_SED
4418 case `"$ac_path_SED" --version 2>&1` in
4419 *GNU*)
4420 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4421 *)
4422 ac_count=0
4423 $as_echo_n 0123456789 >"conftest.in"
4424 while :
4425 do
4426 cat "conftest.in" "conftest.in" >"conftest.tmp"
4427 mv "conftest.tmp" "conftest.in"
4428 cp "conftest.in" "conftest.nl"
4429 $as_echo '' >> "conftest.nl"
4430 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4431 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4432 as_fn_arith $ac_count + 1 && ac_count=$as_val
4433 if test $ac_count -gt ${ac_path_SED_max-0}; then
4434 # Best one so far, save it but keep looking for a better one
4435 ac_cv_path_SED="$ac_path_SED"
4436 ac_path_SED_max=$ac_count
4437 fi
4438 # 10*(2^10) chars as input seems more than enough
4439 test $ac_count -gt 10 && break
4440 done
4441 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4442 esac
4443
4444 $ac_path_SED_found && break 3
4445 done
4446 done
4447 done
4448 IFS=$as_save_IFS
4449 if test -z "$ac_cv_path_SED"; then
4450 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4451 fi
4452 else
4453 ac_cv_path_SED=$SED
4454 fi
4455
4456 fi
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4458 $as_echo "$ac_cv_path_SED" >&6; }
4459 SED="$ac_cv_path_SED"
4460 rm -f conftest.sed
4461
4462
4463
4464
4465
4466
4467 # Check whether --enable-selective-werror was given.
4468 if test "${enable_selective_werror+set}" = set; then :
4469 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4470 else
4471 SELECTIVE_WERROR=yes
4472 fi
4473
4474
4475
4476
4477
4478 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4479 if test "x$SUNCC" = "xyes"; then
4480 BASE_CFLAGS="-v"
4481 else
4482 BASE_CFLAGS=""
4483 fi
4484
4485 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499 xorg_testset_save_CFLAGS="$CFLAGS"
4500
4501 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4504 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4505 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4510 int i;
4511 _ACEOF
4512 if ac_fn_c_try_compile "$LINENO"; then :
4513 xorg_cv_cc_flag_unknown_warning_option=yes
4514 else
4515 xorg_cv_cc_flag_unknown_warning_option=no
4516 fi
4517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518 fi
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4520 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4522 CFLAGS="$xorg_testset_save_CFLAGS"
4523 fi
4524
4525 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4528 fi
4529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4531 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4532 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4537 int i;
4538 _ACEOF
4539 if ac_fn_c_try_compile "$LINENO"; then :
4540 xorg_cv_cc_flag_unused_command_line_argument=yes
4541 else
4542 xorg_cv_cc_flag_unused_command_line_argument=no
4543 fi
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545 fi
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4547 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4549 CFLAGS="$xorg_testset_save_CFLAGS"
4550 fi
4551
4552 found="no"
4553
4554 if test $found = "no" ; then
4555 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4557 fi
4558
4559 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4561 fi
4562
4563 CFLAGS="$CFLAGS -Wall"
4564
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4566 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4567 cacheid=xorg_cv_cc_flag__Wall
4568 if eval \${$cacheid+:} false; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4573 int i;
4574 int
4575 main ()
4576 {
4577
4578 ;
4579 return 0;
4580 }
4581 _ACEOF
4582 if ac_fn_c_try_link "$LINENO"; then :
4583 eval $cacheid=yes
4584 else
4585 eval $cacheid=no
4586 fi
4587 rm -f core conftest.err conftest.$ac_objext \
4588 conftest$ac_exeext conftest.$ac_ext
4589 fi
4590
4591
4592 CFLAGS="$xorg_testset_save_CFLAGS"
4593
4594 eval supported=\$$cacheid
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4596 $as_echo "$supported" >&6; }
4597 if test "$supported" = "yes" ; then
4598 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4599 found="yes"
4600 fi
4601 fi
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617 xorg_testset_save_CFLAGS="$CFLAGS"
4618
4619 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4622 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4623 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4628 int i;
4629 _ACEOF
4630 if ac_fn_c_try_compile "$LINENO"; then :
4631 xorg_cv_cc_flag_unknown_warning_option=yes
4632 else
4633 xorg_cv_cc_flag_unknown_warning_option=no
4634 fi
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 fi
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4638 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4639 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4640 CFLAGS="$xorg_testset_save_CFLAGS"
4641 fi
4642
4643 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4646 fi
4647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4649 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4650 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4655 int i;
4656 _ACEOF
4657 if ac_fn_c_try_compile "$LINENO"; then :
4658 xorg_cv_cc_flag_unused_command_line_argument=yes
4659 else
4660 xorg_cv_cc_flag_unused_command_line_argument=no
4661 fi
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663 fi
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4665 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4667 CFLAGS="$xorg_testset_save_CFLAGS"
4668 fi
4669
4670 found="no"
4671
4672 if test $found = "no" ; then
4673 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4675 fi
4676
4677 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4679 fi
4680
4681 CFLAGS="$CFLAGS -Wpointer-arith"
4682
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4684 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4685 cacheid=xorg_cv_cc_flag__Wpointer_arith
4686 if eval \${$cacheid+:} false; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4691 int i;
4692 int
4693 main ()
4694 {
4695
4696 ;
4697 return 0;
4698 }
4699 _ACEOF
4700 if ac_fn_c_try_link "$LINENO"; then :
4701 eval $cacheid=yes
4702 else
4703 eval $cacheid=no
4704 fi
4705 rm -f core conftest.err conftest.$ac_objext \
4706 conftest$ac_exeext conftest.$ac_ext
4707 fi
4708
4709
4710 CFLAGS="$xorg_testset_save_CFLAGS"
4711
4712 eval supported=\$$cacheid
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4714 $as_echo "$supported" >&6; }
4715 if test "$supported" = "yes" ; then
4716 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4717 found="yes"
4718 fi
4719 fi
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735 xorg_testset_save_CFLAGS="$CFLAGS"
4736
4737 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4740 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4741 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4742 $as_echo_n "(cached) " >&6
4743 else
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4746 int i;
4747 _ACEOF
4748 if ac_fn_c_try_compile "$LINENO"; then :
4749 xorg_cv_cc_flag_unknown_warning_option=yes
4750 else
4751 xorg_cv_cc_flag_unknown_warning_option=no
4752 fi
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754 fi
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4756 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4758 CFLAGS="$xorg_testset_save_CFLAGS"
4759 fi
4760
4761 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4764 fi
4765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4767 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4768 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4773 int i;
4774 _ACEOF
4775 if ac_fn_c_try_compile "$LINENO"; then :
4776 xorg_cv_cc_flag_unused_command_line_argument=yes
4777 else
4778 xorg_cv_cc_flag_unused_command_line_argument=no
4779 fi
4780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4781 fi
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4783 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4785 CFLAGS="$xorg_testset_save_CFLAGS"
4786 fi
4787
4788 found="no"
4789
4790 if test $found = "no" ; then
4791 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4793 fi
4794
4795 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4797 fi
4798
4799 CFLAGS="$CFLAGS -Wmissing-declarations"
4800
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4802 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4803 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4804 if eval \${$cacheid+:} false; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4809 int i;
4810 int
4811 main ()
4812 {
4813
4814 ;
4815 return 0;
4816 }
4817 _ACEOF
4818 if ac_fn_c_try_link "$LINENO"; then :
4819 eval $cacheid=yes
4820 else
4821 eval $cacheid=no
4822 fi
4823 rm -f core conftest.err conftest.$ac_objext \
4824 conftest$ac_exeext conftest.$ac_ext
4825 fi
4826
4827
4828 CFLAGS="$xorg_testset_save_CFLAGS"
4829
4830 eval supported=\$$cacheid
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4832 $as_echo "$supported" >&6; }
4833 if test "$supported" = "yes" ; then
4834 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4835 found="yes"
4836 fi
4837 fi
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853 xorg_testset_save_CFLAGS="$CFLAGS"
4854
4855 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4858 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4859 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h. */
4864 int i;
4865 _ACEOF
4866 if ac_fn_c_try_compile "$LINENO"; then :
4867 xorg_cv_cc_flag_unknown_warning_option=yes
4868 else
4869 xorg_cv_cc_flag_unknown_warning_option=no
4870 fi
4871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4872 fi
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4874 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4876 CFLAGS="$xorg_testset_save_CFLAGS"
4877 fi
4878
4879 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4882 fi
4883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4885 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4886 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890 /* end confdefs.h. */
4891 int i;
4892 _ACEOF
4893 if ac_fn_c_try_compile "$LINENO"; then :
4894 xorg_cv_cc_flag_unused_command_line_argument=yes
4895 else
4896 xorg_cv_cc_flag_unused_command_line_argument=no
4897 fi
4898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899 fi
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4901 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4902 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4903 CFLAGS="$xorg_testset_save_CFLAGS"
4904 fi
4905
4906 found="no"
4907
4908 if test $found = "no" ; then
4909 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4911 fi
4912
4913 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4915 fi
4916
4917 CFLAGS="$CFLAGS -Wformat=2"
4918
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4920 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
4921 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4922 if eval \${$cacheid+:} false; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4927 int i;
4928 int
4929 main ()
4930 {
4931
4932 ;
4933 return 0;
4934 }
4935 _ACEOF
4936 if ac_fn_c_try_link "$LINENO"; then :
4937 eval $cacheid=yes
4938 else
4939 eval $cacheid=no
4940 fi
4941 rm -f core conftest.err conftest.$ac_objext \
4942 conftest$ac_exeext conftest.$ac_ext
4943 fi
4944
4945
4946 CFLAGS="$xorg_testset_save_CFLAGS"
4947
4948 eval supported=\$$cacheid
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4950 $as_echo "$supported" >&6; }
4951 if test "$supported" = "yes" ; then
4952 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4953 found="yes"
4954 fi
4955 fi
4956
4957 if test $found = "no" ; then
4958 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4960 fi
4961
4962 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4964 fi
4965
4966 CFLAGS="$CFLAGS -Wformat"
4967
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
4969 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
4970 cacheid=xorg_cv_cc_flag__Wformat
4971 if eval \${$cacheid+:} false; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4976 int i;
4977 int
4978 main ()
4979 {
4980
4981 ;
4982 return 0;
4983 }
4984 _ACEOF
4985 if ac_fn_c_try_link "$LINENO"; then :
4986 eval $cacheid=yes
4987 else
4988 eval $cacheid=no
4989 fi
4990 rm -f core conftest.err conftest.$ac_objext \
4991 conftest$ac_exeext conftest.$ac_ext
4992 fi
4993
4994
4995 CFLAGS="$xorg_testset_save_CFLAGS"
4996
4997 eval supported=\$$cacheid
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4999 $as_echo "$supported" >&6; }
5000 if test "$supported" = "yes" ; then
5001 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5002 found="yes"
5003 fi
5004 fi
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022 xorg_testset_save_CFLAGS="$CFLAGS"
5023
5024 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5027 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5028 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5029 $as_echo_n "(cached) " >&6
5030 else
5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032 /* end confdefs.h. */
5033 int i;
5034 _ACEOF
5035 if ac_fn_c_try_compile "$LINENO"; then :
5036 xorg_cv_cc_flag_unknown_warning_option=yes
5037 else
5038 xorg_cv_cc_flag_unknown_warning_option=no
5039 fi
5040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041 fi
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5043 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5045 CFLAGS="$xorg_testset_save_CFLAGS"
5046 fi
5047
5048 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5051 fi
5052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5054 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5055 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5056 $as_echo_n "(cached) " >&6
5057 else
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5060 int i;
5061 _ACEOF
5062 if ac_fn_c_try_compile "$LINENO"; then :
5063 xorg_cv_cc_flag_unused_command_line_argument=yes
5064 else
5065 xorg_cv_cc_flag_unused_command_line_argument=no
5066 fi
5067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068 fi
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5070 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5072 CFLAGS="$xorg_testset_save_CFLAGS"
5073 fi
5074
5075 found="no"
5076
5077 if test $found = "no" ; then
5078 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5080 fi
5081
5082 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5084 fi
5085
5086 CFLAGS="$CFLAGS -Wstrict-prototypes"
5087
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5089 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5090 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5091 if eval \${$cacheid+:} false; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h. */
5096 int i;
5097 int
5098 main ()
5099 {
5100
5101 ;
5102 return 0;
5103 }
5104 _ACEOF
5105 if ac_fn_c_try_link "$LINENO"; then :
5106 eval $cacheid=yes
5107 else
5108 eval $cacheid=no
5109 fi
5110 rm -f core conftest.err conftest.$ac_objext \
5111 conftest$ac_exeext conftest.$ac_ext
5112 fi
5113
5114
5115 CFLAGS="$xorg_testset_save_CFLAGS"
5116
5117 eval supported=\$$cacheid
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5119 $as_echo "$supported" >&6; }
5120 if test "$supported" = "yes" ; then
5121 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5122 found="yes"
5123 fi
5124 fi
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140 xorg_testset_save_CFLAGS="$CFLAGS"
5141
5142 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5145 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5146 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5151 int i;
5152 _ACEOF
5153 if ac_fn_c_try_compile "$LINENO"; then :
5154 xorg_cv_cc_flag_unknown_warning_option=yes
5155 else
5156 xorg_cv_cc_flag_unknown_warning_option=no
5157 fi
5158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159 fi
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5161 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5163 CFLAGS="$xorg_testset_save_CFLAGS"
5164 fi
5165
5166 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5169 fi
5170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5172 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5173 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178 int i;
5179 _ACEOF
5180 if ac_fn_c_try_compile "$LINENO"; then :
5181 xorg_cv_cc_flag_unused_command_line_argument=yes
5182 else
5183 xorg_cv_cc_flag_unused_command_line_argument=no
5184 fi
5185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5186 fi
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5188 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5190 CFLAGS="$xorg_testset_save_CFLAGS"
5191 fi
5192
5193 found="no"
5194
5195 if test $found = "no" ; then
5196 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5198 fi
5199
5200 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5202 fi
5203
5204 CFLAGS="$CFLAGS -Wmissing-prototypes"
5205
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5207 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5208 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5209 if eval \${$cacheid+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5214 int i;
5215 int
5216 main ()
5217 {
5218
5219 ;
5220 return 0;
5221 }
5222 _ACEOF
5223 if ac_fn_c_try_link "$LINENO"; then :
5224 eval $cacheid=yes
5225 else
5226 eval $cacheid=no
5227 fi
5228 rm -f core conftest.err conftest.$ac_objext \
5229 conftest$ac_exeext conftest.$ac_ext
5230 fi
5231
5232
5233 CFLAGS="$xorg_testset_save_CFLAGS"
5234
5235 eval supported=\$$cacheid
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5237 $as_echo "$supported" >&6; }
5238 if test "$supported" = "yes" ; then
5239 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5240 found="yes"
5241 fi
5242 fi
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258 xorg_testset_save_CFLAGS="$CFLAGS"
5259
5260 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5263 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5264 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5269 int i;
5270 _ACEOF
5271 if ac_fn_c_try_compile "$LINENO"; then :
5272 xorg_cv_cc_flag_unknown_warning_option=yes
5273 else
5274 xorg_cv_cc_flag_unknown_warning_option=no
5275 fi
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 fi
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5279 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5281 CFLAGS="$xorg_testset_save_CFLAGS"
5282 fi
5283
5284 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5287 fi
5288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5290 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5291 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5296 int i;
5297 _ACEOF
5298 if ac_fn_c_try_compile "$LINENO"; then :
5299 xorg_cv_cc_flag_unused_command_line_argument=yes
5300 else
5301 xorg_cv_cc_flag_unused_command_line_argument=no
5302 fi
5303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304 fi
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5306 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5307 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5308 CFLAGS="$xorg_testset_save_CFLAGS"
5309 fi
5310
5311 found="no"
5312
5313 if test $found = "no" ; then
5314 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5316 fi
5317
5318 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5320 fi
5321
5322 CFLAGS="$CFLAGS -Wnested-externs"
5323
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5325 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5326 cacheid=xorg_cv_cc_flag__Wnested_externs
5327 if eval \${$cacheid+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332 int i;
5333 int
5334 main ()
5335 {
5336
5337 ;
5338 return 0;
5339 }
5340 _ACEOF
5341 if ac_fn_c_try_link "$LINENO"; then :
5342 eval $cacheid=yes
5343 else
5344 eval $cacheid=no
5345 fi
5346 rm -f core conftest.err conftest.$ac_objext \
5347 conftest$ac_exeext conftest.$ac_ext
5348 fi
5349
5350
5351 CFLAGS="$xorg_testset_save_CFLAGS"
5352
5353 eval supported=\$$cacheid
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5355 $as_echo "$supported" >&6; }
5356 if test "$supported" = "yes" ; then
5357 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5358 found="yes"
5359 fi
5360 fi
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376 xorg_testset_save_CFLAGS="$CFLAGS"
5377
5378 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5381 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5382 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5383 $as_echo_n "(cached) " >&6
5384 else
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387 int i;
5388 _ACEOF
5389 if ac_fn_c_try_compile "$LINENO"; then :
5390 xorg_cv_cc_flag_unknown_warning_option=yes
5391 else
5392 xorg_cv_cc_flag_unknown_warning_option=no
5393 fi
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395 fi
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5397 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5398 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5399 CFLAGS="$xorg_testset_save_CFLAGS"
5400 fi
5401
5402 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5405 fi
5406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5408 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5409 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5414 int i;
5415 _ACEOF
5416 if ac_fn_c_try_compile "$LINENO"; then :
5417 xorg_cv_cc_flag_unused_command_line_argument=yes
5418 else
5419 xorg_cv_cc_flag_unused_command_line_argument=no
5420 fi
5421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 fi
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5424 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5425 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5426 CFLAGS="$xorg_testset_save_CFLAGS"
5427 fi
5428
5429 found="no"
5430
5431 if test $found = "no" ; then
5432 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5434 fi
5435
5436 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5438 fi
5439
5440 CFLAGS="$CFLAGS -Wbad-function-cast"
5441
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5443 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5444 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5445 if eval \${$cacheid+:} false; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5450 int i;
5451 int
5452 main ()
5453 {
5454
5455 ;
5456 return 0;
5457 }
5458 _ACEOF
5459 if ac_fn_c_try_link "$LINENO"; then :
5460 eval $cacheid=yes
5461 else
5462 eval $cacheid=no
5463 fi
5464 rm -f core conftest.err conftest.$ac_objext \
5465 conftest$ac_exeext conftest.$ac_ext
5466 fi
5467
5468
5469 CFLAGS="$xorg_testset_save_CFLAGS"
5470
5471 eval supported=\$$cacheid
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5473 $as_echo "$supported" >&6; }
5474 if test "$supported" = "yes" ; then
5475 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5476 found="yes"
5477 fi
5478 fi
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494 xorg_testset_save_CFLAGS="$CFLAGS"
5495
5496 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5499 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5500 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504 /* end confdefs.h. */
5505 int i;
5506 _ACEOF
5507 if ac_fn_c_try_compile "$LINENO"; then :
5508 xorg_cv_cc_flag_unknown_warning_option=yes
5509 else
5510 xorg_cv_cc_flag_unknown_warning_option=no
5511 fi
5512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5513 fi
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5515 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5516 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5517 CFLAGS="$xorg_testset_save_CFLAGS"
5518 fi
5519
5520 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5523 fi
5524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5526 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5527 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h. */
5532 int i;
5533 _ACEOF
5534 if ac_fn_c_try_compile "$LINENO"; then :
5535 xorg_cv_cc_flag_unused_command_line_argument=yes
5536 else
5537 xorg_cv_cc_flag_unused_command_line_argument=no
5538 fi
5539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540 fi
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5542 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5544 CFLAGS="$xorg_testset_save_CFLAGS"
5545 fi
5546
5547 found="no"
5548
5549 if test $found = "no" ; then
5550 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5552 fi
5553
5554 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5556 fi
5557
5558 CFLAGS="$CFLAGS -Wold-style-definition"
5559
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5561 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5562 cacheid=xorg_cv_cc_flag__Wold_style_definition
5563 if eval \${$cacheid+:} false; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5568 int i;
5569 int
5570 main ()
5571 {
5572
5573 ;
5574 return 0;
5575 }
5576 _ACEOF
5577 if ac_fn_c_try_link "$LINENO"; then :
5578 eval $cacheid=yes
5579 else
5580 eval $cacheid=no
5581 fi
5582 rm -f core conftest.err conftest.$ac_objext \
5583 conftest$ac_exeext conftest.$ac_ext
5584 fi
5585
5586
5587 CFLAGS="$xorg_testset_save_CFLAGS"
5588
5589 eval supported=\$$cacheid
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5591 $as_echo "$supported" >&6; }
5592 if test "$supported" = "yes" ; then
5593 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5594 found="yes"
5595 fi
5596 fi
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612 xorg_testset_save_CFLAGS="$CFLAGS"
5613
5614 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5617 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5618 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5619 $as_echo_n "(cached) " >&6
5620 else
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5623 int i;
5624 _ACEOF
5625 if ac_fn_c_try_compile "$LINENO"; then :
5626 xorg_cv_cc_flag_unknown_warning_option=yes
5627 else
5628 xorg_cv_cc_flag_unknown_warning_option=no
5629 fi
5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5631 fi
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5633 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5635 CFLAGS="$xorg_testset_save_CFLAGS"
5636 fi
5637
5638 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5641 fi
5642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5644 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5645 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649 /* end confdefs.h. */
5650 int i;
5651 _ACEOF
5652 if ac_fn_c_try_compile "$LINENO"; then :
5653 xorg_cv_cc_flag_unused_command_line_argument=yes
5654 else
5655 xorg_cv_cc_flag_unused_command_line_argument=no
5656 fi
5657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5658 fi
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5660 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5662 CFLAGS="$xorg_testset_save_CFLAGS"
5663 fi
5664
5665 found="no"
5666
5667 if test $found = "no" ; then
5668 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5670 fi
5671
5672 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5674 fi
5675
5676 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5677
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5679 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5680 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5681 if eval \${$cacheid+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5686 int i;
5687 int
5688 main ()
5689 {
5690
5691 ;
5692 return 0;
5693 }
5694 _ACEOF
5695 if ac_fn_c_try_link "$LINENO"; then :
5696 eval $cacheid=yes
5697 else
5698 eval $cacheid=no
5699 fi
5700 rm -f core conftest.err conftest.$ac_objext \
5701 conftest$ac_exeext conftest.$ac_ext
5702 fi
5703
5704
5705 CFLAGS="$xorg_testset_save_CFLAGS"
5706
5707 eval supported=\$$cacheid
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5709 $as_echo "$supported" >&6; }
5710 if test "$supported" = "yes" ; then
5711 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5712 found="yes"
5713 fi
5714 fi
5715
5716
5717
5718
5719
5720 # This chunk adds additional warnings that could catch undesired effects.
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734 xorg_testset_save_CFLAGS="$CFLAGS"
5735
5736 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5739 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5740 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5741 $as_echo_n "(cached) " >&6
5742 else
5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h. */
5745 int i;
5746 _ACEOF
5747 if ac_fn_c_try_compile "$LINENO"; then :
5748 xorg_cv_cc_flag_unknown_warning_option=yes
5749 else
5750 xorg_cv_cc_flag_unknown_warning_option=no
5751 fi
5752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753 fi
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5755 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5757 CFLAGS="$xorg_testset_save_CFLAGS"
5758 fi
5759
5760 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5763 fi
5764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5766 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5767 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771 /* end confdefs.h. */
5772 int i;
5773 _ACEOF
5774 if ac_fn_c_try_compile "$LINENO"; then :
5775 xorg_cv_cc_flag_unused_command_line_argument=yes
5776 else
5777 xorg_cv_cc_flag_unused_command_line_argument=no
5778 fi
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780 fi
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5782 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5783 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5784 CFLAGS="$xorg_testset_save_CFLAGS"
5785 fi
5786
5787 found="no"
5788
5789 if test $found = "no" ; then
5790 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5792 fi
5793
5794 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5796 fi
5797
5798 CFLAGS="$CFLAGS -Wunused"
5799
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5801 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5802 cacheid=xorg_cv_cc_flag__Wunused
5803 if eval \${$cacheid+:} false; then :
5804 $as_echo_n "(cached) " >&6
5805 else
5806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807 /* end confdefs.h. */
5808 int i;
5809 int
5810 main ()
5811 {
5812
5813 ;
5814 return 0;
5815 }
5816 _ACEOF
5817 if ac_fn_c_try_link "$LINENO"; then :
5818 eval $cacheid=yes
5819 else
5820 eval $cacheid=no
5821 fi
5822 rm -f core conftest.err conftest.$ac_objext \
5823 conftest$ac_exeext conftest.$ac_ext
5824 fi
5825
5826
5827 CFLAGS="$xorg_testset_save_CFLAGS"
5828
5829 eval supported=\$$cacheid
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5831 $as_echo "$supported" >&6; }
5832 if test "$supported" = "yes" ; then
5833 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5834 found="yes"
5835 fi
5836 fi
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852 xorg_testset_save_CFLAGS="$CFLAGS"
5853
5854 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5857 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5858 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863 int i;
5864 _ACEOF
5865 if ac_fn_c_try_compile "$LINENO"; then :
5866 xorg_cv_cc_flag_unknown_warning_option=yes
5867 else
5868 xorg_cv_cc_flag_unknown_warning_option=no
5869 fi
5870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5871 fi
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5873 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5875 CFLAGS="$xorg_testset_save_CFLAGS"
5876 fi
5877
5878 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5881 fi
5882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5884 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5885 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5886 $as_echo_n "(cached) " >&6
5887 else
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"; then :
5893 xorg_cv_cc_flag_unused_command_line_argument=yes
5894 else
5895 xorg_cv_cc_flag_unused_command_line_argument=no
5896 fi
5897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5898 fi
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5900 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5902 CFLAGS="$xorg_testset_save_CFLAGS"
5903 fi
5904
5905 found="no"
5906
5907 if test $found = "no" ; then
5908 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5910 fi
5911
5912 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5914 fi
5915
5916 CFLAGS="$CFLAGS -Wuninitialized"
5917
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5919 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5920 cacheid=xorg_cv_cc_flag__Wuninitialized
5921 if eval \${$cacheid+:} false; then :
5922 $as_echo_n "(cached) " >&6
5923 else
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5926 int i;
5927 int
5928 main ()
5929 {
5930
5931 ;
5932 return 0;
5933 }
5934 _ACEOF
5935 if ac_fn_c_try_link "$LINENO"; then :
5936 eval $cacheid=yes
5937 else
5938 eval $cacheid=no
5939 fi
5940 rm -f core conftest.err conftest.$ac_objext \
5941 conftest$ac_exeext conftest.$ac_ext
5942 fi
5943
5944
5945 CFLAGS="$xorg_testset_save_CFLAGS"
5946
5947 eval supported=\$$cacheid
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5949 $as_echo "$supported" >&6; }
5950 if test "$supported" = "yes" ; then
5951 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5952 found="yes"
5953 fi
5954 fi
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970 xorg_testset_save_CFLAGS="$CFLAGS"
5971
5972 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5975 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5976 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5981 int i;
5982 _ACEOF
5983 if ac_fn_c_try_compile "$LINENO"; then :
5984 xorg_cv_cc_flag_unknown_warning_option=yes
5985 else
5986 xorg_cv_cc_flag_unknown_warning_option=no
5987 fi
5988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5989 fi
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5991 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5993 CFLAGS="$xorg_testset_save_CFLAGS"
5994 fi
5995
5996 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5999 fi
6000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6002 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6003 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6008 int i;
6009 _ACEOF
6010 if ac_fn_c_try_compile "$LINENO"; then :
6011 xorg_cv_cc_flag_unused_command_line_argument=yes
6012 else
6013 xorg_cv_cc_flag_unused_command_line_argument=no
6014 fi
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016 fi
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6018 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6020 CFLAGS="$xorg_testset_save_CFLAGS"
6021 fi
6022
6023 found="no"
6024
6025 if test $found = "no" ; then
6026 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6028 fi
6029
6030 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6032 fi
6033
6034 CFLAGS="$CFLAGS -Wshadow"
6035
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6037 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6038 cacheid=xorg_cv_cc_flag__Wshadow
6039 if eval \${$cacheid+:} false; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6044 int i;
6045 int
6046 main ()
6047 {
6048
6049 ;
6050 return 0;
6051 }
6052 _ACEOF
6053 if ac_fn_c_try_link "$LINENO"; then :
6054 eval $cacheid=yes
6055 else
6056 eval $cacheid=no
6057 fi
6058 rm -f core conftest.err conftest.$ac_objext \
6059 conftest$ac_exeext conftest.$ac_ext
6060 fi
6061
6062
6063 CFLAGS="$xorg_testset_save_CFLAGS"
6064
6065 eval supported=\$$cacheid
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6067 $as_echo "$supported" >&6; }
6068 if test "$supported" = "yes" ; then
6069 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6070 found="yes"
6071 fi
6072 fi
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088 xorg_testset_save_CFLAGS="$CFLAGS"
6089
6090 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6093 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6094 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h. */
6099 int i;
6100 _ACEOF
6101 if ac_fn_c_try_compile "$LINENO"; then :
6102 xorg_cv_cc_flag_unknown_warning_option=yes
6103 else
6104 xorg_cv_cc_flag_unknown_warning_option=no
6105 fi
6106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107 fi
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6109 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6111 CFLAGS="$xorg_testset_save_CFLAGS"
6112 fi
6113
6114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6117 fi
6118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6120 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6121 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6126 int i;
6127 _ACEOF
6128 if ac_fn_c_try_compile "$LINENO"; then :
6129 xorg_cv_cc_flag_unused_command_line_argument=yes
6130 else
6131 xorg_cv_cc_flag_unused_command_line_argument=no
6132 fi
6133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134 fi
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6136 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6138 CFLAGS="$xorg_testset_save_CFLAGS"
6139 fi
6140
6141 found="no"
6142
6143 if test $found = "no" ; then
6144 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6146 fi
6147
6148 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6150 fi
6151
6152 CFLAGS="$CFLAGS -Wcast-qual"
6153
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6155 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6156 cacheid=xorg_cv_cc_flag__Wcast_qual
6157 if eval \${$cacheid+:} false; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6161 /* end confdefs.h. */
6162 int i;
6163 int
6164 main ()
6165 {
6166
6167 ;
6168 return 0;
6169 }
6170 _ACEOF
6171 if ac_fn_c_try_link "$LINENO"; then :
6172 eval $cacheid=yes
6173 else
6174 eval $cacheid=no
6175 fi
6176 rm -f core conftest.err conftest.$ac_objext \
6177 conftest$ac_exeext conftest.$ac_ext
6178 fi
6179
6180
6181 CFLAGS="$xorg_testset_save_CFLAGS"
6182
6183 eval supported=\$$cacheid
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6185 $as_echo "$supported" >&6; }
6186 if test "$supported" = "yes" ; then
6187 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6188 found="yes"
6189 fi
6190 fi
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206 xorg_testset_save_CFLAGS="$CFLAGS"
6207
6208 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6211 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6212 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6213 $as_echo_n "(cached) " >&6
6214 else
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h. */
6217 int i;
6218 _ACEOF
6219 if ac_fn_c_try_compile "$LINENO"; then :
6220 xorg_cv_cc_flag_unknown_warning_option=yes
6221 else
6222 xorg_cv_cc_flag_unknown_warning_option=no
6223 fi
6224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225 fi
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6227 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6229 CFLAGS="$xorg_testset_save_CFLAGS"
6230 fi
6231
6232 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6235 fi
6236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6238 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6239 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6244 int i;
6245 _ACEOF
6246 if ac_fn_c_try_compile "$LINENO"; then :
6247 xorg_cv_cc_flag_unused_command_line_argument=yes
6248 else
6249 xorg_cv_cc_flag_unused_command_line_argument=no
6250 fi
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 fi
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6254 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6256 CFLAGS="$xorg_testset_save_CFLAGS"
6257 fi
6258
6259 found="no"
6260
6261 if test $found = "no" ; then
6262 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6264 fi
6265
6266 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6268 fi
6269
6270 CFLAGS="$CFLAGS -Wmissing-noreturn"
6271
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6273 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6274 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6275 if eval \${$cacheid+:} false; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6280 int i;
6281 int
6282 main ()
6283 {
6284
6285 ;
6286 return 0;
6287 }
6288 _ACEOF
6289 if ac_fn_c_try_link "$LINENO"; then :
6290 eval $cacheid=yes
6291 else
6292 eval $cacheid=no
6293 fi
6294 rm -f core conftest.err conftest.$ac_objext \
6295 conftest$ac_exeext conftest.$ac_ext
6296 fi
6297
6298
6299 CFLAGS="$xorg_testset_save_CFLAGS"
6300
6301 eval supported=\$$cacheid
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6303 $as_echo "$supported" >&6; }
6304 if test "$supported" = "yes" ; then
6305 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6306 found="yes"
6307 fi
6308 fi
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324 xorg_testset_save_CFLAGS="$CFLAGS"
6325
6326 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6329 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6330 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6331 $as_echo_n "(cached) " >&6
6332 else
6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334 /* end confdefs.h. */
6335 int i;
6336 _ACEOF
6337 if ac_fn_c_try_compile "$LINENO"; then :
6338 xorg_cv_cc_flag_unknown_warning_option=yes
6339 else
6340 xorg_cv_cc_flag_unknown_warning_option=no
6341 fi
6342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6343 fi
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6345 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6347 CFLAGS="$xorg_testset_save_CFLAGS"
6348 fi
6349
6350 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6353 fi
6354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6356 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6357 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6358 $as_echo_n "(cached) " >&6
6359 else
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6362 int i;
6363 _ACEOF
6364 if ac_fn_c_try_compile "$LINENO"; then :
6365 xorg_cv_cc_flag_unused_command_line_argument=yes
6366 else
6367 xorg_cv_cc_flag_unused_command_line_argument=no
6368 fi
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 fi
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6372 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6374 CFLAGS="$xorg_testset_save_CFLAGS"
6375 fi
6376
6377 found="no"
6378
6379 if test $found = "no" ; then
6380 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6382 fi
6383
6384 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6386 fi
6387
6388 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6389
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6391 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6392 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6393 if eval \${$cacheid+:} false; then :
6394 $as_echo_n "(cached) " >&6
6395 else
6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h. */
6398 int i;
6399 int
6400 main ()
6401 {
6402
6403 ;
6404 return 0;
6405 }
6406 _ACEOF
6407 if ac_fn_c_try_link "$LINENO"; then :
6408 eval $cacheid=yes
6409 else
6410 eval $cacheid=no
6411 fi
6412 rm -f core conftest.err conftest.$ac_objext \
6413 conftest$ac_exeext conftest.$ac_ext
6414 fi
6415
6416
6417 CFLAGS="$xorg_testset_save_CFLAGS"
6418
6419 eval supported=\$$cacheid
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6421 $as_echo "$supported" >&6; }
6422 if test "$supported" = "yes" ; then
6423 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6424 found="yes"
6425 fi
6426 fi
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442 xorg_testset_save_CFLAGS="$CFLAGS"
6443
6444 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6447 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6448 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6449 $as_echo_n "(cached) " >&6
6450 else
6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6453 int i;
6454 _ACEOF
6455 if ac_fn_c_try_compile "$LINENO"; then :
6456 xorg_cv_cc_flag_unknown_warning_option=yes
6457 else
6458 xorg_cv_cc_flag_unknown_warning_option=no
6459 fi
6460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6461 fi
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6463 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6465 CFLAGS="$xorg_testset_save_CFLAGS"
6466 fi
6467
6468 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6471 fi
6472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6474 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6475 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6476 $as_echo_n "(cached) " >&6
6477 else
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6480 int i;
6481 _ACEOF
6482 if ac_fn_c_try_compile "$LINENO"; then :
6483 xorg_cv_cc_flag_unused_command_line_argument=yes
6484 else
6485 xorg_cv_cc_flag_unused_command_line_argument=no
6486 fi
6487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488 fi
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6490 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6492 CFLAGS="$xorg_testset_save_CFLAGS"
6493 fi
6494
6495 found="no"
6496
6497 if test $found = "no" ; then
6498 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6500 fi
6501
6502 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6504 fi
6505
6506 CFLAGS="$CFLAGS -Wredundant-decls"
6507
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6509 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6510 cacheid=xorg_cv_cc_flag__Wredundant_decls
6511 if eval \${$cacheid+:} false; then :
6512 $as_echo_n "(cached) " >&6
6513 else
6514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515 /* end confdefs.h. */
6516 int i;
6517 int
6518 main ()
6519 {
6520
6521 ;
6522 return 0;
6523 }
6524 _ACEOF
6525 if ac_fn_c_try_link "$LINENO"; then :
6526 eval $cacheid=yes
6527 else
6528 eval $cacheid=no
6529 fi
6530 rm -f core conftest.err conftest.$ac_objext \
6531 conftest$ac_exeext conftest.$ac_ext
6532 fi
6533
6534
6535 CFLAGS="$xorg_testset_save_CFLAGS"
6536
6537 eval supported=\$$cacheid
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6539 $as_echo "$supported" >&6; }
6540 if test "$supported" = "yes" ; then
6541 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6542 found="yes"
6543 fi
6544 fi
6545
6546
6547
6548 # These are currently disabled because they are noisy. They will be enabled
6549 # in the future once the codebase is sufficiently modernized to silence
6550 # them. For now, I don't want them to drown out the other warnings.
6551 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6552 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6553 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6554
6555 # Turn some warnings into errors, so we don't accidently get successful builds
6556 # when there are problems that should be fixed.
6557
6558 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572 xorg_testset_save_CFLAGS="$CFLAGS"
6573
6574 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6577 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6578 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6579 $as_echo_n "(cached) " >&6
6580 else
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6583 int i;
6584 _ACEOF
6585 if ac_fn_c_try_compile "$LINENO"; then :
6586 xorg_cv_cc_flag_unknown_warning_option=yes
6587 else
6588 xorg_cv_cc_flag_unknown_warning_option=no
6589 fi
6590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6591 fi
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6593 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6594 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6595 CFLAGS="$xorg_testset_save_CFLAGS"
6596 fi
6597
6598 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6601 fi
6602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6604 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6605 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6610 int i;
6611 _ACEOF
6612 if ac_fn_c_try_compile "$LINENO"; then :
6613 xorg_cv_cc_flag_unused_command_line_argument=yes
6614 else
6615 xorg_cv_cc_flag_unused_command_line_argument=no
6616 fi
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 fi
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6620 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6622 CFLAGS="$xorg_testset_save_CFLAGS"
6623 fi
6624
6625 found="no"
6626
6627 if test $found = "no" ; then
6628 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6630 fi
6631
6632 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6634 fi
6635
6636 CFLAGS="$CFLAGS -Werror=implicit"
6637
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6639 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6640 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6641 if eval \${$cacheid+:} false; then :
6642 $as_echo_n "(cached) " >&6
6643 else
6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h. */
6646 int i;
6647 int
6648 main ()
6649 {
6650
6651 ;
6652 return 0;
6653 }
6654 _ACEOF
6655 if ac_fn_c_try_link "$LINENO"; then :
6656 eval $cacheid=yes
6657 else
6658 eval $cacheid=no
6659 fi
6660 rm -f core conftest.err conftest.$ac_objext \
6661 conftest$ac_exeext conftest.$ac_ext
6662 fi
6663
6664
6665 CFLAGS="$xorg_testset_save_CFLAGS"
6666
6667 eval supported=\$$cacheid
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6669 $as_echo "$supported" >&6; }
6670 if test "$supported" = "yes" ; then
6671 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6672 found="yes"
6673 fi
6674 fi
6675
6676 if test $found = "no" ; then
6677 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6679 fi
6680
6681 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6683 fi
6684
6685 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6686
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6688 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6689 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6690 if eval \${$cacheid+:} false; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694 /* end confdefs.h. */
6695 int i;
6696 int
6697 main ()
6698 {
6699
6700 ;
6701 return 0;
6702 }
6703 _ACEOF
6704 if ac_fn_c_try_link "$LINENO"; then :
6705 eval $cacheid=yes
6706 else
6707 eval $cacheid=no
6708 fi
6709 rm -f core conftest.err conftest.$ac_objext \
6710 conftest$ac_exeext conftest.$ac_ext
6711 fi
6712
6713
6714 CFLAGS="$xorg_testset_save_CFLAGS"
6715
6716 eval supported=\$$cacheid
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6718 $as_echo "$supported" >&6; }
6719 if test "$supported" = "yes" ; then
6720 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6721 found="yes"
6722 fi
6723 fi
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739 xorg_testset_save_CFLAGS="$CFLAGS"
6740
6741 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6744 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6745 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6746 $as_echo_n "(cached) " >&6
6747 else
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6750 int i;
6751 _ACEOF
6752 if ac_fn_c_try_compile "$LINENO"; then :
6753 xorg_cv_cc_flag_unknown_warning_option=yes
6754 else
6755 xorg_cv_cc_flag_unknown_warning_option=no
6756 fi
6757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758 fi
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6760 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6762 CFLAGS="$xorg_testset_save_CFLAGS"
6763 fi
6764
6765 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6768 fi
6769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6771 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6772 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777 int i;
6778 _ACEOF
6779 if ac_fn_c_try_compile "$LINENO"; then :
6780 xorg_cv_cc_flag_unused_command_line_argument=yes
6781 else
6782 xorg_cv_cc_flag_unused_command_line_argument=no
6783 fi
6784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785 fi
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6787 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6789 CFLAGS="$xorg_testset_save_CFLAGS"
6790 fi
6791
6792 found="no"
6793
6794 if test $found = "no" ; then
6795 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6797 fi
6798
6799 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6801 fi
6802
6803 CFLAGS="$CFLAGS -Werror=nonnull"
6804
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6806 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6807 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6808 if eval \${$cacheid+:} false; then :
6809 $as_echo_n "(cached) " >&6
6810 else
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6813 int i;
6814 int
6815 main ()
6816 {
6817
6818 ;
6819 return 0;
6820 }
6821 _ACEOF
6822 if ac_fn_c_try_link "$LINENO"; then :
6823 eval $cacheid=yes
6824 else
6825 eval $cacheid=no
6826 fi
6827 rm -f core conftest.err conftest.$ac_objext \
6828 conftest$ac_exeext conftest.$ac_ext
6829 fi
6830
6831
6832 CFLAGS="$xorg_testset_save_CFLAGS"
6833
6834 eval supported=\$$cacheid
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6836 $as_echo "$supported" >&6; }
6837 if test "$supported" = "yes" ; then
6838 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6839 found="yes"
6840 fi
6841 fi
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857 xorg_testset_save_CFLAGS="$CFLAGS"
6858
6859 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6862 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6863 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6864 $as_echo_n "(cached) " >&6
6865 else
6866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867 /* end confdefs.h. */
6868 int i;
6869 _ACEOF
6870 if ac_fn_c_try_compile "$LINENO"; then :
6871 xorg_cv_cc_flag_unknown_warning_option=yes
6872 else
6873 xorg_cv_cc_flag_unknown_warning_option=no
6874 fi
6875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6876 fi
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6878 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6879 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6880 CFLAGS="$xorg_testset_save_CFLAGS"
6881 fi
6882
6883 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6886 fi
6887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6889 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6890 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6895 int i;
6896 _ACEOF
6897 if ac_fn_c_try_compile "$LINENO"; then :
6898 xorg_cv_cc_flag_unused_command_line_argument=yes
6899 else
6900 xorg_cv_cc_flag_unused_command_line_argument=no
6901 fi
6902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6903 fi
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6905 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6907 CFLAGS="$xorg_testset_save_CFLAGS"
6908 fi
6909
6910 found="no"
6911
6912 if test $found = "no" ; then
6913 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6915 fi
6916
6917 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6919 fi
6920
6921 CFLAGS="$CFLAGS -Werror=init-self"
6922
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6924 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6925 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6926 if eval \${$cacheid+:} false; then :
6927 $as_echo_n "(cached) " >&6
6928 else
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6931 int i;
6932 int
6933 main ()
6934 {
6935
6936 ;
6937 return 0;
6938 }
6939 _ACEOF
6940 if ac_fn_c_try_link "$LINENO"; then :
6941 eval $cacheid=yes
6942 else
6943 eval $cacheid=no
6944 fi
6945 rm -f core conftest.err conftest.$ac_objext \
6946 conftest$ac_exeext conftest.$ac_ext
6947 fi
6948
6949
6950 CFLAGS="$xorg_testset_save_CFLAGS"
6951
6952 eval supported=\$$cacheid
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6954 $as_echo "$supported" >&6; }
6955 if test "$supported" = "yes" ; then
6956 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6957 found="yes"
6958 fi
6959 fi
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975 xorg_testset_save_CFLAGS="$CFLAGS"
6976
6977 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6980 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6981 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6982 $as_echo_n "(cached) " >&6
6983 else
6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h. */
6986 int i;
6987 _ACEOF
6988 if ac_fn_c_try_compile "$LINENO"; then :
6989 xorg_cv_cc_flag_unknown_warning_option=yes
6990 else
6991 xorg_cv_cc_flag_unknown_warning_option=no
6992 fi
6993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6994 fi
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6996 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6997 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6998 CFLAGS="$xorg_testset_save_CFLAGS"
6999 fi
7000
7001 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7004 fi
7005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7007 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7008 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7013 int i;
7014 _ACEOF
7015 if ac_fn_c_try_compile "$LINENO"; then :
7016 xorg_cv_cc_flag_unused_command_line_argument=yes
7017 else
7018 xorg_cv_cc_flag_unused_command_line_argument=no
7019 fi
7020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7021 fi
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7023 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7024 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7025 CFLAGS="$xorg_testset_save_CFLAGS"
7026 fi
7027
7028 found="no"
7029
7030 if test $found = "no" ; then
7031 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7033 fi
7034
7035 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7037 fi
7038
7039 CFLAGS="$CFLAGS -Werror=main"
7040
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7042 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7043 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7044 if eval \${$cacheid+:} false; then :
7045 $as_echo_n "(cached) " >&6
7046 else
7047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048 /* end confdefs.h. */
7049 int i;
7050 int
7051 main ()
7052 {
7053
7054 ;
7055 return 0;
7056 }
7057 _ACEOF
7058 if ac_fn_c_try_link "$LINENO"; then :
7059 eval $cacheid=yes
7060 else
7061 eval $cacheid=no
7062 fi
7063 rm -f core conftest.err conftest.$ac_objext \
7064 conftest$ac_exeext conftest.$ac_ext
7065 fi
7066
7067
7068 CFLAGS="$xorg_testset_save_CFLAGS"
7069
7070 eval supported=\$$cacheid
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7072 $as_echo "$supported" >&6; }
7073 if test "$supported" = "yes" ; then
7074 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7075 found="yes"
7076 fi
7077 fi
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093 xorg_testset_save_CFLAGS="$CFLAGS"
7094
7095 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7098 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7099 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7100 $as_echo_n "(cached) " >&6
7101 else
7102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h. */
7104 int i;
7105 _ACEOF
7106 if ac_fn_c_try_compile "$LINENO"; then :
7107 xorg_cv_cc_flag_unknown_warning_option=yes
7108 else
7109 xorg_cv_cc_flag_unknown_warning_option=no
7110 fi
7111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7112 fi
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7114 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7116 CFLAGS="$xorg_testset_save_CFLAGS"
7117 fi
7118
7119 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7122 fi
7123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7125 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7126 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7127 $as_echo_n "(cached) " >&6
7128 else
7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7131 int i;
7132 _ACEOF
7133 if ac_fn_c_try_compile "$LINENO"; then :
7134 xorg_cv_cc_flag_unused_command_line_argument=yes
7135 else
7136 xorg_cv_cc_flag_unused_command_line_argument=no
7137 fi
7138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7139 fi
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7141 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7143 CFLAGS="$xorg_testset_save_CFLAGS"
7144 fi
7145
7146 found="no"
7147
7148 if test $found = "no" ; then
7149 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7151 fi
7152
7153 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7155 fi
7156
7157 CFLAGS="$CFLAGS -Werror=missing-braces"
7158
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7160 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7161 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7162 if eval \${$cacheid+:} false; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7167 int i;
7168 int
7169 main ()
7170 {
7171
7172 ;
7173 return 0;
7174 }
7175 _ACEOF
7176 if ac_fn_c_try_link "$LINENO"; then :
7177 eval $cacheid=yes
7178 else
7179 eval $cacheid=no
7180 fi
7181 rm -f core conftest.err conftest.$ac_objext \
7182 conftest$ac_exeext conftest.$ac_ext
7183 fi
7184
7185
7186 CFLAGS="$xorg_testset_save_CFLAGS"
7187
7188 eval supported=\$$cacheid
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7190 $as_echo "$supported" >&6; }
7191 if test "$supported" = "yes" ; then
7192 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7193 found="yes"
7194 fi
7195 fi
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211 xorg_testset_save_CFLAGS="$CFLAGS"
7212
7213 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7216 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7217 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7218 $as_echo_n "(cached) " >&6
7219 else
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7222 int i;
7223 _ACEOF
7224 if ac_fn_c_try_compile "$LINENO"; then :
7225 xorg_cv_cc_flag_unknown_warning_option=yes
7226 else
7227 xorg_cv_cc_flag_unknown_warning_option=no
7228 fi
7229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230 fi
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7232 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7234 CFLAGS="$xorg_testset_save_CFLAGS"
7235 fi
7236
7237 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7240 fi
7241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7243 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7244 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7245 $as_echo_n "(cached) " >&6
7246 else
7247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h. */
7249 int i;
7250 _ACEOF
7251 if ac_fn_c_try_compile "$LINENO"; then :
7252 xorg_cv_cc_flag_unused_command_line_argument=yes
7253 else
7254 xorg_cv_cc_flag_unused_command_line_argument=no
7255 fi
7256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257 fi
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7259 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7261 CFLAGS="$xorg_testset_save_CFLAGS"
7262 fi
7263
7264 found="no"
7265
7266 if test $found = "no" ; then
7267 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7269 fi
7270
7271 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7273 fi
7274
7275 CFLAGS="$CFLAGS -Werror=sequence-point"
7276
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7278 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7279 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7280 if eval \${$cacheid+:} false; then :
7281 $as_echo_n "(cached) " >&6
7282 else
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7285 int i;
7286 int
7287 main ()
7288 {
7289
7290 ;
7291 return 0;
7292 }
7293 _ACEOF
7294 if ac_fn_c_try_link "$LINENO"; then :
7295 eval $cacheid=yes
7296 else
7297 eval $cacheid=no
7298 fi
7299 rm -f core conftest.err conftest.$ac_objext \
7300 conftest$ac_exeext conftest.$ac_ext
7301 fi
7302
7303
7304 CFLAGS="$xorg_testset_save_CFLAGS"
7305
7306 eval supported=\$$cacheid
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7308 $as_echo "$supported" >&6; }
7309 if test "$supported" = "yes" ; then
7310 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7311 found="yes"
7312 fi
7313 fi
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329 xorg_testset_save_CFLAGS="$CFLAGS"
7330
7331 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7334 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7335 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7336 $as_echo_n "(cached) " >&6
7337 else
7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339 /* end confdefs.h. */
7340 int i;
7341 _ACEOF
7342 if ac_fn_c_try_compile "$LINENO"; then :
7343 xorg_cv_cc_flag_unknown_warning_option=yes
7344 else
7345 xorg_cv_cc_flag_unknown_warning_option=no
7346 fi
7347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348 fi
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7350 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7352 CFLAGS="$xorg_testset_save_CFLAGS"
7353 fi
7354
7355 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7358 fi
7359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7361 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7362 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7363 $as_echo_n "(cached) " >&6
7364 else
7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7367 int i;
7368 _ACEOF
7369 if ac_fn_c_try_compile "$LINENO"; then :
7370 xorg_cv_cc_flag_unused_command_line_argument=yes
7371 else
7372 xorg_cv_cc_flag_unused_command_line_argument=no
7373 fi
7374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 fi
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7377 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7379 CFLAGS="$xorg_testset_save_CFLAGS"
7380 fi
7381
7382 found="no"
7383
7384 if test $found = "no" ; then
7385 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7387 fi
7388
7389 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7391 fi
7392
7393 CFLAGS="$CFLAGS -Werror=return-type"
7394
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7396 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7397 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7398 if eval \${$cacheid+:} false; then :
7399 $as_echo_n "(cached) " >&6
7400 else
7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h. */
7403 int i;
7404 int
7405 main ()
7406 {
7407
7408 ;
7409 return 0;
7410 }
7411 _ACEOF
7412 if ac_fn_c_try_link "$LINENO"; then :
7413 eval $cacheid=yes
7414 else
7415 eval $cacheid=no
7416 fi
7417 rm -f core conftest.err conftest.$ac_objext \
7418 conftest$ac_exeext conftest.$ac_ext
7419 fi
7420
7421
7422 CFLAGS="$xorg_testset_save_CFLAGS"
7423
7424 eval supported=\$$cacheid
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7426 $as_echo "$supported" >&6; }
7427 if test "$supported" = "yes" ; then
7428 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7429 found="yes"
7430 fi
7431 fi
7432
7433 if test $found = "no" ; then
7434 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7436 fi
7437
7438 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7440 fi
7441
7442 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7443
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7445 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7446 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7447 if eval \${$cacheid+:} false; then :
7448 $as_echo_n "(cached) " >&6
7449 else
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7452 int i;
7453 int
7454 main ()
7455 {
7456
7457 ;
7458 return 0;
7459 }
7460 _ACEOF
7461 if ac_fn_c_try_link "$LINENO"; then :
7462 eval $cacheid=yes
7463 else
7464 eval $cacheid=no
7465 fi
7466 rm -f core conftest.err conftest.$ac_objext \
7467 conftest$ac_exeext conftest.$ac_ext
7468 fi
7469
7470
7471 CFLAGS="$xorg_testset_save_CFLAGS"
7472
7473 eval supported=\$$cacheid
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7475 $as_echo "$supported" >&6; }
7476 if test "$supported" = "yes" ; then
7477 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7478 found="yes"
7479 fi
7480 fi
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496 xorg_testset_save_CFLAGS="$CFLAGS"
7497
7498 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7501 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7502 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7503 $as_echo_n "(cached) " >&6
7504 else
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7507 int i;
7508 _ACEOF
7509 if ac_fn_c_try_compile "$LINENO"; then :
7510 xorg_cv_cc_flag_unknown_warning_option=yes
7511 else
7512 xorg_cv_cc_flag_unknown_warning_option=no
7513 fi
7514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7515 fi
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7517 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7519 CFLAGS="$xorg_testset_save_CFLAGS"
7520 fi
7521
7522 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7525 fi
7526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7528 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7529 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7530 $as_echo_n "(cached) " >&6
7531 else
7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7534 int i;
7535 _ACEOF
7536 if ac_fn_c_try_compile "$LINENO"; then :
7537 xorg_cv_cc_flag_unused_command_line_argument=yes
7538 else
7539 xorg_cv_cc_flag_unused_command_line_argument=no
7540 fi
7541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7542 fi
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7544 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7546 CFLAGS="$xorg_testset_save_CFLAGS"
7547 fi
7548
7549 found="no"
7550
7551 if test $found = "no" ; then
7552 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7554 fi
7555
7556 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7558 fi
7559
7560 CFLAGS="$CFLAGS -Werror=trigraphs"
7561
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7563 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7564 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7565 if eval \${$cacheid+:} false; then :
7566 $as_echo_n "(cached) " >&6
7567 else
7568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569 /* end confdefs.h. */
7570 int i;
7571 int
7572 main ()
7573 {
7574
7575 ;
7576 return 0;
7577 }
7578 _ACEOF
7579 if ac_fn_c_try_link "$LINENO"; then :
7580 eval $cacheid=yes
7581 else
7582 eval $cacheid=no
7583 fi
7584 rm -f core conftest.err conftest.$ac_objext \
7585 conftest$ac_exeext conftest.$ac_ext
7586 fi
7587
7588
7589 CFLAGS="$xorg_testset_save_CFLAGS"
7590
7591 eval supported=\$$cacheid
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7593 $as_echo "$supported" >&6; }
7594 if test "$supported" = "yes" ; then
7595 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7596 found="yes"
7597 fi
7598 fi
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614 xorg_testset_save_CFLAGS="$CFLAGS"
7615
7616 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7619 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7620 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7621 $as_echo_n "(cached) " >&6
7622 else
7623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624 /* end confdefs.h. */
7625 int i;
7626 _ACEOF
7627 if ac_fn_c_try_compile "$LINENO"; then :
7628 xorg_cv_cc_flag_unknown_warning_option=yes
7629 else
7630 xorg_cv_cc_flag_unknown_warning_option=no
7631 fi
7632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7633 fi
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7635 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7637 CFLAGS="$xorg_testset_save_CFLAGS"
7638 fi
7639
7640 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7643 fi
7644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7646 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7647 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h. */
7652 int i;
7653 _ACEOF
7654 if ac_fn_c_try_compile "$LINENO"; then :
7655 xorg_cv_cc_flag_unused_command_line_argument=yes
7656 else
7657 xorg_cv_cc_flag_unused_command_line_argument=no
7658 fi
7659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7660 fi
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7662 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7664 CFLAGS="$xorg_testset_save_CFLAGS"
7665 fi
7666
7667 found="no"
7668
7669 if test $found = "no" ; then
7670 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7672 fi
7673
7674 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7676 fi
7677
7678 CFLAGS="$CFLAGS -Werror=array-bounds"
7679
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7681 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7682 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7683 if eval \${$cacheid+:} false; then :
7684 $as_echo_n "(cached) " >&6
7685 else
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7688 int i;
7689 int
7690 main ()
7691 {
7692
7693 ;
7694 return 0;
7695 }
7696 _ACEOF
7697 if ac_fn_c_try_link "$LINENO"; then :
7698 eval $cacheid=yes
7699 else
7700 eval $cacheid=no
7701 fi
7702 rm -f core conftest.err conftest.$ac_objext \
7703 conftest$ac_exeext conftest.$ac_ext
7704 fi
7705
7706
7707 CFLAGS="$xorg_testset_save_CFLAGS"
7708
7709 eval supported=\$$cacheid
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7711 $as_echo "$supported" >&6; }
7712 if test "$supported" = "yes" ; then
7713 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7737 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7738 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7739 $as_echo_n "(cached) " >&6
7740 else
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7743 int i;
7744 _ACEOF
7745 if ac_fn_c_try_compile "$LINENO"; then :
7746 xorg_cv_cc_flag_unknown_warning_option=yes
7747 else
7748 xorg_cv_cc_flag_unknown_warning_option=no
7749 fi
7750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751 fi
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7753 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7754 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7755 CFLAGS="$xorg_testset_save_CFLAGS"
7756 fi
7757
7758 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7761 fi
7762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7764 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7765 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769 /* end confdefs.h. */
7770 int i;
7771 _ACEOF
7772 if ac_fn_c_try_compile "$LINENO"; then :
7773 xorg_cv_cc_flag_unused_command_line_argument=yes
7774 else
7775 xorg_cv_cc_flag_unused_command_line_argument=no
7776 fi
7777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778 fi
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7780 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7781 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7782 CFLAGS="$xorg_testset_save_CFLAGS"
7783 fi
7784
7785 found="no"
7786
7787 if test $found = "no" ; then
7788 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7790 fi
7791
7792 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7794 fi
7795
7796 CFLAGS="$CFLAGS -Werror=write-strings"
7797
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7799 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7800 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7801 if eval \${$cacheid+:} false; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805 /* end confdefs.h. */
7806 int i;
7807 int
7808 main ()
7809 {
7810
7811 ;
7812 return 0;
7813 }
7814 _ACEOF
7815 if ac_fn_c_try_link "$LINENO"; then :
7816 eval $cacheid=yes
7817 else
7818 eval $cacheid=no
7819 fi
7820 rm -f core conftest.err conftest.$ac_objext \
7821 conftest$ac_exeext conftest.$ac_ext
7822 fi
7823
7824
7825 CFLAGS="$xorg_testset_save_CFLAGS"
7826
7827 eval supported=\$$cacheid
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7829 $as_echo "$supported" >&6; }
7830 if test "$supported" = "yes" ; then
7831 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7832 found="yes"
7833 fi
7834 fi
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850 xorg_testset_save_CFLAGS="$CFLAGS"
7851
7852 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7855 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7856 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7857 $as_echo_n "(cached) " >&6
7858 else
7859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860 /* end confdefs.h. */
7861 int i;
7862 _ACEOF
7863 if ac_fn_c_try_compile "$LINENO"; then :
7864 xorg_cv_cc_flag_unknown_warning_option=yes
7865 else
7866 xorg_cv_cc_flag_unknown_warning_option=no
7867 fi
7868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7869 fi
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7871 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7872 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7873 CFLAGS="$xorg_testset_save_CFLAGS"
7874 fi
7875
7876 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7879 fi
7880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7882 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7883 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h. */
7888 int i;
7889 _ACEOF
7890 if ac_fn_c_try_compile "$LINENO"; then :
7891 xorg_cv_cc_flag_unused_command_line_argument=yes
7892 else
7893 xorg_cv_cc_flag_unused_command_line_argument=no
7894 fi
7895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7896 fi
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7898 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7900 CFLAGS="$xorg_testset_save_CFLAGS"
7901 fi
7902
7903 found="no"
7904
7905 if test $found = "no" ; then
7906 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7908 fi
7909
7910 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7912 fi
7913
7914 CFLAGS="$CFLAGS -Werror=address"
7915
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7917 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7918 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7919 if eval \${$cacheid+:} false; then :
7920 $as_echo_n "(cached) " >&6
7921 else
7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h. */
7924 int i;
7925 int
7926 main ()
7927 {
7928
7929 ;
7930 return 0;
7931 }
7932 _ACEOF
7933 if ac_fn_c_try_link "$LINENO"; then :
7934 eval $cacheid=yes
7935 else
7936 eval $cacheid=no
7937 fi
7938 rm -f core conftest.err conftest.$ac_objext \
7939 conftest$ac_exeext conftest.$ac_ext
7940 fi
7941
7942
7943 CFLAGS="$xorg_testset_save_CFLAGS"
7944
7945 eval supported=\$$cacheid
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7947 $as_echo "$supported" >&6; }
7948 if test "$supported" = "yes" ; then
7949 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7950 found="yes"
7951 fi
7952 fi
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968 xorg_testset_save_CFLAGS="$CFLAGS"
7969
7970 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7973 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7974 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7975 $as_echo_n "(cached) " >&6
7976 else
7977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978 /* end confdefs.h. */
7979 int i;
7980 _ACEOF
7981 if ac_fn_c_try_compile "$LINENO"; then :
7982 xorg_cv_cc_flag_unknown_warning_option=yes
7983 else
7984 xorg_cv_cc_flag_unknown_warning_option=no
7985 fi
7986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7987 fi
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7989 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7991 CFLAGS="$xorg_testset_save_CFLAGS"
7992 fi
7993
7994 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7997 fi
7998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8000 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8001 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8002 $as_echo_n "(cached) " >&6
8003 else
8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8006 int i;
8007 _ACEOF
8008 if ac_fn_c_try_compile "$LINENO"; then :
8009 xorg_cv_cc_flag_unused_command_line_argument=yes
8010 else
8011 xorg_cv_cc_flag_unused_command_line_argument=no
8012 fi
8013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014 fi
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8016 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8018 CFLAGS="$xorg_testset_save_CFLAGS"
8019 fi
8020
8021 found="no"
8022
8023 if test $found = "no" ; then
8024 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8026 fi
8027
8028 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8030 fi
8031
8032 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8033
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8035 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8036 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8037 if eval \${$cacheid+:} false; then :
8038 $as_echo_n "(cached) " >&6
8039 else
8040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041 /* end confdefs.h. */
8042 int i;
8043 int
8044 main ()
8045 {
8046
8047 ;
8048 return 0;
8049 }
8050 _ACEOF
8051 if ac_fn_c_try_link "$LINENO"; then :
8052 eval $cacheid=yes
8053 else
8054 eval $cacheid=no
8055 fi
8056 rm -f core conftest.err conftest.$ac_objext \
8057 conftest$ac_exeext conftest.$ac_ext
8058 fi
8059
8060
8061 CFLAGS="$xorg_testset_save_CFLAGS"
8062
8063 eval supported=\$$cacheid
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8065 $as_echo "$supported" >&6; }
8066 if test "$supported" = "yes" ; then
8067 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8068 found="yes"
8069 fi
8070 fi
8071
8072 if test $found = "no" ; then
8073 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8075 fi
8076
8077 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8079 fi
8080
8081 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8082
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8084 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8085 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8086 if eval \${$cacheid+:} false; then :
8087 $as_echo_n "(cached) " >&6
8088 else
8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8091 int i;
8092 int
8093 main ()
8094 {
8095
8096 ;
8097 return 0;
8098 }
8099 _ACEOF
8100 if ac_fn_c_try_link "$LINENO"; then :
8101 eval $cacheid=yes
8102 else
8103 eval $cacheid=no
8104 fi
8105 rm -f core conftest.err conftest.$ac_objext \
8106 conftest$ac_exeext conftest.$ac_ext
8107 fi
8108
8109
8110 CFLAGS="$xorg_testset_save_CFLAGS"
8111
8112 eval supported=\$$cacheid
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8114 $as_echo "$supported" >&6; }
8115 if test "$supported" = "yes" ; then
8116 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8117 found="yes"
8118 fi
8119 fi
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135 xorg_testset_save_CFLAGS="$CFLAGS"
8136
8137 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8140 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8141 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8142 $as_echo_n "(cached) " >&6
8143 else
8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8146 int i;
8147 _ACEOF
8148 if ac_fn_c_try_compile "$LINENO"; then :
8149 xorg_cv_cc_flag_unknown_warning_option=yes
8150 else
8151 xorg_cv_cc_flag_unknown_warning_option=no
8152 fi
8153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154 fi
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8156 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8157 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8158 CFLAGS="$xorg_testset_save_CFLAGS"
8159 fi
8160
8161 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8164 fi
8165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8167 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8168 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8169 $as_echo_n "(cached) " >&6
8170 else
8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172 /* end confdefs.h. */
8173 int i;
8174 _ACEOF
8175 if ac_fn_c_try_compile "$LINENO"; then :
8176 xorg_cv_cc_flag_unused_command_line_argument=yes
8177 else
8178 xorg_cv_cc_flag_unused_command_line_argument=no
8179 fi
8180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8181 fi
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8183 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8184 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8185 CFLAGS="$xorg_testset_save_CFLAGS"
8186 fi
8187
8188 found="no"
8189
8190 if test $found = "no" ; then
8191 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8193 fi
8194
8195 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8197 fi
8198
8199 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8200
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8202 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8203 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8204 if eval \${$cacheid+:} false; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8209 int i;
8210 int
8211 main ()
8212 {
8213
8214 ;
8215 return 0;
8216 }
8217 _ACEOF
8218 if ac_fn_c_try_link "$LINENO"; then :
8219 eval $cacheid=yes
8220 else
8221 eval $cacheid=no
8222 fi
8223 rm -f core conftest.err conftest.$ac_objext \
8224 conftest$ac_exeext conftest.$ac_ext
8225 fi
8226
8227
8228 CFLAGS="$xorg_testset_save_CFLAGS"
8229
8230 eval supported=\$$cacheid
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8232 $as_echo "$supported" >&6; }
8233 if test "$supported" = "yes" ; then
8234 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8235 found="yes"
8236 fi
8237 fi
8238
8239 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8240 else
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
8242 $as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256 xorg_testset_save_CFLAGS="$CFLAGS"
8257
8258 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8261 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8262 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8263 $as_echo_n "(cached) " >&6
8264 else
8265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h. */
8267 int i;
8268 _ACEOF
8269 if ac_fn_c_try_compile "$LINENO"; then :
8270 xorg_cv_cc_flag_unknown_warning_option=yes
8271 else
8272 xorg_cv_cc_flag_unknown_warning_option=no
8273 fi
8274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8275 fi
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8277 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8278 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8279 CFLAGS="$xorg_testset_save_CFLAGS"
8280 fi
8281
8282 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8285 fi
8286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8288 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8289 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8290 $as_echo_n "(cached) " >&6
8291 else
8292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h. */
8294 int i;
8295 _ACEOF
8296 if ac_fn_c_try_compile "$LINENO"; then :
8297 xorg_cv_cc_flag_unused_command_line_argument=yes
8298 else
8299 xorg_cv_cc_flag_unused_command_line_argument=no
8300 fi
8301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8302 fi
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8304 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8305 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8306 CFLAGS="$xorg_testset_save_CFLAGS"
8307 fi
8308
8309 found="no"
8310
8311 if test $found = "no" ; then
8312 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8314 fi
8315
8316 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8318 fi
8319
8320 CFLAGS="$CFLAGS -Wimplicit"
8321
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8323 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8324 cacheid=xorg_cv_cc_flag__Wimplicit
8325 if eval \${$cacheid+:} false; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8330 int i;
8331 int
8332 main ()
8333 {
8334
8335 ;
8336 return 0;
8337 }
8338 _ACEOF
8339 if ac_fn_c_try_link "$LINENO"; then :
8340 eval $cacheid=yes
8341 else
8342 eval $cacheid=no
8343 fi
8344 rm -f core conftest.err conftest.$ac_objext \
8345 conftest$ac_exeext conftest.$ac_ext
8346 fi
8347
8348
8349 CFLAGS="$xorg_testset_save_CFLAGS"
8350
8351 eval supported=\$$cacheid
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8353 $as_echo "$supported" >&6; }
8354 if test "$supported" = "yes" ; then
8355 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8356 found="yes"
8357 fi
8358 fi
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374 xorg_testset_save_CFLAGS="$CFLAGS"
8375
8376 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8379 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8380 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8381 $as_echo_n "(cached) " >&6
8382 else
8383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h. */
8385 int i;
8386 _ACEOF
8387 if ac_fn_c_try_compile "$LINENO"; then :
8388 xorg_cv_cc_flag_unknown_warning_option=yes
8389 else
8390 xorg_cv_cc_flag_unknown_warning_option=no
8391 fi
8392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8393 fi
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8395 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8396 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8397 CFLAGS="$xorg_testset_save_CFLAGS"
8398 fi
8399
8400 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8403 fi
8404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8406 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8407 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8408 $as_echo_n "(cached) " >&6
8409 else
8410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8412 int i;
8413 _ACEOF
8414 if ac_fn_c_try_compile "$LINENO"; then :
8415 xorg_cv_cc_flag_unused_command_line_argument=yes
8416 else
8417 xorg_cv_cc_flag_unused_command_line_argument=no
8418 fi
8419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420 fi
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8422 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8424 CFLAGS="$xorg_testset_save_CFLAGS"
8425 fi
8426
8427 found="no"
8428
8429 if test $found = "no" ; then
8430 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8432 fi
8433
8434 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8436 fi
8437
8438 CFLAGS="$CFLAGS -Wnonnull"
8439
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8441 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8442 cacheid=xorg_cv_cc_flag__Wnonnull
8443 if eval \${$cacheid+:} false; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h. */
8448 int i;
8449 int
8450 main ()
8451 {
8452
8453 ;
8454 return 0;
8455 }
8456 _ACEOF
8457 if ac_fn_c_try_link "$LINENO"; then :
8458 eval $cacheid=yes
8459 else
8460 eval $cacheid=no
8461 fi
8462 rm -f core conftest.err conftest.$ac_objext \
8463 conftest$ac_exeext conftest.$ac_ext
8464 fi
8465
8466
8467 CFLAGS="$xorg_testset_save_CFLAGS"
8468
8469 eval supported=\$$cacheid
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8471 $as_echo "$supported" >&6; }
8472 if test "$supported" = "yes" ; then
8473 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8474 found="yes"
8475 fi
8476 fi
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492 xorg_testset_save_CFLAGS="$CFLAGS"
8493
8494 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8497 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8498 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8499 $as_echo_n "(cached) " >&6
8500 else
8501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8502 /* end confdefs.h. */
8503 int i;
8504 _ACEOF
8505 if ac_fn_c_try_compile "$LINENO"; then :
8506 xorg_cv_cc_flag_unknown_warning_option=yes
8507 else
8508 xorg_cv_cc_flag_unknown_warning_option=no
8509 fi
8510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8511 fi
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8513 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8515 CFLAGS="$xorg_testset_save_CFLAGS"
8516 fi
8517
8518 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8521 fi
8522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8524 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8525 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8526 $as_echo_n "(cached) " >&6
8527 else
8528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h. */
8530 int i;
8531 _ACEOF
8532 if ac_fn_c_try_compile "$LINENO"; then :
8533 xorg_cv_cc_flag_unused_command_line_argument=yes
8534 else
8535 xorg_cv_cc_flag_unused_command_line_argument=no
8536 fi
8537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538 fi
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8540 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8541 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8542 CFLAGS="$xorg_testset_save_CFLAGS"
8543 fi
8544
8545 found="no"
8546
8547 if test $found = "no" ; then
8548 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8550 fi
8551
8552 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8554 fi
8555
8556 CFLAGS="$CFLAGS -Winit-self"
8557
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8559 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8560 cacheid=xorg_cv_cc_flag__Winit_self
8561 if eval \${$cacheid+:} false; then :
8562 $as_echo_n "(cached) " >&6
8563 else
8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h. */
8566 int i;
8567 int
8568 main ()
8569 {
8570
8571 ;
8572 return 0;
8573 }
8574 _ACEOF
8575 if ac_fn_c_try_link "$LINENO"; then :
8576 eval $cacheid=yes
8577 else
8578 eval $cacheid=no
8579 fi
8580 rm -f core conftest.err conftest.$ac_objext \
8581 conftest$ac_exeext conftest.$ac_ext
8582 fi
8583
8584
8585 CFLAGS="$xorg_testset_save_CFLAGS"
8586
8587 eval supported=\$$cacheid
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8589 $as_echo "$supported" >&6; }
8590 if test "$supported" = "yes" ; then
8591 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8592 found="yes"
8593 fi
8594 fi
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610 xorg_testset_save_CFLAGS="$CFLAGS"
8611
8612 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8615 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8616 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8617 $as_echo_n "(cached) " >&6
8618 else
8619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h. */
8621 int i;
8622 _ACEOF
8623 if ac_fn_c_try_compile "$LINENO"; then :
8624 xorg_cv_cc_flag_unknown_warning_option=yes
8625 else
8626 xorg_cv_cc_flag_unknown_warning_option=no
8627 fi
8628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629 fi
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8631 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8632 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8633 CFLAGS="$xorg_testset_save_CFLAGS"
8634 fi
8635
8636 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8639 fi
8640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8642 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8643 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8644 $as_echo_n "(cached) " >&6
8645 else
8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h. */
8648 int i;
8649 _ACEOF
8650 if ac_fn_c_try_compile "$LINENO"; then :
8651 xorg_cv_cc_flag_unused_command_line_argument=yes
8652 else
8653 xorg_cv_cc_flag_unused_command_line_argument=no
8654 fi
8655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8656 fi
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8658 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8659 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8660 CFLAGS="$xorg_testset_save_CFLAGS"
8661 fi
8662
8663 found="no"
8664
8665 if test $found = "no" ; then
8666 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8668 fi
8669
8670 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8672 fi
8673
8674 CFLAGS="$CFLAGS -Wmain"
8675
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8677 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8678 cacheid=xorg_cv_cc_flag__Wmain
8679 if eval \${$cacheid+:} false; then :
8680 $as_echo_n "(cached) " >&6
8681 else
8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h. */
8684 int i;
8685 int
8686 main ()
8687 {
8688
8689 ;
8690 return 0;
8691 }
8692 _ACEOF
8693 if ac_fn_c_try_link "$LINENO"; then :
8694 eval $cacheid=yes
8695 else
8696 eval $cacheid=no
8697 fi
8698 rm -f core conftest.err conftest.$ac_objext \
8699 conftest$ac_exeext conftest.$ac_ext
8700 fi
8701
8702
8703 CFLAGS="$xorg_testset_save_CFLAGS"
8704
8705 eval supported=\$$cacheid
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8707 $as_echo "$supported" >&6; }
8708 if test "$supported" = "yes" ; then
8709 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8710 found="yes"
8711 fi
8712 fi
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728 xorg_testset_save_CFLAGS="$CFLAGS"
8729
8730 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8733 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8734 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8735 $as_echo_n "(cached) " >&6
8736 else
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8739 int i;
8740 _ACEOF
8741 if ac_fn_c_try_compile "$LINENO"; then :
8742 xorg_cv_cc_flag_unknown_warning_option=yes
8743 else
8744 xorg_cv_cc_flag_unknown_warning_option=no
8745 fi
8746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8747 fi
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8749 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8750 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8751 CFLAGS="$xorg_testset_save_CFLAGS"
8752 fi
8753
8754 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8757 fi
8758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8760 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8761 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8762 $as_echo_n "(cached) " >&6
8763 else
8764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8765 /* end confdefs.h. */
8766 int i;
8767 _ACEOF
8768 if ac_fn_c_try_compile "$LINENO"; then :
8769 xorg_cv_cc_flag_unused_command_line_argument=yes
8770 else
8771 xorg_cv_cc_flag_unused_command_line_argument=no
8772 fi
8773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8774 fi
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8776 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8777 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8778 CFLAGS="$xorg_testset_save_CFLAGS"
8779 fi
8780
8781 found="no"
8782
8783 if test $found = "no" ; then
8784 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8786 fi
8787
8788 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8790 fi
8791
8792 CFLAGS="$CFLAGS -Wmissing-braces"
8793
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8795 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8796 cacheid=xorg_cv_cc_flag__Wmissing_braces
8797 if eval \${$cacheid+:} false; then :
8798 $as_echo_n "(cached) " >&6
8799 else
8800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801 /* end confdefs.h. */
8802 int i;
8803 int
8804 main ()
8805 {
8806
8807 ;
8808 return 0;
8809 }
8810 _ACEOF
8811 if ac_fn_c_try_link "$LINENO"; then :
8812 eval $cacheid=yes
8813 else
8814 eval $cacheid=no
8815 fi
8816 rm -f core conftest.err conftest.$ac_objext \
8817 conftest$ac_exeext conftest.$ac_ext
8818 fi
8819
8820
8821 CFLAGS="$xorg_testset_save_CFLAGS"
8822
8823 eval supported=\$$cacheid
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8825 $as_echo "$supported" >&6; }
8826 if test "$supported" = "yes" ; then
8827 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8828 found="yes"
8829 fi
8830 fi
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846 xorg_testset_save_CFLAGS="$CFLAGS"
8847
8848 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8851 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8852 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854 else
8855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856 /* end confdefs.h. */
8857 int i;
8858 _ACEOF
8859 if ac_fn_c_try_compile "$LINENO"; then :
8860 xorg_cv_cc_flag_unknown_warning_option=yes
8861 else
8862 xorg_cv_cc_flag_unknown_warning_option=no
8863 fi
8864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8865 fi
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8867 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8869 CFLAGS="$xorg_testset_save_CFLAGS"
8870 fi
8871
8872 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8875 fi
8876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8878 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8879 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8880 $as_echo_n "(cached) " >&6
8881 else
8882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883 /* end confdefs.h. */
8884 int i;
8885 _ACEOF
8886 if ac_fn_c_try_compile "$LINENO"; then :
8887 xorg_cv_cc_flag_unused_command_line_argument=yes
8888 else
8889 xorg_cv_cc_flag_unused_command_line_argument=no
8890 fi
8891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8892 fi
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8894 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8896 CFLAGS="$xorg_testset_save_CFLAGS"
8897 fi
8898
8899 found="no"
8900
8901 if test $found = "no" ; then
8902 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8904 fi
8905
8906 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8908 fi
8909
8910 CFLAGS="$CFLAGS -Wsequence-point"
8911
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8913 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8914 cacheid=xorg_cv_cc_flag__Wsequence_point
8915 if eval \${$cacheid+:} false; then :
8916 $as_echo_n "(cached) " >&6
8917 else
8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919 /* end confdefs.h. */
8920 int i;
8921 int
8922 main ()
8923 {
8924
8925 ;
8926 return 0;
8927 }
8928 _ACEOF
8929 if ac_fn_c_try_link "$LINENO"; then :
8930 eval $cacheid=yes
8931 else
8932 eval $cacheid=no
8933 fi
8934 rm -f core conftest.err conftest.$ac_objext \
8935 conftest$ac_exeext conftest.$ac_ext
8936 fi
8937
8938
8939 CFLAGS="$xorg_testset_save_CFLAGS"
8940
8941 eval supported=\$$cacheid
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8943 $as_echo "$supported" >&6; }
8944 if test "$supported" = "yes" ; then
8945 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8946 found="yes"
8947 fi
8948 fi
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964 xorg_testset_save_CFLAGS="$CFLAGS"
8965
8966 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8969 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8970 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8971 $as_echo_n "(cached) " >&6
8972 else
8973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974 /* end confdefs.h. */
8975 int i;
8976 _ACEOF
8977 if ac_fn_c_try_compile "$LINENO"; then :
8978 xorg_cv_cc_flag_unknown_warning_option=yes
8979 else
8980 xorg_cv_cc_flag_unknown_warning_option=no
8981 fi
8982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983 fi
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8985 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8987 CFLAGS="$xorg_testset_save_CFLAGS"
8988 fi
8989
8990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8993 fi
8994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8996 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8997 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8998 $as_echo_n "(cached) " >&6
8999 else
9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h. */
9002 int i;
9003 _ACEOF
9004 if ac_fn_c_try_compile "$LINENO"; then :
9005 xorg_cv_cc_flag_unused_command_line_argument=yes
9006 else
9007 xorg_cv_cc_flag_unused_command_line_argument=no
9008 fi
9009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9010 fi
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9012 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9014 CFLAGS="$xorg_testset_save_CFLAGS"
9015 fi
9016
9017 found="no"
9018
9019 if test $found = "no" ; then
9020 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9022 fi
9023
9024 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9026 fi
9027
9028 CFLAGS="$CFLAGS -Wreturn-type"
9029
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9031 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9032 cacheid=xorg_cv_cc_flag__Wreturn_type
9033 if eval \${$cacheid+:} false; then :
9034 $as_echo_n "(cached) " >&6
9035 else
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9038 int i;
9039 int
9040 main ()
9041 {
9042
9043 ;
9044 return 0;
9045 }
9046 _ACEOF
9047 if ac_fn_c_try_link "$LINENO"; then :
9048 eval $cacheid=yes
9049 else
9050 eval $cacheid=no
9051 fi
9052 rm -f core conftest.err conftest.$ac_objext \
9053 conftest$ac_exeext conftest.$ac_ext
9054 fi
9055
9056
9057 CFLAGS="$xorg_testset_save_CFLAGS"
9058
9059 eval supported=\$$cacheid
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9061 $as_echo "$supported" >&6; }
9062 if test "$supported" = "yes" ; then
9063 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9064 found="yes"
9065 fi
9066 fi
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082 xorg_testset_save_CFLAGS="$CFLAGS"
9083
9084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9087 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9088 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9089 $as_echo_n "(cached) " >&6
9090 else
9091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092 /* end confdefs.h. */
9093 int i;
9094 _ACEOF
9095 if ac_fn_c_try_compile "$LINENO"; then :
9096 xorg_cv_cc_flag_unknown_warning_option=yes
9097 else
9098 xorg_cv_cc_flag_unknown_warning_option=no
9099 fi
9100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9101 fi
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9103 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9105 CFLAGS="$xorg_testset_save_CFLAGS"
9106 fi
9107
9108 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9111 fi
9112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9114 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9115 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9116 $as_echo_n "(cached) " >&6
9117 else
9118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119 /* end confdefs.h. */
9120 int i;
9121 _ACEOF
9122 if ac_fn_c_try_compile "$LINENO"; then :
9123 xorg_cv_cc_flag_unused_command_line_argument=yes
9124 else
9125 xorg_cv_cc_flag_unused_command_line_argument=no
9126 fi
9127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9128 fi
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9130 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9132 CFLAGS="$xorg_testset_save_CFLAGS"
9133 fi
9134
9135 found="no"
9136
9137 if test $found = "no" ; then
9138 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9140 fi
9141
9142 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9144 fi
9145
9146 CFLAGS="$CFLAGS -Wtrigraphs"
9147
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9149 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9150 cacheid=xorg_cv_cc_flag__Wtrigraphs
9151 if eval \${$cacheid+:} false; then :
9152 $as_echo_n "(cached) " >&6
9153 else
9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155 /* end confdefs.h. */
9156 int i;
9157 int
9158 main ()
9159 {
9160
9161 ;
9162 return 0;
9163 }
9164 _ACEOF
9165 if ac_fn_c_try_link "$LINENO"; then :
9166 eval $cacheid=yes
9167 else
9168 eval $cacheid=no
9169 fi
9170 rm -f core conftest.err conftest.$ac_objext \
9171 conftest$ac_exeext conftest.$ac_ext
9172 fi
9173
9174
9175 CFLAGS="$xorg_testset_save_CFLAGS"
9176
9177 eval supported=\$$cacheid
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9179 $as_echo "$supported" >&6; }
9180 if test "$supported" = "yes" ; then
9181 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9182 found="yes"
9183 fi
9184 fi
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200 xorg_testset_save_CFLAGS="$CFLAGS"
9201
9202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9205 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9206 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9207 $as_echo_n "(cached) " >&6
9208 else
9209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h. */
9211 int i;
9212 _ACEOF
9213 if ac_fn_c_try_compile "$LINENO"; then :
9214 xorg_cv_cc_flag_unknown_warning_option=yes
9215 else
9216 xorg_cv_cc_flag_unknown_warning_option=no
9217 fi
9218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9219 fi
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9221 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9223 CFLAGS="$xorg_testset_save_CFLAGS"
9224 fi
9225
9226 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9229 fi
9230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9232 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9233 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9234 $as_echo_n "(cached) " >&6
9235 else
9236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9238 int i;
9239 _ACEOF
9240 if ac_fn_c_try_compile "$LINENO"; then :
9241 xorg_cv_cc_flag_unused_command_line_argument=yes
9242 else
9243 xorg_cv_cc_flag_unused_command_line_argument=no
9244 fi
9245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9246 fi
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9248 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9250 CFLAGS="$xorg_testset_save_CFLAGS"
9251 fi
9252
9253 found="no"
9254
9255 if test $found = "no" ; then
9256 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9258 fi
9259
9260 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9262 fi
9263
9264 CFLAGS="$CFLAGS -Warray-bounds"
9265
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9267 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9268 cacheid=xorg_cv_cc_flag__Warray_bounds
9269 if eval \${$cacheid+:} false; then :
9270 $as_echo_n "(cached) " >&6
9271 else
9272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273 /* end confdefs.h. */
9274 int i;
9275 int
9276 main ()
9277 {
9278
9279 ;
9280 return 0;
9281 }
9282 _ACEOF
9283 if ac_fn_c_try_link "$LINENO"; then :
9284 eval $cacheid=yes
9285 else
9286 eval $cacheid=no
9287 fi
9288 rm -f core conftest.err conftest.$ac_objext \
9289 conftest$ac_exeext conftest.$ac_ext
9290 fi
9291
9292
9293 CFLAGS="$xorg_testset_save_CFLAGS"
9294
9295 eval supported=\$$cacheid
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9297 $as_echo "$supported" >&6; }
9298 if test "$supported" = "yes" ; then
9299 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9300 found="yes"
9301 fi
9302 fi
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318 xorg_testset_save_CFLAGS="$CFLAGS"
9319
9320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9323 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9324 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9325 $as_echo_n "(cached) " >&6
9326 else
9327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9328 /* end confdefs.h. */
9329 int i;
9330 _ACEOF
9331 if ac_fn_c_try_compile "$LINENO"; then :
9332 xorg_cv_cc_flag_unknown_warning_option=yes
9333 else
9334 xorg_cv_cc_flag_unknown_warning_option=no
9335 fi
9336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9337 fi
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9339 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9341 CFLAGS="$xorg_testset_save_CFLAGS"
9342 fi
9343
9344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9347 fi
9348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9350 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9351 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9352 $as_echo_n "(cached) " >&6
9353 else
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9356 int i;
9357 _ACEOF
9358 if ac_fn_c_try_compile "$LINENO"; then :
9359 xorg_cv_cc_flag_unused_command_line_argument=yes
9360 else
9361 xorg_cv_cc_flag_unused_command_line_argument=no
9362 fi
9363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9364 fi
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9366 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9368 CFLAGS="$xorg_testset_save_CFLAGS"
9369 fi
9370
9371 found="no"
9372
9373 if test $found = "no" ; then
9374 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9376 fi
9377
9378 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9380 fi
9381
9382 CFLAGS="$CFLAGS -Wwrite-strings"
9383
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9385 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9386 cacheid=xorg_cv_cc_flag__Wwrite_strings
9387 if eval \${$cacheid+:} false; then :
9388 $as_echo_n "(cached) " >&6
9389 else
9390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9391 /* end confdefs.h. */
9392 int i;
9393 int
9394 main ()
9395 {
9396
9397 ;
9398 return 0;
9399 }
9400 _ACEOF
9401 if ac_fn_c_try_link "$LINENO"; then :
9402 eval $cacheid=yes
9403 else
9404 eval $cacheid=no
9405 fi
9406 rm -f core conftest.err conftest.$ac_objext \
9407 conftest$ac_exeext conftest.$ac_ext
9408 fi
9409
9410
9411 CFLAGS="$xorg_testset_save_CFLAGS"
9412
9413 eval supported=\$$cacheid
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9415 $as_echo "$supported" >&6; }
9416 if test "$supported" = "yes" ; then
9417 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9418 found="yes"
9419 fi
9420 fi
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436 xorg_testset_save_CFLAGS="$CFLAGS"
9437
9438 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9441 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9442 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9443 $as_echo_n "(cached) " >&6
9444 else
9445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446 /* end confdefs.h. */
9447 int i;
9448 _ACEOF
9449 if ac_fn_c_try_compile "$LINENO"; then :
9450 xorg_cv_cc_flag_unknown_warning_option=yes
9451 else
9452 xorg_cv_cc_flag_unknown_warning_option=no
9453 fi
9454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9455 fi
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9457 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9459 CFLAGS="$xorg_testset_save_CFLAGS"
9460 fi
9461
9462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9465 fi
9466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9468 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9469 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9470 $as_echo_n "(cached) " >&6
9471 else
9472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473 /* end confdefs.h. */
9474 int i;
9475 _ACEOF
9476 if ac_fn_c_try_compile "$LINENO"; then :
9477 xorg_cv_cc_flag_unused_command_line_argument=yes
9478 else
9479 xorg_cv_cc_flag_unused_command_line_argument=no
9480 fi
9481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9482 fi
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9484 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9486 CFLAGS="$xorg_testset_save_CFLAGS"
9487 fi
9488
9489 found="no"
9490
9491 if test $found = "no" ; then
9492 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9494 fi
9495
9496 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9498 fi
9499
9500 CFLAGS="$CFLAGS -Waddress"
9501
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9503 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9504 cacheid=xorg_cv_cc_flag__Waddress
9505 if eval \${$cacheid+:} false; then :
9506 $as_echo_n "(cached) " >&6
9507 else
9508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9509 /* end confdefs.h. */
9510 int i;
9511 int
9512 main ()
9513 {
9514
9515 ;
9516 return 0;
9517 }
9518 _ACEOF
9519 if ac_fn_c_try_link "$LINENO"; then :
9520 eval $cacheid=yes
9521 else
9522 eval $cacheid=no
9523 fi
9524 rm -f core conftest.err conftest.$ac_objext \
9525 conftest$ac_exeext conftest.$ac_ext
9526 fi
9527
9528
9529 CFLAGS="$xorg_testset_save_CFLAGS"
9530
9531 eval supported=\$$cacheid
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9533 $as_echo "$supported" >&6; }
9534 if test "$supported" = "yes" ; then
9535 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9536 found="yes"
9537 fi
9538 fi
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554 xorg_testset_save_CFLAGS="$CFLAGS"
9555
9556 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9559 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9560 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9561 $as_echo_n "(cached) " >&6
9562 else
9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564 /* end confdefs.h. */
9565 int i;
9566 _ACEOF
9567 if ac_fn_c_try_compile "$LINENO"; then :
9568 xorg_cv_cc_flag_unknown_warning_option=yes
9569 else
9570 xorg_cv_cc_flag_unknown_warning_option=no
9571 fi
9572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9573 fi
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9575 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9577 CFLAGS="$xorg_testset_save_CFLAGS"
9578 fi
9579
9580 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9583 fi
9584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9586 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9587 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9588 $as_echo_n "(cached) " >&6
9589 else
9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h. */
9592 int i;
9593 _ACEOF
9594 if ac_fn_c_try_compile "$LINENO"; then :
9595 xorg_cv_cc_flag_unused_command_line_argument=yes
9596 else
9597 xorg_cv_cc_flag_unused_command_line_argument=no
9598 fi
9599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9600 fi
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9602 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9604 CFLAGS="$xorg_testset_save_CFLAGS"
9605 fi
9606
9607 found="no"
9608
9609 if test $found = "no" ; then
9610 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9612 fi
9613
9614 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9616 fi
9617
9618 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9619
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9621 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9622 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9623 if eval \${$cacheid+:} false; then :
9624 $as_echo_n "(cached) " >&6
9625 else
9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9628 int i;
9629 int
9630 main ()
9631 {
9632
9633 ;
9634 return 0;
9635 }
9636 _ACEOF
9637 if ac_fn_c_try_link "$LINENO"; then :
9638 eval $cacheid=yes
9639 else
9640 eval $cacheid=no
9641 fi
9642 rm -f core conftest.err conftest.$ac_objext \
9643 conftest$ac_exeext conftest.$ac_ext
9644 fi
9645
9646
9647 CFLAGS="$xorg_testset_save_CFLAGS"
9648
9649 eval supported=\$$cacheid
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9651 $as_echo "$supported" >&6; }
9652 if test "$supported" = "yes" ; then
9653 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9654 found="yes"
9655 fi
9656 fi
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672 xorg_testset_save_CFLAGS="$CFLAGS"
9673
9674 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9677 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9678 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9679 $as_echo_n "(cached) " >&6
9680 else
9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h. */
9683 int i;
9684 _ACEOF
9685 if ac_fn_c_try_compile "$LINENO"; then :
9686 xorg_cv_cc_flag_unknown_warning_option=yes
9687 else
9688 xorg_cv_cc_flag_unknown_warning_option=no
9689 fi
9690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9691 fi
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9693 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9695 CFLAGS="$xorg_testset_save_CFLAGS"
9696 fi
9697
9698 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9701 fi
9702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9704 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9705 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9706 $as_echo_n "(cached) " >&6
9707 else
9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h. */
9710 int i;
9711 _ACEOF
9712 if ac_fn_c_try_compile "$LINENO"; then :
9713 xorg_cv_cc_flag_unused_command_line_argument=yes
9714 else
9715 xorg_cv_cc_flag_unused_command_line_argument=no
9716 fi
9717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9718 fi
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9720 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9722 CFLAGS="$xorg_testset_save_CFLAGS"
9723 fi
9724
9725 found="no"
9726
9727 if test $found = "no" ; then
9728 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9730 fi
9731
9732 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9734 fi
9735
9736 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9737
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9739 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9740 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9741 if eval \${$cacheid+:} false; then :
9742 $as_echo_n "(cached) " >&6
9743 else
9744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h. */
9746 int i;
9747 int
9748 main ()
9749 {
9750
9751 ;
9752 return 0;
9753 }
9754 _ACEOF
9755 if ac_fn_c_try_link "$LINENO"; then :
9756 eval $cacheid=yes
9757 else
9758 eval $cacheid=no
9759 fi
9760 rm -f core conftest.err conftest.$ac_objext \
9761 conftest$ac_exeext conftest.$ac_ext
9762 fi
9763
9764
9765 CFLAGS="$xorg_testset_save_CFLAGS"
9766
9767 eval supported=\$$cacheid
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9769 $as_echo "$supported" >&6; }
9770 if test "$supported" = "yes" ; then
9771 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9772 found="yes"
9773 fi
9774 fi
9775
9776
9777 fi
9778
9779
9780
9781
9782
9783
9784
9785 CWARNFLAGS="$BASE_CFLAGS"
9786 if test "x$GCC" = xyes ; then
9787 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9788 fi
9789
9790
9791
9792
9793
9794
9795
9796
9797 # Check whether --enable-strict-compilation was given.
9798 if test "${enable_strict_compilation+set}" = set; then :
9799 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9800 else
9801 STRICT_COMPILE=no
9802 fi
9803
9804
9805
9806
9807
9808
9809 STRICT_CFLAGS=""
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823 xorg_testset_save_CFLAGS="$CFLAGS"
9824
9825 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9828 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9829 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9830 $as_echo_n "(cached) " >&6
9831 else
9832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833 /* end confdefs.h. */
9834 int i;
9835 _ACEOF
9836 if ac_fn_c_try_compile "$LINENO"; then :
9837 xorg_cv_cc_flag_unknown_warning_option=yes
9838 else
9839 xorg_cv_cc_flag_unknown_warning_option=no
9840 fi
9841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9842 fi
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9844 $as_echo "$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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9855 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9856 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9857 $as_echo_n "(cached) " >&6
9858 else
9859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860 /* end confdefs.h. */
9861 int i;
9862 _ACEOF
9863 if ac_fn_c_try_compile "$LINENO"; then :
9864 xorg_cv_cc_flag_unused_command_line_argument=yes
9865 else
9866 xorg_cv_cc_flag_unused_command_line_argument=no
9867 fi
9868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9869 fi
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9871 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9872 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9873 CFLAGS="$xorg_testset_save_CFLAGS"
9874 fi
9875
9876 found="no"
9877
9878 if test $found = "no" ; then
9879 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9881 fi
9882
9883 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9885 fi
9886
9887 CFLAGS="$CFLAGS -pedantic"
9888
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9890 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9891 cacheid=xorg_cv_cc_flag__pedantic
9892 if eval \${$cacheid+:} false; then :
9893 $as_echo_n "(cached) " >&6
9894 else
9895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896 /* end confdefs.h. */
9897 int i;
9898 int
9899 main ()
9900 {
9901
9902 ;
9903 return 0;
9904 }
9905 _ACEOF
9906 if ac_fn_c_try_link "$LINENO"; then :
9907 eval $cacheid=yes
9908 else
9909 eval $cacheid=no
9910 fi
9911 rm -f core conftest.err conftest.$ac_objext \
9912 conftest$ac_exeext conftest.$ac_ext
9913 fi
9914
9915
9916 CFLAGS="$xorg_testset_save_CFLAGS"
9917
9918 eval supported=\$$cacheid
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9920 $as_echo "$supported" >&6; }
9921 if test "$supported" = "yes" ; then
9922 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9923 found="yes"
9924 fi
9925 fi
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941 xorg_testset_save_CFLAGS="$CFLAGS"
9942
9943 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9946 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9947 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9948 $as_echo_n "(cached) " >&6
9949 else
9950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951 /* end confdefs.h. */
9952 int i;
9953 _ACEOF
9954 if ac_fn_c_try_compile "$LINENO"; then :
9955 xorg_cv_cc_flag_unknown_warning_option=yes
9956 else
9957 xorg_cv_cc_flag_unknown_warning_option=no
9958 fi
9959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9960 fi
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9962 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9963 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9964 CFLAGS="$xorg_testset_save_CFLAGS"
9965 fi
9966
9967 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9970 fi
9971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9973 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9974 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9975 $as_echo_n "(cached) " >&6
9976 else
9977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978 /* end confdefs.h. */
9979 int i;
9980 _ACEOF
9981 if ac_fn_c_try_compile "$LINENO"; then :
9982 xorg_cv_cc_flag_unused_command_line_argument=yes
9983 else
9984 xorg_cv_cc_flag_unused_command_line_argument=no
9985 fi
9986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9987 fi
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9989 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9990 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9991 CFLAGS="$xorg_testset_save_CFLAGS"
9992 fi
9993
9994 found="no"
9995
9996 if test $found = "no" ; then
9997 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9999 fi
10000
10001 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10003 fi
10004
10005 CFLAGS="$CFLAGS -Werror"
10006
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10008 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10009 cacheid=xorg_cv_cc_flag__Werror
10010 if eval \${$cacheid+:} false; then :
10011 $as_echo_n "(cached) " >&6
10012 else
10013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014 /* end confdefs.h. */
10015 int i;
10016 int
10017 main ()
10018 {
10019
10020 ;
10021 return 0;
10022 }
10023 _ACEOF
10024 if ac_fn_c_try_link "$LINENO"; then :
10025 eval $cacheid=yes
10026 else
10027 eval $cacheid=no
10028 fi
10029 rm -f core conftest.err conftest.$ac_objext \
10030 conftest$ac_exeext conftest.$ac_ext
10031 fi
10032
10033
10034 CFLAGS="$xorg_testset_save_CFLAGS"
10035
10036 eval supported=\$$cacheid
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10038 $as_echo "$supported" >&6; }
10039 if test "$supported" = "yes" ; then
10040 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10041 found="yes"
10042 fi
10043 fi
10044
10045 if test $found = "no" ; then
10046 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10048 fi
10049
10050 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10052 fi
10053
10054 CFLAGS="$CFLAGS -errwarn"
10055
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10057 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10058 cacheid=xorg_cv_cc_flag__errwarn
10059 if eval \${$cacheid+:} false; then :
10060 $as_echo_n "(cached) " >&6
10061 else
10062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10063 /* end confdefs.h. */
10064 int i;
10065 int
10066 main ()
10067 {
10068
10069 ;
10070 return 0;
10071 }
10072 _ACEOF
10073 if ac_fn_c_try_link "$LINENO"; then :
10074 eval $cacheid=yes
10075 else
10076 eval $cacheid=no
10077 fi
10078 rm -f core conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext conftest.$ac_ext
10080 fi
10081
10082
10083 CFLAGS="$xorg_testset_save_CFLAGS"
10084
10085 eval supported=\$$cacheid
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10087 $as_echo "$supported" >&6; }
10088 if test "$supported" = "yes" ; then
10089 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10090 found="yes"
10091 fi
10092 fi
10093
10094
10095
10096 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10097 # activate it with -Werror, so we add it here explicitly.
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111 xorg_testset_save_CFLAGS="$CFLAGS"
10112
10113 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10116 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10117 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10118 $as_echo_n "(cached) " >&6
10119 else
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10122 int i;
10123 _ACEOF
10124 if ac_fn_c_try_compile "$LINENO"; then :
10125 xorg_cv_cc_flag_unknown_warning_option=yes
10126 else
10127 xorg_cv_cc_flag_unknown_warning_option=no
10128 fi
10129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10130 fi
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10132 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10133 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10134 CFLAGS="$xorg_testset_save_CFLAGS"
10135 fi
10136
10137 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10140 fi
10141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10143 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10144 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10145 $as_echo_n "(cached) " >&6
10146 else
10147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148 /* end confdefs.h. */
10149 int i;
10150 _ACEOF
10151 if ac_fn_c_try_compile "$LINENO"; then :
10152 xorg_cv_cc_flag_unused_command_line_argument=yes
10153 else
10154 xorg_cv_cc_flag_unused_command_line_argument=no
10155 fi
10156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157 fi
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10159 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10160 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10161 CFLAGS="$xorg_testset_save_CFLAGS"
10162 fi
10163
10164 found="no"
10165
10166 if test $found = "no" ; then
10167 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10169 fi
10170
10171 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10173 fi
10174
10175 CFLAGS="$CFLAGS -Werror=attributes"
10176
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10178 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10179 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10180 if eval \${$cacheid+:} false; then :
10181 $as_echo_n "(cached) " >&6
10182 else
10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h. */
10185 int i;
10186 int
10187 main ()
10188 {
10189
10190 ;
10191 return 0;
10192 }
10193 _ACEOF
10194 if ac_fn_c_try_link "$LINENO"; then :
10195 eval $cacheid=yes
10196 else
10197 eval $cacheid=no
10198 fi
10199 rm -f core conftest.err conftest.$ac_objext \
10200 conftest$ac_exeext conftest.$ac_ext
10201 fi
10202
10203
10204 CFLAGS="$xorg_testset_save_CFLAGS"
10205
10206 eval supported=\$$cacheid
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10208 $as_echo "$supported" >&6; }
10209 if test "$supported" = "yes" ; then
10210 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10211 found="yes"
10212 fi
10213 fi
10214
10215
10216
10217 if test "x$STRICT_COMPILE" = "xyes"; then
10218 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10219 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10220 fi
10221
10222
10223
10224
10225
10226
10227 cat >>confdefs.h <<_ACEOF
10228 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10229 _ACEOF
10230
10231 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10232 if test "x$PVM" = "x"; then
10233 PVM="0"
10234 fi
10235
10236 cat >>confdefs.h <<_ACEOF
10237 #define PACKAGE_VERSION_MINOR $PVM
10238 _ACEOF
10239
10240 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10241 if test "x$PVP" = "x"; then
10242 PVP="0"
10243 fi
10244
10245 cat >>confdefs.h <<_ACEOF
10246 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10247 _ACEOF
10248
10249
10250
10251 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10252 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10253 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10254 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10255
10256
10257
10258
10259 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10260 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10261 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10262 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10263 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10264
10265
10266
10267
10268
10269
10270 if test x$APP_MAN_SUFFIX = x ; then
10271 APP_MAN_SUFFIX=1
10272 fi
10273 if test x$APP_MAN_DIR = x ; then
10274 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10275 fi
10276
10277 if test x$LIB_MAN_SUFFIX = x ; then
10278 LIB_MAN_SUFFIX=3
10279 fi
10280 if test x$LIB_MAN_DIR = x ; then
10281 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10282 fi
10283
10284 if test x$FILE_MAN_SUFFIX = x ; then
10285 case $host_os in
10286 solaris*) FILE_MAN_SUFFIX=4 ;;
10287 *) FILE_MAN_SUFFIX=5 ;;
10288 esac
10289 fi
10290 if test x$FILE_MAN_DIR = x ; then
10291 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10292 fi
10293
10294 if test x$MISC_MAN_SUFFIX = x ; then
10295 case $host_os in
10296 solaris*) MISC_MAN_SUFFIX=5 ;;
10297 *) MISC_MAN_SUFFIX=7 ;;
10298 esac
10299 fi
10300 if test x$MISC_MAN_DIR = x ; then
10301 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10302 fi
10303
10304 if test x$DRIVER_MAN_SUFFIX = x ; then
10305 case $host_os in
10306 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10307 *) DRIVER_MAN_SUFFIX=4 ;;
10308 esac
10309 fi
10310 if test x$DRIVER_MAN_DIR = x ; then
10311 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10312 fi
10313
10314 if test x$ADMIN_MAN_SUFFIX = x ; then
10315 case $host_os in
10316 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10317 *) ADMIN_MAN_SUFFIX=8 ;;
10318 esac
10319 fi
10320 if test x$ADMIN_MAN_DIR = x ; then
10321 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10322 fi
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338 XORG_MAN_PAGE="X Version 11"
10339
10340 MAN_SUBSTS="\
10341 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10342 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10343 -e 's|__xservername__|Xorg|g' \
10344 -e 's|__xconfigfile__|xorg.conf|g' \
10345 -e 's|__projectroot__|\$(prefix)|g' \
10346 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10347 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10348 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10349 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10350 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10351 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10352 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10353
10354
10355
10356 # Check whether --enable-silent-rules was given.
10357 if test "${enable_silent_rules+set}" = set; then :
10358 enableval=$enable_silent_rules;
10359 fi
10360
10361 case $enable_silent_rules in
10362 yes) AM_DEFAULT_VERBOSITY=0;;
10363 no) AM_DEFAULT_VERBOSITY=1;;
10364 *) AM_DEFAULT_VERBOSITY=0;;
10365 esac
10366 AM_BACKSLASH='\'
10367
10368
10369
10370 # Checks for pkg-config packages
10371
10372 pkg_failed=no
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVIDTUNE" >&5
10374 $as_echo_n "checking for XVIDTUNE... " >&6; }
10375
10376 if test -n "$XVIDTUNE_CFLAGS"; then
10377 pkg_cv_XVIDTUNE_CFLAGS="$XVIDTUNE_CFLAGS"
10378 elif test -n "$PKG_CONFIG"; then
10379 if test -n "$PKG_CONFIG" && \
10380 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm xt xaw7 xmu x11\""; } >&5
10381 ($PKG_CONFIG --exists --print-errors "xxf86vm xt xaw7 xmu x11") 2>&5
10382 ac_status=$?
10383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10384 test $ac_status = 0; }; then
10385 pkg_cv_XVIDTUNE_CFLAGS=`$PKG_CONFIG --cflags "xxf86vm xt xaw7 xmu x11" 2>/dev/null`
10386 else
10387 pkg_failed=yes
10388 fi
10389 else
10390 pkg_failed=untried
10391 fi
10392 if test -n "$XVIDTUNE_LIBS"; then
10393 pkg_cv_XVIDTUNE_LIBS="$XVIDTUNE_LIBS"
10394 elif test -n "$PKG_CONFIG"; then
10395 if test -n "$PKG_CONFIG" && \
10396 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm xt xaw7 xmu x11\""; } >&5
10397 ($PKG_CONFIG --exists --print-errors "xxf86vm xt xaw7 xmu x11") 2>&5
10398 ac_status=$?
10399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10400 test $ac_status = 0; }; then
10401 pkg_cv_XVIDTUNE_LIBS=`$PKG_CONFIG --libs "xxf86vm xt xaw7 xmu x11" 2>/dev/null`
10402 else
10403 pkg_failed=yes
10404 fi
10405 else
10406 pkg_failed=untried
10407 fi
10408
10409
10410
10411 if test $pkg_failed = yes; then
10412
10413 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10414 _pkg_short_errors_supported=yes
10415 else
10416 _pkg_short_errors_supported=no
10417 fi
10418 if test $_pkg_short_errors_supported = yes; then
10419 XVIDTUNE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xxf86vm xt xaw7 xmu x11" 2>&1`
10420 else
10421 XVIDTUNE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xxf86vm xt xaw7 xmu x11" 2>&1`
10422 fi
10423 # Put the nasty error message in config.log where it belongs
10424 echo "$XVIDTUNE_PKG_ERRORS" >&5
10425
10426 as_fn_error $? "Package requirements (xxf86vm xt xaw7 xmu x11) were not met:
10427
10428 $XVIDTUNE_PKG_ERRORS
10429
10430 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10431 installed software in a non-standard prefix.
10432
10433 Alternatively, you may set the environment variables XVIDTUNE_CFLAGS
10434 and XVIDTUNE_LIBS to avoid the need to call pkg-config.
10435 See the pkg-config man page for more details.
10436 " "$LINENO" 5
10437 elif test $pkg_failed = untried; then
10438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10440 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10441 is in your PATH or set the PKG_CONFIG environment variable to the full
10442 path to pkg-config.
10443
10444 Alternatively, you may set the environment variables XVIDTUNE_CFLAGS
10445 and XVIDTUNE_LIBS to avoid the need to call pkg-config.
10446 See the pkg-config man page for more details.
10447
10448 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10449 See \`config.log' for more details" "$LINENO" 5; }
10450 else
10451 XVIDTUNE_CFLAGS=$pkg_cv_XVIDTUNE_CFLAGS
10452 XVIDTUNE_LIBS=$pkg_cv_XVIDTUNE_LIBS
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10454 $as_echo "yes" >&6; }
10455 :
10456 fi
10457 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10458
10459 # Check whether --with-appdefaultdir was given.
10460 if test "${with_appdefaultdir+set}" = set; then :
10461 withval=$with_appdefaultdir; appdefaultdir="$withval"
10462 else
10463 appdefaultdir="${xt_appdefaultdir}"
10464 fi
10465
10466
10467
10468
10469 ac_config_files="$ac_config_files Makefile man/Makefile"
10470
10471 cat >confcache <<\_ACEOF
10472 # This file is a shell script that caches the results of configure
10473 # tests run on this system so they can be shared between configure
10474 # scripts and configure runs, see configure's option --config-cache.
10475 # It is not useful on other systems. If it contains results you don't
10476 # want to keep, you may remove or edit it.
10477 #
10478 # config.status only pays attention to the cache file if you give it
10479 # the --recheck option to rerun configure.
10480 #
10481 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10482 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10483 # following values.
10484
10485 _ACEOF
10486
10487 # The following way of writing the cache mishandles newlines in values,
10488 # but we know of no workaround that is simple, portable, and efficient.
10489 # So, we kill variables containing newlines.
10490 # Ultrix sh set writes to stderr and can't be redirected directly,
10491 # and sets the high bit in the cache file unless we assign to the vars.
10492 (
10493 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10494 eval ac_val=\$$ac_var
10495 case $ac_val in #(
10496 *${as_nl}*)
10497 case $ac_var in #(
10498 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10499 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10500 esac
10501 case $ac_var in #(
10502 _ | IFS | as_nl) ;; #(
10503 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10504 *) { eval $ac_var=; unset $ac_var;} ;;
10505 esac ;;
10506 esac
10507 done
10508
10509 (set) 2>&1 |
10510 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10511 *${as_nl}ac_space=\ *)
10512 # `set' does not quote correctly, so add quotes: double-quote
10513 # substitution turns \\\\ into \\, and sed turns \\ into \.
10514 sed -n \
10515 "s/'/'\\\\''/g;
10516 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10517 ;; #(
10518 *)
10519 # `set' quotes correctly as required by POSIX, so do not add quotes.
10520 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10521 ;;
10522 esac |
10523 sort
10524 ) |
10525 sed '
10526 /^ac_cv_env_/b end
10527 t clear
10528 :clear
10529 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10530 t end
10531 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10532 :end' >>confcache
10533 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10534 if test -w "$cache_file"; then
10535 if test "x$cache_file" != "x/dev/null"; then
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10537 $as_echo "$as_me: updating cache $cache_file" >&6;}
10538 if test ! -f "$cache_file" || test -h "$cache_file"; then
10539 cat confcache >"$cache_file"
10540 else
10541 case $cache_file in #(
10542 */* | ?:*)
10543 mv -f confcache "$cache_file"$$ &&
10544 mv -f "$cache_file"$$ "$cache_file" ;; #(
10545 *)
10546 mv -f confcache "$cache_file" ;;
10547 esac
10548 fi
10549 fi
10550 else
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10552 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10553 fi
10554 fi
10555 rm -f confcache
10556
10557 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10558 # Let make expand exec_prefix.
10559 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10560
10561 DEFS=-DHAVE_CONFIG_H
10562
10563 ac_libobjs=
10564 ac_ltlibobjs=
10565 U=
10566 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10567 # 1. Remove the extension, and $U if already installed.
10568 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10569 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10570 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10571 # will be set to the directory where LIBOBJS objects are built.
10572 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10573 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10574 done
10575 LIBOBJS=$ac_libobjs
10576
10577 LTLIBOBJS=$ac_ltlibobjs
10578
10579
10580 if test -n "$EXEEXT"; then
10581 am__EXEEXT_TRUE=
10582 am__EXEEXT_FALSE='#'
10583 else
10584 am__EXEEXT_TRUE='#'
10585 am__EXEEXT_FALSE=
10586 fi
10587
10588 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10589 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10591 fi
10592 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10593 as_fn_error $? "conditional \"AMDEP\" was never defined.
10594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10595 fi
10596 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10597 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10599 fi
10600
10601 : "${CONFIG_STATUS=./config.status}"
10602 ac_write_fail=0
10603 ac_clean_files_save=$ac_clean_files
10604 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10606 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10607 as_write_fail=0
10608 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10609 #! $SHELL
10610 # Generated by $as_me.
10611 # Run this file to recreate the current configuration.
10612 # Compiler output produced by configure, useful for debugging
10613 # configure, is in config.log if it exists.
10614
10615 debug=false
10616 ac_cs_recheck=false
10617 ac_cs_silent=false
10618
10619 SHELL=\${CONFIG_SHELL-$SHELL}
10620 export SHELL
10621 _ASEOF
10622 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10623 ## -------------------- ##
10624 ## M4sh Initialization. ##
10625 ## -------------------- ##
10626
10627 # Be more Bourne compatible
10628 DUALCASE=1; export DUALCASE # for MKS sh
10629 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10630 emulate sh
10631 NULLCMD=:
10632 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10633 # is contrary to our usage. Disable this feature.
10634 alias -g '${1+"$@"}'='"$@"'
10635 setopt NO_GLOB_SUBST
10636 else
10637 case `(set -o) 2>/dev/null` in #(
10638 *posix*) :
10639 set -o posix ;; #(
10640 *) :
10641 ;;
10642 esac
10643 fi
10644
10645
10646 as_nl='
10647 '
10648 export as_nl
10649 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10650 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10651 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10652 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10653 # Prefer a ksh shell builtin over an external printf program on Solaris,
10654 # but without wasting forks for bash or zsh.
10655 if test -z "$BASH_VERSION$ZSH_VERSION" \
10656 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10657 as_echo='print -r --'
10658 as_echo_n='print -rn --'
10659 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10660 as_echo='printf %s\n'
10661 as_echo_n='printf %s'
10662 else
10663 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10664 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10665 as_echo_n='/usr/ucb/echo -n'
10666 else
10667 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10668 as_echo_n_body='eval
10669 arg=$1;
10670 case $arg in #(
10671 *"$as_nl"*)
10672 expr "X$arg" : "X\\(.*\\)$as_nl";
10673 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10674 esac;
10675 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10676 '
10677 export as_echo_n_body
10678 as_echo_n='sh -c $as_echo_n_body as_echo'
10679 fi
10680 export as_echo_body
10681 as_echo='sh -c $as_echo_body as_echo'
10682 fi
10683
10684 # The user is always right.
10685 if test "${PATH_SEPARATOR+set}" != set; then
10686 PATH_SEPARATOR=:
10687 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10688 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10689 PATH_SEPARATOR=';'
10690 }
10691 fi
10692
10693
10694 # IFS
10695 # We need space, tab and new line, in precisely that order. Quoting is
10696 # there to prevent editors from complaining about space-tab.
10697 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10698 # splitting by setting IFS to empty value.)
10699 IFS=" "" $as_nl"
10700
10701 # Find who we are. Look in the path if we contain no directory separator.
10702 as_myself=
10703 case $0 in #((
10704 *[\\/]* ) as_myself=$0 ;;
10705 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10706 for as_dir in $PATH
10707 do
10708 IFS=$as_save_IFS
10709 test -z "$as_dir" && as_dir=.
10710 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10711 done
10712 IFS=$as_save_IFS
10713
10714 ;;
10715 esac
10716 # We did not find ourselves, most probably we were run as `sh COMMAND'
10717 # in which case we are not to be found in the path.
10718 if test "x$as_myself" = x; then
10719 as_myself=$0
10720 fi
10721 if test ! -f "$as_myself"; then
10722 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10723 exit 1
10724 fi
10725
10726 # Unset variables that we do not need and which cause bugs (e.g. in
10727 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10728 # suppresses any "Segmentation fault" message there. '((' could
10729 # trigger a bug in pdksh 5.2.14.
10730 for as_var in BASH_ENV ENV MAIL MAILPATH
10731 do eval test x\${$as_var+set} = xset \
10732 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10733 done
10734 PS1='$ '
10735 PS2='> '
10736 PS4='+ '
10737
10738 # NLS nuisances.
10739 LC_ALL=C
10740 export LC_ALL
10741 LANGUAGE=C
10742 export LANGUAGE
10743
10744 # CDPATH.
10745 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10746
10747
10748 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10749 # ----------------------------------------
10750 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10751 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10752 # script with STATUS, using 1 if that was 0.
10753 as_fn_error ()
10754 {
10755 as_status=$1; test $as_status -eq 0 && as_status=1
10756 if test "$4"; then
10757 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10758 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10759 fi
10760 $as_echo "$as_me: error: $2" >&2
10761 as_fn_exit $as_status
10762 } # as_fn_error
10763
10764
10765 # as_fn_set_status STATUS
10766 # -----------------------
10767 # Set $? to STATUS, without forking.
10768 as_fn_set_status ()
10769 {
10770 return $1
10771 } # as_fn_set_status
10772
10773 # as_fn_exit STATUS
10774 # -----------------
10775 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10776 as_fn_exit ()
10777 {
10778 set +e
10779 as_fn_set_status $1
10780 exit $1
10781 } # as_fn_exit
10782
10783 # as_fn_unset VAR
10784 # ---------------
10785 # Portably unset VAR.
10786 as_fn_unset ()
10787 {
10788 { eval $1=; unset $1;}
10789 }
10790 as_unset=as_fn_unset
10791 # as_fn_append VAR VALUE
10792 # ----------------------
10793 # Append the text in VALUE to the end of the definition contained in VAR. Take
10794 # advantage of any shell optimizations that allow amortized linear growth over
10795 # repeated appends, instead of the typical quadratic growth present in naive
10796 # implementations.
10797 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10798 eval 'as_fn_append ()
10799 {
10800 eval $1+=\$2
10801 }'
10802 else
10803 as_fn_append ()
10804 {
10805 eval $1=\$$1\$2
10806 }
10807 fi # as_fn_append
10808
10809 # as_fn_arith ARG...
10810 # ------------------
10811 # Perform arithmetic evaluation on the ARGs, and store the result in the
10812 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10813 # must be portable across $(()) and expr.
10814 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10815 eval 'as_fn_arith ()
10816 {
10817 as_val=$(( $* ))
10818 }'
10819 else
10820 as_fn_arith ()
10821 {
10822 as_val=`expr "$@" || test $? -eq 1`
10823 }
10824 fi # as_fn_arith
10825
10826
10827 if expr a : '\(a\)' >/dev/null 2>&1 &&
10828 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10829 as_expr=expr
10830 else
10831 as_expr=false
10832 fi
10833
10834 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10835 as_basename=basename
10836 else
10837 as_basename=false
10838 fi
10839
10840 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10841 as_dirname=dirname
10842 else
10843 as_dirname=false
10844 fi
10845
10846 as_me=`$as_basename -- "$0" ||
10847 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10848 X"$0" : 'X\(//\)$' \| \
10849 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10850 $as_echo X/"$0" |
10851 sed '/^.*\/\([^/][^/]*\)\/*$/{
10852 s//\1/
10853 q
10854 }
10855 /^X\/\(\/\/\)$/{
10856 s//\1/
10857 q
10858 }
10859 /^X\/\(\/\).*/{
10860 s//\1/
10861 q
10862 }
10863 s/.*/./; q'`
10864
10865 # Avoid depending upon Character Ranges.
10866 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10867 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10868 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10869 as_cr_digits='0123456789'
10870 as_cr_alnum=$as_cr_Letters$as_cr_digits
10871
10872 ECHO_C= ECHO_N= ECHO_T=
10873 case `echo -n x` in #(((((
10874 -n*)
10875 case `echo 'xy\c'` in
10876 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10877 xy) ECHO_C='\c';;
10878 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10879 ECHO_T=' ';;
10880 esac;;
10881 *)
10882 ECHO_N='-n';;
10883 esac
10884
10885 rm -f conf$$ conf$$.exe conf$$.file
10886 if test -d conf$$.dir; then
10887 rm -f conf$$.dir/conf$$.file
10888 else
10889 rm -f conf$$.dir
10890 mkdir conf$$.dir 2>/dev/null
10891 fi
10892 if (echo >conf$$.file) 2>/dev/null; then
10893 if ln -s conf$$.file conf$$ 2>/dev/null; then
10894 as_ln_s='ln -s'
10895 # ... but there are two gotchas:
10896 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10897 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10898 # In both cases, we have to default to `cp -p'.
10899 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10900 as_ln_s='cp -p'
10901 elif ln conf$$.file conf$$ 2>/dev/null; then
10902 as_ln_s=ln
10903 else
10904 as_ln_s='cp -p'
10905 fi
10906 else
10907 as_ln_s='cp -p'
10908 fi
10909 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10910 rmdir conf$$.dir 2>/dev/null
10911
10912
10913 # as_fn_mkdir_p
10914 # -------------
10915 # Create "$as_dir" as a directory, including parents if necessary.
10916 as_fn_mkdir_p ()
10917 {
10918
10919 case $as_dir in #(
10920 -*) as_dir=./$as_dir;;
10921 esac
10922 test -d "$as_dir" || eval $as_mkdir_p || {
10923 as_dirs=
10924 while :; do
10925 case $as_dir in #(
10926 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10927 *) as_qdir=$as_dir;;
10928 esac
10929 as_dirs="'$as_qdir' $as_dirs"
10930 as_dir=`$as_dirname -- "$as_dir" ||
10931 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10932 X"$as_dir" : 'X\(//\)[^/]' \| \
10933 X"$as_dir" : 'X\(//\)$' \| \
10934 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10935 $as_echo X"$as_dir" |
10936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10937 s//\1/
10938 q
10939 }
10940 /^X\(\/\/\)[^/].*/{
10941 s//\1/
10942 q
10943 }
10944 /^X\(\/\/\)$/{
10945 s//\1/
10946 q
10947 }
10948 /^X\(\/\).*/{
10949 s//\1/
10950 q
10951 }
10952 s/.*/./; q'`
10953 test -d "$as_dir" && break
10954 done
10955 test -z "$as_dirs" || eval "mkdir $as_dirs"
10956 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10957
10958
10959 } # as_fn_mkdir_p
10960 if mkdir -p . 2>/dev/null; then
10961 as_mkdir_p='mkdir -p "$as_dir"'
10962 else
10963 test -d ./-p && rmdir ./-p
10964 as_mkdir_p=false
10965 fi
10966
10967 if test -x / >/dev/null 2>&1; then
10968 as_test_x='test -x'
10969 else
10970 if ls -dL / >/dev/null 2>&1; then
10971 as_ls_L_option=L
10972 else
10973 as_ls_L_option=
10974 fi
10975 as_test_x='
10976 eval sh -c '\''
10977 if test -d "$1"; then
10978 test -d "$1/.";
10979 else
10980 case $1 in #(
10981 -*)set "./$1";;
10982 esac;
10983 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10984 ???[sx]*):;;*)false;;esac;fi
10985 '\'' sh
10986 '
10987 fi
10988 as_executable_p=$as_test_x
10989
10990 # Sed expression to map a string onto a valid CPP name.
10991 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10992
10993 # Sed expression to map a string onto a valid variable name.
10994 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10995
10996
10997 exec 6>&1
10998 ## ----------------------------------- ##
10999 ## Main body of $CONFIG_STATUS script. ##
11000 ## ----------------------------------- ##
11001 _ASEOF
11002 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11003
11004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11005 # Save the log message, to keep $0 and so on meaningful, and to
11006 # report actual input values of CONFIG_FILES etc. instead of their
11007 # values after options handling.
11008 ac_log="
11009 This file was extended by xvidtune $as_me 1.0.3, which was
11010 generated by GNU Autoconf 2.68. Invocation command line was
11011
11012 CONFIG_FILES = $CONFIG_FILES
11013 CONFIG_HEADERS = $CONFIG_HEADERS
11014 CONFIG_LINKS = $CONFIG_LINKS
11015 CONFIG_COMMANDS = $CONFIG_COMMANDS
11016 $ $0 $@
11017
11018 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11019 "
11020
11021 _ACEOF
11022
11023 case $ac_config_files in *"
11024 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11025 esac
11026
11027 case $ac_config_headers in *"
11028 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11029 esac
11030
11031
11032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11033 # Files that config.status was made for.
11034 config_files="$ac_config_files"
11035 config_headers="$ac_config_headers"
11036 config_commands="$ac_config_commands"
11037
11038 _ACEOF
11039
11040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11041 ac_cs_usage="\
11042 \`$as_me' instantiates files and other configuration actions
11043 from templates according to the current configuration. Unless the files
11044 and actions are specified as TAGs, all are instantiated by default.
11045
11046 Usage: $0 [OPTION]... [TAG]...
11047
11048 -h, --help print this help, then exit
11049 -V, --version print version number and configuration settings, then exit
11050 --config print configuration, then exit
11051 -q, --quiet, --silent
11052 do not print progress messages
11053 -d, --debug don't remove temporary files
11054 --recheck update $as_me by reconfiguring in the same conditions
11055 --file=FILE[:TEMPLATE]
11056 instantiate the configuration file FILE
11057 --header=FILE[:TEMPLATE]
11058 instantiate the configuration header FILE
11059
11060 Configuration files:
11061 $config_files
11062
11063 Configuration headers:
11064 $config_headers
11065
11066 Configuration commands:
11067 $config_commands
11068
11069 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11070
11071 _ACEOF
11072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11073 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11074 ac_cs_version="\\
11075 xvidtune config.status 1.0.3
11076 configured by $0, generated by GNU Autoconf 2.68,
11077 with options \\"\$ac_cs_config\\"
11078
11079 Copyright (C) 2010 Free Software Foundation, Inc.
11080 This config.status script is free software; the Free Software Foundation
11081 gives unlimited permission to copy, distribute and modify it."
11082
11083 ac_pwd='$ac_pwd'
11084 srcdir='$srcdir'
11085 INSTALL='$INSTALL'
11086 MKDIR_P='$MKDIR_P'
11087 AWK='$AWK'
11088 test -n "\$AWK" || AWK=awk
11089 _ACEOF
11090
11091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11092 # The default lists apply if the user does not specify any file.
11093 ac_need_defaults=:
11094 while test $# != 0
11095 do
11096 case $1 in
11097 --*=?*)
11098 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11099 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11100 ac_shift=:
11101 ;;
11102 --*=)
11103 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11104 ac_optarg=
11105 ac_shift=:
11106 ;;
11107 *)
11108 ac_option=$1
11109 ac_optarg=$2
11110 ac_shift=shift
11111 ;;
11112 esac
11113
11114 case $ac_option in
11115 # Handling of the options.
11116 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11117 ac_cs_recheck=: ;;
11118 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11119 $as_echo "$ac_cs_version"; exit ;;
11120 --config | --confi | --conf | --con | --co | --c )
11121 $as_echo "$ac_cs_config"; exit ;;
11122 --debug | --debu | --deb | --de | --d | -d )
11123 debug=: ;;
11124 --file | --fil | --fi | --f )
11125 $ac_shift
11126 case $ac_optarg in
11127 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11128 '') as_fn_error $? "missing file argument" ;;
11129 esac
11130 as_fn_append CONFIG_FILES " '$ac_optarg'"
11131 ac_need_defaults=false;;
11132 --header | --heade | --head | --hea )
11133 $ac_shift
11134 case $ac_optarg in
11135 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11136 esac
11137 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11138 ac_need_defaults=false;;
11139 --he | --h)
11140 # Conflict between --help and --header
11141 as_fn_error $? "ambiguous option: \`$1'
11142 Try \`$0 --help' for more information.";;
11143 --help | --hel | -h )
11144 $as_echo "$ac_cs_usage"; exit ;;
11145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11146 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11147 ac_cs_silent=: ;;
11148
11149 # This is an error.
11150 -*) as_fn_error $? "unrecognized option: \`$1'
11151 Try \`$0 --help' for more information." ;;
11152
11153 *) as_fn_append ac_config_targets " $1"
11154 ac_need_defaults=false ;;
11155
11156 esac
11157 shift
11158 done
11159
11160 ac_configure_extra_args=
11161
11162 if $ac_cs_silent; then
11163 exec 6>/dev/null
11164 ac_configure_extra_args="$ac_configure_extra_args --silent"
11165 fi
11166
11167 _ACEOF
11168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11169 if \$ac_cs_recheck; then
11170 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11171 shift
11172 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11173 CONFIG_SHELL='$SHELL'
11174 export CONFIG_SHELL
11175 exec "\$@"
11176 fi
11177
11178 _ACEOF
11179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11180 exec 5>>config.log
11181 {
11182 echo
11183 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11184 ## Running $as_me. ##
11185 _ASBOX
11186 $as_echo "$ac_log"
11187 } >&5
11188
11189 _ACEOF
11190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11191 #
11192 # INIT-COMMANDS
11193 #
11194 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11195
11196 _ACEOF
11197
11198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11199
11200 # Handling of arguments.
11201 for ac_config_target in $ac_config_targets
11202 do
11203 case $ac_config_target in
11204 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11205 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11206 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11207 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11208
11209 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11210 esac
11211 done
11212
11213
11214 # If the user did not use the arguments to specify the items to instantiate,
11215 # then the envvar interface is used. Set only those that are not.
11216 # We use the long form for the default assignment because of an extremely
11217 # bizarre bug on SunOS 4.1.3.
11218 if $ac_need_defaults; then
11219 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11220 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11221 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11222 fi
11223
11224 # Have a temporary directory for convenience. Make it in the build tree
11225 # simply because there is no reason against having it here, and in addition,
11226 # creating and moving files from /tmp can sometimes cause problems.
11227 # Hook for its removal unless debugging.
11228 # Note that there is a small window in which the directory will not be cleaned:
11229 # after its creation but before its name has been assigned to `$tmp'.
11230 $debug ||
11231 {
11232 tmp= ac_tmp=
11233 trap 'exit_status=$?
11234 : "${ac_tmp:=$tmp}"
11235 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11236 ' 0
11237 trap 'as_fn_exit 1' 1 2 13 15
11238 }
11239 # Create a (secure) tmp directory for tmp files.
11240
11241 {
11242 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11243 test -d "$tmp"
11244 } ||
11245 {
11246 tmp=./conf$$-$RANDOM
11247 (umask 077 && mkdir "$tmp")
11248 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11249 ac_tmp=$tmp
11250
11251 # Set up the scripts for CONFIG_FILES section.
11252 # No need to generate them if there are no CONFIG_FILES.
11253 # This happens for instance with `./config.status config.h'.
11254 if test -n "$CONFIG_FILES"; then
11255
11256
11257 ac_cr=`echo X | tr X '\015'`
11258 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11259 # But we know of no other shell where ac_cr would be empty at this
11260 # point, so we can use a bashism as a fallback.
11261 if test "x$ac_cr" = x; then
11262 eval ac_cr=\$\'\\r\'
11263 fi
11264 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11265 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11266 ac_cs_awk_cr='\\r'
11267 else
11268 ac_cs_awk_cr=$ac_cr
11269 fi
11270
11271 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11272 _ACEOF
11273
11274
11275 {
11276 echo "cat >conf$$subs.awk <<_ACEOF" &&
11277 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11278 echo "_ACEOF"
11279 } >conf$$subs.sh ||
11280 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11281 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11282 ac_delim='%!_!# '
11283 for ac_last_try in false false false false false :; do
11284 . ./conf$$subs.sh ||
11285 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11286
11287 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11288 if test $ac_delim_n = $ac_delim_num; then
11289 break
11290 elif $ac_last_try; then
11291 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11292 else
11293 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11294 fi
11295 done
11296 rm -f conf$$subs.sh
11297
11298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11299 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11300 _ACEOF
11301 sed -n '
11302 h
11303 s/^/S["/; s/!.*/"]=/
11304 p
11305 g
11306 s/^[^!]*!//
11307 :repl
11308 t repl
11309 s/'"$ac_delim"'$//
11310 t delim
11311 :nl
11312 h
11313 s/\(.\{148\}\)..*/\1/
11314 t more1
11315 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11316 p
11317 n
11318 b repl
11319 :more1
11320 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11321 p
11322 g
11323 s/.\{148\}//
11324 t nl
11325 :delim
11326 h
11327 s/\(.\{148\}\)..*/\1/
11328 t more2
11329 s/["\\]/\\&/g; s/^/"/; s/$/"/
11330 p
11331 b
11332 :more2
11333 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11334 p
11335 g
11336 s/.\{148\}//
11337 t delim
11338 ' <conf$$subs.awk | sed '
11339 /^[^""]/{
11340 N
11341 s/\n//
11342 }
11343 ' >>$CONFIG_STATUS || ac_write_fail=1
11344 rm -f conf$$subs.awk
11345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11346 _ACAWK
11347 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11348 for (key in S) S_is_set[key] = 1
11349 FS = ""
11350
11351 }
11352 {
11353 line = $ 0
11354 nfields = split(line, field, "@")
11355 substed = 0
11356 len = length(field[1])
11357 for (i = 2; i < nfields; i++) {
11358 key = field[i]
11359 keylen = length(key)
11360 if (S_is_set[key]) {
11361 value = S[key]
11362 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11363 len += length(value) + length(field[++i])
11364 substed = 1
11365 } else
11366 len += 1 + keylen
11367 }
11368
11369 print line
11370 }
11371
11372 _ACAWK
11373 _ACEOF
11374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11375 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11376 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11377 else
11378 cat
11379 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11380 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11381 _ACEOF
11382
11383 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11384 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11385 # trailing colons and then remove the whole line if VPATH becomes empty
11386 # (actually we leave an empty line to preserve line numbers).
11387 if test "x$srcdir" = x.; then
11388 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11389 h
11390 s///
11391 s/^/:/
11392 s/[ ]*$/:/
11393 s/:\$(srcdir):/:/g
11394 s/:\${srcdir}:/:/g
11395 s/:@srcdir@:/:/g
11396 s/^:*//
11397 s/:*$//
11398 x
11399 s/\(=[ ]*\).*/\1/
11400 G
11401 s/\n//
11402 s/^[^=]*=[ ]*$//
11403 }'
11404 fi
11405
11406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11407 fi # test -n "$CONFIG_FILES"
11408
11409 # Set up the scripts for CONFIG_HEADERS section.
11410 # No need to generate them if there are no CONFIG_HEADERS.
11411 # This happens for instance with `./config.status Makefile'.
11412 if test -n "$CONFIG_HEADERS"; then
11413 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11414 BEGIN {
11415 _ACEOF
11416
11417 # Transform confdefs.h into an awk script `defines.awk', embedded as
11418 # here-document in config.status, that substitutes the proper values into
11419 # config.h.in to produce config.h.
11420
11421 # Create a delimiter string that does not exist in confdefs.h, to ease
11422 # handling of long lines.
11423 ac_delim='%!_!# '
11424 for ac_last_try in false false :; do
11425 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11426 if test -z "$ac_tt"; then
11427 break
11428 elif $ac_last_try; then
11429 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11430 else
11431 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11432 fi
11433 done
11434
11435 # For the awk script, D is an array of macro values keyed by name,
11436 # likewise P contains macro parameters if any. Preserve backslash
11437 # newline sequences.
11438
11439 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11440 sed -n '
11441 s/.\{148\}/&'"$ac_delim"'/g
11442 t rset
11443 :rset
11444 s/^[ ]*#[ ]*define[ ][ ]*/ /
11445 t def
11446 d
11447 :def
11448 s/\\$//
11449 t bsnl
11450 s/["\\]/\\&/g
11451 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11452 D["\1"]=" \3"/p
11453 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11454 d
11455 :bsnl
11456 s/["\\]/\\&/g
11457 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11458 D["\1"]=" \3\\\\\\n"\\/p
11459 t cont
11460 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11461 t cont
11462 d
11463 :cont
11464 n
11465 s/.\{148\}/&'"$ac_delim"'/g
11466 t clear
11467 :clear
11468 s/\\$//
11469 t bsnlc
11470 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11471 d
11472 :bsnlc
11473 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11474 b cont
11475 ' <confdefs.h | sed '
11476 s/'"$ac_delim"'/"\\\
11477 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11478
11479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11480 for (key in D) D_is_set[key] = 1
11481 FS = ""
11482 }
11483 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11484 line = \$ 0
11485 split(line, arg, " ")
11486 if (arg[1] == "#") {
11487 defundef = arg[2]
11488 mac1 = arg[3]
11489 } else {
11490 defundef = substr(arg[1], 2)
11491 mac1 = arg[2]
11492 }
11493 split(mac1, mac2, "(") #)
11494 macro = mac2[1]
11495 prefix = substr(line, 1, index(line, defundef) - 1)
11496 if (D_is_set[macro]) {
11497 # Preserve the white space surrounding the "#".
11498 print prefix "define", macro P[macro] D[macro]
11499 next
11500 } else {
11501 # Replace #undef with comments. This is necessary, for example,
11502 # in the case of _POSIX_SOURCE, which is predefined and required
11503 # on some systems where configure will not decide to define it.
11504 if (defundef == "undef") {
11505 print "/*", prefix defundef, macro, "*/"
11506 next
11507 }
11508 }
11509 }
11510 { print }
11511 _ACAWK
11512 _ACEOF
11513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11514 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11515 fi # test -n "$CONFIG_HEADERS"
11516
11517
11518 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11519 shift
11520 for ac_tag
11521 do
11522 case $ac_tag in
11523 :[FHLC]) ac_mode=$ac_tag; continue;;
11524 esac
11525 case $ac_mode$ac_tag in
11526 :[FHL]*:*);;
11527 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11528 :[FH]-) ac_tag=-:-;;
11529 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11530 esac
11531 ac_save_IFS=$IFS
11532 IFS=:
11533 set x $ac_tag
11534 IFS=$ac_save_IFS
11535 shift
11536 ac_file=$1
11537 shift
11538
11539 case $ac_mode in
11540 :L) ac_source=$1;;
11541 :[FH])
11542 ac_file_inputs=
11543 for ac_f
11544 do
11545 case $ac_f in
11546 -) ac_f="$ac_tmp/stdin";;
11547 *) # Look for the file first in the build tree, then in the source tree
11548 # (if the path is not absolute). The absolute path cannot be DOS-style,
11549 # because $ac_f cannot contain `:'.
11550 test -f "$ac_f" ||
11551 case $ac_f in
11552 [\\/$]*) false;;
11553 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11554 esac ||
11555 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11556 esac
11557 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11558 as_fn_append ac_file_inputs " '$ac_f'"
11559 done
11560
11561 # Let's still pretend it is `configure' which instantiates (i.e., don't
11562 # use $as_me), people would be surprised to read:
11563 # /* config.h. Generated by config.status. */
11564 configure_input='Generated from '`
11565 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11566 `' by configure.'
11567 if test x"$ac_file" != x-; then
11568 configure_input="$ac_file. $configure_input"
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11570 $as_echo "$as_me: creating $ac_file" >&6;}
11571 fi
11572 # Neutralize special characters interpreted by sed in replacement strings.
11573 case $configure_input in #(
11574 *\&* | *\|* | *\\* )
11575 ac_sed_conf_input=`$as_echo "$configure_input" |
11576 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11577 *) ac_sed_conf_input=$configure_input;;
11578 esac
11579
11580 case $ac_tag in
11581 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11582 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11583 esac
11584 ;;
11585 esac
11586
11587 ac_dir=`$as_dirname -- "$ac_file" ||
11588 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11589 X"$ac_file" : 'X\(//\)[^/]' \| \
11590 X"$ac_file" : 'X\(//\)$' \| \
11591 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11592 $as_echo X"$ac_file" |
11593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11594 s//\1/
11595 q
11596 }
11597 /^X\(\/\/\)[^/].*/{
11598 s//\1/
11599 q
11600 }
11601 /^X\(\/\/\)$/{
11602 s//\1/
11603 q
11604 }
11605 /^X\(\/\).*/{
11606 s//\1/
11607 q
11608 }
11609 s/.*/./; q'`
11610 as_dir="$ac_dir"; as_fn_mkdir_p
11611 ac_builddir=.
11612
11613 case "$ac_dir" in
11614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11615 *)
11616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11617 # A ".." for each directory in $ac_dir_suffix.
11618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11619 case $ac_top_builddir_sub in
11620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11622 esac ;;
11623 esac
11624 ac_abs_top_builddir=$ac_pwd
11625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11626 # for backward compatibility:
11627 ac_top_builddir=$ac_top_build_prefix
11628
11629 case $srcdir in
11630 .) # We are building in place.
11631 ac_srcdir=.
11632 ac_top_srcdir=$ac_top_builddir_sub
11633 ac_abs_top_srcdir=$ac_pwd ;;
11634 [\\/]* | ?:[\\/]* ) # Absolute name.
11635 ac_srcdir=$srcdir$ac_dir_suffix;
11636 ac_top_srcdir=$srcdir
11637 ac_abs_top_srcdir=$srcdir ;;
11638 *) # Relative name.
11639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11640 ac_top_srcdir=$ac_top_build_prefix$srcdir
11641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11642 esac
11643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11644
11645
11646 case $ac_mode in
11647 :F)
11648 #
11649 # CONFIG_FILE
11650 #
11651
11652 case $INSTALL in
11653 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11654 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11655 esac
11656 ac_MKDIR_P=$MKDIR_P
11657 case $MKDIR_P in
11658 [\\/$]* | ?:[\\/]* ) ;;
11659 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11660 esac
11661 _ACEOF
11662
11663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11664 # If the template does not know about datarootdir, expand it.
11665 # FIXME: This hack should be removed a few years after 2.60.
11666 ac_datarootdir_hack=; ac_datarootdir_seen=
11667 ac_sed_dataroot='
11668 /datarootdir/ {
11669 p
11670 q
11671 }
11672 /@datadir@/p
11673 /@docdir@/p
11674 /@infodir@/p
11675 /@localedir@/p
11676 /@mandir@/p'
11677 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11678 *datarootdir*) ac_datarootdir_seen=yes;;
11679 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11681 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11682 _ACEOF
11683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11684 ac_datarootdir_hack='
11685 s&@datadir@&$datadir&g
11686 s&@docdir@&$docdir&g
11687 s&@infodir@&$infodir&g
11688 s&@localedir@&$localedir&g
11689 s&@mandir@&$mandir&g
11690 s&\\\${datarootdir}&$datarootdir&g' ;;
11691 esac
11692 _ACEOF
11693
11694 # Neutralize VPATH when `$srcdir' = `.'.
11695 # Shell code in configure.ac might set extrasub.
11696 # FIXME: do we really want to maintain this feature?
11697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11698 ac_sed_extra="$ac_vpsub
11699 $extrasub
11700 _ACEOF
11701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11702 :t
11703 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11704 s|@configure_input@|$ac_sed_conf_input|;t t
11705 s&@top_builddir@&$ac_top_builddir_sub&;t t
11706 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11707 s&@srcdir@&$ac_srcdir&;t t
11708 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11709 s&@top_srcdir@&$ac_top_srcdir&;t t
11710 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11711 s&@builddir@&$ac_builddir&;t t
11712 s&@abs_builddir@&$ac_abs_builddir&;t t
11713 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11714 s&@INSTALL@&$ac_INSTALL&;t t
11715 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11716 $ac_datarootdir_hack
11717 "
11718 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11719 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11720
11721 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11722 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11723 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11724 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11726 which seems to be undefined. Please make sure it is defined" >&5
11727 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11728 which seems to be undefined. Please make sure it is defined" >&2;}
11729
11730 rm -f "$ac_tmp/stdin"
11731 case $ac_file in
11732 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11733 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11734 esac \
11735 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11736 ;;
11737 :H)
11738 #
11739 # CONFIG_HEADER
11740 #
11741 if test x"$ac_file" != x-; then
11742 {
11743 $as_echo "/* $configure_input */" \
11744 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11745 } >"$ac_tmp/config.h" \
11746 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11747 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11749 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11750 else
11751 rm -f "$ac_file"
11752 mv "$ac_tmp/config.h" "$ac_file" \
11753 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11754 fi
11755 else
11756 $as_echo "/* $configure_input */" \
11757 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11758 || as_fn_error $? "could not create -" "$LINENO" 5
11759 fi
11760 # Compute "$ac_file"'s index in $config_headers.
11761 _am_arg="$ac_file"
11762 _am_stamp_count=1
11763 for _am_header in $config_headers :; do
11764 case $_am_header in
11765 $_am_arg | $_am_arg:* )
11766 break ;;
11767 * )
11768 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11769 esac
11770 done
11771 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11772 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11773 X"$_am_arg" : 'X\(//\)[^/]' \| \
11774 X"$_am_arg" : 'X\(//\)$' \| \
11775 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11776 $as_echo X"$_am_arg" |
11777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11778 s//\1/
11779 q
11780 }
11781 /^X\(\/\/\)[^/].*/{
11782 s//\1/
11783 q
11784 }
11785 /^X\(\/\/\)$/{
11786 s//\1/
11787 q
11788 }
11789 /^X\(\/\).*/{
11790 s//\1/
11791 q
11792 }
11793 s/.*/./; q'`/stamp-h$_am_stamp_count
11794 ;;
11795
11796 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11797 $as_echo "$as_me: executing $ac_file commands" >&6;}
11798 ;;
11799 esac
11800
11801
11802 case $ac_file$ac_mode in
11803 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11804 # Autoconf 2.62 quotes --file arguments for eval, but not when files
11805 # are listed without --file. Let's play safe and only enable the eval
11806 # if we detect the quoting.
11807 case $CONFIG_FILES in
11808 *\'*) eval set x "$CONFIG_FILES" ;;
11809 *) set x $CONFIG_FILES ;;
11810 esac
11811 shift
11812 for mf
11813 do
11814 # Strip MF so we end up with the name of the file.
11815 mf=`echo "$mf" | sed -e 's/:.*$//'`
11816 # Check whether this is an Automake generated Makefile or not.
11817 # We used to match only the files named `Makefile.in', but
11818 # some people rename them; so instead we look at the file content.
11819 # Grep'ing the first line is not enough: some people post-process
11820 # each Makefile.in and add a new line on top of each file to say so.
11821 # Grep'ing the whole file is not good either: AIX grep has a line
11822 # limit of 2048, but all sed's we know have understand at least 4000.
11823 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11824 dirpart=`$as_dirname -- "$mf" ||
11825 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11826 X"$mf" : 'X\(//\)[^/]' \| \
11827 X"$mf" : 'X\(//\)$' \| \
11828 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11829 $as_echo X"$mf" |
11830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11831 s//\1/
11832 q
11833 }
11834 /^X\(\/\/\)[^/].*/{
11835 s//\1/
11836 q
11837 }
11838 /^X\(\/\/\)$/{
11839 s//\1/
11840 q
11841 }
11842 /^X\(\/\).*/{
11843 s//\1/
11844 q
11845 }
11846 s/.*/./; q'`
11847 else
11848 continue
11849 fi
11850 # Extract the definition of DEPDIR, am__include, and am__quote
11851 # from the Makefile without running `make'.
11852 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11853 test -z "$DEPDIR" && continue
11854 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11855 test -z "am__include" && continue
11856 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11857 # When using ansi2knr, U may be empty or an underscore; expand it
11858 U=`sed -n 's/^U = //p' < "$mf"`
11859 # Find all dependency output files, they are included files with
11860 # $(DEPDIR) in their names. We invoke sed twice because it is the
11861 # simplest approach to changing $(DEPDIR) to its actual value in the
11862 # expansion.
11863 for file in `sed -n "
11864 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11865 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11866 # Make sure the directory exists.
11867 test -f "$dirpart/$file" && continue
11868 fdir=`$as_dirname -- "$file" ||
11869 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11870 X"$file" : 'X\(//\)[^/]' \| \
11871 X"$file" : 'X\(//\)$' \| \
11872 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11873 $as_echo X"$file" |
11874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11875 s//\1/
11876 q
11877 }
11878 /^X\(\/\/\)[^/].*/{
11879 s//\1/
11880 q
11881 }
11882 /^X\(\/\/\)$/{
11883 s//\1/
11884 q
11885 }
11886 /^X\(\/\).*/{
11887 s//\1/
11888 q
11889 }
11890 s/.*/./; q'`
11891 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11892 # echo "creating $dirpart/$file"
11893 echo '# dummy' > "$dirpart/$file"
11894 done
11895 done
11896 }
11897 ;;
11898
11899 esac
11900 done # for ac_tag
11901
11902
11903 as_fn_exit 0
11904 _ACEOF
11905 ac_clean_files=$ac_clean_files_save
11906
11907 test $ac_write_fail = 0 ||
11908 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11909
11910
11911 # configure is writing to config.log, and then calls config.status.
11912 # config.status does its own redirection, appending to config.log.
11913 # Unfortunately, on DOS this fails, as config.log is still kept open
11914 # by configure, so config.status won't be able to write to it; its
11915 # output is simply discarded. So we exec the FD to /dev/null,
11916 # effectively closing config.log, so it can be properly (re)opened and
11917 # appended to by config.status. When coming back to configure, we
11918 # need to make the FD available again.
11919 if test "$no_create" != yes; then
11920 ac_cs_success=:
11921 ac_config_status_args=
11922 test "$silent" = yes &&
11923 ac_config_status_args="$ac_config_status_args --quiet"
11924 exec 5>/dev/null
11925 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11926 exec 5>>config.log
11927 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11928 # would make configure fail if this is the last instruction.
11929 $ac_cs_success || as_fn_exit 1
11930 fi
11931 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11933 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11934 fi
11935
11936